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
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(); if (id == R.id.action_settings) { return true; } 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 // 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 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 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 // 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 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 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 {\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\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\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 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 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 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 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\n if (item.getItemId() == 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\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\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 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\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\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\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 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 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\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.7905683", "0.7805918", "0.7766949", "0.77280927", "0.76328415", "0.76229936", "0.7585238", "0.75312966", "0.7488599", "0.7458191", "0.7458191", "0.74387765", "0.74228644", "0.7403772", "0.7392029", "0.7387223", "0.73796284", "0.73707056", "0.7362735", "0.7356231", "0.73459065", "0.7341539", "0.7330543", "0.73291767", "0.73262036", "0.7319113", "0.73170453", "0.7313933", "0.73042923", "0.73042923", "0.73021746", "0.7298463", "0.7293577", "0.72871155", "0.728366", "0.72813606", "0.72788465", "0.7260218", "0.7260118", "0.7260118", "0.7260118", "0.7259794", "0.7250006", "0.72262347", "0.7219645", "0.7217006", "0.72047913", "0.7201841", "0.7200691", "0.7192642", "0.71852654", "0.71776754", "0.7168698", "0.7167816", "0.7154364", "0.7154273", "0.7136245", "0.71353966", "0.71353966", "0.71301633", "0.71298534", "0.71242434", "0.7123501", "0.7123328", "0.7122727", "0.71177506", "0.71177506", "0.71177506", "0.71177506", "0.71177506", "0.71171933", "0.711691", "0.7115056", "0.71125406", "0.71098775", "0.7109295", "0.7106308", "0.70996547", "0.70985293", "0.7096212", "0.709441", "0.709441", "0.708686", "0.7083485", "0.70817393", "0.7080634", "0.7073991", "0.70688444", "0.70622706", "0.7060854", "0.70605165", "0.7052146", "0.70383173", "0.70383173", "0.70361066", "0.70361066", "0.7036086", "0.7032447", "0.70313036", "0.7029748", "0.7019589" ]
0.0
-1
Run the RedirectView() constructor test.
@Test public void testRedirectView_1() throws Exception { RedirectView result = new RedirectView(); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0 // at java.lang.ClassLoader.defineClass1(Native Method) // at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) // at java.lang.ClassLoader.defineClass(ClassLoader.java:621) // at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) // at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) // at java.net.URLClassLoader.access$000(URLClassLoader.java:58) // at java.net.URLClassLoader$1.run(URLClassLoader.java:197) // at java.security.AccessController.doPrivileged(Native Method) // at java.net.URLClassLoader.findClass(URLClassLoader.java:190) // at java.lang.ClassLoader.loadClass(ClassLoader.java:306) // at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62) // at java.lang.ClassLoader.loadClass(ClassLoader.java:247) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99) // at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205) // at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286) // at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158) // at java.lang.Thread.run(Thread.java:695) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString url = \"\";\n\n\t\tfixture.setUrl(url);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testGetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\n\t\tString result = fixture.getUrl();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testRedirectView_3()\n\t\tthrows Exception {\n\t\tString url = \"\";\n\t\tboolean contextRelative = true;\n\n\t\tRedirectView result = new RedirectView(url, contextRelative);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "public View(Controller contr) {\n this.contr = contr;\n testRun();\n }", "@Test\n\tpublic void testRedirectView_2()\n\t\tthrows Exception {\n\t\tString url = \"\";\n\n\t\tRedirectView result = new RedirectView(url);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testRedirectView_4()\n\t\tthrows Exception {\n\t\tString url = \"\";\n\t\tboolean contextRelative = true;\n\t\tboolean http10Compatible = true;\n\n\t\tRedirectView result = new RedirectView(url, contextRelative, http10Compatible);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testSendRedirect_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = false;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "private View() {}", "@Test\n\tpublic void testSetContextRelative_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean contextRelative = true;\n\n\t\tfixture.setContextRelative(contextRelative);\n\n\t\t// add additional test code here\n\t}", "protected ReliedOnView() {}", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "@Test\n\tpublic void testSendRedirect_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "public OnlineVerificationView() {\n }", "public LoginPageTest()\n\t{\n\t\tsuper();\n\t}", "private Views() {\n }", "public LoginPageTest()\n\t{\n\t\tsuper(); // calling TestBase Constructor\n\t}", "public ControllerTest()\r\n {\r\n }", "public View(Controller contr) {\n this.contr = contr;\n }", "private ViewFactory() {}", "public HomePageTest(){\n\t\tsuper();\n\t}", "public ControlUrlControler() {\r\n\r\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}", "public void testSetViews() {\n }", "@Test(expected = java.io.IOException.class)\n\tpublic void testSendRedirect_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testSetEncodingScheme_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.setEncodingScheme(encodingScheme);\n\n\t\t// add additional test code here\n\t}", "public Siginpagetest()\n\t{\n\t super();\n\t}", "@Test\n @Transactional\n public void testUrlsRequireAuthentication() throws Exception {\n final View view = viewTestTools.createView(\"TestView\");\n\n // View \"stream\" page.\n testUrlRequiresAuthentication(\"/stream/\" + view.getId(), false);\n }", "public CheckOutPageTest()\n\t{\n\t\tsuper();\n\t}", "public LoginPageController() {\n\t}", "@Test\n\tpublic void testSetHttp10Compatible_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.setHttp10Compatible(http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testRedirectToAboutUs() {\n\t\tServicesLogic.redirectToAboutUs();\n\t}", "public VisitAction() {\n }", "public MainView() {\r\n\t\tinitialize();\r\n\t}", "public void testGetViews() {\n }", "public View() {\n // (this constructor is here just for the javadoc tag)\n }", "@Test\n\tpublic void testUrlEncode_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n public void oneRedirect() throws Exception {\n UrlPattern up1 = urlEqualTo(\"/\" + REDIRECT);\n stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", wireMock.url(TEST_FILE_NAME))));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n verify(1, getRequestedFor(up1));\n verify(1, getRequestedFor(up2));\n }", "public static void testShowTodoView(){\n }", "@Test\n public void tenRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 10)));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n redirectWireMock.stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=10\");\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n redirectWireMock.verify(10, getRequestedFor(up1));\n redirectWireMock.verify(1, getRequestedFor(up2));\n }", "public void CreateAccount(View view)\n {\n Toast.makeText(getApplicationContext(), \"Redirecting...\", \n Toast.LENGTH_SHORT).show();\n Intent i = new Intent(LoginView.this, Page_CreateAccount.class);\n startActivity(i);\n }", "public View(Controller controller) {\n this.controller = controller;\n jCheckBoxArrayList = new ArrayList<>();\n }", "public View() {\n initComponents();\n }", "void redirect();", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "@Test\r\n public void testShowAboutUs() {\r\n System.out.println(\"showAboutUs\");\r\n Controller instance = new Controller();\r\n instance.showAboutUs();\r\n }", "@Test(priority = 4)\n\tpublic void homePageRedirection() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect(validate);\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the Hero Image Product Validation testing\");\n\n\t}", "public static void testAddTodoView(){\n }", "protected abstract void initializeView();", "public abstract void setRenderRedirectViewId(String viewId);", "TestViewpoint createTestViewpoint();", "@Test\n public void testCriarGrupo_GrupoViewModel() throws Exception {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/grupo/criarGrupo\"))\n .andExpect(status().is3xxRedirection())\n .andExpect(view().name(\"redirect:criarGrupo\"));\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "@Test\r\n\tpublic void testContestant_Page() {\r\n\t\tnew Contestant_Page(myID, myEntryData);\r\n\t\t\r\n\t}", "public Redirector(String site, int port){ \n this.port = port;\n this.newSite = site; \n }", "@Test\n public void verifyOKRegexRedirectUri() throws Exception {\n\n final OAuthRegisteredService service = getRegisteredService(REGEX_REDIRECT_URI, SERVICE_NAME);\n\n final CentralOAuthService centralOAuthService = mock(CentralOAuthService.class);\n when(centralOAuthService.getRegisteredService(CLIENT_ID)).thenReturn(service);\n\n final MockHttpServletRequest mockRequest\n = new MockHttpServletRequest(\"GET\", CONTEXT + OAuthConstants.AUTHORIZE_URL);\n mockRequest.setParameter(OAuthConstants.RESPONSE_TYPE, RESPONSE_TYPE);\n mockRequest.setParameter(OAuthConstants.CLIENT_ID, CLIENT_ID);\n mockRequest.setParameter(OAuthConstants.REDIRECT_URI, REGEX_REDIRECT_URI);\n mockRequest.setParameter(OAuthConstants.ACCESS_TYPE, ACCESS_TYPE);\n mockRequest.setParameter(OAuthConstants.STATE, STATE);\n mockRequest.setParameter(OAuthConstants.SCOPE, SCOPE);\n\n final MockHttpServletResponse mockResponse = new MockHttpServletResponse();\n\n final OAuth20WrapperController oauth20WrapperController = new OAuth20WrapperController();\n oauth20WrapperController.setCentralOAuthService(centralOAuthService);\n oauth20WrapperController.setLoginUrl(CAS_URL);\n oauth20WrapperController.afterPropertiesSet();\n\n final ModelAndView modelAndView = oauth20WrapperController.handleRequest(mockRequest, mockResponse);\n assertTrue(modelAndView.getView() instanceof RedirectView);\n\n final RedirectView redirectView = (RedirectView) modelAndView.getView();\n assertTrue(redirectView.getUrl().contains(\"?service=http\"));\n assertTrue(redirectView.getUrl().endsWith(OAuthConstants.CALLBACK_AUTHORIZE_URL));\n\n final HttpSession session = mockRequest.getSession();\n assertEquals(Boolean.FALSE, session.getAttribute(OAuthConstants.BYPASS_APPROVAL_PROMPT));\n assertEquals(OAuthConstants.APPROVAL_PROMPT_AUTO, session.getAttribute(OAuthConstants.OAUTH20_APPROVAL_PROMPT));\n assertEquals(TokenType.OFFLINE, session.getAttribute(OAuthConstants.OAUTH20_TOKEN_TYPE));\n assertEquals(RESPONSE_TYPE, session.getAttribute(OAuthConstants.OAUTH20_RESPONSE_TYPE));\n assertEquals(CLIENT_ID, session.getAttribute(OAuthConstants.OAUTH20_CLIENT_ID));\n assertEquals(REGEX_REDIRECT_URI, session.getAttribute(OAuthConstants.OAUTH20_REDIRECT_URI));\n assertEquals(SERVICE_NAME, session.getAttribute(OAuthConstants.OAUTH20_SERVICE_NAME));\n assertEquals(SCOPE, session.getAttribute(OAuthConstants.OAUTH20_SCOPE));\n assertEquals(STATE, session.getAttribute(OAuthConstants.OAUTH20_STATE));\n }", "@Before\n public void setUp() {\n // Need to call start and resume to get the fragment that's been added\n homeController = Robolectric.buildActivity(AuthenticationActivity.class).\n create().start().resume().visible();\n homeActivity = (Activity) homeController.get();\n }", "public test() {\n\t\tsuper();\n\t}", "@Test\n public void testHome() {\n GenericServiceMockup<Person> personService = new GenericServiceMockup<Person>();\n homeController.setPrivilegeEvaluator(mockup);\n homeController.setPersonBean(personService);\n ModelAndView result = homeController.home();\n assertEquals(\"Wrong view name for exception page\", HomeController.HOME_VIEW, result.getViewName());\n }", "public void initView(){}", "public LoginPresenter(MainView mainView)\n {\n this.mainView = mainView;\n }", "public LoginController() {\r\n }", "protected void setUpView() throws Exception\n {\n UIViewRoot root = new UIViewRoot();\n root.setViewId(\"/viewId\");\n root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT);\n facesContext.setViewRoot(root);\n }", "public LoginPage() {\n }", "MainPresenter(MainContract.View view) {\n this.view = view;\n model = new AmicableModel();\n }", "@Test\n public void factoryMVC_integration_test() {\n\n AbstractFactory pFactory = FactoryProducer.getFactory(\"person\");\n Person person = pFactory.getPerson(\"Person\");\n PersonView pView = new PersonView();\n\n PersonController personController = new PersonController(person, pView);\n\n Assert.assertEquals(\"Person\", personController.getPersonName());\n personController.setPersonName(\"newName\");\n Assert.assertEquals(\"newName\", personController.getPersonName());\n\n\n }", "public PersonLoginController() {\n }", "public LoginView() {\n initComponents();\n }", "@Override\n protected void initView() {\n getPresenter().getRxManager().on(C.EVENT_LOGIN, new Action1<Object>() {\n\n @Override\n public void call(Object o) {\n\n Log.e(TAG, \"call() called with: o = [\" + o.toString() + \"]\"+o.getClass());\n }\n });\n\n }", "@SmallTest\n public void testView(){\n assertNotNull(mActivity);\n\n // Initialisiere das View Element\n final ListView listView = (ListView) mActivity.findViewById(R.id.activtiy_permission_management_list_view);\n\n assertNotNull(listView);\n }", "public TemplateController()\r\n {\r\n this(false);\r\n }", "public LoginController() {\r\n\r\n }", "public ContestantController(User theUser, ContestDatabaseManager theContestDBManager, EntryDatabaseManager theEntryDBManager, View theView) {\n\t\tmyUser = theUser;\n\t\tmyContestDBManager = theContestDBManager;\n\t\tmyEntryDBManager = theEntryDBManager;\n\t\tmyView = theView;\n\t\tviewHistory = new LinkedList<>();\n\t\tsetupBackFunctionality();\n\t\tsetupListView();\t\t\n\t}", "public RenderableTest()\n {\n }", "public CakeController(CakeView newCakeView) {\n cakeView = newCakeView;\n cakeModel = cakeView.getCakeModel();\n\n\n }", "public AppTest()\n {\n super(AppTest.class);\n }", "public LoginFormView() {\n initComponents();\n }", "@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}", "@Test\n\tpublic void testUrlEncode_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Override\n public void init(View view) {\n this.view = (BackstoryView) view;\n }", "@Test\n public void testLaunch(){\n View view = mRegisterActivity.findViewById(R.id.register_button);\n assertNotNull(view);\n }", "@Test\n public void testConstructorController() {\n assertEquals(controller, dao.getController());\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n\n System.out.println(\"Loaded FoodLogViewController\");\n\n// // Test getting the list of food records entered by the user\n// // These records should have already been created in a previous step.\n// updateView();\n// TestHarness.getInstance().testFoodLogViewControllerGetFoodRecords(foods);\n// // Test deleting a food record\n// deleteRecord();\n// TestHarness.getInstance().testFoodLogViewControllerDeleteFood(foods);\n// // Move on to the next test\n// TestHarness.getInstance().changeScene(\"/foodmood/Mood.fxml\");\n }", "public void createRedirector(String[] arguments)\n throws InvalidRedirectorException {\n this.redirector = Builder.buildRedirector(\"\", arguments);\n }", "public void setRedirect(String redirect) {\r\n\t\tthis.redirect = redirect;\r\n\t}", "protected abstract void initView();", "public HomeView() {\n overdueSkinTests = new HashMap<>();\n }", "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public MainView() {\r\n LoginOverlay login = new LoginOverlay();\r\n login.setOpened(true);\r\n LoginI18n i18n = LoginI18n.createDefault();\r\n i18n.setHeader(new LoginI18n.Header());\r\n i18n.getHeader().setTitle(\"Webvision\");\r\n i18n.getHeader().setDescription(\"Please login, if you don't have an account you will be redirected to finish registration.\");\r\n i18n.getForm().setUsername(\"Email\");\r\n i18n.getForm().setPassword(\"Password\");\r\n login.setI18n(i18n);\r\n login.addLoginListener(event -> {\r\n String email = event.getUsername();\r\n User user = userService.findByEmail(email);\r\n if (user == null) {\r\n login.close();\r\n UI.getCurrent().navigate(RegistrationView.ROUTE);\r\n } else {\r\n String password = event.getPassword();\r\n boolean isAuthenticated = password.equals(user.getPassword());\r\n if (isAuthenticated) {\r\n CurrentUser.setCurrentUser(user);\r\n login.close();\r\n UI.getCurrent().navigate(HomeView.ROUTE);\r\n }\r\n login.setError(true);\r\n }\r\n });\r\n add(login);\r\n }", "@Test\n public void first_player() {\n //Arrange scenario\n final TemplateEngineTester testHelper = new TemplateEngineTester();\n //Add a player to a new empty lobby\n when(request.queryParams(\"id\")).thenReturn(\"Name\");\n // To analyze what the Route created in the View-Model map you need\n // to be able to extract the argument to the TemplateEngine.render method.\n // Mock up the 'render' method by supplying a Mockito 'Answer' object\n // that captures the ModelAndView data passed to the template engine\n when(templateEngine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n // Invoke the test\n CuT.handle(request, response);\n\n //Check if UI received all necessary parameters\n testHelper.assertViewModelExists();\n testHelper.assertViewModelIsaMap();\n\n testHelper.assertViewModelAttribute(\"currentUser\", request.queryParams(\"id\"));\n testHelper.assertViewModelAttribute(\"title\", \"Welcome!\");\n testHelper.assertViewModelAttribute(\"message\", PostSignInRoute.WELCOME_MSG);\n }", "@Before\n public void setUp() {\n // Need to call start and resume to get the fragment that's been added\n activityController = Robolectric.buildActivity(AuthenticationActivity.class).\n create().start().resume().visible();\n authenticationActivity = (Activity) activityController.get();\n }", "private void initView() {\n\t\tlogin = (Button) pageViews.get(2).findViewById(R.id.sendbtn);\n\t\tlogin.setOnClickListener(this);\n\t}", "void redirect(Reagent reagent);", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n initViews();\r\n }", "@Test\n\tpublic void testRenderMergedOutputModel_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "public abstract void viewRun();", "public abstract String redirectTo();", "public abstract void initView();" ]
[ "0.71745706", "0.68332887", "0.6705264", "0.6652894", "0.65683025", "0.6431621", "0.62982273", "0.61912227", "0.6157762", "0.6034286", "0.6014072", "0.5985071", "0.59366626", "0.57805717", "0.57772046", "0.57597667", "0.57131374", "0.5685432", "0.5680777", "0.56579417", "0.5655654", "0.563679", "0.56360114", "0.56260055", "0.56186765", "0.560828", "0.55748683", "0.5548374", "0.55378467", "0.5525319", "0.552314", "0.54961604", "0.5470537", "0.53981644", "0.5394328", "0.53896576", "0.5387308", "0.5371826", "0.5359827", "0.53563225", "0.53319246", "0.53238565", "0.53178406", "0.5317651", "0.53150696", "0.53086406", "0.53014827", "0.5301358", "0.5291013", "0.52818376", "0.52680683", "0.5259138", "0.5248435", "0.52436346", "0.52303386", "0.5223847", "0.5202925", "0.5190047", "0.51884955", "0.51871914", "0.51851463", "0.51825476", "0.5180295", "0.5179752", "0.51793396", "0.51754254", "0.51711684", "0.5169483", "0.5167045", "0.5165582", "0.5157007", "0.51504844", "0.514794", "0.5140283", "0.5137836", "0.5129311", "0.51199275", "0.51178646", "0.5114813", "0.5113457", "0.5109314", "0.51067793", "0.51062113", "0.51056427", "0.5105296", "0.51037663", "0.5096001", "0.50944054", "0.508439", "0.50742364", "0.5073898", "0.50630987", "0.5058648", "0.5058363", "0.5057645", "0.50457925", "0.5044959", "0.5039719", "0.5034875", "0.5032569" ]
0.6469788
5
Run the RedirectView(String) constructor test.
@Test public void testRedirectView_2() throws Exception { String url = ""; RedirectView result = new RedirectView(url); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0 // at java.lang.ClassLoader.defineClass1(Native Method) // at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) // at java.lang.ClassLoader.defineClass(ClassLoader.java:621) // at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) // at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) // at java.net.URLClassLoader.access$000(URLClassLoader.java:58) // at java.net.URLClassLoader$1.run(URLClassLoader.java:197) // at java.security.AccessController.doPrivileged(Native Method) // at java.net.URLClassLoader.findClass(URLClassLoader.java:190) // at java.lang.ClassLoader.loadClass(ClassLoader.java:306) // at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62) // at java.lang.ClassLoader.loadClass(ClassLoader.java:247) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99) // at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205) // at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286) // at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158) // at java.lang.Thread.run(Thread.java:695) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString url = \"\";\n\n\t\tfixture.setUrl(url);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testGetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\n\t\tString result = fixture.getUrl();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testRedirectView_3()\n\t\tthrows Exception {\n\t\tString url = \"\";\n\t\tboolean contextRelative = true;\n\n\t\tRedirectView result = new RedirectView(url, contextRelative);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "public View(Controller contr) {\n this.contr = contr;\n testRun();\n }", "@Test\n\tpublic void testRedirectView_1()\n\t\tthrows Exception {\n\n\t\tRedirectView result = new RedirectView();\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testRedirectView_4()\n\t\tthrows Exception {\n\t\tString url = \"\";\n\t\tboolean contextRelative = true;\n\t\tboolean http10Compatible = true;\n\n\t\tRedirectView result = new RedirectView(url, contextRelative, http10Compatible);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testSendRedirect_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = false;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testSendRedirect_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testSetContextRelative_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean contextRelative = true;\n\n\t\tfixture.setContextRelative(contextRelative);\n\n\t\t// add additional test code here\n\t}", "private View() {}", "@Test\n\tpublic void testUrlEncode_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "void redirect();", "protected ReliedOnView() {}", "@Test(expected = java.io.IOException.class)\n\tpublic void testSendRedirect_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testSetEncodingScheme_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.setEncodingScheme(encodingScheme);\n\n\t\t// add additional test code here\n\t}", "public ControlUrlControler() {\r\n\r\n }", "public abstract String redirectTo();", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "@Test\n\tpublic void testUrlEncode_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public void testSetViews() {\n }", "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public OnlineVerificationView() {\n }", "public View(Controller contr) {\n this.contr = contr;\n }", "@Test\n public void oneRedirect() throws Exception {\n UrlPattern up1 = urlEqualTo(\"/\" + REDIRECT);\n stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", wireMock.url(TEST_FILE_NAME))));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n verify(1, getRequestedFor(up1));\n verify(1, getRequestedFor(up2));\n }", "@Test\n\tpublic void testRedirectToAboutUs() {\n\t\tServicesLogic.redirectToAboutUs();\n\t}", "private Views() {\n }", "@Test\n public void tenRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 10)));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n redirectWireMock.stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=10\");\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n redirectWireMock.verify(10, getRequestedFor(up1));\n redirectWireMock.verify(1, getRequestedFor(up2));\n }", "@Test\n\tpublic void testSetHttp10Compatible_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.setHttp10Compatible(http10Compatible);\n\n\t\t// add additional test code here\n\t}", "public LoginPageTest()\n\t{\n\t\tsuper();\n\t}", "private ViewFactory() {}", "public LoginPageTest()\n\t{\n\t\tsuper(); // calling TestBase Constructor\n\t}", "public Siginpagetest()\n\t{\n\t super();\n\t}", "public Redirector(String site, int port){ \n this.port = port;\n this.newSite = site; \n }", "public void setRedirect(String redirect) {\r\n\t\tthis.redirect = redirect;\r\n\t}", "public ControllerTest()\r\n {\r\n }", "public void testGetViews() {\n }", "public VisitAction() {\n }", "public void CreateAccount(View view)\n {\n Toast.makeText(getApplicationContext(), \"Redirecting...\", \n Toast.LENGTH_SHORT).show();\n Intent i = new Intent(LoginView.this, Page_CreateAccount.class);\n startActivity(i);\n }", "public static void testShowTodoView(){\n }", "@Test\n @Transactional\n public void testUrlsRequireAuthentication() throws Exception {\n final View view = viewTestTools.createView(\"TestView\");\n\n // View \"stream\" page.\n testUrlRequiresAuthentication(\"/stream/\" + view.getId(), false);\n }", "@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}", "void redirect(Reagent reagent);", "public void createRedirector(String[] arguments)\n throws InvalidRedirectorException {\n this.redirector = Builder.buildRedirector(\"\", arguments);\n }", "public abstract void setRenderRedirectViewId(String viewId);", "private static ResponseBuilder createRedirectResponse(String redirectUrl) throws WdkModelException {\n try {\n return Response.temporaryRedirect(new URI(redirectUrl));\n }\n catch (URISyntaxException e) {\n throw new WdkModelException(\"Redirect \" + redirectUrl + \" not a valid URI.\");\n }\n }", "public HomePageTest(){\n\t\tsuper();\n\t}", "@Test\r\n public void testShowAboutUs() {\r\n System.out.println(\"showAboutUs\");\r\n Controller instance = new Controller();\r\n instance.showAboutUs();\r\n }", "public RedirectServlet(final int status, final String location) {\n count_ = 0;\n status_ = status;\n location_ = location;\n }", "@Test\n public void verifyOKRegexRedirectUri() throws Exception {\n\n final OAuthRegisteredService service = getRegisteredService(REGEX_REDIRECT_URI, SERVICE_NAME);\n\n final CentralOAuthService centralOAuthService = mock(CentralOAuthService.class);\n when(centralOAuthService.getRegisteredService(CLIENT_ID)).thenReturn(service);\n\n final MockHttpServletRequest mockRequest\n = new MockHttpServletRequest(\"GET\", CONTEXT + OAuthConstants.AUTHORIZE_URL);\n mockRequest.setParameter(OAuthConstants.RESPONSE_TYPE, RESPONSE_TYPE);\n mockRequest.setParameter(OAuthConstants.CLIENT_ID, CLIENT_ID);\n mockRequest.setParameter(OAuthConstants.REDIRECT_URI, REGEX_REDIRECT_URI);\n mockRequest.setParameter(OAuthConstants.ACCESS_TYPE, ACCESS_TYPE);\n mockRequest.setParameter(OAuthConstants.STATE, STATE);\n mockRequest.setParameter(OAuthConstants.SCOPE, SCOPE);\n\n final MockHttpServletResponse mockResponse = new MockHttpServletResponse();\n\n final OAuth20WrapperController oauth20WrapperController = new OAuth20WrapperController();\n oauth20WrapperController.setCentralOAuthService(centralOAuthService);\n oauth20WrapperController.setLoginUrl(CAS_URL);\n oauth20WrapperController.afterPropertiesSet();\n\n final ModelAndView modelAndView = oauth20WrapperController.handleRequest(mockRequest, mockResponse);\n assertTrue(modelAndView.getView() instanceof RedirectView);\n\n final RedirectView redirectView = (RedirectView) modelAndView.getView();\n assertTrue(redirectView.getUrl().contains(\"?service=http\"));\n assertTrue(redirectView.getUrl().endsWith(OAuthConstants.CALLBACK_AUTHORIZE_URL));\n\n final HttpSession session = mockRequest.getSession();\n assertEquals(Boolean.FALSE, session.getAttribute(OAuthConstants.BYPASS_APPROVAL_PROMPT));\n assertEquals(OAuthConstants.APPROVAL_PROMPT_AUTO, session.getAttribute(OAuthConstants.OAUTH20_APPROVAL_PROMPT));\n assertEquals(TokenType.OFFLINE, session.getAttribute(OAuthConstants.OAUTH20_TOKEN_TYPE));\n assertEquals(RESPONSE_TYPE, session.getAttribute(OAuthConstants.OAUTH20_RESPONSE_TYPE));\n assertEquals(CLIENT_ID, session.getAttribute(OAuthConstants.OAUTH20_CLIENT_ID));\n assertEquals(REGEX_REDIRECT_URI, session.getAttribute(OAuthConstants.OAUTH20_REDIRECT_URI));\n assertEquals(SERVICE_NAME, session.getAttribute(OAuthConstants.OAUTH20_SERVICE_NAME));\n assertEquals(SCOPE, session.getAttribute(OAuthConstants.OAUTH20_SCOPE));\n assertEquals(STATE, session.getAttribute(OAuthConstants.OAUTH20_STATE));\n }", "public View() {\n // (this constructor is here just for the javadoc tag)\n }", "public static void testAddTodoView(){\n }", "TestViewpoint createTestViewpoint();", "public void ClickVtube(View view){\n MainActivity.redirectActivity(this,Vtube.class);\n\n\n }", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void first_player() {\n //Arrange scenario\n final TemplateEngineTester testHelper = new TemplateEngineTester();\n //Add a player to a new empty lobby\n when(request.queryParams(\"id\")).thenReturn(\"Name\");\n // To analyze what the Route created in the View-Model map you need\n // to be able to extract the argument to the TemplateEngine.render method.\n // Mock up the 'render' method by supplying a Mockito 'Answer' object\n // that captures the ModelAndView data passed to the template engine\n when(templateEngine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n // Invoke the test\n CuT.handle(request, response);\n\n //Check if UI received all necessary parameters\n testHelper.assertViewModelExists();\n testHelper.assertViewModelIsaMap();\n\n testHelper.assertViewModelAttribute(\"currentUser\", request.queryParams(\"id\"));\n testHelper.assertViewModelAttribute(\"title\", \"Welcome!\");\n testHelper.assertViewModelAttribute(\"message\", PostSignInRoute.WELCOME_MSG);\n }", "public LoginPageController() {\n\t}", "public abstract void viewRun();", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "View mo73990a(View view);", "public abstract String getRenderRedirectViewId();", "public CheckOutPageTest()\n\t{\n\t\tsuper();\n\t}", "@Test(expected = java.io.UnsupportedEncodingException.class)\n\tpublic void testUrlEncode_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public UrlValidatorTest(String testName) {\r\n super(testName);\r\n }", "@Test\n public void factoryMVC_integration_test() {\n\n AbstractFactory pFactory = FactoryProducer.getFactory(\"person\");\n Person person = pFactory.getPerson(\"Person\");\n PersonView pView = new PersonView();\n\n PersonController personController = new PersonController(person, pView);\n\n Assert.assertEquals(\"Person\", personController.getPersonName());\n personController.setPersonName(\"newName\");\n Assert.assertEquals(\"newName\", personController.getPersonName());\n\n\n }", "public UrlValidatorTest(String testName) {\n super(testName);\n }", "public UrlValidatorTest(String testName) {\n super(testName);\n }", "@Test\r\n\tpublic void testContestant_Page() {\r\n\t\tnew Contestant_Page(myID, myEntryData);\r\n\t\t\r\n\t}", "public ConsoleLogView(final Injector injector, final URL url) {\n super(injector, url);\n }", "public void ClickVtube(View view){\n redirectActivity(this,Vtube.class);\n }", "@Test(priority = 4)\n\tpublic void homePageRedirection() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect(validate);\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the Hero Image Product Validation testing\");\n\n\t}", "public LoginPage() {\n }", "@Test\n\t public void testGetHomePage() throws Exception{ \n HomeController controller = new HomeController();\n /* We don't have to pass any valid values here because all it does is to send the user to the home page*/\n ModelAndView modelAndView = controller.getHomePage(null, null, null); \n assertEquals(\"home\", modelAndView.getViewName());\n }", "@Test\n public void testSendInvitation() {\n try{\n System.out.println(\"sendInvitation\");\n String project_id = \"3\";\n String inviteUserId = \"6\";\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n instance.setProjectId(3);\n instance.setUserId(1);\n ModelAndView result = instance.sendInvitation(project_id, inviteUserId);\n// assertEquals(\"redirect:/projectMainView/3/team/show\", result);\n ModelAndViewAssert.assertViewName(result, \"redirect:/projectMainView/3/team/show\");\n }catch(Exception e)\n {\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Send invitation failed\");\n }\n }", "public MainView() {\r\n\t\tinitialize();\r\n\t}", "@Test\n public void testCriarGrupo_GrupoViewModel() throws Exception {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/grupo/criarGrupo\"))\n .andExpect(status().is3xxRedirection())\n .andExpect(view().name(\"redirect:criarGrupo\"));\n }", "@Test\n public void testHome() {\n GenericServiceMockup<Person> personService = new GenericServiceMockup<Person>();\n homeController.setPrivilegeEvaluator(mockup);\n homeController.setPersonBean(personService);\n ModelAndView result = homeController.home();\n assertEquals(\"Wrong view name for exception page\", HomeController.HOME_VIEW, result.getViewName());\n }", "public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}", "public View() {\n initComponents();\n }", "@SmallTest\n public void testView(){\n assertNotNull(mActivity);\n\n // Initialisiere das View Element\n final ListView listView = (ListView) mActivity.findViewById(R.id.activtiy_permission_management_list_view);\n\n assertNotNull(listView);\n }", "public test() {\n\t\tsuper();\n\t}", "@Test\n public void shouldBeAValidCustomerView() {\n Assert.assertTrue(customerService.isValid(view));\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "@Test\n public void testRegularOpen() {\n openUrl();\n }", "public RenderableTest()\n {\n }", "CartogramWizardShowURL (String url)\n\t{\n\t\tmUrl = url;\n\t\n\t}", "@Test\n\tpublic void testRenderMergedOutputModel_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testLaunch(){\n View view = mRegisterActivity.findViewById(R.id.register_button);\n assertNotNull(view);\n }", "public RedirectEventListener(String backpanel, String panel, Task task){\n this.backpanel=backpanel;\n this.panel=panel;\n this.task=task;\n }", "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "public abstract boolean isRenderRedirect();", "public MainView() {\r\n LoginOverlay login = new LoginOverlay();\r\n login.setOpened(true);\r\n LoginI18n i18n = LoginI18n.createDefault();\r\n i18n.setHeader(new LoginI18n.Header());\r\n i18n.getHeader().setTitle(\"Webvision\");\r\n i18n.getHeader().setDescription(\"Please login, if you don't have an account you will be redirected to finish registration.\");\r\n i18n.getForm().setUsername(\"Email\");\r\n i18n.getForm().setPassword(\"Password\");\r\n login.setI18n(i18n);\r\n login.addLoginListener(event -> {\r\n String email = event.getUsername();\r\n User user = userService.findByEmail(email);\r\n if (user == null) {\r\n login.close();\r\n UI.getCurrent().navigate(RegistrationView.ROUTE);\r\n } else {\r\n String password = event.getPassword();\r\n boolean isAuthenticated = password.equals(user.getPassword());\r\n if (isAuthenticated) {\r\n CurrentUser.setCurrentUser(user);\r\n login.close();\r\n UI.getCurrent().navigate(HomeView.ROUTE);\r\n }\r\n login.setError(true);\r\n }\r\n });\r\n add(login);\r\n }", "public LoginPresenter(MainView mainView)\n {\n this.mainView = mainView;\n }", "protected abstract void initializeView();", "@Test\n public void testAddDemotivatorPageRequiresAuthentication(){\n \tResponse response = GET(\"/add\");\n \n assertNotNull(response);\n assertStatus(302, response);\n \n assertHeaderEquals(\"Location\", \"/secure/login\", response);\n }", "public TemplateController()\r\n {\r\n this(false);\r\n }", "public void initView(){}", "GrabActionController createGrabActionController(PersistentView view);", "public View(Controller controller) {\n this.controller = controller;\n jCheckBoxArrayList = new ArrayList<>();\n }", "public TutorialStep1() {\n\n }", "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}" ]
[ "0.7306326", "0.70179176", "0.6653829", "0.6483789", "0.64056504", "0.63931566", "0.6370886", "0.60463357", "0.5949584", "0.59362817", "0.58445853", "0.57304806", "0.5689163", "0.5687661", "0.56828094", "0.55912983", "0.5559235", "0.55546004", "0.55491024", "0.5543177", "0.5531247", "0.5523464", "0.5520492", "0.5501493", "0.54898536", "0.5455079", "0.5447847", "0.5442301", "0.5438791", "0.5425704", "0.54190123", "0.54096156", "0.53957033", "0.5364163", "0.5364013", "0.53611076", "0.535174", "0.5344567", "0.53376067", "0.5330704", "0.53250116", "0.53240424", "0.53125805", "0.52853435", "0.5276215", "0.52676857", "0.5254873", "0.5251473", "0.5245699", "0.5221498", "0.5217716", "0.51519877", "0.51480895", "0.51374155", "0.5130649", "0.51271635", "0.5115697", "0.5108911", "0.5090362", "0.50887966", "0.508527", "0.5083057", "0.5082486", "0.507592", "0.50654817", "0.50654817", "0.5059861", "0.50522", "0.5047507", "0.5016173", "0.49781743", "0.49751157", "0.49629766", "0.49405816", "0.49405685", "0.4924208", "0.4915563", "0.49124277", "0.4902378", "0.49018878", "0.48935336", "0.48920846", "0.48848695", "0.48833448", "0.48812252", "0.48761302", "0.48618695", "0.48599526", "0.4858505", "0.48563364", "0.4848786", "0.4848784", "0.48356593", "0.48334217", "0.4831192", "0.48241118", "0.48100746", "0.48088297", "0.48004383", "0.4796462" ]
0.6604412
3
Run the RedirectView(String,boolean) constructor test.
@Test public void testRedirectView_3() throws Exception { String url = ""; boolean contextRelative = true; RedirectView result = new RedirectView(url, contextRelative); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0 // at java.lang.ClassLoader.defineClass1(Native Method) // at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) // at java.lang.ClassLoader.defineClass(ClassLoader.java:621) // at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) // at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) // at java.net.URLClassLoader.access$000(URLClassLoader.java:58) // at java.net.URLClassLoader$1.run(URLClassLoader.java:197) // at java.security.AccessController.doPrivileged(Native Method) // at java.net.URLClassLoader.findClass(URLClassLoader.java:190) // at java.lang.ClassLoader.loadClass(ClassLoader.java:306) // at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62) // at java.lang.ClassLoader.loadClass(ClassLoader.java:247) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99) // at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205) // at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286) // at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158) // at java.lang.Thread.run(Thread.java:695) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString url = \"\";\n\n\t\tfixture.setUrl(url);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testGetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\n\t\tString result = fixture.getUrl();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testSendRedirect_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = false;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testRedirectView_2()\n\t\tthrows Exception {\n\t\tString url = \"\";\n\n\t\tRedirectView result = new RedirectView(url);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testRedirectView_4()\n\t\tthrows Exception {\n\t\tString url = \"\";\n\t\tboolean contextRelative = true;\n\t\tboolean http10Compatible = true;\n\n\t\tRedirectView result = new RedirectView(url, contextRelative, http10Compatible);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testRedirectView_1()\n\t\tthrows Exception {\n\n\t\tRedirectView result = new RedirectView();\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testSendRedirect_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testSetContextRelative_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean contextRelative = true;\n\n\t\tfixture.setContextRelative(contextRelative);\n\n\t\t// add additional test code here\n\t}", "public View(Controller contr) {\n this.contr = contr;\n testRun();\n }", "void redirect();", "public abstract boolean isRenderRedirect();", "private View() {}", "@Test\n\tpublic void testSetHttp10Compatible_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.setHttp10Compatible(http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test(expected = java.io.IOException.class)\n\tpublic void testSendRedirect_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Override\n\tpublic final boolean isRedirect()\n\t{\n\t\treturn redirect;\n\t}", "@Test\n\tpublic void testSetEncodingScheme_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.setEncodingScheme(encodingScheme);\n\n\t\t// add additional test code here\n\t}", "public abstract String redirectTo();", "public void setRedirect(String redirect) {\r\n\t\tthis.redirect = redirect;\r\n\t}", "protected ReliedOnView() {}", "@Test\n\tpublic void testUrlEncode_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public void testSetViews() {\n }", "public abstract void setRenderRedirectViewId(String viewId);", "void redirect(Reagent reagent);", "@Override\r\n\tpublic boolean isRedirect() {\n\t\treturn false;\r\n\t}", "@Test\n\tpublic void testRedirectToAboutUs() {\n\t\tServicesLogic.redirectToAboutUs();\n\t}", "public OnlineVerificationView() {\n }", "@Test\n @Transactional\n public void testUrlsRequireAuthentication() throws Exception {\n final View view = viewTestTools.createView(\"TestView\");\n\n // View \"stream\" page.\n testUrlRequiresAuthentication(\"/stream/\" + view.getId(), false);\n }", "@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}", "private static ResponseBuilder createRedirectResponse(String redirectUrl) throws WdkModelException {\n try {\n return Response.temporaryRedirect(new URI(redirectUrl));\n }\n catch (URISyntaxException e) {\n throw new WdkModelException(\"Redirect \" + redirectUrl + \" not a valid URI.\");\n }\n }", "@Test\n public void oneRedirect() throws Exception {\n UrlPattern up1 = urlEqualTo(\"/\" + REDIRECT);\n stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", wireMock.url(TEST_FILE_NAME))));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n verify(1, getRequestedFor(up1));\n verify(1, getRequestedFor(up2));\n }", "private ViewFactory() {}", "public void setInstanceFollowRedirects(boolean paramBoolean) {\n/* 345 */ this.delegate.setInstanceFollowRedirects(paramBoolean);\n/* */ }", "@Override public void showSuccessfulLogin() {\n //Set the view state\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowSuccessfulLogin();\n\n getActivity().finish();\n //Ici qu'on fait la redirection pour la prochaine View\n Intent homepage = new Intent(getActivity(), DashboardActivity.class);\n startActivity(homepage);\n }", "public Redirector(String site, int port){ \n this.port = port;\n this.newSite = site; \n }", "public void ClickVtube(View view){\n MainActivity.redirectActivity(this,Vtube.class);\n\n\n }", "public void CreateAccount(View view)\n {\n Toast.makeText(getApplicationContext(), \"Redirecting...\", \n Toast.LENGTH_SHORT).show();\n Intent i = new Intent(LoginView.this, Page_CreateAccount.class);\n startActivity(i);\n }", "private Views() {\n }", "public abstract void viewRun();", "@Test\n public void tenRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 10)));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n redirectWireMock.stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=10\");\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n redirectWireMock.verify(10, getRequestedFor(up1));\n redirectWireMock.verify(1, getRequestedFor(up2));\n }", "TestViewpoint createTestViewpoint();", "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public static void testShowTodoView(){\n }", "public RedirectServlet(final int status, final String location) {\n count_ = 0;\n status_ = status;\n location_ = location;\n }", "@Test\n\tpublic void testUrlEncode_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public void ClickVtube(View view){\n redirectActivity(this,Vtube.class);\n }", "public void createRedirector(String[] arguments)\n throws InvalidRedirectorException {\n this.redirector = Builder.buildRedirector(\"\", arguments);\n }", "public abstract String getRenderRedirectViewId();", "View mo73990a(View view);", "public View(Controller contr) {\n this.contr = contr;\n }", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public static void testAddTodoView(){\n }", "public Siginpagetest()\n\t{\n\t super();\n\t}", "public ControlUrlControler() {\r\n\r\n }", "public VisitAction() {\n }", "public void testGetViews() {\n }", "public View() {\n // (this constructor is here just for the javadoc tag)\n }", "@Test\n public void shouldBeAValidCustomerView() {\n Assert.assertTrue(customerService.isValid(view));\n }", "@Test(priority = 4)\n\tpublic void homePageRedirection() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect(validate);\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the Hero Image Product Validation testing\");\n\n\t}", "public TemplateController()\r\n {\r\n this(false);\r\n }", "public interface Redirectator {\n\n void prepareRedirection(RedirectCommand cmd);\n\n void cleanup();\n}", "void redirectToLogin();", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "public native void redirect(String url) /*-{\r\n \r\n \r\n\t$wnd.open(url,\"mainwindow\");\r\n\t\r\n }-*/;", "@Test\n public void verifyOKRegexRedirectUri() throws Exception {\n\n final OAuthRegisteredService service = getRegisteredService(REGEX_REDIRECT_URI, SERVICE_NAME);\n\n final CentralOAuthService centralOAuthService = mock(CentralOAuthService.class);\n when(centralOAuthService.getRegisteredService(CLIENT_ID)).thenReturn(service);\n\n final MockHttpServletRequest mockRequest\n = new MockHttpServletRequest(\"GET\", CONTEXT + OAuthConstants.AUTHORIZE_URL);\n mockRequest.setParameter(OAuthConstants.RESPONSE_TYPE, RESPONSE_TYPE);\n mockRequest.setParameter(OAuthConstants.CLIENT_ID, CLIENT_ID);\n mockRequest.setParameter(OAuthConstants.REDIRECT_URI, REGEX_REDIRECT_URI);\n mockRequest.setParameter(OAuthConstants.ACCESS_TYPE, ACCESS_TYPE);\n mockRequest.setParameter(OAuthConstants.STATE, STATE);\n mockRequest.setParameter(OAuthConstants.SCOPE, SCOPE);\n\n final MockHttpServletResponse mockResponse = new MockHttpServletResponse();\n\n final OAuth20WrapperController oauth20WrapperController = new OAuth20WrapperController();\n oauth20WrapperController.setCentralOAuthService(centralOAuthService);\n oauth20WrapperController.setLoginUrl(CAS_URL);\n oauth20WrapperController.afterPropertiesSet();\n\n final ModelAndView modelAndView = oauth20WrapperController.handleRequest(mockRequest, mockResponse);\n assertTrue(modelAndView.getView() instanceof RedirectView);\n\n final RedirectView redirectView = (RedirectView) modelAndView.getView();\n assertTrue(redirectView.getUrl().contains(\"?service=http\"));\n assertTrue(redirectView.getUrl().endsWith(OAuthConstants.CALLBACK_AUTHORIZE_URL));\n\n final HttpSession session = mockRequest.getSession();\n assertEquals(Boolean.FALSE, session.getAttribute(OAuthConstants.BYPASS_APPROVAL_PROMPT));\n assertEquals(OAuthConstants.APPROVAL_PROMPT_AUTO, session.getAttribute(OAuthConstants.OAUTH20_APPROVAL_PROMPT));\n assertEquals(TokenType.OFFLINE, session.getAttribute(OAuthConstants.OAUTH20_TOKEN_TYPE));\n assertEquals(RESPONSE_TYPE, session.getAttribute(OAuthConstants.OAUTH20_RESPONSE_TYPE));\n assertEquals(CLIENT_ID, session.getAttribute(OAuthConstants.OAUTH20_CLIENT_ID));\n assertEquals(REGEX_REDIRECT_URI, session.getAttribute(OAuthConstants.OAUTH20_REDIRECT_URI));\n assertEquals(SERVICE_NAME, session.getAttribute(OAuthConstants.OAUTH20_SERVICE_NAME));\n assertEquals(SCOPE, session.getAttribute(OAuthConstants.OAUTH20_SCOPE));\n assertEquals(STATE, session.getAttribute(OAuthConstants.OAUTH20_STATE));\n }", "public View(Controller controller) {\n this.controller = controller;\n jCheckBoxArrayList = new ArrayList<>();\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}", "public interface LoginView extends BaseView {\n\n void showLoginResult(boolean isSuccess);\n\n}", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "public LoginPageTest()\n\t{\n\t\tsuper();\n\t}", "public void loginProcessing(RedActivity view){\n\n Log.d(\"franco\",\"insideloginProcess\");\n Log.d(\"franco\",\"validFlag: **\" + validFlag + \"**\");\n if (validFlag.equals(\"valid\")) {\n Intent goToIntent = new Intent(this, BlueActivity.class);\n startActivity(goToIntent);\n } else\n Toast.makeText(this, \"Wrong username or password, try again\", Toast.LENGTH_LONG).show();\n }", "public SersorLTest(String text, Boolean visible) {\n\t\tsuper(text, visible);\n\t}", "@Override\n public boolean onCreateWindow(WebView view, boolean isDialog,\n boolean isUserGesture, Message resultMsg) {\n\n WebView.HitTestResult result = view.getHitTestResult();\n String url = result.getExtra();\n\n if(url != null && url.indexOf(\"about:blank\")>-1){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n return true;\n }else{\n WebView newWebView = new WebView(MainActivity.this);\n view.addView(newWebView);\n WebView.WebViewTransport transport = (WebView.WebViewTransport) resultMsg.obj;\n\n transport.setWebView(newWebView);\n resultMsg.sendToTarget();\n return true;\n }\n\n }", "@Test\n\tpublic void testRenderMergedOutputModel_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "public void redirectToPlan() {\n setResponsePage( new RedirectPage( \"plan\" ) );\n }", "void onSuccessRedirection(Response object, int taskID);", "public void setRedirectUrl(String redirectUrl) {\n this.redirectUrl = redirectUrl;\n }", "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "public RedirectEventListener(String backpanel, String panel, Task task){\n this.backpanel=backpanel;\n this.panel=panel;\n this.task=task;\n }", "GrabActionController createGrabActionController(PersistentView view);", "@Test\n public void factoryMVC_integration_test() {\n\n AbstractFactory pFactory = FactoryProducer.getFactory(\"person\");\n Person person = pFactory.getPerson(\"Person\");\n PersonView pView = new PersonView();\n\n PersonController personController = new PersonController(person, pView);\n\n Assert.assertEquals(\"Person\", personController.getPersonName());\n personController.setPersonName(\"newName\");\n Assert.assertEquals(\"newName\", personController.getPersonName());\n\n\n }", "@Test\r\n public void testShowAboutUs() {\r\n System.out.println(\"showAboutUs\");\r\n Controller instance = new Controller();\r\n instance.showAboutUs();\r\n }", "public LoginPageTest()\n\t{\n\t\tsuper(); // calling TestBase Constructor\n\t}", "@Override\n public void doValid() {\n ActivityUtils.startActivity(LoginActivity.class);\n }", "@Test\n public void testSendInvitation() {\n try{\n System.out.println(\"sendInvitation\");\n String project_id = \"3\";\n String inviteUserId = \"6\";\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n instance.setProjectId(3);\n instance.setUserId(1);\n ModelAndView result = instance.sendInvitation(project_id, inviteUserId);\n// assertEquals(\"redirect:/projectMainView/3/team/show\", result);\n ModelAndViewAssert.assertViewName(result, \"redirect:/projectMainView/3/team/show\");\n }catch(Exception e)\n {\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Send invitation failed\");\n }\n }", "public FillInTheBlankController(){\n check = false;\n }", "@Override\n public void onClick(View view) {\n if (testMode) {\n startDashboard();\n } else {\n attemptLogin();\n }\n }", "@Test\n public void testAddDemotivatorPageRequiresAuthentication(){\n \tResponse response = GET(\"/add\");\n \n assertNotNull(response);\n assertStatus(302, response);\n \n assertHeaderEquals(\"Location\", \"/secure/login\", response);\n }", "private void switchView(Class destination, int intentType) {\r\n\t Intent intent = new Intent(this, destination);\r\n intent.setFlags(intentType);\r\n startActivity(intent);\r\n\t}", "public abstract boolean isRenderRedirectAfterDispatch();", "protected abstract void initializeView();", "public void initView(){}", "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "public interface MainView extends MvpView {\n public void setAuthorized(boolean isAuthorized);\n}", "@Test\r\n\tpublic void testContestant_Page() {\r\n\t\tnew Contestant_Page(myID, myEntryData);\r\n\t\t\r\n\t}", "@Test\n\tpublic void testRenderMergedOutputModel_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", false, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "public boolean isRedirect() {\r\n\r\n\t\tPattern pattern = Pattern.compile(\"#(.*)redirect(.*)\",\r\n\t\t\t\tPattern.CASE_INSENSITIVE);\r\n\t\tif (pattern.matcher(text).matches()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\t\r\n\t\treturn false;\r\n\t}", "public HomePageTest(){\n\t\tsuper();\n\t}", "@SmallTest\n public void testView(){\n assertNotNull(mActivity);\n\n // Initialisiere das View Element\n final ListView listView = (ListView) mActivity.findViewById(R.id.activtiy_permission_management_list_view);\n\n assertNotNull(listView);\n }", "public void isRedirectionCorrect() {\n\n\t\tString title = WebUtility.getTitle();\n\t\tAssert.assertEquals(title, data.getValidatingData(\"homepage_Title\"));\n\t\tSystem.out.println(\"Redirection is on the correct page\");\n\t}" ]
[ "0.7105154", "0.6686538", "0.6393688", "0.63294333", "0.62357795", "0.61779886", "0.60702443", "0.6048039", "0.58769023", "0.5874664", "0.5733394", "0.56836104", "0.56011325", "0.55538166", "0.55105764", "0.550406", "0.5430273", "0.5423676", "0.5410321", "0.5407441", "0.53997064", "0.5362282", "0.5321971", "0.52984583", "0.5281118", "0.5276047", "0.5268213", "0.5263771", "0.52581203", "0.52545536", "0.52504826", "0.52299196", "0.5198764", "0.5194775", "0.5180677", "0.51731855", "0.5140962", "0.5138588", "0.5134648", "0.51332915", "0.51219714", "0.5120219", "0.51077807", "0.5098053", "0.50792164", "0.5066991", "0.50513744", "0.5049885", "0.50249046", "0.5013388", "0.49968776", "0.49896786", "0.49896067", "0.4980464", "0.4977755", "0.49613166", "0.49433583", "0.49420494", "0.49396655", "0.49392077", "0.49220812", "0.49185142", "0.49141955", "0.49059528", "0.48983875", "0.48968536", "0.4893371", "0.48717883", "0.48445326", "0.48434868", "0.48396808", "0.48358893", "0.48311868", "0.4828493", "0.48214668", "0.48122594", "0.47981867", "0.47952193", "0.47938165", "0.47865587", "0.47769842", "0.4759061", "0.47539648", "0.47388107", "0.47340262", "0.4727304", "0.47257555", "0.47230417", "0.47116017", "0.47113866", "0.47107753", "0.47089663", "0.4708633", "0.47069818", "0.47049236", "0.47045752", "0.4698314", "0.46899584", "0.46893418", "0.46838614" ]
0.6464339
2
Run the RedirectView(String,boolean,boolean) constructor test.
@Test public void testRedirectView_4() throws Exception { String url = ""; boolean contextRelative = true; boolean http10Compatible = true; RedirectView result = new RedirectView(url, contextRelative, http10Compatible); // add additional test code here // An unexpected exception was thrown in user code while executing this test: // java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0 // at java.lang.ClassLoader.defineClass1(Native Method) // at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) // at java.lang.ClassLoader.defineClass(ClassLoader.java:621) // at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) // at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) // at java.net.URLClassLoader.access$000(URLClassLoader.java:58) // at java.net.URLClassLoader$1.run(URLClassLoader.java:197) // at java.security.AccessController.doPrivileged(Native Method) // at java.net.URLClassLoader.findClass(URLClassLoader.java:190) // at java.lang.ClassLoader.loadClass(ClassLoader.java:306) // at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62) // at java.lang.ClassLoader.loadClass(ClassLoader.java:247) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99) // at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205) // at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425) // at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286) // at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158) // at java.lang.Thread.run(Thread.java:695) assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString url = \"\";\n\n\t\tfixture.setUrl(url);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testGetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\n\t\tString result = fixture.getUrl();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testRedirectView_3()\n\t\tthrows Exception {\n\t\tString url = \"\";\n\t\tboolean contextRelative = true;\n\n\t\tRedirectView result = new RedirectView(url, contextRelative);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testSendRedirect_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = false;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testRedirectView_2()\n\t\tthrows Exception {\n\t\tString url = \"\";\n\n\t\tRedirectView result = new RedirectView(url);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testRedirectView_1()\n\t\tthrows Exception {\n\n\t\tRedirectView result = new RedirectView();\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testSetContextRelative_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean contextRelative = true;\n\n\t\tfixture.setContextRelative(contextRelative);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testSendRedirect_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "public View(Controller contr) {\n this.contr = contr;\n testRun();\n }", "private View() {}", "void redirect();", "public abstract boolean isRenderRedirect();", "@Test\n\tpublic void testSetHttp10Compatible_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.setHttp10Compatible(http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testSetEncodingScheme_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.setEncodingScheme(encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected ReliedOnView() {}", "@Test(expected = java.io.IOException.class)\n\tpublic void testSendRedirect_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "public void testSetViews() {\n }", "public abstract void setRenderRedirectViewId(String viewId);", "public OnlineVerificationView() {\n }", "public void setRedirect(String redirect) {\r\n\t\tthis.redirect = redirect;\r\n\t}", "public void setInstanceFollowRedirects(boolean paramBoolean) {\n/* 345 */ this.delegate.setInstanceFollowRedirects(paramBoolean);\n/* */ }", "@Override\n\tpublic final boolean isRedirect()\n\t{\n\t\treturn redirect;\n\t}", "@Test\n\tpublic void testUrlEncode_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private ViewFactory() {}", "public abstract String redirectTo();", "public Redirector(String site, int port){ \n this.port = port;\n this.newSite = site; \n }", "private Views() {\n }", "void redirect(Reagent reagent);", "private static ResponseBuilder createRedirectResponse(String redirectUrl) throws WdkModelException {\n try {\n return Response.temporaryRedirect(new URI(redirectUrl));\n }\n catch (URISyntaxException e) {\n throw new WdkModelException(\"Redirect \" + redirectUrl + \" not a valid URI.\");\n }\n }", "public void ClickVtube(View view){\n MainActivity.redirectActivity(this,Vtube.class);\n\n\n }", "TestViewpoint createTestViewpoint();", "public void CreateAccount(View view)\n {\n Toast.makeText(getApplicationContext(), \"Redirecting...\", \n Toast.LENGTH_SHORT).show();\n Intent i = new Intent(LoginView.this, Page_CreateAccount.class);\n startActivity(i);\n }", "public void createRedirector(String[] arguments)\n throws InvalidRedirectorException {\n this.redirector = Builder.buildRedirector(\"\", arguments);\n }", "public View(Controller contr) {\n this.contr = contr;\n }", "@Test\n @Transactional\n public void testUrlsRequireAuthentication() throws Exception {\n final View view = viewTestTools.createView(\"TestView\");\n\n // View \"stream\" page.\n testUrlRequiresAuthentication(\"/stream/\" + view.getId(), false);\n }", "View mo73990a(View view);", "@Test\n public void oneRedirect() throws Exception {\n UrlPattern up1 = urlEqualTo(\"/\" + REDIRECT);\n stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", wireMock.url(TEST_FILE_NAME))));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n verify(1, getRequestedFor(up1));\n verify(1, getRequestedFor(up2));\n }", "@Override\r\n\tpublic boolean isRedirect() {\n\t\treturn false;\r\n\t}", "public abstract void viewRun();", "@Override public void showSuccessfulLogin() {\n //Set the view state\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowSuccessfulLogin();\n\n getActivity().finish();\n //Ici qu'on fait la redirection pour la prochaine View\n Intent homepage = new Intent(getActivity(), DashboardActivity.class);\n startActivity(homepage);\n }", "public View() {\n // (this constructor is here just for the javadoc tag)\n }", "public RedirectServlet(final int status, final String location) {\n count_ = 0;\n status_ = status;\n location_ = location;\n }", "public void ClickVtube(View view){\n redirectActivity(this,Vtube.class);\n }", "@Test\n\tpublic void testRedirectToAboutUs() {\n\t\tServicesLogic.redirectToAboutUs();\n\t}", "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public static void testShowTodoView(){\n }", "public ControlUrlControler() {\r\n\r\n }", "public View(Controller controller) {\n this.controller = controller;\n jCheckBoxArrayList = new ArrayList<>();\n }", "@Test\n\tpublic void testUrlEncode_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}", "public TemplateController()\r\n {\r\n this(false);\r\n }", "public Siginpagetest()\n\t{\n\t super();\n\t}", "public VisitAction() {\n }", "@Test\n public void tenRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 10)));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n redirectWireMock.stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=10\");\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n redirectWireMock.verify(10, getRequestedFor(up1));\n redirectWireMock.verify(1, getRequestedFor(up2));\n }", "public static void testAddTodoView(){\n }", "@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}", "public abstract String getRenderRedirectViewId();", "public interface Redirectator {\n\n void prepareRedirection(RedirectCommand cmd);\n\n void cleanup();\n}", "public RedirectEventListener(String backpanel, String panel, Task task){\n this.backpanel=backpanel;\n this.panel=panel;\n this.task=task;\n }", "public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}", "public native void redirect(String url) /*-{\r\n \r\n \r\n\t$wnd.open(url,\"mainwindow\");\r\n\t\r\n }-*/;", "public void testGetViews() {\n }", "public interface LoginView extends BaseView {\n\n void showLoginResult(boolean isSuccess);\n\n}", "public void loginProcessing(RedActivity view){\n\n Log.d(\"franco\",\"insideloginProcess\");\n Log.d(\"franco\",\"validFlag: **\" + validFlag + \"**\");\n if (validFlag.equals(\"valid\")) {\n Intent goToIntent = new Intent(this, BlueActivity.class);\n startActivity(goToIntent);\n } else\n Toast.makeText(this, \"Wrong username or password, try again\", Toast.LENGTH_LONG).show();\n }", "public SersorLTest(String text, Boolean visible) {\n\t\tsuper(text, visible);\n\t}", "public abstract boolean mo2514C(View view, View view2, boolean z, boolean z2);", "void redirectToLogin();", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void shouldBeAValidCustomerView() {\n Assert.assertTrue(customerService.isValid(view));\n }", "public LoginPageTest()\n\t{\n\t\tsuper();\n\t}", "@Override\n public boolean onCreateWindow(WebView view, boolean isDialog,\n boolean isUserGesture, Message resultMsg) {\n\n WebView.HitTestResult result = view.getHitTestResult();\n String url = result.getExtra();\n\n if(url != null && url.indexOf(\"about:blank\")>-1){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n startActivity(intent);\n return true;\n }else{\n WebView newWebView = new WebView(MainActivity.this);\n view.addView(newWebView);\n WebView.WebViewTransport transport = (WebView.WebViewTransport) resultMsg.obj;\n\n transport.setWebView(newWebView);\n resultMsg.sendToTarget();\n return true;\n }\n\n }", "GrabActionController createGrabActionController(PersistentView view);", "public interface MainView extends MvpView {\n public void setAuthorized(boolean isAuthorized);\n}", "public void initView(){}", "@Test\n\tpublic void testRenderMergedOutputModel_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}", "public void setRedirectUrl(String redirectUrl) {\n this.redirectUrl = redirectUrl;\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "void onSuccessRedirection(Response object, int taskID);", "@Test\n public void verifyOKRegexRedirectUri() throws Exception {\n\n final OAuthRegisteredService service = getRegisteredService(REGEX_REDIRECT_URI, SERVICE_NAME);\n\n final CentralOAuthService centralOAuthService = mock(CentralOAuthService.class);\n when(centralOAuthService.getRegisteredService(CLIENT_ID)).thenReturn(service);\n\n final MockHttpServletRequest mockRequest\n = new MockHttpServletRequest(\"GET\", CONTEXT + OAuthConstants.AUTHORIZE_URL);\n mockRequest.setParameter(OAuthConstants.RESPONSE_TYPE, RESPONSE_TYPE);\n mockRequest.setParameter(OAuthConstants.CLIENT_ID, CLIENT_ID);\n mockRequest.setParameter(OAuthConstants.REDIRECT_URI, REGEX_REDIRECT_URI);\n mockRequest.setParameter(OAuthConstants.ACCESS_TYPE, ACCESS_TYPE);\n mockRequest.setParameter(OAuthConstants.STATE, STATE);\n mockRequest.setParameter(OAuthConstants.SCOPE, SCOPE);\n\n final MockHttpServletResponse mockResponse = new MockHttpServletResponse();\n\n final OAuth20WrapperController oauth20WrapperController = new OAuth20WrapperController();\n oauth20WrapperController.setCentralOAuthService(centralOAuthService);\n oauth20WrapperController.setLoginUrl(CAS_URL);\n oauth20WrapperController.afterPropertiesSet();\n\n final ModelAndView modelAndView = oauth20WrapperController.handleRequest(mockRequest, mockResponse);\n assertTrue(modelAndView.getView() instanceof RedirectView);\n\n final RedirectView redirectView = (RedirectView) modelAndView.getView();\n assertTrue(redirectView.getUrl().contains(\"?service=http\"));\n assertTrue(redirectView.getUrl().endsWith(OAuthConstants.CALLBACK_AUTHORIZE_URL));\n\n final HttpSession session = mockRequest.getSession();\n assertEquals(Boolean.FALSE, session.getAttribute(OAuthConstants.BYPASS_APPROVAL_PROMPT));\n assertEquals(OAuthConstants.APPROVAL_PROMPT_AUTO, session.getAttribute(OAuthConstants.OAUTH20_APPROVAL_PROMPT));\n assertEquals(TokenType.OFFLINE, session.getAttribute(OAuthConstants.OAUTH20_TOKEN_TYPE));\n assertEquals(RESPONSE_TYPE, session.getAttribute(OAuthConstants.OAUTH20_RESPONSE_TYPE));\n assertEquals(CLIENT_ID, session.getAttribute(OAuthConstants.OAUTH20_CLIENT_ID));\n assertEquals(REGEX_REDIRECT_URI, session.getAttribute(OAuthConstants.OAUTH20_REDIRECT_URI));\n assertEquals(SERVICE_NAME, session.getAttribute(OAuthConstants.OAUTH20_SERVICE_NAME));\n assertEquals(SCOPE, session.getAttribute(OAuthConstants.OAUTH20_SCOPE));\n assertEquals(STATE, session.getAttribute(OAuthConstants.OAUTH20_STATE));\n }", "public AuthenticationFilter() {\n\t\turlRedirect = Params.get(\"LOGIN_URL_REDIRECT\");\n\t\tnextVarName = Params.get(\"LOGIN_URL_REDIRECT_VAR_NAME\");\n\n\t\tdefinedUrlLogin = !Is.empty(urlRedirect);\n\t}", "private void switchView(Class destination, int intentType) {\r\n\t Intent intent = new Intent(this, destination);\r\n intent.setFlags(intentType);\r\n startActivity(intent);\r\n\t}", "View createView();", "public LoginPageTest()\n\t{\n\t\tsuper(); // calling TestBase Constructor\n\t}", "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected abstract void initializeView();", "public LoginPresenter(MainView mainView)\n {\n this.mainView = mainView;\n }", "@Test\n public void factoryMVC_integration_test() {\n\n AbstractFactory pFactory = FactoryProducer.getFactory(\"person\");\n Person person = pFactory.getPerson(\"Person\");\n PersonView pView = new PersonView();\n\n PersonController personController = new PersonController(person, pView);\n\n Assert.assertEquals(\"Person\", personController.getPersonName());\n personController.setPersonName(\"newName\");\n Assert.assertEquals(\"newName\", personController.getPersonName());\n\n\n }", "public void setView(java.lang.Boolean view) {\n this.view = view;\n }", "public void redirectToPlan() {\n setResponsePage( new RedirectPage( \"plan\" ) );\n }", "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Override\n\tpublic void setView(Resultado resultado, HttpServletRequest request, HttpServletResponse response) {\n\n\t}", "public FillInTheBlankController(){\n check = false;\n }", "@Test(priority = 4)\n\tpublic void homePageRedirection() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect(validate);\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the Hero Image Product Validation testing\");\n\n\t}", "public void washingtonTrue(View view) { //Sets washington to be true\n washington = true;\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public MainView() {\r\n LoginOverlay login = new LoginOverlay();\r\n login.setOpened(true);\r\n LoginI18n i18n = LoginI18n.createDefault();\r\n i18n.setHeader(new LoginI18n.Header());\r\n i18n.getHeader().setTitle(\"Webvision\");\r\n i18n.getHeader().setDescription(\"Please login, if you don't have an account you will be redirected to finish registration.\");\r\n i18n.getForm().setUsername(\"Email\");\r\n i18n.getForm().setPassword(\"Password\");\r\n login.setI18n(i18n);\r\n login.addLoginListener(event -> {\r\n String email = event.getUsername();\r\n User user = userService.findByEmail(email);\r\n if (user == null) {\r\n login.close();\r\n UI.getCurrent().navigate(RegistrationView.ROUTE);\r\n } else {\r\n String password = event.getPassword();\r\n boolean isAuthenticated = password.equals(user.getPassword());\r\n if (isAuthenticated) {\r\n CurrentUser.setCurrentUser(user);\r\n login.close();\r\n UI.getCurrent().navigate(HomeView.ROUTE);\r\n }\r\n login.setError(true);\r\n }\r\n });\r\n add(login);\r\n }", "public Builder allowRedirects(boolean allowRedirects) {\n\t\t\tthis.allowRedirects = allowRedirects; \n\t\t\treturn this;\n\t\t}", "@Override\n public void onClick(View view) {\n if (testMode) {\n startDashboard();\n } else {\n attemptLogin();\n }\n }", "public boolean wantsView(T aView, View aView2) { return true; }" ]
[ "0.69994164", "0.6496636", "0.6320607", "0.6198617", "0.61923623", "0.6032744", "0.59104997", "0.5903775", "0.5849726", "0.5726245", "0.5719497", "0.55517936", "0.5466835", "0.53857327", "0.5373737", "0.53731006", "0.5328108", "0.53199244", "0.5311352", "0.5299468", "0.528638", "0.52803874", "0.5279123", "0.5276207", "0.5249066", "0.52136046", "0.51743835", "0.5172395", "0.516394", "0.5161404", "0.5134167", "0.51252186", "0.51181567", "0.51069725", "0.5095302", "0.50928706", "0.5085848", "0.50826275", "0.50772434", "0.507525", "0.50593656", "0.50584525", "0.50455785", "0.50350153", "0.50174993", "0.50154996", "0.5010765", "0.500012", "0.4993276", "0.49932128", "0.4988694", "0.49825713", "0.49754614", "0.49688083", "0.49511707", "0.494816", "0.49436107", "0.4873819", "0.48632073", "0.4859703", "0.48548743", "0.48547602", "0.485295", "0.4830057", "0.4821241", "0.48174563", "0.47825715", "0.47824603", "0.4781797", "0.47643754", "0.4763712", "0.47484022", "0.4736439", "0.47328848", "0.47312298", "0.47280905", "0.47279018", "0.47259843", "0.47214463", "0.47142562", "0.47050127", "0.4704141", "0.46972448", "0.46957752", "0.469558", "0.4694919", "0.4691304", "0.46863157", "0.46826893", "0.4669151", "0.4666254", "0.46651825", "0.46626833", "0.46551153", "0.4655004", "0.46450177", "0.4628269", "0.46234226", "0.46186697", "0.46139127" ]
0.608761
5
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.66768336
0
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_2() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.6527045
1
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_3() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.6311016
9
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_4() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.63191026
8
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_5() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.62704843
13
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_6() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.6425549
5
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_7() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.6296027
11
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_8() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.62803507
12
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_9() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.6242982
15
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_10() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.6477629
3
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_11() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.65076095
2
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_12() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.6441435
4
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_13() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.63009
10
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_14() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.6390138
6
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_15() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_16()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.6385464", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.62624943
14
Run the void appendQueryProperties(StringBuffer,Map,String) method test.
@Test public void testAppendQueryProperties_16() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); StringBuffer targetUrl = new StringBuffer(); Map model = new LinkedHashMap(); String encodingScheme = ""; fixture.appendQueryProperties(targetUrl, model, encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAppendQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_11()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_10()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_12()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_6()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_14()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_13()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_7()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_8()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_15()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testAppendQueryProperties_9()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tStringBuffer targetUrl = new StringBuffer();\n\t\tMap model = new LinkedHashMap();\n\t\tString encodingScheme = \"\";\n\n\t\tfixture.appendQueryProperties(targetUrl, model, encodingScheme);\n\n\t\t// add additional test code here\n\t}", "protected void appendQueryProperties(StringBuilder targetUrl, Map<String, Object> model, String encodingScheme)\n throws UnsupportedEncodingException {\n String fragment = null;\n int anchorIndex = targetUrl.indexOf(\"#\");\n if (anchorIndex > -1) {\n fragment = targetUrl.substring(anchorIndex);\n targetUrl.delete(anchorIndex, targetUrl.length());\n }\n\n // If there aren't already some parameters, we need a \"?\".\n boolean first = (targetUrl.toString().indexOf('?') < 0);\n for (Map.Entry<String, Object> entry : queryProperties(model).entrySet()) {\n Object rawValue = entry.getValue();\n Iterator<Object> valueIter;\n if (rawValue != null && rawValue.getClass().isArray()) {\n valueIter = Arrays.asList(ObjectUtils.toObjectArray(rawValue)).iterator();\n }\n else if (rawValue instanceof Collection) {\n valueIter = ((Collection<Object>) rawValue).iterator();\n }\n else {\n valueIter = Collections.singleton(rawValue).iterator();\n }\n while (valueIter.hasNext()) {\n Object value = valueIter.next();\n if (first) {\n targetUrl.append('?');\n first = false;\n }\n else {\n targetUrl.append('&');\n }\n String encodedKey = urlEncode(entry.getKey(), encodingScheme);\n String encodedValue = (value != null ? urlEncode(value.toString(), encodingScheme) : \"\");\n targetUrl.append(encodedKey).append('=').append(encodedValue);\n }\n }\n\n // Append anchor fragment, if any, to end of URL.\n if (fragment != null) {\n targetUrl.append(fragment);\n }\n }", "public void appendQueryData(String pathName, Properties props) {\n if (!props.containsKey(\"RA\")) {\n props.put(\"RA\", getValue(pathName, \"RA\", null));\n }\n }", "private\n static\n void scanOutPropertiesNamValAppend(String args,\n int nambeg, int namlen,\n int valbeg, int vallen,\n StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n\n if (nambeg < 0 || nambeg >= len || (nambeg + namlen - 1) >= len)\n return;\n if (valbeg < 0 || valbeg >= len || (valbeg + vallen - 1) >= len)\n return;\n\n // append nam\n for (si = nambeg; si < (nambeg + namlen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append deliminator\n sb.append('=');\n\n // append val\n for (si = valbeg; si < (valbeg + vallen); si++)\n {\n sb.append(args.charAt(si));\n }\n\n // append terminator\n sb.append('\\n');\n }", "@Test\n\tpublic void testQueryProperties_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\n\t\tMap result = fixture.queryProperties(model);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "private void addStringProperty(URI property, String string,\r\n\t\t\tHashMap<URI, String> resultHashMap)\r\n\t{\r\n\t\tif (string != null && string.length() > 0)\r\n\t\t{\r\n\t\t\tresultHashMap.put(property, string);\r\n\t\t}\r\n\t}", "private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n Map<String, String> continueValues = getContinueValues(query);\n if (continueValues != null && continueValues.size() > 0) {\n for (Map.Entry<String, String> entry : continueValues.entrySet()) {\n urlBuilder.addQueryParameter(entry.getKey(), entry.getValue());\n }\n }\n }", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "public interface IPropertyQuery {\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addEquals(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addLike(String property, Object value);\n\n\t/**\n\t * Add an equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addNotEquals(String property, Object value);\n\n\t/**\n\t * Add an OR equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrEquals(String property, Object value);\n\n\t/**\n\t * Add an OR LIKE option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrLike(String property, Object value);\n\n\t/**\n\t * Add an OR Not Equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic abstract QueryElement addOrNotEquals(String property, Object value);\n\n\t/**\n\t * Add a greater option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterThen(String property, Object value);\n\n\t/**\n\t * Add a greater equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addGreaterEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a lower option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerThen(String property, Object value);\n\n\t/**\n\t * Add a lower equals option.\n\t * @param property\n\t * @param value\n\t */\n\tpublic QueryElement addLowerEqualsThen(String property, Object value);\n\n\t/**\n\t * Add a query element.\n\t * @param element\n\t */\n\tpublic void addQueryElement(QueryElement element);\n\n\t/**\n\t * Returns the number of elements.\n\t * @return\n\t */\n\tpublic abstract int size();\n\n\t/**\n\t * Removes all elements.\n\t *\n\t */\n\tpublic abstract void clear();\n\n\t/**\n\t * @return the hideDeleted\n\t */\n\tpublic abstract boolean isHideDeleted();\n\n\t/**\n\t * @param hideDeleted the hideDeleted to set\n\t */\n\tpublic abstract void setHideDeleted(boolean hideDeleted);\n\n\t/**\n\t * Same as <code>addLike(..)</code> but with checking clients wildcard preferences\n\t * for String searches. <p>\n\t * \n\t * If default constructor is used, this method acts exactly like the normal <code>addLike(..)</code> method.\n\t * \n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param value\n\t */\n\tQueryElement addOrLikeWithWildcardSetting(String property, String value);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addNotIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrIn(String property, Collection<?> values);\n\n\t/**\n\t * @param property\n\t * @param values\n\t */\n\tQueryElement addOrNotIn(String property, Collection<?> values);\n\n\t/**\n\t * Add collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrEmpty(String collectionProperty);\n\n\t/**\n\t * Add collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addNotEmpty(String collectionProperty);\n\n\t/**\n\t * Add or collection not empty property.\n\t * @param collectionProperty\n\t */\n\tQueryElement addOrNotEmpty(String collectionProperty);\n\n}", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }", "default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "@Test\n public void testSetGetDatabaseAccessProperty() throws Exception {\n\n\n String setQuery = String.format(\"CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('%s', '%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY, EXISTING_USER_NAME_2);\n methodWatcher.execute(setQuery);\n\n String getQuery1 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n READ_ONLY_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery1)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must be present in result set!\", result, containsString(EXISTING_USER_NAME_2));\n }\n\n String getQuery2 = String.format(\"values SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY('%s')\",\n FULL_ACCESS_USERS_PROPERTY);\n try (ResultSet resultSet = methodWatcher.executeQuery(getQuery2)) {\n String result = TestUtils.FormattedResult.ResultFactory.toStringUnsorted(resultSet);\n assertThat(EXISTING_USER_NAME_2 + \" must not be present in result set!\", result, not(containsString(EXISTING_USER_NAME_2)));\n }\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "QueryTest(String testName, String qLang, String qString,\n String params[], String values[], \n String target, Model resultModel)\n {\n super(writer, testName, target, resultModel) ;\n queryLang = qLang ;\n queryString = qString ;\n queryParamNames = params ;\n queryParamValues = values ;\n }", "private void appendSearchParam(String query, HttpUrl.Builder urlBuilder) {\n urlBuilder.addQueryParameter(\"generator\", \"search\")\n .addQueryParameter(\"gsrwhat\", \"text\")\n .addQueryParameter(\"gsrnamespace\", \"6\")\n .addQueryParameter(\"gsrlimit\", \"25\")\n .addQueryParameter(\"gsrsearch\", query);\n }", "public final void logAllProperties()\n {\n\n String message = \"Listing All Properties For Object:\" + NEW_LINE\n + toString() + \":\" + NEW_LINE;\n List<String> allProps = getPropertiesList();\n for (String temp : allProps)\n {\n message += temp + NEW_LINE;\n } // end for\n fLog.logTestCase(INFO, message.trim());\n\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "private void addQuery(String query){\n this.queries.add( query);\n }", "void addRecord(String[] propertyValues) throws IOException;", "@Override\n public void addOutputProperties(Map<String, Serializable> properties) {\n Log.w(TAG, \"Output properties is not supported.\");\n }", "private void initializeQueryPropertiesNew() {\n synchronized (defaultQueryProperties) {\n defaultQueryProperties.clear();\n try {\n final InferenceParameterDescriptions desc = DefaultInferenceParameterDescriptions.loadInferenceParameterDescriptions(\n getCyc(), 10000);\n final InferenceParameters defaults = desc.getDefaultInferenceParameters();\n final CycList allQueryProperties = getConverse().converseList(makeSublStmt(\n \"ALL-QUERY-PROPERTIES\"));\n for (final Object property : allQueryProperties) {\n if (property instanceof CycSymbolImpl && defaults.containsKey(\n property.toString())) {\n final Object value = defaults.get(property.toString());\n defaultQueryProperties.put(property.toString(), value);\n }\n }\n } catch (CycConnectionException | com.cyc.base.exception.CycApiException ex) {\n LOGGER.error(ex.getMessage(), ex);\n }\n }\n queryPropertiesInitialized = true;\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public static void main(String args[]) {\n\t\t\n\t\tMap<String, String> map = new HashMap<>();\n\t\t\n\t\tmap.put(\"name\", \"Dev\");\n\t\tmap.put(\"MobileNo\", \"1234567890\");\n\t\t\n\t\tString query = map.entrySet().stream().map(s->s.getKey()+\"=\"+s.getValue()).collect(Collectors.joining(\"&\"));\n\t\tSystem.out.println(query);\n\t}", "public abstract QueryElement addEquals(String property, Object value);", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private void addAlmostAll(Hashtable props) {\n Enumeration e = props.keys();\n while (e.hasMoreElements()) {\n String key = e.nextElement().toString();\n if (\"basedir\".equals(key) || \"ant.file\".equals(key)) {\n // basedir and ant.file get special treatment in execute()\n continue;\n }\n \n String value = props.get(key).toString();\n // don't re-set user properties, avoid the warning message\n if (newProject.getProperty(key) == null) {\n // no user property\n newProject.setNewProperty(key, value);\n }\n }\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "@Test\r\n public void testProcessProperties() \r\n {\r\n System.out.println(\"processProperties\");\r\n List<CPTADataProperty> properties = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n instance.processProperties(properties);\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 }", "@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "public abstract String createQuery();", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "public static void prtProperties() {\n prop.list(System.out);\n }", "public void testGetAppend() {\n System.out.println(\"getAppend\");\n \n boolean expResult = false;\n boolean result = instance.getAppend();\n assertEquals(expResult, result);\n \n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private static String addQueryEntry(String query) throws IOException {\n\t\t\t\t\n\t\tString submittedQuery=null;\n\t\tString queryParts[]=query.split(\"&\"); // get parameters from query\t\t\n\t\tboolean isNextPage=false;\n\t\tString key=null;\n\t\tInteger value=null;\n\t\tboolean docsProcessed=false; // identifies if 'docs' occurs more than once in the query\t\t\n\t\tboolean termsProcessed=false; // identifies if 'terms' occurs more than once in the query\n\t\t\n\t\t// identify if it is a next page\n\t\tfor (int i=0;i<queryParts.length;i++) { // verifies if it is a next page\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\tif (queryPartsFields.length>1) {\n\t\t\t\tqueryPartsFields[1]=queryPartsFields[1].trim();\n\t\t\t}\n\t\t\t\n\t\t\tif (queryPartsFields[0].equals(DOCS_KEY) && queryPartsFields.length>1 && !queryPartsFields[1].equals(\"\")) {\t\t\t\n\t\t\t\tint ipage;\n\t\t\t\ttry {\n\t\t\t\t\tipage=Integer.parseInt(queryPartsFields[1]);\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\tipage=0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ipage!=0) { // regist only pages>0 \t\t\t\t\t\t\t\n\t\t\t\t\tisNextPage=true;\t\t\t\n\t\t\t\t\tif (ipage%RESULTS_PER_PAGE!=0) {\n\t\t\t\t\t\tSystem.err.println(\"Page results not multiple of \"+RESULTS_PER_PAGE+\": \"+ipage);\n\t\t\t\t\t\tipage+=ipage%RESULTS_PER_PAGE;\n\t\t\t\t\t}\n\t\t\t\t\tif (!docsProcessed) {\n\t\t\t\t\t\tint index=ipage/RESULTS_PER_PAGE>pagesViewedDistAux.length-1 ? pagesViewedDistAux.length-1 : ipage/RESULTS_PER_PAGE;\t\t\t\n\t\t\t\t\t\tif (index==0) { // sanity check\n\t\t\t\t\t\t throw new IOException(\"Error of index=0 on a next page. ipage:\"+ipage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpagesViewedDistAux[index]++;\n\t\t\t\t\t}\n\t\t\t\t\tdocsProcessed=true;\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (queryPartsFields[0].equals(QUERY_KEY)) {\n\t\t\t\ttermsProcessed=true;\n\t\t\t}\n\t\t}\n\t\t// check wrong entries\n\t\tif (docsProcessed && !termsProcessed) {\n\t\t\tSystem.err.println(\"Error of query with docs without terms: \"+query);\n\t\t\treturn null;\n\t\t}\t\t\t\t\n\t\tif (isNextPage) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// count only first page\n\t\tdocsProcessed=false;\n\t\tfor (int i=0;i<queryParts.length;i++) {\t\t\t\t\t\t\t\t\t\n\t\t\tString queryPartsFields[]=queryParts[i].split(\"=\",2);\t\t\t\n\t\t\tqueryPartsFields[0]=queryPartsFields[0].trim();\n\t\t\t\n\t\t\tif (!queryPartsFields[0].equals(QUERY_KEY) || queryPartsFields.length!=2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// normalize query\t\t\t\n\t\t\ttry {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(java.net.URLDecoder.decode(queryPartsFields[1],\"ISO8859-1\").toLowerCase()));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(IllegalArgumentException e) {\n\t\t\t\tqueryPartsFields[1]=decodeStrings(decodeNCR(queryPartsFields[1].toLowerCase()));\n\t\t\t}\n\t\t\t// remove spaces\n\t\t\tString terms[]=queryPartsFields[1].split(\"\\\\s\");\n\t\t\tqueryPartsFields[1]=\"\";\n\t\t\tfor (int j=0,k=0;j<terms.length;j++) {\t\t\t\t\t\n\t\t\t\tif (terms[j].equals(\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (k>0) {\n\t\t\t\t\tqueryPartsFields[1]+=\" \";\t\n\t\t\t\t}\n\t\t\t\tqueryPartsFields[1]+=terms[j];\t\t\t\t\t\n\t\t\t\tk++;\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t// filter queries\t\t\t\t\t\n\t\t\tif (queryFiltersMap.containsKey(queryPartsFields[1]) || queryPartsFields[1].startsWith(\"cache%3\") || queryPartsFields[1].equals(\"\")) {\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t// set first page viewed\n\t\t\tif (!docsProcessed) {\n\t\t\t\tpagesViewedDistAux[0]++;\n\t\t\t\tdocsProcessed=true;\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//key=queryPartsFields[0]+\" \"+queryPartsFields[1];\n\t\t\tkey=NEW_QUERY_KEY+\" \"+queryPartsFields[1];\t\t\t\n\t\t\tif ((value=queryPartsMap.get(key))==null) {\n\t\t\t\tqueryPartsMap.put(key,1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tqueryPartsMap.put(key,value+1);\n\t\t\t}\n\t\t\t\n\t\t\t// set submitted query\n\t\t\tif (submittedQuery!=null) { // sanity check\n\t\t\t\tthrow new IOException(\"Submitted query already set.\");\n\t\t\t}\n\t\t\tsubmittedQuery=queryPartsFields[1];\n\t\t\t\t\n\t\t\t// count queries per session\t\n\t\t\tnQueriesSession++;\n\t\t}\n\t\treturn submittedQuery;\n\t}", "@Test\n public void testAddProgramme() throws Exception {\n Method method = SageTvPublisher.class.getDeclaredMethod(\"addProgramme\", Programme.class,\n PropertiesFile.class,\n PropertiesFile.class);\n method.setAccessible(true);\n PropertiesFile linksFile = new PropertiesFile();\n PropertiesFile labelsFile = new PropertiesFile();\n\n Programme programme = new Programme(\"sourceId\", \"callSign\", \"name\", \"description\", \"serviceUrl\", \"categoryIconUrl\", \"subcat\");\n programme.addOtherParentId(\"subcat2\");\n programme.addOtherParentId(\"subcat3\");\n programme.setPodcastUrl(\"podcastUrl\");\n\n Programme programme2 = new Programme(\"sourceId\", \"callSign2\", \"\", \"\", \"serviceUrl\", \"\", \"\");\n programme2.setPodcastUrl(\"podcastUrl2\");\n programme2.addOtherParentId(\"subcat2\");\n\n method.invoke(sageTvPublisher, programme, linksFile, labelsFile);\n method.invoke(sageTvPublisher, programme2, linksFile, labelsFile);\n\n assertEquals(\"Property count\", 2, linksFile.entrySet().size());\n\n Iterator<Map.Entry<Object, Object>> itr2 = linksFile.entrySet().iterator();\n Map.Entry<Object, Object> entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat,xPodcastsubcat2,xPodcastsubcat3;podcastUrl\", entry2.getValue());\n entry2 = itr2.next();\n assertEquals(\"Property name\", \"xFeedPodcastCustom/callSign2\", entry2.getKey());\n assertEquals(\"Property value\", \"xPodcastsubcat2;podcastUrl2\", entry2.getValue());\n\n assertEquals(\"Property count\", 6, labelsFile.entrySet().size());\n Iterator<Map.Entry<Object, Object>> itr = labelsFile.entrySet().iterator();\n Map.Entry<Object, Object> entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ShortName\", entry.getKey());\n assertEquals(\"Property value\", \"name\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Category/callSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/ThumbURL\", entry.getKey());\n assertEquals(\"Property value\", \"categoryIconUrl\", entry.getValue());\n entry = itr.next();\n assertEquals(\"Property name\", \"Source/xPodcastcallSign/LongName\", entry.getKey());\n assertEquals(\"Property value\", \"description\", entry.getValue());\n\n }", "public void setQuery(String query) {\n this.stringQuery = query;\n }", "protected abstract List<String> writeData(T property);", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@Override\n public void append4Update(final String _prefix,\n final StringBuilder _str)\n {\n for (final PropertyDef prop : this.properties) {\n _str.append(_prefix).append(\"property \").append(prop.getCIUpdateFormat()).append('\\n');\n }\n }", "public static String createQueryForAMapOfIResource(Map<String,Object> map, String oldQuery){\r\n \t\t\r\n \t\tif(oldQuery == null)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.equals(\"empty\") && map.size()>0)\r\n \t\t\toldQuery = \"\";\r\n \t\tif(oldQuery.length() > 0)\r\n \t\t\toldQuery += QUERY_DELIMITER;\r\n \t\t\r\n \t\tString res = oldQuery;\r\n \t\t//find all Java files \r\n \t\tList<String> classes = getJavasSourceCodeFiels(map);\r\n \t\t//find all Packages\r\n \t\t//List<String> pack = getJavaPackages(map);\r\n \t\t\r\n \t\t\r\n \t\t//extending the old Query\r\n \t\tif(classes != null)\r\n \t\t\tfor(String s : classes){\r\n \t\t\t\tres = res + s + QUERY_DELIMITER;\r\n \t\t\t}\r\n \t\t\r\n \t\t/*for(String s : pack){\r\n \t\t\tres = res + s + \",\";\r\n \t\t}*/\r\n \t\tif(res.length() >= QUERY_DELIMITER.length())\r\n \t\t\tres = res.substring(0, res.length()-QUERY_DELIMITER.length());\r\n\t\t\r\n\t\tif(res.equals(\"\"))\r\n\t\t\treturn res;\r\n\t\telse\r\n\t\t\treturn res + \"\\n\";\n \t}", "protected void augmentToStringFields(final Map<String, Object> augmentedToStringFields) {}", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test\n public void test_singleRetrieve_withParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError unexpectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n recordMap = record.getRecord();\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertNotNull(recordMap);\n }", "public static void writeQueryString(Hashtable params,Writer getpostb) throws IOException {\n Enumeration enu = params.keys();\r\n\r\n boolean first=true;\r\n\r\n while(enu.hasMoreElements()) {\r\n Object key = enu.nextElement();\r\n\r\n if (first) {\r\n first=false;\r\n }\r\n else {\r\n getpostb.write('&');\r\n }\r\n\r\n encode( String.valueOf( key ), getpostb );\r\n getpostb.write('=');\r\n encode( String.valueOf( params.get(key)), getpostb );\r\n }\r\n\r\n //return getpostb.toString();\r\n\r\n }", "private void writePropertyData() {\n\t\ttry (PrintStream out = new PrintStream(openResultFileOuputStream(\n\t\t\t\tresultDirectory, \"properties.json\"))) {\n\t\t\tout.println(\"{\");\n\n\t\t\tint count = 0;\n\t\t\tfor (Entry<Integer, PropertyRecord> propertyEntry : this.propertyRecords\n\t\t\t\t\t.entrySet()) {\n\t\t\t\tif (count > 0) {\n\t\t\t\t\tout.println(\",\");\n\t\t\t\t}\n\t\t\t\tout.print(\"\\\"\" + propertyEntry.getKey() + \"\\\":\");\n\t\t\t\tmapper.writeValue(out, propertyEntry.getValue());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tout.println(\"\\n}\");\n\n\t\t\tSystem.out.println(\" Serialized information for \" + count\n\t\t\t\t\t+ \" properties.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "void updatedProperty(TestResult tr, String name, String value);", "@Test\n\tpublic void phraseConcatTest() {\n\t\tString query1 = \"\\\" hello my \\\"\";\n\t\tString query2 = \"\\\" I am the king \\\"\";\n\t\tString query3 = \"\\\" yes you are \\\" \";\n\t\t\n\t\tString query1Result = \"hello+my\";\n\t\tString query2Result = \"I+am+the+king\";\n\t\tString query3Result = \"yes+you+are\";\n\t\t\n\t\tassertEquals(query1Result, queryTest.fixPhrases(query1));\n\t\tassertEquals(query2Result, queryTest.fixPhrases(query2));\n\t\tassertEquals(query3Result, queryTest.fixPhrases(query3));\n\t}", "public abstract QueryElement addOrEquals(String property, Object value);", "private void m36905a(StringBuilder parameters, String key, String value) {\n parameters.append(key);\n parameters.append(\" : \");\n parameters.append(value);\n parameters.append(\"\\n\");\n }", "private void fetchPropertiesAccordingToUserInput() {\n String query = \"SELECT * FROM Property WHERE mId > 0\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n query += \" AND mZipCode = \" + mZipcodeInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n query += \" AND Property.mCity LIKE \" + \"'%\" + mCityInput + \"%'\";\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n query += \" AND Property.mSurface >= \" + mMinSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n query += \" AND Property.mSurface <= \" + mMaxSurfaceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n query += \" AND Property.mPrice >= \" + mMinPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n query += \" AND Property.mPrice <= \" + mMaxPriceInput;\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n query += \" AND Property.mFloors >= \" + mFloorsInput;\n if (!mTypeInput.equals(\"()\"))\n query += \" AND Property.mTypeProperty IN \" + mTypeInput;\n if (mAmenitiesInput.contains(\"School\"))\n query += \" AND Property.mAmenities LIKE '%School%'\";\n if (mAmenitiesInput.contains(\"Shops\"))\n query += \" AND Property.mAmenities LIKE '%Shops%'\";\n if (mAmenitiesInput.contains(\"Public transport\"))\n query += \" AND Property.mAmenities LIKE '%Public transport%'\";\n if (mAmenitiesInput.contains(\"Garden\"))\n query += \" AND Property.mAmenities LIKE '%Garden%'\";\n if (mChipRoomsInput != 0)\n query += \" AND Property.mNbRooms >= \" + mChipRoomsInput;\n if (mChipBedroomsInput != 0)\n query += \" AND Property.mNbBedrooms >= \" + mChipBedroomsInput;\n if (mChipBathroomsInput != 0)\n query += \" AND Property.mNbBathrooms >= \" + mChipBathroomsInput;\n if (mChipCoownerInput != 10)\n query += \" AND Property.mCoOwnership = \" + mChipCoownerInput;\n if (mChipIsSoldInput != 10)\n query += \" AND Property.mSold = \" + mChipIsSoldInput;\n if (mForSaleDate != 0)\n query += \" AND Property.mInitialSale >= \" + mForSaleDate;\n if (mSoldDate != 0)\n query += \" AND Property.mFinalSale <= \" + mSoldDate;\n if (mChipPhotoInput != 0)\n query += \" AND Property.mNbPictures >= \" + mChipPhotoInput;\n query += \" ;\";\n\n fetchPropertiesAccordingToCriteria(query);\n }", "@Test\n void appendTest() {\n var map = mock(SqlBuiltInMap.class);\n var builder = new DefaultSqlBuilder(SqlLiteralTypeHandlerMap.getDefaultMap(), map);\n var concatAppender = SqlRecursiveAppender.forTemplate(\"{0}||{1}\", EXPR_ADD, EXPR_ADD);\n concatAppender.append(\n List.of(SqlRecursiveAppenderTest::appendArg0, SqlRecursiveAppenderTest::appendArg1,\n SqlRecursiveAppenderTest::appendArg2), builder);\n assertThat(builder.getSql()).isEqualTo(\"?||??||?\");\n assertThat(builder.getBindsWithPos())\n .containsExactlyInAnyOrder(new BindWithPos(bindName1, Integer.class, List.of(1, 2)),\n new BindWithPos(bindName2, String.class, List.of(3, 4)));\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public abstract void appendHypervisorParameters(final String sb);", "@Test\n public void test_singleRetrieve_withoutParens_ParamQuery() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n Map<String, Object> recordMap = null;\n BridgeError expectedError = null;\n try {\n Record record = getAdapter().retrieve(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }", "void writeProperties(java.util.Properties p) {\n }", "@Test\n public void allPropertiesShouldBeRepresentedInToStringOutput() {\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"name\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"startDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"endDate\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"curriculum\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"trainer\"));\n assertThat(AssignForceBatch.class, hasValidBeanToStringFor(\"ID\"));\n }", "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public void toString(String prepend) {\n StringBuffer sbNode = new StringBuffer(512);\n\n sbNode.append(prepend).append(\"--------------------------------------\\n\");\n sbNode.append(prepend).append(\" nodeType = \");\n sbNode.append(nodeType);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" \").append(getTypeString());\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" rowsize = \").append(rowsize);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estCost = \").append(estCost);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" estRowsReturned = \").append(estRowsReturned);\n sbNode.append('\\n');\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Joins--- \");\n sbNode.append('\\n');\n\n for (RelationNode joinNode : joinList) {\n sbNode.append(prepend).append(\" \").append(joinNode.tableName).append(joinNode.alias);\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Projections--- \");\n sbNode.append('\\n');\n\n for (SqlExpression aSqlExpression : projectionList) {\n sbNode.append(aSqlExpression.toString(prepend));\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n\n sbNode.append(prepend).append(\" ---Conditions--- \");\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" Condition count: \").append(conditionList.size());\n sbNode.append('\\n');\n\n for (QueryCondition aCondition : conditionList) {\n sbNode.append(prepend).append(\" \").append(aCondition.getCondString());\n sbNode.append('\\n');\n }\n\n sbNode.append(prepend);\n sbNode.append('\\n');\n sbNode.append(prepend).append(\" ---Condition Columns--- \");\n sbNode.append('\\n');\n\n for (AttributeColumn aColumn : condColumnList) {\n sbNode.append(prepend).append(\" \").append(aColumn.columnName);\n sbNode.append('\\n');\n }\n }", "public void customQuery(String query) {\n sendQuery(query);\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "void collectQuery(String system, int processNo, int processQueryNo, String query, double coverage, int pathCount, QueryPathList qpl, PrintStream output) throws SQLException {\n\t\t// Get all paths to print\n\t\t/*\nSELECT DISTINCT pathNo\nFROM evaluation\nWHERE algorithm = 'evosql' \n\tAND system = {system} AND processNo = {processNo} and queryNo = {processQueryNo}\n\tAND success = 0 \n\t\t */\n\t\tString sql = \"SELECT pathNo, SUM(success) success, SUM(1 - success) failures, GROUP_CONCAT(message SEPARATOR ' | ') messages \\r\\n\" + \n\t\t\t\t\"FROM evaluation\\r\\n\" + \n\t\t\t\t\"WHERE algorithm = 'evosql'\\r\\n\" + \n\t\t\t\t\"\tAND system = ? AND processNo = ? and queryNo = ?\\r\\n\" + \n\t\t\t\t\"GROUP BY pathNo\\r\\n\" + \n\t\t\t\t\"HAVING SUM(1 - success) > 0\\r\\n\" + \n\t\t\t\t\"ORDER BY pathNo\";\n\t\t\n\t\tPreparedStatement stmt = conn.prepareStatement(sql);\n\t\tstmt.setString(1, system);\n\t\tstmt.setInt(2, processNo);\n\t\tstmt.setInt(3, processQueryNo);\n\t\tResultSet result = stmt.executeQuery();\n\t\t/*\n\t\t// Print query info\n\t\toutput.print(\"\\n===================================\\n\");\n\t\toutput.print(\"Query: \" + system + \" - Process \" + processNo + \" query \" + processQueryNo + \"\\n\");\n\t\toutput.print(\"Coverage: \" + String.format(\"%.2f\", coverage) + \"\\n\");\n\t\toutput.print(getBeautifulSql(query));\n\t\toutput.print(\"\\n===================================\\n\");\n*/\n\t\tif (query.contains(\"EXISTS\") || query.contains(\"exists\"))\n\t\t\tthis.queriesExists += 1;\n\t\t\n\t\twhile (result.next()) {\n\t\t\tint pathNo = result.getInt(1);\n\t\t\tString pathSql = qpl.pathList.get(pathNo - 1);\n\t\t\tint successes = result.getInt(2);\n\t\t\tint failures = result.getInt(3);\n\t\t\tString messages = result.getString(4);\n\t\t\tif (successes > 0) continue;\n\t\t\t// Print Path info\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\t\t\toutput.print(\"Query: \" + system + \"-process\" + processNo + \", query \" + processQueryNo + \"\\n\");\n\t\t\toutput.print(\"Path \" + pathNo + \"/\" + pathCount + \" - \" + successes + \" successes, \" + failures + \" failures\\n\");\n\t\t\toutput.print(\"Failure messages: \" + messages + \"\\n\");\n\t\t\toutput.print(getBeautifulSql(pathSql));\n\t\t\toutput.print(\"\\n-----------------------------------\\n\");\n\n\t\t\tSystem.out.println(system + \"\\t\" + processNo + \"\\t\" + processQueryNo + \"\\t\" + pathNo);\n\t\t\t\n\t\t\tif (pathSql.contains(\"EXISTS\") || pathSql.contains(\"exists\"))\n\t\t\t\tthis.pathsExists += 1;\n\t\t}\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }", "@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }", "@Test\n public void testQuery() throws Exception {\n StatefulKnowledgeSession session = getKbase().newStatefulKnowledgeSession();\n \n initializeTemplate(session);\n \n List<Person> persons = new ArrayList<Person>();\n persons.add(new Person(\"john\", \"john\", 25));\n persons.add(new Person(\"sarah\", \"john\", 35));\n \n session.execute(CommandFactory.newInsertElements(persons));\n assertEquals(2, session.getFactCount());\n \n QueryResults results = query(\"people over the age of x\", new Object[] {30});\n assertNotNull(results);\n }", "public AnswerResult setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }", "public abstract QueryElement addOrNotEquals(String property, Object value);", "private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }", "public static DbObject getTestDbObject() {\n String testId = \"testDbObject\";\n String testDescription = \"An example of DbObject\";\n LinkedHashMap<String, List<String>> testValues = new LinkedHashMap<>();\n\n\n String property0name = WMODEL_CLASS;\n List<String> property0list = new ArrayList<>();\n property0list.add(property0name);\n property0list.add(\"\" + WFormField.EXCLUDE);\n property0list.add(WModelClass.COMPANY.getKey());\n //END REQUIRED\n\n String property1name = \"First Property\";\n List<String> property1list = new ArrayList<>();\n String property1fieldType = \"\" + WFormField.CHECKBOX;\n String property1DisplayText = \"Property 1 text\";\n String property1SelectedValue = \"\" + true;\n property1list.add(property1name);\n property1list.add(property1fieldType);\n property1list.add(property1DisplayText);\n property1list.add(property1SelectedValue);\n\n String property2name = \"Second Property\";\n List<String> property2list = new ArrayList<>();\n String property2fieldType = \"\" + WFormField.SELECT_FROM;\n String property2DisplayText = \"Property 2 text\";\n String property2SelectedValue = \"1\";\n String property2Value1 = \"0\";\n String property2Value2 = \"1\";\n String property2Value3 = \"2\";\n String property2Value4 = \"3\";\n String property2Value5 = \"4\";\n property2list.add(property2name);\n property2list.add(property2fieldType);\n property2list.add(property2DisplayText);\n property2list.add(property2SelectedValue);\n property2list.add(property2Value1);\n property2list.add(property2Value2);\n property2list.add(property2Value3);\n property2list.add(property2Value4);\n property2list.add(property2Value5);\n\n String property3name = \"Third Property\";\n List<String> property3list = new ArrayList<>();\n property3list.add(property3name);\n property3list.add( \"\" + WFormField.FINALIZE_BUTTONS);\n property3list.add(\"Property 3 Buttons\");\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n property3list.add(Boolean.toString(true));\n Log.i(\"Finalize Buttons\", \"getTestDbObject: Property3 list: \" + property3list.toString());\n\n String property4name = \"Fourth Property\";\n List<String> property4list = new ArrayList<>();\n property4list.add(property4name);\n property4list.add(\"\" + WFormField.TEXT_EDIT);\n property4list.add(\"Property 4 text\");\n property4list.add(\"This is the correct text\");\n property4list.add(\"This is the prompt\");\n\n String property5name = \"Fifth Property\";\n List<String> property5list = new ArrayList<>();\n property5list.add(property5name);\n property5list.add(\"\" + WFormField.TEXT_VIEW);\n property5list.add(\"This is the display Text\");\n property5list.add(\"This is the selected value\");\n\n //REQUIRED - NUMBERS INDICATED FIELD DISPLAY ORDER\n testValues.put(WMODEL_CLASS, property0list);\n testValues.put(\"1\", property1list);\n testValues.put(\"2\", property2list);\n testValues.put(\"3\", property4list);\n testValues.put(\"4\", property5list);\n testValues.put(\"5\", property3list);\n\n DbObject testObject = new DbObject(testId, testDescription, testValues);\n return testObject;\n }", "public abstract void appendReportEntryValues(ReportRow entry);", "public abstract QueryElement addLike(String property, Object value);", "private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQueries.BUILD_SYSTEM_PROPS;\n }\n return baseQuery;\n }", "public void setQuery(java.lang.String query) {\r\n this.query = query;\r\n }", "void doTests() {\n\t\tString doc = \"\", r = \"\";\n\n\t\tDomeoPermissions dp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = getDocument(\"1\", false, dp3);\n\n\t\tr = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\tr = phraseQuery(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\tdp3 = new DomeoPermissions(\n\t\t\t\tnull,\n\t\t\t\tnull,\n\t\t\t\tnew String[] { \"urn:group:uuid:4028808c3dccfe48013dccfe95ea0005 1\" });\n\t\tr = query(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"enabling application\", 0, 10, false, dp3);\n\n\t\t// Test: Term (keyword) query\n\t\t// r = termQuery(\"domeo_!DOMEO_NS!_agents.@type\", \"foafx:Person\", 0, 10,\n\t\t// dp);\n\n\t\t// Test: Phrase query\n\t\tr = phraseQuery(\"dct_!DOMEO_NS!_description\", \"created automatically\",\n\t\t\t\t0, 10, false, dp3);\n\n\t\t// Test: Delete a document\n\t\t// r = deleteDocument(\"7TdnuBsjTjWaTcbW7RVP3Q\");\n\n\t\t// Test: Generic boolean query: 4 fields (3 keyword fields, 1 parsed\n\t\t// field)\n\n\t\tString[] fields = { \"ao_!DOMEO_NS!_item.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.@id\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.@type\",\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_body.cnt_!DOMEO_NS!_chars\" };\n\t\tString[] vals = { \"ao:Highlight\",\n\t\t\t\t\"urn:domeoclient:uuid:D3062173-8E53-41E9-9248-F0B8A7F65E5B\",\n\t\t\t\t\"cnt:ContentAsText\", \"paolo\" };\n\t\tString[] parsed = { \"term\", \"term\", \"term\", \"match\" };\n\t\tr = booleanQueryMultipleFields(fields, vals, parsed, \"and\", 0, 10,\n\t\t\t\tfalse, dp3);\n\n\t\t// Test: Single field boolean query\n\t\tr = booleanQuerySingleParsedField(\n\t\t\t\t\"ao_!DOMEO_NS!_item.ao_!DOMEO_NS!_context.ao_!DOMEO_NS!_hasSelector.ao_!DOMEO_NS!_suffix\",\n\t\t\t\t\"formal biomedical ontologies\", \"or\", 0, 10, false, null);\n\n\t\t// Test: Retrieve a single doc by id\n\t\tr = getDocument(\"aviMdI48QkSGOhQL6ncMZw\", false, null);\n\n\t\t// Test: insert a document, return it's auto-assigned id\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc);\n\n\t\t// Test: insert a doc with specified id (replace if already present)\n\t\tdoc = \"{ \\\"f1\\\" : \\\"field value one\\\", \\\"f2\\\" : \\\"field value two\\\" }\";\n\t\tr = insertDocument(doc, \"5\");\n\t\tSystem.out.println(r);\n\n\t\t// Test: insert json document and try to remove it\n\t\tdoc = readSampleJsonDoc(\"/temp/sample_domeo_doc.json\");\n\t\tSystem.out.println(doc);\n\t\tr = insertDocument(doc);\n\t}", "public static void main(String [] args) throws IOException{\n WriteProperties(\"Test.properties\",\"long\", \"212\");\n }", "@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }" ]
[ "0.66768336", "0.6527045", "0.65076095", "0.6477629", "0.6441435", "0.6425549", "0.6390138", "0.63191026", "0.6311016", "0.63009", "0.6296027", "0.62803507", "0.62704843", "0.62624943", "0.6242982", "0.559718", "0.5384951", "0.5343115", "0.5260729", "0.5234796", "0.5183637", "0.5135808", "0.51184195", "0.5115805", "0.50665003", "0.50594074", "0.5048004", "0.5031194", "0.4997633", "0.49846488", "0.4939107", "0.49300304", "0.49069875", "0.48970878", "0.4888874", "0.48840657", "0.485928", "0.48587477", "0.48476425", "0.4800095", "0.47981283", "0.47629434", "0.47625065", "0.4724914", "0.47159386", "0.47140092", "0.4706312", "0.4691965", "0.4683983", "0.46725446", "0.46647605", "0.4663794", "0.46300665", "0.46254513", "0.4624964", "0.4621058", "0.4615489", "0.46108398", "0.45880923", "0.45864126", "0.4583568", "0.4558339", "0.45574886", "0.4557131", "0.455446", "0.45467976", "0.4535294", "0.45270914", "0.45219037", "0.45093504", "0.45017302", "0.4498462", "0.4492152", "0.44908404", "0.4485329", "0.4484599", "0.4477447", "0.44705078", "0.44644338", "0.44635445", "0.4449787", "0.44484586", "0.4447546", "0.44471696", "0.4446153", "0.44435266", "0.44380963", "0.44368798", "0.4433673", "0.44209263", "0.4414597", "0.44094107", "0.4407634", "0.440646", "0.44059482", "0.44044918", "0.44028777", "0.43992317", "0.43911663", "0.43901104" ]
0.6385464
7
Run the String getUrl() method test.
@Test public void testGetUrl_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String result = fixture.getUrl(); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void urlTest() {\n // TODO: test url\n }", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "URL getUrl();", "@Test(priority=2)\r\n\tpublic void getUrl() {\r\n\tObject url=driver.getCurrentUrl();\r\n\t// driver.getCurrentUrl(); method is a string method\r\n\t// we are increasing the scope.\r\n\tObject urlString=url.toString().toUpperCase();\r\n\tSystem.out.println(urlString);\r\n\t}", "protected abstract String getUrl();", "public abstract String getUrl();", "@Given(\"^the url of the application under test$\")\r\n\tpublic void getUrl() throws Exception {\n\t\tdriver.get(url);\r\n\t}", "@Test\n void setUrl() {\n g.setUrl(url);\n assertEquals(url, g.getUrl(), \"URL mismatch\");\n }", "Uri getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public abstract String getURL();", "public String getURL();", "@Test\r\n public void testGetURL() \r\n {\r\n System.out.println(\"getURL\");\r\n String symbol = \"\";\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n String expResult = \"\";\r\n String result = instance.getURL(symbol);\r\n // assertEquals(expResult, result);\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 }", "java.net.URL getUrl();", "@Test\n public void readUrl() throws IOException {\n\n }", "@Test\n public void testRegularOpen() {\n openUrl();\n }", "@Override\r\n\tpublic void getUrl() {\n\r\n\t}", "public String getUrl() { return url; }", "@Test\n public void testManualTest()\n {\n\t UrlValidator urlVal = new UrlValidator(null, null, UrlValidator.ALLOW_ALL_SCHEMES);\n\t //sanity check\n\t ResultPair sane = new ResultPair(\"http://www.amazon.com\", true);\n\t collector.checkThat(sane.item, sane.valid, equalTo(urlVal.isValid(sane.item)));\n\t //test manualUrls\n\t for(ResultPair res : this.m_fileUrls)\n\t {\n\t\t collector.checkThat(res.item, res.valid, equalTo(urlVal.isValid(res.item)));\n\t }\n }", "String url();", "@Test\r\n public void incorrectUrlTest(){\r\n boolean noException = false;\r\n \r\n try {\r\n extractor = new HTMLExtractor(\"google.co.uk\");\r\n noException = true;\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n assertTrue(\"should not throw an exception\", noException);\r\n }", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@Test\n @Then(\"Market URL is opened\")\n public void s05_MarketUrlCheck() {\n String currentMUrl = driver.getCurrentUrl();\n Assert.assertTrue(currentMUrl.contains(\"market.yandex.ru\"));\n System.out.println(\"Step05 PASSED\");\n }", "@Test\r\n public void testInternetConnection(){\r\n CheckConnection checkConnection = new CheckConnection();\r\n checkConnection.checkURL();\r\n }", "@Test(groups = { \"tree\" })\n\t\tpublic void testLoadViaGetURL() throws Exception {\n\t\t\t\tstartupTest(\"treeLoadViaGetURL.html\",null);\n\n\t\t\t\t//Verify the url\n\t\t\t\tString url = getBrowserUrl();\n\t\t\t\tlog(\"URL##########\"+ url);\n\n\t\t\t\t// Verify if the title of the page is correct\n\t\t\t\tverifyTitle(\"Incorrect page title;\", TITLE_GETURL);\n\t\t\t\tcheckPageContent(TITLE_GETURL);\n\n\t\t\t\tcommonLoadTestForJson();\n\n\n }", "@Step(\"<url> sayfasına git\")\n public void geturl(String url) {\n Driver.webDriver.get(url + \"/\");\n }", "public void testRemoteFileDescGetUrl() {\n\t\tSet urns = new HashSet();\n\t\turns.add(HugeTestUtils.URNS[0]);\n\t\tRemoteFileDesc rfd =\n\t\t\tnew RemoteFileDesc(\"www.test.org\", 3000, 10, \"test\", 10, TEST_GUID,\n\t\t\t\t\t\t\t 10, true, 3, true, null, urns, \n false, false,\"\",0, null, -1);\n\t\tURL rfdUrl = rfd.getUrl();\n\t\tString urlString = rfdUrl.toString();\n\t\tString host = rfd.getHost();\n\t\tString colonPort = \":\"+rfd.getPort();\n\t\tassertTrue(\"unexpected beginning of url\", \n\t\t\t\t urlString.startsWith(\"http://\"+host+colonPort));\n\t\tassertEquals(\"unexpected double slash\",\n\t\t urlString.indexOf(colonPort+\"//\"), -1);\n\t\tassertNotEquals(\"unexpected double slash\",\n\t\t -1, urlString.indexOf(\":3000/\"));\n\t}", "public String getUrl(){\n return urlsText;\n }", "@Test\n @Then(\"URL is opened\")\n public void s03_UrlCcheck() {\n currentUrlHP = driver.getCurrentUrl();\n Assert.assertEquals(urlHP, currentUrlHP);\n System.out.println(\"Step03 PASSED\");\n }", "protected abstract String getPublicUrl(URL url);", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "boolean hasUrl();", "public void testGetURI() {\n }", "@Test\n public void gatewayUrlTest() {\n // TODO: test gatewayUrl\n }", "public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}", "public static void main(String[] args) {\n boolean httpUrl = StringUtil.isHttpUrl(\"https://www.bequgexs.com\");\r\n System.out.println(httpUrl);\r\n\t}", "public java.lang.String getUrl(){\r\n return this.url;\r\n }", "@Test\n public void testCanReadUrl() throws Exception {\n MatcherAssert.assertThat(\n new TestJenkins().jobs().iterator().next()\n .builds().iterator().next().url()\n .endsWith(\"job/test-different-builds-job/1/\"),\n new IsEqual<>(true)\n );\n }", "public String getUrl(){\n \treturn url;\n }", "public String getUrl() { /* (readonly) */\n return mUrl;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n }\n }", "@Test\r\n public void testInvalidURL() {\r\n String[] str = {\"curl\", \"http://www.ub.edu/gilcub/SIMPLE/simple.html\"};\r\n\r\n curl.run(str);\r\n assertTrue(ErrorHandler.checkIfErrorOccurred());\r\n assertEquals(\"invalid URL\\n\", Output.getLastPrinted());\r\n }", "public String getDescription(){\n\t\treturn \"Tests that the URL passed in is the same as our website url.\";\n\t}", "String getUrl(String key);", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000001;\n url_ = value;\n }", "public UrlValidatorTest(String testName) {\n super(testName);\n }", "public UrlValidatorTest(String testName) {\n super(testName);\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@Test\n\tpublic void testGetBaseUrl() {\n\t\tString result = helper.getBaseUrl(\"http://www.bobbylough.com/test/index.html\");\n\t\tassertEquals(\"http://www.bobbylough.com/test\", result);\n\t}", "public static void assertURL(String text)\n {\n org.junit.Assert.assertTrue(driver.getCurrentUrl().contains(text));\n }", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000002;\n url_ = value;\n }", "public UrlValidatorTest(String testName) {\r\n super(testName);\r\n }", "@Given(\"url {string}\")\r\n\tpublic void url(String string) {\n\t\tString chromepath=\"C:\\\\Users\\\\a07208trng_b4a.04.26\\\\Desktop\\\\selenium\\\\jar\\\\chromedriver_win32\\\\chromedriver.exe\";\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromepath);\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.get(string);\r\n\t\tdriver.manage().window().maximize();\r\n\t}", "public java.lang.String getUrl() {\n return url;\n }", "public String getURL() { return url; }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public final native String getUrl() /*-{\n return this.getUrl();\n }-*/;", "public String getURL()\n {\n return getURL(\"http\");\n }", "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n }\n return s;\n }\n }", "@Test\n public void testIsURLEncoded() {\n System.out.println(\"isURLEncoded\");\n boolean expResult = true;\n boolean result = instance.isURLEncoded();\n assertEquals(expResult, result);\n }", "@Test\n public void testResolveUrl() {\n System.out.println(\"resolveUrl\");\n String svcia = SVCID;\n String expResult = \"http://localhost:4848/reliablemessaging/intermediary\";\n String result = instance.resolveUrl(svcia);\n assertEquals(expResult, result);\n }", "public void setUrl(String url);", "public void setUrl(String url);", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "public String getUrl() {\r\n\t\t\treturn url;\r\n\t\t}", "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n }\n return s;\n }\n }", "public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n }\n return s;\n }\n }", "public String getUrl()\n {\n return url;\n }", "@Override\r\n public String getURL() {\n return url;\r\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "@Test\r\n public void emptyUrlTest(){\r\n boolean noException = false;\r\n \r\n try {\r\n extractor = new HTMLExtractor(\"\");\r\n noException = true;\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n assertTrue(\"should be parsed with no errors\", noException);\r\n }", "String getWebsite();", "@Nullable\n public abstract String url();", "public void setURL(String _url) { url = _url; }" ]
[ "0.74356323", "0.72628707", "0.72628707", "0.72628707", "0.72628707", "0.72628707", "0.72628707", "0.72325075", "0.72325075", "0.72325075", "0.72325075", "0.72325075", "0.71148086", "0.7091638", "0.7081645", "0.69394195", "0.6918583", "0.67745763", "0.6699361", "0.66852564", "0.66852564", "0.66852564", "0.66852564", "0.6647898", "0.65593", "0.65323764", "0.64965355", "0.6440007", "0.6417468", "0.63881254", "0.63440543", "0.6338972", "0.629418", "0.62636626", "0.6253133", "0.624935", "0.624935", "0.6247943", "0.6246117", "0.62331873", "0.6224494", "0.62200636", "0.62109154", "0.62072563", "0.62027395", "0.6200947", "0.6200947", "0.6200947", "0.6200947", "0.6200947", "0.6183242", "0.6172568", "0.6129332", "0.612899", "0.6113868", "0.61020505", "0.60840267", "0.60782826", "0.60670906", "0.60664105", "0.60583633", "0.60514075", "0.6047993", "0.6042351", "0.6042351", "0.6031552", "0.6031552", "0.6027279", "0.6026133", "0.6024806", "0.6017776", "0.60149825", "0.60063887", "0.59902066", "0.59805876", "0.59805876", "0.59805876", "0.59805876", "0.59805876", "0.59805876", "0.59805876", "0.59736454", "0.59723014", "0.5957141", "0.5946465", "0.5943875", "0.5941083", "0.5941083", "0.59276575", "0.59157485", "0.5913576", "0.5913576", "0.59106195", "0.59028184", "0.589158", "0.589158", "0.588867", "0.58800066", "0.58793914", "0.5873538" ]
0.67385435
18
Run the Map queryProperties(Map) method test.
@Test public void testQueryProperties_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); Map result = fixture.queryProperties(model); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public static void main(String[] args) {\n\t\tMapTest mTest = new MapTest();\r\n\t\tmTest.testPut();\r\n\t\tmTest.testKeySet();\r\n\t\tmTest.testEntrySet();\r\n\t}", "public void testMapGet() {\r\n }", "@Test\n\tpublic void testMaps() throws Exception {\n\t\ttestWith(TestClassMap.getInstance());\n\t}", "public Map getProperties();", "public static void main(String[] args) \n\t{\n\t\tMap<Object,Object> moop = new Properties();\n\t\t// but test(Map<Integer,String>() cannot be applied: \n\t\t// test(moop); \n\t\t// Using more general version, taking Map<Object,Object> arg:\n\t\ttest2(new Properties()); // OK\t\n\t\t\n\t\tSystem.out.println(new Properties()+\"~~~~~~~~~~~~\"); // 创建一个无默认值的空属性列表。 \n\t}", "@Test\n public void test1(){\n Map map = us.selectAll(1, 1);\n System.out.println(map);\n }", "public void test_findMapBySqlMap() {\r\n\t\t// step 1:\r\n\t\tMap personMap = this.persistenceService.findMapBySqlMap(FIND_PERSON_BY_SQLMAP, NAME_PARAM[0], RETURN_MAP_KEY);\r\n\t\tassertForFindMapGoogle(personMap);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonMap = null;\r\n\t\t// step 2:\r\n\t\tpersonMap = this.persistenceService.findMapBySqlMap(FIND_PERSON_BY_SQLMAP, NAME_PARAM[0], RETURN_MAP_KEY, RETURN_MAP_VALUE);\r\n\t\tassertForFindMapGoogle(personMap);\r\n\t}", "@Test\n public void mapGet() {\n check(MAPGET);\n query(MAPGET.args(MAPNEW.args(\"()\"), 1), \"\");\n query(MAPGET.args(MAPENTRY.args(1, 2), 1), 2);\n }", "public ProofMapIndexProxy<String, String> testMap() {\n String fullName = namespace + \".test-map\";\n return access.getProofMap(IndexAddress.valueOf(fullName), string(), string());\n }", "@Test\n public void queryTest() throws Exception {\n List<Map<String, Object>> mapList = mysqlQLSDao.queryList();\n for(Map<String, Object> map : mapList) {\n System.out.print(\"[\");\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n// System.out.print(entry.getKey() + \":\" + entry.getValue() + \",\");\n System.out.print(entry.getKey() + \":\" + \",\");\n }\n System.out.println(\"]\");\n }\n }", "@Test\n public void mapSize() {\n check(MAPSIZE);\n query(MAPSIZE.args(MAPENTRY.args(1, 2)), 1);\n }", "public List<RMap> testGetPagedMapListByMap() throws Exception{\r\n\t\tString sql = \"select * from rexdb_test_student where student_id > #{studentId} and readonly = #{readonly}\";\r\n\t\tMap<String, Object> student = new HashMap<String, Object>();\r\n\t\tstudent.put(\"studentId\", 10);\r\n\t\tstudent.put(\"readonly\", 1);\r\n\t\t\r\n\t\tList<RMap> list = DB.getMapList(sql, student, 5, 10);\r\n\t\tif(list.size() != 10)\r\n\t\t\tthrow new Exception(\"getMapList seems didn't work well.\");\r\n\t\t\r\n\t\treturn list;\r\n\t}", "@Test\n public void testFindByProperties(){\n\n }", "@org.junit.Test\n public void mapGet100() {\n final XQuery query = new XQuery(\n \"fn:map(\\n\" +\n \" map{\\\"su\\\":=\\\"Sunday\\\",\\\"mo\\\":=\\\"Monday\\\",\\\"tu\\\":=\\\"Tuesday\\\",\\\"we\\\":=\\\"Wednesday\\\",\\\"th\\\":=\\\"Thursday\\\",\\\"fr\\\":=\\\"Friday\\\",\\\"sa\\\":=\\\"Saturday\\\"},\\n\" +\n \" (\\\"we\\\", \\\"th\\\"))\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n (\n assertCount(2)\n &&\n assertQuery(\"$result[1] eq \\\"Wednesday\\\"\")\n &&\n assertQuery(\"$result[2] eq \\\"Thursday\\\"\")\n )\n );\n }", "@org.junit.Test\n public void mapGet003() {\n final XQuery query = new XQuery(\n \"map:get(map{}, 23)\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }", "@Test\n @Override\n public void testMapGet() {\n }", "@Test\n public void findAllEngineerPositions() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }", "@Override\r\n\tpublic void test() {\n\t\t\r\n\t\tMap<String, Object> map = new HashMap<>();\r\n\t\t\r\n\t\tcarModelMapper.queryCarModel(map);\r\n\t\tInteger count = (Integer) map.get(\"result\");\r\n\t\tSystem.out.println(count);\r\n\t}", "@Test\n public void testQuickMap() {\n Demo demo = DemoData.random();\n Demo demo2 = BeanUtil.quickMap(demo, Demo.class);\n }", "@Test\n public void verifyThatEmployeesAreReal() {\n Map<String, String> employees = getEmployees();\n// Your code here\n }", "@Test\n\tpublic void populate_map() {\n\t\t//Arrange\n\t\t//testSteve.populateProductMap();\n\t\t\n\t\t//Act\n\t\ttestSteve.populateProductMap();\n\t\t\n\t\t//Assert\n\t\tAssert.assertEquals(testSteve.getProductGenerator().size(), (16));\n\t}", "@Test\n public void mapContains() {\n check(MAPCONT);\n query(MAPCONT.args(MAPNEW.args(), 1), false);\n query(MAPCONT.args(MAPENTRY.args(1, 2), 1), true);\n }", "public void setProperties(Map properties);", "private void fetchPropertiesAccordingToCriteria(String query) {\n mRealEstateViewModel.getRealEstateAccordingUserSearch(new SimpleSQLiteQuery(query)).observe(getViewLifecycleOwner(), realEstates -> {\n if (realEstates.isEmpty())\n Snackbar.make(mActivity.findViewById(R.id.nav_host_fragment), getString(R.string.sorry_no_result), Snackbar.LENGTH_SHORT).show();\n else {\n mRealEstateViewModel.addPropertyList(realEstates);\n NavController mController = Navigation.findNavController(requireActivity(), R.id.nav_host_fragment);\n SearchFragmentDirections.ActionSearchFragmentToPropertyListFragment action =\n SearchFragmentDirections.actionSearchFragmentToPropertyListFragment();\n action.setOrigin(SEARCH_FRAGMENT);\n mController.navigate(action);\n }\n });\n }", "public void test_findByPropertys() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findByPropertys(Person.class, getParamMap(0));\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 2:\r\n\t\tpersonList = this.persistenceService.findByPropertys(Person.class, getParamMap(0), 0, PAGE_MAX_SIZE);\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// step 3:\r\n\t\tPaginationSupport ps = this.persistenceService.findPaginatedByPropertys(Person.class, getParamMap(0), 0, PAGE_MAX_SIZE);\r\n\t\tassertForFindGoingmm(ps);\r\n\t}", "@Test\n public void mapKeys() {\n check(MAPKEYS);\n query(\"for $i in \" + MAPKEYS.args(\n MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i+1\"))) + \" order by $i return $i\", \"1 2 3\");\n query(\"let $map := \" + MAPNEW.args(\" for $i in 1 to 3 return \" +\n MAPENTRY.args(\"$i\", \"$i + 1\")) +\n \"for $k in \" + MAPKEYS.args(\"$map\") + \" order by $k return \" +\n MAPGET.args(\"$map\", \"$k\"), \"2 3 4\");\n }", "protected void fillMapFromProperties(Properties props)\n {\n Enumeration<?> en = props.propertyNames();\n\n while (en.hasMoreElements())\n {\n String propName = (String) en.nextElement();\n\n // ignore map, pattern_map; they are handled separately\n if (!propName.startsWith(\"map\") &&\n !propName.startsWith(\"pattern_map\"))\n {\n String propValue = props.getProperty(propName);\n String fieldDef[] = new String[4];\n fieldDef[0] = propName;\n fieldDef[3] = null;\n if (propValue.startsWith(\"\\\"\"))\n {\n // value is a constant if it starts with a quote\n fieldDef[1] = \"constant\";\n fieldDef[2] = propValue.trim().replaceAll(\"\\\"\", \"\");\n }\n else\n // not a constant\n {\n // split it into two pieces at first comma or space\n String values[] = propValue.split(\"[, ]+\", 2);\n if (values[0].startsWith(\"custom\") || values[0].equals(\"customDeleteRecordIfFieldEmpty\") ||\n values[0].startsWith(\"script\"))\n {\n fieldDef[1] = values[0];\n\n // parse sections of custom value assignment line in\n // _index.properties file\n String lastValues[];\n // get rid of empty parens\n if (values[1].indexOf(\"()\") != -1)\n values[1] = values[1].replace(\"()\", \"\");\n\n // index of first open paren after custom method name\n int parenIx = values[1].indexOf('(');\n\n // index of first unescaped comma after method name\n int commaIx = Utils.getIxUnescapedComma(values[1]);\n\n if (parenIx != -1 && commaIx != -1 && parenIx < commaIx) {\n // remainder should be split after close paren\n // followed by comma (optional spaces in between)\n lastValues = values[1].trim().split(\"\\\\) *,\", 2);\n\n // Reattach the closing parenthesis:\n if (lastValues.length == 2) lastValues[0] += \")\";\n }\n else\n // no parens - split comma preceded by optional spaces\n lastValues = values[1].trim().split(\" *,\", 2);\n\n fieldDef[2] = lastValues[0].trim();\n\n fieldDef[3] = lastValues.length > 1 ? lastValues[1].trim() : null;\n // is this a translation map?\n if (fieldDef[3] != null && fieldDef[3].contains(\"map\"))\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n } // end custom\n else if (values[0].equals(\"xml\") ||\n values[0].equals(\"raw\") ||\n values[0].equals(\"date\") ||\n values[0].equals(\"json\") ||\n values[0].equals(\"json2\") ||\n values[0].equals(\"index_date\") ||\n values[0].equals(\"era\"))\n {\n fieldDef[1] = \"std\";\n fieldDef[2] = values[0];\n fieldDef[3] = values.length > 1 ? values[1].trim() : null;\n // NOTE: assuming no translation map here\n if (fieldDef[2].equals(\"era\") && fieldDef[3] != null)\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n }\n else if (values[0].equalsIgnoreCase(\"FullRecordAsXML\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsMARC\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsJson\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsJson2\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsText\") ||\n values[0].equalsIgnoreCase(\"DateOfPublication\") ||\n values[0].equalsIgnoreCase(\"DateRecordIndexed\"))\n {\n fieldDef[1] = \"std\";\n fieldDef[2] = values[0];\n fieldDef[3] = values.length > 1 ? values[1].trim() : null;\n // NOTE: assuming no translation map here\n }\n else if (values.length == 1)\n {\n fieldDef[1] = \"all\";\n fieldDef[2] = values[0];\n fieldDef[3] = null;\n }\n else\n // other cases of field definitions\n {\n String values2[] = values[1].trim().split(\"[ ]*,[ ]*\", 2);\n fieldDef[1] = \"all\";\n if (values2[0].equals(\"first\") ||\n (values2.length > 1 && values2[1].equals(\"first\")))\n fieldDef[1] = \"first\";\n\n if (values2[0].startsWith(\"join\"))\n fieldDef[1] = values2[0];\n\n if ((values2.length > 1 && values2[1].startsWith(\"join\")))\n fieldDef[1] = values2[1];\n\n if (values2[0].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\") ||\n (values2.length > 1 && values2[1].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\")))\n fieldDef[1] = \"DeleteRecordIfFieldEmpty\";\n\n fieldDef[2] = values[0];\n fieldDef[3] = null;\n\n // might we have a translation map?\n if (!values2[0].equals(\"all\") &&\n !values2[0].equals(\"first\") &&\n !values2[0].startsWith(\"join\") &&\n !values2[0].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\"))\n {\n fieldDef[3] = values2[0].trim();\n if (fieldDef[3] != null)\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n }\n } // other cases of field definitions\n\n } // not a constant\n\n fieldMap.put(propName, fieldDef);\n\n } // if not map or pattern_map\n\n } // while enumerating through property names\n\n // verify that fieldMap is valid\n verifyCustomMethodsAndTransMaps();\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "@org.junit.Test\n public void mapGet004() {\n final XQuery query = new XQuery(\n \"map:get(map:entry(\\\"foo\\\", \\\"bar\\\"), \\\"baz\\\")\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }", "@org.junit.Test\n public void mapGet019() {\n final XQuery query = new XQuery(\n \"map:get(map{1:=\\\"Sunday\\\",2:=\\\"Monday\\\",3:=\\\"Tuesday\\\",4:=(),5:=\\\"Thursday\\\",6:=\\\"Friday\\\",7:=\\\"Saturday\\\"}, 4)\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }", "@org.junit.Test\n public void mapGet002() {\n final XQuery query = new XQuery(\n \"map:get(map{1:=\\\"Sunday\\\",2:=\\\"Monday\\\",3:=\\\"Tuesday\\\",4:=\\\"Wednesday\\\",5:=\\\"Thursday\\\",6:=\\\"Friday\\\",7:=\\\"Saturday\\\"}, 23)\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }", "public static void main(String[] args){\n PropertiesDemo.check();\n }", "private void initializeQueryProperties() {\n defaultQueryProperties.put(\":allowed-rules\", makeCycSymbol(\n \":all\"));\n defaultQueryProperties.put(\":result-uniqueness\",\n makeCycSymbol(\":bindings\"));\n defaultQueryProperties.put(\":allow-hl-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-unbound-predicate-transformation?\", false);\n defaultQueryProperties.put(\":allow-evaluatable-predicate-transformation?\", false);\n defaultQueryProperties.put(\":intermediate-step-validation-level\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":negation-by-failure?\", false);\n defaultQueryProperties.put(\":allow-indeterminate-results?\", true);\n defaultQueryProperties.put(\":allow-abnormality-checking?\", true);\n defaultQueryProperties.put(\":disjunction-free-el-vars-policy\",\n makeCycSymbol(\":compute-intersection\"));\n defaultQueryProperties.put(\":allowed-modules\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":completeness-minimization-allowed?\", true);\n defaultQueryProperties.put(\":direction\", makeCycSymbol(\":backward\"));\n defaultQueryProperties.put(\":equality-reasoning-method\", makeCycSymbol(\":czer-equal\"));\n defaultQueryProperties.put(\":equality-reasoning-domain\", makeCycSymbol(\":all\"));\n defaultQueryProperties.put(\":max-problem-count\", Long.valueOf(100000));\n defaultQueryProperties.put(\":transformation-allowed?\", false);\n defaultQueryProperties.put(\":add-restriction-layer-of-indirection?\", true);\n defaultQueryProperties.put(\":evaluate-subl-allowed?\", true);\n defaultQueryProperties.put(\":rewrite-allowed?\", false);\n defaultQueryProperties.put(\":abduction-allowed?\", false);\n defaultQueryProperties.put(\":removal-backtracking-productivity-limit\", Long.valueOf(2000000));\n // dynamic query properties\n defaultQueryProperties.put(\":max-number\", null);\n defaultQueryProperties.put(\":max-time\", 120);\n defaultQueryProperties.put(\":max-transformation-depth\", 0);\n defaultQueryProperties.put(\":block?\", false);\n defaultQueryProperties.put(\":max-proof-depth\", null);\n defaultQueryProperties.put(\":cache-inference-results?\", false);\n defaultQueryProperties.put(\":answer-language\", makeCycSymbol(\":el\"));\n defaultQueryProperties.put(\":continuable?\", false);\n defaultQueryProperties.put(\":browsable?\", false);\n defaultQueryProperties.put(\":productivity-limit\", Long.valueOf(2000000));\n\n final CycArrayList<CycSymbolImpl> queryPropertiesList = new CycArrayList(\n defaultQueryProperties.keySet());\n final String command = makeSublStmt(\"mapcar\", makeCycSymbol(\n \"query-property-p\"), queryPropertiesList);\n try {\n CycList results = getConverse().converseList(command);\n for (int i = 0, size = results.size(); i < size; i++) {\n if (results.get(i).equals(CycObjectFactory.nil)) {\n final String badProperty = queryPropertiesList.get(i).toCanonicalString();\n System.err.println(badProperty + \" is not a query-property-p\");\n defaultQueryProperties.remove(badProperty);\n }\n }\n } catch (Exception e) {\n System.err.println(e.getMessage());\n }\n queryPropertiesInitialized = true;\n }", "public List<Map> pageTest(Map map) {\n\t\treturn iSBookMapper.pageTest(map);\n\t}", "private static HashSet<String> simpleExecution(Query query, OntModel ontologie) {\n HashSet<String> propertySet = new HashSet<>();\n try (QueryExecution qexec = QueryExecutionFactory.create(query, ontologie)) {\n ResultSet results = qexec.execSelect();\n int i = 0;\n while (results.hasNext()) {\n propertySet.add(results.next().getResource(\"prop\").getURI());\n\n i++;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return propertySet;\n }", "public void testNormalQueriesPrimitive()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQueryPrimitive(pmf,\r\n HashMap3.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap3.class);\r\n }\r\n }", "public void testGetObjects()\n {\n assertNotNull( map.getObjects() );\n }", "@org.junit.Test\n public void mapGet005() {\n final XQuery query = new XQuery(\n \"map:get(map:entry(\\\"foo\\\", \\\"bar\\\"), \\\"foo\\\")\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertStringValue(false, \"bar\")\n );\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test HQL Query for Multiple Select for Map and Pagination with Address 02\")\n public void testHQLQueryForMultipleSelectForMapAndPaginationWithAddress02()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n try (Session session = HibernateUtil.getSessionFactory().openSession()) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n\n Query query = session.createQuery(\n \"select new Map(address02Zip, address02Street) from SBAddress02 order by address02Street asc\");\n query.setFirstResult(5);\n query.setMaxResults(10);\n\n List<Map<String, String>> addressDetails = query.list();\n\n transaction.commit();\n\n System.out.println(addressDetails.size());\n\n String street = addressDetails\n .stream()\n .filter(address -> address.containsKey(\"1\"))\n .findFirst()\n .get()\n .get(\"1\");\n\n System.out.println(\"First Street : \" + street);\n\n List<String> streets = addressDetails\n .stream()\n .map(address -> address.get(\"1\"))\n .collect(Collectors.toList());\n\n streets.forEach(System.out::println);\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Test\n public void testGetProperties() throws DatabaseException {\n DatabaseProperties instance = cveDb.getDatabaseProperties();\n Properties result = instance.getProperties();\n assertTrue(result.size() > 0);\n cveDb.close();\n }", "public void setProperties(HashMap<String, String> map)\n {\n this.properties = map;\n }", "@org.junit.Test\n public void mapGet906() {\n final XQuery query = new XQuery(\n \"map:get((map{}, map{\\\"a\\\":=\\\"b\\\"}), \\\"a\\\")\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n error(\"XPTY0004\")\n );\n }", "@Test\n public void test_ProcessedMapExists() {\n try {\n Class<?> clazz = Class.forName(ENV_PROCESSED_MAP_NAME);\n Method method = clazz.getDeclaredMethod(ENV_PROCESSED_MAP_METHOD);\n method.setAccessible(true);\n HashMap<String, String> mappings = (HashMap<String, String>) method.invoke(null);\n\n Assert.assertEquals(\"There are only 3 keys, so something went wrong\", 3, mappings.size());\n } catch (Exception ex) {\n ex.printStackTrace();\n fail(ex.getMessage());\n }\n }", "public List<RMap> testGetPagedMapListByPs() throws Exception{\r\n\t\tString sql = \"select * from rexdb_test_student where student_id > ? and readonly = ?\";\r\n\t\tList<RMap> list = DB.getMapList(sql, new Ps(10, 1), 5, 10);\r\n\t\tif(list.size() != 10)\r\n\t\t\tthrow new Exception(\"getMapList seems didn't work well.\");\r\n\t\t\r\n\t\treturn list;\r\n\t}", "public void testGetSystemProperties() {\n Map<String, String> props = mb.getSystemProperties();\n assertNotNull(props);\n assertTrue(props.size() > 0);\n assertTrue(props.size() == System.getProperties().size());\n for (Map.Entry<String, String> entry : props.entrySet()) {\n assertNotNull(entry.getKey());\n assertNotNull(entry.getValue());\n }\n }", "@Test\n public void testMapCodeExamples() throws Exception {\n logger.info(\"Beginning testMapCodeExamples()...\");\n\n // Create an empty map\n Map<URL, Double> stocks = new Map<>();\n logger.info(\"Start with an empty map of stock prices: {}\", stocks);\n\n // Add some closing stock prices to it\n URL apple = new URL(\"http://apple.com\");\n stocks.setValue(apple, 112.40);\n URL google = new URL(\"http://google.com\");\n stocks.setValue(google, 526.98);\n URL amazon = new URL(\"http://amazon.com\");\n stocks.setValue(amazon, 306.64);\n logger.info(\"Add some closing stock prices: {}\", stocks);\n\n // Retrieve the closing price for Google\n double price = stocks.getValue(google);\n logger.info(\"Google's closing stock price is {}\", price);\n\n // Sort the stock prices by company URL\n stocks.sortElements();\n logger.info(\"The stock prices sorted by company web site: {}\", stocks);\n\n logger.info(\"Completed testMapCodeExamples().\\n\");\n }", "@org.junit.Test\n public void mapGet020() {\n final XQuery query = new XQuery(\n \"map:get(map{\\\"su\\\":=\\\"Sunday\\\",\\\"mo\\\":=\\\"Monday\\\",\\\"tu\\\":=\\\"Tuesday\\\",\\\"we\\\":=\\\"Wednesday\\\",\\\"th\\\":=\\\"Thursday\\\",\\\"fr\\\":=\\\"Friday\\\",\\\"sa\\\":=\\\"Saturday\\\"}, \\\"TH\\\")\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }", "@Test\n public void TEST_FR_SELECT_DIFFICULTY_MAP() {\n Map easyMap = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n easyMap.createLanes();\n Map mediumMap = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n mediumMap.createLanes();\n Map hardMap = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n hardMap.createLanes();\n\n assertTrue((countObstacles(hardMap) >= countObstacles(mediumMap)) && (countObstacles(mediumMap) >= countObstacles(easyMap)));\n assertTrue((countPowerups(hardMap) <= countPowerups(mediumMap)) && (countPowerups(mediumMap) <= countPowerups(easyMap)));\n }", "public static void main(String[] args) {\n GetProperties getProperties = new GetProperties();\n List<GetPropertiesInfo> getPropertiesInfos = getProperties.execute(args);\n OozieUtil oozieUtil = new OozieUtil();\n try {\n oozieUtil.persistBeanList(getPropertiesInfos, false);\n } catch (Exception e) {\n LOGGER.error(e);\n throw new MetadataException(e);\n }\n }", "public SearchDocument(Map<? extends String, ?> propertyMap) {\n super(propertyMap);\n }", "@Test\n public void shouldReturnUserWithSpecifiedProperties() {\n User retrievedUser = userDAO.getUser(Collections.singletonMap(KEY, VALUE));\n Assert.assertEquals(user, retrievedUser);\n }", "@Test\n public void testGet() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-1\");\n \n map.set(\"key-1\", \"value-2\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-2\");\n \n map.set(\"key-2\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-2\"), \"value-1\");\n }", "public List<PmPropertyBean> getProperties(Map paramter);", "java.util.Map<java.lang.String, java.lang.String>\n getPropertiesMap();", "@Test\n public void propertyTest() throws Exception {\n String unMatchedTriples = \"\";\n StmtIterator msIter = propertyMeasuringStick.listStatements();\n while (msIter.hasNext()) {\n Statement msStmt = msIter.nextStatement();\n // TODO: find a more formal way to filter out properties we don't need to test\n if (!msStmt.getPredicate().toString().equals(\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\") &&\n !msStmt.getPredicate().toString().equals(\"http://www.w3.org/2000/01/rdf-schema#subPropertyOf\")) {\n StmtIterator poIter = propertyOutput.listStatements();\n boolean match = false;\n while (poIter.hasNext()) {\n Statement outputStmt = poIter.nextStatement();\n if (outputStmt.equals(msStmt)) {\n match = true;\n }\n }\n // If a match is not found then set this statement.\n if (!match) {\n unMatchedTriples += msStmt.getSubject() + \" \" + msStmt.getPredicate().toString() + \" \" + msStmt.getObject().toString() + \" .\\n\";\n }\n }\n }\n // Output assertion with message of results\n if (!unMatchedTriples.equals(\"\"))\n assertTrue(\"\\nThe following triples ARE in \" + propertyOutputFileName + \" but NOT in propertyMeasuringStick.n3:\\n\" + unMatchedTriples\n , false);\n else\n assertTrue(true);\n\n }", "private void doAPITest(Map<Object,Object> table) {\n\t\tint size = table.size();\n\t\tObject key, value;\n\t\t\n\t\tMap<Object,Object> clone = cloneMap(table);\n\t\t\n\t\t// retrieve values using values()\n\t\tCollection<Object> values = table.values();\n\t\t\n\t\t// retrieve keys using keySet()\n\t\tSet<Object> keySet = table.keySet();\t\t\n\t\tObject[] keySetArray = keySet.toArray();\n\t\t\n\t\tint step = 1 + random.nextInt(5);\n\t\t\n\t\tfor (int i=0; i<keySetArray.length; i=i+step)\n\t\t{\n\t\t\tkey = keySetArray[i];\n\t\t\t// retrieve value\n\t\t\tvalue = table.get(key);\n\t\t\t\n\t\t\t// assert value is in the table\n\t\t\tassertTrue(table.containsValue(value));\n\t\t\t/*\n\t\t\t * assertTrue(table.contains(value)); // Removed as not supported by the Map interface, and identical to containsValue\n\t\t\t * if value is a wrapped key then check it's equal \n\t\t\t * to the key \n\t\t\t */\n\t\t\tif (value instanceof CustomValue)\n\t\t\t{\n\t\t\t\tassertEquals(key, ((CustomValue)value).key);\n\t\t\t}\n\t\t\t\n\t\t\t// count how many occurrences of this value there are\n\t\t\tint occurrences = numberOccurrences(values, value);\n\t\t\t\n\t\t\t// find the Map.Entry\n\t\t\tSet<Map.Entry<Object, Object>> entrySet = table.entrySet();\n\t\t\tIterator<Map.Entry<Object, Object>> entrySetIterator = entrySet.iterator();\n\t\t\tMap.Entry<Object,Object> entry = null;\n\t\t\tdo\n\t\t\t{\n\t\t\t\tentry = entrySetIterator.next();\n\t\t\t} while (!entry.getKey().equals(key));\n\t\t\t\n\t\t\t// remove from table in different ways\n\t\t\tswitch (i % 3)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\ttable.remove(key);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tkeySet.remove(key);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t\n\t\t\t\tentrySet.remove(entry);\n\t\t\t}\n\t\t\t\n\t\t\t// assert key is no longer in the table\n\t\t\tassertFalse(table.containsKey(key));\n\t\t\t// assert key is no longer in the keyset\n\t\t\tassertFalse(keySet.contains(key));\n\t\t\t// assert key is no longer in the entrySet\n\t\t\tassertFalse(entrySet.contains(entry));\n\t\t\t\n\t\t\t// assert that there's one fewer of this value in the hashtable\n\t\t\tassertEquals(occurrences, numberOccurrences(values, value) + 1);\n\t\t\t\n\t\t\t// re-insert key\n\t\t\ttable.put(key, value);\n\t\t\t\n\t\t\t// assert key is in the table\n\t\t\tassertTrue(table.containsKey(key));\n\t\t\t// assert key is in the keyset\n\t\t\tassertTrue(keySet.contains(key));\n\t\t\t// assert EntrySet is same size\n\t\t\tassertEquals(size, entrySet.size());\n\t\t}\n\t\t\n\t\t// test hashtable is the same size\n\t\tassertEquals(size, table.size());\n\t\t\n\t\t// test keySet is expected size\n\t\tassertEquals(size, keySet.size());\n\t\t\n\t\t// retrieve keys using keys()\n\t\tIterator<?> keys = table.keySet().iterator();\n\t\t\n\t\t// remove a subset of elements from the table. store in a map\n\t\tint counter = table.size() / 4;\n\t\tMap<Object,Object> map = new HashMap<Object, Object>();\n\t\twhile (keys.hasNext() && counter-- >= 0)\n\t\t{\n\t\t\tkey = keys.next();\n\t\t\tvalue = table.get(key);\n\t\t\tmap.put(key, value);\n\t\t\tkeys.remove(); // removes the most recent retrieved element\n\t\t}\n\t\t// re-add the elements using putAll\n\t\ttable.putAll(map);\n\t\t\n\t\t// test equal to copy\n\t\tassertEquals(clone, table);\n\t\t\n\t\t// clear the copy\n\t\tclone.clear();\n\t\t\n\t\t// assert size of clone is zero\n\t\tassertEquals(0, clone.size());\n\t\t\n\t\t// assert size of original is the same\n\t\tassertEquals(size, table.size());\n\t}", "@org.junit.Test\n public void mapGet014() {\n final XQuery query = new XQuery(\n \"map:get(map{1:=\\\"Sunday\\\",2:=\\\"Monday\\\",3:=\\\"Tuesday\\\",xs:anyURI(\\\"urn:weds\\\"):=\\\"Wednesday\\\",5:=\\\"Thursday\\\",6:=\\\"Friday\\\",7:=\\\"Saturday\\\"}, number('NaN'))\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }", "@org.junit.Test\n public void mapGet001() {\n final XQuery query = new XQuery(\n \"map:get(map{1:=\\\"Sunday\\\",2:=\\\"Monday\\\",3:=\\\"Tuesday\\\",4:=\\\"Wednesday\\\",5:=\\\"Thursday\\\",6:=\\\"Friday\\\",7:=\\\"Saturday\\\"}, 4)\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertStringValue(false, \"Wednesday\")\n );\n }", "public void test_findByProperty() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findByProperty(Person.class, NAME_PROPERTY, NAME_PARAM[1]);\r\n\t\tassertForFindGoogle(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 2:\r\n\t\tpersonList = this.persistenceService.findByProperty(Person.class, NAME_PROPERTY, NAME_PARAM[1], 0, PAGE_MAX_SIZE);\r\n\t\tassertForFindGoogle(personList);\r\n\t\t\r\n\t\t// step 3:\r\n\t\tPaginationSupport ps = this.persistenceService.findPaginatedByProperty(Person.class, NAME_PROPERTY, NAME_PARAM[1], 0, PAGE_MAX_SIZE);\r\n\t\tassertForFindGoogle(ps);\r\n\t}", "public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}", "public static void main(String[] args) {\n\t\tProperties properties = new Properties();\n\t\t\n\t\tproperties.setProperty(\"cho\", \"조용근\");\n\t\tproperties.setProperty(\"kang\", \"강성조\");\n\t\tproperties.setProperty(\"lee\", \"이행엽\");\n\t\t\n\t\tfor (Object key : properties.keySet()) {\n\t\t\tSystem.out.println(properties.get(key));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Map\n\t\t * key : any type?\n\t\t * Value : any type\n\t\t */\n\t\tHashMap<String, String> hashmap = new HashMap<String, String>();\n\t\thashmap.put(\"cho\", \"조용근\");\n\t\thashmap.put(\"kang\", \"강성조\");\n\t\thashmap.put(\"lee\", \"이행엽\");\n\t\t\n\t\tfor (String key : hashmap.keySet()) {\n\t\t\tSystem.out.println(hashmap.get(key));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"-------------------------------\");\n\t\t/*\n\t\t * Set (집합)\n\t\t * Value : 중복을 허용하지 않음\n\t\t */\n\t\tHashSet<String> hashset = new HashSet<String>();\n\t\thashset.add(\"조용근\");\n\t\thashset.add(\"강성조\");\n\t\thashset.add(\"이행엽\");\n\t\t\n\t\tfor (String name : hashset) {\t\t\n\t\t\tSystem.out.println(name);\n\t\t}\n\t}", "@org.junit.Test\n public void mapGet015() {\n final XQuery query = new XQuery(\n \"map:get(map{1:=\\\"Sunday\\\",2:=\\\"Monday\\\",3:=\\\"Tuesday\\\",number('NaN'):=\\\"Wednesday\\\",5:=\\\"Thursday\\\",6:=\\\"Friday\\\",7:=\\\"Saturday\\\"}, number('NaN'))\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }", "@org.junit.Test\n public void mapGet007() {\n final XQuery query = new XQuery(\n \"map:get(map:entry(xs:untypedAtomic(\\\"foo\\\"), \\\"bar\\\"), \\\"foo\\\")\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertStringValue(false, \"bar\")\n );\n }", "@org.junit.Test\n public void mapGet021() {\n final XQuery query = new XQuery(\n \"map:get(map:new(map{\\\"su\\\":=\\\"Sunday\\\",\\\"mo\\\":=\\\"Monday\\\",\\\"tu\\\":=\\\"Tuesday\\\",\\\"we\\\":=\\\"Wednesday\\\",\\\"th\\\":=\\\"Thursday\\\",\\\"fr\\\":=\\\"Friday\\\",\\\"sa\\\":=\\\"Saturday\\\"}, \\n\" +\n \" \\\"http://www.w3.org/2005/xpath-functions/collation/codepoint\\\"), \\\"TH\\\")\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }", "@Override\n\tpublic List<Setting> query(Map<?, ?> map) {\n\t\treturn settingDao.query(map);\n\t}", "default void load(Map<String, Object> properties)\r\n {\r\n }", "public static void getMapDetails(){\n\t\tmap=new HashMap<String,String>();\r\n\t map.put(getProjName(), getDevID());\r\n\t //System.out.println(\"\\n[TEST Teamwork]: \"+ map.size());\r\n\t \r\n\t // The HashMap is currently empty.\r\n\t\tif (map.isEmpty()) {\r\n\t\t System.out.println(\"It is empty\");\r\n\t\t \r\n\t\t System.out.println(\"Trying Again:\");\r\n\t\t map=new HashMap<String,String>();\r\n\t\t map.put(getProjName(), getDevID());\r\n\t\t \r\n\t\t System.out.println(map.isEmpty());\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t//retrieving values from map\r\n\t Set<String> keys= map.keySet();\r\n\t for(String key : keys){\r\n\t \t//System.out.println(key);\r\n\t System.out.println(key + \": \" + map.get(key));\r\n\t }\r\n\t \r\n\t //searching key on map\r\n\t //System.out.println(\"Map Value: \"+map.containsKey(toStringMap()));\r\n\t System.out.println(\"Map Value: \"+map.get(getProjName()));\r\n\t \r\n\t //searching value on map\r\n\t //System.out.println(\"Map Key: \"+map.containsValue(getDevID()));\r\n\t \r\n\t\t\t\t\t // Put keys into an ArrayList and sort it.\r\n\t\t\t\t\t\t//ArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\t\t\t//list.addAll(keys);\r\n\t\t\t\t\t\t//Collections.sort(list);\r\n\t\t\t\t\r\n\t\t\t\t\t\t// Display sorted keys and their values.\r\n\t\t\t\t\t\t//for (String key : list) {\r\n\t\t\t\t\t\t// System.out.println(key + \": \" + map.get(key));\r\n\t\t\t\t\t\t//}\t\t\t \r\n\t}", "@Test\n @Transactional\n void searchProperties() throws Exception {\n propertiesRepository.saveAndFlush(properties);\n when(mockPropertiesSearchRepository.search(queryStringQuery(\"id:\" + properties.getId())))\n .thenReturn(Collections.singletonList(properties));\n\n // Search the properties\n restPropertiesMockMvc\n .perform(get(ENTITY_SEARCH_API_URL + \"?query=id:\" + properties.getId()))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(properties.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].name\").value(hasItem(DEFAULT_NAME)))\n .andExpect(jsonPath(\"$.[*].isActive\").value(hasItem(DEFAULT_IS_ACTIVE)));\n }", "@Test\n public void testFindMovieMapAll() throws Exception {\n Client client = new JaxWsClient();\n MovieService movieService =\n (MovieService) client.getClient(new ClientInfo(MovieService.class,\n \"http://localhost:9002/Movie\", false));\n\n // 1. find movie map all\n Map<String, Movie> movieMap = movieService.findMovieMapAll();\n\n // 2. check the movie map count\n Assert.assertEquals(2, movieMap.size());\n }", "@org.junit.Test\n public void mapGet006() {\n final XQuery query = new XQuery(\n \"map:get(map:entry(\\\"foo\\\", \\\"bar\\\"), xs:untypedAtomic(\\\"foo\\\"))\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertStringValue(false, \"bar\")\n );\n }", "private void getObjectFacts(AstNode node, Map<String, Property> props, State state, String prefix) {\n\t\tfor(Map.Entry<String, Property> entry : props.entrySet()) {\n\t\t\tgetPropertyFacts(node, entry.getKey(), entry.getValue().address, state, prefix);\n\t\t}\n\t}", "@org.junit.Test\n public void mapGet011() {\n final XQuery query = new XQuery(\n \"map:get(map{1:=\\\"Sunday\\\",2:=\\\"Monday\\\",3:=\\\"Tuesday\\\",4.0e0:=\\\"Wednesday\\\",5:=\\\"Thursday\\\",6:=\\\"Friday\\\",7:=\\\"Saturday\\\"}, 4)\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertStringValue(false, \"Wednesday\")\n );\n }", "Map<String, Object> properties();", "private void validatePropertiesModels(GraphContext context) throws Exception\n {\n GraphService<PropertiesModel> service = new GraphService<>(context, PropertiesModel.class);\n\n int numberFound = 0;\n for (PropertiesModel model : service.findAll())\n {\n numberFound++;\n\n Properties props = model.getProperties();\n Assert.assertEquals(\"value1\", props.getProperty(\"example1\"));\n Assert.assertEquals(\"anothervalue\", props.getProperty(\"anotherproperty\"));\n Assert.assertEquals(\"1234\", props.getProperty(\"timetaken\"));\n }\n\n Assert.assertEquals(1, numberFound);\n }", "@Override\n\tpublic JSONObject query(HashMap<String,Object> map) {\n\t\treturn queryExpress(map);\n\t}", "public void setProperties(java.util.Map<String,String> properties) {\n this.properties = properties;\n }", "private static Map<String, String> readPropertiesIntoMap(Properties properties) {\n Map<String, String> dataFromProperties = new HashMap<>();\n\n for (Map.Entry<Object, Object> pair : properties.entrySet()) {\n String key = (String) pair.getKey();\n String value = (String) pair.getValue();\n\n dataFromProperties.put(key, value);\n }\n return dataFromProperties;\n }", "public void test_findListBySqlMap() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findListBySqlMap(FIND_PERSON_BY_SQLMAP, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t}", "@Test\r\n\tpublic void testMapValidation() {\r\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getContinents()));\r\n\t\t\n\t\tAssert.assertEquals(true,mapdata.contains(worldmap.getTerritories()));\r\n\t}", "@Test\n public void initializeTest()\n {\n assertEquals(0, map.size());\n }", "@Test\n public void testDisplayOrders() {\n System.out.println(\"displayOrders\");\n\n HashMap<String, HashMap<Integer, Order>> testMap = new HashMap<>();\n HashMap<Integer, Order> testMap2 = new HashMap<>();\n OrderOperations instance = new OrderOperations();\n Order testOrder = new Order();\n int orderNumber = 1;\n String date = \"03251970\";\n testOrder.setOrderNumber(1);\n testOrder.setCustomerName(\"Barack\");\n testOrder.setState(\"MI\");\n testOrder.setTaxRate(5.75);\n testOrder.setProductType(\"Wood\");\n testOrder.setArea(700);\n testOrder.setCostPerSquareFoot(5.15);\n testOrder.setLaborCostPerSquareFoot(4.75);\n testMap2.put(orderNumber, testOrder);\n instance.getOrderMap().put(date, testMap2);\n assertEquals(instance.displayOrders(date).contains(\"Wood\"), true);\n assertEquals(instance.displayOrders(date).contains(\"700\"), true);\n assertEquals(instance.displayOrders(date).contains(\"Laminate\"), false);\n\n }", "Map<String, String> properties();", "Map<String, String> properties();", "public void setProperties(Map<String, String> properties) {\n this.properties = properties;\n }", "public void testInverseQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap2.class,\r\n HashMap2Item.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap2.class);\r\n clean(HashMap2Item.class);\r\n }\r\n }", "public void testGetProperties() {\n Properties props = rootBlog.getProperties();\n assertNotNull(props);\n assertEquals(rootBlog.getName(), props.getProperty(Blog.NAME_KEY));\n }", "@Test(timeout = 100)\n public void testAccessFromMapper() {\n System.out.println(\"Starting Mapper access test\");\n }", "Map<String, String> getProperties();", "Map<String, String> getProperties();", "private static void collectReadableProperties(Map<String, PojoProperty> map,\n Class<?> cls) {\n for (final Method m : cls.getDeclaredMethods()) {\n //if (isStaticOrPrivate(m)) continue;\n if (isStatic(m.getModifiers())) continue;\n if (1 != m.getParameterTypes().length)// get=0,set=1\n continue;\n Class<?> returnType = m.getReturnType();\n if (returnType == Object.class || returnType.getName().equals(\"groovy.lang.MetaClass\")) {\n continue;\n }\n Class<?> propType = m.getParameterTypes()[0];\n if (returnType == Void.TYPE && propType.getName().equals(\"groovy.lang.MetaClass\")) {\n continue;\n }\n\n String name = m.getName();\n String propName = null;\n String originalPropName = null;\n boolean isBool = false;\n if (name.startsWith(\"set\") && name.length() > 3) {\n originalPropName = name.substring(3);\n propName = decapitalize(originalPropName, true);\n if (propType == Boolean.TYPE) {\n isBool = true;\n }\n }\n if (propName == null) continue;\n\n String getMethodName = (isBool ? \"is\" : \"get\") + originalPropName;\n try {\n Field field;\n try {\n field = cls.getDeclaredField(propName);\n } catch (NoSuchFieldException e) {\n propName = decapitalize(originalPropName, false);\n field = cls.getDeclaredField(propName);\n }\n if (map.containsKey(propName))\n continue;\n\n m.setAccessible(true);\n Method getMethod;\n getMethod = cls.getDeclaredMethod(getMethodName);\n getMethod.setAccessible(true);\n\n PojoProperty rp = new PojoProperty(propName, propType);\n rp.setGetMethod(getMethod);\n rp.setSetMethod(m);\n rp.setField(field);\n map.put(propName, rp);\n } catch (NoSuchMethodException | NoSuchFieldException e) {\n //e.printStackTrace();\n logger.warn(String.format(\"实体方法:%s 或 字段:%s 不存在\", getMethodName, propName));\n }\n }\n\n for (final Field m : cls.getDeclaredFields()) {\n //if (isStaticOrPrivate(m)) continue;\n if(isStatic(m.getModifiers())) continue;\n String propName = m.getName();\n if (map.containsKey(propName)) continue;\n Class<?> returnType = m.getType();\n m.setAccessible(true);\n PojoProperty rp = new PojoProperty(propName, returnType);\n rp.setField(m);\n map.put(propName, rp);\n }\n }", "public void setProperties(Map<String, Object> properties) {\n this.properties = properties;\n }", "@Test\n public void test() throws Exception {\n\n ModelObjectSearchService.addNoSQLServer(Address.class, new SolrRemoteServiceImpl(\"http://dr.dk\"));\n\n\n\n Address mock = NQL.mock(Address.class);\n NQL.search(mock).search(\n\n NQL.all(\n NQL.has(mock.getArea(), NQL.Comp.LIKE, \"Seb\"),\n NQL.has(\"SebastianRaw\")\n\n )\n\n ).addStats(mock.getZip()).getFirst();\n\n\n// System.out.println(\"inline query: \" + NQL.search(mock).search(mock.getA().getFunnyD(), NQL.Comp.EQUAL, 0.1d).());\n// System.out.println(\"normal query: \" + NQL.search(mock).search(mock.getArea(), NQL.Comp.EQUAL, \"area\").buildQuery());\n }", "@Test\n public void testGetValuesByResult() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n map.set(\"key-2\", \"value-2\", 10);\n map.set(\"key-3\", \"value-3\", 10);\n \n List<TpMapResult> results = map.getValuesByResult(Arrays.asList(\"key-1\", \"key-2\", \"key-3\"));\n {\n TpMapResult result = results.get(0);\n Assert.assertEquals(result.getKey(), MemcachedMap.DEFAULT_ROOT_KEY_PREFIX + TpMap.KEY_SEPARATOR + \"key-1\");\n Assert.assertEquals(result.getValue(), \"value-1\");\n }\n {\n TpMapResult result = results.get(1);\n Assert.assertEquals(result.getKey(), MemcachedMap.DEFAULT_ROOT_KEY_PREFIX + TpMap.KEY_SEPARATOR + \"key-2\");\n Assert.assertEquals(result.getValue(), \"value-2\");\n }\n {\n TpMapResult result = results.get(2);\n Assert.assertEquals(result.getKey(), MemcachedMap.DEFAULT_ROOT_KEY_PREFIX + TpMap.KEY_SEPARATOR + \"key-3\");\n Assert.assertEquals(result.getValue(), \"value-3\");\n }\n }", "public boolean probe() {\r\n List<String> sql = new ArrayList<String>(3);\r\n sql.add(\"SELECT type_id, css, name, description, format, config \" +\r\n \" FROM PropertyTypes\");\r\n sql.add(\"SELECT group_id, parent_group, group_type \" +\r\n \" FROM PropertyGroups\");\r\n sql.add(\"SELECT vprop_id, group_id, type_id, prop_value, enabled \" +\r\n \" FROM VisualProperties\");\r\n sql.add(\"SELECT vprop_id, prop_value, enabled, units, minimum, \" +\r\n \" maximum, on_value, off_value, options_only, regex, regext \" +\r\n \" FROM PropertyConfigurations\"); \r\n sql.add(\"SELECT vprop_id, option_value \" +\r\n \" FROM ConfigurationOptions\");\r\n \r\n return probe(sql);\r\n \r\n }", "public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}", "public void _getProperties() {\n Property[] properties = oObj.getProperties();\n IsThere = properties[0];\n tRes.tested(\"getProperties()\", ( properties != null ));\n return;\n }", "@org.junit.Test\n public void mapGet010() {\n final XQuery query = new XQuery(\n \"map:get(map{1:=\\\"Sunday\\\",2:=\\\"Monday\\\",3:=\\\"Tuesday\\\",4:=\\\"Wednesday\\\",5:=\\\"Thursday\\\",6:=\\\"Friday\\\",7:=\\\"Saturday\\\"}, 4.0e0)\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertStringValue(false, \"Wednesday\")\n );\n }", "@org.junit.Test\n public void mapGet013() {\n final XQuery query = new XQuery(\n \"map:get(map{1:=\\\"Sunday\\\",2:=\\\"Monday\\\",3:=\\\"Tuesday\\\",xs:anyURI(\\\"urn:weds\\\"):=\\\"Wednesday\\\",5:=\\\"Thursday\\\",6:=\\\"Friday\\\",7:=\\\"Saturday\\\"}, \\\"urn:weds\\\")\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertStringValue(false, \"Wednesday\")\n );\n }", "@java.lang.Override\n public boolean containsProperties(\n java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n return internalGetProperties().getMap().containsKey(key);\n }" ]
[ "0.626767", "0.6153419", "0.61332333", "0.6096786", "0.60345006", "0.60272884", "0.60177565", "0.5973716", "0.5949373", "0.593513", "0.5901058", "0.58959496", "0.58489966", "0.5846632", "0.58423996", "0.5823071", "0.5806129", "0.5802283", "0.578282", "0.5752876", "0.5720367", "0.5718489", "0.5716728", "0.56954473", "0.56821406", "0.5671727", "0.56540763", "0.5652813", "0.5651922", "0.5639611", "0.56347877", "0.56282806", "0.56198335", "0.56149524", "0.55817044", "0.5581596", "0.5581549", "0.5577392", "0.5551311", "0.55510724", "0.5546706", "0.5543065", "0.553463", "0.5531708", "0.5520149", "0.55057216", "0.5502406", "0.54989344", "0.5495939", "0.54945964", "0.5491423", "0.5490295", "0.54601777", "0.5459109", "0.5452332", "0.5438147", "0.5422795", "0.54179287", "0.54151005", "0.54146385", "0.5406191", "0.5404564", "0.53895366", "0.5389199", "0.5387682", "0.5380347", "0.5370283", "0.53672844", "0.53585565", "0.53543866", "0.5346066", "0.5339045", "0.53275627", "0.5321355", "0.532078", "0.5320617", "0.531884", "0.53158593", "0.53123385", "0.53105485", "0.5310525", "0.5295449", "0.52816254", "0.52816254", "0.52642214", "0.5258109", "0.5251865", "0.5247026", "0.5241512", "0.5241512", "0.52343243", "0.5219638", "0.5219637", "0.5216799", "0.5214207", "0.5209446", "0.5209261", "0.5207709", "0.5204375", "0.5198332" ]
0.6702465
0
Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test.
@Test public void testRenderMergedOutputModel_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl("/"); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); fixture.renderMergedOutputModel(model, request, response); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRenderMergedOutputModel_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", false, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testRenderMergedOutputModel_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Override\n\tprotected void renderMergedOutputModel(Map<String, Object> model,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\texposeModelAsRequestAttributes(model,request);\n\n\t\t// Determine the path for the request dispatcher.\n\t\tString dispatcherPath = prepareForRendering(request, response);\n\n\t\t// set original view being asked for as a request parameter\n\t\trequest.setAttribute(\"partial\", dispatcherPath.subSequence(14, dispatcherPath.length()));\n\n\t\t// force everything to be template.jsp\n\t\tRequestDispatcher requestDispatcher = request\n\t\t\t\t.getRequestDispatcher(\"/WEB-INF/views/template.jsp\");\n\t\trequestDispatcher.include(request, response);\n\n\t}", "@Test(expected = java.io.IOException.class)\n\tpublic void testRenderMergedOutputModel_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "protected void renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception\r\n {\r\n try\r\n {\r\n StringBuilder sitemap = new StringBuilder();\r\n sitemap.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n sitemap.append(\"<urlset xmlns=\\\"http://www.sitemaps.org/schemas/sitemap/0.9\\\">\");\r\n sitemap.append(createUrlEntries(model));\r\n sitemap.append(\"</urlset>\");\r\n\r\n response.getOutputStream().print(sitemap.toString());\r\n }\r\n catch (Exception e)\r\n {\r\n this.exceptionHandler.handle(e);\r\n }\r\n }", "@Test(expected = java.io.UnsupportedEncodingException.class)\n\tpublic void testRenderMergedOutputModel_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Override\n protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n ByteArrayOutputStream baos = createTemporaryOutputStream();\n\n // Apply preferences and build metadata.\n Document document = new Document();\n PdfWriter writer = PdfWriter.getInstance(document, baos);\n prepareWriter(model, writer, request);\n buildPdfMetadata(model, document, request);\n\n // Build PDF document.\n writer.setInitialLeading(16);\n document.open();\n buildPdfDocument(model, document, writer, request, response);\n document.close();\n\n // Flush to HTTP response.\n writeToResponse(response, baos);\n\n }", "@Override\n\tprotected void renderMergedOutputModel(\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\n\t\tif(LOGGER.isDebugEnabled()) {\n//\t\t\tif(MDC.get(CmmnConstants.REMOTE_ADDR) == null) {\n//\t\t\t\tisSetRemoteAddr = true;\n//\t\t\t\tString remoteAddr = GeneralUtils.changeLocalAddr(GeneralUtils.getIpAddress(request));\n//\t\t\t\tMDC.put(CmmnConstants.REMOTE_ADDR, remoteAddr);\n//\t\t\t\tMDC.put(CmmnConstants.CONTEXT_PATH, request.getContextPath().isEmpty()?\"/\":request.getContextPath());\n//\t\t\t}\n\t\t}\n\n\t\tsuper.renderMergedOutputModel( model, request, response);\n\n//\t\tif(isSetRemoteAddr) {\n//\t\t\tMDC.remove(CmmnConstants.REMOTE_ADDR);\n//\t\t\tMDC.remove(CmmnConstants.CONTEXT_PATH);\n//\t\t}\n\t}", "@Override\r\n public void render(Map<String, ?> model, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws Exception {\n\t\tif ( httpResponse.isCommitted() ) {\r\n\t\t\tif ( logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"Response already committed\");\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlong startMillis = System.currentTimeMillis();\r\n\r\n Response response = (Response)model.get (Response.RESPONSE_ATTRIBUTE);\r\n Writer writer = null;\r\n\t\ttry {\r\n\t\t\t// Set the response content type based on the transport\r\n\t\t\tsetContentType(response);\r\n writer = IOUtil.getResponseWriter(response);\r\n startOutput(response, writer);\r\n\t\t createOutput(response, writer);\r\n finishOutput(response, writer);\r\n } catch ( ScalarActionException e ) {\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unable to create output\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} catch ( IOException e ) {\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unable to get writer\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} catch ( Exception e ) {\r\n\t\t\t// Catching just exception on purpose\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unexpected error during output\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif ( null != writer ) {\r\n\t\t\t\t\t// Ensure output\r\n\t\t\t\t\twriter.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch ( IOException e ) {\r\n\t\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\t\tlogger.error(\"Unable to flush output\", e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"End of creating UI response: \" + httpRequest.getRequestURI() + \" Total flight time: \" + (System.currentTimeMillis() - startMillis));\r\n\t\t\t}\r\n\t\t}\r\n }", "@Override\r\n\tprotected final void renderMergedOutputModel(\r\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n\r\n\t\tExcelForm excelForm = (ExcelForm) model.get(\"excelForm\");\r\n\r\n\t\tHSSFWorkbook workbook;\r\n\t\tHSSFSheet sheet;\r\n\t\tif (excelForm.getTemplateFileUrl() != null) {\r\n\t\t\tworkbook = getTemplateSource(excelForm.getTemplateFileUrl(), request);\r\n\t\t\tsheet = workbook.getSheetAt(0);\r\n\t\t} else {\r\n\t\t\tString sheetName = excelForm.getSheetName();\r\n\r\n\t\t\tworkbook = new HSSFWorkbook();\r\n\t\t\tsheet = workbook.createSheet(sheetName);\r\n\t\t\tlogger.debug(\"Created Excel Workbook from scratch\");\r\n\t\t}\r\n\t\t\r\n\t\tresponse.setHeader( \"Content-Disposition\", \"attachment; filename=\" + URLEncoder.encode(excelForm.getFileName(), \"UTF-8\"));\r\n\r\n\t\tcreateColumnStyles(excelForm, workbook);\r\n\t\tcreateMetaRows(excelForm, workbook, sheet);\r\n\t\tcreateHeaderRow(excelForm, workbook, sheet);\r\n\t\tfor (Object review : excelForm.getData()) {\r\n\t\t\tcreateRow(excelForm, workbook,sheet, review);\r\n\t\t\tdetectLowMemory();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the content type.\r\n\t\tresponse.setContentType(getContentType());\r\n\r\n\t\t// Should we set the content length here?\r\n\t\t// response.setContentLength(workbook.getBytes().length);\r\n\r\n\t\t// Flush byte array to servlet output stream.\r\n\t\tServletOutputStream out = response.getOutputStream();\r\n\t\tworkbook.write(out);\r\n\t\tout.flush();\r\n\t}", "protected void renderMergedOutputModel(Map model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tFile file = (File)model.get(\"downloadFile\");\n\t\tresponse.setContentType(super.getContentType());\n\t\tresponse.setContentLength((int)file.length());\n\t\tresponse.setHeader(\"Content-Transfer-Encoding\",\"binary\");\n\t\tresponse.setHeader(\"Content-Disposition\",\"attachment;fileName=\\\"\"+java.net.URLEncoder.encode(file.getName(),\"utf-8\")+\"\\\";\");\n\t\tOutputStream out = response.getOutputStream();\n\t\tFileInputStream fis = null;\n\t\ttry\n\t\t{\n\t\t\tfis = new FileInputStream(file);\n\t\t\tFileCopyUtils.copy(fis, out);\n\t\t}\n\t\tcatch(java.io.IOException ioe)\n\t\t{\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(fis != null) fis.close();\n\t\t}\n\t\tout.flush();\n\t}", "private void process(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAddModel model = Util.getModel(request, Const.RESULT);\n\t\t\n\t\t// Print the \"VIEW\" using the \"MODEL\"\n\t\tprintView(response, model);\n\t}", "@Test\n public void shouldLoadFilledModel() throws Exception {\n final Map<String, Object> modelData = createFilledModel();\n // Some static data is changed at this moment, so need to reset the extractors list\n ReportColumnsExtractorHelper.reset();\n\n // WHEN asking the view to render the model contents\n underTest.renderMergedOutputModel(modelData, mock(HttpServletRequest.class), response);\n\n // THEN the resulting CSV contains the expected data\n verify(writer).write(\"\\\"Header\\\",\\\"Header NG\\\",\\\"H\\\",\\\"Header\\\"\\n\");\n verify(writer).write(\"\\\"str\\\",\\\"\\\",\\\"2\\\",\\\"\\\"\\n\");\n verify(writer).flush();\n }", "@Override\r\n public void render(HttpServletRequest request, HttpServletResponse response, Object result) throws Throwable\r\n {\n \r\n }", "@Test\n public void shouldLoadEmptyModel() throws Exception {\n final Map<String, Object> modelData = createEmptyModel();\n\n // WHEN asking the view to render the model contents\n underTest.renderMergedOutputModel(modelData, mock(HttpServletRequest.class), response);\n\n // THEN the response sets the correct MIME type\n verify(response).setContentType(\"text/csv\");\n verify(response).setHeader(\"Content-Disposition\", \"attachment; filename=activityReport.csv\");\n\n // AND returns an empty closed stream\n verify(sourceWriter).close();\n }", "@Test\n public void testRender() {\n try{\n System.out.println(\"render\");\n HttpSession session = new MockHttpSession();\n session.setAttribute(\"session_user\", ujc.findUser(1));\n String project_id = \"3\";\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n ModelAndView result = instance.render(session, project_id);\n// assertEquals(expResult, result);\n ModelAndViewAssert.assertViewName(result, \"team\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"owner\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"allMembers\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"otherUsers\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"project\");\n }\n catch(Exception e){\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Redner failed\");\n }\n }", "protected void augmentModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\n\t}", "@Test\n\tpublic void testRenderData() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"RENDER_DATA\");\n\t\tmap.put(\"rows\", \"10\");\n\t\tmap.put(\"page\", \"1\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletContext context = mock(ServletContext.class);\n\t\tfinal HttpSession session = mock(HttpSession.class);\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getServletContext()).thenReturn(context);\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\t// final HttpServletResponse realRequest = ((MolgenisRequest)\n\t\t// molRequest).getResponse();\n\t\t// System.out.println(realRequest.toString());\n\t\tverify(mockOutstream)\n\t\t\t\t.print(\"{\\\"page\\\":1,\\\"total\\\":3067,\\\"records\\\":30670,\\\"rows\\\":[{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Dutch\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"5.300000190734863\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"English\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"9.5\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Papiamento\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"76.69999694824219\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Spanish\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"7.400000095367432\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"3\\\",\\\"City.Name\\\":\\\"Herat\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Herat\\\",\\\"City.Population\\\":\\\"186800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"4\\\",\\\"City.Name\\\":\\\"Mazar-e-Sharif\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Balkh\\\",\\\"City.Population\\\":\\\"127800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"}]}\");\n\t}", "void render(IViewModel model);", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tSystem.out.println(\"View1Model execute(HttpServletRequest request, HttpServletResponse response) 호출\");\n\t}", "private void renderResources(HttpServletRequest request, HttpServletResponse response, MergeableResources codeResources, Writer out) {\n List<CMAbstractCode> codes = codeResources.getMergeableResources();\n\n //set correct contentType\n response.setContentType(contentType);\n\n for (CMAbstractCode code : codes) {\n renderResource(request, response, code, out);\n }\n\n }", "@Override\n\tpublic void buildModel(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Map templateModel)\n\t\t\tthrows HandlerExecutionException {\n\t\tString workflowName=request.getParameter(\"workflowName\");\n\t\tString taskName=request.getParameter(\"taskName\");\n\t\tString featureModelName=request.getParameter(\"featureModelName\");\n\t\tString userKey=request.getParameter(\"userKey\");\n\t\tString userName=request.getParameter(\"userName\");\n\t\tString userID=request.getParameter(\"userID\");\n\n\t\tString placeType=request.getParameter(\"placeType\");\n\t\t\n\t\tString stopAllocatedViewsResult=\"\";\n\t\t\n\t\tfeatureModelName=featureModelName.replace(\"?\", \" \");\n\n\t\t\n\t\tString viewDir=getServlet().getServletContext().getRealPath(\"/\")+ \"extensions/views/\"; \n\t\tString modelDir=getServlet().getInitParameter(\"modelsPath\");\n\t\tString configuredModelPath=modelDir+\"configured_models\";\n\t\n\t\t\n\t\t\tif ((placeType.compareToIgnoreCase(\"stop\")==0)) {\n\t\t\t\tString configuredFileName=Methods.getConfiguredFileName(configuredModelPath, userKey);\n\t\t\t\tSystem.out.println(configuredFileName);\n\t\t\t\tif(configuredFileName.compareToIgnoreCase(\"false\")==0){\n\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\tmessage.put(\"value\", \"The configuration file not found\");\n\t\t\t\t\tmessages.add(message);\n\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\n\t\t\t\t}else{\n\t\t\t\t\tstopAllocatedViewsResult=Methods.checkConfigurationCompletionInStopPlace(featureModelName, viewDir, modelDir, configuredModelPath, taskName, placeType, workflowName, configuredFileName, userName, userID);\n\t\t\t\t\tif(stopAllocatedViewsResult.compareToIgnoreCase(\"true\")==0){\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Configuration status of tasks has been checked\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Problem in checking of configuration status of the tasks\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t \n\n\t\t\t}\t\n\t\t\t\t\n\t\t\t\n\t}", "public void applyModel(ScServletData data, Object model)\n {\n }", "ModelAndView handleResponse(HttpServletRequest request,HttpServletResponse response, String actionName, Map model);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException \r\n {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) \r\n {\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet JoinGroupServlet</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet JoinGroupServlet at \" + request.getContextPath() + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {\r\n\r\n\t\t// Set the MIME type for the render response\r\n\t\tresponse.setContentType(request.getResponseContentType());\r\n\r\n\t\t// Invoke the HTML to render\r\n\t\tPortletRequestDispatcher rd = getPortletContext().getRequestDispatcher(getHtmlFilePath(request, VIEW_HTML));\r\n\t\trd.include(request,response);\r\n\t}", "@RenderMapping\r\n\tpublic String handleRenderRequest(RenderRequest request,RenderResponse response,Model model){\r\n\t\t\r\n\t\tfinal ThemeDisplay themeDisplay = GestionFavoritosUtil.getThemeDisplay(request); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tfinal String structure = request.getPreferences().getValue(\r\n\t\t\t\t\tGestionFavoritosKeys.STRUCTURE_ID, StringUtils.EMPTY);\r\n\t\t\t\r\n\t\t\tfinal List<JournalStructure> listStructures = JournalStructureLocalServiceUtil\r\n\t\t\t\t\t.getStructures(themeDisplay.getScopeGroupId());\r\n\t\t\t\r\n\t\t\tfinal List<JournalTemplate> listTemplates = GestionFavoritosUtil\r\n\t\t\t\t\t.getTemplatesByGroupId(themeDisplay.getScopeGroupId(),\r\n\t\t\t\t\t\t\tstructure);\r\n\t\t\t\r\n\t\t\t// Si hay preferencias\r\n\t\t\tif (request.getPreferences() != null) {\r\n\t\t\t\t\r\n\t\t\t\tPortletPreferences preferences = request.getPreferences();\r\n\t\t\t\t\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.STRUCTURE_ID, structure);\r\n\t\t\t\t\r\n\t\t\t\tfinal String template = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.TEMPLATE_ID, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.TEMPLATE_ID, template);\r\n\t\t\t\t\r\n\t\t\t\tfinal String categories = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.CATEGORIES, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.CATEGORIES, categories);\r\n\t\t\t\t\r\n\t\t\t\tfinal String view = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.SELECTED_VIEW, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.SELECTED_VIEW, view);\r\n\t\t\t}\t\r\n\r\n\t\t\trequest.setAttribute(GestionFavoritosKeys.LIST_STRUCTURES,\r\n\t\t\t\t\tlistStructures);\r\n\t\t\t\r\n\t\t\trequest.setAttribute(GestionFavoritosKeys.LIST_TEMPLATES,\r\n\t\t\t\t\tlistTemplates);\r\n\r\n\t\t\t\r\n\t\t} catch (SystemException e) {\r\n\t\t\tlog.error(e);\r\n\t\t\tSessionErrors.add(request, GestionFavoritosErrorKeys.VIEW_DATA);\r\n\t\t\tSessionMessages.clear(request);\r\n\t\t} \r\n\t\t\r\n\t\t\r\n\t\treturn \"edit\";\r\n\t}", "protected abstract void buildExcelDocument(Map<String, Object> model,\n Workbook workbook, HttpServletRequest request,\n HttpServletResponse response) throws Exception;", "private void processObject( HttpServletResponse oResponse, Object oViewObject ) throws ViewExecutorException\r\n {\n try\r\n {\r\n oResponse.getWriter().print( oViewObject );\r\n }\r\n catch ( IOException e )\r\n {\r\n throw new ViewExecutorException( \"View \" + oViewObject.getClass().getName() + \", generic object view I/O error\", e );\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n ArrayList<GroupModel> all=GroupDao.display();\n request.setAttribute(\"group\",all);\n RequestDispatcher rds=request.getRequestDispatcher(\"DisplayGroup.jsp\");\n rds.forward(request, response);\n \n \n\n \n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet JSONCollector</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet JSONCollector at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.setAttribute(\"model\", model);\r\n\t\treq.getRequestDispatcher(\"param.jsp\").forward(req, resp);\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n LOG.debug(\"Received new update request\");\n \n String modelerName = request.getParameter(\"name\");\n String originalModelerName = request.getParameter(\"originalName\");\n String modelId = request.getParameter(\"modelId\");\n String modelType = request.getParameter(\"modeltype\");\n // Currently not being used since we don't update the modelVersion \n // String modelVersion = request.getParameter(\"version\");\n String originalModelVersion = request.getParameter(\"originalModelVersion\");\n String runIdent = request.getParameter(\"runIdent\");\n String originalRunIdent = request.getParameter(\"originalRunIdent\");\n String runDate = request.getParameter(\"creationDate\");\n String originalRunDate = request.getParameter(\"originalCreationDate\");\n String scenario = request.getParameter(\"scenario\");\n String originalScenario = request.getParameter(\"originalScenario\");\n String comments = request.getParameter(\"comments\");\n String originalComments = request.getParameter(\"originalComments\");\n String email = request.getParameter(\"email\");\n String wfsUrl = request.getParameter(\"wfsUrl\");\n String layer = request.getParameter(\"layer\");\n String commonAttr = request.getParameter(\"commonAttr\");\n Boolean updateAsBest = \"on\".equalsIgnoreCase(request.getParameter(\"markAsBest\")) ? Boolean.TRUE : Boolean.FALSE;\n Boolean rerun = Boolean.parseBoolean(request.getParameter(\"rerun\")); // If this is true, we only re-run the R processing \n \n String responseText;\n RunMetadata newRunMetadata;\n \n ModelType modelTypeEnum = null;\n if (\"prms\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.PRMS;\n }\n if (\"afinch\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.AFINCH;\n }\n if (\"waters\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.WATERS;\n }\n if (\"sye\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.SYE;\n }\n \n RunMetadata originalRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n originalModelerName,\n originalModelVersion,\n originalRunIdent,\n originalRunDate,\n originalScenario,\n originalComments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n if (rerun) {\n String sosEndpoint = props.getProperty(\"watersmart.sos.model.repo\") + originalRunMetadata.getTypeString() + \"/\" + originalRunMetadata.getFileName();\n WPSImpl impl = new WPSImpl();\n String implResponse = impl.executeProcess(sosEndpoint, originalRunMetadata);\n Boolean processStarted = implResponse.toLowerCase().equals(\"ok\");\n responseText = \"{success: \"+processStarted.toString()+\", message: '\" + implResponse + \"'}\";\n } else {\n newRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n modelerName,\n originalModelVersion,\n runIdent,\n runDate,\n scenario,\n comments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n CSWTransactionHelper helper = new CSWTransactionHelper(newRunMetadata, null, new HashMap<String, String>());\n try {\n String results = helper.updateRunMetadata(originalRunMetadata);\n // TODO- parse xml, make sure stuff happened alright, if so don't say success\n responseText = \"{success: true, msg: 'The record has been updated'}\";\n } catch (IOException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n } catch (URISyntaxException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n }\n \n }\n \n response.setContentType(\"application/json\");\n response.setCharacterEncoding(\"utf-8\");\n \n try {\n Writer writer = response.getWriter();\n writer.write(responseText);\n writer.close();\n } catch (IOException ex) {\n LOG.warn(\"An error occurred while trying to send response to client. \", ex);\n }\n \n }", "void render( Collection<String> files, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n getServletContext().log(\"Processing a request : \" + request.getServletPath());\n \n try {\n ModelAndView mav = this.handler.handle(request, response, true);\n \n // use a view resolver.\n// response.getWriter().print(controllerResponse);\n // flush here ?\n// response.flushBuffer();\n// 2801752\n } catch (Exception ex) {\n getServletContext().log(\"Exception : \", ex);\n if(!response.isCommitted()) {\n response.sendError(500, ex.getMessage());\n }\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n\r\n List resultsList = new ArrayList();\r\n\r\n // Receive request from adminPage\r\n String c = request.getParameter(\"action\");\r\n String mem_id = request.getParameter(\"mem_id\");\r\n String id = request.getParameter(\"id\");\r\n\r\n AdminModel am = new AdminModel();\r\n\r\n // Send to model & invoke one of three methods\r\n switch (c) {\r\n case \"Check Approvals\":\r\n resultsList = am.getApprovals();\r\n break;\r\n case \"List Member Payments\":\r\n resultsList = am.listPayments(mem_id);\r\n break;\r\n case \"Approve Outstanding Member\":\r\n am.approvalResult(mem_id);\r\n break;\r\n case \"List Claims\":\r\n resultsList = am.listClaims(id);\r\n break;\r\n case \"Approve Claim\":\r\n am.approveClaim(id);\r\n break;\r\n case \"Reject Claim\":\r\n am.rejectClaim(id);\r\n break;\r\n case \"End of Year Charge\":\r\n am.endOfYearCharge();\r\n break;\r\n }\r\n\r\n // Send back to view (adminPage.jsp)\r\n request.setAttribute(\"output\", resultsList);\r\n RequestDispatcher view = request.getRequestDispatcher(\"/docs/adminPage\");\r\n view.forward(request, response);\r\n }", "@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n viewModule(request, response);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "protected void proccess(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\n\t\t// set response type to text/html\n\t\tresponse.setContentType(\"text/html\");\n\n\t\t// Get PrintWriter to write back to client\n\t\tPrintWriter out = response.getWriter();\n\n\t\t// Get contextPath for any external files such as css, js path\n\t\tString contextPath = getContextPath();\n\n\t\tSTGroup templates = this.getSTGroup();\n\t\tST page = templates.getInstanceOf(\"home\");\n\t\t\n\t\tList<City> cities = service.getAllCitySort();\n\t\t\n\t\tpage.add(\"contextPath\", contextPath);\n\t\tpage.add(\"cities\", cities);\n\n\t\tout.print(page.render());\n\t\tout.flush();\n\t}", "@RequestMapping(\"/equipmentsCalibrationRpt\")\r\n\tpublic String equipmentsCalibrationRpt(Map<String, Object> model) {\n\r\n\t\treturn \"equipmentsCalibrationRpt\";\r\n\t}", "void render(Object rendererTool);", "protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }", "private void doAfterRenderResponse(final PhaseEvent arg0) {\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n boolean wasXmlRequested = isRequestedFormatXml(request);\n if( ! wasXmlRequested ){\n super.doGet(request,response);\n }else{\n try {\n VitroRequest vreq = new VitroRequest(request);\n Configuration config = getConfig(vreq); \n ResponseValues rvalues = processRequest(vreq);\n \n response.setCharacterEncoding(\"UTF-8\");\n response.setContentType(\"text/xml;charset=UTF-8\");\n writeTemplate(rvalues.getTemplateName(), rvalues.getMap(), config, request, response);\n } catch (Exception e) {\n log.error(e, e);\n }\n }\n }", "void sendMap(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Map<String, Object> contetMap)\r\n\t\t\tthrows IOException;", "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 double technontech=Double.parseDouble(request.getParameter(\"technontech\"));\n double nontechexp=Double.parseDouble(request.getParameter(\"nontechexp\"));\n double techexp=Double.parseDouble(request.getParameter(\"techexp\"));\n double[][] arr=new double[3][3];\n arr[0][0]=arr[1][1]=arr[2][2]=1;\n arr[0][1]=technontech;\n arr[1][0]=(1/technontech);\n arr[0][2]=techexp;\n arr[2][0]=(1/techexp);\n arr[1][2]=nontechexp;\n arr[2][1]=(1/nontechexp);\n \n double[][] w=new double[3][1];\n String nextPath=\"\";\n \n boolean res=CoreProcess.AHP(arr, w);\n if(res==true)\n {\n nextPath=\"/resumeProcess.html\";\n RequestDispatcher view = request.getRequestDispatcher(nextPath);\n view.forward(request, response); \n }\n else\n {\n out.println(\"<html> <head> <link type=\\\"text/css\\\" href=\\\"./css/materialize.css\\\" rel=\\\"stylesheet\\\">\\n\" \n +\"<link type=\\\"text/css\\\" href=\\\"./css/materialize.min.css\\\" rel=\\\"stylesheet\\\">\\n\"\n +\"<meta charset=\\\"UTF-8\\\">\\n\" \n +\"<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"> \");\n out.println(\"<title> Error Page </title> </head> \");\n out.println(\"<body class=\\\"background light-blue lighten-5\\\">\");\n out.println(\"<h3 class=\\\"brown-text center\\\"> THIS IS AN ERROR PAGE. </h3>\");\n out.println(\"<div class=\\\"row\\\">\\n\" +\n\" <div class=\\\"col s12\\\">\\n\" +\n\" <div class=\\\"card hoverable center deep-purple lighten-5\\\">\\n\" +\n\" <div class=\\\"card-content purple-text\\\">\\n\" +\n\" <span class=\\\"card-title pink-text\\\"> <b> Inconsistencies in the AHP matrix. </b> </span>\" + \n\" <h5> \\n\" +\n\" You are seeing this page because you have entered an inconsistent matrix for the AHP input. \\n\" +\n\" This is usually caused by transitive inconsistencies in the given input. \\n\" +\n\" </h5>\\n\" +\n\" <h5>\\n\" +\n\" For instance, if you had entered technical as more important than non-technical criteria and non-technical criteria as more important than experience, then it is required that technical be more important than experience \\n\" +\n\" Such consistencies are automatically checked by our process so that your job specification makes logical sense. \\n\" +\n\" Now, please click the below button to go back to the AHP page and re-enter your input. Thank you. \\n\" +\n\" </h5>\\n\"+\n\" </div>\" +\n\" </div>\");\n out.println(\"<div class=\\\"row container\\\">\\n\" +\n\" <form action=\\\"AHPPage.html\\\" method=\\\"post\\\" class=\\\"col s12\\\">\"+\n\" <button class=\\\"btn waves-effect waves-light right green accent-4\\\" type=\\\"submit\\\" name=\\\"action\\\"> Go back \\n\" +\n\" <i class=\\\"material-icons right\\\"></i>\\n\" +\n\" </button>\"+\n\" </form> </div> </body> </html>\");\n \n }\n \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 /* TODO output your page here. You may use following sample code. */\n Object[] profile = data(111);\n for(int i=0; i<4; i++){\n out.print(profile[i]);\n }\n \n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(ResultsDisplay2.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void doTag()\n throws IOException, JspException, JspTagException {\n\n JspWriter out = context.getOut();\n\n if (!RDCUtils.isStringEmpty(namelist)) {\n // (1) Access/create the views map \n Map viewsMap = (Map) context.getSession().\n getAttribute(ATTR_VIEWS_MAP);\n if (viewsMap == null) {\n viewsMap = new HashMap();\n context.getSession().setAttribute(ATTR_VIEWS_MAP, viewsMap);\n }\n \n // (2) Populate form data \n Map formData = new HashMap();\n StringTokenizer nameToks = new StringTokenizer(namelist, \" \");\n while (nameToks.hasMoreTokens()) {\n String name = nameToks.nextToken();\n formData.put(name, context.getAttribute(name));\n }\n \n // (3) Store the form data according to the RDC-struts \n // interface contract\n String key = \"\" + context.hashCode();\n viewsMap.put(key, formData);\n context.getRequest().setAttribute(ATTR_VIEWS_MAP_KEY, key);\n }\n\n if (!RDCUtils.isStringEmpty(clearlist)) { \n // (4) Clear session state based on the clearlist\n if (dialogMap == null) {\n throw new IllegalArgumentException(ERR_NO_DIALOGMAP);\n }\n StringTokenizer clearToks = new StringTokenizer(clearlist, \" \");\n outer:\n while (clearToks.hasMoreTokens()) {\n String clearMe = clearToks.nextToken();\n String errMe = clearMe;\n boolean cleared = false;\n int dot = clearMe.indexOf('.');\n if (dot == -1) {\n if(dialogMap.containsKey(errMe)) {\n dialogMap.remove(errMe);\n cleared = true;\n }\n } else {\n // TODO - Nested data model re-initialization\n BaseModel target = null;\n String childId = null;\n while (dot != -1) {\n try {\n childId = clearMe.substring(0,dot);\n if (target == null) {\n target = (BaseModel) dialogMap.get(childId);\n } else {\n if ((target = RDCUtils.getChildDataModel(target,\n childId)) == null) {\n break;\n }\n }\n clearMe = clearMe.substring(dot+1);\n dot = clearMe.indexOf('.');\n } catch (Exception e) {\n MessageFormat msgFormat =\n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n continue outer;\n }\n }\n if (target != null) {\n cleared = RDCUtils.clearChildDataModel(target,\n clearMe);\n }\n }\n if (!cleared) {\n MessageFormat msgFormat = \n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n }\n }\n }\n\n // (5) Forward request\n try {\n context.forward(submit);\n } catch (ServletException e) {\n // Need to investigate whether refactoring this\n // try to provide blanket coverage makes sense\n MessageFormat msgFormat = new MessageFormat(ERR_FORWARD_FAILED);\n // Log error and send error message to JspWriter \n out.write(msgFormat.format(new Object[] {submit, namelist}));\n log.error(msgFormat.format(new Object[] {submit, namelist}));\n } // end of try-catch\n }", "protected void processView(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"here\");\n\t\tArrayList<String> errorList = new ArrayList<String>();\n\n\t\tString[] zone_name_array;\n\t\tString[] zone_type_array;\n\t\tString[] zone_heating_cooling_array;\n\t\tString[] zone_min_temp_array;\n\t\tString[] zone_max_temp_array;\n\t\tString[] zone_operation_array;\n\t\tString[] building_array;\n\n\t\tif (request.getAttribute(\"hasPastData\") == null) {\n\t\t\tbuilding_array = request.getParameterValues(\"building_name[]\");\n\t\t\tboolean bNameDup = checkDuplicate(building_array);\n\t\t\tif (bNameDup) {\n\t\t\t\terrorList.add(\"Building Names must be unique\");\n\t\t\t}\n\t\n\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\tint num = i + 1;\n\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\tboolean zNameDup = checkDuplicate(zone_name_array);\n\t\t\t\tif (zNameDup) {\n\t\t\t\t\terrorList.add(\"Zone Names with each Building must be unique\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\tint num = i + 1;\n\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\tzone_min_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_min_temp[]\");\n\t\t\t\tzone_max_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_max_temp[]\");\n\t\n\t\t\t\tfor (int j = 0; j < zone_min_temp_array.length; j++) {\n\t\t\t\t\tint minTemp = Integer.parseInt(zone_min_temp_array[j]);\n\t\t\t\t\tint maxTemp = Integer.parseInt(zone_max_temp_array[j]);\n\t\t\t\t\tif (minTemp > maxTemp) {\n\t\t\t\t\t\terrorList.add(building_array[i] + \"_\" + zone_name_array[j]\n\t\t\t\t\t\t\t\t+ \": Min Temp must be smaller than Max Temp\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tHttpSession session = request.getSession();\n\t\tPrintWriter out = response.getWriter();\n\n\t\tif (errorList.size() != 0) {\n\t\t\tString errors = \"\";\n\t\t\tfor (String s : errorList) {\n\t\t\t\terrors = errors + s + \";\";\n\t\t\t}\n\n\t\t\tout.println(errors);\n\n\t\t} else {\n\t\t\tString company = (String) session.getAttribute(\"company\");\n\t\t\tint month = PeriodManager.getMonthInt(company);\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.set(Calendar.MONTH, month);\n\t\t\tcal.set(Calendar.DATE, 1);\n\t\t\tCalendar today = Calendar.getInstance();\n\t\t\tint previousYear = Calendar.getInstance().get(Calendar.YEAR) - 1;\n\t\t\tif (today.before(cal)) {\n\t\t\t\tpreviousYear -= 1;\n\t\t\t}\n\n\t\t\tString quest_id = \"\";\n\t\t\ttry {\n\t\t\t\tquest_id = (SQLManager.getRowCount(\"questionnaire\") + 1) + \"\";\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}\n\n\t\t\t// store in QUESTIONNAIRE table\n\t\t\tString values_quest = \"\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + quest_id + \"\\',\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + request.getParameter(\"site_id\") + \"\\',\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + previousYear + \"\\',\";\n\t\t\t\n\t\t\t//check if there is past data for this site\n\t\t\tString where = \"site_id = \\'\" + request.getParameter(\"site_id\") + \"\\' and year = \\'\" + (previousYear-1) + \"\\'\";\n\t\t\tRetrievedObject ro = SQLManager.retrieveRecords(\"questionnaire\", where);\n\t\t\tResultSet rs = ro.getResultSet();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t//if yes\n\t\t\t\tString past_quest_id = \"\";\n\t\t\t\tif (rs.isBeforeFirst() ) { \n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tpast_quest_id = rs.getString(\"questionnaire_id\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//copy values from past data\n\t\t\t\t\t\tfor (int i = 4; i <= 13; i++) {\n\t\t\t\t\t\t\tString value = rs.getString(i);\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + value + \"\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 14; i <= 26; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + rs.getString(27) + \"\\',\";\n\t\t\t\t\t\tfor (int i = 28; i <= 32; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 33; i <= 48; i++) {\n\t\t\t\t\t\t\tString value = rs.getString(i);\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + value + \"\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 49; i <= 80; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + 0 + \"\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(values_quest);\n\t\t\t\t\t}\n\t\t\t\t\trs.close();\n\t\t\t\t\t//insert into questionnaire db\n\t\t\t\t\tSQLManager.insertRecord(\"questionnaire\", values_quest);\n\t\t\t\t\tsession.setAttribute(\"quest_id\", quest_id);\n\t\t\t\t\t\n\t\t\t\t\t//get the past data site definition\n\t\t\t\t\twhere = \"questionnaire_id = \\'\" + past_quest_id + \"\\'\";\n\t\t\t\t\tRetrievedObject ro_site_def = SQLManager.retrieveRecords(\"site_definition\", where);\n\t\t\t\t\tResultSet rs_site_def = ro_site_def.getResultSet();\n\t\t\t\t\tString past_site_def = \"\";\n\t\t\t\t\tString past_site_act = \"\";\n\t\t\t\t\tString past_building_name = \"\";\n\t\t\t\t\twhile (rs_site_def.next()) {\n\t\t\t\t\t\tpast_site_def = rs_site_def.getString(2);\n\t\t\t\t\t\tpast_site_act = rs_site_def.getString(3);\n\t\t\t\t\t\tpast_building_name = rs_site_def.getString(4);\n\t\t\t\t\t}\n\t\t\t\t\trs_site_def.close();\n\t\t\t\t\t\n\t\t\t\t\t//replace past data quest id with new quest id\n\t\t\t\t\tString new_site_def = past_site_def.replace(past_quest_id, quest_id);\n\t\t\t\t\t\n\t\t\t\t\t//insert into site definition db\n\t\t\t\t\tString values_site_def = \"\\'\" + quest_id + \"\\',\\'\" + new_site_def + \"\\',\\'\" + past_site_act + \"\\',\\'\" + past_building_name + \"\\'\";\n\t\t\t\t\tSQLManager.insertRecord(\"site_definition\", values_site_def);\n\t\t\t\t\t\n\t\t\t\t\t//insert into the different zone activity db\n\t\t\t\t\t//use delimiter ^ to split by building\n\t\t\t\t\tString[] site_def_info_array = past_site_def.split(\"\\\\^\");\n\t\t\t\t\tString[] site_act_array = past_site_act.split(\"\\\\^\");\n\t\t\t\t\tfor (int i = 0; i < site_def_info_array.length; i++) {\n\t\t\t\t\t\tString def = site_def_info_array[i];\n\t\t\t\t\t\tString act = site_act_array[i];\n\t\t\t\t\t\t//use delimiter * to split each building into zones\n\t\t\t\t\t\tString[] def_array = def.split(\"\\\\*\");\n\t\t\t\t\t\tString[] act_array = act.split(\"\\\\*\");\n\t\t\t\t\t\tfor (int j = 0; j < def_array.length; j++) {\n\t\t\t\t\t\t\tString d = def_array[j];\n\t\t\t\t\t\t\tString a = act_array[j];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint count = 0;\n\t\t\t\t\t\t\tString tableName = \"\";\n\t\t\t\t\t\t\tif (a.equals(\"wh_mezzanine\")) {\n\t\t\t\t\t\t\t\ttableName = \"mezzanine_form\";\n\t\t\t\t\t\t\t\tcount = 18;\n\t\t\t\t\t\t\t} else if (a.equals(\"wh_ground_to_roof\")) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"gtr\");\n\t\t\t\t\t\t\t\ttableName = \"ground_to_roof_form\";\n\t\t\t\t\t\t\t\tcount = 28;\n\t\t\t\t\t\t\t} else if (a.equals(\"wh_value_add\")) {\n\t\t\t\t\t\t\t\ttableName = \"warehouse_value_add_form\";\n\t\t\t\t\t\t\t\tcount = 20;\n\t\t\t\t\t\t\t} else if (a.equals(\"offices\")) {\n\t\t\t\t\t\t\t\ttableName = \"office_form\";\n\t\t\t\t\t\t\t\tcount = 21;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//retrieve zone record from the respective table\n\t\t\t\t\t\t\twhere = \"zone_id = \\'\" + d + \"\\'\";\n\t\t\t\t\t\t\tRetrievedObject ro_zone = SQLManager.retrieveRecords(tableName, where);\n\t\t\t\t\t\t\tResultSet rs_zone = ro_zone.getResultSet();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString new_zone_id = quest_id + \"-\" + d.split(\"-\")[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString values = \"\\'\" + quest_id + \"\\',\\'\" + new_zone_id + \"\\',\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (rs_zone.next()) {\n\t\t\t\t\t\t\t\tfor (int k = 3; k <= 11; k++) {\n\t\t\t\t\t\t\t\t\tvalues = values + \"\\'\" + rs_zone.getString(k) + \"\\',\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trs_zone.close();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove the last comma\n\t\t\t\t\t\t\tvalues = values.substring(0, values.length()-1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int m = 0; m < count; m++) {\n\t\t\t\t\t\t\t\tvalues = values + \",\\'\\'\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\">>>> values: \" + values); \n\t\t\t\t\t\t\tSQLManager.insertRecord(tableName, values);\n\t\t\t\t\t\t\tSystem.out.println(\"done!!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trequest.setAttribute(\"fromPastData\", \"true\");\n\t\t\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"Questionnaire.jsp\");\n\t\t\t\t\trd.forward(request, response);\n\t\t\t\t\t\n\t\t\t\t//if no\n\t\t\t\t} else {\n\t\t\t\t\tfor (int i = 0; i < 77; i++) {\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t}\n\t\t\t\t\tvalues_quest = values_quest + \"0\";\n\t\t\t\t\tvalues_quest = values_quest + \",\\'\\',\\'\\'\";\n\t\t\t\t\t\n\t\t\t\t\t//insert into db\n\t\t\t\t\tSQLManager.insertRecord(\"questionnaire\", values_quest);\n\t\t\t\t\tsession.setAttribute(\"quest_id\", quest_id);\n\t\t\t\t\t\n\t\t\t\t\t// site_def_details and site_def_activity to store in\n\t\t\t\t\t// SITE_DEFINITION table\n\t\t\t\t\tString site_def_details = \"\";\n\t\t\t\t\tString site_def_activity = \"\";\n\t\t\t\t\tString site_def_building_name = \"\";\n\t\t\n\t\t\t\t\tbuilding_array = request.getParameterValues(\"building_name[]\");\n\t\t\n\t\t\t\t\tString zone_details = \"\";\n\t\t\t\t\tArrayList<String> zone_list = new ArrayList<String>();\n\t\t\t\t\tString tableName = \"\";\n\t\t\t\t\tString values = \"\";\n\t\t\n\t\t\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\t\t\tint num = i + 1;\n\t\t\t\t\t\tzone_type_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_activity[]\");\n\t\t\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\t\t\tzone_heating_cooling_array = request.getParameterValues(\"b\"\n\t\t\t\t\t\t\t\t+ num + \"_zone_heating_cooling[]\");\n\t\t\t\t\t\tzone_min_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_min_temp[]\");\n\t\t\t\t\t\tzone_max_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_max_temp[]\");\n\t\t\t\t\t\tzone_operation_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_operation[]\");\n\t\t\n\t\t\t\t\t\tsite_def_building_name = site_def_building_name\n\t\t\t\t\t\t\t\t+ building_array[i] + \"*\";\n\t\t\n\t\t\t\t\t\tfor (int j = 0; j < zone_type_array.length; j++) {\n\t\t\t\t\t\t\tString zone_type = zone_type_array[j];\n\t\t\t\t\t\t\t// add to zone_list\n\t\t\t\t\t\t\tString zone_element = building_array[i] + \",\"\n\t\t\t\t\t\t\t\t\t+ zone_name_array[j] + \",\" + zone_type_array[j];\n\t\t\t\t\t\t\tzone_list.add(zone_element);\n\t\t\n\t\t\t\t\t\t\t// add to zone_details string\n\t\t\t\t\t\t\tzone_details = zone_details + zone_element + \"//\";\n\t\t\n\t\t\t\t\t\t\t// add to site_info_details string to store in\n\t\t\t\t\t\t\t// SITE_DEFINITION DB\n\t\t\t\t\t\t\tsite_def_details = site_def_details + quest_id + \"-\"\n\t\t\t\t\t\t\t\t\t+ building_array[i] + \"_\" + zone_name_array[j]\n\t\t\t\t\t\t\t\t\t+ \"*\";\n\t\t\t\t\t\t\tsite_def_activity = site_def_activity + zone_type + \"*\";\n\t\t\n\t\t\t\t\t\t\t// add to DB\n\t\t\t\t\t\t\tvalues = \"\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + quest_id + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + quest_id + \"-\" + building_array[i]\n\t\t\t\t\t\t\t\t\t+ \"_\" + zone_name_array[j] + \"\\',\";\n\t\t\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + (i + 1) + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + (j + 1) + \"\\',\";\n\t\t\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + building_array[i] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_name_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_type_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_heating_cooling_array[j]\n\t\t\t\t\t\t\t\t\t+ \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_min_temp_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_max_temp_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_operation_array[j] + \"\\'\";\n\t\t\n\t\t\t\t\t\t\tif (zone_type.equals(\"wh_mezzanine\")) {\n\t\t\t\t\t\t\t\ttableName = \"mezzanine_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"wh_ground_to_roof\")) {\n\t\t\t\t\t\t\t\ttableName = \"ground_to_roof_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"wh_value_add\")) {\n\t\t\t\t\t\t\t\ttableName = \"warehouse_value_add_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"offices\")) {\n\t\t\t\t\t\t\t\ttableName = \"office_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t\tSQLManager.insertRecord(tableName, values);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// delimit site_def_details and site_def_activity by ^ (to\n\t\t\t\t\t\t// separate by buildings)\n\t\t\t\t\t\tsite_def_details = site_def_details.substring(0,\n\t\t\t\t\t\t\t\tsite_def_details.length() - 1) + \"^\";\n\t\t\t\t\t\tsite_def_activity = site_def_activity.substring(0,\n\t\t\t\t\t\t\t\tsite_def_activity.length() - 1) + \"^\";\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\t// store site_def_details and site_def_activity in SITE_DEFINITION\n\t\t\t\t\t// table\n\t\t\t\t\tsite_def_details = site_def_details.substring(0,\n\t\t\t\t\t\t\tsite_def_details.length() - 1);\n\t\t\t\t\tsite_def_activity = site_def_activity.substring(0,\n\t\t\t\t\t\t\tsite_def_activity.length() - 1);\n\t\t\t\t\tsite_def_building_name = site_def_building_name.substring(0,\n\t\t\t\t\t\t\tsite_def_building_name.length() - 1);\n\t\t\t\t\tString site_def_values = \"\\'\" + quest_id + \"\\',\\'\"\n\t\t\t\t\t\t\t+ site_def_details + \"\\',\\'\" + site_def_activity + \"\\',\\'\"\n\t\t\t\t\t\t\t+ site_def_building_name + \"\\'\";\n\t\t\t\t\tSQLManager.insertRecord(\"site_definition\", site_def_values);\n\t\t\n\t\t\t\t\tsession.setAttribute(\"zone_details\", zone_details);\n\t\t\n\t\t\t\t\tString zone_string = \"\";\n\t\t\t\t\tfor (String z : zone_list) {\n\t\t\t\t\t\tzone_string = zone_string + z + \"//\";\n\t\t\t\t\t}\n\t\t\t\t\tzone_string = zone_string.substring(0, zone_string.length() - 2);\n\t\t\n\t\t\t\t\tsession.setAttribute(\"zone_string\", zone_string);\n\t\t\t\t\tout.println(\"yes\");\n\t\t\t\t}\t\n\t\n\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\n\t}", "void render(Map<String,List<Map<String,String>>> data);", "@Override\n protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \tString num1Str = request.getParameter(\"num1\");\n \tString num2Str = request.getParameter(\"num2\");\n \tString sum = request.getParameter(\"sum\");\n \tString sub = request.getParameter(\"sub\");\n \tString multi = request.getParameter(\"multi\");\n \tString divide = request.getParameter(\"divide\");\n \tString mud = request.getParameter(\"mud\");\n \tString pow = request.getParameter(\"pow\");\n \tdouble result;\n \ttry {\n\t\t\tdouble num1 = Double.parseDouble(num1Str);\n\t\t\tdouble num2 = Double.parseDouble(num2Str);\n\t\t\tCalcModel cal = new CalcModel(num1,num2);\n\t\t\t if(sum != null) result = cal.sum();\n\t\t\t else if (sub != null) result = cal.sub();\n\t\t\t else if (multi != null) result = cal.multi();\n\t\t\t else if (divide != null) result = cal.divide();\n\t\t\t else if (mud != null) result = cal.remainder(); \n\t\t\t else result = cal.power();\n\t\t\t \n\t\t\t\n\t\t\t\n\t\t\t// this is to result output using attribute\n\t\t\tRequestDispatcher desp = request.getRequestDispatcher(\"CalcAssignment/Calc.jsp\");\n\t\t\trequest.setAttribute(\"resultAttr\", result);\n\t\t\tdesp.forward(request, response);\n\t\t} catch (NumberFormatException e) {\n\t\t\tRequestDispatcher desp1 = request.getRequestDispatcher(\"CalcAssignment/erro.jsp\");\n\t\t\trequest.setAttribute(\"msgAttr\", e.getMessage());\n\t\t\tdesp1.forward(request, response);\n\t\t\t\n\t\t}\n \t\n \t\n \t\n \t\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n String contextPath = request.getContextPath();\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet DIVIDE</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet DivideServlet at \" + contextPath + \"</h1>\");\n \n org.netbeans.test.freeformlib.Multiplier d = new org.netbeans.test.freeformlib.Multiplier();\n try {\n String attributeX = request.getParameter(\"x\");\n if (attributeX == null) {\n attributeX = \"\";\n }\n d.setX(Double.parseDouble(attributeX));\n } catch(NumberFormatException e) {\n }\n try {\n String attributeY = request.getParameter(\"y\");\n if (attributeY == null) {\n attributeY = \"\";\n }\n d.setY(Double.parseDouble(attributeY));\n } catch(NumberFormatException e) {\n }\n \n if (d.getY() == 0) {\n out.println(\"<b>y</b> can't be 0!\");\n } else {\n out.println(\"\" + d.getX() + \" / \" + d.getY() + \" = \" + d.getMultiplication());\n }\n \n out.println(\"<br/>\");\n out.println(\"<a href=\\\"index.jsp\\\">Go back to index.jsp</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n \n out.close();\n }", "@Override\n\tpublic void doView(RenderRequest renderRequest,\n\t\t\tRenderResponse renderResponse) throws IOException, PortletException {\n\t\tsuper.doView(renderRequest, renderResponse);\n\t}", "protected void doDispatch (RenderRequest request,\n\t\t\t RenderResponse response) throws PortletException,java.io.IOException\n {\n WindowState state = request.getWindowState();\n \n if ( ! state.equals(WindowState.MINIMIZED)) {\n PortletMode mode = request.getPortletMode();\n if (mode.equals(PortletMode.VIEW)) {\n\tdoView (request, response);\n }\n else if (mode.equals(PortletMode.EDIT)) {\n\tdoEdit (request, response);\n }\n else if (mode.equals(PortletMode.HELP)) {\n\tdoHelp (request, response);\n }\n else {\n\tthrow new PortletException(\"unknown portlet mode: \" + mode);\n }\n }\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet processOutPass</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet processOutPass at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n Categories recResp = new Categories();\n int getCount = 0;\n // recResp.recipeCategories.getRecipeCategory().get(0).categoryName;\n ArrayOfRecipeClassification tests = new ArrayOfRecipeClassification();\n GetRecipeCategoriesResponse ff = new GetRecipeCategoriesResponse();\n // rc = tests.recipeClassification;\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\" <style>\\n\" +\n \"#header {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#nav {\\n\" +\n \" line-height:30px;\\n\" +\n \" background-color:#eeeeee;\\n\" +\n \" \\n\" +\n \" width:100px;\\n\" +\n \" float:left;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#row {\\n\" +\n \" display:inline-block;\\n\" +\n \"}\\n\" +\n \"#sectionl {\\n\" +\n \" width:350px;\\n\" +\n \" float:left;\\n\" +\n \" padding:30px;\\n\" +\n \"}\\n\" +\n \"#sectionC {\\n\" +\n \" width:500px;\\n\" +\n \" float:center;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"#sectionr {\\n\" +\n \" width:250px;\\n\" +\n \" float:right;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"\\n\" +\n \"#footer {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" clear:both;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"</style> \");\n out.println(\"<head>\" );\n out.println(\"<LINK href=\\\"C:/Users/hanemay/Documents/NetBeansProjects/CookingApp/web/style.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\">\");\n out.println(\"<div id=\\\"header\\\">\\n\" +\n \"<h1>Kraft Recipes</h1>\\n\" +\n \"</div>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n Enumeration<String> infomaterials= request.getParameterNames();\n while(infomaterials.hasMoreElements()) {\n System.out.println(infomaterials.nextElement()); \n } \n int amount = 100;\n String[] test = recResp.returnCats();\n try{\n amount = Integer.parseInt(request.getParameter(\"Question3\"));\n }catch(Exception e){\n \n }\n Recipes reccResp = new Recipes(amount); \n try{\n if(request.getParameter(\"isHealthy\").equalsIgnoreCase(\"healthy\"))\n reccResp.setHealthy(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"isFastFood\").equalsIgnoreCase(\"Fast food\"))\n reccResp.setUnder30Minutes(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"reqPic\").equalsIgnoreCase(\"Pictures required\"))\n reccResp.setbIsRecipePhotoRequired(true);\n }catch(Exception e){}\n reccResp.setbIsRecipePhotoRequired(true);\n while(recResp.amountOfCategories != getCount){\n reccResp.setbIsRecipePhotoRequired(true);\n reccResp.Search(recResp,recResp.recResp.getRecipeCategories().getRecipeCategory().get(getCount).categoryID);\n RecipeSummariesResponse recSumResp = reccResp.results();\n for(int recNames = 0; recNames < reccResp.getMaxAmountItems(); recNames++) {\n String url = recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).photoURL;\n if(recNames == 0){\n out.println(\"<div id=\\\"sectionC\\\">\\n\" +\n \"<h2>\"+test[getCount]+\"</h2>\\n\" +\n \"</div>\");}\n // if(recNames % 2==0){\n out.println(\"<div \\\"row\\\">\\n\" +\n \"<div id=\\\"sectionl\\\">\\n\" +\n \"<h3>\"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).recipeName+\"</h3>\\n\" + \n \"<img src=\\\"\"+url+\"\\\" style=\\\"height:254px;width:254px\\\">\\n\" +\n \"<p>\\n\" +\n \"<p>Number of ingrediens needed for this recipe : \"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()+\"</p>\\n\" +\n \"\");\n RecipeDetailResponse rec = reccResp.soapService.getRecipeByRecipeID(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getRecipeID(), true, 1, 1);\n for(int ingredientCounter = 0; ingredientCounter < Integer.parseInt(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()); ingredientCounter++ ){\n out.println(\"<p>\" + rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).ingredientName + \" amount : \"+ rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).quantityNum+\" \"+\n \"</p>\");\n }\n out.println(\"</p>\");\n out.println(\"</div>\\n\" );\n } \n getCount ++;\n }\n out.println(\"</body>\"); \n out.println(\"</html>\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/json;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n\n XTreeDictionary data = new XTreeDictionary();\n MapConverter map = new MapConverter(data);\n Gson gson = new Gson();\n String bid = request.getParameter(\"bid\");\n if (bid == null ? true : bid.isEmpty()) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n XArrayList booking_list = AbstractEntity.readDataFormCsv(new Booking());\n booking_list = booking_list.binarySearchAndSort(\"booking_id\", bid, Booking.class);\n if (booking_list == null ? true : booking_list.isEmpty()) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n Booking b = (Booking) booking_list.get(0);\n if (b == null ? true : b.isNotNull() || b.getDriver_id() == null) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n if (b.getBookingStatus().equals(BookingStatus.WATING_ACCEPTED)) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n\n XArrayList driver_list = AbstractEntity.readDataFormCsv(new Driver());\n driver_list = driver_list.binarySearchAndSort(\"user_id\", b.getDriver_id(), Driver.class);\n if (driver_list == null ? true : driver_list.isEmpty() || driver_list.get(0) == null) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n\n // Have update\n Driver d = (Driver) driver_list.get(0);\n // ouser phone, ouser name, ouser profile picture, booking status name\n // ouser_phone, ouser_name, ouser_profile, booking_status\n data.add(\"status\", \"OK\");\n data.add(\"ouser_phone\", d.getPhoneNumber() == null ? \"\" : d.getPhoneNumber());\n data.add(\"ouser_name\", d.getName());\n data.add(\"booking_status\", b.getBookingStatus());\n data.add(\"ouser_profile\", Functions.getProfilePic_byid(d.getId()));\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n }\n\n }", "@Test\n public void testRender(){\n Mockito.doNothing().when(renderer).renderWorld(level);\n Mockito.doNothing().when(renderer).renderScore();\n Mockito.doNothing().when(renderer).renderLives();\n renderer.render();\n verify(renderer).renderWorld(level);\n verify(renderer).renderScore();\n verify(renderer).renderLives();\n verify(batch).begin();\n verify(batch).end();\n }", "private static String unguardedRenderResponseContent(EvaluableRequest evaluableRequest, Map<String, Object> requestContext, TemplateEngine engine, String responseContent) {\n engine.getContext().setVariable(\"request\", evaluableRequest);\n if (requestContext != null) {\n engine.getContext().setVariables(requestContext);\n }\n try {\n return engine.getValue(responseContent);\n } catch (Throwable t) {\n log.error(\"Failing at evaluating template \" + responseContent, t);\n }\n return responseContent;\n }", "@Test\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void testGridOutput() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"LOAD_CONFIG\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\tfinal String out = \"{\\\"id\\\":\\\"test\\\",\\\"url\\\":\\\"molgenis.do?__target\\\\u003dtest\\\\u0026__action\\\\u003ddownload_json\\\",\\\"datatype\\\":\\\"json\\\",\\\"pager\\\":\\\"#testPager\\\",\\\"colNames\\\":[\\\"Country.Code\\\",\\\"Country.Name\\\",\\\"Country.Continent\\\",\\\"Country.Region\\\",\\\"Country.SurfaceArea\\\",\\\"Country.IndepYear\\\",\\\"Country.Population\\\",\\\"Country.LifeExpectancy\\\",\\\"Country.GNP\\\",\\\"Country.GNPOld\\\",\\\"Country.LocalName\\\",\\\"Country.GovernmentForm\\\",\\\"Country.HeadOfState\\\",\\\"Country.Capital\\\",\\\"Country.Code2\\\",\\\"City.ID\\\",\\\"City.Name\\\",\\\"City.CountryCode\\\",\\\"City.District\\\",\\\"City.Population\\\",\\\"CountryLanguage.CountryCode\\\",\\\"CountryLanguage.Language\\\",\\\"CountryLanguage.IsOfficial\\\",\\\"CountryLanguage.Percentage\\\"],\\\"colModel\\\":[{\\\"name\\\":\\\"Country.Code\\\",\\\"index\\\":\\\"Country.Code\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Code\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Code\\\"},{\\\"name\\\":\\\"Country.Name\\\",\\\"index\\\":\\\"Country.Name\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Name\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Name\\\"},{\\\"name\\\":\\\"Country.Continent\\\",\\\"index\\\":\\\"Country.Continent\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Continent\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Continent\\\"},{\\\"name\\\":\\\"Country.Region\\\",\\\"index\\\":\\\"Country.Region\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Region\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Region\\\"},{\\\"name\\\":\\\"Country.SurfaceArea\\\",\\\"index\\\":\\\"Country.SurfaceArea\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.SurfaceArea\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.SurfaceArea\\\"},{\\\"name\\\":\\\"Country.IndepYear\\\",\\\"index\\\":\\\"Country.IndepYear\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.IndepYear\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.IndepYear\\\"},{\\\"name\\\":\\\"Country.Population\\\",\\\"index\\\":\\\"Country.Population\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Population\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Population\\\"},{\\\"name\\\":\\\"Country.LifeExpectancy\\\",\\\"index\\\":\\\"Country.LifeExpectancy\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.LifeExpectancy\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.LifeExpectancy\\\"},{\\\"name\\\":\\\"Country.GNP\\\",\\\"index\\\":\\\"Country.GNP\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GNP\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GNP\\\"},{\\\"name\\\":\\\"Country.GNPOld\\\",\\\"index\\\":\\\"Country.GNPOld\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GNPOld\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GNPOld\\\"},{\\\"name\\\":\\\"Country.LocalName\\\",\\\"index\\\":\\\"Country.LocalName\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.LocalName\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.LocalName\\\"},{\\\"name\\\":\\\"Country.GovernmentForm\\\",\\\"index\\\":\\\"Country.GovernmentForm\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GovernmentForm\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GovernmentForm\\\"},{\\\"name\\\":\\\"Country.HeadOfState\\\",\\\"index\\\":\\\"Country.HeadOfState\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.HeadOfState\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.HeadOfState\\\"},{\\\"name\\\":\\\"Country.Capital\\\",\\\"index\\\":\\\"Country.Capital\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Capital\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Capital\\\"},{\\\"name\\\":\\\"Country.Code2\\\",\\\"index\\\":\\\"Country.Code2\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Code2\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Code2\\\"},{\\\"name\\\":\\\"City.ID\\\",\\\"index\\\":\\\"City.ID\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.ID\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.ID\\\"},{\\\"name\\\":\\\"City.Name\\\",\\\"index\\\":\\\"City.Name\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.Name\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.Name\\\"},{\\\"name\\\":\\\"City.CountryCode\\\",\\\"index\\\":\\\"City.CountryCode\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.CountryCode\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.CountryCode\\\"},{\\\"name\\\":\\\"City.District\\\",\\\"index\\\":\\\"City.District\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.District\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.District\\\"},{\\\"name\\\":\\\"City.Population\\\",\\\"index\\\":\\\"City.Population\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.Population\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.Population\\\"},{\\\"name\\\":\\\"CountryLanguage.CountryCode\\\",\\\"index\\\":\\\"CountryLanguage.CountryCode\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.CountryCode\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.CountryCode\\\"},{\\\"name\\\":\\\"CountryLanguage.Language\\\",\\\"index\\\":\\\"CountryLanguage.Language\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.Language\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.Language\\\"},{\\\"name\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"index\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.IsOfficial\\\"},{\\\"name\\\":\\\"CountryLanguage.Percentage\\\",\\\"index\\\":\\\"CountryLanguage.Percentage\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.Percentage\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.Percentage\\\"}],\\\"rowNum\\\":10,\\\"rowList\\\":[10,20,30],\\\"viewrecords\\\":true,\\\"caption\\\":\\\"test\\\",\\\"autowidth\\\":true,\\\"sortname\\\":\\\"\\\",\\\"sortorder\\\":\\\"desc\\\",\\\"height\\\":\\\"auto\\\",\\\"postData\\\":{\\\"filters\\\":{\\\"groupOp\\\":\\\"AND\\\",\\\"rules\\\":[]},\\\"rows\\\":0,\\\"page\\\":0},\\\"jsonReader\\\":{\\\"id\\\":\\\"Name\\\",\\\"repeatitems\\\":false},\\\"settings\\\":{\\\"del\\\":false,\\\"add\\\":false,\\\"edit\\\":false,\\\"search\\\":true},\\\"toolbar\\\":[true,\\\"top\\\"]}\";\n\n\t\t// test whether the desired json data is written\n\t\tverify(mockOutstream).println(out);\n\n\t\t// some tests to check the structure of the json\n\t\tfinal Gson gson = new Gson();\n\t\tfinal Map<String, Object> map2 = gson.fromJson(out, Map.class);\n\t\tassertEquals(\"test\", map2.get(\"id\"));\n\t\tassertEquals(\"molgenis.do?__target\\u003dtest\\u0026__action\\u003ddownload_json\", map2.get(\"url\"));\n\t\tassertEquals(Arrays.asList(\"Country.Code\", \"Country.Name\", \"Country.Continent\", \"Country.Region\",\n\t\t\t\t\"Country.SurfaceArea\", \"Country.IndepYear\", \"Country.Population\", \"Country.LifeExpectancy\",\n\t\t\t\t\"Country.GNP\", \"Country.GNPOld\", \"Country.LocalName\", \"Country.GovernmentForm\", \"Country.HeadOfState\",\n\t\t\t\t\"Country.Capital\", \"Country.Code2\", \"City.ID\", \"City.Name\", \"City.CountryCode\", \"City.District\",\n\t\t\t\t\"City.Population\", \"CountryLanguage.CountryCode\", \"CountryLanguage.Language\",\n\t\t\t\t\"CountryLanguage.IsOfficial\", \"CountryLanguage.Percentage\"), map2.get(\"colNames\"));\n\t\tfinal Map<?, ?> countryCodeColumn = ((ArrayList<Map<?, ?>>) map2.get(\"colModel\")).get(0);\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"name\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"index\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"title\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"path\"));\n\t\tassertEquals(Arrays.asList(\"eq\", \"ne\", \"bw\", \"bn\", \"ew\", \"en\", \"cn\", \"nc\"),\n\t\t\t\t((Map<?, ?>) countryCodeColumn.get(\"searchoptions\")).get(\"sopt\"));\n\t\tassertEquals(10.0, map2.get(\"rowNum\"));\n\t\tassertEquals(Arrays.asList(10.0, 20.0, 30.0), map2.get(\"rowList\"));\n\t\tassertEquals(\"desc\", map2.get(\"sortorder\"));\n\t}", "@Override\n\tprotected void buildExcelDocument(Map<String, Object> model, HSSFWorkbook workbook, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception \n\t{\n\t\t\n\t\tString formName = (String)model.get(\"formName\");\n\t\tif (\"Supplier\".equals(formName))\n\t\t\tsetSupplierExcelData(model, workbook);\n\t\telse if (\"Customer\".equals(formName))\n\t\t\tsetCustomerExcelData(model, workbook);\n\t\telse if (\"Item\".equals(formName))\n\t\t\tsetItemExcelData(model, workbook);\n\t\telse if (\"NonInventoryItem\".equals(formName))\n\t\t\tsetNonInventoryExcelData(model, workbook);\n\t\telse if (\"Project\".equals(formName))\n\t\t\tsetProjectExcelData(model, workbook);\n\t\telse if (\"Warehouse\".equals(formName))\n\t\t\tsetWarehouseExcelData(model, workbook);\n\t\t\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\" + formName);\n\t\n\t}", "protected void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\trequest.setCharacterEncoding(\"UTF-8\");\r\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\r\n\t\tBoardDTO dto = new BoardDTO();\r\n\t\tdto.setbTitle(request.getParameter(\"bTitle\"));\r\n\t\tdto.setbWriter(request.getParameter(\"bWriter\"));\r\n\t\tdto.setbPassword(request.getParameter(\"bPassword\"));\r\n\t\tdto.setbContent(request.getParameter(\"bContent\"));\r\n\t\tWirteService writesvc = new WirteService();\r\n\t\twritesvc.WirteService(dto);\r\n\t}", "protected void processTemplate(Map<String,?> attributes, Writer out, Template template, String encoding) throws IOException {\n long startTime = System.currentTimeMillis();\n\n Context context = buildContext(attributes);\n template.setEncoding(encoding);\n\n try {\n template.merge(context, out);\n log.debug(\"Velocity template transform processed in \" + \n (System.currentTimeMillis() - startTime) + \" ms\");\n } catch (ResourceNotFoundException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (ParseErrorException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (Exception errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/json;charset=utf-8\");\n try (PrintWriter out = response.getWriter()) {\n\n String file = request.getParameter(\"file\");\n String className = file.substring(0, file.indexOf(\".\"));\n\n try {\n \n JSONObject obj = new JSONObject();\n JSONArray errArray = new JSONArray();\n JSONArray outArray = new JSONArray();\n \n for(String aError : execErroutput(Config.DATA_PATH, Config.CMD_ENCODE, className)){\n errArray.put(aError);\n }\n for(String aOutput : execOutput(Config.DATA_PATH, Config.CMD_ENCODE, className)){\n outArray.put(aOutput);\n }\n \n obj.put(\"Error\", errArray);\n obj.put(\"Output\", outArray);\n \n out.println(obj.toString(4));\n \n } catch (Exception e) {\n System.err.println(e);\n }\n\n }\n }", "private void doSearchError(Map<String, Object> map, Configuration config, HttpServletRequest request, HttpServletResponse response) {\n writeTemplate(TEMPLATE_DEFAULT, map, config, request, response);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet GetWallGroupPostsServlet</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet GetWallGroupPostsServlet at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n */\n } finally { \n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\"); \n PrintWriter out = response.getWriter();\n \n /**\n * cdmsDO :: addMarket\n * --> cdmaCity\n * --> cdmaBorough\n * --> cdmaLocality\n * --> cdmCompany\n * :: getMarket\n * --> cdmID (OPTIONAL)\n * :: deleteMarket\n * --> cdmID\n *\n * \n * !! SHORTCUTs !!\n * carpe diem market --> cdm\n * carpe diem market address --> cdma\n * carpe diem market servlet --> cdms \n *\n */\n HttpSession session = request.getSession(false);\n Gson gson = new Gson();\n MysqlDBOperations mysql = new MysqlDBOperations();\n ResourceProperty resource = new ResourceProperty(\"com.generic.resources.mysqlQuery\");\n Result res = Result.FAILURE_PROCESS;\n Map resultMap = new HashMap();\n \n \n \n //verbose(request);\n \n \n \n //**********************************************************************\n //**********************************************************************\n //** STRIKE UP SERVLET OPERATION\n //**********************************************************************\n //**********************************************************************\n try {\n \n \n \n if(request.getParameter(\"cdmsDO\")!=null){ \n switch(request.getParameter(\"cdmsDO\")){ \n \n //**************************************************************\n //**************************************************************\n //** ADD TO MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"addMarket\": \n \n if( !Checker.anyNull(request.getParameter(\"cdmaCity\"),request.getParameter(\"cdmaBorough\"),request.getParameter(\"cdmaLocality\"),request.getParameter(\"cdmCompany\")) ){ \n \n // create dist-id\n // get address id\n \n \n res = Result.SUCCESS;\n }else{\n res = Result.FAILURE_PARAM_MISMATCH;\n }\n \n\n break;\n \n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketList\": \n \n \n // GET SPECIFIC MARKET\n if(!Checker.anyNull(request.getParameter(\"cdmID\"))){\n \n Map params = new HashMap();\n params.put(\"\", request.getParameter(\"cdmID\"));\n \n // GET ALL MARKETs\n }else{\n \n res = DBMarket.selectDistict(ResourceMysql.TABLE_DISTRIBUTER, \"distID\");\n \n }\n \n \n break;\n \n \n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET-ADRESS CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketAddressList\": \n \n \n // GET SPECIFIC MARKET\n if(!Checker.anyNull(request.getParameter(\"cdmID\"))){\n \n Map params = new HashMap();\n params.put(\"\", request.getParameter(\"cdmID\"));\n \n // GET ALL MARKETs\n }else{\n \n res = Result.FAILURE_PARAM_MISMATCH;\n \n }\n \n \n break;\n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET-ORDER CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketOrderList\": \n \n Result tempRes = DBUser.getUserCompany((String) session.getAttribute(\"cduUserId\")); \n if(tempRes.checkResult(Result.SUCCESS)){\n // Get user company and distributer id\n Map userMap = (Map) tempRes.getContent();\n String compName = (String) ((ArrayList)userMap.get(\"userCompany\")).get(0);\n String distName = (String) ((ArrayList)userMap.get(\"userDistributer\")).get(0); \n\n tempRes = DBMarket.getAddresses(distName);\n if(tempRes.checkResult(Result.SUCCESS)){\n Map m = (Map) tempRes.getContent();\n res = DBMarket.getOrders(compName, (List<String>) m.get(\"distAddressList\"));\n }\n }else{\n res = Result.FAILURE_PROCESS;\n }\n \n \n break;\n \n \n \n \n \n //**************************************************************\n //**************************************************************\n //** REMOVE MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"deleteMarket\":\n \n \n \n break;\n \n \n \n //**************************************************************\n //**************************************************************\n //** DEFAULT CASE\n //**************************************************************\n //**************************************************************\n default:\n res = Result.FAILURE_PARAM_WRONG;\n break;\n }\n\n }else{\n res = Result.FAILURE_PARAM_MISMATCH;\n }\n \n }finally{ \n \n mysql.closeAllConnection();\n out.write(gson.toJson(res));\n out.close();\n \n }\n \n }", "protected void renderMap(float mouseLocationX, float mouseLocationY)\n {\n float tileSize = zoom;\n\n //Calculate the number of tiles that can fit on screen\n int tiles_x = (int) Math.ceil(screenSizeX / tileSize) + 2;\n int tiles_y = (int) Math.ceil(screenSizeY / tileSize) + 2;\n\n //Offset tile position based on camera\n int center_x = (int) (cameraPosX - (zoom / 2f));\n int center_y = (int) (cameraPosY - (zoom / 2f));\n\n //Calculate the offset to make tiles render from the center\n int renderOffsetX = (tiles_x - 1) / 2;\n int renderOffsetY = (tiles_y - 1) / 2;\n\n //Get the position of the mouse based on screen size and tile scale\n float mouseScreenPosXScaled = mouseLocationX * screenSizeX / tileSize;\n float mouseScreenPosYScaled = mouseLocationY * screenSizeY / tileSize;\n\n //Get the position of the mouse relative to the map\n int mouseMapPosX = (int) Math.floor(center_x + mouseScreenPosXScaled);\n int mouseMapPosY = (int) Math.floor(center_y + mouseScreenPosYScaled);\n\n //Get the tile the mouse is currently over\n Tile tileUnderMouse = game.getWorld().getTile(mouseMapPosX, mouseMapPosY, cameraPosZ);\n\n //Render tiles\n for (int x = -renderOffsetX; x < renderOffsetX; x++)\n {\n for (int y = -renderOffsetY; y < renderOffsetY; y++)\n {\n int tile_x = x + center_x;\n int tile_y = y + center_y;\n Tile tile = game.getWorld().getTile(tile_x, tile_y, cameraPosZ);\n if (tile != Tiles.AIR)\n {\n TileRender.render(tile, x * tileSize, y * tileSize, zoom);\n }\n }\n }\n\n //Render entities\n for (Entity entity : game.getWorld().getEntities())\n {\n //Ensure the entity is on the floor we are rendering\n if (entity.zi() == cameraPosZ)\n {\n float tile_x = (entity.xf() - center_x) * tileSize;\n float tile_y = (entity.yf() - center_y) * tileSize;\n\n //Ensure the entity is in the camera view\n if (tile_x >= cameraBoundLeft && tile_x <= cameraBoundRight)\n {\n if (tile_y >= cameraBoundBottom && tile_y <= cameraBoundTop)\n {\n EntityRender.render(entity, tile_x, tile_y, 0, zoom);\n\n if (mouseMapPosX == entity.xi() && mouseMapPosY == entity.yi())\n {\n String s = entity.getDisplayName();\n fontRender.render(s, mouseLocationX * screenSizeX, mouseLocationY * screenSizeY, 0, 0, .5f * zoom);\n }\n }\n }\n }\n }\n\n float x = mouseMapPosX * tileSize;\n float y = mouseMapPosY * tileSize;\n\n //System.out.println(x + \" \" + y + \" \" + zoom + \" \" + tx + \" \" + ty + \" \" + tile);\n\n if (currentGuiComponetInUse != null)\n {\n target_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n else\n {\n box_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n\n if (!MouseInput.leftClick() && clickLeft)\n {\n clickLeft = false;\n doLeftClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n\n if (!MouseInput.rightClick() && clickRight)\n {\n clickRight = false;\n doRightClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "@RequestMapping(value=\"hao.do\")\n\tpublic void hao_jsp(@ModelAttribute(\"pojo\") Pojo pojo,HttpServletResponse response) throws IOException{\n\t\tSystem.out.println(pojo.getA()+\" \"+pojo.getB());\n\t\tresponse.sendRedirect(\"success.jsp\");\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n\n String html = \" <span class=\\\"glyphicon glyphicon-exclamation-sign\\\" aria-hidden=\\\"true\\\"></span><span class=\\\"sr-only\\\">Error:</span> \";\n\n String message = \"\";\n\n try {\n /* TODO output your page here. You may use following sample code. */\n\n boolean error = false;\n\n // Check Lat Lon\n String latlng = String.valueOf(request.getParameter(\"latlng\"));\n String lat = \"\";\n String lon = \"\";\n if (!latlng.equals(\"null\") && !latlng.equals(\"\")) {\n int position = latlng.indexOf(\",\");\n lat = latlng.substring(0, position);\n lon = latlng.substring(position + 1, latlng.length());\n } else {\n message += html + \"Please select a point on the map! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n\n // Check number of projects\n int number_of_projects = 0;\n try {\n number_of_projects = Integer.parseInt(String.valueOf(request.getParameter(\"number_of_projects\")));\n } catch (Exception e) {\n }\n if (number_of_projects <= 0) {\n message += html + \"Please enter a positive integer! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n if (number_of_projects > 100) {\n message += html + \"Number of projects is limited to 100! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n\n // If no error\n if (!error) {\n ProjectDAO pdao = new ProjectDAO();\n ArrayList<Project> result = pdao.retrieve(number_of_projects, lat, lon);\n JsonArray projectList = pdao.toJSON(result, number_of_projects);\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(projectList);\n request.setAttribute(\"project_comparison_result\", json);\n }\n\n request.setAttribute(\"return_num\", number_of_projects);\n request.setAttribute(\"latlng\", latlng);\n RequestDispatcher rd = request.getRequestDispatcher(\"ProjectComparison.jsp\");\n rd.forward(request, response);\n\n } catch (Exception e) {\n // Send error (if any) back to homepage\n } finally {\n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n RequestDispatcher rd=null;\n HttpSession session = request.getSession();\n String userid = (String)session.getAttribute(\"userid\");\n if(userid==null)\n {\n session.invalidate();\n response.sendRedirect(\"accessdenied.html\");\n return;\n }\n try\n {\n System.out.println(\"in the try of election result controller servlet\");\n Map<String , Integer> result = VoteDao.getResult();\n System.out.println(\"fetched party and vote from voteDao\");\n Set s = result.entrySet();\n Iterator it = s.iterator();\n LinkedHashMap<PartyWiseResult , Integer> resultDetails = new LinkedHashMap<>();\n while(it.hasNext())\n {\n Map.Entry<String , Integer> e = (Map.Entry)it.next();\n System.out.println(\"no we are iterating with \"+e.getKey());\n String symbol = CandidateDao.getPartySymbol(e.getKey());\n System.out.println(\"got the symbol for \"+e.getKey());\n PartyWiseResult pw = new PartyWiseResult();\n pw.setParty(e.getKey());\n pw.setSymbol(symbol);\n resultDetails.put(pw, e.getValue());\n \n }\n request.setAttribute(\"votecount\", VoteDao.getVoteCount());\n request.setAttribute(\"result\", resultDetails);\n rd = request.getRequestDispatcher(\"electionresult.jsp\");\n System.out.println(\"attribute for show election result is setted successfully\");\n }\n catch(Exception ex)\n {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n request.setAttribute(\"Exception\", ex);\n rd = request.getRequestDispatcher(\"showexception.jsp\");\n }\n finally\n {\n System.out.println(\"we are in the finally\");\n rd.forward(request, response);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n } finally { \r\n out.close();\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n long id = new Integer(request.getParameter(\"id\"));\n\n \n ResourcePOJO res = null;\n// try {\n res = manager.getResource(id, false);\n// } catch (JAXBException e) {\n// throw new IOException(e.getMessage());\n// }\n LayerManager layerBean = new LayerManager(res);\n \n try {\n \n request.setAttribute(\"layer\", layerBean);\n \n String layerName = layerBean.getName();\n \n List<ResourcePOJO> relatedStatsDefs = manager.searchStatsDefByLayer(layerName);\n request.setAttribute(\"statsDefs\", relatedStatsDefs);\n \n List<ResourcePOJO> relatedLayerUpdates = manager.searchLayerUpdatesByLayerName(layerName);\n request.setAttribute(\"layerUpdates\", relatedLayerUpdates);\n \n String data = manager.getData(id, MediaType.WILDCARD_TYPE.toString());\n layerBean.setData(data);\n \n request.setAttribute(\"storedData\", data);\n \n } catch (Exception ex) {\n Logger.getLogger(LayerShow.class.getName()).log(Level.SEVERE, null, ex);\n }\n String outputPage = getServletConfig().getInitParameter(\"outputPage\");\n RequestDispatcher rd = request.getRequestDispatcher(outputPage);\n rd.forward(request, response);\n }", "@Override\n protected void handleRequest (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope,\n @Nonnull final UnifiedResponse aUnifiedResponse) throws Exception\n {\n String sKey = aRequestScope.getPathWithinServlet ();\n if (sKey.length () > 0)\n sKey = sKey.substring (1);\n\n SimpleURL aTargetURL = null;\n final GoMappingItem aGoItem = getResolvedGoMappingItem (sKey);\n if (aGoItem == null)\n {\n s_aLogger.warn (\"No such go-mapping item '\" + sKey + \"'\");\n // Goto start page\n aTargetURL = getURLForNonExistingItem (aRequestScope, sKey);\n s_aStatsError.increment (sKey);\n }\n else\n {\n // Base URL\n if (aGoItem.isInternal ())\n {\n final IMenuTree aMenuTree = getMenuTree ();\n if (aMenuTree != null)\n {\n // If it is an internal menu item, check if this internal item is an\n // \"external menu item\" and if so, directly use the URL of the\n // external menu item\n final IRequestManager aARM = ApplicationRequestManager.getRequestMgr ();\n final String sTargetMenuItemID = aARM.getMenuItemFromURL (aGoItem.getTargetURL ());\n\n final IMenuObject aMenuObj = aMenuTree.getItemDataWithID (sTargetMenuItemID);\n if (aMenuObj instanceof IMenuItemExternal)\n {\n aTargetURL = new SimpleURL (((IMenuItemExternal) aMenuObj).getURL ());\n }\n }\n }\n if (aTargetURL == null)\n {\n // Default case - use target link from go-mapping\n aTargetURL = aGoItem.getTargetURL ();\n }\n\n // Callback\n modifyResultURL (aRequestScope, sKey, aTargetURL);\n\n s_aStatsOK.increment (sKey);\n }\n\n // Append all request parameters of this request\n // Don't use the request attributes, as there might be more of them\n final Enumeration <?> aEnum = aRequestScope.getRequest ().getParameterNames ();\n while (aEnum.hasMoreElements ())\n {\n final String sParamName = (String) aEnum.nextElement ();\n final String [] aParamValues = aRequestScope.getRequest ().getParameterValues (sParamName);\n if (aParamValues != null)\n for (final String sParamValue : aParamValues)\n aTargetURL.add (sParamName, sParamValue);\n }\n\n if (s_aLogger.isDebugEnabled ())\n s_aLogger.debug (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n else\n if (GlobalDebug.isDebugMode ())\n s_aLogger.info (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n\n // Main redirect :)\n aUnifiedResponse.setRedirect (aTargetURL);\n }", "@Mapper(componentModel = \"spring\")\npublic interface DemoMapper {\n DemoResponse map(Demo demo);\n}", "public void markRenderModelsModified() {\n\t\t\n\t\t// TODO dispose of the VBOs!!!\n\t\trenderUnits = null;\n\t\t\n\t}", "@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n String myresult = \"My result\";\n// Collection <Player> myresult = fullTeamService.getTeam();\n\n request.setAttribute(\"myresult\", myresult);\n\n return \"view/anotherResultMul.jsp\";\n\n\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 /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet LibrarySystemController</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet LibrarySystemController at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "public void render (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n response.setTitle(getTitle(request));\n doDispatch(request, response);\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 /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet StatisticalReport</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet StatisticalReport at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "@RequestMapping(value = \"/homed/{map}\", method = RequestMethod.GET)\r\n public String mapHomeDebug(HttpServletRequest request, @PathVariable(\"map\") String map, ModelMap model) throws ServletException, IOException { \r\n return(renderPage(request, model, \"map\", map, null, null, true));\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(OrgDisplay.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(OrgDisplay.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response); \n }", "private void generateSearchReport(final Map<String, String> request,\r\n\t\t\tfinal List<Map<String, String>> resultMap) {\r\n\t\tMap<String, String> reportMap = null;\r\n\r\n\t\tfor (final Map<String, String> map : resultMap) {\r\n\t\t\tif (map.containsKey(CommonConstants.TOTAL_PRODUCTS)) {\r\n\t\t\t\treportMap = this.getReportMap(request);\r\n\t\t\t\tfinal StringBuilder attributes = new StringBuilder();\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.COLOR)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.COLOR);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.COLOR));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.SIZE)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.SIZE);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.SIZE));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.BRAND)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.BRAND);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.BRAND));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tthis.requestAttributePrice(request, attributes);\r\n\t\t\t\tif (attributes.length() != 0) {\r\n\t\t\t\t\treportMap.put(DomainConstants.ATTRIBUTES, attributes\r\n\t\t\t\t\t\t\t.toString().substring(0, attributes.length() - 1));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString sortFields = \"\";\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.SORT)) {\r\n\t\t\t\t\tsortFields = request.get(RequestAttributeConstant.SORT);\r\n\t\t\t\t}\r\n\t\t\t\tif (!\"\".equals(sortFields)) {\r\n\t\t\t\t\treportMap.put(DomainConstants.SORT_FIELDS, sortFields\r\n\t\t\t\t\t\t\t.replace(CommonConstants.EMPTY_VALUE,\r\n\t\t\t\t\t\t\t\t\tCommonConstants.COMMA_SEPERATOR));\r\n\t\t\t\t}\r\n\t\t\t\tmap.putAll(reportMap);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n \r\n }", "public void foreachResultCreateHTML(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n\n // call for a single ini file\n if (sInputPath.toLowerCase().endsWith(\".ini\") )\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n // check if there exists an ini file\n String sPath = FileHelper.getPath(sInputPath); \n String sBasename = FileHelper.getBasename(sInputPath);\n\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n \n // Create a HTML page which shows locally to all files in .odb\n if (sInputPath.toLowerCase().endsWith(\".odb\"))\n {\n String sIndexFile = FileHelper.appendPath(sPath, \"index.ini\");\n File aIndexFile = new File(sIndexFile);\n if (aIndexFile.exists())\n { \n IniFile aIniFile = new IniFile(sIndexFile);\n\n if (aIniFile.hasSection(sBasename))\n {\n // special case for odb files\n int nFileCount = aIniFile.getIntValue(sBasename, \"reportcount\", 0);\n ArrayList<String> aList = new ArrayList<String>();\n for (int i=0;i<nFileCount;i++)\n {\n String sValue = aIniFile.getValue(sBasename, \"report\" + i);\n\n String sPSorPDFName = getPSorPDFNameFromIniFile(aIniFile, sValue);\n if (sPSorPDFName.length() > 0)\n {\n aList.add(sPSorPDFName);\n }\n }\n if (aList.size() > 0)\n {\n // HTML output for the odb file, shows only all other documents.\n HTMLResult aOutputter = new HTMLResult(sPath, sBasename + \".ps.html\" );\n aOutputter.header(\"content of DB file: \" + sBasename);\n aOutputter.indexSection(sBasename);\n \n for (int i=0;i<aList.size();i++)\n {\n String sPSFile = aList.get(i);\n\n // Read information out of the ini files\n String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + \".ini\");\n IniFile aIniFile2 = new IniFile(sIndexFile2);\n String sStatusRunThrough = aIniFile2.getValue(\"global\", \"state\");\n String sStatusMessage = \"\"; // aIniFile2.getValue(\"global\", \"info\");\n aIniFile2.close();\n\n\n String sHTMLFile = sPSFile + \".html\";\n aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage);\n }\n aOutputter.close();\n\n// String sHTMLFile = FileHelper.appendPath(sPath, sBasename + \".ps.html\");\n// try\n// {\n//\n// FileOutputStream out2 = new FileOutputStream(sHTMLFile);\n// PrintStream out = new PrintStream(out2);\n//\n// out.println(\"<HTML>\");\n// out.println(\"<BODY>\");\n// for (int i=0;i<aList.size();i++)\n// {\n// // <A href=\"link\">blah</A>\n// String sPSFile = (String)aList.get(i);\n// out.print(\"<A href=\\\"\");\n// out.print(sPSFile + \".html\");\n// out.print(\"\\\">\");\n// out.print(sPSFile);\n// out.println(\"</A>\");\n// out.println(\"<BR>\");\n// }\n// out.println(\"</BODY></HTML>\");\n// out.close();\n// out2.close();\n// }\n// catch (java.io.IOException e)\n// {\n// \n// }\n }\n }\n aIniFile.close();\n }\n\n }\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n String action = request.getParameter(\"action\");\n LogementModel model = new LogementModel();\n MaisonDAO implm = new MaisonDAO();\n AppartementDAO impla = new AppartementDAO();\n ChambreDAO implc = new ChambreDAO();\n\n request.setAttribute(\"model\", model);\n\n if (action != null) {\n if (action.equals(\"maison\")) {\n ArrayList<Maison> listm = implm.listMaisonD();\n model.setMaisons(listm);\n } else if (action.equals(\"appartement\")) {\n ArrayList<Appartement> lisa = impla.listAppartementD();\n model.setAppartements(lisa);\n } else if (action.equals(\"chambre\")) {\n ArrayList<Chambre> lista = implc.listChambreD();\n model.setChambres(lista);\n }/*else if (action.equals(\"tout\")) {\n List<Logement> logement = impl.listlogements();\n model.setLogements(logement);\n }*/\n\n }\n request.getRequestDispatcher(\"index.jsp\").forward(request,\n response);\n\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Loggable\n protected ModelAndView handle(final HttpServletRequest request, final HttpServletResponse response,\n final Object commandObj, final BindException errors)\n throws InvalidTestbedIdException, TestbedNotFoundException {\n final long start = System.currentTimeMillis();\n\n long start1 = System.currentTimeMillis();\n\n // set command object\n final TestbedCommand command = (TestbedCommand) commandObj;\n\n // a specific testbed is requested by testbed Id\n int testbedId;\n try {\n testbedId = Integer.parseInt(command.getTestbedId());\n } catch (NumberFormatException nfe) {\n throw new InvalidTestbedIdException(\"Testbed IDs have number format.\", nfe);\n }\n\n LOGGER.info(\"--------- Get Testbed id: \" + (System.currentTimeMillis() - start1));\n start1 = System.currentTimeMillis();\n\n // look up testbed\n final Testbed testbed = testbedManager.getByID(testbedId);\n if (testbed == null) {\n // if no testbed is found throw exception\n throw new TestbedNotFoundException(\"Cannot find testbed [\" + testbedId + \"].\");\n }\n LOGGER.info(\"got testbed \" + testbed);\n\n LOGGER.info(\"--------- Get Testbed: \" + (System.currentTimeMillis() - start1));\n\n\n if (nodeCapabilityManager == null) {\n LOGGER.error(\"nodeCapabilityManager==null\");\n }\n\n start1 = System.currentTimeMillis();\n // get a list of node last readings from testbed\n final List<NodeCapability> nodeCapabilities = nodeCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- list nodeCapabilities: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n String nodeCaps;\n try {\n nodeCaps = HtmlFormatter.getInstance().formatLastNodeReadings(nodeCapabilities);\n } catch (NotImplementedException e) {\n nodeCaps = \"\";\n }\n LOGGER.info(\"--------- format last node readings: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n // get a list of link statistics from testbed\n final List<LinkCapability> linkCapabilities = linkCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- List link capabilities: \" + (System.currentTimeMillis() - start1));\n\n\n // Prepare data to pass to jsp\n final Map<String, Object> refData = new HashMap<String, Object>();\n refData.put(\"testbed\", testbed);\n refData.put(\"lastNodeReadings\", nodeCaps);\n\n\n try {\n start1 = System.currentTimeMillis();\n refData.put(\"lastLinkReadings\", HtmlFormatter.getInstance().formatLastLinkReadings(linkCapabilities));\n LOGGER.info(\"--------- format link Capabilites: \" + (System.currentTimeMillis() - start1));\n } catch (NotImplementedException e) {\n LOGGER.error(e);\n }\n\n LOGGER.info(\"--------- Total time: \" + (System.currentTimeMillis() - start));\n refData.put(\"time\", String.valueOf((System.currentTimeMillis() - start)));\n LOGGER.info(\"prepared map\");\n\n return new ModelAndView(\"testbed/status.html\", refData);\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/json\");\n try (PrintWriter out = response.getWriter()) {\n Gson gson = new Gson();\n\n ProblemsManager problemsManager = ServletUtils.getProblemsManager(getServletContext());\n List<TimeTableProblem> problemList = problemsManager.getProblems();\n List<DTOShortProblem> shortProblemsList= new LinkedList<>();\n for(TimeTableProblem problem:problemList)\n {\n shortProblemsList.add(new DTOShortProblem(problem));\n }\n\n\n String json = gson.toJson(shortProblemsList);\n out.println(json);\n out.flush();\n }\n }", "private void render(String templateName, HttpServletResponse response, MustacheFactory mustacheFactory,\n\t\t\tObject context) throws IOException {\n\t\tMustache header = mustacheFactory.compile(templateName);\n\n\t\theader.execute(response.getWriter(), context);\n\t}" ]
[ "0.7702195", "0.7521891", "0.7475822", "0.7375437", "0.731926", "0.6990545", "0.68959254", "0.6616226", "0.64029306", "0.63493186", "0.6286869", "0.58493286", "0.566603", "0.56314", "0.54934675", "0.5431791", "0.5419895", "0.5373597", "0.52171135", "0.51532316", "0.51454186", "0.51152515", "0.5109659", "0.5090868", "0.5069375", "0.5050206", "0.49586156", "0.4956977", "0.4948576", "0.49482208", "0.49307218", "0.4922414", "0.49195093", "0.49146044", "0.4903331", "0.48952985", "0.4884228", "0.48779115", "0.48622793", "0.4860626", "0.48590747", "0.48227432", "0.4818365", "0.48160514", "0.47889972", "0.47419724", "0.4740115", "0.47334284", "0.47283", "0.4723729", "0.47174397", "0.47153494", "0.47087854", "0.47071123", "0.47060195", "0.46977428", "0.469759", "0.46871907", "0.46756658", "0.46715796", "0.4660685", "0.46586317", "0.46504918", "0.46374616", "0.46327278", "0.46311083", "0.4627521", "0.46223956", "0.46200392", "0.46165666", "0.46112454", "0.4607005", "0.4604167", "0.46030593", "0.4594806", "0.45945227", "0.45923975", "0.45871925", "0.45827553", "0.45748204", "0.45685673", "0.45671815", "0.45655036", "0.45597386", "0.455723", "0.45430353", "0.4540959", "0.45404112", "0.45394936", "0.45383194", "0.4535328", "0.45339483", "0.45339483", "0.45339483", "0.45339483", "0.45339483", "0.45339483", "0.45328498", "0.45321205", "0.45319375" ]
0.78017676
0
Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test.
@Test public void testRenderMergedOutputModel_2() throws Exception { RedirectView fixture = new RedirectView("", false, true); fixture.setUrl(""); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); fixture.renderMergedOutputModel(model, request, response); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testRenderMergedOutputModel_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Override\n\tprotected void renderMergedOutputModel(Map<String, Object> model,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\texposeModelAsRequestAttributes(model,request);\n\n\t\t// Determine the path for the request dispatcher.\n\t\tString dispatcherPath = prepareForRendering(request, response);\n\n\t\t// set original view being asked for as a request parameter\n\t\trequest.setAttribute(\"partial\", dispatcherPath.subSequence(14, dispatcherPath.length()));\n\n\t\t// force everything to be template.jsp\n\t\tRequestDispatcher requestDispatcher = request\n\t\t\t\t.getRequestDispatcher(\"/WEB-INF/views/template.jsp\");\n\t\trequestDispatcher.include(request, response);\n\n\t}", "@Test(expected = java.io.IOException.class)\n\tpublic void testRenderMergedOutputModel_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "protected void renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception\r\n {\r\n try\r\n {\r\n StringBuilder sitemap = new StringBuilder();\r\n sitemap.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n sitemap.append(\"<urlset xmlns=\\\"http://www.sitemaps.org/schemas/sitemap/0.9\\\">\");\r\n sitemap.append(createUrlEntries(model));\r\n sitemap.append(\"</urlset>\");\r\n\r\n response.getOutputStream().print(sitemap.toString());\r\n }\r\n catch (Exception e)\r\n {\r\n this.exceptionHandler.handle(e);\r\n }\r\n }", "@Test(expected = java.io.UnsupportedEncodingException.class)\n\tpublic void testRenderMergedOutputModel_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Override\n protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n ByteArrayOutputStream baos = createTemporaryOutputStream();\n\n // Apply preferences and build metadata.\n Document document = new Document();\n PdfWriter writer = PdfWriter.getInstance(document, baos);\n prepareWriter(model, writer, request);\n buildPdfMetadata(model, document, request);\n\n // Build PDF document.\n writer.setInitialLeading(16);\n document.open();\n buildPdfDocument(model, document, writer, request, response);\n document.close();\n\n // Flush to HTTP response.\n writeToResponse(response, baos);\n\n }", "@Override\n\tprotected void renderMergedOutputModel(\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\n\t\tif(LOGGER.isDebugEnabled()) {\n//\t\t\tif(MDC.get(CmmnConstants.REMOTE_ADDR) == null) {\n//\t\t\t\tisSetRemoteAddr = true;\n//\t\t\t\tString remoteAddr = GeneralUtils.changeLocalAddr(GeneralUtils.getIpAddress(request));\n//\t\t\t\tMDC.put(CmmnConstants.REMOTE_ADDR, remoteAddr);\n//\t\t\t\tMDC.put(CmmnConstants.CONTEXT_PATH, request.getContextPath().isEmpty()?\"/\":request.getContextPath());\n//\t\t\t}\n\t\t}\n\n\t\tsuper.renderMergedOutputModel( model, request, response);\n\n//\t\tif(isSetRemoteAddr) {\n//\t\t\tMDC.remove(CmmnConstants.REMOTE_ADDR);\n//\t\t\tMDC.remove(CmmnConstants.CONTEXT_PATH);\n//\t\t}\n\t}", "@Override\r\n public void render(Map<String, ?> model, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws Exception {\n\t\tif ( httpResponse.isCommitted() ) {\r\n\t\t\tif ( logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"Response already committed\");\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlong startMillis = System.currentTimeMillis();\r\n\r\n Response response = (Response)model.get (Response.RESPONSE_ATTRIBUTE);\r\n Writer writer = null;\r\n\t\ttry {\r\n\t\t\t// Set the response content type based on the transport\r\n\t\t\tsetContentType(response);\r\n writer = IOUtil.getResponseWriter(response);\r\n startOutput(response, writer);\r\n\t\t createOutput(response, writer);\r\n finishOutput(response, writer);\r\n } catch ( ScalarActionException e ) {\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unable to create output\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} catch ( IOException e ) {\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unable to get writer\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} catch ( Exception e ) {\r\n\t\t\t// Catching just exception on purpose\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unexpected error during output\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif ( null != writer ) {\r\n\t\t\t\t\t// Ensure output\r\n\t\t\t\t\twriter.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch ( IOException e ) {\r\n\t\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\t\tlogger.error(\"Unable to flush output\", e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"End of creating UI response: \" + httpRequest.getRequestURI() + \" Total flight time: \" + (System.currentTimeMillis() - startMillis));\r\n\t\t\t}\r\n\t\t}\r\n }", "@Override\r\n\tprotected final void renderMergedOutputModel(\r\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n\r\n\t\tExcelForm excelForm = (ExcelForm) model.get(\"excelForm\");\r\n\r\n\t\tHSSFWorkbook workbook;\r\n\t\tHSSFSheet sheet;\r\n\t\tif (excelForm.getTemplateFileUrl() != null) {\r\n\t\t\tworkbook = getTemplateSource(excelForm.getTemplateFileUrl(), request);\r\n\t\t\tsheet = workbook.getSheetAt(0);\r\n\t\t} else {\r\n\t\t\tString sheetName = excelForm.getSheetName();\r\n\r\n\t\t\tworkbook = new HSSFWorkbook();\r\n\t\t\tsheet = workbook.createSheet(sheetName);\r\n\t\t\tlogger.debug(\"Created Excel Workbook from scratch\");\r\n\t\t}\r\n\t\t\r\n\t\tresponse.setHeader( \"Content-Disposition\", \"attachment; filename=\" + URLEncoder.encode(excelForm.getFileName(), \"UTF-8\"));\r\n\r\n\t\tcreateColumnStyles(excelForm, workbook);\r\n\t\tcreateMetaRows(excelForm, workbook, sheet);\r\n\t\tcreateHeaderRow(excelForm, workbook, sheet);\r\n\t\tfor (Object review : excelForm.getData()) {\r\n\t\t\tcreateRow(excelForm, workbook,sheet, review);\r\n\t\t\tdetectLowMemory();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the content type.\r\n\t\tresponse.setContentType(getContentType());\r\n\r\n\t\t// Should we set the content length here?\r\n\t\t// response.setContentLength(workbook.getBytes().length);\r\n\r\n\t\t// Flush byte array to servlet output stream.\r\n\t\tServletOutputStream out = response.getOutputStream();\r\n\t\tworkbook.write(out);\r\n\t\tout.flush();\r\n\t}", "protected void renderMergedOutputModel(Map model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tFile file = (File)model.get(\"downloadFile\");\n\t\tresponse.setContentType(super.getContentType());\n\t\tresponse.setContentLength((int)file.length());\n\t\tresponse.setHeader(\"Content-Transfer-Encoding\",\"binary\");\n\t\tresponse.setHeader(\"Content-Disposition\",\"attachment;fileName=\\\"\"+java.net.URLEncoder.encode(file.getName(),\"utf-8\")+\"\\\";\");\n\t\tOutputStream out = response.getOutputStream();\n\t\tFileInputStream fis = null;\n\t\ttry\n\t\t{\n\t\t\tfis = new FileInputStream(file);\n\t\t\tFileCopyUtils.copy(fis, out);\n\t\t}\n\t\tcatch(java.io.IOException ioe)\n\t\t{\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(fis != null) fis.close();\n\t\t}\n\t\tout.flush();\n\t}", "private void process(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAddModel model = Util.getModel(request, Const.RESULT);\n\t\t\n\t\t// Print the \"VIEW\" using the \"MODEL\"\n\t\tprintView(response, model);\n\t}", "@Test\n public void shouldLoadFilledModel() throws Exception {\n final Map<String, Object> modelData = createFilledModel();\n // Some static data is changed at this moment, so need to reset the extractors list\n ReportColumnsExtractorHelper.reset();\n\n // WHEN asking the view to render the model contents\n underTest.renderMergedOutputModel(modelData, mock(HttpServletRequest.class), response);\n\n // THEN the resulting CSV contains the expected data\n verify(writer).write(\"\\\"Header\\\",\\\"Header NG\\\",\\\"H\\\",\\\"Header\\\"\\n\");\n verify(writer).write(\"\\\"str\\\",\\\"\\\",\\\"2\\\",\\\"\\\"\\n\");\n verify(writer).flush();\n }", "@Override\r\n public void render(HttpServletRequest request, HttpServletResponse response, Object result) throws Throwable\r\n {\n \r\n }", "@Test\n public void shouldLoadEmptyModel() throws Exception {\n final Map<String, Object> modelData = createEmptyModel();\n\n // WHEN asking the view to render the model contents\n underTest.renderMergedOutputModel(modelData, mock(HttpServletRequest.class), response);\n\n // THEN the response sets the correct MIME type\n verify(response).setContentType(\"text/csv\");\n verify(response).setHeader(\"Content-Disposition\", \"attachment; filename=activityReport.csv\");\n\n // AND returns an empty closed stream\n verify(sourceWriter).close();\n }", "@Test\n public void testRender() {\n try{\n System.out.println(\"render\");\n HttpSession session = new MockHttpSession();\n session.setAttribute(\"session_user\", ujc.findUser(1));\n String project_id = \"3\";\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n ModelAndView result = instance.render(session, project_id);\n// assertEquals(expResult, result);\n ModelAndViewAssert.assertViewName(result, \"team\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"owner\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"allMembers\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"otherUsers\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"project\");\n }\n catch(Exception e){\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Redner failed\");\n }\n }", "protected void augmentModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\n\t}", "@Test\n\tpublic void testRenderData() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"RENDER_DATA\");\n\t\tmap.put(\"rows\", \"10\");\n\t\tmap.put(\"page\", \"1\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletContext context = mock(ServletContext.class);\n\t\tfinal HttpSession session = mock(HttpSession.class);\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getServletContext()).thenReturn(context);\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\t// final HttpServletResponse realRequest = ((MolgenisRequest)\n\t\t// molRequest).getResponse();\n\t\t// System.out.println(realRequest.toString());\n\t\tverify(mockOutstream)\n\t\t\t\t.print(\"{\\\"page\\\":1,\\\"total\\\":3067,\\\"records\\\":30670,\\\"rows\\\":[{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Dutch\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"5.300000190734863\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"English\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"9.5\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Papiamento\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"76.69999694824219\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Spanish\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"7.400000095367432\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"3\\\",\\\"City.Name\\\":\\\"Herat\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Herat\\\",\\\"City.Population\\\":\\\"186800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"4\\\",\\\"City.Name\\\":\\\"Mazar-e-Sharif\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Balkh\\\",\\\"City.Population\\\":\\\"127800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"}]}\");\n\t}", "void render(IViewModel model);", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tSystem.out.println(\"View1Model execute(HttpServletRequest request, HttpServletResponse response) 호출\");\n\t}", "private void renderResources(HttpServletRequest request, HttpServletResponse response, MergeableResources codeResources, Writer out) {\n List<CMAbstractCode> codes = codeResources.getMergeableResources();\n\n //set correct contentType\n response.setContentType(contentType);\n\n for (CMAbstractCode code : codes) {\n renderResource(request, response, code, out);\n }\n\n }", "@Override\n\tpublic void buildModel(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Map templateModel)\n\t\t\tthrows HandlerExecutionException {\n\t\tString workflowName=request.getParameter(\"workflowName\");\n\t\tString taskName=request.getParameter(\"taskName\");\n\t\tString featureModelName=request.getParameter(\"featureModelName\");\n\t\tString userKey=request.getParameter(\"userKey\");\n\t\tString userName=request.getParameter(\"userName\");\n\t\tString userID=request.getParameter(\"userID\");\n\n\t\tString placeType=request.getParameter(\"placeType\");\n\t\t\n\t\tString stopAllocatedViewsResult=\"\";\n\t\t\n\t\tfeatureModelName=featureModelName.replace(\"?\", \" \");\n\n\t\t\n\t\tString viewDir=getServlet().getServletContext().getRealPath(\"/\")+ \"extensions/views/\"; \n\t\tString modelDir=getServlet().getInitParameter(\"modelsPath\");\n\t\tString configuredModelPath=modelDir+\"configured_models\";\n\t\n\t\t\n\t\t\tif ((placeType.compareToIgnoreCase(\"stop\")==0)) {\n\t\t\t\tString configuredFileName=Methods.getConfiguredFileName(configuredModelPath, userKey);\n\t\t\t\tSystem.out.println(configuredFileName);\n\t\t\t\tif(configuredFileName.compareToIgnoreCase(\"false\")==0){\n\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\tmessage.put(\"value\", \"The configuration file not found\");\n\t\t\t\t\tmessages.add(message);\n\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\n\t\t\t\t}else{\n\t\t\t\t\tstopAllocatedViewsResult=Methods.checkConfigurationCompletionInStopPlace(featureModelName, viewDir, modelDir, configuredModelPath, taskName, placeType, workflowName, configuredFileName, userName, userID);\n\t\t\t\t\tif(stopAllocatedViewsResult.compareToIgnoreCase(\"true\")==0){\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Configuration status of tasks has been checked\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Problem in checking of configuration status of the tasks\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t \n\n\t\t\t}\t\n\t\t\t\t\n\t\t\t\n\t}", "public void applyModel(ScServletData data, Object model)\n {\n }", "ModelAndView handleResponse(HttpServletRequest request,HttpServletResponse response, String actionName, Map model);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException \r\n {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) \r\n {\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet JoinGroupServlet</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet JoinGroupServlet at \" + request.getContextPath() + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {\r\n\r\n\t\t// Set the MIME type for the render response\r\n\t\tresponse.setContentType(request.getResponseContentType());\r\n\r\n\t\t// Invoke the HTML to render\r\n\t\tPortletRequestDispatcher rd = getPortletContext().getRequestDispatcher(getHtmlFilePath(request, VIEW_HTML));\r\n\t\trd.include(request,response);\r\n\t}", "@RenderMapping\r\n\tpublic String handleRenderRequest(RenderRequest request,RenderResponse response,Model model){\r\n\t\t\r\n\t\tfinal ThemeDisplay themeDisplay = GestionFavoritosUtil.getThemeDisplay(request); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tfinal String structure = request.getPreferences().getValue(\r\n\t\t\t\t\tGestionFavoritosKeys.STRUCTURE_ID, StringUtils.EMPTY);\r\n\t\t\t\r\n\t\t\tfinal List<JournalStructure> listStructures = JournalStructureLocalServiceUtil\r\n\t\t\t\t\t.getStructures(themeDisplay.getScopeGroupId());\r\n\t\t\t\r\n\t\t\tfinal List<JournalTemplate> listTemplates = GestionFavoritosUtil\r\n\t\t\t\t\t.getTemplatesByGroupId(themeDisplay.getScopeGroupId(),\r\n\t\t\t\t\t\t\tstructure);\r\n\t\t\t\r\n\t\t\t// Si hay preferencias\r\n\t\t\tif (request.getPreferences() != null) {\r\n\t\t\t\t\r\n\t\t\t\tPortletPreferences preferences = request.getPreferences();\r\n\t\t\t\t\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.STRUCTURE_ID, structure);\r\n\t\t\t\t\r\n\t\t\t\tfinal String template = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.TEMPLATE_ID, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.TEMPLATE_ID, template);\r\n\t\t\t\t\r\n\t\t\t\tfinal String categories = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.CATEGORIES, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.CATEGORIES, categories);\r\n\t\t\t\t\r\n\t\t\t\tfinal String view = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.SELECTED_VIEW, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.SELECTED_VIEW, view);\r\n\t\t\t}\t\r\n\r\n\t\t\trequest.setAttribute(GestionFavoritosKeys.LIST_STRUCTURES,\r\n\t\t\t\t\tlistStructures);\r\n\t\t\t\r\n\t\t\trequest.setAttribute(GestionFavoritosKeys.LIST_TEMPLATES,\r\n\t\t\t\t\tlistTemplates);\r\n\r\n\t\t\t\r\n\t\t} catch (SystemException e) {\r\n\t\t\tlog.error(e);\r\n\t\t\tSessionErrors.add(request, GestionFavoritosErrorKeys.VIEW_DATA);\r\n\t\t\tSessionMessages.clear(request);\r\n\t\t} \r\n\t\t\r\n\t\t\r\n\t\treturn \"edit\";\r\n\t}", "protected abstract void buildExcelDocument(Map<String, Object> model,\n Workbook workbook, HttpServletRequest request,\n HttpServletResponse response) throws Exception;", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n ArrayList<GroupModel> all=GroupDao.display();\n request.setAttribute(\"group\",all);\n RequestDispatcher rds=request.getRequestDispatcher(\"DisplayGroup.jsp\");\n rds.forward(request, response);\n \n \n\n \n }", "private void processObject( HttpServletResponse oResponse, Object oViewObject ) throws ViewExecutorException\r\n {\n try\r\n {\r\n oResponse.getWriter().print( oViewObject );\r\n }\r\n catch ( IOException e )\r\n {\r\n throw new ViewExecutorException( \"View \" + oViewObject.getClass().getName() + \", generic object view I/O error\", e );\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet JSONCollector</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet JSONCollector at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.setAttribute(\"model\", model);\r\n\t\treq.getRequestDispatcher(\"param.jsp\").forward(req, resp);\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n LOG.debug(\"Received new update request\");\n \n String modelerName = request.getParameter(\"name\");\n String originalModelerName = request.getParameter(\"originalName\");\n String modelId = request.getParameter(\"modelId\");\n String modelType = request.getParameter(\"modeltype\");\n // Currently not being used since we don't update the modelVersion \n // String modelVersion = request.getParameter(\"version\");\n String originalModelVersion = request.getParameter(\"originalModelVersion\");\n String runIdent = request.getParameter(\"runIdent\");\n String originalRunIdent = request.getParameter(\"originalRunIdent\");\n String runDate = request.getParameter(\"creationDate\");\n String originalRunDate = request.getParameter(\"originalCreationDate\");\n String scenario = request.getParameter(\"scenario\");\n String originalScenario = request.getParameter(\"originalScenario\");\n String comments = request.getParameter(\"comments\");\n String originalComments = request.getParameter(\"originalComments\");\n String email = request.getParameter(\"email\");\n String wfsUrl = request.getParameter(\"wfsUrl\");\n String layer = request.getParameter(\"layer\");\n String commonAttr = request.getParameter(\"commonAttr\");\n Boolean updateAsBest = \"on\".equalsIgnoreCase(request.getParameter(\"markAsBest\")) ? Boolean.TRUE : Boolean.FALSE;\n Boolean rerun = Boolean.parseBoolean(request.getParameter(\"rerun\")); // If this is true, we only re-run the R processing \n \n String responseText;\n RunMetadata newRunMetadata;\n \n ModelType modelTypeEnum = null;\n if (\"prms\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.PRMS;\n }\n if (\"afinch\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.AFINCH;\n }\n if (\"waters\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.WATERS;\n }\n if (\"sye\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.SYE;\n }\n \n RunMetadata originalRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n originalModelerName,\n originalModelVersion,\n originalRunIdent,\n originalRunDate,\n originalScenario,\n originalComments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n if (rerun) {\n String sosEndpoint = props.getProperty(\"watersmart.sos.model.repo\") + originalRunMetadata.getTypeString() + \"/\" + originalRunMetadata.getFileName();\n WPSImpl impl = new WPSImpl();\n String implResponse = impl.executeProcess(sosEndpoint, originalRunMetadata);\n Boolean processStarted = implResponse.toLowerCase().equals(\"ok\");\n responseText = \"{success: \"+processStarted.toString()+\", message: '\" + implResponse + \"'}\";\n } else {\n newRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n modelerName,\n originalModelVersion,\n runIdent,\n runDate,\n scenario,\n comments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n CSWTransactionHelper helper = new CSWTransactionHelper(newRunMetadata, null, new HashMap<String, String>());\n try {\n String results = helper.updateRunMetadata(originalRunMetadata);\n // TODO- parse xml, make sure stuff happened alright, if so don't say success\n responseText = \"{success: true, msg: 'The record has been updated'}\";\n } catch (IOException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n } catch (URISyntaxException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n }\n \n }\n \n response.setContentType(\"application/json\");\n response.setCharacterEncoding(\"utf-8\");\n \n try {\n Writer writer = response.getWriter();\n writer.write(responseText);\n writer.close();\n } catch (IOException ex) {\n LOG.warn(\"An error occurred while trying to send response to client. \", ex);\n }\n \n }", "void render( Collection<String> files, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n getServletContext().log(\"Processing a request : \" + request.getServletPath());\n \n try {\n ModelAndView mav = this.handler.handle(request, response, true);\n \n // use a view resolver.\n// response.getWriter().print(controllerResponse);\n // flush here ?\n// response.flushBuffer();\n// 2801752\n } catch (Exception ex) {\n getServletContext().log(\"Exception : \", ex);\n if(!response.isCommitted()) {\n response.sendError(500, ex.getMessage());\n }\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n\r\n List resultsList = new ArrayList();\r\n\r\n // Receive request from adminPage\r\n String c = request.getParameter(\"action\");\r\n String mem_id = request.getParameter(\"mem_id\");\r\n String id = request.getParameter(\"id\");\r\n\r\n AdminModel am = new AdminModel();\r\n\r\n // Send to model & invoke one of three methods\r\n switch (c) {\r\n case \"Check Approvals\":\r\n resultsList = am.getApprovals();\r\n break;\r\n case \"List Member Payments\":\r\n resultsList = am.listPayments(mem_id);\r\n break;\r\n case \"Approve Outstanding Member\":\r\n am.approvalResult(mem_id);\r\n break;\r\n case \"List Claims\":\r\n resultsList = am.listClaims(id);\r\n break;\r\n case \"Approve Claim\":\r\n am.approveClaim(id);\r\n break;\r\n case \"Reject Claim\":\r\n am.rejectClaim(id);\r\n break;\r\n case \"End of Year Charge\":\r\n am.endOfYearCharge();\r\n break;\r\n }\r\n\r\n // Send back to view (adminPage.jsp)\r\n request.setAttribute(\"output\", resultsList);\r\n RequestDispatcher view = request.getRequestDispatcher(\"/docs/adminPage\");\r\n view.forward(request, response);\r\n }", "@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n viewModule(request, response);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "protected void proccess(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\n\t\t// set response type to text/html\n\t\tresponse.setContentType(\"text/html\");\n\n\t\t// Get PrintWriter to write back to client\n\t\tPrintWriter out = response.getWriter();\n\n\t\t// Get contextPath for any external files such as css, js path\n\t\tString contextPath = getContextPath();\n\n\t\tSTGroup templates = this.getSTGroup();\n\t\tST page = templates.getInstanceOf(\"home\");\n\t\t\n\t\tList<City> cities = service.getAllCitySort();\n\t\t\n\t\tpage.add(\"contextPath\", contextPath);\n\t\tpage.add(\"cities\", cities);\n\n\t\tout.print(page.render());\n\t\tout.flush();\n\t}", "@RequestMapping(\"/equipmentsCalibrationRpt\")\r\n\tpublic String equipmentsCalibrationRpt(Map<String, Object> model) {\n\r\n\t\treturn \"equipmentsCalibrationRpt\";\r\n\t}", "void render(Object rendererTool);", "protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }", "private void doAfterRenderResponse(final PhaseEvent arg0) {\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n boolean wasXmlRequested = isRequestedFormatXml(request);\n if( ! wasXmlRequested ){\n super.doGet(request,response);\n }else{\n try {\n VitroRequest vreq = new VitroRequest(request);\n Configuration config = getConfig(vreq); \n ResponseValues rvalues = processRequest(vreq);\n \n response.setCharacterEncoding(\"UTF-8\");\n response.setContentType(\"text/xml;charset=UTF-8\");\n writeTemplate(rvalues.getTemplateName(), rvalues.getMap(), config, request, response);\n } catch (Exception e) {\n log.error(e, e);\n }\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 double technontech=Double.parseDouble(request.getParameter(\"technontech\"));\n double nontechexp=Double.parseDouble(request.getParameter(\"nontechexp\"));\n double techexp=Double.parseDouble(request.getParameter(\"techexp\"));\n double[][] arr=new double[3][3];\n arr[0][0]=arr[1][1]=arr[2][2]=1;\n arr[0][1]=technontech;\n arr[1][0]=(1/technontech);\n arr[0][2]=techexp;\n arr[2][0]=(1/techexp);\n arr[1][2]=nontechexp;\n arr[2][1]=(1/nontechexp);\n \n double[][] w=new double[3][1];\n String nextPath=\"\";\n \n boolean res=CoreProcess.AHP(arr, w);\n if(res==true)\n {\n nextPath=\"/resumeProcess.html\";\n RequestDispatcher view = request.getRequestDispatcher(nextPath);\n view.forward(request, response); \n }\n else\n {\n out.println(\"<html> <head> <link type=\\\"text/css\\\" href=\\\"./css/materialize.css\\\" rel=\\\"stylesheet\\\">\\n\" \n +\"<link type=\\\"text/css\\\" href=\\\"./css/materialize.min.css\\\" rel=\\\"stylesheet\\\">\\n\"\n +\"<meta charset=\\\"UTF-8\\\">\\n\" \n +\"<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"> \");\n out.println(\"<title> Error Page </title> </head> \");\n out.println(\"<body class=\\\"background light-blue lighten-5\\\">\");\n out.println(\"<h3 class=\\\"brown-text center\\\"> THIS IS AN ERROR PAGE. </h3>\");\n out.println(\"<div class=\\\"row\\\">\\n\" +\n\" <div class=\\\"col s12\\\">\\n\" +\n\" <div class=\\\"card hoverable center deep-purple lighten-5\\\">\\n\" +\n\" <div class=\\\"card-content purple-text\\\">\\n\" +\n\" <span class=\\\"card-title pink-text\\\"> <b> Inconsistencies in the AHP matrix. </b> </span>\" + \n\" <h5> \\n\" +\n\" You are seeing this page because you have entered an inconsistent matrix for the AHP input. \\n\" +\n\" This is usually caused by transitive inconsistencies in the given input. \\n\" +\n\" </h5>\\n\" +\n\" <h5>\\n\" +\n\" For instance, if you had entered technical as more important than non-technical criteria and non-technical criteria as more important than experience, then it is required that technical be more important than experience \\n\" +\n\" Such consistencies are automatically checked by our process so that your job specification makes logical sense. \\n\" +\n\" Now, please click the below button to go back to the AHP page and re-enter your input. Thank you. \\n\" +\n\" </h5>\\n\"+\n\" </div>\" +\n\" </div>\");\n out.println(\"<div class=\\\"row container\\\">\\n\" +\n\" <form action=\\\"AHPPage.html\\\" method=\\\"post\\\" class=\\\"col s12\\\">\"+\n\" <button class=\\\"btn waves-effect waves-light right green accent-4\\\" type=\\\"submit\\\" name=\\\"action\\\"> Go back \\n\" +\n\" <i class=\\\"material-icons right\\\"></i>\\n\" +\n\" </button>\"+\n\" </form> </div> </body> </html>\");\n \n }\n \n }\n }", "void sendMap(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Map<String, Object> contetMap)\r\n\t\t\tthrows IOException;", "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 /* TODO output your page here. You may use following sample code. */\n Object[] profile = data(111);\n for(int i=0; i<4; i++){\n out.print(profile[i]);\n }\n \n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(ResultsDisplay2.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void doTag()\n throws IOException, JspException, JspTagException {\n\n JspWriter out = context.getOut();\n\n if (!RDCUtils.isStringEmpty(namelist)) {\n // (1) Access/create the views map \n Map viewsMap = (Map) context.getSession().\n getAttribute(ATTR_VIEWS_MAP);\n if (viewsMap == null) {\n viewsMap = new HashMap();\n context.getSession().setAttribute(ATTR_VIEWS_MAP, viewsMap);\n }\n \n // (2) Populate form data \n Map formData = new HashMap();\n StringTokenizer nameToks = new StringTokenizer(namelist, \" \");\n while (nameToks.hasMoreTokens()) {\n String name = nameToks.nextToken();\n formData.put(name, context.getAttribute(name));\n }\n \n // (3) Store the form data according to the RDC-struts \n // interface contract\n String key = \"\" + context.hashCode();\n viewsMap.put(key, formData);\n context.getRequest().setAttribute(ATTR_VIEWS_MAP_KEY, key);\n }\n\n if (!RDCUtils.isStringEmpty(clearlist)) { \n // (4) Clear session state based on the clearlist\n if (dialogMap == null) {\n throw new IllegalArgumentException(ERR_NO_DIALOGMAP);\n }\n StringTokenizer clearToks = new StringTokenizer(clearlist, \" \");\n outer:\n while (clearToks.hasMoreTokens()) {\n String clearMe = clearToks.nextToken();\n String errMe = clearMe;\n boolean cleared = false;\n int dot = clearMe.indexOf('.');\n if (dot == -1) {\n if(dialogMap.containsKey(errMe)) {\n dialogMap.remove(errMe);\n cleared = true;\n }\n } else {\n // TODO - Nested data model re-initialization\n BaseModel target = null;\n String childId = null;\n while (dot != -1) {\n try {\n childId = clearMe.substring(0,dot);\n if (target == null) {\n target = (BaseModel) dialogMap.get(childId);\n } else {\n if ((target = RDCUtils.getChildDataModel(target,\n childId)) == null) {\n break;\n }\n }\n clearMe = clearMe.substring(dot+1);\n dot = clearMe.indexOf('.');\n } catch (Exception e) {\n MessageFormat msgFormat =\n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n continue outer;\n }\n }\n if (target != null) {\n cleared = RDCUtils.clearChildDataModel(target,\n clearMe);\n }\n }\n if (!cleared) {\n MessageFormat msgFormat = \n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n }\n }\n }\n\n // (5) Forward request\n try {\n context.forward(submit);\n } catch (ServletException e) {\n // Need to investigate whether refactoring this\n // try to provide blanket coverage makes sense\n MessageFormat msgFormat = new MessageFormat(ERR_FORWARD_FAILED);\n // Log error and send error message to JspWriter \n out.write(msgFormat.format(new Object[] {submit, namelist}));\n log.error(msgFormat.format(new Object[] {submit, namelist}));\n } // end of try-catch\n }", "protected void processView(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"here\");\n\t\tArrayList<String> errorList = new ArrayList<String>();\n\n\t\tString[] zone_name_array;\n\t\tString[] zone_type_array;\n\t\tString[] zone_heating_cooling_array;\n\t\tString[] zone_min_temp_array;\n\t\tString[] zone_max_temp_array;\n\t\tString[] zone_operation_array;\n\t\tString[] building_array;\n\n\t\tif (request.getAttribute(\"hasPastData\") == null) {\n\t\t\tbuilding_array = request.getParameterValues(\"building_name[]\");\n\t\t\tboolean bNameDup = checkDuplicate(building_array);\n\t\t\tif (bNameDup) {\n\t\t\t\terrorList.add(\"Building Names must be unique\");\n\t\t\t}\n\t\n\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\tint num = i + 1;\n\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\tboolean zNameDup = checkDuplicate(zone_name_array);\n\t\t\t\tif (zNameDup) {\n\t\t\t\t\terrorList.add(\"Zone Names with each Building must be unique\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\tint num = i + 1;\n\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\tzone_min_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_min_temp[]\");\n\t\t\t\tzone_max_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_max_temp[]\");\n\t\n\t\t\t\tfor (int j = 0; j < zone_min_temp_array.length; j++) {\n\t\t\t\t\tint minTemp = Integer.parseInt(zone_min_temp_array[j]);\n\t\t\t\t\tint maxTemp = Integer.parseInt(zone_max_temp_array[j]);\n\t\t\t\t\tif (minTemp > maxTemp) {\n\t\t\t\t\t\terrorList.add(building_array[i] + \"_\" + zone_name_array[j]\n\t\t\t\t\t\t\t\t+ \": Min Temp must be smaller than Max Temp\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tHttpSession session = request.getSession();\n\t\tPrintWriter out = response.getWriter();\n\n\t\tif (errorList.size() != 0) {\n\t\t\tString errors = \"\";\n\t\t\tfor (String s : errorList) {\n\t\t\t\terrors = errors + s + \";\";\n\t\t\t}\n\n\t\t\tout.println(errors);\n\n\t\t} else {\n\t\t\tString company = (String) session.getAttribute(\"company\");\n\t\t\tint month = PeriodManager.getMonthInt(company);\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.set(Calendar.MONTH, month);\n\t\t\tcal.set(Calendar.DATE, 1);\n\t\t\tCalendar today = Calendar.getInstance();\n\t\t\tint previousYear = Calendar.getInstance().get(Calendar.YEAR) - 1;\n\t\t\tif (today.before(cal)) {\n\t\t\t\tpreviousYear -= 1;\n\t\t\t}\n\n\t\t\tString quest_id = \"\";\n\t\t\ttry {\n\t\t\t\tquest_id = (SQLManager.getRowCount(\"questionnaire\") + 1) + \"\";\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}\n\n\t\t\t// store in QUESTIONNAIRE table\n\t\t\tString values_quest = \"\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + quest_id + \"\\',\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + request.getParameter(\"site_id\") + \"\\',\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + previousYear + \"\\',\";\n\t\t\t\n\t\t\t//check if there is past data for this site\n\t\t\tString where = \"site_id = \\'\" + request.getParameter(\"site_id\") + \"\\' and year = \\'\" + (previousYear-1) + \"\\'\";\n\t\t\tRetrievedObject ro = SQLManager.retrieveRecords(\"questionnaire\", where);\n\t\t\tResultSet rs = ro.getResultSet();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t//if yes\n\t\t\t\tString past_quest_id = \"\";\n\t\t\t\tif (rs.isBeforeFirst() ) { \n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tpast_quest_id = rs.getString(\"questionnaire_id\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//copy values from past data\n\t\t\t\t\t\tfor (int i = 4; i <= 13; i++) {\n\t\t\t\t\t\t\tString value = rs.getString(i);\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + value + \"\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 14; i <= 26; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + rs.getString(27) + \"\\',\";\n\t\t\t\t\t\tfor (int i = 28; i <= 32; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 33; i <= 48; i++) {\n\t\t\t\t\t\t\tString value = rs.getString(i);\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + value + \"\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 49; i <= 80; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + 0 + \"\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(values_quest);\n\t\t\t\t\t}\n\t\t\t\t\trs.close();\n\t\t\t\t\t//insert into questionnaire db\n\t\t\t\t\tSQLManager.insertRecord(\"questionnaire\", values_quest);\n\t\t\t\t\tsession.setAttribute(\"quest_id\", quest_id);\n\t\t\t\t\t\n\t\t\t\t\t//get the past data site definition\n\t\t\t\t\twhere = \"questionnaire_id = \\'\" + past_quest_id + \"\\'\";\n\t\t\t\t\tRetrievedObject ro_site_def = SQLManager.retrieveRecords(\"site_definition\", where);\n\t\t\t\t\tResultSet rs_site_def = ro_site_def.getResultSet();\n\t\t\t\t\tString past_site_def = \"\";\n\t\t\t\t\tString past_site_act = \"\";\n\t\t\t\t\tString past_building_name = \"\";\n\t\t\t\t\twhile (rs_site_def.next()) {\n\t\t\t\t\t\tpast_site_def = rs_site_def.getString(2);\n\t\t\t\t\t\tpast_site_act = rs_site_def.getString(3);\n\t\t\t\t\t\tpast_building_name = rs_site_def.getString(4);\n\t\t\t\t\t}\n\t\t\t\t\trs_site_def.close();\n\t\t\t\t\t\n\t\t\t\t\t//replace past data quest id with new quest id\n\t\t\t\t\tString new_site_def = past_site_def.replace(past_quest_id, quest_id);\n\t\t\t\t\t\n\t\t\t\t\t//insert into site definition db\n\t\t\t\t\tString values_site_def = \"\\'\" + quest_id + \"\\',\\'\" + new_site_def + \"\\',\\'\" + past_site_act + \"\\',\\'\" + past_building_name + \"\\'\";\n\t\t\t\t\tSQLManager.insertRecord(\"site_definition\", values_site_def);\n\t\t\t\t\t\n\t\t\t\t\t//insert into the different zone activity db\n\t\t\t\t\t//use delimiter ^ to split by building\n\t\t\t\t\tString[] site_def_info_array = past_site_def.split(\"\\\\^\");\n\t\t\t\t\tString[] site_act_array = past_site_act.split(\"\\\\^\");\n\t\t\t\t\tfor (int i = 0; i < site_def_info_array.length; i++) {\n\t\t\t\t\t\tString def = site_def_info_array[i];\n\t\t\t\t\t\tString act = site_act_array[i];\n\t\t\t\t\t\t//use delimiter * to split each building into zones\n\t\t\t\t\t\tString[] def_array = def.split(\"\\\\*\");\n\t\t\t\t\t\tString[] act_array = act.split(\"\\\\*\");\n\t\t\t\t\t\tfor (int j = 0; j < def_array.length; j++) {\n\t\t\t\t\t\t\tString d = def_array[j];\n\t\t\t\t\t\t\tString a = act_array[j];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint count = 0;\n\t\t\t\t\t\t\tString tableName = \"\";\n\t\t\t\t\t\t\tif (a.equals(\"wh_mezzanine\")) {\n\t\t\t\t\t\t\t\ttableName = \"mezzanine_form\";\n\t\t\t\t\t\t\t\tcount = 18;\n\t\t\t\t\t\t\t} else if (a.equals(\"wh_ground_to_roof\")) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"gtr\");\n\t\t\t\t\t\t\t\ttableName = \"ground_to_roof_form\";\n\t\t\t\t\t\t\t\tcount = 28;\n\t\t\t\t\t\t\t} else if (a.equals(\"wh_value_add\")) {\n\t\t\t\t\t\t\t\ttableName = \"warehouse_value_add_form\";\n\t\t\t\t\t\t\t\tcount = 20;\n\t\t\t\t\t\t\t} else if (a.equals(\"offices\")) {\n\t\t\t\t\t\t\t\ttableName = \"office_form\";\n\t\t\t\t\t\t\t\tcount = 21;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//retrieve zone record from the respective table\n\t\t\t\t\t\t\twhere = \"zone_id = \\'\" + d + \"\\'\";\n\t\t\t\t\t\t\tRetrievedObject ro_zone = SQLManager.retrieveRecords(tableName, where);\n\t\t\t\t\t\t\tResultSet rs_zone = ro_zone.getResultSet();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString new_zone_id = quest_id + \"-\" + d.split(\"-\")[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString values = \"\\'\" + quest_id + \"\\',\\'\" + new_zone_id + \"\\',\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (rs_zone.next()) {\n\t\t\t\t\t\t\t\tfor (int k = 3; k <= 11; k++) {\n\t\t\t\t\t\t\t\t\tvalues = values + \"\\'\" + rs_zone.getString(k) + \"\\',\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trs_zone.close();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove the last comma\n\t\t\t\t\t\t\tvalues = values.substring(0, values.length()-1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int m = 0; m < count; m++) {\n\t\t\t\t\t\t\t\tvalues = values + \",\\'\\'\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\">>>> values: \" + values); \n\t\t\t\t\t\t\tSQLManager.insertRecord(tableName, values);\n\t\t\t\t\t\t\tSystem.out.println(\"done!!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trequest.setAttribute(\"fromPastData\", \"true\");\n\t\t\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"Questionnaire.jsp\");\n\t\t\t\t\trd.forward(request, response);\n\t\t\t\t\t\n\t\t\t\t//if no\n\t\t\t\t} else {\n\t\t\t\t\tfor (int i = 0; i < 77; i++) {\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t}\n\t\t\t\t\tvalues_quest = values_quest + \"0\";\n\t\t\t\t\tvalues_quest = values_quest + \",\\'\\',\\'\\'\";\n\t\t\t\t\t\n\t\t\t\t\t//insert into db\n\t\t\t\t\tSQLManager.insertRecord(\"questionnaire\", values_quest);\n\t\t\t\t\tsession.setAttribute(\"quest_id\", quest_id);\n\t\t\t\t\t\n\t\t\t\t\t// site_def_details and site_def_activity to store in\n\t\t\t\t\t// SITE_DEFINITION table\n\t\t\t\t\tString site_def_details = \"\";\n\t\t\t\t\tString site_def_activity = \"\";\n\t\t\t\t\tString site_def_building_name = \"\";\n\t\t\n\t\t\t\t\tbuilding_array = request.getParameterValues(\"building_name[]\");\n\t\t\n\t\t\t\t\tString zone_details = \"\";\n\t\t\t\t\tArrayList<String> zone_list = new ArrayList<String>();\n\t\t\t\t\tString tableName = \"\";\n\t\t\t\t\tString values = \"\";\n\t\t\n\t\t\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\t\t\tint num = i + 1;\n\t\t\t\t\t\tzone_type_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_activity[]\");\n\t\t\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\t\t\tzone_heating_cooling_array = request.getParameterValues(\"b\"\n\t\t\t\t\t\t\t\t+ num + \"_zone_heating_cooling[]\");\n\t\t\t\t\t\tzone_min_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_min_temp[]\");\n\t\t\t\t\t\tzone_max_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_max_temp[]\");\n\t\t\t\t\t\tzone_operation_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_operation[]\");\n\t\t\n\t\t\t\t\t\tsite_def_building_name = site_def_building_name\n\t\t\t\t\t\t\t\t+ building_array[i] + \"*\";\n\t\t\n\t\t\t\t\t\tfor (int j = 0; j < zone_type_array.length; j++) {\n\t\t\t\t\t\t\tString zone_type = zone_type_array[j];\n\t\t\t\t\t\t\t// add to zone_list\n\t\t\t\t\t\t\tString zone_element = building_array[i] + \",\"\n\t\t\t\t\t\t\t\t\t+ zone_name_array[j] + \",\" + zone_type_array[j];\n\t\t\t\t\t\t\tzone_list.add(zone_element);\n\t\t\n\t\t\t\t\t\t\t// add to zone_details string\n\t\t\t\t\t\t\tzone_details = zone_details + zone_element + \"//\";\n\t\t\n\t\t\t\t\t\t\t// add to site_info_details string to store in\n\t\t\t\t\t\t\t// SITE_DEFINITION DB\n\t\t\t\t\t\t\tsite_def_details = site_def_details + quest_id + \"-\"\n\t\t\t\t\t\t\t\t\t+ building_array[i] + \"_\" + zone_name_array[j]\n\t\t\t\t\t\t\t\t\t+ \"*\";\n\t\t\t\t\t\t\tsite_def_activity = site_def_activity + zone_type + \"*\";\n\t\t\n\t\t\t\t\t\t\t// add to DB\n\t\t\t\t\t\t\tvalues = \"\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + quest_id + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + quest_id + \"-\" + building_array[i]\n\t\t\t\t\t\t\t\t\t+ \"_\" + zone_name_array[j] + \"\\',\";\n\t\t\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + (i + 1) + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + (j + 1) + \"\\',\";\n\t\t\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + building_array[i] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_name_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_type_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_heating_cooling_array[j]\n\t\t\t\t\t\t\t\t\t+ \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_min_temp_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_max_temp_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_operation_array[j] + \"\\'\";\n\t\t\n\t\t\t\t\t\t\tif (zone_type.equals(\"wh_mezzanine\")) {\n\t\t\t\t\t\t\t\ttableName = \"mezzanine_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"wh_ground_to_roof\")) {\n\t\t\t\t\t\t\t\ttableName = \"ground_to_roof_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"wh_value_add\")) {\n\t\t\t\t\t\t\t\ttableName = \"warehouse_value_add_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"offices\")) {\n\t\t\t\t\t\t\t\ttableName = \"office_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t\tSQLManager.insertRecord(tableName, values);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// delimit site_def_details and site_def_activity by ^ (to\n\t\t\t\t\t\t// separate by buildings)\n\t\t\t\t\t\tsite_def_details = site_def_details.substring(0,\n\t\t\t\t\t\t\t\tsite_def_details.length() - 1) + \"^\";\n\t\t\t\t\t\tsite_def_activity = site_def_activity.substring(0,\n\t\t\t\t\t\t\t\tsite_def_activity.length() - 1) + \"^\";\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\t// store site_def_details and site_def_activity in SITE_DEFINITION\n\t\t\t\t\t// table\n\t\t\t\t\tsite_def_details = site_def_details.substring(0,\n\t\t\t\t\t\t\tsite_def_details.length() - 1);\n\t\t\t\t\tsite_def_activity = site_def_activity.substring(0,\n\t\t\t\t\t\t\tsite_def_activity.length() - 1);\n\t\t\t\t\tsite_def_building_name = site_def_building_name.substring(0,\n\t\t\t\t\t\t\tsite_def_building_name.length() - 1);\n\t\t\t\t\tString site_def_values = \"\\'\" + quest_id + \"\\',\\'\"\n\t\t\t\t\t\t\t+ site_def_details + \"\\',\\'\" + site_def_activity + \"\\',\\'\"\n\t\t\t\t\t\t\t+ site_def_building_name + \"\\'\";\n\t\t\t\t\tSQLManager.insertRecord(\"site_definition\", site_def_values);\n\t\t\n\t\t\t\t\tsession.setAttribute(\"zone_details\", zone_details);\n\t\t\n\t\t\t\t\tString zone_string = \"\";\n\t\t\t\t\tfor (String z : zone_list) {\n\t\t\t\t\t\tzone_string = zone_string + z + \"//\";\n\t\t\t\t\t}\n\t\t\t\t\tzone_string = zone_string.substring(0, zone_string.length() - 2);\n\t\t\n\t\t\t\t\tsession.setAttribute(\"zone_string\", zone_string);\n\t\t\t\t\tout.println(\"yes\");\n\t\t\t\t}\t\n\t\n\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\n\t}", "void render(Map<String,List<Map<String,String>>> data);", "@Override\n protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \tString num1Str = request.getParameter(\"num1\");\n \tString num2Str = request.getParameter(\"num2\");\n \tString sum = request.getParameter(\"sum\");\n \tString sub = request.getParameter(\"sub\");\n \tString multi = request.getParameter(\"multi\");\n \tString divide = request.getParameter(\"divide\");\n \tString mud = request.getParameter(\"mud\");\n \tString pow = request.getParameter(\"pow\");\n \tdouble result;\n \ttry {\n\t\t\tdouble num1 = Double.parseDouble(num1Str);\n\t\t\tdouble num2 = Double.parseDouble(num2Str);\n\t\t\tCalcModel cal = new CalcModel(num1,num2);\n\t\t\t if(sum != null) result = cal.sum();\n\t\t\t else if (sub != null) result = cal.sub();\n\t\t\t else if (multi != null) result = cal.multi();\n\t\t\t else if (divide != null) result = cal.divide();\n\t\t\t else if (mud != null) result = cal.remainder(); \n\t\t\t else result = cal.power();\n\t\t\t \n\t\t\t\n\t\t\t\n\t\t\t// this is to result output using attribute\n\t\t\tRequestDispatcher desp = request.getRequestDispatcher(\"CalcAssignment/Calc.jsp\");\n\t\t\trequest.setAttribute(\"resultAttr\", result);\n\t\t\tdesp.forward(request, response);\n\t\t} catch (NumberFormatException e) {\n\t\t\tRequestDispatcher desp1 = request.getRequestDispatcher(\"CalcAssignment/erro.jsp\");\n\t\t\trequest.setAttribute(\"msgAttr\", e.getMessage());\n\t\t\tdesp1.forward(request, response);\n\t\t\t\n\t\t}\n \t\n \t\n \t\n \t\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n String contextPath = request.getContextPath();\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet DIVIDE</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet DivideServlet at \" + contextPath + \"</h1>\");\n \n org.netbeans.test.freeformlib.Multiplier d = new org.netbeans.test.freeformlib.Multiplier();\n try {\n String attributeX = request.getParameter(\"x\");\n if (attributeX == null) {\n attributeX = \"\";\n }\n d.setX(Double.parseDouble(attributeX));\n } catch(NumberFormatException e) {\n }\n try {\n String attributeY = request.getParameter(\"y\");\n if (attributeY == null) {\n attributeY = \"\";\n }\n d.setY(Double.parseDouble(attributeY));\n } catch(NumberFormatException e) {\n }\n \n if (d.getY() == 0) {\n out.println(\"<b>y</b> can't be 0!\");\n } else {\n out.println(\"\" + d.getX() + \" / \" + d.getY() + \" = \" + d.getMultiplication());\n }\n \n out.println(\"<br/>\");\n out.println(\"<a href=\\\"index.jsp\\\">Go back to index.jsp</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n \n out.close();\n }", "@Override\n\tpublic void doView(RenderRequest renderRequest,\n\t\t\tRenderResponse renderResponse) throws IOException, PortletException {\n\t\tsuper.doView(renderRequest, renderResponse);\n\t}", "protected void doDispatch (RenderRequest request,\n\t\t\t RenderResponse response) throws PortletException,java.io.IOException\n {\n WindowState state = request.getWindowState();\n \n if ( ! state.equals(WindowState.MINIMIZED)) {\n PortletMode mode = request.getPortletMode();\n if (mode.equals(PortletMode.VIEW)) {\n\tdoView (request, response);\n }\n else if (mode.equals(PortletMode.EDIT)) {\n\tdoEdit (request, response);\n }\n else if (mode.equals(PortletMode.HELP)) {\n\tdoHelp (request, response);\n }\n else {\n\tthrow new PortletException(\"unknown portlet mode: \" + mode);\n }\n }\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet processOutPass</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet processOutPass at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n Categories recResp = new Categories();\n int getCount = 0;\n // recResp.recipeCategories.getRecipeCategory().get(0).categoryName;\n ArrayOfRecipeClassification tests = new ArrayOfRecipeClassification();\n GetRecipeCategoriesResponse ff = new GetRecipeCategoriesResponse();\n // rc = tests.recipeClassification;\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\" <style>\\n\" +\n \"#header {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#nav {\\n\" +\n \" line-height:30px;\\n\" +\n \" background-color:#eeeeee;\\n\" +\n \" \\n\" +\n \" width:100px;\\n\" +\n \" float:left;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#row {\\n\" +\n \" display:inline-block;\\n\" +\n \"}\\n\" +\n \"#sectionl {\\n\" +\n \" width:350px;\\n\" +\n \" float:left;\\n\" +\n \" padding:30px;\\n\" +\n \"}\\n\" +\n \"#sectionC {\\n\" +\n \" width:500px;\\n\" +\n \" float:center;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"#sectionr {\\n\" +\n \" width:250px;\\n\" +\n \" float:right;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"\\n\" +\n \"#footer {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" clear:both;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"</style> \");\n out.println(\"<head>\" );\n out.println(\"<LINK href=\\\"C:/Users/hanemay/Documents/NetBeansProjects/CookingApp/web/style.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\">\");\n out.println(\"<div id=\\\"header\\\">\\n\" +\n \"<h1>Kraft Recipes</h1>\\n\" +\n \"</div>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n Enumeration<String> infomaterials= request.getParameterNames();\n while(infomaterials.hasMoreElements()) {\n System.out.println(infomaterials.nextElement()); \n } \n int amount = 100;\n String[] test = recResp.returnCats();\n try{\n amount = Integer.parseInt(request.getParameter(\"Question3\"));\n }catch(Exception e){\n \n }\n Recipes reccResp = new Recipes(amount); \n try{\n if(request.getParameter(\"isHealthy\").equalsIgnoreCase(\"healthy\"))\n reccResp.setHealthy(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"isFastFood\").equalsIgnoreCase(\"Fast food\"))\n reccResp.setUnder30Minutes(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"reqPic\").equalsIgnoreCase(\"Pictures required\"))\n reccResp.setbIsRecipePhotoRequired(true);\n }catch(Exception e){}\n reccResp.setbIsRecipePhotoRequired(true);\n while(recResp.amountOfCategories != getCount){\n reccResp.setbIsRecipePhotoRequired(true);\n reccResp.Search(recResp,recResp.recResp.getRecipeCategories().getRecipeCategory().get(getCount).categoryID);\n RecipeSummariesResponse recSumResp = reccResp.results();\n for(int recNames = 0; recNames < reccResp.getMaxAmountItems(); recNames++) {\n String url = recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).photoURL;\n if(recNames == 0){\n out.println(\"<div id=\\\"sectionC\\\">\\n\" +\n \"<h2>\"+test[getCount]+\"</h2>\\n\" +\n \"</div>\");}\n // if(recNames % 2==0){\n out.println(\"<div \\\"row\\\">\\n\" +\n \"<div id=\\\"sectionl\\\">\\n\" +\n \"<h3>\"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).recipeName+\"</h3>\\n\" + \n \"<img src=\\\"\"+url+\"\\\" style=\\\"height:254px;width:254px\\\">\\n\" +\n \"<p>\\n\" +\n \"<p>Number of ingrediens needed for this recipe : \"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()+\"</p>\\n\" +\n \"\");\n RecipeDetailResponse rec = reccResp.soapService.getRecipeByRecipeID(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getRecipeID(), true, 1, 1);\n for(int ingredientCounter = 0; ingredientCounter < Integer.parseInt(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()); ingredientCounter++ ){\n out.println(\"<p>\" + rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).ingredientName + \" amount : \"+ rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).quantityNum+\" \"+\n \"</p>\");\n }\n out.println(\"</p>\");\n out.println(\"</div>\\n\" );\n } \n getCount ++;\n }\n out.println(\"</body>\"); \n out.println(\"</html>\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/json;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n\n XTreeDictionary data = new XTreeDictionary();\n MapConverter map = new MapConverter(data);\n Gson gson = new Gson();\n String bid = request.getParameter(\"bid\");\n if (bid == null ? true : bid.isEmpty()) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n XArrayList booking_list = AbstractEntity.readDataFormCsv(new Booking());\n booking_list = booking_list.binarySearchAndSort(\"booking_id\", bid, Booking.class);\n if (booking_list == null ? true : booking_list.isEmpty()) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n Booking b = (Booking) booking_list.get(0);\n if (b == null ? true : b.isNotNull() || b.getDriver_id() == null) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n if (b.getBookingStatus().equals(BookingStatus.WATING_ACCEPTED)) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n\n XArrayList driver_list = AbstractEntity.readDataFormCsv(new Driver());\n driver_list = driver_list.binarySearchAndSort(\"user_id\", b.getDriver_id(), Driver.class);\n if (driver_list == null ? true : driver_list.isEmpty() || driver_list.get(0) == null) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n\n // Have update\n Driver d = (Driver) driver_list.get(0);\n // ouser phone, ouser name, ouser profile picture, booking status name\n // ouser_phone, ouser_name, ouser_profile, booking_status\n data.add(\"status\", \"OK\");\n data.add(\"ouser_phone\", d.getPhoneNumber() == null ? \"\" : d.getPhoneNumber());\n data.add(\"ouser_name\", d.getName());\n data.add(\"booking_status\", b.getBookingStatus());\n data.add(\"ouser_profile\", Functions.getProfilePic_byid(d.getId()));\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n }\n\n }", "@Test\n public void testRender(){\n Mockito.doNothing().when(renderer).renderWorld(level);\n Mockito.doNothing().when(renderer).renderScore();\n Mockito.doNothing().when(renderer).renderLives();\n renderer.render();\n verify(renderer).renderWorld(level);\n verify(renderer).renderScore();\n verify(renderer).renderLives();\n verify(batch).begin();\n verify(batch).end();\n }", "private static String unguardedRenderResponseContent(EvaluableRequest evaluableRequest, Map<String, Object> requestContext, TemplateEngine engine, String responseContent) {\n engine.getContext().setVariable(\"request\", evaluableRequest);\n if (requestContext != null) {\n engine.getContext().setVariables(requestContext);\n }\n try {\n return engine.getValue(responseContent);\n } catch (Throwable t) {\n log.error(\"Failing at evaluating template \" + responseContent, t);\n }\n return responseContent;\n }", "@Test\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void testGridOutput() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"LOAD_CONFIG\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\tfinal String out = \"{\\\"id\\\":\\\"test\\\",\\\"url\\\":\\\"molgenis.do?__target\\\\u003dtest\\\\u0026__action\\\\u003ddownload_json\\\",\\\"datatype\\\":\\\"json\\\",\\\"pager\\\":\\\"#testPager\\\",\\\"colNames\\\":[\\\"Country.Code\\\",\\\"Country.Name\\\",\\\"Country.Continent\\\",\\\"Country.Region\\\",\\\"Country.SurfaceArea\\\",\\\"Country.IndepYear\\\",\\\"Country.Population\\\",\\\"Country.LifeExpectancy\\\",\\\"Country.GNP\\\",\\\"Country.GNPOld\\\",\\\"Country.LocalName\\\",\\\"Country.GovernmentForm\\\",\\\"Country.HeadOfState\\\",\\\"Country.Capital\\\",\\\"Country.Code2\\\",\\\"City.ID\\\",\\\"City.Name\\\",\\\"City.CountryCode\\\",\\\"City.District\\\",\\\"City.Population\\\",\\\"CountryLanguage.CountryCode\\\",\\\"CountryLanguage.Language\\\",\\\"CountryLanguage.IsOfficial\\\",\\\"CountryLanguage.Percentage\\\"],\\\"colModel\\\":[{\\\"name\\\":\\\"Country.Code\\\",\\\"index\\\":\\\"Country.Code\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Code\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Code\\\"},{\\\"name\\\":\\\"Country.Name\\\",\\\"index\\\":\\\"Country.Name\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Name\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Name\\\"},{\\\"name\\\":\\\"Country.Continent\\\",\\\"index\\\":\\\"Country.Continent\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Continent\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Continent\\\"},{\\\"name\\\":\\\"Country.Region\\\",\\\"index\\\":\\\"Country.Region\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Region\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Region\\\"},{\\\"name\\\":\\\"Country.SurfaceArea\\\",\\\"index\\\":\\\"Country.SurfaceArea\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.SurfaceArea\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.SurfaceArea\\\"},{\\\"name\\\":\\\"Country.IndepYear\\\",\\\"index\\\":\\\"Country.IndepYear\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.IndepYear\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.IndepYear\\\"},{\\\"name\\\":\\\"Country.Population\\\",\\\"index\\\":\\\"Country.Population\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Population\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Population\\\"},{\\\"name\\\":\\\"Country.LifeExpectancy\\\",\\\"index\\\":\\\"Country.LifeExpectancy\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.LifeExpectancy\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.LifeExpectancy\\\"},{\\\"name\\\":\\\"Country.GNP\\\",\\\"index\\\":\\\"Country.GNP\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GNP\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GNP\\\"},{\\\"name\\\":\\\"Country.GNPOld\\\",\\\"index\\\":\\\"Country.GNPOld\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GNPOld\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GNPOld\\\"},{\\\"name\\\":\\\"Country.LocalName\\\",\\\"index\\\":\\\"Country.LocalName\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.LocalName\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.LocalName\\\"},{\\\"name\\\":\\\"Country.GovernmentForm\\\",\\\"index\\\":\\\"Country.GovernmentForm\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GovernmentForm\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GovernmentForm\\\"},{\\\"name\\\":\\\"Country.HeadOfState\\\",\\\"index\\\":\\\"Country.HeadOfState\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.HeadOfState\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.HeadOfState\\\"},{\\\"name\\\":\\\"Country.Capital\\\",\\\"index\\\":\\\"Country.Capital\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Capital\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Capital\\\"},{\\\"name\\\":\\\"Country.Code2\\\",\\\"index\\\":\\\"Country.Code2\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Code2\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Code2\\\"},{\\\"name\\\":\\\"City.ID\\\",\\\"index\\\":\\\"City.ID\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.ID\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.ID\\\"},{\\\"name\\\":\\\"City.Name\\\",\\\"index\\\":\\\"City.Name\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.Name\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.Name\\\"},{\\\"name\\\":\\\"City.CountryCode\\\",\\\"index\\\":\\\"City.CountryCode\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.CountryCode\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.CountryCode\\\"},{\\\"name\\\":\\\"City.District\\\",\\\"index\\\":\\\"City.District\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.District\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.District\\\"},{\\\"name\\\":\\\"City.Population\\\",\\\"index\\\":\\\"City.Population\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.Population\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.Population\\\"},{\\\"name\\\":\\\"CountryLanguage.CountryCode\\\",\\\"index\\\":\\\"CountryLanguage.CountryCode\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.CountryCode\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.CountryCode\\\"},{\\\"name\\\":\\\"CountryLanguage.Language\\\",\\\"index\\\":\\\"CountryLanguage.Language\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.Language\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.Language\\\"},{\\\"name\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"index\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.IsOfficial\\\"},{\\\"name\\\":\\\"CountryLanguage.Percentage\\\",\\\"index\\\":\\\"CountryLanguage.Percentage\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.Percentage\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.Percentage\\\"}],\\\"rowNum\\\":10,\\\"rowList\\\":[10,20,30],\\\"viewrecords\\\":true,\\\"caption\\\":\\\"test\\\",\\\"autowidth\\\":true,\\\"sortname\\\":\\\"\\\",\\\"sortorder\\\":\\\"desc\\\",\\\"height\\\":\\\"auto\\\",\\\"postData\\\":{\\\"filters\\\":{\\\"groupOp\\\":\\\"AND\\\",\\\"rules\\\":[]},\\\"rows\\\":0,\\\"page\\\":0},\\\"jsonReader\\\":{\\\"id\\\":\\\"Name\\\",\\\"repeatitems\\\":false},\\\"settings\\\":{\\\"del\\\":false,\\\"add\\\":false,\\\"edit\\\":false,\\\"search\\\":true},\\\"toolbar\\\":[true,\\\"top\\\"]}\";\n\n\t\t// test whether the desired json data is written\n\t\tverify(mockOutstream).println(out);\n\n\t\t// some tests to check the structure of the json\n\t\tfinal Gson gson = new Gson();\n\t\tfinal Map<String, Object> map2 = gson.fromJson(out, Map.class);\n\t\tassertEquals(\"test\", map2.get(\"id\"));\n\t\tassertEquals(\"molgenis.do?__target\\u003dtest\\u0026__action\\u003ddownload_json\", map2.get(\"url\"));\n\t\tassertEquals(Arrays.asList(\"Country.Code\", \"Country.Name\", \"Country.Continent\", \"Country.Region\",\n\t\t\t\t\"Country.SurfaceArea\", \"Country.IndepYear\", \"Country.Population\", \"Country.LifeExpectancy\",\n\t\t\t\t\"Country.GNP\", \"Country.GNPOld\", \"Country.LocalName\", \"Country.GovernmentForm\", \"Country.HeadOfState\",\n\t\t\t\t\"Country.Capital\", \"Country.Code2\", \"City.ID\", \"City.Name\", \"City.CountryCode\", \"City.District\",\n\t\t\t\t\"City.Population\", \"CountryLanguage.CountryCode\", \"CountryLanguage.Language\",\n\t\t\t\t\"CountryLanguage.IsOfficial\", \"CountryLanguage.Percentage\"), map2.get(\"colNames\"));\n\t\tfinal Map<?, ?> countryCodeColumn = ((ArrayList<Map<?, ?>>) map2.get(\"colModel\")).get(0);\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"name\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"index\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"title\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"path\"));\n\t\tassertEquals(Arrays.asList(\"eq\", \"ne\", \"bw\", \"bn\", \"ew\", \"en\", \"cn\", \"nc\"),\n\t\t\t\t((Map<?, ?>) countryCodeColumn.get(\"searchoptions\")).get(\"sopt\"));\n\t\tassertEquals(10.0, map2.get(\"rowNum\"));\n\t\tassertEquals(Arrays.asList(10.0, 20.0, 30.0), map2.get(\"rowList\"));\n\t\tassertEquals(\"desc\", map2.get(\"sortorder\"));\n\t}", "@Override\n\tprotected void buildExcelDocument(Map<String, Object> model, HSSFWorkbook workbook, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception \n\t{\n\t\t\n\t\tString formName = (String)model.get(\"formName\");\n\t\tif (\"Supplier\".equals(formName))\n\t\t\tsetSupplierExcelData(model, workbook);\n\t\telse if (\"Customer\".equals(formName))\n\t\t\tsetCustomerExcelData(model, workbook);\n\t\telse if (\"Item\".equals(formName))\n\t\t\tsetItemExcelData(model, workbook);\n\t\telse if (\"NonInventoryItem\".equals(formName))\n\t\t\tsetNonInventoryExcelData(model, workbook);\n\t\telse if (\"Project\".equals(formName))\n\t\t\tsetProjectExcelData(model, workbook);\n\t\telse if (\"Warehouse\".equals(formName))\n\t\t\tsetWarehouseExcelData(model, workbook);\n\t\t\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\" + formName);\n\t\n\t}", "protected void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\trequest.setCharacterEncoding(\"UTF-8\");\r\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\r\n\t\tBoardDTO dto = new BoardDTO();\r\n\t\tdto.setbTitle(request.getParameter(\"bTitle\"));\r\n\t\tdto.setbWriter(request.getParameter(\"bWriter\"));\r\n\t\tdto.setbPassword(request.getParameter(\"bPassword\"));\r\n\t\tdto.setbContent(request.getParameter(\"bContent\"));\r\n\t\tWirteService writesvc = new WirteService();\r\n\t\twritesvc.WirteService(dto);\r\n\t}", "protected void processTemplate(Map<String,?> attributes, Writer out, Template template, String encoding) throws IOException {\n long startTime = System.currentTimeMillis();\n\n Context context = buildContext(attributes);\n template.setEncoding(encoding);\n\n try {\n template.merge(context, out);\n log.debug(\"Velocity template transform processed in \" + \n (System.currentTimeMillis() - startTime) + \" ms\");\n } catch (ResourceNotFoundException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (ParseErrorException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (Exception errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/json;charset=utf-8\");\n try (PrintWriter out = response.getWriter()) {\n\n String file = request.getParameter(\"file\");\n String className = file.substring(0, file.indexOf(\".\"));\n\n try {\n \n JSONObject obj = new JSONObject();\n JSONArray errArray = new JSONArray();\n JSONArray outArray = new JSONArray();\n \n for(String aError : execErroutput(Config.DATA_PATH, Config.CMD_ENCODE, className)){\n errArray.put(aError);\n }\n for(String aOutput : execOutput(Config.DATA_PATH, Config.CMD_ENCODE, className)){\n outArray.put(aOutput);\n }\n \n obj.put(\"Error\", errArray);\n obj.put(\"Output\", outArray);\n \n out.println(obj.toString(4));\n \n } catch (Exception e) {\n System.err.println(e);\n }\n\n }\n }", "private void doSearchError(Map<String, Object> map, Configuration config, HttpServletRequest request, HttpServletResponse response) {\n writeTemplate(TEMPLATE_DEFAULT, map, config, request, response);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet GetWallGroupPostsServlet</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet GetWallGroupPostsServlet at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n */\n } finally { \n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\"); \n PrintWriter out = response.getWriter();\n \n /**\n * cdmsDO :: addMarket\n * --> cdmaCity\n * --> cdmaBorough\n * --> cdmaLocality\n * --> cdmCompany\n * :: getMarket\n * --> cdmID (OPTIONAL)\n * :: deleteMarket\n * --> cdmID\n *\n * \n * !! SHORTCUTs !!\n * carpe diem market --> cdm\n * carpe diem market address --> cdma\n * carpe diem market servlet --> cdms \n *\n */\n HttpSession session = request.getSession(false);\n Gson gson = new Gson();\n MysqlDBOperations mysql = new MysqlDBOperations();\n ResourceProperty resource = new ResourceProperty(\"com.generic.resources.mysqlQuery\");\n Result res = Result.FAILURE_PROCESS;\n Map resultMap = new HashMap();\n \n \n \n //verbose(request);\n \n \n \n //**********************************************************************\n //**********************************************************************\n //** STRIKE UP SERVLET OPERATION\n //**********************************************************************\n //**********************************************************************\n try {\n \n \n \n if(request.getParameter(\"cdmsDO\")!=null){ \n switch(request.getParameter(\"cdmsDO\")){ \n \n //**************************************************************\n //**************************************************************\n //** ADD TO MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"addMarket\": \n \n if( !Checker.anyNull(request.getParameter(\"cdmaCity\"),request.getParameter(\"cdmaBorough\"),request.getParameter(\"cdmaLocality\"),request.getParameter(\"cdmCompany\")) ){ \n \n // create dist-id\n // get address id\n \n \n res = Result.SUCCESS;\n }else{\n res = Result.FAILURE_PARAM_MISMATCH;\n }\n \n\n break;\n \n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketList\": \n \n \n // GET SPECIFIC MARKET\n if(!Checker.anyNull(request.getParameter(\"cdmID\"))){\n \n Map params = new HashMap();\n params.put(\"\", request.getParameter(\"cdmID\"));\n \n // GET ALL MARKETs\n }else{\n \n res = DBMarket.selectDistict(ResourceMysql.TABLE_DISTRIBUTER, \"distID\");\n \n }\n \n \n break;\n \n \n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET-ADRESS CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketAddressList\": \n \n \n // GET SPECIFIC MARKET\n if(!Checker.anyNull(request.getParameter(\"cdmID\"))){\n \n Map params = new HashMap();\n params.put(\"\", request.getParameter(\"cdmID\"));\n \n // GET ALL MARKETs\n }else{\n \n res = Result.FAILURE_PARAM_MISMATCH;\n \n }\n \n \n break;\n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET-ORDER CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketOrderList\": \n \n Result tempRes = DBUser.getUserCompany((String) session.getAttribute(\"cduUserId\")); \n if(tempRes.checkResult(Result.SUCCESS)){\n // Get user company and distributer id\n Map userMap = (Map) tempRes.getContent();\n String compName = (String) ((ArrayList)userMap.get(\"userCompany\")).get(0);\n String distName = (String) ((ArrayList)userMap.get(\"userDistributer\")).get(0); \n\n tempRes = DBMarket.getAddresses(distName);\n if(tempRes.checkResult(Result.SUCCESS)){\n Map m = (Map) tempRes.getContent();\n res = DBMarket.getOrders(compName, (List<String>) m.get(\"distAddressList\"));\n }\n }else{\n res = Result.FAILURE_PROCESS;\n }\n \n \n break;\n \n \n \n \n \n //**************************************************************\n //**************************************************************\n //** REMOVE MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"deleteMarket\":\n \n \n \n break;\n \n \n \n //**************************************************************\n //**************************************************************\n //** DEFAULT CASE\n //**************************************************************\n //**************************************************************\n default:\n res = Result.FAILURE_PARAM_WRONG;\n break;\n }\n\n }else{\n res = Result.FAILURE_PARAM_MISMATCH;\n }\n \n }finally{ \n \n mysql.closeAllConnection();\n out.write(gson.toJson(res));\n out.close();\n \n }\n \n }", "protected void renderMap(float mouseLocationX, float mouseLocationY)\n {\n float tileSize = zoom;\n\n //Calculate the number of tiles that can fit on screen\n int tiles_x = (int) Math.ceil(screenSizeX / tileSize) + 2;\n int tiles_y = (int) Math.ceil(screenSizeY / tileSize) + 2;\n\n //Offset tile position based on camera\n int center_x = (int) (cameraPosX - (zoom / 2f));\n int center_y = (int) (cameraPosY - (zoom / 2f));\n\n //Calculate the offset to make tiles render from the center\n int renderOffsetX = (tiles_x - 1) / 2;\n int renderOffsetY = (tiles_y - 1) / 2;\n\n //Get the position of the mouse based on screen size and tile scale\n float mouseScreenPosXScaled = mouseLocationX * screenSizeX / tileSize;\n float mouseScreenPosYScaled = mouseLocationY * screenSizeY / tileSize;\n\n //Get the position of the mouse relative to the map\n int mouseMapPosX = (int) Math.floor(center_x + mouseScreenPosXScaled);\n int mouseMapPosY = (int) Math.floor(center_y + mouseScreenPosYScaled);\n\n //Get the tile the mouse is currently over\n Tile tileUnderMouse = game.getWorld().getTile(mouseMapPosX, mouseMapPosY, cameraPosZ);\n\n //Render tiles\n for (int x = -renderOffsetX; x < renderOffsetX; x++)\n {\n for (int y = -renderOffsetY; y < renderOffsetY; y++)\n {\n int tile_x = x + center_x;\n int tile_y = y + center_y;\n Tile tile = game.getWorld().getTile(tile_x, tile_y, cameraPosZ);\n if (tile != Tiles.AIR)\n {\n TileRender.render(tile, x * tileSize, y * tileSize, zoom);\n }\n }\n }\n\n //Render entities\n for (Entity entity : game.getWorld().getEntities())\n {\n //Ensure the entity is on the floor we are rendering\n if (entity.zi() == cameraPosZ)\n {\n float tile_x = (entity.xf() - center_x) * tileSize;\n float tile_y = (entity.yf() - center_y) * tileSize;\n\n //Ensure the entity is in the camera view\n if (tile_x >= cameraBoundLeft && tile_x <= cameraBoundRight)\n {\n if (tile_y >= cameraBoundBottom && tile_y <= cameraBoundTop)\n {\n EntityRender.render(entity, tile_x, tile_y, 0, zoom);\n\n if (mouseMapPosX == entity.xi() && mouseMapPosY == entity.yi())\n {\n String s = entity.getDisplayName();\n fontRender.render(s, mouseLocationX * screenSizeX, mouseLocationY * screenSizeY, 0, 0, .5f * zoom);\n }\n }\n }\n }\n }\n\n float x = mouseMapPosX * tileSize;\n float y = mouseMapPosY * tileSize;\n\n //System.out.println(x + \" \" + y + \" \" + zoom + \" \" + tx + \" \" + ty + \" \" + tile);\n\n if (currentGuiComponetInUse != null)\n {\n target_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n else\n {\n box_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n\n if (!MouseInput.leftClick() && clickLeft)\n {\n clickLeft = false;\n doLeftClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n\n if (!MouseInput.rightClick() && clickRight)\n {\n clickRight = false;\n doRightClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n\n String html = \" <span class=\\\"glyphicon glyphicon-exclamation-sign\\\" aria-hidden=\\\"true\\\"></span><span class=\\\"sr-only\\\">Error:</span> \";\n\n String message = \"\";\n\n try {\n /* TODO output your page here. You may use following sample code. */\n\n boolean error = false;\n\n // Check Lat Lon\n String latlng = String.valueOf(request.getParameter(\"latlng\"));\n String lat = \"\";\n String lon = \"\";\n if (!latlng.equals(\"null\") && !latlng.equals(\"\")) {\n int position = latlng.indexOf(\",\");\n lat = latlng.substring(0, position);\n lon = latlng.substring(position + 1, latlng.length());\n } else {\n message += html + \"Please select a point on the map! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n\n // Check number of projects\n int number_of_projects = 0;\n try {\n number_of_projects = Integer.parseInt(String.valueOf(request.getParameter(\"number_of_projects\")));\n } catch (Exception e) {\n }\n if (number_of_projects <= 0) {\n message += html + \"Please enter a positive integer! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n if (number_of_projects > 100) {\n message += html + \"Number of projects is limited to 100! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n\n // If no error\n if (!error) {\n ProjectDAO pdao = new ProjectDAO();\n ArrayList<Project> result = pdao.retrieve(number_of_projects, lat, lon);\n JsonArray projectList = pdao.toJSON(result, number_of_projects);\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(projectList);\n request.setAttribute(\"project_comparison_result\", json);\n }\n\n request.setAttribute(\"return_num\", number_of_projects);\n request.setAttribute(\"latlng\", latlng);\n RequestDispatcher rd = request.getRequestDispatcher(\"ProjectComparison.jsp\");\n rd.forward(request, response);\n\n } catch (Exception e) {\n // Send error (if any) back to homepage\n } finally {\n out.close();\n }\n }", "@RequestMapping(value=\"hao.do\")\n\tpublic void hao_jsp(@ModelAttribute(\"pojo\") Pojo pojo,HttpServletResponse response) throws IOException{\n\t\tSystem.out.println(pojo.getA()+\" \"+pojo.getB());\n\t\tresponse.sendRedirect(\"success.jsp\");\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n RequestDispatcher rd=null;\n HttpSession session = request.getSession();\n String userid = (String)session.getAttribute(\"userid\");\n if(userid==null)\n {\n session.invalidate();\n response.sendRedirect(\"accessdenied.html\");\n return;\n }\n try\n {\n System.out.println(\"in the try of election result controller servlet\");\n Map<String , Integer> result = VoteDao.getResult();\n System.out.println(\"fetched party and vote from voteDao\");\n Set s = result.entrySet();\n Iterator it = s.iterator();\n LinkedHashMap<PartyWiseResult , Integer> resultDetails = new LinkedHashMap<>();\n while(it.hasNext())\n {\n Map.Entry<String , Integer> e = (Map.Entry)it.next();\n System.out.println(\"no we are iterating with \"+e.getKey());\n String symbol = CandidateDao.getPartySymbol(e.getKey());\n System.out.println(\"got the symbol for \"+e.getKey());\n PartyWiseResult pw = new PartyWiseResult();\n pw.setParty(e.getKey());\n pw.setSymbol(symbol);\n resultDetails.put(pw, e.getValue());\n \n }\n request.setAttribute(\"votecount\", VoteDao.getVoteCount());\n request.setAttribute(\"result\", resultDetails);\n rd = request.getRequestDispatcher(\"electionresult.jsp\");\n System.out.println(\"attribute for show election result is setted successfully\");\n }\n catch(Exception ex)\n {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n request.setAttribute(\"Exception\", ex);\n rd = request.getRequestDispatcher(\"showexception.jsp\");\n }\n finally\n {\n System.out.println(\"we are in the finally\");\n rd.forward(request, response);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n } finally { \r\n out.close();\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n long id = new Integer(request.getParameter(\"id\"));\n\n \n ResourcePOJO res = null;\n// try {\n res = manager.getResource(id, false);\n// } catch (JAXBException e) {\n// throw new IOException(e.getMessage());\n// }\n LayerManager layerBean = new LayerManager(res);\n \n try {\n \n request.setAttribute(\"layer\", layerBean);\n \n String layerName = layerBean.getName();\n \n List<ResourcePOJO> relatedStatsDefs = manager.searchStatsDefByLayer(layerName);\n request.setAttribute(\"statsDefs\", relatedStatsDefs);\n \n List<ResourcePOJO> relatedLayerUpdates = manager.searchLayerUpdatesByLayerName(layerName);\n request.setAttribute(\"layerUpdates\", relatedLayerUpdates);\n \n String data = manager.getData(id, MediaType.WILDCARD_TYPE.toString());\n layerBean.setData(data);\n \n request.setAttribute(\"storedData\", data);\n \n } catch (Exception ex) {\n Logger.getLogger(LayerShow.class.getName()).log(Level.SEVERE, null, ex);\n }\n String outputPage = getServletConfig().getInitParameter(\"outputPage\");\n RequestDispatcher rd = request.getRequestDispatcher(outputPage);\n rd.forward(request, response);\n }", "@Override\n protected void handleRequest (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope,\n @Nonnull final UnifiedResponse aUnifiedResponse) throws Exception\n {\n String sKey = aRequestScope.getPathWithinServlet ();\n if (sKey.length () > 0)\n sKey = sKey.substring (1);\n\n SimpleURL aTargetURL = null;\n final GoMappingItem aGoItem = getResolvedGoMappingItem (sKey);\n if (aGoItem == null)\n {\n s_aLogger.warn (\"No such go-mapping item '\" + sKey + \"'\");\n // Goto start page\n aTargetURL = getURLForNonExistingItem (aRequestScope, sKey);\n s_aStatsError.increment (sKey);\n }\n else\n {\n // Base URL\n if (aGoItem.isInternal ())\n {\n final IMenuTree aMenuTree = getMenuTree ();\n if (aMenuTree != null)\n {\n // If it is an internal menu item, check if this internal item is an\n // \"external menu item\" and if so, directly use the URL of the\n // external menu item\n final IRequestManager aARM = ApplicationRequestManager.getRequestMgr ();\n final String sTargetMenuItemID = aARM.getMenuItemFromURL (aGoItem.getTargetURL ());\n\n final IMenuObject aMenuObj = aMenuTree.getItemDataWithID (sTargetMenuItemID);\n if (aMenuObj instanceof IMenuItemExternal)\n {\n aTargetURL = new SimpleURL (((IMenuItemExternal) aMenuObj).getURL ());\n }\n }\n }\n if (aTargetURL == null)\n {\n // Default case - use target link from go-mapping\n aTargetURL = aGoItem.getTargetURL ();\n }\n\n // Callback\n modifyResultURL (aRequestScope, sKey, aTargetURL);\n\n s_aStatsOK.increment (sKey);\n }\n\n // Append all request parameters of this request\n // Don't use the request attributes, as there might be more of them\n final Enumeration <?> aEnum = aRequestScope.getRequest ().getParameterNames ();\n while (aEnum.hasMoreElements ())\n {\n final String sParamName = (String) aEnum.nextElement ();\n final String [] aParamValues = aRequestScope.getRequest ().getParameterValues (sParamName);\n if (aParamValues != null)\n for (final String sParamValue : aParamValues)\n aTargetURL.add (sParamName, sParamValue);\n }\n\n if (s_aLogger.isDebugEnabled ())\n s_aLogger.debug (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n else\n if (GlobalDebug.isDebugMode ())\n s_aLogger.info (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n\n // Main redirect :)\n aUnifiedResponse.setRedirect (aTargetURL);\n }", "@Mapper(componentModel = \"spring\")\npublic interface DemoMapper {\n DemoResponse map(Demo demo);\n}", "public void markRenderModelsModified() {\n\t\t\n\t\t// TODO dispose of the VBOs!!!\n\t\trenderUnits = null;\n\t\t\n\t}", "@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n String myresult = \"My result\";\n// Collection <Player> myresult = fullTeamService.getTeam();\n\n request.setAttribute(\"myresult\", myresult);\n\n return \"view/anotherResultMul.jsp\";\n\n\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 /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet LibrarySystemController</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet LibrarySystemController at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "public void render (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n response.setTitle(getTitle(request));\n doDispatch(request, response);\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 /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet StatisticalReport</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet StatisticalReport at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "@RequestMapping(value = \"/homed/{map}\", method = RequestMethod.GET)\r\n public String mapHomeDebug(HttpServletRequest request, @PathVariable(\"map\") String map, ModelMap model) throws ServletException, IOException { \r\n return(renderPage(request, model, \"map\", map, null, null, true));\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(OrgDisplay.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(OrgDisplay.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response); \n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n \r\n }", "private void generateSearchReport(final Map<String, String> request,\r\n\t\t\tfinal List<Map<String, String>> resultMap) {\r\n\t\tMap<String, String> reportMap = null;\r\n\r\n\t\tfor (final Map<String, String> map : resultMap) {\r\n\t\t\tif (map.containsKey(CommonConstants.TOTAL_PRODUCTS)) {\r\n\t\t\t\treportMap = this.getReportMap(request);\r\n\t\t\t\tfinal StringBuilder attributes = new StringBuilder();\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.COLOR)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.COLOR);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.COLOR));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.SIZE)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.SIZE);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.SIZE));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.BRAND)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.BRAND);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.BRAND));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tthis.requestAttributePrice(request, attributes);\r\n\t\t\t\tif (attributes.length() != 0) {\r\n\t\t\t\t\treportMap.put(DomainConstants.ATTRIBUTES, attributes\r\n\t\t\t\t\t\t\t.toString().substring(0, attributes.length() - 1));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString sortFields = \"\";\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.SORT)) {\r\n\t\t\t\t\tsortFields = request.get(RequestAttributeConstant.SORT);\r\n\t\t\t\t}\r\n\t\t\t\tif (!\"\".equals(sortFields)) {\r\n\t\t\t\t\treportMap.put(DomainConstants.SORT_FIELDS, sortFields\r\n\t\t\t\t\t\t\t.replace(CommonConstants.EMPTY_VALUE,\r\n\t\t\t\t\t\t\t\t\tCommonConstants.COMMA_SEPERATOR));\r\n\t\t\t\t}\r\n\t\t\t\tmap.putAll(reportMap);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void foreachResultCreateHTML(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n\n // call for a single ini file\n if (sInputPath.toLowerCase().endsWith(\".ini\") )\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n // check if there exists an ini file\n String sPath = FileHelper.getPath(sInputPath); \n String sBasename = FileHelper.getBasename(sInputPath);\n\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n \n // Create a HTML page which shows locally to all files in .odb\n if (sInputPath.toLowerCase().endsWith(\".odb\"))\n {\n String sIndexFile = FileHelper.appendPath(sPath, \"index.ini\");\n File aIndexFile = new File(sIndexFile);\n if (aIndexFile.exists())\n { \n IniFile aIniFile = new IniFile(sIndexFile);\n\n if (aIniFile.hasSection(sBasename))\n {\n // special case for odb files\n int nFileCount = aIniFile.getIntValue(sBasename, \"reportcount\", 0);\n ArrayList<String> aList = new ArrayList<String>();\n for (int i=0;i<nFileCount;i++)\n {\n String sValue = aIniFile.getValue(sBasename, \"report\" + i);\n\n String sPSorPDFName = getPSorPDFNameFromIniFile(aIniFile, sValue);\n if (sPSorPDFName.length() > 0)\n {\n aList.add(sPSorPDFName);\n }\n }\n if (aList.size() > 0)\n {\n // HTML output for the odb file, shows only all other documents.\n HTMLResult aOutputter = new HTMLResult(sPath, sBasename + \".ps.html\" );\n aOutputter.header(\"content of DB file: \" + sBasename);\n aOutputter.indexSection(sBasename);\n \n for (int i=0;i<aList.size();i++)\n {\n String sPSFile = aList.get(i);\n\n // Read information out of the ini files\n String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + \".ini\");\n IniFile aIniFile2 = new IniFile(sIndexFile2);\n String sStatusRunThrough = aIniFile2.getValue(\"global\", \"state\");\n String sStatusMessage = \"\"; // aIniFile2.getValue(\"global\", \"info\");\n aIniFile2.close();\n\n\n String sHTMLFile = sPSFile + \".html\";\n aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage);\n }\n aOutputter.close();\n\n// String sHTMLFile = FileHelper.appendPath(sPath, sBasename + \".ps.html\");\n// try\n// {\n//\n// FileOutputStream out2 = new FileOutputStream(sHTMLFile);\n// PrintStream out = new PrintStream(out2);\n//\n// out.println(\"<HTML>\");\n// out.println(\"<BODY>\");\n// for (int i=0;i<aList.size();i++)\n// {\n// // <A href=\"link\">blah</A>\n// String sPSFile = (String)aList.get(i);\n// out.print(\"<A href=\\\"\");\n// out.print(sPSFile + \".html\");\n// out.print(\"\\\">\");\n// out.print(sPSFile);\n// out.println(\"</A>\");\n// out.println(\"<BR>\");\n// }\n// out.println(\"</BODY></HTML>\");\n// out.close();\n// out2.close();\n// }\n// catch (java.io.IOException e)\n// {\n// \n// }\n }\n }\n aIniFile.close();\n }\n\n }\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n String action = request.getParameter(\"action\");\n LogementModel model = new LogementModel();\n MaisonDAO implm = new MaisonDAO();\n AppartementDAO impla = new AppartementDAO();\n ChambreDAO implc = new ChambreDAO();\n\n request.setAttribute(\"model\", model);\n\n if (action != null) {\n if (action.equals(\"maison\")) {\n ArrayList<Maison> listm = implm.listMaisonD();\n model.setMaisons(listm);\n } else if (action.equals(\"appartement\")) {\n ArrayList<Appartement> lisa = impla.listAppartementD();\n model.setAppartements(lisa);\n } else if (action.equals(\"chambre\")) {\n ArrayList<Chambre> lista = implc.listChambreD();\n model.setChambres(lista);\n }/*else if (action.equals(\"tout\")) {\n List<Logement> logement = impl.listlogements();\n model.setLogements(logement);\n }*/\n\n }\n request.getRequestDispatcher(\"index.jsp\").forward(request,\n response);\n\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Loggable\n protected ModelAndView handle(final HttpServletRequest request, final HttpServletResponse response,\n final Object commandObj, final BindException errors)\n throws InvalidTestbedIdException, TestbedNotFoundException {\n final long start = System.currentTimeMillis();\n\n long start1 = System.currentTimeMillis();\n\n // set command object\n final TestbedCommand command = (TestbedCommand) commandObj;\n\n // a specific testbed is requested by testbed Id\n int testbedId;\n try {\n testbedId = Integer.parseInt(command.getTestbedId());\n } catch (NumberFormatException nfe) {\n throw new InvalidTestbedIdException(\"Testbed IDs have number format.\", nfe);\n }\n\n LOGGER.info(\"--------- Get Testbed id: \" + (System.currentTimeMillis() - start1));\n start1 = System.currentTimeMillis();\n\n // look up testbed\n final Testbed testbed = testbedManager.getByID(testbedId);\n if (testbed == null) {\n // if no testbed is found throw exception\n throw new TestbedNotFoundException(\"Cannot find testbed [\" + testbedId + \"].\");\n }\n LOGGER.info(\"got testbed \" + testbed);\n\n LOGGER.info(\"--------- Get Testbed: \" + (System.currentTimeMillis() - start1));\n\n\n if (nodeCapabilityManager == null) {\n LOGGER.error(\"nodeCapabilityManager==null\");\n }\n\n start1 = System.currentTimeMillis();\n // get a list of node last readings from testbed\n final List<NodeCapability> nodeCapabilities = nodeCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- list nodeCapabilities: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n String nodeCaps;\n try {\n nodeCaps = HtmlFormatter.getInstance().formatLastNodeReadings(nodeCapabilities);\n } catch (NotImplementedException e) {\n nodeCaps = \"\";\n }\n LOGGER.info(\"--------- format last node readings: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n // get a list of link statistics from testbed\n final List<LinkCapability> linkCapabilities = linkCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- List link capabilities: \" + (System.currentTimeMillis() - start1));\n\n\n // Prepare data to pass to jsp\n final Map<String, Object> refData = new HashMap<String, Object>();\n refData.put(\"testbed\", testbed);\n refData.put(\"lastNodeReadings\", nodeCaps);\n\n\n try {\n start1 = System.currentTimeMillis();\n refData.put(\"lastLinkReadings\", HtmlFormatter.getInstance().formatLastLinkReadings(linkCapabilities));\n LOGGER.info(\"--------- format link Capabilites: \" + (System.currentTimeMillis() - start1));\n } catch (NotImplementedException e) {\n LOGGER.error(e);\n }\n\n LOGGER.info(\"--------- Total time: \" + (System.currentTimeMillis() - start));\n refData.put(\"time\", String.valueOf((System.currentTimeMillis() - start)));\n LOGGER.info(\"prepared map\");\n\n return new ModelAndView(\"testbed/status.html\", refData);\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/json\");\n try (PrintWriter out = response.getWriter()) {\n Gson gson = new Gson();\n\n ProblemsManager problemsManager = ServletUtils.getProblemsManager(getServletContext());\n List<TimeTableProblem> problemList = problemsManager.getProblems();\n List<DTOShortProblem> shortProblemsList= new LinkedList<>();\n for(TimeTableProblem problem:problemList)\n {\n shortProblemsList.add(new DTOShortProblem(problem));\n }\n\n\n String json = gson.toJson(shortProblemsList);\n out.println(json);\n out.flush();\n }\n }", "private void render(String templateName, HttpServletResponse response, MustacheFactory mustacheFactory,\n\t\t\tObject context) throws IOException {\n\t\tMustache header = mustacheFactory.compile(templateName);\n\n\t\theader.execute(response.getWriter(), context);\n\t}" ]
[ "0.7802177", "0.7522616", "0.7476647", "0.7376135", "0.7318861", "0.6990785", "0.6896594", "0.66167796", "0.6402479", "0.63494164", "0.6287087", "0.5850929", "0.5666228", "0.56320125", "0.5493746", "0.54322827", "0.5419891", "0.5373089", "0.52173954", "0.5155077", "0.51448715", "0.51154417", "0.51098114", "0.50892276", "0.5069682", "0.5050963", "0.49580953", "0.4955232", "0.49488896", "0.49484253", "0.49306354", "0.49243718", "0.49203998", "0.49146634", "0.49042004", "0.4897013", "0.48818544", "0.48762026", "0.48646092", "0.48609844", "0.48573184", "0.48224753", "0.48189357", "0.48148546", "0.4788502", "0.47403395", "0.47400457", "0.47330606", "0.4730126", "0.47235668", "0.47181645", "0.47126535", "0.47098818", "0.47082186", "0.47072992", "0.4697982", "0.4697933", "0.46879792", "0.46750638", "0.46711656", "0.46597606", "0.46574914", "0.46498364", "0.4636415", "0.4632848", "0.46298698", "0.4627752", "0.4620496", "0.46196604", "0.46162376", "0.4609262", "0.46083853", "0.460372", "0.46035272", "0.45951653", "0.4594478", "0.45929474", "0.45856848", "0.45815098", "0.45761192", "0.45686984", "0.45681223", "0.4565539", "0.4560225", "0.45552054", "0.45448396", "0.45423725", "0.45410067", "0.45382488", "0.45377424", "0.45370123", "0.45334205", "0.45334205", "0.45334205", "0.45334205", "0.45334205", "0.45334205", "0.45333418", "0.45324194", "0.45303053" ]
0.77025086
1
Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test.
@Test public void testRenderMergedOutputModel_3() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); fixture.renderMergedOutputModel(model, request, response); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testRenderMergedOutputModel_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", false, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Override\n\tprotected void renderMergedOutputModel(Map<String, Object> model,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\texposeModelAsRequestAttributes(model,request);\n\n\t\t// Determine the path for the request dispatcher.\n\t\tString dispatcherPath = prepareForRendering(request, response);\n\n\t\t// set original view being asked for as a request parameter\n\t\trequest.setAttribute(\"partial\", dispatcherPath.subSequence(14, dispatcherPath.length()));\n\n\t\t// force everything to be template.jsp\n\t\tRequestDispatcher requestDispatcher = request\n\t\t\t\t.getRequestDispatcher(\"/WEB-INF/views/template.jsp\");\n\t\trequestDispatcher.include(request, response);\n\n\t}", "@Test(expected = java.io.IOException.class)\n\tpublic void testRenderMergedOutputModel_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "protected void renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception\r\n {\r\n try\r\n {\r\n StringBuilder sitemap = new StringBuilder();\r\n sitemap.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n sitemap.append(\"<urlset xmlns=\\\"http://www.sitemaps.org/schemas/sitemap/0.9\\\">\");\r\n sitemap.append(createUrlEntries(model));\r\n sitemap.append(\"</urlset>\");\r\n\r\n response.getOutputStream().print(sitemap.toString());\r\n }\r\n catch (Exception e)\r\n {\r\n this.exceptionHandler.handle(e);\r\n }\r\n }", "@Test(expected = java.io.UnsupportedEncodingException.class)\n\tpublic void testRenderMergedOutputModel_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Override\n protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n ByteArrayOutputStream baos = createTemporaryOutputStream();\n\n // Apply preferences and build metadata.\n Document document = new Document();\n PdfWriter writer = PdfWriter.getInstance(document, baos);\n prepareWriter(model, writer, request);\n buildPdfMetadata(model, document, request);\n\n // Build PDF document.\n writer.setInitialLeading(16);\n document.open();\n buildPdfDocument(model, document, writer, request, response);\n document.close();\n\n // Flush to HTTP response.\n writeToResponse(response, baos);\n\n }", "@Override\n\tprotected void renderMergedOutputModel(\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\n\t\tif(LOGGER.isDebugEnabled()) {\n//\t\t\tif(MDC.get(CmmnConstants.REMOTE_ADDR) == null) {\n//\t\t\t\tisSetRemoteAddr = true;\n//\t\t\t\tString remoteAddr = GeneralUtils.changeLocalAddr(GeneralUtils.getIpAddress(request));\n//\t\t\t\tMDC.put(CmmnConstants.REMOTE_ADDR, remoteAddr);\n//\t\t\t\tMDC.put(CmmnConstants.CONTEXT_PATH, request.getContextPath().isEmpty()?\"/\":request.getContextPath());\n//\t\t\t}\n\t\t}\n\n\t\tsuper.renderMergedOutputModel( model, request, response);\n\n//\t\tif(isSetRemoteAddr) {\n//\t\t\tMDC.remove(CmmnConstants.REMOTE_ADDR);\n//\t\t\tMDC.remove(CmmnConstants.CONTEXT_PATH);\n//\t\t}\n\t}", "@Override\r\n public void render(Map<String, ?> model, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws Exception {\n\t\tif ( httpResponse.isCommitted() ) {\r\n\t\t\tif ( logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"Response already committed\");\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlong startMillis = System.currentTimeMillis();\r\n\r\n Response response = (Response)model.get (Response.RESPONSE_ATTRIBUTE);\r\n Writer writer = null;\r\n\t\ttry {\r\n\t\t\t// Set the response content type based on the transport\r\n\t\t\tsetContentType(response);\r\n writer = IOUtil.getResponseWriter(response);\r\n startOutput(response, writer);\r\n\t\t createOutput(response, writer);\r\n finishOutput(response, writer);\r\n } catch ( ScalarActionException e ) {\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unable to create output\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} catch ( IOException e ) {\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unable to get writer\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} catch ( Exception e ) {\r\n\t\t\t// Catching just exception on purpose\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unexpected error during output\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif ( null != writer ) {\r\n\t\t\t\t\t// Ensure output\r\n\t\t\t\t\twriter.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch ( IOException e ) {\r\n\t\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\t\tlogger.error(\"Unable to flush output\", e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"End of creating UI response: \" + httpRequest.getRequestURI() + \" Total flight time: \" + (System.currentTimeMillis() - startMillis));\r\n\t\t\t}\r\n\t\t}\r\n }", "@Override\r\n\tprotected final void renderMergedOutputModel(\r\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n\r\n\t\tExcelForm excelForm = (ExcelForm) model.get(\"excelForm\");\r\n\r\n\t\tHSSFWorkbook workbook;\r\n\t\tHSSFSheet sheet;\r\n\t\tif (excelForm.getTemplateFileUrl() != null) {\r\n\t\t\tworkbook = getTemplateSource(excelForm.getTemplateFileUrl(), request);\r\n\t\t\tsheet = workbook.getSheetAt(0);\r\n\t\t} else {\r\n\t\t\tString sheetName = excelForm.getSheetName();\r\n\r\n\t\t\tworkbook = new HSSFWorkbook();\r\n\t\t\tsheet = workbook.createSheet(sheetName);\r\n\t\t\tlogger.debug(\"Created Excel Workbook from scratch\");\r\n\t\t}\r\n\t\t\r\n\t\tresponse.setHeader( \"Content-Disposition\", \"attachment; filename=\" + URLEncoder.encode(excelForm.getFileName(), \"UTF-8\"));\r\n\r\n\t\tcreateColumnStyles(excelForm, workbook);\r\n\t\tcreateMetaRows(excelForm, workbook, sheet);\r\n\t\tcreateHeaderRow(excelForm, workbook, sheet);\r\n\t\tfor (Object review : excelForm.getData()) {\r\n\t\t\tcreateRow(excelForm, workbook,sheet, review);\r\n\t\t\tdetectLowMemory();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the content type.\r\n\t\tresponse.setContentType(getContentType());\r\n\r\n\t\t// Should we set the content length here?\r\n\t\t// response.setContentLength(workbook.getBytes().length);\r\n\r\n\t\t// Flush byte array to servlet output stream.\r\n\t\tServletOutputStream out = response.getOutputStream();\r\n\t\tworkbook.write(out);\r\n\t\tout.flush();\r\n\t}", "protected void renderMergedOutputModel(Map model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tFile file = (File)model.get(\"downloadFile\");\n\t\tresponse.setContentType(super.getContentType());\n\t\tresponse.setContentLength((int)file.length());\n\t\tresponse.setHeader(\"Content-Transfer-Encoding\",\"binary\");\n\t\tresponse.setHeader(\"Content-Disposition\",\"attachment;fileName=\\\"\"+java.net.URLEncoder.encode(file.getName(),\"utf-8\")+\"\\\";\");\n\t\tOutputStream out = response.getOutputStream();\n\t\tFileInputStream fis = null;\n\t\ttry\n\t\t{\n\t\t\tfis = new FileInputStream(file);\n\t\t\tFileCopyUtils.copy(fis, out);\n\t\t}\n\t\tcatch(java.io.IOException ioe)\n\t\t{\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(fis != null) fis.close();\n\t\t}\n\t\tout.flush();\n\t}", "private void process(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAddModel model = Util.getModel(request, Const.RESULT);\n\t\t\n\t\t// Print the \"VIEW\" using the \"MODEL\"\n\t\tprintView(response, model);\n\t}", "@Test\n public void shouldLoadFilledModel() throws Exception {\n final Map<String, Object> modelData = createFilledModel();\n // Some static data is changed at this moment, so need to reset the extractors list\n ReportColumnsExtractorHelper.reset();\n\n // WHEN asking the view to render the model contents\n underTest.renderMergedOutputModel(modelData, mock(HttpServletRequest.class), response);\n\n // THEN the resulting CSV contains the expected data\n verify(writer).write(\"\\\"Header\\\",\\\"Header NG\\\",\\\"H\\\",\\\"Header\\\"\\n\");\n verify(writer).write(\"\\\"str\\\",\\\"\\\",\\\"2\\\",\\\"\\\"\\n\");\n verify(writer).flush();\n }", "@Override\r\n public void render(HttpServletRequest request, HttpServletResponse response, Object result) throws Throwable\r\n {\n \r\n }", "@Test\n public void shouldLoadEmptyModel() throws Exception {\n final Map<String, Object> modelData = createEmptyModel();\n\n // WHEN asking the view to render the model contents\n underTest.renderMergedOutputModel(modelData, mock(HttpServletRequest.class), response);\n\n // THEN the response sets the correct MIME type\n verify(response).setContentType(\"text/csv\");\n verify(response).setHeader(\"Content-Disposition\", \"attachment; filename=activityReport.csv\");\n\n // AND returns an empty closed stream\n verify(sourceWriter).close();\n }", "@Test\n public void testRender() {\n try{\n System.out.println(\"render\");\n HttpSession session = new MockHttpSession();\n session.setAttribute(\"session_user\", ujc.findUser(1));\n String project_id = \"3\";\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n ModelAndView result = instance.render(session, project_id);\n// assertEquals(expResult, result);\n ModelAndViewAssert.assertViewName(result, \"team\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"owner\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"allMembers\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"otherUsers\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"project\");\n }\n catch(Exception e){\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Redner failed\");\n }\n }", "protected void augmentModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\n\t}", "@Test\n\tpublic void testRenderData() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"RENDER_DATA\");\n\t\tmap.put(\"rows\", \"10\");\n\t\tmap.put(\"page\", \"1\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletContext context = mock(ServletContext.class);\n\t\tfinal HttpSession session = mock(HttpSession.class);\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getServletContext()).thenReturn(context);\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\t// final HttpServletResponse realRequest = ((MolgenisRequest)\n\t\t// molRequest).getResponse();\n\t\t// System.out.println(realRequest.toString());\n\t\tverify(mockOutstream)\n\t\t\t\t.print(\"{\\\"page\\\":1,\\\"total\\\":3067,\\\"records\\\":30670,\\\"rows\\\":[{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Dutch\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"5.300000190734863\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"English\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"9.5\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Papiamento\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"76.69999694824219\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Spanish\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"7.400000095367432\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"3\\\",\\\"City.Name\\\":\\\"Herat\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Herat\\\",\\\"City.Population\\\":\\\"186800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"4\\\",\\\"City.Name\\\":\\\"Mazar-e-Sharif\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Balkh\\\",\\\"City.Population\\\":\\\"127800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"}]}\");\n\t}", "void render(IViewModel model);", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tSystem.out.println(\"View1Model execute(HttpServletRequest request, HttpServletResponse response) 호출\");\n\t}", "private void renderResources(HttpServletRequest request, HttpServletResponse response, MergeableResources codeResources, Writer out) {\n List<CMAbstractCode> codes = codeResources.getMergeableResources();\n\n //set correct contentType\n response.setContentType(contentType);\n\n for (CMAbstractCode code : codes) {\n renderResource(request, response, code, out);\n }\n\n }", "@Override\n\tpublic void buildModel(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Map templateModel)\n\t\t\tthrows HandlerExecutionException {\n\t\tString workflowName=request.getParameter(\"workflowName\");\n\t\tString taskName=request.getParameter(\"taskName\");\n\t\tString featureModelName=request.getParameter(\"featureModelName\");\n\t\tString userKey=request.getParameter(\"userKey\");\n\t\tString userName=request.getParameter(\"userName\");\n\t\tString userID=request.getParameter(\"userID\");\n\n\t\tString placeType=request.getParameter(\"placeType\");\n\t\t\n\t\tString stopAllocatedViewsResult=\"\";\n\t\t\n\t\tfeatureModelName=featureModelName.replace(\"?\", \" \");\n\n\t\t\n\t\tString viewDir=getServlet().getServletContext().getRealPath(\"/\")+ \"extensions/views/\"; \n\t\tString modelDir=getServlet().getInitParameter(\"modelsPath\");\n\t\tString configuredModelPath=modelDir+\"configured_models\";\n\t\n\t\t\n\t\t\tif ((placeType.compareToIgnoreCase(\"stop\")==0)) {\n\t\t\t\tString configuredFileName=Methods.getConfiguredFileName(configuredModelPath, userKey);\n\t\t\t\tSystem.out.println(configuredFileName);\n\t\t\t\tif(configuredFileName.compareToIgnoreCase(\"false\")==0){\n\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\tmessage.put(\"value\", \"The configuration file not found\");\n\t\t\t\t\tmessages.add(message);\n\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\n\t\t\t\t}else{\n\t\t\t\t\tstopAllocatedViewsResult=Methods.checkConfigurationCompletionInStopPlace(featureModelName, viewDir, modelDir, configuredModelPath, taskName, placeType, workflowName, configuredFileName, userName, userID);\n\t\t\t\t\tif(stopAllocatedViewsResult.compareToIgnoreCase(\"true\")==0){\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Configuration status of tasks has been checked\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Problem in checking of configuration status of the tasks\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t \n\n\t\t\t}\t\n\t\t\t\t\n\t\t\t\n\t}", "public void applyModel(ScServletData data, Object model)\n {\n }", "ModelAndView handleResponse(HttpServletRequest request,HttpServletResponse response, String actionName, Map model);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException \r\n {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) \r\n {\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet JoinGroupServlet</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet JoinGroupServlet at \" + request.getContextPath() + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {\r\n\r\n\t\t// Set the MIME type for the render response\r\n\t\tresponse.setContentType(request.getResponseContentType());\r\n\r\n\t\t// Invoke the HTML to render\r\n\t\tPortletRequestDispatcher rd = getPortletContext().getRequestDispatcher(getHtmlFilePath(request, VIEW_HTML));\r\n\t\trd.include(request,response);\r\n\t}", "@RenderMapping\r\n\tpublic String handleRenderRequest(RenderRequest request,RenderResponse response,Model model){\r\n\t\t\r\n\t\tfinal ThemeDisplay themeDisplay = GestionFavoritosUtil.getThemeDisplay(request); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tfinal String structure = request.getPreferences().getValue(\r\n\t\t\t\t\tGestionFavoritosKeys.STRUCTURE_ID, StringUtils.EMPTY);\r\n\t\t\t\r\n\t\t\tfinal List<JournalStructure> listStructures = JournalStructureLocalServiceUtil\r\n\t\t\t\t\t.getStructures(themeDisplay.getScopeGroupId());\r\n\t\t\t\r\n\t\t\tfinal List<JournalTemplate> listTemplates = GestionFavoritosUtil\r\n\t\t\t\t\t.getTemplatesByGroupId(themeDisplay.getScopeGroupId(),\r\n\t\t\t\t\t\t\tstructure);\r\n\t\t\t\r\n\t\t\t// Si hay preferencias\r\n\t\t\tif (request.getPreferences() != null) {\r\n\t\t\t\t\r\n\t\t\t\tPortletPreferences preferences = request.getPreferences();\r\n\t\t\t\t\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.STRUCTURE_ID, structure);\r\n\t\t\t\t\r\n\t\t\t\tfinal String template = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.TEMPLATE_ID, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.TEMPLATE_ID, template);\r\n\t\t\t\t\r\n\t\t\t\tfinal String categories = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.CATEGORIES, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.CATEGORIES, categories);\r\n\t\t\t\t\r\n\t\t\t\tfinal String view = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.SELECTED_VIEW, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.SELECTED_VIEW, view);\r\n\t\t\t}\t\r\n\r\n\t\t\trequest.setAttribute(GestionFavoritosKeys.LIST_STRUCTURES,\r\n\t\t\t\t\tlistStructures);\r\n\t\t\t\r\n\t\t\trequest.setAttribute(GestionFavoritosKeys.LIST_TEMPLATES,\r\n\t\t\t\t\tlistTemplates);\r\n\r\n\t\t\t\r\n\t\t} catch (SystemException e) {\r\n\t\t\tlog.error(e);\r\n\t\t\tSessionErrors.add(request, GestionFavoritosErrorKeys.VIEW_DATA);\r\n\t\t\tSessionMessages.clear(request);\r\n\t\t} \r\n\t\t\r\n\t\t\r\n\t\treturn \"edit\";\r\n\t}", "protected abstract void buildExcelDocument(Map<String, Object> model,\n Workbook workbook, HttpServletRequest request,\n HttpServletResponse response) throws Exception;", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n ArrayList<GroupModel> all=GroupDao.display();\n request.setAttribute(\"group\",all);\n RequestDispatcher rds=request.getRequestDispatcher(\"DisplayGroup.jsp\");\n rds.forward(request, response);\n \n \n\n \n }", "private void processObject( HttpServletResponse oResponse, Object oViewObject ) throws ViewExecutorException\r\n {\n try\r\n {\r\n oResponse.getWriter().print( oViewObject );\r\n }\r\n catch ( IOException e )\r\n {\r\n throw new ViewExecutorException( \"View \" + oViewObject.getClass().getName() + \", generic object view I/O error\", e );\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet JSONCollector</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet JSONCollector at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.setAttribute(\"model\", model);\r\n\t\treq.getRequestDispatcher(\"param.jsp\").forward(req, resp);\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n LOG.debug(\"Received new update request\");\n \n String modelerName = request.getParameter(\"name\");\n String originalModelerName = request.getParameter(\"originalName\");\n String modelId = request.getParameter(\"modelId\");\n String modelType = request.getParameter(\"modeltype\");\n // Currently not being used since we don't update the modelVersion \n // String modelVersion = request.getParameter(\"version\");\n String originalModelVersion = request.getParameter(\"originalModelVersion\");\n String runIdent = request.getParameter(\"runIdent\");\n String originalRunIdent = request.getParameter(\"originalRunIdent\");\n String runDate = request.getParameter(\"creationDate\");\n String originalRunDate = request.getParameter(\"originalCreationDate\");\n String scenario = request.getParameter(\"scenario\");\n String originalScenario = request.getParameter(\"originalScenario\");\n String comments = request.getParameter(\"comments\");\n String originalComments = request.getParameter(\"originalComments\");\n String email = request.getParameter(\"email\");\n String wfsUrl = request.getParameter(\"wfsUrl\");\n String layer = request.getParameter(\"layer\");\n String commonAttr = request.getParameter(\"commonAttr\");\n Boolean updateAsBest = \"on\".equalsIgnoreCase(request.getParameter(\"markAsBest\")) ? Boolean.TRUE : Boolean.FALSE;\n Boolean rerun = Boolean.parseBoolean(request.getParameter(\"rerun\")); // If this is true, we only re-run the R processing \n \n String responseText;\n RunMetadata newRunMetadata;\n \n ModelType modelTypeEnum = null;\n if (\"prms\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.PRMS;\n }\n if (\"afinch\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.AFINCH;\n }\n if (\"waters\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.WATERS;\n }\n if (\"sye\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.SYE;\n }\n \n RunMetadata originalRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n originalModelerName,\n originalModelVersion,\n originalRunIdent,\n originalRunDate,\n originalScenario,\n originalComments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n if (rerun) {\n String sosEndpoint = props.getProperty(\"watersmart.sos.model.repo\") + originalRunMetadata.getTypeString() + \"/\" + originalRunMetadata.getFileName();\n WPSImpl impl = new WPSImpl();\n String implResponse = impl.executeProcess(sosEndpoint, originalRunMetadata);\n Boolean processStarted = implResponse.toLowerCase().equals(\"ok\");\n responseText = \"{success: \"+processStarted.toString()+\", message: '\" + implResponse + \"'}\";\n } else {\n newRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n modelerName,\n originalModelVersion,\n runIdent,\n runDate,\n scenario,\n comments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n CSWTransactionHelper helper = new CSWTransactionHelper(newRunMetadata, null, new HashMap<String, String>());\n try {\n String results = helper.updateRunMetadata(originalRunMetadata);\n // TODO- parse xml, make sure stuff happened alright, if so don't say success\n responseText = \"{success: true, msg: 'The record has been updated'}\";\n } catch (IOException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n } catch (URISyntaxException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n }\n \n }\n \n response.setContentType(\"application/json\");\n response.setCharacterEncoding(\"utf-8\");\n \n try {\n Writer writer = response.getWriter();\n writer.write(responseText);\n writer.close();\n } catch (IOException ex) {\n LOG.warn(\"An error occurred while trying to send response to client. \", ex);\n }\n \n }", "void render( Collection<String> files, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n getServletContext().log(\"Processing a request : \" + request.getServletPath());\n \n try {\n ModelAndView mav = this.handler.handle(request, response, true);\n \n // use a view resolver.\n// response.getWriter().print(controllerResponse);\n // flush here ?\n// response.flushBuffer();\n// 2801752\n } catch (Exception ex) {\n getServletContext().log(\"Exception : \", ex);\n if(!response.isCommitted()) {\n response.sendError(500, ex.getMessage());\n }\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n\r\n List resultsList = new ArrayList();\r\n\r\n // Receive request from adminPage\r\n String c = request.getParameter(\"action\");\r\n String mem_id = request.getParameter(\"mem_id\");\r\n String id = request.getParameter(\"id\");\r\n\r\n AdminModel am = new AdminModel();\r\n\r\n // Send to model & invoke one of three methods\r\n switch (c) {\r\n case \"Check Approvals\":\r\n resultsList = am.getApprovals();\r\n break;\r\n case \"List Member Payments\":\r\n resultsList = am.listPayments(mem_id);\r\n break;\r\n case \"Approve Outstanding Member\":\r\n am.approvalResult(mem_id);\r\n break;\r\n case \"List Claims\":\r\n resultsList = am.listClaims(id);\r\n break;\r\n case \"Approve Claim\":\r\n am.approveClaim(id);\r\n break;\r\n case \"Reject Claim\":\r\n am.rejectClaim(id);\r\n break;\r\n case \"End of Year Charge\":\r\n am.endOfYearCharge();\r\n break;\r\n }\r\n\r\n // Send back to view (adminPage.jsp)\r\n request.setAttribute(\"output\", resultsList);\r\n RequestDispatcher view = request.getRequestDispatcher(\"/docs/adminPage\");\r\n view.forward(request, response);\r\n }", "@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n viewModule(request, response);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "protected void proccess(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\n\t\t// set response type to text/html\n\t\tresponse.setContentType(\"text/html\");\n\n\t\t// Get PrintWriter to write back to client\n\t\tPrintWriter out = response.getWriter();\n\n\t\t// Get contextPath for any external files such as css, js path\n\t\tString contextPath = getContextPath();\n\n\t\tSTGroup templates = this.getSTGroup();\n\t\tST page = templates.getInstanceOf(\"home\");\n\t\t\n\t\tList<City> cities = service.getAllCitySort();\n\t\t\n\t\tpage.add(\"contextPath\", contextPath);\n\t\tpage.add(\"cities\", cities);\n\n\t\tout.print(page.render());\n\t\tout.flush();\n\t}", "@RequestMapping(\"/equipmentsCalibrationRpt\")\r\n\tpublic String equipmentsCalibrationRpt(Map<String, Object> model) {\n\r\n\t\treturn \"equipmentsCalibrationRpt\";\r\n\t}", "void render(Object rendererTool);", "protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }", "private void doAfterRenderResponse(final PhaseEvent arg0) {\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n boolean wasXmlRequested = isRequestedFormatXml(request);\n if( ! wasXmlRequested ){\n super.doGet(request,response);\n }else{\n try {\n VitroRequest vreq = new VitroRequest(request);\n Configuration config = getConfig(vreq); \n ResponseValues rvalues = processRequest(vreq);\n \n response.setCharacterEncoding(\"UTF-8\");\n response.setContentType(\"text/xml;charset=UTF-8\");\n writeTemplate(rvalues.getTemplateName(), rvalues.getMap(), config, request, response);\n } catch (Exception e) {\n log.error(e, e);\n }\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 double technontech=Double.parseDouble(request.getParameter(\"technontech\"));\n double nontechexp=Double.parseDouble(request.getParameter(\"nontechexp\"));\n double techexp=Double.parseDouble(request.getParameter(\"techexp\"));\n double[][] arr=new double[3][3];\n arr[0][0]=arr[1][1]=arr[2][2]=1;\n arr[0][1]=technontech;\n arr[1][0]=(1/technontech);\n arr[0][2]=techexp;\n arr[2][0]=(1/techexp);\n arr[1][2]=nontechexp;\n arr[2][1]=(1/nontechexp);\n \n double[][] w=new double[3][1];\n String nextPath=\"\";\n \n boolean res=CoreProcess.AHP(arr, w);\n if(res==true)\n {\n nextPath=\"/resumeProcess.html\";\n RequestDispatcher view = request.getRequestDispatcher(nextPath);\n view.forward(request, response); \n }\n else\n {\n out.println(\"<html> <head> <link type=\\\"text/css\\\" href=\\\"./css/materialize.css\\\" rel=\\\"stylesheet\\\">\\n\" \n +\"<link type=\\\"text/css\\\" href=\\\"./css/materialize.min.css\\\" rel=\\\"stylesheet\\\">\\n\"\n +\"<meta charset=\\\"UTF-8\\\">\\n\" \n +\"<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"> \");\n out.println(\"<title> Error Page </title> </head> \");\n out.println(\"<body class=\\\"background light-blue lighten-5\\\">\");\n out.println(\"<h3 class=\\\"brown-text center\\\"> THIS IS AN ERROR PAGE. </h3>\");\n out.println(\"<div class=\\\"row\\\">\\n\" +\n\" <div class=\\\"col s12\\\">\\n\" +\n\" <div class=\\\"card hoverable center deep-purple lighten-5\\\">\\n\" +\n\" <div class=\\\"card-content purple-text\\\">\\n\" +\n\" <span class=\\\"card-title pink-text\\\"> <b> Inconsistencies in the AHP matrix. </b> </span>\" + \n\" <h5> \\n\" +\n\" You are seeing this page because you have entered an inconsistent matrix for the AHP input. \\n\" +\n\" This is usually caused by transitive inconsistencies in the given input. \\n\" +\n\" </h5>\\n\" +\n\" <h5>\\n\" +\n\" For instance, if you had entered technical as more important than non-technical criteria and non-technical criteria as more important than experience, then it is required that technical be more important than experience \\n\" +\n\" Such consistencies are automatically checked by our process so that your job specification makes logical sense. \\n\" +\n\" Now, please click the below button to go back to the AHP page and re-enter your input. Thank you. \\n\" +\n\" </h5>\\n\"+\n\" </div>\" +\n\" </div>\");\n out.println(\"<div class=\\\"row container\\\">\\n\" +\n\" <form action=\\\"AHPPage.html\\\" method=\\\"post\\\" class=\\\"col s12\\\">\"+\n\" <button class=\\\"btn waves-effect waves-light right green accent-4\\\" type=\\\"submit\\\" name=\\\"action\\\"> Go back \\n\" +\n\" <i class=\\\"material-icons right\\\"></i>\\n\" +\n\" </button>\"+\n\" </form> </div> </body> </html>\");\n \n }\n \n }\n }", "void sendMap(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Map<String, Object> contetMap)\r\n\t\t\tthrows IOException;", "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 /* TODO output your page here. You may use following sample code. */\n Object[] profile = data(111);\n for(int i=0; i<4; i++){\n out.print(profile[i]);\n }\n \n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(ResultsDisplay2.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void doTag()\n throws IOException, JspException, JspTagException {\n\n JspWriter out = context.getOut();\n\n if (!RDCUtils.isStringEmpty(namelist)) {\n // (1) Access/create the views map \n Map viewsMap = (Map) context.getSession().\n getAttribute(ATTR_VIEWS_MAP);\n if (viewsMap == null) {\n viewsMap = new HashMap();\n context.getSession().setAttribute(ATTR_VIEWS_MAP, viewsMap);\n }\n \n // (2) Populate form data \n Map formData = new HashMap();\n StringTokenizer nameToks = new StringTokenizer(namelist, \" \");\n while (nameToks.hasMoreTokens()) {\n String name = nameToks.nextToken();\n formData.put(name, context.getAttribute(name));\n }\n \n // (3) Store the form data according to the RDC-struts \n // interface contract\n String key = \"\" + context.hashCode();\n viewsMap.put(key, formData);\n context.getRequest().setAttribute(ATTR_VIEWS_MAP_KEY, key);\n }\n\n if (!RDCUtils.isStringEmpty(clearlist)) { \n // (4) Clear session state based on the clearlist\n if (dialogMap == null) {\n throw new IllegalArgumentException(ERR_NO_DIALOGMAP);\n }\n StringTokenizer clearToks = new StringTokenizer(clearlist, \" \");\n outer:\n while (clearToks.hasMoreTokens()) {\n String clearMe = clearToks.nextToken();\n String errMe = clearMe;\n boolean cleared = false;\n int dot = clearMe.indexOf('.');\n if (dot == -1) {\n if(dialogMap.containsKey(errMe)) {\n dialogMap.remove(errMe);\n cleared = true;\n }\n } else {\n // TODO - Nested data model re-initialization\n BaseModel target = null;\n String childId = null;\n while (dot != -1) {\n try {\n childId = clearMe.substring(0,dot);\n if (target == null) {\n target = (BaseModel) dialogMap.get(childId);\n } else {\n if ((target = RDCUtils.getChildDataModel(target,\n childId)) == null) {\n break;\n }\n }\n clearMe = clearMe.substring(dot+1);\n dot = clearMe.indexOf('.');\n } catch (Exception e) {\n MessageFormat msgFormat =\n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n continue outer;\n }\n }\n if (target != null) {\n cleared = RDCUtils.clearChildDataModel(target,\n clearMe);\n }\n }\n if (!cleared) {\n MessageFormat msgFormat = \n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n }\n }\n }\n\n // (5) Forward request\n try {\n context.forward(submit);\n } catch (ServletException e) {\n // Need to investigate whether refactoring this\n // try to provide blanket coverage makes sense\n MessageFormat msgFormat = new MessageFormat(ERR_FORWARD_FAILED);\n // Log error and send error message to JspWriter \n out.write(msgFormat.format(new Object[] {submit, namelist}));\n log.error(msgFormat.format(new Object[] {submit, namelist}));\n } // end of try-catch\n }", "protected void processView(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"here\");\n\t\tArrayList<String> errorList = new ArrayList<String>();\n\n\t\tString[] zone_name_array;\n\t\tString[] zone_type_array;\n\t\tString[] zone_heating_cooling_array;\n\t\tString[] zone_min_temp_array;\n\t\tString[] zone_max_temp_array;\n\t\tString[] zone_operation_array;\n\t\tString[] building_array;\n\n\t\tif (request.getAttribute(\"hasPastData\") == null) {\n\t\t\tbuilding_array = request.getParameterValues(\"building_name[]\");\n\t\t\tboolean bNameDup = checkDuplicate(building_array);\n\t\t\tif (bNameDup) {\n\t\t\t\terrorList.add(\"Building Names must be unique\");\n\t\t\t}\n\t\n\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\tint num = i + 1;\n\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\tboolean zNameDup = checkDuplicate(zone_name_array);\n\t\t\t\tif (zNameDup) {\n\t\t\t\t\terrorList.add(\"Zone Names with each Building must be unique\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\tint num = i + 1;\n\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\tzone_min_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_min_temp[]\");\n\t\t\t\tzone_max_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_max_temp[]\");\n\t\n\t\t\t\tfor (int j = 0; j < zone_min_temp_array.length; j++) {\n\t\t\t\t\tint minTemp = Integer.parseInt(zone_min_temp_array[j]);\n\t\t\t\t\tint maxTemp = Integer.parseInt(zone_max_temp_array[j]);\n\t\t\t\t\tif (minTemp > maxTemp) {\n\t\t\t\t\t\terrorList.add(building_array[i] + \"_\" + zone_name_array[j]\n\t\t\t\t\t\t\t\t+ \": Min Temp must be smaller than Max Temp\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tHttpSession session = request.getSession();\n\t\tPrintWriter out = response.getWriter();\n\n\t\tif (errorList.size() != 0) {\n\t\t\tString errors = \"\";\n\t\t\tfor (String s : errorList) {\n\t\t\t\terrors = errors + s + \";\";\n\t\t\t}\n\n\t\t\tout.println(errors);\n\n\t\t} else {\n\t\t\tString company = (String) session.getAttribute(\"company\");\n\t\t\tint month = PeriodManager.getMonthInt(company);\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.set(Calendar.MONTH, month);\n\t\t\tcal.set(Calendar.DATE, 1);\n\t\t\tCalendar today = Calendar.getInstance();\n\t\t\tint previousYear = Calendar.getInstance().get(Calendar.YEAR) - 1;\n\t\t\tif (today.before(cal)) {\n\t\t\t\tpreviousYear -= 1;\n\t\t\t}\n\n\t\t\tString quest_id = \"\";\n\t\t\ttry {\n\t\t\t\tquest_id = (SQLManager.getRowCount(\"questionnaire\") + 1) + \"\";\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}\n\n\t\t\t// store in QUESTIONNAIRE table\n\t\t\tString values_quest = \"\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + quest_id + \"\\',\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + request.getParameter(\"site_id\") + \"\\',\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + previousYear + \"\\',\";\n\t\t\t\n\t\t\t//check if there is past data for this site\n\t\t\tString where = \"site_id = \\'\" + request.getParameter(\"site_id\") + \"\\' and year = \\'\" + (previousYear-1) + \"\\'\";\n\t\t\tRetrievedObject ro = SQLManager.retrieveRecords(\"questionnaire\", where);\n\t\t\tResultSet rs = ro.getResultSet();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t//if yes\n\t\t\t\tString past_quest_id = \"\";\n\t\t\t\tif (rs.isBeforeFirst() ) { \n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tpast_quest_id = rs.getString(\"questionnaire_id\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//copy values from past data\n\t\t\t\t\t\tfor (int i = 4; i <= 13; i++) {\n\t\t\t\t\t\t\tString value = rs.getString(i);\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + value + \"\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 14; i <= 26; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + rs.getString(27) + \"\\',\";\n\t\t\t\t\t\tfor (int i = 28; i <= 32; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 33; i <= 48; i++) {\n\t\t\t\t\t\t\tString value = rs.getString(i);\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + value + \"\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 49; i <= 80; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + 0 + \"\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(values_quest);\n\t\t\t\t\t}\n\t\t\t\t\trs.close();\n\t\t\t\t\t//insert into questionnaire db\n\t\t\t\t\tSQLManager.insertRecord(\"questionnaire\", values_quest);\n\t\t\t\t\tsession.setAttribute(\"quest_id\", quest_id);\n\t\t\t\t\t\n\t\t\t\t\t//get the past data site definition\n\t\t\t\t\twhere = \"questionnaire_id = \\'\" + past_quest_id + \"\\'\";\n\t\t\t\t\tRetrievedObject ro_site_def = SQLManager.retrieveRecords(\"site_definition\", where);\n\t\t\t\t\tResultSet rs_site_def = ro_site_def.getResultSet();\n\t\t\t\t\tString past_site_def = \"\";\n\t\t\t\t\tString past_site_act = \"\";\n\t\t\t\t\tString past_building_name = \"\";\n\t\t\t\t\twhile (rs_site_def.next()) {\n\t\t\t\t\t\tpast_site_def = rs_site_def.getString(2);\n\t\t\t\t\t\tpast_site_act = rs_site_def.getString(3);\n\t\t\t\t\t\tpast_building_name = rs_site_def.getString(4);\n\t\t\t\t\t}\n\t\t\t\t\trs_site_def.close();\n\t\t\t\t\t\n\t\t\t\t\t//replace past data quest id with new quest id\n\t\t\t\t\tString new_site_def = past_site_def.replace(past_quest_id, quest_id);\n\t\t\t\t\t\n\t\t\t\t\t//insert into site definition db\n\t\t\t\t\tString values_site_def = \"\\'\" + quest_id + \"\\',\\'\" + new_site_def + \"\\',\\'\" + past_site_act + \"\\',\\'\" + past_building_name + \"\\'\";\n\t\t\t\t\tSQLManager.insertRecord(\"site_definition\", values_site_def);\n\t\t\t\t\t\n\t\t\t\t\t//insert into the different zone activity db\n\t\t\t\t\t//use delimiter ^ to split by building\n\t\t\t\t\tString[] site_def_info_array = past_site_def.split(\"\\\\^\");\n\t\t\t\t\tString[] site_act_array = past_site_act.split(\"\\\\^\");\n\t\t\t\t\tfor (int i = 0; i < site_def_info_array.length; i++) {\n\t\t\t\t\t\tString def = site_def_info_array[i];\n\t\t\t\t\t\tString act = site_act_array[i];\n\t\t\t\t\t\t//use delimiter * to split each building into zones\n\t\t\t\t\t\tString[] def_array = def.split(\"\\\\*\");\n\t\t\t\t\t\tString[] act_array = act.split(\"\\\\*\");\n\t\t\t\t\t\tfor (int j = 0; j < def_array.length; j++) {\n\t\t\t\t\t\t\tString d = def_array[j];\n\t\t\t\t\t\t\tString a = act_array[j];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint count = 0;\n\t\t\t\t\t\t\tString tableName = \"\";\n\t\t\t\t\t\t\tif (a.equals(\"wh_mezzanine\")) {\n\t\t\t\t\t\t\t\ttableName = \"mezzanine_form\";\n\t\t\t\t\t\t\t\tcount = 18;\n\t\t\t\t\t\t\t} else if (a.equals(\"wh_ground_to_roof\")) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"gtr\");\n\t\t\t\t\t\t\t\ttableName = \"ground_to_roof_form\";\n\t\t\t\t\t\t\t\tcount = 28;\n\t\t\t\t\t\t\t} else if (a.equals(\"wh_value_add\")) {\n\t\t\t\t\t\t\t\ttableName = \"warehouse_value_add_form\";\n\t\t\t\t\t\t\t\tcount = 20;\n\t\t\t\t\t\t\t} else if (a.equals(\"offices\")) {\n\t\t\t\t\t\t\t\ttableName = \"office_form\";\n\t\t\t\t\t\t\t\tcount = 21;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//retrieve zone record from the respective table\n\t\t\t\t\t\t\twhere = \"zone_id = \\'\" + d + \"\\'\";\n\t\t\t\t\t\t\tRetrievedObject ro_zone = SQLManager.retrieveRecords(tableName, where);\n\t\t\t\t\t\t\tResultSet rs_zone = ro_zone.getResultSet();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString new_zone_id = quest_id + \"-\" + d.split(\"-\")[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString values = \"\\'\" + quest_id + \"\\',\\'\" + new_zone_id + \"\\',\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (rs_zone.next()) {\n\t\t\t\t\t\t\t\tfor (int k = 3; k <= 11; k++) {\n\t\t\t\t\t\t\t\t\tvalues = values + \"\\'\" + rs_zone.getString(k) + \"\\',\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trs_zone.close();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove the last comma\n\t\t\t\t\t\t\tvalues = values.substring(0, values.length()-1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int m = 0; m < count; m++) {\n\t\t\t\t\t\t\t\tvalues = values + \",\\'\\'\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\">>>> values: \" + values); \n\t\t\t\t\t\t\tSQLManager.insertRecord(tableName, values);\n\t\t\t\t\t\t\tSystem.out.println(\"done!!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trequest.setAttribute(\"fromPastData\", \"true\");\n\t\t\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"Questionnaire.jsp\");\n\t\t\t\t\trd.forward(request, response);\n\t\t\t\t\t\n\t\t\t\t//if no\n\t\t\t\t} else {\n\t\t\t\t\tfor (int i = 0; i < 77; i++) {\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t}\n\t\t\t\t\tvalues_quest = values_quest + \"0\";\n\t\t\t\t\tvalues_quest = values_quest + \",\\'\\',\\'\\'\";\n\t\t\t\t\t\n\t\t\t\t\t//insert into db\n\t\t\t\t\tSQLManager.insertRecord(\"questionnaire\", values_quest);\n\t\t\t\t\tsession.setAttribute(\"quest_id\", quest_id);\n\t\t\t\t\t\n\t\t\t\t\t// site_def_details and site_def_activity to store in\n\t\t\t\t\t// SITE_DEFINITION table\n\t\t\t\t\tString site_def_details = \"\";\n\t\t\t\t\tString site_def_activity = \"\";\n\t\t\t\t\tString site_def_building_name = \"\";\n\t\t\n\t\t\t\t\tbuilding_array = request.getParameterValues(\"building_name[]\");\n\t\t\n\t\t\t\t\tString zone_details = \"\";\n\t\t\t\t\tArrayList<String> zone_list = new ArrayList<String>();\n\t\t\t\t\tString tableName = \"\";\n\t\t\t\t\tString values = \"\";\n\t\t\n\t\t\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\t\t\tint num = i + 1;\n\t\t\t\t\t\tzone_type_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_activity[]\");\n\t\t\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\t\t\tzone_heating_cooling_array = request.getParameterValues(\"b\"\n\t\t\t\t\t\t\t\t+ num + \"_zone_heating_cooling[]\");\n\t\t\t\t\t\tzone_min_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_min_temp[]\");\n\t\t\t\t\t\tzone_max_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_max_temp[]\");\n\t\t\t\t\t\tzone_operation_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_operation[]\");\n\t\t\n\t\t\t\t\t\tsite_def_building_name = site_def_building_name\n\t\t\t\t\t\t\t\t+ building_array[i] + \"*\";\n\t\t\n\t\t\t\t\t\tfor (int j = 0; j < zone_type_array.length; j++) {\n\t\t\t\t\t\t\tString zone_type = zone_type_array[j];\n\t\t\t\t\t\t\t// add to zone_list\n\t\t\t\t\t\t\tString zone_element = building_array[i] + \",\"\n\t\t\t\t\t\t\t\t\t+ zone_name_array[j] + \",\" + zone_type_array[j];\n\t\t\t\t\t\t\tzone_list.add(zone_element);\n\t\t\n\t\t\t\t\t\t\t// add to zone_details string\n\t\t\t\t\t\t\tzone_details = zone_details + zone_element + \"//\";\n\t\t\n\t\t\t\t\t\t\t// add to site_info_details string to store in\n\t\t\t\t\t\t\t// SITE_DEFINITION DB\n\t\t\t\t\t\t\tsite_def_details = site_def_details + quest_id + \"-\"\n\t\t\t\t\t\t\t\t\t+ building_array[i] + \"_\" + zone_name_array[j]\n\t\t\t\t\t\t\t\t\t+ \"*\";\n\t\t\t\t\t\t\tsite_def_activity = site_def_activity + zone_type + \"*\";\n\t\t\n\t\t\t\t\t\t\t// add to DB\n\t\t\t\t\t\t\tvalues = \"\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + quest_id + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + quest_id + \"-\" + building_array[i]\n\t\t\t\t\t\t\t\t\t+ \"_\" + zone_name_array[j] + \"\\',\";\n\t\t\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + (i + 1) + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + (j + 1) + \"\\',\";\n\t\t\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + building_array[i] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_name_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_type_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_heating_cooling_array[j]\n\t\t\t\t\t\t\t\t\t+ \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_min_temp_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_max_temp_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_operation_array[j] + \"\\'\";\n\t\t\n\t\t\t\t\t\t\tif (zone_type.equals(\"wh_mezzanine\")) {\n\t\t\t\t\t\t\t\ttableName = \"mezzanine_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"wh_ground_to_roof\")) {\n\t\t\t\t\t\t\t\ttableName = \"ground_to_roof_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"wh_value_add\")) {\n\t\t\t\t\t\t\t\ttableName = \"warehouse_value_add_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"offices\")) {\n\t\t\t\t\t\t\t\ttableName = \"office_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t\tSQLManager.insertRecord(tableName, values);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// delimit site_def_details and site_def_activity by ^ (to\n\t\t\t\t\t\t// separate by buildings)\n\t\t\t\t\t\tsite_def_details = site_def_details.substring(0,\n\t\t\t\t\t\t\t\tsite_def_details.length() - 1) + \"^\";\n\t\t\t\t\t\tsite_def_activity = site_def_activity.substring(0,\n\t\t\t\t\t\t\t\tsite_def_activity.length() - 1) + \"^\";\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\t// store site_def_details and site_def_activity in SITE_DEFINITION\n\t\t\t\t\t// table\n\t\t\t\t\tsite_def_details = site_def_details.substring(0,\n\t\t\t\t\t\t\tsite_def_details.length() - 1);\n\t\t\t\t\tsite_def_activity = site_def_activity.substring(0,\n\t\t\t\t\t\t\tsite_def_activity.length() - 1);\n\t\t\t\t\tsite_def_building_name = site_def_building_name.substring(0,\n\t\t\t\t\t\t\tsite_def_building_name.length() - 1);\n\t\t\t\t\tString site_def_values = \"\\'\" + quest_id + \"\\',\\'\"\n\t\t\t\t\t\t\t+ site_def_details + \"\\',\\'\" + site_def_activity + \"\\',\\'\"\n\t\t\t\t\t\t\t+ site_def_building_name + \"\\'\";\n\t\t\t\t\tSQLManager.insertRecord(\"site_definition\", site_def_values);\n\t\t\n\t\t\t\t\tsession.setAttribute(\"zone_details\", zone_details);\n\t\t\n\t\t\t\t\tString zone_string = \"\";\n\t\t\t\t\tfor (String z : zone_list) {\n\t\t\t\t\t\tzone_string = zone_string + z + \"//\";\n\t\t\t\t\t}\n\t\t\t\t\tzone_string = zone_string.substring(0, zone_string.length() - 2);\n\t\t\n\t\t\t\t\tsession.setAttribute(\"zone_string\", zone_string);\n\t\t\t\t\tout.println(\"yes\");\n\t\t\t\t}\t\n\t\n\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\n\t}", "void render(Map<String,List<Map<String,String>>> data);", "@Override\n protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \tString num1Str = request.getParameter(\"num1\");\n \tString num2Str = request.getParameter(\"num2\");\n \tString sum = request.getParameter(\"sum\");\n \tString sub = request.getParameter(\"sub\");\n \tString multi = request.getParameter(\"multi\");\n \tString divide = request.getParameter(\"divide\");\n \tString mud = request.getParameter(\"mud\");\n \tString pow = request.getParameter(\"pow\");\n \tdouble result;\n \ttry {\n\t\t\tdouble num1 = Double.parseDouble(num1Str);\n\t\t\tdouble num2 = Double.parseDouble(num2Str);\n\t\t\tCalcModel cal = new CalcModel(num1,num2);\n\t\t\t if(sum != null) result = cal.sum();\n\t\t\t else if (sub != null) result = cal.sub();\n\t\t\t else if (multi != null) result = cal.multi();\n\t\t\t else if (divide != null) result = cal.divide();\n\t\t\t else if (mud != null) result = cal.remainder(); \n\t\t\t else result = cal.power();\n\t\t\t \n\t\t\t\n\t\t\t\n\t\t\t// this is to result output using attribute\n\t\t\tRequestDispatcher desp = request.getRequestDispatcher(\"CalcAssignment/Calc.jsp\");\n\t\t\trequest.setAttribute(\"resultAttr\", result);\n\t\t\tdesp.forward(request, response);\n\t\t} catch (NumberFormatException e) {\n\t\t\tRequestDispatcher desp1 = request.getRequestDispatcher(\"CalcAssignment/erro.jsp\");\n\t\t\trequest.setAttribute(\"msgAttr\", e.getMessage());\n\t\t\tdesp1.forward(request, response);\n\t\t\t\n\t\t}\n \t\n \t\n \t\n \t\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n String contextPath = request.getContextPath();\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet DIVIDE</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet DivideServlet at \" + contextPath + \"</h1>\");\n \n org.netbeans.test.freeformlib.Multiplier d = new org.netbeans.test.freeformlib.Multiplier();\n try {\n String attributeX = request.getParameter(\"x\");\n if (attributeX == null) {\n attributeX = \"\";\n }\n d.setX(Double.parseDouble(attributeX));\n } catch(NumberFormatException e) {\n }\n try {\n String attributeY = request.getParameter(\"y\");\n if (attributeY == null) {\n attributeY = \"\";\n }\n d.setY(Double.parseDouble(attributeY));\n } catch(NumberFormatException e) {\n }\n \n if (d.getY() == 0) {\n out.println(\"<b>y</b> can't be 0!\");\n } else {\n out.println(\"\" + d.getX() + \" / \" + d.getY() + \" = \" + d.getMultiplication());\n }\n \n out.println(\"<br/>\");\n out.println(\"<a href=\\\"index.jsp\\\">Go back to index.jsp</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n \n out.close();\n }", "@Override\n\tpublic void doView(RenderRequest renderRequest,\n\t\t\tRenderResponse renderResponse) throws IOException, PortletException {\n\t\tsuper.doView(renderRequest, renderResponse);\n\t}", "protected void doDispatch (RenderRequest request,\n\t\t\t RenderResponse response) throws PortletException,java.io.IOException\n {\n WindowState state = request.getWindowState();\n \n if ( ! state.equals(WindowState.MINIMIZED)) {\n PortletMode mode = request.getPortletMode();\n if (mode.equals(PortletMode.VIEW)) {\n\tdoView (request, response);\n }\n else if (mode.equals(PortletMode.EDIT)) {\n\tdoEdit (request, response);\n }\n else if (mode.equals(PortletMode.HELP)) {\n\tdoHelp (request, response);\n }\n else {\n\tthrow new PortletException(\"unknown portlet mode: \" + mode);\n }\n }\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet processOutPass</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet processOutPass at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n Categories recResp = new Categories();\n int getCount = 0;\n // recResp.recipeCategories.getRecipeCategory().get(0).categoryName;\n ArrayOfRecipeClassification tests = new ArrayOfRecipeClassification();\n GetRecipeCategoriesResponse ff = new GetRecipeCategoriesResponse();\n // rc = tests.recipeClassification;\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\" <style>\\n\" +\n \"#header {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#nav {\\n\" +\n \" line-height:30px;\\n\" +\n \" background-color:#eeeeee;\\n\" +\n \" \\n\" +\n \" width:100px;\\n\" +\n \" float:left;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#row {\\n\" +\n \" display:inline-block;\\n\" +\n \"}\\n\" +\n \"#sectionl {\\n\" +\n \" width:350px;\\n\" +\n \" float:left;\\n\" +\n \" padding:30px;\\n\" +\n \"}\\n\" +\n \"#sectionC {\\n\" +\n \" width:500px;\\n\" +\n \" float:center;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"#sectionr {\\n\" +\n \" width:250px;\\n\" +\n \" float:right;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"\\n\" +\n \"#footer {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" clear:both;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"</style> \");\n out.println(\"<head>\" );\n out.println(\"<LINK href=\\\"C:/Users/hanemay/Documents/NetBeansProjects/CookingApp/web/style.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\">\");\n out.println(\"<div id=\\\"header\\\">\\n\" +\n \"<h1>Kraft Recipes</h1>\\n\" +\n \"</div>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n Enumeration<String> infomaterials= request.getParameterNames();\n while(infomaterials.hasMoreElements()) {\n System.out.println(infomaterials.nextElement()); \n } \n int amount = 100;\n String[] test = recResp.returnCats();\n try{\n amount = Integer.parseInt(request.getParameter(\"Question3\"));\n }catch(Exception e){\n \n }\n Recipes reccResp = new Recipes(amount); \n try{\n if(request.getParameter(\"isHealthy\").equalsIgnoreCase(\"healthy\"))\n reccResp.setHealthy(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"isFastFood\").equalsIgnoreCase(\"Fast food\"))\n reccResp.setUnder30Minutes(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"reqPic\").equalsIgnoreCase(\"Pictures required\"))\n reccResp.setbIsRecipePhotoRequired(true);\n }catch(Exception e){}\n reccResp.setbIsRecipePhotoRequired(true);\n while(recResp.amountOfCategories != getCount){\n reccResp.setbIsRecipePhotoRequired(true);\n reccResp.Search(recResp,recResp.recResp.getRecipeCategories().getRecipeCategory().get(getCount).categoryID);\n RecipeSummariesResponse recSumResp = reccResp.results();\n for(int recNames = 0; recNames < reccResp.getMaxAmountItems(); recNames++) {\n String url = recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).photoURL;\n if(recNames == 0){\n out.println(\"<div id=\\\"sectionC\\\">\\n\" +\n \"<h2>\"+test[getCount]+\"</h2>\\n\" +\n \"</div>\");}\n // if(recNames % 2==0){\n out.println(\"<div \\\"row\\\">\\n\" +\n \"<div id=\\\"sectionl\\\">\\n\" +\n \"<h3>\"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).recipeName+\"</h3>\\n\" + \n \"<img src=\\\"\"+url+\"\\\" style=\\\"height:254px;width:254px\\\">\\n\" +\n \"<p>\\n\" +\n \"<p>Number of ingrediens needed for this recipe : \"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()+\"</p>\\n\" +\n \"\");\n RecipeDetailResponse rec = reccResp.soapService.getRecipeByRecipeID(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getRecipeID(), true, 1, 1);\n for(int ingredientCounter = 0; ingredientCounter < Integer.parseInt(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()); ingredientCounter++ ){\n out.println(\"<p>\" + rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).ingredientName + \" amount : \"+ rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).quantityNum+\" \"+\n \"</p>\");\n }\n out.println(\"</p>\");\n out.println(\"</div>\\n\" );\n } \n getCount ++;\n }\n out.println(\"</body>\"); \n out.println(\"</html>\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/json;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n\n XTreeDictionary data = new XTreeDictionary();\n MapConverter map = new MapConverter(data);\n Gson gson = new Gson();\n String bid = request.getParameter(\"bid\");\n if (bid == null ? true : bid.isEmpty()) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n XArrayList booking_list = AbstractEntity.readDataFormCsv(new Booking());\n booking_list = booking_list.binarySearchAndSort(\"booking_id\", bid, Booking.class);\n if (booking_list == null ? true : booking_list.isEmpty()) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n Booking b = (Booking) booking_list.get(0);\n if (b == null ? true : b.isNotNull() || b.getDriver_id() == null) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n if (b.getBookingStatus().equals(BookingStatus.WATING_ACCEPTED)) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n\n XArrayList driver_list = AbstractEntity.readDataFormCsv(new Driver());\n driver_list = driver_list.binarySearchAndSort(\"user_id\", b.getDriver_id(), Driver.class);\n if (driver_list == null ? true : driver_list.isEmpty() || driver_list.get(0) == null) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n\n // Have update\n Driver d = (Driver) driver_list.get(0);\n // ouser phone, ouser name, ouser profile picture, booking status name\n // ouser_phone, ouser_name, ouser_profile, booking_status\n data.add(\"status\", \"OK\");\n data.add(\"ouser_phone\", d.getPhoneNumber() == null ? \"\" : d.getPhoneNumber());\n data.add(\"ouser_name\", d.getName());\n data.add(\"booking_status\", b.getBookingStatus());\n data.add(\"ouser_profile\", Functions.getProfilePic_byid(d.getId()));\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n }\n\n }", "@Test\n public void testRender(){\n Mockito.doNothing().when(renderer).renderWorld(level);\n Mockito.doNothing().when(renderer).renderScore();\n Mockito.doNothing().when(renderer).renderLives();\n renderer.render();\n verify(renderer).renderWorld(level);\n verify(renderer).renderScore();\n verify(renderer).renderLives();\n verify(batch).begin();\n verify(batch).end();\n }", "private static String unguardedRenderResponseContent(EvaluableRequest evaluableRequest, Map<String, Object> requestContext, TemplateEngine engine, String responseContent) {\n engine.getContext().setVariable(\"request\", evaluableRequest);\n if (requestContext != null) {\n engine.getContext().setVariables(requestContext);\n }\n try {\n return engine.getValue(responseContent);\n } catch (Throwable t) {\n log.error(\"Failing at evaluating template \" + responseContent, t);\n }\n return responseContent;\n }", "@Test\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void testGridOutput() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"LOAD_CONFIG\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\tfinal String out = \"{\\\"id\\\":\\\"test\\\",\\\"url\\\":\\\"molgenis.do?__target\\\\u003dtest\\\\u0026__action\\\\u003ddownload_json\\\",\\\"datatype\\\":\\\"json\\\",\\\"pager\\\":\\\"#testPager\\\",\\\"colNames\\\":[\\\"Country.Code\\\",\\\"Country.Name\\\",\\\"Country.Continent\\\",\\\"Country.Region\\\",\\\"Country.SurfaceArea\\\",\\\"Country.IndepYear\\\",\\\"Country.Population\\\",\\\"Country.LifeExpectancy\\\",\\\"Country.GNP\\\",\\\"Country.GNPOld\\\",\\\"Country.LocalName\\\",\\\"Country.GovernmentForm\\\",\\\"Country.HeadOfState\\\",\\\"Country.Capital\\\",\\\"Country.Code2\\\",\\\"City.ID\\\",\\\"City.Name\\\",\\\"City.CountryCode\\\",\\\"City.District\\\",\\\"City.Population\\\",\\\"CountryLanguage.CountryCode\\\",\\\"CountryLanguage.Language\\\",\\\"CountryLanguage.IsOfficial\\\",\\\"CountryLanguage.Percentage\\\"],\\\"colModel\\\":[{\\\"name\\\":\\\"Country.Code\\\",\\\"index\\\":\\\"Country.Code\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Code\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Code\\\"},{\\\"name\\\":\\\"Country.Name\\\",\\\"index\\\":\\\"Country.Name\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Name\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Name\\\"},{\\\"name\\\":\\\"Country.Continent\\\",\\\"index\\\":\\\"Country.Continent\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Continent\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Continent\\\"},{\\\"name\\\":\\\"Country.Region\\\",\\\"index\\\":\\\"Country.Region\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Region\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Region\\\"},{\\\"name\\\":\\\"Country.SurfaceArea\\\",\\\"index\\\":\\\"Country.SurfaceArea\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.SurfaceArea\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.SurfaceArea\\\"},{\\\"name\\\":\\\"Country.IndepYear\\\",\\\"index\\\":\\\"Country.IndepYear\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.IndepYear\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.IndepYear\\\"},{\\\"name\\\":\\\"Country.Population\\\",\\\"index\\\":\\\"Country.Population\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Population\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Population\\\"},{\\\"name\\\":\\\"Country.LifeExpectancy\\\",\\\"index\\\":\\\"Country.LifeExpectancy\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.LifeExpectancy\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.LifeExpectancy\\\"},{\\\"name\\\":\\\"Country.GNP\\\",\\\"index\\\":\\\"Country.GNP\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GNP\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GNP\\\"},{\\\"name\\\":\\\"Country.GNPOld\\\",\\\"index\\\":\\\"Country.GNPOld\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GNPOld\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GNPOld\\\"},{\\\"name\\\":\\\"Country.LocalName\\\",\\\"index\\\":\\\"Country.LocalName\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.LocalName\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.LocalName\\\"},{\\\"name\\\":\\\"Country.GovernmentForm\\\",\\\"index\\\":\\\"Country.GovernmentForm\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GovernmentForm\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GovernmentForm\\\"},{\\\"name\\\":\\\"Country.HeadOfState\\\",\\\"index\\\":\\\"Country.HeadOfState\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.HeadOfState\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.HeadOfState\\\"},{\\\"name\\\":\\\"Country.Capital\\\",\\\"index\\\":\\\"Country.Capital\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Capital\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Capital\\\"},{\\\"name\\\":\\\"Country.Code2\\\",\\\"index\\\":\\\"Country.Code2\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Code2\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Code2\\\"},{\\\"name\\\":\\\"City.ID\\\",\\\"index\\\":\\\"City.ID\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.ID\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.ID\\\"},{\\\"name\\\":\\\"City.Name\\\",\\\"index\\\":\\\"City.Name\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.Name\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.Name\\\"},{\\\"name\\\":\\\"City.CountryCode\\\",\\\"index\\\":\\\"City.CountryCode\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.CountryCode\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.CountryCode\\\"},{\\\"name\\\":\\\"City.District\\\",\\\"index\\\":\\\"City.District\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.District\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.District\\\"},{\\\"name\\\":\\\"City.Population\\\",\\\"index\\\":\\\"City.Population\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.Population\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.Population\\\"},{\\\"name\\\":\\\"CountryLanguage.CountryCode\\\",\\\"index\\\":\\\"CountryLanguage.CountryCode\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.CountryCode\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.CountryCode\\\"},{\\\"name\\\":\\\"CountryLanguage.Language\\\",\\\"index\\\":\\\"CountryLanguage.Language\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.Language\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.Language\\\"},{\\\"name\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"index\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.IsOfficial\\\"},{\\\"name\\\":\\\"CountryLanguage.Percentage\\\",\\\"index\\\":\\\"CountryLanguage.Percentage\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.Percentage\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.Percentage\\\"}],\\\"rowNum\\\":10,\\\"rowList\\\":[10,20,30],\\\"viewrecords\\\":true,\\\"caption\\\":\\\"test\\\",\\\"autowidth\\\":true,\\\"sortname\\\":\\\"\\\",\\\"sortorder\\\":\\\"desc\\\",\\\"height\\\":\\\"auto\\\",\\\"postData\\\":{\\\"filters\\\":{\\\"groupOp\\\":\\\"AND\\\",\\\"rules\\\":[]},\\\"rows\\\":0,\\\"page\\\":0},\\\"jsonReader\\\":{\\\"id\\\":\\\"Name\\\",\\\"repeatitems\\\":false},\\\"settings\\\":{\\\"del\\\":false,\\\"add\\\":false,\\\"edit\\\":false,\\\"search\\\":true},\\\"toolbar\\\":[true,\\\"top\\\"]}\";\n\n\t\t// test whether the desired json data is written\n\t\tverify(mockOutstream).println(out);\n\n\t\t// some tests to check the structure of the json\n\t\tfinal Gson gson = new Gson();\n\t\tfinal Map<String, Object> map2 = gson.fromJson(out, Map.class);\n\t\tassertEquals(\"test\", map2.get(\"id\"));\n\t\tassertEquals(\"molgenis.do?__target\\u003dtest\\u0026__action\\u003ddownload_json\", map2.get(\"url\"));\n\t\tassertEquals(Arrays.asList(\"Country.Code\", \"Country.Name\", \"Country.Continent\", \"Country.Region\",\n\t\t\t\t\"Country.SurfaceArea\", \"Country.IndepYear\", \"Country.Population\", \"Country.LifeExpectancy\",\n\t\t\t\t\"Country.GNP\", \"Country.GNPOld\", \"Country.LocalName\", \"Country.GovernmentForm\", \"Country.HeadOfState\",\n\t\t\t\t\"Country.Capital\", \"Country.Code2\", \"City.ID\", \"City.Name\", \"City.CountryCode\", \"City.District\",\n\t\t\t\t\"City.Population\", \"CountryLanguage.CountryCode\", \"CountryLanguage.Language\",\n\t\t\t\t\"CountryLanguage.IsOfficial\", \"CountryLanguage.Percentage\"), map2.get(\"colNames\"));\n\t\tfinal Map<?, ?> countryCodeColumn = ((ArrayList<Map<?, ?>>) map2.get(\"colModel\")).get(0);\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"name\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"index\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"title\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"path\"));\n\t\tassertEquals(Arrays.asList(\"eq\", \"ne\", \"bw\", \"bn\", \"ew\", \"en\", \"cn\", \"nc\"),\n\t\t\t\t((Map<?, ?>) countryCodeColumn.get(\"searchoptions\")).get(\"sopt\"));\n\t\tassertEquals(10.0, map2.get(\"rowNum\"));\n\t\tassertEquals(Arrays.asList(10.0, 20.0, 30.0), map2.get(\"rowList\"));\n\t\tassertEquals(\"desc\", map2.get(\"sortorder\"));\n\t}", "@Override\n\tprotected void buildExcelDocument(Map<String, Object> model, HSSFWorkbook workbook, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception \n\t{\n\t\t\n\t\tString formName = (String)model.get(\"formName\");\n\t\tif (\"Supplier\".equals(formName))\n\t\t\tsetSupplierExcelData(model, workbook);\n\t\telse if (\"Customer\".equals(formName))\n\t\t\tsetCustomerExcelData(model, workbook);\n\t\telse if (\"Item\".equals(formName))\n\t\t\tsetItemExcelData(model, workbook);\n\t\telse if (\"NonInventoryItem\".equals(formName))\n\t\t\tsetNonInventoryExcelData(model, workbook);\n\t\telse if (\"Project\".equals(formName))\n\t\t\tsetProjectExcelData(model, workbook);\n\t\telse if (\"Warehouse\".equals(formName))\n\t\t\tsetWarehouseExcelData(model, workbook);\n\t\t\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\" + formName);\n\t\n\t}", "protected void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\trequest.setCharacterEncoding(\"UTF-8\");\r\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\r\n\t\tBoardDTO dto = new BoardDTO();\r\n\t\tdto.setbTitle(request.getParameter(\"bTitle\"));\r\n\t\tdto.setbWriter(request.getParameter(\"bWriter\"));\r\n\t\tdto.setbPassword(request.getParameter(\"bPassword\"));\r\n\t\tdto.setbContent(request.getParameter(\"bContent\"));\r\n\t\tWirteService writesvc = new WirteService();\r\n\t\twritesvc.WirteService(dto);\r\n\t}", "protected void processTemplate(Map<String,?> attributes, Writer out, Template template, String encoding) throws IOException {\n long startTime = System.currentTimeMillis();\n\n Context context = buildContext(attributes);\n template.setEncoding(encoding);\n\n try {\n template.merge(context, out);\n log.debug(\"Velocity template transform processed in \" + \n (System.currentTimeMillis() - startTime) + \" ms\");\n } catch (ResourceNotFoundException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (ParseErrorException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (Exception errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/json;charset=utf-8\");\n try (PrintWriter out = response.getWriter()) {\n\n String file = request.getParameter(\"file\");\n String className = file.substring(0, file.indexOf(\".\"));\n\n try {\n \n JSONObject obj = new JSONObject();\n JSONArray errArray = new JSONArray();\n JSONArray outArray = new JSONArray();\n \n for(String aError : execErroutput(Config.DATA_PATH, Config.CMD_ENCODE, className)){\n errArray.put(aError);\n }\n for(String aOutput : execOutput(Config.DATA_PATH, Config.CMD_ENCODE, className)){\n outArray.put(aOutput);\n }\n \n obj.put(\"Error\", errArray);\n obj.put(\"Output\", outArray);\n \n out.println(obj.toString(4));\n \n } catch (Exception e) {\n System.err.println(e);\n }\n\n }\n }", "private void doSearchError(Map<String, Object> map, Configuration config, HttpServletRequest request, HttpServletResponse response) {\n writeTemplate(TEMPLATE_DEFAULT, map, config, request, response);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet GetWallGroupPostsServlet</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet GetWallGroupPostsServlet at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n */\n } finally { \n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\"); \n PrintWriter out = response.getWriter();\n \n /**\n * cdmsDO :: addMarket\n * --> cdmaCity\n * --> cdmaBorough\n * --> cdmaLocality\n * --> cdmCompany\n * :: getMarket\n * --> cdmID (OPTIONAL)\n * :: deleteMarket\n * --> cdmID\n *\n * \n * !! SHORTCUTs !!\n * carpe diem market --> cdm\n * carpe diem market address --> cdma\n * carpe diem market servlet --> cdms \n *\n */\n HttpSession session = request.getSession(false);\n Gson gson = new Gson();\n MysqlDBOperations mysql = new MysqlDBOperations();\n ResourceProperty resource = new ResourceProperty(\"com.generic.resources.mysqlQuery\");\n Result res = Result.FAILURE_PROCESS;\n Map resultMap = new HashMap();\n \n \n \n //verbose(request);\n \n \n \n //**********************************************************************\n //**********************************************************************\n //** STRIKE UP SERVLET OPERATION\n //**********************************************************************\n //**********************************************************************\n try {\n \n \n \n if(request.getParameter(\"cdmsDO\")!=null){ \n switch(request.getParameter(\"cdmsDO\")){ \n \n //**************************************************************\n //**************************************************************\n //** ADD TO MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"addMarket\": \n \n if( !Checker.anyNull(request.getParameter(\"cdmaCity\"),request.getParameter(\"cdmaBorough\"),request.getParameter(\"cdmaLocality\"),request.getParameter(\"cdmCompany\")) ){ \n \n // create dist-id\n // get address id\n \n \n res = Result.SUCCESS;\n }else{\n res = Result.FAILURE_PARAM_MISMATCH;\n }\n \n\n break;\n \n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketList\": \n \n \n // GET SPECIFIC MARKET\n if(!Checker.anyNull(request.getParameter(\"cdmID\"))){\n \n Map params = new HashMap();\n params.put(\"\", request.getParameter(\"cdmID\"));\n \n // GET ALL MARKETs\n }else{\n \n res = DBMarket.selectDistict(ResourceMysql.TABLE_DISTRIBUTER, \"distID\");\n \n }\n \n \n break;\n \n \n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET-ADRESS CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketAddressList\": \n \n \n // GET SPECIFIC MARKET\n if(!Checker.anyNull(request.getParameter(\"cdmID\"))){\n \n Map params = new HashMap();\n params.put(\"\", request.getParameter(\"cdmID\"));\n \n // GET ALL MARKETs\n }else{\n \n res = Result.FAILURE_PARAM_MISMATCH;\n \n }\n \n \n break;\n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET-ORDER CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketOrderList\": \n \n Result tempRes = DBUser.getUserCompany((String) session.getAttribute(\"cduUserId\")); \n if(tempRes.checkResult(Result.SUCCESS)){\n // Get user company and distributer id\n Map userMap = (Map) tempRes.getContent();\n String compName = (String) ((ArrayList)userMap.get(\"userCompany\")).get(0);\n String distName = (String) ((ArrayList)userMap.get(\"userDistributer\")).get(0); \n\n tempRes = DBMarket.getAddresses(distName);\n if(tempRes.checkResult(Result.SUCCESS)){\n Map m = (Map) tempRes.getContent();\n res = DBMarket.getOrders(compName, (List<String>) m.get(\"distAddressList\"));\n }\n }else{\n res = Result.FAILURE_PROCESS;\n }\n \n \n break;\n \n \n \n \n \n //**************************************************************\n //**************************************************************\n //** REMOVE MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"deleteMarket\":\n \n \n \n break;\n \n \n \n //**************************************************************\n //**************************************************************\n //** DEFAULT CASE\n //**************************************************************\n //**************************************************************\n default:\n res = Result.FAILURE_PARAM_WRONG;\n break;\n }\n\n }else{\n res = Result.FAILURE_PARAM_MISMATCH;\n }\n \n }finally{ \n \n mysql.closeAllConnection();\n out.write(gson.toJson(res));\n out.close();\n \n }\n \n }", "protected void renderMap(float mouseLocationX, float mouseLocationY)\n {\n float tileSize = zoom;\n\n //Calculate the number of tiles that can fit on screen\n int tiles_x = (int) Math.ceil(screenSizeX / tileSize) + 2;\n int tiles_y = (int) Math.ceil(screenSizeY / tileSize) + 2;\n\n //Offset tile position based on camera\n int center_x = (int) (cameraPosX - (zoom / 2f));\n int center_y = (int) (cameraPosY - (zoom / 2f));\n\n //Calculate the offset to make tiles render from the center\n int renderOffsetX = (tiles_x - 1) / 2;\n int renderOffsetY = (tiles_y - 1) / 2;\n\n //Get the position of the mouse based on screen size and tile scale\n float mouseScreenPosXScaled = mouseLocationX * screenSizeX / tileSize;\n float mouseScreenPosYScaled = mouseLocationY * screenSizeY / tileSize;\n\n //Get the position of the mouse relative to the map\n int mouseMapPosX = (int) Math.floor(center_x + mouseScreenPosXScaled);\n int mouseMapPosY = (int) Math.floor(center_y + mouseScreenPosYScaled);\n\n //Get the tile the mouse is currently over\n Tile tileUnderMouse = game.getWorld().getTile(mouseMapPosX, mouseMapPosY, cameraPosZ);\n\n //Render tiles\n for (int x = -renderOffsetX; x < renderOffsetX; x++)\n {\n for (int y = -renderOffsetY; y < renderOffsetY; y++)\n {\n int tile_x = x + center_x;\n int tile_y = y + center_y;\n Tile tile = game.getWorld().getTile(tile_x, tile_y, cameraPosZ);\n if (tile != Tiles.AIR)\n {\n TileRender.render(tile, x * tileSize, y * tileSize, zoom);\n }\n }\n }\n\n //Render entities\n for (Entity entity : game.getWorld().getEntities())\n {\n //Ensure the entity is on the floor we are rendering\n if (entity.zi() == cameraPosZ)\n {\n float tile_x = (entity.xf() - center_x) * tileSize;\n float tile_y = (entity.yf() - center_y) * tileSize;\n\n //Ensure the entity is in the camera view\n if (tile_x >= cameraBoundLeft && tile_x <= cameraBoundRight)\n {\n if (tile_y >= cameraBoundBottom && tile_y <= cameraBoundTop)\n {\n EntityRender.render(entity, tile_x, tile_y, 0, zoom);\n\n if (mouseMapPosX == entity.xi() && mouseMapPosY == entity.yi())\n {\n String s = entity.getDisplayName();\n fontRender.render(s, mouseLocationX * screenSizeX, mouseLocationY * screenSizeY, 0, 0, .5f * zoom);\n }\n }\n }\n }\n }\n\n float x = mouseMapPosX * tileSize;\n float y = mouseMapPosY * tileSize;\n\n //System.out.println(x + \" \" + y + \" \" + zoom + \" \" + tx + \" \" + ty + \" \" + tile);\n\n if (currentGuiComponetInUse != null)\n {\n target_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n else\n {\n box_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n\n if (!MouseInput.leftClick() && clickLeft)\n {\n clickLeft = false;\n doLeftClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n\n if (!MouseInput.rightClick() && clickRight)\n {\n clickRight = false;\n doRightClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n\n String html = \" <span class=\\\"glyphicon glyphicon-exclamation-sign\\\" aria-hidden=\\\"true\\\"></span><span class=\\\"sr-only\\\">Error:</span> \";\n\n String message = \"\";\n\n try {\n /* TODO output your page here. You may use following sample code. */\n\n boolean error = false;\n\n // Check Lat Lon\n String latlng = String.valueOf(request.getParameter(\"latlng\"));\n String lat = \"\";\n String lon = \"\";\n if (!latlng.equals(\"null\") && !latlng.equals(\"\")) {\n int position = latlng.indexOf(\",\");\n lat = latlng.substring(0, position);\n lon = latlng.substring(position + 1, latlng.length());\n } else {\n message += html + \"Please select a point on the map! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n\n // Check number of projects\n int number_of_projects = 0;\n try {\n number_of_projects = Integer.parseInt(String.valueOf(request.getParameter(\"number_of_projects\")));\n } catch (Exception e) {\n }\n if (number_of_projects <= 0) {\n message += html + \"Please enter a positive integer! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n if (number_of_projects > 100) {\n message += html + \"Number of projects is limited to 100! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n\n // If no error\n if (!error) {\n ProjectDAO pdao = new ProjectDAO();\n ArrayList<Project> result = pdao.retrieve(number_of_projects, lat, lon);\n JsonArray projectList = pdao.toJSON(result, number_of_projects);\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(projectList);\n request.setAttribute(\"project_comparison_result\", json);\n }\n\n request.setAttribute(\"return_num\", number_of_projects);\n request.setAttribute(\"latlng\", latlng);\n RequestDispatcher rd = request.getRequestDispatcher(\"ProjectComparison.jsp\");\n rd.forward(request, response);\n\n } catch (Exception e) {\n // Send error (if any) back to homepage\n } finally {\n out.close();\n }\n }", "@RequestMapping(value=\"hao.do\")\n\tpublic void hao_jsp(@ModelAttribute(\"pojo\") Pojo pojo,HttpServletResponse response) throws IOException{\n\t\tSystem.out.println(pojo.getA()+\" \"+pojo.getB());\n\t\tresponse.sendRedirect(\"success.jsp\");\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n RequestDispatcher rd=null;\n HttpSession session = request.getSession();\n String userid = (String)session.getAttribute(\"userid\");\n if(userid==null)\n {\n session.invalidate();\n response.sendRedirect(\"accessdenied.html\");\n return;\n }\n try\n {\n System.out.println(\"in the try of election result controller servlet\");\n Map<String , Integer> result = VoteDao.getResult();\n System.out.println(\"fetched party and vote from voteDao\");\n Set s = result.entrySet();\n Iterator it = s.iterator();\n LinkedHashMap<PartyWiseResult , Integer> resultDetails = new LinkedHashMap<>();\n while(it.hasNext())\n {\n Map.Entry<String , Integer> e = (Map.Entry)it.next();\n System.out.println(\"no we are iterating with \"+e.getKey());\n String symbol = CandidateDao.getPartySymbol(e.getKey());\n System.out.println(\"got the symbol for \"+e.getKey());\n PartyWiseResult pw = new PartyWiseResult();\n pw.setParty(e.getKey());\n pw.setSymbol(symbol);\n resultDetails.put(pw, e.getValue());\n \n }\n request.setAttribute(\"votecount\", VoteDao.getVoteCount());\n request.setAttribute(\"result\", resultDetails);\n rd = request.getRequestDispatcher(\"electionresult.jsp\");\n System.out.println(\"attribute for show election result is setted successfully\");\n }\n catch(Exception ex)\n {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n request.setAttribute(\"Exception\", ex);\n rd = request.getRequestDispatcher(\"showexception.jsp\");\n }\n finally\n {\n System.out.println(\"we are in the finally\");\n rd.forward(request, response);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n } finally { \r\n out.close();\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n long id = new Integer(request.getParameter(\"id\"));\n\n \n ResourcePOJO res = null;\n// try {\n res = manager.getResource(id, false);\n// } catch (JAXBException e) {\n// throw new IOException(e.getMessage());\n// }\n LayerManager layerBean = new LayerManager(res);\n \n try {\n \n request.setAttribute(\"layer\", layerBean);\n \n String layerName = layerBean.getName();\n \n List<ResourcePOJO> relatedStatsDefs = manager.searchStatsDefByLayer(layerName);\n request.setAttribute(\"statsDefs\", relatedStatsDefs);\n \n List<ResourcePOJO> relatedLayerUpdates = manager.searchLayerUpdatesByLayerName(layerName);\n request.setAttribute(\"layerUpdates\", relatedLayerUpdates);\n \n String data = manager.getData(id, MediaType.WILDCARD_TYPE.toString());\n layerBean.setData(data);\n \n request.setAttribute(\"storedData\", data);\n \n } catch (Exception ex) {\n Logger.getLogger(LayerShow.class.getName()).log(Level.SEVERE, null, ex);\n }\n String outputPage = getServletConfig().getInitParameter(\"outputPage\");\n RequestDispatcher rd = request.getRequestDispatcher(outputPage);\n rd.forward(request, response);\n }", "@Override\n protected void handleRequest (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope,\n @Nonnull final UnifiedResponse aUnifiedResponse) throws Exception\n {\n String sKey = aRequestScope.getPathWithinServlet ();\n if (sKey.length () > 0)\n sKey = sKey.substring (1);\n\n SimpleURL aTargetURL = null;\n final GoMappingItem aGoItem = getResolvedGoMappingItem (sKey);\n if (aGoItem == null)\n {\n s_aLogger.warn (\"No such go-mapping item '\" + sKey + \"'\");\n // Goto start page\n aTargetURL = getURLForNonExistingItem (aRequestScope, sKey);\n s_aStatsError.increment (sKey);\n }\n else\n {\n // Base URL\n if (aGoItem.isInternal ())\n {\n final IMenuTree aMenuTree = getMenuTree ();\n if (aMenuTree != null)\n {\n // If it is an internal menu item, check if this internal item is an\n // \"external menu item\" and if so, directly use the URL of the\n // external menu item\n final IRequestManager aARM = ApplicationRequestManager.getRequestMgr ();\n final String sTargetMenuItemID = aARM.getMenuItemFromURL (aGoItem.getTargetURL ());\n\n final IMenuObject aMenuObj = aMenuTree.getItemDataWithID (sTargetMenuItemID);\n if (aMenuObj instanceof IMenuItemExternal)\n {\n aTargetURL = new SimpleURL (((IMenuItemExternal) aMenuObj).getURL ());\n }\n }\n }\n if (aTargetURL == null)\n {\n // Default case - use target link from go-mapping\n aTargetURL = aGoItem.getTargetURL ();\n }\n\n // Callback\n modifyResultURL (aRequestScope, sKey, aTargetURL);\n\n s_aStatsOK.increment (sKey);\n }\n\n // Append all request parameters of this request\n // Don't use the request attributes, as there might be more of them\n final Enumeration <?> aEnum = aRequestScope.getRequest ().getParameterNames ();\n while (aEnum.hasMoreElements ())\n {\n final String sParamName = (String) aEnum.nextElement ();\n final String [] aParamValues = aRequestScope.getRequest ().getParameterValues (sParamName);\n if (aParamValues != null)\n for (final String sParamValue : aParamValues)\n aTargetURL.add (sParamName, sParamValue);\n }\n\n if (s_aLogger.isDebugEnabled ())\n s_aLogger.debug (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n else\n if (GlobalDebug.isDebugMode ())\n s_aLogger.info (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n\n // Main redirect :)\n aUnifiedResponse.setRedirect (aTargetURL);\n }", "@Mapper(componentModel = \"spring\")\npublic interface DemoMapper {\n DemoResponse map(Demo demo);\n}", "public void markRenderModelsModified() {\n\t\t\n\t\t// TODO dispose of the VBOs!!!\n\t\trenderUnits = null;\n\t\t\n\t}", "@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n String myresult = \"My result\";\n// Collection <Player> myresult = fullTeamService.getTeam();\n\n request.setAttribute(\"myresult\", myresult);\n\n return \"view/anotherResultMul.jsp\";\n\n\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 /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet LibrarySystemController</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet LibrarySystemController at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "public void render (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n response.setTitle(getTitle(request));\n doDispatch(request, response);\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 /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet StatisticalReport</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet StatisticalReport at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "@RequestMapping(value = \"/homed/{map}\", method = RequestMethod.GET)\r\n public String mapHomeDebug(HttpServletRequest request, @PathVariable(\"map\") String map, ModelMap model) throws ServletException, IOException { \r\n return(renderPage(request, model, \"map\", map, null, null, true));\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(OrgDisplay.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(OrgDisplay.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response); \n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n \r\n }", "private void generateSearchReport(final Map<String, String> request,\r\n\t\t\tfinal List<Map<String, String>> resultMap) {\r\n\t\tMap<String, String> reportMap = null;\r\n\r\n\t\tfor (final Map<String, String> map : resultMap) {\r\n\t\t\tif (map.containsKey(CommonConstants.TOTAL_PRODUCTS)) {\r\n\t\t\t\treportMap = this.getReportMap(request);\r\n\t\t\t\tfinal StringBuilder attributes = new StringBuilder();\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.COLOR)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.COLOR);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.COLOR));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.SIZE)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.SIZE);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.SIZE));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.BRAND)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.BRAND);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.BRAND));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tthis.requestAttributePrice(request, attributes);\r\n\t\t\t\tif (attributes.length() != 0) {\r\n\t\t\t\t\treportMap.put(DomainConstants.ATTRIBUTES, attributes\r\n\t\t\t\t\t\t\t.toString().substring(0, attributes.length() - 1));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString sortFields = \"\";\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.SORT)) {\r\n\t\t\t\t\tsortFields = request.get(RequestAttributeConstant.SORT);\r\n\t\t\t\t}\r\n\t\t\t\tif (!\"\".equals(sortFields)) {\r\n\t\t\t\t\treportMap.put(DomainConstants.SORT_FIELDS, sortFields\r\n\t\t\t\t\t\t\t.replace(CommonConstants.EMPTY_VALUE,\r\n\t\t\t\t\t\t\t\t\tCommonConstants.COMMA_SEPERATOR));\r\n\t\t\t\t}\r\n\t\t\t\tmap.putAll(reportMap);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void foreachResultCreateHTML(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n\n // call for a single ini file\n if (sInputPath.toLowerCase().endsWith(\".ini\") )\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n // check if there exists an ini file\n String sPath = FileHelper.getPath(sInputPath); \n String sBasename = FileHelper.getBasename(sInputPath);\n\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n \n // Create a HTML page which shows locally to all files in .odb\n if (sInputPath.toLowerCase().endsWith(\".odb\"))\n {\n String sIndexFile = FileHelper.appendPath(sPath, \"index.ini\");\n File aIndexFile = new File(sIndexFile);\n if (aIndexFile.exists())\n { \n IniFile aIniFile = new IniFile(sIndexFile);\n\n if (aIniFile.hasSection(sBasename))\n {\n // special case for odb files\n int nFileCount = aIniFile.getIntValue(sBasename, \"reportcount\", 0);\n ArrayList<String> aList = new ArrayList<String>();\n for (int i=0;i<nFileCount;i++)\n {\n String sValue = aIniFile.getValue(sBasename, \"report\" + i);\n\n String sPSorPDFName = getPSorPDFNameFromIniFile(aIniFile, sValue);\n if (sPSorPDFName.length() > 0)\n {\n aList.add(sPSorPDFName);\n }\n }\n if (aList.size() > 0)\n {\n // HTML output for the odb file, shows only all other documents.\n HTMLResult aOutputter = new HTMLResult(sPath, sBasename + \".ps.html\" );\n aOutputter.header(\"content of DB file: \" + sBasename);\n aOutputter.indexSection(sBasename);\n \n for (int i=0;i<aList.size();i++)\n {\n String sPSFile = aList.get(i);\n\n // Read information out of the ini files\n String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + \".ini\");\n IniFile aIniFile2 = new IniFile(sIndexFile2);\n String sStatusRunThrough = aIniFile2.getValue(\"global\", \"state\");\n String sStatusMessage = \"\"; // aIniFile2.getValue(\"global\", \"info\");\n aIniFile2.close();\n\n\n String sHTMLFile = sPSFile + \".html\";\n aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage);\n }\n aOutputter.close();\n\n// String sHTMLFile = FileHelper.appendPath(sPath, sBasename + \".ps.html\");\n// try\n// {\n//\n// FileOutputStream out2 = new FileOutputStream(sHTMLFile);\n// PrintStream out = new PrintStream(out2);\n//\n// out.println(\"<HTML>\");\n// out.println(\"<BODY>\");\n// for (int i=0;i<aList.size();i++)\n// {\n// // <A href=\"link\">blah</A>\n// String sPSFile = (String)aList.get(i);\n// out.print(\"<A href=\\\"\");\n// out.print(sPSFile + \".html\");\n// out.print(\"\\\">\");\n// out.print(sPSFile);\n// out.println(\"</A>\");\n// out.println(\"<BR>\");\n// }\n// out.println(\"</BODY></HTML>\");\n// out.close();\n// out2.close();\n// }\n// catch (java.io.IOException e)\n// {\n// \n// }\n }\n }\n aIniFile.close();\n }\n\n }\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n String action = request.getParameter(\"action\");\n LogementModel model = new LogementModel();\n MaisonDAO implm = new MaisonDAO();\n AppartementDAO impla = new AppartementDAO();\n ChambreDAO implc = new ChambreDAO();\n\n request.setAttribute(\"model\", model);\n\n if (action != null) {\n if (action.equals(\"maison\")) {\n ArrayList<Maison> listm = implm.listMaisonD();\n model.setMaisons(listm);\n } else if (action.equals(\"appartement\")) {\n ArrayList<Appartement> lisa = impla.listAppartementD();\n model.setAppartements(lisa);\n } else if (action.equals(\"chambre\")) {\n ArrayList<Chambre> lista = implc.listChambreD();\n model.setChambres(lista);\n }/*else if (action.equals(\"tout\")) {\n List<Logement> logement = impl.listlogements();\n model.setLogements(logement);\n }*/\n\n }\n request.getRequestDispatcher(\"index.jsp\").forward(request,\n response);\n\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Loggable\n protected ModelAndView handle(final HttpServletRequest request, final HttpServletResponse response,\n final Object commandObj, final BindException errors)\n throws InvalidTestbedIdException, TestbedNotFoundException {\n final long start = System.currentTimeMillis();\n\n long start1 = System.currentTimeMillis();\n\n // set command object\n final TestbedCommand command = (TestbedCommand) commandObj;\n\n // a specific testbed is requested by testbed Id\n int testbedId;\n try {\n testbedId = Integer.parseInt(command.getTestbedId());\n } catch (NumberFormatException nfe) {\n throw new InvalidTestbedIdException(\"Testbed IDs have number format.\", nfe);\n }\n\n LOGGER.info(\"--------- Get Testbed id: \" + (System.currentTimeMillis() - start1));\n start1 = System.currentTimeMillis();\n\n // look up testbed\n final Testbed testbed = testbedManager.getByID(testbedId);\n if (testbed == null) {\n // if no testbed is found throw exception\n throw new TestbedNotFoundException(\"Cannot find testbed [\" + testbedId + \"].\");\n }\n LOGGER.info(\"got testbed \" + testbed);\n\n LOGGER.info(\"--------- Get Testbed: \" + (System.currentTimeMillis() - start1));\n\n\n if (nodeCapabilityManager == null) {\n LOGGER.error(\"nodeCapabilityManager==null\");\n }\n\n start1 = System.currentTimeMillis();\n // get a list of node last readings from testbed\n final List<NodeCapability> nodeCapabilities = nodeCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- list nodeCapabilities: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n String nodeCaps;\n try {\n nodeCaps = HtmlFormatter.getInstance().formatLastNodeReadings(nodeCapabilities);\n } catch (NotImplementedException e) {\n nodeCaps = \"\";\n }\n LOGGER.info(\"--------- format last node readings: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n // get a list of link statistics from testbed\n final List<LinkCapability> linkCapabilities = linkCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- List link capabilities: \" + (System.currentTimeMillis() - start1));\n\n\n // Prepare data to pass to jsp\n final Map<String, Object> refData = new HashMap<String, Object>();\n refData.put(\"testbed\", testbed);\n refData.put(\"lastNodeReadings\", nodeCaps);\n\n\n try {\n start1 = System.currentTimeMillis();\n refData.put(\"lastLinkReadings\", HtmlFormatter.getInstance().formatLastLinkReadings(linkCapabilities));\n LOGGER.info(\"--------- format link Capabilites: \" + (System.currentTimeMillis() - start1));\n } catch (NotImplementedException e) {\n LOGGER.error(e);\n }\n\n LOGGER.info(\"--------- Total time: \" + (System.currentTimeMillis() - start));\n refData.put(\"time\", String.valueOf((System.currentTimeMillis() - start)));\n LOGGER.info(\"prepared map\");\n\n return new ModelAndView(\"testbed/status.html\", refData);\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/json\");\n try (PrintWriter out = response.getWriter()) {\n Gson gson = new Gson();\n\n ProblemsManager problemsManager = ServletUtils.getProblemsManager(getServletContext());\n List<TimeTableProblem> problemList = problemsManager.getProblems();\n List<DTOShortProblem> shortProblemsList= new LinkedList<>();\n for(TimeTableProblem problem:problemList)\n {\n shortProblemsList.add(new DTOShortProblem(problem));\n }\n\n\n String json = gson.toJson(shortProblemsList);\n out.println(json);\n out.flush();\n }\n }", "private void render(String templateName, HttpServletResponse response, MustacheFactory mustacheFactory,\n\t\t\tObject context) throws IOException {\n\t\tMustache header = mustacheFactory.compile(templateName);\n\n\t\theader.execute(response.getWriter(), context);\n\t}" ]
[ "0.7802177", "0.77025086", "0.7476647", "0.7376135", "0.7318861", "0.6990785", "0.6896594", "0.66167796", "0.6402479", "0.63494164", "0.6287087", "0.5850929", "0.5666228", "0.56320125", "0.5493746", "0.54322827", "0.5419891", "0.5373089", "0.52173954", "0.5155077", "0.51448715", "0.51154417", "0.51098114", "0.50892276", "0.5069682", "0.5050963", "0.49580953", "0.4955232", "0.49488896", "0.49484253", "0.49306354", "0.49243718", "0.49203998", "0.49146634", "0.49042004", "0.4897013", "0.48818544", "0.48762026", "0.48646092", "0.48609844", "0.48573184", "0.48224753", "0.48189357", "0.48148546", "0.4788502", "0.47403395", "0.47400457", "0.47330606", "0.4730126", "0.47235668", "0.47181645", "0.47126535", "0.47098818", "0.47082186", "0.47072992", "0.4697982", "0.4697933", "0.46879792", "0.46750638", "0.46711656", "0.46597606", "0.46574914", "0.46498364", "0.4636415", "0.4632848", "0.46298698", "0.4627752", "0.4620496", "0.46196604", "0.46162376", "0.4609262", "0.46083853", "0.460372", "0.46035272", "0.45951653", "0.4594478", "0.45929474", "0.45856848", "0.45815098", "0.45761192", "0.45686984", "0.45681223", "0.4565539", "0.4560225", "0.45552054", "0.45448396", "0.45423725", "0.45410067", "0.45382488", "0.45377424", "0.45370123", "0.45334205", "0.45334205", "0.45334205", "0.45334205", "0.45334205", "0.45334205", "0.45333418", "0.45324194", "0.45303053" ]
0.7522616
2
Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test.
@Test(expected = java.io.IOException.class) public void testRenderMergedOutputModel_4() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl("/"); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); fixture.renderMergedOutputModel(model, request, response); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testRenderMergedOutputModel_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", false, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testRenderMergedOutputModel_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Override\n\tprotected void renderMergedOutputModel(Map<String, Object> model,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\texposeModelAsRequestAttributes(model,request);\n\n\t\t// Determine the path for the request dispatcher.\n\t\tString dispatcherPath = prepareForRendering(request, response);\n\n\t\t// set original view being asked for as a request parameter\n\t\trequest.setAttribute(\"partial\", dispatcherPath.subSequence(14, dispatcherPath.length()));\n\n\t\t// force everything to be template.jsp\n\t\tRequestDispatcher requestDispatcher = request\n\t\t\t\t.getRequestDispatcher(\"/WEB-INF/views/template.jsp\");\n\t\trequestDispatcher.include(request, response);\n\n\t}", "protected void renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception\r\n {\r\n try\r\n {\r\n StringBuilder sitemap = new StringBuilder();\r\n sitemap.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n sitemap.append(\"<urlset xmlns=\\\"http://www.sitemaps.org/schemas/sitemap/0.9\\\">\");\r\n sitemap.append(createUrlEntries(model));\r\n sitemap.append(\"</urlset>\");\r\n\r\n response.getOutputStream().print(sitemap.toString());\r\n }\r\n catch (Exception e)\r\n {\r\n this.exceptionHandler.handle(e);\r\n }\r\n }", "@Test(expected = java.io.UnsupportedEncodingException.class)\n\tpublic void testRenderMergedOutputModel_5()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Override\n protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n ByteArrayOutputStream baos = createTemporaryOutputStream();\n\n // Apply preferences and build metadata.\n Document document = new Document();\n PdfWriter writer = PdfWriter.getInstance(document, baos);\n prepareWriter(model, writer, request);\n buildPdfMetadata(model, document, request);\n\n // Build PDF document.\n writer.setInitialLeading(16);\n document.open();\n buildPdfDocument(model, document, writer, request, response);\n document.close();\n\n // Flush to HTTP response.\n writeToResponse(response, baos);\n\n }", "@Override\n\tprotected void renderMergedOutputModel(\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\n\t\tif(LOGGER.isDebugEnabled()) {\n//\t\t\tif(MDC.get(CmmnConstants.REMOTE_ADDR) == null) {\n//\t\t\t\tisSetRemoteAddr = true;\n//\t\t\t\tString remoteAddr = GeneralUtils.changeLocalAddr(GeneralUtils.getIpAddress(request));\n//\t\t\t\tMDC.put(CmmnConstants.REMOTE_ADDR, remoteAddr);\n//\t\t\t\tMDC.put(CmmnConstants.CONTEXT_PATH, request.getContextPath().isEmpty()?\"/\":request.getContextPath());\n//\t\t\t}\n\t\t}\n\n\t\tsuper.renderMergedOutputModel( model, request, response);\n\n//\t\tif(isSetRemoteAddr) {\n//\t\t\tMDC.remove(CmmnConstants.REMOTE_ADDR);\n//\t\t\tMDC.remove(CmmnConstants.CONTEXT_PATH);\n//\t\t}\n\t}", "@Override\r\n public void render(Map<String, ?> model, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws Exception {\n\t\tif ( httpResponse.isCommitted() ) {\r\n\t\t\tif ( logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"Response already committed\");\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlong startMillis = System.currentTimeMillis();\r\n\r\n Response response = (Response)model.get (Response.RESPONSE_ATTRIBUTE);\r\n Writer writer = null;\r\n\t\ttry {\r\n\t\t\t// Set the response content type based on the transport\r\n\t\t\tsetContentType(response);\r\n writer = IOUtil.getResponseWriter(response);\r\n startOutput(response, writer);\r\n\t\t createOutput(response, writer);\r\n finishOutput(response, writer);\r\n } catch ( ScalarActionException e ) {\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unable to create output\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} catch ( IOException e ) {\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unable to get writer\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} catch ( Exception e ) {\r\n\t\t\t// Catching just exception on purpose\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unexpected error during output\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif ( null != writer ) {\r\n\t\t\t\t\t// Ensure output\r\n\t\t\t\t\twriter.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch ( IOException e ) {\r\n\t\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\t\tlogger.error(\"Unable to flush output\", e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"End of creating UI response: \" + httpRequest.getRequestURI() + \" Total flight time: \" + (System.currentTimeMillis() - startMillis));\r\n\t\t\t}\r\n\t\t}\r\n }", "@Override\r\n\tprotected final void renderMergedOutputModel(\r\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n\r\n\t\tExcelForm excelForm = (ExcelForm) model.get(\"excelForm\");\r\n\r\n\t\tHSSFWorkbook workbook;\r\n\t\tHSSFSheet sheet;\r\n\t\tif (excelForm.getTemplateFileUrl() != null) {\r\n\t\t\tworkbook = getTemplateSource(excelForm.getTemplateFileUrl(), request);\r\n\t\t\tsheet = workbook.getSheetAt(0);\r\n\t\t} else {\r\n\t\t\tString sheetName = excelForm.getSheetName();\r\n\r\n\t\t\tworkbook = new HSSFWorkbook();\r\n\t\t\tsheet = workbook.createSheet(sheetName);\r\n\t\t\tlogger.debug(\"Created Excel Workbook from scratch\");\r\n\t\t}\r\n\t\t\r\n\t\tresponse.setHeader( \"Content-Disposition\", \"attachment; filename=\" + URLEncoder.encode(excelForm.getFileName(), \"UTF-8\"));\r\n\r\n\t\tcreateColumnStyles(excelForm, workbook);\r\n\t\tcreateMetaRows(excelForm, workbook, sheet);\r\n\t\tcreateHeaderRow(excelForm, workbook, sheet);\r\n\t\tfor (Object review : excelForm.getData()) {\r\n\t\t\tcreateRow(excelForm, workbook,sheet, review);\r\n\t\t\tdetectLowMemory();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the content type.\r\n\t\tresponse.setContentType(getContentType());\r\n\r\n\t\t// Should we set the content length here?\r\n\t\t// response.setContentLength(workbook.getBytes().length);\r\n\r\n\t\t// Flush byte array to servlet output stream.\r\n\t\tServletOutputStream out = response.getOutputStream();\r\n\t\tworkbook.write(out);\r\n\t\tout.flush();\r\n\t}", "protected void renderMergedOutputModel(Map model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tFile file = (File)model.get(\"downloadFile\");\n\t\tresponse.setContentType(super.getContentType());\n\t\tresponse.setContentLength((int)file.length());\n\t\tresponse.setHeader(\"Content-Transfer-Encoding\",\"binary\");\n\t\tresponse.setHeader(\"Content-Disposition\",\"attachment;fileName=\\\"\"+java.net.URLEncoder.encode(file.getName(),\"utf-8\")+\"\\\";\");\n\t\tOutputStream out = response.getOutputStream();\n\t\tFileInputStream fis = null;\n\t\ttry\n\t\t{\n\t\t\tfis = new FileInputStream(file);\n\t\t\tFileCopyUtils.copy(fis, out);\n\t\t}\n\t\tcatch(java.io.IOException ioe)\n\t\t{\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(fis != null) fis.close();\n\t\t}\n\t\tout.flush();\n\t}", "private void process(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAddModel model = Util.getModel(request, Const.RESULT);\n\t\t\n\t\t// Print the \"VIEW\" using the \"MODEL\"\n\t\tprintView(response, model);\n\t}", "@Test\n public void shouldLoadFilledModel() throws Exception {\n final Map<String, Object> modelData = createFilledModel();\n // Some static data is changed at this moment, so need to reset the extractors list\n ReportColumnsExtractorHelper.reset();\n\n // WHEN asking the view to render the model contents\n underTest.renderMergedOutputModel(modelData, mock(HttpServletRequest.class), response);\n\n // THEN the resulting CSV contains the expected data\n verify(writer).write(\"\\\"Header\\\",\\\"Header NG\\\",\\\"H\\\",\\\"Header\\\"\\n\");\n verify(writer).write(\"\\\"str\\\",\\\"\\\",\\\"2\\\",\\\"\\\"\\n\");\n verify(writer).flush();\n }", "@Override\r\n public void render(HttpServletRequest request, HttpServletResponse response, Object result) throws Throwable\r\n {\n \r\n }", "@Test\n public void shouldLoadEmptyModel() throws Exception {\n final Map<String, Object> modelData = createEmptyModel();\n\n // WHEN asking the view to render the model contents\n underTest.renderMergedOutputModel(modelData, mock(HttpServletRequest.class), response);\n\n // THEN the response sets the correct MIME type\n verify(response).setContentType(\"text/csv\");\n verify(response).setHeader(\"Content-Disposition\", \"attachment; filename=activityReport.csv\");\n\n // AND returns an empty closed stream\n verify(sourceWriter).close();\n }", "@Test\n public void testRender() {\n try{\n System.out.println(\"render\");\n HttpSession session = new MockHttpSession();\n session.setAttribute(\"session_user\", ujc.findUser(1));\n String project_id = \"3\";\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n ModelAndView result = instance.render(session, project_id);\n// assertEquals(expResult, result);\n ModelAndViewAssert.assertViewName(result, \"team\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"owner\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"allMembers\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"otherUsers\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"project\");\n }\n catch(Exception e){\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Redner failed\");\n }\n }", "protected void augmentModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\n\t}", "@Test\n\tpublic void testRenderData() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"RENDER_DATA\");\n\t\tmap.put(\"rows\", \"10\");\n\t\tmap.put(\"page\", \"1\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletContext context = mock(ServletContext.class);\n\t\tfinal HttpSession session = mock(HttpSession.class);\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getServletContext()).thenReturn(context);\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\t// final HttpServletResponse realRequest = ((MolgenisRequest)\n\t\t// molRequest).getResponse();\n\t\t// System.out.println(realRequest.toString());\n\t\tverify(mockOutstream)\n\t\t\t\t.print(\"{\\\"page\\\":1,\\\"total\\\":3067,\\\"records\\\":30670,\\\"rows\\\":[{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Dutch\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"5.300000190734863\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"English\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"9.5\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Papiamento\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"76.69999694824219\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Spanish\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"7.400000095367432\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"3\\\",\\\"City.Name\\\":\\\"Herat\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Herat\\\",\\\"City.Population\\\":\\\"186800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"4\\\",\\\"City.Name\\\":\\\"Mazar-e-Sharif\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Balkh\\\",\\\"City.Population\\\":\\\"127800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"}]}\");\n\t}", "void render(IViewModel model);", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tSystem.out.println(\"View1Model execute(HttpServletRequest request, HttpServletResponse response) 호출\");\n\t}", "private void renderResources(HttpServletRequest request, HttpServletResponse response, MergeableResources codeResources, Writer out) {\n List<CMAbstractCode> codes = codeResources.getMergeableResources();\n\n //set correct contentType\n response.setContentType(contentType);\n\n for (CMAbstractCode code : codes) {\n renderResource(request, response, code, out);\n }\n\n }", "@Override\n\tpublic void buildModel(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Map templateModel)\n\t\t\tthrows HandlerExecutionException {\n\t\tString workflowName=request.getParameter(\"workflowName\");\n\t\tString taskName=request.getParameter(\"taskName\");\n\t\tString featureModelName=request.getParameter(\"featureModelName\");\n\t\tString userKey=request.getParameter(\"userKey\");\n\t\tString userName=request.getParameter(\"userName\");\n\t\tString userID=request.getParameter(\"userID\");\n\n\t\tString placeType=request.getParameter(\"placeType\");\n\t\t\n\t\tString stopAllocatedViewsResult=\"\";\n\t\t\n\t\tfeatureModelName=featureModelName.replace(\"?\", \" \");\n\n\t\t\n\t\tString viewDir=getServlet().getServletContext().getRealPath(\"/\")+ \"extensions/views/\"; \n\t\tString modelDir=getServlet().getInitParameter(\"modelsPath\");\n\t\tString configuredModelPath=modelDir+\"configured_models\";\n\t\n\t\t\n\t\t\tif ((placeType.compareToIgnoreCase(\"stop\")==0)) {\n\t\t\t\tString configuredFileName=Methods.getConfiguredFileName(configuredModelPath, userKey);\n\t\t\t\tSystem.out.println(configuredFileName);\n\t\t\t\tif(configuredFileName.compareToIgnoreCase(\"false\")==0){\n\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\tmessage.put(\"value\", \"The configuration file not found\");\n\t\t\t\t\tmessages.add(message);\n\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\n\t\t\t\t}else{\n\t\t\t\t\tstopAllocatedViewsResult=Methods.checkConfigurationCompletionInStopPlace(featureModelName, viewDir, modelDir, configuredModelPath, taskName, placeType, workflowName, configuredFileName, userName, userID);\n\t\t\t\t\tif(stopAllocatedViewsResult.compareToIgnoreCase(\"true\")==0){\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Configuration status of tasks has been checked\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Problem in checking of configuration status of the tasks\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t \n\n\t\t\t}\t\n\t\t\t\t\n\t\t\t\n\t}", "public void applyModel(ScServletData data, Object model)\n {\n }", "ModelAndView handleResponse(HttpServletRequest request,HttpServletResponse response, String actionName, Map model);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException \r\n {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) \r\n {\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet JoinGroupServlet</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet JoinGroupServlet at \" + request.getContextPath() + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {\r\n\r\n\t\t// Set the MIME type for the render response\r\n\t\tresponse.setContentType(request.getResponseContentType());\r\n\r\n\t\t// Invoke the HTML to render\r\n\t\tPortletRequestDispatcher rd = getPortletContext().getRequestDispatcher(getHtmlFilePath(request, VIEW_HTML));\r\n\t\trd.include(request,response);\r\n\t}", "@RenderMapping\r\n\tpublic String handleRenderRequest(RenderRequest request,RenderResponse response,Model model){\r\n\t\t\r\n\t\tfinal ThemeDisplay themeDisplay = GestionFavoritosUtil.getThemeDisplay(request); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tfinal String structure = request.getPreferences().getValue(\r\n\t\t\t\t\tGestionFavoritosKeys.STRUCTURE_ID, StringUtils.EMPTY);\r\n\t\t\t\r\n\t\t\tfinal List<JournalStructure> listStructures = JournalStructureLocalServiceUtil\r\n\t\t\t\t\t.getStructures(themeDisplay.getScopeGroupId());\r\n\t\t\t\r\n\t\t\tfinal List<JournalTemplate> listTemplates = GestionFavoritosUtil\r\n\t\t\t\t\t.getTemplatesByGroupId(themeDisplay.getScopeGroupId(),\r\n\t\t\t\t\t\t\tstructure);\r\n\t\t\t\r\n\t\t\t// Si hay preferencias\r\n\t\t\tif (request.getPreferences() != null) {\r\n\t\t\t\t\r\n\t\t\t\tPortletPreferences preferences = request.getPreferences();\r\n\t\t\t\t\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.STRUCTURE_ID, structure);\r\n\t\t\t\t\r\n\t\t\t\tfinal String template = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.TEMPLATE_ID, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.TEMPLATE_ID, template);\r\n\t\t\t\t\r\n\t\t\t\tfinal String categories = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.CATEGORIES, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.CATEGORIES, categories);\r\n\t\t\t\t\r\n\t\t\t\tfinal String view = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.SELECTED_VIEW, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.SELECTED_VIEW, view);\r\n\t\t\t}\t\r\n\r\n\t\t\trequest.setAttribute(GestionFavoritosKeys.LIST_STRUCTURES,\r\n\t\t\t\t\tlistStructures);\r\n\t\t\t\r\n\t\t\trequest.setAttribute(GestionFavoritosKeys.LIST_TEMPLATES,\r\n\t\t\t\t\tlistTemplates);\r\n\r\n\t\t\t\r\n\t\t} catch (SystemException e) {\r\n\t\t\tlog.error(e);\r\n\t\t\tSessionErrors.add(request, GestionFavoritosErrorKeys.VIEW_DATA);\r\n\t\t\tSessionMessages.clear(request);\r\n\t\t} \r\n\t\t\r\n\t\t\r\n\t\treturn \"edit\";\r\n\t}", "protected abstract void buildExcelDocument(Map<String, Object> model,\n Workbook workbook, HttpServletRequest request,\n HttpServletResponse response) throws Exception;", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n ArrayList<GroupModel> all=GroupDao.display();\n request.setAttribute(\"group\",all);\n RequestDispatcher rds=request.getRequestDispatcher(\"DisplayGroup.jsp\");\n rds.forward(request, response);\n \n \n\n \n }", "private void processObject( HttpServletResponse oResponse, Object oViewObject ) throws ViewExecutorException\r\n {\n try\r\n {\r\n oResponse.getWriter().print( oViewObject );\r\n }\r\n catch ( IOException e )\r\n {\r\n throw new ViewExecutorException( \"View \" + oViewObject.getClass().getName() + \", generic object view I/O error\", e );\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet JSONCollector</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet JSONCollector at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.setAttribute(\"model\", model);\r\n\t\treq.getRequestDispatcher(\"param.jsp\").forward(req, resp);\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n LOG.debug(\"Received new update request\");\n \n String modelerName = request.getParameter(\"name\");\n String originalModelerName = request.getParameter(\"originalName\");\n String modelId = request.getParameter(\"modelId\");\n String modelType = request.getParameter(\"modeltype\");\n // Currently not being used since we don't update the modelVersion \n // String modelVersion = request.getParameter(\"version\");\n String originalModelVersion = request.getParameter(\"originalModelVersion\");\n String runIdent = request.getParameter(\"runIdent\");\n String originalRunIdent = request.getParameter(\"originalRunIdent\");\n String runDate = request.getParameter(\"creationDate\");\n String originalRunDate = request.getParameter(\"originalCreationDate\");\n String scenario = request.getParameter(\"scenario\");\n String originalScenario = request.getParameter(\"originalScenario\");\n String comments = request.getParameter(\"comments\");\n String originalComments = request.getParameter(\"originalComments\");\n String email = request.getParameter(\"email\");\n String wfsUrl = request.getParameter(\"wfsUrl\");\n String layer = request.getParameter(\"layer\");\n String commonAttr = request.getParameter(\"commonAttr\");\n Boolean updateAsBest = \"on\".equalsIgnoreCase(request.getParameter(\"markAsBest\")) ? Boolean.TRUE : Boolean.FALSE;\n Boolean rerun = Boolean.parseBoolean(request.getParameter(\"rerun\")); // If this is true, we only re-run the R processing \n \n String responseText;\n RunMetadata newRunMetadata;\n \n ModelType modelTypeEnum = null;\n if (\"prms\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.PRMS;\n }\n if (\"afinch\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.AFINCH;\n }\n if (\"waters\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.WATERS;\n }\n if (\"sye\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.SYE;\n }\n \n RunMetadata originalRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n originalModelerName,\n originalModelVersion,\n originalRunIdent,\n originalRunDate,\n originalScenario,\n originalComments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n if (rerun) {\n String sosEndpoint = props.getProperty(\"watersmart.sos.model.repo\") + originalRunMetadata.getTypeString() + \"/\" + originalRunMetadata.getFileName();\n WPSImpl impl = new WPSImpl();\n String implResponse = impl.executeProcess(sosEndpoint, originalRunMetadata);\n Boolean processStarted = implResponse.toLowerCase().equals(\"ok\");\n responseText = \"{success: \"+processStarted.toString()+\", message: '\" + implResponse + \"'}\";\n } else {\n newRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n modelerName,\n originalModelVersion,\n runIdent,\n runDate,\n scenario,\n comments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n CSWTransactionHelper helper = new CSWTransactionHelper(newRunMetadata, null, new HashMap<String, String>());\n try {\n String results = helper.updateRunMetadata(originalRunMetadata);\n // TODO- parse xml, make sure stuff happened alright, if so don't say success\n responseText = \"{success: true, msg: 'The record has been updated'}\";\n } catch (IOException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n } catch (URISyntaxException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n }\n \n }\n \n response.setContentType(\"application/json\");\n response.setCharacterEncoding(\"utf-8\");\n \n try {\n Writer writer = response.getWriter();\n writer.write(responseText);\n writer.close();\n } catch (IOException ex) {\n LOG.warn(\"An error occurred while trying to send response to client. \", ex);\n }\n \n }", "void render( Collection<String> files, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n getServletContext().log(\"Processing a request : \" + request.getServletPath());\n \n try {\n ModelAndView mav = this.handler.handle(request, response, true);\n \n // use a view resolver.\n// response.getWriter().print(controllerResponse);\n // flush here ?\n// response.flushBuffer();\n// 2801752\n } catch (Exception ex) {\n getServletContext().log(\"Exception : \", ex);\n if(!response.isCommitted()) {\n response.sendError(500, ex.getMessage());\n }\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n\r\n List resultsList = new ArrayList();\r\n\r\n // Receive request from adminPage\r\n String c = request.getParameter(\"action\");\r\n String mem_id = request.getParameter(\"mem_id\");\r\n String id = request.getParameter(\"id\");\r\n\r\n AdminModel am = new AdminModel();\r\n\r\n // Send to model & invoke one of three methods\r\n switch (c) {\r\n case \"Check Approvals\":\r\n resultsList = am.getApprovals();\r\n break;\r\n case \"List Member Payments\":\r\n resultsList = am.listPayments(mem_id);\r\n break;\r\n case \"Approve Outstanding Member\":\r\n am.approvalResult(mem_id);\r\n break;\r\n case \"List Claims\":\r\n resultsList = am.listClaims(id);\r\n break;\r\n case \"Approve Claim\":\r\n am.approveClaim(id);\r\n break;\r\n case \"Reject Claim\":\r\n am.rejectClaim(id);\r\n break;\r\n case \"End of Year Charge\":\r\n am.endOfYearCharge();\r\n break;\r\n }\r\n\r\n // Send back to view (adminPage.jsp)\r\n request.setAttribute(\"output\", resultsList);\r\n RequestDispatcher view = request.getRequestDispatcher(\"/docs/adminPage\");\r\n view.forward(request, response);\r\n }", "@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n viewModule(request, response);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "protected void proccess(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\n\t\t// set response type to text/html\n\t\tresponse.setContentType(\"text/html\");\n\n\t\t// Get PrintWriter to write back to client\n\t\tPrintWriter out = response.getWriter();\n\n\t\t// Get contextPath for any external files such as css, js path\n\t\tString contextPath = getContextPath();\n\n\t\tSTGroup templates = this.getSTGroup();\n\t\tST page = templates.getInstanceOf(\"home\");\n\t\t\n\t\tList<City> cities = service.getAllCitySort();\n\t\t\n\t\tpage.add(\"contextPath\", contextPath);\n\t\tpage.add(\"cities\", cities);\n\n\t\tout.print(page.render());\n\t\tout.flush();\n\t}", "@RequestMapping(\"/equipmentsCalibrationRpt\")\r\n\tpublic String equipmentsCalibrationRpt(Map<String, Object> model) {\n\r\n\t\treturn \"equipmentsCalibrationRpt\";\r\n\t}", "void render(Object rendererTool);", "protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }", "private void doAfterRenderResponse(final PhaseEvent arg0) {\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n boolean wasXmlRequested = isRequestedFormatXml(request);\n if( ! wasXmlRequested ){\n super.doGet(request,response);\n }else{\n try {\n VitroRequest vreq = new VitroRequest(request);\n Configuration config = getConfig(vreq); \n ResponseValues rvalues = processRequest(vreq);\n \n response.setCharacterEncoding(\"UTF-8\");\n response.setContentType(\"text/xml;charset=UTF-8\");\n writeTemplate(rvalues.getTemplateName(), rvalues.getMap(), config, request, response);\n } catch (Exception e) {\n log.error(e, e);\n }\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 double technontech=Double.parseDouble(request.getParameter(\"technontech\"));\n double nontechexp=Double.parseDouble(request.getParameter(\"nontechexp\"));\n double techexp=Double.parseDouble(request.getParameter(\"techexp\"));\n double[][] arr=new double[3][3];\n arr[0][0]=arr[1][1]=arr[2][2]=1;\n arr[0][1]=technontech;\n arr[1][0]=(1/technontech);\n arr[0][2]=techexp;\n arr[2][0]=(1/techexp);\n arr[1][2]=nontechexp;\n arr[2][1]=(1/nontechexp);\n \n double[][] w=new double[3][1];\n String nextPath=\"\";\n \n boolean res=CoreProcess.AHP(arr, w);\n if(res==true)\n {\n nextPath=\"/resumeProcess.html\";\n RequestDispatcher view = request.getRequestDispatcher(nextPath);\n view.forward(request, response); \n }\n else\n {\n out.println(\"<html> <head> <link type=\\\"text/css\\\" href=\\\"./css/materialize.css\\\" rel=\\\"stylesheet\\\">\\n\" \n +\"<link type=\\\"text/css\\\" href=\\\"./css/materialize.min.css\\\" rel=\\\"stylesheet\\\">\\n\"\n +\"<meta charset=\\\"UTF-8\\\">\\n\" \n +\"<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"> \");\n out.println(\"<title> Error Page </title> </head> \");\n out.println(\"<body class=\\\"background light-blue lighten-5\\\">\");\n out.println(\"<h3 class=\\\"brown-text center\\\"> THIS IS AN ERROR PAGE. </h3>\");\n out.println(\"<div class=\\\"row\\\">\\n\" +\n\" <div class=\\\"col s12\\\">\\n\" +\n\" <div class=\\\"card hoverable center deep-purple lighten-5\\\">\\n\" +\n\" <div class=\\\"card-content purple-text\\\">\\n\" +\n\" <span class=\\\"card-title pink-text\\\"> <b> Inconsistencies in the AHP matrix. </b> </span>\" + \n\" <h5> \\n\" +\n\" You are seeing this page because you have entered an inconsistent matrix for the AHP input. \\n\" +\n\" This is usually caused by transitive inconsistencies in the given input. \\n\" +\n\" </h5>\\n\" +\n\" <h5>\\n\" +\n\" For instance, if you had entered technical as more important than non-technical criteria and non-technical criteria as more important than experience, then it is required that technical be more important than experience \\n\" +\n\" Such consistencies are automatically checked by our process so that your job specification makes logical sense. \\n\" +\n\" Now, please click the below button to go back to the AHP page and re-enter your input. Thank you. \\n\" +\n\" </h5>\\n\"+\n\" </div>\" +\n\" </div>\");\n out.println(\"<div class=\\\"row container\\\">\\n\" +\n\" <form action=\\\"AHPPage.html\\\" method=\\\"post\\\" class=\\\"col s12\\\">\"+\n\" <button class=\\\"btn waves-effect waves-light right green accent-4\\\" type=\\\"submit\\\" name=\\\"action\\\"> Go back \\n\" +\n\" <i class=\\\"material-icons right\\\"></i>\\n\" +\n\" </button>\"+\n\" </form> </div> </body> </html>\");\n \n }\n \n }\n }", "void sendMap(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Map<String, Object> contetMap)\r\n\t\t\tthrows IOException;", "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 /* TODO output your page here. You may use following sample code. */\n Object[] profile = data(111);\n for(int i=0; i<4; i++){\n out.print(profile[i]);\n }\n \n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(ResultsDisplay2.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void doTag()\n throws IOException, JspException, JspTagException {\n\n JspWriter out = context.getOut();\n\n if (!RDCUtils.isStringEmpty(namelist)) {\n // (1) Access/create the views map \n Map viewsMap = (Map) context.getSession().\n getAttribute(ATTR_VIEWS_MAP);\n if (viewsMap == null) {\n viewsMap = new HashMap();\n context.getSession().setAttribute(ATTR_VIEWS_MAP, viewsMap);\n }\n \n // (2) Populate form data \n Map formData = new HashMap();\n StringTokenizer nameToks = new StringTokenizer(namelist, \" \");\n while (nameToks.hasMoreTokens()) {\n String name = nameToks.nextToken();\n formData.put(name, context.getAttribute(name));\n }\n \n // (3) Store the form data according to the RDC-struts \n // interface contract\n String key = \"\" + context.hashCode();\n viewsMap.put(key, formData);\n context.getRequest().setAttribute(ATTR_VIEWS_MAP_KEY, key);\n }\n\n if (!RDCUtils.isStringEmpty(clearlist)) { \n // (4) Clear session state based on the clearlist\n if (dialogMap == null) {\n throw new IllegalArgumentException(ERR_NO_DIALOGMAP);\n }\n StringTokenizer clearToks = new StringTokenizer(clearlist, \" \");\n outer:\n while (clearToks.hasMoreTokens()) {\n String clearMe = clearToks.nextToken();\n String errMe = clearMe;\n boolean cleared = false;\n int dot = clearMe.indexOf('.');\n if (dot == -1) {\n if(dialogMap.containsKey(errMe)) {\n dialogMap.remove(errMe);\n cleared = true;\n }\n } else {\n // TODO - Nested data model re-initialization\n BaseModel target = null;\n String childId = null;\n while (dot != -1) {\n try {\n childId = clearMe.substring(0,dot);\n if (target == null) {\n target = (BaseModel) dialogMap.get(childId);\n } else {\n if ((target = RDCUtils.getChildDataModel(target,\n childId)) == null) {\n break;\n }\n }\n clearMe = clearMe.substring(dot+1);\n dot = clearMe.indexOf('.');\n } catch (Exception e) {\n MessageFormat msgFormat =\n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n continue outer;\n }\n }\n if (target != null) {\n cleared = RDCUtils.clearChildDataModel(target,\n clearMe);\n }\n }\n if (!cleared) {\n MessageFormat msgFormat = \n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n }\n }\n }\n\n // (5) Forward request\n try {\n context.forward(submit);\n } catch (ServletException e) {\n // Need to investigate whether refactoring this\n // try to provide blanket coverage makes sense\n MessageFormat msgFormat = new MessageFormat(ERR_FORWARD_FAILED);\n // Log error and send error message to JspWriter \n out.write(msgFormat.format(new Object[] {submit, namelist}));\n log.error(msgFormat.format(new Object[] {submit, namelist}));\n } // end of try-catch\n }", "protected void processView(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"here\");\n\t\tArrayList<String> errorList = new ArrayList<String>();\n\n\t\tString[] zone_name_array;\n\t\tString[] zone_type_array;\n\t\tString[] zone_heating_cooling_array;\n\t\tString[] zone_min_temp_array;\n\t\tString[] zone_max_temp_array;\n\t\tString[] zone_operation_array;\n\t\tString[] building_array;\n\n\t\tif (request.getAttribute(\"hasPastData\") == null) {\n\t\t\tbuilding_array = request.getParameterValues(\"building_name[]\");\n\t\t\tboolean bNameDup = checkDuplicate(building_array);\n\t\t\tif (bNameDup) {\n\t\t\t\terrorList.add(\"Building Names must be unique\");\n\t\t\t}\n\t\n\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\tint num = i + 1;\n\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\tboolean zNameDup = checkDuplicate(zone_name_array);\n\t\t\t\tif (zNameDup) {\n\t\t\t\t\terrorList.add(\"Zone Names with each Building must be unique\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\tint num = i + 1;\n\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\tzone_min_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_min_temp[]\");\n\t\t\t\tzone_max_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_max_temp[]\");\n\t\n\t\t\t\tfor (int j = 0; j < zone_min_temp_array.length; j++) {\n\t\t\t\t\tint minTemp = Integer.parseInt(zone_min_temp_array[j]);\n\t\t\t\t\tint maxTemp = Integer.parseInt(zone_max_temp_array[j]);\n\t\t\t\t\tif (minTemp > maxTemp) {\n\t\t\t\t\t\terrorList.add(building_array[i] + \"_\" + zone_name_array[j]\n\t\t\t\t\t\t\t\t+ \": Min Temp must be smaller than Max Temp\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tHttpSession session = request.getSession();\n\t\tPrintWriter out = response.getWriter();\n\n\t\tif (errorList.size() != 0) {\n\t\t\tString errors = \"\";\n\t\t\tfor (String s : errorList) {\n\t\t\t\terrors = errors + s + \";\";\n\t\t\t}\n\n\t\t\tout.println(errors);\n\n\t\t} else {\n\t\t\tString company = (String) session.getAttribute(\"company\");\n\t\t\tint month = PeriodManager.getMonthInt(company);\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.set(Calendar.MONTH, month);\n\t\t\tcal.set(Calendar.DATE, 1);\n\t\t\tCalendar today = Calendar.getInstance();\n\t\t\tint previousYear = Calendar.getInstance().get(Calendar.YEAR) - 1;\n\t\t\tif (today.before(cal)) {\n\t\t\t\tpreviousYear -= 1;\n\t\t\t}\n\n\t\t\tString quest_id = \"\";\n\t\t\ttry {\n\t\t\t\tquest_id = (SQLManager.getRowCount(\"questionnaire\") + 1) + \"\";\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}\n\n\t\t\t// store in QUESTIONNAIRE table\n\t\t\tString values_quest = \"\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + quest_id + \"\\',\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + request.getParameter(\"site_id\") + \"\\',\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + previousYear + \"\\',\";\n\t\t\t\n\t\t\t//check if there is past data for this site\n\t\t\tString where = \"site_id = \\'\" + request.getParameter(\"site_id\") + \"\\' and year = \\'\" + (previousYear-1) + \"\\'\";\n\t\t\tRetrievedObject ro = SQLManager.retrieveRecords(\"questionnaire\", where);\n\t\t\tResultSet rs = ro.getResultSet();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t//if yes\n\t\t\t\tString past_quest_id = \"\";\n\t\t\t\tif (rs.isBeforeFirst() ) { \n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tpast_quest_id = rs.getString(\"questionnaire_id\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//copy values from past data\n\t\t\t\t\t\tfor (int i = 4; i <= 13; i++) {\n\t\t\t\t\t\t\tString value = rs.getString(i);\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + value + \"\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 14; i <= 26; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + rs.getString(27) + \"\\',\";\n\t\t\t\t\t\tfor (int i = 28; i <= 32; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 33; i <= 48; i++) {\n\t\t\t\t\t\t\tString value = rs.getString(i);\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + value + \"\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 49; i <= 80; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + 0 + \"\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(values_quest);\n\t\t\t\t\t}\n\t\t\t\t\trs.close();\n\t\t\t\t\t//insert into questionnaire db\n\t\t\t\t\tSQLManager.insertRecord(\"questionnaire\", values_quest);\n\t\t\t\t\tsession.setAttribute(\"quest_id\", quest_id);\n\t\t\t\t\t\n\t\t\t\t\t//get the past data site definition\n\t\t\t\t\twhere = \"questionnaire_id = \\'\" + past_quest_id + \"\\'\";\n\t\t\t\t\tRetrievedObject ro_site_def = SQLManager.retrieveRecords(\"site_definition\", where);\n\t\t\t\t\tResultSet rs_site_def = ro_site_def.getResultSet();\n\t\t\t\t\tString past_site_def = \"\";\n\t\t\t\t\tString past_site_act = \"\";\n\t\t\t\t\tString past_building_name = \"\";\n\t\t\t\t\twhile (rs_site_def.next()) {\n\t\t\t\t\t\tpast_site_def = rs_site_def.getString(2);\n\t\t\t\t\t\tpast_site_act = rs_site_def.getString(3);\n\t\t\t\t\t\tpast_building_name = rs_site_def.getString(4);\n\t\t\t\t\t}\n\t\t\t\t\trs_site_def.close();\n\t\t\t\t\t\n\t\t\t\t\t//replace past data quest id with new quest id\n\t\t\t\t\tString new_site_def = past_site_def.replace(past_quest_id, quest_id);\n\t\t\t\t\t\n\t\t\t\t\t//insert into site definition db\n\t\t\t\t\tString values_site_def = \"\\'\" + quest_id + \"\\',\\'\" + new_site_def + \"\\',\\'\" + past_site_act + \"\\',\\'\" + past_building_name + \"\\'\";\n\t\t\t\t\tSQLManager.insertRecord(\"site_definition\", values_site_def);\n\t\t\t\t\t\n\t\t\t\t\t//insert into the different zone activity db\n\t\t\t\t\t//use delimiter ^ to split by building\n\t\t\t\t\tString[] site_def_info_array = past_site_def.split(\"\\\\^\");\n\t\t\t\t\tString[] site_act_array = past_site_act.split(\"\\\\^\");\n\t\t\t\t\tfor (int i = 0; i < site_def_info_array.length; i++) {\n\t\t\t\t\t\tString def = site_def_info_array[i];\n\t\t\t\t\t\tString act = site_act_array[i];\n\t\t\t\t\t\t//use delimiter * to split each building into zones\n\t\t\t\t\t\tString[] def_array = def.split(\"\\\\*\");\n\t\t\t\t\t\tString[] act_array = act.split(\"\\\\*\");\n\t\t\t\t\t\tfor (int j = 0; j < def_array.length; j++) {\n\t\t\t\t\t\t\tString d = def_array[j];\n\t\t\t\t\t\t\tString a = act_array[j];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint count = 0;\n\t\t\t\t\t\t\tString tableName = \"\";\n\t\t\t\t\t\t\tif (a.equals(\"wh_mezzanine\")) {\n\t\t\t\t\t\t\t\ttableName = \"mezzanine_form\";\n\t\t\t\t\t\t\t\tcount = 18;\n\t\t\t\t\t\t\t} else if (a.equals(\"wh_ground_to_roof\")) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"gtr\");\n\t\t\t\t\t\t\t\ttableName = \"ground_to_roof_form\";\n\t\t\t\t\t\t\t\tcount = 28;\n\t\t\t\t\t\t\t} else if (a.equals(\"wh_value_add\")) {\n\t\t\t\t\t\t\t\ttableName = \"warehouse_value_add_form\";\n\t\t\t\t\t\t\t\tcount = 20;\n\t\t\t\t\t\t\t} else if (a.equals(\"offices\")) {\n\t\t\t\t\t\t\t\ttableName = \"office_form\";\n\t\t\t\t\t\t\t\tcount = 21;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//retrieve zone record from the respective table\n\t\t\t\t\t\t\twhere = \"zone_id = \\'\" + d + \"\\'\";\n\t\t\t\t\t\t\tRetrievedObject ro_zone = SQLManager.retrieveRecords(tableName, where);\n\t\t\t\t\t\t\tResultSet rs_zone = ro_zone.getResultSet();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString new_zone_id = quest_id + \"-\" + d.split(\"-\")[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString values = \"\\'\" + quest_id + \"\\',\\'\" + new_zone_id + \"\\',\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (rs_zone.next()) {\n\t\t\t\t\t\t\t\tfor (int k = 3; k <= 11; k++) {\n\t\t\t\t\t\t\t\t\tvalues = values + \"\\'\" + rs_zone.getString(k) + \"\\',\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trs_zone.close();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove the last comma\n\t\t\t\t\t\t\tvalues = values.substring(0, values.length()-1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int m = 0; m < count; m++) {\n\t\t\t\t\t\t\t\tvalues = values + \",\\'\\'\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\">>>> values: \" + values); \n\t\t\t\t\t\t\tSQLManager.insertRecord(tableName, values);\n\t\t\t\t\t\t\tSystem.out.println(\"done!!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trequest.setAttribute(\"fromPastData\", \"true\");\n\t\t\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"Questionnaire.jsp\");\n\t\t\t\t\trd.forward(request, response);\n\t\t\t\t\t\n\t\t\t\t//if no\n\t\t\t\t} else {\n\t\t\t\t\tfor (int i = 0; i < 77; i++) {\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t}\n\t\t\t\t\tvalues_quest = values_quest + \"0\";\n\t\t\t\t\tvalues_quest = values_quest + \",\\'\\',\\'\\'\";\n\t\t\t\t\t\n\t\t\t\t\t//insert into db\n\t\t\t\t\tSQLManager.insertRecord(\"questionnaire\", values_quest);\n\t\t\t\t\tsession.setAttribute(\"quest_id\", quest_id);\n\t\t\t\t\t\n\t\t\t\t\t// site_def_details and site_def_activity to store in\n\t\t\t\t\t// SITE_DEFINITION table\n\t\t\t\t\tString site_def_details = \"\";\n\t\t\t\t\tString site_def_activity = \"\";\n\t\t\t\t\tString site_def_building_name = \"\";\n\t\t\n\t\t\t\t\tbuilding_array = request.getParameterValues(\"building_name[]\");\n\t\t\n\t\t\t\t\tString zone_details = \"\";\n\t\t\t\t\tArrayList<String> zone_list = new ArrayList<String>();\n\t\t\t\t\tString tableName = \"\";\n\t\t\t\t\tString values = \"\";\n\t\t\n\t\t\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\t\t\tint num = i + 1;\n\t\t\t\t\t\tzone_type_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_activity[]\");\n\t\t\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\t\t\tzone_heating_cooling_array = request.getParameterValues(\"b\"\n\t\t\t\t\t\t\t\t+ num + \"_zone_heating_cooling[]\");\n\t\t\t\t\t\tzone_min_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_min_temp[]\");\n\t\t\t\t\t\tzone_max_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_max_temp[]\");\n\t\t\t\t\t\tzone_operation_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_operation[]\");\n\t\t\n\t\t\t\t\t\tsite_def_building_name = site_def_building_name\n\t\t\t\t\t\t\t\t+ building_array[i] + \"*\";\n\t\t\n\t\t\t\t\t\tfor (int j = 0; j < zone_type_array.length; j++) {\n\t\t\t\t\t\t\tString zone_type = zone_type_array[j];\n\t\t\t\t\t\t\t// add to zone_list\n\t\t\t\t\t\t\tString zone_element = building_array[i] + \",\"\n\t\t\t\t\t\t\t\t\t+ zone_name_array[j] + \",\" + zone_type_array[j];\n\t\t\t\t\t\t\tzone_list.add(zone_element);\n\t\t\n\t\t\t\t\t\t\t// add to zone_details string\n\t\t\t\t\t\t\tzone_details = zone_details + zone_element + \"//\";\n\t\t\n\t\t\t\t\t\t\t// add to site_info_details string to store in\n\t\t\t\t\t\t\t// SITE_DEFINITION DB\n\t\t\t\t\t\t\tsite_def_details = site_def_details + quest_id + \"-\"\n\t\t\t\t\t\t\t\t\t+ building_array[i] + \"_\" + zone_name_array[j]\n\t\t\t\t\t\t\t\t\t+ \"*\";\n\t\t\t\t\t\t\tsite_def_activity = site_def_activity + zone_type + \"*\";\n\t\t\n\t\t\t\t\t\t\t// add to DB\n\t\t\t\t\t\t\tvalues = \"\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + quest_id + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + quest_id + \"-\" + building_array[i]\n\t\t\t\t\t\t\t\t\t+ \"_\" + zone_name_array[j] + \"\\',\";\n\t\t\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + (i + 1) + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + (j + 1) + \"\\',\";\n\t\t\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + building_array[i] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_name_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_type_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_heating_cooling_array[j]\n\t\t\t\t\t\t\t\t\t+ \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_min_temp_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_max_temp_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_operation_array[j] + \"\\'\";\n\t\t\n\t\t\t\t\t\t\tif (zone_type.equals(\"wh_mezzanine\")) {\n\t\t\t\t\t\t\t\ttableName = \"mezzanine_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"wh_ground_to_roof\")) {\n\t\t\t\t\t\t\t\ttableName = \"ground_to_roof_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"wh_value_add\")) {\n\t\t\t\t\t\t\t\ttableName = \"warehouse_value_add_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"offices\")) {\n\t\t\t\t\t\t\t\ttableName = \"office_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t\tSQLManager.insertRecord(tableName, values);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// delimit site_def_details and site_def_activity by ^ (to\n\t\t\t\t\t\t// separate by buildings)\n\t\t\t\t\t\tsite_def_details = site_def_details.substring(0,\n\t\t\t\t\t\t\t\tsite_def_details.length() - 1) + \"^\";\n\t\t\t\t\t\tsite_def_activity = site_def_activity.substring(0,\n\t\t\t\t\t\t\t\tsite_def_activity.length() - 1) + \"^\";\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\t// store site_def_details and site_def_activity in SITE_DEFINITION\n\t\t\t\t\t// table\n\t\t\t\t\tsite_def_details = site_def_details.substring(0,\n\t\t\t\t\t\t\tsite_def_details.length() - 1);\n\t\t\t\t\tsite_def_activity = site_def_activity.substring(0,\n\t\t\t\t\t\t\tsite_def_activity.length() - 1);\n\t\t\t\t\tsite_def_building_name = site_def_building_name.substring(0,\n\t\t\t\t\t\t\tsite_def_building_name.length() - 1);\n\t\t\t\t\tString site_def_values = \"\\'\" + quest_id + \"\\',\\'\"\n\t\t\t\t\t\t\t+ site_def_details + \"\\',\\'\" + site_def_activity + \"\\',\\'\"\n\t\t\t\t\t\t\t+ site_def_building_name + \"\\'\";\n\t\t\t\t\tSQLManager.insertRecord(\"site_definition\", site_def_values);\n\t\t\n\t\t\t\t\tsession.setAttribute(\"zone_details\", zone_details);\n\t\t\n\t\t\t\t\tString zone_string = \"\";\n\t\t\t\t\tfor (String z : zone_list) {\n\t\t\t\t\t\tzone_string = zone_string + z + \"//\";\n\t\t\t\t\t}\n\t\t\t\t\tzone_string = zone_string.substring(0, zone_string.length() - 2);\n\t\t\n\t\t\t\t\tsession.setAttribute(\"zone_string\", zone_string);\n\t\t\t\t\tout.println(\"yes\");\n\t\t\t\t}\t\n\t\n\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\n\t}", "void render(Map<String,List<Map<String,String>>> data);", "@Override\n protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \tString num1Str = request.getParameter(\"num1\");\n \tString num2Str = request.getParameter(\"num2\");\n \tString sum = request.getParameter(\"sum\");\n \tString sub = request.getParameter(\"sub\");\n \tString multi = request.getParameter(\"multi\");\n \tString divide = request.getParameter(\"divide\");\n \tString mud = request.getParameter(\"mud\");\n \tString pow = request.getParameter(\"pow\");\n \tdouble result;\n \ttry {\n\t\t\tdouble num1 = Double.parseDouble(num1Str);\n\t\t\tdouble num2 = Double.parseDouble(num2Str);\n\t\t\tCalcModel cal = new CalcModel(num1,num2);\n\t\t\t if(sum != null) result = cal.sum();\n\t\t\t else if (sub != null) result = cal.sub();\n\t\t\t else if (multi != null) result = cal.multi();\n\t\t\t else if (divide != null) result = cal.divide();\n\t\t\t else if (mud != null) result = cal.remainder(); \n\t\t\t else result = cal.power();\n\t\t\t \n\t\t\t\n\t\t\t\n\t\t\t// this is to result output using attribute\n\t\t\tRequestDispatcher desp = request.getRequestDispatcher(\"CalcAssignment/Calc.jsp\");\n\t\t\trequest.setAttribute(\"resultAttr\", result);\n\t\t\tdesp.forward(request, response);\n\t\t} catch (NumberFormatException e) {\n\t\t\tRequestDispatcher desp1 = request.getRequestDispatcher(\"CalcAssignment/erro.jsp\");\n\t\t\trequest.setAttribute(\"msgAttr\", e.getMessage());\n\t\t\tdesp1.forward(request, response);\n\t\t\t\n\t\t}\n \t\n \t\n \t\n \t\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n String contextPath = request.getContextPath();\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet DIVIDE</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet DivideServlet at \" + contextPath + \"</h1>\");\n \n org.netbeans.test.freeformlib.Multiplier d = new org.netbeans.test.freeformlib.Multiplier();\n try {\n String attributeX = request.getParameter(\"x\");\n if (attributeX == null) {\n attributeX = \"\";\n }\n d.setX(Double.parseDouble(attributeX));\n } catch(NumberFormatException e) {\n }\n try {\n String attributeY = request.getParameter(\"y\");\n if (attributeY == null) {\n attributeY = \"\";\n }\n d.setY(Double.parseDouble(attributeY));\n } catch(NumberFormatException e) {\n }\n \n if (d.getY() == 0) {\n out.println(\"<b>y</b> can't be 0!\");\n } else {\n out.println(\"\" + d.getX() + \" / \" + d.getY() + \" = \" + d.getMultiplication());\n }\n \n out.println(\"<br/>\");\n out.println(\"<a href=\\\"index.jsp\\\">Go back to index.jsp</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n \n out.close();\n }", "@Override\n\tpublic void doView(RenderRequest renderRequest,\n\t\t\tRenderResponse renderResponse) throws IOException, PortletException {\n\t\tsuper.doView(renderRequest, renderResponse);\n\t}", "protected void doDispatch (RenderRequest request,\n\t\t\t RenderResponse response) throws PortletException,java.io.IOException\n {\n WindowState state = request.getWindowState();\n \n if ( ! state.equals(WindowState.MINIMIZED)) {\n PortletMode mode = request.getPortletMode();\n if (mode.equals(PortletMode.VIEW)) {\n\tdoView (request, response);\n }\n else if (mode.equals(PortletMode.EDIT)) {\n\tdoEdit (request, response);\n }\n else if (mode.equals(PortletMode.HELP)) {\n\tdoHelp (request, response);\n }\n else {\n\tthrow new PortletException(\"unknown portlet mode: \" + mode);\n }\n }\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet processOutPass</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet processOutPass at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n Categories recResp = new Categories();\n int getCount = 0;\n // recResp.recipeCategories.getRecipeCategory().get(0).categoryName;\n ArrayOfRecipeClassification tests = new ArrayOfRecipeClassification();\n GetRecipeCategoriesResponse ff = new GetRecipeCategoriesResponse();\n // rc = tests.recipeClassification;\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\" <style>\\n\" +\n \"#header {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#nav {\\n\" +\n \" line-height:30px;\\n\" +\n \" background-color:#eeeeee;\\n\" +\n \" \\n\" +\n \" width:100px;\\n\" +\n \" float:left;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#row {\\n\" +\n \" display:inline-block;\\n\" +\n \"}\\n\" +\n \"#sectionl {\\n\" +\n \" width:350px;\\n\" +\n \" float:left;\\n\" +\n \" padding:30px;\\n\" +\n \"}\\n\" +\n \"#sectionC {\\n\" +\n \" width:500px;\\n\" +\n \" float:center;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"#sectionr {\\n\" +\n \" width:250px;\\n\" +\n \" float:right;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"\\n\" +\n \"#footer {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" clear:both;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"</style> \");\n out.println(\"<head>\" );\n out.println(\"<LINK href=\\\"C:/Users/hanemay/Documents/NetBeansProjects/CookingApp/web/style.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\">\");\n out.println(\"<div id=\\\"header\\\">\\n\" +\n \"<h1>Kraft Recipes</h1>\\n\" +\n \"</div>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n Enumeration<String> infomaterials= request.getParameterNames();\n while(infomaterials.hasMoreElements()) {\n System.out.println(infomaterials.nextElement()); \n } \n int amount = 100;\n String[] test = recResp.returnCats();\n try{\n amount = Integer.parseInt(request.getParameter(\"Question3\"));\n }catch(Exception e){\n \n }\n Recipes reccResp = new Recipes(amount); \n try{\n if(request.getParameter(\"isHealthy\").equalsIgnoreCase(\"healthy\"))\n reccResp.setHealthy(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"isFastFood\").equalsIgnoreCase(\"Fast food\"))\n reccResp.setUnder30Minutes(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"reqPic\").equalsIgnoreCase(\"Pictures required\"))\n reccResp.setbIsRecipePhotoRequired(true);\n }catch(Exception e){}\n reccResp.setbIsRecipePhotoRequired(true);\n while(recResp.amountOfCategories != getCount){\n reccResp.setbIsRecipePhotoRequired(true);\n reccResp.Search(recResp,recResp.recResp.getRecipeCategories().getRecipeCategory().get(getCount).categoryID);\n RecipeSummariesResponse recSumResp = reccResp.results();\n for(int recNames = 0; recNames < reccResp.getMaxAmountItems(); recNames++) {\n String url = recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).photoURL;\n if(recNames == 0){\n out.println(\"<div id=\\\"sectionC\\\">\\n\" +\n \"<h2>\"+test[getCount]+\"</h2>\\n\" +\n \"</div>\");}\n // if(recNames % 2==0){\n out.println(\"<div \\\"row\\\">\\n\" +\n \"<div id=\\\"sectionl\\\">\\n\" +\n \"<h3>\"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).recipeName+\"</h3>\\n\" + \n \"<img src=\\\"\"+url+\"\\\" style=\\\"height:254px;width:254px\\\">\\n\" +\n \"<p>\\n\" +\n \"<p>Number of ingrediens needed for this recipe : \"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()+\"</p>\\n\" +\n \"\");\n RecipeDetailResponse rec = reccResp.soapService.getRecipeByRecipeID(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getRecipeID(), true, 1, 1);\n for(int ingredientCounter = 0; ingredientCounter < Integer.parseInt(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()); ingredientCounter++ ){\n out.println(\"<p>\" + rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).ingredientName + \" amount : \"+ rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).quantityNum+\" \"+\n \"</p>\");\n }\n out.println(\"</p>\");\n out.println(\"</div>\\n\" );\n } \n getCount ++;\n }\n out.println(\"</body>\"); \n out.println(\"</html>\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/json;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n\n XTreeDictionary data = new XTreeDictionary();\n MapConverter map = new MapConverter(data);\n Gson gson = new Gson();\n String bid = request.getParameter(\"bid\");\n if (bid == null ? true : bid.isEmpty()) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n XArrayList booking_list = AbstractEntity.readDataFormCsv(new Booking());\n booking_list = booking_list.binarySearchAndSort(\"booking_id\", bid, Booking.class);\n if (booking_list == null ? true : booking_list.isEmpty()) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n Booking b = (Booking) booking_list.get(0);\n if (b == null ? true : b.isNotNull() || b.getDriver_id() == null) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n if (b.getBookingStatus().equals(BookingStatus.WATING_ACCEPTED)) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n\n XArrayList driver_list = AbstractEntity.readDataFormCsv(new Driver());\n driver_list = driver_list.binarySearchAndSort(\"user_id\", b.getDriver_id(), Driver.class);\n if (driver_list == null ? true : driver_list.isEmpty() || driver_list.get(0) == null) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n\n // Have update\n Driver d = (Driver) driver_list.get(0);\n // ouser phone, ouser name, ouser profile picture, booking status name\n // ouser_phone, ouser_name, ouser_profile, booking_status\n data.add(\"status\", \"OK\");\n data.add(\"ouser_phone\", d.getPhoneNumber() == null ? \"\" : d.getPhoneNumber());\n data.add(\"ouser_name\", d.getName());\n data.add(\"booking_status\", b.getBookingStatus());\n data.add(\"ouser_profile\", Functions.getProfilePic_byid(d.getId()));\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n }\n\n }", "@Test\n public void testRender(){\n Mockito.doNothing().when(renderer).renderWorld(level);\n Mockito.doNothing().when(renderer).renderScore();\n Mockito.doNothing().when(renderer).renderLives();\n renderer.render();\n verify(renderer).renderWorld(level);\n verify(renderer).renderScore();\n verify(renderer).renderLives();\n verify(batch).begin();\n verify(batch).end();\n }", "private static String unguardedRenderResponseContent(EvaluableRequest evaluableRequest, Map<String, Object> requestContext, TemplateEngine engine, String responseContent) {\n engine.getContext().setVariable(\"request\", evaluableRequest);\n if (requestContext != null) {\n engine.getContext().setVariables(requestContext);\n }\n try {\n return engine.getValue(responseContent);\n } catch (Throwable t) {\n log.error(\"Failing at evaluating template \" + responseContent, t);\n }\n return responseContent;\n }", "@Test\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void testGridOutput() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"LOAD_CONFIG\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\tfinal String out = \"{\\\"id\\\":\\\"test\\\",\\\"url\\\":\\\"molgenis.do?__target\\\\u003dtest\\\\u0026__action\\\\u003ddownload_json\\\",\\\"datatype\\\":\\\"json\\\",\\\"pager\\\":\\\"#testPager\\\",\\\"colNames\\\":[\\\"Country.Code\\\",\\\"Country.Name\\\",\\\"Country.Continent\\\",\\\"Country.Region\\\",\\\"Country.SurfaceArea\\\",\\\"Country.IndepYear\\\",\\\"Country.Population\\\",\\\"Country.LifeExpectancy\\\",\\\"Country.GNP\\\",\\\"Country.GNPOld\\\",\\\"Country.LocalName\\\",\\\"Country.GovernmentForm\\\",\\\"Country.HeadOfState\\\",\\\"Country.Capital\\\",\\\"Country.Code2\\\",\\\"City.ID\\\",\\\"City.Name\\\",\\\"City.CountryCode\\\",\\\"City.District\\\",\\\"City.Population\\\",\\\"CountryLanguage.CountryCode\\\",\\\"CountryLanguage.Language\\\",\\\"CountryLanguage.IsOfficial\\\",\\\"CountryLanguage.Percentage\\\"],\\\"colModel\\\":[{\\\"name\\\":\\\"Country.Code\\\",\\\"index\\\":\\\"Country.Code\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Code\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Code\\\"},{\\\"name\\\":\\\"Country.Name\\\",\\\"index\\\":\\\"Country.Name\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Name\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Name\\\"},{\\\"name\\\":\\\"Country.Continent\\\",\\\"index\\\":\\\"Country.Continent\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Continent\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Continent\\\"},{\\\"name\\\":\\\"Country.Region\\\",\\\"index\\\":\\\"Country.Region\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Region\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Region\\\"},{\\\"name\\\":\\\"Country.SurfaceArea\\\",\\\"index\\\":\\\"Country.SurfaceArea\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.SurfaceArea\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.SurfaceArea\\\"},{\\\"name\\\":\\\"Country.IndepYear\\\",\\\"index\\\":\\\"Country.IndepYear\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.IndepYear\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.IndepYear\\\"},{\\\"name\\\":\\\"Country.Population\\\",\\\"index\\\":\\\"Country.Population\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Population\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Population\\\"},{\\\"name\\\":\\\"Country.LifeExpectancy\\\",\\\"index\\\":\\\"Country.LifeExpectancy\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.LifeExpectancy\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.LifeExpectancy\\\"},{\\\"name\\\":\\\"Country.GNP\\\",\\\"index\\\":\\\"Country.GNP\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GNP\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GNP\\\"},{\\\"name\\\":\\\"Country.GNPOld\\\",\\\"index\\\":\\\"Country.GNPOld\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GNPOld\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GNPOld\\\"},{\\\"name\\\":\\\"Country.LocalName\\\",\\\"index\\\":\\\"Country.LocalName\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.LocalName\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.LocalName\\\"},{\\\"name\\\":\\\"Country.GovernmentForm\\\",\\\"index\\\":\\\"Country.GovernmentForm\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GovernmentForm\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GovernmentForm\\\"},{\\\"name\\\":\\\"Country.HeadOfState\\\",\\\"index\\\":\\\"Country.HeadOfState\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.HeadOfState\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.HeadOfState\\\"},{\\\"name\\\":\\\"Country.Capital\\\",\\\"index\\\":\\\"Country.Capital\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Capital\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Capital\\\"},{\\\"name\\\":\\\"Country.Code2\\\",\\\"index\\\":\\\"Country.Code2\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Code2\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Code2\\\"},{\\\"name\\\":\\\"City.ID\\\",\\\"index\\\":\\\"City.ID\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.ID\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.ID\\\"},{\\\"name\\\":\\\"City.Name\\\",\\\"index\\\":\\\"City.Name\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.Name\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.Name\\\"},{\\\"name\\\":\\\"City.CountryCode\\\",\\\"index\\\":\\\"City.CountryCode\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.CountryCode\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.CountryCode\\\"},{\\\"name\\\":\\\"City.District\\\",\\\"index\\\":\\\"City.District\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.District\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.District\\\"},{\\\"name\\\":\\\"City.Population\\\",\\\"index\\\":\\\"City.Population\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.Population\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.Population\\\"},{\\\"name\\\":\\\"CountryLanguage.CountryCode\\\",\\\"index\\\":\\\"CountryLanguage.CountryCode\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.CountryCode\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.CountryCode\\\"},{\\\"name\\\":\\\"CountryLanguage.Language\\\",\\\"index\\\":\\\"CountryLanguage.Language\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.Language\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.Language\\\"},{\\\"name\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"index\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.IsOfficial\\\"},{\\\"name\\\":\\\"CountryLanguage.Percentage\\\",\\\"index\\\":\\\"CountryLanguage.Percentage\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.Percentage\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.Percentage\\\"}],\\\"rowNum\\\":10,\\\"rowList\\\":[10,20,30],\\\"viewrecords\\\":true,\\\"caption\\\":\\\"test\\\",\\\"autowidth\\\":true,\\\"sortname\\\":\\\"\\\",\\\"sortorder\\\":\\\"desc\\\",\\\"height\\\":\\\"auto\\\",\\\"postData\\\":{\\\"filters\\\":{\\\"groupOp\\\":\\\"AND\\\",\\\"rules\\\":[]},\\\"rows\\\":0,\\\"page\\\":0},\\\"jsonReader\\\":{\\\"id\\\":\\\"Name\\\",\\\"repeatitems\\\":false},\\\"settings\\\":{\\\"del\\\":false,\\\"add\\\":false,\\\"edit\\\":false,\\\"search\\\":true},\\\"toolbar\\\":[true,\\\"top\\\"]}\";\n\n\t\t// test whether the desired json data is written\n\t\tverify(mockOutstream).println(out);\n\n\t\t// some tests to check the structure of the json\n\t\tfinal Gson gson = new Gson();\n\t\tfinal Map<String, Object> map2 = gson.fromJson(out, Map.class);\n\t\tassertEquals(\"test\", map2.get(\"id\"));\n\t\tassertEquals(\"molgenis.do?__target\\u003dtest\\u0026__action\\u003ddownload_json\", map2.get(\"url\"));\n\t\tassertEquals(Arrays.asList(\"Country.Code\", \"Country.Name\", \"Country.Continent\", \"Country.Region\",\n\t\t\t\t\"Country.SurfaceArea\", \"Country.IndepYear\", \"Country.Population\", \"Country.LifeExpectancy\",\n\t\t\t\t\"Country.GNP\", \"Country.GNPOld\", \"Country.LocalName\", \"Country.GovernmentForm\", \"Country.HeadOfState\",\n\t\t\t\t\"Country.Capital\", \"Country.Code2\", \"City.ID\", \"City.Name\", \"City.CountryCode\", \"City.District\",\n\t\t\t\t\"City.Population\", \"CountryLanguage.CountryCode\", \"CountryLanguage.Language\",\n\t\t\t\t\"CountryLanguage.IsOfficial\", \"CountryLanguage.Percentage\"), map2.get(\"colNames\"));\n\t\tfinal Map<?, ?> countryCodeColumn = ((ArrayList<Map<?, ?>>) map2.get(\"colModel\")).get(0);\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"name\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"index\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"title\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"path\"));\n\t\tassertEquals(Arrays.asList(\"eq\", \"ne\", \"bw\", \"bn\", \"ew\", \"en\", \"cn\", \"nc\"),\n\t\t\t\t((Map<?, ?>) countryCodeColumn.get(\"searchoptions\")).get(\"sopt\"));\n\t\tassertEquals(10.0, map2.get(\"rowNum\"));\n\t\tassertEquals(Arrays.asList(10.0, 20.0, 30.0), map2.get(\"rowList\"));\n\t\tassertEquals(\"desc\", map2.get(\"sortorder\"));\n\t}", "@Override\n\tprotected void buildExcelDocument(Map<String, Object> model, HSSFWorkbook workbook, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception \n\t{\n\t\t\n\t\tString formName = (String)model.get(\"formName\");\n\t\tif (\"Supplier\".equals(formName))\n\t\t\tsetSupplierExcelData(model, workbook);\n\t\telse if (\"Customer\".equals(formName))\n\t\t\tsetCustomerExcelData(model, workbook);\n\t\telse if (\"Item\".equals(formName))\n\t\t\tsetItemExcelData(model, workbook);\n\t\telse if (\"NonInventoryItem\".equals(formName))\n\t\t\tsetNonInventoryExcelData(model, workbook);\n\t\telse if (\"Project\".equals(formName))\n\t\t\tsetProjectExcelData(model, workbook);\n\t\telse if (\"Warehouse\".equals(formName))\n\t\t\tsetWarehouseExcelData(model, workbook);\n\t\t\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\" + formName);\n\t\n\t}", "protected void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\trequest.setCharacterEncoding(\"UTF-8\");\r\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\r\n\t\tBoardDTO dto = new BoardDTO();\r\n\t\tdto.setbTitle(request.getParameter(\"bTitle\"));\r\n\t\tdto.setbWriter(request.getParameter(\"bWriter\"));\r\n\t\tdto.setbPassword(request.getParameter(\"bPassword\"));\r\n\t\tdto.setbContent(request.getParameter(\"bContent\"));\r\n\t\tWirteService writesvc = new WirteService();\r\n\t\twritesvc.WirteService(dto);\r\n\t}", "protected void processTemplate(Map<String,?> attributes, Writer out, Template template, String encoding) throws IOException {\n long startTime = System.currentTimeMillis();\n\n Context context = buildContext(attributes);\n template.setEncoding(encoding);\n\n try {\n template.merge(context, out);\n log.debug(\"Velocity template transform processed in \" + \n (System.currentTimeMillis() - startTime) + \" ms\");\n } catch (ResourceNotFoundException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (ParseErrorException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (Exception errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/json;charset=utf-8\");\n try (PrintWriter out = response.getWriter()) {\n\n String file = request.getParameter(\"file\");\n String className = file.substring(0, file.indexOf(\".\"));\n\n try {\n \n JSONObject obj = new JSONObject();\n JSONArray errArray = new JSONArray();\n JSONArray outArray = new JSONArray();\n \n for(String aError : execErroutput(Config.DATA_PATH, Config.CMD_ENCODE, className)){\n errArray.put(aError);\n }\n for(String aOutput : execOutput(Config.DATA_PATH, Config.CMD_ENCODE, className)){\n outArray.put(aOutput);\n }\n \n obj.put(\"Error\", errArray);\n obj.put(\"Output\", outArray);\n \n out.println(obj.toString(4));\n \n } catch (Exception e) {\n System.err.println(e);\n }\n\n }\n }", "private void doSearchError(Map<String, Object> map, Configuration config, HttpServletRequest request, HttpServletResponse response) {\n writeTemplate(TEMPLATE_DEFAULT, map, config, request, response);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet GetWallGroupPostsServlet</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet GetWallGroupPostsServlet at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n */\n } finally { \n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\"); \n PrintWriter out = response.getWriter();\n \n /**\n * cdmsDO :: addMarket\n * --> cdmaCity\n * --> cdmaBorough\n * --> cdmaLocality\n * --> cdmCompany\n * :: getMarket\n * --> cdmID (OPTIONAL)\n * :: deleteMarket\n * --> cdmID\n *\n * \n * !! SHORTCUTs !!\n * carpe diem market --> cdm\n * carpe diem market address --> cdma\n * carpe diem market servlet --> cdms \n *\n */\n HttpSession session = request.getSession(false);\n Gson gson = new Gson();\n MysqlDBOperations mysql = new MysqlDBOperations();\n ResourceProperty resource = new ResourceProperty(\"com.generic.resources.mysqlQuery\");\n Result res = Result.FAILURE_PROCESS;\n Map resultMap = new HashMap();\n \n \n \n //verbose(request);\n \n \n \n //**********************************************************************\n //**********************************************************************\n //** STRIKE UP SERVLET OPERATION\n //**********************************************************************\n //**********************************************************************\n try {\n \n \n \n if(request.getParameter(\"cdmsDO\")!=null){ \n switch(request.getParameter(\"cdmsDO\")){ \n \n //**************************************************************\n //**************************************************************\n //** ADD TO MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"addMarket\": \n \n if( !Checker.anyNull(request.getParameter(\"cdmaCity\"),request.getParameter(\"cdmaBorough\"),request.getParameter(\"cdmaLocality\"),request.getParameter(\"cdmCompany\")) ){ \n \n // create dist-id\n // get address id\n \n \n res = Result.SUCCESS;\n }else{\n res = Result.FAILURE_PARAM_MISMATCH;\n }\n \n\n break;\n \n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketList\": \n \n \n // GET SPECIFIC MARKET\n if(!Checker.anyNull(request.getParameter(\"cdmID\"))){\n \n Map params = new HashMap();\n params.put(\"\", request.getParameter(\"cdmID\"));\n \n // GET ALL MARKETs\n }else{\n \n res = DBMarket.selectDistict(ResourceMysql.TABLE_DISTRIBUTER, \"distID\");\n \n }\n \n \n break;\n \n \n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET-ADRESS CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketAddressList\": \n \n \n // GET SPECIFIC MARKET\n if(!Checker.anyNull(request.getParameter(\"cdmID\"))){\n \n Map params = new HashMap();\n params.put(\"\", request.getParameter(\"cdmID\"));\n \n // GET ALL MARKETs\n }else{\n \n res = Result.FAILURE_PARAM_MISMATCH;\n \n }\n \n \n break;\n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET-ORDER CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketOrderList\": \n \n Result tempRes = DBUser.getUserCompany((String) session.getAttribute(\"cduUserId\")); \n if(tempRes.checkResult(Result.SUCCESS)){\n // Get user company and distributer id\n Map userMap = (Map) tempRes.getContent();\n String compName = (String) ((ArrayList)userMap.get(\"userCompany\")).get(0);\n String distName = (String) ((ArrayList)userMap.get(\"userDistributer\")).get(0); \n\n tempRes = DBMarket.getAddresses(distName);\n if(tempRes.checkResult(Result.SUCCESS)){\n Map m = (Map) tempRes.getContent();\n res = DBMarket.getOrders(compName, (List<String>) m.get(\"distAddressList\"));\n }\n }else{\n res = Result.FAILURE_PROCESS;\n }\n \n \n break;\n \n \n \n \n \n //**************************************************************\n //**************************************************************\n //** REMOVE MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"deleteMarket\":\n \n \n \n break;\n \n \n \n //**************************************************************\n //**************************************************************\n //** DEFAULT CASE\n //**************************************************************\n //**************************************************************\n default:\n res = Result.FAILURE_PARAM_WRONG;\n break;\n }\n\n }else{\n res = Result.FAILURE_PARAM_MISMATCH;\n }\n \n }finally{ \n \n mysql.closeAllConnection();\n out.write(gson.toJson(res));\n out.close();\n \n }\n \n }", "protected void renderMap(float mouseLocationX, float mouseLocationY)\n {\n float tileSize = zoom;\n\n //Calculate the number of tiles that can fit on screen\n int tiles_x = (int) Math.ceil(screenSizeX / tileSize) + 2;\n int tiles_y = (int) Math.ceil(screenSizeY / tileSize) + 2;\n\n //Offset tile position based on camera\n int center_x = (int) (cameraPosX - (zoom / 2f));\n int center_y = (int) (cameraPosY - (zoom / 2f));\n\n //Calculate the offset to make tiles render from the center\n int renderOffsetX = (tiles_x - 1) / 2;\n int renderOffsetY = (tiles_y - 1) / 2;\n\n //Get the position of the mouse based on screen size and tile scale\n float mouseScreenPosXScaled = mouseLocationX * screenSizeX / tileSize;\n float mouseScreenPosYScaled = mouseLocationY * screenSizeY / tileSize;\n\n //Get the position of the mouse relative to the map\n int mouseMapPosX = (int) Math.floor(center_x + mouseScreenPosXScaled);\n int mouseMapPosY = (int) Math.floor(center_y + mouseScreenPosYScaled);\n\n //Get the tile the mouse is currently over\n Tile tileUnderMouse = game.getWorld().getTile(mouseMapPosX, mouseMapPosY, cameraPosZ);\n\n //Render tiles\n for (int x = -renderOffsetX; x < renderOffsetX; x++)\n {\n for (int y = -renderOffsetY; y < renderOffsetY; y++)\n {\n int tile_x = x + center_x;\n int tile_y = y + center_y;\n Tile tile = game.getWorld().getTile(tile_x, tile_y, cameraPosZ);\n if (tile != Tiles.AIR)\n {\n TileRender.render(tile, x * tileSize, y * tileSize, zoom);\n }\n }\n }\n\n //Render entities\n for (Entity entity : game.getWorld().getEntities())\n {\n //Ensure the entity is on the floor we are rendering\n if (entity.zi() == cameraPosZ)\n {\n float tile_x = (entity.xf() - center_x) * tileSize;\n float tile_y = (entity.yf() - center_y) * tileSize;\n\n //Ensure the entity is in the camera view\n if (tile_x >= cameraBoundLeft && tile_x <= cameraBoundRight)\n {\n if (tile_y >= cameraBoundBottom && tile_y <= cameraBoundTop)\n {\n EntityRender.render(entity, tile_x, tile_y, 0, zoom);\n\n if (mouseMapPosX == entity.xi() && mouseMapPosY == entity.yi())\n {\n String s = entity.getDisplayName();\n fontRender.render(s, mouseLocationX * screenSizeX, mouseLocationY * screenSizeY, 0, 0, .5f * zoom);\n }\n }\n }\n }\n }\n\n float x = mouseMapPosX * tileSize;\n float y = mouseMapPosY * tileSize;\n\n //System.out.println(x + \" \" + y + \" \" + zoom + \" \" + tx + \" \" + ty + \" \" + tile);\n\n if (currentGuiComponetInUse != null)\n {\n target_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n else\n {\n box_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n\n if (!MouseInput.leftClick() && clickLeft)\n {\n clickLeft = false;\n doLeftClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n\n if (!MouseInput.rightClick() && clickRight)\n {\n clickRight = false;\n doRightClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n\n String html = \" <span class=\\\"glyphicon glyphicon-exclamation-sign\\\" aria-hidden=\\\"true\\\"></span><span class=\\\"sr-only\\\">Error:</span> \";\n\n String message = \"\";\n\n try {\n /* TODO output your page here. You may use following sample code. */\n\n boolean error = false;\n\n // Check Lat Lon\n String latlng = String.valueOf(request.getParameter(\"latlng\"));\n String lat = \"\";\n String lon = \"\";\n if (!latlng.equals(\"null\") && !latlng.equals(\"\")) {\n int position = latlng.indexOf(\",\");\n lat = latlng.substring(0, position);\n lon = latlng.substring(position + 1, latlng.length());\n } else {\n message += html + \"Please select a point on the map! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n\n // Check number of projects\n int number_of_projects = 0;\n try {\n number_of_projects = Integer.parseInt(String.valueOf(request.getParameter(\"number_of_projects\")));\n } catch (Exception e) {\n }\n if (number_of_projects <= 0) {\n message += html + \"Please enter a positive integer! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n if (number_of_projects > 100) {\n message += html + \"Number of projects is limited to 100! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n\n // If no error\n if (!error) {\n ProjectDAO pdao = new ProjectDAO();\n ArrayList<Project> result = pdao.retrieve(number_of_projects, lat, lon);\n JsonArray projectList = pdao.toJSON(result, number_of_projects);\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(projectList);\n request.setAttribute(\"project_comparison_result\", json);\n }\n\n request.setAttribute(\"return_num\", number_of_projects);\n request.setAttribute(\"latlng\", latlng);\n RequestDispatcher rd = request.getRequestDispatcher(\"ProjectComparison.jsp\");\n rd.forward(request, response);\n\n } catch (Exception e) {\n // Send error (if any) back to homepage\n } finally {\n out.close();\n }\n }", "@RequestMapping(value=\"hao.do\")\n\tpublic void hao_jsp(@ModelAttribute(\"pojo\") Pojo pojo,HttpServletResponse response) throws IOException{\n\t\tSystem.out.println(pojo.getA()+\" \"+pojo.getB());\n\t\tresponse.sendRedirect(\"success.jsp\");\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n RequestDispatcher rd=null;\n HttpSession session = request.getSession();\n String userid = (String)session.getAttribute(\"userid\");\n if(userid==null)\n {\n session.invalidate();\n response.sendRedirect(\"accessdenied.html\");\n return;\n }\n try\n {\n System.out.println(\"in the try of election result controller servlet\");\n Map<String , Integer> result = VoteDao.getResult();\n System.out.println(\"fetched party and vote from voteDao\");\n Set s = result.entrySet();\n Iterator it = s.iterator();\n LinkedHashMap<PartyWiseResult , Integer> resultDetails = new LinkedHashMap<>();\n while(it.hasNext())\n {\n Map.Entry<String , Integer> e = (Map.Entry)it.next();\n System.out.println(\"no we are iterating with \"+e.getKey());\n String symbol = CandidateDao.getPartySymbol(e.getKey());\n System.out.println(\"got the symbol for \"+e.getKey());\n PartyWiseResult pw = new PartyWiseResult();\n pw.setParty(e.getKey());\n pw.setSymbol(symbol);\n resultDetails.put(pw, e.getValue());\n \n }\n request.setAttribute(\"votecount\", VoteDao.getVoteCount());\n request.setAttribute(\"result\", resultDetails);\n rd = request.getRequestDispatcher(\"electionresult.jsp\");\n System.out.println(\"attribute for show election result is setted successfully\");\n }\n catch(Exception ex)\n {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n request.setAttribute(\"Exception\", ex);\n rd = request.getRequestDispatcher(\"showexception.jsp\");\n }\n finally\n {\n System.out.println(\"we are in the finally\");\n rd.forward(request, response);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n } finally { \r\n out.close();\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n long id = new Integer(request.getParameter(\"id\"));\n\n \n ResourcePOJO res = null;\n// try {\n res = manager.getResource(id, false);\n// } catch (JAXBException e) {\n// throw new IOException(e.getMessage());\n// }\n LayerManager layerBean = new LayerManager(res);\n \n try {\n \n request.setAttribute(\"layer\", layerBean);\n \n String layerName = layerBean.getName();\n \n List<ResourcePOJO> relatedStatsDefs = manager.searchStatsDefByLayer(layerName);\n request.setAttribute(\"statsDefs\", relatedStatsDefs);\n \n List<ResourcePOJO> relatedLayerUpdates = manager.searchLayerUpdatesByLayerName(layerName);\n request.setAttribute(\"layerUpdates\", relatedLayerUpdates);\n \n String data = manager.getData(id, MediaType.WILDCARD_TYPE.toString());\n layerBean.setData(data);\n \n request.setAttribute(\"storedData\", data);\n \n } catch (Exception ex) {\n Logger.getLogger(LayerShow.class.getName()).log(Level.SEVERE, null, ex);\n }\n String outputPage = getServletConfig().getInitParameter(\"outputPage\");\n RequestDispatcher rd = request.getRequestDispatcher(outputPage);\n rd.forward(request, response);\n }", "@Override\n protected void handleRequest (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope,\n @Nonnull final UnifiedResponse aUnifiedResponse) throws Exception\n {\n String sKey = aRequestScope.getPathWithinServlet ();\n if (sKey.length () > 0)\n sKey = sKey.substring (1);\n\n SimpleURL aTargetURL = null;\n final GoMappingItem aGoItem = getResolvedGoMappingItem (sKey);\n if (aGoItem == null)\n {\n s_aLogger.warn (\"No such go-mapping item '\" + sKey + \"'\");\n // Goto start page\n aTargetURL = getURLForNonExistingItem (aRequestScope, sKey);\n s_aStatsError.increment (sKey);\n }\n else\n {\n // Base URL\n if (aGoItem.isInternal ())\n {\n final IMenuTree aMenuTree = getMenuTree ();\n if (aMenuTree != null)\n {\n // If it is an internal menu item, check if this internal item is an\n // \"external menu item\" and if so, directly use the URL of the\n // external menu item\n final IRequestManager aARM = ApplicationRequestManager.getRequestMgr ();\n final String sTargetMenuItemID = aARM.getMenuItemFromURL (aGoItem.getTargetURL ());\n\n final IMenuObject aMenuObj = aMenuTree.getItemDataWithID (sTargetMenuItemID);\n if (aMenuObj instanceof IMenuItemExternal)\n {\n aTargetURL = new SimpleURL (((IMenuItemExternal) aMenuObj).getURL ());\n }\n }\n }\n if (aTargetURL == null)\n {\n // Default case - use target link from go-mapping\n aTargetURL = aGoItem.getTargetURL ();\n }\n\n // Callback\n modifyResultURL (aRequestScope, sKey, aTargetURL);\n\n s_aStatsOK.increment (sKey);\n }\n\n // Append all request parameters of this request\n // Don't use the request attributes, as there might be more of them\n final Enumeration <?> aEnum = aRequestScope.getRequest ().getParameterNames ();\n while (aEnum.hasMoreElements ())\n {\n final String sParamName = (String) aEnum.nextElement ();\n final String [] aParamValues = aRequestScope.getRequest ().getParameterValues (sParamName);\n if (aParamValues != null)\n for (final String sParamValue : aParamValues)\n aTargetURL.add (sParamName, sParamValue);\n }\n\n if (s_aLogger.isDebugEnabled ())\n s_aLogger.debug (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n else\n if (GlobalDebug.isDebugMode ())\n s_aLogger.info (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n\n // Main redirect :)\n aUnifiedResponse.setRedirect (aTargetURL);\n }", "@Mapper(componentModel = \"spring\")\npublic interface DemoMapper {\n DemoResponse map(Demo demo);\n}", "public void markRenderModelsModified() {\n\t\t\n\t\t// TODO dispose of the VBOs!!!\n\t\trenderUnits = null;\n\t\t\n\t}", "@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n String myresult = \"My result\";\n// Collection <Player> myresult = fullTeamService.getTeam();\n\n request.setAttribute(\"myresult\", myresult);\n\n return \"view/anotherResultMul.jsp\";\n\n\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 /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet LibrarySystemController</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet LibrarySystemController at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "public void render (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n response.setTitle(getTitle(request));\n doDispatch(request, response);\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 /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet StatisticalReport</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet StatisticalReport at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "@RequestMapping(value = \"/homed/{map}\", method = RequestMethod.GET)\r\n public String mapHomeDebug(HttpServletRequest request, @PathVariable(\"map\") String map, ModelMap model) throws ServletException, IOException { \r\n return(renderPage(request, model, \"map\", map, null, null, true));\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(OrgDisplay.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(OrgDisplay.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response); \n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n \r\n }", "private void generateSearchReport(final Map<String, String> request,\r\n\t\t\tfinal List<Map<String, String>> resultMap) {\r\n\t\tMap<String, String> reportMap = null;\r\n\r\n\t\tfor (final Map<String, String> map : resultMap) {\r\n\t\t\tif (map.containsKey(CommonConstants.TOTAL_PRODUCTS)) {\r\n\t\t\t\treportMap = this.getReportMap(request);\r\n\t\t\t\tfinal StringBuilder attributes = new StringBuilder();\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.COLOR)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.COLOR);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.COLOR));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.SIZE)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.SIZE);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.SIZE));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.BRAND)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.BRAND);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.BRAND));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tthis.requestAttributePrice(request, attributes);\r\n\t\t\t\tif (attributes.length() != 0) {\r\n\t\t\t\t\treportMap.put(DomainConstants.ATTRIBUTES, attributes\r\n\t\t\t\t\t\t\t.toString().substring(0, attributes.length() - 1));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString sortFields = \"\";\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.SORT)) {\r\n\t\t\t\t\tsortFields = request.get(RequestAttributeConstant.SORT);\r\n\t\t\t\t}\r\n\t\t\t\tif (!\"\".equals(sortFields)) {\r\n\t\t\t\t\treportMap.put(DomainConstants.SORT_FIELDS, sortFields\r\n\t\t\t\t\t\t\t.replace(CommonConstants.EMPTY_VALUE,\r\n\t\t\t\t\t\t\t\t\tCommonConstants.COMMA_SEPERATOR));\r\n\t\t\t\t}\r\n\t\t\t\tmap.putAll(reportMap);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void foreachResultCreateHTML(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n\n // call for a single ini file\n if (sInputPath.toLowerCase().endsWith(\".ini\") )\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n // check if there exists an ini file\n String sPath = FileHelper.getPath(sInputPath); \n String sBasename = FileHelper.getBasename(sInputPath);\n\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n \n // Create a HTML page which shows locally to all files in .odb\n if (sInputPath.toLowerCase().endsWith(\".odb\"))\n {\n String sIndexFile = FileHelper.appendPath(sPath, \"index.ini\");\n File aIndexFile = new File(sIndexFile);\n if (aIndexFile.exists())\n { \n IniFile aIniFile = new IniFile(sIndexFile);\n\n if (aIniFile.hasSection(sBasename))\n {\n // special case for odb files\n int nFileCount = aIniFile.getIntValue(sBasename, \"reportcount\", 0);\n ArrayList<String> aList = new ArrayList<String>();\n for (int i=0;i<nFileCount;i++)\n {\n String sValue = aIniFile.getValue(sBasename, \"report\" + i);\n\n String sPSorPDFName = getPSorPDFNameFromIniFile(aIniFile, sValue);\n if (sPSorPDFName.length() > 0)\n {\n aList.add(sPSorPDFName);\n }\n }\n if (aList.size() > 0)\n {\n // HTML output for the odb file, shows only all other documents.\n HTMLResult aOutputter = new HTMLResult(sPath, sBasename + \".ps.html\" );\n aOutputter.header(\"content of DB file: \" + sBasename);\n aOutputter.indexSection(sBasename);\n \n for (int i=0;i<aList.size();i++)\n {\n String sPSFile = aList.get(i);\n\n // Read information out of the ini files\n String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + \".ini\");\n IniFile aIniFile2 = new IniFile(sIndexFile2);\n String sStatusRunThrough = aIniFile2.getValue(\"global\", \"state\");\n String sStatusMessage = \"\"; // aIniFile2.getValue(\"global\", \"info\");\n aIniFile2.close();\n\n\n String sHTMLFile = sPSFile + \".html\";\n aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage);\n }\n aOutputter.close();\n\n// String sHTMLFile = FileHelper.appendPath(sPath, sBasename + \".ps.html\");\n// try\n// {\n//\n// FileOutputStream out2 = new FileOutputStream(sHTMLFile);\n// PrintStream out = new PrintStream(out2);\n//\n// out.println(\"<HTML>\");\n// out.println(\"<BODY>\");\n// for (int i=0;i<aList.size();i++)\n// {\n// // <A href=\"link\">blah</A>\n// String sPSFile = (String)aList.get(i);\n// out.print(\"<A href=\\\"\");\n// out.print(sPSFile + \".html\");\n// out.print(\"\\\">\");\n// out.print(sPSFile);\n// out.println(\"</A>\");\n// out.println(\"<BR>\");\n// }\n// out.println(\"</BODY></HTML>\");\n// out.close();\n// out2.close();\n// }\n// catch (java.io.IOException e)\n// {\n// \n// }\n }\n }\n aIniFile.close();\n }\n\n }\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n String action = request.getParameter(\"action\");\n LogementModel model = new LogementModel();\n MaisonDAO implm = new MaisonDAO();\n AppartementDAO impla = new AppartementDAO();\n ChambreDAO implc = new ChambreDAO();\n\n request.setAttribute(\"model\", model);\n\n if (action != null) {\n if (action.equals(\"maison\")) {\n ArrayList<Maison> listm = implm.listMaisonD();\n model.setMaisons(listm);\n } else if (action.equals(\"appartement\")) {\n ArrayList<Appartement> lisa = impla.listAppartementD();\n model.setAppartements(lisa);\n } else if (action.equals(\"chambre\")) {\n ArrayList<Chambre> lista = implc.listChambreD();\n model.setChambres(lista);\n }/*else if (action.equals(\"tout\")) {\n List<Logement> logement = impl.listlogements();\n model.setLogements(logement);\n }*/\n\n }\n request.getRequestDispatcher(\"index.jsp\").forward(request,\n response);\n\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Loggable\n protected ModelAndView handle(final HttpServletRequest request, final HttpServletResponse response,\n final Object commandObj, final BindException errors)\n throws InvalidTestbedIdException, TestbedNotFoundException {\n final long start = System.currentTimeMillis();\n\n long start1 = System.currentTimeMillis();\n\n // set command object\n final TestbedCommand command = (TestbedCommand) commandObj;\n\n // a specific testbed is requested by testbed Id\n int testbedId;\n try {\n testbedId = Integer.parseInt(command.getTestbedId());\n } catch (NumberFormatException nfe) {\n throw new InvalidTestbedIdException(\"Testbed IDs have number format.\", nfe);\n }\n\n LOGGER.info(\"--------- Get Testbed id: \" + (System.currentTimeMillis() - start1));\n start1 = System.currentTimeMillis();\n\n // look up testbed\n final Testbed testbed = testbedManager.getByID(testbedId);\n if (testbed == null) {\n // if no testbed is found throw exception\n throw new TestbedNotFoundException(\"Cannot find testbed [\" + testbedId + \"].\");\n }\n LOGGER.info(\"got testbed \" + testbed);\n\n LOGGER.info(\"--------- Get Testbed: \" + (System.currentTimeMillis() - start1));\n\n\n if (nodeCapabilityManager == null) {\n LOGGER.error(\"nodeCapabilityManager==null\");\n }\n\n start1 = System.currentTimeMillis();\n // get a list of node last readings from testbed\n final List<NodeCapability> nodeCapabilities = nodeCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- list nodeCapabilities: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n String nodeCaps;\n try {\n nodeCaps = HtmlFormatter.getInstance().formatLastNodeReadings(nodeCapabilities);\n } catch (NotImplementedException e) {\n nodeCaps = \"\";\n }\n LOGGER.info(\"--------- format last node readings: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n // get a list of link statistics from testbed\n final List<LinkCapability> linkCapabilities = linkCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- List link capabilities: \" + (System.currentTimeMillis() - start1));\n\n\n // Prepare data to pass to jsp\n final Map<String, Object> refData = new HashMap<String, Object>();\n refData.put(\"testbed\", testbed);\n refData.put(\"lastNodeReadings\", nodeCaps);\n\n\n try {\n start1 = System.currentTimeMillis();\n refData.put(\"lastLinkReadings\", HtmlFormatter.getInstance().formatLastLinkReadings(linkCapabilities));\n LOGGER.info(\"--------- format link Capabilites: \" + (System.currentTimeMillis() - start1));\n } catch (NotImplementedException e) {\n LOGGER.error(e);\n }\n\n LOGGER.info(\"--------- Total time: \" + (System.currentTimeMillis() - start));\n refData.put(\"time\", String.valueOf((System.currentTimeMillis() - start)));\n LOGGER.info(\"prepared map\");\n\n return new ModelAndView(\"testbed/status.html\", refData);\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/json\");\n try (PrintWriter out = response.getWriter()) {\n Gson gson = new Gson();\n\n ProblemsManager problemsManager = ServletUtils.getProblemsManager(getServletContext());\n List<TimeTableProblem> problemList = problemsManager.getProblems();\n List<DTOShortProblem> shortProblemsList= new LinkedList<>();\n for(TimeTableProblem problem:problemList)\n {\n shortProblemsList.add(new DTOShortProblem(problem));\n }\n\n\n String json = gson.toJson(shortProblemsList);\n out.println(json);\n out.flush();\n }\n }", "private void render(String templateName, HttpServletResponse response, MustacheFactory mustacheFactory,\n\t\t\tObject context) throws IOException {\n\t\tMustache header = mustacheFactory.compile(templateName);\n\n\t\theader.execute(response.getWriter(), context);\n\t}" ]
[ "0.7802177", "0.77025086", "0.7522616", "0.7476647", "0.7318861", "0.6990785", "0.6896594", "0.66167796", "0.6402479", "0.63494164", "0.6287087", "0.5850929", "0.5666228", "0.56320125", "0.5493746", "0.54322827", "0.5419891", "0.5373089", "0.52173954", "0.5155077", "0.51448715", "0.51154417", "0.51098114", "0.50892276", "0.5069682", "0.5050963", "0.49580953", "0.4955232", "0.49488896", "0.49484253", "0.49306354", "0.49243718", "0.49203998", "0.49146634", "0.49042004", "0.4897013", "0.48818544", "0.48762026", "0.48646092", "0.48609844", "0.48573184", "0.48224753", "0.48189357", "0.48148546", "0.4788502", "0.47403395", "0.47400457", "0.47330606", "0.4730126", "0.47235668", "0.47181645", "0.47126535", "0.47098818", "0.47082186", "0.47072992", "0.4697982", "0.4697933", "0.46879792", "0.46750638", "0.46711656", "0.46597606", "0.46574914", "0.46498364", "0.4636415", "0.4632848", "0.46298698", "0.4627752", "0.4620496", "0.46196604", "0.46162376", "0.4609262", "0.46083853", "0.460372", "0.46035272", "0.45951653", "0.4594478", "0.45929474", "0.45856848", "0.45815098", "0.45761192", "0.45686984", "0.45681223", "0.4565539", "0.4560225", "0.45552054", "0.45448396", "0.45423725", "0.45410067", "0.45382488", "0.45377424", "0.45370123", "0.45334205", "0.45334205", "0.45334205", "0.45334205", "0.45334205", "0.45334205", "0.45333418", "0.45324194", "0.45303053" ]
0.7376135
4
Run the void renderMergedOutputModel(Map,HttpServletRequest,HttpServletResponse) method test.
@Test(expected = java.io.UnsupportedEncodingException.class) public void testRenderMergedOutputModel_5() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); Map model = new LinkedHashMap(); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); fixture.renderMergedOutputModel(model, request, response); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testRenderMergedOutputModel_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", false, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testRenderMergedOutputModel_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Override\n\tprotected void renderMergedOutputModel(Map<String, Object> model,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\texposeModelAsRequestAttributes(model,request);\n\n\t\t// Determine the path for the request dispatcher.\n\t\tString dispatcherPath = prepareForRendering(request, response);\n\n\t\t// set original view being asked for as a request parameter\n\t\trequest.setAttribute(\"partial\", dispatcherPath.subSequence(14, dispatcherPath.length()));\n\n\t\t// force everything to be template.jsp\n\t\tRequestDispatcher requestDispatcher = request\n\t\t\t\t.getRequestDispatcher(\"/WEB-INF/views/template.jsp\");\n\t\trequestDispatcher.include(request, response);\n\n\t}", "@Test(expected = java.io.IOException.class)\n\tpublic void testRenderMergedOutputModel_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "protected void renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception\r\n {\r\n try\r\n {\r\n StringBuilder sitemap = new StringBuilder();\r\n sitemap.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n sitemap.append(\"<urlset xmlns=\\\"http://www.sitemaps.org/schemas/sitemap/0.9\\\">\");\r\n sitemap.append(createUrlEntries(model));\r\n sitemap.append(\"</urlset>\");\r\n\r\n response.getOutputStream().print(sitemap.toString());\r\n }\r\n catch (Exception e)\r\n {\r\n this.exceptionHandler.handle(e);\r\n }\r\n }", "@Override\n protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n ByteArrayOutputStream baos = createTemporaryOutputStream();\n\n // Apply preferences and build metadata.\n Document document = new Document();\n PdfWriter writer = PdfWriter.getInstance(document, baos);\n prepareWriter(model, writer, request);\n buildPdfMetadata(model, document, request);\n\n // Build PDF document.\n writer.setInitialLeading(16);\n document.open();\n buildPdfDocument(model, document, writer, request, response);\n document.close();\n\n // Flush to HTTP response.\n writeToResponse(response, baos);\n\n }", "@Override\n\tprotected void renderMergedOutputModel(\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\n\t\tif(LOGGER.isDebugEnabled()) {\n//\t\t\tif(MDC.get(CmmnConstants.REMOTE_ADDR) == null) {\n//\t\t\t\tisSetRemoteAddr = true;\n//\t\t\t\tString remoteAddr = GeneralUtils.changeLocalAddr(GeneralUtils.getIpAddress(request));\n//\t\t\t\tMDC.put(CmmnConstants.REMOTE_ADDR, remoteAddr);\n//\t\t\t\tMDC.put(CmmnConstants.CONTEXT_PATH, request.getContextPath().isEmpty()?\"/\":request.getContextPath());\n//\t\t\t}\n\t\t}\n\n\t\tsuper.renderMergedOutputModel( model, request, response);\n\n//\t\tif(isSetRemoteAddr) {\n//\t\t\tMDC.remove(CmmnConstants.REMOTE_ADDR);\n//\t\t\tMDC.remove(CmmnConstants.CONTEXT_PATH);\n//\t\t}\n\t}", "@Override\r\n public void render(Map<String, ?> model, HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws Exception {\n\t\tif ( httpResponse.isCommitted() ) {\r\n\t\t\tif ( logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"Response already committed\");\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tlong startMillis = System.currentTimeMillis();\r\n\r\n Response response = (Response)model.get (Response.RESPONSE_ATTRIBUTE);\r\n Writer writer = null;\r\n\t\ttry {\r\n\t\t\t// Set the response content type based on the transport\r\n\t\t\tsetContentType(response);\r\n writer = IOUtil.getResponseWriter(response);\r\n startOutput(response, writer);\r\n\t\t createOutput(response, writer);\r\n finishOutput(response, writer);\r\n } catch ( ScalarActionException e ) {\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unable to create output\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} catch ( IOException e ) {\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unable to get writer\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} catch ( Exception e ) {\r\n\t\t\t// Catching just exception on purpose\r\n\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\tlogger.error(\"Unexpected error during output\", e);\r\n\t\t\t}\r\n\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif ( null != writer ) {\r\n\t\t\t\t\t// Ensure output\r\n\t\t\t\t\twriter.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch ( IOException e ) {\r\n\t\t\t\tif ( logger.isErrorEnabled() ) {\r\n\t\t\t\t\tlogger.error(\"Unable to flush output\", e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ( logger.isDebugEnabled() ) {\r\n\t\t\t\tlogger.debug(\"End of creating UI response: \" + httpRequest.getRequestURI() + \" Total flight time: \" + (System.currentTimeMillis() - startMillis));\r\n\t\t\t}\r\n\t\t}\r\n }", "@Override\r\n\tprotected final void renderMergedOutputModel(\r\n\t\t\tMap<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\r\n\r\n\t\tExcelForm excelForm = (ExcelForm) model.get(\"excelForm\");\r\n\r\n\t\tHSSFWorkbook workbook;\r\n\t\tHSSFSheet sheet;\r\n\t\tif (excelForm.getTemplateFileUrl() != null) {\r\n\t\t\tworkbook = getTemplateSource(excelForm.getTemplateFileUrl(), request);\r\n\t\t\tsheet = workbook.getSheetAt(0);\r\n\t\t} else {\r\n\t\t\tString sheetName = excelForm.getSheetName();\r\n\r\n\t\t\tworkbook = new HSSFWorkbook();\r\n\t\t\tsheet = workbook.createSheet(sheetName);\r\n\t\t\tlogger.debug(\"Created Excel Workbook from scratch\");\r\n\t\t}\r\n\t\t\r\n\t\tresponse.setHeader( \"Content-Disposition\", \"attachment; filename=\" + URLEncoder.encode(excelForm.getFileName(), \"UTF-8\"));\r\n\r\n\t\tcreateColumnStyles(excelForm, workbook);\r\n\t\tcreateMetaRows(excelForm, workbook, sheet);\r\n\t\tcreateHeaderRow(excelForm, workbook, sheet);\r\n\t\tfor (Object review : excelForm.getData()) {\r\n\t\t\tcreateRow(excelForm, workbook,sheet, review);\r\n\t\t\tdetectLowMemory();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the content type.\r\n\t\tresponse.setContentType(getContentType());\r\n\r\n\t\t// Should we set the content length here?\r\n\t\t// response.setContentLength(workbook.getBytes().length);\r\n\r\n\t\t// Flush byte array to servlet output stream.\r\n\t\tServletOutputStream out = response.getOutputStream();\r\n\t\tworkbook.write(out);\r\n\t\tout.flush();\r\n\t}", "protected void renderMergedOutputModel(Map model, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tFile file = (File)model.get(\"downloadFile\");\n\t\tresponse.setContentType(super.getContentType());\n\t\tresponse.setContentLength((int)file.length());\n\t\tresponse.setHeader(\"Content-Transfer-Encoding\",\"binary\");\n\t\tresponse.setHeader(\"Content-Disposition\",\"attachment;fileName=\\\"\"+java.net.URLEncoder.encode(file.getName(),\"utf-8\")+\"\\\";\");\n\t\tOutputStream out = response.getOutputStream();\n\t\tFileInputStream fis = null;\n\t\ttry\n\t\t{\n\t\t\tfis = new FileInputStream(file);\n\t\t\tFileCopyUtils.copy(fis, out);\n\t\t}\n\t\tcatch(java.io.IOException ioe)\n\t\t{\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(fis != null) fis.close();\n\t\t}\n\t\tout.flush();\n\t}", "private void process(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAddModel model = Util.getModel(request, Const.RESULT);\n\t\t\n\t\t// Print the \"VIEW\" using the \"MODEL\"\n\t\tprintView(response, model);\n\t}", "@Test\n public void shouldLoadFilledModel() throws Exception {\n final Map<String, Object> modelData = createFilledModel();\n // Some static data is changed at this moment, so need to reset the extractors list\n ReportColumnsExtractorHelper.reset();\n\n // WHEN asking the view to render the model contents\n underTest.renderMergedOutputModel(modelData, mock(HttpServletRequest.class), response);\n\n // THEN the resulting CSV contains the expected data\n verify(writer).write(\"\\\"Header\\\",\\\"Header NG\\\",\\\"H\\\",\\\"Header\\\"\\n\");\n verify(writer).write(\"\\\"str\\\",\\\"\\\",\\\"2\\\",\\\"\\\"\\n\");\n verify(writer).flush();\n }", "@Override\r\n public void render(HttpServletRequest request, HttpServletResponse response, Object result) throws Throwable\r\n {\n \r\n }", "@Test\n public void shouldLoadEmptyModel() throws Exception {\n final Map<String, Object> modelData = createEmptyModel();\n\n // WHEN asking the view to render the model contents\n underTest.renderMergedOutputModel(modelData, mock(HttpServletRequest.class), response);\n\n // THEN the response sets the correct MIME type\n verify(response).setContentType(\"text/csv\");\n verify(response).setHeader(\"Content-Disposition\", \"attachment; filename=activityReport.csv\");\n\n // AND returns an empty closed stream\n verify(sourceWriter).close();\n }", "@Test\n public void testRender() {\n try{\n System.out.println(\"render\");\n HttpSession session = new MockHttpSession();\n session.setAttribute(\"session_user\", ujc.findUser(1));\n String project_id = \"3\";\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n ModelAndView result = instance.render(session, project_id);\n// assertEquals(expResult, result);\n ModelAndViewAssert.assertViewName(result, \"team\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"owner\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"allMembers\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"otherUsers\");\n ModelAndViewAssert.assertModelAttributeAvailable(result, \"project\");\n }\n catch(Exception e){\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Redner failed\");\n }\n }", "protected void augmentModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\n\t}", "@Test\n\tpublic void testRenderData() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"RENDER_DATA\");\n\t\tmap.put(\"rows\", \"10\");\n\t\tmap.put(\"page\", \"1\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletContext context = mock(ServletContext.class);\n\t\tfinal HttpSession session = mock(HttpSession.class);\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getServletContext()).thenReturn(context);\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\t// final HttpServletResponse realRequest = ((MolgenisRequest)\n\t\t// molRequest).getResponse();\n\t\t// System.out.println(realRequest.toString());\n\t\tverify(mockOutstream)\n\t\t\t\t.print(\"{\\\"page\\\":1,\\\"total\\\":3067,\\\"records\\\":30670,\\\"rows\\\":[{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Dutch\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"5.300000190734863\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"English\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"9.5\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Papiamento\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"76.69999694824219\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Spanish\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"7.400000095367432\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"3\\\",\\\"City.Name\\\":\\\"Herat\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Herat\\\",\\\"City.Population\\\":\\\"186800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"4\\\",\\\"City.Name\\\":\\\"Mazar-e-Sharif\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Balkh\\\",\\\"City.Population\\\":\\\"127800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"}]}\");\n\t}", "void render(IViewModel model);", "@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tSystem.out.println(\"View1Model execute(HttpServletRequest request, HttpServletResponse response) 호출\");\n\t}", "private void renderResources(HttpServletRequest request, HttpServletResponse response, MergeableResources codeResources, Writer out) {\n List<CMAbstractCode> codes = codeResources.getMergeableResources();\n\n //set correct contentType\n response.setContentType(contentType);\n\n for (CMAbstractCode code : codes) {\n renderResource(request, response, code, out);\n }\n\n }", "@Override\n\tpublic void buildModel(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Map templateModel)\n\t\t\tthrows HandlerExecutionException {\n\t\tString workflowName=request.getParameter(\"workflowName\");\n\t\tString taskName=request.getParameter(\"taskName\");\n\t\tString featureModelName=request.getParameter(\"featureModelName\");\n\t\tString userKey=request.getParameter(\"userKey\");\n\t\tString userName=request.getParameter(\"userName\");\n\t\tString userID=request.getParameter(\"userID\");\n\n\t\tString placeType=request.getParameter(\"placeType\");\n\t\t\n\t\tString stopAllocatedViewsResult=\"\";\n\t\t\n\t\tfeatureModelName=featureModelName.replace(\"?\", \" \");\n\n\t\t\n\t\tString viewDir=getServlet().getServletContext().getRealPath(\"/\")+ \"extensions/views/\"; \n\t\tString modelDir=getServlet().getInitParameter(\"modelsPath\");\n\t\tString configuredModelPath=modelDir+\"configured_models\";\n\t\n\t\t\n\t\t\tif ((placeType.compareToIgnoreCase(\"stop\")==0)) {\n\t\t\t\tString configuredFileName=Methods.getConfiguredFileName(configuredModelPath, userKey);\n\t\t\t\tSystem.out.println(configuredFileName);\n\t\t\t\tif(configuredFileName.compareToIgnoreCase(\"false\")==0){\n\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\tmessage.put(\"value\", \"The configuration file not found\");\n\t\t\t\t\tmessages.add(message);\n\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\n\t\t\t\t}else{\n\t\t\t\t\tstopAllocatedViewsResult=Methods.checkConfigurationCompletionInStopPlace(featureModelName, viewDir, modelDir, configuredModelPath, taskName, placeType, workflowName, configuredFileName, userName, userID);\n\t\t\t\t\tif(stopAllocatedViewsResult.compareToIgnoreCase(\"true\")==0){\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Configuration status of tasks has been checked\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tMap message=new HashMap();\n\t\t\t\t\t\tList<Map> messages=new LinkedList<Map>();\n\t\t\t\t\t\tmessage.put(\"value\", \"Problem in checking of configuration status of the tasks\");\n\t\t\t\t\t\tmessages.add(message);\n\t\t\t\t\t\ttemplateModel.put(\"messages\", messages);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t \n\n\t\t\t}\t\n\t\t\t\t\n\t\t\t\n\t}", "public void applyModel(ScServletData data, Object model)\n {\n }", "ModelAndView handleResponse(HttpServletRequest request,HttpServletResponse response, String actionName, Map model);", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException \r\n {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n try (PrintWriter out = response.getWriter()) \r\n {\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet JoinGroupServlet</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet JoinGroupServlet at \" + request.getContextPath() + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {\r\n\r\n\t\t// Set the MIME type for the render response\r\n\t\tresponse.setContentType(request.getResponseContentType());\r\n\r\n\t\t// Invoke the HTML to render\r\n\t\tPortletRequestDispatcher rd = getPortletContext().getRequestDispatcher(getHtmlFilePath(request, VIEW_HTML));\r\n\t\trd.include(request,response);\r\n\t}", "@RenderMapping\r\n\tpublic String handleRenderRequest(RenderRequest request,RenderResponse response,Model model){\r\n\t\t\r\n\t\tfinal ThemeDisplay themeDisplay = GestionFavoritosUtil.getThemeDisplay(request); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tfinal String structure = request.getPreferences().getValue(\r\n\t\t\t\t\tGestionFavoritosKeys.STRUCTURE_ID, StringUtils.EMPTY);\r\n\t\t\t\r\n\t\t\tfinal List<JournalStructure> listStructures = JournalStructureLocalServiceUtil\r\n\t\t\t\t\t.getStructures(themeDisplay.getScopeGroupId());\r\n\t\t\t\r\n\t\t\tfinal List<JournalTemplate> listTemplates = GestionFavoritosUtil\r\n\t\t\t\t\t.getTemplatesByGroupId(themeDisplay.getScopeGroupId(),\r\n\t\t\t\t\t\t\tstructure);\r\n\t\t\t\r\n\t\t\t// Si hay preferencias\r\n\t\t\tif (request.getPreferences() != null) {\r\n\t\t\t\t\r\n\t\t\t\tPortletPreferences preferences = request.getPreferences();\r\n\t\t\t\t\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.STRUCTURE_ID, structure);\r\n\t\t\t\t\r\n\t\t\t\tfinal String template = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.TEMPLATE_ID, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.TEMPLATE_ID, template);\r\n\t\t\t\t\r\n\t\t\t\tfinal String categories = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.CATEGORIES, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.CATEGORIES, categories);\r\n\t\t\t\t\r\n\t\t\t\tfinal String view = preferences.getValue(\r\n\t\t\t\t\t\tGestionFavoritosKeys.SELECTED_VIEW, StringUtils.EMPTY);\r\n\t\t\t\trequest.setAttribute(GestionFavoritosKeys.SELECTED_VIEW, view);\r\n\t\t\t}\t\r\n\r\n\t\t\trequest.setAttribute(GestionFavoritosKeys.LIST_STRUCTURES,\r\n\t\t\t\t\tlistStructures);\r\n\t\t\t\r\n\t\t\trequest.setAttribute(GestionFavoritosKeys.LIST_TEMPLATES,\r\n\t\t\t\t\tlistTemplates);\r\n\r\n\t\t\t\r\n\t\t} catch (SystemException e) {\r\n\t\t\tlog.error(e);\r\n\t\t\tSessionErrors.add(request, GestionFavoritosErrorKeys.VIEW_DATA);\r\n\t\t\tSessionMessages.clear(request);\r\n\t\t} \r\n\t\t\r\n\t\t\r\n\t\treturn \"edit\";\r\n\t}", "protected abstract void buildExcelDocument(Map<String, Object> model,\n Workbook workbook, HttpServletRequest request,\n HttpServletResponse response) throws Exception;", "private void processObject( HttpServletResponse oResponse, Object oViewObject ) throws ViewExecutorException\r\n {\n try\r\n {\r\n oResponse.getWriter().print( oViewObject );\r\n }\r\n catch ( IOException e )\r\n {\r\n throw new ViewExecutorException( \"View \" + oViewObject.getClass().getName() + \", generic object view I/O error\", e );\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n ArrayList<GroupModel> all=GroupDao.display();\n request.setAttribute(\"group\",all);\n RequestDispatcher rds=request.getRequestDispatcher(\"DisplayGroup.jsp\");\n rds.forward(request, response);\n \n \n\n \n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet JSONCollector</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet JSONCollector at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.setAttribute(\"model\", model);\r\n\t\treq.getRequestDispatcher(\"param.jsp\").forward(req, resp);\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n LOG.debug(\"Received new update request\");\n \n String modelerName = request.getParameter(\"name\");\n String originalModelerName = request.getParameter(\"originalName\");\n String modelId = request.getParameter(\"modelId\");\n String modelType = request.getParameter(\"modeltype\");\n // Currently not being used since we don't update the modelVersion \n // String modelVersion = request.getParameter(\"version\");\n String originalModelVersion = request.getParameter(\"originalModelVersion\");\n String runIdent = request.getParameter(\"runIdent\");\n String originalRunIdent = request.getParameter(\"originalRunIdent\");\n String runDate = request.getParameter(\"creationDate\");\n String originalRunDate = request.getParameter(\"originalCreationDate\");\n String scenario = request.getParameter(\"scenario\");\n String originalScenario = request.getParameter(\"originalScenario\");\n String comments = request.getParameter(\"comments\");\n String originalComments = request.getParameter(\"originalComments\");\n String email = request.getParameter(\"email\");\n String wfsUrl = request.getParameter(\"wfsUrl\");\n String layer = request.getParameter(\"layer\");\n String commonAttr = request.getParameter(\"commonAttr\");\n Boolean updateAsBest = \"on\".equalsIgnoreCase(request.getParameter(\"markAsBest\")) ? Boolean.TRUE : Boolean.FALSE;\n Boolean rerun = Boolean.parseBoolean(request.getParameter(\"rerun\")); // If this is true, we only re-run the R processing \n \n String responseText;\n RunMetadata newRunMetadata;\n \n ModelType modelTypeEnum = null;\n if (\"prms\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.PRMS;\n }\n if (\"afinch\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.AFINCH;\n }\n if (\"waters\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.WATERS;\n }\n if (\"sye\".equals(modelType.toLowerCase())) {\n modelTypeEnum = ModelType.SYE;\n }\n \n RunMetadata originalRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n originalModelerName,\n originalModelVersion,\n originalRunIdent,\n originalRunDate,\n originalScenario,\n originalComments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n if (rerun) {\n String sosEndpoint = props.getProperty(\"watersmart.sos.model.repo\") + originalRunMetadata.getTypeString() + \"/\" + originalRunMetadata.getFileName();\n WPSImpl impl = new WPSImpl();\n String implResponse = impl.executeProcess(sosEndpoint, originalRunMetadata);\n Boolean processStarted = implResponse.toLowerCase().equals(\"ok\");\n responseText = \"{success: \"+processStarted.toString()+\", message: '\" + implResponse + \"'}\";\n } else {\n newRunMetadata = new RunMetadata(\n modelTypeEnum,\n modelId,\n modelerName,\n originalModelVersion,\n runIdent,\n runDate,\n scenario,\n comments,\n email,\n wfsUrl,\n layer,\n commonAttr,\n updateAsBest);\n \n CSWTransactionHelper helper = new CSWTransactionHelper(newRunMetadata, null, new HashMap<String, String>());\n try {\n String results = helper.updateRunMetadata(originalRunMetadata);\n // TODO- parse xml, make sure stuff happened alright, if so don't say success\n responseText = \"{success: true, msg: 'The record has been updated'}\";\n } catch (IOException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n } catch (URISyntaxException ex) {\n responseText = \"{success: false, msg: '\" + ex.getMessage() + \"'}\";\n }\n \n }\n \n response.setContentType(\"application/json\");\n response.setCharacterEncoding(\"utf-8\");\n \n try {\n Writer writer = response.getWriter();\n writer.write(responseText);\n writer.close();\n } catch (IOException ex) {\n LOG.warn(\"An error occurred while trying to send response to client. \", ex);\n }\n \n }", "void render( Collection<String> files, File outputDirectory, DocumentModel documentModel )\n throws DocumentRendererException, IOException;", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n getServletContext().log(\"Processing a request : \" + request.getServletPath());\n \n try {\n ModelAndView mav = this.handler.handle(request, response, true);\n \n // use a view resolver.\n// response.getWriter().print(controllerResponse);\n // flush here ?\n// response.flushBuffer();\n// 2801752\n } catch (Exception ex) {\n getServletContext().log(\"Exception : \", ex);\n if(!response.isCommitted()) {\n response.sendError(500, ex.getMessage());\n }\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n\r\n List resultsList = new ArrayList();\r\n\r\n // Receive request from adminPage\r\n String c = request.getParameter(\"action\");\r\n String mem_id = request.getParameter(\"mem_id\");\r\n String id = request.getParameter(\"id\");\r\n\r\n AdminModel am = new AdminModel();\r\n\r\n // Send to model & invoke one of three methods\r\n switch (c) {\r\n case \"Check Approvals\":\r\n resultsList = am.getApprovals();\r\n break;\r\n case \"List Member Payments\":\r\n resultsList = am.listPayments(mem_id);\r\n break;\r\n case \"Approve Outstanding Member\":\r\n am.approvalResult(mem_id);\r\n break;\r\n case \"List Claims\":\r\n resultsList = am.listClaims(id);\r\n break;\r\n case \"Approve Claim\":\r\n am.approveClaim(id);\r\n break;\r\n case \"Reject Claim\":\r\n am.rejectClaim(id);\r\n break;\r\n case \"End of Year Charge\":\r\n am.endOfYearCharge();\r\n break;\r\n }\r\n\r\n // Send back to view (adminPage.jsp)\r\n request.setAttribute(\"output\", resultsList);\r\n RequestDispatcher view = request.getRequestDispatcher(\"/docs/adminPage\");\r\n view.forward(request, response);\r\n }", "@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "public interface RenderTemplate {\n void render(RenderContext ctx, Map<String, Object> map, String mode);\n}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n viewModule(request, response);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "protected void proccess(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\n\n\t\t// set response type to text/html\n\t\tresponse.setContentType(\"text/html\");\n\n\t\t// Get PrintWriter to write back to client\n\t\tPrintWriter out = response.getWriter();\n\n\t\t// Get contextPath for any external files such as css, js path\n\t\tString contextPath = getContextPath();\n\n\t\tSTGroup templates = this.getSTGroup();\n\t\tST page = templates.getInstanceOf(\"home\");\n\t\t\n\t\tList<City> cities = service.getAllCitySort();\n\t\t\n\t\tpage.add(\"contextPath\", contextPath);\n\t\tpage.add(\"cities\", cities);\n\n\t\tout.print(page.render());\n\t\tout.flush();\n\t}", "@RequestMapping(\"/equipmentsCalibrationRpt\")\r\n\tpublic String equipmentsCalibrationRpt(Map<String, Object> model) {\n\r\n\t\treturn \"equipmentsCalibrationRpt\";\r\n\t}", "void render(Object rendererTool);", "protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }", "private void doAfterRenderResponse(final PhaseEvent arg0) {\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n boolean wasXmlRequested = isRequestedFormatXml(request);\n if( ! wasXmlRequested ){\n super.doGet(request,response);\n }else{\n try {\n VitroRequest vreq = new VitroRequest(request);\n Configuration config = getConfig(vreq); \n ResponseValues rvalues = processRequest(vreq);\n \n response.setCharacterEncoding(\"UTF-8\");\n response.setContentType(\"text/xml;charset=UTF-8\");\n writeTemplate(rvalues.getTemplateName(), rvalues.getMap(), config, request, response);\n } catch (Exception e) {\n log.error(e, e);\n }\n }\n }", "void sendMap(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Map<String, Object> contetMap)\r\n\t\t\tthrows IOException;", "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 double technontech=Double.parseDouble(request.getParameter(\"technontech\"));\n double nontechexp=Double.parseDouble(request.getParameter(\"nontechexp\"));\n double techexp=Double.parseDouble(request.getParameter(\"techexp\"));\n double[][] arr=new double[3][3];\n arr[0][0]=arr[1][1]=arr[2][2]=1;\n arr[0][1]=technontech;\n arr[1][0]=(1/technontech);\n arr[0][2]=techexp;\n arr[2][0]=(1/techexp);\n arr[1][2]=nontechexp;\n arr[2][1]=(1/nontechexp);\n \n double[][] w=new double[3][1];\n String nextPath=\"\";\n \n boolean res=CoreProcess.AHP(arr, w);\n if(res==true)\n {\n nextPath=\"/resumeProcess.html\";\n RequestDispatcher view = request.getRequestDispatcher(nextPath);\n view.forward(request, response); \n }\n else\n {\n out.println(\"<html> <head> <link type=\\\"text/css\\\" href=\\\"./css/materialize.css\\\" rel=\\\"stylesheet\\\">\\n\" \n +\"<link type=\\\"text/css\\\" href=\\\"./css/materialize.min.css\\\" rel=\\\"stylesheet\\\">\\n\"\n +\"<meta charset=\\\"UTF-8\\\">\\n\" \n +\"<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"> \");\n out.println(\"<title> Error Page </title> </head> \");\n out.println(\"<body class=\\\"background light-blue lighten-5\\\">\");\n out.println(\"<h3 class=\\\"brown-text center\\\"> THIS IS AN ERROR PAGE. </h3>\");\n out.println(\"<div class=\\\"row\\\">\\n\" +\n\" <div class=\\\"col s12\\\">\\n\" +\n\" <div class=\\\"card hoverable center deep-purple lighten-5\\\">\\n\" +\n\" <div class=\\\"card-content purple-text\\\">\\n\" +\n\" <span class=\\\"card-title pink-text\\\"> <b> Inconsistencies in the AHP matrix. </b> </span>\" + \n\" <h5> \\n\" +\n\" You are seeing this page because you have entered an inconsistent matrix for the AHP input. \\n\" +\n\" This is usually caused by transitive inconsistencies in the given input. \\n\" +\n\" </h5>\\n\" +\n\" <h5>\\n\" +\n\" For instance, if you had entered technical as more important than non-technical criteria and non-technical criteria as more important than experience, then it is required that technical be more important than experience \\n\" +\n\" Such consistencies are automatically checked by our process so that your job specification makes logical sense. \\n\" +\n\" Now, please click the below button to go back to the AHP page and re-enter your input. Thank you. \\n\" +\n\" </h5>\\n\"+\n\" </div>\" +\n\" </div>\");\n out.println(\"<div class=\\\"row container\\\">\\n\" +\n\" <form action=\\\"AHPPage.html\\\" method=\\\"post\\\" class=\\\"col s12\\\">\"+\n\" <button class=\\\"btn waves-effect waves-light right green accent-4\\\" type=\\\"submit\\\" name=\\\"action\\\"> Go back \\n\" +\n\" <i class=\\\"material-icons right\\\"></i>\\n\" +\n\" </button>\"+\n\" </form> </div> </body> </html>\");\n \n }\n \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 /* TODO output your page here. You may use following sample code. */\n Object[] profile = data(111);\n for(int i=0; i<4; i++){\n out.print(profile[i]);\n }\n \n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(ResultsDisplay2.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void doTag()\n throws IOException, JspException, JspTagException {\n\n JspWriter out = context.getOut();\n\n if (!RDCUtils.isStringEmpty(namelist)) {\n // (1) Access/create the views map \n Map viewsMap = (Map) context.getSession().\n getAttribute(ATTR_VIEWS_MAP);\n if (viewsMap == null) {\n viewsMap = new HashMap();\n context.getSession().setAttribute(ATTR_VIEWS_MAP, viewsMap);\n }\n \n // (2) Populate form data \n Map formData = new HashMap();\n StringTokenizer nameToks = new StringTokenizer(namelist, \" \");\n while (nameToks.hasMoreTokens()) {\n String name = nameToks.nextToken();\n formData.put(name, context.getAttribute(name));\n }\n \n // (3) Store the form data according to the RDC-struts \n // interface contract\n String key = \"\" + context.hashCode();\n viewsMap.put(key, formData);\n context.getRequest().setAttribute(ATTR_VIEWS_MAP_KEY, key);\n }\n\n if (!RDCUtils.isStringEmpty(clearlist)) { \n // (4) Clear session state based on the clearlist\n if (dialogMap == null) {\n throw new IllegalArgumentException(ERR_NO_DIALOGMAP);\n }\n StringTokenizer clearToks = new StringTokenizer(clearlist, \" \");\n outer:\n while (clearToks.hasMoreTokens()) {\n String clearMe = clearToks.nextToken();\n String errMe = clearMe;\n boolean cleared = false;\n int dot = clearMe.indexOf('.');\n if (dot == -1) {\n if(dialogMap.containsKey(errMe)) {\n dialogMap.remove(errMe);\n cleared = true;\n }\n } else {\n // TODO - Nested data model re-initialization\n BaseModel target = null;\n String childId = null;\n while (dot != -1) {\n try {\n childId = clearMe.substring(0,dot);\n if (target == null) {\n target = (BaseModel) dialogMap.get(childId);\n } else {\n if ((target = RDCUtils.getChildDataModel(target,\n childId)) == null) {\n break;\n }\n }\n clearMe = clearMe.substring(dot+1);\n dot = clearMe.indexOf('.');\n } catch (Exception e) {\n MessageFormat msgFormat =\n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n continue outer;\n }\n }\n if (target != null) {\n cleared = RDCUtils.clearChildDataModel(target,\n clearMe);\n }\n }\n if (!cleared) {\n MessageFormat msgFormat = \n new MessageFormat(ERR_CANNOT_CLEAR);\n log.warn(msgFormat.format(new Object[] {errMe}));\n }\n }\n }\n\n // (5) Forward request\n try {\n context.forward(submit);\n } catch (ServletException e) {\n // Need to investigate whether refactoring this\n // try to provide blanket coverage makes sense\n MessageFormat msgFormat = new MessageFormat(ERR_FORWARD_FAILED);\n // Log error and send error message to JspWriter \n out.write(msgFormat.format(new Object[] {submit, namelist}));\n log.error(msgFormat.format(new Object[] {submit, namelist}));\n } // end of try-catch\n }", "protected void processView(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"here\");\n\t\tArrayList<String> errorList = new ArrayList<String>();\n\n\t\tString[] zone_name_array;\n\t\tString[] zone_type_array;\n\t\tString[] zone_heating_cooling_array;\n\t\tString[] zone_min_temp_array;\n\t\tString[] zone_max_temp_array;\n\t\tString[] zone_operation_array;\n\t\tString[] building_array;\n\n\t\tif (request.getAttribute(\"hasPastData\") == null) {\n\t\t\tbuilding_array = request.getParameterValues(\"building_name[]\");\n\t\t\tboolean bNameDup = checkDuplicate(building_array);\n\t\t\tif (bNameDup) {\n\t\t\t\terrorList.add(\"Building Names must be unique\");\n\t\t\t}\n\t\n\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\tint num = i + 1;\n\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\tboolean zNameDup = checkDuplicate(zone_name_array);\n\t\t\t\tif (zNameDup) {\n\t\t\t\t\terrorList.add(\"Zone Names with each Building must be unique\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\tint num = i + 1;\n\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\tzone_min_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_min_temp[]\");\n\t\t\t\tzone_max_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t+ \"_zone_max_temp[]\");\n\t\n\t\t\t\tfor (int j = 0; j < zone_min_temp_array.length; j++) {\n\t\t\t\t\tint minTemp = Integer.parseInt(zone_min_temp_array[j]);\n\t\t\t\t\tint maxTemp = Integer.parseInt(zone_max_temp_array[j]);\n\t\t\t\t\tif (minTemp > maxTemp) {\n\t\t\t\t\t\terrorList.add(building_array[i] + \"_\" + zone_name_array[j]\n\t\t\t\t\t\t\t\t+ \": Min Temp must be smaller than Max Temp\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tHttpSession session = request.getSession();\n\t\tPrintWriter out = response.getWriter();\n\n\t\tif (errorList.size() != 0) {\n\t\t\tString errors = \"\";\n\t\t\tfor (String s : errorList) {\n\t\t\t\terrors = errors + s + \";\";\n\t\t\t}\n\n\t\t\tout.println(errors);\n\n\t\t} else {\n\t\t\tString company = (String) session.getAttribute(\"company\");\n\t\t\tint month = PeriodManager.getMonthInt(company);\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.set(Calendar.MONTH, month);\n\t\t\tcal.set(Calendar.DATE, 1);\n\t\t\tCalendar today = Calendar.getInstance();\n\t\t\tint previousYear = Calendar.getInstance().get(Calendar.YEAR) - 1;\n\t\t\tif (today.before(cal)) {\n\t\t\t\tpreviousYear -= 1;\n\t\t\t}\n\n\t\t\tString quest_id = \"\";\n\t\t\ttry {\n\t\t\t\tquest_id = (SQLManager.getRowCount(\"questionnaire\") + 1) + \"\";\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}\n\n\t\t\t// store in QUESTIONNAIRE table\n\t\t\tString values_quest = \"\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + quest_id + \"\\',\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + request.getParameter(\"site_id\") + \"\\',\";\n\t\t\tvalues_quest = values_quest + \"\\'\" + previousYear + \"\\',\";\n\t\t\t\n\t\t\t//check if there is past data for this site\n\t\t\tString where = \"site_id = \\'\" + request.getParameter(\"site_id\") + \"\\' and year = \\'\" + (previousYear-1) + \"\\'\";\n\t\t\tRetrievedObject ro = SQLManager.retrieveRecords(\"questionnaire\", where);\n\t\t\tResultSet rs = ro.getResultSet();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t//if yes\n\t\t\t\tString past_quest_id = \"\";\n\t\t\t\tif (rs.isBeforeFirst() ) { \n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tpast_quest_id = rs.getString(\"questionnaire_id\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t//copy values from past data\n\t\t\t\t\t\tfor (int i = 4; i <= 13; i++) {\n\t\t\t\t\t\t\tString value = rs.getString(i);\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + value + \"\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 14; i <= 26; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + rs.getString(27) + \"\\',\";\n\t\t\t\t\t\tfor (int i = 28; i <= 32; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 33; i <= 48; i++) {\n\t\t\t\t\t\t\tString value = rs.getString(i);\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + value + \"\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int i = 49; i <= 80; i++) {\n\t\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\" + 0 + \"\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(values_quest);\n\t\t\t\t\t}\n\t\t\t\t\trs.close();\n\t\t\t\t\t//insert into questionnaire db\n\t\t\t\t\tSQLManager.insertRecord(\"questionnaire\", values_quest);\n\t\t\t\t\tsession.setAttribute(\"quest_id\", quest_id);\n\t\t\t\t\t\n\t\t\t\t\t//get the past data site definition\n\t\t\t\t\twhere = \"questionnaire_id = \\'\" + past_quest_id + \"\\'\";\n\t\t\t\t\tRetrievedObject ro_site_def = SQLManager.retrieveRecords(\"site_definition\", where);\n\t\t\t\t\tResultSet rs_site_def = ro_site_def.getResultSet();\n\t\t\t\t\tString past_site_def = \"\";\n\t\t\t\t\tString past_site_act = \"\";\n\t\t\t\t\tString past_building_name = \"\";\n\t\t\t\t\twhile (rs_site_def.next()) {\n\t\t\t\t\t\tpast_site_def = rs_site_def.getString(2);\n\t\t\t\t\t\tpast_site_act = rs_site_def.getString(3);\n\t\t\t\t\t\tpast_building_name = rs_site_def.getString(4);\n\t\t\t\t\t}\n\t\t\t\t\trs_site_def.close();\n\t\t\t\t\t\n\t\t\t\t\t//replace past data quest id with new quest id\n\t\t\t\t\tString new_site_def = past_site_def.replace(past_quest_id, quest_id);\n\t\t\t\t\t\n\t\t\t\t\t//insert into site definition db\n\t\t\t\t\tString values_site_def = \"\\'\" + quest_id + \"\\',\\'\" + new_site_def + \"\\',\\'\" + past_site_act + \"\\',\\'\" + past_building_name + \"\\'\";\n\t\t\t\t\tSQLManager.insertRecord(\"site_definition\", values_site_def);\n\t\t\t\t\t\n\t\t\t\t\t//insert into the different zone activity db\n\t\t\t\t\t//use delimiter ^ to split by building\n\t\t\t\t\tString[] site_def_info_array = past_site_def.split(\"\\\\^\");\n\t\t\t\t\tString[] site_act_array = past_site_act.split(\"\\\\^\");\n\t\t\t\t\tfor (int i = 0; i < site_def_info_array.length; i++) {\n\t\t\t\t\t\tString def = site_def_info_array[i];\n\t\t\t\t\t\tString act = site_act_array[i];\n\t\t\t\t\t\t//use delimiter * to split each building into zones\n\t\t\t\t\t\tString[] def_array = def.split(\"\\\\*\");\n\t\t\t\t\t\tString[] act_array = act.split(\"\\\\*\");\n\t\t\t\t\t\tfor (int j = 0; j < def_array.length; j++) {\n\t\t\t\t\t\t\tString d = def_array[j];\n\t\t\t\t\t\t\tString a = act_array[j];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint count = 0;\n\t\t\t\t\t\t\tString tableName = \"\";\n\t\t\t\t\t\t\tif (a.equals(\"wh_mezzanine\")) {\n\t\t\t\t\t\t\t\ttableName = \"mezzanine_form\";\n\t\t\t\t\t\t\t\tcount = 18;\n\t\t\t\t\t\t\t} else if (a.equals(\"wh_ground_to_roof\")) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"gtr\");\n\t\t\t\t\t\t\t\ttableName = \"ground_to_roof_form\";\n\t\t\t\t\t\t\t\tcount = 28;\n\t\t\t\t\t\t\t} else if (a.equals(\"wh_value_add\")) {\n\t\t\t\t\t\t\t\ttableName = \"warehouse_value_add_form\";\n\t\t\t\t\t\t\t\tcount = 20;\n\t\t\t\t\t\t\t} else if (a.equals(\"offices\")) {\n\t\t\t\t\t\t\t\ttableName = \"office_form\";\n\t\t\t\t\t\t\t\tcount = 21;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//retrieve zone record from the respective table\n\t\t\t\t\t\t\twhere = \"zone_id = \\'\" + d + \"\\'\";\n\t\t\t\t\t\t\tRetrievedObject ro_zone = SQLManager.retrieveRecords(tableName, where);\n\t\t\t\t\t\t\tResultSet rs_zone = ro_zone.getResultSet();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString new_zone_id = quest_id + \"-\" + d.split(\"-\")[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString values = \"\\'\" + quest_id + \"\\',\\'\" + new_zone_id + \"\\',\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (rs_zone.next()) {\n\t\t\t\t\t\t\t\tfor (int k = 3; k <= 11; k++) {\n\t\t\t\t\t\t\t\t\tvalues = values + \"\\'\" + rs_zone.getString(k) + \"\\',\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\trs_zone.close();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//remove the last comma\n\t\t\t\t\t\t\tvalues = values.substring(0, values.length()-1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int m = 0; m < count; m++) {\n\t\t\t\t\t\t\t\tvalues = values + \",\\'\\'\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(\">>>> values: \" + values); \n\t\t\t\t\t\t\tSQLManager.insertRecord(tableName, values);\n\t\t\t\t\t\t\tSystem.out.println(\"done!!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trequest.setAttribute(\"fromPastData\", \"true\");\n\t\t\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"Questionnaire.jsp\");\n\t\t\t\t\trd.forward(request, response);\n\t\t\t\t\t\n\t\t\t\t//if no\n\t\t\t\t} else {\n\t\t\t\t\tfor (int i = 0; i < 77; i++) {\n\t\t\t\t\t\tvalues_quest = values_quest + \"\\'\\',\";\n\t\t\t\t\t}\n\t\t\t\t\tvalues_quest = values_quest + \"0\";\n\t\t\t\t\tvalues_quest = values_quest + \",\\'\\',\\'\\'\";\n\t\t\t\t\t\n\t\t\t\t\t//insert into db\n\t\t\t\t\tSQLManager.insertRecord(\"questionnaire\", values_quest);\n\t\t\t\t\tsession.setAttribute(\"quest_id\", quest_id);\n\t\t\t\t\t\n\t\t\t\t\t// site_def_details and site_def_activity to store in\n\t\t\t\t\t// SITE_DEFINITION table\n\t\t\t\t\tString site_def_details = \"\";\n\t\t\t\t\tString site_def_activity = \"\";\n\t\t\t\t\tString site_def_building_name = \"\";\n\t\t\n\t\t\t\t\tbuilding_array = request.getParameterValues(\"building_name[]\");\n\t\t\n\t\t\t\t\tString zone_details = \"\";\n\t\t\t\t\tArrayList<String> zone_list = new ArrayList<String>();\n\t\t\t\t\tString tableName = \"\";\n\t\t\t\t\tString values = \"\";\n\t\t\n\t\t\t\t\tfor (int i = 0; i < building_array.length; i++) {\n\t\t\t\t\t\tint num = i + 1;\n\t\t\t\t\t\tzone_type_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_activity[]\");\n\t\t\t\t\t\tzone_name_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_name[]\");\n\t\t\t\t\t\tzone_heating_cooling_array = request.getParameterValues(\"b\"\n\t\t\t\t\t\t\t\t+ num + \"_zone_heating_cooling[]\");\n\t\t\t\t\t\tzone_min_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_min_temp[]\");\n\t\t\t\t\t\tzone_max_temp_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_max_temp[]\");\n\t\t\t\t\t\tzone_operation_array = request.getParameterValues(\"b\" + num\n\t\t\t\t\t\t\t\t+ \"_zone_operation[]\");\n\t\t\n\t\t\t\t\t\tsite_def_building_name = site_def_building_name\n\t\t\t\t\t\t\t\t+ building_array[i] + \"*\";\n\t\t\n\t\t\t\t\t\tfor (int j = 0; j < zone_type_array.length; j++) {\n\t\t\t\t\t\t\tString zone_type = zone_type_array[j];\n\t\t\t\t\t\t\t// add to zone_list\n\t\t\t\t\t\t\tString zone_element = building_array[i] + \",\"\n\t\t\t\t\t\t\t\t\t+ zone_name_array[j] + \",\" + zone_type_array[j];\n\t\t\t\t\t\t\tzone_list.add(zone_element);\n\t\t\n\t\t\t\t\t\t\t// add to zone_details string\n\t\t\t\t\t\t\tzone_details = zone_details + zone_element + \"//\";\n\t\t\n\t\t\t\t\t\t\t// add to site_info_details string to store in\n\t\t\t\t\t\t\t// SITE_DEFINITION DB\n\t\t\t\t\t\t\tsite_def_details = site_def_details + quest_id + \"-\"\n\t\t\t\t\t\t\t\t\t+ building_array[i] + \"_\" + zone_name_array[j]\n\t\t\t\t\t\t\t\t\t+ \"*\";\n\t\t\t\t\t\t\tsite_def_activity = site_def_activity + zone_type + \"*\";\n\t\t\n\t\t\t\t\t\t\t// add to DB\n\t\t\t\t\t\t\tvalues = \"\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + quest_id + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + quest_id + \"-\" + building_array[i]\n\t\t\t\t\t\t\t\t\t+ \"_\" + zone_name_array[j] + \"\\',\";\n\t\t\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + (i + 1) + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + (j + 1) + \"\\',\";\n\t\t\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + building_array[i] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_name_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_type_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_heating_cooling_array[j]\n\t\t\t\t\t\t\t\t\t+ \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_min_temp_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_max_temp_array[j] + \"\\',\";\n\t\t\t\t\t\t\tvalues = values + \"\\'\" + zone_operation_array[j] + \"\\'\";\n\t\t\n\t\t\t\t\t\t\tif (zone_type.equals(\"wh_mezzanine\")) {\n\t\t\t\t\t\t\t\ttableName = \"mezzanine_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"wh_ground_to_roof\")) {\n\t\t\t\t\t\t\t\ttableName = \"ground_to_roof_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"wh_value_add\")) {\n\t\t\t\t\t\t\t\ttableName = \"warehouse_value_add_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t} else if (zone_type.equals(\"offices\")) {\n\t\t\t\t\t\t\t\ttableName = \"office_form\";\n\t\t\t\t\t\t\t\tvalues = values\n\t\t\t\t\t\t\t\t\t\t+ \",\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\',\\'\\'\";\n\t\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t\t\tSQLManager.insertRecord(tableName, values);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// delimit site_def_details and site_def_activity by ^ (to\n\t\t\t\t\t\t// separate by buildings)\n\t\t\t\t\t\tsite_def_details = site_def_details.substring(0,\n\t\t\t\t\t\t\t\tsite_def_details.length() - 1) + \"^\";\n\t\t\t\t\t\tsite_def_activity = site_def_activity.substring(0,\n\t\t\t\t\t\t\t\tsite_def_activity.length() - 1) + \"^\";\n\t\t\t\t\t}\n\t\t\n\t\t\t\t\t// store site_def_details and site_def_activity in SITE_DEFINITION\n\t\t\t\t\t// table\n\t\t\t\t\tsite_def_details = site_def_details.substring(0,\n\t\t\t\t\t\t\tsite_def_details.length() - 1);\n\t\t\t\t\tsite_def_activity = site_def_activity.substring(0,\n\t\t\t\t\t\t\tsite_def_activity.length() - 1);\n\t\t\t\t\tsite_def_building_name = site_def_building_name.substring(0,\n\t\t\t\t\t\t\tsite_def_building_name.length() - 1);\n\t\t\t\t\tString site_def_values = \"\\'\" + quest_id + \"\\',\\'\"\n\t\t\t\t\t\t\t+ site_def_details + \"\\',\\'\" + site_def_activity + \"\\',\\'\"\n\t\t\t\t\t\t\t+ site_def_building_name + \"\\'\";\n\t\t\t\t\tSQLManager.insertRecord(\"site_definition\", site_def_values);\n\t\t\n\t\t\t\t\tsession.setAttribute(\"zone_details\", zone_details);\n\t\t\n\t\t\t\t\tString zone_string = \"\";\n\t\t\t\t\tfor (String z : zone_list) {\n\t\t\t\t\t\tzone_string = zone_string + z + \"//\";\n\t\t\t\t\t}\n\t\t\t\t\tzone_string = zone_string.substring(0, zone_string.length() - 2);\n\t\t\n\t\t\t\t\tsession.setAttribute(\"zone_string\", zone_string);\n\t\t\t\t\tout.println(\"yes\");\n\t\t\t\t}\t\n\t\n\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\n\t}", "void render(Map<String,List<Map<String,String>>> data);", "@Override\n protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \tString num1Str = request.getParameter(\"num1\");\n \tString num2Str = request.getParameter(\"num2\");\n \tString sum = request.getParameter(\"sum\");\n \tString sub = request.getParameter(\"sub\");\n \tString multi = request.getParameter(\"multi\");\n \tString divide = request.getParameter(\"divide\");\n \tString mud = request.getParameter(\"mud\");\n \tString pow = request.getParameter(\"pow\");\n \tdouble result;\n \ttry {\n\t\t\tdouble num1 = Double.parseDouble(num1Str);\n\t\t\tdouble num2 = Double.parseDouble(num2Str);\n\t\t\tCalcModel cal = new CalcModel(num1,num2);\n\t\t\t if(sum != null) result = cal.sum();\n\t\t\t else if (sub != null) result = cal.sub();\n\t\t\t else if (multi != null) result = cal.multi();\n\t\t\t else if (divide != null) result = cal.divide();\n\t\t\t else if (mud != null) result = cal.remainder(); \n\t\t\t else result = cal.power();\n\t\t\t \n\t\t\t\n\t\t\t\n\t\t\t// this is to result output using attribute\n\t\t\tRequestDispatcher desp = request.getRequestDispatcher(\"CalcAssignment/Calc.jsp\");\n\t\t\trequest.setAttribute(\"resultAttr\", result);\n\t\t\tdesp.forward(request, response);\n\t\t} catch (NumberFormatException e) {\n\t\t\tRequestDispatcher desp1 = request.getRequestDispatcher(\"CalcAssignment/erro.jsp\");\n\t\t\trequest.setAttribute(\"msgAttr\", e.getMessage());\n\t\t\tdesp1.forward(request, response);\n\t\t\t\n\t\t}\n \t\n \t\n \t\n \t\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n PrintWriter out = response.getWriter();\n String contextPath = request.getContextPath();\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet DIVIDE</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet DivideServlet at \" + contextPath + \"</h1>\");\n \n org.netbeans.test.freeformlib.Multiplier d = new org.netbeans.test.freeformlib.Multiplier();\n try {\n String attributeX = request.getParameter(\"x\");\n if (attributeX == null) {\n attributeX = \"\";\n }\n d.setX(Double.parseDouble(attributeX));\n } catch(NumberFormatException e) {\n }\n try {\n String attributeY = request.getParameter(\"y\");\n if (attributeY == null) {\n attributeY = \"\";\n }\n d.setY(Double.parseDouble(attributeY));\n } catch(NumberFormatException e) {\n }\n \n if (d.getY() == 0) {\n out.println(\"<b>y</b> can't be 0!\");\n } else {\n out.println(\"\" + d.getX() + \" / \" + d.getY() + \" = \" + d.getMultiplication());\n }\n \n out.println(\"<br/>\");\n out.println(\"<a href=\\\"index.jsp\\\">Go back to index.jsp</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n \n out.close();\n }", "@Override\n\tpublic void doView(RenderRequest renderRequest,\n\t\t\tRenderResponse renderResponse) throws IOException, PortletException {\n\t\tsuper.doView(renderRequest, renderResponse);\n\t}", "protected void doDispatch (RenderRequest request,\n\t\t\t RenderResponse response) throws PortletException,java.io.IOException\n {\n WindowState state = request.getWindowState();\n \n if ( ! state.equals(WindowState.MINIMIZED)) {\n PortletMode mode = request.getPortletMode();\n if (mode.equals(PortletMode.VIEW)) {\n\tdoView (request, response);\n }\n else if (mode.equals(PortletMode.EDIT)) {\n\tdoEdit (request, response);\n }\n else if (mode.equals(PortletMode.HELP)) {\n\tdoHelp (request, response);\n }\n else {\n\tthrow new PortletException(\"unknown portlet mode: \" + mode);\n }\n }\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet processOutPass</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet processOutPass at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally {\n out.close();\n }\n }", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n Categories recResp = new Categories();\n int getCount = 0;\n // recResp.recipeCategories.getRecipeCategory().get(0).categoryName;\n ArrayOfRecipeClassification tests = new ArrayOfRecipeClassification();\n GetRecipeCategoriesResponse ff = new GetRecipeCategoriesResponse();\n // rc = tests.recipeClassification;\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\" <style>\\n\" +\n \"#header {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#nav {\\n\" +\n \" line-height:30px;\\n\" +\n \" background-color:#eeeeee;\\n\" +\n \" \\n\" +\n \" width:100px;\\n\" +\n \" float:left;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#row {\\n\" +\n \" display:inline-block;\\n\" +\n \"}\\n\" +\n \"#sectionl {\\n\" +\n \" width:350px;\\n\" +\n \" float:left;\\n\" +\n \" padding:30px;\\n\" +\n \"}\\n\" +\n \"#sectionC {\\n\" +\n \" width:500px;\\n\" +\n \" float:center;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"#sectionr {\\n\" +\n \" width:250px;\\n\" +\n \" float:right;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"\\n\" +\n \"#footer {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" clear:both;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"</style> \");\n out.println(\"<head>\" );\n out.println(\"<LINK href=\\\"C:/Users/hanemay/Documents/NetBeansProjects/CookingApp/web/style.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\">\");\n out.println(\"<div id=\\\"header\\\">\\n\" +\n \"<h1>Kraft Recipes</h1>\\n\" +\n \"</div>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n Enumeration<String> infomaterials= request.getParameterNames();\n while(infomaterials.hasMoreElements()) {\n System.out.println(infomaterials.nextElement()); \n } \n int amount = 100;\n String[] test = recResp.returnCats();\n try{\n amount = Integer.parseInt(request.getParameter(\"Question3\"));\n }catch(Exception e){\n \n }\n Recipes reccResp = new Recipes(amount); \n try{\n if(request.getParameter(\"isHealthy\").equalsIgnoreCase(\"healthy\"))\n reccResp.setHealthy(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"isFastFood\").equalsIgnoreCase(\"Fast food\"))\n reccResp.setUnder30Minutes(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"reqPic\").equalsIgnoreCase(\"Pictures required\"))\n reccResp.setbIsRecipePhotoRequired(true);\n }catch(Exception e){}\n reccResp.setbIsRecipePhotoRequired(true);\n while(recResp.amountOfCategories != getCount){\n reccResp.setbIsRecipePhotoRequired(true);\n reccResp.Search(recResp,recResp.recResp.getRecipeCategories().getRecipeCategory().get(getCount).categoryID);\n RecipeSummariesResponse recSumResp = reccResp.results();\n for(int recNames = 0; recNames < reccResp.getMaxAmountItems(); recNames++) {\n String url = recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).photoURL;\n if(recNames == 0){\n out.println(\"<div id=\\\"sectionC\\\">\\n\" +\n \"<h2>\"+test[getCount]+\"</h2>\\n\" +\n \"</div>\");}\n // if(recNames % 2==0){\n out.println(\"<div \\\"row\\\">\\n\" +\n \"<div id=\\\"sectionl\\\">\\n\" +\n \"<h3>\"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).recipeName+\"</h3>\\n\" + \n \"<img src=\\\"\"+url+\"\\\" style=\\\"height:254px;width:254px\\\">\\n\" +\n \"<p>\\n\" +\n \"<p>Number of ingrediens needed for this recipe : \"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()+\"</p>\\n\" +\n \"\");\n RecipeDetailResponse rec = reccResp.soapService.getRecipeByRecipeID(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getRecipeID(), true, 1, 1);\n for(int ingredientCounter = 0; ingredientCounter < Integer.parseInt(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()); ingredientCounter++ ){\n out.println(\"<p>\" + rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).ingredientName + \" amount : \"+ rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).quantityNum+\" \"+\n \"</p>\");\n }\n out.println(\"</p>\");\n out.println(\"</div>\\n\" );\n } \n getCount ++;\n }\n out.println(\"</body>\"); \n out.println(\"</html>\");\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/json;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n\n XTreeDictionary data = new XTreeDictionary();\n MapConverter map = new MapConverter(data);\n Gson gson = new Gson();\n String bid = request.getParameter(\"bid\");\n if (bid == null ? true : bid.isEmpty()) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n XArrayList booking_list = AbstractEntity.readDataFormCsv(new Booking());\n booking_list = booking_list.binarySearchAndSort(\"booking_id\", bid, Booking.class);\n if (booking_list == null ? true : booking_list.isEmpty()) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n Booking b = (Booking) booking_list.get(0);\n if (b == null ? true : b.isNotNull() || b.getDriver_id() == null) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n if (b.getBookingStatus().equals(BookingStatus.WATING_ACCEPTED)) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n\n XArrayList driver_list = AbstractEntity.readDataFormCsv(new Driver());\n driver_list = driver_list.binarySearchAndSort(\"user_id\", b.getDriver_id(), Driver.class);\n if (driver_list == null ? true : driver_list.isEmpty() || driver_list.get(0) == null) {\n data.add(\"status\", \"NO-UPDATE\");\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n return;\n }\n\n // Have update\n Driver d = (Driver) driver_list.get(0);\n // ouser phone, ouser name, ouser profile picture, booking status name\n // ouser_phone, ouser_name, ouser_profile, booking_status\n data.add(\"status\", \"OK\");\n data.add(\"ouser_phone\", d.getPhoneNumber() == null ? \"\" : d.getPhoneNumber());\n data.add(\"ouser_name\", d.getName());\n data.add(\"booking_status\", b.getBookingStatus());\n data.add(\"ouser_profile\", Functions.getProfilePic_byid(d.getId()));\n out.print(gson.toJson(map, WebConfig.WRITING_CLASS));\n }\n\n }", "@Test\n public void testRender(){\n Mockito.doNothing().when(renderer).renderWorld(level);\n Mockito.doNothing().when(renderer).renderScore();\n Mockito.doNothing().when(renderer).renderLives();\n renderer.render();\n verify(renderer).renderWorld(level);\n verify(renderer).renderScore();\n verify(renderer).renderLives();\n verify(batch).begin();\n verify(batch).end();\n }", "private static String unguardedRenderResponseContent(EvaluableRequest evaluableRequest, Map<String, Object> requestContext, TemplateEngine engine, String responseContent) {\n engine.getContext().setVariable(\"request\", evaluableRequest);\n if (requestContext != null) {\n engine.getContext().setVariables(requestContext);\n }\n try {\n return engine.getValue(responseContent);\n } catch (Throwable t) {\n log.error(\"Failing at evaluating template \" + responseContent, t);\n }\n return responseContent;\n }", "@Test\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void testGridOutput() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"LOAD_CONFIG\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\tfinal String out = \"{\\\"id\\\":\\\"test\\\",\\\"url\\\":\\\"molgenis.do?__target\\\\u003dtest\\\\u0026__action\\\\u003ddownload_json\\\",\\\"datatype\\\":\\\"json\\\",\\\"pager\\\":\\\"#testPager\\\",\\\"colNames\\\":[\\\"Country.Code\\\",\\\"Country.Name\\\",\\\"Country.Continent\\\",\\\"Country.Region\\\",\\\"Country.SurfaceArea\\\",\\\"Country.IndepYear\\\",\\\"Country.Population\\\",\\\"Country.LifeExpectancy\\\",\\\"Country.GNP\\\",\\\"Country.GNPOld\\\",\\\"Country.LocalName\\\",\\\"Country.GovernmentForm\\\",\\\"Country.HeadOfState\\\",\\\"Country.Capital\\\",\\\"Country.Code2\\\",\\\"City.ID\\\",\\\"City.Name\\\",\\\"City.CountryCode\\\",\\\"City.District\\\",\\\"City.Population\\\",\\\"CountryLanguage.CountryCode\\\",\\\"CountryLanguage.Language\\\",\\\"CountryLanguage.IsOfficial\\\",\\\"CountryLanguage.Percentage\\\"],\\\"colModel\\\":[{\\\"name\\\":\\\"Country.Code\\\",\\\"index\\\":\\\"Country.Code\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Code\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Code\\\"},{\\\"name\\\":\\\"Country.Name\\\",\\\"index\\\":\\\"Country.Name\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Name\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Name\\\"},{\\\"name\\\":\\\"Country.Continent\\\",\\\"index\\\":\\\"Country.Continent\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Continent\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Continent\\\"},{\\\"name\\\":\\\"Country.Region\\\",\\\"index\\\":\\\"Country.Region\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Region\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Region\\\"},{\\\"name\\\":\\\"Country.SurfaceArea\\\",\\\"index\\\":\\\"Country.SurfaceArea\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.SurfaceArea\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.SurfaceArea\\\"},{\\\"name\\\":\\\"Country.IndepYear\\\",\\\"index\\\":\\\"Country.IndepYear\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.IndepYear\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.IndepYear\\\"},{\\\"name\\\":\\\"Country.Population\\\",\\\"index\\\":\\\"Country.Population\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Population\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Population\\\"},{\\\"name\\\":\\\"Country.LifeExpectancy\\\",\\\"index\\\":\\\"Country.LifeExpectancy\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.LifeExpectancy\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.LifeExpectancy\\\"},{\\\"name\\\":\\\"Country.GNP\\\",\\\"index\\\":\\\"Country.GNP\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GNP\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GNP\\\"},{\\\"name\\\":\\\"Country.GNPOld\\\",\\\"index\\\":\\\"Country.GNPOld\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GNPOld\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GNPOld\\\"},{\\\"name\\\":\\\"Country.LocalName\\\",\\\"index\\\":\\\"Country.LocalName\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.LocalName\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.LocalName\\\"},{\\\"name\\\":\\\"Country.GovernmentForm\\\",\\\"index\\\":\\\"Country.GovernmentForm\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.GovernmentForm\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.GovernmentForm\\\"},{\\\"name\\\":\\\"Country.HeadOfState\\\",\\\"index\\\":\\\"Country.HeadOfState\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.HeadOfState\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.HeadOfState\\\"},{\\\"name\\\":\\\"Country.Capital\\\",\\\"index\\\":\\\"Country.Capital\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Capital\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Capital\\\"},{\\\"name\\\":\\\"Country.Code2\\\",\\\"index\\\":\\\"Country.Code2\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"Country.Code2\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"Country.Code2\\\"},{\\\"name\\\":\\\"City.ID\\\",\\\"index\\\":\\\"City.ID\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.ID\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.ID\\\"},{\\\"name\\\":\\\"City.Name\\\",\\\"index\\\":\\\"City.Name\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.Name\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.Name\\\"},{\\\"name\\\":\\\"City.CountryCode\\\",\\\"index\\\":\\\"City.CountryCode\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.CountryCode\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.CountryCode\\\"},{\\\"name\\\":\\\"City.District\\\",\\\"index\\\":\\\"City.District\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.District\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.District\\\"},{\\\"name\\\":\\\"City.Population\\\",\\\"index\\\":\\\"City.Population\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":true,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"City.Population\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"City.Population\\\"},{\\\"name\\\":\\\"CountryLanguage.CountryCode\\\",\\\"index\\\":\\\"CountryLanguage.CountryCode\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.CountryCode\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.CountryCode\\\"},{\\\"name\\\":\\\"CountryLanguage.Language\\\",\\\"index\\\":\\\"CountryLanguage.Language\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.Language\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.Language\\\"},{\\\"name\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"index\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"bw\\\",\\\"bn\\\",\\\"ew\\\",\\\"en\\\",\\\"cn\\\",\\\"nc\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":false,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.IsOfficial\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.IsOfficial\\\"},{\\\"name\\\":\\\"CountryLanguage.Percentage\\\",\\\"index\\\":\\\"CountryLanguage.Percentage\\\",\\\"width\\\":100,\\\"sortable\\\":true,\\\"search\\\":true,\\\"searchoptions\\\":{\\\"required\\\":true,\\\"searchhidden\\\":true,\\\"stype\\\":\\\"text\\\",\\\"sopt\\\":[\\\"eq\\\",\\\"ne\\\",\\\"lt\\\",\\\"le\\\",\\\"gt\\\",\\\"ge\\\"],\\\"dataInit\\\":\\\"function(elem){ $(elem).datepicker({dateFormat:\\\\\\\"mm/dd/yyyy\\\\\\\"});}}\\\"},\\\"searchrules\\\":{\\\"number\\\":true,\\\"integer\\\":false,\\\"email\\\":false,\\\"date\\\":false,\\\"time\\\":false},\\\"title\\\":\\\"CountryLanguage.Percentage\\\",\\\"isFolder\\\":false,\\\"path\\\":\\\"CountryLanguage.Percentage\\\"}],\\\"rowNum\\\":10,\\\"rowList\\\":[10,20,30],\\\"viewrecords\\\":true,\\\"caption\\\":\\\"test\\\",\\\"autowidth\\\":true,\\\"sortname\\\":\\\"\\\",\\\"sortorder\\\":\\\"desc\\\",\\\"height\\\":\\\"auto\\\",\\\"postData\\\":{\\\"filters\\\":{\\\"groupOp\\\":\\\"AND\\\",\\\"rules\\\":[]},\\\"rows\\\":0,\\\"page\\\":0},\\\"jsonReader\\\":{\\\"id\\\":\\\"Name\\\",\\\"repeatitems\\\":false},\\\"settings\\\":{\\\"del\\\":false,\\\"add\\\":false,\\\"edit\\\":false,\\\"search\\\":true},\\\"toolbar\\\":[true,\\\"top\\\"]}\";\n\n\t\t// test whether the desired json data is written\n\t\tverify(mockOutstream).println(out);\n\n\t\t// some tests to check the structure of the json\n\t\tfinal Gson gson = new Gson();\n\t\tfinal Map<String, Object> map2 = gson.fromJson(out, Map.class);\n\t\tassertEquals(\"test\", map2.get(\"id\"));\n\t\tassertEquals(\"molgenis.do?__target\\u003dtest\\u0026__action\\u003ddownload_json\", map2.get(\"url\"));\n\t\tassertEquals(Arrays.asList(\"Country.Code\", \"Country.Name\", \"Country.Continent\", \"Country.Region\",\n\t\t\t\t\"Country.SurfaceArea\", \"Country.IndepYear\", \"Country.Population\", \"Country.LifeExpectancy\",\n\t\t\t\t\"Country.GNP\", \"Country.GNPOld\", \"Country.LocalName\", \"Country.GovernmentForm\", \"Country.HeadOfState\",\n\t\t\t\t\"Country.Capital\", \"Country.Code2\", \"City.ID\", \"City.Name\", \"City.CountryCode\", \"City.District\",\n\t\t\t\t\"City.Population\", \"CountryLanguage.CountryCode\", \"CountryLanguage.Language\",\n\t\t\t\t\"CountryLanguage.IsOfficial\", \"CountryLanguage.Percentage\"), map2.get(\"colNames\"));\n\t\tfinal Map<?, ?> countryCodeColumn = ((ArrayList<Map<?, ?>>) map2.get(\"colModel\")).get(0);\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"name\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"index\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"title\"));\n\t\tassertEquals(\"Country.Code\", countryCodeColumn.get(\"path\"));\n\t\tassertEquals(Arrays.asList(\"eq\", \"ne\", \"bw\", \"bn\", \"ew\", \"en\", \"cn\", \"nc\"),\n\t\t\t\t((Map<?, ?>) countryCodeColumn.get(\"searchoptions\")).get(\"sopt\"));\n\t\tassertEquals(10.0, map2.get(\"rowNum\"));\n\t\tassertEquals(Arrays.asList(10.0, 20.0, 30.0), map2.get(\"rowList\"));\n\t\tassertEquals(\"desc\", map2.get(\"sortorder\"));\n\t}", "@Override\n\tprotected void buildExcelDocument(Map<String, Object> model, HSSFWorkbook workbook, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception \n\t{\n\t\t\n\t\tString formName = (String)model.get(\"formName\");\n\t\tif (\"Supplier\".equals(formName))\n\t\t\tsetSupplierExcelData(model, workbook);\n\t\telse if (\"Customer\".equals(formName))\n\t\t\tsetCustomerExcelData(model, workbook);\n\t\telse if (\"Item\".equals(formName))\n\t\t\tsetItemExcelData(model, workbook);\n\t\telse if (\"NonInventoryItem\".equals(formName))\n\t\t\tsetNonInventoryExcelData(model, workbook);\n\t\telse if (\"Project\".equals(formName))\n\t\t\tsetProjectExcelData(model, workbook);\n\t\telse if (\"Warehouse\".equals(formName))\n\t\t\tsetWarehouseExcelData(model, workbook);\n\t\t\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\" + formName);\n\t\n\t}", "protected void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\trequest.setCharacterEncoding(\"UTF-8\");\r\n\t\tresponse.setContentType(\"text/html;charset=UTF-8\");\r\n\t\tBoardDTO dto = new BoardDTO();\r\n\t\tdto.setbTitle(request.getParameter(\"bTitle\"));\r\n\t\tdto.setbWriter(request.getParameter(\"bWriter\"));\r\n\t\tdto.setbPassword(request.getParameter(\"bPassword\"));\r\n\t\tdto.setbContent(request.getParameter(\"bContent\"));\r\n\t\tWirteService writesvc = new WirteService();\r\n\t\twritesvc.WirteService(dto);\r\n\t}", "protected void processTemplate(Map<String,?> attributes, Writer out, Template template, String encoding) throws IOException {\n long startTime = System.currentTimeMillis();\n\n Context context = buildContext(attributes);\n template.setEncoding(encoding);\n\n try {\n template.merge(context, out);\n log.debug(\"Velocity template transform processed in \" + \n (System.currentTimeMillis() - startTime) + \" ms\");\n } catch (ResourceNotFoundException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (ParseErrorException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (Exception errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/json;charset=utf-8\");\n try (PrintWriter out = response.getWriter()) {\n\n String file = request.getParameter(\"file\");\n String className = file.substring(0, file.indexOf(\".\"));\n\n try {\n \n JSONObject obj = new JSONObject();\n JSONArray errArray = new JSONArray();\n JSONArray outArray = new JSONArray();\n \n for(String aError : execErroutput(Config.DATA_PATH, Config.CMD_ENCODE, className)){\n errArray.put(aError);\n }\n for(String aOutput : execOutput(Config.DATA_PATH, Config.CMD_ENCODE, className)){\n outArray.put(aOutput);\n }\n \n obj.put(\"Error\", errArray);\n obj.put(\"Output\", outArray);\n \n out.println(obj.toString(4));\n \n } catch (Exception e) {\n System.err.println(e);\n }\n\n }\n }", "private void doSearchError(Map<String, Object> map, Configuration config, HttpServletRequest request, HttpServletResponse response) {\n writeTemplate(TEMPLATE_DEFAULT, map, config, request, response);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet GetWallGroupPostsServlet</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet GetWallGroupPostsServlet at \" + request.getContextPath () + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n */\n } finally { \n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\"); \n PrintWriter out = response.getWriter();\n \n /**\n * cdmsDO :: addMarket\n * --> cdmaCity\n * --> cdmaBorough\n * --> cdmaLocality\n * --> cdmCompany\n * :: getMarket\n * --> cdmID (OPTIONAL)\n * :: deleteMarket\n * --> cdmID\n *\n * \n * !! SHORTCUTs !!\n * carpe diem market --> cdm\n * carpe diem market address --> cdma\n * carpe diem market servlet --> cdms \n *\n */\n HttpSession session = request.getSession(false);\n Gson gson = new Gson();\n MysqlDBOperations mysql = new MysqlDBOperations();\n ResourceProperty resource = new ResourceProperty(\"com.generic.resources.mysqlQuery\");\n Result res = Result.FAILURE_PROCESS;\n Map resultMap = new HashMap();\n \n \n \n //verbose(request);\n \n \n \n //**********************************************************************\n //**********************************************************************\n //** STRIKE UP SERVLET OPERATION\n //**********************************************************************\n //**********************************************************************\n try {\n \n \n \n if(request.getParameter(\"cdmsDO\")!=null){ \n switch(request.getParameter(\"cdmsDO\")){ \n \n //**************************************************************\n //**************************************************************\n //** ADD TO MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"addMarket\": \n \n if( !Checker.anyNull(request.getParameter(\"cdmaCity\"),request.getParameter(\"cdmaBorough\"),request.getParameter(\"cdmaLocality\"),request.getParameter(\"cdmCompany\")) ){ \n \n // create dist-id\n // get address id\n \n \n res = Result.SUCCESS;\n }else{\n res = Result.FAILURE_PARAM_MISMATCH;\n }\n \n\n break;\n \n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketList\": \n \n \n // GET SPECIFIC MARKET\n if(!Checker.anyNull(request.getParameter(\"cdmID\"))){\n \n Map params = new HashMap();\n params.put(\"\", request.getParameter(\"cdmID\"));\n \n // GET ALL MARKETs\n }else{\n \n res = DBMarket.selectDistict(ResourceMysql.TABLE_DISTRIBUTER, \"distID\");\n \n }\n \n \n break;\n \n \n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET-ADRESS CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketAddressList\": \n \n \n // GET SPECIFIC MARKET\n if(!Checker.anyNull(request.getParameter(\"cdmID\"))){\n \n Map params = new HashMap();\n params.put(\"\", request.getParameter(\"cdmID\"));\n \n // GET ALL MARKETs\n }else{\n \n res = Result.FAILURE_PARAM_MISMATCH;\n \n }\n \n \n break;\n \n \n //**************************************************************\n //**************************************************************\n //** GET MARKET-ORDER CASE\n //**************************************************************\n //**************************************************************\n case \"getMarketOrderList\": \n \n Result tempRes = DBUser.getUserCompany((String) session.getAttribute(\"cduUserId\")); \n if(tempRes.checkResult(Result.SUCCESS)){\n // Get user company and distributer id\n Map userMap = (Map) tempRes.getContent();\n String compName = (String) ((ArrayList)userMap.get(\"userCompany\")).get(0);\n String distName = (String) ((ArrayList)userMap.get(\"userDistributer\")).get(0); \n\n tempRes = DBMarket.getAddresses(distName);\n if(tempRes.checkResult(Result.SUCCESS)){\n Map m = (Map) tempRes.getContent();\n res = DBMarket.getOrders(compName, (List<String>) m.get(\"distAddressList\"));\n }\n }else{\n res = Result.FAILURE_PROCESS;\n }\n \n \n break;\n \n \n \n \n \n //**************************************************************\n //**************************************************************\n //** REMOVE MARKET CASE\n //**************************************************************\n //**************************************************************\n case \"deleteMarket\":\n \n \n \n break;\n \n \n \n //**************************************************************\n //**************************************************************\n //** DEFAULT CASE\n //**************************************************************\n //**************************************************************\n default:\n res = Result.FAILURE_PARAM_WRONG;\n break;\n }\n\n }else{\n res = Result.FAILURE_PARAM_MISMATCH;\n }\n \n }finally{ \n \n mysql.closeAllConnection();\n out.write(gson.toJson(res));\n out.close();\n \n }\n \n }", "protected void renderMap(float mouseLocationX, float mouseLocationY)\n {\n float tileSize = zoom;\n\n //Calculate the number of tiles that can fit on screen\n int tiles_x = (int) Math.ceil(screenSizeX / tileSize) + 2;\n int tiles_y = (int) Math.ceil(screenSizeY / tileSize) + 2;\n\n //Offset tile position based on camera\n int center_x = (int) (cameraPosX - (zoom / 2f));\n int center_y = (int) (cameraPosY - (zoom / 2f));\n\n //Calculate the offset to make tiles render from the center\n int renderOffsetX = (tiles_x - 1) / 2;\n int renderOffsetY = (tiles_y - 1) / 2;\n\n //Get the position of the mouse based on screen size and tile scale\n float mouseScreenPosXScaled = mouseLocationX * screenSizeX / tileSize;\n float mouseScreenPosYScaled = mouseLocationY * screenSizeY / tileSize;\n\n //Get the position of the mouse relative to the map\n int mouseMapPosX = (int) Math.floor(center_x + mouseScreenPosXScaled);\n int mouseMapPosY = (int) Math.floor(center_y + mouseScreenPosYScaled);\n\n //Get the tile the mouse is currently over\n Tile tileUnderMouse = game.getWorld().getTile(mouseMapPosX, mouseMapPosY, cameraPosZ);\n\n //Render tiles\n for (int x = -renderOffsetX; x < renderOffsetX; x++)\n {\n for (int y = -renderOffsetY; y < renderOffsetY; y++)\n {\n int tile_x = x + center_x;\n int tile_y = y + center_y;\n Tile tile = game.getWorld().getTile(tile_x, tile_y, cameraPosZ);\n if (tile != Tiles.AIR)\n {\n TileRender.render(tile, x * tileSize, y * tileSize, zoom);\n }\n }\n }\n\n //Render entities\n for (Entity entity : game.getWorld().getEntities())\n {\n //Ensure the entity is on the floor we are rendering\n if (entity.zi() == cameraPosZ)\n {\n float tile_x = (entity.xf() - center_x) * tileSize;\n float tile_y = (entity.yf() - center_y) * tileSize;\n\n //Ensure the entity is in the camera view\n if (tile_x >= cameraBoundLeft && tile_x <= cameraBoundRight)\n {\n if (tile_y >= cameraBoundBottom && tile_y <= cameraBoundTop)\n {\n EntityRender.render(entity, tile_x, tile_y, 0, zoom);\n\n if (mouseMapPosX == entity.xi() && mouseMapPosY == entity.yi())\n {\n String s = entity.getDisplayName();\n fontRender.render(s, mouseLocationX * screenSizeX, mouseLocationY * screenSizeY, 0, 0, .5f * zoom);\n }\n }\n }\n }\n }\n\n float x = mouseMapPosX * tileSize;\n float y = mouseMapPosY * tileSize;\n\n //System.out.println(x + \" \" + y + \" \" + zoom + \" \" + tx + \" \" + ty + \" \" + tile);\n\n if (currentGuiComponetInUse != null)\n {\n target_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n else\n {\n box_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n\n if (!MouseInput.leftClick() && clickLeft)\n {\n clickLeft = false;\n doLeftClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n\n if (!MouseInput.rightClick() && clickRight)\n {\n clickRight = false;\n doRightClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "@RequestMapping(value=\"hao.do\")\n\tpublic void hao_jsp(@ModelAttribute(\"pojo\") Pojo pojo,HttpServletResponse response) throws IOException{\n\t\tSystem.out.println(pojo.getA()+\" \"+pojo.getB());\n\t\tresponse.sendRedirect(\"success.jsp\");\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n\n String html = \" <span class=\\\"glyphicon glyphicon-exclamation-sign\\\" aria-hidden=\\\"true\\\"></span><span class=\\\"sr-only\\\">Error:</span> \";\n\n String message = \"\";\n\n try {\n /* TODO output your page here. You may use following sample code. */\n\n boolean error = false;\n\n // Check Lat Lon\n String latlng = String.valueOf(request.getParameter(\"latlng\"));\n String lat = \"\";\n String lon = \"\";\n if (!latlng.equals(\"null\") && !latlng.equals(\"\")) {\n int position = latlng.indexOf(\",\");\n lat = latlng.substring(0, position);\n lon = latlng.substring(position + 1, latlng.length());\n } else {\n message += html + \"Please select a point on the map! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n\n // Check number of projects\n int number_of_projects = 0;\n try {\n number_of_projects = Integer.parseInt(String.valueOf(request.getParameter(\"number_of_projects\")));\n } catch (Exception e) {\n }\n if (number_of_projects <= 0) {\n message += html + \"Please enter a positive integer! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n if (number_of_projects > 100) {\n message += html + \"Number of projects is limited to 100! <br>\";\n request.setAttribute(\"error\", message);\n error = true;\n }\n\n // If no error\n if (!error) {\n ProjectDAO pdao = new ProjectDAO();\n ArrayList<Project> result = pdao.retrieve(number_of_projects, lat, lon);\n JsonArray projectList = pdao.toJSON(result, number_of_projects);\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(projectList);\n request.setAttribute(\"project_comparison_result\", json);\n }\n\n request.setAttribute(\"return_num\", number_of_projects);\n request.setAttribute(\"latlng\", latlng);\n RequestDispatcher rd = request.getRequestDispatcher(\"ProjectComparison.jsp\");\n rd.forward(request, response);\n\n } catch (Exception e) {\n // Send error (if any) back to homepage\n } finally {\n out.close();\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n RequestDispatcher rd=null;\n HttpSession session = request.getSession();\n String userid = (String)session.getAttribute(\"userid\");\n if(userid==null)\n {\n session.invalidate();\n response.sendRedirect(\"accessdenied.html\");\n return;\n }\n try\n {\n System.out.println(\"in the try of election result controller servlet\");\n Map<String , Integer> result = VoteDao.getResult();\n System.out.println(\"fetched party and vote from voteDao\");\n Set s = result.entrySet();\n Iterator it = s.iterator();\n LinkedHashMap<PartyWiseResult , Integer> resultDetails = new LinkedHashMap<>();\n while(it.hasNext())\n {\n Map.Entry<String , Integer> e = (Map.Entry)it.next();\n System.out.println(\"no we are iterating with \"+e.getKey());\n String symbol = CandidateDao.getPartySymbol(e.getKey());\n System.out.println(\"got the symbol for \"+e.getKey());\n PartyWiseResult pw = new PartyWiseResult();\n pw.setParty(e.getKey());\n pw.setSymbol(symbol);\n resultDetails.put(pw, e.getValue());\n \n }\n request.setAttribute(\"votecount\", VoteDao.getVoteCount());\n request.setAttribute(\"result\", resultDetails);\n rd = request.getRequestDispatcher(\"electionresult.jsp\");\n System.out.println(\"attribute for show election result is setted successfully\");\n }\n catch(Exception ex)\n {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n request.setAttribute(\"Exception\", ex);\n rd = request.getRequestDispatcher(\"showexception.jsp\");\n }\n finally\n {\n System.out.println(\"we are in the finally\");\n rd.forward(request, response);\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n } finally { \r\n out.close();\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n long id = new Integer(request.getParameter(\"id\"));\n\n \n ResourcePOJO res = null;\n// try {\n res = manager.getResource(id, false);\n// } catch (JAXBException e) {\n// throw new IOException(e.getMessage());\n// }\n LayerManager layerBean = new LayerManager(res);\n \n try {\n \n request.setAttribute(\"layer\", layerBean);\n \n String layerName = layerBean.getName();\n \n List<ResourcePOJO> relatedStatsDefs = manager.searchStatsDefByLayer(layerName);\n request.setAttribute(\"statsDefs\", relatedStatsDefs);\n \n List<ResourcePOJO> relatedLayerUpdates = manager.searchLayerUpdatesByLayerName(layerName);\n request.setAttribute(\"layerUpdates\", relatedLayerUpdates);\n \n String data = manager.getData(id, MediaType.WILDCARD_TYPE.toString());\n layerBean.setData(data);\n \n request.setAttribute(\"storedData\", data);\n \n } catch (Exception ex) {\n Logger.getLogger(LayerShow.class.getName()).log(Level.SEVERE, null, ex);\n }\n String outputPage = getServletConfig().getInitParameter(\"outputPage\");\n RequestDispatcher rd = request.getRequestDispatcher(outputPage);\n rd.forward(request, response);\n }", "@Override\n protected void handleRequest (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope,\n @Nonnull final UnifiedResponse aUnifiedResponse) throws Exception\n {\n String sKey = aRequestScope.getPathWithinServlet ();\n if (sKey.length () > 0)\n sKey = sKey.substring (1);\n\n SimpleURL aTargetURL = null;\n final GoMappingItem aGoItem = getResolvedGoMappingItem (sKey);\n if (aGoItem == null)\n {\n s_aLogger.warn (\"No such go-mapping item '\" + sKey + \"'\");\n // Goto start page\n aTargetURL = getURLForNonExistingItem (aRequestScope, sKey);\n s_aStatsError.increment (sKey);\n }\n else\n {\n // Base URL\n if (aGoItem.isInternal ())\n {\n final IMenuTree aMenuTree = getMenuTree ();\n if (aMenuTree != null)\n {\n // If it is an internal menu item, check if this internal item is an\n // \"external menu item\" and if so, directly use the URL of the\n // external menu item\n final IRequestManager aARM = ApplicationRequestManager.getRequestMgr ();\n final String sTargetMenuItemID = aARM.getMenuItemFromURL (aGoItem.getTargetURL ());\n\n final IMenuObject aMenuObj = aMenuTree.getItemDataWithID (sTargetMenuItemID);\n if (aMenuObj instanceof IMenuItemExternal)\n {\n aTargetURL = new SimpleURL (((IMenuItemExternal) aMenuObj).getURL ());\n }\n }\n }\n if (aTargetURL == null)\n {\n // Default case - use target link from go-mapping\n aTargetURL = aGoItem.getTargetURL ();\n }\n\n // Callback\n modifyResultURL (aRequestScope, sKey, aTargetURL);\n\n s_aStatsOK.increment (sKey);\n }\n\n // Append all request parameters of this request\n // Don't use the request attributes, as there might be more of them\n final Enumeration <?> aEnum = aRequestScope.getRequest ().getParameterNames ();\n while (aEnum.hasMoreElements ())\n {\n final String sParamName = (String) aEnum.nextElement ();\n final String [] aParamValues = aRequestScope.getRequest ().getParameterValues (sParamName);\n if (aParamValues != null)\n for (final String sParamValue : aParamValues)\n aTargetURL.add (sParamName, sParamValue);\n }\n\n if (s_aLogger.isDebugEnabled ())\n s_aLogger.debug (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n else\n if (GlobalDebug.isDebugMode ())\n s_aLogger.info (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n\n // Main redirect :)\n aUnifiedResponse.setRedirect (aTargetURL);\n }", "@Mapper(componentModel = \"spring\")\npublic interface DemoMapper {\n DemoResponse map(Demo demo);\n}", "public void markRenderModelsModified() {\n\t\t\n\t\t// TODO dispose of the VBOs!!!\n\t\trenderUnits = null;\n\t\t\n\t}", "@Override\n public String execute(HttpServletRequest request, HttpServletResponse response) throws Exception {\n String myresult = \"My result\";\n// Collection <Player> myresult = fullTeamService.getTeam();\n\n request.setAttribute(\"myresult\", myresult);\n\n return \"view/anotherResultMul.jsp\";\n\n\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 /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet LibrarySystemController</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet LibrarySystemController at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "public void render (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n response.setTitle(getTitle(request));\n doDispatch(request, response);\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 /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet StatisticalReport</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet StatisticalReport at \" + request.getContextPath() + \"</h1>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }\n }", "@RequestMapping(value = \"/homed/{map}\", method = RequestMethod.GET)\r\n public String mapHomeDebug(HttpServletRequest request, @PathVariable(\"map\") String map, ModelMap model) throws ServletException, IOException { \r\n return(renderPage(request, model, \"map\", map, null, null, true));\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(OrgDisplay.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(OrgDisplay.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response); \n }", "private void generateSearchReport(final Map<String, String> request,\r\n\t\t\tfinal List<Map<String, String>> resultMap) {\r\n\t\tMap<String, String> reportMap = null;\r\n\r\n\t\tfor (final Map<String, String> map : resultMap) {\r\n\t\t\tif (map.containsKey(CommonConstants.TOTAL_PRODUCTS)) {\r\n\t\t\t\treportMap = this.getReportMap(request);\r\n\t\t\t\tfinal StringBuilder attributes = new StringBuilder();\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.COLOR)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.COLOR);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.COLOR));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.SIZE)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.SIZE);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.SIZE));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.BRAND)) {\r\n\t\t\t\t\tattributes.append(CommonConstants.BRAND);\r\n\t\t\t\t\tattributes.append(CommonConstants.FIELD_PAIR_SEPARATOR);\r\n\t\t\t\t\tattributes.append(request\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.BRAND));\r\n\t\t\t\t\tattributes.append(CommonConstants.PIPE_SEPERATOR);\r\n\t\t\t\t}\r\n\t\t\t\tthis.requestAttributePrice(request, attributes);\r\n\t\t\t\tif (attributes.length() != 0) {\r\n\t\t\t\t\treportMap.put(DomainConstants.ATTRIBUTES, attributes\r\n\t\t\t\t\t\t\t.toString().substring(0, attributes.length() - 1));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString sortFields = \"\";\r\n\t\t\t\tif (request.containsKey(RequestAttributeConstant.SORT)) {\r\n\t\t\t\t\tsortFields = request.get(RequestAttributeConstant.SORT);\r\n\t\t\t\t}\r\n\t\t\t\tif (!\"\".equals(sortFields)) {\r\n\t\t\t\t\treportMap.put(DomainConstants.SORT_FIELDS, sortFields\r\n\t\t\t\t\t\t\t.replace(CommonConstants.EMPTY_VALUE,\r\n\t\t\t\t\t\t\t\t\tCommonConstants.COMMA_SEPERATOR));\r\n\t\t\t\t}\r\n\t\t\t\tmap.putAll(reportMap);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n \r\n }", "public void foreachResultCreateHTML(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n\n // call for a single ini file\n if (sInputPath.toLowerCase().endsWith(\".ini\") )\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n // check if there exists an ini file\n String sPath = FileHelper.getPath(sInputPath); \n String sBasename = FileHelper.getBasename(sInputPath);\n\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n \n // Create a HTML page which shows locally to all files in .odb\n if (sInputPath.toLowerCase().endsWith(\".odb\"))\n {\n String sIndexFile = FileHelper.appendPath(sPath, \"index.ini\");\n File aIndexFile = new File(sIndexFile);\n if (aIndexFile.exists())\n { \n IniFile aIniFile = new IniFile(sIndexFile);\n\n if (aIniFile.hasSection(sBasename))\n {\n // special case for odb files\n int nFileCount = aIniFile.getIntValue(sBasename, \"reportcount\", 0);\n ArrayList<String> aList = new ArrayList<String>();\n for (int i=0;i<nFileCount;i++)\n {\n String sValue = aIniFile.getValue(sBasename, \"report\" + i);\n\n String sPSorPDFName = getPSorPDFNameFromIniFile(aIniFile, sValue);\n if (sPSorPDFName.length() > 0)\n {\n aList.add(sPSorPDFName);\n }\n }\n if (aList.size() > 0)\n {\n // HTML output for the odb file, shows only all other documents.\n HTMLResult aOutputter = new HTMLResult(sPath, sBasename + \".ps.html\" );\n aOutputter.header(\"content of DB file: \" + sBasename);\n aOutputter.indexSection(sBasename);\n \n for (int i=0;i<aList.size();i++)\n {\n String sPSFile = aList.get(i);\n\n // Read information out of the ini files\n String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + \".ini\");\n IniFile aIniFile2 = new IniFile(sIndexFile2);\n String sStatusRunThrough = aIniFile2.getValue(\"global\", \"state\");\n String sStatusMessage = \"\"; // aIniFile2.getValue(\"global\", \"info\");\n aIniFile2.close();\n\n\n String sHTMLFile = sPSFile + \".html\";\n aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage);\n }\n aOutputter.close();\n\n// String sHTMLFile = FileHelper.appendPath(sPath, sBasename + \".ps.html\");\n// try\n// {\n//\n// FileOutputStream out2 = new FileOutputStream(sHTMLFile);\n// PrintStream out = new PrintStream(out2);\n//\n// out.println(\"<HTML>\");\n// out.println(\"<BODY>\");\n// for (int i=0;i<aList.size();i++)\n// {\n// // <A href=\"link\">blah</A>\n// String sPSFile = (String)aList.get(i);\n// out.print(\"<A href=\\\"\");\n// out.print(sPSFile + \".html\");\n// out.print(\"\\\">\");\n// out.print(sPSFile);\n// out.println(\"</A>\");\n// out.println(\"<BR>\");\n// }\n// out.println(\"</BODY></HTML>\");\n// out.close();\n// out2.close();\n// }\n// catch (java.io.IOException e)\n// {\n// \n// }\n }\n }\n aIniFile.close();\n }\n\n }\n }\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n String action = request.getParameter(\"action\");\n LogementModel model = new LogementModel();\n MaisonDAO implm = new MaisonDAO();\n AppartementDAO impla = new AppartementDAO();\n ChambreDAO implc = new ChambreDAO();\n\n request.setAttribute(\"model\", model);\n\n if (action != null) {\n if (action.equals(\"maison\")) {\n ArrayList<Maison> listm = implm.listMaisonD();\n model.setMaisons(listm);\n } else if (action.equals(\"appartement\")) {\n ArrayList<Appartement> lisa = impla.listAppartementD();\n model.setAppartements(lisa);\n } else if (action.equals(\"chambre\")) {\n ArrayList<Chambre> lista = implc.listChambreD();\n model.setChambres(lista);\n }/*else if (action.equals(\"tout\")) {\n List<Logement> logement = impl.listlogements();\n model.setLogements(logement);\n }*/\n\n }\n request.getRequestDispatcher(\"index.jsp\").forward(request,\n response);\n\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Loggable\n protected ModelAndView handle(final HttpServletRequest request, final HttpServletResponse response,\n final Object commandObj, final BindException errors)\n throws InvalidTestbedIdException, TestbedNotFoundException {\n final long start = System.currentTimeMillis();\n\n long start1 = System.currentTimeMillis();\n\n // set command object\n final TestbedCommand command = (TestbedCommand) commandObj;\n\n // a specific testbed is requested by testbed Id\n int testbedId;\n try {\n testbedId = Integer.parseInt(command.getTestbedId());\n } catch (NumberFormatException nfe) {\n throw new InvalidTestbedIdException(\"Testbed IDs have number format.\", nfe);\n }\n\n LOGGER.info(\"--------- Get Testbed id: \" + (System.currentTimeMillis() - start1));\n start1 = System.currentTimeMillis();\n\n // look up testbed\n final Testbed testbed = testbedManager.getByID(testbedId);\n if (testbed == null) {\n // if no testbed is found throw exception\n throw new TestbedNotFoundException(\"Cannot find testbed [\" + testbedId + \"].\");\n }\n LOGGER.info(\"got testbed \" + testbed);\n\n LOGGER.info(\"--------- Get Testbed: \" + (System.currentTimeMillis() - start1));\n\n\n if (nodeCapabilityManager == null) {\n LOGGER.error(\"nodeCapabilityManager==null\");\n }\n\n start1 = System.currentTimeMillis();\n // get a list of node last readings from testbed\n final List<NodeCapability> nodeCapabilities = nodeCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- list nodeCapabilities: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n String nodeCaps;\n try {\n nodeCaps = HtmlFormatter.getInstance().formatLastNodeReadings(nodeCapabilities);\n } catch (NotImplementedException e) {\n nodeCaps = \"\";\n }\n LOGGER.info(\"--------- format last node readings: \" + (System.currentTimeMillis() - start1));\n\n start1 = System.currentTimeMillis();\n // get a list of link statistics from testbed\n final List<LinkCapability> linkCapabilities = linkCapabilityManager.list(testbed.getSetup());\n LOGGER.info(\"--------- List link capabilities: \" + (System.currentTimeMillis() - start1));\n\n\n // Prepare data to pass to jsp\n final Map<String, Object> refData = new HashMap<String, Object>();\n refData.put(\"testbed\", testbed);\n refData.put(\"lastNodeReadings\", nodeCaps);\n\n\n try {\n start1 = System.currentTimeMillis();\n refData.put(\"lastLinkReadings\", HtmlFormatter.getInstance().formatLastLinkReadings(linkCapabilities));\n LOGGER.info(\"--------- format link Capabilites: \" + (System.currentTimeMillis() - start1));\n } catch (NotImplementedException e) {\n LOGGER.error(e);\n }\n\n LOGGER.info(\"--------- Total time: \" + (System.currentTimeMillis() - start));\n refData.put(\"time\", String.valueOf((System.currentTimeMillis() - start)));\n LOGGER.info(\"prepared map\");\n\n return new ModelAndView(\"testbed/status.html\", refData);\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"application/json\");\n try (PrintWriter out = response.getWriter()) {\n Gson gson = new Gson();\n\n ProblemsManager problemsManager = ServletUtils.getProblemsManager(getServletContext());\n List<TimeTableProblem> problemList = problemsManager.getProblems();\n List<DTOShortProblem> shortProblemsList= new LinkedList<>();\n for(TimeTableProblem problem:problemList)\n {\n shortProblemsList.add(new DTOShortProblem(problem));\n }\n\n\n String json = gson.toJson(shortProblemsList);\n out.println(json);\n out.flush();\n }\n }", "private void render(String templateName, HttpServletResponse response, MustacheFactory mustacheFactory,\n\t\t\tObject context) throws IOException {\n\t\tMustache header = mustacheFactory.compile(templateName);\n\n\t\theader.execute(response.getWriter(), context);\n\t}" ]
[ "0.78017676", "0.7702195", "0.7521891", "0.7475822", "0.7375437", "0.731926", "0.68959254", "0.6616226", "0.64029306", "0.63493186", "0.6286869", "0.58493286", "0.566603", "0.56314", "0.54934675", "0.5431791", "0.5419895", "0.5373597", "0.52171135", "0.51532316", "0.51454186", "0.51152515", "0.5109659", "0.5090868", "0.5069375", "0.5050206", "0.49586156", "0.4956977", "0.4948576", "0.49482208", "0.49307218", "0.4922414", "0.49195093", "0.49146044", "0.4903331", "0.48952985", "0.4884228", "0.48779115", "0.48622793", "0.4860626", "0.48590747", "0.48227432", "0.4818365", "0.48160514", "0.47889972", "0.47419724", "0.4740115", "0.47334284", "0.47283", "0.4723729", "0.47174397", "0.47153494", "0.47087854", "0.47071123", "0.47060195", "0.46977428", "0.469759", "0.46871907", "0.46756658", "0.46715796", "0.4660685", "0.46586317", "0.46504918", "0.46374616", "0.46327278", "0.46311083", "0.4627521", "0.46223956", "0.46200392", "0.46165666", "0.46112454", "0.4607005", "0.4604167", "0.46030593", "0.4594806", "0.45945227", "0.45923975", "0.45871925", "0.45827553", "0.45748204", "0.45685673", "0.45671815", "0.45655036", "0.45597386", "0.455723", "0.45430353", "0.4540959", "0.45404112", "0.45394936", "0.45383194", "0.4535328", "0.45339483", "0.45339483", "0.45339483", "0.45339483", "0.45339483", "0.45339483", "0.45328498", "0.45321205", "0.45319375" ]
0.6990545
6
Run the void sendRedirect(HttpServletRequest,HttpServletResponse,String,boolean) method test.
@Test public void testSendRedirect_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); String targetUrl = ""; boolean http10Compatible = false; fixture.sendRedirect(request, response, targetUrl, http10Compatible); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sendRedirect(HttpServletResponse response, String location) throws AccessControlException, IOException;", "@Test\n\tpublic void testSendRedirect_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Override\n public void sendRedirect(String arg0) throws IOException {\n\n }", "@Test(expected = java.io.IOException.class)\n\tpublic void testSendRedirect_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Override\n\tpublic void sendRedirect(String location) throws IOException {\n\t}", "void redirect();", "void sendForward(HttpServletRequest request, HttpServletResponse response, String location) throws AccessControlException, ServletException, IOException;", "@Test\n public void oneRedirect() throws Exception {\n UrlPattern up1 = urlEqualTo(\"/\" + REDIRECT);\n stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", wireMock.url(TEST_FILE_NAME))));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n verify(1, getRequestedFor(up1));\n verify(1, getRequestedFor(up2));\n }", "void redirect(Reagent reagent);", "@Test\n public void tenRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 10)));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n redirectWireMock.stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=10\");\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n redirectWireMock.verify(10, getRequestedFor(up1));\n redirectWireMock.verify(1, getRequestedFor(up2));\n }", "@Override\n public void sendRedirect(String location) throws IOException {\n this._getHttpServletResponse().sendRedirect(location);\n }", "private void goOnPageBySendRedirect(final HttpServletResponse response, String goToPage, final String methodName)\n\t\t\tthrows IOException {\n\t\ttry {\n\t\t\tresponse.sendRedirect(goToPage);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"ServiceHrImpl: \" + methodName + \" : errorSendRedirect\", e);\n\t\t\tthrow e;\n\t\t}\n\t}", "public abstract void redirect(String url) throws IOException;", "public abstract String redirectTo();", "public static void redirect(HttpServletRequest req,\n HttpServletResponse resp, String redirectUrl) throws IOException {\n String isAJAXRequest = req.getParameter(\"AJAXRequest\"); // parameter\n if (isAJAXRequest == null) {\n resp.sendRedirect(redirectUrl);\n } else {\n resp.sendError(FOUR_O_ONE,\n \"Not Authorized to view the requested component\");\n }\n }", "@Override\r\n\tpublic boolean isRedirect() {\n\t\treturn false;\r\n\t}", "@Override\n\t\t\t\t\tpublic boolean isRedirected(HttpRequest request, HttpResponse response, HttpContext context)\n\t\t\t\t\t\t\tthrows ProtocolException {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}", "public void redirect(Object sendData, NodeInfo nodeInfo){\n send(sendData, nodeInfo);\n\n }", "private void doTransfer(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Start doing transfer.\");\r\n\t\tString page = null;\r\n\t\tTransferCommand command = new TransferCommand();\r\n\t\tpage = command.execute(req, resp);\r\n\t\tif (page.equals(\"/jsp/transfer_error.jspx\")) {\r\n\t\t\tRequestDispatcher dispatcher = getServletContext().getRequestDispatcher(page);\r\n\t\t\tdispatcher.forward(req, resp);\r\n\t\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Transfer was failed.\");\r\n\t\t} else {\r\n\t\t\tresp.sendRedirect(page);\r\n\t\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Transfer succesfull.\");\r\n\t\t}\r\n\t}", "void onSuccessRedirection(Response object, int taskID);", "private void dispatch(HttpServletRequest request, HttpServletResponse response, String redirectTo) throws IOException, ServletException {\n\t\tif (redirectTo.startsWith(PREFIX_REDIRECT)) {\n\t\t\tredirectTo = redirectTo.substring(PREFIX_REDIRECT.length(), redirectTo.length());\n\t\t\t\n\t\t\tif (redirectTo.startsWith(\"/\")) {\n\t\t\t\tredirectTo = request.getContextPath() + redirectTo;\n\t\t\t}\n\t\t\t\n\t\t\tresponse.sendRedirect(redirectTo);\n\t\t} else {\n\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(redirectTo);\n\t\t\tdispatcher.forward(request, response);\n\t\t}\n\t}", "private static void returnNotMove(HttpServletResponse response, String url) throws IOException {\n try {\n response.sendRedirect(url);\n } catch (IOException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }", "public void setRedirect(String redirect) {\r\n\t\tthis.redirect = redirect;\r\n\t}", "public void sendRedirect(String url) throws IOException{\r\n\t\tif(containsHeader(\"_grouper_loggedOut\") && url.indexOf(\"service=\") > -1) {\r\n\t\t\turl = url + \"&renew=true\";\r\n\t\t\t//url = url.replaceAll(\"&renew=false\",\"renew=true\");\r\n\t\t}\r\n\t\tsuper.sendRedirect(url);\r\n\t}", "@Test\n public void testMultiRedirectRewrite() throws Exception {\n final CountDownLatch signal = new CountDownLatch(1);\n try {\n final String requestString = \"http://links.iterable.com/a/d89cb7bb7cfb4a56963e0e9abae0f761?_e=dt%40iterable.com&_m=f285fd5320414b3d868b4a97233774fe\";\n final String redirectString = \"http://iterable.com/product/\";\n final String redirectFinalString = \"https://iterable.com/product/\";\n IterableHelper.IterableActionHandler clickCallback = new IterableHelper.IterableActionHandler() {\n @Override\n public void execute(String result) {\n assertEquals(redirectString, result);\n assertFalse(redirectFinalString.equalsIgnoreCase(result));\n signal.countDown();\n }\n };\n IterableApi.getAndTrackDeeplink(requestString, clickCallback);\n assertTrue(\"callback is called\", signal.await(5, TimeUnit.SECONDS));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void handle(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {\n\t\tString targetUrl = \"/\";\r\n\t\t\r\n\t\tif(response.isCommitted()){\r\n\t\t\t//Response has already been committed. Unable to redirect to \" + url\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tredirectStrategy.sendRedirect(request, response, targetUrl);\r\n\t}", "@Override\n\tpublic final boolean isRedirect()\n\t{\n\t\treturn redirect;\n\t}", "@Test\n\tpublic void testRedirectToAboutUs() {\n\t\tServicesLogic.redirectToAboutUs();\n\t}", "public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}", "@Override\n\tpublic void redirect(String url)\n\t{\n\t\tif (!redirect)\n\t\t{\n\t\t\tif (httpServletResponse != null)\n\t\t\t{\n\t\t\t\t// encode to make sure no caller forgot this\n\t\t\t\turl = encodeURL(url).toString();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (httpServletResponse.isCommitted())\n\t\t\t\t\t{\n\t\t\t\t\t\tlog.error(\"Unable to redirect to: \" + url\n\t\t\t\t\t\t\t\t+ \", HTTP Response has already been committed.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif (log.isDebugEnabled())\n\t\t\t\t\t{\n\t\t\t\t\t\tlog.debug(\"Redirecting to \" + url);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isAjax()) \n\t\t\t\t\t{\n\t\t\t\t\t\thttpServletResponse.addHeader(\"Ajax-Location\", url);\n\n\t\t\t\t\t\t// safari chokes on empty response. but perhaps this is not the best place?\n\t\t\t\t\t\thttpServletResponse.getWriter().write(\" \");\t\t\t\t\t\t\n\t\t\t\t\t} else \n\t\t\t\t\t{\n\t\t\t\t\t\thttpServletResponse.sendRedirect(url);\n\t\t\t\t\t}\n\t\t\t\t\tredirect = true;\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\tthrow new WicketRuntimeException(\"Redirect failed\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlog.info(\"Already redirecting to an url current one ignored: \" + url);\n\t\t}\n\t}", "@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}", "public void sendRedirect(String location) throws IOException {\n\t\tString finalurl = null;\n\n\t\tif (isUrlAbsolute(location)) {\n\t\t\t//Log.trace(\"This url is absolute. No scheme changes will be attempted\");\n\t\t\t//Log.info(\"This url is absolute. No scheme changes will be attempted\");\n\t\t\tfinalurl = location;\n\t\t} else {\n\t\t\tfinalurl = fixForScheme(prefix + location);\n\t\t\t//Log.trace(\"Going to absolute url:\" + finalurl);\n\t\t\t//Log.info(\"Going to absolute url:\" + finalurl);\n\t\t}\n\t\tsuper.sendRedirect(finalurl);\n\t}", "public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException)\n throws IOException, ServletException {\n String redirectUrl = null;\n if (isUseForward()) {\n if (isForceHttps() && \"http\".equals(request.getScheme())) {\n // First redirect the current request to HTTPS.\n // When that request is received, the forward to the login page will be used.\n redirectUrl = buildHttpsRedirectUrlForRequest(request);\n }\n if (redirectUrl == null) {\n String loginForm = determineUrlToUseForThisRequest(request, response, authException);\n\n logger.debug(\"Server side forward to: \" + loginForm);\n RequestDispatcher dispatcher = request.getRequestDispatcher(loginForm);\n dispatcher.forward(request, response);\n return;\n }\n } else {\n // redirect to login page. Use https if forceHttps true\n redirectUrl = buildRedirectUrlToLoginPage(request, response, authException);\n }\n if (!response.isCommitted()) {\n redirectStrategy.sendRedirect(request, response, redirectUrl);\n }\n }", "private boolean processRedirectResponse(HttpConnection conn) {\n\n if (!getFollowRedirects()) {\n LOG.info(\"Redirect requested but followRedirects is \"\n + \"disabled\");\n return false;\n }\n\n //get the location header to find out where to redirect to\n Header locationHeader = getResponseHeader(\"location\");\n if (locationHeader == null) {\n // got a redirect response, but no location header\n LOG.error(\"Received redirect response \" + getStatusCode()\n + \" but no location header\");\n return false;\n }\n String location = locationHeader.getValue();\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Redirect requested to location '\" + location\n + \"'\");\n }\n\n //rfc2616 demands the location value be a complete URI\n //Location = \"Location\" \":\" absoluteURI\n URI redirectUri = null;\n URI currentUri = null;\n\n try {\n currentUri = new URI(\n conn.getProtocol().getScheme(),\n null,\n conn.getHost(), \n conn.getPort(), \n this.getPath()\n );\n redirectUri = new URI(location.toCharArray());\n if (redirectUri.isRelativeURI()) {\n if (isStrictMode()) {\n LOG.warn(\"Redirected location '\" + location \n + \"' is not acceptable in strict mode\");\n return false;\n } else { \n //location is incomplete, use current values for defaults\n LOG.debug(\"Redirect URI is not absolute - parsing as relative\");\n redirectUri = new URI(currentUri, redirectUri);\n }\n }\n } catch (URIException e) {\n LOG.warn(\"Redirected location '\" + location + \"' is malformed\");\n return false;\n }\n\n //check for redirect to a different protocol, host or port\n try {\n checkValidRedirect(currentUri, redirectUri);\n } catch (HttpException ex) {\n //LOG the error and let the client handle the redirect\n LOG.warn(ex.getMessage());\n return false;\n }\n\n //invalidate the list of authentication attempts\n this.realms.clear();\n //remove exisitng authentication headers\n removeRequestHeader(HttpAuthenticator.WWW_AUTH_RESP); \n //update the current location with the redirect location.\n //avoiding use of URL.getPath() and URL.getQuery() to keep\n //jdk1.2 comliance.\n setPath(redirectUri.getEscapedPath());\n setQueryString(redirectUri.getEscapedQuery());\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Redirecting from '\" + currentUri.getEscapedURI()\n + \"' to '\" + redirectUri.getEscapedURI());\n }\n\n return true;\n }", "public void sendRequest() {\n\t\tURL obj;\n\t\ttry {\n\t\t\t// Instantiating HttpURLConnection object for making GET request.\n\t\t\tobj = new URL(REQUEST_URL);\n\t\t HttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n\t\t connection.setRequestMethod(REQUEST_METHOD);\n\t\t connection.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t connection.setInstanceFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\tHttpURLConnection.setFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\n\t\t\t// Checking response code for successful request.\n\t\t\t// If responseCode==200, read the response,\n\t\t\t// if responseCode==3xx, i.e., a redirect, then make the request to \n\t\t\t// new redirected link, specified by 'Location' field. \n\t\t\t// NOTE: Only one level of redirection is supported for now. \n\t\t\t// Can be modified to support multiple levels of Redirections.\n\t\t\tint responseCode = connection.getResponseCode();\n\t\t\tif(responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_SEE_OTHER) {\n\t\t\t\tlogger.info(\"Redirect received in responseCode\");\n\t\t\t\tString newUrl = connection.getHeaderField(\"Location\");\n\t\t\t\tconnection = (HttpURLConnection) new URL(newUrl).openConnection();\n\t\t\t}\n\t\t\tresponseCode = connection.getResponseCode();\n\t\t\t\n\t\t\t// process response message if responseCode==200 i.e., success.\n\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) {\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tconnection.getInputStream()));\n\t\t\t\tString inputLine;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t}\n\t\t\t\tin.close();\n\t\t\t\t//Uncomment following line to log response data.\n\t\t\t\t//logger.info(response.toString());\n\t\t\t} else {\n\t\t\t\tlogger.warning(\"Http GET request was unsuccessful!\");\n\t\t\t}\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.severe(\"MalformedURLException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.severe(\"IOException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n }", "void onSuccessRedirection(int taskID);", "private boolean sendHTTPRedirectMessage(String location,\n String gapCookie, String locationCookie)\n {\n HTTPRespHdr resp = _httpRespHdr;\n\n /*\n * Create a reply with a 307 (HTTP/1.1) or 302 reply code.\n */\n if (_req.requestHdr.getVersionNumber() == 1.0) {\n _req.responseStatus = 302;\n\n resp.init( \"HTTP/1.0\", 302, \"Moved Temporarily\" );\n resp.addHeader( \"Location\", location );\n resp.addHeader( \"Content-Type\", \"text/html\" );\n }\n else {\n _req.responseStatus = 307;\n\n resp.init( \"HTTP/1.1\", 307, \"Temporary Redirect\" );\n\t \n /*\n * Put Location: right after status line so hopefully the stupid\n * Mozilla 0.6 will read it correctly (apparently it can't deal\n * with a response that is not delivered to it in a single\n * read() on the TCP socket).\n */\n resp.addHeader( \"Location\", location );\n\n resp.addHeader(\"Server\", GlobeRedirector.SERVER_NAME);\n setCurrentDate(_date);\n resp.addHeader(\"Date\", _httpDateFormatter.format(_date));\n resp.addHeader( \"Content-Type\", \"text/html\" );\n\n /*\n * 307 responses are not cachable by default, so we add an Expires:\n * header to have it cached for a while.\n */\n setExpiresDate(_date, 1000 * _config.getHTTPExpires());\n resp.addHeader(\"Expires\", _httpDateFormatter.format(_date));\n\n // Netscape Enterprise puts location here\n // resp.addHeader( \"Location\", location );\n\n resp.addHeader( \"Connection\", \"close\" );\n }\n\n if (gapCookie != null) {\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"writing GAP cookie: \" + gapCookie);\n }\n resp.addHeader(\"Set-Cookie\", gapCookie);\n }\n\n if (locationCookie != null) {\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"writing location cookie: \" + locationCookie);\n }\n resp.addHeader(\"Set-Cookie\", locationCookie);\n }\n\n // both 1.0 and 1.1 want a little message just in case\n String body = null;\n if (!_req.requestHdr.getMethod().toUpperCase().equals( \"HEAD\" )) {\n // message for ancient browsers\n\n // reset string buffer\n _strBuf.setLength(0);\n _strBuf.append(\"<HEAD><TITLE>Temporary Redirect</TITLE></HEAD>\\n\"\n + \"<BODY><H1> Temporary Redirect </H1>\\n\"\n + \"You are being redirected to <A HREF=\\\"\");\n _strBuf.append(location);\n _strBuf.append(\"\\\">\");\n _strBuf.append(location);\n _strBuf.append(\"</A>.</BODY>\");\n body = _strBuf.toString();\n }\n\n try {\n DataOutputStream cliOut = _req.connection.getOutputStream();\n\n resp.write(cliOut);\n if (body != null) {\n cliOut.write( body.getBytes() );\n _req.bytesSent = body.length();\n }\n else {\n _req.bytesSent = 0;\n }\n cliOut.flush();\n return true;\n }\n catch( IOException e ) {\n logError(\"Cannot send HTTP redirect message\" + getExceptionMessage(e));\n return false;\n }\n }", "private boolean sendHTTPRedirectMessage(String gapAddress, String file,\n String gapCookie, String locationCookie)\n {\n return sendHTTPRedirectMessage(\"http://\" + gapAddress + file,\n gapCookie, locationCookie);\n }", "public static void redirect( String url , ServletData servletData )\r\n {\r\n String message = \"\";\r\n try\r\n {\r\n HttpServletResponse response = servletData.getResponse();\r\n if ( response == null )\r\n {\r\n throw new Exception( \"response is null. \" +\r\n \"The most frequent cause of this problem is a bad url\" );\r\n }\r\n response.sendRedirect( url );\r\n }\r\n catch ( Exception e )\r\n {\r\n message = \"problem loading URL '\" + url + \"':\" + e;\r\n System.out.println( message );\r\n throw new SkipException( message );\r\n }\r\n }", "protected void redirectToLogin(HttpServletRequest req, HttpServletResponse res) throws IOException\n {\n// RequestDispatcher lRd = getServletContext().getRequestDispatcher(\"/servlet/common.SvtLogoutHandler\");\n// try \n// {\n//\t req.setAttribute(\"EXTRANET_METHOD\", \"GET\");\n//\t lRd.forward(req, res);\n// } \n// catch(Throwable e) \n// {\n//\t throw new ServletException(getClass().toString() + \".doGet(): Could not forward to target URL.\\n\" + e);\n// }\n //issue # 2191 this method throws an IllegalStateException if we use \n //a forward\n res.sendRedirect(req.getScheme()+\"://\"+req.getServerName()+\":\"+req.getServerPort()+\"/servlet/common.SvtLogoutHandler\");\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "@Test\n public void circularRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n wireMock.stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", \"/\" + REDIRECT)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n assertThatThrownBy(() -> execute(t))\n .isInstanceOf(WorkerExecutionException.class)\n .rootCause()\n .isInstanceOf(CircularRedirectException.class)\n .hasMessageContaining(\"Circular redirect\");\n }", "void redirect(ReagentSynonym synonym);", "@Test\n public void testRedirectToWsdl() throws Exception {\n this.mockMvc.perform(get(\"/\"))\n .andExpect(status().is3xxRedirection())\n .andExpect(redirectedUrl(\"services/SecoEgovService.wsdl\"));\n }", "@Test\n public void tooManyRedirects() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 51)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=52\");\n File dst = newTempFile();\n t.dest(dst);\n assertThatThrownBy(() -> execute(t))\n .isInstanceOf(WorkerExecutionException.class)\n .rootCause()\n .isInstanceOf(RedirectException.class)\n .hasMessage(\"Maximum redirects (50) exceeded\");\n }", "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException\n {\n // Setup the output stream\n res.setContentType(\"text/html\");\n // Posts are never cacheable\n res.setHeader(\"Expires\", \"Tues, 01 Jan 1980 00:00:00 GMT\");\n\n SessionSrvc thisSession = SessionSrvc.getSessionSrvc(req);\n\n boolean lIsExternal = false;\n\n if(thisSession != null)\n {\n // Determine if this is an external request\n lIsExternal = thisSession.getGlobalValue(\"EXTRANET_REQUEST\") != null;\n\t IObjectContext context = (IObjectContext) thisSession.getGlobalValue(\"Context\");\n\t // Make sure the user is properly logged in\n\t if (context != null)\n\t {\n\t try\n\t {\n if(!context.getCRM().isLoggedIn(context))\n redirectToLogin(req,res);\n else\n { \n\t\t storeParameters(thisSession, req);\n\n\t\t // implementation of this method should not product any output\n\t\t handlePost(thisSession, context);\n\t\t String destinationURL = thisSession.getTargetPage();\n\t\t String destinationFrame = thisSession.getTargetFrame();\n\t\t // Go to the next page\n\t\t if (destinationURL != null)\n\t\t {\n\t\t thisSession.setTargetPage(null);\n\t\t thisSession.setTargetFrame(null);\n\t\t if (destinationFrame == null || destinationFrame.equals(\"self\")) \n {\n\t\t\t if (! lIsExternal) \n {\n// RequestDispatcher lRd = getServletContext().getRequestDispatcher(destinationURL);\n// try \n// {\n//\t req.setAttribute(\"EXTRANET_METHOD\", \"GET\");\n//\t lRd.forward(req, res);\n// } \n// catch(Throwable e) \n// {\n//\t throw new ServletException(getClass().toString() + \".doGet(): Could not forward to target URL.\\n\" + e);\n// }\n // this code is strange, it does not seem to drop the session\n // but the above commented code requires that the targetframe be set?\n \t\t\t\t res.sendRedirect(req.getScheme() + \"://\" + req.getServerName() + \":\" + req.getServerPort() + destinationURL);\t\t\t \t\n\t\t\t }//end if\n else \n {\t\t\t\t \n\t\t\t\t // Forward to the target URL to ensure a valid session\n\t\t\t\t RequestDispatcher lRd = getServletContext().getRequestDispatcher(destinationURL);\n\t\t\t\t try \n {\n\t\t\t\t\t req.setAttribute(\"EXTRANET_METHOD\", \"GET\");\n\t\t\t\t\t lRd.forward(req, res);\n\t\t\t\t }\n catch(Throwable e) \n {\n\t\t\t\t\t throw new ServletException(getClass().toString() + \".doGet(): Could not forward to target URL.\\n\" + e);\n\t\t\t\t }\t\t\t\t\t \t\n\t\t\t }//end else \n\t\t } \n else\n\t\t {\n\t\t\t res.getWriter().println(\"<HTML><HEAD><SCRIPT>\");\n\t\t\t res.getWriter().println(\n\t\t\t \"function reloadTree() { \"+\n\t\t\t \" var treeframe = parent; \"+\n\t\t\t \" while (!treeframe.TreeArea) \"+\n\t\t\t \" treeframe = treeframe.parent; \"+\n\t\t\t \" treeframe = treeframe.TreeArea.Tree; \"+\n\t\t\t \" treeframe.reload(false); \"+\n\t\t\t \"}\");\n\t\t\t if (thisSession.reloadTree())\n\t\t\t res.getWriter().println(\"reloadTree();\");\n\t\t\t thisSession.setTreeReload(false);\n\t\t\t res.getWriter().println(destinationFrame+\".location='\"+destinationURL+\"';\");\n\t\t\t res.getWriter().println(\"</SCRIPT></HEAD></HTML>\");\n\t\t\t res.getWriter().flush();\n \t\t\t res.getWriter().close();\n\t\t }\n\t\t }\n\t\t else\n\t\t throw new Exception(\"Missing Destination URL\");\n }//end else \n\t }\n\t catch(Throwable exp)\n\t {\n\t\t exp.printStackTrace(res.getWriter());\n com.oculussoftware.service.log.LogService.getInstance().write(exp); \n\t }\n\t }\n\t else {\n\t sessionExpired(res.getWriter() ,BrowserKind.ALL, lIsExternal);\n\t } \n }//end if\n else {\n\t sessionExpired(res.getWriter(),BrowserKind.ALL, lIsExternal);\n }\t \n }", "public abstract boolean isRenderRedirect();", "void redirectToLogin();", "@Test\n public void redirectInfinite303And307() throws Exception {\n final Map<String, Class<? extends Servlet>> servlets = new HashMap<String, Class<? extends Servlet>>();\n servlets.put(RedirectServlet307.URL, RedirectServlet307.class);\n servlets.put(RedirectServlet303.URL, RedirectServlet303.class);\n startWebServer(\"./\", new String[0], servlets);\n\n final WebClient client = getWebClient();\n\n try {\n client.getPage(\"http://localhost:\" + PORT + RedirectServlet307.URL);\n }\n catch (final Exception e) {\n assertTrue(e.getMessage(), e.getMessage().contains(\"Too much redirect\"));\n }\n }", "@Test(priority = 4)\n\tpublic void homePageRedirection() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect(validate);\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the Hero Image Product Validation testing\");\n\n\t}", "@Test\n public void testDNSRedirect() throws Exception {\n final CountDownLatch signal = new CountDownLatch(1);\n try {\n final String requestString = \"http://links.iterable.com/a/f4c55a1474074acba6ddbcc4e5a9eb38?_e=dt%40iterable.com&_m=f285fd5320414b3d868b4a97233774fe\";\n final String redirectString = \"http://iterable.com/product/fakeTest\";\n final String redirectFinalString = \"https://iterable.com/product/fakeTest\";\n IterableHelper.IterableActionHandler clickCallback = new IterableHelper.IterableActionHandler() {\n @Override\n public void execute(String result) {\n assertEquals(redirectString, result);\n assertFalse(redirectFinalString.equalsIgnoreCase(result));\n signal.countDown();\n }\n };\n IterableApi.getAndTrackDeeplink(requestString, clickCallback);\n assertTrue(\"callback is called\", signal.await(5, TimeUnit.SECONDS));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Test\n @Category(FastTest.class)\n public void canDownloadOnRedirect() throws Exception {\n final String redirectPathBook = \"/download/redirect/thebook\";\n\n stubFor(get(urlPathEqualTo(redirectPathBook))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(\"0/binary\")));\n\n\n stubFor(get(urlPathMatching(\"/download/0/.*\"))\n .willReturn(aResponse()\n .withStatus(302)\n .withHeader(\"Location\", getExternalHostMock() + redirectPathBook)));\n\n // call service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOK));\n\n // verify that our logic downloaded binary\n verify(getRequestedFor(urlEqualTo(\"/download/0/?token=abcdef\")));\n verify(getRequestedFor(urlEqualTo(redirectPathBook)));\n }", "@Override\n\t\t\t\t\tpublic HttpUriRequest getRedirect(HttpRequest request, HttpResponse response, HttpContext context)\n\t\t\t\t\t\t\tthrows ProtocolException {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "@Override\r\n\tpublic void render() {\r\n\t\turi = ActionContext.getContextPath() + uri;\r\n\t\ttry {\r\n\t\t\tResponse.getServletResponse().sendRedirect(uri);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RenderException(\"Redirect to [\" + uri + \"] error!\", e);\r\n\t\t}\r\n\t}", "public void redirectUser(HttpServletResponse response) throws IOException {\n\n String url = \"/user/user.jsp\";\n\n log.debug(\"Accessing: \" + url);\n\n response.sendRedirect(url);\n\n log.debug(url + \" has successfully been loaded\");\n }", "@Override\n public void execute(HttpServletRequest request, HttpServletResponse response) throws IOException {\n HttpSession session = request.getSession();\n String page = request.getParameter(PAGE);\n String lang = request.getParameter(LANG);\n String parameters = request.getParameter(PARAM);\n session.setAttribute(LANG, lang);\n String address = parameters.isEmpty() ? page : SERVLET + \"?\" + parameters;\n response.sendRedirect(address);\n }", "public boolean isRedirect() {\n switch (code) {\n case HTTP_PERM_REDIRECT:\n case HTTP_TEMP_REDIRECT:\n case HTTP_MULT_CHOICE:\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n return true;\n default:\n return false;\n }\n }", "boolean isFollowRedirect();", "@Override\n public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException {\n if (response.getStatus() == HttpServletResponse.SC_NOT_FOUND) {\n forward(redirectRoute, baseRequest, response);\n } else {\n super.handle(target, baseRequest, request, response);\n }\n }", "@GetMapping(\"/admin/email/test\")\n public String sendTestEmailWithHTMLMethodPost(RedirectAttributes redirectAttributes){\n emailService.sendTestEmailWithHTML(redirectAttributes);\n return \"redirect:/admin\";\n }", "@RequestMapping(value = \"/redirect\")\n\tpublic String redirect() {\n\t\treturn \"redirect:apply\";\n\t}", "public abstract boolean isRenderRedirectAfterDispatch();", "public boolean sendRequest(com.webobjects.appserver.WORequest request){\n return false; //TODO codavaj!!\n }", "@Test\n void annullamentoTirocinioSuccess() throws ServletException, IOException {\n when(requestMock.getParameter(\"enteEmail\")).thenReturn(\"999\");\n when(requestMock.getRequestDispatcher(\"_areaStudent/StoricoStudenteET.jsp\"))\n .thenReturn(dispatcherMock);\n ServletAnnullaEnteDaStudenteET test = new ServletAnnullaEnteDaStudenteET();\n test.doGet(requestMock, responseMock);\n verify(dispatcherMock).forward(requestMock, responseMock);\n }", "@Test\n\tpublic void testSetContextRelative_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean contextRelative = true;\n\n\t\tfixture.setContextRelative(contextRelative);\n\n\t\t// add additional test code here\n\t}", "private void doSearchRedirect(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String search = request.getParameter(\"search\");\n \n if(search == null || search.trim().isEmpty()) {\n error(\"Recherche invalide\", request, response);\n return;\n }\n \n redirect(String.format(\"./search/%s\", search), \"Recherche en cours ...\",\n request, response);\n }", "private void sendToNextPage(String nextPage, HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows IOException, ServletException {\r\n\t\t// if the next page is null\r\n\t\tif (nextPage == null) {\r\n\t\t\tresponse.sendError(HttpServletResponse.SC_NOT_FOUND, request.getServletPath());\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if action\r\n\t\tif (nextPage.endsWith(\".do\")) {\r\n\t\t\tresponse.sendRedirect(nextPage);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if view\r\n\t\tif (nextPage.endsWith(\".jsp\")) {\r\n\t\t\tRequestDispatcher d = request.getRequestDispatcher(\"WEB-INF/\" + nextPage);\r\n\t\t\td.forward(request, response);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tresponse.sendRedirect(nextPage);\r\n\t\treturn;\r\n\t}", "private CoprocessObject.Object doForwardToLogin(CoprocessObject.Object.Builder builder) {\n\t\tReturnOverrides retOverrides = builder.getRequestBuilder()\n\t\t\t\t.getReturnOverridesBuilder()\n\t\t\t\t.setResponseCode(301)\n\t\t\t\t.putHeaders(HTTP_HEADER_LOCATION, loginUrl)\n\t\t\t\t.build();\n\t\t\n\t\t MiniRequestObject miniReq = builder.getRequestBuilder().setReturnOverrides(retOverrides).build();\n\t\t return builder.setRequest(miniReq).build();\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String referer = (String) request.getSession().getAttribute(\"Referer\");\n String redirectTo = referer != null ? referer : \"/\";\n\n LOGGER.info(\"Access token: {}. Redirecting to: {}\", context.getAccessToken(), referer);\n response.sendRedirect(redirectTo);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n ip = request.getLocalAddr();\n try {\n Timestamp dataNow = GetNow();\n Timestamp dataPrec = GetDate(request.getParameter(\"email\"),response.getWriter());\n long differenza = (dataNow.getTime()-dataPrec.getTime())/1000;\n \n response.getWriter().println(differenza+\"<br>\");\n \n \n if(differenza>90){\n response.sendRedirect(\"LinkScaduto.html\");\n }\n else{\n \n char[] p = generatePswd(8, 12, 1, 1, 1); \n String password = String.valueOf(p, 0, p.length) ;\n \n String email = request.getParameter(\"email\");\n String ip = request.getLocalAddr();\n \n UpdatePassword(email,password); \n \n\n String ogget = \"Confirm change password\";\n\n String testo = \"Dear \" + email\n + \"\\n This is your new password:\"\n + \"\\n\\n \"+password;\n\n Email send = new Email();\n send.Send(email,ogget,testo);\n \n response.sendRedirect(\"LinkValido.html\");\n }\n \n } catch(IOException e) {}\n }", "protected void doGet( HttpServletRequest request, \n HttpServletResponse response )\n throws ServletException, IOException \n {\n String location = request.getParameter( \"page\" );\n\n if ( location != null ) \n \n if ( location.equals( \"CNT4714\" ) )\n response.sendRedirect( \"http://www.ucf.edu\" );\n else \n if ( location.equals( \"welcome1\" ) )\n response.sendRedirect( \"welcome1\" );\n\t\t\t\telse\n\t\t\t\t if ( location.equals (\"cyclingnews\") )\n\t\t\t\t\t response.sendRedirect( \"http://www.cyclingnews.com\" );\n\t\t\t\t\t else\n\t\t\t\t if ( location.equals ( \"error\" ) )\n\t\t\t\t\t response.sendRedirect( \"error\" );\n\n // code that executes only if this servlet does not redirect the user to another page\n\n response.setContentType( \"text/html\" );\n PrintWriter out = response.getWriter(); \n\n // start HTML document\n out.println( \"<!DOCTYPE html\\\">\" ); \n // head section of document\n out.println( \"<head>\" );\n out.println( \"<title>Invalid page</title>\" );\n out.println( \"<meta charset=\\\"utf-8\\\">\" );\n out.println( \"<style type='text/css'>\");\n out.println( \"<!-- body{background-color:red; font-family:calibri;} -->\");\n out.println( \"</style>\");\n out.println( \"</head>\" );\n // body section of document\n out.println( \"<body>\" );\n out.println( \"<h1>Invalid page requested</h1>\" );\n out.println( \"<p><a href = \" + \"RedirectionServlet.html\\\">\" );\n out.println( \"Click here for more details</a></p>\" );\n out.println( \"</body>\" );\n // end HTML document\n out.println( \"</html>\" );\n out.close(); // close stream to complete the page \n }", "@Test\n\tpublic void testGetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\n\t\tString result = fixture.getUrl();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n String username = request.getParameter(\"email\");\n\n // Send the response back to the user\n try {\n response.setContentType(\"text/html\");\n PrintWriter writer = response.getWriter();\n response.sendRedirect(\"/login/index.html?username=\"+ username);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void onFailureRedirection(String errorMessage);", "protected boolean doGet(String relativeURI,\n\t\t\tHttpServletRequest request, HttpServletResponse response,\n\t\t\tConfiguration config)\n\t\t\tthrows IOException, ServletException {\n\t\tif (relativeURI.startsWith(\"static/\")) {\n\t\t\tgetServletContext().getNamedDispatcher(\"default\").forward(request, response);\n\t\t\treturn true;\n\t\t}\n\n\t\t// Homepage. If index resource is defined, redirect to it.\n\t\tif (\"\".equals(relativeURI) && config.getIndexResource() != null) {\n\t\t\tresponse.sendRedirect(IRIEncoder.toURI(\n\t\t\t\t\tconfig.getIndexResource().getAbsoluteIRI()));\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Assume it's a resource URI -- will produce 404 if not\n\t\tgetServletContext().getNamedDispatcher(\"WebURIServlet\").forward(request, response);\n\t\treturn true;\n\t}", "@Test\n public void testLocation() throws Exception\n {\n HttpResponse mockResponse = mock(HttpResponse.class);\n when(mockResponse.status()).thenReturn(HttpStatus.TEMPORARY_REDIRECT);\n\n RedirectPolicy mockPolicy = mock(RedirectPolicy.class);\n when(mockPolicy.affects(mockResponse)).thenReturn(true);\n when(mockPolicy.location(mockResponse, 123)).thenReturn(URI.create(\"http://testlocation\"));\n\n RedirectPolicy testPolicy = new Temporary(mockPolicy);\n\n assertEquals(URI.create(\"http://testlocation\"), testPolicy.location(mockResponse, 123));\n }", "void execute(HttpServletRequest request, HttpServletResponse response)\n throws Exception;", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.sendRedirect(\"LoginPage.jsp\");\r\n }", "private boolean redirectClient(String path)\n {\n URL url;\n String reqHost = _req.requestHdr.getHeader(\"Host\");\n String fullspec = \"http://\" + reqHost + path;\n String location = null;\n String gapAddress = null;\n boolean randomGAP = false;\n boolean haveValidGAPCookie = false;\n boolean haveValidLocationCookie = false;\n String s = null;\n\n InetAddress cliAddr = _req.connection.getSocket().getInetAddress();\n\n if (DEBUG && _debugLevel > 0) {\n debugPrintLn(\"Got request from \" + cliAddr.toString() + \" \"\n + _req.requestHdr.getVersion() );\n }\n\n /*\n * Check if the client's host is blocked.\n */\n if (_blockList.isBlockedHost(cliAddr.getHostAddress())) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: your host is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n s = URIDecoder.decode(path);\n }\n catch(IllegalArgumentException e) {\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Format error: request contains an invalid escape sequence: \"\n + e.getMessage());\n return false;\n }\n\n /*\n * Check if the file requested is blocked.\n */\n if (_blockList.isBlockedFile(s)) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: the requested file is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n s = URIDecoder.decode(fullspec);\n }\n catch(IllegalArgumentException e) {\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Format error: request contains an invalid escape sequence: \"\n + e.getMessage());\n return false;\n }\n\n /*\n * Check if the URL requested is blocked.\n */\n if (_blockList.isBlockedURL(s)) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: the requested URL is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n url = new URL(fullspec);\n }\n catch( MalformedURLException e ) {\n logError(\"Unsupported request-URI: \" + fullspec);\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"unsupported request-URI\");\n return false;\n }\n\n String file = url.getFile();\n\n /*\n * Redirect the client to the default URL (if defined) if the\n * object name is absent.\n */\n if (file.equals(\"/\")) {\n s = _config.getDefaultURL();\n\n if (s != null) {\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"no object name specified -- using default URL\");\n }\n\n return sendHTTPRedirectMessage(s, null, null);\n }\n }\n\n _cookieCoords = null;\n\n /*\n * If the client sent a redirector cookie, the cookie contains the\n * hostname and port number of the client's nearest GAP, and the\n * geographical coordinates associated with the client's IP address.\n */\n if (_config.getCookieEnabledFlag()) {\n HTTPCookie clientCookie = null;\n\n if ( (s = _req.requestHdr.getHeader(\"Cookie\")) != null) {\n try {\n _httpCookie.init(s);\n clientCookie = _httpCookie;\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed cookie: \" + e.getMessage());\n\n // CONTINUE - cookie will be replaced\n }\n\n if (clientCookie != null) {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie: \" + clientCookie.toString());\n }\n\n String gap = clientCookie.getAttribute(\n RedirectorCookieFactory.COOKIE_GAP_ATTRIB);\n\n /*\n * Set the nearest GAP to the GAP indicated by the cookie. If\n * the GAP address inside the cookie is invalid or if it does\n * not refer to a GAP, the cookie is discarded (and replaced).\n */\n if (gap != null) {\n HostAddress gapHost = null;\n\n try {\n gapHost = new HostAddress(gap);\n s = gapHost.toString();\n\n // Check if gapHost still refers to an active GAP.\n if (_gapList.get(s) != null) {\n gapAddress = s;\n haveValidGAPCookie = true;\n }\n }\n catch(UnknownHostException e) {\n logError(\"Unknown host in cookie: \" + gap);\n\n // CONTINUE - GAP cookie will be replaced\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed host address in cookie: \" + gap);\n\n // CONTINUE - GAP cookie will be replaced\n }\n }\n else {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie does not contain a \"\n + RedirectorCookieFactory.COOKIE_GAP_ATTRIB\n + \" attribute\");\n }\n }\n\n /*\n * If the cookie does not contain a valid nearest GAP attribute,\n * we may need the cookie's coordinates attribute to determine the\n * nearest GAP.\n */\n if (gapAddress == null) {\n s = clientCookie.getAttribute(\n RedirectorCookieFactory.COOKIE_COORDS_ATTRIB);\n\n if (s != null) {\n try {\n _cookieCoords = new FloatCoordinate(s);\n haveValidLocationCookie = true;\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed coordinates in cookie: \" + s);\n\n // CONTINUE - location cookie will be replaced\n }\n }\n else {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie does not contain a \"\n + RedirectorCookieFactory.COOKIE_COORDS_ATTRIB\n + \" attribute\");\n }\n }\n }\n }\n }\n }\n\n /*\n * If there is no (valid) GAP cookie, find the location of the nearest\n * GAP. Pick a random GAP if the nearest GAP could not be determined.\n */\n if (gapAddress == null) {\n GlobeAccessPointRecord gaprec;\n\n if ( (gaprec = findNearestGAP(cliAddr)) == null) {\n gaprec = getRandomGAP();\n randomGAP = true;\n }\n gapAddress = gaprec.hostport;\n\n // _cookieCoords set\n }\n\n String gapCookie = null, locationCookie = null;\n\n /*\n * Create the GAP cookie value if cookies are enabled and the client\n * does not have a (valid) GAP cookie. If a GAP cookie is created,\n * create a location cookie if the client doesn't have a valid one.\n */\n if (_config.getCookieEnabledFlag()) {\n if (! haveValidGAPCookie) {\n if (randomGAP) {\n setExpiresDate(_date, 1000 * RANDOM_GAP_COOKIE_TTL);\n }\n else {\n setExpiresDate(_date, 1000 * _config.getGAPCookieTTL());\n }\n\n gapCookie = _cookieFactory.getGAPValue(gapAddress, _date);\n\n if ( ! haveValidLocationCookie) {\n if (_cookieCoords != null) {\n setExpiresDate(_date, 1000 * _config.getLocationCookieTTL());\n locationCookie = _cookieFactory.getLocationValue(_cookieCoords,\n _date);\n }\n }\n }\n }\n\n /*\n * Send a reply to redirect the client to the nearest GAP.\n */\n if (_config.getHTTPRedirectFlag()) {\n return sendHTTPRedirectMessage(gapAddress, file,\n gapCookie, locationCookie);\n }\n else {\n return sendHTMLReloadPage(gapAddress, file,\n gapCookie, locationCookie);\n }\n }", "@Then(\"I am redirected to the product page\")\n\t\tpublic void i_am_redirected_to_the_product_page() throws Exception {\n\t\t\tCurrentUrl = driver.getCurrentUrl();\n\t\t\tAssert.assertEquals(CurrentUrl, ExpectedUrl);\n\n\t\t\t// Take snapshot as evidence\n\t\t\tFunctions.takeSnapShot(driver, null);\n\n\t\t}", "private void redirectUser(HttpServletRequest request, HttpServletResponse response,\r\n String messageType, String targetPage, String error) \r\n throws ServletException, IOException {\r\n //assign message to request\r\n request.setAttribute(messageType, error);\r\n \r\n //push user back to registration form with the error message included\r\n RequestDispatcher dispatcher = request.getRequestDispatcher(targetPage);\r\n dispatcher.forward(request,response);\r\n }", "protected void doPost(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException \n\t{\n\t\tif(AntiXss.isUsername(request.getParameter(\"username\")) == false){\n\t\t\tresponse.sendRedirect(\"error.jsp\");\n\t\t}\n\t\tif(AntiXss.isCodeZip(request.getParameter(\"code\")) == false){\n\t\t\tresponse.sendRedirect(\"error.jsp\");\n\t\t}\n\t\tString username = request.getParameter(\"username\");\n\t\tint code = Integer.parseInt(request.getParameter(\"code\"));\n\t\tRequestDispatcher rd = null;\n\t\tAuthenticator authenticator = new Authenticator();\n\t\tString result = authenticator.verification(username, code);\n\t\t\n\t\tif (result.equals(\"success\")) \n\t\t{\n\t\t\trd = request.getRequestDispatcher(\"VerficationConfirm.html\");\n\t\t} \n\t\telse\n\t\t{\n\t\t\trd = request.getRequestDispatcher(\"error.jsp\");\t\n\t\t}\n\t\t\n\t\trd.forward(request, response);\n\t}", "@Override\n public Response serve( IHTTPSession session ) throws SecurityResponseException {\n String host = findRequestHeaderValue( HTTP.HDR_HOST, session );\n if ( StringUtil.isNotBlank( host ) ) {\n String uri;\n if ( server.getPort() == 443 ) {\n uri = HTTPS_SCHEME + host + session.getUri();\n } else {\n uri = HTTP_SCHEME + host + \":\" + server.getPort() + session.getUri();\n }\n Log.append( HTTPD.EVENT, \"Redirecting to \" + uri );\n Response response = Response.createFixedLengthResponse( Status.REDIRECT, MimeType.HTML.getType(), \"<html><body>Moved: <a href=\\\"\" + uri + \"\\\">\" + uri + \"</a></body></html>\" );\n response.addHeader( HTTP.HDR_LOCATION, uri );\n return response;\n }\n return super.serve( session );\n }", "public ActionForward execute(ActionMapping mapping,\n\t\t\t\t ActionForm form,\n\t\t\t\t HttpServletRequest request,\n\t\t\t\t HttpServletResponse response)\n\tthrows IOException, ServletException\n {\n\tString target;\n\t\n\tSubscribeForm subForm = (SubscribeForm) form;\n\tString mail = subForm.getMail();\n\tString domain = subForm.getDomain();\n\tString login = subForm.getLogin();\n\t\n\tinitApplicationPath();\n\tString addressMail = mail+\"@\"+domain;\n\tif(!isAuthorized2Subscribe(addressMail))\n\t return mapping.findForward(\"unauthorized\");\n\t\n\ttry{\n\t if(isAlreadySubscribed(addressMail))\n\t\treturn mapping.findForward(\"multi_subscr\");\n\t}\n\tcatch(SQLException sqle){}\n\t\n\tString password = generateRandomWord();\n\t\n\tString pageName = createTemporaryConfirmationPage(login, password, addressMail);\n\tif( (pageName != null) && sendConfirmationMail(login, password, addressMail, pageName) )\n\t return mapping.findForward(\"success\");\n\t\n\t//the creation of the temporary confirmation page has failed\n\t//or the confirmation mail couldn't have been sent.\n\treturn mapping.findForward(\"errorsys\");\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n\t\tresponse.sendRedirect(\"index.jsp\");\n\t\t//seguridad antihackers\n\t}", "@Test\n public void testAffectsTemporary() throws Exception\n {\n HttpResponse mockResponse = mock(HttpResponse.class);\n\n RedirectPolicy mockPolicy = mock(RedirectPolicy.class);\n when(mockPolicy.affects(mockResponse)).thenReturn(true);\n\n RedirectPolicy testPolicy = new Temporary(mockPolicy);\n\n when(mockResponse.status()).thenReturn(HttpStatus.TEMPORARY_REDIRECT);\n assertTrue(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.FOUND);\n assertTrue(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.SEE_OTHER);\n assertTrue(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.PERMANENT_REDIRECT);\n assertFalse(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.MOVED_PERMANENTLY);\n assertFalse(testPolicy.affects(mockResponse));\n }", "@Override\n public void execute(\n HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, IOException {\n ServletContext context = request.getSession().getServletContext();\n context.getRequestDispatcher(\"/EntryDataForNewUser.jsp\").forward(request, response);\n //context.getRequestDispatcher(request.getHeader(\"referer\")).forward(request, response);\n }", "@Override\n\tpublic void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)\n\t\t\tthrows IOException, ServletException {\n\t\tHttpServletRequest req=(HttpServletRequest) request;\n\t\tHttpServletResponse resp=(HttpServletResponse) response;\n\t\tCookie[] Cookies=req.getCookies();\n\t\t//System.out.println(\"jump\");\n\t\t\tboolean name=false;\n\t\t\tboolean pass=false;\n\t\t\tif(Cookies!=null){\n\t\t\tfor(Cookie c:Cookies){\n\t\t\t\tif(c.getName().equals(\"name\")){\n\t\t\t\t\tif(c.getValue().equals(\"user\")){\n\t\t\t\t\t\tname=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Cookie c:Cookies){\n\t\t\t\tif(c.getName().equals(\"pass\")){\n\t\t\t\t\tif(c.getValue().equals(\"pass\")){\n\t\t\t\t\t\tpass=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\tif(name&&pass){\n\t\t\t resp.sendRedirect(\"autosuccess.html\");\n\t\t }\n\t\t\t\n\t\t System.out.println(\"not\");\n\t\t chain.doFilter(request, response);\n\t\t //req.getRequestDispatcher(\"autologin.html\").forward(request, response);\n\t\t\t\n\t}", "private static Result redirect(final Status status, final String location) {\n requireNonNull(location, \"A location is required.\");\n return with(status).header(\"location\", location);\n }", "public void isRedirectionCorrect() {\n\n\t\tString title = WebUtility.getTitle();\n\t\tAssert.assertEquals(title, data.getValidatingData(\"homepage_Title\"));\n\t\tSystem.out.println(\"Redirection is on the correct page\");\n\t}", "public String execute(HttpServletRequest request, \r\n HttpServletResponse response) throws ServletException, IOException;", "private void sendResponse(String sHTTPMethod, String sHTTPRequest, int iStatusCode, String sResponse, boolean bPersistentConnection) {\n // determine if sending file and if redirect -> determines response\n boolean bIsFileSend = sHTTPMethod.equalsIgnoreCase(\"GET\") && iStatusCode == 200;\n boolean bIsRedirect = iStatusCode == 301;\n\n // write header\n String sStatus = getStatusLine(iStatusCode) + END_LINE;\n String sLocation = (bIsRedirect) ? (\"Location: \" + sResponse) + END_LINE : (\"\"); // only if redirect\n String sServerDetails = getServerDetails() + END_LINE;\n String sContentLength = \"Content-Length: \" + sResponse.length() + END_LINE;\n String sContentType = getContentType(sHTTPRequest) + END_LINE;\n String sConnection = getConnectionLine(bPersistentConnection) + END_LINE;\n String sSpaceBetweenHeaderAndBody = END_LINE;\n FileInputStream fin = null;\n\n // update content length if sending a file -> create file input stream\n if (bIsFileSend) {\n try {\n fin = new FileInputStream(ROOT_FOLDER.toString() + \"/\" + sResponse); // if file request, then sResponse is the file path\n sContentLength = \"Content-Length: \" + Integer.toString(fin.available()) + END_LINE;\n } catch (IOException e) {\n System.out.println(\"There was an error creating the file input stream for the response:\");\n System.out.println(\" \" + e);\n }\n }\n\n try {\n // send HTTP Header\n outToClient.writeBytes(sStatus);\n if (bIsRedirect) {\n outToClient.writeBytes(sLocation); // only send Location on redirect\n }\n outToClient.writeBytes(sServerDetails);\n outToClient.writeBytes(sContentType);\n outToClient.writeBytes(sContentLength);\n outToClient.writeBytes(sConnection);\n outToClient.writeBytes(sSpaceBetweenHeaderAndBody);\n\n // send HTTP Body\n if (bIsFileSend) {\n sendFile(fin, outToClient); // send file\n } else if (!bIsRedirect && !sHTTPMethod.equalsIgnoreCase(\"HEAD\")) {\n outToClient.writeBytes(sResponse); // send HTML msg back\n }\n\n // print HTTP Header and Body to console\n System.out.println(sStatus);\n System.out.println(sServerDetails);\n System.out.println(sContentType);\n System.out.println(sContentLength);\n System.out.println(sConnection);\n if (bIsRedirect) {\n System.out.println(sLocation);\n }\n if (bIsFileSend) {\n System.out.println(\"File sent: \" + sResponse);\n } else {\n System.out.println(\"Response: \" + sResponse);\n }\n System.out.println();\n\n // close connection\n if (!bPersistentConnection) {\n outToClient.close();\n }\n\n } catch (IOException e) {\n System.out.println(\"writeBytes did not complete:\");\n System.out.println(\" \" + e + \"\\n\");\n }\n }", "private void handleDepictionRedirect(final BRSearchPageModel pageModel) throws BloomreachSearchException {\r\n try {\r\n final String depictionRedirectUrl = pageModel.getDepictionRedirectUrl();\r\n if (!NmoUtils.isEmpty(depictionRedirectUrl)) {\r\n getResponse().sendRedirect(depictionRedirectUrl);\r\n }\r\n } catch (final IOException e) {\r\n if (log.isLoggingError()) {\r\n log.logError(\"Bloomreach Search -- Depiction Redirection Error\" + e);\r\n }\r\n throw new BloomreachSearchException(\"Error occured during depiction redirect in BloomReach search flow \" + e);\r\n }\r\n }", "protected boolean processCommand(HttpServletRequest request, HttpServletResponse response) \r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\tString uri = getRequestURI(request);\r\n\t\t\r\n\t\tif (uri.endsWith(\"/redirect-filter\")) {\r\n\t\t\tString cmd = request.getParameter(\"c\");\r\n\t\t\tif (cmd != null && cmd.equals(\"reload\") && reloadConfig == true) {\r\n\t\t\t\tloadConfiguration();\r\n\t\t\t\tresponse.setContentType(\"text/plain\");\r\n\t\t\t\tresponse.getWriter().println(filterName + \": Loaded \" + \r\n\t\t\t\t\t\tredirectRules.size() + \" rule(s).\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.sendRedirect(\"index.jsp\");\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n // Since the doPost is not used just redirect people to the NO.html page.\n response.sendRedirect(\"NO.html\");\n }", "protected HTTPSampleResult followRedirects(HTTPSampleResult res, int frameDepth) {\n HTTPSampleResult totalRes = new HTTPSampleResult(res);\n totalRes.addRawSubResult(res);\n HTTPSampleResult lastRes = res;\n \n int redirect;\n for (redirect = 0; redirect < MAX_REDIRECTS; redirect++) {\n boolean invalidRedirectUrl = false;\n String location = lastRes.getRedirectLocation();\n if (log.isDebugEnabled()) {\n log.debug(\"Initial location: \" + location);\n }\n if (REMOVESLASHDOTDOT) {\n location = ConversionUtils.removeSlashDotDot(location);\n }\n // Browsers seem to tolerate Location headers with spaces,\n // replacing them automatically with %20. We want to emulate\n // this behaviour.\n location = encodeSpaces(location);\n if (log.isDebugEnabled()) {\n log.debug(\"Location after /. and space transforms: \" + location);\n }\n // Change all but HEAD into GET (Bug 55450)\n String method = lastRes.getHTTPMethod();\n method = computeMethodForRedirect(method, res.getResponseCode());\n \n try {\n URL url = ConversionUtils.makeRelativeURL(lastRes.getURL(), location);\n url = ConversionUtils.sanitizeUrl(url).toURL();\n if (log.isDebugEnabled()) {\n log.debug(\"Location as URL: \" + url.toString());\n }\n HTTPSampleResult tempRes = sample(url, method, true, frameDepth);\n if (tempRes != null) {\n lastRes = tempRes;\n } else {\n // Last url was in cache so tempRes is null\n break;\n }\n } catch (MalformedURLException | URISyntaxException e) {\n errorResult(e, lastRes);\n // The redirect URL we got was not a valid URL\n invalidRedirectUrl = true;\n }\n if (lastRes.getSubResults() != null && lastRes.getSubResults().length > 0) {\n SampleResult[] subs = lastRes.getSubResults();\n for (SampleResult sub : subs) {\n totalRes.addSubResult(sub);\n }\n } else {\n // Only add sample if it is a sample of valid url redirect, i.e. that\n // we have actually sampled the URL\n if (!invalidRedirectUrl) {\n totalRes.addSubResult(lastRes);\n }\n }\n \n if (!lastRes.isRedirect()) {\n break;\n }\n }\n if (redirect >= MAX_REDIRECTS) {\n lastRes = errorResult(new IOException(\"Exceeded maximum number of redirects: \" + MAX_REDIRECTS), new HTTPSampleResult(lastRes));\n totalRes.addSubResult(lastRes);\n }\n \n // Now populate the any totalRes fields that need to\n // come from lastRes:\n totalRes.setSampleLabel(totalRes.getSampleLabel() + \"->\" + lastRes.getSampleLabel());\n // The following three can be discussed: should they be from the\n // first request or from the final one? I chose to do it this way\n // because that's what browsers do: they show the final URL of the\n // redirect chain in the location field.\n totalRes.setURL(lastRes.getURL());\n totalRes.setHTTPMethod(lastRes.getHTTPMethod());\n totalRes.setQueryString(lastRes.getQueryString());\n totalRes.setRequestHeaders(lastRes.getRequestHeaders());\n \n totalRes.setResponseData(lastRes.getResponseData());\n totalRes.setResponseCode(lastRes.getResponseCode());\n totalRes.setSuccessful(lastRes.isSuccessful());\n totalRes.setResponseMessage(lastRes.getResponseMessage());\n totalRes.setDataType(lastRes.getDataType());\n totalRes.setResponseHeaders(lastRes.getResponseHeaders());\n totalRes.setContentType(lastRes.getContentType());\n totalRes.setDataEncoding(lastRes.getDataEncodingNoDefault());\n return totalRes;\n }", "public interface Redirectator {\n\n void prepareRedirection(RedirectCommand cmd);\n\n void cleanup();\n}", "@RequestMapping(\"/auth\") \r\n\tpublic String redirect(Model model,HttpServletRequest httpRequest) { \r\n\t\t String path = httpRequest.getContextPath();\r\n\t String basePath = httpRequest.getScheme()+\"://\"+httpRequest.getServerName()+\":\"+httpRequest.getServerPort()+path; \r\n\t model.addAttribute(\"base\", basePath);\r\n\t\treturn \"/index/login\"; \r\n\t}", "public boolean isRedirect() {\r\n\r\n\t\tPattern pattern = Pattern.compile(\"#(.*)redirect(.*)\",\r\n\t\t\t\tPattern.CASE_INSENSITIVE);\r\n\t\tif (pattern.matcher(text).matches()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\t\r\n\t\treturn false;\r\n\t}" ]
[ "0.7773639", "0.7703208", "0.74622273", "0.74093586", "0.70776093", "0.69448906", "0.6912605", "0.67786944", "0.6712559", "0.65247333", "0.64986914", "0.649461", "0.64298385", "0.6405079", "0.6258103", "0.6093216", "0.6081748", "0.60734254", "0.6044758", "0.60135996", "0.5992415", "0.5979375", "0.59584934", "0.5915518", "0.5897369", "0.5873562", "0.58728", "0.58544004", "0.58127046", "0.5806277", "0.58027184", "0.5801559", "0.57824874", "0.57317245", "0.57192355", "0.56942016", "0.56859004", "0.5674228", "0.5667773", "0.56620127", "0.56322974", "0.5630304", "0.56202686", "0.5598969", "0.55468404", "0.5540922", "0.55373883", "0.5534135", "0.5532083", "0.55282813", "0.54926187", "0.54760796", "0.5466691", "0.54649913", "0.54493934", "0.54453665", "0.54387176", "0.5433268", "0.54215777", "0.53810525", "0.5372984", "0.53710777", "0.536704", "0.532656", "0.5297139", "0.52797043", "0.52674514", "0.52653456", "0.5264027", "0.526191", "0.5244761", "0.52392435", "0.52322966", "0.52091336", "0.52066314", "0.5204252", "0.5203818", "0.51946914", "0.5193111", "0.5189003", "0.5187229", "0.5176694", "0.51662225", "0.5165769", "0.51578784", "0.515748", "0.5155866", "0.5152647", "0.51340425", "0.51302266", "0.512551", "0.5120568", "0.5111551", "0.5110538", "0.5093776", "0.50926226", "0.5092462", "0.50852627", "0.50837135", "0.5074719" ]
0.7849233
0
Run the void sendRedirect(HttpServletRequest,HttpServletResponse,String,boolean) method test.
@Test public void testSendRedirect_2() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); String targetUrl = ""; boolean http10Compatible = true; fixture.sendRedirect(request, response, targetUrl, http10Compatible); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSendRedirect_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = false;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "void sendRedirect(HttpServletResponse response, String location) throws AccessControlException, IOException;", "@Override\n public void sendRedirect(String arg0) throws IOException {\n\n }", "@Test(expected = java.io.IOException.class)\n\tpublic void testSendRedirect_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Override\n\tpublic void sendRedirect(String location) throws IOException {\n\t}", "void redirect();", "void sendForward(HttpServletRequest request, HttpServletResponse response, String location) throws AccessControlException, ServletException, IOException;", "@Test\n public void oneRedirect() throws Exception {\n UrlPattern up1 = urlEqualTo(\"/\" + REDIRECT);\n stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", wireMock.url(TEST_FILE_NAME))));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n verify(1, getRequestedFor(up1));\n verify(1, getRequestedFor(up2));\n }", "void redirect(Reagent reagent);", "@Test\n public void tenRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 10)));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n redirectWireMock.stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=10\");\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n redirectWireMock.verify(10, getRequestedFor(up1));\n redirectWireMock.verify(1, getRequestedFor(up2));\n }", "@Override\n public void sendRedirect(String location) throws IOException {\n this._getHttpServletResponse().sendRedirect(location);\n }", "private void goOnPageBySendRedirect(final HttpServletResponse response, String goToPage, final String methodName)\n\t\t\tthrows IOException {\n\t\ttry {\n\t\t\tresponse.sendRedirect(goToPage);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"ServiceHrImpl: \" + methodName + \" : errorSendRedirect\", e);\n\t\t\tthrow e;\n\t\t}\n\t}", "public abstract void redirect(String url) throws IOException;", "public abstract String redirectTo();", "public static void redirect(HttpServletRequest req,\n HttpServletResponse resp, String redirectUrl) throws IOException {\n String isAJAXRequest = req.getParameter(\"AJAXRequest\"); // parameter\n if (isAJAXRequest == null) {\n resp.sendRedirect(redirectUrl);\n } else {\n resp.sendError(FOUR_O_ONE,\n \"Not Authorized to view the requested component\");\n }\n }", "@Override\r\n\tpublic boolean isRedirect() {\n\t\treturn false;\r\n\t}", "@Override\n\t\t\t\t\tpublic boolean isRedirected(HttpRequest request, HttpResponse response, HttpContext context)\n\t\t\t\t\t\t\tthrows ProtocolException {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}", "public void redirect(Object sendData, NodeInfo nodeInfo){\n send(sendData, nodeInfo);\n\n }", "private void doTransfer(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Start doing transfer.\");\r\n\t\tString page = null;\r\n\t\tTransferCommand command = new TransferCommand();\r\n\t\tpage = command.execute(req, resp);\r\n\t\tif (page.equals(\"/jsp/transfer_error.jspx\")) {\r\n\t\t\tRequestDispatcher dispatcher = getServletContext().getRequestDispatcher(page);\r\n\t\t\tdispatcher.forward(req, resp);\r\n\t\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Transfer was failed.\");\r\n\t\t} else {\r\n\t\t\tresp.sendRedirect(page);\r\n\t\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Transfer succesfull.\");\r\n\t\t}\r\n\t}", "void onSuccessRedirection(Response object, int taskID);", "private void dispatch(HttpServletRequest request, HttpServletResponse response, String redirectTo) throws IOException, ServletException {\n\t\tif (redirectTo.startsWith(PREFIX_REDIRECT)) {\n\t\t\tredirectTo = redirectTo.substring(PREFIX_REDIRECT.length(), redirectTo.length());\n\t\t\t\n\t\t\tif (redirectTo.startsWith(\"/\")) {\n\t\t\t\tredirectTo = request.getContextPath() + redirectTo;\n\t\t\t}\n\t\t\t\n\t\t\tresponse.sendRedirect(redirectTo);\n\t\t} else {\n\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(redirectTo);\n\t\t\tdispatcher.forward(request, response);\n\t\t}\n\t}", "private static void returnNotMove(HttpServletResponse response, String url) throws IOException {\n try {\n response.sendRedirect(url);\n } catch (IOException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }", "public void setRedirect(String redirect) {\r\n\t\tthis.redirect = redirect;\r\n\t}", "public void sendRedirect(String url) throws IOException{\r\n\t\tif(containsHeader(\"_grouper_loggedOut\") && url.indexOf(\"service=\") > -1) {\r\n\t\t\turl = url + \"&renew=true\";\r\n\t\t\t//url = url.replaceAll(\"&renew=false\",\"renew=true\");\r\n\t\t}\r\n\t\tsuper.sendRedirect(url);\r\n\t}", "@Test\n public void testMultiRedirectRewrite() throws Exception {\n final CountDownLatch signal = new CountDownLatch(1);\n try {\n final String requestString = \"http://links.iterable.com/a/d89cb7bb7cfb4a56963e0e9abae0f761?_e=dt%40iterable.com&_m=f285fd5320414b3d868b4a97233774fe\";\n final String redirectString = \"http://iterable.com/product/\";\n final String redirectFinalString = \"https://iterable.com/product/\";\n IterableHelper.IterableActionHandler clickCallback = new IterableHelper.IterableActionHandler() {\n @Override\n public void execute(String result) {\n assertEquals(redirectString, result);\n assertFalse(redirectFinalString.equalsIgnoreCase(result));\n signal.countDown();\n }\n };\n IterableApi.getAndTrackDeeplink(requestString, clickCallback);\n assertTrue(\"callback is called\", signal.await(5, TimeUnit.SECONDS));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void handle(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {\n\t\tString targetUrl = \"/\";\r\n\t\t\r\n\t\tif(response.isCommitted()){\r\n\t\t\t//Response has already been committed. Unable to redirect to \" + url\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tredirectStrategy.sendRedirect(request, response, targetUrl);\r\n\t}", "@Override\n\tpublic final boolean isRedirect()\n\t{\n\t\treturn redirect;\n\t}", "@Test\n\tpublic void testRedirectToAboutUs() {\n\t\tServicesLogic.redirectToAboutUs();\n\t}", "public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}", "@Override\n\tpublic void redirect(String url)\n\t{\n\t\tif (!redirect)\n\t\t{\n\t\t\tif (httpServletResponse != null)\n\t\t\t{\n\t\t\t\t// encode to make sure no caller forgot this\n\t\t\t\turl = encodeURL(url).toString();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (httpServletResponse.isCommitted())\n\t\t\t\t\t{\n\t\t\t\t\t\tlog.error(\"Unable to redirect to: \" + url\n\t\t\t\t\t\t\t\t+ \", HTTP Response has already been committed.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif (log.isDebugEnabled())\n\t\t\t\t\t{\n\t\t\t\t\t\tlog.debug(\"Redirecting to \" + url);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isAjax()) \n\t\t\t\t\t{\n\t\t\t\t\t\thttpServletResponse.addHeader(\"Ajax-Location\", url);\n\n\t\t\t\t\t\t// safari chokes on empty response. but perhaps this is not the best place?\n\t\t\t\t\t\thttpServletResponse.getWriter().write(\" \");\t\t\t\t\t\t\n\t\t\t\t\t} else \n\t\t\t\t\t{\n\t\t\t\t\t\thttpServletResponse.sendRedirect(url);\n\t\t\t\t\t}\n\t\t\t\t\tredirect = true;\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\tthrow new WicketRuntimeException(\"Redirect failed\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlog.info(\"Already redirecting to an url current one ignored: \" + url);\n\t\t}\n\t}", "@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}", "public void sendRedirect(String location) throws IOException {\n\t\tString finalurl = null;\n\n\t\tif (isUrlAbsolute(location)) {\n\t\t\t//Log.trace(\"This url is absolute. No scheme changes will be attempted\");\n\t\t\t//Log.info(\"This url is absolute. No scheme changes will be attempted\");\n\t\t\tfinalurl = location;\n\t\t} else {\n\t\t\tfinalurl = fixForScheme(prefix + location);\n\t\t\t//Log.trace(\"Going to absolute url:\" + finalurl);\n\t\t\t//Log.info(\"Going to absolute url:\" + finalurl);\n\t\t}\n\t\tsuper.sendRedirect(finalurl);\n\t}", "public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException)\n throws IOException, ServletException {\n String redirectUrl = null;\n if (isUseForward()) {\n if (isForceHttps() && \"http\".equals(request.getScheme())) {\n // First redirect the current request to HTTPS.\n // When that request is received, the forward to the login page will be used.\n redirectUrl = buildHttpsRedirectUrlForRequest(request);\n }\n if (redirectUrl == null) {\n String loginForm = determineUrlToUseForThisRequest(request, response, authException);\n\n logger.debug(\"Server side forward to: \" + loginForm);\n RequestDispatcher dispatcher = request.getRequestDispatcher(loginForm);\n dispatcher.forward(request, response);\n return;\n }\n } else {\n // redirect to login page. Use https if forceHttps true\n redirectUrl = buildRedirectUrlToLoginPage(request, response, authException);\n }\n if (!response.isCommitted()) {\n redirectStrategy.sendRedirect(request, response, redirectUrl);\n }\n }", "private boolean processRedirectResponse(HttpConnection conn) {\n\n if (!getFollowRedirects()) {\n LOG.info(\"Redirect requested but followRedirects is \"\n + \"disabled\");\n return false;\n }\n\n //get the location header to find out where to redirect to\n Header locationHeader = getResponseHeader(\"location\");\n if (locationHeader == null) {\n // got a redirect response, but no location header\n LOG.error(\"Received redirect response \" + getStatusCode()\n + \" but no location header\");\n return false;\n }\n String location = locationHeader.getValue();\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Redirect requested to location '\" + location\n + \"'\");\n }\n\n //rfc2616 demands the location value be a complete URI\n //Location = \"Location\" \":\" absoluteURI\n URI redirectUri = null;\n URI currentUri = null;\n\n try {\n currentUri = new URI(\n conn.getProtocol().getScheme(),\n null,\n conn.getHost(), \n conn.getPort(), \n this.getPath()\n );\n redirectUri = new URI(location.toCharArray());\n if (redirectUri.isRelativeURI()) {\n if (isStrictMode()) {\n LOG.warn(\"Redirected location '\" + location \n + \"' is not acceptable in strict mode\");\n return false;\n } else { \n //location is incomplete, use current values for defaults\n LOG.debug(\"Redirect URI is not absolute - parsing as relative\");\n redirectUri = new URI(currentUri, redirectUri);\n }\n }\n } catch (URIException e) {\n LOG.warn(\"Redirected location '\" + location + \"' is malformed\");\n return false;\n }\n\n //check for redirect to a different protocol, host or port\n try {\n checkValidRedirect(currentUri, redirectUri);\n } catch (HttpException ex) {\n //LOG the error and let the client handle the redirect\n LOG.warn(ex.getMessage());\n return false;\n }\n\n //invalidate the list of authentication attempts\n this.realms.clear();\n //remove exisitng authentication headers\n removeRequestHeader(HttpAuthenticator.WWW_AUTH_RESP); \n //update the current location with the redirect location.\n //avoiding use of URL.getPath() and URL.getQuery() to keep\n //jdk1.2 comliance.\n setPath(redirectUri.getEscapedPath());\n setQueryString(redirectUri.getEscapedQuery());\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Redirecting from '\" + currentUri.getEscapedURI()\n + \"' to '\" + redirectUri.getEscapedURI());\n }\n\n return true;\n }", "public void sendRequest() {\n\t\tURL obj;\n\t\ttry {\n\t\t\t// Instantiating HttpURLConnection object for making GET request.\n\t\t\tobj = new URL(REQUEST_URL);\n\t\t HttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n\t\t connection.setRequestMethod(REQUEST_METHOD);\n\t\t connection.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t connection.setInstanceFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\tHttpURLConnection.setFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\n\t\t\t// Checking response code for successful request.\n\t\t\t// If responseCode==200, read the response,\n\t\t\t// if responseCode==3xx, i.e., a redirect, then make the request to \n\t\t\t// new redirected link, specified by 'Location' field. \n\t\t\t// NOTE: Only one level of redirection is supported for now. \n\t\t\t// Can be modified to support multiple levels of Redirections.\n\t\t\tint responseCode = connection.getResponseCode();\n\t\t\tif(responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_SEE_OTHER) {\n\t\t\t\tlogger.info(\"Redirect received in responseCode\");\n\t\t\t\tString newUrl = connection.getHeaderField(\"Location\");\n\t\t\t\tconnection = (HttpURLConnection) new URL(newUrl).openConnection();\n\t\t\t}\n\t\t\tresponseCode = connection.getResponseCode();\n\t\t\t\n\t\t\t// process response message if responseCode==200 i.e., success.\n\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) {\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tconnection.getInputStream()));\n\t\t\t\tString inputLine;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t}\n\t\t\t\tin.close();\n\t\t\t\t//Uncomment following line to log response data.\n\t\t\t\t//logger.info(response.toString());\n\t\t\t} else {\n\t\t\t\tlogger.warning(\"Http GET request was unsuccessful!\");\n\t\t\t}\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.severe(\"MalformedURLException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.severe(\"IOException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n }", "void onSuccessRedirection(int taskID);", "private boolean sendHTTPRedirectMessage(String location,\n String gapCookie, String locationCookie)\n {\n HTTPRespHdr resp = _httpRespHdr;\n\n /*\n * Create a reply with a 307 (HTTP/1.1) or 302 reply code.\n */\n if (_req.requestHdr.getVersionNumber() == 1.0) {\n _req.responseStatus = 302;\n\n resp.init( \"HTTP/1.0\", 302, \"Moved Temporarily\" );\n resp.addHeader( \"Location\", location );\n resp.addHeader( \"Content-Type\", \"text/html\" );\n }\n else {\n _req.responseStatus = 307;\n\n resp.init( \"HTTP/1.1\", 307, \"Temporary Redirect\" );\n\t \n /*\n * Put Location: right after status line so hopefully the stupid\n * Mozilla 0.6 will read it correctly (apparently it can't deal\n * with a response that is not delivered to it in a single\n * read() on the TCP socket).\n */\n resp.addHeader( \"Location\", location );\n\n resp.addHeader(\"Server\", GlobeRedirector.SERVER_NAME);\n setCurrentDate(_date);\n resp.addHeader(\"Date\", _httpDateFormatter.format(_date));\n resp.addHeader( \"Content-Type\", \"text/html\" );\n\n /*\n * 307 responses are not cachable by default, so we add an Expires:\n * header to have it cached for a while.\n */\n setExpiresDate(_date, 1000 * _config.getHTTPExpires());\n resp.addHeader(\"Expires\", _httpDateFormatter.format(_date));\n\n // Netscape Enterprise puts location here\n // resp.addHeader( \"Location\", location );\n\n resp.addHeader( \"Connection\", \"close\" );\n }\n\n if (gapCookie != null) {\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"writing GAP cookie: \" + gapCookie);\n }\n resp.addHeader(\"Set-Cookie\", gapCookie);\n }\n\n if (locationCookie != null) {\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"writing location cookie: \" + locationCookie);\n }\n resp.addHeader(\"Set-Cookie\", locationCookie);\n }\n\n // both 1.0 and 1.1 want a little message just in case\n String body = null;\n if (!_req.requestHdr.getMethod().toUpperCase().equals( \"HEAD\" )) {\n // message for ancient browsers\n\n // reset string buffer\n _strBuf.setLength(0);\n _strBuf.append(\"<HEAD><TITLE>Temporary Redirect</TITLE></HEAD>\\n\"\n + \"<BODY><H1> Temporary Redirect </H1>\\n\"\n + \"You are being redirected to <A HREF=\\\"\");\n _strBuf.append(location);\n _strBuf.append(\"\\\">\");\n _strBuf.append(location);\n _strBuf.append(\"</A>.</BODY>\");\n body = _strBuf.toString();\n }\n\n try {\n DataOutputStream cliOut = _req.connection.getOutputStream();\n\n resp.write(cliOut);\n if (body != null) {\n cliOut.write( body.getBytes() );\n _req.bytesSent = body.length();\n }\n else {\n _req.bytesSent = 0;\n }\n cliOut.flush();\n return true;\n }\n catch( IOException e ) {\n logError(\"Cannot send HTTP redirect message\" + getExceptionMessage(e));\n return false;\n }\n }", "private boolean sendHTTPRedirectMessage(String gapAddress, String file,\n String gapCookie, String locationCookie)\n {\n return sendHTTPRedirectMessage(\"http://\" + gapAddress + file,\n gapCookie, locationCookie);\n }", "public static void redirect( String url , ServletData servletData )\r\n {\r\n String message = \"\";\r\n try\r\n {\r\n HttpServletResponse response = servletData.getResponse();\r\n if ( response == null )\r\n {\r\n throw new Exception( \"response is null. \" +\r\n \"The most frequent cause of this problem is a bad url\" );\r\n }\r\n response.sendRedirect( url );\r\n }\r\n catch ( Exception e )\r\n {\r\n message = \"problem loading URL '\" + url + \"':\" + e;\r\n System.out.println( message );\r\n throw new SkipException( message );\r\n }\r\n }", "protected void redirectToLogin(HttpServletRequest req, HttpServletResponse res) throws IOException\n {\n// RequestDispatcher lRd = getServletContext().getRequestDispatcher(\"/servlet/common.SvtLogoutHandler\");\n// try \n// {\n//\t req.setAttribute(\"EXTRANET_METHOD\", \"GET\");\n//\t lRd.forward(req, res);\n// } \n// catch(Throwable e) \n// {\n//\t throw new ServletException(getClass().toString() + \".doGet(): Could not forward to target URL.\\n\" + e);\n// }\n //issue # 2191 this method throws an IllegalStateException if we use \n //a forward\n res.sendRedirect(req.getScheme()+\"://\"+req.getServerName()+\":\"+req.getServerPort()+\"/servlet/common.SvtLogoutHandler\");\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "@Test\n public void circularRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n wireMock.stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", \"/\" + REDIRECT)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n assertThatThrownBy(() -> execute(t))\n .isInstanceOf(WorkerExecutionException.class)\n .rootCause()\n .isInstanceOf(CircularRedirectException.class)\n .hasMessageContaining(\"Circular redirect\");\n }", "void redirect(ReagentSynonym synonym);", "@Test\n public void testRedirectToWsdl() throws Exception {\n this.mockMvc.perform(get(\"/\"))\n .andExpect(status().is3xxRedirection())\n .andExpect(redirectedUrl(\"services/SecoEgovService.wsdl\"));\n }", "@Test\n public void tooManyRedirects() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 51)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=52\");\n File dst = newTempFile();\n t.dest(dst);\n assertThatThrownBy(() -> execute(t))\n .isInstanceOf(WorkerExecutionException.class)\n .rootCause()\n .isInstanceOf(RedirectException.class)\n .hasMessage(\"Maximum redirects (50) exceeded\");\n }", "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException\n {\n // Setup the output stream\n res.setContentType(\"text/html\");\n // Posts are never cacheable\n res.setHeader(\"Expires\", \"Tues, 01 Jan 1980 00:00:00 GMT\");\n\n SessionSrvc thisSession = SessionSrvc.getSessionSrvc(req);\n\n boolean lIsExternal = false;\n\n if(thisSession != null)\n {\n // Determine if this is an external request\n lIsExternal = thisSession.getGlobalValue(\"EXTRANET_REQUEST\") != null;\n\t IObjectContext context = (IObjectContext) thisSession.getGlobalValue(\"Context\");\n\t // Make sure the user is properly logged in\n\t if (context != null)\n\t {\n\t try\n\t {\n if(!context.getCRM().isLoggedIn(context))\n redirectToLogin(req,res);\n else\n { \n\t\t storeParameters(thisSession, req);\n\n\t\t // implementation of this method should not product any output\n\t\t handlePost(thisSession, context);\n\t\t String destinationURL = thisSession.getTargetPage();\n\t\t String destinationFrame = thisSession.getTargetFrame();\n\t\t // Go to the next page\n\t\t if (destinationURL != null)\n\t\t {\n\t\t thisSession.setTargetPage(null);\n\t\t thisSession.setTargetFrame(null);\n\t\t if (destinationFrame == null || destinationFrame.equals(\"self\")) \n {\n\t\t\t if (! lIsExternal) \n {\n// RequestDispatcher lRd = getServletContext().getRequestDispatcher(destinationURL);\n// try \n// {\n//\t req.setAttribute(\"EXTRANET_METHOD\", \"GET\");\n//\t lRd.forward(req, res);\n// } \n// catch(Throwable e) \n// {\n//\t throw new ServletException(getClass().toString() + \".doGet(): Could not forward to target URL.\\n\" + e);\n// }\n // this code is strange, it does not seem to drop the session\n // but the above commented code requires that the targetframe be set?\n \t\t\t\t res.sendRedirect(req.getScheme() + \"://\" + req.getServerName() + \":\" + req.getServerPort() + destinationURL);\t\t\t \t\n\t\t\t }//end if\n else \n {\t\t\t\t \n\t\t\t\t // Forward to the target URL to ensure a valid session\n\t\t\t\t RequestDispatcher lRd = getServletContext().getRequestDispatcher(destinationURL);\n\t\t\t\t try \n {\n\t\t\t\t\t req.setAttribute(\"EXTRANET_METHOD\", \"GET\");\n\t\t\t\t\t lRd.forward(req, res);\n\t\t\t\t }\n catch(Throwable e) \n {\n\t\t\t\t\t throw new ServletException(getClass().toString() + \".doGet(): Could not forward to target URL.\\n\" + e);\n\t\t\t\t }\t\t\t\t\t \t\n\t\t\t }//end else \n\t\t } \n else\n\t\t {\n\t\t\t res.getWriter().println(\"<HTML><HEAD><SCRIPT>\");\n\t\t\t res.getWriter().println(\n\t\t\t \"function reloadTree() { \"+\n\t\t\t \" var treeframe = parent; \"+\n\t\t\t \" while (!treeframe.TreeArea) \"+\n\t\t\t \" treeframe = treeframe.parent; \"+\n\t\t\t \" treeframe = treeframe.TreeArea.Tree; \"+\n\t\t\t \" treeframe.reload(false); \"+\n\t\t\t \"}\");\n\t\t\t if (thisSession.reloadTree())\n\t\t\t res.getWriter().println(\"reloadTree();\");\n\t\t\t thisSession.setTreeReload(false);\n\t\t\t res.getWriter().println(destinationFrame+\".location='\"+destinationURL+\"';\");\n\t\t\t res.getWriter().println(\"</SCRIPT></HEAD></HTML>\");\n\t\t\t res.getWriter().flush();\n \t\t\t res.getWriter().close();\n\t\t }\n\t\t }\n\t\t else\n\t\t throw new Exception(\"Missing Destination URL\");\n }//end else \n\t }\n\t catch(Throwable exp)\n\t {\n\t\t exp.printStackTrace(res.getWriter());\n com.oculussoftware.service.log.LogService.getInstance().write(exp); \n\t }\n\t }\n\t else {\n\t sessionExpired(res.getWriter() ,BrowserKind.ALL, lIsExternal);\n\t } \n }//end if\n else {\n\t sessionExpired(res.getWriter(),BrowserKind.ALL, lIsExternal);\n }\t \n }", "public abstract boolean isRenderRedirect();", "void redirectToLogin();", "@Test\n public void redirectInfinite303And307() throws Exception {\n final Map<String, Class<? extends Servlet>> servlets = new HashMap<String, Class<? extends Servlet>>();\n servlets.put(RedirectServlet307.URL, RedirectServlet307.class);\n servlets.put(RedirectServlet303.URL, RedirectServlet303.class);\n startWebServer(\"./\", new String[0], servlets);\n\n final WebClient client = getWebClient();\n\n try {\n client.getPage(\"http://localhost:\" + PORT + RedirectServlet307.URL);\n }\n catch (final Exception e) {\n assertTrue(e.getMessage(), e.getMessage().contains(\"Too much redirect\"));\n }\n }", "@Test(priority = 4)\n\tpublic void homePageRedirection() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect(validate);\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the Hero Image Product Validation testing\");\n\n\t}", "@Test\n public void testDNSRedirect() throws Exception {\n final CountDownLatch signal = new CountDownLatch(1);\n try {\n final String requestString = \"http://links.iterable.com/a/f4c55a1474074acba6ddbcc4e5a9eb38?_e=dt%40iterable.com&_m=f285fd5320414b3d868b4a97233774fe\";\n final String redirectString = \"http://iterable.com/product/fakeTest\";\n final String redirectFinalString = \"https://iterable.com/product/fakeTest\";\n IterableHelper.IterableActionHandler clickCallback = new IterableHelper.IterableActionHandler() {\n @Override\n public void execute(String result) {\n assertEquals(redirectString, result);\n assertFalse(redirectFinalString.equalsIgnoreCase(result));\n signal.countDown();\n }\n };\n IterableApi.getAndTrackDeeplink(requestString, clickCallback);\n assertTrue(\"callback is called\", signal.await(5, TimeUnit.SECONDS));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Test\n @Category(FastTest.class)\n public void canDownloadOnRedirect() throws Exception {\n final String redirectPathBook = \"/download/redirect/thebook\";\n\n stubFor(get(urlPathEqualTo(redirectPathBook))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(\"0/binary\")));\n\n\n stubFor(get(urlPathMatching(\"/download/0/.*\"))\n .willReturn(aResponse()\n .withStatus(302)\n .withHeader(\"Location\", getExternalHostMock() + redirectPathBook)));\n\n // call service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOK));\n\n // verify that our logic downloaded binary\n verify(getRequestedFor(urlEqualTo(\"/download/0/?token=abcdef\")));\n verify(getRequestedFor(urlEqualTo(redirectPathBook)));\n }", "@Override\n\t\t\t\t\tpublic HttpUriRequest getRedirect(HttpRequest request, HttpResponse response, HttpContext context)\n\t\t\t\t\t\t\tthrows ProtocolException {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "@Override\r\n\tpublic void render() {\r\n\t\turi = ActionContext.getContextPath() + uri;\r\n\t\ttry {\r\n\t\t\tResponse.getServletResponse().sendRedirect(uri);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RenderException(\"Redirect to [\" + uri + \"] error!\", e);\r\n\t\t}\r\n\t}", "public void redirectUser(HttpServletResponse response) throws IOException {\n\n String url = \"/user/user.jsp\";\n\n log.debug(\"Accessing: \" + url);\n\n response.sendRedirect(url);\n\n log.debug(url + \" has successfully been loaded\");\n }", "@Override\n public void execute(HttpServletRequest request, HttpServletResponse response) throws IOException {\n HttpSession session = request.getSession();\n String page = request.getParameter(PAGE);\n String lang = request.getParameter(LANG);\n String parameters = request.getParameter(PARAM);\n session.setAttribute(LANG, lang);\n String address = parameters.isEmpty() ? page : SERVLET + \"?\" + parameters;\n response.sendRedirect(address);\n }", "public boolean isRedirect() {\n switch (code) {\n case HTTP_PERM_REDIRECT:\n case HTTP_TEMP_REDIRECT:\n case HTTP_MULT_CHOICE:\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n return true;\n default:\n return false;\n }\n }", "boolean isFollowRedirect();", "@Override\n public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException {\n if (response.getStatus() == HttpServletResponse.SC_NOT_FOUND) {\n forward(redirectRoute, baseRequest, response);\n } else {\n super.handle(target, baseRequest, request, response);\n }\n }", "@GetMapping(\"/admin/email/test\")\n public String sendTestEmailWithHTMLMethodPost(RedirectAttributes redirectAttributes){\n emailService.sendTestEmailWithHTML(redirectAttributes);\n return \"redirect:/admin\";\n }", "@RequestMapping(value = \"/redirect\")\n\tpublic String redirect() {\n\t\treturn \"redirect:apply\";\n\t}", "public abstract boolean isRenderRedirectAfterDispatch();", "public boolean sendRequest(com.webobjects.appserver.WORequest request){\n return false; //TODO codavaj!!\n }", "@Test\n void annullamentoTirocinioSuccess() throws ServletException, IOException {\n when(requestMock.getParameter(\"enteEmail\")).thenReturn(\"999\");\n when(requestMock.getRequestDispatcher(\"_areaStudent/StoricoStudenteET.jsp\"))\n .thenReturn(dispatcherMock);\n ServletAnnullaEnteDaStudenteET test = new ServletAnnullaEnteDaStudenteET();\n test.doGet(requestMock, responseMock);\n verify(dispatcherMock).forward(requestMock, responseMock);\n }", "@Test\n\tpublic void testSetContextRelative_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean contextRelative = true;\n\n\t\tfixture.setContextRelative(contextRelative);\n\n\t\t// add additional test code here\n\t}", "private void doSearchRedirect(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String search = request.getParameter(\"search\");\n \n if(search == null || search.trim().isEmpty()) {\n error(\"Recherche invalide\", request, response);\n return;\n }\n \n redirect(String.format(\"./search/%s\", search), \"Recherche en cours ...\",\n request, response);\n }", "private void sendToNextPage(String nextPage, HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows IOException, ServletException {\r\n\t\t// if the next page is null\r\n\t\tif (nextPage == null) {\r\n\t\t\tresponse.sendError(HttpServletResponse.SC_NOT_FOUND, request.getServletPath());\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if action\r\n\t\tif (nextPage.endsWith(\".do\")) {\r\n\t\t\tresponse.sendRedirect(nextPage);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if view\r\n\t\tif (nextPage.endsWith(\".jsp\")) {\r\n\t\t\tRequestDispatcher d = request.getRequestDispatcher(\"WEB-INF/\" + nextPage);\r\n\t\t\td.forward(request, response);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tresponse.sendRedirect(nextPage);\r\n\t\treturn;\r\n\t}", "private CoprocessObject.Object doForwardToLogin(CoprocessObject.Object.Builder builder) {\n\t\tReturnOverrides retOverrides = builder.getRequestBuilder()\n\t\t\t\t.getReturnOverridesBuilder()\n\t\t\t\t.setResponseCode(301)\n\t\t\t\t.putHeaders(HTTP_HEADER_LOCATION, loginUrl)\n\t\t\t\t.build();\n\t\t\n\t\t MiniRequestObject miniReq = builder.getRequestBuilder().setReturnOverrides(retOverrides).build();\n\t\t return builder.setRequest(miniReq).build();\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String referer = (String) request.getSession().getAttribute(\"Referer\");\n String redirectTo = referer != null ? referer : \"/\";\n\n LOGGER.info(\"Access token: {}. Redirecting to: {}\", context.getAccessToken(), referer);\n response.sendRedirect(redirectTo);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n ip = request.getLocalAddr();\n try {\n Timestamp dataNow = GetNow();\n Timestamp dataPrec = GetDate(request.getParameter(\"email\"),response.getWriter());\n long differenza = (dataNow.getTime()-dataPrec.getTime())/1000;\n \n response.getWriter().println(differenza+\"<br>\");\n \n \n if(differenza>90){\n response.sendRedirect(\"LinkScaduto.html\");\n }\n else{\n \n char[] p = generatePswd(8, 12, 1, 1, 1); \n String password = String.valueOf(p, 0, p.length) ;\n \n String email = request.getParameter(\"email\");\n String ip = request.getLocalAddr();\n \n UpdatePassword(email,password); \n \n\n String ogget = \"Confirm change password\";\n\n String testo = \"Dear \" + email\n + \"\\n This is your new password:\"\n + \"\\n\\n \"+password;\n\n Email send = new Email();\n send.Send(email,ogget,testo);\n \n response.sendRedirect(\"LinkValido.html\");\n }\n \n } catch(IOException e) {}\n }", "protected void doGet( HttpServletRequest request, \n HttpServletResponse response )\n throws ServletException, IOException \n {\n String location = request.getParameter( \"page\" );\n\n if ( location != null ) \n \n if ( location.equals( \"CNT4714\" ) )\n response.sendRedirect( \"http://www.ucf.edu\" );\n else \n if ( location.equals( \"welcome1\" ) )\n response.sendRedirect( \"welcome1\" );\n\t\t\t\telse\n\t\t\t\t if ( location.equals (\"cyclingnews\") )\n\t\t\t\t\t response.sendRedirect( \"http://www.cyclingnews.com\" );\n\t\t\t\t\t else\n\t\t\t\t if ( location.equals ( \"error\" ) )\n\t\t\t\t\t response.sendRedirect( \"error\" );\n\n // code that executes only if this servlet does not redirect the user to another page\n\n response.setContentType( \"text/html\" );\n PrintWriter out = response.getWriter(); \n\n // start HTML document\n out.println( \"<!DOCTYPE html\\\">\" ); \n // head section of document\n out.println( \"<head>\" );\n out.println( \"<title>Invalid page</title>\" );\n out.println( \"<meta charset=\\\"utf-8\\\">\" );\n out.println( \"<style type='text/css'>\");\n out.println( \"<!-- body{background-color:red; font-family:calibri;} -->\");\n out.println( \"</style>\");\n out.println( \"</head>\" );\n // body section of document\n out.println( \"<body>\" );\n out.println( \"<h1>Invalid page requested</h1>\" );\n out.println( \"<p><a href = \" + \"RedirectionServlet.html\\\">\" );\n out.println( \"Click here for more details</a></p>\" );\n out.println( \"</body>\" );\n // end HTML document\n out.println( \"</html>\" );\n out.close(); // close stream to complete the page \n }", "@Test\n\tpublic void testGetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\n\t\tString result = fixture.getUrl();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n String username = request.getParameter(\"email\");\n\n // Send the response back to the user\n try {\n response.setContentType(\"text/html\");\n PrintWriter writer = response.getWriter();\n response.sendRedirect(\"/login/index.html?username=\"+ username);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void onFailureRedirection(String errorMessage);", "protected boolean doGet(String relativeURI,\n\t\t\tHttpServletRequest request, HttpServletResponse response,\n\t\t\tConfiguration config)\n\t\t\tthrows IOException, ServletException {\n\t\tif (relativeURI.startsWith(\"static/\")) {\n\t\t\tgetServletContext().getNamedDispatcher(\"default\").forward(request, response);\n\t\t\treturn true;\n\t\t}\n\n\t\t// Homepage. If index resource is defined, redirect to it.\n\t\tif (\"\".equals(relativeURI) && config.getIndexResource() != null) {\n\t\t\tresponse.sendRedirect(IRIEncoder.toURI(\n\t\t\t\t\tconfig.getIndexResource().getAbsoluteIRI()));\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Assume it's a resource URI -- will produce 404 if not\n\t\tgetServletContext().getNamedDispatcher(\"WebURIServlet\").forward(request, response);\n\t\treturn true;\n\t}", "@Test\n public void testLocation() throws Exception\n {\n HttpResponse mockResponse = mock(HttpResponse.class);\n when(mockResponse.status()).thenReturn(HttpStatus.TEMPORARY_REDIRECT);\n\n RedirectPolicy mockPolicy = mock(RedirectPolicy.class);\n when(mockPolicy.affects(mockResponse)).thenReturn(true);\n when(mockPolicy.location(mockResponse, 123)).thenReturn(URI.create(\"http://testlocation\"));\n\n RedirectPolicy testPolicy = new Temporary(mockPolicy);\n\n assertEquals(URI.create(\"http://testlocation\"), testPolicy.location(mockResponse, 123));\n }", "void execute(HttpServletRequest request, HttpServletResponse response)\n throws Exception;", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.sendRedirect(\"LoginPage.jsp\");\r\n }", "private boolean redirectClient(String path)\n {\n URL url;\n String reqHost = _req.requestHdr.getHeader(\"Host\");\n String fullspec = \"http://\" + reqHost + path;\n String location = null;\n String gapAddress = null;\n boolean randomGAP = false;\n boolean haveValidGAPCookie = false;\n boolean haveValidLocationCookie = false;\n String s = null;\n\n InetAddress cliAddr = _req.connection.getSocket().getInetAddress();\n\n if (DEBUG && _debugLevel > 0) {\n debugPrintLn(\"Got request from \" + cliAddr.toString() + \" \"\n + _req.requestHdr.getVersion() );\n }\n\n /*\n * Check if the client's host is blocked.\n */\n if (_blockList.isBlockedHost(cliAddr.getHostAddress())) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: your host is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n s = URIDecoder.decode(path);\n }\n catch(IllegalArgumentException e) {\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Format error: request contains an invalid escape sequence: \"\n + e.getMessage());\n return false;\n }\n\n /*\n * Check if the file requested is blocked.\n */\n if (_blockList.isBlockedFile(s)) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: the requested file is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n s = URIDecoder.decode(fullspec);\n }\n catch(IllegalArgumentException e) {\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Format error: request contains an invalid escape sequence: \"\n + e.getMessage());\n return false;\n }\n\n /*\n * Check if the URL requested is blocked.\n */\n if (_blockList.isBlockedURL(s)) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: the requested URL is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n url = new URL(fullspec);\n }\n catch( MalformedURLException e ) {\n logError(\"Unsupported request-URI: \" + fullspec);\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"unsupported request-URI\");\n return false;\n }\n\n String file = url.getFile();\n\n /*\n * Redirect the client to the default URL (if defined) if the\n * object name is absent.\n */\n if (file.equals(\"/\")) {\n s = _config.getDefaultURL();\n\n if (s != null) {\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"no object name specified -- using default URL\");\n }\n\n return sendHTTPRedirectMessage(s, null, null);\n }\n }\n\n _cookieCoords = null;\n\n /*\n * If the client sent a redirector cookie, the cookie contains the\n * hostname and port number of the client's nearest GAP, and the\n * geographical coordinates associated with the client's IP address.\n */\n if (_config.getCookieEnabledFlag()) {\n HTTPCookie clientCookie = null;\n\n if ( (s = _req.requestHdr.getHeader(\"Cookie\")) != null) {\n try {\n _httpCookie.init(s);\n clientCookie = _httpCookie;\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed cookie: \" + e.getMessage());\n\n // CONTINUE - cookie will be replaced\n }\n\n if (clientCookie != null) {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie: \" + clientCookie.toString());\n }\n\n String gap = clientCookie.getAttribute(\n RedirectorCookieFactory.COOKIE_GAP_ATTRIB);\n\n /*\n * Set the nearest GAP to the GAP indicated by the cookie. If\n * the GAP address inside the cookie is invalid or if it does\n * not refer to a GAP, the cookie is discarded (and replaced).\n */\n if (gap != null) {\n HostAddress gapHost = null;\n\n try {\n gapHost = new HostAddress(gap);\n s = gapHost.toString();\n\n // Check if gapHost still refers to an active GAP.\n if (_gapList.get(s) != null) {\n gapAddress = s;\n haveValidGAPCookie = true;\n }\n }\n catch(UnknownHostException e) {\n logError(\"Unknown host in cookie: \" + gap);\n\n // CONTINUE - GAP cookie will be replaced\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed host address in cookie: \" + gap);\n\n // CONTINUE - GAP cookie will be replaced\n }\n }\n else {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie does not contain a \"\n + RedirectorCookieFactory.COOKIE_GAP_ATTRIB\n + \" attribute\");\n }\n }\n\n /*\n * If the cookie does not contain a valid nearest GAP attribute,\n * we may need the cookie's coordinates attribute to determine the\n * nearest GAP.\n */\n if (gapAddress == null) {\n s = clientCookie.getAttribute(\n RedirectorCookieFactory.COOKIE_COORDS_ATTRIB);\n\n if (s != null) {\n try {\n _cookieCoords = new FloatCoordinate(s);\n haveValidLocationCookie = true;\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed coordinates in cookie: \" + s);\n\n // CONTINUE - location cookie will be replaced\n }\n }\n else {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie does not contain a \"\n + RedirectorCookieFactory.COOKIE_COORDS_ATTRIB\n + \" attribute\");\n }\n }\n }\n }\n }\n }\n\n /*\n * If there is no (valid) GAP cookie, find the location of the nearest\n * GAP. Pick a random GAP if the nearest GAP could not be determined.\n */\n if (gapAddress == null) {\n GlobeAccessPointRecord gaprec;\n\n if ( (gaprec = findNearestGAP(cliAddr)) == null) {\n gaprec = getRandomGAP();\n randomGAP = true;\n }\n gapAddress = gaprec.hostport;\n\n // _cookieCoords set\n }\n\n String gapCookie = null, locationCookie = null;\n\n /*\n * Create the GAP cookie value if cookies are enabled and the client\n * does not have a (valid) GAP cookie. If a GAP cookie is created,\n * create a location cookie if the client doesn't have a valid one.\n */\n if (_config.getCookieEnabledFlag()) {\n if (! haveValidGAPCookie) {\n if (randomGAP) {\n setExpiresDate(_date, 1000 * RANDOM_GAP_COOKIE_TTL);\n }\n else {\n setExpiresDate(_date, 1000 * _config.getGAPCookieTTL());\n }\n\n gapCookie = _cookieFactory.getGAPValue(gapAddress, _date);\n\n if ( ! haveValidLocationCookie) {\n if (_cookieCoords != null) {\n setExpiresDate(_date, 1000 * _config.getLocationCookieTTL());\n locationCookie = _cookieFactory.getLocationValue(_cookieCoords,\n _date);\n }\n }\n }\n }\n\n /*\n * Send a reply to redirect the client to the nearest GAP.\n */\n if (_config.getHTTPRedirectFlag()) {\n return sendHTTPRedirectMessage(gapAddress, file,\n gapCookie, locationCookie);\n }\n else {\n return sendHTMLReloadPage(gapAddress, file,\n gapCookie, locationCookie);\n }\n }", "@Then(\"I am redirected to the product page\")\n\t\tpublic void i_am_redirected_to_the_product_page() throws Exception {\n\t\t\tCurrentUrl = driver.getCurrentUrl();\n\t\t\tAssert.assertEquals(CurrentUrl, ExpectedUrl);\n\n\t\t\t// Take snapshot as evidence\n\t\t\tFunctions.takeSnapShot(driver, null);\n\n\t\t}", "private void redirectUser(HttpServletRequest request, HttpServletResponse response,\r\n String messageType, String targetPage, String error) \r\n throws ServletException, IOException {\r\n //assign message to request\r\n request.setAttribute(messageType, error);\r\n \r\n //push user back to registration form with the error message included\r\n RequestDispatcher dispatcher = request.getRequestDispatcher(targetPage);\r\n dispatcher.forward(request,response);\r\n }", "protected void doPost(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException \n\t{\n\t\tif(AntiXss.isUsername(request.getParameter(\"username\")) == false){\n\t\t\tresponse.sendRedirect(\"error.jsp\");\n\t\t}\n\t\tif(AntiXss.isCodeZip(request.getParameter(\"code\")) == false){\n\t\t\tresponse.sendRedirect(\"error.jsp\");\n\t\t}\n\t\tString username = request.getParameter(\"username\");\n\t\tint code = Integer.parseInt(request.getParameter(\"code\"));\n\t\tRequestDispatcher rd = null;\n\t\tAuthenticator authenticator = new Authenticator();\n\t\tString result = authenticator.verification(username, code);\n\t\t\n\t\tif (result.equals(\"success\")) \n\t\t{\n\t\t\trd = request.getRequestDispatcher(\"VerficationConfirm.html\");\n\t\t} \n\t\telse\n\t\t{\n\t\t\trd = request.getRequestDispatcher(\"error.jsp\");\t\n\t\t}\n\t\t\n\t\trd.forward(request, response);\n\t}", "@Override\n public Response serve( IHTTPSession session ) throws SecurityResponseException {\n String host = findRequestHeaderValue( HTTP.HDR_HOST, session );\n if ( StringUtil.isNotBlank( host ) ) {\n String uri;\n if ( server.getPort() == 443 ) {\n uri = HTTPS_SCHEME + host + session.getUri();\n } else {\n uri = HTTP_SCHEME + host + \":\" + server.getPort() + session.getUri();\n }\n Log.append( HTTPD.EVENT, \"Redirecting to \" + uri );\n Response response = Response.createFixedLengthResponse( Status.REDIRECT, MimeType.HTML.getType(), \"<html><body>Moved: <a href=\\\"\" + uri + \"\\\">\" + uri + \"</a></body></html>\" );\n response.addHeader( HTTP.HDR_LOCATION, uri );\n return response;\n }\n return super.serve( session );\n }", "public ActionForward execute(ActionMapping mapping,\n\t\t\t\t ActionForm form,\n\t\t\t\t HttpServletRequest request,\n\t\t\t\t HttpServletResponse response)\n\tthrows IOException, ServletException\n {\n\tString target;\n\t\n\tSubscribeForm subForm = (SubscribeForm) form;\n\tString mail = subForm.getMail();\n\tString domain = subForm.getDomain();\n\tString login = subForm.getLogin();\n\t\n\tinitApplicationPath();\n\tString addressMail = mail+\"@\"+domain;\n\tif(!isAuthorized2Subscribe(addressMail))\n\t return mapping.findForward(\"unauthorized\");\n\t\n\ttry{\n\t if(isAlreadySubscribed(addressMail))\n\t\treturn mapping.findForward(\"multi_subscr\");\n\t}\n\tcatch(SQLException sqle){}\n\t\n\tString password = generateRandomWord();\n\t\n\tString pageName = createTemporaryConfirmationPage(login, password, addressMail);\n\tif( (pageName != null) && sendConfirmationMail(login, password, addressMail, pageName) )\n\t return mapping.findForward(\"success\");\n\t\n\t//the creation of the temporary confirmation page has failed\n\t//or the confirmation mail couldn't have been sent.\n\treturn mapping.findForward(\"errorsys\");\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n\t\tresponse.sendRedirect(\"index.jsp\");\n\t\t//seguridad antihackers\n\t}", "@Test\n public void testAffectsTemporary() throws Exception\n {\n HttpResponse mockResponse = mock(HttpResponse.class);\n\n RedirectPolicy mockPolicy = mock(RedirectPolicy.class);\n when(mockPolicy.affects(mockResponse)).thenReturn(true);\n\n RedirectPolicy testPolicy = new Temporary(mockPolicy);\n\n when(mockResponse.status()).thenReturn(HttpStatus.TEMPORARY_REDIRECT);\n assertTrue(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.FOUND);\n assertTrue(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.SEE_OTHER);\n assertTrue(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.PERMANENT_REDIRECT);\n assertFalse(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.MOVED_PERMANENTLY);\n assertFalse(testPolicy.affects(mockResponse));\n }", "@Override\n public void execute(\n HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, IOException {\n ServletContext context = request.getSession().getServletContext();\n context.getRequestDispatcher(\"/EntryDataForNewUser.jsp\").forward(request, response);\n //context.getRequestDispatcher(request.getHeader(\"referer\")).forward(request, response);\n }", "@Override\n\tpublic void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)\n\t\t\tthrows IOException, ServletException {\n\t\tHttpServletRequest req=(HttpServletRequest) request;\n\t\tHttpServletResponse resp=(HttpServletResponse) response;\n\t\tCookie[] Cookies=req.getCookies();\n\t\t//System.out.println(\"jump\");\n\t\t\tboolean name=false;\n\t\t\tboolean pass=false;\n\t\t\tif(Cookies!=null){\n\t\t\tfor(Cookie c:Cookies){\n\t\t\t\tif(c.getName().equals(\"name\")){\n\t\t\t\t\tif(c.getValue().equals(\"user\")){\n\t\t\t\t\t\tname=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Cookie c:Cookies){\n\t\t\t\tif(c.getName().equals(\"pass\")){\n\t\t\t\t\tif(c.getValue().equals(\"pass\")){\n\t\t\t\t\t\tpass=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\tif(name&&pass){\n\t\t\t resp.sendRedirect(\"autosuccess.html\");\n\t\t }\n\t\t\t\n\t\t System.out.println(\"not\");\n\t\t chain.doFilter(request, response);\n\t\t //req.getRequestDispatcher(\"autologin.html\").forward(request, response);\n\t\t\t\n\t}", "private static Result redirect(final Status status, final String location) {\n requireNonNull(location, \"A location is required.\");\n return with(status).header(\"location\", location);\n }", "public void isRedirectionCorrect() {\n\n\t\tString title = WebUtility.getTitle();\n\t\tAssert.assertEquals(title, data.getValidatingData(\"homepage_Title\"));\n\t\tSystem.out.println(\"Redirection is on the correct page\");\n\t}", "public String execute(HttpServletRequest request, \r\n HttpServletResponse response) throws ServletException, IOException;", "private void sendResponse(String sHTTPMethod, String sHTTPRequest, int iStatusCode, String sResponse, boolean bPersistentConnection) {\n // determine if sending file and if redirect -> determines response\n boolean bIsFileSend = sHTTPMethod.equalsIgnoreCase(\"GET\") && iStatusCode == 200;\n boolean bIsRedirect = iStatusCode == 301;\n\n // write header\n String sStatus = getStatusLine(iStatusCode) + END_LINE;\n String sLocation = (bIsRedirect) ? (\"Location: \" + sResponse) + END_LINE : (\"\"); // only if redirect\n String sServerDetails = getServerDetails() + END_LINE;\n String sContentLength = \"Content-Length: \" + sResponse.length() + END_LINE;\n String sContentType = getContentType(sHTTPRequest) + END_LINE;\n String sConnection = getConnectionLine(bPersistentConnection) + END_LINE;\n String sSpaceBetweenHeaderAndBody = END_LINE;\n FileInputStream fin = null;\n\n // update content length if sending a file -> create file input stream\n if (bIsFileSend) {\n try {\n fin = new FileInputStream(ROOT_FOLDER.toString() + \"/\" + sResponse); // if file request, then sResponse is the file path\n sContentLength = \"Content-Length: \" + Integer.toString(fin.available()) + END_LINE;\n } catch (IOException e) {\n System.out.println(\"There was an error creating the file input stream for the response:\");\n System.out.println(\" \" + e);\n }\n }\n\n try {\n // send HTTP Header\n outToClient.writeBytes(sStatus);\n if (bIsRedirect) {\n outToClient.writeBytes(sLocation); // only send Location on redirect\n }\n outToClient.writeBytes(sServerDetails);\n outToClient.writeBytes(sContentType);\n outToClient.writeBytes(sContentLength);\n outToClient.writeBytes(sConnection);\n outToClient.writeBytes(sSpaceBetweenHeaderAndBody);\n\n // send HTTP Body\n if (bIsFileSend) {\n sendFile(fin, outToClient); // send file\n } else if (!bIsRedirect && !sHTTPMethod.equalsIgnoreCase(\"HEAD\")) {\n outToClient.writeBytes(sResponse); // send HTML msg back\n }\n\n // print HTTP Header and Body to console\n System.out.println(sStatus);\n System.out.println(sServerDetails);\n System.out.println(sContentType);\n System.out.println(sContentLength);\n System.out.println(sConnection);\n if (bIsRedirect) {\n System.out.println(sLocation);\n }\n if (bIsFileSend) {\n System.out.println(\"File sent: \" + sResponse);\n } else {\n System.out.println(\"Response: \" + sResponse);\n }\n System.out.println();\n\n // close connection\n if (!bPersistentConnection) {\n outToClient.close();\n }\n\n } catch (IOException e) {\n System.out.println(\"writeBytes did not complete:\");\n System.out.println(\" \" + e + \"\\n\");\n }\n }", "private void handleDepictionRedirect(final BRSearchPageModel pageModel) throws BloomreachSearchException {\r\n try {\r\n final String depictionRedirectUrl = pageModel.getDepictionRedirectUrl();\r\n if (!NmoUtils.isEmpty(depictionRedirectUrl)) {\r\n getResponse().sendRedirect(depictionRedirectUrl);\r\n }\r\n } catch (final IOException e) {\r\n if (log.isLoggingError()) {\r\n log.logError(\"Bloomreach Search -- Depiction Redirection Error\" + e);\r\n }\r\n throw new BloomreachSearchException(\"Error occured during depiction redirect in BloomReach search flow \" + e);\r\n }\r\n }", "protected boolean processCommand(HttpServletRequest request, HttpServletResponse response) \r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\tString uri = getRequestURI(request);\r\n\t\t\r\n\t\tif (uri.endsWith(\"/redirect-filter\")) {\r\n\t\t\tString cmd = request.getParameter(\"c\");\r\n\t\t\tif (cmd != null && cmd.equals(\"reload\") && reloadConfig == true) {\r\n\t\t\t\tloadConfiguration();\r\n\t\t\t\tresponse.setContentType(\"text/plain\");\r\n\t\t\t\tresponse.getWriter().println(filterName + \": Loaded \" + \r\n\t\t\t\t\t\tredirectRules.size() + \" rule(s).\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.sendRedirect(\"index.jsp\");\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n // Since the doPost is not used just redirect people to the NO.html page.\n response.sendRedirect(\"NO.html\");\n }", "protected HTTPSampleResult followRedirects(HTTPSampleResult res, int frameDepth) {\n HTTPSampleResult totalRes = new HTTPSampleResult(res);\n totalRes.addRawSubResult(res);\n HTTPSampleResult lastRes = res;\n \n int redirect;\n for (redirect = 0; redirect < MAX_REDIRECTS; redirect++) {\n boolean invalidRedirectUrl = false;\n String location = lastRes.getRedirectLocation();\n if (log.isDebugEnabled()) {\n log.debug(\"Initial location: \" + location);\n }\n if (REMOVESLASHDOTDOT) {\n location = ConversionUtils.removeSlashDotDot(location);\n }\n // Browsers seem to tolerate Location headers with spaces,\n // replacing them automatically with %20. We want to emulate\n // this behaviour.\n location = encodeSpaces(location);\n if (log.isDebugEnabled()) {\n log.debug(\"Location after /. and space transforms: \" + location);\n }\n // Change all but HEAD into GET (Bug 55450)\n String method = lastRes.getHTTPMethod();\n method = computeMethodForRedirect(method, res.getResponseCode());\n \n try {\n URL url = ConversionUtils.makeRelativeURL(lastRes.getURL(), location);\n url = ConversionUtils.sanitizeUrl(url).toURL();\n if (log.isDebugEnabled()) {\n log.debug(\"Location as URL: \" + url.toString());\n }\n HTTPSampleResult tempRes = sample(url, method, true, frameDepth);\n if (tempRes != null) {\n lastRes = tempRes;\n } else {\n // Last url was in cache so tempRes is null\n break;\n }\n } catch (MalformedURLException | URISyntaxException e) {\n errorResult(e, lastRes);\n // The redirect URL we got was not a valid URL\n invalidRedirectUrl = true;\n }\n if (lastRes.getSubResults() != null && lastRes.getSubResults().length > 0) {\n SampleResult[] subs = lastRes.getSubResults();\n for (SampleResult sub : subs) {\n totalRes.addSubResult(sub);\n }\n } else {\n // Only add sample if it is a sample of valid url redirect, i.e. that\n // we have actually sampled the URL\n if (!invalidRedirectUrl) {\n totalRes.addSubResult(lastRes);\n }\n }\n \n if (!lastRes.isRedirect()) {\n break;\n }\n }\n if (redirect >= MAX_REDIRECTS) {\n lastRes = errorResult(new IOException(\"Exceeded maximum number of redirects: \" + MAX_REDIRECTS), new HTTPSampleResult(lastRes));\n totalRes.addSubResult(lastRes);\n }\n \n // Now populate the any totalRes fields that need to\n // come from lastRes:\n totalRes.setSampleLabel(totalRes.getSampleLabel() + \"->\" + lastRes.getSampleLabel());\n // The following three can be discussed: should they be from the\n // first request or from the final one? I chose to do it this way\n // because that's what browsers do: they show the final URL of the\n // redirect chain in the location field.\n totalRes.setURL(lastRes.getURL());\n totalRes.setHTTPMethod(lastRes.getHTTPMethod());\n totalRes.setQueryString(lastRes.getQueryString());\n totalRes.setRequestHeaders(lastRes.getRequestHeaders());\n \n totalRes.setResponseData(lastRes.getResponseData());\n totalRes.setResponseCode(lastRes.getResponseCode());\n totalRes.setSuccessful(lastRes.isSuccessful());\n totalRes.setResponseMessage(lastRes.getResponseMessage());\n totalRes.setDataType(lastRes.getDataType());\n totalRes.setResponseHeaders(lastRes.getResponseHeaders());\n totalRes.setContentType(lastRes.getContentType());\n totalRes.setDataEncoding(lastRes.getDataEncodingNoDefault());\n return totalRes;\n }", "public interface Redirectator {\n\n void prepareRedirection(RedirectCommand cmd);\n\n void cleanup();\n}", "@RequestMapping(\"/auth\") \r\n\tpublic String redirect(Model model,HttpServletRequest httpRequest) { \r\n\t\t String path = httpRequest.getContextPath();\r\n\t String basePath = httpRequest.getScheme()+\"://\"+httpRequest.getServerName()+\":\"+httpRequest.getServerPort()+path; \r\n\t model.addAttribute(\"base\", basePath);\r\n\t\treturn \"/index/login\"; \r\n\t}", "public boolean isRedirect() {\r\n\r\n\t\tPattern pattern = Pattern.compile(\"#(.*)redirect(.*)\",\r\n\t\t\t\tPattern.CASE_INSENSITIVE);\r\n\t\tif (pattern.matcher(text).matches()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\t\r\n\t\treturn false;\r\n\t}" ]
[ "0.7849233", "0.7773639", "0.74622273", "0.74093586", "0.70776093", "0.69448906", "0.6912605", "0.67786944", "0.6712559", "0.65247333", "0.64986914", "0.649461", "0.64298385", "0.6405079", "0.6258103", "0.6093216", "0.6081748", "0.60734254", "0.6044758", "0.60135996", "0.5992415", "0.5979375", "0.59584934", "0.5915518", "0.5897369", "0.5873562", "0.58728", "0.58544004", "0.58127046", "0.5806277", "0.58027184", "0.5801559", "0.57824874", "0.57317245", "0.57192355", "0.56942016", "0.56859004", "0.5674228", "0.5667773", "0.56620127", "0.56322974", "0.5630304", "0.56202686", "0.5598969", "0.55468404", "0.5540922", "0.55373883", "0.5534135", "0.5532083", "0.55282813", "0.54926187", "0.54760796", "0.5466691", "0.54649913", "0.54493934", "0.54453665", "0.54387176", "0.5433268", "0.54215777", "0.53810525", "0.5372984", "0.53710777", "0.536704", "0.532656", "0.5297139", "0.52797043", "0.52674514", "0.52653456", "0.5264027", "0.526191", "0.5244761", "0.52392435", "0.52322966", "0.52091336", "0.52066314", "0.5204252", "0.5203818", "0.51946914", "0.5193111", "0.5189003", "0.5187229", "0.5176694", "0.51662225", "0.5165769", "0.51578784", "0.515748", "0.5155866", "0.5152647", "0.51340425", "0.51302266", "0.512551", "0.5120568", "0.5111551", "0.5110538", "0.5093776", "0.50926226", "0.5092462", "0.50852627", "0.50837135", "0.5074719" ]
0.7703208
2
Run the void sendRedirect(HttpServletRequest,HttpServletResponse,String,boolean) method test.
@Test(expected = java.io.IOException.class) public void testSendRedirect_3() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); HttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true); HttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true)); String targetUrl = ""; boolean http10Compatible = true; fixture.sendRedirect(request, response, targetUrl, http10Compatible); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSendRedirect_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = false;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "void sendRedirect(HttpServletResponse response, String location) throws AccessControlException, IOException;", "@Test\n\tpublic void testSendRedirect_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Override\n public void sendRedirect(String arg0) throws IOException {\n\n }", "@Override\n\tpublic void sendRedirect(String location) throws IOException {\n\t}", "void redirect();", "void sendForward(HttpServletRequest request, HttpServletResponse response, String location) throws AccessControlException, ServletException, IOException;", "@Test\n public void oneRedirect() throws Exception {\n UrlPattern up1 = urlEqualTo(\"/\" + REDIRECT);\n stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", wireMock.url(TEST_FILE_NAME))));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n verify(1, getRequestedFor(up1));\n verify(1, getRequestedFor(up2));\n }", "void redirect(Reagent reagent);", "@Test\n public void tenRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 10)));\n\n UrlPattern up2 = urlEqualTo(\"/\" + TEST_FILE_NAME);\n redirectWireMock.stubFor(get(up2)\n .willReturn(aResponse()\n .withBody(CONTENTS)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=10\");\n File dst = newTempFile();\n t.dest(dst);\n execute(t);\n\n assertThat(dst).usingCharset(StandardCharsets.UTF_8).hasContent(CONTENTS);\n\n redirectWireMock.verify(10, getRequestedFor(up1));\n redirectWireMock.verify(1, getRequestedFor(up2));\n }", "@Override\n public void sendRedirect(String location) throws IOException {\n this._getHttpServletResponse().sendRedirect(location);\n }", "private void goOnPageBySendRedirect(final HttpServletResponse response, String goToPage, final String methodName)\n\t\t\tthrows IOException {\n\t\ttry {\n\t\t\tresponse.sendRedirect(goToPage);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"ServiceHrImpl: \" + methodName + \" : errorSendRedirect\", e);\n\t\t\tthrow e;\n\t\t}\n\t}", "public abstract void redirect(String url) throws IOException;", "public abstract String redirectTo();", "public static void redirect(HttpServletRequest req,\n HttpServletResponse resp, String redirectUrl) throws IOException {\n String isAJAXRequest = req.getParameter(\"AJAXRequest\"); // parameter\n if (isAJAXRequest == null) {\n resp.sendRedirect(redirectUrl);\n } else {\n resp.sendError(FOUR_O_ONE,\n \"Not Authorized to view the requested component\");\n }\n }", "@Override\r\n\tpublic boolean isRedirect() {\n\t\treturn false;\r\n\t}", "@Override\n\t\t\t\t\tpublic boolean isRedirected(HttpRequest request, HttpResponse response, HttpContext context)\n\t\t\t\t\t\t\tthrows ProtocolException {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}", "public void redirect(Object sendData, NodeInfo nodeInfo){\n send(sendData, nodeInfo);\n\n }", "private void doTransfer(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Start doing transfer.\");\r\n\t\tString page = null;\r\n\t\tTransferCommand command = new TransferCommand();\r\n\t\tpage = command.execute(req, resp);\r\n\t\tif (page.equals(\"/jsp/transfer_error.jspx\")) {\r\n\t\t\tRequestDispatcher dispatcher = getServletContext().getRequestDispatcher(page);\r\n\t\t\tdispatcher.forward(req, resp);\r\n\t\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Transfer was failed.\");\r\n\t\t} else {\r\n\t\t\tresp.sendRedirect(page);\r\n\t\t\tLOG.info(\"LOGIN: \" + req.getSession().getAttribute(\"login\") + \" Transfer succesfull.\");\r\n\t\t}\r\n\t}", "void onSuccessRedirection(Response object, int taskID);", "private void dispatch(HttpServletRequest request, HttpServletResponse response, String redirectTo) throws IOException, ServletException {\n\t\tif (redirectTo.startsWith(PREFIX_REDIRECT)) {\n\t\t\tredirectTo = redirectTo.substring(PREFIX_REDIRECT.length(), redirectTo.length());\n\t\t\t\n\t\t\tif (redirectTo.startsWith(\"/\")) {\n\t\t\t\tredirectTo = request.getContextPath() + redirectTo;\n\t\t\t}\n\t\t\t\n\t\t\tresponse.sendRedirect(redirectTo);\n\t\t} else {\n\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(redirectTo);\n\t\t\tdispatcher.forward(request, response);\n\t\t}\n\t}", "private static void returnNotMove(HttpServletResponse response, String url) throws IOException {\n try {\n response.sendRedirect(url);\n } catch (IOException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }", "public void setRedirect(String redirect) {\r\n\t\tthis.redirect = redirect;\r\n\t}", "public void sendRedirect(String url) throws IOException{\r\n\t\tif(containsHeader(\"_grouper_loggedOut\") && url.indexOf(\"service=\") > -1) {\r\n\t\t\turl = url + \"&renew=true\";\r\n\t\t\t//url = url.replaceAll(\"&renew=false\",\"renew=true\");\r\n\t\t}\r\n\t\tsuper.sendRedirect(url);\r\n\t}", "@Test\n public void testMultiRedirectRewrite() throws Exception {\n final CountDownLatch signal = new CountDownLatch(1);\n try {\n final String requestString = \"http://links.iterable.com/a/d89cb7bb7cfb4a56963e0e9abae0f761?_e=dt%40iterable.com&_m=f285fd5320414b3d868b4a97233774fe\";\n final String redirectString = \"http://iterable.com/product/\";\n final String redirectFinalString = \"https://iterable.com/product/\";\n IterableHelper.IterableActionHandler clickCallback = new IterableHelper.IterableActionHandler() {\n @Override\n public void execute(String result) {\n assertEquals(redirectString, result);\n assertFalse(redirectFinalString.equalsIgnoreCase(result));\n signal.countDown();\n }\n };\n IterableApi.getAndTrackDeeplink(requestString, clickCallback);\n assertTrue(\"callback is called\", signal.await(5, TimeUnit.SECONDS));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void handle(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {\n\t\tString targetUrl = \"/\";\r\n\t\t\r\n\t\tif(response.isCommitted()){\r\n\t\t\t//Response has already been committed. Unable to redirect to \" + url\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tredirectStrategy.sendRedirect(request, response, targetUrl);\r\n\t}", "@Override\n\tpublic final boolean isRedirect()\n\t{\n\t\treturn redirect;\n\t}", "@Test\n\tpublic void testRedirectToAboutUs() {\n\t\tServicesLogic.redirectToAboutUs();\n\t}", "public void redirect() {\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tString ruta = \"\";\n\t\truta = MyUtil.basepathlogin() + \"inicio.xhtml\";\n\t\tcontext.addCallbackParam(\"ruta\", ruta);\n\t}", "@Override\n\tpublic void redirect(String url)\n\t{\n\t\tif (!redirect)\n\t\t{\n\t\t\tif (httpServletResponse != null)\n\t\t\t{\n\t\t\t\t// encode to make sure no caller forgot this\n\t\t\t\turl = encodeURL(url).toString();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (httpServletResponse.isCommitted())\n\t\t\t\t\t{\n\t\t\t\t\t\tlog.error(\"Unable to redirect to: \" + url\n\t\t\t\t\t\t\t\t+ \", HTTP Response has already been committed.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tif (log.isDebugEnabled())\n\t\t\t\t\t{\n\t\t\t\t\t\tlog.debug(\"Redirecting to \" + url);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (isAjax()) \n\t\t\t\t\t{\n\t\t\t\t\t\thttpServletResponse.addHeader(\"Ajax-Location\", url);\n\n\t\t\t\t\t\t// safari chokes on empty response. but perhaps this is not the best place?\n\t\t\t\t\t\thttpServletResponse.getWriter().write(\" \");\t\t\t\t\t\t\n\t\t\t\t\t} else \n\t\t\t\t\t{\n\t\t\t\t\t\thttpServletResponse.sendRedirect(url);\n\t\t\t\t\t}\n\t\t\t\t\tredirect = true;\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\tthrow new WicketRuntimeException(\"Redirect failed\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlog.info(\"Already redirecting to an url current one ignored: \" + url);\n\t\t}\n\t}", "@Test(priority = 1)\n\tpublic void homePageRedirection() {\n\t\tlogger = extent.startTest(\"Flight Booking\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect();\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the homepage testing\");\n\t}", "public void sendRedirect(String location) throws IOException {\n\t\tString finalurl = null;\n\n\t\tif (isUrlAbsolute(location)) {\n\t\t\t//Log.trace(\"This url is absolute. No scheme changes will be attempted\");\n\t\t\t//Log.info(\"This url is absolute. No scheme changes will be attempted\");\n\t\t\tfinalurl = location;\n\t\t} else {\n\t\t\tfinalurl = fixForScheme(prefix + location);\n\t\t\t//Log.trace(\"Going to absolute url:\" + finalurl);\n\t\t\t//Log.info(\"Going to absolute url:\" + finalurl);\n\t\t}\n\t\tsuper.sendRedirect(finalurl);\n\t}", "public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException)\n throws IOException, ServletException {\n String redirectUrl = null;\n if (isUseForward()) {\n if (isForceHttps() && \"http\".equals(request.getScheme())) {\n // First redirect the current request to HTTPS.\n // When that request is received, the forward to the login page will be used.\n redirectUrl = buildHttpsRedirectUrlForRequest(request);\n }\n if (redirectUrl == null) {\n String loginForm = determineUrlToUseForThisRequest(request, response, authException);\n\n logger.debug(\"Server side forward to: \" + loginForm);\n RequestDispatcher dispatcher = request.getRequestDispatcher(loginForm);\n dispatcher.forward(request, response);\n return;\n }\n } else {\n // redirect to login page. Use https if forceHttps true\n redirectUrl = buildRedirectUrlToLoginPage(request, response, authException);\n }\n if (!response.isCommitted()) {\n redirectStrategy.sendRedirect(request, response, redirectUrl);\n }\n }", "private boolean processRedirectResponse(HttpConnection conn) {\n\n if (!getFollowRedirects()) {\n LOG.info(\"Redirect requested but followRedirects is \"\n + \"disabled\");\n return false;\n }\n\n //get the location header to find out where to redirect to\n Header locationHeader = getResponseHeader(\"location\");\n if (locationHeader == null) {\n // got a redirect response, but no location header\n LOG.error(\"Received redirect response \" + getStatusCode()\n + \" but no location header\");\n return false;\n }\n String location = locationHeader.getValue();\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Redirect requested to location '\" + location\n + \"'\");\n }\n\n //rfc2616 demands the location value be a complete URI\n //Location = \"Location\" \":\" absoluteURI\n URI redirectUri = null;\n URI currentUri = null;\n\n try {\n currentUri = new URI(\n conn.getProtocol().getScheme(),\n null,\n conn.getHost(), \n conn.getPort(), \n this.getPath()\n );\n redirectUri = new URI(location.toCharArray());\n if (redirectUri.isRelativeURI()) {\n if (isStrictMode()) {\n LOG.warn(\"Redirected location '\" + location \n + \"' is not acceptable in strict mode\");\n return false;\n } else { \n //location is incomplete, use current values for defaults\n LOG.debug(\"Redirect URI is not absolute - parsing as relative\");\n redirectUri = new URI(currentUri, redirectUri);\n }\n }\n } catch (URIException e) {\n LOG.warn(\"Redirected location '\" + location + \"' is malformed\");\n return false;\n }\n\n //check for redirect to a different protocol, host or port\n try {\n checkValidRedirect(currentUri, redirectUri);\n } catch (HttpException ex) {\n //LOG the error and let the client handle the redirect\n LOG.warn(ex.getMessage());\n return false;\n }\n\n //invalidate the list of authentication attempts\n this.realms.clear();\n //remove exisitng authentication headers\n removeRequestHeader(HttpAuthenticator.WWW_AUTH_RESP); \n //update the current location with the redirect location.\n //avoiding use of URL.getPath() and URL.getQuery() to keep\n //jdk1.2 comliance.\n setPath(redirectUri.getEscapedPath());\n setQueryString(redirectUri.getEscapedQuery());\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Redirecting from '\" + currentUri.getEscapedURI()\n + \"' to '\" + redirectUri.getEscapedURI());\n }\n\n return true;\n }", "public void sendRequest() {\n\t\tURL obj;\n\t\ttry {\n\t\t\t// Instantiating HttpURLConnection object for making GET request.\n\t\t\tobj = new URL(REQUEST_URL);\n\t\t HttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n\t\t connection.setRequestMethod(REQUEST_METHOD);\n\t\t connection.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t connection.setInstanceFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\tHttpURLConnection.setFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\n\t\t\t// Checking response code for successful request.\n\t\t\t// If responseCode==200, read the response,\n\t\t\t// if responseCode==3xx, i.e., a redirect, then make the request to \n\t\t\t// new redirected link, specified by 'Location' field. \n\t\t\t// NOTE: Only one level of redirection is supported for now. \n\t\t\t// Can be modified to support multiple levels of Redirections.\n\t\t\tint responseCode = connection.getResponseCode();\n\t\t\tif(responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_SEE_OTHER) {\n\t\t\t\tlogger.info(\"Redirect received in responseCode\");\n\t\t\t\tString newUrl = connection.getHeaderField(\"Location\");\n\t\t\t\tconnection = (HttpURLConnection) new URL(newUrl).openConnection();\n\t\t\t}\n\t\t\tresponseCode = connection.getResponseCode();\n\t\t\t\n\t\t\t// process response message if responseCode==200 i.e., success.\n\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) {\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tconnection.getInputStream()));\n\t\t\t\tString inputLine;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t}\n\t\t\t\tin.close();\n\t\t\t\t//Uncomment following line to log response data.\n\t\t\t\t//logger.info(response.toString());\n\t\t\t} else {\n\t\t\t\tlogger.warning(\"Http GET request was unsuccessful!\");\n\t\t\t}\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.severe(\"MalformedURLException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.severe(\"IOException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n }", "void onSuccessRedirection(int taskID);", "private boolean sendHTTPRedirectMessage(String location,\n String gapCookie, String locationCookie)\n {\n HTTPRespHdr resp = _httpRespHdr;\n\n /*\n * Create a reply with a 307 (HTTP/1.1) or 302 reply code.\n */\n if (_req.requestHdr.getVersionNumber() == 1.0) {\n _req.responseStatus = 302;\n\n resp.init( \"HTTP/1.0\", 302, \"Moved Temporarily\" );\n resp.addHeader( \"Location\", location );\n resp.addHeader( \"Content-Type\", \"text/html\" );\n }\n else {\n _req.responseStatus = 307;\n\n resp.init( \"HTTP/1.1\", 307, \"Temporary Redirect\" );\n\t \n /*\n * Put Location: right after status line so hopefully the stupid\n * Mozilla 0.6 will read it correctly (apparently it can't deal\n * with a response that is not delivered to it in a single\n * read() on the TCP socket).\n */\n resp.addHeader( \"Location\", location );\n\n resp.addHeader(\"Server\", GlobeRedirector.SERVER_NAME);\n setCurrentDate(_date);\n resp.addHeader(\"Date\", _httpDateFormatter.format(_date));\n resp.addHeader( \"Content-Type\", \"text/html\" );\n\n /*\n * 307 responses are not cachable by default, so we add an Expires:\n * header to have it cached for a while.\n */\n setExpiresDate(_date, 1000 * _config.getHTTPExpires());\n resp.addHeader(\"Expires\", _httpDateFormatter.format(_date));\n\n // Netscape Enterprise puts location here\n // resp.addHeader( \"Location\", location );\n\n resp.addHeader( \"Connection\", \"close\" );\n }\n\n if (gapCookie != null) {\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"writing GAP cookie: \" + gapCookie);\n }\n resp.addHeader(\"Set-Cookie\", gapCookie);\n }\n\n if (locationCookie != null) {\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"writing location cookie: \" + locationCookie);\n }\n resp.addHeader(\"Set-Cookie\", locationCookie);\n }\n\n // both 1.0 and 1.1 want a little message just in case\n String body = null;\n if (!_req.requestHdr.getMethod().toUpperCase().equals( \"HEAD\" )) {\n // message for ancient browsers\n\n // reset string buffer\n _strBuf.setLength(0);\n _strBuf.append(\"<HEAD><TITLE>Temporary Redirect</TITLE></HEAD>\\n\"\n + \"<BODY><H1> Temporary Redirect </H1>\\n\"\n + \"You are being redirected to <A HREF=\\\"\");\n _strBuf.append(location);\n _strBuf.append(\"\\\">\");\n _strBuf.append(location);\n _strBuf.append(\"</A>.</BODY>\");\n body = _strBuf.toString();\n }\n\n try {\n DataOutputStream cliOut = _req.connection.getOutputStream();\n\n resp.write(cliOut);\n if (body != null) {\n cliOut.write( body.getBytes() );\n _req.bytesSent = body.length();\n }\n else {\n _req.bytesSent = 0;\n }\n cliOut.flush();\n return true;\n }\n catch( IOException e ) {\n logError(\"Cannot send HTTP redirect message\" + getExceptionMessage(e));\n return false;\n }\n }", "private boolean sendHTTPRedirectMessage(String gapAddress, String file,\n String gapCookie, String locationCookie)\n {\n return sendHTTPRedirectMessage(\"http://\" + gapAddress + file,\n gapCookie, locationCookie);\n }", "public static void redirect( String url , ServletData servletData )\r\n {\r\n String message = \"\";\r\n try\r\n {\r\n HttpServletResponse response = servletData.getResponse();\r\n if ( response == null )\r\n {\r\n throw new Exception( \"response is null. \" +\r\n \"The most frequent cause of this problem is a bad url\" );\r\n }\r\n response.sendRedirect( url );\r\n }\r\n catch ( Exception e )\r\n {\r\n message = \"problem loading URL '\" + url + \"':\" + e;\r\n System.out.println( message );\r\n throw new SkipException( message );\r\n }\r\n }", "protected void redirectToLogin(HttpServletRequest req, HttpServletResponse res) throws IOException\n {\n// RequestDispatcher lRd = getServletContext().getRequestDispatcher(\"/servlet/common.SvtLogoutHandler\");\n// try \n// {\n//\t req.setAttribute(\"EXTRANET_METHOD\", \"GET\");\n//\t lRd.forward(req, res);\n// } \n// catch(Throwable e) \n// {\n//\t throw new ServletException(getClass().toString() + \".doGet(): Could not forward to target URL.\\n\" + e);\n// }\n //issue # 2191 this method throws an IllegalStateException if we use \n //a forward\n res.sendRedirect(req.getScheme()+\"://\"+req.getServerName()+\":\"+req.getServerPort()+\"/servlet/common.SvtLogoutHandler\");\n }", "@Test\n public void testRequireOnTrueConditionOnInternalCondition() {\n Address redirectContract = deployRedirectContract();\n TransactionResult result = callRedirectContract(redirectContract, true);\n\n // If redirect condition is SUCCESS then its internal call was also SUCCESS.\n assertTrue(result.transactionStatus.isSuccess());\n }", "@Test\n public void circularRedirect() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n wireMock.stubFor(get(up1)\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withHeader(\"Location\", \"/\" + REDIRECT)));\n\n Download t = makeProjectAndTask();\n t.src(wireMock.url(REDIRECT));\n File dst = newTempFile();\n t.dest(dst);\n assertThatThrownBy(() -> execute(t))\n .isInstanceOf(WorkerExecutionException.class)\n .rootCause()\n .isInstanceOf(CircularRedirectException.class)\n .hasMessageContaining(\"Circular redirect\");\n }", "void redirect(ReagentSynonym synonym);", "@Test\n public void testRedirectToWsdl() throws Exception {\n this.mockMvc.perform(get(\"/\"))\n .andExpect(status().is3xxRedirection())\n .andExpect(redirectedUrl(\"services/SecoEgovService.wsdl\"));\n }", "@Test\n public void tooManyRedirects() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 51)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=52\");\n File dst = newTempFile();\n t.dest(dst);\n assertThatThrownBy(() -> execute(t))\n .isInstanceOf(WorkerExecutionException.class)\n .rootCause()\n .isInstanceOf(RedirectException.class)\n .hasMessage(\"Maximum redirects (50) exceeded\");\n }", "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException\n {\n // Setup the output stream\n res.setContentType(\"text/html\");\n // Posts are never cacheable\n res.setHeader(\"Expires\", \"Tues, 01 Jan 1980 00:00:00 GMT\");\n\n SessionSrvc thisSession = SessionSrvc.getSessionSrvc(req);\n\n boolean lIsExternal = false;\n\n if(thisSession != null)\n {\n // Determine if this is an external request\n lIsExternal = thisSession.getGlobalValue(\"EXTRANET_REQUEST\") != null;\n\t IObjectContext context = (IObjectContext) thisSession.getGlobalValue(\"Context\");\n\t // Make sure the user is properly logged in\n\t if (context != null)\n\t {\n\t try\n\t {\n if(!context.getCRM().isLoggedIn(context))\n redirectToLogin(req,res);\n else\n { \n\t\t storeParameters(thisSession, req);\n\n\t\t // implementation of this method should not product any output\n\t\t handlePost(thisSession, context);\n\t\t String destinationURL = thisSession.getTargetPage();\n\t\t String destinationFrame = thisSession.getTargetFrame();\n\t\t // Go to the next page\n\t\t if (destinationURL != null)\n\t\t {\n\t\t thisSession.setTargetPage(null);\n\t\t thisSession.setTargetFrame(null);\n\t\t if (destinationFrame == null || destinationFrame.equals(\"self\")) \n {\n\t\t\t if (! lIsExternal) \n {\n// RequestDispatcher lRd = getServletContext().getRequestDispatcher(destinationURL);\n// try \n// {\n//\t req.setAttribute(\"EXTRANET_METHOD\", \"GET\");\n//\t lRd.forward(req, res);\n// } \n// catch(Throwable e) \n// {\n//\t throw new ServletException(getClass().toString() + \".doGet(): Could not forward to target URL.\\n\" + e);\n// }\n // this code is strange, it does not seem to drop the session\n // but the above commented code requires that the targetframe be set?\n \t\t\t\t res.sendRedirect(req.getScheme() + \"://\" + req.getServerName() + \":\" + req.getServerPort() + destinationURL);\t\t\t \t\n\t\t\t }//end if\n else \n {\t\t\t\t \n\t\t\t\t // Forward to the target URL to ensure a valid session\n\t\t\t\t RequestDispatcher lRd = getServletContext().getRequestDispatcher(destinationURL);\n\t\t\t\t try \n {\n\t\t\t\t\t req.setAttribute(\"EXTRANET_METHOD\", \"GET\");\n\t\t\t\t\t lRd.forward(req, res);\n\t\t\t\t }\n catch(Throwable e) \n {\n\t\t\t\t\t throw new ServletException(getClass().toString() + \".doGet(): Could not forward to target URL.\\n\" + e);\n\t\t\t\t }\t\t\t\t\t \t\n\t\t\t }//end else \n\t\t } \n else\n\t\t {\n\t\t\t res.getWriter().println(\"<HTML><HEAD><SCRIPT>\");\n\t\t\t res.getWriter().println(\n\t\t\t \"function reloadTree() { \"+\n\t\t\t \" var treeframe = parent; \"+\n\t\t\t \" while (!treeframe.TreeArea) \"+\n\t\t\t \" treeframe = treeframe.parent; \"+\n\t\t\t \" treeframe = treeframe.TreeArea.Tree; \"+\n\t\t\t \" treeframe.reload(false); \"+\n\t\t\t \"}\");\n\t\t\t if (thisSession.reloadTree())\n\t\t\t res.getWriter().println(\"reloadTree();\");\n\t\t\t thisSession.setTreeReload(false);\n\t\t\t res.getWriter().println(destinationFrame+\".location='\"+destinationURL+\"';\");\n\t\t\t res.getWriter().println(\"</SCRIPT></HEAD></HTML>\");\n\t\t\t res.getWriter().flush();\n \t\t\t res.getWriter().close();\n\t\t }\n\t\t }\n\t\t else\n\t\t throw new Exception(\"Missing Destination URL\");\n }//end else \n\t }\n\t catch(Throwable exp)\n\t {\n\t\t exp.printStackTrace(res.getWriter());\n com.oculussoftware.service.log.LogService.getInstance().write(exp); \n\t }\n\t }\n\t else {\n\t sessionExpired(res.getWriter() ,BrowserKind.ALL, lIsExternal);\n\t } \n }//end if\n else {\n\t sessionExpired(res.getWriter(),BrowserKind.ALL, lIsExternal);\n }\t \n }", "public abstract boolean isRenderRedirect();", "void redirectToLogin();", "@Test\n public void redirectInfinite303And307() throws Exception {\n final Map<String, Class<? extends Servlet>> servlets = new HashMap<String, Class<? extends Servlet>>();\n servlets.put(RedirectServlet307.URL, RedirectServlet307.class);\n servlets.put(RedirectServlet303.URL, RedirectServlet303.class);\n startWebServer(\"./\", new String[0], servlets);\n\n final WebClient client = getWebClient();\n\n try {\n client.getPage(\"http://localhost:\" + PORT + RedirectServlet307.URL);\n }\n catch (final Exception e) {\n assertTrue(e.getMessage(), e.getMessage().contains(\"Too much redirect\"));\n }\n }", "@Test(priority = 4)\n\tpublic void homePageRedirection() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlog.info(\"Starting Redirection validation\");\n\t\thome.isRedirectionCorrect(validate);\n\t\tlog.info(\"Redirection is on the correct page\");\n\t\tlog.info(\"Starting the Hero Image Product Validation testing\");\n\n\t}", "@Test\n public void testDNSRedirect() throws Exception {\n final CountDownLatch signal = new CountDownLatch(1);\n try {\n final String requestString = \"http://links.iterable.com/a/f4c55a1474074acba6ddbcc4e5a9eb38?_e=dt%40iterable.com&_m=f285fd5320414b3d868b4a97233774fe\";\n final String redirectString = \"http://iterable.com/product/fakeTest\";\n final String redirectFinalString = \"https://iterable.com/product/fakeTest\";\n IterableHelper.IterableActionHandler clickCallback = new IterableHelper.IterableActionHandler() {\n @Override\n public void execute(String result) {\n assertEquals(redirectString, result);\n assertFalse(redirectFinalString.equalsIgnoreCase(result));\n signal.countDown();\n }\n };\n IterableApi.getAndTrackDeeplink(requestString, clickCallback);\n assertTrue(\"callback is called\", signal.await(5, TimeUnit.SECONDS));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Test\n @Category(FastTest.class)\n public void canDownloadOnRedirect() throws Exception {\n final String redirectPathBook = \"/download/redirect/thebook\";\n\n stubFor(get(urlPathEqualTo(redirectPathBook))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(\"0/binary\")));\n\n\n stubFor(get(urlPathMatching(\"/download/0/.*\"))\n .willReturn(aResponse()\n .withStatus(302)\n .withHeader(\"Location\", getExternalHostMock() + redirectPathBook)));\n\n // call service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOK));\n\n // verify that our logic downloaded binary\n verify(getRequestedFor(urlEqualTo(\"/download/0/?token=abcdef\")));\n verify(getRequestedFor(urlEqualTo(redirectPathBook)));\n }", "@Override\n\t\t\t\t\tpublic HttpUriRequest getRedirect(HttpRequest request, HttpResponse response, HttpContext context)\n\t\t\t\t\t\t\tthrows ProtocolException {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}", "@Override\r\n\tpublic void render() {\r\n\t\turi = ActionContext.getContextPath() + uri;\r\n\t\ttry {\r\n\t\t\tResponse.getServletResponse().sendRedirect(uri);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RenderException(\"Redirect to [\" + uri + \"] error!\", e);\r\n\t\t}\r\n\t}", "public void redirectUser(HttpServletResponse response) throws IOException {\n\n String url = \"/user/user.jsp\";\n\n log.debug(\"Accessing: \" + url);\n\n response.sendRedirect(url);\n\n log.debug(url + \" has successfully been loaded\");\n }", "@Override\n public void execute(HttpServletRequest request, HttpServletResponse response) throws IOException {\n HttpSession session = request.getSession();\n String page = request.getParameter(PAGE);\n String lang = request.getParameter(LANG);\n String parameters = request.getParameter(PARAM);\n session.setAttribute(LANG, lang);\n String address = parameters.isEmpty() ? page : SERVLET + \"?\" + parameters;\n response.sendRedirect(address);\n }", "public boolean isRedirect() {\n switch (code) {\n case HTTP_PERM_REDIRECT:\n case HTTP_TEMP_REDIRECT:\n case HTTP_MULT_CHOICE:\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n return true;\n default:\n return false;\n }\n }", "boolean isFollowRedirect();", "@Override\n public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException {\n if (response.getStatus() == HttpServletResponse.SC_NOT_FOUND) {\n forward(redirectRoute, baseRequest, response);\n } else {\n super.handle(target, baseRequest, request, response);\n }\n }", "@GetMapping(\"/admin/email/test\")\n public String sendTestEmailWithHTMLMethodPost(RedirectAttributes redirectAttributes){\n emailService.sendTestEmailWithHTML(redirectAttributes);\n return \"redirect:/admin\";\n }", "@RequestMapping(value = \"/redirect\")\n\tpublic String redirect() {\n\t\treturn \"redirect:apply\";\n\t}", "public abstract boolean isRenderRedirectAfterDispatch();", "public boolean sendRequest(com.webobjects.appserver.WORequest request){\n return false; //TODO codavaj!!\n }", "@Test\n void annullamentoTirocinioSuccess() throws ServletException, IOException {\n when(requestMock.getParameter(\"enteEmail\")).thenReturn(\"999\");\n when(requestMock.getRequestDispatcher(\"_areaStudent/StoricoStudenteET.jsp\"))\n .thenReturn(dispatcherMock);\n ServletAnnullaEnteDaStudenteET test = new ServletAnnullaEnteDaStudenteET();\n test.doGet(requestMock, responseMock);\n verify(dispatcherMock).forward(requestMock, responseMock);\n }", "@Test\n\tpublic void testSetContextRelative_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tboolean contextRelative = true;\n\n\t\tfixture.setContextRelative(contextRelative);\n\n\t\t// add additional test code here\n\t}", "private void doSearchRedirect(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String search = request.getParameter(\"search\");\n \n if(search == null || search.trim().isEmpty()) {\n error(\"Recherche invalide\", request, response);\n return;\n }\n \n redirect(String.format(\"./search/%s\", search), \"Recherche en cours ...\",\n request, response);\n }", "private void sendToNextPage(String nextPage, HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows IOException, ServletException {\r\n\t\t// if the next page is null\r\n\t\tif (nextPage == null) {\r\n\t\t\tresponse.sendError(HttpServletResponse.SC_NOT_FOUND, request.getServletPath());\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if action\r\n\t\tif (nextPage.endsWith(\".do\")) {\r\n\t\t\tresponse.sendRedirect(nextPage);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// if view\r\n\t\tif (nextPage.endsWith(\".jsp\")) {\r\n\t\t\tRequestDispatcher d = request.getRequestDispatcher(\"WEB-INF/\" + nextPage);\r\n\t\t\td.forward(request, response);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tresponse.sendRedirect(nextPage);\r\n\t\treturn;\r\n\t}", "private CoprocessObject.Object doForwardToLogin(CoprocessObject.Object.Builder builder) {\n\t\tReturnOverrides retOverrides = builder.getRequestBuilder()\n\t\t\t\t.getReturnOverridesBuilder()\n\t\t\t\t.setResponseCode(301)\n\t\t\t\t.putHeaders(HTTP_HEADER_LOCATION, loginUrl)\n\t\t\t\t.build();\n\t\t\n\t\t MiniRequestObject miniReq = builder.getRequestBuilder().setReturnOverrides(retOverrides).build();\n\t\t return builder.setRequest(miniReq).build();\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String referer = (String) request.getSession().getAttribute(\"Referer\");\n String redirectTo = referer != null ? referer : \"/\";\n\n LOGGER.info(\"Access token: {}. Redirecting to: {}\", context.getAccessToken(), referer);\n response.sendRedirect(redirectTo);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n ip = request.getLocalAddr();\n try {\n Timestamp dataNow = GetNow();\n Timestamp dataPrec = GetDate(request.getParameter(\"email\"),response.getWriter());\n long differenza = (dataNow.getTime()-dataPrec.getTime())/1000;\n \n response.getWriter().println(differenza+\"<br>\");\n \n \n if(differenza>90){\n response.sendRedirect(\"LinkScaduto.html\");\n }\n else{\n \n char[] p = generatePswd(8, 12, 1, 1, 1); \n String password = String.valueOf(p, 0, p.length) ;\n \n String email = request.getParameter(\"email\");\n String ip = request.getLocalAddr();\n \n UpdatePassword(email,password); \n \n\n String ogget = \"Confirm change password\";\n\n String testo = \"Dear \" + email\n + \"\\n This is your new password:\"\n + \"\\n\\n \"+password;\n\n Email send = new Email();\n send.Send(email,ogget,testo);\n \n response.sendRedirect(\"LinkValido.html\");\n }\n \n } catch(IOException e) {}\n }", "protected void doGet( HttpServletRequest request, \n HttpServletResponse response )\n throws ServletException, IOException \n {\n String location = request.getParameter( \"page\" );\n\n if ( location != null ) \n \n if ( location.equals( \"CNT4714\" ) )\n response.sendRedirect( \"http://www.ucf.edu\" );\n else \n if ( location.equals( \"welcome1\" ) )\n response.sendRedirect( \"welcome1\" );\n\t\t\t\telse\n\t\t\t\t if ( location.equals (\"cyclingnews\") )\n\t\t\t\t\t response.sendRedirect( \"http://www.cyclingnews.com\" );\n\t\t\t\t\t else\n\t\t\t\t if ( location.equals ( \"error\" ) )\n\t\t\t\t\t response.sendRedirect( \"error\" );\n\n // code that executes only if this servlet does not redirect the user to another page\n\n response.setContentType( \"text/html\" );\n PrintWriter out = response.getWriter(); \n\n // start HTML document\n out.println( \"<!DOCTYPE html\\\">\" ); \n // head section of document\n out.println( \"<head>\" );\n out.println( \"<title>Invalid page</title>\" );\n out.println( \"<meta charset=\\\"utf-8\\\">\" );\n out.println( \"<style type='text/css'>\");\n out.println( \"<!-- body{background-color:red; font-family:calibri;} -->\");\n out.println( \"</style>\");\n out.println( \"</head>\" );\n // body section of document\n out.println( \"<body>\" );\n out.println( \"<h1>Invalid page requested</h1>\" );\n out.println( \"<p><a href = \" + \"RedirectionServlet.html\\\">\" );\n out.println( \"Click here for more details</a></p>\" );\n out.println( \"</body>\" );\n // end HTML document\n out.println( \"</html>\" );\n out.close(); // close stream to complete the page \n }", "@Test\n\tpublic void testGetUrl_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\n\t\tString result = fixture.getUrl();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n String username = request.getParameter(\"email\");\n\n // Send the response back to the user\n try {\n response.setContentType(\"text/html\");\n PrintWriter writer = response.getWriter();\n response.sendRedirect(\"/login/index.html?username=\"+ username);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void onFailureRedirection(String errorMessage);", "protected boolean doGet(String relativeURI,\n\t\t\tHttpServletRequest request, HttpServletResponse response,\n\t\t\tConfiguration config)\n\t\t\tthrows IOException, ServletException {\n\t\tif (relativeURI.startsWith(\"static/\")) {\n\t\t\tgetServletContext().getNamedDispatcher(\"default\").forward(request, response);\n\t\t\treturn true;\n\t\t}\n\n\t\t// Homepage. If index resource is defined, redirect to it.\n\t\tif (\"\".equals(relativeURI) && config.getIndexResource() != null) {\n\t\t\tresponse.sendRedirect(IRIEncoder.toURI(\n\t\t\t\t\tconfig.getIndexResource().getAbsoluteIRI()));\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// Assume it's a resource URI -- will produce 404 if not\n\t\tgetServletContext().getNamedDispatcher(\"WebURIServlet\").forward(request, response);\n\t\treturn true;\n\t}", "@Test\n public void testLocation() throws Exception\n {\n HttpResponse mockResponse = mock(HttpResponse.class);\n when(mockResponse.status()).thenReturn(HttpStatus.TEMPORARY_REDIRECT);\n\n RedirectPolicy mockPolicy = mock(RedirectPolicy.class);\n when(mockPolicy.affects(mockResponse)).thenReturn(true);\n when(mockPolicy.location(mockResponse, 123)).thenReturn(URI.create(\"http://testlocation\"));\n\n RedirectPolicy testPolicy = new Temporary(mockPolicy);\n\n assertEquals(URI.create(\"http://testlocation\"), testPolicy.location(mockResponse, 123));\n }", "void execute(HttpServletRequest request, HttpServletResponse response)\n throws Exception;", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.sendRedirect(\"LoginPage.jsp\");\r\n }", "private boolean redirectClient(String path)\n {\n URL url;\n String reqHost = _req.requestHdr.getHeader(\"Host\");\n String fullspec = \"http://\" + reqHost + path;\n String location = null;\n String gapAddress = null;\n boolean randomGAP = false;\n boolean haveValidGAPCookie = false;\n boolean haveValidLocationCookie = false;\n String s = null;\n\n InetAddress cliAddr = _req.connection.getSocket().getInetAddress();\n\n if (DEBUG && _debugLevel > 0) {\n debugPrintLn(\"Got request from \" + cliAddr.toString() + \" \"\n + _req.requestHdr.getVersion() );\n }\n\n /*\n * Check if the client's host is blocked.\n */\n if (_blockList.isBlockedHost(cliAddr.getHostAddress())) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: your host is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n s = URIDecoder.decode(path);\n }\n catch(IllegalArgumentException e) {\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Format error: request contains an invalid escape sequence: \"\n + e.getMessage());\n return false;\n }\n\n /*\n * Check if the file requested is blocked.\n */\n if (_blockList.isBlockedFile(s)) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: the requested file is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n s = URIDecoder.decode(fullspec);\n }\n catch(IllegalArgumentException e) {\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Format error: request contains an invalid escape sequence: \"\n + e.getMessage());\n return false;\n }\n\n /*\n * Check if the URL requested is blocked.\n */\n if (_blockList.isBlockedURL(s)) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: the requested URL is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n url = new URL(fullspec);\n }\n catch( MalformedURLException e ) {\n logError(\"Unsupported request-URI: \" + fullspec);\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"unsupported request-URI\");\n return false;\n }\n\n String file = url.getFile();\n\n /*\n * Redirect the client to the default URL (if defined) if the\n * object name is absent.\n */\n if (file.equals(\"/\")) {\n s = _config.getDefaultURL();\n\n if (s != null) {\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"no object name specified -- using default URL\");\n }\n\n return sendHTTPRedirectMessage(s, null, null);\n }\n }\n\n _cookieCoords = null;\n\n /*\n * If the client sent a redirector cookie, the cookie contains the\n * hostname and port number of the client's nearest GAP, and the\n * geographical coordinates associated with the client's IP address.\n */\n if (_config.getCookieEnabledFlag()) {\n HTTPCookie clientCookie = null;\n\n if ( (s = _req.requestHdr.getHeader(\"Cookie\")) != null) {\n try {\n _httpCookie.init(s);\n clientCookie = _httpCookie;\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed cookie: \" + e.getMessage());\n\n // CONTINUE - cookie will be replaced\n }\n\n if (clientCookie != null) {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie: \" + clientCookie.toString());\n }\n\n String gap = clientCookie.getAttribute(\n RedirectorCookieFactory.COOKIE_GAP_ATTRIB);\n\n /*\n * Set the nearest GAP to the GAP indicated by the cookie. If\n * the GAP address inside the cookie is invalid or if it does\n * not refer to a GAP, the cookie is discarded (and replaced).\n */\n if (gap != null) {\n HostAddress gapHost = null;\n\n try {\n gapHost = new HostAddress(gap);\n s = gapHost.toString();\n\n // Check if gapHost still refers to an active GAP.\n if (_gapList.get(s) != null) {\n gapAddress = s;\n haveValidGAPCookie = true;\n }\n }\n catch(UnknownHostException e) {\n logError(\"Unknown host in cookie: \" + gap);\n\n // CONTINUE - GAP cookie will be replaced\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed host address in cookie: \" + gap);\n\n // CONTINUE - GAP cookie will be replaced\n }\n }\n else {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie does not contain a \"\n + RedirectorCookieFactory.COOKIE_GAP_ATTRIB\n + \" attribute\");\n }\n }\n\n /*\n * If the cookie does not contain a valid nearest GAP attribute,\n * we may need the cookie's coordinates attribute to determine the\n * nearest GAP.\n */\n if (gapAddress == null) {\n s = clientCookie.getAttribute(\n RedirectorCookieFactory.COOKIE_COORDS_ATTRIB);\n\n if (s != null) {\n try {\n _cookieCoords = new FloatCoordinate(s);\n haveValidLocationCookie = true;\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed coordinates in cookie: \" + s);\n\n // CONTINUE - location cookie will be replaced\n }\n }\n else {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie does not contain a \"\n + RedirectorCookieFactory.COOKIE_COORDS_ATTRIB\n + \" attribute\");\n }\n }\n }\n }\n }\n }\n\n /*\n * If there is no (valid) GAP cookie, find the location of the nearest\n * GAP. Pick a random GAP if the nearest GAP could not be determined.\n */\n if (gapAddress == null) {\n GlobeAccessPointRecord gaprec;\n\n if ( (gaprec = findNearestGAP(cliAddr)) == null) {\n gaprec = getRandomGAP();\n randomGAP = true;\n }\n gapAddress = gaprec.hostport;\n\n // _cookieCoords set\n }\n\n String gapCookie = null, locationCookie = null;\n\n /*\n * Create the GAP cookie value if cookies are enabled and the client\n * does not have a (valid) GAP cookie. If a GAP cookie is created,\n * create a location cookie if the client doesn't have a valid one.\n */\n if (_config.getCookieEnabledFlag()) {\n if (! haveValidGAPCookie) {\n if (randomGAP) {\n setExpiresDate(_date, 1000 * RANDOM_GAP_COOKIE_TTL);\n }\n else {\n setExpiresDate(_date, 1000 * _config.getGAPCookieTTL());\n }\n\n gapCookie = _cookieFactory.getGAPValue(gapAddress, _date);\n\n if ( ! haveValidLocationCookie) {\n if (_cookieCoords != null) {\n setExpiresDate(_date, 1000 * _config.getLocationCookieTTL());\n locationCookie = _cookieFactory.getLocationValue(_cookieCoords,\n _date);\n }\n }\n }\n }\n\n /*\n * Send a reply to redirect the client to the nearest GAP.\n */\n if (_config.getHTTPRedirectFlag()) {\n return sendHTTPRedirectMessage(gapAddress, file,\n gapCookie, locationCookie);\n }\n else {\n return sendHTMLReloadPage(gapAddress, file,\n gapCookie, locationCookie);\n }\n }", "@Then(\"I am redirected to the product page\")\n\t\tpublic void i_am_redirected_to_the_product_page() throws Exception {\n\t\t\tCurrentUrl = driver.getCurrentUrl();\n\t\t\tAssert.assertEquals(CurrentUrl, ExpectedUrl);\n\n\t\t\t// Take snapshot as evidence\n\t\t\tFunctions.takeSnapShot(driver, null);\n\n\t\t}", "private void redirectUser(HttpServletRequest request, HttpServletResponse response,\r\n String messageType, String targetPage, String error) \r\n throws ServletException, IOException {\r\n //assign message to request\r\n request.setAttribute(messageType, error);\r\n \r\n //push user back to registration form with the error message included\r\n RequestDispatcher dispatcher = request.getRequestDispatcher(targetPage);\r\n dispatcher.forward(request,response);\r\n }", "protected void doPost(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException \n\t{\n\t\tif(AntiXss.isUsername(request.getParameter(\"username\")) == false){\n\t\t\tresponse.sendRedirect(\"error.jsp\");\n\t\t}\n\t\tif(AntiXss.isCodeZip(request.getParameter(\"code\")) == false){\n\t\t\tresponse.sendRedirect(\"error.jsp\");\n\t\t}\n\t\tString username = request.getParameter(\"username\");\n\t\tint code = Integer.parseInt(request.getParameter(\"code\"));\n\t\tRequestDispatcher rd = null;\n\t\tAuthenticator authenticator = new Authenticator();\n\t\tString result = authenticator.verification(username, code);\n\t\t\n\t\tif (result.equals(\"success\")) \n\t\t{\n\t\t\trd = request.getRequestDispatcher(\"VerficationConfirm.html\");\n\t\t} \n\t\telse\n\t\t{\n\t\t\trd = request.getRequestDispatcher(\"error.jsp\");\t\n\t\t}\n\t\t\n\t\trd.forward(request, response);\n\t}", "@Override\n public Response serve( IHTTPSession session ) throws SecurityResponseException {\n String host = findRequestHeaderValue( HTTP.HDR_HOST, session );\n if ( StringUtil.isNotBlank( host ) ) {\n String uri;\n if ( server.getPort() == 443 ) {\n uri = HTTPS_SCHEME + host + session.getUri();\n } else {\n uri = HTTP_SCHEME + host + \":\" + server.getPort() + session.getUri();\n }\n Log.append( HTTPD.EVENT, \"Redirecting to \" + uri );\n Response response = Response.createFixedLengthResponse( Status.REDIRECT, MimeType.HTML.getType(), \"<html><body>Moved: <a href=\\\"\" + uri + \"\\\">\" + uri + \"</a></body></html>\" );\n response.addHeader( HTTP.HDR_LOCATION, uri );\n return response;\n }\n return super.serve( session );\n }", "public ActionForward execute(ActionMapping mapping,\n\t\t\t\t ActionForm form,\n\t\t\t\t HttpServletRequest request,\n\t\t\t\t HttpServletResponse response)\n\tthrows IOException, ServletException\n {\n\tString target;\n\t\n\tSubscribeForm subForm = (SubscribeForm) form;\n\tString mail = subForm.getMail();\n\tString domain = subForm.getDomain();\n\tString login = subForm.getLogin();\n\t\n\tinitApplicationPath();\n\tString addressMail = mail+\"@\"+domain;\n\tif(!isAuthorized2Subscribe(addressMail))\n\t return mapping.findForward(\"unauthorized\");\n\t\n\ttry{\n\t if(isAlreadySubscribed(addressMail))\n\t\treturn mapping.findForward(\"multi_subscr\");\n\t}\n\tcatch(SQLException sqle){}\n\t\n\tString password = generateRandomWord();\n\t\n\tString pageName = createTemporaryConfirmationPage(login, password, addressMail);\n\tif( (pageName != null) && sendConfirmationMail(login, password, addressMail, pageName) )\n\t return mapping.findForward(\"success\");\n\t\n\t//the creation of the temporary confirmation page has failed\n\t//or the confirmation mail couldn't have been sent.\n\treturn mapping.findForward(\"errorsys\");\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n\t\tresponse.sendRedirect(\"index.jsp\");\n\t\t//seguridad antihackers\n\t}", "@Test\n public void testAffectsTemporary() throws Exception\n {\n HttpResponse mockResponse = mock(HttpResponse.class);\n\n RedirectPolicy mockPolicy = mock(RedirectPolicy.class);\n when(mockPolicy.affects(mockResponse)).thenReturn(true);\n\n RedirectPolicy testPolicy = new Temporary(mockPolicy);\n\n when(mockResponse.status()).thenReturn(HttpStatus.TEMPORARY_REDIRECT);\n assertTrue(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.FOUND);\n assertTrue(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.SEE_OTHER);\n assertTrue(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.PERMANENT_REDIRECT);\n assertFalse(testPolicy.affects(mockResponse));\n\n when(mockResponse.status()).thenReturn(HttpStatus.MOVED_PERMANENTLY);\n assertFalse(testPolicy.affects(mockResponse));\n }", "@Override\n public void execute(\n HttpServletRequest request,\n HttpServletResponse response)\n throws ServletException, IOException {\n ServletContext context = request.getSession().getServletContext();\n context.getRequestDispatcher(\"/EntryDataForNewUser.jsp\").forward(request, response);\n //context.getRequestDispatcher(request.getHeader(\"referer\")).forward(request, response);\n }", "@Override\n\tpublic void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)\n\t\t\tthrows IOException, ServletException {\n\t\tHttpServletRequest req=(HttpServletRequest) request;\n\t\tHttpServletResponse resp=(HttpServletResponse) response;\n\t\tCookie[] Cookies=req.getCookies();\n\t\t//System.out.println(\"jump\");\n\t\t\tboolean name=false;\n\t\t\tboolean pass=false;\n\t\t\tif(Cookies!=null){\n\t\t\tfor(Cookie c:Cookies){\n\t\t\t\tif(c.getName().equals(\"name\")){\n\t\t\t\t\tif(c.getValue().equals(\"user\")){\n\t\t\t\t\t\tname=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Cookie c:Cookies){\n\t\t\t\tif(c.getName().equals(\"pass\")){\n\t\t\t\t\tif(c.getValue().equals(\"pass\")){\n\t\t\t\t\t\tpass=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\tif(name&&pass){\n\t\t\t resp.sendRedirect(\"autosuccess.html\");\n\t\t }\n\t\t\t\n\t\t System.out.println(\"not\");\n\t\t chain.doFilter(request, response);\n\t\t //req.getRequestDispatcher(\"autologin.html\").forward(request, response);\n\t\t\t\n\t}", "private static Result redirect(final Status status, final String location) {\n requireNonNull(location, \"A location is required.\");\n return with(status).header(\"location\", location);\n }", "public void isRedirectionCorrect() {\n\n\t\tString title = WebUtility.getTitle();\n\t\tAssert.assertEquals(title, data.getValidatingData(\"homepage_Title\"));\n\t\tSystem.out.println(\"Redirection is on the correct page\");\n\t}", "public String execute(HttpServletRequest request, \r\n HttpServletResponse response) throws ServletException, IOException;", "private void sendResponse(String sHTTPMethod, String sHTTPRequest, int iStatusCode, String sResponse, boolean bPersistentConnection) {\n // determine if sending file and if redirect -> determines response\n boolean bIsFileSend = sHTTPMethod.equalsIgnoreCase(\"GET\") && iStatusCode == 200;\n boolean bIsRedirect = iStatusCode == 301;\n\n // write header\n String sStatus = getStatusLine(iStatusCode) + END_LINE;\n String sLocation = (bIsRedirect) ? (\"Location: \" + sResponse) + END_LINE : (\"\"); // only if redirect\n String sServerDetails = getServerDetails() + END_LINE;\n String sContentLength = \"Content-Length: \" + sResponse.length() + END_LINE;\n String sContentType = getContentType(sHTTPRequest) + END_LINE;\n String sConnection = getConnectionLine(bPersistentConnection) + END_LINE;\n String sSpaceBetweenHeaderAndBody = END_LINE;\n FileInputStream fin = null;\n\n // update content length if sending a file -> create file input stream\n if (bIsFileSend) {\n try {\n fin = new FileInputStream(ROOT_FOLDER.toString() + \"/\" + sResponse); // if file request, then sResponse is the file path\n sContentLength = \"Content-Length: \" + Integer.toString(fin.available()) + END_LINE;\n } catch (IOException e) {\n System.out.println(\"There was an error creating the file input stream for the response:\");\n System.out.println(\" \" + e);\n }\n }\n\n try {\n // send HTTP Header\n outToClient.writeBytes(sStatus);\n if (bIsRedirect) {\n outToClient.writeBytes(sLocation); // only send Location on redirect\n }\n outToClient.writeBytes(sServerDetails);\n outToClient.writeBytes(sContentType);\n outToClient.writeBytes(sContentLength);\n outToClient.writeBytes(sConnection);\n outToClient.writeBytes(sSpaceBetweenHeaderAndBody);\n\n // send HTTP Body\n if (bIsFileSend) {\n sendFile(fin, outToClient); // send file\n } else if (!bIsRedirect && !sHTTPMethod.equalsIgnoreCase(\"HEAD\")) {\n outToClient.writeBytes(sResponse); // send HTML msg back\n }\n\n // print HTTP Header and Body to console\n System.out.println(sStatus);\n System.out.println(sServerDetails);\n System.out.println(sContentType);\n System.out.println(sContentLength);\n System.out.println(sConnection);\n if (bIsRedirect) {\n System.out.println(sLocation);\n }\n if (bIsFileSend) {\n System.out.println(\"File sent: \" + sResponse);\n } else {\n System.out.println(\"Response: \" + sResponse);\n }\n System.out.println();\n\n // close connection\n if (!bPersistentConnection) {\n outToClient.close();\n }\n\n } catch (IOException e) {\n System.out.println(\"writeBytes did not complete:\");\n System.out.println(\" \" + e + \"\\n\");\n }\n }", "private void handleDepictionRedirect(final BRSearchPageModel pageModel) throws BloomreachSearchException {\r\n try {\r\n final String depictionRedirectUrl = pageModel.getDepictionRedirectUrl();\r\n if (!NmoUtils.isEmpty(depictionRedirectUrl)) {\r\n getResponse().sendRedirect(depictionRedirectUrl);\r\n }\r\n } catch (final IOException e) {\r\n if (log.isLoggingError()) {\r\n log.logError(\"Bloomreach Search -- Depiction Redirection Error\" + e);\r\n }\r\n throw new BloomreachSearchException(\"Error occured during depiction redirect in BloomReach search flow \" + e);\r\n }\r\n }", "protected boolean processCommand(HttpServletRequest request, HttpServletResponse response) \r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\tString uri = getRequestURI(request);\r\n\t\t\r\n\t\tif (uri.endsWith(\"/redirect-filter\")) {\r\n\t\t\tString cmd = request.getParameter(\"c\");\r\n\t\t\tif (cmd != null && cmd.equals(\"reload\") && reloadConfig == true) {\r\n\t\t\t\tloadConfiguration();\r\n\t\t\t\tresponse.setContentType(\"text/plain\");\r\n\t\t\t\tresponse.getWriter().println(filterName + \": Loaded \" + \r\n\t\t\t\t\t\tredirectRules.size() + \" rule(s).\");\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.sendRedirect(\"index.jsp\");\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n // Since the doPost is not used just redirect people to the NO.html page.\n response.sendRedirect(\"NO.html\");\n }", "protected HTTPSampleResult followRedirects(HTTPSampleResult res, int frameDepth) {\n HTTPSampleResult totalRes = new HTTPSampleResult(res);\n totalRes.addRawSubResult(res);\n HTTPSampleResult lastRes = res;\n \n int redirect;\n for (redirect = 0; redirect < MAX_REDIRECTS; redirect++) {\n boolean invalidRedirectUrl = false;\n String location = lastRes.getRedirectLocation();\n if (log.isDebugEnabled()) {\n log.debug(\"Initial location: \" + location);\n }\n if (REMOVESLASHDOTDOT) {\n location = ConversionUtils.removeSlashDotDot(location);\n }\n // Browsers seem to tolerate Location headers with spaces,\n // replacing them automatically with %20. We want to emulate\n // this behaviour.\n location = encodeSpaces(location);\n if (log.isDebugEnabled()) {\n log.debug(\"Location after /. and space transforms: \" + location);\n }\n // Change all but HEAD into GET (Bug 55450)\n String method = lastRes.getHTTPMethod();\n method = computeMethodForRedirect(method, res.getResponseCode());\n \n try {\n URL url = ConversionUtils.makeRelativeURL(lastRes.getURL(), location);\n url = ConversionUtils.sanitizeUrl(url).toURL();\n if (log.isDebugEnabled()) {\n log.debug(\"Location as URL: \" + url.toString());\n }\n HTTPSampleResult tempRes = sample(url, method, true, frameDepth);\n if (tempRes != null) {\n lastRes = tempRes;\n } else {\n // Last url was in cache so tempRes is null\n break;\n }\n } catch (MalformedURLException | URISyntaxException e) {\n errorResult(e, lastRes);\n // The redirect URL we got was not a valid URL\n invalidRedirectUrl = true;\n }\n if (lastRes.getSubResults() != null && lastRes.getSubResults().length > 0) {\n SampleResult[] subs = lastRes.getSubResults();\n for (SampleResult sub : subs) {\n totalRes.addSubResult(sub);\n }\n } else {\n // Only add sample if it is a sample of valid url redirect, i.e. that\n // we have actually sampled the URL\n if (!invalidRedirectUrl) {\n totalRes.addSubResult(lastRes);\n }\n }\n \n if (!lastRes.isRedirect()) {\n break;\n }\n }\n if (redirect >= MAX_REDIRECTS) {\n lastRes = errorResult(new IOException(\"Exceeded maximum number of redirects: \" + MAX_REDIRECTS), new HTTPSampleResult(lastRes));\n totalRes.addSubResult(lastRes);\n }\n \n // Now populate the any totalRes fields that need to\n // come from lastRes:\n totalRes.setSampleLabel(totalRes.getSampleLabel() + \"->\" + lastRes.getSampleLabel());\n // The following three can be discussed: should they be from the\n // first request or from the final one? I chose to do it this way\n // because that's what browsers do: they show the final URL of the\n // redirect chain in the location field.\n totalRes.setURL(lastRes.getURL());\n totalRes.setHTTPMethod(lastRes.getHTTPMethod());\n totalRes.setQueryString(lastRes.getQueryString());\n totalRes.setRequestHeaders(lastRes.getRequestHeaders());\n \n totalRes.setResponseData(lastRes.getResponseData());\n totalRes.setResponseCode(lastRes.getResponseCode());\n totalRes.setSuccessful(lastRes.isSuccessful());\n totalRes.setResponseMessage(lastRes.getResponseMessage());\n totalRes.setDataType(lastRes.getDataType());\n totalRes.setResponseHeaders(lastRes.getResponseHeaders());\n totalRes.setContentType(lastRes.getContentType());\n totalRes.setDataEncoding(lastRes.getDataEncodingNoDefault());\n return totalRes;\n }", "public interface Redirectator {\n\n void prepareRedirection(RedirectCommand cmd);\n\n void cleanup();\n}", "@RequestMapping(\"/auth\") \r\n\tpublic String redirect(Model model,HttpServletRequest httpRequest) { \r\n\t\t String path = httpRequest.getContextPath();\r\n\t String basePath = httpRequest.getScheme()+\"://\"+httpRequest.getServerName()+\":\"+httpRequest.getServerPort()+path; \r\n\t model.addAttribute(\"base\", basePath);\r\n\t\treturn \"/index/login\"; \r\n\t}", "public boolean isRedirect() {\r\n\r\n\t\tPattern pattern = Pattern.compile(\"#(.*)redirect(.*)\",\r\n\t\t\t\tPattern.CASE_INSENSITIVE);\r\n\t\tif (pattern.matcher(text).matches()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\t\r\n\t\treturn false;\r\n\t}" ]
[ "0.7849233", "0.7773639", "0.7703208", "0.74622273", "0.70776093", "0.69448906", "0.6912605", "0.67786944", "0.6712559", "0.65247333", "0.64986914", "0.649461", "0.64298385", "0.6405079", "0.6258103", "0.6093216", "0.6081748", "0.60734254", "0.6044758", "0.60135996", "0.5992415", "0.5979375", "0.59584934", "0.5915518", "0.5897369", "0.5873562", "0.58728", "0.58544004", "0.58127046", "0.5806277", "0.58027184", "0.5801559", "0.57824874", "0.57317245", "0.57192355", "0.56942016", "0.56859004", "0.5674228", "0.5667773", "0.56620127", "0.56322974", "0.5630304", "0.56202686", "0.5598969", "0.55468404", "0.5540922", "0.55373883", "0.5534135", "0.5532083", "0.55282813", "0.54926187", "0.54760796", "0.5466691", "0.54649913", "0.54493934", "0.54453665", "0.54387176", "0.5433268", "0.54215777", "0.53810525", "0.5372984", "0.53710777", "0.536704", "0.532656", "0.5297139", "0.52797043", "0.52674514", "0.52653456", "0.5264027", "0.526191", "0.5244761", "0.52392435", "0.52322966", "0.52091336", "0.52066314", "0.5204252", "0.5203818", "0.51946914", "0.5193111", "0.5189003", "0.5187229", "0.5176694", "0.51662225", "0.5165769", "0.51578784", "0.515748", "0.5155866", "0.5152647", "0.51340425", "0.51302266", "0.512551", "0.5120568", "0.5111551", "0.5110538", "0.5093776", "0.50926226", "0.5092462", "0.50852627", "0.50837135", "0.5074719" ]
0.74093586
4
Run the void setContextRelative(boolean) method test.
@Test public void testSetContextRelative_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); boolean contextRelative = true; fixture.setContextRelative(contextRelative); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRelative(boolean r) {\n isRel = r;\n }", "public void setRelativeflag(String value) {\n setAttributeInternal(RELATIVEFLAG, value);\n }", "@Test\r\n\tpublic void testRelativeDir() {\r\n\t\t// Expected return from Cd\r\n\t\texpectedCd = null;\r\n\t\t// Expected current working directory\r\n\t\texpectedPath = \"/users/skeshavaa\";\r\n\t\t// Actual return from Cd\r\n\t\tactualCd = cd.run(fs, \"users/skeshavaa\".split(\" \"), \"cd users/skeshavaa\", false);\r\n\t\t// Returns the current working directory\r\n\t\tactualPath = fs.getCurrentPath();\r\n\t\t// Checks if the values are equal or not\r\n\t\tassertTrue(actualCd == expectedCd && actualPath.equals(expectedPath));\r\n\t}", "public void setContext(Context context) {\n this.contextMain = context;\n }", "private void changeContext(){\n MainWorkflow.observeContexts(generateRandom(24,0));\n }", "private void SetLocationRelative(Object object) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isRelative() {\n return isRel;\n }", "@DisplayName(\"Load context\")\n\t@Test\n\tvoid testContext() {\n\t\tLOGGER.info(\"Context loaded successfully\");\n\t\tAssertions.assertTrue(true);\n\t}", "public synchronized void setAbsoluteSetPoint(boolean absolute)\n {\n final String funcName = \"setAbsoluteSetPoint\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"absolute=%s\", Boolean.toString(absolute));\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n this.absSetPoint = absolute;\n }", "public void setFolderPath(String relativeFolderPath) {\r\n this.relativeFolderPath = relativeFolderPath;\r\n }", "@Ignore\n @Test\n @Override\n public void testBoolean(TestContext ctx) {\n super.testBoolean(ctx);\n }", "@Test\n public void canInjectContextOutsideOfContextScope()\n throws Exception {\n Context.unset();\n shouldInjectContext();\n }", "void execSetupContext(ExecProcess ctx);", "public final void setUseLocation(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean uselocation)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.UseLocation.toString(), uselocation);\r\n\t}", "@Override\r\n\t@BeforeTest\r\n\tpublic void startSetting() {\n\t\tSystem.out.println(\"开始系统设置测试\");\r\n\t}", "public void setContextClickable(boolean contextClickable) {\n/* 1192 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\r\n\tpublic void testRelativePath() {\r\n\t\t// Expected return from Cd\r\n\t\texpectedCd = null;\r\n\t\t// Expected current working directory\r\n\t\texpectedPath = \"/users\";\r\n\t\t// Actual return from Cd\r\n\t\tactualCd = cd.run(fs, \"users\".split(\" \"), \"cd users \", false);\r\n\t\t// Returns the current working directory\r\n\t\tactualPath = fs.getCurrentPath();\r\n\t\t// Checks if the values are equal or not\r\n\t\tassertTrue(actualCd == expectedCd && actualPath.equals(expectedPath));\r\n\t}", "public boolean needContext() {\n\t\treturn false;\n\t}", "public void setContext(String context) {\n\n Set<String> contextNames = ((AppiumDriver) getDriver()).getContextHandles();\n\n if (contextNames.contains(context)) {\n ((AppiumDriver) getDriver()).context(context);\n info(\"Context changed successfully\");\n } else {\n info(context + \"not found on this page\");\n }\n\n info(\"Current context\" + ((AppiumDriver) getDriver()).getContext());\n }", "private void setLocationRelativeTo(Object object) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void setLocationRelativeTo(Object object) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected Expression setFunctionOnContext(DynaBean contextBean, Object contextModelNode, Expression xPath, String prefix, QName leafQName) {\n \n if (xPath.toString().contains(DataStoreValidationUtil.CURRENT_PATTERN)) {\n Expression xpression = xPath;\n if (xpression instanceof LocationPath) {\n Step[] originalSteps = ((LocationPath) xpression).getSteps();\n Step[] newSteps = new Step[originalSteps.length];\n for (int i=0;i<originalSteps.length;i++) {\n boolean stepChanged = false;\n Expression[] predicates = originalSteps[i].getPredicates();\n Expression[] newPredicates = new Expression[predicates.length];\n for (int j=0;j<predicates.length;j++) {\n if (predicates[j].toString().contains(DataStoreValidationUtil.CURRENT_PATTERN)) {\n if (predicates[j] instanceof CoreOperation) {\n Expression childExpression[] = ((Operation) predicates[j]).getArguments();\n Expression newChildExpression[] = new Expression[childExpression.length];\n for (int k = 0; k < childExpression.length; k++) {\n if (childExpression[k] instanceof ExtensionFunction) {\n String leafName = childExpression[k-1].toString();\n newChildExpression[k] = evaluateCurrent((ExtensionFunction) childExpression[k], contextBean,\n contextModelNode, prefix, leafName);\n } else if (childExpression[k] instanceof ExpressionPath) {\n newChildExpression[k] = evaluateCurrent((ExpressionPath) childExpression[k], contextModelNode,\n prefix, leafQName);\n\t\t\t\t\t\t\t\t\t} else if (childExpression[k] instanceof CoreOperation) {\n\t\t\t\t\t\t\t\t\t\tnewChildExpression[k] = setFunctionOnContext(contextBean, contextModelNode,\n\t\t\t\t\t\t\t\t\t\t\t\t(CoreOperation) childExpression[k], prefix, leafQName);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tnewChildExpression[k] = childExpression[k];\n\t\t\t\t\t\t\t\t\t}\n }\n newPredicates[j] = JXPathUtils.getCoreOperation((CoreOperation) predicates[j], newChildExpression);\n stepChanged = true;\n }\n } else {\n newPredicates[j] = predicates[j];\n }\n }\n \n if (stepChanged) {\n NodeTest nodeTest = originalSteps[i].getNodeTest();\n if (nodeTest instanceof NodeNameTest) {\n NodeNameTest nameNode = (NodeNameTest) nodeTest;\n newSteps[i] = new YangStep(nameNode.getNodeName(), nameNode.getNamespaceURI(), newPredicates);\n } else {\n newSteps[i] = originalSteps[i];\n }\n } else {\n newSteps[i] = originalSteps[i];\n }\n }\n return new LocationPath(((LocationPath)xpression).isAbsolute(), newSteps);\n } else if (xpression instanceof ExpressionPath) {\n return evaluateCurrent((ExpressionPath)xpression, contextModelNode, prefix, leafQName);\n } else if (xpression instanceof ExtensionFunction) {\n return evaluateCurrent((ExtensionFunction) xpression, contextBean, contextModelNode, prefix, leafQName.getLocalName());\n } else if (xpression instanceof CoreOperation) {\n Expression[] newExpressions = new Expression[((CoreOperation) xpression).getArguments().length];\n Expression[] expressions = ((CoreOperation) xpression).getArguments();\n int index = 0;\n for (Expression expression:expressions) {\n newExpressions[index++] = setFunctionOnContext(contextBean, contextModelNode, expression, prefix, leafQName);\n }\n return JXPathUtils.getCoreOperation((CoreOperation) xpression, newExpressions);\n } else if (xpression instanceof CoreFunction) {\n Expression[] expressions = ((CoreFunction) xpression).getArguments();\n Expression[] newExpressions = new Expression[expressions.length];\n int index = 0;\n for (Expression expression:expressions) {\n newExpressions[index++] = setFunctionOnContext(contextBean, contextModelNode, expression, prefix, leafQName);\n }\n return JXPathUtils.getCoreFunction( ((CoreFunction) xpression).getFunctionCode(), newExpressions);\n }\n }\n return xPath;\n }", "public TestGenericWebXmlContextLoader(String warRootDir, boolean isClasspathRelative) {\r\n\t\tsuper(warRootDir, isClasspathRelative);\r\n\t}", "public void setBooleanProperty(\n String caseFolderPath,\n String TOS,\n String symbolicPropertyName,\n Boolean propertyValue) throws Exception {\n UserContext old = UserContext.get();\n CaseMgmtContext oldCmc = null;\n Subject sub = Subject.getSubject(AccessController.getContext());\n String ceURI = null;\n\n try {\n ceURI = filenet.vw.server.Configuration.GetCEURI(null, null);\n Connection connection = Factory.Connection.getConnection(ceURI);\n\n // setting up user context\n UserContext uc = new UserContext();\n uc.pushSubject(sub);\n UserContext.set(uc);\n\n EntireNetwork entireNetwork = Factory.EntireNetwork.fetchInstance(connection, null);\n\n if (entireNetwork == null) {\n Exception e = new Exception(\"Cannot log in to \" + ceURI);\n logException(e);\n }\n\n // retrieve target object store\n Domain domain = entireNetwork.get_LocalDomain();\n ObjectStore targetOS = (ObjectStore) domain.fetchObject(\n ClassNames.OBJECT_STORE,\n TOS,\n null);\n\n // setting up CaseMmgtContext for Case API\n SimpleVWSessionCache vwSessCache = new SimpleVWSessionCache();\n CaseMgmtContext cmc = new CaseMgmtContext(vwSessCache, new SimpleP8ConnectionCache());\n oldCmc = CaseMgmtContext.set(cmc);\n\n ObjectStoreReference targetOsRef = new ObjectStoreReference(targetOS);\n\n // retrieve case folder\n Folder folder = Factory.Folder.fetchInstance(targetOsRef.getFetchlessCEObject(),\n caseFolderPath,\n null);\n\n Id caseId = folder.get_Id();\n\n // retrieve case\n Case cs = Case.getFetchlessInstance(targetOsRef, caseId);\n\n // set property value\n cs.getProperties().putObjectValue(symbolicPropertyName, propertyValue);\n cs.save(RefreshMode.REFRESH, null, ModificationIntent.MODIFY);\n } catch (Exception e) {\n logException(e);\n } finally {\n if (oldCmc != null) {\n CaseMgmtContext.set(oldCmc);\n }\n\n if (old != null) {\n UserContext.set(old);\n }\n }\n\n }", "public void setUp(boolean b){ up = b; }", "public void setUp(boolean b){ up = b; }", "public void setRelativeText(java.lang.String newRelativeText) {\n \t\trelativeText = newRelativeText;\n \t}", "public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}", "@Test\n\tpublic void testGetRelativePathContentAttribute() {\n\t\ttry {\n\t\t\tfinal Element root = new Element(\"root\");\n\t\t\tfinal Attribute att = null;\n\t\t\tXPathHelper.getRelativePath(root, att);\n\t\t\tUnitTestUtil.failNoException(NullPointerException.class);\n\t\t} catch (Exception e) {\n\t\t\tUnitTestUtil.checkException(NullPointerException.class, e);\n\t\t}\n\t\ttry {\n\t\t\tfinal Element root = new Element(\"root\");\n\t\t\tfinal Attribute att = new Attribute(\"detached\", \"value\");\n\t\t\tXPathHelper.getRelativePath(root, att);\n\t\t\tUnitTestUtil.failNoException(IllegalArgumentException.class);\n\t\t} catch (Exception e) {\n\t\t\tUnitTestUtil.checkException(IllegalArgumentException.class, e);\n\t\t}\n\t\t// testComplex() covers working case. We need to do negative testing\n\t\ttry {\n\t\t\tfinal Element root = null;\n\t\t\tfinal Attribute att = new Attribute(\"att\", \"value\");\n\t\t\tXPathHelper.getRelativePath(root, att);\n\t\t\tUnitTestUtil.failNoException(NullPointerException.class);\n\t\t} catch (Exception e) {\n\t\t\tUnitTestUtil.checkException(NullPointerException.class, e);\n\t\t}\n\t}", "@Override\n public boolean isContextPathInUrl() {\n return false;\n }", "@Override\n public boolean isContextPathInUrl() {\n return false;\n }", "public void setRootContext(org.apache.axis2.context.xsd.ConfigurationContext param){\n localRootContextTracker = true;\n \n this.localRootContext=param;\n \n\n }", "@Test\n public void setCurrent() throws SQLException {\n DataStorer.insertProfile(profile1);\n DataStorer.insertGoal(goal1, profile1);\n // Current for goal1 is currently true so change it to false\n boolean current = false;\n goal1.setCurrent(current);\n // Load profile1 from the database\n loadedProfile = DataLoader.loadProfile(profile1.getFirstName(), profile1.getLastName());\n\n //goal1.setCurrent(true);\n\n // Check that current was updated correctly in the database - will get index out of bounds exception if it was not\n assertEquals(current, loadedProfile.getPastGoals().get(0).isCurrent());\n\n // Reset current to true so other tests can use goal1\n goal1.setCurrent(true);\n }", "protected void setup(Context context) {}", "public abstract void setEnabled(Context context, boolean enabled);", "public boolean isElementRelative()\n {\n return elementRelative;\n }", "public void testSetParent_fixture17_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture17();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void needSetACrowdTest() {\n // TODO: test needSetACrowd\n }", "@Before\n public void setupEnvironment() {\n TestEnvironment testEnvironment;\n switch (mode) {\n case CLUSTER:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().disableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case CLUSTER_OBJECT_REUSE:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().enableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case COLLECTION:\n new CollectionTestEnvironment().setAsContext();\n break;\n }\n }", "public void testSetParent_fixture27_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture27();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "void setWorkingDirectory( String workingDirectory );", "public void testContextManager() throws Exception {\n System.out.println(\"testContextManager\");\n \n // init the session information\n ThreadsPermissionContainer permissions = new ThreadsPermissionContainer();\n SessionManager.init(permissions);\n UserStoreManager userStoreManager = new UserStoreManager();\n UserSessionManager sessionManager = new UserSessionManager(permissions,\n userStoreManager);\n LoginManager.init(sessionManager,userStoreManager);\n // instanciate the thread manager\n CoadunationThreadGroup threadGroup = new CoadunationThreadGroup(sessionManager,\n userStoreManager);\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n InterceptorFactory.init(permissions,sessionManager,userStoreManager);\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"test1\", set);\n permissions.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n \n NamingDirector.init(threadGroup);\n \n Context context = new InitialContext();\n \n context.bind(\"java:comp/env/test\",\"fred\");\n context.bind(\"java:comp/env/test2\",\"fred2\");\n \n if (!context.lookup(\"java:comp/env/test\").equals(\"fred\")) {\n fail(\"Could not retrieve the value for test\");\n }\n if (!context.lookup(\"java:comp/env/test2\").equals(\"fred2\")) {\n fail(\"Could not retrieve the value for test2\");\n }\n System.out.println(\"Creating the sub context\");\n Context subContext = context.createSubcontext(\"java:comp/env/test3/test3\");\n System.out.println(\"Adding the binding for bob to the sub context\");\n subContext.bind(\"bob\",\"bob\");\n System.out.println(\"Looking up the binding for bob on the sub context.\");\n Object value = subContext.lookup(\"bob\");\n System.out.println(\"Object type is : \" + value.getClass().getName());\n if (!value.equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n if (!context.lookup(\"java:comp/env/test3/test3/bob\").equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n \n ClassLoader loader = new URLClassLoader(new URL[0]);\n ClassLoader original = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(loader);\n NamingDirector.getInstance().initContext();\n \n context.bind(\"java:comp/env/test5\",\"fred5\");\n if (!context.lookup(\"java:comp/env/test5\").equals(\"fred5\")) {\n fail(\"Could not retrieve the value fred5\");\n }\n \n Thread.currentThread().setContextClassLoader(original);\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n Thread.currentThread().setContextClassLoader(loader);\n \n NamingDirector.getInstance().releaseContext();\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n Thread.currentThread().setContextClassLoader(original);\n System.out.println(\"Add value 1\");\n context.bind(\"basic\",\"basic\");\n System.out.println(\"Add value 2\");\n context.bind(\"basic2/bob\",\"basic2\");\n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the [\" + \n context.lookup(\"basic\") + \"]\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI [\" +\n context.lookup(\"basic2/bob\") + \"]\");\n }\n \n try {\n context.bind(\"java:network/env/test\",\"fred\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n \n try {\n context.unbind(\"java:network/env/test\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n context.rebind(\"basic\",\"test1\");\n context.rebind(\"basic2/bob\",\"test2\");\n \n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n \n context.unbind(\"basic\");\n context.unbind(\"basic2/bob\");\n \n try{\n context.lookup(\"basic2/bob\");\n fail(\"The basic bob value could still be found\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n NamingDirector.getInstance().shutdown();\n }", "@Test\n public void testSetUri() {\n System.out.println(\"setUri\");\n }", "public boolean supportsSeparateContextFiles();", "public void testSetParent_fixture11_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture11();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "protected void setUpExternalContext() throws Exception\n {\n externalContext = new MockExternalContext(servletContext, request, response);\n }", "void setWorkingDirectory(String workingDirectory);", "@BeforeClass\n public final static void setUpReferencing() throws Exception {\n if (System.getProperty(\"org.geotools.referencing.forceXY\") == null\n || !\"http\".equals(Hints.getSystemDefault(Hints.FORCE_AXIS_ORDER_HONORING))) {\n System.setProperty(\"org.geotools.referencing.forceXY\", \"true\");\n Hints.putSystemDefault(Hints.FORCE_AXIS_ORDER_HONORING, \"http\");\n CRS.reset(\"all\");\n }\n }", "@Test\r\n\tpublic void testSetGetTravelNeeded() {\r\n\t\tteachu1.setTravelNeed(false);\r\n\t\tassertFalse(teachu1.getTravelNeed());\r\n\r\n\t\tteachu1.setTravelNeed(true);\r\n\t\tassertTrue(teachu1.getTravelNeed());\r\n\t}", "@Override\r\n\tpublic void setContext(Context context) {\r\n\t\tthis.context = context;\r\n\t}", "public void testSetParent_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "void setScopeRelevant(boolean scopeRelevant);", "private static void changeCursorMoveMode(boolean isRelative) {\n if (isRelative) {\n TaskDetail.actionToTask.put(SINGLE_FINGER + MOVE, TaskDetail.taskDetails.get(MOVE_CURSOR_RELATIVE));\n } else {\n TaskDetail.actionToTask.put(SINGLE_FINGER + MOVE, TaskDetail.taskDetails.get(MOVE_CURSOR_ABSOLUTE));\n }\n BluetoothConnection.TouchEventMappingControl.updateMapping();\n }", "public void testSetParentInEditMode()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tassertTrue(true);\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail();\r\n\t\t}\r\n\r\n\t}", "public void testSetParent_fixture10_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture10();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "protected void setFixture(BooleanExp fixture) {\n\t\tthis.fixture = fixture;\n\t}", "protected void runBeforeTest() {}", "@Test\n public void functionalityTest() {\n new TestBuilder()\n .setModel(MODEL_PATH)\n .setContext(new ModelImplementationGroup3())\n .setPathGenerator(new RandomPath(new EdgeCoverage(100)))\n .setStart(\"e_GoToPage\")\n .execute();\n }", "public void testSetParent_fixture18_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture18();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "public void setLoadFromWorkingDir(final boolean loadFromWorkingDir) {\n\t\tthis.loadFromWorkingDir = loadFromWorkingDir;\n\t}", "public void setContextRoot( String contextRoot ) {\n contextRoot = ( !contextRoot.startsWith( \"/\" ) ) ? \"/\" + contextRoot : contextRoot;\n contextRoot = ( !contextRoot.endsWith( \"/\" ) ) ? contextRoot + \"/\" : contextRoot;\n\n this.contextRoot = contextRoot;\n }", "public void testSetParent_fixture22_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture22();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "@Before\n public void setUpBefore() throws Exception {\n this.fs = FileSystem.getLocal(this.testUtil.getConfiguration());\n this.testDir = setup(fs, this.testUtil);\n LOG.info(\"fs={}, fsuri={}, fswd={}, testDir={}\", this.fs, this.fs.getUri(),\n this.fs.getWorkingDirectory(), this.testDir);\n assertTrue(\"FileSystem '\" + fs + \"' is not local\", fs instanceof LocalFileSystem);\n }", "public void testSetParent_fixture20_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture20();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "public void testSetParent_fixture19_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture19();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "@Before\n\tpublic void setup() throws Exception {\n\n\t\tsearchPathOptions = new SearchPathOptions();\n\t\tresolver = Mockito.spy(context.resourceResolver());\n\t\tMockito.when(resolver.getSearchPath()).thenAnswer( invocation -> {\n\t\t\treturn searchPathOptions.getSearchPath();\n\t\t});\n\t\t\n resourceType = \"foo:bar\";\n resourceTypePath = ResourceUtil.resourceTypeToPath(resourceType);\n\n resourcePath = \"/content/page\";\n context.build().resource(\"/content\",Collections.emptyMap()).commit();\n Resource parent = resolver.getResource(\"/content\");\n resource = resolver.create(parent, \"page\",\n Collections.singletonMap(ResourceResolver.PROPERTY_RESOURCE_TYPE, resourceType));\n\n request = new MockSlingHttpServletRequest(resourcePath, \"print.A4\", \"html\", null, null);\n request.setMethod(\"GET\");\n request.setResourceResolver(resolver);\n request.setResource(resource);\n\t\t\n\t}", "@Test\n public void testMakeAbsolute() {\n System.out.println(\"makeAbsolute\");\n Setting sr = Setting.factory(\"relative\", Setting.SETTING_TYPE.TPATH, Paths.get(\"relPath\"));\n Setting sh = Setting.factory(\"home\", Setting.SETTING_TYPE.THOMEDIR, Paths.get(\"c:\\\\\"));\n final Object sro = sr.getValue();\n assert (sro instanceof Path);\n final Object sho = sh.getValue();\n assert (sho instanceof Path);\n\n Path srp = (Path) sro;\n Path shp = (Path) sho;\n\n String srps = srp.toString();\n String shps = shp.toString();\n assertEquals(\"relPath\", srps);\n assertEquals(\"c:\\\\\", shps);\n\n Path expResult = Paths.get(\"c:\\\\\", \"relPath\");\n Path result = Setting.makeAbsolute(srp);\n assertEquals(expResult, result);\n\n }", "@Test\n public void contextLoad() throws Exception {\n testCase1();\n }", "boolean hasContext();", "boolean hasContext();", "public static void setTesting() {\n testing = true;\n }", "@Override\n\tpublic void setUp() throws Exception\n\t{\n\t\tsuper.setUp();\n\t\tretrieveBeforeCancel = false;\n\t}", "@Test\n public void testLeft(){\n controller.setLeft(true);\n assertTrue(controller.getLeft());\n }", "public void testSetParent_fixture12_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture12();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "public void testSetParent_fixture13_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture13();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "abstract public void setTopResourcesDir(String path);", "@Test\n public void getCurrentLocationTest()\n {\n Location loc = new Location(\"doggo\", \"fluffy\", \"squishy\");\n boolean set = _city.setCurrentLocation(loc);\n assertTrue(set);\n Location res = _city.getCurrentLocation();\n assertEquals(loc, res);\n }", "@Override\n public ITestContext getTestContext() {\n return testContext;\n }", "private void setDefaultExeContexts(PSRelationshipConfigSet configs)\n {\n // set Execution Context for \"Folder Context\"\n PSRelationshipConfig config = configs\n .getConfig(PSRelationshipConfig.TYPE_FOLDER_CONTENT);\n Iterator effects = config.getEffects();\n PSConditionalEffect effect;\n String effectName;\n while (effects.hasNext())\n {\n ArrayList<Integer> ctxs = new ArrayList<Integer>();\n effect = (PSConditionalEffect) effects.next();\n effectName = effect.getEffect().getName();\n if (effectName.equals(\"sys_TouchParentFolderEffect\") ||\n effectName.equals(\"rxs_NavFolderEffect\") )\n {\n ctxs.add(IPSExecutionContext.RS_PRE_CONSTRUCTION);\n ctxs.add(IPSExecutionContext.RS_PRE_DESTRUCTION);\n effect.setExecutionContexts(ctxs);\n }\n }\n \n // set Execution Context for \"Translation - Mandatory\"\n config = configs\n .getConfig(PSRelationshipConfig.TYPE_TRANSLATION_MANDATORY);\n effects = config.getEffects();\n ArrayList<Integer> ctxs = new ArrayList<Integer>();\n while (effects.hasNext())\n {\n ctxs = new ArrayList<Integer>();\n effect = (PSConditionalEffect) effects.next();\n effectName = effect.getEffect().getName();\n if (effectName.equals(\"sys_isCloneExists\"))\n {\n ctxs.add(IPSExecutionContext.RS_PRE_CLONE);\n effect.setExecutionContexts(ctxs);\n }\n else if (effectName.equals(\"sys_PublishMandatory\") ||\n effectName.equals(\"sys_UnpublishMandatory\"))\n {\n ctxs.add(IPSExecutionContext.RS_PRE_WORKFLOW);\n effect.setExecutionContexts(ctxs);\n }\n else if (effectName.equals(\"sys_AttachTranslatedFolder\"))\n {\n ctxs.add(IPSExecutionContext.RS_PRE_CONSTRUCTION);\n effect.setExecutionContexts(ctxs);\n }\n }\n \n // set Execution Context for \"Translation\"\n config = configs\n .getConfig(PSRelationshipConfig.TYPE_TRANSLATION);\n effects = config.getEffects();\n while (effects.hasNext())\n {\n ctxs = new ArrayList<Integer>();\n effect = (PSConditionalEffect) effects.next();\n effectName = effect.getEffect().getName();\n if (effectName.equals(\"sys_isCloneExists\"))\n {\n ctxs.add(IPSExecutionContext.RS_PRE_CLONE);\n effect.setExecutionContexts(ctxs);\n }\n else if (effectName.equals(\"sys_AttachTranslatedFolder\"))\n {\n ctxs.add(IPSExecutionContext.RS_PRE_CONSTRUCTION);\n effect.setExecutionContexts(ctxs);\n }\n }\n \n // set Execution Context for \"Active Assembly - Mandatory\"\n config = configs\n .getConfig(PSRelationshipConfig.TYPE_ACTIVE_ASSEMBLY_MANDATORY);\n effects = config.getEffects();\n while (effects.hasNext())\n {\n ctxs = new ArrayList<Integer>();\n effect = (PSConditionalEffect) effects.next();\n effectName = effect.getEffect().getName();\n if (effectName.equals(\"sys_PublishMandatory\") ||\n effectName.equals(\"sys_UnpublishMandatory\"))\n {\n ctxs.add(IPSExecutionContext.RS_PRE_WORKFLOW);\n effect.setExecutionContexts(ctxs);\n }\n }\n \n // set Execution Context for \"Promotable Version\"\n config = configs\n .getConfig(PSRelationshipConfig.TYPE_PROMOTABLE_VERSION);\n effects = config.getEffects();\n while (effects.hasNext())\n {\n ctxs = new ArrayList<Integer>();\n effect = (PSConditionalEffect) effects.next();\n effectName = effect.getEffect().getName();\n if (effectName.equals(\"sys_Promote\"))\n {\n ctxs.add(IPSExecutionContext.RS_POST_WORKFLOW);\n effect.setExecutionContexts(ctxs); \n }\n else if (effectName.equals(\"sys_AddCloneToFolder\"))\n {\n ctxs.add(IPSExecutionContext.RS_PRE_CONSTRUCTION);\n effect.setExecutionContexts(ctxs); \n }\n }\n\n // set Execution Context for \"New Copy\"\n config = configs\n .getConfig(PSRelationshipConfig.TYPE_NEW_COPY);\n effects = config.getEffects();\n while (effects.hasNext())\n {\n ctxs = new ArrayList<Integer>();\n effect = (PSConditionalEffect) effects.next();\n effectName = effect.getEffect().getName();\n if (effectName.equals(\"sys_AddCloneToFolder\"))\n {\n ctxs.add(IPSExecutionContext.RS_PRE_CONSTRUCTION);\n effect.setExecutionContexts(ctxs); \n }\n }\n }", "@Test\r\n public void testSetMovementDirs(){\r\n \r\n SRtest.setLeft(true);\r\n SRtest.setRight(true);\r\n SRtest.setUp(true);\r\n SRtest.setDown(true);\r\n \r\n assertTrue(SRtest.getLeft());\r\n assertTrue(SRtest.getRight());\r\n assertTrue(SRtest.getUp());\r\n assertTrue(SRtest.getDown());\r\n \r\n SRtest.setLeft(false);\r\n SRtest.setRight(false);\r\n SRtest.setUp(false);\r\n SRtest.setDown(false);\r\n \r\n assertFalse(SRtest.getLeft());\r\n assertFalse(SRtest.getRight());\r\n assertFalse(SRtest.getUp());\r\n assertFalse(SRtest.getDown());\r\n \r\n }", "@Override\n @Test(groups = {\"SessionContext access\"})\n public void testSessionContext01() throws Exception {\n super.testSessionContext01();\n }", "protected void init()\n {\n context.setConfigured(false);\n ok = true;\n\n if (!context.getOverride())\n {\n processContextConfig(\"context.xml\", false);\n processContextConfig(getHostConfigPath(org.apache.catalina.startup.Constants.HostContextXml), false);\n }\n // This should come from the deployment unit\n processContextConfig(context.getConfigFile(), true);\n }", "public void testSetParent_fixture14_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture14();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "public void testSetParent_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "public void testResolveTargetLocation() throws Exception {\n System.out.println(\"resolveTargetLocation\");\n \n instance.resolveTargetLocation();\n \n }", "@Test\n public void testEvaluate() {\n System.out.println(\"AbsolutePathNode - testEvaluate\");\n final AbsolutePathNode instance = new AbsolutePathNode();\n final String expResult = TestHelper.absolutePathString;\n final String result = instance.evaluate(TestHelper.relativePathString, TestHelper.fileStatus);\n System.out.printf(\"Expected: %s\\n\", expResult);\n System.out.printf(\" Result: %s\\n\", result);\n assertEquals(expResult, result);\n }", "public void testSetParent_fixture21_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture21();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "@Test\r\n public void test() {\n assertEquals(JShell.getWorkingDir().toString(), \"MASTER\");\r\n\r\n // Test setWorkingDir\r\n ArrayList<String> testMKDIR = new ArrayList<String>();\r\n // Directories made for testCase1 \"a\"\r\n String[] testCasesMKDIR1 = {\"mkdir\", \"a\"};\r\n testMKDIR.addAll(Arrays.asList(testCasesMKDIR1));\r\n MKDIR.execute(testMKDIR);\r\n // CD changes sets the working directory to \"a\"\r\n ArrayList<String> testCD2 = new ArrayList<String>();\r\n String[] testCasesCD2 = {\"cd\", \"a\"};\r\n testCD2.addAll(Arrays.asList(testCasesCD2));\r\n CD.execute(testCD2);\r\n // See if the directory has been changed\r\n assertEquals(JShell.getWorkingDir().toString(), \"a\");\r\n\r\n // Test getInputs and setInputs is shown in HISTORYTest - redundant code\r\n // Test getDirHistory and setDirHistory is shown in POPDTest and PUSHDTest -\r\n // redundant code\r\n }", "public void testSetParent_fixture26_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture26();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "@Override\r\n\tpublic void setContext(FileUtilContext context) throws FileSystemUtilException {\r\n\t\tthis.hostname = context.getHostname();\r\n\t\tthis.username = context.getUsername();\r\n\t\tthis.port = context.getPort();\r\n\t\tthis.readTimeOut = context.getReadTimeOut();\r\n\t\tthis.password = context.getPassword();\r\n\t\tthis.remoteFilePath = context.getRemoteFilePath();\r\n\t\tthis.localFilePath = context.getLocalFilePath();\r\n\t}", "@Override\n public VelocityContext getContextBase() {\n VelocityContext context = new VelocityContext();\n\n if (null != testPlan) {\n context.put(\"testPlan\", testPlan);\n context.put(\"util\", TS.util());\n\n context = getContext(context);\n }\n\n return context;\n }", "public void testSetParent_fixture4_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture4();\n\t\tFolder parent = new Folder();\n\n\t\tfixture.setParent(parent);\n\n\t\t// add additional test code here\n\t}", "private void setupRequestContext() {\r\n\t\tMockHttpServletRequest request = new MockHttpServletRequest();\r\n\t\tServletRequestAttributes attributes = new ServletRequestAttributes(request);\r\n\t\tRequestContextHolder.setRequestAttributes(attributes);\r\n\t}", "private void setupRequestContext() {\r\n\t\tMockHttpServletRequest request = new MockHttpServletRequest();\r\n\t\tServletRequestAttributes attributes = new ServletRequestAttributes(request);\r\n\t\tRequestContextHolder.setRequestAttributes(attributes);\r\n\t}", "public void setConfigurationContext(org.apache.axis2.context.xsd.ConfigurationContext param){\n localConfigurationContextTracker = true;\n \n this.localConfigurationContext=param;\n \n\n }", "protected abstract Context getMockContext(Context context);", "public final void setUseLocation(java.lang.Boolean uselocation)\r\n\t{\r\n\t\tsetUseLocation(getContext(), uselocation);\r\n\t}", "@Test\n public void testRelativize_bothAbsolute() {\n assertRelativizedPathEquals(\"b/c\", pathService.parsePath(\"/a\"), \"/a/b/c\");\n assertRelativizedPathEquals(\"c/d\", pathService.parsePath(\"/a/b\"), \"/a/b/c/d\");\n }", "@Before\n public void setUpContextManagerBeforeTest() throws Exception{\n workerI = new ContextManager.ContextManagerWorkerI();\n\n// //Create the communicator of context manager\n// ContextManager.communicator = com.zeroc.Ice.Util.initialize(new String[] {\"[Ljava.lang.String;@2530c12\"});\n//\n// //Get the preference\n// ContextManager.iniPreferenceWorker();\n//\n// //Get the locationWorker\n// ContextManager.iniLocationMapper();\n\n //Get the cityinfo of the context manager\n ContextManager.cityInfo = ContextManager.readCityInfo();\n\n //CurrentWeather set to 0\n ContextManager.currentWeather = 0;\n\n //Create sensor data and user to add in the users list\n mockSensor = new SensorData(\"David\", \"D\", 30, 100);\n mockUser = new User(3, new int[]{27, 30},90, 45, mockSensor, 0, false,false);\n ContextManager.users.put(\"David\", mockUser);\n\n }", "@Test\n @DisplayName(\"Test: set your own content path\")\n public void testSetContextPath() throws InterruptedException, ClientException {\n FormContainerEditDialog dialog = formComponents.openEditDialog(containerPath);\n dialog.selectActionType(\"foundation/components/form/actions/store\");\n String actionInputValue = userContent + \"/xxx\";\n dialog.setActionInputValue(actionInputValue);\n Commons.saveConfigureDialog();\n editorPage.enterPreviewMode();\n Commons.switchContext(\"ContentFrame\");\n $(Selectors.SELECTOR_SUBMIT_BUTTON).click();\n JsonNode formContentJson = authorClient.doGetJson(actionInputValue , 1, HttpStatus.SC_OK);\n assertTrue(formContentJson.get(\"inputName\").toString().equals(\"\\\"inputValue\\\"\"),\"inputName field should be saved as inputValue\");\n }" ]
[ "0.62506485", "0.5843897", "0.5500617", "0.52479047", "0.52451956", "0.5198655", "0.51804125", "0.5141747", "0.5106224", "0.5104754", "0.50375724", "0.502137", "0.5012883", "0.49681672", "0.4961046", "0.4960488", "0.49516603", "0.4936784", "0.49336216", "0.49292076", "0.49292076", "0.48886275", "0.48762506", "0.4872638", "0.48407856", "0.48407856", "0.4840719", "0.48399928", "0.48156974", "0.47887447", "0.47887447", "0.47858492", "0.47695237", "0.4751925", "0.47348508", "0.46782157", "0.4674628", "0.46688145", "0.46676868", "0.46642527", "0.46628755", "0.4662839", "0.46616426", "0.46612427", "0.46597165", "0.46578556", "0.46542993", "0.4653731", "0.4646905", "0.46404934", "0.46397012", "0.4639071", "0.46260643", "0.46193284", "0.46177927", "0.46128553", "0.46068317", "0.46054667", "0.4602806", "0.460097", "0.45953545", "0.45917696", "0.4583376", "0.45829216", "0.45783404", "0.45768058", "0.45750046", "0.45685792", "0.4562078", "0.4562078", "0.45620447", "0.45607466", "0.45572197", "0.45441565", "0.45316052", "0.45304114", "0.45295358", "0.45231798", "0.4520226", "0.45103112", "0.4507567", "0.4507348", "0.45043206", "0.4497409", "0.44959357", "0.44923556", "0.44892263", "0.448875", "0.44879955", "0.4487962", "0.4476153", "0.44746175", "0.4464506", "0.4464506", "0.44520676", "0.4451594", "0.44502953", "0.44494358", "0.44471186", "0.44457093" ]
0.80260557
0
Run the void setEncodingScheme(String) method test.
@Test public void testSetEncodingScheme_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String encodingScheme = ""; fixture.setEncodingScheme(encodingScheme); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testEncodingAndType() throws Exception {\n \t// check default\n \tSampleResult res = new SampleResult();\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncoding());\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncodingWithDefault());\n \tassertEquals(\"DataType should be blank\",\"\",res.getDataType());\n \tassertNull(res.getDataEncodingNoDefault());\n \t\n \t// check null changes nothing\n \tres.setEncodingAndType(null);\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncoding());\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncodingWithDefault());\n \tassertEquals(\"DataType should be blank\",\"\",res.getDataType());\n \tassertNull(res.getDataEncodingNoDefault());\n\n \t// check no charset\n \tres.setEncodingAndType(\"text/html\");\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncoding());\n \tassertEquals(SampleResult.DEFAULT_ENCODING,res.getDataEncodingWithDefault());\n \tassertEquals(\"text\",res.getDataType());\n \tassertNull(res.getDataEncodingNoDefault());\n\n \t// Check unquoted charset\n \tres.setEncodingAndType(\"text/html; charset=aBcd\");\n \tassertEquals(\"aBcd\",res.getDataEncodingWithDefault());\n \tassertEquals(\"aBcd\",res.getDataEncodingNoDefault());\n \tassertEquals(\"aBcd\",res.getDataEncoding());\n \tassertEquals(\"text\",res.getDataType());\n\n \t// Check quoted charset\n \tres.setEncodingAndType(\"text/html; charset=\\\"aBCd\\\"\");\n \tassertEquals(\"aBCd\",res.getDataEncodingWithDefault());\n \tassertEquals(\"aBCd\",res.getDataEncodingNoDefault());\n \tassertEquals(\"aBCd\",res.getDataEncoding());\n \tassertEquals(\"text\",res.getDataType()); \t\n }", "public void setScheme(String newValue);", "@Override\n\t\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\t\n\t\t}", "public void testSetEncoding_Unsupported() {\n StreamHandler h = new StreamHandler();\n try {\n h.setEncoding(\"impossible\");\n fail(\"Should throw UnsupportedEncodingException!\");\n } catch (UnsupportedEncodingException e) {\n // expected\n }\n assertNull(h.getEncoding());\n }", "@Override\n\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\n\t}", "private void setCorrectCodec() {\n try {\n getDataNetworkHandler().setCorrectCodec();\n } catch (FtpNoConnectionException e) {\n }\n }", "public void setCodingSchemeURI(java.lang.String codingSchemeURI) {\n this.codingSchemeURI = codingSchemeURI;\n }", "@Override\n public void setCharacterEncoding(String arg0) {\n\n }", "public void setScheme(String p_scheme) throws MalformedURIException {\n if (p_scheme == null) {\n throw new MalformedURIException(\n \"Cannot set scheme from null string!\");\n }\n if (!isConformantSchemeName(p_scheme)) {\n throw new MalformedURIException(\"The scheme is not conformant.\");\n }\n \n m_scheme = p_scheme.toLowerCase();\n }", "protected void setEncodingsFromOptions(ThreadContext context, RubyHash options) {\n if (options == null || options.isNil()) return;\n \n EncodingOption encodingOption = extractEncodingOptions(options);\n \n if (encodingOption == null) return;\n \n externalEncoding = encodingOption.externalEncoding;\n if (encodingOption.internalEncoding == externalEncoding) return;\n internalEncoding = encodingOption.internalEncoding;\n }", "public void testSetEncoding_FlushBeforeSetting() throws Exception {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n LogRecord r = new LogRecord(Level.INFO, \"abcd\");\n h.publish(r);\n assertFalse(aos.toString().indexOf(\"abcd\") > 0);\n h.setEncoding(\"iso-8859-1\");\n assertTrue(aos.toString().indexOf(\"abcd\") > 0);\n }", "public Builder setScheme(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n scheme_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "String getScheme();", "java.lang.String getScheme();", "public void setInputEncoding(String inputEncoding) {\r\n this.inputEncoding = inputEncoding;\r\n }", "public void setEncoding (String encoding) {\n this.encoding = encoding;\n }", "@Test\n public void schemeTest() {\n assertEquals(\"VISA_BUSINESS\", authResponse.getScheme());\n }", "public void setEncodingSettings(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ENCODINGSETTINGS, value);\r\n\t}", "public void setEncoding(String e) {\n\t\tthis.encoding = e;\n\t}", "public void setCodec(Codec codec);", "public void setCodingSchemeName(java.lang.String codingSchemeName) {\n this.codingSchemeName = codingSchemeName;\n }", "@Override\r\n public String getScheme() {\r\n return scheme;\r\n }", "public Builder setSchemeBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n scheme_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "protected void setEncoding() {\n\t\tthis.defaultContentType = getProperty(CONTENT_TYPE_KEY, DEFAULT_CONTENT_TYPE);\n\n\t\tString encoding = getProperty(RuntimeConstants.OUTPUT_ENCODING, DEFAULT_OUTPUT_ENCODING);\n\n\t\t// For non Latin-1 encodings, ensure that the charset is\n\t\t// included in the Content-Type header.\n\t\tif (!DEFAULT_OUTPUT_ENCODING.equalsIgnoreCase(encoding)) {\n\t\t\tint index = defaultContentType.lastIndexOf(\"charset\");\n\t\t\tif (index < 0) {\n\t\t\t\t// the charset specifier is not yet present in header.\n\t\t\t\t// append character encoding to default content-type\n\t\t\t\tthis.defaultContentType += \"; charset=\" + encoding;\n\t\t\t} else {\n\t\t\t\t// The user may have configuration issues.\n\t\t\t\tlog.info(\"Charset was already specified in the Content-Type property.Output encoding property will be ignored.\");\n\t\t\t}\n\t\t}\n\n\t\tlog.debug(\"Default Content-Type is: {}\", defaultContentType);\n\t}", "public void setEncoding(String encoding) {\r\n this.encoding = encoding;\r\n }", "Builder addEncoding(String value);", "public void testSetEncoding_Normal() throws Exception {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n h.setEncoding(\"iso-8859-1\");\n assertEquals(\"iso-8859-1\", h.getEncoding());\n LogRecord r = new LogRecord(Level.INFO, \"\\u6881\\u884D\\u8F69\");\n h.publish(r);\n h.flush();\n\n byte[] bytes = encoder.encode(\n CharBuffer.wrap(\"MockFormatter_Head\" + \"\\u6881\\u884D\\u8F69\"))\n .array();\n assertTrue(Arrays.equals(bytes, aos.toByteArray()));\n }", "@Before\n public void setUp() {\n System.setProperty(\"java.protocol.handler.pkgs\",\n \"org.jvoicexml.jsapi2.protocols\");\n }", "@Test\n public void testIntializerProvidesTheRequestedCharsetIfItIsValid()\n throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, NoSuchFieldException\n {\n String goodCharsetName = \"UTF-16\";\n Charset goodCharset = Charset.forName(goodCharsetName);\n\n final DefaultCharset defaultCharsetInstance = setInternalDefaultCharset(goodCharsetName);\n final Charset charset = getCurrentCharsetFromDefaultCharsetInstance(defaultCharsetInstance);\n\n assertEquals(goodCharset.name(), charset.name());\n }", "public void setCodec(ProtocolCodecFactory codec) {\n this.codec = codec;\n }", "String getEncoding();", "public void setEncoding(String encoding) {\n this.encoding = encoding;\n }", "public void setEncoding(String encoding) {\n this.encoding = encoding;\n }", "public void setEncoding(String encoding) {\n this.encoding = encoding;\n }", "@Test\r\n public void testValidEncodings() {\r\n assertThatInputIsValid(\"\");\r\n assertThatInputIsValid(\"UTF8\");\r\n assertThatInputIsValid(\"UTF-8\");\r\n assertThatInputIsValid(\"CP1252\");\r\n assertThatInputIsValid(\"ISO-8859-1\");\r\n assertThatInputIsValid(\"ISO-8859-5\");\r\n assertThatInputIsValid(\"ISO-8859-9\");\r\n }", "public String getDeclaredEncoding();", "public void setInputEncoding(org.apache.xmlbeans.XmlAnySimpleType inputEncoding)\n {\n generatedSetterHelperImpl(inputEncoding, INPUTENCODING$16, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public static void setEncodingSettings(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, ENCODINGSETTINGS, value);\r\n\t}", "private static boolean hasScheme(String test) {\n return schemePattern.matcher(test).matches(); \n }", "public void testSetEncoding_AfterPublish() throws Exception {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n h.setEncoding(\"iso-8859-1\");\n assertEquals(\"iso-8859-1\", h.getEncoding());\n LogRecord r = new LogRecord(Level.INFO, \"\\u6881\\u884D\\u8F69\");\n h.publish(r);\n h.flush();\n assertTrue(Arrays.equals(aos.toByteArray(), encoder.encode(\n CharBuffer.wrap(\"MockFormatter_Head\" + \"\\u6881\\u884D\\u8F69\"))\n .array()));\n\n h.setEncoding(\"iso8859-1\");\n assertEquals(\"iso8859-1\", h.getEncoding());\n r = new LogRecord(Level.INFO, \"\\u6881\\u884D\\u8F69\");\n h.publish(r);\n h.flush();\n assertFalse(Arrays.equals(aos.toByteArray(), encoder.encode(\n CharBuffer.wrap(\"MockFormatter_Head\" + \"\\u6881\\u884D\\u8F69\"\n + \"testSetEncoding_Normal2\")).array()));\n byte[] b0 = aos.toByteArray();\n byte[] b1 = encoder.encode(\n CharBuffer.wrap(\"MockFormatter_Head\" + \"\\u6881\\u884D\\u8F69\"))\n .array();\n byte[] b2 = encoder.encode(CharBuffer.wrap(\"\\u6881\\u884D\\u8F69\"))\n .array();\n byte[] b3 = new byte[b1.length + b2.length];\n System.arraycopy(b1, 0, b3, 0, b1.length);\n System.arraycopy(b2, 0, b3, b1.length, b2.length);\n assertTrue(Arrays.equals(b0, b3));\n }", "@Override\n public String getScheme() {\n return this.scheme;\n }", "public void setCharset(String string) {\n\t\t\r\n\t}", "public abstract void validateScheme(Scheme scheme);", "Builder addEncodings(String value);", "public java.lang.String getCodingSchemeName() {\n return codingSchemeName;\n }", "EncodingEnum getEncoding();", "public void testSetEncoding_Null() throws Exception {\n StreamHandler h = new StreamHandler();\n h.setEncoding(null);\n assertNull(h.getEncoding());\n }", "public void setEncoding(String encoding) {\n this.encoding = encoding;\n }", "public String getScheme() {\n return scheme;\n }", "public String getScheme() {\n return scheme;\n }", "public String getScheme() {\n return scheme;\n }", "public void setEncoding(Encoding encoding) {\n this.encoding = encoding;\n }", "com.google.protobuf.ByteString getSchemeBytes();", "protected final void setEncoding( String encoding )\n throws SAXException\n {\n if ( _inputSource.getByteStream() != null ) {\n if ( ! encoding.equalsIgnoreCase( _inputSource.getEncoding() ) ) {\n _inputSource.setEncoding( encoding );\n try {\n _reader = new InputStreamReader( new BufferedInputStream( _inputSource.getByteStream() ), encoding );\n } catch ( UnsupportedEncodingException except ) {\n error( WELL_FORMED, format( \"Parser014\", encoding ) );\n }\n }\n }\n else\n if ( isWarning() && _inputSource.getEncoding() != null &&\n ! encoding.equalsIgnoreCase( _inputSource.getEncoding() ) )\n warning( format( \"Parser015\", _inputSource.getEncoding(), encoding ) ); \n }", "public SchemeTest (String name)\n {\n super (name);\n /*\n * This constructor should not be modified. Any initialization code\n * should be placed in the setUp() method instead.\n */\n }", "public final void setEntityScheme(final String cEntityScheme) {\n\t\tthis.entityScheme = cEntityScheme;\n\t}", "public void setEncodingSettings( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ENCODINGSETTINGS, value);\r\n\t}", "@Before\n public void setUp() {\n context = new MockPceCodecContext();\n pcePathCodec = context.codec(PcePath.class);\n assertThat(pcePathCodec, notNullValue());\n }", "public void setEncoding(String encoding) {\n\t\tthis.encoding = encoding;\n\t}", "@java.lang.Override\n public java.lang.String getScheme() {\n java.lang.Object ref = scheme_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n scheme_ = s;\n return s;\n }\n }", "@Test\n\tvoid test() {\n\t\tNewDocument newDocument = new NewDocument();\n\t\tnewDocument.createNewDocument(\"\", \"\", \"\", \"\");\n\t\t//test if the new document contents equals the current document contents\n\t\tText2SpeechEditorView w = Text2SpeechEditorView.getInstance();\n\t\t\t\t\n\t\tEncodingStrategy encoding = new AtBashEncoding();\n\t\t\t\t\n\t\tw.getCurrentDocument().tuneEncodingStrategy(encoding);\n\t\t\t\t\n\t\tassertEquals(w.getCurrentDocument().getEncodingStrategy(),encoding);\n\t}", "public void setFileEncoding(String s) {\n if (s == null) fileEncoding = \"\";\n else fileEncoding = s;\n }", "public java.lang.String getCodingSchemeURI() {\n return codingSchemeURI;\n }", "public String getScheme() {\n return m_scheme;\n }", "@Accessor(qualifier = \"encoding\", type = Accessor.Type.SETTER)\n\tpublic void setEncoding(final EncodingEnum value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(ENCODING, value);\n\t}", "public static void setEncodingSettings( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ENCODINGSETTINGS, value);\r\n\t}", "public void testEncoding() throws Exception\r\n {\r\n ComponentDirective result = \r\n (ComponentDirective) executeEncodingTest( m_directive );\r\n assertEquals( \"encoded-equality\", m_directive, result );\r\n }", "String getUseNativeEncoding();", "@Test\n public void testEncode() {\n LOGGER.info(\"testEncode\");\n final String actual = new AtomString().encode();\n final String expected = \"0:\";\n assertEquals(expected, actual);\n }", "public boolean requiresCustomCodec()\n/* */ {\n/* 498 */ return false;\n/* */ }", "private void setContentType(String contentType) throws IOException {\n if (localEncoding !=\"\"){ return; } // Don't change Encoding Twice\n StringTokenizer tok = new StringTokenizer(contentType,\";\");\n if (tok.countTokens()<2){ return;}\n tok.nextToken();\n String var = tok.nextToken(\"=\");\n if (var.length()<1){ return; }\n if (var.charAt(0)==';'){ var = var.substring(1); }\n int j=0;\n for(int i=0; i<var.length();i++){\n if (var.charAt(i)==' '){ j++;} else { break;}\n }\n var = var.substring(j);\n if (!var.equalsIgnoreCase(\"charset\")){ return;}\n String charSet = tok.nextToken();\n if (charSet.equals(characterEncoding)){ return; } // Already correct Encoding\n if (inputStream == null){\n throw new IOException(\"HTML Parser called with Reader cannot change Encoding\");\n }\n if (! (inputStream instanceof OpenByteArrayInputStream) ){\n throw new IOException(\"HTML Parser not called with OpenByteArrayInputStream\");\n }\n OpenByteArrayInputStream obais = (OpenByteArrayInputStream) inputStream;\n byte[] buf = obais.getBuffer();\n int length = obais.getLength();\n int offset = obais.getOffset();\n reader.close();\n obais.close();\n obais = new OpenByteArrayInputStream(buf,offset,length);\n inputStream = obais;\n try {\n reader = new BufferedReader(new InputStreamReader(obais,charSet),1024);\n } catch (UnsupportedEncodingException e){\n Logging.warning(\"Unknown charset \"+charSet+\" parsing with default ISO-8859-1 charSet\");\n System.err.println(\"Unknown charset \"+charSet+\" parsing with default ISO-8859-1 charSet\");\n reader = new BufferedReader(new InputStreamReader(obais),1024);\n charSet = \"iso-8859-1\";\n }\n Logging.info(\"Changed Encoding to \"+charSet);\n System.err.println(\"Changed Encoding to \"+charSet);\n reset();\n characterEncoding = charSet;\n localEncoding = charSet;\n // We will restart reading the file from the beginning\n return;\n }", "public void setUriScheme(java.lang.Short uriScheme) {\r\n this.uriScheme = uriScheme;\r\n }", "@org.junit.Test\n public void coverage()\n {\n new Encodings();\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getSchemeBytes() {\n java.lang.Object ref = scheme_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n scheme_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setCodec(Codec codec) {\n this.codec = codec;\n }", "public void testEncodeableMustBeAEncoderDecoder() {\n }", "public void addEncodingSettings(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), ENCODINGSETTINGS, value);\r\n\t}", "public void setContentEncoding(Header contentEncoding) {\n/* 143 */ this.contentEncoding = contentEncoding;\n/* */ }", "public com.google.protobuf.ByteString getSchemeBytes() {\n java.lang.Object ref = scheme_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n scheme_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setCharacterEncoding(String s) {\n\n\t}", "Charset getEncoding();", "String getSupportedEncoding(String acceptableEncodings);", "@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for decoding\\t and...\\n\";\n\n assertEquals(\"encode/decode\", test,\n Encodings.decodeEscapes(Encodings.encodeEscapes(test)));\n assertEquals(\"encode/decode\", \"\",\n Encodings.decodeEscapes(Encodings.encodeEscapes(null)));\n }", "public void testSetURI() {\n }", "public EncodingOptions getEncodingOptions();", "@java.lang.Override\n public int getEncodingValue() {\n return encoding_;\n }", "public void setProxyScheme(java.lang.String newProxyScheme)\r\n {\r\n System.out.println(\"Scheme: \" + newProxyScheme);\r\n proxyScheme = newProxyScheme;\r\n }", "public void setEncoding(String encoding)\n\t\t{\n\t\t\tm_encoding = encoding;\n\t\t}", "public void setEncoding(String encoding) {\r\n\t\tcheckHeaderGeneration();\r\n\t\tthis.encoding = encoding;\r\n\t}", "public void setCodeset (String codeset)\r\n\t{\r\n\t\tthis.codeset = codeset;\r\n\t}", "public static void main(String[] args) throws UnsupportedEncodingException {\n test18();\n }", "public java.lang.String getScheme() {\n java.lang.Object ref = scheme_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n scheme_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setCodingMode(String codingMode) {\n this.codingMode = codingMode;\n }", "private void initializeScheme(String p_uriSpec)\n throws MalformedURIException {\n int uriSpecLen = p_uriSpec.length();\n int index = 0;\n String scheme = null;\n char testChar = '\\0';\n \n while (index < uriSpecLen) {\n testChar = p_uriSpec.charAt(index);\n if (testChar == ':' || testChar == '/' ||\n testChar == '?' || testChar == '#') {\n break;\n }\n index++;\n }\n scheme = p_uriSpec.substring(0, index);\n \n if (scheme.length() == 0) {\n throw new MalformedURIException(\"No scheme found in URI.\");\n }\n else {\n setScheme(scheme);\n }\n }", "public String getEncoding () {\n return encoding;\n }", "@SuppressWarnings(\"unused\")\n public static void setRuntimeEncoding() throws IllegalAccessException, NoSuchFieldException {\n System.setProperty(\"file.encoding\", \"UTF-8\");\n Field charset = Charset.class.getDeclaredField(\"defaultCharset\");\n charset.setAccessible(true);\n charset.set(null, null);\n }", "private Encodings()\n {\n // nothing to do\n }", "@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@DOMSupport(DomLevel.THREE)\r\n\t@Property String getInputEncoding();", "@Nullable\n public String getScheme ()\n {\n return m_sScheme;\n }", "public Builder scheme(String scheme) {\n this.scheme = scheme;\n return this;\n }" ]
[ "0.6349227", "0.6313915", "0.5925933", "0.59252286", "0.5889134", "0.58859223", "0.585522", "0.5824764", "0.58080244", "0.579919", "0.5706033", "0.5685353", "0.5619258", "0.55947536", "0.5587029", "0.5552267", "0.5552202", "0.5542677", "0.55352575", "0.5482363", "0.54635537", "0.54581034", "0.54373026", "0.5410758", "0.54055357", "0.5399337", "0.5379491", "0.53729", "0.53715646", "0.5367393", "0.53594804", "0.53547", "0.53547", "0.53547", "0.5349921", "0.5347134", "0.5342162", "0.5333605", "0.53287333", "0.5319212", "0.53171366", "0.53013164", "0.52983564", "0.52893484", "0.52840877", "0.52796596", "0.5256835", "0.52554524", "0.52436864", "0.52436864", "0.52436864", "0.5228001", "0.5220012", "0.52176726", "0.5216749", "0.52063924", "0.5204398", "0.51979643", "0.51591647", "0.51506436", "0.5150161", "0.5147963", "0.51415825", "0.5138135", "0.51225024", "0.5093924", "0.50802916", "0.5074877", "0.50736195", "0.5050609", "0.50438714", "0.50406045", "0.50379926", "0.5032155", "0.5010745", "0.5001715", "0.4969394", "0.49661493", "0.49636012", "0.4957441", "0.49565703", "0.49492803", "0.49467212", "0.49459738", "0.4943239", "0.4933461", "0.49261165", "0.49259263", "0.49242938", "0.49124995", "0.49044287", "0.4903479", "0.48959136", "0.4893344", "0.48787254", "0.4877253", "0.48731524", "0.48685235", "0.48419908", "0.4834831" ]
0.71850216
0
Run the void setHttp10Compatible(boolean) method test.
@Test public void testSetHttp10Compatible_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); boolean http10Compatible = true; fixture.setHttp10Compatible(http10Compatible); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void testCompatibility() {\n\t\tSystem.out.println(\"compatibility test success\");\n\t}", "public static boolean has10() {\n return getVersion() >= Build.VERSION_CODES.GINGERBREAD_MR1;\n }", "public void setHttp11(boolean http11) {\n this.http11 = http11;\n }", "public boolean isHttp11() {\n return http11;\n }", "@Override\n\tpublic void testCompatibility() {\n\t\tieWebDriver.checkCompatibility();\n\t}", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkProtocol() {\n\t\tboolean flag = oTest.checkProtocol();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn false;\r\n\t}", "public void setC10(Boolean c10) {\n\t\tthis.c10 = c10;\n\t}", "public void setCompatibleMode(boolean value) {\n\t\tcompatible = value;\n\t}", "public boolean isCompatible() {\r\n return true;\r\n }", "@Test\n public void testSupports() {\n assertTrue(instance.supports(SpringRestService.class));\n // JAX-RS RestService class\n assertFalse(instance.supports(StandardRestService.class));\n // Default RestService class\n assertFalse(instance.supports(DefaultRestService.class));\n // No annotated RestService class\n assertFalse(instance.supports(RestService.class));\n // null\n assertFalse(instance.supports(null));\n }", "public void validateRpd8s10()\n {\n // This guideline cannot be automatically tested.\n }", "public static boolean hasHttpConnectionBug() {\n\t\treturn Build.VERSION.SDK_INT < 8;\n\t}", "public void setAttribute10(String value)\n {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public void setAttribute10(String value) {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public void setAttribute10(String value) {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public void setAttribute10(String value) {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public void setAttribute10(String value) {\n setAttributeInternal(ATTRIBUTE10, value);\n }", "public boolean isCompatible();", "public void setVersionsSupported(String versionsSupported);", "public void validateRpd11s10()\n {\n // This guideline cannot be automatically tested.\n }", "public boolean setVariable(int n10, Object object) {\n int n11 = 149;\n if (n11 == n10) {\n object = (VersionInfo)object;\n this.D((VersionInfo)object);\n return 1 != 0;\n } else {\n n11 = 36;\n if (n11 == n10) {\n object = (Boolean)object;\n n10 = (int)(((Boolean)object).booleanValue() ? 1 : 0);\n this.C(n10 != 0);\n return 1 != 0;\n } else {\n n11 = 23;\n if (n11 != n10) return 0 != 0;\n object = (c$a)object;\n this.B((c$a)object);\n }\n }\n return 1 != 0;\n }", "public void setEnabled(boolean enabled) {\n/* 960 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void httpUrlFetch(ohos.miscservices.httpaccess.data.RequestData r10, ohos.miscservices.httpaccess.HttpProbe r11) {\r\n /*\r\n // Method dump skipped, instructions count: 376\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: ohos.miscservices.httpaccess.HttpFetchImpl.httpUrlFetch(ohos.miscservices.httpaccess.data.RequestData, ohos.miscservices.httpaccess.HttpProbe):void\");\r\n }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Test\n public void testSetEndpointControlFeature()\n {\n ResourceType resourceType = new ResourceType(schemaFactory,\n JsonHelper.loadJsonDocument(ClassPathReferences.USER_RESOURCE_TYPE_JSON));\n Assertions.assertNotNull(resourceType.getFeatures());\n\n EndpointControlFeature endpointControlFeature = resourceType.getFeatures().getEndpointControlFeature();\n Assertions.assertNotNull(endpointControlFeature);\n Assertions.assertFalse(endpointControlFeature.isCreateDisabled());\n Assertions.assertFalse(endpointControlFeature.isGetDisabled());\n Assertions.assertFalse(endpointControlFeature.isListDisabled());\n Assertions.assertFalse(endpointControlFeature.isUpdateDisabled());\n Assertions.assertFalse(endpointControlFeature.isDeleteDisabled());\n Assertions.assertFalse(endpointControlFeature.isResourceTypeDisabled());\n\n endpointControlFeature.setCreateDisabled(true);\n endpointControlFeature.setGetDisabled(true);\n endpointControlFeature.setListDisabled(true);\n endpointControlFeature.setUpdateDisabled(true);\n endpointControlFeature.setDeleteDisabled(true);\n\n Assertions.assertTrue(resourceType.getFeatures().getEndpointControlFeature().isCreateDisabled());\n Assertions.assertTrue(resourceType.getFeatures().getEndpointControlFeature().isGetDisabled());\n Assertions.assertTrue(resourceType.getFeatures().getEndpointControlFeature().isListDisabled());\n Assertions.assertTrue(resourceType.getFeatures().getEndpointControlFeature().isUpdateDisabled());\n Assertions.assertTrue(resourceType.getFeatures().getEndpointControlFeature().isDeleteDisabled());\n Assertions.assertTrue(resourceType.getFeatures().getEndpointControlFeature().isResourceTypeDisabled());\n Assertions.assertTrue(resourceType.getFeatures().isResourceTypeDisabled());\n\n endpointControlFeature.setDeleteDisabled(false);\n Assertions.assertFalse(resourceType.getFeatures().getEndpointControlFeature().isResourceTypeDisabled());\n Assertions.assertFalse(resourceType.getFeatures().isResourceTypeDisabled());\n }", "public void setOverloaded(final boolean overloaded) {\n _overloaded = overloaded;\n }", "public void test2_0SetEnabledGetEnabled() throws Exception {\n getReverb(0);\n try {\n mReverb.setEnabled(true);\n assertTrue(\"invalid state from getEnabled\", mReverb.getEnabled());\n mReverb.setEnabled(false);\n assertFalse(\"invalid state to getEnabled\", mReverb.getEnabled());\n } catch (IllegalStateException e) {\n fail(\"setEnabled() in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "@Test\n public void testOptions() throws Exception {\n\n HttpURLConnection result = HttpUtil.options(\"http://localhost:9090/ehcache/rest/doesnotexist/1\");\n assertEquals(200, result.getResponseCode());\n assertEquals(\"application/vnd.sun.wadl+xml\", result.getContentType());\n\n String responseBody = HttpUtil.inputStreamToText(result.getInputStream());\n assertNotNull(responseBody);\n assertTrue(responseBody.matches(\"(.*)GET(.*)\"));\n assertTrue(responseBody.matches(\"(.*)PUT(.*)\"));\n assertTrue(responseBody.matches(\"(.*)DELETE(.*)\"));\n assertTrue(responseBody.matches(\"(.*)HEAD(.*)\"));\n }", "@Test\n public void apiVersionTest() {\n // TODO: test apiVersion\n }", "public boolean isSupported() {\n\t\treturn true;\r\n\t}", "@Test(timeout = 10000L)\n public void testSetLoadBalancerInformation() throws Exception {\n CommonDriverAdminTests.testSetLoadBalancerInformation(client);\n }", "public boolean hasI10() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "@Test(groups = { TestGroup.REST_API, TestGroup.SANITY, TestGroup.CORE})\n\tpublic void assertCORSisEnabledAndWorking()\n\t{\n\t\tString validOriginUrl = \"http://localhost:4200\";\n\t\tString invalidOriginUrl1 = \"http://localhost:4201\";\n\t\tString invalidOriginUrl2 = \"http://example.com\";\n\t\tRestAssured.basePath = \"alfresco/api/-default-/public/authentication/versions/1\";\n\t\trestClient.configureRequestSpec().setBasePath(RestAssured.basePath);\n\n\t\tRestRequest request = RestRequest.simpleRequest(HttpMethod.OPTIONS, \"tickets\");\n\n\t\t// Don't specify header Access-Control-Request-Method\n\t\trestClient.configureRequestSpec().addHeader(\"Origin\", validOriginUrl);\n\t\trestClient.process(request);\n\t\trestClient.assertStatusCodeIs(HttpStatus.UNAUTHORIZED);\n\n\t\t// request not allowed method\n\t\trestClient.configureRequestSpec().addHeader(\"Access-Control-Request-Method\", \"PATCH\");\n\t\trestClient.configureRequestSpec().addHeader(\"Origin\", validOriginUrl);\n\t\trestClient.process(request);\n\t\trestClient.assertStatusCodeIs(HttpStatus.FORBIDDEN);\n\n\t\t// request invalid method\n\t\trestClient.configureRequestSpec().addHeader(\"Access-Control-Request-Method\", \"invalid\");\n\t\trestClient.configureRequestSpec().addHeader(\"Origin\", validOriginUrl);\n\t\trestClient.process(request);\n\t\trestClient.assertStatusCodeIs(HttpStatus.FORBIDDEN);\n\n\t\t// use invalidOriginUrl1 as origin\n\t\trestClient.configureRequestSpec().addHeader(\"Access-Control-Request-Method\", \"POST\");\n\t\trestClient.configureRequestSpec().addHeader(\"Origin\", invalidOriginUrl1);\n\t\trestClient.process(request);\n\t\trestClient.assertStatusCodeIs(HttpStatus.FORBIDDEN);\n\n\t\t// use invalidOriginUrl2 as origin\n\t\trestClient.configureRequestSpec().addHeader(\"Origin\", invalidOriginUrl2);\n\t\trestClient.process(request);\n\t\trestClient.assertStatusCodeIs(HttpStatus.FORBIDDEN);\n\n\t\t// use validOriginUrl\n\t\trestClient.configureRequestSpec().addHeader(\"Access-Control-Request-Method\", \"POST\");\n\t\trestClient.configureRequestSpec().addHeader(\"Origin\", validOriginUrl);\n\t\trestClient.process(request);\n\n\t\trestClient.assertStatusCodeIs(HttpStatus.OK);\n\t\trestClient.assertHeaderValueContains(\"Access-Control-Allow-Origin\", validOriginUrl);\n\t\trestClient.assertHeaderValueContains(\"Access-Control-Allow-Credentials\", \"true\");\n\t\trestClient.assertHeaderValueContains(\"Access-Control-Max-Age\", \"10\");\n\t\trestClient.assertHeaderValueContains(\"Access-Control-Allow-Methods\", \"POST\");\n\t}", "boolean hasCompatibilityState();", "@Test\r\n public void testInternetConnection(){\r\n CheckConnection checkConnection = new CheckConnection();\r\n checkConnection.checkURL();\r\n }", "public boolean hasI10() {\n return ((bitField0_ & 0x00000200) == 0x00000200);\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkInfoPort() {\n\t\tboolean flag = oTest.checkInfoPort();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public void setIntAttribute10(String value) {\n setAttributeInternal(INTATTRIBUTE10, value);\n }", "@Test\n public void checkIfSupportedTest() {\n assertTrue(EngineController.checkIfSupported(\"getMaxRotateSpeed\"));\n assertTrue(EngineController.checkIfSupported(\"rotate 10 1\"));\n assertTrue(EngineController.checkIfSupported(\"orient\"));\n // check interface, that specific for engine\n assertTrue(EngineController.checkIfSupported(\"getMaxThrust\"));\n assertTrue(EngineController.checkIfSupported(\"getCurrentThrust\"));\n assertTrue(EngineController.checkIfSupported(\"setThrust 333\"));\n }", "public void XtestSetGetApplicationPriority()\n {\n fail(\"Unimplemented test\");\n }", "public void testGetSetOpen() {\n exp = new Experiment(\"10\");\n exp.setOpen(false);\n assertEquals(\"get/setOpen does not work\", false, (boolean)exp.getOpen());\n }", "@Test\n\tpublic void testSendRedirect_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = true;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n void preFlightTestFromAllowedOrigin() {\n ResponseSpec response = client.options()\n .uri(BASE_GUESTBOOK_URL)\n .header(\"Access-Control-Request-Method\", \"GET\")\n .header(\"Origin\", \"http://allowed-origin.ca\")\n .exchange();\n\n response.expectHeader().valueEquals(\"Access-Control-Allow-Methods\", \"GET,POST\")\n .expectHeader().valueEquals(\"Access-Control-Allow-Origin\", \"http://allowed-origin.ca\");\n }", "@Test\n\tpublic void testSendRedirect_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\t\tString targetUrl = \"\";\n\t\tboolean http10Compatible = false;\n\n\t\tfixture.sendRedirect(request, response, targetUrl, http10Compatible);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testSAPHostControl_BindingStub_4()\n\t\tthrows Exception {\n\t\tURL endpointURL = new URL(\"\");\n\t\tjavax.xml.rpc.Service service = new DeployWSServiceLocator();\n\n\t\tSAPHostControl_BindingStub result = new SAPHostControl_BindingStub(endpointURL, service);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: com/sap/managementconsole/soap/axis/saphostcontrol/SAPHostControl_BindingStub : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "Compatibility compatibility();", "public void setTLS11(boolean value) {\n\t\tthis.tls11 = value;\n\t}", "private boolean isSupportedMethod(String sHTTPMethod) {\n return Arrays.asList(SUPPORTED_METHODS).contains(sHTTPMethod.toUpperCase());\n }", "@Test\n public void testPreflight() throws Exception {\n final HttpResponse response = Request.Options(\"http://localhost:\" + httpPort.getValue() + CORS_CONFIGURED_ENDPOINT_PATH)\n .addHeader(\"Origin\", CORS_TEST_ORIGIN)\n .addHeader(HttpHeaders.Names.ACCESS_CONTROL_REQUEST_METHOD, \"GET\")\n .addHeader(HttpHeaders.Names.ACCESS_CONTROL_REQUEST_HEADERS, \"X-Allow-Origin\")\n .execute().returnResponse();\n\n Header allowOrigin = response.getFirstHeader(HttpHeaders.Names.ACCESS_CONTROL_ALLOW_ORIGIN);\n Header allowMethods = response.getFirstHeader(HttpHeaders.Names.ACCESS_CONTROL_ALLOW_METHODS);\n\n assertNotNull(allowOrigin);\n assertNotNull(allowMethods);\n assertThat(allowOrigin.getValue(), equalTo(CORS_TEST_ORIGIN));\n assertThat(allowMethods.getValue(), containsString(\"GET\"));\n assertThat(allowMethods.getValue(), containsString(\"PUT\"));\n }", "@Test\n\tpublic void testSAPHostControl_BindingStub_2()\n\t\tthrows Exception {\n\t\tjavax.xml.rpc.Service service = new Service();\n\n\t\tSAPHostControl_BindingStub result = new SAPHostControl_BindingStub(service);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: com/sap/managementconsole/soap/axis/saphostcontrol/SAPHostControl_BindingStub : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@Test\n public void binCommercialTest() {\n assertFalse(authResponse.isBinCommercial());\n }", "@Test\r\n public void testGetApiBase() {\r\n // Not required\r\n }", "@Test\n public void testCreateLatestMajorOnPreviousMajorIfItFailsOnMajorVersion8() {\n deployWithModelForLatestMajorVersionFailing(8);\n }", "@Test\n public void testGetCustomClassicConsoleEnabled()\n {\n SmartProperties smart = new SmartProperties(\"testProperties/smart-classicConsoleEnabledFalse.properties\");\n assertEquals(1, smart.properties.size());\n assertEquals(false, smart.getBooleanProperty(CLASSIC_CONSOLE_ENABLED));\n }", "@Test\n void testVersionSelection() throws Exception {\n for (SqlGatewayRestAPIVersion version : SqlGatewayRestAPIVersion.values()) {\n if (version != SqlGatewayRestAPIVersion.V0) {\n CompletableFuture<TestResponse> versionResponse =\n restClient.sendRequest(\n serverAddress.getHostName(),\n serverAddress.getPort(),\n headerNot0,\n EmptyMessageParameters.getInstance(),\n EmptyRequestBody.getInstance(),\n Collections.emptyList(),\n version);\n\n TestResponse testResponse =\n versionResponse.get(timeout.getSize(), timeout.getUnit());\n assertThat(testResponse.getStatus()).isEqualTo(version.name());\n }\n }\n }", "@Test\n public void testCanRun() {\n final int oldestSupported = AccumuloDataVersion.ROOT_TABLET_META_CHANGES;\n final int currentVersion = AccumuloDataVersion.get();\n IntConsumer shouldPass = ServerContext::ensureDataVersionCompatible;\n IntConsumer shouldFail = v -> assertThrows(IllegalStateException.class,\n () -> ServerContext.ensureDataVersionCompatible(v));\n IntStream.rangeClosed(oldestSupported, currentVersion).forEach(shouldPass);\n IntStream.of(oldestSupported - 1, currentVersion + 1).forEach(shouldFail);\n }", "public void setSendingToHTTPEnabled(boolean isEnabled) {\r\n\t\tthis.settings.setProperty(\"toHTTPEnabled\", Boolean.toString(isEnabled));\r\n\t\tif(isEnabled == false) {\r\n\t\t\tif(this.settings.containsKey(\"dataformatsToHTTP\")) {\r\n\t\t\t\tthis.settings.remove(\"dataformatsToHTTP\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.addDataformatToSendToHTTP(FileType.XML);\r\n\t\t}\r\n\t\tthis.saveChanges();\r\n\t}", "@Test\n public void setStatus_StatusIsSet_Passes() throws Exception {\n test2JsonResponse.setStatus(test2status);\n Assert.assertEquals(test2JsonResponse.getStatus(), test2status);\n }", "@Test\n public void testBridgeProcessRequestMetadataDispatcherSupportabilityTracking() throws Exception {\n EnvironmentHolder holder = setupEnvironmentHolder(\"cat_enabled_dt_disabled_test\");\n\n try {\n String className = APISupportabilityTest.ProcessRequestMetadataDispatcherBridgeTestClass.class.getName();\n InstrumentTestUtils.createTransformerAndRetransformClass(className, \"getProcessRequestMetadata\", \"()V;\");\n\n final String processRequestMetadataMetric = \"Supportability/API/ProcessRequestMetadata/API\";\n new ProcessRequestMetadataDispatcherBridgeTestClass().getProcessRequestMetadata();\n\n Map<String, Integer> metricData = InstrumentTestUtils.getAndClearMetricData();\n Assert.assertNotNull(metricData.get(processRequestMetadataMetric));\n Assert.assertEquals(Integer.valueOf(1), metricData.get(processRequestMetadataMetric));\n } finally {\n holder.close();\n }\n }", "@Test\n public void testPermitUpgradeUberNew() {\n assertFalse(underTest.permitCmAndStackUpgrade(\"2.2.0\", \"3.2.0\"));\n\n assertFalse(underTest.permitExtensionUpgrade(\"2.2.0\", \"3.2.0\"));\n }", "public void setSupports(long supports);", "@Test\n public void optionRequest() {\n str = METHOD_OPTION + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.OPTIONS);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getHeader(null), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(null), \"\");\n }", "@Test\n\tpublic void testSAPHostControl_BindingStub_3()\n\t\tthrows Exception {\n\t\tjavax.xml.rpc.Service service = null;\n\n\t\tSAPHostControl_BindingStub result = new SAPHostControl_BindingStub(service);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: com/sap/managementconsole/soap/axis/saphostcontrol/SAPHostControl_BindingStub : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "@FlakyTest\n @Test\n public void testStartNetworkScanWithUnsupportedResponse() throws Exception {\n try {\n replaceInstance(RIL.class, \"mRadioVersion\", mRILUnderTest, mRadioVersionV15);\n } catch (Exception e) {\n }\n NetworkScanRequest nsr = getNetworkScanRequestForTesting();\n mRILUnderTest.startNetworkScan(nsr, obtainMessage());\n\n // Verify the v1.5 HAL methed is called firstly\n verify(mRadioProxy).startNetworkScan_1_5(mSerialNumberCaptor.capture(), any());\n\n // Before we find a way to trigger real RadioResponse method, emulate the behaivor.\n Consumer<RILRequest> unsupportedResponseEmulator = rr -> {\n mRILUnderTest.setCompatVersion(rr.getRequest(), RIL.RADIO_HAL_VERSION_1_4);\n mRILUnderTest.startNetworkScan(nsr, Message.obtain(rr.getResult()));\n };\n\n verifyRILUnsupportedResponse(mRILUnderTest, mSerialNumberCaptor.getValue(),\n RIL_REQUEST_START_NETWORK_SCAN, unsupportedResponseEmulator);\n\n // Verify the fallback method is invoked\n verify(mRadioProxy).startNetworkScan_1_4(eq(mSerialNumberCaptor.getValue() + 1), any());\n }", "public void setExtAttribute10(String value) {\n setAttributeInternal(EXTATTRIBUTE10, value);\n }", "public Builder setI10(int value) {\n bitField0_ |= 0x00000200;\n i10_ = value;\n onChanged();\n return this;\n }", "public void setAttr10(String attr10) {\n this.attr10 = attr10;\n }", "@POST(\"/TestConnection\")\n\tboolean testConnection() throws UnknownHostException;", "private void httpSetup() {\n OkHttpClient client = new OkHttpClient.Builder()\n .readTimeout(5, TimeUnit.SECONDS)\n .writeTimeout(5, TimeUnit.SECONDS)\n .build();\n\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .client(client)\n .build();\n\n service = retrofit.create(ValidatorAPI.class);\n }", "private void emitFrame(boolean r10) throws java.io.IOException {\n /*\n // Method dump skipped, instructions count: 121\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http2.Http2Stream.FramingSink.emitFrame(boolean):void\");\n }", "private boolean m46b(Context context, AdSize adSize, AttributeSet attributeSet) {\n if (AdUtil.m477b(context)) {\n return true;\n }\n m40a(context, \"You must have INTERNET and ACCESS_NETWORK_STATE permissions in AndroidManifest.xml.\", adSize, attributeSet);\n return false;\n }", "@Test\n public void testHttpApiV11() throws Exception {\n Configuration config = new Configuration(\"pri\", \"http://127.0.0.1:7001\", \"cYjKmvthKqVuFI29l5Xo+LHtkfJlIs0YnwEwXawW4NY=\");\n\n HttpApi api = new HttpApi(config);\n\n // request a withdrawal\n Result<Order> withdrawal = api.requestWithdrawal(0, \"BTC\", \"0.01\", \"mg2bfYdfii2GG13HK94jXBYPPCSWRmSiAS\", null);\n assertEquals(0, withdrawal.getCode().longValue());\n assertEquals(\"OK\", withdrawal.getMessage());\n assertEquals(Order.class, withdrawal.getObject().getClass());\n\n Result<Order> invalidWithdrawal = api.requestWithdrawal(0, \"ABC\", \"0.01\", \"mg2bfYdfii2GG13HK94jXBYPPCSWRmSiAS\", null);\n assertNotEquals(0, invalidWithdrawal.getCode().longValue());\n assertEquals(20000, invalidWithdrawal.getCode().longValue());\n assertNotEquals(\"OK\", invalidWithdrawal.getMessage());\n assertEquals(\"不支持该币种类型\", invalidWithdrawal.getMessage());\n assertNull(invalidWithdrawal.getObject());\n\n //get a new address\n Result<Address> newAddr = api.newAddress(\"TRX\");\n assertEquals(0, newAddr.getCode().longValue());\n assertEquals(\"OK\", newAddr.getMessage());\n assertEquals(Address.class, newAddr.getObject().getClass());\n\n Result<Address> invalidAddr = api.newAddress(\"ABC\");\n assertNotEquals(0, invalidAddr.getCode().longValue());\n assertEquals(20000, invalidAddr.getCode().longValue());\n assertNotEquals(\"OK\", invalidAddr.getMessage());\n assertEquals(\"不支持该币种类型\", invalidAddr.getMessage());\n assertNull(invalidAddr.getObject());\n\n // verify if an address is valid\n Result<Boolean> valid = api.verifyAddress(\"BTC\", newAddr.getObject().getAddress());\n assertEquals(0, valid.getCode().longValue());\n assertEquals(\"OK\", valid.getMessage());\n assertEquals(true, valid.getObject().booleanValue());\n\n Result<Boolean> invalidVerify = api.verifyAddress(\"BTC\", \"hdsdjasdlk\");\n assertNotEquals(0, invalidVerify.getCode().longValue());\n assertEquals(20003, invalidVerify.getCode().longValue());\n assertNotEquals(\"OK\", invalidVerify.getMessage());\n assertEquals(\"地址与类型不匹配\", invalidVerify.getMessage());\n assertNull(invalidVerify.getObject());\n\n // request an audit\n Result<String> auditId = api.requestAudit(\"BTC\", Utils.getTimestamp());\n assertEquals(0, auditId.getCode().longValue());\n assertEquals(\"OK\", auditId.getMessage());\n assertEquals(String.class, auditId.getObject().getClass());\n\n Result<String> invalidAuditId = api.requestAudit(\"ABC\", Utils.getTimestamp());\n assertNotEquals(0, invalidAuditId.getCode().longValue());\n assertEquals(20000, invalidAuditId.getCode().longValue());\n assertNotEquals(\"OK\", invalidAuditId.getMessage());\n assertEquals(\"不支持该币种类型\", invalidAuditId.getMessage());\n assertNull(invalidAuditId.getObject());\n\n // query a order\n Result<Order> order = api.queryOrder(withdrawal.getObject().getId());\n assertEquals(0, order.getCode().longValue());\n assertEquals(\"OK\", order.getMessage());\n assertEquals(Order.class, order.getObject().getClass());\n\n Result<Order> invalidOrder = api.queryOrder(\"-1\");\n assertNotEquals(0, invalidOrder.getCode().longValue());\n assertEquals(40400, invalidOrder.getCode().longValue());\n assertNotEquals(\"OK\", invalidOrder.getMessage());\n assertEquals(\"未找到指定订单号\", invalidOrder.getMessage());\n assertNull(invalidOrder.getObject());\n\n // query an audit order\n Result<Audit> audit = api.queryAudit(auditId.getObject());\n assertEquals(0, audit.getCode().longValue());\n assertEquals(\"OK\", audit.getMessage());\n assertEquals(Audit.class, audit.getObject().getClass());\n\n Result<Audit> invalidAudit = api.queryAudit(\"-fje2je2\");\n assertNotEquals(0, invalidAudit.getCode().longValue());\n assertEquals(500, invalidAudit.getCode().longValue());\n assertNotEquals(\"OK\", invalidAudit.getMessage());\n assertNull(invalidAudit.getObject());\n\n Result<Audit> invalidAudit2 = api.queryAudit(\"5c387ae65a669ac159ba7bcc\");\n assertNotEquals(0, invalidAudit2.getCode().longValue());\n assertEquals(40401, invalidAudit2.getCode().longValue());\n assertNotEquals(\"OK\", invalidAudit2.getMessage());\n assertEquals(\"未找到指定审计信息\", invalidAudit2.getMessage());\n assertNull(invalidAudit2.getObject());\n\n // query wallet balance\n Result<WalletBalance> balance = api.getBalance(\"BTC\");\n assertEquals(0, balance.getCode().longValue());\n assertEquals(\"OK\", balance.getMessage());\n assertEquals(WalletBalance.class, balance.getObject().getClass());\n\n Result<WalletBalance> invalidBalance = api.getBalance(\"ABC\");\n assertNotEquals(0, invalidBalance.getCode().longValue());\n assertEquals(20000, invalidBalance.getCode().longValue());\n assertNotEquals(\"OK\", invalidBalance.getMessage());\n assertEquals(\"不支持该币种类型\", invalidBalance.getMessage());\n assertNull(invalidBalance.getObject());\n }", "boolean hasReqardTypeTen();", "@Test\n public void setError_ErrorIsSet_Passes() throws Exception {\n test2JsonResponse.setError(test2error);\n Assert.assertEquals(test2JsonResponse.getError(), test2error);\n }", "@Test\n\tpublic void testVersion() {\n\t\tassertEquals(\"HTTP/1.0\", myReply.getVersion());\n\t}", "public void validateRpd22s10()\n {\n // This guideline cannot be automatically tested.\n }", "@Test\n public void testAreUiccApplicationsEnabled() throws Exception {\n mRILUnderTest.areUiccApplicationsEnabled(obtainMessage());\n verify(mRadioProxy, never()).areUiccApplicationsEnabled(mSerialNumberCaptor.capture());\n\n // Make radio version 1.5 to support the operation.\n try {\n replaceInstance(RIL.class, \"mRadioVersion\", mRILUnderTest, mRadioVersionV15);\n } catch (Exception e) {\n }\n mRILUnderTest.areUiccApplicationsEnabled(obtainMessage());\n verify(mRadioProxy).areUiccApplicationsEnabled(mSerialNumberCaptor.capture());\n verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(),\n RIL_REQUEST_GET_UICC_APPLICATIONS_ENABLEMENT);\n }", "@Test\n public void ncitVersionTest() {\n // TODO: test ncitVersion\n }", "@Test\n public void testEnableUiccApplications() throws Exception {\n mRILUnderTest.enableUiccApplications(false, obtainMessage());\n verify(mRadioProxy, never()).enableUiccApplications(anyInt(), anyBoolean());\n\n // Make radio version 1.5 to support the operation.\n try {\n replaceInstance(RIL.class, \"mRadioVersion\", mRILUnderTest, mRadioVersionV15);\n } catch (Exception e) {\n }\n mRILUnderTest.enableUiccApplications(false, obtainMessage());\n verify(mRadioProxy).enableUiccApplications(mSerialNumberCaptor.capture(), anyBoolean());\n verifyRILResponse(mRILUnderTest, mSerialNumberCaptor.getValue(),\n RIL_REQUEST_ENABLE_UICC_APPLICATIONS);\n }", "@Override\n public boolean isEnabled(byte[] content, boolean isRequest) {\n return true;\n }", "public void setSupportedVersion(String supportedVersion) {\n this.supportedVersion = supportedVersion;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkPlatform() {\n\t\tboolean flag = oTest.checkPlatform();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public void setMaintenanceModeSupported(boolean maintenanceModeSupported) {\r\n this.maintenanceModeSupported = maintenanceModeSupported;\r\n }", "@Test\n void sendGetRequest() {\n try {\n String response = HttpUtils.sendGet();\n assertFalse(response.contains(\"404\"));\n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n }", "public void setFeatureCapabilitiesSupported(java.lang.Boolean featureCapabilitiesSupported) {\r\n this.featureCapabilitiesSupported = featureCapabilitiesSupported;\r\n }", "@Test\n\tpublic void testRedirectView_4()\n\t\tthrows Exception {\n\t\tString url = \"\";\n\t\tboolean contextRelative = true;\n\t\tboolean http10Compatible = true;\n\n\t\tRedirectView result = new RedirectView(url, contextRelative, http10Compatible);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.UnsupportedClassVersionError: org/jsecurity/web/RedirectView : Unsupported major.minor version 51.0\n\t\t// at java.lang.ClassLoader.defineClass1(Native Method)\n\t\t// at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)\n\t\t// at java.lang.ClassLoader.defineClass(ClassLoader.java:621)\n\t\t// at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)\n\t\t// at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)\n\t\t// at java.net.URLClassLoader.access$000(URLClassLoader.java:58)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:197)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:190)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:306)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:247)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.InstanceCreationExpression.execute(InstanceCreationExpression.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:695)\n\t\tassertNotNull(result);\n\t}", "public boolean hasVar10() {\n return fieldSetFlags()[11];\n }", "@Test\n public void testMovieBooleanVal() {\n Client client = new JaxWsClient();\n MovieService movieService =\n (MovieService) client.getClient(new ClientInfo(MovieService.class,\n \"http://localhost:9002/Movie\", false));\n\n Assert.assertEquals(true, movieService.testMovieBooleanVal(true));\n }", "@SuppressWarnings(\"unused\")\n private void setTrafficEnabled(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n Boolean isEnabled = args.getBoolean(1);\n map.setTrafficEnabled(isEnabled);\n this.sendNoResult(callbackContext);\n }", "public void setVar10(java.lang.Integer value) {\n this.var10 = value;\n }", "@Override\n protected void setUp() throws Exception {\n super.setUp();\n mCallListExtensionForRCS = new CallListExtensionForRCS(mContext);\n }", "public void testIsCompatible() {\n System.out.println(\"isCompatible\"); // NOI18N\n \n TypeID requiredType = TYPEID_JAVA_LANG_STRING; // NOI18N\n PropertyValue instance = TypesSupport.createStringValue(FirstCD.PROPERTY_TEST); // NOI18N\n boolean expResult = true;\n boolean result = instance.isCompatible(requiredType);\n \n assertEquals(expResult, result);\n }", "private static boolean updatesImplementsCompatible(Mode actual) {\n boolean result;\n if /**/(actual.equals(UPDATES) || actual.equals(CLEARS)\n || actual.equals(RESTORES) || actual.equals(PRESERVES)) {\n result = true;\n }\n else {\n result = false;\n }\n return result;\n }", "private boolean I(MutableLiveData mutableLiveData, int n10) {\n if (n10 == 0) {\n synchronized (this) {\n long l10 = this.H;\n long l11 = 32;\n this.H = l10 |= l11;\n return true;\n }\n }\n return false;\n }", "@Test\n\tpublic void checkFalseTest() throws IOException {\n\t\tHttpClient httpClient = new HttpClient(10, 10);\n\t\tassertEquals(false, httpClient.check(\"http://localhost:5000/hs\"));\n\t}", "@Test\n public void testMinimumCloudSdkVersion() {\n assertTrue(CloudSdk.MINIMUM_VERSION.getMajorVersion() > 170);\n }", "public Wps10Validator() {\r\n super();\r\n xmlTypeValidator = XMLTypeValidator.INSTANCE;\r\n }", "@Test\n\tpublic void getBroswerVersionTest() {\n\n\t\t// Arrange\n\t\t// Act\n\t\ttry {\n\t\t\tCDPClient.setDebug(true);\n\t\t\tCDPClient.sendMessage(MessageBuilder.buildBrowserVersionMessage(id));\n\t\t\tresponseMessage = CDPClient.getResponseMessage(id, null);\n\t\t\t// Assert\n\t\t\tresult = new JSONObject(responseMessage);\n\t\t\tfor (String field : Arrays.asList(new String[] { \"protocolVersion\",\n\t\t\t\t\t\"product\", \"revision\", \"userAgent\", \"jsVersion\" })) {\n\t\t\t\tassertThat(result.has(field), is(true));\n\t\t\t}\n\t\t\t// ServiceWorker serviceWorker = CDPClient.getServiceWorker(URL, 10,\n\t\t\t// \"activated\");\n\t\t\t// System.out.println(serviceWorker.toString());\n\t\t\t// Assert.assertEquals(serviceWorker.getStatus(), \"activated\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Exception (ignored): \" + e.toString());\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n Discretize discretize0 = new Discretize();\n assertFalse(discretize0.getUseBinNumbers());\n \n Discretize discretize1 = new Discretize();\n discretize0.m_UseBinNumbers = true;\n discretize0.makeBinaryTipText();\n discretize0.getCapabilities();\n String string0 = discretize0.getAttributeIndices();\n assertEquals(\"first-last\", string0);\n }" ]
[ "0.5607573", "0.5562619", "0.5388968", "0.5385258", "0.5253403", "0.51386666", "0.5029555", "0.50179845", "0.49225935", "0.49023053", "0.4837738", "0.48300177", "0.47977015", "0.47968403", "0.47968403", "0.47968403", "0.47968403", "0.47565842", "0.47557595", "0.47275993", "0.47259718", "0.46881223", "0.46879166", "0.46732602", "0.4666153", "0.46651557", "0.46613726", "0.4648816", "0.46267438", "0.46032476", "0.45764437", "0.45652747", "0.4554641", "0.45459414", "0.45455244", "0.45266196", "0.4524178", "0.45177385", "0.45169207", "0.45116994", "0.45019245", "0.44951996", "0.44878596", "0.44866416", "0.448425", "0.4482055", "0.44469237", "0.44242847", "0.4424253", "0.44213742", "0.44208822", "0.44168514", "0.44166282", "0.4414179", "0.44132274", "0.4410399", "0.44012043", "0.43997574", "0.43942997", "0.4392008", "0.4392002", "0.439098", "0.43733218", "0.4372262", "0.43456635", "0.4342001", "0.4340563", "0.43405062", "0.43399122", "0.4334917", "0.4333684", "0.43161693", "0.4311387", "0.43031272", "0.42988664", "0.42746764", "0.42717087", "0.42680436", "0.42639455", "0.42631847", "0.4260031", "0.42596695", "0.42547205", "0.42543155", "0.42539045", "0.42516124", "0.424676", "0.42466012", "0.42408052", "0.42375907", "0.42366037", "0.42318702", "0.42316496", "0.4229972", "0.4227104", "0.4227016", "0.4222463", "0.42210978", "0.42201027", "0.42143548" ]
0.7615131
0
Run the void setUrl(String) method test.
@Test public void testSetUrl_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String url = ""; fixture.setUrl(url); // add additional test code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void setUrl() {\n g.setUrl(url);\n assertEquals(url, g.getUrl(), \"URL mismatch\");\n }", "public void setUrl(String url);", "public void setUrl(String url);", "public void setURL(String url);", "public void setUrl(URL url)\n {\n this.url = url;\n }", "public native final void setUrl(String url)/*-{\n this.url = url;\n }-*/;", "T setUrlTarget(String urlTarget);", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000002;\n url_ = value;\n }", "private void setURL(String url) {\n try {\n URL setURL = new URL(url);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public void setURL(String _url) { url = _url; }", "public void changeUrl() {\n url();\n }", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000001;\n url_ = value;\n }", "public void setUrl( String url )\n {\n this.url = url;\n }", "public void setUrl( String url )\n {\n this.url = url;\n }", "public final native void setUrl(String url) /*-{\n this.setUrl(url);\n }-*/;", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t\tthis.handleConfig(\"url\", url);\n\t}", "void setUrl(String url) {\n this.url = Uri.parse(url);\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public void setUrl (java.lang.String url) {\r\n\t\tthis.url = url;\r\n\t}", "public void setUrl(java.lang.String url) {\n this.url = url;\n }", "@Test\n public void testSetUri() {\n System.out.println(\"setUri\");\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public void setUrl(String url){\n\t\t_url=url;\n\t}", "public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}", "public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url)\n {\n this.url = url;\n }", "public void set_url(String url) throws Exception{\n\t\tthis.url = url;\n\t}", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n url_ = value;\n onChanged();\n return this;\n }", "public void setUrl(String Url) {\n this.Url = Url;\n }", "public void testSetURI() {\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "public void setUrl(Uri url) {\n this.urlString = url.toString();\n }", "@Test\n public void urlTest() {\n // TODO: test url\n }", "@BeforeTest(alwaysRun=true)\r\n\t@Parameters({\"browser\",\"url\"})\r\n\tpublic void set(String browser,String url)\r\n\t{\r\n\t\ttry\r\n\t\t{selectBrowser(browser);\r\n\t\tgeturl(url);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"not set up\");\r\n\t\t}\r\n\t}", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "public void setURL(String URL) {\n mURL = URL;\n }", "public void setURL(java.lang.String URL) {\n this.URL = URL;\n }", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setURL(java.lang.CharSequence value) {\n this.URL = value;\n }", "public void setURL(String url) {\n\t\tboolean changed = url==null ? this.url!=null : !url.equals(this.url);\n\t\tif (changed) {\n\t\t\tstop();\n\t\t\tthis.url = url;\n\t\t\tstart();\n\t\t}\n\t}", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public void setUrl(String url){\n this.URL3 = url;\n }", "public void setUrl(String url) {\n if(url != null && !url.endsWith(\"/\")){\n url += \"/\";\n }\n this.url = url;\n }", "@Override\n public void setUrl(String url) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Directory manager \" + directoryManager);\n }\n try {\n super.setUrl(directoryManager.replacePath(url));\n } catch (Exception e) {\n LOGGER.error(\"Exception thrown when setting URL \", e);\n throw new IllegalStateException(e);\n }\n }", "public void setURL(String url) {\n\t\tthis.url = url;\n\t}", "public void setServer(URL url) {\n\n\t}", "public void setUrl(String tmp) {\n this.url = tmp;\n }", "@BeforeClass\n public void GotoURL() {\n\t\tString URL = Base.GetDataFromPropertiesFile(\"url1\");\n\t\t// set implicit wt at page level\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(300, TimeUnit.SECONDS);\n\t\tdriver.get(URL);\n\t\t\n\n\t \n }", "@Test\n public void testSetImageLink() {\n System.out.println(\"setImageLink\");\n user.setImageLink(\"Img_Mau\");\n assertEquals(\"Img_Mau\", user.getImageLink());\n }", "public void setURL(String url)\n throws ConfigException\n {\n DriverConfig driver;\n \n if (_driverList.size() > 0)\n driver = _driverList.get(0);\n else\n throw new ConfigException(L.l(\"The driver must be assigned before the URL.\"));\n \n driver.setURL(url);\n }", "void setClickURL(java.lang.String clickURL);", "public void SetUrl(String url)\n\t{\n\t if (video_view.isPlaying())\n\t {\n\t video_view.stopPlayback();\n\t }\n\t \n Uri uri = Uri.parse(url);\n video_view.setVideoURI(uri);\n\t}", "CartogramWizardShowURL (String url)\n\t{\n\t\tmUrl = url;\n\t\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url == null ? null : url.trim();\n\t}", "public void setURL(String url) {\n \t\tblueURL = url;\n\t}", "@Given(\"^the url of the application under test$\")\r\n\tpublic void getUrl() throws Exception {\n\t\tdriver.get(url);\r\n\t}", "public static void setString()\n\t{\n\t\turl = getText();\n\t}", "public final GetHTTP setUrl(final String url) {\n properties.put(URL_PROPERTY, url);\n return this;\n }", "public void setInputUrlValue(String value){\n WebElement urlField = driver.findElement(inputUrlLocator); \n setValue(urlField, value);\n \n }", "@Override\r\n\tpublic void getUrl() {\n\r\n\t}", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\r\n hc.setUrl(url);\r\n }", "public static void setTestConnectionUrl(String url) {\n TEST_CONNECTION_URL = url;\n }", "public void setUrl(String url) {\n\t\tthis.url = utf8URLencode(url);\n\t}", "public void getUrl(String url) {\n\t\tdriver.get(url);\n\t}", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n\n\t\ttry {\n\t\t\tthis.url = new URL(url);\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tthis.httpsEnabled = true;\n\t\t\t}\n\t\t}\n\t\tcatch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public URL setURL(URL url) {\r\n if (url == null)\r\n throw new IllegalArgumentException(\r\n \"A null url is not an acceptable value for a PackageSite\");\r\n URL oldURL = url;\r\n myURL = url;\r\n return oldURL;\r\n }", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setHTTP_URL(String url) {\r\n\t\ttry {\r\n\t\t\tURL u = new URL(url);\r\n\t\t\tu.toURI();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\tthis.settings.setProperty(\"HTTP_URL\", url);\r\n\t\tthis.saveChanges();\r\n\t}", "public void setFileUrl(String fileUrl);", "@Test\n public void testSetAndGetPageUrl() {\n System.out.println(\"getPageUrl\");\n TextRegion instance = new TextRegion();\n assertNull(instance.getPageUrl());\n String expResult = \"pageUrl\";\n instance.setPageUrl(expResult);\n String result = instance.getPageUrl();\n assertEquals(expResult, result);\n assertEquals(0.0f, instance.getConfidence(), 0.001f);\n assertNull(instance.getImageUrl());\n assertNull(instance.getOrder());\n assertNull(instance.getRegion());\n assertNull(instance.getResourceId());\n assertNull(instance.getText());\n }" ]
[ "0.8404801", "0.79343724", "0.79343724", "0.7838917", "0.7703506", "0.7542278", "0.752034", "0.73490334", "0.73466516", "0.7324141", "0.73072886", "0.7303716", "0.7299219", "0.7299219", "0.7252338", "0.7233456", "0.72304946", "0.719876", "0.7167014", "0.7167014", "0.7167014", "0.71510077", "0.71230793", "0.7120765", "0.71149546", "0.71149546", "0.7101375", "0.7069604", "0.7069604", "0.7068261", "0.7068261", "0.7068261", "0.7068261", "0.7068261", "0.7068261", "0.7068261", "0.7068261", "0.70490915", "0.7038318", "0.70365626", "0.7033374", "0.7020504", "0.70075583", "0.7005214", "0.7002235", "0.69940186", "0.69918084", "0.6973413", "0.69687444", "0.69668514", "0.6923594", "0.69164735", "0.6910053", "0.6910053", "0.6910053", "0.6910053", "0.68670017", "0.6825063", "0.68204343", "0.68204343", "0.6819071", "0.6810079", "0.6803332", "0.6786757", "0.6782685", "0.67522466", "0.67091924", "0.6687048", "0.65914047", "0.65714276", "0.65619", "0.6546811", "0.6538322", "0.65342796", "0.6498598", "0.64913684", "0.64859784", "0.64825815", "0.6477332", "0.64603484", "0.64603484", "0.64603484", "0.6457254", "0.644709", "0.64411163", "0.6435004", "0.64337236", "0.64337236", "0.64337236", "0.64337236", "0.64337236", "0.64337236", "0.64337236", "0.64337236", "0.6410397", "0.6376849", "0.63727045", "0.6360643", "0.6360061", "0.6337066" ]
0.7600061
5
Run the String urlEncode(String,String) method test.
@Test public void testUrlEncode_1() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String input = ""; String encodingScheme = ""; String result = fixture.urlEncode(input, encodingScheme); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public abstract String encodeURL(CharSequence url);", "@Test\n\tpublic void testUrlEncode_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test(expected = java.io.UnsupportedEncodingException.class)\n\tpublic void testUrlEncode_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public static String urlEncode(String inText)\n {\n try\n {\n return URLEncoder.encode(inText, \"UTF-8\");\n }\n catch(java.io.UnsupportedEncodingException e)\n {\n Log.error(\"invalid encoding for url encoding: \" + e);\n\n return \"error\";\n }\n }", "private static String urlEncode(String toEncode) throws UnsupportedEncodingException{\r\n\t\treturn URLEncoder.encode(toEncode, \"UTF-8\");\r\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}", "public void testEncodePath() throws Exception {\n\n Object[] test_values = {\n new String[]{\"abc def\", \"abc%20def\"},\n new String[]{\"foo/bar?n=v&N=V\", \"foo/bar%3Fn=v&N=V\"}\n };\n for (int i = 0; i < test_values.length; i++) {\n String tests[] = (String[]) test_values[i];\n String original = tests[0];\n String expected = tests[1];\n\n String result = NetUtils.encodePath(original);\n String message = \"Test \" +\n \" original \" + \"'\" + original + \"'\";\n assertEquals(message, expected, result);\n }\n }", "private static String encodeurl(String url) \n { \n\n try { \n String prevURL=\"\"; \n String decodeURL=url; \n while(!prevURL.equals(decodeURL)) \n { \n prevURL=decodeURL; \n decodeURL=URLDecoder.decode( decodeURL, \"UTF-8\" ); \n } \n return decodeURL.replace('\\\\', '/'); \n } catch (UnsupportedEncodingException e) { \n return \"Issue while decoding\" +e.getMessage(); \n } \n }", "private String urlEncode(String str) {\n String charset = StandardCharsets.UTF_8.name();\n try {\n return URLEncoder.encode(str, charset);\n } catch (UnsupportedEncodingException e) {\n JrawUtils.logger().error(\"Unsupported charset: \" + charset);\n return null;\n }\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}", "@Test\n public void loadPage_EncodeRequest() throws Exception {\n final String htmlContent\n = \"<html><head><title>foo</title></head><body>\\n\"\n + \"</body></html>\";\n\n final WebClient client = getWebClient();\n\n final MockWebConnection webConnection = new MockWebConnection();\n webConnection.setDefaultResponse(htmlContent);\n client.setWebConnection(webConnection);\n\n // with query string not encoded\n HtmlPage page = client.getPage(\"http://first?a=b c&d=\\u00E9\\u00E8\");\n String expected;\n final boolean ie = getBrowserVersion().isIE();\n if (ie) {\n expected = \"?a=b%20c&d=\\u00E9\\u00E8\";\n }\n else {\n expected = \"?a=b%20c&d=%E9%E8\";\n }\n assertEquals(\"http://first/\" + expected, page.getWebResponse().getWebRequest().getUrl());\n\n // with query string already encoded\n page = client.getPage(\"http://first?a=b%20c&d=%C3%A9%C3%A8\");\n assertEquals(\"http://first/?a=b%20c&d=%C3%A9%C3%A8\", page.getWebResponse().getWebRequest().getUrl());\n\n // with query string partially encoded\n page = client.getPage(\"http://first?a=b%20c&d=e f\");\n assertEquals(\"http://first/?a=b%20c&d=e%20f\", page.getWebResponse().getWebRequest().getUrl());\n\n // with anchor\n page = client.getPage(\"http://first?a=b c#myAnchor\");\n assertEquals(\"http://first/?a=b%20c#myAnchor\", page.getWebResponse().getWebRequest().getUrl());\n\n // with query string containing encoded \"&\", \"=\", \"+\", \",\", and \"$\"\n page = client.getPage(\"http://first?a=%26%3D%20%2C%24\");\n assertEquals(\"http://first/?a=%26%3D%20%2C%24\", page.getWebResponse().getWebRequest().getUrl());\n\n // with character to encode in path\n page = client.getPage(\"http://first/page 1.html\");\n assertEquals(\"http://first/page%201.html\", page.getWebResponse().getWebRequest().getUrl());\n\n // with character to encode in path\n page = client.getPage(\"http://first/page 1.html\");\n assertEquals(\"http://first/page%201.html\", page.getWebResponse().getWebRequest().getUrl());\n }", "public static String encodeURL(String url) {\n\n\t\tint len = url.length();\n\n\t\t// add a little (6.25%) to leave room for some expansion during encoding\n\t\tlen += len >>> 4;\n\n\t\treturn appendURL(new StringBuffer(len), url).toString();\n\t}", "public static String encode(String argStr) {\r\n\t\tString result = argStr;\r\n\t\ttry {\r\n\t\t\tif (result != null && !result.isEmpty()) {\r\n\t\t\t\tresult = URLDecoder.decode(result, UTF_8);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// ignore\r\n\t\t}\r\n\t\tresult = encodeExplicit(result);\r\n\t\treturn result;\r\n\t}", "public String encodeURL(String url) {\n return manager.encodeUrl(this, url);\n }", "private static String encodeURI(String url) {\n\t\tStringBuffer uri = new StringBuffer(url.length());\n\t\tint length = url.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tchar c = url.charAt(i);\n\n\t\t\tswitch (c) {\n\t\t\t\tcase '!':\n\t\t\t\tcase '#':\n\t\t\t\tcase '$':\n\t\t\t\tcase '%':\n\t\t\t\tcase '&':\n\t\t\t\tcase '\\'':\n\t\t\t\tcase '(':\n\t\t\t\tcase ')':\n\t\t\t\tcase '*':\n\t\t\t\tcase '+':\n\t\t\t\tcase ',':\n\t\t\t\tcase '-':\n\t\t\t\tcase '.':\n\t\t\t\tcase '/':\n\t\t\t\tcase '0':\n\t\t\t\tcase '1':\n\t\t\t\tcase '2':\n\t\t\t\tcase '3':\n\t\t\t\tcase '4':\n\t\t\t\tcase '5':\n\t\t\t\tcase '6':\n\t\t\t\tcase '7':\n\t\t\t\tcase '8':\n\t\t\t\tcase '9':\n\t\t\t\tcase ':':\n\t\t\t\tcase ';':\n\t\t\t\tcase '=':\n\t\t\t\tcase '?':\n\t\t\t\tcase '@':\n\t\t\t\tcase 'A':\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'C':\n\t\t\t\tcase 'D':\n\t\t\t\tcase 'E':\n\t\t\t\tcase 'F':\n\t\t\t\tcase 'G':\n\t\t\t\tcase 'H':\n\t\t\t\tcase 'I':\n\t\t\t\tcase 'J':\n\t\t\t\tcase 'K':\n\t\t\t\tcase 'L':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'N':\n\t\t\t\tcase 'O':\n\t\t\t\tcase 'P':\n\t\t\t\tcase 'Q':\n\t\t\t\tcase 'R':\n\t\t\t\tcase 'S':\n\t\t\t\tcase 'T':\n\t\t\t\tcase 'U':\n\t\t\t\tcase 'V':\n\t\t\t\tcase 'W':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'Y':\n\t\t\t\tcase 'Z':\n\t\t\t\tcase '[':\n\t\t\t\tcase ']':\n\t\t\t\tcase '_':\n\t\t\t\tcase 'a':\n\t\t\t\tcase 'b':\n\t\t\t\tcase 'c':\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'e':\n\t\t\t\tcase 'f':\n\t\t\t\tcase 'g':\n\t\t\t\tcase 'h':\n\t\t\t\tcase 'i':\n\t\t\t\tcase 'j':\n\t\t\t\tcase 'k':\n\t\t\t\tcase 'l':\n\t\t\t\tcase 'm':\n\t\t\t\tcase 'n':\n\t\t\t\tcase 'o':\n\t\t\t\tcase 'p':\n\t\t\t\tcase 'q':\n\t\t\t\tcase 'r':\n\t\t\t\tcase 's':\n\t\t\t\tcase 't':\n\t\t\t\tcase 'u':\n\t\t\t\tcase 'v':\n\t\t\t\tcase 'w':\n\t\t\t\tcase 'x':\n\t\t\t\tcase 'y':\n\t\t\t\tcase 'z':\n\t\t\t\tcase '~':\n\t\t\t\t\turi.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tStringBuffer result = new StringBuffer(3);\n\t\t\t\t\tString s = String.valueOf(c);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] data = s.getBytes(\"UTF8\");\n\t\t\t\t\t\tfor (int j = 0; j < data.length; j++) {\n\t\t\t\t\t\t\tresult.append('%');\n\t\t\t\t\t\t\tString hex = Integer.toHexString(data[j]);\n\t\t\t\t\t\t\tresult.append(hex.substring(hex.length() - 2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\turi.append(result.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException ex) {\n\t\t\t\t\t\t// should never happen\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn uri.toString();\n\t}", "@Test\n public void testIsURLEncoded() {\n System.out.println(\"isURLEncoded\");\n boolean expResult = true;\n boolean result = instance.isURLEncoded();\n assertEquals(expResult, result);\n }", "@Override\n public String encodeURL(String arg0) {\n return null;\n }", "@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}", "public final String urlEncode() {\n\t\treturn urlEncode(UTF_8);\n\t}", "@Override\n protected boolean shouldEncodeUrls() {\n return isShouldEncodeUrls();\n }", "@Override\n public String encodeURL(String url) {\n return this._getHttpServletResponse().encodeURL(url);\n }", "public static String urlEncode(String str) {\n try {\n return URLEncoder.encode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }", "public String encodeUrl(String s) {\n\t\treturn null;\n\t}", "private String URLEncode (String sStr) {\r\n if (sStr==null) return null;\r\n\r\n int iLen = sStr.length();\r\n StringBuffer sEscaped = new StringBuffer(iLen+100);\r\n char c;\r\n for (int p=0; p<iLen; p++) {\r\n c = sStr.charAt(p);\r\n switch (c) {\r\n case ' ':\r\n sEscaped.append(\"%20\");\r\n break;\r\n case '/':\r\n sEscaped.append(\"%2F\");\r\n break;\r\n case '\"':\r\n sEscaped.append(\"%22\");\r\n break;\r\n case '#':\r\n sEscaped.append(\"%23\");\r\n break;\r\n case '%':\r\n sEscaped.append(\"%25\");\r\n break;\r\n case '&':\r\n sEscaped.append(\"%26\");\r\n break;\r\n case (char)39:\r\n sEscaped.append(\"%27\");\r\n break;\r\n case '+':\r\n sEscaped.append(\"%2B\");\r\n break;\r\n case ',':\r\n sEscaped.append(\"%2C\");\r\n break;\r\n case '=':\r\n sEscaped.append(\"%3D\");\r\n break;\r\n case '?':\r\n sEscaped.append(\"%3F\");\r\n break;\r\n case 'á':\r\n sEscaped.append(\"%E1\");\r\n break;\r\n case 'é':\r\n sEscaped.append(\"%E9\");\r\n break;\r\n case 'í':\r\n sEscaped.append(\"%ED\");\r\n break;\r\n case 'ó':\r\n sEscaped.append(\"%F3\");\r\n break;\r\n case 'ú':\r\n sEscaped.append(\"%FA\");\r\n break;\r\n case 'Á':\r\n sEscaped.append(\"%C1\");\r\n break;\r\n case 'É':\r\n sEscaped.append(\"%C9\");\r\n break;\r\n case 'Í':\r\n sEscaped.append(\"%CD\");\r\n break;\r\n case 'Ó':\r\n sEscaped.append(\"%D3\");\r\n break;\r\n case 'Ú':\r\n sEscaped.append(\"%DA\");\r\n break;\r\n case 'à':\r\n sEscaped.append(\"%E0\");\r\n break;\r\n case 'è':\r\n sEscaped.append(\"%E8\");\r\n break;\r\n case 'ì':\r\n sEscaped.append(\"%EC\");\r\n break;\r\n case 'ò':\r\n sEscaped.append(\"%F2\");\r\n break;\r\n case 'ù':\r\n sEscaped.append(\"%F9\");\r\n break;\r\n case 'À':\r\n sEscaped.append(\"%C0\");\r\n break;\r\n case 'È':\r\n sEscaped.append(\"%C8\");\r\n break;\r\n case 'Ì':\r\n sEscaped.append(\"%CC\");\r\n break;\r\n case 'Ò':\r\n sEscaped.append(\"%D2\");\r\n break;\r\n case 'Ù':\r\n sEscaped.append(\"%D9\");\r\n break;\r\n case 'ñ':\r\n sEscaped.append(\"%F1\");\r\n break;\r\n case 'Ñ':\r\n sEscaped.append(\"%D1\");\r\n break;\r\n case 'ç':\r\n sEscaped.append(\"%E7\");\r\n break;\r\n case 'Ç':\r\n sEscaped.append(\"%C7\");\r\n break;\r\n case 'ô':\r\n sEscaped.append(\"%F4\");\r\n break;\r\n case 'Ô':\r\n sEscaped.append(\"%D4\");\r\n break;\r\n case 'ö':\r\n sEscaped.append(\"%F6\");\r\n break;\r\n case 'Ö':\r\n sEscaped.append(\"%D6\");\r\n break;\r\n case '`':\r\n sEscaped.append(\"%60\");\r\n break;\r\n case '¨':\r\n sEscaped.append(\"%A8\");\r\n break;\r\n default:\r\n sEscaped.append(c);\r\n break;\r\n }\r\n } // next\r\n\r\n return sEscaped.toString();\r\n }", "public String encodeURL(String s) {\n\t\treturn null;\n\t}", "public static String URLEncode (String str) {\n\ttry {\n\t return java.net.URLEncoder.encode (str, \"UTF-8\");\n\t} catch (UnsupportedEncodingException e) {\n\t e.printStackTrace ();\n\t} \n\treturn str;\n }", "@Override\n\tpublic String encodeURL(String url) {\n\t\treturn null;\n\t}", "@Override\n @SuppressWarnings(\"all\")\n public String encodeUrl(String arg0) {\n\n return null;\n }", "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 }", "@Test\n public void encodeParameter() {\n assertEquals(\"abcABC123\", OAuth10.encodeParameter(\"abcABC123\"));\n assertEquals(\"-._~\", OAuth10.encodeParameter(\"-._~\"));\n assertEquals(\"%25\", OAuth10.encodeParameter(\"%\"));\n assertEquals(\"%2B\", OAuth10.encodeParameter(\"+\"));\n assertEquals(\"%26%3D%2A\", OAuth10.encodeParameter(\"&=*\"));\n assertEquals(\"%0A\", OAuth10.encodeParameter(\"\\n\"));\n assertEquals(\"%20\", OAuth10.encodeParameter(\"\\u0020\"));\n assertEquals(\"%7F\", OAuth10.encodeParameter(\"\\u007F\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n assertEquals(\"%E3%80%81\", OAuth10.encodeParameter(\"\\u3001\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n }", "@Override\n public String encodeUrl(String arg0) {\n return null;\n }", "protected native String encodeURIComponent(String text) /*-{\r\n\t\treturn encodeURIComponent(text);\r\n\t}-*/;", "private String encodeURILikeJavascript(String s) {\n log.info(\"Entering encodeURILikeJavascript\");\n String result = null;\n\n try {\n result = URLEncoder.encode(s, \"UTF-8\")\n .replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%7E\", \"~\");\n } catch (UnsupportedEncodingException e) {\n result = s;\n }\n\n return result;\n }", "@Override\n protected final String encode(String unencoded) {\n try {\n return StringUtils.isBlank(unencoded) ? \"\" : URLEncoder.encode(unencoded, \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n java.util.logging.Logger.getLogger(PostRedirectGetWithCookiesFormHelperImpl.class.getName()).log(Level.SEVERE, null, ex);\n return unencoded;\n }\n }", "@Override\n\tpublic String encodeUrl(String url) {\n\t\treturn null;\n\t}", "public static String encodeURL(String string) {\n\t\treturn Utils.encodeURL(string);\n\t}", "public static String encode(String s) {\n // return java.net.URLEncoder.encode(s);\n /*\n ** The only encoded chars are \"<>%=/\", chars < space and chars >= 127\n ** (including cr/lf, ...)\n ** A leading and/or trailing space is also encoded, all others are\n ** left alone\n **\n ** Encoding is %dd where dd are hex digits for the hex value encode\n **\n ** Check if needs encoding first, if not, simply return original string\n */\n char arr[] = s.toCharArray();\n int len = arr.length;\n for(int i=0; i < len; i++) {\n char ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n StringBuffer sb = new StringBuffer();\n for(i=0; i < len; i++) {\n ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n byte b = (byte)arr[i];\n sb.append('%');\n char c = Character.forDigit((b >> 4) & 0xf, 16);\n sb.append(c);\n c = Character.forDigit(b & 0xf, 16);\n sb.append(c);\n } else {\n sb.append(arr[i]);\n }\n }\n s = sb.toString();\n break;\n }\n }\n return s;\n }", "private String encode(String value) {\n String encoded = \"\";\n try {\n encoded = URLEncoder.encode(value, \"UTF-8\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n String sb = \"\";\n char focus;\n for (int i = 0; i < encoded.length(); i++) {\n focus = encoded.charAt(i);\n if (focus == '*') {\n sb += \"%2A\";\n } else if (focus == '+') {\n sb += \"%20\";\n } else if (focus == '%' && i + 1 < encoded.length() && encoded.charAt(i + 1) == '7' && encoded.charAt(i + 2) == 'E') {\n sb += '~';\n i += 2;\n } else {\n sb += focus;\n }\n }\n return sb.toString();\n }", "@Test\n public void encodeTest() throws Exception{\n this.mvc.perform(post(\"/encode?message=a little of this and a little of that&key=mcxrstunopqabyzdefghijklvw\")\n .accept(MediaType.TEXT_PLAIN))\n .andExpect(status().isOk()) // 200 class\n .andExpect(content().string(\"m aohhas zt hnog myr m aohhas zt hnmh\")); // expected good\n }", "public static String encode(String str)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn java.net.URLEncoder.encode(str, \"UTF-8\");\r\n\t\t}\r\n\t\tcatch(java.io.UnsupportedEncodingException ue)\r\n\t\t{\r\n\t\t\treturn str;\r\n\t\t}\r\n\t}", "@Test\n public void testEncoding() throws URISyntaxException, MalformedURLException, UnsupportedEncodingException {\n String encoded = URLEncoder.encode(\"*,\", \"UTF-8\");\n\n //legal to use * and ,\n URI uri = new URI(\"http://localhost/ehcache/sampleCache1/*,\");\n URI url2 = uri.resolve(\"http://localhost/ehcache/sampleCache1/*,\");\n\n }", "public static void main(String[] args) throws Exception {\n \n System.out.println(EncodeMethod(\"AAAABBBCCDAA\"));\n\n System.out.println(DecodeMethod(EncodeMethod(\"AAAABBBCCDAA\")));\n }", "static String uriEscapeString(String unescaped) {\n try {\n return URLEncoder.encode(unescaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }", "@Test\n public void testNormalizeToStringWithSpaceURL() throws Exception {\n AbstractURLHandler handler = new TestURLHandler();\n String normalizedUrl = handler.normalizeToString(new URL(\n \"http://ant.apache.org/ivy/url with space/ivy-1.0.xml\"));\n assertEquals(\"http://ant.apache.org/ivy/url%20with%20space/ivy-1.0.xml\", normalizedUrl);\n }", "@Test\n public void testNormalizeToStringWithPlusCharacter() throws Exception {\n AbstractURLHandler handler = new TestURLHandler();\n String normalizedUrl = handler.normalizeToString(new URL(\n \"http://ant.apache.org/ivy/ivy-1.+.xml\"));\n assertEquals(\"http://ant.apache.org/ivy/ivy-1.%2B.xml\", normalizedUrl);\n }", "private String encodeValue(String value) {\r\n try {\r\n return URLEncoder.encode(value, \"UTF8\");\r\n } catch (UnsupportedEncodingException e) {\r\n // it should not occur since UTF8 should be supported universally\r\n throw new ExcelWrapperException(\"UTF8 encoding is not supported : \" + e.getMessage());\r\n }\r\n }", "public static String encode(String anyURI){\n int len = anyURI.length(), ch;\n StringBuffer buffer = new StringBuffer(len*3);\n \n // for each character in the anyURI\n int i = 0;\n for (; i < len; i++) {\n ch = anyURI.charAt(i);\n // if it's not an ASCII character, break here, and use UTF-8 encoding\n if (ch >= 128)\n break;\n if (gNeedEscaping[ch]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[ch]);\n buffer.append(gAfterEscaping2[ch]);\n }\n else {\n buffer.append((char)ch);\n }\n }\n \n // we saw some non-ascii character\n if (i < len) {\n // get UTF-8 bytes for the remaining sub-string\n byte[] bytes = null;\n byte b;\n try {\n bytes = anyURI.substring(i).getBytes(\"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n // should never happen\n return anyURI;\n }\n len = bytes.length;\n \n // for each byte\n for (i = 0; i < len; i++) {\n b = bytes[i];\n // for non-ascii character: make it positive, then escape\n if (b < 0) {\n ch = b + 256;\n buffer.append('%');\n buffer.append(gHexChs[ch >> 4]);\n buffer.append(gHexChs[ch & 0xf]);\n }\n else if (gNeedEscaping[b]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[b]);\n buffer.append(gAfterEscaping2[b]);\n }\n else {\n buffer.append((char)b);\n }\n }\n }\n \n // If encoding happened, create a new string;\n // otherwise, return the orginal one.\n if (buffer.length() != len)\n return buffer.toString();\n else\n return anyURI;\n }", "public static String percentEncode(String s) {\r\n\t\t//s = _percentEncode( s ); // the original method, from java.net\r\n\t\ts = encodeURL(s, \"UTF-8\");\r\n\t\treturn s;\r\n\t}", "public byte[] encode(byte[] bytes) {\n/* 199 */ return encodeUrl(WWW_FORM_URL_SAFE, bytes);\n/* */ }", "public String encode(String longUrl) {\n String key = \"\";\n do {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n int r = rand.nextInt(charSet.length());\n sb.append(charSet.charAt(r));\n }\n key = sb.toString();\n } while (map.containsKey(key));\n \n map.put(BASE_HOST + key, longUrl);\n return BASE_HOST + key;\n }", "public String c(String str) {\n String str2;\n String str3 = null;\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n try {\n String host = Uri.parse(str).getHost();\n String aBTestValue = TUnionTradeSDK.getInstance().getABTestService().getABTestValue(\"config\");\n if (!TextUtils.isEmpty(aBTestValue)) {\n String optString = new JSONObject(aBTestValue).optString(\"domain\");\n TULog.d(\"abTestRequestUrl, url: \" + str + \" host: \" + host + \" domains: \" + optString, new Object[0]);\n if (!TextUtils.isEmpty(host) && !TextUtils.isEmpty(optString)) {\n JSONArray jSONArray = new JSONArray(optString);\n if (jSONArray.length() > 0) {\n int length = jSONArray.length();\n int i = 0;\n while (true) {\n if (i >= length) {\n break;\n } else if (host.contains(jSONArray.getString(i))) {\n String encode = URLEncoder.encode(str, \"utf-8\");\n try {\n TULog.d(\"abTestRequestUrl, loginJumpUrl :\" + str2, new Object[0]);\n } catch (Exception unused) {\n }\n str3 = str2;\n break;\n } else {\n i++;\n }\n }\n }\n }\n }\n } catch (Exception unused2) {\n }\n return str3;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"\" +ToUtf8Util.toHexString(\"大连\"));\n\t\ttry {\n\t\t\tSystem.out.println(\"\" + URLEncoder.encode(\"大连\",\"utf-8\"));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private String encodeValue(final String dirtyValue) {\n String cleanValue = \"\";\n\n try {\n cleanValue = URLEncoder.encode(dirtyValue, StandardCharsets.UTF_8.name())\n .replace(\"+\", \"%20\");\n } catch (final UnsupportedEncodingException e) {\n }\n\n return cleanValue;\n }", "public static final byte[] encodeUrl(BitSet urlsafe, byte[] bytes) {\n/* 127 */ if (bytes == null) {\n/* 128 */ return null;\n/* */ }\n/* 130 */ if (urlsafe == null) {\n/* 131 */ urlsafe = WWW_FORM_URL_SAFE;\n/* */ }\n/* */ \n/* 134 */ ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n/* 135 */ for (byte c : bytes) {\n/* 136 */ int b = c;\n/* 137 */ if (b < 0) {\n/* 138 */ b = 256 + b;\n/* */ }\n/* 140 */ if (urlsafe.get(b)) {\n/* 141 */ if (b == 32) {\n/* 142 */ b = 43;\n/* */ }\n/* 144 */ buffer.write(b);\n/* */ } else {\n/* 146 */ buffer.write(37);\n/* 147 */ char hex1 = Utils.hexDigit(b >> 4);\n/* 148 */ char hex2 = Utils.hexDigit(b);\n/* 149 */ buffer.write(hex1);\n/* 150 */ buffer.write(hex2);\n/* */ } \n/* */ } \n/* 153 */ return buffer.toByteArray();\n/* */ }", "public static String URIencoding(String word) {\n\t\tString result = word;\n\t\tword = word.replace(\" \", \"_\");\n\t\ttry {\n\t\t\tresult = URLEncoder.encode(word, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public static String encode(String in){\n in = in.replace(\"&\", \"&amp;\");\n in = in.replace(\"\\\"\", \"&quot;\");\n in = in.replace(\"<\", \"&lt;\");\n in = in.replace(\">\", \"&gt;\");\n log.debug(\"encoded string: \" + in);\n // FIXME: Consider double-encoding & if it is not part of &amp;\n return in;\n }", "public final String urlEncode(String encoding) {\n\n\t\tfinal StringBuilder out = new StringBuilder();\n\n\t\ttry {\n\t\t\turlEncode(out, encoding);\n\t\t} catch (IOException e) {\n\t\t\tnew IllegalStateException(e);// Should never happen.\n\t\t}\n\n\t\treturn out.toString();\n\t}", "@Test\n public void testEncode() {\n LOGGER.info(\"testEncode\");\n final String actual = new AtomString().encode();\n final String expected = \"0:\";\n assertEquals(expected, actual);\n }", "public static String encodeQuery(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n return retString;\n }", "private static String urlEncodeParameter(String parameter) throws UnsupportedEncodingException{\r\n\t\tint equal = parameter.indexOf(\"=\");\r\n\t\treturn urlEncode(parameter.substring(0, equal))+\"=\"+urlEncode(parameter.substring(equal+1));\r\n\t}", "public String encode(String longUrl) {\n StringBuilder sb = new StringBuilder();\n while (sb.length() < keyLength || shortToLong.containsKey(sb.toString())) {\n sb = new StringBuilder();\n for (int i = 0; i < keyLength; i++) {\n sb.append( alphabet.charAt( (int) Math.floor(Math.random()*alphabet.length()) ) );\n }\n }\n String key = sb.toString();\n longToShort.put(longUrl, key);\n shortToLong.put(key, longUrl);\n return \"htpp://tinyurl.com/\" + key;\n }", "public static String convertUrlToPunycodeIfNeeded(String url) {\n if (!Charset.forName(\"US-ASCII\").newEncoder().canEncode(url)) {\n if (url.toLowerCase().startsWith(\"http://\")) {\n url = \"http://\" + IDN.toASCII(url.substring(7));\n } else if (url.toLowerCase().startsWith(\"https://\")) {\n url = \"https://\" + IDN.toASCII(url.substring(8));\n } else {\n url = IDN.toASCII(url);\n }\n }\n return url;\n }", "public String encode(String longUrl) {\n while (!url2code.containsKey(longUrl)) {\n // generate code\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n sb.append(alphabet.charAt(rand.nextInt(62)));\n }\n // put code-url pair\n String code = sb.toString();\n if (!code2url.containsKey(code)) {\n code2url.put(code, longUrl);\n url2code.put(longUrl, code);\n }\n }\n\n return url2code.get(longUrl);\n }", "public static String encodeURI(String string) {\n\t\treturn Utils.encodeURI(string);\n\t}", "@org.junit.Test\n public void encodeHTML()\n {\n assertEquals(\"apos\", \"I can&#39;t do &#34;this&#34;\",\n Encodings.encodeHTMLAttribute(\"I can't do \\\"this\\\"\"));\n assertEquals(\"no replace\", \"just a test\",\n Encodings.encodeHTMLAttribute(\"just a test\"));\n assertEquals(\"empty\", \"\", Encodings.encodeHTMLAttribute(\"\"));\n }", "public static String encodeQueryValue(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n retString = replaceString(retString, \"&\", \"%26\");\n retString = replaceString(retString, \"?\", \"%3F\");\n retString = replaceString(retString, \"=\", \"%3D\");\n return retString;\n }", "public String encodeToUrlString() throws IOException {\n return encodeWritable(this);\n }", "public String encode(String longUrl) {\n while(map.containsKey(key)){\n key = r.nextInt(Integer.MAX_VALUE);//直到找到没有用过的key\n }\n map.put(key, longUrl);\n return \"http://tinyurl.com/\" + key;\n }", "public EncodeAndDecodeStrings() {}", "public static String encode(String toEncode)\n {\n return com.github.terefang.jldap.ldap.LDAPUrl.encode( toEncode);\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 }", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "public String encode(String longUrl) {\n\t int key = longUrl.hashCode();\n\t map.put(key, longUrl);\n\t return Integer.toString(key);\n\t }", "public String encode(String longUrl) {\n\n String shortUrl = getShortUrl();\n\n if(shortToLongUrl.containsKey(shortUrl)){\n shortUrl = getShortUrl();\n }\n\n shortToLongUrl.put(shortUrl, longUrl);\n return \"http://tinyurl.com/\" + shortUrl;\n }", "public abstract BridgeURL encodeBookmarkableURL(String baseURL, Map<String, List<String>> parameters);", "public static void main(String[] args) {\r\n\t\t\r\n\t\tString password=encode(\"asdfghjkl\");\r\n\t\tSystem.out.println(password);\r\n\t\tString p=\"asdfghjkl\";\r\n\t\tboolean result=encode(p).equals(password);\r\n\t\tSystem.out.println(result);\r\n\t\t\r\n\t\t\r\n\t}", "public static String utf8Encode(String str, String defultReturn) {\n if (!TextUtils.isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for decoding\\t and...\\n\";\n\n assertEquals(\"encode/decode\", test,\n Encodings.decodeEscapes(Encodings.encodeEscapes(test)));\n assertEquals(\"encode/decode\", \"\",\n Encodings.decodeEscapes(Encodings.encodeEscapes(null)));\n }", "public static String utf8Encode(String str, String defultReturn) {\n if (!isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "public static String unEscapeURL(String src) {\n\t StringBuffer bf = new StringBuffer();\n\t char[] s = src.toCharArray();\n\t for (int k = 0; k < s.length; ++k) {\n\t char c = s[k];\n\t if (c == '%') {\n\t if (k + 2 >= s.length) {\n\t bf.append(c);\n\t continue;\n\t }\n\t int a0 = PRTokeniser.getHex(s[k + 1]);\n\t int a1 = PRTokeniser.getHex(s[k + 2]);\n\t if (a0 < 0 || a1 < 0) {\n\t bf.append(c);\n\t continue;\n\t }\n\t bf.append((char)(a0 * 16 + a1));\n\t k += 2;\n\t }\n\t else\n\t bf.append(c);\n\t }\n\t return bf.toString();\n\t}", "@Test\n public void testJoinURL() throws Exception {\n System.out.println(\"joinURL\");\n Map<URLParser.URLParts, String> urlParts = new HashMap<>();\n urlParts.put(URLParser.URLParts.PROTOCOL, \"http\");\n urlParts.put(URLParser.URLParts.PATH, \"/to/path/document\");\n urlParts.put(URLParser.URLParts.HOST, \"www.example.com\");\n urlParts.put(URLParser.URLParts.PORT, \"8080\");\n urlParts.put(URLParser.URLParts.USERINFO, \"user:password\");\n urlParts.put(URLParser.URLParts.FILENAME, \"/to/path/document?arg1=val1&arg2=val2\");\n urlParts.put(URLParser.URLParts.QUERY, \"arg1=val1&arg2=val2\");\n urlParts.put(URLParser.URLParts.AUTHORITY, \"user:[email protected]:8080\");\n urlParts.put(URLParser.URLParts.REF, \"part\");\n \n String expResult = \"http://user:[email protected]:8080/to/path/document?arg1=val1&arg2=val2#part\";\n String result = URLParser.joinURL(urlParts);\n assertEquals(expResult, result);\n }", "private static void encodeString(String in){\n\n\t\tString officalEncodedTxt = officallyEncrypt(in);\n\t\tSystem.out.println(\"Encoded message: \" + officalEncodedTxt);\n\t}", "public String encode(String longUrl) {\n if (longToShort.containsKey(longUrl)) {\n return longToShort.get(longUrl);\n }\n String encode = intToBase62(longUrl.hashCode());\n List<String> list;\n if (shortToLong.containsKey(encode)) {\n list = shortToLong.get(encode);\n } else {\n list = new ArrayList<>();\n shortToLong.put(encode, list);\n }\n encode += SEPERATE + list.size();\n list.add(longUrl);\n longToShort.put(longUrl, encode);\n return PREFIX + encode;\n }", "@Test\n public void urlTest() {\n // TODO: test url\n }", "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 }", "public static String uriEncodeParts(final String value) {\n if (Strings.isNullOrEmpty(value)) {\n return value;\n }\n final int length = value.length();\n final StringBuilder builder = new StringBuilder(length << 1);\n for (int i = 0; i < length; i++) {\n final char c = value.charAt(i);\n if (CharMatcher.ASCII.matches(c)) {\n builder.append(String.valueOf(c));\n } else {\n builder.append(encodeCharacter(c));\n }\n }\n return builder.toString();\n }", "private String encodeUri(String uri) {\n\t\t\tString newUri = \"\";\n\t\t\tStringTokenizer st = new StringTokenizer(uri, \"/ \", true);\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tif (\"/\".equals(tok)) {\n\t\t\t\t\tnewUri += \"/\";\n\t\t\t\t} else if (\" \".equals(tok)) {\n\t\t\t\t\tnewUri += \"%20\";\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnewUri += URLEncoder.encode(tok, \"UTF-8\");\n\t\t\t\t\t} catch (UnsupportedEncodingException ignored) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn newUri;\n\t\t}", "public String encode(String uri) {\n return uri;\n }", "public String encode(String longUrl) {\n \n String key = getRand();\n while (mapper.containsKey (key))\n key = getRand();\n \n mapper.put (key, longUrl);\n return key;\n }", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n String string0 = DBUtil.escape(\"Ucb\");\n assertEquals(\"Ucb\", string0);\n }", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "public static String replaceURLEscapeChars(String value) {\n\t\tvalue = replace(value, \"#\", \"%23\");\n\t\tvalue = replace(value, \"$\", \"%24\");\n\t\tvalue = replace(value, \"%\", \"%25\");\n\t\tvalue = replace(value, \"&\", \"%26\");\n\t\tvalue = replace(value, \"@\", \"%40\");\n\t\tvalue = replace(value, \"'\", \"%60\");\n\t\tvalue = replace(value, \"/\", \"%2F\");\n\t\tvalue = replace(value, \":\", \"%3A\");\n\t\tvalue = replace(value, \";\", \"%3B\");\n\t\tvalue = replace(value, \"<\", \"%3C\");\n\t\tvalue = replace(value, \"=\", \"%3D\");\n\t\tvalue = replace(value, \">\", \"%3E\");\n\t\tvalue = replace(value, \"?\", \"%3F\");\n\t\tvalue = replace(value, \"[\", \"%5B\");\n\t\tvalue = replace(value, \"\\\\\", \"%5C\");\n\t\tvalue = replace(value, \"]\", \"%5D\");\n\t\tvalue = replace(value, \"^\", \"%5E\");\n\t\tvalue = replace(value, \"{\", \"%7B\");\n\t\tvalue = replace(value, \"|\", \"%7C\");\n\t\tvalue = replace(value, \"}\", \"%7D\");\n\t\tvalue = replace(value, \"~\", \"%7E\");\n\t\treturn value;\n\t}", "public boolean isShouldEncodeUrls() {\n return mShouldEncodeUrls;\n }", "@Override\n public String encodeRedirectURL(String url) {\n return this._getHttpServletResponse().encodeRedirectURL(url);\n }", "public Object encode(Object obj) throws EncoderException {\n/* 316 */ if (obj == null)\n/* 317 */ return null; \n/* 318 */ if (obj instanceof byte[])\n/* 319 */ return encode((byte[])obj); \n/* 320 */ if (obj instanceof String) {\n/* 321 */ return encode((String)obj);\n/* */ }\n/* 323 */ throw new EncoderException(\"Objects of type \" + obj.getClass().getName() + \" cannot be URL encoded\");\n/* */ }", "@Test\n public void testSomeMethod() {\n PasswordEncoder encoderImpl = new BCryptPasswordEncoder(11);\n String pass = \"system1234\";\n System.err.println(\"For \" + pass + \", -----------Encoded password = \" + encoderImpl.encode(pass));\n pass = \"pass1\";\n System.err.println(\"For \" + pass + \", -----------Encoded password = \" + encoderImpl.encode(pass));\n }", "public static String encoderRequete(\r\n\t\t\tfinal String pYQL) throws UnsupportedEncodingException {\r\n\t\t\r\n\t\tfinal String uriEncodee = URLEncoder.encode(pYQL, \"UTF-8\");\r\n\t\t\r\n\t\treturn uriEncodee;\r\n\t\t\r\n\t}", "public static String encodeUrl(String base, String parentCode, String code, String targetCode, String token) {\n\t\t/**\n\t\t * A Function for Base64 encoding urls\n\t\t **/\n\n\t\t// Encode Parent and Code\n\t\tString encodedParentCode = new String(Base64.getEncoder().encode(parentCode.getBytes()));\n\t\tString encodedCode = new String(Base64.getEncoder().encode(code.getBytes()));\n\t\tString url = base + \"/\" + encodedParentCode + \"/\" + encodedCode;\n\n\t\t// Add encoded targetCode if not null\n\t\tif (targetCode != null) {\n\t\t\tString encodedTargetCode = new String(Base64.getEncoder().encode(targetCode.getBytes()));\n\t\t\turl = url + \"/\" + encodedTargetCode;\n\t\t}\n\n\t\t// Add access token if not null\n\t\tif (token != null) {\n\t\t\turl = url +\"?token=\" + token;\n\t\t}\n\t\treturn url;\n\t}" ]
[ "0.7535612", "0.7346214", "0.72940725", "0.70829976", "0.6908146", "0.6658051", "0.6653681", "0.6583852", "0.6381629", "0.63784987", "0.6331332", "0.6313128", "0.62988883", "0.62855536", "0.62193567", "0.61782867", "0.61445963", "0.6125667", "0.61248016", "0.61203855", "0.61203146", "0.6119648", "0.6111184", "0.6101491", "0.610124", "0.609394", "0.6093076", "0.60777676", "0.6067502", "0.60523844", "0.6047007", "0.6036735", "0.6013678", "0.5981263", "0.5978316", "0.5976183", "0.59456563", "0.59156597", "0.59126824", "0.5901604", "0.58434325", "0.58348304", "0.57297385", "0.5722187", "0.57171845", "0.5716016", "0.5713267", "0.571012", "0.5697478", "0.5696841", "0.56804043", "0.56699854", "0.56661546", "0.5623602", "0.55982065", "0.5580237", "0.55783653", "0.557023", "0.5556785", "0.55516607", "0.5547994", "0.5534101", "0.55218947", "0.55163443", "0.5498952", "0.54956853", "0.54852945", "0.54751045", "0.54695445", "0.5455119", "0.5427563", "0.54201996", "0.53965616", "0.5385722", "0.53615624", "0.5360374", "0.53382635", "0.5337413", "0.53269047", "0.5320891", "0.5314378", "0.5312412", "0.5308743", "0.52791154", "0.52380157", "0.5234764", "0.5221321", "0.5184442", "0.51727945", "0.5138717", "0.5137697", "0.51359516", "0.51285595", "0.5085908", "0.5080237", "0.5079911", "0.50795615", "0.50779414", "0.5070703", "0.5070252" ]
0.7483509
1
Run the String urlEncode(String,String) method test.
@Test public void testUrlEncode_2() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String input = ""; String encodingScheme = ""; String result = fixture.urlEncode(input, encodingScheme); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUrlEncode_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public abstract String encodeURL(CharSequence url);", "@Test\n\tpublic void testUrlEncode_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test(expected = java.io.UnsupportedEncodingException.class)\n\tpublic void testUrlEncode_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public static String urlEncode(String inText)\n {\n try\n {\n return URLEncoder.encode(inText, \"UTF-8\");\n }\n catch(java.io.UnsupportedEncodingException e)\n {\n Log.error(\"invalid encoding for url encoding: \" + e);\n\n return \"error\";\n }\n }", "private static String urlEncode(String toEncode) throws UnsupportedEncodingException{\r\n\t\treturn URLEncoder.encode(toEncode, \"UTF-8\");\r\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}", "public void testEncodePath() throws Exception {\n\n Object[] test_values = {\n new String[]{\"abc def\", \"abc%20def\"},\n new String[]{\"foo/bar?n=v&N=V\", \"foo/bar%3Fn=v&N=V\"}\n };\n for (int i = 0; i < test_values.length; i++) {\n String tests[] = (String[]) test_values[i];\n String original = tests[0];\n String expected = tests[1];\n\n String result = NetUtils.encodePath(original);\n String message = \"Test \" +\n \" original \" + \"'\" + original + \"'\";\n assertEquals(message, expected, result);\n }\n }", "private static String encodeurl(String url) \n { \n\n try { \n String prevURL=\"\"; \n String decodeURL=url; \n while(!prevURL.equals(decodeURL)) \n { \n prevURL=decodeURL; \n decodeURL=URLDecoder.decode( decodeURL, \"UTF-8\" ); \n } \n return decodeURL.replace('\\\\', '/'); \n } catch (UnsupportedEncodingException e) { \n return \"Issue while decoding\" +e.getMessage(); \n } \n }", "private String urlEncode(String str) {\n String charset = StandardCharsets.UTF_8.name();\n try {\n return URLEncoder.encode(str, charset);\n } catch (UnsupportedEncodingException e) {\n JrawUtils.logger().error(\"Unsupported charset: \" + charset);\n return null;\n }\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}", "@Test\n public void loadPage_EncodeRequest() throws Exception {\n final String htmlContent\n = \"<html><head><title>foo</title></head><body>\\n\"\n + \"</body></html>\";\n\n final WebClient client = getWebClient();\n\n final MockWebConnection webConnection = new MockWebConnection();\n webConnection.setDefaultResponse(htmlContent);\n client.setWebConnection(webConnection);\n\n // with query string not encoded\n HtmlPage page = client.getPage(\"http://first?a=b c&d=\\u00E9\\u00E8\");\n String expected;\n final boolean ie = getBrowserVersion().isIE();\n if (ie) {\n expected = \"?a=b%20c&d=\\u00E9\\u00E8\";\n }\n else {\n expected = \"?a=b%20c&d=%E9%E8\";\n }\n assertEquals(\"http://first/\" + expected, page.getWebResponse().getWebRequest().getUrl());\n\n // with query string already encoded\n page = client.getPage(\"http://first?a=b%20c&d=%C3%A9%C3%A8\");\n assertEquals(\"http://first/?a=b%20c&d=%C3%A9%C3%A8\", page.getWebResponse().getWebRequest().getUrl());\n\n // with query string partially encoded\n page = client.getPage(\"http://first?a=b%20c&d=e f\");\n assertEquals(\"http://first/?a=b%20c&d=e%20f\", page.getWebResponse().getWebRequest().getUrl());\n\n // with anchor\n page = client.getPage(\"http://first?a=b c#myAnchor\");\n assertEquals(\"http://first/?a=b%20c#myAnchor\", page.getWebResponse().getWebRequest().getUrl());\n\n // with query string containing encoded \"&\", \"=\", \"+\", \",\", and \"$\"\n page = client.getPage(\"http://first?a=%26%3D%20%2C%24\");\n assertEquals(\"http://first/?a=%26%3D%20%2C%24\", page.getWebResponse().getWebRequest().getUrl());\n\n // with character to encode in path\n page = client.getPage(\"http://first/page 1.html\");\n assertEquals(\"http://first/page%201.html\", page.getWebResponse().getWebRequest().getUrl());\n\n // with character to encode in path\n page = client.getPage(\"http://first/page 1.html\");\n assertEquals(\"http://first/page%201.html\", page.getWebResponse().getWebRequest().getUrl());\n }", "public static String encodeURL(String url) {\n\n\t\tint len = url.length();\n\n\t\t// add a little (6.25%) to leave room for some expansion during encoding\n\t\tlen += len >>> 4;\n\n\t\treturn appendURL(new StringBuffer(len), url).toString();\n\t}", "public static String encode(String argStr) {\r\n\t\tString result = argStr;\r\n\t\ttry {\r\n\t\t\tif (result != null && !result.isEmpty()) {\r\n\t\t\t\tresult = URLDecoder.decode(result, UTF_8);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// ignore\r\n\t\t}\r\n\t\tresult = encodeExplicit(result);\r\n\t\treturn result;\r\n\t}", "public String encodeURL(String url) {\n return manager.encodeUrl(this, url);\n }", "private static String encodeURI(String url) {\n\t\tStringBuffer uri = new StringBuffer(url.length());\n\t\tint length = url.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tchar c = url.charAt(i);\n\n\t\t\tswitch (c) {\n\t\t\t\tcase '!':\n\t\t\t\tcase '#':\n\t\t\t\tcase '$':\n\t\t\t\tcase '%':\n\t\t\t\tcase '&':\n\t\t\t\tcase '\\'':\n\t\t\t\tcase '(':\n\t\t\t\tcase ')':\n\t\t\t\tcase '*':\n\t\t\t\tcase '+':\n\t\t\t\tcase ',':\n\t\t\t\tcase '-':\n\t\t\t\tcase '.':\n\t\t\t\tcase '/':\n\t\t\t\tcase '0':\n\t\t\t\tcase '1':\n\t\t\t\tcase '2':\n\t\t\t\tcase '3':\n\t\t\t\tcase '4':\n\t\t\t\tcase '5':\n\t\t\t\tcase '6':\n\t\t\t\tcase '7':\n\t\t\t\tcase '8':\n\t\t\t\tcase '9':\n\t\t\t\tcase ':':\n\t\t\t\tcase ';':\n\t\t\t\tcase '=':\n\t\t\t\tcase '?':\n\t\t\t\tcase '@':\n\t\t\t\tcase 'A':\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'C':\n\t\t\t\tcase 'D':\n\t\t\t\tcase 'E':\n\t\t\t\tcase 'F':\n\t\t\t\tcase 'G':\n\t\t\t\tcase 'H':\n\t\t\t\tcase 'I':\n\t\t\t\tcase 'J':\n\t\t\t\tcase 'K':\n\t\t\t\tcase 'L':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'N':\n\t\t\t\tcase 'O':\n\t\t\t\tcase 'P':\n\t\t\t\tcase 'Q':\n\t\t\t\tcase 'R':\n\t\t\t\tcase 'S':\n\t\t\t\tcase 'T':\n\t\t\t\tcase 'U':\n\t\t\t\tcase 'V':\n\t\t\t\tcase 'W':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'Y':\n\t\t\t\tcase 'Z':\n\t\t\t\tcase '[':\n\t\t\t\tcase ']':\n\t\t\t\tcase '_':\n\t\t\t\tcase 'a':\n\t\t\t\tcase 'b':\n\t\t\t\tcase 'c':\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'e':\n\t\t\t\tcase 'f':\n\t\t\t\tcase 'g':\n\t\t\t\tcase 'h':\n\t\t\t\tcase 'i':\n\t\t\t\tcase 'j':\n\t\t\t\tcase 'k':\n\t\t\t\tcase 'l':\n\t\t\t\tcase 'm':\n\t\t\t\tcase 'n':\n\t\t\t\tcase 'o':\n\t\t\t\tcase 'p':\n\t\t\t\tcase 'q':\n\t\t\t\tcase 'r':\n\t\t\t\tcase 's':\n\t\t\t\tcase 't':\n\t\t\t\tcase 'u':\n\t\t\t\tcase 'v':\n\t\t\t\tcase 'w':\n\t\t\t\tcase 'x':\n\t\t\t\tcase 'y':\n\t\t\t\tcase 'z':\n\t\t\t\tcase '~':\n\t\t\t\t\turi.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tStringBuffer result = new StringBuffer(3);\n\t\t\t\t\tString s = String.valueOf(c);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] data = s.getBytes(\"UTF8\");\n\t\t\t\t\t\tfor (int j = 0; j < data.length; j++) {\n\t\t\t\t\t\t\tresult.append('%');\n\t\t\t\t\t\t\tString hex = Integer.toHexString(data[j]);\n\t\t\t\t\t\t\tresult.append(hex.substring(hex.length() - 2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\turi.append(result.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException ex) {\n\t\t\t\t\t\t// should never happen\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn uri.toString();\n\t}", "@Test\n public void testIsURLEncoded() {\n System.out.println(\"isURLEncoded\");\n boolean expResult = true;\n boolean result = instance.isURLEncoded();\n assertEquals(expResult, result);\n }", "@Override\n public String encodeURL(String arg0) {\n return null;\n }", "@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}", "public final String urlEncode() {\n\t\treturn urlEncode(UTF_8);\n\t}", "@Override\n protected boolean shouldEncodeUrls() {\n return isShouldEncodeUrls();\n }", "@Override\n public String encodeURL(String url) {\n return this._getHttpServletResponse().encodeURL(url);\n }", "public static String urlEncode(String str) {\n try {\n return URLEncoder.encode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }", "public String encodeUrl(String s) {\n\t\treturn null;\n\t}", "private String URLEncode (String sStr) {\r\n if (sStr==null) return null;\r\n\r\n int iLen = sStr.length();\r\n StringBuffer sEscaped = new StringBuffer(iLen+100);\r\n char c;\r\n for (int p=0; p<iLen; p++) {\r\n c = sStr.charAt(p);\r\n switch (c) {\r\n case ' ':\r\n sEscaped.append(\"%20\");\r\n break;\r\n case '/':\r\n sEscaped.append(\"%2F\");\r\n break;\r\n case '\"':\r\n sEscaped.append(\"%22\");\r\n break;\r\n case '#':\r\n sEscaped.append(\"%23\");\r\n break;\r\n case '%':\r\n sEscaped.append(\"%25\");\r\n break;\r\n case '&':\r\n sEscaped.append(\"%26\");\r\n break;\r\n case (char)39:\r\n sEscaped.append(\"%27\");\r\n break;\r\n case '+':\r\n sEscaped.append(\"%2B\");\r\n break;\r\n case ',':\r\n sEscaped.append(\"%2C\");\r\n break;\r\n case '=':\r\n sEscaped.append(\"%3D\");\r\n break;\r\n case '?':\r\n sEscaped.append(\"%3F\");\r\n break;\r\n case 'á':\r\n sEscaped.append(\"%E1\");\r\n break;\r\n case 'é':\r\n sEscaped.append(\"%E9\");\r\n break;\r\n case 'í':\r\n sEscaped.append(\"%ED\");\r\n break;\r\n case 'ó':\r\n sEscaped.append(\"%F3\");\r\n break;\r\n case 'ú':\r\n sEscaped.append(\"%FA\");\r\n break;\r\n case 'Á':\r\n sEscaped.append(\"%C1\");\r\n break;\r\n case 'É':\r\n sEscaped.append(\"%C9\");\r\n break;\r\n case 'Í':\r\n sEscaped.append(\"%CD\");\r\n break;\r\n case 'Ó':\r\n sEscaped.append(\"%D3\");\r\n break;\r\n case 'Ú':\r\n sEscaped.append(\"%DA\");\r\n break;\r\n case 'à':\r\n sEscaped.append(\"%E0\");\r\n break;\r\n case 'è':\r\n sEscaped.append(\"%E8\");\r\n break;\r\n case 'ì':\r\n sEscaped.append(\"%EC\");\r\n break;\r\n case 'ò':\r\n sEscaped.append(\"%F2\");\r\n break;\r\n case 'ù':\r\n sEscaped.append(\"%F9\");\r\n break;\r\n case 'À':\r\n sEscaped.append(\"%C0\");\r\n break;\r\n case 'È':\r\n sEscaped.append(\"%C8\");\r\n break;\r\n case 'Ì':\r\n sEscaped.append(\"%CC\");\r\n break;\r\n case 'Ò':\r\n sEscaped.append(\"%D2\");\r\n break;\r\n case 'Ù':\r\n sEscaped.append(\"%D9\");\r\n break;\r\n case 'ñ':\r\n sEscaped.append(\"%F1\");\r\n break;\r\n case 'Ñ':\r\n sEscaped.append(\"%D1\");\r\n break;\r\n case 'ç':\r\n sEscaped.append(\"%E7\");\r\n break;\r\n case 'Ç':\r\n sEscaped.append(\"%C7\");\r\n break;\r\n case 'ô':\r\n sEscaped.append(\"%F4\");\r\n break;\r\n case 'Ô':\r\n sEscaped.append(\"%D4\");\r\n break;\r\n case 'ö':\r\n sEscaped.append(\"%F6\");\r\n break;\r\n case 'Ö':\r\n sEscaped.append(\"%D6\");\r\n break;\r\n case '`':\r\n sEscaped.append(\"%60\");\r\n break;\r\n case '¨':\r\n sEscaped.append(\"%A8\");\r\n break;\r\n default:\r\n sEscaped.append(c);\r\n break;\r\n }\r\n } // next\r\n\r\n return sEscaped.toString();\r\n }", "public String encodeURL(String s) {\n\t\treturn null;\n\t}", "public static String URLEncode (String str) {\n\ttry {\n\t return java.net.URLEncoder.encode (str, \"UTF-8\");\n\t} catch (UnsupportedEncodingException e) {\n\t e.printStackTrace ();\n\t} \n\treturn str;\n }", "@Override\n\tpublic String encodeURL(String url) {\n\t\treturn null;\n\t}", "@Override\n @SuppressWarnings(\"all\")\n public String encodeUrl(String arg0) {\n\n return null;\n }", "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 }", "@Test\n public void encodeParameter() {\n assertEquals(\"abcABC123\", OAuth10.encodeParameter(\"abcABC123\"));\n assertEquals(\"-._~\", OAuth10.encodeParameter(\"-._~\"));\n assertEquals(\"%25\", OAuth10.encodeParameter(\"%\"));\n assertEquals(\"%2B\", OAuth10.encodeParameter(\"+\"));\n assertEquals(\"%26%3D%2A\", OAuth10.encodeParameter(\"&=*\"));\n assertEquals(\"%0A\", OAuth10.encodeParameter(\"\\n\"));\n assertEquals(\"%20\", OAuth10.encodeParameter(\"\\u0020\"));\n assertEquals(\"%7F\", OAuth10.encodeParameter(\"\\u007F\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n assertEquals(\"%E3%80%81\", OAuth10.encodeParameter(\"\\u3001\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n }", "@Override\n public String encodeUrl(String arg0) {\n return null;\n }", "protected native String encodeURIComponent(String text) /*-{\r\n\t\treturn encodeURIComponent(text);\r\n\t}-*/;", "private String encodeURILikeJavascript(String s) {\n log.info(\"Entering encodeURILikeJavascript\");\n String result = null;\n\n try {\n result = URLEncoder.encode(s, \"UTF-8\")\n .replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%7E\", \"~\");\n } catch (UnsupportedEncodingException e) {\n result = s;\n }\n\n return result;\n }", "@Override\n protected final String encode(String unencoded) {\n try {\n return StringUtils.isBlank(unencoded) ? \"\" : URLEncoder.encode(unencoded, \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n java.util.logging.Logger.getLogger(PostRedirectGetWithCookiesFormHelperImpl.class.getName()).log(Level.SEVERE, null, ex);\n return unencoded;\n }\n }", "@Override\n\tpublic String encodeUrl(String url) {\n\t\treturn null;\n\t}", "public static String encodeURL(String string) {\n\t\treturn Utils.encodeURL(string);\n\t}", "public static String encode(String s) {\n // return java.net.URLEncoder.encode(s);\n /*\n ** The only encoded chars are \"<>%=/\", chars < space and chars >= 127\n ** (including cr/lf, ...)\n ** A leading and/or trailing space is also encoded, all others are\n ** left alone\n **\n ** Encoding is %dd where dd are hex digits for the hex value encode\n **\n ** Check if needs encoding first, if not, simply return original string\n */\n char arr[] = s.toCharArray();\n int len = arr.length;\n for(int i=0; i < len; i++) {\n char ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n StringBuffer sb = new StringBuffer();\n for(i=0; i < len; i++) {\n ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n byte b = (byte)arr[i];\n sb.append('%');\n char c = Character.forDigit((b >> 4) & 0xf, 16);\n sb.append(c);\n c = Character.forDigit(b & 0xf, 16);\n sb.append(c);\n } else {\n sb.append(arr[i]);\n }\n }\n s = sb.toString();\n break;\n }\n }\n return s;\n }", "private String encode(String value) {\n String encoded = \"\";\n try {\n encoded = URLEncoder.encode(value, \"UTF-8\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n String sb = \"\";\n char focus;\n for (int i = 0; i < encoded.length(); i++) {\n focus = encoded.charAt(i);\n if (focus == '*') {\n sb += \"%2A\";\n } else if (focus == '+') {\n sb += \"%20\";\n } else if (focus == '%' && i + 1 < encoded.length() && encoded.charAt(i + 1) == '7' && encoded.charAt(i + 2) == 'E') {\n sb += '~';\n i += 2;\n } else {\n sb += focus;\n }\n }\n return sb.toString();\n }", "@Test\n public void encodeTest() throws Exception{\n this.mvc.perform(post(\"/encode?message=a little of this and a little of that&key=mcxrstunopqabyzdefghijklvw\")\n .accept(MediaType.TEXT_PLAIN))\n .andExpect(status().isOk()) // 200 class\n .andExpect(content().string(\"m aohhas zt hnog myr m aohhas zt hnmh\")); // expected good\n }", "public static String encode(String str)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn java.net.URLEncoder.encode(str, \"UTF-8\");\r\n\t\t}\r\n\t\tcatch(java.io.UnsupportedEncodingException ue)\r\n\t\t{\r\n\t\t\treturn str;\r\n\t\t}\r\n\t}", "@Test\n public void testEncoding() throws URISyntaxException, MalformedURLException, UnsupportedEncodingException {\n String encoded = URLEncoder.encode(\"*,\", \"UTF-8\");\n\n //legal to use * and ,\n URI uri = new URI(\"http://localhost/ehcache/sampleCache1/*,\");\n URI url2 = uri.resolve(\"http://localhost/ehcache/sampleCache1/*,\");\n\n }", "public static void main(String[] args) throws Exception {\n \n System.out.println(EncodeMethod(\"AAAABBBCCDAA\"));\n\n System.out.println(DecodeMethod(EncodeMethod(\"AAAABBBCCDAA\")));\n }", "static String uriEscapeString(String unescaped) {\n try {\n return URLEncoder.encode(unescaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }", "@Test\n public void testNormalizeToStringWithSpaceURL() throws Exception {\n AbstractURLHandler handler = new TestURLHandler();\n String normalizedUrl = handler.normalizeToString(new URL(\n \"http://ant.apache.org/ivy/url with space/ivy-1.0.xml\"));\n assertEquals(\"http://ant.apache.org/ivy/url%20with%20space/ivy-1.0.xml\", normalizedUrl);\n }", "@Test\n public void testNormalizeToStringWithPlusCharacter() throws Exception {\n AbstractURLHandler handler = new TestURLHandler();\n String normalizedUrl = handler.normalizeToString(new URL(\n \"http://ant.apache.org/ivy/ivy-1.+.xml\"));\n assertEquals(\"http://ant.apache.org/ivy/ivy-1.%2B.xml\", normalizedUrl);\n }", "private String encodeValue(String value) {\r\n try {\r\n return URLEncoder.encode(value, \"UTF8\");\r\n } catch (UnsupportedEncodingException e) {\r\n // it should not occur since UTF8 should be supported universally\r\n throw new ExcelWrapperException(\"UTF8 encoding is not supported : \" + e.getMessage());\r\n }\r\n }", "public static String encode(String anyURI){\n int len = anyURI.length(), ch;\n StringBuffer buffer = new StringBuffer(len*3);\n \n // for each character in the anyURI\n int i = 0;\n for (; i < len; i++) {\n ch = anyURI.charAt(i);\n // if it's not an ASCII character, break here, and use UTF-8 encoding\n if (ch >= 128)\n break;\n if (gNeedEscaping[ch]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[ch]);\n buffer.append(gAfterEscaping2[ch]);\n }\n else {\n buffer.append((char)ch);\n }\n }\n \n // we saw some non-ascii character\n if (i < len) {\n // get UTF-8 bytes for the remaining sub-string\n byte[] bytes = null;\n byte b;\n try {\n bytes = anyURI.substring(i).getBytes(\"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n // should never happen\n return anyURI;\n }\n len = bytes.length;\n \n // for each byte\n for (i = 0; i < len; i++) {\n b = bytes[i];\n // for non-ascii character: make it positive, then escape\n if (b < 0) {\n ch = b + 256;\n buffer.append('%');\n buffer.append(gHexChs[ch >> 4]);\n buffer.append(gHexChs[ch & 0xf]);\n }\n else if (gNeedEscaping[b]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[b]);\n buffer.append(gAfterEscaping2[b]);\n }\n else {\n buffer.append((char)b);\n }\n }\n }\n \n // If encoding happened, create a new string;\n // otherwise, return the orginal one.\n if (buffer.length() != len)\n return buffer.toString();\n else\n return anyURI;\n }", "public static String percentEncode(String s) {\r\n\t\t//s = _percentEncode( s ); // the original method, from java.net\r\n\t\ts = encodeURL(s, \"UTF-8\");\r\n\t\treturn s;\r\n\t}", "public byte[] encode(byte[] bytes) {\n/* 199 */ return encodeUrl(WWW_FORM_URL_SAFE, bytes);\n/* */ }", "public String encode(String longUrl) {\n String key = \"\";\n do {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n int r = rand.nextInt(charSet.length());\n sb.append(charSet.charAt(r));\n }\n key = sb.toString();\n } while (map.containsKey(key));\n \n map.put(BASE_HOST + key, longUrl);\n return BASE_HOST + key;\n }", "public String c(String str) {\n String str2;\n String str3 = null;\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n try {\n String host = Uri.parse(str).getHost();\n String aBTestValue = TUnionTradeSDK.getInstance().getABTestService().getABTestValue(\"config\");\n if (!TextUtils.isEmpty(aBTestValue)) {\n String optString = new JSONObject(aBTestValue).optString(\"domain\");\n TULog.d(\"abTestRequestUrl, url: \" + str + \" host: \" + host + \" domains: \" + optString, new Object[0]);\n if (!TextUtils.isEmpty(host) && !TextUtils.isEmpty(optString)) {\n JSONArray jSONArray = new JSONArray(optString);\n if (jSONArray.length() > 0) {\n int length = jSONArray.length();\n int i = 0;\n while (true) {\n if (i >= length) {\n break;\n } else if (host.contains(jSONArray.getString(i))) {\n String encode = URLEncoder.encode(str, \"utf-8\");\n try {\n TULog.d(\"abTestRequestUrl, loginJumpUrl :\" + str2, new Object[0]);\n } catch (Exception unused) {\n }\n str3 = str2;\n break;\n } else {\n i++;\n }\n }\n }\n }\n }\n } catch (Exception unused2) {\n }\n return str3;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"\" +ToUtf8Util.toHexString(\"大连\"));\n\t\ttry {\n\t\t\tSystem.out.println(\"\" + URLEncoder.encode(\"大连\",\"utf-8\"));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private String encodeValue(final String dirtyValue) {\n String cleanValue = \"\";\n\n try {\n cleanValue = URLEncoder.encode(dirtyValue, StandardCharsets.UTF_8.name())\n .replace(\"+\", \"%20\");\n } catch (final UnsupportedEncodingException e) {\n }\n\n return cleanValue;\n }", "public static final byte[] encodeUrl(BitSet urlsafe, byte[] bytes) {\n/* 127 */ if (bytes == null) {\n/* 128 */ return null;\n/* */ }\n/* 130 */ if (urlsafe == null) {\n/* 131 */ urlsafe = WWW_FORM_URL_SAFE;\n/* */ }\n/* */ \n/* 134 */ ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n/* 135 */ for (byte c : bytes) {\n/* 136 */ int b = c;\n/* 137 */ if (b < 0) {\n/* 138 */ b = 256 + b;\n/* */ }\n/* 140 */ if (urlsafe.get(b)) {\n/* 141 */ if (b == 32) {\n/* 142 */ b = 43;\n/* */ }\n/* 144 */ buffer.write(b);\n/* */ } else {\n/* 146 */ buffer.write(37);\n/* 147 */ char hex1 = Utils.hexDigit(b >> 4);\n/* 148 */ char hex2 = Utils.hexDigit(b);\n/* 149 */ buffer.write(hex1);\n/* 150 */ buffer.write(hex2);\n/* */ } \n/* */ } \n/* 153 */ return buffer.toByteArray();\n/* */ }", "public static String URIencoding(String word) {\n\t\tString result = word;\n\t\tword = word.replace(\" \", \"_\");\n\t\ttry {\n\t\t\tresult = URLEncoder.encode(word, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public static String encode(String in){\n in = in.replace(\"&\", \"&amp;\");\n in = in.replace(\"\\\"\", \"&quot;\");\n in = in.replace(\"<\", \"&lt;\");\n in = in.replace(\">\", \"&gt;\");\n log.debug(\"encoded string: \" + in);\n // FIXME: Consider double-encoding & if it is not part of &amp;\n return in;\n }", "public final String urlEncode(String encoding) {\n\n\t\tfinal StringBuilder out = new StringBuilder();\n\n\t\ttry {\n\t\t\turlEncode(out, encoding);\n\t\t} catch (IOException e) {\n\t\t\tnew IllegalStateException(e);// Should never happen.\n\t\t}\n\n\t\treturn out.toString();\n\t}", "@Test\n public void testEncode() {\n LOGGER.info(\"testEncode\");\n final String actual = new AtomString().encode();\n final String expected = \"0:\";\n assertEquals(expected, actual);\n }", "public static String encodeQuery(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n return retString;\n }", "private static String urlEncodeParameter(String parameter) throws UnsupportedEncodingException{\r\n\t\tint equal = parameter.indexOf(\"=\");\r\n\t\treturn urlEncode(parameter.substring(0, equal))+\"=\"+urlEncode(parameter.substring(equal+1));\r\n\t}", "public String encode(String longUrl) {\n StringBuilder sb = new StringBuilder();\n while (sb.length() < keyLength || shortToLong.containsKey(sb.toString())) {\n sb = new StringBuilder();\n for (int i = 0; i < keyLength; i++) {\n sb.append( alphabet.charAt( (int) Math.floor(Math.random()*alphabet.length()) ) );\n }\n }\n String key = sb.toString();\n longToShort.put(longUrl, key);\n shortToLong.put(key, longUrl);\n return \"htpp://tinyurl.com/\" + key;\n }", "public static String convertUrlToPunycodeIfNeeded(String url) {\n if (!Charset.forName(\"US-ASCII\").newEncoder().canEncode(url)) {\n if (url.toLowerCase().startsWith(\"http://\")) {\n url = \"http://\" + IDN.toASCII(url.substring(7));\n } else if (url.toLowerCase().startsWith(\"https://\")) {\n url = \"https://\" + IDN.toASCII(url.substring(8));\n } else {\n url = IDN.toASCII(url);\n }\n }\n return url;\n }", "public String encode(String longUrl) {\n while (!url2code.containsKey(longUrl)) {\n // generate code\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n sb.append(alphabet.charAt(rand.nextInt(62)));\n }\n // put code-url pair\n String code = sb.toString();\n if (!code2url.containsKey(code)) {\n code2url.put(code, longUrl);\n url2code.put(longUrl, code);\n }\n }\n\n return url2code.get(longUrl);\n }", "public static String encodeURI(String string) {\n\t\treturn Utils.encodeURI(string);\n\t}", "@org.junit.Test\n public void encodeHTML()\n {\n assertEquals(\"apos\", \"I can&#39;t do &#34;this&#34;\",\n Encodings.encodeHTMLAttribute(\"I can't do \\\"this\\\"\"));\n assertEquals(\"no replace\", \"just a test\",\n Encodings.encodeHTMLAttribute(\"just a test\"));\n assertEquals(\"empty\", \"\", Encodings.encodeHTMLAttribute(\"\"));\n }", "public static String encodeQueryValue(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n retString = replaceString(retString, \"&\", \"%26\");\n retString = replaceString(retString, \"?\", \"%3F\");\n retString = replaceString(retString, \"=\", \"%3D\");\n return retString;\n }", "public String encodeToUrlString() throws IOException {\n return encodeWritable(this);\n }", "public String encode(String longUrl) {\n while(map.containsKey(key)){\n key = r.nextInt(Integer.MAX_VALUE);//直到找到没有用过的key\n }\n map.put(key, longUrl);\n return \"http://tinyurl.com/\" + key;\n }", "public EncodeAndDecodeStrings() {}", "public static String encode(String toEncode)\n {\n return com.github.terefang.jldap.ldap.LDAPUrl.encode( toEncode);\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 }", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "public String encode(String longUrl) {\n\t int key = longUrl.hashCode();\n\t map.put(key, longUrl);\n\t return Integer.toString(key);\n\t }", "public String encode(String longUrl) {\n\n String shortUrl = getShortUrl();\n\n if(shortToLongUrl.containsKey(shortUrl)){\n shortUrl = getShortUrl();\n }\n\n shortToLongUrl.put(shortUrl, longUrl);\n return \"http://tinyurl.com/\" + shortUrl;\n }", "public abstract BridgeURL encodeBookmarkableURL(String baseURL, Map<String, List<String>> parameters);", "public static void main(String[] args) {\r\n\t\t\r\n\t\tString password=encode(\"asdfghjkl\");\r\n\t\tSystem.out.println(password);\r\n\t\tString p=\"asdfghjkl\";\r\n\t\tboolean result=encode(p).equals(password);\r\n\t\tSystem.out.println(result);\r\n\t\t\r\n\t\t\r\n\t}", "public static String utf8Encode(String str, String defultReturn) {\n if (!TextUtils.isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for decoding\\t and...\\n\";\n\n assertEquals(\"encode/decode\", test,\n Encodings.decodeEscapes(Encodings.encodeEscapes(test)));\n assertEquals(\"encode/decode\", \"\",\n Encodings.decodeEscapes(Encodings.encodeEscapes(null)));\n }", "public static String utf8Encode(String str, String defultReturn) {\n if (!isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "public static String unEscapeURL(String src) {\n\t StringBuffer bf = new StringBuffer();\n\t char[] s = src.toCharArray();\n\t for (int k = 0; k < s.length; ++k) {\n\t char c = s[k];\n\t if (c == '%') {\n\t if (k + 2 >= s.length) {\n\t bf.append(c);\n\t continue;\n\t }\n\t int a0 = PRTokeniser.getHex(s[k + 1]);\n\t int a1 = PRTokeniser.getHex(s[k + 2]);\n\t if (a0 < 0 || a1 < 0) {\n\t bf.append(c);\n\t continue;\n\t }\n\t bf.append((char)(a0 * 16 + a1));\n\t k += 2;\n\t }\n\t else\n\t bf.append(c);\n\t }\n\t return bf.toString();\n\t}", "@Test\n public void testJoinURL() throws Exception {\n System.out.println(\"joinURL\");\n Map<URLParser.URLParts, String> urlParts = new HashMap<>();\n urlParts.put(URLParser.URLParts.PROTOCOL, \"http\");\n urlParts.put(URLParser.URLParts.PATH, \"/to/path/document\");\n urlParts.put(URLParser.URLParts.HOST, \"www.example.com\");\n urlParts.put(URLParser.URLParts.PORT, \"8080\");\n urlParts.put(URLParser.URLParts.USERINFO, \"user:password\");\n urlParts.put(URLParser.URLParts.FILENAME, \"/to/path/document?arg1=val1&arg2=val2\");\n urlParts.put(URLParser.URLParts.QUERY, \"arg1=val1&arg2=val2\");\n urlParts.put(URLParser.URLParts.AUTHORITY, \"user:[email protected]:8080\");\n urlParts.put(URLParser.URLParts.REF, \"part\");\n \n String expResult = \"http://user:[email protected]:8080/to/path/document?arg1=val1&arg2=val2#part\";\n String result = URLParser.joinURL(urlParts);\n assertEquals(expResult, result);\n }", "private static void encodeString(String in){\n\n\t\tString officalEncodedTxt = officallyEncrypt(in);\n\t\tSystem.out.println(\"Encoded message: \" + officalEncodedTxt);\n\t}", "public String encode(String longUrl) {\n if (longToShort.containsKey(longUrl)) {\n return longToShort.get(longUrl);\n }\n String encode = intToBase62(longUrl.hashCode());\n List<String> list;\n if (shortToLong.containsKey(encode)) {\n list = shortToLong.get(encode);\n } else {\n list = new ArrayList<>();\n shortToLong.put(encode, list);\n }\n encode += SEPERATE + list.size();\n list.add(longUrl);\n longToShort.put(longUrl, encode);\n return PREFIX + encode;\n }", "@Test\n public void urlTest() {\n // TODO: test url\n }", "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 }", "public static String uriEncodeParts(final String value) {\n if (Strings.isNullOrEmpty(value)) {\n return value;\n }\n final int length = value.length();\n final StringBuilder builder = new StringBuilder(length << 1);\n for (int i = 0; i < length; i++) {\n final char c = value.charAt(i);\n if (CharMatcher.ASCII.matches(c)) {\n builder.append(String.valueOf(c));\n } else {\n builder.append(encodeCharacter(c));\n }\n }\n return builder.toString();\n }", "private String encodeUri(String uri) {\n\t\t\tString newUri = \"\";\n\t\t\tStringTokenizer st = new StringTokenizer(uri, \"/ \", true);\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tif (\"/\".equals(tok)) {\n\t\t\t\t\tnewUri += \"/\";\n\t\t\t\t} else if (\" \".equals(tok)) {\n\t\t\t\t\tnewUri += \"%20\";\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnewUri += URLEncoder.encode(tok, \"UTF-8\");\n\t\t\t\t\t} catch (UnsupportedEncodingException ignored) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn newUri;\n\t\t}", "public String encode(String uri) {\n return uri;\n }", "public String encode(String longUrl) {\n \n String key = getRand();\n while (mapper.containsKey (key))\n key = getRand();\n \n mapper.put (key, longUrl);\n return key;\n }", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n String string0 = DBUtil.escape(\"Ucb\");\n assertEquals(\"Ucb\", string0);\n }", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "public static String replaceURLEscapeChars(String value) {\n\t\tvalue = replace(value, \"#\", \"%23\");\n\t\tvalue = replace(value, \"$\", \"%24\");\n\t\tvalue = replace(value, \"%\", \"%25\");\n\t\tvalue = replace(value, \"&\", \"%26\");\n\t\tvalue = replace(value, \"@\", \"%40\");\n\t\tvalue = replace(value, \"'\", \"%60\");\n\t\tvalue = replace(value, \"/\", \"%2F\");\n\t\tvalue = replace(value, \":\", \"%3A\");\n\t\tvalue = replace(value, \";\", \"%3B\");\n\t\tvalue = replace(value, \"<\", \"%3C\");\n\t\tvalue = replace(value, \"=\", \"%3D\");\n\t\tvalue = replace(value, \">\", \"%3E\");\n\t\tvalue = replace(value, \"?\", \"%3F\");\n\t\tvalue = replace(value, \"[\", \"%5B\");\n\t\tvalue = replace(value, \"\\\\\", \"%5C\");\n\t\tvalue = replace(value, \"]\", \"%5D\");\n\t\tvalue = replace(value, \"^\", \"%5E\");\n\t\tvalue = replace(value, \"{\", \"%7B\");\n\t\tvalue = replace(value, \"|\", \"%7C\");\n\t\tvalue = replace(value, \"}\", \"%7D\");\n\t\tvalue = replace(value, \"~\", \"%7E\");\n\t\treturn value;\n\t}", "public boolean isShouldEncodeUrls() {\n return mShouldEncodeUrls;\n }", "@Override\n public String encodeRedirectURL(String url) {\n return this._getHttpServletResponse().encodeRedirectURL(url);\n }", "public Object encode(Object obj) throws EncoderException {\n/* 316 */ if (obj == null)\n/* 317 */ return null; \n/* 318 */ if (obj instanceof byte[])\n/* 319 */ return encode((byte[])obj); \n/* 320 */ if (obj instanceof String) {\n/* 321 */ return encode((String)obj);\n/* */ }\n/* 323 */ throw new EncoderException(\"Objects of type \" + obj.getClass().getName() + \" cannot be URL encoded\");\n/* */ }", "@Test\n public void testSomeMethod() {\n PasswordEncoder encoderImpl = new BCryptPasswordEncoder(11);\n String pass = \"system1234\";\n System.err.println(\"For \" + pass + \", -----------Encoded password = \" + encoderImpl.encode(pass));\n pass = \"pass1\";\n System.err.println(\"For \" + pass + \", -----------Encoded password = \" + encoderImpl.encode(pass));\n }", "public static String encoderRequete(\r\n\t\t\tfinal String pYQL) throws UnsupportedEncodingException {\r\n\t\t\r\n\t\tfinal String uriEncodee = URLEncoder.encode(pYQL, \"UTF-8\");\r\n\t\t\r\n\t\treturn uriEncodee;\r\n\t\t\r\n\t}", "public static String encodeUrl(String base, String parentCode, String code, String targetCode, String token) {\n\t\t/**\n\t\t * A Function for Base64 encoding urls\n\t\t **/\n\n\t\t// Encode Parent and Code\n\t\tString encodedParentCode = new String(Base64.getEncoder().encode(parentCode.getBytes()));\n\t\tString encodedCode = new String(Base64.getEncoder().encode(code.getBytes()));\n\t\tString url = base + \"/\" + encodedParentCode + \"/\" + encodedCode;\n\n\t\t// Add encoded targetCode if not null\n\t\tif (targetCode != null) {\n\t\t\tString encodedTargetCode = new String(Base64.getEncoder().encode(targetCode.getBytes()));\n\t\t\turl = url + \"/\" + encodedTargetCode;\n\t\t}\n\n\t\t// Add access token if not null\n\t\tif (token != null) {\n\t\t\turl = url +\"?token=\" + token;\n\t\t}\n\t\treturn url;\n\t}" ]
[ "0.7483509", "0.7346214", "0.72940725", "0.70829976", "0.6908146", "0.6658051", "0.6653681", "0.6583852", "0.6381629", "0.63784987", "0.6331332", "0.6313128", "0.62988883", "0.62855536", "0.62193567", "0.61782867", "0.61445963", "0.6125667", "0.61248016", "0.61203855", "0.61203146", "0.6119648", "0.6111184", "0.6101491", "0.610124", "0.609394", "0.6093076", "0.60777676", "0.6067502", "0.60523844", "0.6047007", "0.6036735", "0.6013678", "0.5981263", "0.5978316", "0.5976183", "0.59456563", "0.59156597", "0.59126824", "0.5901604", "0.58434325", "0.58348304", "0.57297385", "0.5722187", "0.57171845", "0.5716016", "0.5713267", "0.571012", "0.5697478", "0.5696841", "0.56804043", "0.56699854", "0.56661546", "0.5623602", "0.55982065", "0.5580237", "0.55783653", "0.557023", "0.5556785", "0.55516607", "0.5547994", "0.5534101", "0.55218947", "0.55163443", "0.5498952", "0.54956853", "0.54852945", "0.54751045", "0.54695445", "0.5455119", "0.5427563", "0.54201996", "0.53965616", "0.5385722", "0.53615624", "0.5360374", "0.53382635", "0.5337413", "0.53269047", "0.5320891", "0.5314378", "0.5312412", "0.5308743", "0.52791154", "0.52380157", "0.5234764", "0.5221321", "0.5184442", "0.51727945", "0.5138717", "0.5137697", "0.51359516", "0.51285595", "0.5085908", "0.5080237", "0.5079911", "0.50795615", "0.50779414", "0.5070703", "0.5070252" ]
0.7535612
0
Run the String urlEncode(String,String) method test.
@Test public void testUrlEncode_3() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String input = ""; String encodingScheme = ""; String result = fixture.urlEncode(input, encodingScheme); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testUrlEncode_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public abstract String encodeURL(CharSequence url);", "@Test(expected = java.io.UnsupportedEncodingException.class)\n\tpublic void testUrlEncode_4()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public static String urlEncode(String inText)\n {\n try\n {\n return URLEncoder.encode(inText, \"UTF-8\");\n }\n catch(java.io.UnsupportedEncodingException e)\n {\n Log.error(\"invalid encoding for url encoding: \" + e);\n\n return \"error\";\n }\n }", "private static String urlEncode(String toEncode) throws UnsupportedEncodingException{\r\n\t\treturn URLEncoder.encode(toEncode, \"UTF-8\");\r\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}", "public void testEncodePath() throws Exception {\n\n Object[] test_values = {\n new String[]{\"abc def\", \"abc%20def\"},\n new String[]{\"foo/bar?n=v&N=V\", \"foo/bar%3Fn=v&N=V\"}\n };\n for (int i = 0; i < test_values.length; i++) {\n String tests[] = (String[]) test_values[i];\n String original = tests[0];\n String expected = tests[1];\n\n String result = NetUtils.encodePath(original);\n String message = \"Test \" +\n \" original \" + \"'\" + original + \"'\";\n assertEquals(message, expected, result);\n }\n }", "private static String encodeurl(String url) \n { \n\n try { \n String prevURL=\"\"; \n String decodeURL=url; \n while(!prevURL.equals(decodeURL)) \n { \n prevURL=decodeURL; \n decodeURL=URLDecoder.decode( decodeURL, \"UTF-8\" ); \n } \n return decodeURL.replace('\\\\', '/'); \n } catch (UnsupportedEncodingException e) { \n return \"Issue while decoding\" +e.getMessage(); \n } \n }", "private String urlEncode(String str) {\n String charset = StandardCharsets.UTF_8.name();\n try {\n return URLEncoder.encode(str, charset);\n } catch (UnsupportedEncodingException e) {\n JrawUtils.logger().error(\"Unsupported charset: \" + charset);\n return null;\n }\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}", "@Test\n public void loadPage_EncodeRequest() throws Exception {\n final String htmlContent\n = \"<html><head><title>foo</title></head><body>\\n\"\n + \"</body></html>\";\n\n final WebClient client = getWebClient();\n\n final MockWebConnection webConnection = new MockWebConnection();\n webConnection.setDefaultResponse(htmlContent);\n client.setWebConnection(webConnection);\n\n // with query string not encoded\n HtmlPage page = client.getPage(\"http://first?a=b c&d=\\u00E9\\u00E8\");\n String expected;\n final boolean ie = getBrowserVersion().isIE();\n if (ie) {\n expected = \"?a=b%20c&d=\\u00E9\\u00E8\";\n }\n else {\n expected = \"?a=b%20c&d=%E9%E8\";\n }\n assertEquals(\"http://first/\" + expected, page.getWebResponse().getWebRequest().getUrl());\n\n // with query string already encoded\n page = client.getPage(\"http://first?a=b%20c&d=%C3%A9%C3%A8\");\n assertEquals(\"http://first/?a=b%20c&d=%C3%A9%C3%A8\", page.getWebResponse().getWebRequest().getUrl());\n\n // with query string partially encoded\n page = client.getPage(\"http://first?a=b%20c&d=e f\");\n assertEquals(\"http://first/?a=b%20c&d=e%20f\", page.getWebResponse().getWebRequest().getUrl());\n\n // with anchor\n page = client.getPage(\"http://first?a=b c#myAnchor\");\n assertEquals(\"http://first/?a=b%20c#myAnchor\", page.getWebResponse().getWebRequest().getUrl());\n\n // with query string containing encoded \"&\", \"=\", \"+\", \",\", and \"$\"\n page = client.getPage(\"http://first?a=%26%3D%20%2C%24\");\n assertEquals(\"http://first/?a=%26%3D%20%2C%24\", page.getWebResponse().getWebRequest().getUrl());\n\n // with character to encode in path\n page = client.getPage(\"http://first/page 1.html\");\n assertEquals(\"http://first/page%201.html\", page.getWebResponse().getWebRequest().getUrl());\n\n // with character to encode in path\n page = client.getPage(\"http://first/page 1.html\");\n assertEquals(\"http://first/page%201.html\", page.getWebResponse().getWebRequest().getUrl());\n }", "public static String encodeURL(String url) {\n\n\t\tint len = url.length();\n\n\t\t// add a little (6.25%) to leave room for some expansion during encoding\n\t\tlen += len >>> 4;\n\n\t\treturn appendURL(new StringBuffer(len), url).toString();\n\t}", "public static String encode(String argStr) {\r\n\t\tString result = argStr;\r\n\t\ttry {\r\n\t\t\tif (result != null && !result.isEmpty()) {\r\n\t\t\t\tresult = URLDecoder.decode(result, UTF_8);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// ignore\r\n\t\t}\r\n\t\tresult = encodeExplicit(result);\r\n\t\treturn result;\r\n\t}", "public String encodeURL(String url) {\n return manager.encodeUrl(this, url);\n }", "private static String encodeURI(String url) {\n\t\tStringBuffer uri = new StringBuffer(url.length());\n\t\tint length = url.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tchar c = url.charAt(i);\n\n\t\t\tswitch (c) {\n\t\t\t\tcase '!':\n\t\t\t\tcase '#':\n\t\t\t\tcase '$':\n\t\t\t\tcase '%':\n\t\t\t\tcase '&':\n\t\t\t\tcase '\\'':\n\t\t\t\tcase '(':\n\t\t\t\tcase ')':\n\t\t\t\tcase '*':\n\t\t\t\tcase '+':\n\t\t\t\tcase ',':\n\t\t\t\tcase '-':\n\t\t\t\tcase '.':\n\t\t\t\tcase '/':\n\t\t\t\tcase '0':\n\t\t\t\tcase '1':\n\t\t\t\tcase '2':\n\t\t\t\tcase '3':\n\t\t\t\tcase '4':\n\t\t\t\tcase '5':\n\t\t\t\tcase '6':\n\t\t\t\tcase '7':\n\t\t\t\tcase '8':\n\t\t\t\tcase '9':\n\t\t\t\tcase ':':\n\t\t\t\tcase ';':\n\t\t\t\tcase '=':\n\t\t\t\tcase '?':\n\t\t\t\tcase '@':\n\t\t\t\tcase 'A':\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'C':\n\t\t\t\tcase 'D':\n\t\t\t\tcase 'E':\n\t\t\t\tcase 'F':\n\t\t\t\tcase 'G':\n\t\t\t\tcase 'H':\n\t\t\t\tcase 'I':\n\t\t\t\tcase 'J':\n\t\t\t\tcase 'K':\n\t\t\t\tcase 'L':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'N':\n\t\t\t\tcase 'O':\n\t\t\t\tcase 'P':\n\t\t\t\tcase 'Q':\n\t\t\t\tcase 'R':\n\t\t\t\tcase 'S':\n\t\t\t\tcase 'T':\n\t\t\t\tcase 'U':\n\t\t\t\tcase 'V':\n\t\t\t\tcase 'W':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'Y':\n\t\t\t\tcase 'Z':\n\t\t\t\tcase '[':\n\t\t\t\tcase ']':\n\t\t\t\tcase '_':\n\t\t\t\tcase 'a':\n\t\t\t\tcase 'b':\n\t\t\t\tcase 'c':\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'e':\n\t\t\t\tcase 'f':\n\t\t\t\tcase 'g':\n\t\t\t\tcase 'h':\n\t\t\t\tcase 'i':\n\t\t\t\tcase 'j':\n\t\t\t\tcase 'k':\n\t\t\t\tcase 'l':\n\t\t\t\tcase 'm':\n\t\t\t\tcase 'n':\n\t\t\t\tcase 'o':\n\t\t\t\tcase 'p':\n\t\t\t\tcase 'q':\n\t\t\t\tcase 'r':\n\t\t\t\tcase 's':\n\t\t\t\tcase 't':\n\t\t\t\tcase 'u':\n\t\t\t\tcase 'v':\n\t\t\t\tcase 'w':\n\t\t\t\tcase 'x':\n\t\t\t\tcase 'y':\n\t\t\t\tcase 'z':\n\t\t\t\tcase '~':\n\t\t\t\t\turi.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tStringBuffer result = new StringBuffer(3);\n\t\t\t\t\tString s = String.valueOf(c);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] data = s.getBytes(\"UTF8\");\n\t\t\t\t\t\tfor (int j = 0; j < data.length; j++) {\n\t\t\t\t\t\t\tresult.append('%');\n\t\t\t\t\t\t\tString hex = Integer.toHexString(data[j]);\n\t\t\t\t\t\t\tresult.append(hex.substring(hex.length() - 2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\turi.append(result.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException ex) {\n\t\t\t\t\t\t// should never happen\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn uri.toString();\n\t}", "@Test\n public void testIsURLEncoded() {\n System.out.println(\"isURLEncoded\");\n boolean expResult = true;\n boolean result = instance.isURLEncoded();\n assertEquals(expResult, result);\n }", "@Override\n public String encodeURL(String arg0) {\n return null;\n }", "@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}", "public final String urlEncode() {\n\t\treturn urlEncode(UTF_8);\n\t}", "@Override\n protected boolean shouldEncodeUrls() {\n return isShouldEncodeUrls();\n }", "@Override\n public String encodeURL(String url) {\n return this._getHttpServletResponse().encodeURL(url);\n }", "public static String urlEncode(String str) {\n try {\n return URLEncoder.encode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }", "public String encodeUrl(String s) {\n\t\treturn null;\n\t}", "private String URLEncode (String sStr) {\r\n if (sStr==null) return null;\r\n\r\n int iLen = sStr.length();\r\n StringBuffer sEscaped = new StringBuffer(iLen+100);\r\n char c;\r\n for (int p=0; p<iLen; p++) {\r\n c = sStr.charAt(p);\r\n switch (c) {\r\n case ' ':\r\n sEscaped.append(\"%20\");\r\n break;\r\n case '/':\r\n sEscaped.append(\"%2F\");\r\n break;\r\n case '\"':\r\n sEscaped.append(\"%22\");\r\n break;\r\n case '#':\r\n sEscaped.append(\"%23\");\r\n break;\r\n case '%':\r\n sEscaped.append(\"%25\");\r\n break;\r\n case '&':\r\n sEscaped.append(\"%26\");\r\n break;\r\n case (char)39:\r\n sEscaped.append(\"%27\");\r\n break;\r\n case '+':\r\n sEscaped.append(\"%2B\");\r\n break;\r\n case ',':\r\n sEscaped.append(\"%2C\");\r\n break;\r\n case '=':\r\n sEscaped.append(\"%3D\");\r\n break;\r\n case '?':\r\n sEscaped.append(\"%3F\");\r\n break;\r\n case 'á':\r\n sEscaped.append(\"%E1\");\r\n break;\r\n case 'é':\r\n sEscaped.append(\"%E9\");\r\n break;\r\n case 'í':\r\n sEscaped.append(\"%ED\");\r\n break;\r\n case 'ó':\r\n sEscaped.append(\"%F3\");\r\n break;\r\n case 'ú':\r\n sEscaped.append(\"%FA\");\r\n break;\r\n case 'Á':\r\n sEscaped.append(\"%C1\");\r\n break;\r\n case 'É':\r\n sEscaped.append(\"%C9\");\r\n break;\r\n case 'Í':\r\n sEscaped.append(\"%CD\");\r\n break;\r\n case 'Ó':\r\n sEscaped.append(\"%D3\");\r\n break;\r\n case 'Ú':\r\n sEscaped.append(\"%DA\");\r\n break;\r\n case 'à':\r\n sEscaped.append(\"%E0\");\r\n break;\r\n case 'è':\r\n sEscaped.append(\"%E8\");\r\n break;\r\n case 'ì':\r\n sEscaped.append(\"%EC\");\r\n break;\r\n case 'ò':\r\n sEscaped.append(\"%F2\");\r\n break;\r\n case 'ù':\r\n sEscaped.append(\"%F9\");\r\n break;\r\n case 'À':\r\n sEscaped.append(\"%C0\");\r\n break;\r\n case 'È':\r\n sEscaped.append(\"%C8\");\r\n break;\r\n case 'Ì':\r\n sEscaped.append(\"%CC\");\r\n break;\r\n case 'Ò':\r\n sEscaped.append(\"%D2\");\r\n break;\r\n case 'Ù':\r\n sEscaped.append(\"%D9\");\r\n break;\r\n case 'ñ':\r\n sEscaped.append(\"%F1\");\r\n break;\r\n case 'Ñ':\r\n sEscaped.append(\"%D1\");\r\n break;\r\n case 'ç':\r\n sEscaped.append(\"%E7\");\r\n break;\r\n case 'Ç':\r\n sEscaped.append(\"%C7\");\r\n break;\r\n case 'ô':\r\n sEscaped.append(\"%F4\");\r\n break;\r\n case 'Ô':\r\n sEscaped.append(\"%D4\");\r\n break;\r\n case 'ö':\r\n sEscaped.append(\"%F6\");\r\n break;\r\n case 'Ö':\r\n sEscaped.append(\"%D6\");\r\n break;\r\n case '`':\r\n sEscaped.append(\"%60\");\r\n break;\r\n case '¨':\r\n sEscaped.append(\"%A8\");\r\n break;\r\n default:\r\n sEscaped.append(c);\r\n break;\r\n }\r\n } // next\r\n\r\n return sEscaped.toString();\r\n }", "public String encodeURL(String s) {\n\t\treturn null;\n\t}", "public static String URLEncode (String str) {\n\ttry {\n\t return java.net.URLEncoder.encode (str, \"UTF-8\");\n\t} catch (UnsupportedEncodingException e) {\n\t e.printStackTrace ();\n\t} \n\treturn str;\n }", "@Override\n\tpublic String encodeURL(String url) {\n\t\treturn null;\n\t}", "@Override\n @SuppressWarnings(\"all\")\n public String encodeUrl(String arg0) {\n\n return null;\n }", "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 }", "@Test\n public void encodeParameter() {\n assertEquals(\"abcABC123\", OAuth10.encodeParameter(\"abcABC123\"));\n assertEquals(\"-._~\", OAuth10.encodeParameter(\"-._~\"));\n assertEquals(\"%25\", OAuth10.encodeParameter(\"%\"));\n assertEquals(\"%2B\", OAuth10.encodeParameter(\"+\"));\n assertEquals(\"%26%3D%2A\", OAuth10.encodeParameter(\"&=*\"));\n assertEquals(\"%0A\", OAuth10.encodeParameter(\"\\n\"));\n assertEquals(\"%20\", OAuth10.encodeParameter(\"\\u0020\"));\n assertEquals(\"%7F\", OAuth10.encodeParameter(\"\\u007F\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n assertEquals(\"%E3%80%81\", OAuth10.encodeParameter(\"\\u3001\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n }", "@Override\n public String encodeUrl(String arg0) {\n return null;\n }", "protected native String encodeURIComponent(String text) /*-{\r\n\t\treturn encodeURIComponent(text);\r\n\t}-*/;", "private String encodeURILikeJavascript(String s) {\n log.info(\"Entering encodeURILikeJavascript\");\n String result = null;\n\n try {\n result = URLEncoder.encode(s, \"UTF-8\")\n .replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%7E\", \"~\");\n } catch (UnsupportedEncodingException e) {\n result = s;\n }\n\n return result;\n }", "@Override\n protected final String encode(String unencoded) {\n try {\n return StringUtils.isBlank(unencoded) ? \"\" : URLEncoder.encode(unencoded, \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n java.util.logging.Logger.getLogger(PostRedirectGetWithCookiesFormHelperImpl.class.getName()).log(Level.SEVERE, null, ex);\n return unencoded;\n }\n }", "@Override\n\tpublic String encodeUrl(String url) {\n\t\treturn null;\n\t}", "public static String encodeURL(String string) {\n\t\treturn Utils.encodeURL(string);\n\t}", "public static String encode(String s) {\n // return java.net.URLEncoder.encode(s);\n /*\n ** The only encoded chars are \"<>%=/\", chars < space and chars >= 127\n ** (including cr/lf, ...)\n ** A leading and/or trailing space is also encoded, all others are\n ** left alone\n **\n ** Encoding is %dd where dd are hex digits for the hex value encode\n **\n ** Check if needs encoding first, if not, simply return original string\n */\n char arr[] = s.toCharArray();\n int len = arr.length;\n for(int i=0; i < len; i++) {\n char ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n StringBuffer sb = new StringBuffer();\n for(i=0; i < len; i++) {\n ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n byte b = (byte)arr[i];\n sb.append('%');\n char c = Character.forDigit((b >> 4) & 0xf, 16);\n sb.append(c);\n c = Character.forDigit(b & 0xf, 16);\n sb.append(c);\n } else {\n sb.append(arr[i]);\n }\n }\n s = sb.toString();\n break;\n }\n }\n return s;\n }", "private String encode(String value) {\n String encoded = \"\";\n try {\n encoded = URLEncoder.encode(value, \"UTF-8\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n String sb = \"\";\n char focus;\n for (int i = 0; i < encoded.length(); i++) {\n focus = encoded.charAt(i);\n if (focus == '*') {\n sb += \"%2A\";\n } else if (focus == '+') {\n sb += \"%20\";\n } else if (focus == '%' && i + 1 < encoded.length() && encoded.charAt(i + 1) == '7' && encoded.charAt(i + 2) == 'E') {\n sb += '~';\n i += 2;\n } else {\n sb += focus;\n }\n }\n return sb.toString();\n }", "@Test\n public void encodeTest() throws Exception{\n this.mvc.perform(post(\"/encode?message=a little of this and a little of that&key=mcxrstunopqabyzdefghijklvw\")\n .accept(MediaType.TEXT_PLAIN))\n .andExpect(status().isOk()) // 200 class\n .andExpect(content().string(\"m aohhas zt hnog myr m aohhas zt hnmh\")); // expected good\n }", "public static String encode(String str)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn java.net.URLEncoder.encode(str, \"UTF-8\");\r\n\t\t}\r\n\t\tcatch(java.io.UnsupportedEncodingException ue)\r\n\t\t{\r\n\t\t\treturn str;\r\n\t\t}\r\n\t}", "@Test\n public void testEncoding() throws URISyntaxException, MalformedURLException, UnsupportedEncodingException {\n String encoded = URLEncoder.encode(\"*,\", \"UTF-8\");\n\n //legal to use * and ,\n URI uri = new URI(\"http://localhost/ehcache/sampleCache1/*,\");\n URI url2 = uri.resolve(\"http://localhost/ehcache/sampleCache1/*,\");\n\n }", "public static void main(String[] args) throws Exception {\n \n System.out.println(EncodeMethod(\"AAAABBBCCDAA\"));\n\n System.out.println(DecodeMethod(EncodeMethod(\"AAAABBBCCDAA\")));\n }", "static String uriEscapeString(String unescaped) {\n try {\n return URLEncoder.encode(unescaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }", "@Test\n public void testNormalizeToStringWithSpaceURL() throws Exception {\n AbstractURLHandler handler = new TestURLHandler();\n String normalizedUrl = handler.normalizeToString(new URL(\n \"http://ant.apache.org/ivy/url with space/ivy-1.0.xml\"));\n assertEquals(\"http://ant.apache.org/ivy/url%20with%20space/ivy-1.0.xml\", normalizedUrl);\n }", "@Test\n public void testNormalizeToStringWithPlusCharacter() throws Exception {\n AbstractURLHandler handler = new TestURLHandler();\n String normalizedUrl = handler.normalizeToString(new URL(\n \"http://ant.apache.org/ivy/ivy-1.+.xml\"));\n assertEquals(\"http://ant.apache.org/ivy/ivy-1.%2B.xml\", normalizedUrl);\n }", "private String encodeValue(String value) {\r\n try {\r\n return URLEncoder.encode(value, \"UTF8\");\r\n } catch (UnsupportedEncodingException e) {\r\n // it should not occur since UTF8 should be supported universally\r\n throw new ExcelWrapperException(\"UTF8 encoding is not supported : \" + e.getMessage());\r\n }\r\n }", "public static String encode(String anyURI){\n int len = anyURI.length(), ch;\n StringBuffer buffer = new StringBuffer(len*3);\n \n // for each character in the anyURI\n int i = 0;\n for (; i < len; i++) {\n ch = anyURI.charAt(i);\n // if it's not an ASCII character, break here, and use UTF-8 encoding\n if (ch >= 128)\n break;\n if (gNeedEscaping[ch]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[ch]);\n buffer.append(gAfterEscaping2[ch]);\n }\n else {\n buffer.append((char)ch);\n }\n }\n \n // we saw some non-ascii character\n if (i < len) {\n // get UTF-8 bytes for the remaining sub-string\n byte[] bytes = null;\n byte b;\n try {\n bytes = anyURI.substring(i).getBytes(\"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n // should never happen\n return anyURI;\n }\n len = bytes.length;\n \n // for each byte\n for (i = 0; i < len; i++) {\n b = bytes[i];\n // for non-ascii character: make it positive, then escape\n if (b < 0) {\n ch = b + 256;\n buffer.append('%');\n buffer.append(gHexChs[ch >> 4]);\n buffer.append(gHexChs[ch & 0xf]);\n }\n else if (gNeedEscaping[b]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[b]);\n buffer.append(gAfterEscaping2[b]);\n }\n else {\n buffer.append((char)b);\n }\n }\n }\n \n // If encoding happened, create a new string;\n // otherwise, return the orginal one.\n if (buffer.length() != len)\n return buffer.toString();\n else\n return anyURI;\n }", "public static String percentEncode(String s) {\r\n\t\t//s = _percentEncode( s ); // the original method, from java.net\r\n\t\ts = encodeURL(s, \"UTF-8\");\r\n\t\treturn s;\r\n\t}", "public byte[] encode(byte[] bytes) {\n/* 199 */ return encodeUrl(WWW_FORM_URL_SAFE, bytes);\n/* */ }", "public String encode(String longUrl) {\n String key = \"\";\n do {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n int r = rand.nextInt(charSet.length());\n sb.append(charSet.charAt(r));\n }\n key = sb.toString();\n } while (map.containsKey(key));\n \n map.put(BASE_HOST + key, longUrl);\n return BASE_HOST + key;\n }", "public String c(String str) {\n String str2;\n String str3 = null;\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n try {\n String host = Uri.parse(str).getHost();\n String aBTestValue = TUnionTradeSDK.getInstance().getABTestService().getABTestValue(\"config\");\n if (!TextUtils.isEmpty(aBTestValue)) {\n String optString = new JSONObject(aBTestValue).optString(\"domain\");\n TULog.d(\"abTestRequestUrl, url: \" + str + \" host: \" + host + \" domains: \" + optString, new Object[0]);\n if (!TextUtils.isEmpty(host) && !TextUtils.isEmpty(optString)) {\n JSONArray jSONArray = new JSONArray(optString);\n if (jSONArray.length() > 0) {\n int length = jSONArray.length();\n int i = 0;\n while (true) {\n if (i >= length) {\n break;\n } else if (host.contains(jSONArray.getString(i))) {\n String encode = URLEncoder.encode(str, \"utf-8\");\n try {\n TULog.d(\"abTestRequestUrl, loginJumpUrl :\" + str2, new Object[0]);\n } catch (Exception unused) {\n }\n str3 = str2;\n break;\n } else {\n i++;\n }\n }\n }\n }\n }\n } catch (Exception unused2) {\n }\n return str3;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"\" +ToUtf8Util.toHexString(\"大连\"));\n\t\ttry {\n\t\t\tSystem.out.println(\"\" + URLEncoder.encode(\"大连\",\"utf-8\"));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private String encodeValue(final String dirtyValue) {\n String cleanValue = \"\";\n\n try {\n cleanValue = URLEncoder.encode(dirtyValue, StandardCharsets.UTF_8.name())\n .replace(\"+\", \"%20\");\n } catch (final UnsupportedEncodingException e) {\n }\n\n return cleanValue;\n }", "public static final byte[] encodeUrl(BitSet urlsafe, byte[] bytes) {\n/* 127 */ if (bytes == null) {\n/* 128 */ return null;\n/* */ }\n/* 130 */ if (urlsafe == null) {\n/* 131 */ urlsafe = WWW_FORM_URL_SAFE;\n/* */ }\n/* */ \n/* 134 */ ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n/* 135 */ for (byte c : bytes) {\n/* 136 */ int b = c;\n/* 137 */ if (b < 0) {\n/* 138 */ b = 256 + b;\n/* */ }\n/* 140 */ if (urlsafe.get(b)) {\n/* 141 */ if (b == 32) {\n/* 142 */ b = 43;\n/* */ }\n/* 144 */ buffer.write(b);\n/* */ } else {\n/* 146 */ buffer.write(37);\n/* 147 */ char hex1 = Utils.hexDigit(b >> 4);\n/* 148 */ char hex2 = Utils.hexDigit(b);\n/* 149 */ buffer.write(hex1);\n/* 150 */ buffer.write(hex2);\n/* */ } \n/* */ } \n/* 153 */ return buffer.toByteArray();\n/* */ }", "public static String URIencoding(String word) {\n\t\tString result = word;\n\t\tword = word.replace(\" \", \"_\");\n\t\ttry {\n\t\t\tresult = URLEncoder.encode(word, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public static String encode(String in){\n in = in.replace(\"&\", \"&amp;\");\n in = in.replace(\"\\\"\", \"&quot;\");\n in = in.replace(\"<\", \"&lt;\");\n in = in.replace(\">\", \"&gt;\");\n log.debug(\"encoded string: \" + in);\n // FIXME: Consider double-encoding & if it is not part of &amp;\n return in;\n }", "public final String urlEncode(String encoding) {\n\n\t\tfinal StringBuilder out = new StringBuilder();\n\n\t\ttry {\n\t\t\turlEncode(out, encoding);\n\t\t} catch (IOException e) {\n\t\t\tnew IllegalStateException(e);// Should never happen.\n\t\t}\n\n\t\treturn out.toString();\n\t}", "@Test\n public void testEncode() {\n LOGGER.info(\"testEncode\");\n final String actual = new AtomString().encode();\n final String expected = \"0:\";\n assertEquals(expected, actual);\n }", "public static String encodeQuery(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n return retString;\n }", "private static String urlEncodeParameter(String parameter) throws UnsupportedEncodingException{\r\n\t\tint equal = parameter.indexOf(\"=\");\r\n\t\treturn urlEncode(parameter.substring(0, equal))+\"=\"+urlEncode(parameter.substring(equal+1));\r\n\t}", "public String encode(String longUrl) {\n StringBuilder sb = new StringBuilder();\n while (sb.length() < keyLength || shortToLong.containsKey(sb.toString())) {\n sb = new StringBuilder();\n for (int i = 0; i < keyLength; i++) {\n sb.append( alphabet.charAt( (int) Math.floor(Math.random()*alphabet.length()) ) );\n }\n }\n String key = sb.toString();\n longToShort.put(longUrl, key);\n shortToLong.put(key, longUrl);\n return \"htpp://tinyurl.com/\" + key;\n }", "public static String convertUrlToPunycodeIfNeeded(String url) {\n if (!Charset.forName(\"US-ASCII\").newEncoder().canEncode(url)) {\n if (url.toLowerCase().startsWith(\"http://\")) {\n url = \"http://\" + IDN.toASCII(url.substring(7));\n } else if (url.toLowerCase().startsWith(\"https://\")) {\n url = \"https://\" + IDN.toASCII(url.substring(8));\n } else {\n url = IDN.toASCII(url);\n }\n }\n return url;\n }", "public String encode(String longUrl) {\n while (!url2code.containsKey(longUrl)) {\n // generate code\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n sb.append(alphabet.charAt(rand.nextInt(62)));\n }\n // put code-url pair\n String code = sb.toString();\n if (!code2url.containsKey(code)) {\n code2url.put(code, longUrl);\n url2code.put(longUrl, code);\n }\n }\n\n return url2code.get(longUrl);\n }", "public static String encodeURI(String string) {\n\t\treturn Utils.encodeURI(string);\n\t}", "@org.junit.Test\n public void encodeHTML()\n {\n assertEquals(\"apos\", \"I can&#39;t do &#34;this&#34;\",\n Encodings.encodeHTMLAttribute(\"I can't do \\\"this\\\"\"));\n assertEquals(\"no replace\", \"just a test\",\n Encodings.encodeHTMLAttribute(\"just a test\"));\n assertEquals(\"empty\", \"\", Encodings.encodeHTMLAttribute(\"\"));\n }", "public static String encodeQueryValue(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n retString = replaceString(retString, \"&\", \"%26\");\n retString = replaceString(retString, \"?\", \"%3F\");\n retString = replaceString(retString, \"=\", \"%3D\");\n return retString;\n }", "public String encodeToUrlString() throws IOException {\n return encodeWritable(this);\n }", "public String encode(String longUrl) {\n while(map.containsKey(key)){\n key = r.nextInt(Integer.MAX_VALUE);//直到找到没有用过的key\n }\n map.put(key, longUrl);\n return \"http://tinyurl.com/\" + key;\n }", "public EncodeAndDecodeStrings() {}", "public static String encode(String toEncode)\n {\n return com.github.terefang.jldap.ldap.LDAPUrl.encode( toEncode);\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 }", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "public String encode(String longUrl) {\n\t int key = longUrl.hashCode();\n\t map.put(key, longUrl);\n\t return Integer.toString(key);\n\t }", "public String encode(String longUrl) {\n\n String shortUrl = getShortUrl();\n\n if(shortToLongUrl.containsKey(shortUrl)){\n shortUrl = getShortUrl();\n }\n\n shortToLongUrl.put(shortUrl, longUrl);\n return \"http://tinyurl.com/\" + shortUrl;\n }", "public abstract BridgeURL encodeBookmarkableURL(String baseURL, Map<String, List<String>> parameters);", "public static void main(String[] args) {\r\n\t\t\r\n\t\tString password=encode(\"asdfghjkl\");\r\n\t\tSystem.out.println(password);\r\n\t\tString p=\"asdfghjkl\";\r\n\t\tboolean result=encode(p).equals(password);\r\n\t\tSystem.out.println(result);\r\n\t\t\r\n\t\t\r\n\t}", "public static String utf8Encode(String str, String defultReturn) {\n if (!TextUtils.isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for decoding\\t and...\\n\";\n\n assertEquals(\"encode/decode\", test,\n Encodings.decodeEscapes(Encodings.encodeEscapes(test)));\n assertEquals(\"encode/decode\", \"\",\n Encodings.decodeEscapes(Encodings.encodeEscapes(null)));\n }", "public static String utf8Encode(String str, String defultReturn) {\n if (!isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "public static String unEscapeURL(String src) {\n\t StringBuffer bf = new StringBuffer();\n\t char[] s = src.toCharArray();\n\t for (int k = 0; k < s.length; ++k) {\n\t char c = s[k];\n\t if (c == '%') {\n\t if (k + 2 >= s.length) {\n\t bf.append(c);\n\t continue;\n\t }\n\t int a0 = PRTokeniser.getHex(s[k + 1]);\n\t int a1 = PRTokeniser.getHex(s[k + 2]);\n\t if (a0 < 0 || a1 < 0) {\n\t bf.append(c);\n\t continue;\n\t }\n\t bf.append((char)(a0 * 16 + a1));\n\t k += 2;\n\t }\n\t else\n\t bf.append(c);\n\t }\n\t return bf.toString();\n\t}", "@Test\n public void testJoinURL() throws Exception {\n System.out.println(\"joinURL\");\n Map<URLParser.URLParts, String> urlParts = new HashMap<>();\n urlParts.put(URLParser.URLParts.PROTOCOL, \"http\");\n urlParts.put(URLParser.URLParts.PATH, \"/to/path/document\");\n urlParts.put(URLParser.URLParts.HOST, \"www.example.com\");\n urlParts.put(URLParser.URLParts.PORT, \"8080\");\n urlParts.put(URLParser.URLParts.USERINFO, \"user:password\");\n urlParts.put(URLParser.URLParts.FILENAME, \"/to/path/document?arg1=val1&arg2=val2\");\n urlParts.put(URLParser.URLParts.QUERY, \"arg1=val1&arg2=val2\");\n urlParts.put(URLParser.URLParts.AUTHORITY, \"user:[email protected]:8080\");\n urlParts.put(URLParser.URLParts.REF, \"part\");\n \n String expResult = \"http://user:[email protected]:8080/to/path/document?arg1=val1&arg2=val2#part\";\n String result = URLParser.joinURL(urlParts);\n assertEquals(expResult, result);\n }", "private static void encodeString(String in){\n\n\t\tString officalEncodedTxt = officallyEncrypt(in);\n\t\tSystem.out.println(\"Encoded message: \" + officalEncodedTxt);\n\t}", "public String encode(String longUrl) {\n if (longToShort.containsKey(longUrl)) {\n return longToShort.get(longUrl);\n }\n String encode = intToBase62(longUrl.hashCode());\n List<String> list;\n if (shortToLong.containsKey(encode)) {\n list = shortToLong.get(encode);\n } else {\n list = new ArrayList<>();\n shortToLong.put(encode, list);\n }\n encode += SEPERATE + list.size();\n list.add(longUrl);\n longToShort.put(longUrl, encode);\n return PREFIX + encode;\n }", "@Test\n public void urlTest() {\n // TODO: test url\n }", "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 }", "public static String uriEncodeParts(final String value) {\n if (Strings.isNullOrEmpty(value)) {\n return value;\n }\n final int length = value.length();\n final StringBuilder builder = new StringBuilder(length << 1);\n for (int i = 0; i < length; i++) {\n final char c = value.charAt(i);\n if (CharMatcher.ASCII.matches(c)) {\n builder.append(String.valueOf(c));\n } else {\n builder.append(encodeCharacter(c));\n }\n }\n return builder.toString();\n }", "private String encodeUri(String uri) {\n\t\t\tString newUri = \"\";\n\t\t\tStringTokenizer st = new StringTokenizer(uri, \"/ \", true);\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tif (\"/\".equals(tok)) {\n\t\t\t\t\tnewUri += \"/\";\n\t\t\t\t} else if (\" \".equals(tok)) {\n\t\t\t\t\tnewUri += \"%20\";\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnewUri += URLEncoder.encode(tok, \"UTF-8\");\n\t\t\t\t\t} catch (UnsupportedEncodingException ignored) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn newUri;\n\t\t}", "public String encode(String uri) {\n return uri;\n }", "public String encode(String longUrl) {\n \n String key = getRand();\n while (mapper.containsKey (key))\n key = getRand();\n \n mapper.put (key, longUrl);\n return key;\n }", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n String string0 = DBUtil.escape(\"Ucb\");\n assertEquals(\"Ucb\", string0);\n }", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "public static String replaceURLEscapeChars(String value) {\n\t\tvalue = replace(value, \"#\", \"%23\");\n\t\tvalue = replace(value, \"$\", \"%24\");\n\t\tvalue = replace(value, \"%\", \"%25\");\n\t\tvalue = replace(value, \"&\", \"%26\");\n\t\tvalue = replace(value, \"@\", \"%40\");\n\t\tvalue = replace(value, \"'\", \"%60\");\n\t\tvalue = replace(value, \"/\", \"%2F\");\n\t\tvalue = replace(value, \":\", \"%3A\");\n\t\tvalue = replace(value, \";\", \"%3B\");\n\t\tvalue = replace(value, \"<\", \"%3C\");\n\t\tvalue = replace(value, \"=\", \"%3D\");\n\t\tvalue = replace(value, \">\", \"%3E\");\n\t\tvalue = replace(value, \"?\", \"%3F\");\n\t\tvalue = replace(value, \"[\", \"%5B\");\n\t\tvalue = replace(value, \"\\\\\", \"%5C\");\n\t\tvalue = replace(value, \"]\", \"%5D\");\n\t\tvalue = replace(value, \"^\", \"%5E\");\n\t\tvalue = replace(value, \"{\", \"%7B\");\n\t\tvalue = replace(value, \"|\", \"%7C\");\n\t\tvalue = replace(value, \"}\", \"%7D\");\n\t\tvalue = replace(value, \"~\", \"%7E\");\n\t\treturn value;\n\t}", "public boolean isShouldEncodeUrls() {\n return mShouldEncodeUrls;\n }", "@Override\n public String encodeRedirectURL(String url) {\n return this._getHttpServletResponse().encodeRedirectURL(url);\n }", "public Object encode(Object obj) throws EncoderException {\n/* 316 */ if (obj == null)\n/* 317 */ return null; \n/* 318 */ if (obj instanceof byte[])\n/* 319 */ return encode((byte[])obj); \n/* 320 */ if (obj instanceof String) {\n/* 321 */ return encode((String)obj);\n/* */ }\n/* 323 */ throw new EncoderException(\"Objects of type \" + obj.getClass().getName() + \" cannot be URL encoded\");\n/* */ }", "@Test\n public void testSomeMethod() {\n PasswordEncoder encoderImpl = new BCryptPasswordEncoder(11);\n String pass = \"system1234\";\n System.err.println(\"For \" + pass + \", -----------Encoded password = \" + encoderImpl.encode(pass));\n pass = \"pass1\";\n System.err.println(\"For \" + pass + \", -----------Encoded password = \" + encoderImpl.encode(pass));\n }", "public static String encoderRequete(\r\n\t\t\tfinal String pYQL) throws UnsupportedEncodingException {\r\n\t\t\r\n\t\tfinal String uriEncodee = URLEncoder.encode(pYQL, \"UTF-8\");\r\n\t\t\r\n\t\treturn uriEncodee;\r\n\t\t\r\n\t}", "public static String encodeUrl(String base, String parentCode, String code, String targetCode, String token) {\n\t\t/**\n\t\t * A Function for Base64 encoding urls\n\t\t **/\n\n\t\t// Encode Parent and Code\n\t\tString encodedParentCode = new String(Base64.getEncoder().encode(parentCode.getBytes()));\n\t\tString encodedCode = new String(Base64.getEncoder().encode(code.getBytes()));\n\t\tString url = base + \"/\" + encodedParentCode + \"/\" + encodedCode;\n\n\t\t// Add encoded targetCode if not null\n\t\tif (targetCode != null) {\n\t\t\tString encodedTargetCode = new String(Base64.getEncoder().encode(targetCode.getBytes()));\n\t\t\turl = url + \"/\" + encodedTargetCode;\n\t\t}\n\n\t\t// Add access token if not null\n\t\tif (token != null) {\n\t\t\turl = url +\"?token=\" + token;\n\t\t}\n\t\treturn url;\n\t}" ]
[ "0.7535612", "0.7483509", "0.7346214", "0.70829976", "0.6908146", "0.6658051", "0.6653681", "0.6583852", "0.6381629", "0.63784987", "0.6331332", "0.6313128", "0.62988883", "0.62855536", "0.62193567", "0.61782867", "0.61445963", "0.6125667", "0.61248016", "0.61203855", "0.61203146", "0.6119648", "0.6111184", "0.6101491", "0.610124", "0.609394", "0.6093076", "0.60777676", "0.6067502", "0.60523844", "0.6047007", "0.6036735", "0.6013678", "0.5981263", "0.5978316", "0.5976183", "0.59456563", "0.59156597", "0.59126824", "0.5901604", "0.58434325", "0.58348304", "0.57297385", "0.5722187", "0.57171845", "0.5716016", "0.5713267", "0.571012", "0.5697478", "0.5696841", "0.56804043", "0.56699854", "0.56661546", "0.5623602", "0.55982065", "0.5580237", "0.55783653", "0.557023", "0.5556785", "0.55516607", "0.5547994", "0.5534101", "0.55218947", "0.55163443", "0.5498952", "0.54956853", "0.54852945", "0.54751045", "0.54695445", "0.5455119", "0.5427563", "0.54201996", "0.53965616", "0.5385722", "0.53615624", "0.5360374", "0.53382635", "0.5337413", "0.53269047", "0.5320891", "0.5314378", "0.5312412", "0.5308743", "0.52791154", "0.52380157", "0.5234764", "0.5221321", "0.5184442", "0.51727945", "0.5138717", "0.5137697", "0.51359516", "0.51285595", "0.5085908", "0.5080237", "0.5079911", "0.50795615", "0.50779414", "0.5070703", "0.5070252" ]
0.72940725
3
Run the String urlEncode(String,String) method test.
@Test(expected = java.io.UnsupportedEncodingException.class) public void testUrlEncode_4() throws Exception { RedirectView fixture = new RedirectView("", true, true); fixture.setUrl(""); fixture.setEncodingScheme(""); String input = ""; String encodingScheme = ""; String result = fixture.urlEncode(input, encodingScheme); // add additional test code here assertNotNull(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUrlEncode_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testUrlEncode_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public abstract String encodeURL(CharSequence url);", "@Test\n\tpublic void testUrlEncode_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tString input = \"\";\n\t\tString encodingScheme = \"\";\n\n\t\tString result = fixture.urlEncode(input, encodingScheme);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public static String urlEncode(String inText)\n {\n try\n {\n return URLEncoder.encode(inText, \"UTF-8\");\n }\n catch(java.io.UnsupportedEncodingException e)\n {\n Log.error(\"invalid encoding for url encoding: \" + e);\n\n return \"error\";\n }\n }", "private static String urlEncode(String toEncode) throws UnsupportedEncodingException{\r\n\t\treturn URLEncoder.encode(toEncode, \"UTF-8\");\r\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}", "public void testEncodePath() throws Exception {\n\n Object[] test_values = {\n new String[]{\"abc def\", \"abc%20def\"},\n new String[]{\"foo/bar?n=v&N=V\", \"foo/bar%3Fn=v&N=V\"}\n };\n for (int i = 0; i < test_values.length; i++) {\n String tests[] = (String[]) test_values[i];\n String original = tests[0];\n String expected = tests[1];\n\n String result = NetUtils.encodePath(original);\n String message = \"Test \" +\n \" original \" + \"'\" + original + \"'\";\n assertEquals(message, expected, result);\n }\n }", "private static String encodeurl(String url) \n { \n\n try { \n String prevURL=\"\"; \n String decodeURL=url; \n while(!prevURL.equals(decodeURL)) \n { \n prevURL=decodeURL; \n decodeURL=URLDecoder.decode( decodeURL, \"UTF-8\" ); \n } \n return decodeURL.replace('\\\\', '/'); \n } catch (UnsupportedEncodingException e) { \n return \"Issue while decoding\" +e.getMessage(); \n } \n }", "private String urlEncode(String str) {\n String charset = StandardCharsets.UTF_8.name();\n try {\n return URLEncoder.encode(str, charset);\n } catch (UnsupportedEncodingException e) {\n JrawUtils.logger().error(\"Unsupported charset: \" + charset);\n return null;\n }\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}", "@Test\n public void loadPage_EncodeRequest() throws Exception {\n final String htmlContent\n = \"<html><head><title>foo</title></head><body>\\n\"\n + \"</body></html>\";\n\n final WebClient client = getWebClient();\n\n final MockWebConnection webConnection = new MockWebConnection();\n webConnection.setDefaultResponse(htmlContent);\n client.setWebConnection(webConnection);\n\n // with query string not encoded\n HtmlPage page = client.getPage(\"http://first?a=b c&d=\\u00E9\\u00E8\");\n String expected;\n final boolean ie = getBrowserVersion().isIE();\n if (ie) {\n expected = \"?a=b%20c&d=\\u00E9\\u00E8\";\n }\n else {\n expected = \"?a=b%20c&d=%E9%E8\";\n }\n assertEquals(\"http://first/\" + expected, page.getWebResponse().getWebRequest().getUrl());\n\n // with query string already encoded\n page = client.getPage(\"http://first?a=b%20c&d=%C3%A9%C3%A8\");\n assertEquals(\"http://first/?a=b%20c&d=%C3%A9%C3%A8\", page.getWebResponse().getWebRequest().getUrl());\n\n // with query string partially encoded\n page = client.getPage(\"http://first?a=b%20c&d=e f\");\n assertEquals(\"http://first/?a=b%20c&d=e%20f\", page.getWebResponse().getWebRequest().getUrl());\n\n // with anchor\n page = client.getPage(\"http://first?a=b c#myAnchor\");\n assertEquals(\"http://first/?a=b%20c#myAnchor\", page.getWebResponse().getWebRequest().getUrl());\n\n // with query string containing encoded \"&\", \"=\", \"+\", \",\", and \"$\"\n page = client.getPage(\"http://first?a=%26%3D%20%2C%24\");\n assertEquals(\"http://first/?a=%26%3D%20%2C%24\", page.getWebResponse().getWebRequest().getUrl());\n\n // with character to encode in path\n page = client.getPage(\"http://first/page 1.html\");\n assertEquals(\"http://first/page%201.html\", page.getWebResponse().getWebRequest().getUrl());\n\n // with character to encode in path\n page = client.getPage(\"http://first/page 1.html\");\n assertEquals(\"http://first/page%201.html\", page.getWebResponse().getWebRequest().getUrl());\n }", "public static String encodeURL(String url) {\n\n\t\tint len = url.length();\n\n\t\t// add a little (6.25%) to leave room for some expansion during encoding\n\t\tlen += len >>> 4;\n\n\t\treturn appendURL(new StringBuffer(len), url).toString();\n\t}", "public static String encode(String argStr) {\r\n\t\tString result = argStr;\r\n\t\ttry {\r\n\t\t\tif (result != null && !result.isEmpty()) {\r\n\t\t\t\tresult = URLDecoder.decode(result, UTF_8);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// ignore\r\n\t\t}\r\n\t\tresult = encodeExplicit(result);\r\n\t\treturn result;\r\n\t}", "public String encodeURL(String url) {\n return manager.encodeUrl(this, url);\n }", "private static String encodeURI(String url) {\n\t\tStringBuffer uri = new StringBuffer(url.length());\n\t\tint length = url.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tchar c = url.charAt(i);\n\n\t\t\tswitch (c) {\n\t\t\t\tcase '!':\n\t\t\t\tcase '#':\n\t\t\t\tcase '$':\n\t\t\t\tcase '%':\n\t\t\t\tcase '&':\n\t\t\t\tcase '\\'':\n\t\t\t\tcase '(':\n\t\t\t\tcase ')':\n\t\t\t\tcase '*':\n\t\t\t\tcase '+':\n\t\t\t\tcase ',':\n\t\t\t\tcase '-':\n\t\t\t\tcase '.':\n\t\t\t\tcase '/':\n\t\t\t\tcase '0':\n\t\t\t\tcase '1':\n\t\t\t\tcase '2':\n\t\t\t\tcase '3':\n\t\t\t\tcase '4':\n\t\t\t\tcase '5':\n\t\t\t\tcase '6':\n\t\t\t\tcase '7':\n\t\t\t\tcase '8':\n\t\t\t\tcase '9':\n\t\t\t\tcase ':':\n\t\t\t\tcase ';':\n\t\t\t\tcase '=':\n\t\t\t\tcase '?':\n\t\t\t\tcase '@':\n\t\t\t\tcase 'A':\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'C':\n\t\t\t\tcase 'D':\n\t\t\t\tcase 'E':\n\t\t\t\tcase 'F':\n\t\t\t\tcase 'G':\n\t\t\t\tcase 'H':\n\t\t\t\tcase 'I':\n\t\t\t\tcase 'J':\n\t\t\t\tcase 'K':\n\t\t\t\tcase 'L':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'N':\n\t\t\t\tcase 'O':\n\t\t\t\tcase 'P':\n\t\t\t\tcase 'Q':\n\t\t\t\tcase 'R':\n\t\t\t\tcase 'S':\n\t\t\t\tcase 'T':\n\t\t\t\tcase 'U':\n\t\t\t\tcase 'V':\n\t\t\t\tcase 'W':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'Y':\n\t\t\t\tcase 'Z':\n\t\t\t\tcase '[':\n\t\t\t\tcase ']':\n\t\t\t\tcase '_':\n\t\t\t\tcase 'a':\n\t\t\t\tcase 'b':\n\t\t\t\tcase 'c':\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'e':\n\t\t\t\tcase 'f':\n\t\t\t\tcase 'g':\n\t\t\t\tcase 'h':\n\t\t\t\tcase 'i':\n\t\t\t\tcase 'j':\n\t\t\t\tcase 'k':\n\t\t\t\tcase 'l':\n\t\t\t\tcase 'm':\n\t\t\t\tcase 'n':\n\t\t\t\tcase 'o':\n\t\t\t\tcase 'p':\n\t\t\t\tcase 'q':\n\t\t\t\tcase 'r':\n\t\t\t\tcase 's':\n\t\t\t\tcase 't':\n\t\t\t\tcase 'u':\n\t\t\t\tcase 'v':\n\t\t\t\tcase 'w':\n\t\t\t\tcase 'x':\n\t\t\t\tcase 'y':\n\t\t\t\tcase 'z':\n\t\t\t\tcase '~':\n\t\t\t\t\turi.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tStringBuffer result = new StringBuffer(3);\n\t\t\t\t\tString s = String.valueOf(c);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] data = s.getBytes(\"UTF8\");\n\t\t\t\t\t\tfor (int j = 0; j < data.length; j++) {\n\t\t\t\t\t\t\tresult.append('%');\n\t\t\t\t\t\t\tString hex = Integer.toHexString(data[j]);\n\t\t\t\t\t\t\tresult.append(hex.substring(hex.length() - 2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\turi.append(result.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException ex) {\n\t\t\t\t\t\t// should never happen\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn uri.toString();\n\t}", "@Test\n public void testIsURLEncoded() {\n System.out.println(\"isURLEncoded\");\n boolean expResult = true;\n boolean result = instance.isURLEncoded();\n assertEquals(expResult, result);\n }", "@Override\n public String encodeURL(String arg0) {\n return null;\n }", "@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}", "public final String urlEncode() {\n\t\treturn urlEncode(UTF_8);\n\t}", "@Override\n protected boolean shouldEncodeUrls() {\n return isShouldEncodeUrls();\n }", "@Override\n public String encodeURL(String url) {\n return this._getHttpServletResponse().encodeURL(url);\n }", "public static String urlEncode(String str) {\n try {\n return URLEncoder.encode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }", "public String encodeUrl(String s) {\n\t\treturn null;\n\t}", "private String URLEncode (String sStr) {\r\n if (sStr==null) return null;\r\n\r\n int iLen = sStr.length();\r\n StringBuffer sEscaped = new StringBuffer(iLen+100);\r\n char c;\r\n for (int p=0; p<iLen; p++) {\r\n c = sStr.charAt(p);\r\n switch (c) {\r\n case ' ':\r\n sEscaped.append(\"%20\");\r\n break;\r\n case '/':\r\n sEscaped.append(\"%2F\");\r\n break;\r\n case '\"':\r\n sEscaped.append(\"%22\");\r\n break;\r\n case '#':\r\n sEscaped.append(\"%23\");\r\n break;\r\n case '%':\r\n sEscaped.append(\"%25\");\r\n break;\r\n case '&':\r\n sEscaped.append(\"%26\");\r\n break;\r\n case (char)39:\r\n sEscaped.append(\"%27\");\r\n break;\r\n case '+':\r\n sEscaped.append(\"%2B\");\r\n break;\r\n case ',':\r\n sEscaped.append(\"%2C\");\r\n break;\r\n case '=':\r\n sEscaped.append(\"%3D\");\r\n break;\r\n case '?':\r\n sEscaped.append(\"%3F\");\r\n break;\r\n case 'á':\r\n sEscaped.append(\"%E1\");\r\n break;\r\n case 'é':\r\n sEscaped.append(\"%E9\");\r\n break;\r\n case 'í':\r\n sEscaped.append(\"%ED\");\r\n break;\r\n case 'ó':\r\n sEscaped.append(\"%F3\");\r\n break;\r\n case 'ú':\r\n sEscaped.append(\"%FA\");\r\n break;\r\n case 'Á':\r\n sEscaped.append(\"%C1\");\r\n break;\r\n case 'É':\r\n sEscaped.append(\"%C9\");\r\n break;\r\n case 'Í':\r\n sEscaped.append(\"%CD\");\r\n break;\r\n case 'Ó':\r\n sEscaped.append(\"%D3\");\r\n break;\r\n case 'Ú':\r\n sEscaped.append(\"%DA\");\r\n break;\r\n case 'à':\r\n sEscaped.append(\"%E0\");\r\n break;\r\n case 'è':\r\n sEscaped.append(\"%E8\");\r\n break;\r\n case 'ì':\r\n sEscaped.append(\"%EC\");\r\n break;\r\n case 'ò':\r\n sEscaped.append(\"%F2\");\r\n break;\r\n case 'ù':\r\n sEscaped.append(\"%F9\");\r\n break;\r\n case 'À':\r\n sEscaped.append(\"%C0\");\r\n break;\r\n case 'È':\r\n sEscaped.append(\"%C8\");\r\n break;\r\n case 'Ì':\r\n sEscaped.append(\"%CC\");\r\n break;\r\n case 'Ò':\r\n sEscaped.append(\"%D2\");\r\n break;\r\n case 'Ù':\r\n sEscaped.append(\"%D9\");\r\n break;\r\n case 'ñ':\r\n sEscaped.append(\"%F1\");\r\n break;\r\n case 'Ñ':\r\n sEscaped.append(\"%D1\");\r\n break;\r\n case 'ç':\r\n sEscaped.append(\"%E7\");\r\n break;\r\n case 'Ç':\r\n sEscaped.append(\"%C7\");\r\n break;\r\n case 'ô':\r\n sEscaped.append(\"%F4\");\r\n break;\r\n case 'Ô':\r\n sEscaped.append(\"%D4\");\r\n break;\r\n case 'ö':\r\n sEscaped.append(\"%F6\");\r\n break;\r\n case 'Ö':\r\n sEscaped.append(\"%D6\");\r\n break;\r\n case '`':\r\n sEscaped.append(\"%60\");\r\n break;\r\n case '¨':\r\n sEscaped.append(\"%A8\");\r\n break;\r\n default:\r\n sEscaped.append(c);\r\n break;\r\n }\r\n } // next\r\n\r\n return sEscaped.toString();\r\n }", "public String encodeURL(String s) {\n\t\treturn null;\n\t}", "public static String URLEncode (String str) {\n\ttry {\n\t return java.net.URLEncoder.encode (str, \"UTF-8\");\n\t} catch (UnsupportedEncodingException e) {\n\t e.printStackTrace ();\n\t} \n\treturn str;\n }", "@Override\n\tpublic String encodeURL(String url) {\n\t\treturn null;\n\t}", "@Override\n @SuppressWarnings(\"all\")\n public String encodeUrl(String arg0) {\n\n return null;\n }", "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 }", "@Test\n public void encodeParameter() {\n assertEquals(\"abcABC123\", OAuth10.encodeParameter(\"abcABC123\"));\n assertEquals(\"-._~\", OAuth10.encodeParameter(\"-._~\"));\n assertEquals(\"%25\", OAuth10.encodeParameter(\"%\"));\n assertEquals(\"%2B\", OAuth10.encodeParameter(\"+\"));\n assertEquals(\"%26%3D%2A\", OAuth10.encodeParameter(\"&=*\"));\n assertEquals(\"%0A\", OAuth10.encodeParameter(\"\\n\"));\n assertEquals(\"%20\", OAuth10.encodeParameter(\"\\u0020\"));\n assertEquals(\"%7F\", OAuth10.encodeParameter(\"\\u007F\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n assertEquals(\"%E3%80%81\", OAuth10.encodeParameter(\"\\u3001\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n }", "@Override\n public String encodeUrl(String arg0) {\n return null;\n }", "protected native String encodeURIComponent(String text) /*-{\r\n\t\treturn encodeURIComponent(text);\r\n\t}-*/;", "private String encodeURILikeJavascript(String s) {\n log.info(\"Entering encodeURILikeJavascript\");\n String result = null;\n\n try {\n result = URLEncoder.encode(s, \"UTF-8\")\n .replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%7E\", \"~\");\n } catch (UnsupportedEncodingException e) {\n result = s;\n }\n\n return result;\n }", "@Override\n protected final String encode(String unencoded) {\n try {\n return StringUtils.isBlank(unencoded) ? \"\" : URLEncoder.encode(unencoded, \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n java.util.logging.Logger.getLogger(PostRedirectGetWithCookiesFormHelperImpl.class.getName()).log(Level.SEVERE, null, ex);\n return unencoded;\n }\n }", "@Override\n\tpublic String encodeUrl(String url) {\n\t\treturn null;\n\t}", "public static String encodeURL(String string) {\n\t\treturn Utils.encodeURL(string);\n\t}", "public static String encode(String s) {\n // return java.net.URLEncoder.encode(s);\n /*\n ** The only encoded chars are \"<>%=/\", chars < space and chars >= 127\n ** (including cr/lf, ...)\n ** A leading and/or trailing space is also encoded, all others are\n ** left alone\n **\n ** Encoding is %dd where dd are hex digits for the hex value encode\n **\n ** Check if needs encoding first, if not, simply return original string\n */\n char arr[] = s.toCharArray();\n int len = arr.length;\n for(int i=0; i < len; i++) {\n char ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n StringBuffer sb = new StringBuffer();\n for(i=0; i < len; i++) {\n ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n byte b = (byte)arr[i];\n sb.append('%');\n char c = Character.forDigit((b >> 4) & 0xf, 16);\n sb.append(c);\n c = Character.forDigit(b & 0xf, 16);\n sb.append(c);\n } else {\n sb.append(arr[i]);\n }\n }\n s = sb.toString();\n break;\n }\n }\n return s;\n }", "private String encode(String value) {\n String encoded = \"\";\n try {\n encoded = URLEncoder.encode(value, \"UTF-8\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n String sb = \"\";\n char focus;\n for (int i = 0; i < encoded.length(); i++) {\n focus = encoded.charAt(i);\n if (focus == '*') {\n sb += \"%2A\";\n } else if (focus == '+') {\n sb += \"%20\";\n } else if (focus == '%' && i + 1 < encoded.length() && encoded.charAt(i + 1) == '7' && encoded.charAt(i + 2) == 'E') {\n sb += '~';\n i += 2;\n } else {\n sb += focus;\n }\n }\n return sb.toString();\n }", "@Test\n public void encodeTest() throws Exception{\n this.mvc.perform(post(\"/encode?message=a little of this and a little of that&key=mcxrstunopqabyzdefghijklvw\")\n .accept(MediaType.TEXT_PLAIN))\n .andExpect(status().isOk()) // 200 class\n .andExpect(content().string(\"m aohhas zt hnog myr m aohhas zt hnmh\")); // expected good\n }", "public static String encode(String str)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn java.net.URLEncoder.encode(str, \"UTF-8\");\r\n\t\t}\r\n\t\tcatch(java.io.UnsupportedEncodingException ue)\r\n\t\t{\r\n\t\t\treturn str;\r\n\t\t}\r\n\t}", "@Test\n public void testEncoding() throws URISyntaxException, MalformedURLException, UnsupportedEncodingException {\n String encoded = URLEncoder.encode(\"*,\", \"UTF-8\");\n\n //legal to use * and ,\n URI uri = new URI(\"http://localhost/ehcache/sampleCache1/*,\");\n URI url2 = uri.resolve(\"http://localhost/ehcache/sampleCache1/*,\");\n\n }", "public static void main(String[] args) throws Exception {\n \n System.out.println(EncodeMethod(\"AAAABBBCCDAA\"));\n\n System.out.println(DecodeMethod(EncodeMethod(\"AAAABBBCCDAA\")));\n }", "static String uriEscapeString(String unescaped) {\n try {\n return URLEncoder.encode(unescaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }", "@Test\n public void testNormalizeToStringWithSpaceURL() throws Exception {\n AbstractURLHandler handler = new TestURLHandler();\n String normalizedUrl = handler.normalizeToString(new URL(\n \"http://ant.apache.org/ivy/url with space/ivy-1.0.xml\"));\n assertEquals(\"http://ant.apache.org/ivy/url%20with%20space/ivy-1.0.xml\", normalizedUrl);\n }", "@Test\n public void testNormalizeToStringWithPlusCharacter() throws Exception {\n AbstractURLHandler handler = new TestURLHandler();\n String normalizedUrl = handler.normalizeToString(new URL(\n \"http://ant.apache.org/ivy/ivy-1.+.xml\"));\n assertEquals(\"http://ant.apache.org/ivy/ivy-1.%2B.xml\", normalizedUrl);\n }", "private String encodeValue(String value) {\r\n try {\r\n return URLEncoder.encode(value, \"UTF8\");\r\n } catch (UnsupportedEncodingException e) {\r\n // it should not occur since UTF8 should be supported universally\r\n throw new ExcelWrapperException(\"UTF8 encoding is not supported : \" + e.getMessage());\r\n }\r\n }", "public static String encode(String anyURI){\n int len = anyURI.length(), ch;\n StringBuffer buffer = new StringBuffer(len*3);\n \n // for each character in the anyURI\n int i = 0;\n for (; i < len; i++) {\n ch = anyURI.charAt(i);\n // if it's not an ASCII character, break here, and use UTF-8 encoding\n if (ch >= 128)\n break;\n if (gNeedEscaping[ch]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[ch]);\n buffer.append(gAfterEscaping2[ch]);\n }\n else {\n buffer.append((char)ch);\n }\n }\n \n // we saw some non-ascii character\n if (i < len) {\n // get UTF-8 bytes for the remaining sub-string\n byte[] bytes = null;\n byte b;\n try {\n bytes = anyURI.substring(i).getBytes(\"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n // should never happen\n return anyURI;\n }\n len = bytes.length;\n \n // for each byte\n for (i = 0; i < len; i++) {\n b = bytes[i];\n // for non-ascii character: make it positive, then escape\n if (b < 0) {\n ch = b + 256;\n buffer.append('%');\n buffer.append(gHexChs[ch >> 4]);\n buffer.append(gHexChs[ch & 0xf]);\n }\n else if (gNeedEscaping[b]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[b]);\n buffer.append(gAfterEscaping2[b]);\n }\n else {\n buffer.append((char)b);\n }\n }\n }\n \n // If encoding happened, create a new string;\n // otherwise, return the orginal one.\n if (buffer.length() != len)\n return buffer.toString();\n else\n return anyURI;\n }", "public static String percentEncode(String s) {\r\n\t\t//s = _percentEncode( s ); // the original method, from java.net\r\n\t\ts = encodeURL(s, \"UTF-8\");\r\n\t\treturn s;\r\n\t}", "public byte[] encode(byte[] bytes) {\n/* 199 */ return encodeUrl(WWW_FORM_URL_SAFE, bytes);\n/* */ }", "public String encode(String longUrl) {\n String key = \"\";\n do {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n int r = rand.nextInt(charSet.length());\n sb.append(charSet.charAt(r));\n }\n key = sb.toString();\n } while (map.containsKey(key));\n \n map.put(BASE_HOST + key, longUrl);\n return BASE_HOST + key;\n }", "public String c(String str) {\n String str2;\n String str3 = null;\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n try {\n String host = Uri.parse(str).getHost();\n String aBTestValue = TUnionTradeSDK.getInstance().getABTestService().getABTestValue(\"config\");\n if (!TextUtils.isEmpty(aBTestValue)) {\n String optString = new JSONObject(aBTestValue).optString(\"domain\");\n TULog.d(\"abTestRequestUrl, url: \" + str + \" host: \" + host + \" domains: \" + optString, new Object[0]);\n if (!TextUtils.isEmpty(host) && !TextUtils.isEmpty(optString)) {\n JSONArray jSONArray = new JSONArray(optString);\n if (jSONArray.length() > 0) {\n int length = jSONArray.length();\n int i = 0;\n while (true) {\n if (i >= length) {\n break;\n } else if (host.contains(jSONArray.getString(i))) {\n String encode = URLEncoder.encode(str, \"utf-8\");\n try {\n TULog.d(\"abTestRequestUrl, loginJumpUrl :\" + str2, new Object[0]);\n } catch (Exception unused) {\n }\n str3 = str2;\n break;\n } else {\n i++;\n }\n }\n }\n }\n }\n } catch (Exception unused2) {\n }\n return str3;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"\" +ToUtf8Util.toHexString(\"大连\"));\n\t\ttry {\n\t\t\tSystem.out.println(\"\" + URLEncoder.encode(\"大连\",\"utf-8\"));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private String encodeValue(final String dirtyValue) {\n String cleanValue = \"\";\n\n try {\n cleanValue = URLEncoder.encode(dirtyValue, StandardCharsets.UTF_8.name())\n .replace(\"+\", \"%20\");\n } catch (final UnsupportedEncodingException e) {\n }\n\n return cleanValue;\n }", "public static final byte[] encodeUrl(BitSet urlsafe, byte[] bytes) {\n/* 127 */ if (bytes == null) {\n/* 128 */ return null;\n/* */ }\n/* 130 */ if (urlsafe == null) {\n/* 131 */ urlsafe = WWW_FORM_URL_SAFE;\n/* */ }\n/* */ \n/* 134 */ ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n/* 135 */ for (byte c : bytes) {\n/* 136 */ int b = c;\n/* 137 */ if (b < 0) {\n/* 138 */ b = 256 + b;\n/* */ }\n/* 140 */ if (urlsafe.get(b)) {\n/* 141 */ if (b == 32) {\n/* 142 */ b = 43;\n/* */ }\n/* 144 */ buffer.write(b);\n/* */ } else {\n/* 146 */ buffer.write(37);\n/* 147 */ char hex1 = Utils.hexDigit(b >> 4);\n/* 148 */ char hex2 = Utils.hexDigit(b);\n/* 149 */ buffer.write(hex1);\n/* 150 */ buffer.write(hex2);\n/* */ } \n/* */ } \n/* 153 */ return buffer.toByteArray();\n/* */ }", "public static String URIencoding(String word) {\n\t\tString result = word;\n\t\tword = word.replace(\" \", \"_\");\n\t\ttry {\n\t\t\tresult = URLEncoder.encode(word, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public static String encode(String in){\n in = in.replace(\"&\", \"&amp;\");\n in = in.replace(\"\\\"\", \"&quot;\");\n in = in.replace(\"<\", \"&lt;\");\n in = in.replace(\">\", \"&gt;\");\n log.debug(\"encoded string: \" + in);\n // FIXME: Consider double-encoding & if it is not part of &amp;\n return in;\n }", "public final String urlEncode(String encoding) {\n\n\t\tfinal StringBuilder out = new StringBuilder();\n\n\t\ttry {\n\t\t\turlEncode(out, encoding);\n\t\t} catch (IOException e) {\n\t\t\tnew IllegalStateException(e);// Should never happen.\n\t\t}\n\n\t\treturn out.toString();\n\t}", "@Test\n public void testEncode() {\n LOGGER.info(\"testEncode\");\n final String actual = new AtomString().encode();\n final String expected = \"0:\";\n assertEquals(expected, actual);\n }", "public static String encodeQuery(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n return retString;\n }", "private static String urlEncodeParameter(String parameter) throws UnsupportedEncodingException{\r\n\t\tint equal = parameter.indexOf(\"=\");\r\n\t\treturn urlEncode(parameter.substring(0, equal))+\"=\"+urlEncode(parameter.substring(equal+1));\r\n\t}", "public String encode(String longUrl) {\n StringBuilder sb = new StringBuilder();\n while (sb.length() < keyLength || shortToLong.containsKey(sb.toString())) {\n sb = new StringBuilder();\n for (int i = 0; i < keyLength; i++) {\n sb.append( alphabet.charAt( (int) Math.floor(Math.random()*alphabet.length()) ) );\n }\n }\n String key = sb.toString();\n longToShort.put(longUrl, key);\n shortToLong.put(key, longUrl);\n return \"htpp://tinyurl.com/\" + key;\n }", "public static String convertUrlToPunycodeIfNeeded(String url) {\n if (!Charset.forName(\"US-ASCII\").newEncoder().canEncode(url)) {\n if (url.toLowerCase().startsWith(\"http://\")) {\n url = \"http://\" + IDN.toASCII(url.substring(7));\n } else if (url.toLowerCase().startsWith(\"https://\")) {\n url = \"https://\" + IDN.toASCII(url.substring(8));\n } else {\n url = IDN.toASCII(url);\n }\n }\n return url;\n }", "public String encode(String longUrl) {\n while (!url2code.containsKey(longUrl)) {\n // generate code\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 6; i++) {\n sb.append(alphabet.charAt(rand.nextInt(62)));\n }\n // put code-url pair\n String code = sb.toString();\n if (!code2url.containsKey(code)) {\n code2url.put(code, longUrl);\n url2code.put(longUrl, code);\n }\n }\n\n return url2code.get(longUrl);\n }", "public static String encodeURI(String string) {\n\t\treturn Utils.encodeURI(string);\n\t}", "@org.junit.Test\n public void encodeHTML()\n {\n assertEquals(\"apos\", \"I can&#39;t do &#34;this&#34;\",\n Encodings.encodeHTMLAttribute(\"I can't do \\\"this\\\"\"));\n assertEquals(\"no replace\", \"just a test\",\n Encodings.encodeHTMLAttribute(\"just a test\"));\n assertEquals(\"empty\", \"\", Encodings.encodeHTMLAttribute(\"\"));\n }", "public static String encodeQueryValue(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n retString = replaceString(retString, \"&\", \"%26\");\n retString = replaceString(retString, \"?\", \"%3F\");\n retString = replaceString(retString, \"=\", \"%3D\");\n return retString;\n }", "public String encodeToUrlString() throws IOException {\n return encodeWritable(this);\n }", "public String encode(String longUrl) {\n while(map.containsKey(key)){\n key = r.nextInt(Integer.MAX_VALUE);//直到找到没有用过的key\n }\n map.put(key, longUrl);\n return \"http://tinyurl.com/\" + key;\n }", "public EncodeAndDecodeStrings() {}", "public static String encode(String toEncode)\n {\n return com.github.terefang.jldap.ldap.LDAPUrl.encode( toEncode);\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 }", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "public String encode(String longUrl) {\n\t int key = longUrl.hashCode();\n\t map.put(key, longUrl);\n\t return Integer.toString(key);\n\t }", "public String encode(String longUrl) {\n\n String shortUrl = getShortUrl();\n\n if(shortToLongUrl.containsKey(shortUrl)){\n shortUrl = getShortUrl();\n }\n\n shortToLongUrl.put(shortUrl, longUrl);\n return \"http://tinyurl.com/\" + shortUrl;\n }", "public abstract BridgeURL encodeBookmarkableURL(String baseURL, Map<String, List<String>> parameters);", "public static void main(String[] args) {\r\n\t\t\r\n\t\tString password=encode(\"asdfghjkl\");\r\n\t\tSystem.out.println(password);\r\n\t\tString p=\"asdfghjkl\";\r\n\t\tboolean result=encode(p).equals(password);\r\n\t\tSystem.out.println(result);\r\n\t\t\r\n\t\t\r\n\t}", "public static String utf8Encode(String str, String defultReturn) {\n if (!TextUtils.isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for decoding\\t and...\\n\";\n\n assertEquals(\"encode/decode\", test,\n Encodings.decodeEscapes(Encodings.encodeEscapes(test)));\n assertEquals(\"encode/decode\", \"\",\n Encodings.decodeEscapes(Encodings.encodeEscapes(null)));\n }", "public static String utf8Encode(String str, String defultReturn) {\n if (!isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "public static String unEscapeURL(String src) {\n\t StringBuffer bf = new StringBuffer();\n\t char[] s = src.toCharArray();\n\t for (int k = 0; k < s.length; ++k) {\n\t char c = s[k];\n\t if (c == '%') {\n\t if (k + 2 >= s.length) {\n\t bf.append(c);\n\t continue;\n\t }\n\t int a0 = PRTokeniser.getHex(s[k + 1]);\n\t int a1 = PRTokeniser.getHex(s[k + 2]);\n\t if (a0 < 0 || a1 < 0) {\n\t bf.append(c);\n\t continue;\n\t }\n\t bf.append((char)(a0 * 16 + a1));\n\t k += 2;\n\t }\n\t else\n\t bf.append(c);\n\t }\n\t return bf.toString();\n\t}", "@Test\n public void testJoinURL() throws Exception {\n System.out.println(\"joinURL\");\n Map<URLParser.URLParts, String> urlParts = new HashMap<>();\n urlParts.put(URLParser.URLParts.PROTOCOL, \"http\");\n urlParts.put(URLParser.URLParts.PATH, \"/to/path/document\");\n urlParts.put(URLParser.URLParts.HOST, \"www.example.com\");\n urlParts.put(URLParser.URLParts.PORT, \"8080\");\n urlParts.put(URLParser.URLParts.USERINFO, \"user:password\");\n urlParts.put(URLParser.URLParts.FILENAME, \"/to/path/document?arg1=val1&arg2=val2\");\n urlParts.put(URLParser.URLParts.QUERY, \"arg1=val1&arg2=val2\");\n urlParts.put(URLParser.URLParts.AUTHORITY, \"user:[email protected]:8080\");\n urlParts.put(URLParser.URLParts.REF, \"part\");\n \n String expResult = \"http://user:[email protected]:8080/to/path/document?arg1=val1&arg2=val2#part\";\n String result = URLParser.joinURL(urlParts);\n assertEquals(expResult, result);\n }", "private static void encodeString(String in){\n\n\t\tString officalEncodedTxt = officallyEncrypt(in);\n\t\tSystem.out.println(\"Encoded message: \" + officalEncodedTxt);\n\t}", "public String encode(String longUrl) {\n if (longToShort.containsKey(longUrl)) {\n return longToShort.get(longUrl);\n }\n String encode = intToBase62(longUrl.hashCode());\n List<String> list;\n if (shortToLong.containsKey(encode)) {\n list = shortToLong.get(encode);\n } else {\n list = new ArrayList<>();\n shortToLong.put(encode, list);\n }\n encode += SEPERATE + list.size();\n list.add(longUrl);\n longToShort.put(longUrl, encode);\n return PREFIX + encode;\n }", "@Test\n public void urlTest() {\n // TODO: test url\n }", "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 }", "public static String uriEncodeParts(final String value) {\n if (Strings.isNullOrEmpty(value)) {\n return value;\n }\n final int length = value.length();\n final StringBuilder builder = new StringBuilder(length << 1);\n for (int i = 0; i < length; i++) {\n final char c = value.charAt(i);\n if (CharMatcher.ASCII.matches(c)) {\n builder.append(String.valueOf(c));\n } else {\n builder.append(encodeCharacter(c));\n }\n }\n return builder.toString();\n }", "private String encodeUri(String uri) {\n\t\t\tString newUri = \"\";\n\t\t\tStringTokenizer st = new StringTokenizer(uri, \"/ \", true);\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tif (\"/\".equals(tok)) {\n\t\t\t\t\tnewUri += \"/\";\n\t\t\t\t} else if (\" \".equals(tok)) {\n\t\t\t\t\tnewUri += \"%20\";\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnewUri += URLEncoder.encode(tok, \"UTF-8\");\n\t\t\t\t\t} catch (UnsupportedEncodingException ignored) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn newUri;\n\t\t}", "public String encode(String uri) {\n return uri;\n }", "public String encode(String longUrl) {\n \n String key = getRand();\n while (mapper.containsKey (key))\n key = getRand();\n \n mapper.put (key, longUrl);\n return key;\n }", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n String string0 = DBUtil.escape(\"Ucb\");\n assertEquals(\"Ucb\", string0);\n }", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "public static String replaceURLEscapeChars(String value) {\n\t\tvalue = replace(value, \"#\", \"%23\");\n\t\tvalue = replace(value, \"$\", \"%24\");\n\t\tvalue = replace(value, \"%\", \"%25\");\n\t\tvalue = replace(value, \"&\", \"%26\");\n\t\tvalue = replace(value, \"@\", \"%40\");\n\t\tvalue = replace(value, \"'\", \"%60\");\n\t\tvalue = replace(value, \"/\", \"%2F\");\n\t\tvalue = replace(value, \":\", \"%3A\");\n\t\tvalue = replace(value, \";\", \"%3B\");\n\t\tvalue = replace(value, \"<\", \"%3C\");\n\t\tvalue = replace(value, \"=\", \"%3D\");\n\t\tvalue = replace(value, \">\", \"%3E\");\n\t\tvalue = replace(value, \"?\", \"%3F\");\n\t\tvalue = replace(value, \"[\", \"%5B\");\n\t\tvalue = replace(value, \"\\\\\", \"%5C\");\n\t\tvalue = replace(value, \"]\", \"%5D\");\n\t\tvalue = replace(value, \"^\", \"%5E\");\n\t\tvalue = replace(value, \"{\", \"%7B\");\n\t\tvalue = replace(value, \"|\", \"%7C\");\n\t\tvalue = replace(value, \"}\", \"%7D\");\n\t\tvalue = replace(value, \"~\", \"%7E\");\n\t\treturn value;\n\t}", "public boolean isShouldEncodeUrls() {\n return mShouldEncodeUrls;\n }", "@Override\n public String encodeRedirectURL(String url) {\n return this._getHttpServletResponse().encodeRedirectURL(url);\n }", "public Object encode(Object obj) throws EncoderException {\n/* 316 */ if (obj == null)\n/* 317 */ return null; \n/* 318 */ if (obj instanceof byte[])\n/* 319 */ return encode((byte[])obj); \n/* 320 */ if (obj instanceof String) {\n/* 321 */ return encode((String)obj);\n/* */ }\n/* 323 */ throw new EncoderException(\"Objects of type \" + obj.getClass().getName() + \" cannot be URL encoded\");\n/* */ }", "@Test\n public void testSomeMethod() {\n PasswordEncoder encoderImpl = new BCryptPasswordEncoder(11);\n String pass = \"system1234\";\n System.err.println(\"For \" + pass + \", -----------Encoded password = \" + encoderImpl.encode(pass));\n pass = \"pass1\";\n System.err.println(\"For \" + pass + \", -----------Encoded password = \" + encoderImpl.encode(pass));\n }", "public static String encoderRequete(\r\n\t\t\tfinal String pYQL) throws UnsupportedEncodingException {\r\n\t\t\r\n\t\tfinal String uriEncodee = URLEncoder.encode(pYQL, \"UTF-8\");\r\n\t\t\r\n\t\treturn uriEncodee;\r\n\t\t\r\n\t}", "public static String encodeUrl(String base, String parentCode, String code, String targetCode, String token) {\n\t\t/**\n\t\t * A Function for Base64 encoding urls\n\t\t **/\n\n\t\t// Encode Parent and Code\n\t\tString encodedParentCode = new String(Base64.getEncoder().encode(parentCode.getBytes()));\n\t\tString encodedCode = new String(Base64.getEncoder().encode(code.getBytes()));\n\t\tString url = base + \"/\" + encodedParentCode + \"/\" + encodedCode;\n\n\t\t// Add encoded targetCode if not null\n\t\tif (targetCode != null) {\n\t\t\tString encodedTargetCode = new String(Base64.getEncoder().encode(targetCode.getBytes()));\n\t\t\turl = url + \"/\" + encodedTargetCode;\n\t\t}\n\n\t\t// Add access token if not null\n\t\tif (token != null) {\n\t\t\turl = url +\"?token=\" + token;\n\t\t}\n\t\treturn url;\n\t}" ]
[ "0.7535612", "0.7483509", "0.7346214", "0.72940725", "0.6908146", "0.6658051", "0.6653681", "0.6583852", "0.6381629", "0.63784987", "0.6331332", "0.6313128", "0.62988883", "0.62855536", "0.62193567", "0.61782867", "0.61445963", "0.6125667", "0.61248016", "0.61203855", "0.61203146", "0.6119648", "0.6111184", "0.6101491", "0.610124", "0.609394", "0.6093076", "0.60777676", "0.6067502", "0.60523844", "0.6047007", "0.6036735", "0.6013678", "0.5981263", "0.5978316", "0.5976183", "0.59456563", "0.59156597", "0.59126824", "0.5901604", "0.58434325", "0.58348304", "0.57297385", "0.5722187", "0.57171845", "0.5716016", "0.5713267", "0.571012", "0.5697478", "0.5696841", "0.56804043", "0.56699854", "0.56661546", "0.5623602", "0.55982065", "0.5580237", "0.55783653", "0.557023", "0.5556785", "0.55516607", "0.5547994", "0.5534101", "0.55218947", "0.55163443", "0.5498952", "0.54956853", "0.54852945", "0.54751045", "0.54695445", "0.5455119", "0.5427563", "0.54201996", "0.53965616", "0.5385722", "0.53615624", "0.5360374", "0.53382635", "0.5337413", "0.53269047", "0.5320891", "0.5314378", "0.5312412", "0.5308743", "0.52791154", "0.52380157", "0.5234764", "0.5221321", "0.5184442", "0.51727945", "0.5138717", "0.5137697", "0.51359516", "0.51285595", "0.5085908", "0.5080237", "0.5079911", "0.50795615", "0.50779414", "0.5070703", "0.5070252" ]
0.70829976
4
Sorts array of elements using Heap Sort algorithm.
@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public void sort() { // create maxHeap Heap<E> maxHeap = new MaxHeap<E>(arr); elapsedTime = System.nanoTime(); // get time of start for (int i = length - 1; i > 0; i--) { maxHeap.swap(arr, 0, i); maxHeap.heapSize--; ((MaxHeap) maxHeap).maxHeapify(arr, 0); } elapsedTime = System.nanoTime() - elapsedTime; // get elapsed time print(); // print sorted array printElapsedTime(); // print elapsed time }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void heapSort() {\n MyHeap heap = new MyHeap();\n heap.makeHeap((Comparable) array[0]);\n for (int i = 1; i < array.length; i++) {\n heap.insert((Comparable) array[i]);\n }\n int i = 0;\n while (!heap.isEmpty()) {\n array[i] = (T) heap.findMin();\n heap.deleteMin();\n i++;\n }\n }", "public static void HeapSort(int[] array) {\n int size = array.length;\n int start_index = size / 2 - 1;\n\n for (int i=start_index; i>=0; i--)\n goDown(array, i, size);\n\n for (int i=size-1; i>=0; i--) {\n swap(array, 0, i);\n goDown(array, 0, i);\n }\n }", "public static void HeapSort(int a[]) \n\t { \n\t int n = a.length; \n\t \n\t \t for (int i = n / 2 - 1; i >= 0; i--) \n\t heapify(a, n, i); \n\t \n\t for (int i=n-1; i>=0; i--) \n\t { \n\t \n\t int temp = a[0]; \n\t a[0] = a[i]; \n\t a[i] = temp; \n\t \n\t heapify(a, i, 0); \n\t } \n\t }", "@Override\r\n\tpublic <E extends Comparable<E>> E[] sort(E[] array) {\n\t\tSystem.out.println(\"Heap Sort:\");\r\n\t\tE[] result=array.clone();\r\n\t\tbuildingHeap(result);\r\n\t\tfor (int i = result.length - 1; i > 0; i--) {\r\n\t\t\tE temp = result[i];\r\n\t\t\tresult[i] = result[0];\r\n\t\t\tresult[0] = temp;\r\n\t\t\theapAdjust(result, 0, i);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "static void heapSort(int[] input){\n int len = input.length;\n for(int i=(len/2)-1;i>=0;i--){\n heapify(input,i,len);\n }\n for(int i = len-1;i>=0;i--){\n int temp = input[0];\n input[0] = input[i];\n input[i] = temp;\n heapify(input,0,i);\n }\n }", "public static void heapSort(int arr[]) {\n int n = arr.length;\n\n //Creating heap\n for (int i = n / 2 - 1; i >= 0; i--)\n heapify(arr, n, i);\n\n //Taking elements from heap one by one\n for (int i = n - 1; i > 0; i--) {\n //Place current root to end\n int temp = arr[0];\n arr[0] = arr[i];\n arr[i] = temp;\n\n //Call max heapify\n heapify(arr, i, 0);\n }\n }", "public static void heapSort(int[] arr){\n for(int i = arr.length / 2 - 1; i >= 0; i--){\n heapify(arr, i, arr.length - 1);\n }\n\n //now that I have a heap, I can repeatedly take out the\n //max item from the heap, and heapify starting from the root node\n for(int i = arr.length - 1; i > 0; i--){\n SortHelper.swap(arr, 0, i);\n heapify(arr, 0, i - 1);\n }\n\n }", "public <E extends Comparable<E>> void heapSort(E[] array){\n\t\t\n\t\theapify(array);\n\t\t\n\t\tint tail = array.length - 1;\t//the pointer to the \"end\" of the heap/unsorted array\n\t\t\n\t\twhile(tail > 0){\t//starting from the end of the array and working to the front\n\t\t\tabstractSorter.swap(array, 0, tail);\t//swap the top of the heap with the last element in the array\n\t\t\ttail--;\t\t\t\n\t\t\trestore(array, 0, tail);\t//restore the heap property across all indexs not utilized by the sorted array\n\t\t}\n\t}", "public void heapSort(int[] arr){\n \n int mid = arr.length/2 ;\n \n /* build max-heap step- does not gurantee sorted order*/\n for(int i = mid; i >= 0; i--){\n heapify(arr,i, arr.length);\n }\n \n /*sorting in ascending order*/\n for(int i = nums.length - 1; i >=0; i--){\n /*swap largest element (at index 0) with last index*/\n swap(nums,0,i);\n heapify(nums,0,i); // note- here we consider length of array to be i, as we dont wanna run the algo for entire length of array\n } \n \n \n \n }", "void sort(int a[]) throws Exception {\n\n // Make the input into a heap\n for (int i = a.length-1; i >= 0; i--)\n reheap (a, a.length, i);\n\n // Sort the heap\n for (int i = a.length-1; i > 0; i--) {\n int T = a[i];\n a[i] = a[0];\n a[0] = T;\n pause();\n reheap (a, i, 0);\n }\n }", "public void sort(E[] array) {\r\n\t\tif (array == null)\r\n\t\t\treturn;\r\n\r\n\t\tc = array;\r\n\r\n\t\tint left = (c.length / 2) + 1;\r\n\t\tint right = c.length;\r\n\r\n\t\twhile (left > 1) {\r\n\t\t\tleft--;\r\n\t\t\theapify(left, right);\r\n\t\t}\r\n\r\n\t\twhile (right > 1) {\r\n\t\t\tswitchElements(right - 1, left - 1);\r\n\t\t\tright--;\r\n\t\t\theapify(left, right);\r\n\t\t}\r\n\t}", "@Test\n public void canHeapSort(){\n int[] array = {5, 6, 3, 7, 9, 1};\n heapSort(array);\n for (int elem : array) {\n System.out.println(elem + \" \");\n }\n }", "public static void main(String[] args) {\n \n int swap = 0;\n \n Scanner scan = new Scanner(System.in);\n System.out.print(\"Kaç elemanlı = \");\n int max = scan.nextInt();\n\n int[] toSortArray = new int[max];\n\n toSortArray[0] = 0;\n\n for (int i = 1; i < max; i++) {\n\n toSortArray[i] = (int) (Math.random() * 100);\n toSortArray[0]++; //holds the number of values in the array;\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp;\n index = index / 2;\n\n }\n\n\t\t\t//Hence the heap is created!\n }\n\n System.out.println(\"The array to be sorted is:\");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n\n }\n\n System.out.println(\" | \");\n\n\t\t//Start\n\t\t//Let's Sort it out now!\n while (toSortArray[0] > 0) {\n\n int temp = toSortArray[1];\n toSortArray[1] = toSortArray[toSortArray[0]];\n toSortArray[toSortArray[0]] = temp;\n\n for (int i = 1; i < toSortArray[0]; i++) {\n\n int index = i;\n\n while (toSortArray[index / 2] < toSortArray[index] && (index / 2) != 0) {\n\n int temp1 = toSortArray[index / 2];\n toSortArray[index / 2] = toSortArray[index];\n toSortArray[index] = temp1;\n index = index / 2;\n swap = swap+1;\n\n }\n\n }\n\n toSortArray[0]--;\n\n }\n\n\t\t//End\n System.out.println(\"The sorted array is: \");\n\n for (int i = 0; i < max; i++) {\n\n System.out.print(\" | \" + toSortArray[i]);\n }\n\n System.out.println(\" | \");\n System.out.println(max + \" eleman için \"+ swap + \" adet eleman yerdeğiştirildi. \" );\n\n }", "private <E extends Comparable<E>> void heapify(E[] array){\n\t\tif(array.length > 0){\n\t\t\tint n = 1;\n\t\t\twhile( n < array.length){\t//for each value in the array\n\t\t\t\tn++;\n\t\t\t\t\n\t\t\t\tint child = n-1;\n\t\t\t\tint parent = (child-1)/2;\n\t\t\t\twhile(parent >= 0 && array[parent].compareTo(array[child]) < 0){\t//if the heap property isn't observed between the parent and child, swap them and readjust parent/child values until it is\n\t\t\t\t\tabstractSorter.swap(array, parent, child);\n\t\t\t\t\tchild = parent;\n\t\t\t\t\tparent = (child-1)/2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void sort(int[] a) {\n final int length = a.length;\n\n // begin from the first non-leaf node\n for (int i = length / 2 - 1; i >= 0; i--) {\n buildHeap(a, i, length);\n }\n // output: replace the root of max heap with the tail value of list\n // then: build the heap again\n for (int i = length - 1; i > 0; i--) {\n Swapper.swap(a, 0, i);\n buildHeap(a, 0, i - 1);\n }\n }", "private void heapSort() {\n\n\t\tint queueSize = priorityQueue.size();\n\n\t\tfor (int j = 0; j < queueSize; j++) {\n\n\t\t\theapified[j] = binaryHeap.top(priorityQueue);\n\t\t\tbinaryHeap.outHeap(priorityQueue);\n\n\t\t}\n\n\t}", "public static void heapsort(int[]data){\n buildHeap(data);\n int j = data.length;\n for (int i=0; i<data.length; i++){\n remove(data,j);\n j--;\n }\n }", "public static void heapsort(int[] ints) {\n\t\theapify(ints);\n\t\tint temp;\n\t\tfor (int ei = ints.length - 1; ei > 0; ei--) {\n\t\t\t// put the root of the heap at the front of\n\t\t\t// the sorted array\n\t\t\ttemp = ints[ei];\n\t\t\tints[ei] = ints[0];\n\t\t\tints[0] = temp;\n\t\t\t// restore the heap\n\t\t\tpushDown(ints, 0, ei);\n\t\t}\n\t}", "@Test\n public void heapSort(){\n int[] array = {3, 9, 6, 5, 2, 8, 7};\n SortTestHelper.testSort(new QuickSort(), array);\n SortTestHelper.print(array);\n }", "public static <T> T[] heapSort (T[] array) {\r\n HeapSet<T> heap = new HeapSet<T> ();\r\n heap.addAll (Arrays.asList (array));\r\n return heap.sort (array);\r\n\t}", "public static void sort(Comparable[] pq) {\n int n = pq.length;\n \n /*\n * Fill in this method! Use the code on p. 324 of the book as a model,\n * but change it so each node in the heap has 3 children instead of 2.\n */\n }", "public static void heapsort(Integer[] arrayToSort) {\n MaxHeap m = new MaxHeap(arrayToSort);\n Arrays.setAll(arrayToSort, i -> m.deleteMax());\n }", "@Override\n\t\tpublic void run() {\n\t\t\tfor (int i = 0; i < 1000000; i++) {\n\t\t\t\tint[] a = Util.generateRandomArray(500, 200000);\n\t\t\t\tint[] b = a.clone();\n\t\t\t\t\n\t\t\t\ta = sort(a);\n\t\t\t\tArrays.sort(b);\n\t\t\t\t\n\t\t\t\tfor (int j = 0; j < b.length; j++) {\n\t\t\t\t\tUtil.Assert(a[j] == b[j], \"shit\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Heap sort ok\");\n\t\t}", "T[] heapSort() throws EmptyCollectionException {\n \n ArrayHeap<T> temp = new ArrayHeap<>();\n\n //copy array into heap\n for (int i = 0; i < heap.length; i++) {\n if (heap[i] != null) {\n temp.addElement(heap[i]);\n } else {\n break;\n }\n }\n \n //place the sorted elements back into the array\n int c = 0;\n \n \n while (!temp.isEmpty()) {\n T t = temp.removeMin();\n heap[c++] = t;\n \n\n }\n return heap;\n\n }", "public static <Key extends Comparable<Key> > void sort (Key [] a){\n int n=a.length;\n //rearrange the array to a max heap\n for (int k=n/2;k>=1;k--) sink(a,k,n);\n for ( int i=0;i<a.length;i++){\n exch(a,1,n--);\n sink(a,1,n);\n }\n\n }", "public T[] sort (T[] array) {\r\n\t\tHeapSet<T> heap = new HeapSet<T> (new ArrayList<T> (_list), _listeners);\r\n\t\tint start = 0;\r\n\t\tfor (++start; start <= heap.size () - 2; ++start) {\r\n\t\t\tsiftUp (heap, start);\r\n\t\t}\r\n\t\tfor (int end = heap.size () - 1; end > 0; --end) {\r\n\t\t\tCollections.swap (heap._list, 0, end);\r\n\t\t\tHeapSet.fireEvent (heap, 0, end);\r\n\t\t\tsiftDown (heap, 0, end);\r\n\t\t}\r\n\t\treturn heap.toArray (array);\r\n\t}", "private void heapify(T[] array) \n\t{\n\t\tfor (int i=0; i < array.length; i++)\n\t\t{\n\t\t\tinsert(array[i], i);\n\t\t}\n\t}", "@Override\r\n\tpublic void visit(MyArray visitor) {\r\n\t\tint count = visitor.arr.size();\r\n\t\theapSort(visitor.arr, count);\r\n\t}", "public static void heapify(int arr[]) {\n N = arr.length - 1;\n for (int i = N / 2; i >= 0; i--)\n maxheap(arr, i);\n }", "public static void heapify(Integer arr[])\n {\n N = arr.length-1;\n for (int i = N/2; i >= 0; i--)\n maxheap(arr, i);\n }", "public static void main(String[] args) {\n int[] numeros = new int[20];\n Random rand = new Random();\n\n for (int i = 0; i < 20; i++){\n numeros[i] = rand.nextInt();\n }\n\n Sorter sort = new Sorter();\n sort.heapSort(numeros);\n\n for (int i = 0; i < 20; i++){\n System.out.println(numeros[i]+\" \");\n }\n\n }", "public void sort() {\n\n // Fill in the blank here.\n\tfor(int i = 0; i < size; i++){\n\t\tint currentLowest, cLIndex, temp;\n\t\tcurrentLowest = elements[i];\n\t\tcLIndex = i; \n\t\tfor(int c = i+1; c < size; c++){\n\t\t\tif(currentLowest > elements[c]){\n\t\t\t\tcurrentLowest = elements[c];\n\t\t\t\tcLIndex = c;\n\t\t\t} \n\t\t}\n\t\ttemp = elements[i];\n\t\telements[i] = elements[cLIndex];\n\t\telements[cLIndex] = temp;\n\t\t\n\t}\n System.out.println(\"Sorting...\");\n }", "public static <T> T[] heapSort (T[] array, ISortEventListener<T> listener) {\r\n\t\tHeapSet<T> heap = new HeapSet<T> ();\r\n\t\tif (listener != null) {\r\n\t\t\theap.addSortEventListener (listener);\r\n\t\t}\r\n\t\theap.addAll (Arrays.asList (array));\r\n\t\treturn heap.sort (array);\r\n\t}", "private void heapify(int[] arr, int i, int end){\n \n int largest = i;\n int left = 2 * i + 1;\n int right = 2 * i + 2;\n \n if(left < end && arr[left] > arr[largest]){ // check bounds and compare values\n largest = left;\n }\n \n if(right < end && arr[right] > arr[largest]){\n largest = right;\n }\n \n if(largest != i){\n // perform swap arr[i] and arr[largest]\n swap(arr,largest,i);\n //recursively fix the tree using heapify()\n heapify(arr,largest,end);\n }\n \n }", "static void heapSort(ArrayList<Integer> arr, int n) {\r\n\t\tint z = n / 2 - 1;\r\n\t\tdo {\r\n\t\t\theapify(arr, n, z);\r\n\t\t\tz--;\r\n\t\t} while (z >= 0);\r\n\t\tint i = n - 1;\r\n\t\twhile (i >= 0) {\r\n\t\t\tint temp = arr.get(0);\r\n\t\t\tarr.set(0, arr.get(i));\r\n\t\t\tarr.set(i, temp);\r\n\t\t\theapify(arr, i, 0);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}", "public void sort(){\n for(int i = array.length-1;i >= 0;i--){\n sink(i);\n }\n while(size > 0){\n swap(0, size-1);\n size -= 1;\n sink(0);\n }\n }", "private static void Heapify(int[] A, int i, int size)\n {\n // get left and right child of node at index i\n int left = LEFT(i);\n int right = RIGHT(i);\n\n int smallest = i;\n\n // compare A[i] with its left and right child\n // and find smallest value\n if (left < size && A[left] < A[i]) {\n smallest = left;\n }\n\n if (right < size && A[right] < A[smallest]) {\n smallest = right;\n }\n\n // swap with child having lesser value and\n // call heapify-down on the child\n if (smallest != i) {\n swap(A, i, smallest);\n Heapify(A, smallest, size);\n }\n }", "public static void sort(int[] arr){\t\n\t\t\n\t\tPriorityQueue queue = new PriorityQueue(arr.length);\n\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\t\n\t\t\tqueue.insert(arr[i]);\n\t\t}\n\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\tarr[i] = queue.removeMin();\n\t\t}\n\t}", "public static void heapify() {\n //배열을 heap 자료형으로 만든다.\n // 1d 2d 2d 3d 3d 3d 3d 4d\n// int[] numbers = {9, 12, 1, 3, 6, 2, 8, 4};\n // 1depth의 자식노드 numbers[2i], numbers[2i+1]\n int[] numbers = {4, 1, 3, 2, 16, 9, 10, 14, 8, 7};\n int i = 1;\n while (true) {\n int target = numbers[i-1];\n int left = numbers[2*i-1];\n\n if (2*i == numbers.length) {\n if (left > target){\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n print(numbers);\n break;\n }\n int right =numbers[2*i];\n\n if (left > right) {\n if(left > target) {\n numbers[i-1] = left;\n numbers[2*i-1] = target;\n }\n }else if (right > left) {\n if (right > target) {\n numbers[i-1] = right;\n numbers[2*i] = target;\n }\n }\n i++;\n\n print(numbers);\n }\n\n }", "public static <T extends Comparable<T>> void sort(T[] table)\n {\n buildHeap(table);\n shrinkHeap(table);\n }", "public static void shellSort(int[] array){\n //System.out.println(\"Original array is : \" + Arrays.toString(array));\n //find the initial value of h (increment)\n int h = 1;\n while(h*3+1 < array.length){\n h = h*3 + 1;//1,4,13,40......\n }\n //decreasing h, until h = 1\n while(h > 0){\n //h-sort, when h=1, equal to insertion sort\n for(int i = h ; i < array.length ; i++){\n int temp = array[i];\n int j = i - h;\n // array[j] (array[i-h]) means left neighbor of array[i]\n while(j >= 0 && array[j] >= temp){\n array[j + h] = array[j];\n j -= h;\n }\n //\n array[j + h] = temp;\n }//end for\n //System.out.println(\"The result of h=\"+h+\" sort: \"+ Arrays.toString(array));\n //decrease h\n h = h/3;\n }\n //System.out.println(\"Final result:\"+ Arrays.toString(array));\n }", "public void arrayToHeap(int[] array) {\r\n\t\tHeapTreesArray = new HeapNode[32];\r\n\t\tthis.min = null;\r\n\t\tthis.size = 0;\r\n\t\tthis.empty = true;\r\n\t\tfor (int i : array) {\r\n\t\t\tinsert(i);\r\n\t\t}\r\n\t}", "private void fixHeap(){\r\n int i = 1;\r\n int v = array[i].value.getYear();\r\n while(hasChildren(i)){\r\n Node left = array[getLeftChildIndex(i)];\r\n Node right = array[getRightChildIndex(i)];\r\n if(left != null){\r\n if(right != null){\r\n if(left.value.getYear() < right.value.getYear()){\r\n if(v > left.value.getYear()){\r\n swap(array[i], left);\r\n i = getLeftChildIndex(i);\r\n continue;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n else{\r\n if(v > right.value.getYear()){\r\n swap(array[i], right);\r\n i = getRightChildIndex(i);\r\n continue;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n if(v > left.value.getYear()){\r\n swap(array[i], left);\r\n i = getLeftChildIndex(i);\r\n continue;\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n }\r\n else{\r\n break;\r\n }\r\n }\r\n\r\n }", "public static void main(String[] args) {\n Integer arr[] = {12, 11, 13, 5, 6, 7};\n heapSort(arr);\n }", "private void sorter(int[] array){\r\n\r\n for (int i = 0; i < array.length-1; i++)\r\n for (int j = 0; j < array.length-i-1; j++)\r\n if (array[j] > array[j+1])\r\n {\r\n int temp = array[j];\r\n array[j] = array[j+1];\r\n array[j+1] = temp;\r\n }\r\n }", "public Pair[] sort(Pair[] set) {\n\n\t\theapified = new Pair[set.length];\n\n\t\t/** Build initial heap */\n\t\theapify(set);\n\t\theapSort();\n\n\t\treturn heapified;\n\t}", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "public static void shellSort(Comparable[] a) {\n int n = a.length;\n int h = 1;\n // Iteratively increase the stride h until the stride will at most sort 2 elements.\n while (h < n/3) h = 3*h + 1;\n while (h >= 1) {\n for (int i = 1; i < n; i += h) {\n for (int j = i; j > 0; j--) {\n if (less(a[j], a[j-1])) exch(a, j, j-1);\n else break;\n }\n }\n h /= 3;\n }\n\n }", "public static int[] shellSort (int[] arr) {\n\t\tint gap = arr.length;\n\n\t\tdo {\n\n\t\t\t// defines the gap of elements being swapped\n\t\t\tgap /= 2;\n\n\t\t\t// keeps track of any swaps occurring\n\t\t\tboolean swapped;\n\n\t\t\tdo {\n\n\t\t\t\t// Defines swapped as false in the beginning of cycle\n\t\t\t\tswapped = false;\n\n\t\t\t\t// Conduct all swapping\n\t\t\t\tfor (int i = 0; i < arr.length - gap; i++) {\n\t\t\t\t\tif (arr[i] > arr[i+gap]) {\n\t\t\t\t\t\tarr = swap(arr, i, i+gap);\n\t\t\t\t\t\tswapped = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (swapped == true); // continue if any values were swapped in the last round\n\n\t\t} while (gap > 1); // end if gap is 1, since a gap of 0 is redundant\n\n\t\treturn arr;\n\n\t}", "private static void Heapify(int[] A , int i , int size){\r\n\t\t\r\n\t\tint left = LEFT(i);\r\n\t\tint right = RIGHT(i);\r\n\t\tint smallest =i;\r\n\t\t\r\n\t\t// get left and right child of node at index i \r\n\t\t//& compare A[i] with its left and right child\r\n\t\t\r\n\t\tif(left<size && A[left] < A[i]){\r\n\t\t\tsmallest = left;\r\n\t\t}\r\n\t\tif(right<size && A[right] < A[smallest]){\r\n\t\t\tsmallest = right;\r\n\t\t}\r\n\t\t// swap with child having lesser value and\r\n\t\t// call heapify-down on the child\r\n\t\tif(smallest !=i){\r\n\t\t\tswap(A,i,smallest);\r\n\t\t\tHeapify(A,smallest,size);\r\n\t\t}\r\n\t\t\r\n\t}", "public void mergesort()\n { sort(this.heap, 0, heap.size()-1);\n }", "public abstract void sort(int[] array);", "public static void sort(int[] arr){\n\n for(int i=1;i<arr.length;i++){\n int current=arr[i];\n int j=i-1;\n\n while(j>=0 && arr[j]>current){\n arr[j+1]=arr[j];\n j--;\n }\n\n arr[j+1]=current;\n }\n\n\n\n }", "void sort() {\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) { // if the first term is larger\n\t\t\t\t\t\t\t\t\t\t\t\t// than the last term, then the\n\t\t\t\t\t\t\t\t\t\t\t\t// temp holds the previous term\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];// swaps places within the array\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "static void heapSortVector(Vector<Integer> arr, int n) {\r\n\t\tint z = n / 2 - 1;\r\n\t\tdo {\r\n\t\t\theapify1(arr, n, z);\r\n\t\t\tz--;\r\n\t\t} while (z >= 0);\r\n\t\tint i = n - 1;\r\n\t\twhile (i >= 0) {\r\n\t\t\tInteger temp = arr.get(0);\r\n\t\t\tarr.set(0, arr.get(i));\r\n\t\t\tarr.set(i, temp);\r\n\t\t\theapify1(arr, i, 0);\r\n\t\t\ti--;\r\n\t\t}\r\n\t}", "private void sort(T[] arr, int lo, int hi) {\n if (lo >= hi) return; // we return if the size of the part equals 1\n int pivot = partition(arr, lo, hi); // receiving the index of the pivot element\n sort(arr, lo, pivot - 1); // sorting the left part\n sort(arr, pivot + 1, hi); // sorting the right part\n }", "public static void heapify(int array[], int heapSize, int i) {\n int largest = i; // Initialize largest as root\n int left = 2 * i + 1;\n int right = 2 * i + 2; \n\n // If left child is larger than root\n if (left < heapSize && array[left] > array[largest])\n largest = left;\n\n // If right child is larger than largest\n if (right < heapSize && array[right] > array[largest])\n largest = right;\n\n // If largest is not root\n if (largest != i) {\n int swap = array[i];\n array[i] = array[largest];\n array[largest] = swap;\n\n // Recursively heapify tree\n heapify(array, heapSize, largest);\n }\n }", "static void sort(int[] a)\n {\n for ( int j = 1; j<a.length; j++)\n {\n int i = j - 1;\n while(i>=0 && a[i]>a[i+1])\n {\n int temp = a[i];\n a[i] = a[i+1];\n a[i+1] = temp;\n i--;\n }\n }\n }", "@Override\n public int[] sort(int[] array) {\n\n int n = array.length;\n\n for (int i = 1; i <= n - 1; i++) {\n int j = i - 1;\n\n while (j >= 0 && array[j] > array[j + 1]) {\n swap(array, j, j + 1);\n j--;\n }\n }\n\n return array;\n }", "@Override\n\tpublic T[] sort(T[] input) {\n\t\tfor(int i = 1; i < input.length; i++){\n\t\t\t//compare with the previous one, if smaller, switch with it.\n\t\t\tfor(int j = i; j > 0 && input[j-1].compareTo( input[j]) > 0; j--){\n\t\t\t\t//add the condition input[j-1] > input[j] in the for loop;\n\t\t\t\t//cause if j-1th < jth, j-2th < jth(left part is ordered)\n\t\t\t\tswap(input, j, j-1);\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}", "public static void randomArraySorts() {\n int[] randomArr = new int[1000];\n for (int i = 0; i < randomArr.length; i++) {\n randomArr[i] = (int) (Math.random() * 5000 + 1);\n }\n\n // Heap Sort of random array\n int arr[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr[i] = randomArr[i];\n }\n\n HeapSort hs = new HeapSort();\n\n System.out.println(\"Given Array: \");\n hs.printArray(arr);\n\n long start = System.currentTimeMillis();\n hs.sort(arr);\n long end = System.currentTimeMillis();\n long time = end - start;\n\n System.out.println(\"Heap Sorted Array: \");\n hs.printArray(arr);\n System.out.println(\"Heap Sort Time: \" + time);\n\n // Merge Sort of random array\n System.out.println();\n int arr2[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr2[i] = randomArr[i];\n }\n\n MergeSort ms = new MergeSort();\n\n System.out.println(\"Given Array: \");\n ms.printArray(arr2);\n\n start = System.currentTimeMillis();\n ms.sort(arr2, 0, arr.length - 1);\n end = System.currentTimeMillis();\n time = end - start;\n\n System.out.println(\"Merge Sorted Array: \");\n ms.printArray(arr2);\n System.out.println(\"Merge Sort Time: \" + time);\n\n // Insert Sort of random array\n System.out.println();\n int arr3[] = new int[1000];\n for (int i = 0; i < 1000; i++) {\n arr3[i] = randomArr[i];\n }\n\n System.out.println(\"Given Array: \");\n print(arr3, arr3.length);\n\n start = System.currentTimeMillis();\n insertSort(arr3);\n end = System.currentTimeMillis();\n time = end - start;\n\n System.out.println(\"Insert Sorted Array: \");\n print(arr3, arr3.length);\n System.out.println(\"Insert Sort Time: \" + time);\n }", "public void sortArray(){\n\t\tfor (int i=0; i<population.length;i++){\n\n\t\t\tfor (int j=0; j<population.length-i-1;j++){\n\n\t\t\t\tif(population[j].computeFitness()>population[j+1].computeFitness()) {\n\t\t\t\t\t//swap their positions in the array\n\t\t\t\t\tChromosome temp1 = population[j];\n\t\t\t\t\tpopulation[j] = population[j+1];\n\t\t\t\t\tpopulation[j+1] = temp1;\n\t\t\t\t}//end if\n\n\t\t\t}//end j for\n\n\t\t}//end i for\n\t}", "public static void sort(int[] arr){\n\t\tint temp;\n\t\tfor(int i=0; i<arr.length; i++){\n\t\t\tfor(int j=1; j<arr.length-i; j++)\n\t\t\tif(arr[j-1] > arr[j]){\n\t\t\t\ttemp = arr[j-1];\n\t\t\t\tarr[j-1] = arr[j];\n\t\t\t\tarr[j] = temp;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "void sort(int arr[], int low, int high) {\n\t\tif (low < high) {\n\t\t\t/*\n\t\t\t * pi is partitioning index, arr[pi] is now at right place\n\t\t\t */\n\t\t\tint pi = partition(arr, low, high);\n\n\t\t\t// Recursively sort elements before\n\t\t\t// partition and after partition\n\t\t\tsort(arr, low, pi - 1);\n\t\t\tsort(arr, pi + 1, high);\n\t\t}\n\t}", "public void buildHeap(int[] arr) {\n int size = arr.length;\n\n for (int i = getParentIndex(size); i >= 0; i--) {\n minHeapify(i);\n }\n }", "public static <T extends Comparable<T>> void shellSort(T[] arrayToSort) {\n int n = arrayToSort.length;\n int gap = 1;\n while(gap < n/3)\n gap = gap * 3 + 1;\n \n while(gap > 0) {\n for(int i = gap; i < n; i++) {\n for(int j = i; j >= gap && arrayToSort[j].compareTo(arrayToSort[j-gap]) < 0; j -= gap) {\n T value = arrayToSort[j];\n arrayToSort[j] = arrayToSort[j-gap];\n arrayToSort[j-gap] = value;\n }\n }\n gap = (gap - 1)/3;\n }\n }", "public void heapSort(Comparable[] array, int lowindex, int highindex) {\n\t\t//Build the heap:\n\t\tComparable[] tmpArray = new Comparable[highindex - lowindex + 1];\n\t\tint j = 0;\n\t\tfor (int i = lowindex; i <= highindex; i++) {\n\t\t\ttmpArray[j] = array[i];\n\t\t\tj++;\n\t\t}\n\t\tbuildMaxHeap(tmpArray);\n\n\t\t//Sorting:\n\t\tint k = tmpArray.length - 1;\n\t\twhile (k >= 1) {\n\t\t\tswap(tmpArray, 0, k);\n\t\t\tif (k != 1) {\n\t\t\t\tpushdown(tmpArray, k, 0);\n\t\t\t}\n\t\t\tk--;\n\t\t}\n\n\t\tint q = 0;\n\t\tfor (int p = 0; p < array.length; p++) {\n\t\t\tif (lowindex <= p && p <= highindex) {\n\t\t\t\tarray[p] = tmpArray[q];\n\t\t\t\tq++;\n\t\t\t}\n\t\t}\n\n\t\t//print the result sorted array\n\t\tfor (Comparable c : array) {\n\t\t\tSystem.out.print(c + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void heapify(int[] A) {\n int len = A.length;\n int temp;\n //构建堆\n for (int i = len / 2 - 1; i >= 0; i--) {\n keepSmallHeap(A, i, len);\n }\n }", "public void sort(int array[]){\n for(int i=1;i < array.length;i++){\n int j=i-1;\n int cur=i;\n while(array[cur] < array[j] && j >=0 ){\n swap(array,cur,j);\n cur--;\n j--;\n }\n\n }\n }", "public static void adjustHeap(int []arr,int i,int length){\n int temp=arr[i];//first get current value/item\n for(int k=i*2+1;k<length;k=k*2+1){//from the left child of current item,in other word,the 2i+1 item\n if(k+1<length&&arr[k]<arr[k+1]){//if the left child is less than the right child ,let k point to right child\n k++;\n }\n if(arr[k]>temp){//if k item-the max of left-right child is more than i item ,swap it ,and maybe k item and his child need to change\n arr[i]=arr[k];\n i=k;\n }else{\n break;\n }\n }\n arr[i]=temp;//place the temp=arr[i] at right position\n }", "@Override\n public void sort(int[] array) {\n for (int i = 0; i < array.length - 1; ++i) {\n for (int j = i + 1; j < array.length; ++j) {\n if (array[i] > array[j]) {\n int tmp = array[i];\n array[i] = array[j];\n array[j] = tmp;\n }\n }\n }\n }", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "public void quicksort()\n { quicksort(this.heap, 0, heap.size()-1);\n }", "public static void sort(Comparable[] a){\n for(int i=1;i<a.length;i++){\n // Insert a[i] among a[i-1],a[i-2],a[i-3]...\n for (int j=i;j>0&&less(a[j],a[j-1]);j--){\n exch(a,j,j-1);\n }\n }\n }", "public static void bubbleSortAlgo(int[] arr) {\n for(int i = 1; i<arr.length-1; i++){\n // inner loop to compare each element with it's next one in every iteration in one complete outer loop\n for(int j = 0; j<arr.length -1; j++){\n if(isSmaller(arr, j+1, j)){ // compares the jth element from it's next element\n swap(arr, j+1, j); // if ismaller condition is true swaps both the elements\n }\n }\n }\n \n }", "private void sort()\n {\n // This implements Shell sort.\n // Unfortunately we cannot use the sorting functions from the library\n // (e.g. java.util.Arrays.sort), since the ones that work on int\n // arrays do not accept a comparison function, but only allow\n // sorting into natural order.\n int jump = length;\n boolean done;\n \n while( jump>1 ){\n jump /= 2;\n \n do {\n done = true;\n \n for( int j = 0; j<(length-jump); j++ ){\n int i = j + jump;\n \n if( !areCorrectlyOrdered( indices[j], indices[i] ) ){\n // Things are in the wrong order, swap them and step back.\n int tmp = indices[i];\n indices[i] = indices[j];\n indices[j] = tmp;\n done = false;\n }\n }\n } while( !done );\n }\n \n // TODO: integrate this with the stuff above.\n for( int i=1; i<length; i++ ){\n commonality[i] = commonLength( indices[i-1], indices[i] );\n }\n commonality[0] = -1;\n }", "public void bubbleSort() {\n boolean unordered = false;\n do {\n unordered = false;\n for (int i = 0; i < array.length - 1; i++) {\n if (((Comparable) array[i]).compareTo(array[i + 1]) > 0) {\n T temp = array[i + 1];\n array[i + 1] = array[i];\n array[i] = temp;\n unordered = true;\n }\n }\n } while (unordered);\n }", "public void sort(int[] arr) {\n if (arr == null || arr.length == 0) return;\n int n = arr.length;\n for (int i = 0; i < n; ++i) {\n int minIdx = i;\n for (int j = i+1; j < n; ++j)\n if (arr[j] < arr[minIdx])\n minIdx = j;\n swap(arr, i, minIdx);\n }\n }", "void sort();", "void sort();", "@Override\n\tpublic void sort(int[] array) {\n\n\t}", "public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "void sort( int low, int high)\n {\n if (low > high)\n {\n /* pi is partitioning index, arr[pi] is\n now at right place */\n int pi = partition(low, high);\n\n // Recursively sort elements before\n // partition and after partition\n sort( low, pi-1);\n sort( pi+1, high);\n }\n }", "public static void sort(Comparable[] a) {\n for (int i = 0 ; i < a.length ; i++) { // each position scan\n int min = i;\n for (int j = i+1; j < a.length; j++) { // each time we have to scan through remaining entry\n if (HelperFunctions.less(a[j], a[min])) {\n min = j ;\n }\n HelperFunctions.exch(a, i, min);\n }\n }\n }", "public void buildMaxHeap(Comparable[] array) {\n\t\tint n = array.length; //number of elements need to build\n\n\t\tfor (int pos = n/2; pos >= 1; pos--) { //start from position n/2\n\t\t\tint i = pos;\n\t\t\tComparable tmp = array[i - 1];\n\t\t\tboolean check = false;\n\n\t\t\twhile (!check && (2 * i <= n) ) {\n\t\t\t\tint j = 2 * i;\n\t\t\t\tif (j < n) {\n\t\t\t\t\t//choose the larger element\n\t\t\t\t\tif (array[j - 1].compareTo(array[j]) < 0 ) {\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( tmp.compareTo(array[j - 1]) > 0 ) {\n\t\t\t\t\tcheck = true;\n\t\t\t\t} else {\n\t\t\t\t\tarray[i - 1] = array[j - 1];\n\t\t\t\t\ti = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tarray[i - 1] = tmp;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint[] arr = \n\t\t\t{18, 30, 21, -1, 53, 65, 70, -1, -1, 25, 46, -1, 35, 61, 32, -1, 15, 8, 17, -1, 55};\n\t\t\n\t\tSystem.out.println(\"\\nArray before buliding heap:\");\n\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\tHeap h = new Heap(arr);\n\t\t\n\t\th.buildHeap();\n\t\tSystem.out.println(\"\\nFirst element indicates size of heap:\\nHeap after applying build heap:\");\n\t\th.printHeap();\n\t\t\n\t\th.heapsort();\n\t\tSystem.out.println(\"\\nHeap after applying heap sort:\");\n\t\th.printHeap();\n\t}", "public static void heapify(int[] arr, int i, int end){\n int left = 2 * i + 1;\n int right = 2 * i + 2;\n int maxIndex = i;\n if(left <= end){\n maxIndex = arr[left] > arr[maxIndex] ? left : i;\n }\n if(right <= end){\n maxIndex = arr[right] > arr[maxIndex] ? right : maxIndex;\n }\n if(maxIndex != i){\n SortHelper.swap(arr, maxIndex, i);\n heapify(arr, maxIndex, end);\n }\n\n }", "@Override\n public <T extends Comparable<T>> T[] sort(T[] arr) {\n for (int i=1 ; i<arr.length ; i++) {\n\n T card = arr[i];\n int j = i - 1;\n \n //Kucuk degeri sola kaydirma\n while (j >= 0 && Sort.less(card, arr[j])) {\n arr[j + 1] = arr[j];\n j--;\n }\n arr[j + 1] = card;\n }\n return arr;\n }", "void reheap (int a[], int length, int i) throws Exception {\n boolean done = false;\n int T = a[i];\n int parent = i;\n int child = 2*(i+1)-1;\n while ((child < length) && (!done)) {\n compex(parent, child);\n pause();\n if (child < length - 1) {\n if (a[child] < a[child + 1]) {\n child += 1;\n }\n }\n if (T >= a[child]) {\n done = true;\n }\n else {\n a[parent] = a[child];\n parent = child;\n child = 2*(parent+1)-1;\n }\n }\n a[parent] = T;\n }", "private static void parallelSortInIsolatedPool(\n FullPageId[] pagesArr,\n Comparator<FullPageId> cmp\n ) throws IgniteCheckedException {\n ForkJoinPool.ForkJoinWorkerThreadFactory factory = new ForkJoinPool.ForkJoinWorkerThreadFactory() {\n @Override public ForkJoinWorkerThread newThread(ForkJoinPool pool) {\n ForkJoinWorkerThread worker = ForkJoinPool.defaultForkJoinWorkerThreadFactory.newThread(pool);\n\n worker.setName(\"checkpoint-pages-sorter-\" + worker.getPoolIndex());\n\n return worker;\n }\n };\n\n ForkJoinPool forkJoinPool = new ForkJoinPool(PARALLEL_SORT_THREADS + 1, factory, null, false);\n\n ForkJoinTask sortTask = forkJoinPool.submit(() -> Arrays.parallelSort(pagesArr, cmp));\n\n try {\n sortTask.get();\n }\n catch (InterruptedException e) {\n throw new IgniteInterruptedCheckedException(e);\n }\n catch (ExecutionException e) {\n throw new IgniteCheckedException(\"Failed to perform pages array parallel sort\", e.getCause());\n }\n\n forkJoinPool.shutdown();\n }", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "void sort (int [] items) {\r\n\tint length = items.length;\r\n\tfor (int gap=length/2; gap>0; gap/=2) {\r\n\t\tfor (int i=gap; i<length; i++) {\r\n\t\t\tfor (int j=i-gap; j>=0; j-=gap) {\r\n\t\t \t\tif (items [j] <= items [j + gap]) {\r\n\t\t\t\t\tint swap = items [j];\r\n\t\t\t\t\titems [j] = items [j + gap];\r\n\t\t\t\t\titems [j + gap] = swap;\r\n\t\t \t\t}\r\n\t \t}\r\n\t }\r\n\t}\r\n}", "public static void heapify(int[] ints) {\n\t\tfor (int si = ints.length / 2 - 1; si >= 0; si--)\n\t\t\tpushDown(ints, si, ints.length);\n\t}", "public static int[] gnomeSort(int[] arr){\n int i = 1, j = 2;\n while (i < arr.length){\n if (arr[i - 1] < arr[i]){\n i = j;\n j++;\n } else {\n int tmp = arr[i - 1];\n arr[i - 1] = arr[i];\n arr[i] = tmp;\n i--;\n if (i == 0){\n i = j;\n j++;\n }\n }\n }\n return arr;\n }", "private static <T extends Comparable<T>> void buildHeap(T[] table)\n {\n int n = 1;\n while (n < table.length)\n {\n n++;\n int child = n-1;\n int parent = (child - 1) / 2;\n while (parent >=0 && table[parent].compareTo(table[child]) < 0)\n {\n swap (table, parent, child);\n child = parent;\n parent = (child - 1) / 2;\n }//end while\n }//end while\n }", "public <T extends Comparable<? super T>> void sort (T[] a) {\n int n = a.length;\n for (int i = 0; i< n - 1; i++) {\n for (int j = 0; j < n -1 - i; j++) {\n if (a[j+1].compareTo(a[j]) < 0) \n {\n T tmp = a[j]; \n a[j] = a[j+1];\n a[j+1] = tmp;\n }\n }\n }\n }", "private void heapify(int[] array, int n, int i) {\r\n\t\tint largest = i; // initialize largest as root\r\n\t\tint leftNode = 2 * i + 1; // left node\r\n\t\tint rightNode = 2 * i + 2; // right node\r\n\t\t// if left node is larger than root node\r\n\t\tif (leftNode < n && array[leftNode] > array[largest])\r\n\t\t\tlargest = leftNode;\r\n\r\n\t\t// if left node is larger than root node\r\n\t\tif (rightNode < n && array[rightNode] > array[largest])\r\n\t\t\tlargest = rightNode;\r\n\r\n\t\t// if largest is not the root\r\n\t\tif (largest != i) {\r\n\t\t\tint swap = array[i];\r\n\t\t\tarray[i] = array[largest];\r\n\t\t\tarray[largest] = swap;\r\n\t\t\t// Recursively call to heapify\r\n\t\t\theapify(array, n, largest);\r\n\t\t}\r\n\t}", "private static <E> void heapify(E[] array, Comparator<E> comparator, int i1, int i2) {\n int start = (i1 + i2) / 2;\n \n while (start >= i1) {\n siftDown(array, comparator, i1, start, i2);\n start -= 1;\n }\n }", "public static void heap(int[] data, int number){\n for(int i=1; i<number; i++){\n int child = i;\n while(child>0){\n int parent = child/2;\n if(data[child] > data[parent]){\n int temp=data[parent];\n data[parent]=data[child];\n data[child]=temp;\n }\n child=parent;\n }\n }\n }", "@Test\r\n public void testSort() {\r\n System.out.println(\"sort\");\r\n int[] array = {6, 3, 7, 9, 4, 1, 3, 7, 0};\r\n int[] expResult = {0, 1, 3, 3, 4, 6, 7, 7, 9};\r\n\r\n int[] result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n \r\n array = new int[10000];\r\n for (int i = 0; i < array.length; i++) {\r\n array[i] = new Random().nextInt(Integer.MAX_VALUE);\r\n }\r\n expResult = Arrays.copyOf(array, array.length);\r\n Arrays.sort(expResult);\r\n \r\n result = new InsertionSort().sort(array);\r\n\r\n assertArrayEquals(expResult, result);\r\n }" ]
[ "0.82177913", "0.81875193", "0.81468827", "0.79743505", "0.7844899", "0.7836217", "0.779797", "0.779779", "0.7753065", "0.77425677", "0.7634548", "0.76225007", "0.760583", "0.75109905", "0.7497917", "0.746092", "0.7385009", "0.7311606", "0.7275579", "0.72400445", "0.7115245", "0.7103538", "0.7071365", "0.706966", "0.7038969", "0.7025928", "0.701032", "0.6942807", "0.6901742", "0.6881769", "0.6864375", "0.6861182", "0.6856486", "0.68423456", "0.67521095", "0.6712408", "0.66893655", "0.6682387", "0.6659038", "0.6627596", "0.66274244", "0.66209435", "0.6618988", "0.6618959", "0.66007763", "0.6581507", "0.65643334", "0.6562168", "0.6541092", "0.6539776", "0.6532318", "0.6527758", "0.65273154", "0.6514007", "0.65064377", "0.65006506", "0.6500427", "0.649041", "0.64899766", "0.64881855", "0.6471053", "0.6470753", "0.64649814", "0.64582944", "0.64514214", "0.6442948", "0.6430318", "0.64202976", "0.64026505", "0.63962185", "0.6374696", "0.63723963", "0.63562375", "0.63460606", "0.63285124", "0.6325209", "0.63251585", "0.63229823", "0.63092524", "0.63092524", "0.63029534", "0.62950385", "0.62805617", "0.6278296", "0.6273734", "0.62640226", "0.6262268", "0.62555707", "0.6244338", "0.62341887", "0.62170714", "0.62169904", "0.620922", "0.6207078", "0.6204159", "0.6200233", "0.61958206", "0.6191408", "0.61894816", "0.6184728" ]
0.7857499
4
Atomos Content provides information about content discovered by the Atomos runtime which can be installed as a connected bundle into an OSGi Framework.
@ProviderType public interface AtomosContent extends Comparable<AtomosContent> { /** * The location of the Atomos content. The location * always includes the Atomos bundle's layer {@link AtomosLayer#getName() name}. * This location plus the {@link #install(String) prefix} can be used * as the install location of a connected bundle. * * @return the location of the Atomos content. * @see AtomosContent#install(String) */ String getAtomosLocation(); /** * The symbolic name of the Atomos content. * @return the symbolic name. */ String getSymbolicName(); /** * The version of the Atomos content. * @return the version */ Version getVersion(); /** * Adapt this Atomos content to the specified type. For example, * if running in a module layer then the module of the Atomos * content is returned in the optional value. * @param <T> The type to which this Atomos content is to be adapted. * @param type Class object for the type to which this Atomos content is to be * adapted. * @return The object, of the specified type, to which this Atomos content has been * adapted or {@code empty} if this content cannot be adapted to the * specified type. */ <T> Optional<T> adapt(Class<T> type); /** * The Atomos layer this Atomos content is in. * @return the Atomos layer */ AtomosLayer getAtomosLayer(); /** * Installs this Atomos content as a connected bundle using the specified location prefix. * If the Atomos content is already installed then the existing bundle is returned if * the existing bundle location is equal to the location this method calculates to * install the bundle; otherwise a {@code BundleException} is thrown. * This is a convenience method that is equivalent to the following: * <pre> * AtomosContent atomosContent = getAtomosContent(); * BundleContext bc = getBundleContext(); * * String osgiLocation = prefix + ":" + atomosContent.getAtomosLocation(); * Bundle b = bc.getBundle(osgiLocation); * if (b != null) * { * if (!b.getLocation().equals(osgiLocation)) * { * throw new BundleException(); * } * } * atomosContent.disconnect(); * atomosContent.connect(osgiLocation); * b = bc.installBundle(osgiLocation); * </pre> * @param prefix the prefix to use, if {@code null} then the prefix "atomos" will be used * @return the installed connected bundle. * @throws BundleException if an error occurs installing the Atomos content */ Bundle install(String prefix) throws BundleException; /** * Same as {@link #install(String)} using a null prefix. * @return the installed connected bundle * @throws BundleException if an error occurs installing the Atomos content */ default Bundle install() throws BundleException { return install(null); } /** * Returns the connect content for this Atomos content. The returned {@link ConnectContent} can * be used to lookup entries from the content directly. If possible, it is preferred to used the bundle * returned by {@link #getBundle() getBundle()} instead to access entries from the content. Using the * bundle avoids issues with accessing the content * at the same time the OSGi Framework is managing the associated content. * <p> * If the ConnectContent is not managed by * a framework, {@link #getBundle() getBundle()} will return {@code null} and this method can be called as a way to access * the associated content. The caller is responsible for opening and closing the ConnectContent as appropriate. * * @return ConnectContent associated with this Atomos content. */ ConnectContent getConnectContent(); /** * Returns the connected bundle location for this Atomos content or {@code null} if * no bundle location is connected for this content. A {@code non-null} value is * only an indication that this content {@code #connect(String)} has been called * to set the connect bundle location. A connected bundle may still need to be installed * into the framework using this bundle location. * @return the bundle location or {@code null} */ String getConnectLocation(); /** * Connects the specified bundle location to this Atomos content. Unlike * the {@link #install(String)} method, this method does not install this * content as a connected {@link Bundle}. If the specified location * is used with the {@link BundleContext#installBundle(String)} method then the * installed {@link Bundle} will be connected to this content. This method does * nothing if this content is already using the specified location as its * connect location. * @param bundleLocation the bundle location * @throws IllegalStateException if the connect location is already being used as a connect location * or if this content already has a different connect location set */ void connect(String bundleLocation); /** * Disconnects this Atomos content from the bundle location, if the bundle location * is set. This method does nothing if this content is not connected. */ void disconnect(); /** * Returns the OSGi bundle installed which is connected with this Atomos content. * * @return the OSGi bundle or {@code null} if there is no bundle connected * with this content or if there is no OSGi Framework initialized * with the Atomos Runtime. */ Bundle getBundle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Map<String, Object> contentDescription(URI uri, InputStream inputStream, Map<?, ?> options, Map<Object, Object> context) throws IOException\n {\n Map<String, Object> result = super.contentDescription(uri, inputStream, options, context);\n \n XMLResource xmlResource = load(uri, inputStream, options, context);\n EList<EObject> contents = xmlResource.getContents();\n if (!contents.isEmpty())\n {\n EObject eObject = contents.get(0);\n if (eObject instanceof XMLTypeDocumentRoot)\n {\n XMLTypeDocumentRoot documentRoot = (XMLTypeDocumentRoot)eObject;\n EList<EObject> rootContents = documentRoot.eContents();\n String rootElementName = null;\n String rootElementNamespace = null;\n if (!rootContents.isEmpty())\n {\n EObject root = rootContents.get(0);\n EReference eContainmentFeature = root.eContainmentFeature();\n rootElementName = eContainmentFeature.getName();\n rootElementNamespace = ExtendedMetaData.INSTANCE.getNamespace(eContainmentFeature);\n if (XMI_KIND.equals(kind) && isXMINameAndNamespace(rootElementName, rootElementNamespace))\n {\n // Look for the first non-XMI element.\n //\n for (EObject candidate : root.eContents())\n {\n eContainmentFeature = candidate.eContainmentFeature();\n rootElementNamespace = ExtendedMetaData.INSTANCE.getNamespace(eContainmentFeature);\n if (!isXMINamespace(rootElementNamespace))\n {\n rootElementName = eContainmentFeature.getName();\n break;\n }\n }\n }\n }\n \n if (rootElementName != null && isMatchingNamespace(rootElementNamespace))\n {\n boolean elementNameMatched = false;\n if (elementNames == null || elementNames.length == 0)\n {\n elementNameMatched = true;\n }\n else\n {\n for (String elementName : elementNames)\n {\n if (rootElementName.equals(elementName))\n {\n elementNameMatched = true;\n break;\n }\n }\n }\n if (elementNameMatched)\n {\n result.put(VALIDITY_PROPERTY, ContentHandler.Validity.VALID);\n result.put(CONTENT_TYPE_PROPERTY, contentTypeID == null ? rootElementNamespace == null ? \"\" : rootElementNamespace : contentTypeID);\n return result;\n }\n }\n }\n }\n return result;\n }", "public abstract Object getContent();", "public interface IContentComponent extends IMPDElement {\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetAccessibility()\n */\n public Vector<Descriptor> GetAccessibility ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetRole()\n */\n public Vector<Descriptor> GetRole ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetRating()\n */\n public Vector<Descriptor> GetRating ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetViewpoint()\n */\n public Vector<Descriptor> GetViewpoint ();\n\n /**\n * Returns an unsigned integer that specifies an identifier for this media component.\n * The attribute shall be unique in the scope of the containing Adaptation Set.\n * @return an unsigned integer\n */\n public int GetId ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetLang()\n */\n public String GetLang ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetContentType()\n */\n public String GetContentType ();\n\n /**\n * @copydoc dash::mpd::IAdaptationSet::GetPar()\n */\n public String GetPar ();\n}", "public abstract String getContentDescription();", "public interface ContentPackage extends EPackage {\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"content\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.abchip.org/mimo/biz/model/content/content\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"biz-content\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tContentPackage eINSTANCE = org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentImpl <em>Content</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContent()\n\t * @generated\n\t */\n\tint CONTENT = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CREATED_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CREATED_TX_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__LAST_UPDATED_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CONTENT_ID = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Character Set</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CHARACTER_SET = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Child Branch Count</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CHILD_BRANCH_COUNT = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Child Leaf Count</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CHILD_LEAF_COUNT = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 7;\n\n\t/**\n\t * The feature id for the '<em><b>Content Attributes</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CONTENT_ATTRIBUTES = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 8;\n\n\t/**\n\t * The feature id for the '<em><b>Content Keywords</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CONTENT_KEYWORDS = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 9;\n\n\t/**\n\t * The feature id for the '<em><b>Content Meta Datas</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CONTENT_META_DATAS = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 10;\n\n\t/**\n\t * The feature id for the '<em><b>Content Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CONTENT_NAME = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 11;\n\n\t/**\n\t * The feature id for the '<em><b>Content Purposes</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CONTENT_PURPOSES = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 12;\n\n\t/**\n\t * The feature id for the '<em><b>Content Revisions</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CONTENT_REVISIONS = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 13;\n\n\t/**\n\t * The feature id for the '<em><b>Content Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CONTENT_TYPE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 14;\n\n\t/**\n\t * The feature id for the '<em><b>Created By User Login</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CREATED_BY_USER_LOGIN = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 15;\n\n\t/**\n\t * The feature id for the '<em><b>Created Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CREATED_DATE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 16;\n\n\t/**\n\t * The feature id for the '<em><b>Custom Method</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__CUSTOM_METHOD = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 17;\n\n\t/**\n\t * The feature id for the '<em><b>Data Resource</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__DATA_RESOURCE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 18;\n\n\t/**\n\t * The feature id for the '<em><b>Data Source</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__DATA_SOURCE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 19;\n\n\t/**\n\t * The feature id for the '<em><b>Decorator Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__DECORATOR_CONTENT = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 20;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__DESCRIPTION = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 21;\n\n\t/**\n\t * The feature id for the '<em><b>From Comm Event Content Assocs</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__FROM_COMM_EVENT_CONTENT_ASSOCS = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 22;\n\n\t/**\n\t * The feature id for the '<em><b>Instance Of Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__INSTANCE_OF_CONTENT = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 23;\n\n\t/**\n\t * The feature id for the '<em><b>Last Modified By User Login</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__LAST_MODIFIED_BY_USER_LOGIN = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 24;\n\n\t/**\n\t * The feature id for the '<em><b>Last Modified Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__LAST_MODIFIED_DATE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 25;\n\n\t/**\n\t * The feature id for the '<em><b>Locale String</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__LOCALE_STRING = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 26;\n\n\t/**\n\t * The feature id for the '<em><b>Mime Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__MIME_TYPE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 27;\n\n\t/**\n\t * The feature id for the '<em><b>Owner Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__OWNER_CONTENT = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 28;\n\n\t/**\n\t * The feature id for the '<em><b>Privilege Enum</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__PRIVILEGE_ENUM = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 29;\n\n\t/**\n\t * The feature id for the '<em><b>Service Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__SERVICE_NAME = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 30;\n\n\t/**\n\t * The feature id for the '<em><b>Status</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__STATUS = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 31;\n\n\t/**\n\t * The feature id for the '<em><b>Template Data Resource</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT__TEMPLATE_DATA_RESOURCE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 32;\n\n\t/**\n\t * The number of structural features of the '<em>Content</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_FEATURE_COUNT = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 33;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentApprovalImpl <em>Approval</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentApprovalImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentApproval()\n\t * @generated\n\t */\n\tint CONTENT_APPROVAL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Approval Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__CONTENT_APPROVAL_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Approval Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__APPROVAL_DATE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Approval Status</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__APPROVAL_STATUS = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Comments</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__COMMENTS = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The feature id for the '<em><b>Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__CONTENT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The feature id for the '<em><b>Content Revision Seq Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__CONTENT_REVISION_SEQ_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 9;\n\n\t/**\n\t * The feature id for the '<em><b>Party</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__PARTY = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 10;\n\n\t/**\n\t * The feature id for the '<em><b>Role Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__ROLE_TYPE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 11;\n\n\t/**\n\t * The feature id for the '<em><b>Sequence Num</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL__SEQUENCE_NUM = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 12;\n\n\t/**\n\t * The number of structural features of the '<em>Approval</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_APPROVAL_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 13;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentAssocImpl <em>Assoc</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentAssocImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentAssoc()\n\t * @generated\n\t */\n\tint CONTENT_ASSOC = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__CREATED_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__CREATED_TX_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__LAST_UPDATED_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__CONTENT = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Content Id To</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__CONTENT_ID_TO = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Content Assoc Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__CONTENT_ASSOC_TYPE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>From Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__FROM_DATE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 7;\n\n\t/**\n\t * The feature id for the '<em><b>Content Assoc Predicate</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__CONTENT_ASSOC_PREDICATE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 8;\n\n\t/**\n\t * The feature id for the '<em><b>Created By User Login</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__CREATED_BY_USER_LOGIN = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 9;\n\n\t/**\n\t * The feature id for the '<em><b>Created Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__CREATED_DATE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 10;\n\n\t/**\n\t * The feature id for the '<em><b>Data Source</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__DATA_SOURCE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 11;\n\n\t/**\n\t * The feature id for the '<em><b>Last Modified By User Login</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__LAST_MODIFIED_BY_USER_LOGIN = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 12;\n\n\t/**\n\t * The feature id for the '<em><b>Last Modified Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__LAST_MODIFIED_DATE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 13;\n\n\t/**\n\t * The feature id for the '<em><b>Left Coordinate</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__LEFT_COORDINATE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 14;\n\n\t/**\n\t * The feature id for the '<em><b>Map Key</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__MAP_KEY = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 15;\n\n\t/**\n\t * The feature id for the '<em><b>Sequence Num</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__SEQUENCE_NUM = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 16;\n\n\t/**\n\t * The feature id for the '<em><b>Thru Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__THRU_DATE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 17;\n\n\t/**\n\t * The feature id for the '<em><b>Upper Coordinate</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC__UPPER_COORDINATE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 18;\n\n\t/**\n\t * The number of structural features of the '<em>Assoc</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_FEATURE_COUNT = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 19;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentAssocPredicateImpl <em>Assoc Predicate</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentAssocPredicateImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentAssocPredicate()\n\t * @generated\n\t */\n\tint CONTENT_ASSOC_PREDICATE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_PREDICATE__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_PREDICATE__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_PREDICATE__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_PREDICATE__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Assoc Predicate Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_PREDICATE__CONTENT_ASSOC_PREDICATE_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_PREDICATE__DESCRIPTION = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The number of structural features of the '<em>Assoc Predicate</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_PREDICATE_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentAssocTypeImpl <em>Assoc Type</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentAssocTypeImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentAssocType()\n\t * @generated\n\t */\n\tint CONTENT_ASSOC_TYPE = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Slots</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_TYPE__SLOTS = EntityPackage.ENTITY_TYPE__SLOTS;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_TYPE__CREATED_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_TYPE__CREATED_TX_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_TYPE__LAST_UPDATED_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_TYPE__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Assoc Type Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_TYPE__CONTENT_ASSOC_TYPE_ID = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_TYPE__DESCRIPTION = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The number of structural features of the '<em>Assoc Type</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ASSOC_TYPE_FEATURE_COUNT = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentAttributeImpl <em>Attribute</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentAttributeImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentAttribute()\n\t * @generated\n\t */\n\tint CONTENT_ATTRIBUTE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ATTRIBUTE__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ATTRIBUTE__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ATTRIBUTE__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ATTRIBUTE__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ATTRIBUTE__CONTENT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Attr Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ATTRIBUTE__ATTR_NAME = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Attr Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ATTRIBUTE__ATTR_DESCRIPTION = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Attr Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ATTRIBUTE__ATTR_VALUE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The number of structural features of the '<em>Attribute</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ATTRIBUTE_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentKeywordImpl <em>Keyword</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentKeywordImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentKeyword()\n\t * @generated\n\t */\n\tint CONTENT_KEYWORD = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_KEYWORD__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_KEYWORD__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_KEYWORD__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_KEYWORD__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_KEYWORD__CONTENT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Keyword</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_KEYWORD__KEYWORD = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Relevancy Weight</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_KEYWORD__RELEVANCY_WEIGHT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The number of structural features of the '<em>Keyword</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_KEYWORD_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentMetaDataImpl <em>Meta Data</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentMetaDataImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentMetaData()\n\t * @generated\n\t */\n\tint CONTENT_META_DATA = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_META_DATA__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_META_DATA__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_META_DATA__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_META_DATA__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_META_DATA__CONTENT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Meta Data Predicate</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_META_DATA__META_DATA_PREDICATE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Data Source</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_META_DATA__DATA_SOURCE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Meta Data Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_META_DATA__META_DATA_VALUE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The number of structural features of the '<em>Meta Data</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_META_DATA_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentOperationImpl <em>Operation</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentOperationImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentOperation()\n\t * @generated\n\t */\n\tint CONTENT_OPERATION = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_OPERATION__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_OPERATION__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_OPERATION__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_OPERATION__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Operation Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_OPERATION__CONTENT_OPERATION_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_OPERATION__DESCRIPTION = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The number of structural features of the '<em>Operation</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_OPERATION_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentPurposeImpl <em>Purpose</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPurposeImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentPurpose()\n\t * @generated\n\t */\n\tint CONTENT_PURPOSE = 9;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE__CREATED_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE__CREATED_TX_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE__LAST_UPDATED_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE__CONTENT = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Content Purpose Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE__CONTENT_PURPOSE_TYPE = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Sequence Num</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE__SEQUENCE_NUM = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 6;\n\n\t/**\n\t * The number of structural features of the '<em>Purpose</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_FEATURE_COUNT = EntityPackage.ENTITY_TYPED_FEATURE_COUNT + 7;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentPurposeOperationImpl <em>Purpose Operation</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPurposeOperationImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentPurposeOperation()\n\t * @generated\n\t */\n\tint CONTENT_PURPOSE_OPERATION = 10;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_OPERATION__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_OPERATION__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_OPERATION__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_OPERATION__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Purpose Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_OPERATION__CONTENT_PURPOSE_TYPE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Content Operation</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_OPERATION__CONTENT_OPERATION = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Role Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_OPERATION__ROLE_TYPE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Status</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_OPERATION__STATUS = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The feature id for the '<em><b>Privilege Enum</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_OPERATION__PRIVILEGE_ENUM = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The number of structural features of the '<em>Purpose Operation</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_OPERATION_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 9;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentPurposeTypeImpl <em>Purpose Type</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPurposeTypeImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentPurposeType()\n\t * @generated\n\t */\n\tint CONTENT_PURPOSE_TYPE = 11;\n\n\t/**\n\t * The feature id for the '<em><b>Slots</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_TYPE__SLOTS = EntityPackage.ENTITY_TYPE__SLOTS;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_TYPE__CREATED_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_TYPE__CREATED_TX_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_TYPE__LAST_UPDATED_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_TYPE__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Purpose Type Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_TYPE__CONTENT_PURPOSE_TYPE_ID = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_TYPE__DESCRIPTION = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The number of structural features of the '<em>Purpose Type</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_PURPOSE_TYPE_FEATURE_COUNT = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentRevisionImpl <em>Revision</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentRevisionImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentRevision()\n\t * @generated\n\t */\n\tint CONTENT_REVISION = 12;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION__CONTENT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Content Revision Seq Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION__CONTENT_REVISION_SEQ_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Comments</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION__COMMENTS = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Committed By Party</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION__COMMITTED_BY_PARTY = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The number of structural features of the '<em>Revision</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentRevisionItemImpl <em>Revision Item</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentRevisionItemImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentRevisionItem()\n\t * @generated\n\t */\n\tint CONTENT_REVISION_ITEM = 13;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_ITEM__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_ITEM__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_ITEM__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_ITEM__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_ITEM__CONTENT_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Content Revision Seq Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_ITEM__CONTENT_REVISION_SEQ_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Item Content Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_ITEM__ITEM_CONTENT_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>New Data Resource</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_ITEM__NEW_DATA_RESOURCE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The feature id for the '<em><b>Old Data Resource</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_ITEM__OLD_DATA_RESOURCE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The number of structural features of the '<em>Revision Item</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_REVISION_ITEM_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 9;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentRoleImpl <em>Role</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentRoleImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentRole()\n\t * @generated\n\t */\n\tint CONTENT_ROLE = 14;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ROLE__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ROLE__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ROLE__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ROLE__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ROLE__CONTENT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Party</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ROLE__PARTY = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>From Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ROLE__FROM_DATE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Role Type Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ROLE__ROLE_TYPE_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The feature id for the '<em><b>Thru Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ROLE__THRU_DATE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The number of structural features of the '<em>Role</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_ROLE_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 9;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentSearchConstraintImpl <em>Search Constraint</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentSearchConstraintImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentSearchConstraint()\n\t * @generated\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT = 15;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Search Result</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__CONTENT_SEARCH_RESULT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Constraint Seq Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__CONSTRAINT_SEQ_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Any Prefix</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__ANY_PREFIX = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Any Suffix</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__ANY_SUFFIX = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The feature id for the '<em><b>Constraint Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__CONSTRAINT_NAME = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The feature id for the '<em><b>High Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__HIGH_VALUE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 9;\n\n\t/**\n\t * The feature id for the '<em><b>Include Sub Categories</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__INCLUDE_SUB_CATEGORIES = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 10;\n\n\t/**\n\t * The feature id for the '<em><b>Info String</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__INFO_STRING = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 11;\n\n\t/**\n\t * The feature id for the '<em><b>Is And</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__IS_AND = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 12;\n\n\t/**\n\t * The feature id for the '<em><b>Low Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__LOW_VALUE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 13;\n\n\t/**\n\t * The feature id for the '<em><b>Remove Stems</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT__REMOVE_STEMS = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 14;\n\n\t/**\n\t * The number of structural features of the '<em>Search Constraint</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_CONSTRAINT_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 15;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentSearchResultImpl <em>Search Result</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentSearchResultImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentSearchResult()\n\t * @generated\n\t */\n\tint CONTENT_SEARCH_RESULT = 16;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Search Result Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__CONTENT_SEARCH_RESULT_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Content Search Constraints</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__CONTENT_SEARCH_CONSTRAINTS = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Is Ascending</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__IS_ASCENDING = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Num Results</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__NUM_RESULTS = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The feature id for the '<em><b>Order By Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__ORDER_BY_NAME = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The feature id for the '<em><b>Search Date</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__SEARCH_DATE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 9;\n\n\t/**\n\t * The feature id for the '<em><b>Seconds Total</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__SECONDS_TOTAL = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 10;\n\n\t/**\n\t * The feature id for the '<em><b>Visit Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT__VISIT_ID = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 11;\n\n\t/**\n\t * The number of structural features of the '<em>Search Result</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_SEARCH_RESULT_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 12;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentTypeImpl <em>Type</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentTypeImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentType()\n\t * @generated\n\t */\n\tint CONTENT_TYPE = 17;\n\n\t/**\n\t * The feature id for the '<em><b>Slots</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE__SLOTS = EntityPackage.ENTITY_TYPE__SLOTS;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE__CREATED_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE__CREATED_TX_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE__LAST_UPDATED_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Type Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE__CONTENT_TYPE_ID = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Content Type Attrs</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE__CONTENT_TYPE_ATTRS = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE__DESCRIPTION = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The feature id for the '<em><b>Has Table</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE__HAS_TABLE = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 7;\n\n\t/**\n\t * The feature id for the '<em><b>Parent Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE__PARENT_TYPE = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 8;\n\n\t/**\n\t * The number of structural features of the '<em>Type</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE_FEATURE_COUNT = EntityPackage.ENTITY_TYPE_FEATURE_COUNT + 9;\n\n\t/**\n\t * The meta object id for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentTypeAttrImpl <em>Type Attr</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentTypeAttrImpl\n\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentTypeAttr()\n\t * @generated\n\t */\n\tint CONTENT_TYPE_ATTR = 18;\n\n\t/**\n\t * The feature id for the '<em><b>Created Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE_ATTR__CREATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 0;\n\n\t/**\n\t * The feature id for the '<em><b>Created Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE_ATTR__CREATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 1;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE_ATTR__LAST_UPDATED_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 2;\n\n\t/**\n\t * The feature id for the '<em><b>Last Updated Tx Stamp</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE_ATTR__LAST_UPDATED_TX_STAMP = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 3;\n\n\t/**\n\t * The feature id for the '<em><b>Content Type</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE_ATTR__CONTENT_TYPE = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 4;\n\n\t/**\n\t * The feature id for the '<em><b>Attr Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE_ATTR__ATTR_NAME = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 5;\n\n\t/**\n\t * The feature id for the '<em><b>Description</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE_ATTR__DESCRIPTION = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 6;\n\n\t/**\n\t * The number of structural features of the '<em>Type Attr</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONTENT_TYPE_ATTR_FEATURE_COUNT = EntityPackage.ENTITY_IDENTIFIABLE_FEATURE_COUNT + 7;\n\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.Content <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content\n\t * @generated\n\t */\n\tEClass getContent();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.Content#getContentId <em>Content Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getContentId()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEAttribute getContent_ContentId();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getCharacterSet <em>Character Set</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Character Set</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getCharacterSet()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_CharacterSet();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.Content#getChildBranchCount <em>Child Branch Count</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Child Branch Count</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getChildBranchCount()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEAttribute getContent_ChildBranchCount();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.Content#getChildLeafCount <em>Child Leaf Count</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Child Leaf Count</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getChildLeafCount()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEAttribute getContent_ChildLeafCount();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.abchip.mimo.biz.model.content.content.Content#getContentAttributes <em>Content Attributes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Content Attributes</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getContentAttributes()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_ContentAttributes();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.abchip.mimo.biz.model.content.content.Content#getContentKeywords <em>Content Keywords</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Content Keywords</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getContentKeywords()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_ContentKeywords();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.abchip.mimo.biz.model.content.content.Content#getContentMetaDatas <em>Content Meta Datas</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Content Meta Datas</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getContentMetaDatas()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_ContentMetaDatas();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.Content#getContentName <em>Content Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Name</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getContentName()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEAttribute getContent_ContentName();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.abchip.mimo.biz.model.content.content.Content#getContentPurposes <em>Content Purposes</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Content Purposes</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getContentPurposes()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_ContentPurposes();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.abchip.mimo.biz.model.content.content.Content#getContentRevisions <em>Content Revisions</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Content Revisions</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getContentRevisions()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_ContentRevisions();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getContentType <em>Content Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getContentType()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_ContentType();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getCreatedByUserLogin <em>Created By User Login</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Created By User Login</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getCreatedByUserLogin()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_CreatedByUserLogin();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.Content#getCreatedDate <em>Created Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Created Date</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getCreatedDate()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEAttribute getContent_CreatedDate();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getCustomMethod <em>Custom Method</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Custom Method</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getCustomMethod()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_CustomMethod();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getDataResource <em>Data Resource</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Data Resource</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getDataResource()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_DataResource();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getDataSource <em>Data Source</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Data Source</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getDataSource()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_DataSource();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getDecoratorContent <em>Decorator Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Decorator Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getDecoratorContent()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_DecoratorContent();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.Content#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getDescription()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEAttribute getContent_Description();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.abchip.mimo.biz.model.content.content.Content#getFromCommEventContentAssocs <em>From Comm Event Content Assocs</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>From Comm Event Content Assocs</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getFromCommEventContentAssocs()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_FromCommEventContentAssocs();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getInstanceOfContent <em>Instance Of Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Instance Of Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getInstanceOfContent()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_InstanceOfContent();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getLastModifiedByUserLogin <em>Last Modified By User Login</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Last Modified By User Login</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getLastModifiedByUserLogin()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_LastModifiedByUserLogin();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.Content#getLastModifiedDate <em>Last Modified Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Last Modified Date</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getLastModifiedDate()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEAttribute getContent_LastModifiedDate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.Content#getLocaleString <em>Locale String</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Locale String</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getLocaleString()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEAttribute getContent_LocaleString();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getMimeType <em>Mime Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Mime Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getMimeType()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_MimeType();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getOwnerContent <em>Owner Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Owner Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getOwnerContent()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_OwnerContent();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getPrivilegeEnum <em>Privilege Enum</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Privilege Enum</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getPrivilegeEnum()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_PrivilegeEnum();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.Content#getServiceName <em>Service Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Service Name</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getServiceName()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEAttribute getContent_ServiceName();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getStatus <em>Status</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Status</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getStatus()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_Status();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.Content#getTemplateDataResource <em>Template Data Resource</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Template Data Resource</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.Content#getTemplateDataResource()\n\t * @see #getContent()\n\t * @generated\n\t */\n\tEReference getContent_TemplateDataResource();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentApproval <em>Approval</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Approval</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentApproval\n\t * @generated\n\t */\n\tEClass getContentApproval();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentApproval#getContentApprovalId <em>Content Approval Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Approval Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentApproval#getContentApprovalId()\n\t * @see #getContentApproval()\n\t * @generated\n\t */\n\tEAttribute getContentApproval_ContentApprovalId();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentApproval#getApprovalDate <em>Approval Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Approval Date</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentApproval#getApprovalDate()\n\t * @see #getContentApproval()\n\t * @generated\n\t */\n\tEAttribute getContentApproval_ApprovalDate();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentApproval#getApprovalStatus <em>Approval Status</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Approval Status</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentApproval#getApprovalStatus()\n\t * @see #getContentApproval()\n\t * @generated\n\t */\n\tEReference getContentApproval_ApprovalStatus();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentApproval#getComments <em>Comments</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Comments</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentApproval#getComments()\n\t * @see #getContentApproval()\n\t * @generated\n\t */\n\tEAttribute getContentApproval_Comments();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentApproval#getContent <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentApproval#getContent()\n\t * @see #getContentApproval()\n\t * @generated\n\t */\n\tEReference getContentApproval_Content();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentApproval#getContentRevisionSeqId <em>Content Revision Seq Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Revision Seq Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentApproval#getContentRevisionSeqId()\n\t * @see #getContentApproval()\n\t * @generated\n\t */\n\tEAttribute getContentApproval_ContentRevisionSeqId();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentApproval#getParty <em>Party</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Party</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentApproval#getParty()\n\t * @see #getContentApproval()\n\t * @generated\n\t */\n\tEReference getContentApproval_Party();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentApproval#getRoleType <em>Role Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Role Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentApproval#getRoleType()\n\t * @see #getContentApproval()\n\t * @generated\n\t */\n\tEReference getContentApproval_RoleType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentApproval#getSequenceNum <em>Sequence Num</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Sequence Num</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentApproval#getSequenceNum()\n\t * @see #getContentApproval()\n\t * @generated\n\t */\n\tEAttribute getContentApproval_SequenceNum();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc <em>Assoc</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Assoc</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc\n\t * @generated\n\t */\n\tEClass getContentAssoc();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getContent <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getContent()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEReference getContentAssoc_Content();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getContentIdTo <em>Content Id To</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content Id To</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getContentIdTo()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEReference getContentAssoc_ContentIdTo();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getContentAssocType <em>Content Assoc Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content Assoc Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getContentAssocType()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEReference getContentAssoc_ContentAssocType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getFromDate <em>From Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>From Date</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getFromDate()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEAttribute getContentAssoc_FromDate();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getContentAssocPredicate <em>Content Assoc Predicate</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content Assoc Predicate</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getContentAssocPredicate()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEReference getContentAssoc_ContentAssocPredicate();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getCreatedByUserLogin <em>Created By User Login</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Created By User Login</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getCreatedByUserLogin()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEReference getContentAssoc_CreatedByUserLogin();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getCreatedDate <em>Created Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Created Date</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getCreatedDate()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEAttribute getContentAssoc_CreatedDate();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getDataSource <em>Data Source</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Data Source</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getDataSource()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEReference getContentAssoc_DataSource();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getLastModifiedByUserLogin <em>Last Modified By User Login</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Last Modified By User Login</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getLastModifiedByUserLogin()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEReference getContentAssoc_LastModifiedByUserLogin();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getLastModifiedDate <em>Last Modified Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Last Modified Date</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getLastModifiedDate()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEAttribute getContentAssoc_LastModifiedDate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getLeftCoordinate <em>Left Coordinate</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Left Coordinate</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getLeftCoordinate()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEAttribute getContentAssoc_LeftCoordinate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getMapKey <em>Map Key</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Map Key</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getMapKey()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEAttribute getContentAssoc_MapKey();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getSequenceNum <em>Sequence Num</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Sequence Num</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getSequenceNum()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEAttribute getContentAssoc_SequenceNum();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getThruDate <em>Thru Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Thru Date</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getThruDate()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEAttribute getContentAssoc_ThruDate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssoc#getUpperCoordinate <em>Upper Coordinate</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Upper Coordinate</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssoc#getUpperCoordinate()\n\t * @see #getContentAssoc()\n\t * @generated\n\t */\n\tEAttribute getContentAssoc_UpperCoordinate();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentAssocPredicate <em>Assoc Predicate</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Assoc Predicate</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssocPredicate\n\t * @generated\n\t */\n\tEClass getContentAssocPredicate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssocPredicate#getContentAssocPredicateId <em>Content Assoc Predicate Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Assoc Predicate Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssocPredicate#getContentAssocPredicateId()\n\t * @see #getContentAssocPredicate()\n\t * @generated\n\t */\n\tEAttribute getContentAssocPredicate_ContentAssocPredicateId();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssocPredicate#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssocPredicate#getDescription()\n\t * @see #getContentAssocPredicate()\n\t * @generated\n\t */\n\tEAttribute getContentAssocPredicate_Description();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentAssocType <em>Assoc Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Assoc Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssocType\n\t * @generated\n\t */\n\tEClass getContentAssocType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssocType#getContentAssocTypeId <em>Content Assoc Type Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Assoc Type Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssocType#getContentAssocTypeId()\n\t * @see #getContentAssocType()\n\t * @generated\n\t */\n\tEAttribute getContentAssocType_ContentAssocTypeId();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAssocType#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAssocType#getDescription()\n\t * @see #getContentAssocType()\n\t * @generated\n\t */\n\tEAttribute getContentAssocType_Description();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentAttribute <em>Attribute</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Attribute</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAttribute\n\t * @generated\n\t */\n\tEClass getContentAttribute();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentAttribute#getContent <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAttribute#getContent()\n\t * @see #getContentAttribute()\n\t * @generated\n\t */\n\tEReference getContentAttribute_Content();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAttribute#getAttrName <em>Attr Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Attr Name</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAttribute#getAttrName()\n\t * @see #getContentAttribute()\n\t * @generated\n\t */\n\tEAttribute getContentAttribute_AttrName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAttribute#getAttrDescription <em>Attr Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Attr Description</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAttribute#getAttrDescription()\n\t * @see #getContentAttribute()\n\t * @generated\n\t */\n\tEAttribute getContentAttribute_AttrDescription();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentAttribute#getAttrValue <em>Attr Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Attr Value</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentAttribute#getAttrValue()\n\t * @see #getContentAttribute()\n\t * @generated\n\t */\n\tEAttribute getContentAttribute_AttrValue();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentKeyword <em>Keyword</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Keyword</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentKeyword\n\t * @generated\n\t */\n\tEClass getContentKeyword();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentKeyword#getContent <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentKeyword#getContent()\n\t * @see #getContentKeyword()\n\t * @generated\n\t */\n\tEReference getContentKeyword_Content();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentKeyword#getKeyword <em>Keyword</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Keyword</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentKeyword#getKeyword()\n\t * @see #getContentKeyword()\n\t * @generated\n\t */\n\tEAttribute getContentKeyword_Keyword();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentKeyword#getRelevancyWeight <em>Relevancy Weight</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Relevancy Weight</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentKeyword#getRelevancyWeight()\n\t * @see #getContentKeyword()\n\t * @generated\n\t */\n\tEAttribute getContentKeyword_RelevancyWeight();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentMetaData <em>Meta Data</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Meta Data</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentMetaData\n\t * @generated\n\t */\n\tEClass getContentMetaData();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentMetaData#getContent <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentMetaData#getContent()\n\t * @see #getContentMetaData()\n\t * @generated\n\t */\n\tEReference getContentMetaData_Content();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentMetaData#getMetaDataPredicate <em>Meta Data Predicate</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Meta Data Predicate</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentMetaData#getMetaDataPredicate()\n\t * @see #getContentMetaData()\n\t * @generated\n\t */\n\tEReference getContentMetaData_MetaDataPredicate();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentMetaData#getDataSource <em>Data Source</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Data Source</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentMetaData#getDataSource()\n\t * @see #getContentMetaData()\n\t * @generated\n\t */\n\tEReference getContentMetaData_DataSource();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentMetaData#getMetaDataValue <em>Meta Data Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Meta Data Value</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentMetaData#getMetaDataValue()\n\t * @see #getContentMetaData()\n\t * @generated\n\t */\n\tEAttribute getContentMetaData_MetaDataValue();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentOperation <em>Operation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Operation</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentOperation\n\t * @generated\n\t */\n\tEClass getContentOperation();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentOperation#getContentOperationId <em>Content Operation Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Operation Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentOperation#getContentOperationId()\n\t * @see #getContentOperation()\n\t * @generated\n\t */\n\tEAttribute getContentOperation_ContentOperationId();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentOperation#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentOperation#getDescription()\n\t * @see #getContentOperation()\n\t * @generated\n\t */\n\tEAttribute getContentOperation_Description();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentPurpose <em>Purpose</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Purpose</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurpose\n\t * @generated\n\t */\n\tEClass getContentPurpose();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentPurpose#getContent <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurpose#getContent()\n\t * @see #getContentPurpose()\n\t * @generated\n\t */\n\tEReference getContentPurpose_Content();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentPurpose#getContentPurposeType <em>Content Purpose Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content Purpose Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurpose#getContentPurposeType()\n\t * @see #getContentPurpose()\n\t * @generated\n\t */\n\tEReference getContentPurpose_ContentPurposeType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentPurpose#getSequenceNum <em>Sequence Num</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Sequence Num</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurpose#getSequenceNum()\n\t * @see #getContentPurpose()\n\t * @generated\n\t */\n\tEAttribute getContentPurpose_SequenceNum();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentPurposeOperation <em>Purpose Operation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Purpose Operation</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurposeOperation\n\t * @generated\n\t */\n\tEClass getContentPurposeOperation();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentPurposeOperation#getContentPurposeType <em>Content Purpose Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content Purpose Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurposeOperation#getContentPurposeType()\n\t * @see #getContentPurposeOperation()\n\t * @generated\n\t */\n\tEReference getContentPurposeOperation_ContentPurposeType();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentPurposeOperation#getContentOperation <em>Content Operation</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content Operation</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurposeOperation#getContentOperation()\n\t * @see #getContentPurposeOperation()\n\t * @generated\n\t */\n\tEReference getContentPurposeOperation_ContentOperation();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentPurposeOperation#getRoleType <em>Role Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Role Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurposeOperation#getRoleType()\n\t * @see #getContentPurposeOperation()\n\t * @generated\n\t */\n\tEReference getContentPurposeOperation_RoleType();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentPurposeOperation#getStatus <em>Status</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Status</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurposeOperation#getStatus()\n\t * @see #getContentPurposeOperation()\n\t * @generated\n\t */\n\tEReference getContentPurposeOperation_Status();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentPurposeOperation#getPrivilegeEnum <em>Privilege Enum</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Privilege Enum</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurposeOperation#getPrivilegeEnum()\n\t * @see #getContentPurposeOperation()\n\t * @generated\n\t */\n\tEReference getContentPurposeOperation_PrivilegeEnum();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentPurposeType <em>Purpose Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Purpose Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurposeType\n\t * @generated\n\t */\n\tEClass getContentPurposeType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentPurposeType#getContentPurposeTypeId <em>Content Purpose Type Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Purpose Type Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurposeType#getContentPurposeTypeId()\n\t * @see #getContentPurposeType()\n\t * @generated\n\t */\n\tEAttribute getContentPurposeType_ContentPurposeTypeId();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentPurposeType#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentPurposeType#getDescription()\n\t * @see #getContentPurposeType()\n\t * @generated\n\t */\n\tEAttribute getContentPurposeType_Description();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentRevision <em>Revision</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Revision</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevision\n\t * @generated\n\t */\n\tEClass getContentRevision();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentRevision#getContent <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevision#getContent()\n\t * @see #getContentRevision()\n\t * @generated\n\t */\n\tEReference getContentRevision_Content();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentRevision#getContentRevisionSeqId <em>Content Revision Seq Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Revision Seq Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevision#getContentRevisionSeqId()\n\t * @see #getContentRevision()\n\t * @generated\n\t */\n\tEAttribute getContentRevision_ContentRevisionSeqId();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentRevision#getComments <em>Comments</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Comments</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevision#getComments()\n\t * @see #getContentRevision()\n\t * @generated\n\t */\n\tEAttribute getContentRevision_Comments();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentRevision#getCommittedByParty <em>Committed By Party</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Committed By Party</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevision#getCommittedByParty()\n\t * @see #getContentRevision()\n\t * @generated\n\t */\n\tEReference getContentRevision_CommittedByParty();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentRevisionItem <em>Revision Item</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Revision Item</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevisionItem\n\t * @generated\n\t */\n\tEClass getContentRevisionItem();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentRevisionItem#getContentId <em>Content Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevisionItem#getContentId()\n\t * @see #getContentRevisionItem()\n\t * @generated\n\t */\n\tEAttribute getContentRevisionItem_ContentId();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentRevisionItem#getContentRevisionSeqId <em>Content Revision Seq Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Revision Seq Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevisionItem#getContentRevisionSeqId()\n\t * @see #getContentRevisionItem()\n\t * @generated\n\t */\n\tEAttribute getContentRevisionItem_ContentRevisionSeqId();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentRevisionItem#getItemContentId <em>Item Content Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Item Content Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevisionItem#getItemContentId()\n\t * @see #getContentRevisionItem()\n\t * @generated\n\t */\n\tEAttribute getContentRevisionItem_ItemContentId();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentRevisionItem#getNewDataResource <em>New Data Resource</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>New Data Resource</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevisionItem#getNewDataResource()\n\t * @see #getContentRevisionItem()\n\t * @generated\n\t */\n\tEReference getContentRevisionItem_NewDataResource();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentRevisionItem#getOldDataResource <em>Old Data Resource</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Old Data Resource</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRevisionItem#getOldDataResource()\n\t * @see #getContentRevisionItem()\n\t * @generated\n\t */\n\tEReference getContentRevisionItem_OldDataResource();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentRole <em>Role</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Role</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRole\n\t * @generated\n\t */\n\tEClass getContentRole();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentRole#getContent <em>Content</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRole#getContent()\n\t * @see #getContentRole()\n\t * @generated\n\t */\n\tEReference getContentRole_Content();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentRole#getParty <em>Party</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Party</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRole#getParty()\n\t * @see #getContentRole()\n\t * @generated\n\t */\n\tEReference getContentRole_Party();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentRole#getRoleTypeId <em>Role Type Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Role Type Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRole#getRoleTypeId()\n\t * @see #getContentRole()\n\t * @generated\n\t */\n\tEAttribute getContentRole_RoleTypeId();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentRole#getFromDate <em>From Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>From Date</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRole#getFromDate()\n\t * @see #getContentRole()\n\t * @generated\n\t */\n\tEAttribute getContentRole_FromDate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentRole#getThruDate <em>Thru Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Thru Date</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentRole#getThruDate()\n\t * @see #getContentRole()\n\t * @generated\n\t */\n\tEAttribute getContentRole_ThruDate();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint <em>Search Constraint</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Search Constraint</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint\n\t * @generated\n\t */\n\tEClass getContentSearchConstraint();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getContentSearchResult <em>Content Search Result</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content Search Result</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getContentSearchResult()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEReference getContentSearchConstraint_ContentSearchResult();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getConstraintSeqId <em>Constraint Seq Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Constraint Seq Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getConstraintSeqId()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEAttribute getContentSearchConstraint_ConstraintSeqId();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getAnyPrefix <em>Any Prefix</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Any Prefix</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getAnyPrefix()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEAttribute getContentSearchConstraint_AnyPrefix();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getAnySuffix <em>Any Suffix</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Any Suffix</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getAnySuffix()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEAttribute getContentSearchConstraint_AnySuffix();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getConstraintName <em>Constraint Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Constraint Name</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getConstraintName()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEAttribute getContentSearchConstraint_ConstraintName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getHighValue <em>High Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>High Value</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getHighValue()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEAttribute getContentSearchConstraint_HighValue();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getIncludeSubCategories <em>Include Sub Categories</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Include Sub Categories</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getIncludeSubCategories()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEAttribute getContentSearchConstraint_IncludeSubCategories();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getInfoString <em>Info String</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Info String</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getInfoString()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEAttribute getContentSearchConstraint_InfoString();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getIsAnd <em>Is And</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Is And</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getIsAnd()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEAttribute getContentSearchConstraint_IsAnd();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getLowValue <em>Low Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Low Value</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getLowValue()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEAttribute getContentSearchConstraint_LowValue();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getRemoveStems <em>Remove Stems</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Remove Stems</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchConstraint#getRemoveStems()\n\t * @see #getContentSearchConstraint()\n\t * @generated\n\t */\n\tEAttribute getContentSearchConstraint_RemoveStems();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentSearchResult <em>Search Result</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Search Result</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchResult\n\t * @generated\n\t */\n\tEClass getContentSearchResult();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchResult#getContentSearchResultId <em>Content Search Result Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Search Result Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchResult#getContentSearchResultId()\n\t * @see #getContentSearchResult()\n\t * @generated\n\t */\n\tEAttribute getContentSearchResult_ContentSearchResultId();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.abchip.mimo.biz.model.content.content.ContentSearchResult#getContentSearchConstraints <em>Content Search Constraints</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Content Search Constraints</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchResult#getContentSearchConstraints()\n\t * @see #getContentSearchResult()\n\t * @generated\n\t */\n\tEReference getContentSearchResult_ContentSearchConstraints();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchResult#getIsAscending <em>Is Ascending</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Is Ascending</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchResult#getIsAscending()\n\t * @see #getContentSearchResult()\n\t * @generated\n\t */\n\tEAttribute getContentSearchResult_IsAscending();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchResult#getNumResults <em>Num Results</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Num Results</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchResult#getNumResults()\n\t * @see #getContentSearchResult()\n\t * @generated\n\t */\n\tEAttribute getContentSearchResult_NumResults();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchResult#getOrderByName <em>Order By Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Order By Name</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchResult#getOrderByName()\n\t * @see #getContentSearchResult()\n\t * @generated\n\t */\n\tEAttribute getContentSearchResult_OrderByName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchResult#getSearchDate <em>Search Date</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Search Date</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchResult#getSearchDate()\n\t * @see #getContentSearchResult()\n\t * @generated\n\t */\n\tEAttribute getContentSearchResult_SearchDate();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchResult#getSecondsTotal <em>Seconds Total</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Seconds Total</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchResult#getSecondsTotal()\n\t * @see #getContentSearchResult()\n\t * @generated\n\t */\n\tEAttribute getContentSearchResult_SecondsTotal();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentSearchResult#getVisitId <em>Visit Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Visit Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentSearchResult#getVisitId()\n\t * @see #getContentSearchResult()\n\t * @generated\n\t */\n\tEAttribute getContentSearchResult_VisitId();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentType <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentType\n\t * @generated\n\t */\n\tEClass getContentType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentType#getContentTypeId <em>Content Type Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Content Type Id</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentType#getContentTypeId()\n\t * @see #getContentType()\n\t * @generated\n\t */\n\tEAttribute getContentType_ContentTypeId();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link org.abchip.mimo.biz.model.content.content.ContentType#getContentTypeAttrs <em>Content Type Attrs</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Content Type Attrs</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentType#getContentTypeAttrs()\n\t * @see #getContentType()\n\t * @generated\n\t */\n\tEReference getContentType_ContentTypeAttrs();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentType#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentType#getDescription()\n\t * @see #getContentType()\n\t * @generated\n\t */\n\tEAttribute getContentType_Description();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentType#isHasTable <em>Has Table</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Has Table</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentType#isHasTable()\n\t * @see #getContentType()\n\t * @generated\n\t */\n\tEAttribute getContentType_HasTable();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentType#getParentType <em>Parent Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Parent Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentType#getParentType()\n\t * @see #getContentType()\n\t * @generated\n\t */\n\tEReference getContentType_ParentType();\n\n\t/**\n\t * Returns the meta object for class '{@link org.abchip.mimo.biz.model.content.content.ContentTypeAttr <em>Type Attr</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Type Attr</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentTypeAttr\n\t * @generated\n\t */\n\tEClass getContentTypeAttr();\n\n\t/**\n\t * Returns the meta object for the reference '{@link org.abchip.mimo.biz.model.content.content.ContentTypeAttr#getContentType <em>Content Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Content Type</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentTypeAttr#getContentType()\n\t * @see #getContentTypeAttr()\n\t * @generated\n\t */\n\tEReference getContentTypeAttr_ContentType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentTypeAttr#getAttrName <em>Attr Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Attr Name</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentTypeAttr#getAttrName()\n\t * @see #getContentTypeAttr()\n\t * @generated\n\t */\n\tEAttribute getContentTypeAttr_AttrName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link org.abchip.mimo.biz.model.content.content.ContentTypeAttr#getDescription <em>Description</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Description</em>'.\n\t * @see org.abchip.mimo.biz.model.content.content.ContentTypeAttr#getDescription()\n\t * @see #getContentTypeAttr()\n\t * @generated\n\t */\n\tEAttribute getContentTypeAttr_Description();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tContentFactory getContentFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals {\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentImpl <em>Content</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContent()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT = eINSTANCE.getContent();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT__CONTENT_ID = eINSTANCE.getContent_ContentId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Character Set</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__CHARACTER_SET = eINSTANCE.getContent_CharacterSet();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Child Branch Count</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT__CHILD_BRANCH_COUNT = eINSTANCE.getContent_ChildBranchCount();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Child Leaf Count</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT__CHILD_LEAF_COUNT = eINSTANCE.getContent_ChildLeafCount();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Attributes</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__CONTENT_ATTRIBUTES = eINSTANCE.getContent_ContentAttributes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Keywords</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__CONTENT_KEYWORDS = eINSTANCE.getContent_ContentKeywords();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Meta Datas</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__CONTENT_META_DATAS = eINSTANCE.getContent_ContentMetaDatas();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT__CONTENT_NAME = eINSTANCE.getContent_ContentName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Purposes</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__CONTENT_PURPOSES = eINSTANCE.getContent_ContentPurposes();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Revisions</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__CONTENT_REVISIONS = eINSTANCE.getContent_ContentRevisions();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__CONTENT_TYPE = eINSTANCE.getContent_ContentType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Created By User Login</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__CREATED_BY_USER_LOGIN = eINSTANCE.getContent_CreatedByUserLogin();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Created Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT__CREATED_DATE = eINSTANCE.getContent_CreatedDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Custom Method</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__CUSTOM_METHOD = eINSTANCE.getContent_CustomMethod();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Data Resource</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__DATA_RESOURCE = eINSTANCE.getContent_DataResource();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Data Source</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__DATA_SOURCE = eINSTANCE.getContent_DataSource();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Decorator Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__DECORATOR_CONTENT = eINSTANCE.getContent_DecoratorContent();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT__DESCRIPTION = eINSTANCE.getContent_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>From Comm Event Content Assocs</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__FROM_COMM_EVENT_CONTENT_ASSOCS = eINSTANCE.getContent_FromCommEventContentAssocs();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Instance Of Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__INSTANCE_OF_CONTENT = eINSTANCE.getContent_InstanceOfContent();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Last Modified By User Login</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__LAST_MODIFIED_BY_USER_LOGIN = eINSTANCE.getContent_LastModifiedByUserLogin();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Last Modified Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT__LAST_MODIFIED_DATE = eINSTANCE.getContent_LastModifiedDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Locale String</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT__LOCALE_STRING = eINSTANCE.getContent_LocaleString();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Mime Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__MIME_TYPE = eINSTANCE.getContent_MimeType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Owner Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__OWNER_CONTENT = eINSTANCE.getContent_OwnerContent();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Privilege Enum</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__PRIVILEGE_ENUM = eINSTANCE.getContent_PrivilegeEnum();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Service Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT__SERVICE_NAME = eINSTANCE.getContent_ServiceName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Status</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__STATUS = eINSTANCE.getContent_Status();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Template Data Resource</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT__TEMPLATE_DATA_RESOURCE = eINSTANCE.getContent_TemplateDataResource();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentApprovalImpl <em>Approval</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentApprovalImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentApproval()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_APPROVAL = eINSTANCE.getContentApproval();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Approval Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_APPROVAL__CONTENT_APPROVAL_ID = eINSTANCE.getContentApproval_ContentApprovalId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Approval Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_APPROVAL__APPROVAL_DATE = eINSTANCE.getContentApproval_ApprovalDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Approval Status</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_APPROVAL__APPROVAL_STATUS = eINSTANCE.getContentApproval_ApprovalStatus();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Comments</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_APPROVAL__COMMENTS = eINSTANCE.getContentApproval_Comments();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_APPROVAL__CONTENT = eINSTANCE.getContentApproval_Content();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Revision Seq Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_APPROVAL__CONTENT_REVISION_SEQ_ID = eINSTANCE.getContentApproval_ContentRevisionSeqId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Party</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_APPROVAL__PARTY = eINSTANCE.getContentApproval_Party();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Role Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_APPROVAL__ROLE_TYPE = eINSTANCE.getContentApproval_RoleType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Sequence Num</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_APPROVAL__SEQUENCE_NUM = eINSTANCE.getContentApproval_SequenceNum();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentAssocImpl <em>Assoc</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentAssocImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentAssoc()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_ASSOC = eINSTANCE.getContentAssoc();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_ASSOC__CONTENT = eINSTANCE.getContentAssoc_Content();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Id To</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_ASSOC__CONTENT_ID_TO = eINSTANCE.getContentAssoc_ContentIdTo();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Assoc Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_ASSOC__CONTENT_ASSOC_TYPE = eINSTANCE.getContentAssoc_ContentAssocType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>From Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC__FROM_DATE = eINSTANCE.getContentAssoc_FromDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Assoc Predicate</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_ASSOC__CONTENT_ASSOC_PREDICATE = eINSTANCE.getContentAssoc_ContentAssocPredicate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Created By User Login</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_ASSOC__CREATED_BY_USER_LOGIN = eINSTANCE.getContentAssoc_CreatedByUserLogin();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Created Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC__CREATED_DATE = eINSTANCE.getContentAssoc_CreatedDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Data Source</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_ASSOC__DATA_SOURCE = eINSTANCE.getContentAssoc_DataSource();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Last Modified By User Login</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_ASSOC__LAST_MODIFIED_BY_USER_LOGIN = eINSTANCE.getContentAssoc_LastModifiedByUserLogin();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Last Modified Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC__LAST_MODIFIED_DATE = eINSTANCE.getContentAssoc_LastModifiedDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Left Coordinate</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC__LEFT_COORDINATE = eINSTANCE.getContentAssoc_LeftCoordinate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Map Key</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC__MAP_KEY = eINSTANCE.getContentAssoc_MapKey();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Sequence Num</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC__SEQUENCE_NUM = eINSTANCE.getContentAssoc_SequenceNum();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Thru Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC__THRU_DATE = eINSTANCE.getContentAssoc_ThruDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Upper Coordinate</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC__UPPER_COORDINATE = eINSTANCE.getContentAssoc_UpperCoordinate();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentAssocPredicateImpl <em>Assoc Predicate</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentAssocPredicateImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentAssocPredicate()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_ASSOC_PREDICATE = eINSTANCE.getContentAssocPredicate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Assoc Predicate Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC_PREDICATE__CONTENT_ASSOC_PREDICATE_ID = eINSTANCE.getContentAssocPredicate_ContentAssocPredicateId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC_PREDICATE__DESCRIPTION = eINSTANCE.getContentAssocPredicate_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentAssocTypeImpl <em>Assoc Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentAssocTypeImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentAssocType()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_ASSOC_TYPE = eINSTANCE.getContentAssocType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Assoc Type Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC_TYPE__CONTENT_ASSOC_TYPE_ID = eINSTANCE.getContentAssocType_ContentAssocTypeId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ASSOC_TYPE__DESCRIPTION = eINSTANCE.getContentAssocType_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentAttributeImpl <em>Attribute</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentAttributeImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentAttribute()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_ATTRIBUTE = eINSTANCE.getContentAttribute();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_ATTRIBUTE__CONTENT = eINSTANCE.getContentAttribute_Content();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Attr Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ATTRIBUTE__ATTR_NAME = eINSTANCE.getContentAttribute_AttrName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Attr Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ATTRIBUTE__ATTR_DESCRIPTION = eINSTANCE.getContentAttribute_AttrDescription();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Attr Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ATTRIBUTE__ATTR_VALUE = eINSTANCE.getContentAttribute_AttrValue();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentKeywordImpl <em>Keyword</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentKeywordImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentKeyword()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_KEYWORD = eINSTANCE.getContentKeyword();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_KEYWORD__CONTENT = eINSTANCE.getContentKeyword_Content();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Keyword</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_KEYWORD__KEYWORD = eINSTANCE.getContentKeyword_Keyword();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Relevancy Weight</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_KEYWORD__RELEVANCY_WEIGHT = eINSTANCE.getContentKeyword_RelevancyWeight();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentMetaDataImpl <em>Meta Data</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentMetaDataImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentMetaData()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_META_DATA = eINSTANCE.getContentMetaData();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_META_DATA__CONTENT = eINSTANCE.getContentMetaData_Content();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Meta Data Predicate</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_META_DATA__META_DATA_PREDICATE = eINSTANCE.getContentMetaData_MetaDataPredicate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Data Source</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_META_DATA__DATA_SOURCE = eINSTANCE.getContentMetaData_DataSource();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Meta Data Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_META_DATA__META_DATA_VALUE = eINSTANCE.getContentMetaData_MetaDataValue();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentOperationImpl <em>Operation</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentOperationImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentOperation()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_OPERATION = eINSTANCE.getContentOperation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Operation Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_OPERATION__CONTENT_OPERATION_ID = eINSTANCE.getContentOperation_ContentOperationId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_OPERATION__DESCRIPTION = eINSTANCE.getContentOperation_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentPurposeImpl <em>Purpose</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPurposeImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentPurpose()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_PURPOSE = eINSTANCE.getContentPurpose();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_PURPOSE__CONTENT = eINSTANCE.getContentPurpose_Content();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Purpose Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_PURPOSE__CONTENT_PURPOSE_TYPE = eINSTANCE.getContentPurpose_ContentPurposeType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Sequence Num</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_PURPOSE__SEQUENCE_NUM = eINSTANCE.getContentPurpose_SequenceNum();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentPurposeOperationImpl <em>Purpose Operation</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPurposeOperationImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentPurposeOperation()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_PURPOSE_OPERATION = eINSTANCE.getContentPurposeOperation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Purpose Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_PURPOSE_OPERATION__CONTENT_PURPOSE_TYPE = eINSTANCE.getContentPurposeOperation_ContentPurposeType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Operation</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_PURPOSE_OPERATION__CONTENT_OPERATION = eINSTANCE.getContentPurposeOperation_ContentOperation();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Role Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_PURPOSE_OPERATION__ROLE_TYPE = eINSTANCE.getContentPurposeOperation_RoleType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Status</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_PURPOSE_OPERATION__STATUS = eINSTANCE.getContentPurposeOperation_Status();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Privilege Enum</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_PURPOSE_OPERATION__PRIVILEGE_ENUM = eINSTANCE.getContentPurposeOperation_PrivilegeEnum();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentPurposeTypeImpl <em>Purpose Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPurposeTypeImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentPurposeType()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_PURPOSE_TYPE = eINSTANCE.getContentPurposeType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Purpose Type Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_PURPOSE_TYPE__CONTENT_PURPOSE_TYPE_ID = eINSTANCE.getContentPurposeType_ContentPurposeTypeId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_PURPOSE_TYPE__DESCRIPTION = eINSTANCE.getContentPurposeType_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentRevisionImpl <em>Revision</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentRevisionImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentRevision()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_REVISION = eINSTANCE.getContentRevision();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_REVISION__CONTENT = eINSTANCE.getContentRevision_Content();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Revision Seq Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_REVISION__CONTENT_REVISION_SEQ_ID = eINSTANCE.getContentRevision_ContentRevisionSeqId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Comments</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_REVISION__COMMENTS = eINSTANCE.getContentRevision_Comments();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Committed By Party</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_REVISION__COMMITTED_BY_PARTY = eINSTANCE.getContentRevision_CommittedByParty();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentRevisionItemImpl <em>Revision Item</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentRevisionItemImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentRevisionItem()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_REVISION_ITEM = eINSTANCE.getContentRevisionItem();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_REVISION_ITEM__CONTENT_ID = eINSTANCE.getContentRevisionItem_ContentId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Revision Seq Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_REVISION_ITEM__CONTENT_REVISION_SEQ_ID = eINSTANCE.getContentRevisionItem_ContentRevisionSeqId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Item Content Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_REVISION_ITEM__ITEM_CONTENT_ID = eINSTANCE.getContentRevisionItem_ItemContentId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>New Data Resource</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_REVISION_ITEM__NEW_DATA_RESOURCE = eINSTANCE.getContentRevisionItem_NewDataResource();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Old Data Resource</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_REVISION_ITEM__OLD_DATA_RESOURCE = eINSTANCE.getContentRevisionItem_OldDataResource();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentRoleImpl <em>Role</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentRoleImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentRole()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_ROLE = eINSTANCE.getContentRole();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_ROLE__CONTENT = eINSTANCE.getContentRole_Content();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Party</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_ROLE__PARTY = eINSTANCE.getContentRole_Party();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Role Type Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ROLE__ROLE_TYPE_ID = eINSTANCE.getContentRole_RoleTypeId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>From Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ROLE__FROM_DATE = eINSTANCE.getContentRole_FromDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Thru Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_ROLE__THRU_DATE = eINSTANCE.getContentRole_ThruDate();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentSearchConstraintImpl <em>Search Constraint</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentSearchConstraintImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentSearchConstraint()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_SEARCH_CONSTRAINT = eINSTANCE.getContentSearchConstraint();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Search Result</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_SEARCH_CONSTRAINT__CONTENT_SEARCH_RESULT = eINSTANCE.getContentSearchConstraint_ContentSearchResult();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Constraint Seq Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_CONSTRAINT__CONSTRAINT_SEQ_ID = eINSTANCE.getContentSearchConstraint_ConstraintSeqId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Any Prefix</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_CONSTRAINT__ANY_PREFIX = eINSTANCE.getContentSearchConstraint_AnyPrefix();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Any Suffix</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_CONSTRAINT__ANY_SUFFIX = eINSTANCE.getContentSearchConstraint_AnySuffix();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Constraint Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_CONSTRAINT__CONSTRAINT_NAME = eINSTANCE.getContentSearchConstraint_ConstraintName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>High Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_CONSTRAINT__HIGH_VALUE = eINSTANCE.getContentSearchConstraint_HighValue();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Include Sub Categories</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_CONSTRAINT__INCLUDE_SUB_CATEGORIES = eINSTANCE.getContentSearchConstraint_IncludeSubCategories();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Info String</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_CONSTRAINT__INFO_STRING = eINSTANCE.getContentSearchConstraint_InfoString();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Is And</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_CONSTRAINT__IS_AND = eINSTANCE.getContentSearchConstraint_IsAnd();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Low Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_CONSTRAINT__LOW_VALUE = eINSTANCE.getContentSearchConstraint_LowValue();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Remove Stems</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_CONSTRAINT__REMOVE_STEMS = eINSTANCE.getContentSearchConstraint_RemoveStems();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentSearchResultImpl <em>Search Result</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentSearchResultImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentSearchResult()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_SEARCH_RESULT = eINSTANCE.getContentSearchResult();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Search Result Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_RESULT__CONTENT_SEARCH_RESULT_ID = eINSTANCE.getContentSearchResult_ContentSearchResultId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Search Constraints</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_SEARCH_RESULT__CONTENT_SEARCH_CONSTRAINTS = eINSTANCE.getContentSearchResult_ContentSearchConstraints();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Is Ascending</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_RESULT__IS_ASCENDING = eINSTANCE.getContentSearchResult_IsAscending();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Num Results</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_RESULT__NUM_RESULTS = eINSTANCE.getContentSearchResult_NumResults();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Order By Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_RESULT__ORDER_BY_NAME = eINSTANCE.getContentSearchResult_OrderByName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Search Date</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_RESULT__SEARCH_DATE = eINSTANCE.getContentSearchResult_SearchDate();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Seconds Total</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_RESULT__SECONDS_TOTAL = eINSTANCE.getContentSearchResult_SecondsTotal();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Visit Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_SEARCH_RESULT__VISIT_ID = eINSTANCE.getContentSearchResult_VisitId();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentTypeImpl <em>Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentTypeImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentType()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_TYPE = eINSTANCE.getContentType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Type Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_TYPE__CONTENT_TYPE_ID = eINSTANCE.getContentType_ContentTypeId();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Type Attrs</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_TYPE__CONTENT_TYPE_ATTRS = eINSTANCE.getContentType_ContentTypeAttrs();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_TYPE__DESCRIPTION = eINSTANCE.getContentType_Description();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Has Table</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_TYPE__HAS_TABLE = eINSTANCE.getContentType_HasTable();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Parent Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_TYPE__PARENT_TYPE = eINSTANCE.getContentType_ParentType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.abchip.mimo.biz.model.content.content.impl.ContentTypeAttrImpl <em>Type Attr</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentTypeAttrImpl\n\t\t * @see org.abchip.mimo.biz.model.content.content.impl.ContentPackageImpl#getContentTypeAttr()\n\t\t * @generated\n\t\t */\n\t\tEClass CONTENT_TYPE_ATTR = eINSTANCE.getContentTypeAttr();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Content Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONTENT_TYPE_ATTR__CONTENT_TYPE = eINSTANCE.getContentTypeAttr_ContentType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Attr Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_TYPE_ATTR__ATTR_NAME = eINSTANCE.getContentTypeAttr_AttrName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Description</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONTENT_TYPE_ATTR__DESCRIPTION = eINSTANCE.getContentTypeAttr_Description();\n\n\t}\n\n}", "public interface VersionedContent {\n /**\n * Version of the content.\n */\n long version();\n\n /**\n * Actual content\n */\n String content();\n }", "ContentFactory getContentFactory();", "public String getContent();", "public interface ContentsService {\n\n /**\n * Add the given data as a new media contents entry.\n *\n * @param name of the contents file to add\n * @param payload byte array to add\n */\n void addMediaContent(String name, byte[] payload);\n\n\n /**\n * Fetch the media content data for the given identifier.\n *\n * @param id predicate, used to resolve the media content to fetch\n *\n * @return the media object found, never {@code null}\n */\n Map<String, Object> getMediaContent(String id);\n}", "public interface Content {\n}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\torg.abchip.mimo.entity.EntityPackage theEntityPackage_1 = (org.abchip.mimo.entity.EntityPackage)EPackage.Registry.INSTANCE.getEPackage(org.abchip.mimo.entity.EntityPackage.eNS_URI);\n\t\tPaymentPackage thePaymentPackage = (PaymentPackage)EPackage.Registry.INSTANCE.getEPackage(PaymentPackage.eNS_URI);\n\t\torg.abchip.mimo.biz.model.party.contact.ContactPackage theContactPackage_1 = (org.abchip.mimo.biz.model.party.contact.ContactPackage)EPackage.Registry.INSTANCE.getEPackage(org.abchip.mimo.biz.model.party.contact.ContactPackage.eNS_URI);\n\t\tUomPackage theUomPackage = (UomPackage)EPackage.Registry.INSTANCE.getEPackage(UomPackage.eNS_URI);\n\t\tPartyPackage thePartyPackage_1 = (PartyPackage)EPackage.Registry.INSTANCE.getEPackage(PartyPackage.eNS_URI);\n\t\tSchedulePackage theSchedulePackage = (SchedulePackage)EPackage.Registry.INSTANCE.getEPackage(SchedulePackage.eNS_URI);\n\t\tStatusPackage theStatusPackage = (StatusPackage)EPackage.Registry.INSTANCE.getEPackage(StatusPackage.eNS_URI);\n\t\tContentPackage theContentPackage = (ContentPackage)EPackage.Registry.INSTANCE.getEPackage(ContentPackage.eNS_URI);\n\t\tInventoryPackage theInventoryPackage = (InventoryPackage)EPackage.Registry.INSTANCE.getEPackage(InventoryPackage.eNS_URI);\n\t\tLedgerPackage theLedgerPackage = (LedgerPackage)EPackage.Registry.INSTANCE.getEPackage(LedgerPackage.eNS_URI);\n\t\tProductPackage theProductPackage = (ProductPackage)EPackage.Registry.INSTANCE.getEPackage(ProductPackage.eNS_URI);\n\t\tFeaturePackage theFeaturePackage = (FeaturePackage)EPackage.Registry.INSTANCE.getEPackage(FeaturePackage.eNS_URI);\n\t\tOpportunityPackage theOpportunityPackage = (OpportunityPackage)EPackage.Registry.INSTANCE.getEPackage(OpportunityPackage.eNS_URI);\n\t\tGeoPackage theGeoPackage = (GeoPackage)EPackage.Registry.INSTANCE.getEPackage(GeoPackage.eNS_URI);\n\t\tTaxPackage theTaxPackage = (TaxPackage)EPackage.Registry.INSTANCE.getEPackage(TaxPackage.eNS_URI);\n\t\tBizPackage theBizPackage = (BizPackage)EPackage.Registry.INSTANCE.getEPackage(BizPackage.eNS_URI);\n\t\tLoginPackage theLoginPackage = (LoginPackage)EPackage.Registry.INSTANCE.getEPackage(LoginPackage.eNS_URI);\n\t\tAgreementPackage theAgreementPackage = (AgreementPackage)EPackage.Registry.INSTANCE.getEPackage(AgreementPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tEGenericType g1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tEGenericType g2 = createEGenericType(this.getInvoiceType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceContactMechEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceContactMechEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getInvoiceContentType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceContentEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceContentEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoiceContent());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceContentTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceContentTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getInvoiceItemType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityTyped());\n\t\tg2 = createEGenericType(this.getInvoiceItemAssocType());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemAssocEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemAssocEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoiceItemAssoc());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemAssocTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemAssocTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceItemAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoiceItem());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceItemTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceItemTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemTypeGlAccountEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemTypeGlAccountEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceItemTypeMapEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceItemTypeMapEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceNoteEClass.getESuperTypes().add(theBizPackage.getBizEntityNote());\n\t\tinvoiceRoleEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceRoleEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceStatusEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceStatusEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceTermEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceTermEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceTermAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceTermAttributeEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityType());\n\t\tg2 = createEGenericType(this.getInvoice());\n\t\tg1.getETypeArguments().add(g2);\n\t\tinvoiceTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tg1 = createEGenericType(theEntityPackage_1.getEntityInfo());\n\t\tinvoiceTypeEClass.getEGenericSuperTypes().add(g1);\n\t\tinvoiceTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityIdentifiable());\n\t\tinvoiceTypeAttrEClass.getESuperTypes().add(theEntityPackage_1.getEntityInfo());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(invoiceEClass, Invoice.class, \"Invoice\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoice_InvoiceId(), ecorePackage.getEString(), \"invoiceId\", null, 1, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_BillingAccount(), thePaymentPackage.getBillingAccount(), null, \"billingAccount\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_ContactMech(), theContactPackage_1.getContactMech(), null, \"contactMech\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_CurrencyUom(), theUomPackage.getUom(), null, \"currencyUom\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_DueDate(), ecorePackage.getEDate(), \"dueDate\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceAttributes(), this.getInvoiceAttribute(), null, \"invoiceAttributes\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_InvoiceDate(), ecorePackage.getEDate(), \"invoiceDate\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceItems(), this.getInvoiceItem(), null, \"invoiceItems\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_InvoiceMessage(), ecorePackage.getEString(), \"invoiceMessage\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceNotes(), this.getInvoiceNote(), null, \"invoiceNotes\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceStatuses(), this.getInvoiceStatus(), null, \"invoiceStatuses\", null, 0, -1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_InvoiceType(), this.getInvoiceType(), null, \"invoiceType\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_PaidDate(), ecorePackage.getEDate(), \"paidDate\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_PartyIdFrom(), thePartyPackage_1.getParty(), null, \"partyIdFrom\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_RecurrenceInfo(), theSchedulePackage.getRecurrenceInfo(), null, \"recurrenceInfo\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoice_ReferenceNumber(), ecorePackage.getEString(), \"referenceNumber\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_RoleType(), thePartyPackage_1.getRoleType(), null, \"roleType\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoice_Status(), theStatusPackage.getStatusItem(), null, \"status\", null, 0, 1, Invoice.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\taddEOperation(invoiceEClass, ecorePackage.getEBigDecimal(), \"getTotal\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(invoiceAttributeEClass, InvoiceAttribute.class, \"InvoiceAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceAttribute_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceAttribute_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceAttribute_AttrDescription(), ecorePackage.getEString(), \"attrDescription\", null, 0, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceAttribute_AttrValue(), ecorePackage.getEString(), \"attrValue\", null, 0, 1, InvoiceAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceContactMechEClass, InvoiceContactMech.class, \"InvoiceContactMech\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceContactMech_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceContactMech.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContactMech_ContactMech(), theContactPackage_1.getContactMech(), null, \"contactMech\", null, 1, 1, InvoiceContactMech.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContactMech_ContactMechPurposeType(), theContactPackage_1.getContactMechPurposeType(), null, \"contactMechPurposeType\", null, 1, 1, InvoiceContactMech.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceContentEClass, InvoiceContent.class, \"InvoiceContent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceContent_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContent_Content(), theContentPackage.getContent(), null, \"content\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContent_InvoiceContentType(), this.getInvoiceContentType(), null, \"invoiceContentType\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContent_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContent_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, InvoiceContent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceContentTypeEClass, InvoiceContentType.class, \"InvoiceContentType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceContentType_InvoiceContentTypeId(), ecorePackage.getEString(), \"invoiceContentTypeId\", null, 1, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContentType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceContentType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceContentType_ParentType(), this.getInvoiceContentType(), null, \"parentType\", null, 0, 1, InvoiceContentType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemEClass, InvoiceItem.class, \"InvoiceItem\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItem_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_InvoiceItemSeqId(), ecorePackage.getEString(), \"invoiceItemSeqId\", null, 1, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_Amount(), ecorePackage.getEBigDecimal(), \"amount\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_InventoryItem(), theInventoryPackage.getInventoryItem(), null, \"inventoryItem\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_OverrideGlAccount(), theLedgerPackage.getGlAccount(), null, \"overrideGlAccount\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_OverrideOrgParty(), thePartyPackage_1.getParty(), null, \"overrideOrgParty\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_ParentInvoiceId(), ecorePackage.getEString(), \"parentInvoiceId\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_ParentInvoiceItemSeqId(), ecorePackage.getEString(), \"parentInvoiceItemSeqId\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_Product(), theProductPackage.getProduct(), null, \"product\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_ProductFeature(), theFeaturePackage.getProductFeature(), null, \"productFeature\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_Quantity(), ecorePackage.getEBigDecimal(), \"quantity\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_SalesOpportunity(), theOpportunityPackage.getSalesOpportunity(), null, \"salesOpportunity\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_TaxAuthGeo(), theGeoPackage.getGeo(), null, \"taxAuthGeo\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_TaxAuthParty(), thePartyPackage_1.getParty(), null, \"taxAuthParty\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_TaxAuthorityRateSeq(), theTaxPackage.getTaxAuthorityRateProduct(), null, \"taxAuthorityRateSeq\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItem_TaxableFlag(), ecorePackage.getEBoolean(), \"taxableFlag\", null, 1, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItem_Uom(), theUomPackage.getUom(), null, \"uom\", null, 0, 1, InvoiceItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemAssocEClass, InvoiceItemAssoc.class, \"InvoiceItemAssoc\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemAssoc_InvoiceItemAssocType(), this.getInvoiceItemAssocType(), null, \"invoiceItemAssocType\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_FromDate(), ecorePackage.getEDate(), \"fromDate\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceIdFrom(), ecorePackage.getEString(), \"invoiceIdFrom\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceIdTo(), ecorePackage.getEString(), \"invoiceIdTo\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceItemSeqIdFrom(), ecorePackage.getEString(), \"invoiceItemSeqIdFrom\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_InvoiceItemSeqIdTo(), ecorePackage.getEString(), \"invoiceItemSeqIdTo\", null, 1, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_Amount(), ecorePackage.getEBigDecimal(), \"amount\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemAssoc_PartyIdFrom(), thePartyPackage_1.getParty(), null, \"partyIdFrom\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemAssoc_PartyIdTo(), thePartyPackage_1.getParty(), null, \"partyIdTo\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_Quantity(), ecorePackage.getEBigDecimal(), \"quantity\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssoc_ThruDate(), ecorePackage.getEDate(), \"thruDate\", null, 0, 1, InvoiceItemAssoc.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemAssocTypeEClass, InvoiceItemAssocType.class, \"InvoiceItemAssocType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceItemAssocType_InvoiceItemAssocTypeId(), ecorePackage.getEString(), \"invoiceItemAssocTypeId\", null, 1, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssocType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAssocType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemAssocType_ParentType(), this.getInvoiceItemAssocType(), null, \"parentType\", null, 0, 1, InvoiceItemAssocType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemAttributeEClass, InvoiceItemAttribute.class, \"InvoiceItemAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceItemAttribute_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_InvoiceId(), ecorePackage.getEString(), \"invoiceId\", null, 1, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_InvoiceItemSeqId(), ecorePackage.getEString(), \"invoiceItemSeqId\", null, 1, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_AttrDescription(), ecorePackage.getEString(), \"attrDescription\", null, 0, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemAttribute_AttrValue(), ecorePackage.getEString(), \"attrValue\", null, 0, 1, InvoiceItemAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeEClass, InvoiceItemType.class, \"InvoiceItemType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceItemType_InvoiceItemTypeId(), ecorePackage.getEString(), \"invoiceItemTypeId\", null, 1, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_DefaultGlAccount(), theLedgerPackage.getGlAccount(), null, \"defaultGlAccount\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_InvoiceItemTypeAttrs(), this.getInvoiceItemTypeAttr(), null, \"invoiceItemTypeAttrs\", null, 0, -1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_InvoiceItemTypeGlAccounts(), this.getInvoiceItemTypeGlAccount(), null, \"invoiceItemTypeGlAccounts\", null, 0, -1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemType_ParentType(), this.getInvoiceItemType(), null, \"parentType\", null, 0, 1, InvoiceItemType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeAttrEClass, InvoiceItemTypeAttr.class, \"InvoiceItemTypeAttr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemTypeAttr_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 1, 1, InvoiceItemTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemTypeAttr_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceItemTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemTypeAttr_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceItemTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeGlAccountEClass, InvoiceItemTypeGlAccount.class, \"InvoiceItemTypeGlAccount\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemTypeGlAccount_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 1, 1, InvoiceItemTypeGlAccount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemTypeGlAccount_OrganizationParty(), thePartyPackage_1.getParty(), null, \"organizationParty\", null, 1, 1, InvoiceItemTypeGlAccount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemTypeGlAccount_GlAccount(), theLedgerPackage.getGlAccount(), null, \"glAccount\", null, 0, 1, InvoiceItemTypeGlAccount.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceItemTypeMapEClass, InvoiceItemTypeMap.class, \"InvoiceItemTypeMap\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceItemTypeMap_InvoiceType(), this.getInvoiceType(), null, \"invoiceType\", null, 1, 1, InvoiceItemTypeMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceItemTypeMap_InvoiceItemMapKey(), ecorePackage.getEString(), \"invoiceItemMapKey\", null, 1, 1, InvoiceItemTypeMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceItemTypeMap_InvoiceItemType(), this.getInvoiceItemType(), null, \"invoiceItemType\", null, 0, 1, InvoiceItemTypeMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceNoteEClass, InvoiceNote.class, \"InvoiceNote\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceNote_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceNote.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceRoleEClass, InvoiceRole.class, \"InvoiceRole\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceRole_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceRole_Party(), thePartyPackage_1.getParty(), null, \"party\", null, 1, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceRole_RoleType(), thePartyPackage_1.getRoleType(), null, \"roleType\", null, 1, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceRole_DatetimePerformed(), ecorePackage.getEDate(), \"datetimePerformed\", null, 0, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceRole_Percentage(), ecorePackage.getEBigDecimal(), \"percentage\", null, 0, 1, InvoiceRole.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceStatusEClass, InvoiceStatus.class, \"InvoiceStatus\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceStatus_Status(), theStatusPackage.getStatusItem(), null, \"status\", null, 1, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceStatus_Invoice(), this.getInvoice(), null, \"invoice\", null, 1, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceStatus_StatusDate(), ecorePackage.getEDate(), \"statusDate\", null, 1, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceStatus_ChangeByUserLogin(), theLoginPackage.getUserLogin(), null, \"changeByUserLogin\", null, 0, 1, InvoiceStatus.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTermEClass, InvoiceTerm.class, \"InvoiceTerm\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceTerm_InvoiceTermId(), ecorePackage.getEString(), \"invoiceTermId\", null, 1, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceTerm_Invoice(), this.getInvoice(), null, \"invoice\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_InvoiceItemSeqId(), ecorePackage.getEString(), \"invoiceItemSeqId\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceTerm_InvoiceTermAttributes(), this.getInvoiceTermAttribute(), null, \"invoiceTermAttributes\", null, 0, -1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_TermDays(), ecorePackage.getELong(), \"termDays\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceTerm_TermType(), theAgreementPackage.getTermType(), null, \"termType\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_TermValue(), ecorePackage.getEBigDecimal(), \"termValue\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_TextValue(), ecorePackage.getEString(), \"textValue\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTerm_UomId(), ecorePackage.getEString(), \"uomId\", null, 0, 1, InvoiceTerm.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTermAttributeEClass, InvoiceTermAttribute.class, \"InvoiceTermAttribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceTermAttribute_InvoiceTerm(), this.getInvoiceTerm(), null, \"invoiceTerm\", null, 1, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTermAttribute_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTermAttribute_AttrDescription(), ecorePackage.getEString(), \"attrDescription\", null, 0, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTermAttribute_AttrValue(), ecorePackage.getEString(), \"attrValue\", null, 0, 1, InvoiceTermAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTypeEClass, InvoiceType.class, \"InvoiceType\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInvoiceType_InvoiceTypeId(), ecorePackage.getEString(), \"invoiceTypeId\", null, 1, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceType_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceType_HasTable(), ecorePackage.getEBooleanObject(), \"hasTable\", null, 0, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceType_InvoiceTypeAttrs(), this.getInvoiceTypeAttr(), null, \"invoiceTypeAttrs\", null, 0, -1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInvoiceType_ParentType(), this.getInvoiceType(), null, \"parentType\", null, 0, 1, InvoiceType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(invoiceTypeAttrEClass, InvoiceTypeAttr.class, \"InvoiceTypeAttr\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInvoiceTypeAttr_InvoiceType(), this.getInvoiceType(), null, \"invoiceType\", null, 1, 1, InvoiceTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTypeAttr_AttrName(), ecorePackage.getEString(), \"attrName\", null, 1, 1, InvoiceTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInvoiceTypeAttr_Description(), ecorePackage.getEString(), \"description\", null, 0, 1, InvoiceTypeAttr.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t\t// mimo-ent-frame\n\t\tcreateMimoentframeAnnotations();\n\t\t// org.abchip.mimo.core.base.invocation\n\t\tcreateOrgAnnotations();\n\t\t// mimo-ent-format\n\t\tcreateMimoentformatAnnotations();\n\t\t// mimo-ent-slot-constraints\n\t\tcreateMimoentslotconstraintsAnnotations();\n\t\t// mimo-ent-slot\n\t\tcreateMimoentslotAnnotations();\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tInfrastructurePackage theInfrastructurePackage = (InfrastructurePackage)EPackage.Registry.INSTANCE.getEPackage(InfrastructurePackage.eNS_URI);\n\t\tOCCIPackage theOCCIPackage = (OCCIPackage)EPackage.Registry.INSTANCE.getEPackage(OCCIPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tcontainerEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\t\tlinkEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tnetworklinkEClass.getESuperTypes().add(this.getLink());\n\t\tvolumesfromEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tcontainsEClass.getESuperTypes().add(theOCCIPackage.getLink());\n\t\tmachineEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\t\tvolumeEClass.getESuperTypes().add(theInfrastructurePackage.getStorage());\n\t\tnetworkEClass.getESuperTypes().add(theInfrastructurePackage.getNetwork());\n\t\tmachinegenericEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineamazonec2EClass.getESuperTypes().add(this.getMachine());\n\t\tmachinedigitaloceanEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinegooglecomputeengineEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineibmsoftlayerEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinemicrosoftazureEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinemicrosofthypervEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineopenstackEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinerackspaceEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevirtualboxEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarefusionEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarevcloudairEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinevmwarevsphereEClass.getESuperTypes().add(this.getMachine());\n\t\tmachineexoscaleEClass.getESuperTypes().add(this.getMachine());\n\t\tmachinegrid5000EClass.getESuperTypes().add(this.getMachine());\n\t\tclusterEClass.getESuperTypes().add(theInfrastructurePackage.getCompute());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(arrayOfStringEClass, ArrayOfString.class, \"ArrayOfString\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getArrayOfString_Values(), ecorePackage.getEString(), \"values\", null, 0, -1, ArrayOfString.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(containerEClass, org.eclipse.cmf.occi.docker.Container.class, \"Container\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getContainer_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Containerid(), ecorePackage.getEString(), \"containerid\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Build(), ecorePackage.getEString(), \"build\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Command(), ecorePackage.getEString(), \"command\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Ports(), ecorePackage.getEString(), \"ports\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Expose(), ecorePackage.getEString(), \"expose\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Volumes(), ecorePackage.getEString(), \"volumes\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Environment(), ecorePackage.getEString(), \"environment\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_EnvFile(), ecorePackage.getEString(), \"envFile\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Net(), ecorePackage.getEString(), \"net\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Dns(), ecorePackage.getEString(), \"dns\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DnsSearch(), ecorePackage.getEString(), \"dnsSearch\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CapAdd(), ecorePackage.getEString(), \"capAdd\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CapDrop(), ecorePackage.getEString(), \"capDrop\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_WorkingDir(), ecorePackage.getEString(), \"workingDir\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Entrypoint(), ecorePackage.getEString(), \"entrypoint\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_User(), ecorePackage.getEString(), \"user\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DomainName(), ecorePackage.getEString(), \"domainName\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemLimit(), ecorePackage.getEBigInteger(), \"memLimit\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemorySwap(), ecorePackage.getEBigInteger(), \"memorySwap\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Privileged(), ecorePackage.getEBoolean(), \"privileged\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Restart(), ecorePackage.getEString(), \"restart\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_StdinOpen(), ecorePackage.getEBoolean(), \"stdinOpen\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Interactive(), ecorePackage.getEBoolean(), \"interactive\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuShares(), ecorePackage.getEBigInteger(), \"cpuShares\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Pid(), ecorePackage.getEString(), \"pid\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Ipc(), ecorePackage.getEString(), \"ipc\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_AddHost(), ecorePackage.getEString(), \"addHost\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MacAddress(), theInfrastructurePackage.getMac(), \"macAddress\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Rm(), ecorePackage.getEBoolean(), \"rm\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_SecurityOpt(), ecorePackage.getEString(), \"securityOpt\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Device(), ecorePackage.getEString(), \"device\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_LxcConf(), ecorePackage.getEString(), \"lxcConf\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_PublishAll(), ecorePackage.getEBoolean(), \"publishAll\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_ReadOnly(), ecorePackage.getEBoolean(), \"readOnly\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Monitored(), ecorePackage.getEBoolean(), \"monitored\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuUsed(), ecorePackage.getEBigInteger(), \"cpuUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryUsed(), ecorePackage.getEBigInteger(), \"memoryUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuPercent(), ecorePackage.getEString(), \"cpuPercent\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryPercent(), ecorePackage.getEString(), \"memoryPercent\", \"0\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DiskUsed(), ecorePackage.getEBigInteger(), \"diskUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_DiskPercent(), ecorePackage.getEString(), \"diskPercent\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_BandwidthUsed(), ecorePackage.getEBigInteger(), \"bandwidthUsed\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_BandwidthPercent(), ecorePackage.getEString(), \"bandwidthPercent\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MonitoringInterval(), ecorePackage.getEBigInteger(), \"monitoringInterval\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuMaxValue(), ecorePackage.getEBigInteger(), \"cpuMaxValue\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_MemoryMaxValue(), ecorePackage.getEBigInteger(), \"memoryMaxValue\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CoreMax(), ecorePackage.getEBigInteger(), \"coreMax\", \"1\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuSetCpus(), ecorePackage.getEString(), \"cpuSetCpus\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_CpuSetMems(), ecorePackage.getEString(), \"cpuSetMems\", null, 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getContainer_Tty(), ecorePackage.getEBoolean(), \"tty\", \"false\", 0, 1, org.eclipse.cmf.occi.docker.Container.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Create(), null, \"create\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Stop(), null, \"stop\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Run(), null, \"run\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Pause(), null, \"pause\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEOperation(getContainer__Unpause(), null, \"unpause\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tEOperation op = initEOperation(getContainer__Kill__String(), null, \"kill\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"signal\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(linkEClass, Link.class, \"Link\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getLink_Alias(), ecorePackage.getEString(), \"alias\", null, 0, 1, Link.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(networklinkEClass, Networklink.class, \"Networklink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(volumesfromEClass, Volumesfrom.class, \"Volumesfrom\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVolumesfrom_Mode(), this.getMode(), \"mode\", \"readWrite\", 0, 1, Volumesfrom.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(containsEClass, Contains.class, \"Contains\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(machineEClass, Machine.class, \"Machine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachine_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineInstallURL(), ecorePackage.getEString(), \"engineInstallURL\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineOpt(), ecorePackage.getEString(), \"engineOpt\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineInsecureRegistry(), ecorePackage.getEString(), \"engineInsecureRegistry\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineRegistryMirror(), ecorePackage.getEString(), \"engineRegistryMirror\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineLabel(), ecorePackage.getEString(), \"engineLabel\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineStorageDriver(), ecorePackage.getEString(), \"engineStorageDriver\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_EngineEnv(), ecorePackage.getEString(), \"engineEnv\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_Swarm(), ecorePackage.getEBoolean(), \"swarm\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmImage(), ecorePackage.getEString(), \"swarmImage\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmMaster(), ecorePackage.getEBoolean(), \"swarmMaster\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmDiscovery(), ecorePackage.getEString(), \"swarmDiscovery\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmStrategy(), ecorePackage.getEString(), \"swarmStrategy\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmOpt(), ecorePackage.getEString(), \"swarmOpt\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmHost(), ecorePackage.getEString(), \"swarmHost\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmAddr(), ecorePackage.getEString(), \"swarmAddr\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_SwarmExperimental(), ecorePackage.getEString(), \"swarmExperimental\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachine_TlsSan(), ecorePackage.getEString(), \"tlsSan\", null, 0, 1, Machine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEOperation(getMachine__Startall(), null, \"startall\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(volumeEClass, Volume.class, \"Volume\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getVolume_Driver(), ecorePackage.getEString(), \"driver\", \"local\", 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Labels(), ecorePackage.getEString(), \"labels\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Options(), ecorePackage.getEString(), \"options\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Source(), ecorePackage.getEString(), \"source\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Destination(), ecorePackage.getEString(), \"destination\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Mode(), ecorePackage.getEString(), \"mode\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Rw(), ecorePackage.getEString(), \"rw\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Propagation(), ecorePackage.getEString(), \"propagation\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getVolume_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Volume.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(networkEClass, Network.class, \"Network\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNetwork_NetworkId(), ecorePackage.getEString(), \"networkId\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_AuxAddress(), ecorePackage.getEString(), \"auxAddress\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Driver(), ecorePackage.getEString(), \"driver\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Gateway(), ecorePackage.getEString(), \"gateway\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Internal(), ecorePackage.getEBoolean(), \"internal\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpRange(), ecorePackage.getEString(), \"ipRange\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpamDriver(), ecorePackage.getEString(), \"ipamDriver\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_IpamOpt(), ecorePackage.getEString(), \"ipamOpt\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Ipv6(), ecorePackage.getEBoolean(), \"ipv6\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Opt(), ecorePackage.getEString(), \"opt\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getNetwork_Subnet(), ecorePackage.getEString(), \"subnet\", null, 0, 1, Network.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegenericEClass, Machinegeneric.class, \"Machinegeneric\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegeneric_EnginePort(), ecorePackage.getEBigInteger(), \"enginePort\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_IpAddress(), ecorePackage.getEString(), \"ipAddress\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshKey(), ecorePackage.getEString(), \"sshKey\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshUser(), ecorePackage.getEString(), \"sshUser\", null, 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegeneric_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinegeneric.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineamazonec2EClass, Machineamazonec2.class, \"Machineamazonec2\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineamazonec2_AccessKey(), ecorePackage.getEString(), \"accessKey\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Ami(), ecorePackage.getEString(), \"ami\", \"ami-4ae27e22\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_InstanceType(), ecorePackage.getEString(), \"instanceType\", \"t2.micro\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Region(), ecorePackage.getEString(), \"region\", \"us-east-1\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_RootSize(), ecorePackage.getEBigInteger(), \"rootSize\", \"16\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SecretKey(), ecorePackage.getEString(), \"secretKey\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SecurityGroup(), ecorePackage.getEString(), \"securityGroup\", \"docker-machine\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SessionToken(), ecorePackage.getEString(), \"sessionToken\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_SubnetId(), ecorePackage.getEString(), \"subnetId\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_VpcId(), ecorePackage.getEString(), \"vpcId\", null, 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineamazonec2_Zone(), ecorePackage.getEString(), \"zone\", \"a\", 0, 1, Machineamazonec2.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinedigitaloceanEClass, Machinedigitalocean.class, \"Machinedigitalocean\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinedigitalocean_AccessToken(), ecorePackage.getEString(), \"accessToken\", null, 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Image(), ecorePackage.getEString(), \"image\", \"docker\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Region(), ecorePackage.getEString(), \"region\", \"nyc3\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinedigitalocean_Size(), ecorePackage.getEString(), \"size\", \"512mb\", 0, 1, Machinedigitalocean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegooglecomputeengineEClass, Machinegooglecomputeengine.class, \"Machinegooglecomputeengine\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Zone(), ecorePackage.getEString(), \"zone\", \"us-central1-a\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_MachineType(), ecorePackage.getEString(), \"machineType\", \"f1-micro\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Username(), ecorePackage.getEString(), \"username\", \"docker-user\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_InstanceName(), ecorePackage.getEString(), \"instanceName\", \"docker-machine\", 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegooglecomputeengine_Project(), ecorePackage.getEString(), \"project\", null, 0, 1, Machinegooglecomputeengine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineibmsoftlayerEClass, Machineibmsoftlayer.class, \"Machineibmsoftlayer\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineibmsoftlayer_ApiEndpoint(), ecorePackage.getEString(), \"apiEndpoint\", \"api.softlayer.com/rest/v3\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_User(), ecorePackage.getEString(), \"user\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Cpu(), ecorePackage.getEBigInteger(), \"cpu\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Domain(), ecorePackage.getEString(), \"domain\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_HourlyBilling(), ecorePackage.getEBoolean(), \"hourlyBilling\", \"false\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Image(), ecorePackage.getEString(), \"image\", \"UBUNTU_LATEST\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_LocalDisk(), ecorePackage.getEBoolean(), \"localDisk\", \"false\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PrivateNetOnly(), ecorePackage.getEBoolean(), \"privateNetOnly\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PublicVlanId(), ecorePackage.getEString(), \"publicVlanId\", \"0\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineibmsoftlayer_PrivateVlanId(), ecorePackage.getEString(), \"privateVlanId\", \"0\", 0, 1, Machineibmsoftlayer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinemicrosoftazureEClass, Machinemicrosoftazure.class, \"Machinemicrosoftazure\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubscriptionId(), ecorePackage.getEString(), \"subscriptionId\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubscriptionCert(), ecorePackage.getEString(), \"subscriptionCert\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Environment(), ecorePackage.getEString(), \"environment\", \"AzurePublicCloud\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_MachineLocation(), ecorePackage.getEString(), \"machineLocation\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_ResourceGroup(), ecorePackage.getEString(), \"resourceGroup\", \"docker-machine\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Size(), ecorePackage.getEString(), \"size\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SshUser(), ecorePackage.getEString(), \"sshUser\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Vnet(), ecorePackage.getEString(), \"vnet\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Subnet(), ecorePackage.getEString(), \"subnet\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_SubnetPrefix(), ecorePackage.getEString(), \"subnetPrefix\", \"192.168.0.0/16\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_AvailabilitySet(), ecorePackage.getEString(), \"availabilitySet\", \"docker-machine\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_OpenPort(), ecorePackage.getEBigInteger(), \"openPort\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_PrivateIpAddress(), ecorePackage.getEString(), \"privateIpAddress\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_NoPublicIp(), ecorePackage.getEString(), \"noPublicIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_StaticPublicIp(), ecorePackage.getEString(), \"staticPublicIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_DockerPort(), ecorePackage.getEString(), \"dockerPort\", \"2376\", 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_UsePrivateIp(), ecorePackage.getEString(), \"usePrivateIp\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosoftazure_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, Machinemicrosoftazure.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinemicrosofthypervEClass, Machinemicrosofthyperv.class, \"Machinemicrosofthyperv\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinemicrosofthyperv_VirtualSwitch(), ecorePackage.getEString(), \"virtualSwitch\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_StaticMacAddress(), theInfrastructurePackage.getMac(), \"staticMacAddress\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinemicrosofthyperv_VlanId(), ecorePackage.getEString(), \"vlanId\", null, 0, 1, Machinemicrosofthyperv.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineopenstackEClass, Machineopenstack.class, \"Machineopenstack\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineopenstack_FlavorId(), ecorePackage.getEString(), \"flavorId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_FlavorName(), ecorePackage.getEString(), \"flavorName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ImageId(), ecorePackage.getEString(), \"imageId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ImageName(), ecorePackage.getEString(), \"imageName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_AuthUrl(), ecorePackage.getEString(), \"authUrl\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_TenantName(), ecorePackage.getEString(), \"tenantName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_TenantId(), ecorePackage.getEString(), \"tenantId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_EndpointType(), ecorePackage.getEString(), \"endpointType\", \"publicURL\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_NetId(), ecorePackage.getEString(), \"netId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_NetName(), ecorePackage.getEString(), \"netName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SecGroups(), ecorePackage.getEString(), \"secGroups\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_FloatingIpPool(), ecorePackage.getEString(), \"floatingIpPool\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_ActiveTimeOut(), ecorePackage.getEBigInteger(), \"activeTimeOut\", \"200\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_AvailabilityZone(), ecorePackage.getEString(), \"availabilityZone\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_DomainId(), ecorePackage.getEString(), \"domainId\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_DomainName(), ecorePackage.getEString(), \"domainName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_Insecure(), ecorePackage.getEBoolean(), \"insecure\", \"false\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_IpVersion(), ecorePackage.getEBigInteger(), \"ipVersion\", \"4\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_KeypairName(), ecorePackage.getEString(), \"keypairName\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_PrivateKeyFile(), ecorePackage.getEString(), \"privateKeyFile\", null, 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineopenstack_SshUser(), ecorePackage.getEString(), \"sshUser\", \"root\", 0, 1, Machineopenstack.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinerackspaceEClass, Machinerackspace.class, \"Machinerackspace\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinerackspace_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_Region(), ecorePackage.getEString(), \"region\", null, 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_EndPointType(), ecorePackage.getEString(), \"endPointType\", \"publicURL\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_ImageId(), ecorePackage.getEString(), \"imageId\", \"59a3fadd-93e7-4674-886a-64883e17115f\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_FlavorId(), ecorePackage.getEString(), \"flavorId\", \"general1-1\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_SshUser(), ecorePackage.getEString(), \"sshUser\", \"root\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinerackspace_DockerInstall(), ecorePackage.getEBoolean(), \"dockerInstall\", \"true\", 0, 1, Machinerackspace.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevirtualboxEClass, Machinevirtualbox.class, \"Machinevirtualbox\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevirtualbox_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostDNSResolver(), ecorePackage.getEBoolean(), \"hostDNSResolver\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_ImportBoot2DockerVM(), ecorePackage.getEString(), \"importBoot2DockerVM\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyCIDR(), ecorePackage.getEString(), \"hostOnlyCIDR\", \"192.168.99.1/24\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyNICType(), ecorePackage.getEString(), \"hostOnlyNICType\", \"82540EM\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_HostOnlyNICPromisc(), ecorePackage.getEString(), \"hostOnlyNICPromisc\", \"deny\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoShare(), ecorePackage.getEBoolean(), \"noShare\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoDNSProxy(), ecorePackage.getEBoolean(), \"noDNSProxy\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_NoVTXCheck(), ecorePackage.getEBoolean(), \"noVTXCheck\", \"false\", 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevirtualbox_ShareFolder(), ecorePackage.getEString(), \"shareFolder\", null, 0, 1, Machinevirtualbox.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarefusionEClass, Machinevmwarefusion.class, \"Machinevmwarefusion\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarefusion_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"1024\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarefusion_NoShare(), ecorePackage.getEBoolean(), \"noShare\", \"false\", 0, 1, Machinevmwarefusion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarevcloudairEClass, Machinevmwarevcloudair.class, \"Machinevmwarevcloudair\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Catalog(), ecorePackage.getEString(), \"catalog\", \"Public Catalog\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_CatalogItem(), ecorePackage.getEString(), \"catalogItem\", \"Ubuntu Server 12.04 LTS (amd64 20140927)\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_ComputeId(), ecorePackage.getEString(), \"computeId\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_CpuCount(), ecorePackage.getEBigInteger(), \"cpuCount\", \"1\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_DockerPort(), ecorePackage.getEBigInteger(), \"dockerPort\", \"2376\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Edgegateway(), ecorePackage.getEString(), \"edgegateway\", \"&lt;vdcid>\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"2048\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_VappName(), ecorePackage.getEString(), \"vappName\", \"&lt;autogenerated>\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Orgvdcnetwork(), ecorePackage.getEString(), \"orgvdcnetwork\", \"&lt;vdcid>-default-routed\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_Provision(), ecorePackage.getEBoolean(), \"provision\", \"true\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_PublicIp(), ecorePackage.getEString(), \"publicIp\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_SshPort(), ecorePackage.getEBigInteger(), \"sshPort\", \"22\", 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevcloudair_VdcId(), ecorePackage.getEString(), \"vdcId\", null, 0, 1, Machinevmwarevcloudair.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinevmwarevsphereEClass, Machinevmwarevsphere.class, \"Machinevmwarevsphere\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinevmwarevsphere_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Boot2dockerURL(), ecorePackage.getEString(), \"boot2dockerURL\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_ComputeIp(), ecorePackage.getEString(), \"computeIp\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_CpuCount(), ecorePackage.getEBigInteger(), \"cpuCount\", \"2\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Datacenter(), ecorePackage.getEString(), \"datacenter\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Datastore(), ecorePackage.getEString(), \"datastore\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_DiskSize(), ecorePackage.getEBigInteger(), \"diskSize\", \"20000\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_MemorySize(), ecorePackage.getEBigInteger(), \"memorySize\", \"2048\", 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Network(), ecorePackage.getEString(), \"network\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Pool(), ecorePackage.getEString(), \"pool\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinevmwarevsphere_Vcenter(), ecorePackage.getEString(), \"vcenter\", null, 0, 1, Machinevmwarevsphere.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machineexoscaleEClass, Machineexoscale.class, \"Machineexoscale\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachineexoscale_Url(), ecorePackage.getEString(), \"url\", \"https://api.exoscale.ch/compute\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_ApiKey(), ecorePackage.getEString(), \"apiKey\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_ApiSecretKey(), ecorePackage.getEString(), \"apiSecretKey\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_InstanceProfile(), ecorePackage.getEString(), \"instanceProfile\", \"small\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_Image(), ecorePackage.getEString(), \"image\", \"ubuntu-16.04\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_SecurityGroup(), ecorePackage.getEString(), \"securityGroup\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_AvailabilityZone(), ecorePackage.getEString(), \"availabilityZone\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_SshUser(), ecorePackage.getEString(), \"sshUser\", \"ubuntu\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_UserData(), ecorePackage.getEString(), \"userData\", null, 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachineexoscale_AffinityGroup(), ecorePackage.getEString(), \"affinityGroup\", \"docker-machine\", 0, 1, Machineexoscale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(machinegrid5000EClass, Machinegrid5000.class, \"Machinegrid5000\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMachinegrid5000_Username(), ecorePackage.getEString(), \"username\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Password(), ecorePackage.getEString(), \"password\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Site(), ecorePackage.getEString(), \"site\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Walltime(), ecorePackage.getEString(), \"walltime\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_SshPrivateKey(), ecorePackage.getEString(), \"sshPrivateKey\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_SshPublicKey(), ecorePackage.getEString(), \"sshPublicKey\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_Image(), ecorePackage.getEString(), \"image\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_ResourceProperties(), ecorePackage.getEString(), \"resourceProperties\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_UseJobReservation(), ecorePackage.getEString(), \"useJobReservation\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMachinegrid5000_HostToProvision(), ecorePackage.getEString(), \"hostToProvision\", null, 0, 1, Machinegrid5000.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(clusterEClass, Cluster.class, \"Cluster\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getCluster_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Cluster.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(modeEEnum, Mode.class, \"Mode\");\n\t\taddEEnumLiteral(modeEEnum, Mode.READ_WRITE);\n\t\taddEEnumLiteral(modeEEnum, Mode.READ);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t}", "Map<String, Object> getContent();", "@Override\n\tpublic GetContentResponse listContents() {\n\t\tLOGGER.debug(\"LIST ALL CONTENTS\");\n\t\t\n\t\tClientConfig clientConfig = new ClientConfig();\n\t\t \n\t HttpAuthenticationFeature feature = HttpAuthenticationFeature.basic(env.getProperty(\"liferay.user.id\"), env.getProperty(\"liferay.user.key\"));\n\t clientConfig.register( feature) ;\n\t \n\t clientConfig.register(JacksonFeature.class);\n\t\t\n\t\tClient client = ClientBuilder.newClient(clientConfig);\n\t\tWebTarget webTarget = client.target(env.getProperty(\"liferay.api.rootpath\")).path(\"article-id/0/content-type/tagtest\");\n\t\t \n\t\tInvocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\t\n\t\tResponse response = invocationBuilder.get();\n\t\t \n\t\tGetContentResponse content = response.readEntity(GetContentResponse.class);\n\t\t\n\t\t\n\t\n\t\t \n\t\tLOGGER.info(\"status::\"+response.getStatus());\n\t\t\n\t\t\n\t\t\n\t\tcontent.setStatusCode(200);\n\t\tcontent.setStatusMessage(\"Content List\");\n\t\n\t\treturn content;\n\t}", "public abstract void loadContent(AssetManager manager);", "@Override\r\n public String getContent() {\r\n return content;\r\n }", "ISObject loadContent(ISObject sobj);", "public String getContent() { return this.content; }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "public SharedMemory infos();", "Serializable getContent();", "private void odfContentList(Document document) {\n\t\t// mimetype\n\t\t// content\n\t\t// styles\n\t\t// meta\n\t\t// settings\n\t\t// META-INF/manifest - this thing should tell us what is in the document\n\t\t// Versions\n\t\t// Thumbnails\n\t\t// Pictures\n\n\t\tOdfPackage pkg = document.getPackage();\n\n\t\tfor (String file : pkg.getFilePaths()) {\n\t\t\tif (file != null)\n\t\t\t\tfilePaths.add(file);\n\t\t}\n\n\t}", "public Content createContent();", "public String getContent() {\r\n return content;\r\n }", "public String getContent() {\r\n return content;\r\n }", "public ResourceContent getContent() throws IOException;", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public String getContent() {\n return content;\n }", "public java.lang.String getContent() {\n return content;\n }", "public edu.ustb.sei.mde.morel.resource.morel.IMorelMetaInformation getMetaInformation();", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(metadataEClass, Metadata.class, \"Metadata\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getMetadata_Gamename(), ecorePackage.getEString(), \"Gamename\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Shortname(), ecorePackage.getEString(), \"Shortname\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Timing(), ecorePackage.getEString(), \"Timing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Adressing(), ecorePackage.getEString(), \"Adressing\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_CartridgeType(), ecorePackage.getEString(), \"CartridgeType\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RomSize(), ecorePackage.getEString(), \"RomSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_RamSize(), ecorePackage.getEString(), \"RamSize\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Licensee(), ecorePackage.getEString(), \"Licensee\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Country(), ecorePackage.getEString(), \"Country\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Videoformat(), ecorePackage.getEString(), \"Videoformat\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_Version(), ecorePackage.getEInt(), \"Version\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getMetadata_IdeVersion(), ecorePackage.getEString(), \"IdeVersion\", null, 0, 1, Metadata.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public String getContent() {\n\t return content;\n }", "@Test\n public void testMetatypeInformationTestBundle() throws IOException, InterruptedException\n {\n MessageListener listener = new MessageListener(socket);\n\n //install test bundle\n final long testBundleId = BundleNamespaceUtils.installBundle(\n ResourceUtils.getExampleProjectBundleFile(), \"test.RemoteInterface.bundle\", false, socket);\n\n //register to listen to event\n int regId = RemoteEventRegistration.regRemoteEventMessages(\n socket, RemoteMetatypeConstants.TOPIC_METATYPE_INFORMATION_AVAILABLE);\n\n //construct request to start bundle\n StartRequestData requestStart = StartRequestData.newBuilder().setBundleId(testBundleId).build();\n TerraHarvestMessage message = \n BundleNamespaceUtils.createBundleMessage(requestStart, BundleMessageType.StartRequest);\n\n //send message\n message.writeDelimitedTo(socket.getOutputStream());\n\n //listen for response\n try\n {\n listener.waitForMessage(Namespace.EventAdmin, EventAdminMessageType.SendEvent, TIME_OUT);\n fail(\"Expected exception because we do not expect a message.\");\n }\n catch (AssertionError e)\n {\n //expecting exception\n }\n\n //unreg listener\n MessageListener.unregisterEvent(regId, socket);\n\n //uninstall bundle\n BundleNamespaceUtils.uninstallBundle(testBundleId, socket);\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tQIntegratedLanguageCorePackage theIntegratedLanguageCorePackage = (QIntegratedLanguageCorePackage)EPackage.Registry.INSTANCE.getEPackage(QIntegratedLanguageCorePackage.eNS_URI);\n\t\tQIntegratedLanguageCoreCtxPackage theIntegratedLanguageCoreCtxPackage = (QIntegratedLanguageCoreCtxPackage)EPackage.Registry.INSTANCE.getEPackage(QIntegratedLanguageCoreCtxPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\trepositoryEClass.getESuperTypes().add(theIntegratedLanguageCorePackage.getObjectNameable());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(repositoryEClass, QRepository.class, \"Repository\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getRepository_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, QRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getRepository_Location(), ecorePackage.getEString(), \"location\", null, 1, 1, QRepository.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(repositoryManagerEClass, QRepositoryManager.class, \"RepositoryManager\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tEOperation op = addEOperation(repositoryManagerEClass, ecorePackage.getEBoolean(), \"checkUpdates\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"repositoryLocation\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(repositoryManagerEClass, ecorePackage.getEBoolean(), \"update\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, ecorePackage.getEString(), \"repositoryLocation\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\top = addEOperation(repositoryManagerEClass, null, \"updateAll\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\t\taddEParameter(op, theIntegratedLanguageCoreCtxPackage.getContextProvider(), \"contextProvider\", 1, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "ContentLocator getContentLocator();", "public java.lang.String getContent() {\n return content;\n }", "public ResourceContent getMetadata() throws IOException;", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "public String getContent() {\n return this.content;\n }", "public interface ContentDAOSPI {\n\n\tpublic InputStream getInputStream(int id);\n\n\tpublic void setBytes(int i, byte[] bytes);\n\n}", "public void setContent(Object content) {\n this.content = content;\n }", "public String getContent() {\n return content_;\n }", "public String getContent() {\n return content_;\n }", "public void initializePackageContents()\n {\n if (isInitialized) return;\n isInitialized = true;\n\n // Initialize package\n setName(eNAME);\n setNsPrefix(eNS_PREFIX);\n setNsURI(eNS_URI);\n\n // Create type parameters\n\n // Set bounds for type parameters\n\n // Add supertypes to classes\n intentEClass.getESuperTypes().add(this.getAgent());\n entityEClass.getESuperTypes().add(this.getAgent());\n\n // Initialize classes and features; add operations and parameters\n initEClass(modelEClass, Model.class, \"Model\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getModel_Agent(), this.getAgent(), null, \"agent\", null, 0, -1, Model.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(agentEClass, Agent.class, \"Agent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getAgent_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, Agent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(intentEClass, Intent.class, \"Intent\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIntent_SuperType(), this.getIntent(), null, \"superType\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_IsFollowUp(), this.getIsFollowUp(), null, \"isFollowUp\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Question(), this.getQuestion(), null, \"question\", null, 0, -1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getIntent_Training(), this.getTraining(), null, \"training\", null, 0, 1, Intent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(isFollowUpEClass, IsFollowUp.class, \"IsFollowUp\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getIsFollowUp_Intent(), this.getIntent(), null, \"intent\", null, 0, 1, IsFollowUp.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityEClass, Entity.class, \"Entity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getEntity_Example(), this.getEntityExample(), null, \"example\", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(questionEClass, Question.class, \"Question\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestion_QuestionEntity(), this.getQuestionEntity(), null, \"questionEntity\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEAttribute(getQuestion_Prompt(), ecorePackage.getEString(), \"prompt\", null, 0, 1, Question.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(questionEntityEClass, QuestionEntity.class, \"QuestionEntity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getQuestionEntity_WithEntity(), this.getReference(), null, \"withEntity\", null, 0, 1, QuestionEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingEClass, Training.class, \"Training\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getTraining_Trainingref(), this.getTrainingRef(), null, \"trainingref\", null, 0, -1, Training.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(trainingRefEClass, TrainingRef.class, \"TrainingRef\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getTrainingRef_Phrase(), ecorePackage.getEString(), \"phrase\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getTrainingRef_Declaration(), this.getDeclaration(), null, \"declaration\", null, 0, 1, TrainingRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(declarationEClass, Declaration.class, \"Declaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getDeclaration_Trainingstring(), ecorePackage.getEString(), \"trainingstring\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getDeclaration_Reference(), this.getReference(), null, \"reference\", null, 0, 1, Declaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(entityExampleEClass, EntityExample.class, \"EntityExample\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getEntityExample_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, EntityExample.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(sysvariableEClass, Sysvariable.class, \"Sysvariable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEAttribute(getSysvariable_Value(), ecorePackage.getEString(), \"value\", null, 0, 1, Sysvariable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n initEClass(referenceEClass, Reference.class, \"Reference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n initEReference(getReference_Entity(), this.getEntity(), null, \"entity\", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n initEReference(getReference_Sysvar(), this.getSysvariable(), null, \"sysvar\", null, 0, 1, Reference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n // Create resource\n createResource(eNS_URI);\n }", "public Contents getContents(\n )\n {return contents;}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tCapellacorePackage theCapellacorePackage = (CapellacorePackage)EPackage.Registry.INSTANCE.getEPackage(CapellacorePackage.eNS_URI);\n\t\tFaPackage theFaPackage = (FaPackage)EPackage.Registry.INSTANCE.getEPackage(FaPackage.eNS_URI);\n\t\tRequirementPackage theRequirementPackage = (RequirementPackage)EPackage.Registry.INSTANCE.getEPackage(RequirementPackage.eNS_URI);\n\t\tCapellacommonPackage theCapellacommonPackage = (CapellacommonPackage)EPackage.Registry.INSTANCE.getEPackage(CapellacommonPackage.eNS_URI);\n\t\tInformationPackage theInformationPackage = (InformationPackage)EPackage.Registry.INSTANCE.getEPackage(InformationPackage.eNS_URI);\n\t\tCommunicationPackage theCommunicationPackage = (CommunicationPackage)EPackage.Registry.INSTANCE.getEPackage(CommunicationPackage.eNS_URI);\n\t\tModellingcorePackage theModellingcorePackage = (ModellingcorePackage)EPackage.Registry.INSTANCE.getEPackage(ModellingcorePackage.eNS_URI);\n\t\tEpbsPackage theEpbsPackage = (EpbsPackage)EPackage.Registry.INSTANCE.getEPackage(EpbsPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\tblockArchitecturePkgEClass.getESuperTypes().add(theCapellacorePackage.getModellingArchitecturePkg());\n\t\tblockArchitectureEClass.getESuperTypes().add(theFaPackage.getAbstractFunctionalArchitecture());\n\t\tblockEClass.getESuperTypes().add(theCapellacorePackage.getModellingBlock());\n\t\tblockEClass.getESuperTypes().add(theFaPackage.getAbstractFunctionalBlock());\n\t\tcomponentArchitectureEClass.getESuperTypes().add(this.getBlockArchitecture());\n\t\tcomponentEClass.getESuperTypes().add(this.getBlock());\n\t\tcomponentEClass.getESuperTypes().add(theInformationPackage.getPartitionableElement());\n\t\tcomponentEClass.getESuperTypes().add(this.getInterfaceAllocator());\n\t\tcomponentEClass.getESuperTypes().add(theCommunicationPackage.getCommunicationLinkExchanger());\n\t\tabstractActorEClass.getESuperTypes().add(this.getComponent());\n\t\tabstractActorEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvedElement());\n\t\tpartEClass.getESuperTypes().add(theInformationPackage.getPartition());\n\t\tpartEClass.getESuperTypes().add(theModellingcorePackage.getInformationsExchanger());\n\t\tpartEClass.getESuperTypes().add(this.getDeployableElement());\n\t\tpartEClass.getESuperTypes().add(this.getDeploymentTarget());\n\t\tpartEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tarchitectureAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tcomponentAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tsystemComponentEClass.getESuperTypes().add(this.getComponent());\n\t\tsystemComponentEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvedElement());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCommunicationPackage.getMessageReferencePkg());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCapellacorePackage.getAbstractDependenciesPkg());\n\t\tinterfacePkgEClass.getESuperTypes().add(theCapellacorePackage.getAbstractExchangeItemPkg());\n\t\tinterfaceEClass.getESuperTypes().add(theCapellacorePackage.getGeneralClass());\n\t\tinterfaceEClass.getESuperTypes().add(this.getInterfaceAllocator());\n\t\tinterfaceImplementationEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tinterfaceUseEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tprovidedInterfaceLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\trequiredInterfaceLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tinterfaceAllocationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tinterfaceAllocatorEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tactorCapabilityRealizationInvolvementEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvement());\n\t\tsystemComponentCapabilityRealizationInvolvementEClass.getESuperTypes().add(theCapellacommonPackage.getCapabilityRealizationInvolvement());\n\t\tcomponentContextEClass.getESuperTypes().add(this.getComponent());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theInformationPackage.getAbstractEventOperation());\n\t\texchangeItemAllocationEClass.getESuperTypes().add(theModellingcorePackage.getFinalizableElement());\n\t\tdeployableElementEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tdeploymentTargetEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tabstractDeploymentLinkEClass.getESuperTypes().add(theCapellacorePackage.getRelationship());\n\t\tabstractPathInvolvedElementEClass.getESuperTypes().add(theCapellacorePackage.getInvolvedElement());\n\t\tabstractPhysicalArtifactEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tabstractPhysicalLinkEndEClass.getESuperTypes().add(theCapellacorePackage.getCapellaElement());\n\t\tabstractPhysicalPathLinkEClass.getESuperTypes().add(theFaPackage.getComponentExchangeAllocator());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPhysicalPathLink());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPhysicalArtifact());\n\t\tphysicalLinkEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tphysicalLinkCategoryEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tphysicalLinkEndEClass.getESuperTypes().add(this.getAbstractPhysicalLinkEnd());\n\t\tphysicalLinkRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tphysicalPathEClass.getESuperTypes().add(theCapellacorePackage.getNamedElement());\n\t\tphysicalPathEClass.getESuperTypes().add(theFaPackage.getComponentExchangeAllocator());\n\t\tphysicalPathEClass.getESuperTypes().add(this.getAbstractPathInvolvedElement());\n\t\tphysicalPathEClass.getESuperTypes().add(theCapellacorePackage.getInvolverElement());\n\t\tphysicalPathInvolvementEClass.getESuperTypes().add(theCapellacorePackage.getInvolvement());\n\t\tphysicalPathReferenceEClass.getESuperTypes().add(this.getPhysicalPathInvolvement());\n\t\tphysicalPathRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\t\tphysicalPortEClass.getESuperTypes().add(theInformationPackage.getPartition());\n\t\tphysicalPortEClass.getESuperTypes().add(theInformationPackage.getPort());\n\t\tphysicalPortEClass.getESuperTypes().add(this.getAbstractPhysicalArtifact());\n\t\tphysicalPortEClass.getESuperTypes().add(theModellingcorePackage.getInformationsExchanger());\n\t\tphysicalPortEClass.getESuperTypes().add(this.getAbstractPhysicalLinkEnd());\n\t\tphysicalPortRealizationEClass.getESuperTypes().add(theCapellacorePackage.getAllocation());\n\n\t\t// Initialize classes and features; add operations and parameters\n\t\tinitEClass(blockArchitecturePkgEClass, BlockArchitecturePkg.class, \"BlockArchitecturePkg\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(blockArchitectureEClass, BlockArchitecture.class, \"BlockArchitecture\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBlockArchitecture_OwnedRequirementPkgs(), theRequirementPackage.getRequirementsPkg(), null, \"ownedRequirementPkgs\", null, 0, -1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedAbstractCapabilityPkg(), theCapellacommonPackage.getAbstractCapabilityPkg(), null, \"ownedAbstractCapabilityPkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedInterfacePkg(), this.getInterfacePkg(), null, \"ownedInterfacePkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_OwnedDataPkg(), theInformationPackage.getDataPkg(), null, \"ownedDataPkg\", null, 0, 1, BlockArchitecture.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_ProvisionedArchitectureAllocations(), this.getArchitectureAllocation(), this.getArchitectureAllocation_AllocatingArchitecture(), \"provisionedArchitectureAllocations\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_ProvisioningArchitectureAllocations(), this.getArchitectureAllocation(), this.getArchitectureAllocation_AllocatedArchitecture(), \"provisioningArchitectureAllocations\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_AllocatedArchitectures(), this.getBlockArchitecture(), null, \"allocatedArchitectures\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlockArchitecture_AllocatingArchitectures(), this.getBlockArchitecture(), null, \"allocatingArchitectures\", null, 0, -1, BlockArchitecture.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(blockEClass, Block.class, \"Block\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getBlock_OwnedAbstractCapabilityPkg(), theCapellacommonPackage.getAbstractCapabilityPkg(), null, \"ownedAbstractCapabilityPkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedInterfacePkg(), this.getInterfacePkg(), null, \"ownedInterfacePkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedDataPkg(), theInformationPackage.getDataPkg(), null, \"ownedDataPkg\", null, 0, 1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getBlock_OwnedStateMachines(), theCapellacommonPackage.getStateMachine(), null, \"ownedStateMachines\", null, 0, -1, Block.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentArchitectureEClass, ComponentArchitecture.class, \"ComponentArchitecture\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(componentEClass, Component.class, \"Component\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponent_OwnedInterfaceUses(), this.getInterfaceUse(), null, \"ownedInterfaceUses\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_UsedInterfaceLinks(), this.getInterfaceUse(), this.getInterfaceUse_InterfaceUser(), \"usedInterfaceLinks\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_UsedInterfaces(), this.getInterface(), this.getInterface_UserComponents(), \"usedInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedInterfaceImplementations(), this.getInterfaceImplementation(), null, \"ownedInterfaceImplementations\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ImplementedInterfaceLinks(), this.getInterfaceImplementation(), this.getInterfaceImplementation_InterfaceImplementor(), \"implementedInterfaceLinks\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ImplementedInterfaces(), this.getInterface(), this.getInterface_ImplementorComponents(), \"implementedInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ProvisionedComponentAllocations(), this.getComponentAllocation(), this.getComponentAllocation_AllocatingComponent(), \"provisionedComponentAllocations\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ProvisioningComponentAllocations(), this.getComponentAllocation(), this.getComponentAllocation_AllocatedComponent(), \"provisioningComponentAllocations\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_AllocatedComponents(), this.getComponent(), null, \"allocatedComponents\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_AllocatingComponents(), this.getComponent(), null, \"allocatingComponents\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ProvidedInterfaces(), this.getInterface(), null, \"providedInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_RequiredInterfaces(), this.getInterface(), null, \"requiredInterfaces\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ContainedComponentPorts(), theFaPackage.getComponentPort(), null, \"containedComponentPorts\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ContainedParts(), this.getPart(), null, \"containedParts\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_ContainedPhysicalPorts(), this.getPhysicalPort(), null, \"containedPhysicalPorts\", null, 0, -1, Component.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedPhysicalPath(), this.getPhysicalPath(), null, \"ownedPhysicalPath\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedPhysicalLinks(), this.getPhysicalLink(), null, \"ownedPhysicalLinks\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponent_OwnedPhysicalLinkCategories(), this.getPhysicalLinkCategory(), null, \"ownedPhysicalLinkCategories\", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractActorEClass, AbstractActor.class, \"AbstractActor\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(partEClass, Part.class, \"Part\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPart_ProvidedInterfaces(), this.getInterface(), null, \"providedInterfaces\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_RequiredInterfaces(), this.getInterface(), null, \"requiredInterfaces\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_OwnedDeploymentLinks(), this.getAbstractDeploymentLink(), null, \"ownedDeploymentLinks\", null, 0, -1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_DeployedParts(), this.getPart(), null, \"deployedParts\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_DeployingParts(), this.getPart(), null, \"deployingParts\", null, 0, -1, Part.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPart_OwnedAbstractType(), theModellingcorePackage.getAbstractType(), null, \"ownedAbstractType\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_Value(), ecorePackage.getEInt(), \"value\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_MaxValue(), ecorePackage.getEInt(), \"maxValue\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_MinValue(), ecorePackage.getEInt(), \"minValue\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getPart_CurrentMass(), ecorePackage.getEInt(), \"currentMass\", null, 0, 1, Part.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEBoolean(), \"isOverhead\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEBoolean(), \"isSatured\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, ecorePackage.getEInt(), \"computeMass\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\taddEOperation(partEClass, null, \"print\", 0, 1, IS_UNIQUE, IS_ORDERED);\n\n\t\tinitEClass(architectureAllocationEClass, ArchitectureAllocation.class, \"ArchitectureAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getArchitectureAllocation_AllocatedArchitecture(), this.getBlockArchitecture(), this.getBlockArchitecture_ProvisioningArchitectureAllocations(), \"allocatedArchitecture\", null, 1, 1, ArchitectureAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getArchitectureAllocation_AllocatingArchitecture(), this.getBlockArchitecture(), this.getBlockArchitecture_ProvisionedArchitectureAllocations(), \"allocatingArchitecture\", null, 1, 1, ArchitectureAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(componentAllocationEClass, ComponentAllocation.class, \"ComponentAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getComponentAllocation_AllocatedComponent(), this.getComponent(), this.getComponent_ProvisioningComponentAllocations(), \"allocatedComponent\", null, 0, 1, ComponentAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getComponentAllocation_AllocatingComponent(), this.getComponent(), this.getComponent_ProvisionedComponentAllocations(), \"allocatingComponent\", null, 0, 1, ComponentAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(systemComponentEClass, SystemComponent.class, \"SystemComponent\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getSystemComponent_DataComponent(), ecorePackage.getEBoolean(), \"dataComponent\", null, 0, 1, SystemComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSystemComponent_DataType(), theCapellacorePackage.getClassifier(), null, \"dataType\", null, 0, -1, SystemComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getSystemComponent_ParticipationsInCapabilityRealizations(), this.getSystemComponentCapabilityRealizationInvolvement(), null, \"participationsInCapabilityRealizations\", null, 0, -1, SystemComponent.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfacePkgEClass, InterfacePkg.class, \"InterfacePkg\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfacePkg_OwnedInterfaces(), this.getInterface(), null, \"ownedInterfaces\", null, 0, -1, InterfacePkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfacePkg_OwnedInterfacePkgs(), this.getInterfacePkg(), null, \"ownedInterfacePkgs\", null, 0, -1, InterfacePkg.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceEClass, Interface.class, \"Interface\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getInterface_Mechanism(), ecorePackage.getEString(), \"mechanism\", null, 0, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getInterface_Structural(), ecorePackage.getEBoolean(), \"structural\", \"true\", 0, 1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ImplementorComponents(), this.getComponent(), this.getComponent_ImplementedInterfaces(), \"implementorComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_UserComponents(), this.getComponent(), this.getComponent_UsedInterfaces(), \"userComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_InterfaceImplementations(), this.getInterfaceImplementation(), null, \"interfaceImplementations\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_InterfaceUses(), this.getInterfaceUse(), null, \"interfaceUses\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ProvisioningInterfaceAllocations(), this.getInterfaceAllocation(), this.getInterfaceAllocation_AllocatedInterface(), \"provisioningInterfaceAllocations\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_AllocatingInterfaces(), this.getInterface(), null, \"allocatingInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_AllocatingComponents(), this.getComponent(), null, \"allocatingComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ExchangeItems(), theInformationPackage.getExchangeItem(), null, \"exchangeItems\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_OwnedExchangeItemAllocations(), this.getExchangeItemAllocation(), null, \"ownedExchangeItemAllocations\", null, 0, -1, Interface.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RequiringComponents(), this.getComponent(), null, \"requiringComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RequiringComponentPorts(), theFaPackage.getComponentPort(), null, \"requiringComponentPorts\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ProvidingComponents(), this.getComponent(), null, \"providingComponents\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_ProvidingComponentPorts(), theFaPackage.getComponentPort(), null, \"providingComponentPorts\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizingLogicalInterfaces(), this.getInterface(), null, \"realizingLogicalInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizedContextInterfaces(), this.getInterface(), null, \"realizedContextInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizingPhysicalInterfaces(), this.getInterface(), null, \"realizingPhysicalInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterface_RealizedLogicalInterfaces(), this.getInterface(), null, \"realizedLogicalInterfaces\", null, 0, -1, Interface.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceImplementationEClass, InterfaceImplementation.class, \"InterfaceImplementation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceImplementation_InterfaceImplementor(), this.getComponent(), this.getComponent_ImplementedInterfaceLinks(), \"interfaceImplementor\", null, 1, 1, InterfaceImplementation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceImplementation_ImplementedInterface(), this.getInterface(), null, \"implementedInterface\", null, 1, 1, InterfaceImplementation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceUseEClass, InterfaceUse.class, \"InterfaceUse\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceUse_InterfaceUser(), this.getComponent(), this.getComponent_UsedInterfaceLinks(), \"interfaceUser\", null, 1, 1, InterfaceUse.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceUse_UsedInterface(), this.getInterface(), null, \"usedInterface\", null, 1, 1, InterfaceUse.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(providedInterfaceLinkEClass, ProvidedInterfaceLink.class, \"ProvidedInterfaceLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getProvidedInterfaceLink_Interface(), this.getInterface(), null, \"interface\", null, 1, 1, ProvidedInterfaceLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(requiredInterfaceLinkEClass, RequiredInterfaceLink.class, \"RequiredInterfaceLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getRequiredInterfaceLink_Interface(), this.getInterface(), null, \"interface\", null, 1, 1, RequiredInterfaceLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(interfaceAllocationEClass, InterfaceAllocation.class, \"InterfaceAllocation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceAllocation_AllocatedInterface(), this.getInterface(), this.getInterface_ProvisioningInterfaceAllocations(), \"allocatedInterface\", null, 1, 1, InterfaceAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocation_AllocatingInterfaceAllocator(), this.getInterfaceAllocator(), this.getInterfaceAllocator_ProvisionedInterfaceAllocations(), \"allocatingInterfaceAllocator\", null, 1, 1, InterfaceAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, !IS_ORDERED);\n\n\t\tinitEClass(interfaceAllocatorEClass, InterfaceAllocator.class, \"InterfaceAllocator\", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getInterfaceAllocator_OwnedInterfaceAllocations(), this.getInterfaceAllocation(), null, \"ownedInterfaceAllocations\", null, 0, -1, InterfaceAllocator.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocator_ProvisionedInterfaceAllocations(), this.getInterfaceAllocation(), this.getInterfaceAllocation_AllocatingInterfaceAllocator(), \"provisionedInterfaceAllocations\", null, 0, -1, InterfaceAllocator.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getInterfaceAllocator_AllocatedInterfaces(), this.getInterface(), null, \"allocatedInterfaces\", null, 0, -1, InterfaceAllocator.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(actorCapabilityRealizationInvolvementEClass, ActorCapabilityRealizationInvolvement.class, \"ActorCapabilityRealizationInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(systemComponentCapabilityRealizationInvolvementEClass, SystemComponentCapabilityRealizationInvolvement.class, \"SystemComponentCapabilityRealizationInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(componentContextEClass, ComponentContext.class, \"ComponentContext\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(exchangeItemAllocationEClass, ExchangeItemAllocation.class, \"ExchangeItemAllocation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getExchangeItemAllocation_SendProtocol(), theCommunicationPackage.getCommunicationLinkProtocol(), \"sendProtocol\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getExchangeItemAllocation_ReceiveProtocol(), theCommunicationPackage.getCommunicationLinkProtocol(), \"receiveProtocol\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExchangeItemAllocation_AllocatedItem(), theInformationPackage.getExchangeItem(), null, \"allocatedItem\", null, 0, 1, ExchangeItemAllocation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getExchangeItemAllocation_AllocatingInterface(), this.getInterface(), null, \"allocatingInterface\", null, 0, 1, ExchangeItemAllocation.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deployableElementEClass, DeployableElement.class, \"DeployableElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeployableElement_DeployingLinks(), this.getAbstractDeploymentLink(), null, \"deployingLinks\", null, 0, -1, DeployableElement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(deploymentTargetEClass, DeploymentTarget.class, \"DeploymentTarget\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getDeploymentTarget_DeploymentLinks(), this.getAbstractDeploymentLink(), null, \"deploymentLinks\", null, 0, -1, DeploymentTarget.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractDeploymentLinkEClass, AbstractDeploymentLink.class, \"AbstractDeploymentLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractDeploymentLink_DeployedElement(), this.getDeployableElement(), null, \"deployedElement\", null, 1, 1, AbstractDeploymentLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getAbstractDeploymentLink_Location(), this.getDeploymentTarget(), null, \"location\", null, 1, 1, AbstractDeploymentLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPathInvolvedElementEClass, AbstractPathInvolvedElement.class, \"AbstractPathInvolvedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(abstractPhysicalArtifactEClass, AbstractPhysicalArtifact.class, \"AbstractPhysicalArtifact\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractPhysicalArtifact_AllocatorConfigurationItems(), theEpbsPackage.getConfigurationItem(), theEpbsPackage.getConfigurationItem_AllocatedPhysicalArtifacts(), \"allocatorConfigurationItems\", null, 0, -1, AbstractPhysicalArtifact.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPhysicalLinkEndEClass, AbstractPhysicalLinkEnd.class, \"AbstractPhysicalLinkEnd\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getAbstractPhysicalLinkEnd_InvolvedLinks(), this.getPhysicalLink(), null, \"involvedLinks\", null, 0, -1, AbstractPhysicalLinkEnd.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(abstractPhysicalPathLinkEClass, AbstractPhysicalPathLink.class, \"AbstractPhysicalPathLink\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalLinkEClass, PhysicalLink.class, \"PhysicalLink\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLink_LinkEnds(), this.getAbstractPhysicalLinkEnd(), null, \"linkEnds\", null, 2, 2, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), theFaPackage.getComponentExchangeFunctionalExchangeAllocation(), null, \"ownedComponentExchangeFunctionalExchangeAllocations\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedPhysicalLinkEnds(), this.getPhysicalLinkEnd(), null, \"ownedPhysicalLinkEnds\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_OwnedPhysicalLinkRealizations(), this.getPhysicalLinkRealization(), null, \"ownedPhysicalLinkRealizations\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_Categories(), this.getPhysicalLinkCategory(), this.getPhysicalLinkCategory_Links(), \"categories\", null, 0, -1, PhysicalLink.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_SourcePhysicalPort(), this.getPhysicalPort(), null, \"sourcePhysicalPort\", null, 0, 1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_TargetPhysicalPort(), this.getPhysicalPort(), null, \"targetPhysicalPort\", null, 0, 1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_RealizedPhysicalLinks(), this.getPhysicalLink(), null, \"realizedPhysicalLinks\", null, 0, -1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLink_RealizingPhysicalLinks(), this.getPhysicalLink(), null, \"realizingPhysicalLinks\", null, 0, -1, PhysicalLink.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkCategoryEClass, PhysicalLinkCategory.class, \"PhysicalLinkCategory\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLinkCategory_Links(), this.getPhysicalLink(), this.getPhysicalLink_Categories(), \"links\", null, 0, -1, PhysicalLinkCategory.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkEndEClass, PhysicalLinkEnd.class, \"PhysicalLinkEnd\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalLinkEnd_Port(), this.getPhysicalPort(), null, \"port\", null, 0, 1, PhysicalLinkEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalLinkEnd_Part(), this.getPart(), null, \"part\", null, 0, 1, PhysicalLinkEnd.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalLinkRealizationEClass, PhysicalLinkRealization.class, \"PhysicalLinkRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalPathEClass, PhysicalPath.class, \"PhysicalPath\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPath_InvolvedLinks(), this.getAbstractPhysicalPathLink(), null, \"involvedLinks\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_OwnedPhysicalPathInvolvements(), this.getPhysicalPathInvolvement(), null, \"ownedPhysicalPathInvolvements\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_FirstPhysicalPathInvolvements(), this.getPhysicalPathInvolvement(), null, \"firstPhysicalPathInvolvements\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_OwnedPhysicalPathRealizations(), this.getPhysicalPathRealization(), null, \"ownedPhysicalPathRealizations\", null, 0, -1, PhysicalPath.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_RealizedPhysicalPaths(), this.getPhysicalPath(), null, \"realizedPhysicalPaths\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPath_RealizingPhysicalPaths(), this.getPhysicalPath(), null, \"realizingPhysicalPaths\", null, 0, -1, PhysicalPath.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathInvolvementEClass, PhysicalPathInvolvement.class, \"PhysicalPathInvolvement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPathInvolvement_NextInvolvements(), this.getPhysicalPathInvolvement(), null, \"nextInvolvements\", null, 0, -1, PhysicalPathInvolvement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_PreviousInvolvements(), this.getPhysicalPathInvolvement(), null, \"previousInvolvements\", null, 0, -1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_InvolvedElement(), this.getAbstractPathInvolvedElement(), null, \"involvedElement\", null, 0, 1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPathInvolvement_InvolvedComponent(), this.getComponent(), null, \"involvedComponent\", null, 0, 1, PhysicalPathInvolvement.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathReferenceEClass, PhysicalPathReference.class, \"PhysicalPathReference\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPathReference_ReferencedPhysicalPath(), this.getPhysicalPath(), null, \"referencedPhysicalPath\", null, 0, 1, PhysicalPathReference.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPathRealizationEClass, PhysicalPathRealization.class, \"PhysicalPathRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\tinitEClass(physicalPortEClass, PhysicalPort.class, \"PhysicalPort\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getPhysicalPort_OwnedComponentPortAllocations(), theFaPackage.getComponentPortAllocation(), null, \"ownedComponentPortAllocations\", null, 0, -1, PhysicalPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_OwnedPhysicalPortRealizations(), this.getPhysicalPortRealization(), null, \"ownedPhysicalPortRealizations\", null, 0, -1, PhysicalPort.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_AllocatedComponentPorts(), theFaPackage.getComponentPort(), theFaPackage.getComponentPort_AllocatingPhysicalPorts(), \"allocatedComponentPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_RealizedPhysicalPorts(), this.getPhysicalPort(), null, \"realizedPhysicalPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPhysicalPort_RealizingPhysicalPorts(), this.getPhysicalPort(), null, \"realizingPhysicalPorts\", null, 0, -1, PhysicalPort.class, IS_TRANSIENT, !IS_VOLATILE, !IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(physicalPortRealizationEClass, PhysicalPortRealization.class, \"PhysicalPortRealization\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.polarsys.org/kitalpha/dsl/2007/dslfactory\n\t\tcreateDslfactoryAnnotations();\n\t\t// http://www.polarsys.org/kitalpha/ecore/documentation\n\t\tcreateDocumentationAnnotations();\n\t\t// http://www.polarsys.org/capella/semantic\n\t\tcreateSemanticAnnotations();\n\t\t// http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\n\t\tcreateMappingAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/BusinessInformation\n\t\tcreateBusinessInformationAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/UML2Mapping\n\t\tcreateUML2MappingAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\n\t\tcreateSegmentAnnotations();\n\t\t// http://www.polarsys.org/capella/derived\n\t\tcreateDerivedAnnotations();\n\t\t// aspect\n\t\tcreateAspectAnnotations();\n\t\t// http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\n\t\tcreateIgnoreAnnotations();\n\t}", "public java.lang.String getContent () {\n\t\treturn content;\n\t}", "private void LoadContent()\n {\n \n }", "public String getContent() {\r\n\t\treturn content;\r\n\t}", "public List<Content> getAllContents() {\n return contentRepo.findAll();\n }", "public String getContent() {\n\t\treturn content.toString();\n\t}", "abstract public Content createContent();", "public String getContent() {\n\t\treturn content;\n\t}", "public String getContent() {\n\t\treturn content;\n\t}", "public String getContent() {\n\t\treturn content;\n\t}", "public Content getContent() {\n return this.content;\n }", "public void initializePackageContents() {\r\n\t\tif (isInitialized)\r\n\t\t\treturn;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\torg.palladiosimulator.pcm.core.composition.CompositionPackage theCompositionPackage_1 = (org.palladiosimulator.pcm.core.composition.CompositionPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.palladiosimulator.pcm.core.composition.CompositionPackage.eNS_URI);\r\n\t\torg.palladiosimulator.pcm.repository.RepositoryPackage theRepositoryPackage_1 = (org.palladiosimulator.pcm.repository.RepositoryPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(org.palladiosimulator.pcm.repository.RepositoryPackage.eNS_URI);\r\n\t\tCompositionPackage theCompositionPackage = (CompositionPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(CompositionPackage.eNS_URI);\r\n\t\tPartitioningPackage thePartitioningPackage = (PartitioningPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(PartitioningPackage.eNS_URI);\r\n\t\tDatatypesPackage theDatatypesPackage = (DatatypesPackage) EPackage.Registry.INSTANCE\r\n\t\t\t\t.getEPackage(DatatypesPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tdataChannelEClass.getESuperTypes().add(theCompositionPackage_1.getEventChannel());\r\n\r\n\t\t// Initialize classes and features; add operations and parameters\r\n\t\tinitEClass(dataChannelEClass, DataChannel.class, \"DataChannel\", !IS_ABSTRACT, !IS_INTERFACE,\r\n\t\t\t\tIS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getDataChannel_Capacity(), ecorePackage.getEInt(), \"capacity\", \"-1\", 1, 1, DataChannel.class,\r\n\t\t\t\tIS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_SourceEventGroup(), theRepositoryPackage_1.getEventGroup(), null,\r\n\t\t\t\t\"sourceEventGroup\", null, 1, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_SinkEventGroup(), theRepositoryPackage_1.getEventGroup(), null, \"sinkEventGroup\",\r\n\t\t\t\tnull, 1, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE,\r\n\t\t\t\tIS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_DataChannelSourceConnector(),\r\n\t\t\t\ttheCompositionPackage.getDataChannelSourceConnector(),\r\n\t\t\t\ttheCompositionPackage.getDataChannelSourceConnector_DataChannel(), \"dataChannelSourceConnector\", null,\r\n\t\t\t\t0, -1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_DataChannelSinkConnector(), theCompositionPackage.getDataChannelSinkConnector(),\r\n\t\t\t\ttheCompositionPackage.getDataChannelSinkConnector_DataChannel(), \"dataChannelSinkConnector\", null, 0,\r\n\t\t\t\t-1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_Partitioning(), thePartitioningPackage.getPartitioning(), null, \"partitioning\",\r\n\t\t\t\tnull, 0, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\r\n\t\t\t\t!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_TimeGrouping(), thePartitioningPackage.getTimeGrouping(), null, \"timeGrouping\",\r\n\t\t\t\tnull, 0, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,\r\n\t\t\t\t!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getDataChannel_Joins(), thePartitioningPackage.getJoining(), null, \"joins\", null, 0, -1,\r\n\t\t\t\tDataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,\r\n\t\t\t\t!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDataChannel_OutgoingDistribution(), theDatatypesPackage.getOutgoingDistribution(),\r\n\t\t\t\t\"outgoingDistribution\", null, 0, 1, DataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,\r\n\t\t\t\t!IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDataChannel_Scheduling(), theDatatypesPackage.getScheduling(), \"scheduling\", null, 0, 1,\r\n\t\t\t\tDataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getDataChannel_PutPolicy(), theDatatypesPackage.getPutPolicy(), \"putPolicy\", null, 0, 1,\r\n\t\t\t\tDataChannel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,\r\n\t\t\t\t!IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "public String getContentDescription() {\n return impl.getContentDescription();\n }", "public void initializePackageContents() {\r\n\t\tif (isInitialized) return;\r\n\t\tisInitialized = true;\r\n\r\n\t\t// Initialize package\r\n\t\tsetName(eNAME);\r\n\t\tsetNsPrefix(eNS_PREFIX);\r\n\t\tsetNsURI(eNS_URI);\r\n\r\n\t\t// Obtain other dependent packages\r\n\t\tServiceCIMPackage theServiceCIMPackage = (ServiceCIMPackage)EPackage.Registry.INSTANCE.getEPackage(ServiceCIMPackage.eNS_URI);\r\n\r\n\t\t// Create type parameters\r\n\r\n\t\t// Set bounds for type parameters\r\n\r\n\t\t// Add supertypes to classes\r\n\t\tauthorizableResourceEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannResourceEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tannPropertyEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tauthorizationSubjectEClass.getESuperTypes().add(this.getAnnotation());\r\n\t\tannCRUDActivityEClass.getESuperTypes().add(this.getAnnotatedElement());\r\n\t\tnewPropertyEClass.getESuperTypes().add(this.getAnnotation());\r\n\r\n\t\t// Initialize classes, features, and operations; add parameters\r\n\t\tinitEClass(annotationModelEClass, AnnotationModel.class, \"AnnotationModel\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAnnotationModel_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAnnotationModel_HasAnnotatedElement(), this.getAnnotatedElement(), null, \"hasAnnotatedElement\", null, 1, -1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAnnotationModel_HasAnnotation(), this.getAnnotation(), null, \"hasAnnotation\", null, 1, -1, AnnotationModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annotationEClass, Annotation.class, \"Annotation\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(authorizableResourceEClass, AuthorizableResource.class, \"AuthorizableResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAuthorizableResource_HasResourceAccessPolicySet(), this.getResourceAccessPolicySet(), null, \"hasResourceAccessPolicySet\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAuthorizableResource_IsAuthorizableResource(), this.getAnnResource(), null, \"isAuthorizableResource\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAuthorizableResource_BTrackOwnership(), ecorePackage.getEBoolean(), \"bTrackOwnership\", null, 1, 1, AuthorizableResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessPolicySetEClass, ResourceAccessPolicySet.class, \"ResourceAccessPolicySet\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicySet_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessPolicySet_PolicyCombiningAlgorithm(), this.getCombiningAlgorithm(), \"policyCombiningAlgorithm\", null, 1, 1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicySet_HasResourceAccessPolicy(), this.getResourceAccessPolicy(), null, \"hasResourceAccessPolicy\", null, 1, -1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicySet_HasResourceAccessPolicySet(), this.getResourceAccessPolicySet(), null, \"hasResourceAccessPolicySet\", null, 0, -1, ResourceAccessPolicySet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annotatedElementEClass, AnnotatedElement.class, \"AnnotatedElement\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\r\n\t\tinitEClass(annResourceEClass, AnnResource.class, \"AnnResource\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnResource_AnnotatesResource(), theServiceCIMPackage.getResource(), null, \"annotatesResource\", null, 1, 1, AnnResource.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessPolicyEClass, ResourceAccessPolicy.class, \"ResourceAccessPolicy\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getResourceAccessPolicy_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessPolicy_RuleCombiningAlgorithm(), this.getCombiningAlgorithm(), \"ruleCombiningAlgorithm\", null, 1, 1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicy_HasApplyCondition(), this.getCondition(), null, \"hasApplyCondition\", null, 0, -1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessPolicy_HasResourceAccessRule(), this.getResourceAccessRule(), null, \"hasResourceAccessRule\", null, 1, -1, ResourceAccessPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(conditionEClass, Condition.class, \"Condition\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getCondition_Operator(), this.getOperator(), \"operator\", \"UNDEFINED\", 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCondition_HasLeftSideOperand(), this.getAttribute(), null, \"hasLeftSideOperand\", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getCondition_HasRightSideOperand(), this.getAttribute(), null, \"hasRightSideOperand\", null, 1, 1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(attributeEClass, Attribute.class, \"Attribute\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEAttribute(getAttribute_AttributeCategory(), this.getAttributeCategory(), \"attributeCategory\", null, 1, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeExistingProperty(), this.getAnnProperty(), null, \"isAttributeExistingProperty\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getAttribute_Value(), ecorePackage.getEString(), \"value\", null, 0, -1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeNewProperty(), this.getNewProperty(), null, \"isAttributeNewProperty\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getAttribute_IsAttributeResource(), this.getAnnResource(), null, \"isAttributeResource\", null, 0, 1, Attribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annPropertyEClass, AnnProperty.class, \"AnnProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnProperty_AnnotatesProperty(), theServiceCIMPackage.getProperty(), null, \"annotatesProperty\", null, 1, 1, AnnProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(resourceAccessRuleEClass, ResourceAccessRule.class, \"ResourceAccessRule\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getResourceAccessRule_HasMatchCondition(), this.getCondition(), null, \"hasMatchCondition\", null, 1, -1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessRule_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getResourceAccessRule_RuleType(), this.getRuleType(), \"ruleType\", null, 1, 1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEReference(getResourceAccessRule_HasAllowedAction(), this.getAllowedAction(), null, \"hasAllowedAction\", null, 1, -1, ResourceAccessRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(authorizationSubjectEClass, AuthorizationSubject.class, \"AuthorizationSubject\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAuthorizationSubject_IsAuthorizationSubject(), this.getAnnResource(), null, \"isAuthorizationSubject\", null, 1, 1, AuthorizationSubject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(annCRUDActivityEClass, AnnCRUDActivity.class, \"AnnCRUDActivity\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAnnCRUDActivity_AnnotatesCRUDActivity(), theServiceCIMPackage.getCRUDActivity(), null, \"annotatesCRUDActivity\", null, 1, 1, AnnCRUDActivity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(allowedActionEClass, AllowedAction.class, \"AllowedAction\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getAllowedAction_IsAllowedAction(), this.getAnnCRUDActivity(), null, \"isAllowedAction\", null, 1, 1, AllowedAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\tinitEClass(newPropertyEClass, NewProperty.class, \"NewProperty\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\r\n\t\tinitEReference(getNewProperty_BelongsToResource(), this.getAnnResource(), null, \"belongsToResource\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_Name(), ecorePackage.getEString(), \"name\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_Type(), ecorePackage.getEString(), \"type\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\t\tinitEAttribute(getNewProperty_BIsUnique(), ecorePackage.getEBoolean(), \"bIsUnique\", null, 1, 1, NewProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\r\n\r\n\t\t// Initialize enums and add enum literals\r\n\t\tinitEEnum(combiningAlgorithmEEnum, CombiningAlgorithm.class, \"CombiningAlgorithm\");\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_OVERRIDES);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.DENY_UNLESS_PERMIT);\r\n\t\taddEEnumLiteral(combiningAlgorithmEEnum, CombiningAlgorithm.PERMIT_UNLESS_DENY);\r\n\r\n\t\tinitEEnum(operatorEEnum, Operator.class, \"Operator\");\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.GREATER_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.LESS_THAN_OR_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_EQUAL);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.NOT_SUBSET);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.SET_NOT_CONTAINS);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.REGEX);\r\n\t\taddEEnumLiteral(operatorEEnum, Operator.UNDEFINED);\r\n\r\n\t\tinitEEnum(attributeCategoryEEnum, AttributeCategory.class, \"AttributeCategory\");\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESS_SUBJECT);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.ACCESSED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.PARENT_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CHILD_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.INCLUDED_RESOURCE);\r\n\t\taddEEnumLiteral(attributeCategoryEEnum, AttributeCategory.CONSTANT);\r\n\r\n\t\tinitEEnum(ruleTypeEEnum, RuleType.class, \"RuleType\");\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.PERMIT);\r\n\t\taddEEnumLiteral(ruleTypeEEnum, RuleType.DENY);\r\n\r\n\t\t// Create resource\r\n\t\tcreateResource(eNS_URI);\r\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\t\teActorEClass.getESuperTypes().add(this.getEDomainSpecificEntity());\n\t\teItemEClass.getESuperTypes().add(this.getEDomainSpecificEntity());\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(eDomainSchemaEClass, EDomainSchema.class, \"EDomainSchema\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEDomainSchema_Cs(), this.getEControlSchema(), null, \"cs\", null, 0, 1, EDomainSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDomainSchema_Ds(), this.getEDataSchema(), null, \"ds\", null, 0, 1, EDomainSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eControlSchemaEClass, EControlSchema.class, \"EControlSchema\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEControlSchema_Actor(), this.getEActor(), null, \"actor\", null, 1, -1, EControlSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDataSchemaEClass, EDataSchema.class, \"EDataSchema\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getEDataSchema_Cs(), this.getEControlSchema(), null, \"cs\", null, 1, 1, EDataSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDataSchema_Item(), this.getEItem(), null, \"item\", null, 1, -1, EDataSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificEntityEClass, EDomainSpecificEntity.class, \"EDomainSpecificEntity\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificEntity_CommandPriority(), ecorePackage.getEInt(), \"commandPriority\", null, 0, 1, EDomainSpecificEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEDomainSpecificEntity_Cmd(), this.getEDomainSpecificCommand(), null, \"cmd\", null, 0, -1, EDomainSpecificEntity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificCommandEClass, EDomainSpecificCommand.class, \"EDomainSpecificCommand\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificCommand_CmdId(), ecorePackage.getEInt(), \"cmdId\", null, 0, 1, EDomainSpecificCommand.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eActorEClass, EActor.class, \"EActor\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEActor_KindInteraction(), this.getECoordinationBehavior(), \"kindInteraction\", null, 0, 1, EActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEActor_TypesControlled(), this.getEDomainSpecificType(), null, \"typesControlled\", null, 0, -1, EActor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eItemEClass, EItem.class, \"EItem\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEItem_ArisingBehavior(), this.getEArising(), \"arisingBehavior\", null, 0, 1, EItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getEItem_Type(), this.getEDomainSpecificType(), null, \"type\", null, 1, 1, EItem.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(eDomainSpecificTypeEClass, EDomainSpecificType.class, \"EDomainSpecificType\", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getEDomainSpecificType_InteractionBehavior(), this.getEInteractionBehavior(), \"interactionBehavior\", null, 0, 1, EDomainSpecificType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getEDomainSpecificType_Cardinality(), this.getECardinality(), \"cardinality\", null, 0, 1, EDomainSpecificType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize enums and add enum literals\n\t\tinitEEnum(eArisingEEnum, EArising.class, \"EArising\");\n\t\taddEEnumLiteral(eArisingEEnum, EArising.STATIC);\n\t\taddEEnumLiteral(eArisingEEnum, EArising.DYNAMIC);\n\n\t\tinitEEnum(eCardinalityEEnum, ECardinality.class, \"ECardinality\");\n\t\taddEEnumLiteral(eCardinalityEEnum, ECardinality.ONE);\n\t\taddEEnumLiteral(eCardinalityEEnum, ECardinality.MANY);\n\n\t\tinitEEnum(eInteractionBehaviorEEnum, EInteractionBehavior.class, \"EInteractionBehavior\");\n\t\taddEEnumLiteral(eInteractionBehaviorEEnum, EInteractionBehavior.SYNC);\n\t\taddEEnumLiteral(eInteractionBehaviorEEnum, EInteractionBehavior.ASYNC);\n\n\t\tinitEEnum(eCoordinationBehaviorEEnum, ECoordinationBehavior.class, \"ECoordinationBehavior\");\n\t\taddEEnumLiteral(eCoordinationBehaviorEEnum, ECoordinationBehavior.LOCAL);\n\t\taddEEnumLiteral(eCoordinationBehaviorEEnum, ECoordinationBehavior.DISTRIBUTED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public byte[] getContent();", "public String getContents() { return contents; }", "byte[] getContent();", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tEcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(oml2OTIProvenanceEClass, OML2OTIProvenance.class, \"OML2OTIProvenance\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getOML2OTIProvenance_OmlUUID(), this.getUUID(), \"omlUUID\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OmlIRI(), this.getOML_IRI(), \"omlIRI\", null, 0, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OtiID(), this.getOTI_TOOL_SPECIFIC_ID(), \"otiID\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OtiURL(), this.getOTI_TOOL_SPECIFIC_URL(), \"otiURL\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_OtiUUID(), this.getOTI_TOOL_SPECIFIC_UUID(), \"otiUUID\", null, 0, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEAttribute(getOML2OTIProvenance_Explanation(), theEcorePackage.getEString(), \"explanation\", null, 1, 1, OML2OTIProvenance.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\t// Initialize data types\n\t\tinitEDataType(uuidEDataType, String.class, \"UUID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(omL_IRIEDataType, String.class, \"OML_IRI\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(otI_TOOL_SPECIFIC_IDEDataType, String.class, \"OTI_TOOL_SPECIFIC_ID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(otI_TOOL_SPECIFIC_UUIDEDataType, String.class, \"OTI_TOOL_SPECIFIC_UUID\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEDataType(otI_TOOL_SPECIFIC_URLEDataType, String.class, \"OTI_TOOL_SPECIFIC_URL\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\n\t\t// Create annotations\n\t\t// http://www.eclipse.org/emf/2002/Ecore\n\t\tcreateEcoreAnnotations();\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tarrayOfStringEClass = createEClass(ARRAY_OF_STRING);\n\t\tcreateEAttribute(arrayOfStringEClass, ARRAY_OF_STRING__VALUES);\n\n\t\tcontainerEClass = createEClass(CONTAINER);\n\t\tcreateEAttribute(containerEClass, CONTAINER__NAME);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CONTAINERID);\n\t\tcreateEAttribute(containerEClass, CONTAINER__IMAGE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BUILD);\n\t\tcreateEAttribute(containerEClass, CONTAINER__COMMAND);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PORTS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__EXPOSE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__VOLUMES);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENVIRONMENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENV_FILE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__NET);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DNS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DNS_SEARCH);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CAP_ADD);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CAP_DROP);\n\t\tcreateEAttribute(containerEClass, CONTAINER__WORKING_DIR);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENTRYPOINT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__USER);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DOMAIN_NAME);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEM_LIMIT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_SWAP);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PRIVILEGED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__RESTART);\n\t\tcreateEAttribute(containerEClass, CONTAINER__STDIN_OPEN);\n\t\tcreateEAttribute(containerEClass, CONTAINER__INTERACTIVE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SHARES);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PID);\n\t\tcreateEAttribute(containerEClass, CONTAINER__IPC);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ADD_HOST);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MAC_ADDRESS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__RM);\n\t\tcreateEAttribute(containerEClass, CONTAINER__SECURITY_OPT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DEVICE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__LXC_CONF);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PUBLISH_ALL);\n\t\tcreateEAttribute(containerEClass, CONTAINER__READ_ONLY);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MONITORED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DISK_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DISK_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BANDWIDTH_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BANDWIDTH_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MONITORING_INTERVAL);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_MAX_VALUE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_MAX_VALUE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CORE_MAX);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SET_CPUS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SET_MEMS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__TTY);\n\t\tcreateEOperation(containerEClass, CONTAINER___CREATE);\n\t\tcreateEOperation(containerEClass, CONTAINER___STOP);\n\t\tcreateEOperation(containerEClass, CONTAINER___RUN);\n\t\tcreateEOperation(containerEClass, CONTAINER___PAUSE);\n\t\tcreateEOperation(containerEClass, CONTAINER___UNPAUSE);\n\t\tcreateEOperation(containerEClass, CONTAINER___KILL__STRING);\n\n\t\tlinkEClass = createEClass(LINK);\n\t\tcreateEAttribute(linkEClass, LINK__ALIAS);\n\n\t\tnetworklinkEClass = createEClass(NETWORKLINK);\n\n\t\tvolumesfromEClass = createEClass(VOLUMESFROM);\n\t\tcreateEAttribute(volumesfromEClass, VOLUMESFROM__MODE);\n\n\t\tcontainsEClass = createEClass(CONTAINS);\n\n\t\tmachineEClass = createEClass(MACHINE);\n\t\tcreateEAttribute(machineEClass, MACHINE__NAME);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_INSTALL_URL);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_OPT);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_INSECURE_REGISTRY);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_REGISTRY_MIRROR);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_LABEL);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_STORAGE_DRIVER);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_ENV);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_IMAGE);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_MASTER);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_DISCOVERY);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_STRATEGY);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_OPT);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_HOST);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_ADDR);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_EXPERIMENTAL);\n\t\tcreateEAttribute(machineEClass, MACHINE__TLS_SAN);\n\t\tcreateEOperation(machineEClass, MACHINE___STARTALL);\n\n\t\tvolumeEClass = createEClass(VOLUME);\n\t\tcreateEAttribute(volumeEClass, VOLUME__DRIVER);\n\t\tcreateEAttribute(volumeEClass, VOLUME__LABELS);\n\t\tcreateEAttribute(volumeEClass, VOLUME__OPTIONS);\n\t\tcreateEAttribute(volumeEClass, VOLUME__SOURCE);\n\t\tcreateEAttribute(volumeEClass, VOLUME__DESTINATION);\n\t\tcreateEAttribute(volumeEClass, VOLUME__MODE);\n\t\tcreateEAttribute(volumeEClass, VOLUME__RW);\n\t\tcreateEAttribute(volumeEClass, VOLUME__PROPAGATION);\n\t\tcreateEAttribute(volumeEClass, VOLUME__NAME);\n\n\t\tnetworkEClass = createEClass(NETWORK);\n\t\tcreateEAttribute(networkEClass, NETWORK__NETWORK_ID);\n\t\tcreateEAttribute(networkEClass, NETWORK__NAME);\n\t\tcreateEAttribute(networkEClass, NETWORK__AUX_ADDRESS);\n\t\tcreateEAttribute(networkEClass, NETWORK__DRIVER);\n\t\tcreateEAttribute(networkEClass, NETWORK__GATEWAY);\n\t\tcreateEAttribute(networkEClass, NETWORK__INTERNAL);\n\t\tcreateEAttribute(networkEClass, NETWORK__IP_RANGE);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPAM_DRIVER);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPAM_OPT);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPV6);\n\t\tcreateEAttribute(networkEClass, NETWORK__OPT);\n\t\tcreateEAttribute(networkEClass, NETWORK__SUBNET);\n\n\t\tmachinegenericEClass = createEClass(MACHINEGENERIC);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__ENGINE_PORT);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__IP_ADDRESS);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_KEY);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_USER);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_PORT);\n\n\t\tmachineamazonec2EClass = createEClass(MACHINEAMAZONEC2);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ACCESS_KEY);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__AMI);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__INSTANCE_TYPE);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__REGION);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ROOT_SIZE);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SECRET_KEY);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SECURITY_GROUP);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SESSION_TOKEN);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SUBNET_ID);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__VPC_ID);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ZONE);\n\n\t\tmachinedigitaloceanEClass = createEClass(MACHINEDIGITALOCEAN);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__ACCESS_TOKEN);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__IMAGE);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__REGION);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__SIZE);\n\n\t\tmachinegooglecomputeengineEClass = createEClass(MACHINEGOOGLECOMPUTEENGINE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__ZONE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__MACHINE_TYPE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__USERNAME);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__INSTANCE_NAME);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__PROJECT);\n\n\t\tmachineibmsoftlayerEClass = createEClass(MACHINEIBMSOFTLAYER);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__API_ENDPOINT);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__USER);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__API_KEY);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__CPU);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__DISK_SIZE);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__DOMAIN);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__HOURLY_BILLING);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__IMAGE);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__LOCAL_DISK);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PRIVATE_NET_ONLY);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__REGION);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PUBLIC_VLAN_ID);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PRIVATE_VLAN_ID);\n\n\t\tmachinemicrosoftazureEClass = createEClass(MACHINEMICROSOFTAZURE);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBSCRIPTION_ID);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBSCRIPTION_CERT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__ENVIRONMENT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__MACHINE_LOCATION);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__RESOURCE_GROUP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SIZE);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SSH_USER);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__VNET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBNET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBNET_PREFIX);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__AVAILABILITY_SET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__OPEN_PORT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__PRIVATE_IP_ADDRESS);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__NO_PUBLIC_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__STATIC_PUBLIC_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__DOCKER_PORT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__USE_PRIVATE_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__IMAGE);\n\n\t\tmachinemicrosofthypervEClass = createEClass(MACHINEMICROSOFTHYPERV);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__VIRTUAL_SWITCH);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__DISK_SIZE);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__STATIC_MAC_ADDRESS);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__VLAN_ID);\n\n\t\tmachineopenstackEClass = createEClass(MACHINEOPENSTACK);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLAVOR_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLAVOR_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IMAGE_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IMAGE_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__AUTH_URL);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__USERNAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__PASSWORD);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__TENANT_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__TENANT_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__REGION);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__ENDPOINT_TYPE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__NET_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__NET_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SEC_GROUPS);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLOATING_IP_POOL);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__ACTIVE_TIME_OUT);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__AVAILABILITY_ZONE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__DOMAIN_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__DOMAIN_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__INSECURE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IP_VERSION);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__KEYPAIR_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__PRIVATE_KEY_FILE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SSH_PORT);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SSH_USER);\n\n\t\tmachinerackspaceEClass = createEClass(MACHINERACKSPACE);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__USERNAME);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__API_KEY);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__REGION);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__END_POINT_TYPE);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__IMAGE_ID);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__FLAVOR_ID);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__SSH_USER);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__SSH_PORT);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__DOCKER_INSTALL);\n\n\t\tmachinevirtualboxEClass = createEClass(MACHINEVIRTUALBOX);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__DISK_SIZE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_DNS_RESOLVER);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__IMPORT_BOOT2_DOCKER_VM);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_CIDR);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_NIC_TYPE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_NIC_PROMISC);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_SHARE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_DNS_PROXY);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_VTX_CHECK);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__SHARE_FOLDER);\n\n\t\tmachinevmwarefusionEClass = createEClass(MACHINEVMWAREFUSION);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__DISK_SIZE);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__NO_SHARE);\n\n\t\tmachinevmwarevcloudairEClass = createEClass(MACHINEVMWAREVCLOUDAIR);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__USERNAME);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PASSWORD);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CATALOG);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CATALOG_ITEM);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__COMPUTE_ID);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CPU_COUNT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__DOCKER_PORT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__EDGEGATEWAY);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__VAPP_NAME);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__ORGVDCNETWORK);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PROVISION);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PUBLIC_IP);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__SSH_PORT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__VDC_ID);\n\n\t\tmachinevmwarevsphereEClass = createEClass(MACHINEVMWAREVSPHERE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__USERNAME);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__PASSWORD);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__COMPUTE_IP);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__CPU_COUNT);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DATACENTER);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DATASTORE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DISK_SIZE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__NETWORK);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__POOL);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__VCENTER);\n\n\t\tmachineexoscaleEClass = createEClass(MACHINEEXOSCALE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__URL);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__API_KEY);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__API_SECRET_KEY);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__INSTANCE_PROFILE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__IMAGE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__SECURITY_GROUP);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__AVAILABILITY_ZONE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__SSH_USER);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__USER_DATA);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__AFFINITY_GROUP);\n\n\t\tmachinegrid5000EClass = createEClass(MACHINEGRID5000);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__USERNAME);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__PASSWORD);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SITE);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__WALLTIME);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SSH_PRIVATE_KEY);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SSH_PUBLIC_KEY);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__IMAGE);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__RESOURCE_PROPERTIES);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__USE_JOB_RESERVATION);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__HOST_TO_PROVISION);\n\n\t\tclusterEClass = createEClass(CLUSTER);\n\t\tcreateEAttribute(clusterEClass, CLUSTER__NAME);\n\n\t\t// Create enums\n\t\tmodeEEnum = createEEnum(MODE);\n\t}", "public byte[] getContent() {\r\n return content;\r\n }", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(namedElementEClass, NamedElement.class, \"NamedElement\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getNamedElement_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, NamedElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(packageDeclarationEClass, PackageDeclaration.class, \"PackageDeclaration\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEAttribute(getPackageDeclaration_Name(), ecorePackage.getEString(), \"name\", null, 0, 1, PackageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\t\tinitEReference(getPackageDeclaration_Content(), this.getNamedElement(), null, \"content\", null, 0, -1, PackageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);\n\n\t\tinitEClass(referenceableEClass, Referenceable.class, \"Referenceable\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public void initializePackageContents() {\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Obtain other dependent packages\n\t\tUMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);\n\t\tTypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);\n\n\t\t// Create type parameters\n\n\t\t// Set bounds for type parameters\n\n\t\t// Add supertypes to classes\n\n\t\t// Initialize classes, features, and operations; add parameters\n\t\tinitEClass(textualRepresentationEClass, TextualRepresentation.class, \"TextualRepresentation\", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);\n\t\tinitEReference(getTextualRepresentation_Base_Comment(), theUMLPackage.getComment(), null, \"base_Comment\", null, 1, 1, TextualRepresentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\t\tinitEAttribute(getTextualRepresentation_Language(), theTypesPackage.getString(), \"language\", null, 1, 1, TextualRepresentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);\n\n\t\t// Create resource\n\t\tcreateResource(eNS_URI);\n\t}", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }", "public String getContent() {\n return this.content;\n }" ]
[ "0.6334801", "0.59363866", "0.5858752", "0.5789237", "0.5779264", "0.5765589", "0.57401276", "0.5720971", "0.56844", "0.5624543", "0.56126916", "0.560157", "0.5571077", "0.5507568", "0.5468502", "0.5462742", "0.54300946", "0.5429503", "0.5412906", "0.5412906", "0.5412906", "0.5412906", "0.5412906", "0.5412906", "0.54128003", "0.54061556", "0.5406106", "0.54035544", "0.53984755", "0.53984755", "0.53970575", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.5371268", "0.53620225", "0.53576195", "0.5354541", "0.53484964", "0.5343922", "0.5337537", "0.5331611", "0.53188276", "0.5314339", "0.5311613", "0.5311613", "0.5311613", "0.5311613", "0.5311613", "0.5311613", "0.5311613", "0.5311613", "0.53112113", "0.5305677", "0.52933556", "0.52929384", "0.52929384", "0.5288758", "0.5284614", "0.52796406", "0.52653015", "0.5261379", "0.52577955", "0.5254608", "0.52496", "0.5246339", "0.5236811", "0.5236811", "0.5236811", "0.5236548", "0.52286667", "0.5228212", "0.52273524", "0.5219484", "0.5208438", "0.52039254", "0.5203151", "0.520272", "0.5195732", "0.51952755", "0.51933557", "0.51918566", "0.5190151", "0.518842", "0.518842", "0.518842", "0.518842" ]
0.6696592
0
The symbolic name of the Atomos content.
String getSymbolicName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transient\n\tpublic String getContentName()\t{\n\t\treturn getContentDescription();\n\t}", "public String symbolic() {\n return parent + \"/\" + symbolic;\n }", "public String name() {\n return this.nam;\n }", "protected String getMetadataName() {\r\n\t\treturn METADATA_NAME;\r\n\t}", "public String getBundleSymbolicName() {\r\n Class<?> c = grammarAccess.getClass();\r\n return getBundleSymbolicName(c);\r\n }", "private String name() {\r\n return cls.getSimpleName() + '.' + mth;\r\n }", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public String getName()\n {\n return( file );\n }", "public String getName() {\n\t\tInteger inicio = indices.elementAt(0);\n\t\tInteger fin = (indices.size() > 1 ? indices.elementAt(1) : contenido.length());\n\t\treturn contenido.substring(inicio, fin-1);\n\t}", "public String getName() {\n\treturn (super.getName() + \".\" + stream.getName());\n }", "@Override\r\n\tpublic String getName() {\n\t\treturn \"C:/path/to/file/rdfSpecimen_2013-06-28.xml\";\r\n\t}", "@Override\n public Optional<String> getAlias() {\n String symbol = atom.symbol();\n if(!atom.isRSite() && !Elements.isElementSymbol(symbol)){\n return Optional.of(symbol);\n }\n return Optional.empty();\n }", "public String getName() {\r\n\t\treturn this.title;\r\n\t}", "public String getName() {\n return _file.getAbsolutePath();\n }", "public final String name() {\n\t\treturn name;\n\t}", "public String getBundleSymbolicName();", "@Override\r\n\tpublic String getName() {\r\n\t\treturn this.title;\r\n\t}", "String getBundleSymbolicName();", "@Override\n\tpublic java.lang.String getName() {\n\t\treturn _scienceApp.getName();\n\t}", "public String name() {\n this.use();\n\n return name;\n }", "public String getName() { return FilePathUtils.getFileName(getPath()); }", "@Override\n\tpublic String name() {\n\n\t\treturn NAME;\n\t}", "String getAbsoluteName() {\n return absoluteName;\n }", "public final String name() {\n return name;\n }", "public String getNameForm()\n {\n return schema.getNameForm();\n }", "@Override\n\tpublic String getSymbolName()\n\t{\n\t\tVariableDeclarationContext ctx = getContext();\n\t\tNameContextExt nameContextExt = (NameContextExt)getExtendedContext(ctx.name());\n\t\treturn nameContextExt.getFormattedText();\n\t}", "public String getName() {\n return aao.getName();\n }", "public String getName() {\n return \"\";\n }", "public String getName() {\n return \"\";\n }", "public String name() {\n return BPMNode.getId();\n }", "public final String name() {\n return node.getNodeName();\n }", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();", "public String getName();" ]
[ "0.6497903", "0.6274809", "0.61455095", "0.6113727", "0.60936147", "0.6080861", "0.60466605", "0.6040851", "0.60247964", "0.6008589", "0.59894025", "0.5977244", "0.59525615", "0.5949362", "0.59413034", "0.59369844", "0.593591", "0.5926377", "0.58927095", "0.589075", "0.5888513", "0.5887792", "0.58481145", "0.5845818", "0.584258", "0.58261216", "0.5823676", "0.5808845", "0.5808845", "0.580776", "0.5798929", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464", "0.5798464" ]
0.66811323
0
The version of the Atomos content.
Version getVersion();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getVersion () {\r\n return version;\r\n }", "public String getVersion()\n {\n return ver;\n }", "public String getVersion(){\r\n return version;\r\n }", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public String getVersion()\n {\n return version;\n }", "public String getVersion()\n {\n return version;\n }", "public String version() {\n return this.version;\n }", "public String version() {\n return this.version;\n }", "public String version() {\n return this.version;\n }", "public String version() {\n return this.version;\n }", "public String getVersion() {\r\n return version;\r\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion()\n {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public String getVersion() {\n return version;\n }", "public final String getVersion() {\n return version;\n }", "public CimString getVersion() {\n return version;\n }", "public static String getVersion() {\n\t\treturn version;\n\t}", "public String getVersion() {\n return _version;\n }", "public static String getVersion() {\n\t\treturn version;\r\n\t}", "public long getVersion() {\n return version;\n }", "public long getVersion() {\n return version;\n }", "public static final String getVersion() { return version; }", "public static final String getVersion() { return version; }", "public static String getVersion() {\r\n\t\treturn VERSION;\r\n\t}", "public String getVersion () {\n return this.version;\n }", "public String getVersion() {\n\t\treturn version;\n\t}", "public String getVersion() {\r\n\t\treturn version;\r\n\t}", "public int getVersion()\n {\n return info.getVersion().intValueExact();\n }", "public String getVersion() {\n\t\treturn _version;\n\t}", "public static String getVersion() {\n return version;\n }", "public static String getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public String getVersion() {\n\t\treturn (VERSION);\n\t}", "public Long getVersion() {\n return version;\n }", "public Long getVersion() {\n return version;\n }", "public Long getVersion() {\n return version;\n }", "public Long getVersion() {\n return version;\n }", "public String getVersion() {\n return this.version;\n }", "@java.lang.Override\n public long getVersion() {\n return instance.getVersion();\n }", "public java.lang.String getVersion() {\r\n return version;\r\n }", "public java.lang.String getVersion() {\n return version_;\n }", "@SuppressWarnings(\"unused\")\n private Long getVersion() {\n return version;\n }", "public final int getVersion() {\n return version;\n }", "public byte getVersion() {\n return version;\n }", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "public String getVersion()\n\t{\n\t\treturn \"$Date$\";\n\t}", "public CimString getFullVersion() {\n return fullVersion;\n }", "@java.lang.Override\n public long getVersion() {\n return version_;\n }", "public String getVer() {\r\n return this.ver;\r\n }", "public int getVersion() { return 1; }", "public long getVersion() {\r\n return this.version;\r\n }", "public Version getVersion();", "public Integer version() {\n return this.version;\n }", "public Integer getVer() {\n return ver;\n }", "public String getVersion()\r\n {\r\n return(\"Ver. 1.0\");\r\n }", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "int getVersion() {\n return mVersion;\n }", "public Integer getVersion() {\r\n return version;\r\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public default String getVersion() {\n return Constants.VERSION_1;\n }" ]
[ "0.730466", "0.7273078", "0.72613657", "0.72530776", "0.72530776", "0.72530776", "0.72530776", "0.72489274", "0.72489274", "0.7244212", "0.7244212", "0.7244212", "0.7244212", "0.72316104", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.7222123", "0.7217276", "0.720503", "0.7203748", "0.7203748", "0.71899736", "0.71868753", "0.7177573", "0.71761763", "0.71659666", "0.71582514", "0.71582514", "0.7154819", "0.7154819", "0.7150681", "0.71504676", "0.7149863", "0.71438277", "0.7141581", "0.71270216", "0.71204376", "0.71204376", "0.7103805", "0.7103805", "0.7103805", "0.7103805", "0.7103805", "0.70879644", "0.7079811", "0.7079811", "0.7079811", "0.7079811", "0.70728713", "0.70621306", "0.70521975", "0.7026942", "0.7020715", "0.7008778", "0.7002819", "0.69973534", "0.69973534", "0.69973534", "0.69973534", "0.69973534", "0.69973534", "0.69973534", "0.69973534", "0.69973534", "0.69973534", "0.69973534", "0.69908315", "0.6988125", "0.69744503", "0.6968781", "0.695656", "0.6955525", "0.6949285", "0.6940708", "0.6940679", "0.6935528", "0.6923102", "0.6923102", "0.6923102", "0.6923102", "0.6923102", "0.6923102", "0.6923102", "0.6923102", "0.6919431", "0.69115585", "0.69084895", "0.69084895", "0.69084895", "0.69084895", "0.69084895", "0.69084895", "0.6905643" ]
0.0
-1
The Atomos layer this Atomos content is in.
AtomosLayer getAtomosLayer();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLayer() {\r\n\t\treturn layer;\r\n\t}", "public int getLayer()\n\t{\n\t\treturn layer;\n\t}", "public Layer getLayer() {\n return layer;\n }", "public Layer getLayer() {\n\t\treturn layer;\n\t}", "public Layer getLayer() {\n return _layer;\n }", "int getLayer();", "public Layer.Layers getLayer();", "public final BaseDodlesViewGroup getActiveLayer() {\n if (activeLayer == null) {\n activeLayer = getScene();\n }\n\n return activeLayer;\n }", "public Layer getActiveLayer() {\n\t\treturn null;\n\t}", "@VisibleForTesting\n public SurfaceControl getWindowingLayer() {\n return this.mWindowingLayer;\n }", "public OverlayLayer getOverlayLayer () {\r\n\t\t\treturn _overlayLayer;\r\n \t}", "public OverlayLayer getOverlay(){\r\n\t\treturn overlayLayer_;\r\n\t}", "private IGraphicsContainer3D getGraphicsLayer() {\n\t\t\tILayer iLayer;\n\t\t\tboolean chkLyr = false;\n\t\t\ttry {\n\t\t\t\tint layerCount = ADAPSMain.getGlobeBean().getGlobeDisplay().getScene().getLayerCount();\n\t\t\t\tfor(int i=0;i< layerCount;i++){\n\t\t\t\t\tiLayer = ADAPSMain.getGlobeBean().getGlobeDisplay().getScene().getLayer(i);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} catch (AutomationException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}", "LayerType getLayerType() {\n return layerType;\n }", "public Layer getLayer( String name ) {\n return (Layer)layers.get( name );\n }", "public ArrayList<Layer> getLayers() {\r\n return this.layers;\r\n }", "@Override\n public ListIterator<BoardLayerView> getLayers() {\n return this.layers.listIterator();\n }", "@Override\n\tpublic int getGameLayer() {\n\t\treturn 0;\n\t}", "public Layer getLayer(String name) {\n if (layers == null)\n return null;\n return layers.get(name);\n }", "@Override\n FeatureMapLayer getLayer();", "@Override\n public ArrayList<BoardLayerView> getLayerArrayList() {\n return this.layers;\n }", "public PLayer getMapLayer() {\n return mapLayer;\n }", "public String getLayerId()\r\n {\r\n return myLayerId;\r\n }", "LinkLayer getLinkLayer();", "public Layer getFirstLayer() {\n \t\tif (0 == n_points) return this.layer;\n \t\tif (-1 == n_points) setupForDisplay(); //reload\n \t\tLayer la = this.layer;\n \t\tdouble z = Double.MAX_VALUE;\n \t\tfor (int i=0; i<n_points; i++) {\n \t\t\tLayer layer = layer_set.getLayer(p_layer[i]);\n \t\t\tif (layer.getZ() < z) la = layer;\n \t\t}\n \t\treturn la;\n \t}", "@Override\n public int getLayerPosition() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.LAYER_POSITION_);\n return ((Integer)retnValue).intValue ();\n }", "public static Layer getSelectedLayer(PlugInContext context) {\r\n return LayerTools.getSelectedLayer(context);\r\n }", "public int getRenderLayer() {\n\t\treturn renderLayer;\n\t}", "public Collection<OsmDataLayer> getAllLayers() {\n\t\treturn null;\n\t}", "@Override\n public BoardLayerView getLayer(int index) {\n if (index >= this.layers.size() || index < 0) {\n return null;\n }\n\n return this.layers.get(index);\n }", "public JLayeredPane getLayeredPane1() {\n return layeredPane1;\n }", "@Override\n public IFigure getContentPane() {\n return getLayer(PRIMARY_LAYER);\n }", "@Override\n\tpublic BaseLayer GetUnderLayer() {\n\t\tif (p_UnderLayer == null)\n\t\t\treturn null;\n\t\treturn p_UnderLayer;\n\t}", "@Override\n\tpublic String GetLayerName() {\n\t\treturn pLayerName;\n\t}", "public Layer getLayer(String layerName) {\r\n Integer layerID = this.layerNameToIDMap.get(layerName);\r\n return layerID != null ? this.layers.get(layerID) : null;\r\n }", "public List<DesignLayerNode> getLayerDeclarationNodes()\n {\n return info.getRootNode().layerDeclarationNodes;\n }", "@Override\n\tpublic int getMaximumLayer() {\n\t\treturn MAX_LAYER;\n\t}", "@Override\n public Layer getLayer(GPLayerBean key) {\n return this.layers.get(key);\n }", "public int getZIndex() {\n return internalGroup.getZIndex();\n }", "public Layer getElement(int index) {\n\t\treturn layers[index];\n\t}", "Layer getTopMostVisible();", "public EventLayer getEventLayer () {\r\n\t\t\treturn _eventLayer;\r\n \t}", "public SymbolLayer getSymbolLayer() {\n return _symbolLayer;\n }", "public Layer getLayer( String name, String serverAddress ) {\n Layer layer = null;\n int i = 0;\n while ( i < list.size() && layer == null ) {\n Layer tmp = (Layer)list.get( i );\n String s = tmp.getServer().getOnlineResource().toExternalForm();\n if ( tmp.getName().equals( name ) && s.equals( serverAddress ) ) {\n layer = tmp;\n }\n i++;\n }\n return layer;\n }", "Layer[] getLayers();", "public Range getLayerRange() {\r\n\t\treturn layerRange;\r\n\t}", "public int getOutputLayer() {\n int outputSize = 0;\n if(this.size() > 0) {\n return this.get(this.size()-1);\n }\n return outputSize;\n }", "public Layer getLayerByName(String layerName) {\r\n\t\tLayerList layers = getWWD().getModel().getLayers();\r\n\t\tfor(Layer aLayer: layers) {\r\n\t\t\tif(aLayer.getName().equals(layerName)) {\r\n\t\t\t\treturn aLayer;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.err.println(\"[MapPanel.getLayerByName(\"+layerName+\")] An installed layer with the requested name was not found! Returning null.\");\r\n\t\treturn null;\r\n\t}", "@DataClass.Generated.Member\n public @NonNull Set<VmsLayer> getLayers() {\n return mLayers;\n }", "public JLayeredPane getContainer(){\n\t\treturn contentPane;\n\t}", "@Override // com.android.server.wm.WindowContainer\n public SurfaceControl getAppAnimationLayer(@WindowContainer.AnimationLayer int animationLayer) {\n if (animationLayer == 1) {\n return this.mBoostedAppAnimationLayer;\n }\n if (animationLayer == 2) {\n return this.mHomeAppAnimationLayer;\n }\n if (animationLayer == 10) {\n return this.mAppHwFreeFormAnimationLayer;\n }\n if (animationLayer != 11) {\n return this.mAppAnimationLayer;\n }\n return this.mBoostedHwFreeFormAnimationLayer;\n }", "public Shape getZone()\n {\n return getLevel().getActorZone(this);\n }", "public BorderPane getRoot() {\n\t\treturn _root;\n\t}", "public BorderPane getRoot() {\n\t\treturn _root;\n\t}", "public PLayer getToolLayer() {\n return toolLayer;\n }", "public interface LayerContainer extends EventSource\n{\n\t/**\n\t * Returns a layer entity residing in this container.\n\t * If multiple layers with the same class are available,\n\t * the method returns one of them.\n\t * \n\t * @param layerClass Filter; {@code null} for default layer\n\t * @return Reference to layer or {@code null} is no layer for the filter exists\n\t */\n\tpublic Layer getLayer(Class<?> layerClass);\n\t\n\t/**\n\t * @param layerClass Filter; {@code null} for all layer entities\n\t * @return List of layers ({@code != null})\n\t */\n\tpublic Layer[] getLayers(Class<?> layerClass);\n\t\n\t/**\n\t * @return Number of registered layers\n\t */\n\tpublic int size();\n}", "public String getCartogramLayerName ()\n\t{\n\t\treturn mCartogramLayerName;\n\t}", "Layer createLayer();", "public final Integer getMaxLayerId() {\n return getNextNumberInList(getActiveScene().getLayers().toArray());\n }", "public void setLayer(int l)\n\t{\n\t\tlayer = l;\n\t}", "public Layer[] getLayers() {\n Layer[] cl = new Layer[list.size()];\n return (Layer[])list.toArray( cl );\n }", "public BorderPane getRoot() {\n\t\treturn root;\n\t}", "public Optional<ImageLayer> getActiveImageLayerOpt() {\n if (activeLayer instanceof ImageLayer) {\n ImageLayer imageLayer = (ImageLayer) activeLayer;\n return Optional.of(imageLayer);\n }\n return Optional.empty();\n }", "@Override\r\n public int getFXLayer()\r\n {\r\n return 3;\r\n }", "public Collection<Layer> getAllLayers() {\n return Collections.unmodifiableCollection(layers.values());\n }", "public Layer[] getLayers() {\n\t\tLayer[] copy = new Layer[layers.length];\n\t\tSystem.arraycopy(layers, 0, copy, 0, copy.length);\n\t\treturn copy;\n\t}", "@Override\n public Iterator<BoardLayerView> iterator() {\n return this.layers.iterator();\n }", "@Override\n public int getTotalLayers() {\n return this.layers.size();\n }", "public Meta_data_Layer() {\n\t\tlayerName=null;\n\t\tlayerSize=0;\n\t\tlayerColor=\"black\";\n\t}", "public boolean hasLayers() {\n\t\treturn false;\n\t}", "public int getLayerCount() {\n\t\treturn layers.length;\n\t}", "public OsmDataLayer getEditLayer() {\n\t\treturn null;\n\t}", "public Layover[] getLayovers() {\n return layovers.toArray(new Layover[0]).clone();\n }", "public CacheOverlay getParent(){\n return null;\n }", "public CoordinateSystem getCoordinateSystem() {\n System.out.println(\"BaseCatalog: getCoordinateSystem() \");\n CoordinateSystem cs = null;\n if (_layout.getMapElementCount() >0 ) {\n MapElement mapEle = (MapElement)_layout.getMapElements().next();\n cs = mapEle.getMap().getCoordinateSystem();\n }\n System.out.println(\"BaseCatalog: getCoordinateSystem() \" + cs);\n return cs;\n }", "public Layer getPrevLayer() {\r\n\t\treturn this.prevLayer;\r\n\t}", "public static UI_Layer getInstance() {\n if (_instance == null) {\n _instance = new UI_Layer();\n }\n return _instance;\n }", "public ImageLayer getActiveImageLayer() {\n checkInvariant();\n if (activeLayer instanceof ImageLayer) {\n ImageLayer imageLayer = (ImageLayer) activeLayer;\n return imageLayer;\n }\n throw new IllegalStateException(\"active layer is not image layer\");\n }", "BorderPane getRoot();", "URI location() {\n if (module.isNamed() && module.getLayer() != null) {\n Configuration cf = module.getLayer().configuration();\n ModuleReference mref\n = cf.findModule(module.getName()).get().reference();\n return mref.location().orElse(null);\n }\n return null;\n }", "public final Layers getData()\r\n {\r\n return _theData;\r\n }", "public Canvas getGameZone() {\n\t\treturn gz;\n\t}", "ILitePackCollection getRoot();", "public interface Layer {\n\t/**\n\t * @return the reference to the owning channel.\n\t */\n\tChannel channel();\n\n\tint layerId();\n\n\tLayer above();\n Layer below();\n\n\t/**\n\t * @return the geometry of the mixer fill. The coordinate system is between\n\t * 0.0 and 1.0 for both the width and the height.\n\t */\n\tGeometry fill();\n\n\t/**\n\t * @return the pixel mapped geometry of the mixer fill. The coordinate\n\t * system is mapped to match the video mode of the channel, so one\n\t * step in the coordinate system is exactly one pixel on the video\n\t * channel.\n\t */\n\tGeometry pixelFill();\n\n\t/**\n\t * @return the geometry of the mixer clipping. The coordinate system is\n\t * between 0.0 and 1.0 for both the width and the height.\n\t */\n\tGeometry clipping();\n\n\t/**\n\t * @return the pixel mapped geometry of the mixer clipping. The coordinate\n\t * system is mapped to match the video mode of the channel, so one\n\t * step in the coordinate system is exactly one pixel on the video\n\t * channel.\n\t */\n\tGeometry pixelClipping();\n\n\tPosition anchorPoint();\n Position pixelAnchorPoint();\n\n Geometry crop();\n Geometry pixelCrop();\n Corners perspective();\n Corners pixelPerspective();\n\n EaseableDouble rotation();\n\n BooleanProperty mipmapping();\n\n\tAdjustments adjustments();\n\n\tLevels levels();\n\tChromaKey chromaKey();\n\n\t/**\n\t * Load a producer directly in the layer foreground, without starting to\n\t * play.\n\t *\n\t * @param producer The producer to load.\n\t */\n\tvoid load(Producer producer);\n\tvoid load(Producer producer, Transition transition);\n\tvoid loadBg(Producer producer);\n\tvoid loadBg(Producer producer, boolean autoPlay);\n\tvoid loadBg(Producer producer, Transition transition);\n\tvoid loadBg(Producer producer, Transition transition, boolean autoPlay);\n\tvoid play(Producer producer);\n\tvoid play(Producer producer, Transition transition);\n\tvoid play();\n\tvoid pause();\n\tvoid stop();\n\tvoid clear();\n\tvoid clearMixer();\n\tvoid call(Call call);\n\tvoid callBg(Call call);\n\tvoid executeCustomCommand(String command, String parameters);\n\tvoid swap(Layer other, boolean transformsAlso);\n\t<R> R call(CallWithReturn<R> call);\n\t<R> R callBg(CallWithReturn<R> call);\n}", "public PortletCategory getTopLevelPortletCategory();", "@SideOnly(Side.CLIENT)\n\tpublic BlockRenderLayer getBlockLayer() {\n\t\treturn BlockRenderLayer.SOLID;\n\t}", "public static interface Layer {\n\t\t/** Return the size of this layer.\n\t\t * Note that rounded corners may fall outside of these insets;\n\t\t * that is why it is important that these layers always be painted\n\t\t * in the correct z-order to achieve the right result.\n\t\t */\n\t\tpublic Insets getInsets();\n\t\t\n\t\t/** Paint this layer.\n\t\t * \n\t\t * @param g the graphics to paint to.\n\t\t * @param x the left edge of the area to paint.\n\t\t * @param y the top edge of the area to paint.\n\t\t * @param width the width of the area to paint.\n\t\t * @param height the height of the area to paint.\n\t\t */\n\t\tpublic void paint(Graphics2D g,int x,int y,int width,int height);\n\t\t\n\t\t/** \n\t\t * @return a <code>String</code> capable of constructing this object.\n\t\t */\n\t\tpublic String getConstructionString();\n\t}", "public double getBorderCenterZ()\n {\n return borderCenterZ;\n }", "public void allLayers()\n\t{\n\t\tint totalLayers = this.psd.getLayersCount();\n\t\t\n\t\tLayer layer;\n\t\t\n\t\tfor (int i = totalLayers - 1; i >= 0; i--) {\n\t\t\tlayer = this.psd.getLayer(i);\n\t\t\t\n\t\t\tif (!layer.isVisible() || (layer.getType() == LayerType.NORMAL && layer.getWidth() == 0)) {\n\t\t\t\tthis.layersToRemove.add(layer);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tlayer.adjustPositionAndSizeInformation();\n\t\t\tthis.layerId++;\n\t\t\t\n\t\t\tif (LayerType.NORMAL == layer.getType()) {\n\t\t\t\t\n\t\t\t\tlayer.setUniqueLayerId(this.layerId);\n\t\t\t\tlayer.setGroupLayerId(0);\n\t\t\t\tlayer.setDepth(0);\n\t\t\t\t\n\t\t\t\tthis.layers.add(layer);\n\t\t\t\t\n\t\t\t} else if (LayerType.OPEN_FOLDER == layer.getType() || LayerType.CLOSED_FOLDER == layer.getType()) {\n\t\t\t\t\n\t\t\t\tlayer.setUniqueLayerId(this.layerId);\n\t\t\t\tlayer.setGroupLayerId(0);\n\t\t\t\tlayer.setDepth(0);\n\t\t\t\t\n\t\t\t\tthis.layers.add(layer);\n\t\t\t\t\n\t\t\t\tif (layer.getLayersCount() > 0) {\n\t\t\t\t\tthis.subLayers(layer, this.layerId, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<Layer> getImageLayers() {\n\t\tArrayList<Layer> layers = new ArrayList<Layer>();\n\t\t\n\t\tLayer layer;\n\t\t\n\t\tfor (int i = 0; i < this.layers.size(); i++) {\n\t\t\tlayer = this.layers.get(i);\n\t\t\t\n\t\t\tif (\n\t\t\t\t\t(\n\t\t\t\t\t\tlayer.getType() == LayerType.OPEN_FOLDER ||\n\t\t\t\t\t\tlayer.getType() == LayerType.CLOSED_FOLDER\n\t\t\t\t\t) \n\t\t\t\t\t\n\t\t\t\t\t||\n\t\t\t\t\t\n\t\t\t\t\tlayer.isTextLayer() ||\n\t\t\t\t\t\n\t\t\t\t\t(\n\t\t\t\t\t\tlayer.getWidth() == 1 ||\n\t\t\t\t\t\tlayer.getHeight() == 1\n\t\t\t\t\t)\n\t\t\t\t\t\n\t\t\t\t\t||\n\t\t\t\t\t\n\t\t\t\t\tlayer.isShapeLayer()\n\t\t\t\t\t\n\t\t\t\t\t||\n\t\t\t\t\t\n\t\t\t\t\tlayer.isImageSingleColored()\n\t\t\t) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tlayers.add(layer);\n\t\t}\n\t\t\n\t\treturn layers;\n\t}", "public PlacementOverlay getOverlay();", "@Override\n\tpublic Map<String, Map<Integer, List<String>>> getOverlayNetwork() throws TimeSeriesException {\n\t\tIConfig configurationService = ServiceFactory.getConfigurationService();\n\t\tMap<String, Map<Integer, List<String>>> overlayNetwork = configurationService.getOverlayNetwork(this.clusterName);\n\t\t//configurationService.close();\n\t\treturn overlayNetwork;\n\t}", "@Nullable\n public Border getBorder() {\n if (mImpl.hasBorder()) {\n return Border.fromProto(mImpl.getBorder());\n } else {\n return null;\n }\n }", "@SideOnly(Side.CLIENT)\r\n\tpublic EnumWorldBlockLayer getBlockLayer()\r\n\t{\r\n\t\treturn EnumWorldBlockLayer.CUTOUT_MIPPED;\r\n\t}", "public OverlayManager getOverlayManager()\r\n\t{\r\n\t\treturn mOverlayManager;\r\n\t}", "String getLayerShapeName();", "public ArrayList<ProtocolLayer> getListeLayer()\n {\n return listeLayer;\n }", "void addLayer(Layer layer, int whichLayer);", "public VectorI getEntryOffset() {\n\t\treturn new VectorI(dimensionCenterX - parentCenterX, 0, dimensionCenterZ - parentCenterZ);\n\t}", "public String getAllLayersAsList() {\n\t\treturn null;\n\t}" ]
[ "0.7215872", "0.7173563", "0.71144044", "0.70896804", "0.69716966", "0.6879764", "0.6820794", "0.6632068", "0.6545711", "0.65080315", "0.6482851", "0.6300518", "0.6258392", "0.61694545", "0.6157755", "0.61245966", "0.6099135", "0.6081174", "0.6080678", "0.6070736", "0.6061659", "0.601632", "0.5920685", "0.59113723", "0.58597046", "0.5858683", "0.58515775", "0.58088434", "0.5795087", "0.5791813", "0.5758555", "0.57523054", "0.5742652", "0.56491935", "0.564766", "0.56362695", "0.5629567", "0.5627656", "0.56146586", "0.5606232", "0.5596228", "0.55852157", "0.5561371", "0.5545434", "0.5537298", "0.55194604", "0.5510453", "0.5509596", "0.54624116", "0.5444324", "0.5442975", "0.542784", "0.5422575", "0.5422575", "0.5408576", "0.539931", "0.538333", "0.5370118", "0.53677833", "0.53583", "0.53568715", "0.5347632", "0.5324784", "0.53226024", "0.53041464", "0.5295564", "0.5292783", "0.5288977", "0.5286845", "0.5281563", "0.5272258", "0.5251101", "0.5242384", "0.52405393", "0.52373624", "0.5236984", "0.5236978", "0.52332133", "0.5225022", "0.52005595", "0.51970863", "0.51936924", "0.51899666", "0.518373", "0.5175591", "0.51750237", "0.5165378", "0.51574415", "0.5154939", "0.51342255", "0.5129753", "0.51213795", "0.5120648", "0.5117126", "0.5111246", "0.5100901", "0.5099755", "0.5091259", "0.50771797", "0.5075931" ]
0.75774217
0
Disconnects this Atomos content from the bundle location, if the bundle location is set. This method does nothing if this content is not connected.
void disconnect();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}", "public void disconnect() {\n\t\tdisconnect(true);\n\t}", "public void disconnect() {\n\t\tdisconnect(null);\n\t}", "public void disconnect() {\r\n\t\tif (connected.get()) {\r\n\t\t\tserverConnection.getConnection().requestDestToDisconnect(true);\r\n\t\t\tconnected.set(false);\r\n\t\t}\r\n\t}", "final public void disconnect() {\n \n _input.removeInputConnection();\n _output.removeConnection(this);\n\n \n }", "@Override\n public void Disconnect() {\n bReConnect = true;\n }", "public void disconnect() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mApplicationContext);\n prefs.edit().putBoolean(\"xmpp_logged_in\", false).commit();\n\n if (mConnection != null) {\n mConnection.disconnect();\n }\n\n mConnection = null;\n // Unregister the message broadcast receiver.\n if (uiThreadMessageReceiver != null) {\n mApplicationContext.unregisterReceiver(uiThreadMessageReceiver);\n uiThreadMessageReceiver = null;\n }\n }", "public void disconnect()\n\t{\n\t\toriginal = null;\n\t\tsource = null;\n\t\tl10n = null;\n\t}", "public void disconnect()\n {\n isConnected = false;\n }", "public void doDisconnect() {\n synchronized (getStreamSyncRoot()) {\n Object[] streams = streams();\n if (!(streams == null || streams.length == 0)) {\n for (Object stream : streams) {\n if (stream instanceof PulseAudioStream) {\n try {\n ((PulseAudioStream) stream).disconnect();\n } catch (IOException e) {\n }\n }\n }\n }\n }\n super.doDisconnect();\n }", "protected void disconnect() {\n\t\tif (false == DOM.getElementPropertyBoolean(this.getFrame(), \"__connected\")) {\r\n\t\t\tthis.onUnableToConnect();\r\n\t\t} else {\r\n\t\t\tthis.restart();\r\n\t\t}\r\n\t}", "public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void disconnect() {if(mEnable) mBS.disconnect();}", "public void disconnect() {\n try {\n theCoorInt.unregisterForCallback(this);\n theCoorInt = null;\n }\n catch (Exception e) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"closeSimManager\", \"Exception in unregistering Simulation\" +\n \"Manager from the CAD Simulator.\", e);\n }\n }", "public void disconnectSensor() {\n try {\n resultConnection.releaseAccess();\n } catch (NullPointerException ignored) {\n }\n }", "void disconnect() {\n connector.disconnect();\n // Unregister from activity lifecycle tracking\n application.unregisterActivityLifecycleCallbacks(activityLifecycleTracker);\n getEcologyLooper().quit();\n }", "public void mDisconnect() {\n try {\n if (oOutput!=null){\n oOutput.close();\n oOutput=null;}\n if (oInput!=null){\n oInput.close();\n oInput=null;}\n if (oSocket!=null) {\n if (oSocket.isConnected())\n mMsgLog(5,\"Disconnected\");\n oSocket.close();\n oSocket = null;\n }\n if (oDevice!=null){\n oDevice=null;\n }\n } catch (IOException e) {\n mErrMsg(\"Err:\"+e.toString());\n }\n mStateSet(kBT_Disconnected);\n }", "public void disconnect()\n {\n \tLog.d(TAG, \"disconnect\");\n\n \tif(this.isConnected) {\n \t\t// Disable the client connection if have service\n \t\tif(mLedService != null) {\n \t\t\tthis.disable();\n \t\t}\n \t\t\n \t\t// Unbind service\n mContext.unbindService(mServiceConnection);\n \n this.isConnected = false;\n \t}\n }", "public void disconnect()\n\t{\n\t\tif (isConnected)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvimPort.logout(serviceContent.getSessionManager());\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tlogger.trace(\"Failed to logout esx: \" + host, e);\n\t\t\t}\n\t\t}\n\t\tisConnected = false;\n\t}", "public void disconnect() {\n\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n\n if (outputStream != null) {\n outputStream.close();\n }\n\n if (socket != null ) {\n socket.close();\n connected = socket.isClosed();\n }\n } catch (IOException e) {\n logger.error(\"S7Client error [disconnect]: \" + e);\n }\n }", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "public void disconnect()\n\t{\n\t\t_active = false;\n\t\t_leader.setObjectHandler(null);\n\t\t_leader.close();\n\t\ttry\n\t\t{\n\t\t\t_pos.close();\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t// nothing to do here, doesn't matter\n\t\t}\n\t}", "@Override\n public void disconnect() {\n super.disconnect();\n if (playStateSubscription != null) {\n playStateSubscription.unsubscribe();\n playStateSubscription = null;\n }\n connected = false;\n }", "private void disconnect() {\n activityRunning = false;\n MRTClient.getInstance().doHangup();\n MRTClient.getInstance().removeClientListener(this);\n\n finish();\n }", "public void swigDirectorDisconnect() {\n this.swigCMemOwn = false;\n delete();\n }", "@Override\n\tpublic boolean disconnect() {\n\t\treturn false;\n\t}", "public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}", "protected void handleDisconnect()\n {\n RemotingRMIClientSocketFactory.removeLocalConfiguration(locator);\n }", "public void disconnect()\n {\n this.uri = null;\n this.userAddress = null;\n this.password = null;\n connected = false;\n }", "public final void disconnect() {\n synchronized (this.lock) {\n if (this.zzbur != null) {\n this.zzbur.disconnect();\n this.zzbur = null;\n Binder.flushPendingCommands();\n }\n }\n }", "public void disconnect() {\n\t\t\n\t}", "private void Disconnect() {\n //If the btSocket is busy\n if (btSocket!=null) {\n try {\n btSocket.close(); //close connection\n }\n catch (IOException e) {\n msg(\"Error\");\n }\n }\n finish(); //return to the first layout\n\n }", "@Override\r\n \tpublic void disconnect() {\n \t\tiframe.setSrc(\"\");\r\n\t\tbody = null;\r\n \t}", "public void disconnect() {}", "public void disconnect() throws OOBException {\n \t\tsession.disconnect();\n \t}", "public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }", "void deactivate(){\n \tthis.config.clear();\n\t\tlog.debug(bundleMarker,\"deactivating...\");\n\t}", "public void unregisterBundle(final Bundle bundle) throws Exception {\n\n\n\t\t// check if bundle has initial configuration\n\t\tfinal Iterator pathIter = PathEntry.getContentPaths(bundle);\n\t\tif (pathIter == null) {\n\t\t\tservices.debug(\"Bundle \"+bundle.getSymbolicName()+\" has no initial configuration\");\n\t\t\treturn;\n\t\t}\n\n\t\t// TODO : A boolean scr options if checked the configuration loaded by configurationloader is removed when the bundle contains remved. Now the configuuration stays untouched\n\t\t/*\n while (pathIter.hasNext()) {\n PathEntry path = (PathEntry)pathIter.next();\n Enumeration entries = bundle.getEntryPaths(path.getPath());\n\n if (entries != null) {\n while (entries.hasMoreElements()) {\n URL url = bundle.getEntry((String)entries.nextElement());\n if (canHandle(url)) {\n uninstall(url);\n }\n }\n }\n } */\n\n\t}", "private void disconnect() {\n if (mServiceConnection != null) {\n mContext.unbindService(mServiceConnection);\n }\n mServiceConnection = null;\n }", "@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}", "@Override\n public boolean disconnect(BluetoothDevice bluetoothDevice) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(Stub.DESCRIPTOR);\n boolean bl = true;\n if (bluetoothDevice != null) {\n parcel.writeInt(1);\n bluetoothDevice.writeToParcel(parcel, 0);\n } else {\n parcel.writeInt(0);\n }\n if (!this.mRemote.transact(9, parcel, parcel2, 0) && Stub.getDefaultImpl() != null) {\n bl = Stub.getDefaultImpl().disconnect(bluetoothDevice);\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n parcel2.readException();\n int n = parcel2.readInt();\n if (n == 0) {\n bl = false;\n }\n parcel2.recycle();\n parcel.recycle();\n return bl;\n }\n catch (Throwable throwable) {\n parcel2.recycle();\n parcel.recycle();\n throw throwable;\n }\n }", "public void deactivate(Bundle bundle) {\n if (! m_enabled) { return; }\n\n ComponentsAndInstances cai = m_registry.remove(bundle);\n if (cai != null) {\n cai.stop();\n }\n }", "@Override\r\n\tpublic void disconnect();", "@Override\n public boolean disconnectFromSensor() {\n return false;\n }", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect();", "public void disconnect() {\n\t\tfinal String METHOD = \"disconnect\";\n\t\tLoggerUtility.fine(CLASS_NAME, METHOD, \"Disconnecting from the IBM Watson IoT Platform ...\");\n\t\ttry {\n\t\t\tthis.disconnectRequested = true;\n\t\t\tmqttAsyncClient.disconnect();\n\t\t\tLoggerUtility.info(CLASS_NAME, METHOD, \"Successfully disconnected \"\n\t\t\t\t\t+ \"from the IBM Watson IoT Platform\");\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void disconnect() throws PersistenceMechanismException {\n\t\t\r\n\t}", "public void disconnect( ) {\n disconnect( \"\" );\n }", "public void disconnect() {\n if (connectCount.decrementAndGet() == 0) {\n LOG.trace(\"Disconnecting JGroupsraft Channel {}\", getEndpointUri());\n resolvedRaftHandle.channel().disconnect();\n }\n }", "@Override\n public void disconnect() {\n if(!isConnected)\n return;\n\n if(out!=null)\n out.close();\n\n if(in!=null) {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "protected void disconnected() {\n\t\tthis.model.setClient(null);\n\t}", "protected void onDisconnect() {}", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "@Override\n\tpublic void disconnect() {\n\t\t\n\t}", "public static void disconnect(){\n Session session = (Session)_sessionRef.get();\n if(session != null && session.isConnected()){\n session.disconnect();\n _sessionRef.set(null);\n }\n }", "public void disconnectFromAudio() {\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.DISCONNECT));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.DISCONNECT) {\n isDisconnecting = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n };\n }", "public void disconnect() {\r\n\t\trunning = false;\r\n\t}", "@FXML\r\n\tprivate void deconnecter()\r\n\t{\r\n\t\tchatModel.getConnectionEstablishedProperty().set(false);\r\n\t\tclient.closeClientSocket();\r\n\t\tPlatform.runLater(() -> ChatModel.getInstance().getStatusMessagesList()\r\n\t\t\t\t.add(\"Chat ended: you disconnected.\"));\r\n\t}", "public void disconnect() {\n SocketWrapper.getInstance(mContext).disConnect();\n }", "public void disconnect() {\n if (this.mIsConnected) {\n disconnectCallAppAbility();\n this.mRemote = null;\n this.mIsConnected = false;\n return;\n }\n HiLog.error(LOG_LABEL, \"Already disconnected, ignoring request.\", new Object[0]);\n }", "public void disconnect() {\r\n connection.quit();\r\n menuFrame.setVisible(true);\r\n chatFrame.clearMessages();\r\n chatFrame.setVisible(false);\r\n leaderboardFrame.setVisible(false);\r\n lobbyFrame.setVisible(false);\r\n }", "public void disconnect() {\n try {\n Socket socket = new Socket(\"127.0.0.1\",33333);\n ObjectOutputStream outputStream = new ObjectOutputStream(socket.getOutputStream());\n clientMain.clientData[1] = \"no\";\n outputStream.writeObject(clientMain.clientData);\n\n clientMain.showConnectionPage();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected void deactivate(ComponentContext componentContext) {\n componentContext.getBundleContext().removeBundleListener(this);\n\n if (this.initialSecurityLoader != null) {\n this.initialSecurityLoader.dispose();\n this.initialSecurityLoader = null;\n }\n }", "public void disconnect() {\n DatabaseGlobalAccess.getInstance().getEm().close();\n DatabaseGlobalAccess.getInstance().getEmf().close();\n }", "public void discardContent() {\n dispose();\n }", "public void disconnect() {\n\t\tif (con.isConnected()) {\n\t\t\tcon.disconnect();\n\t\t}\n\t}", "public void disconnect() {\n watchDog.terminate();\n synchronized (sync) {\n if (!connections.isEmpty()) {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n try {\n tconn.conn.rollback();\n tconn.conn.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n this.setChanged();\n this.notifyObservers(\"disconnect\");\n }", "public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}", "public boolean disconnect() {\n\t\ttry {\n\t\t\tthis.m.close();\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean disconnect() {\n if(!this.isConnected()) {\n return true;\n }\n try {\n this.bluetoothSocket.close();\n this.bluetoothSocket = null;\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n }\n return false;\n }", "public boolean disconnect() {\r\n\t\t\r\n\t\tString message;\r\n\t\t//ENTER YOUR CODE TO DISCONNECT\r\n\t\tif (isChatSessionOpened()){\r\n\t\t\tsendChatClosure();\r\n\t\t}\r\n\t\t\r\n\t\tmessage= \"106\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\tthis.connectedUser = null;\r\n\t\tthis.chatReceiver = null;\r\n\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public void disconnect() {\n try {\n if (socket != null)\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n isConnected = false;\n }", "@FXML\n public void dbDisconnect(){\n try{\n connectionStatus.setText(\"DBConnection\");\n disconnectButton.setVisible(false);\n alert.setTitle(\"Rozlaczenie z baza: \" + connectionManager.getConn().getMetaData().getDatabaseProductName() + \" \" + connectionManager.getConn().getMetaData().getDatabaseProductVersion());\n connectionManager.closeConnection();\n alert.setContentText(connectionManager.getConnectionMessage());\n alert.showAndWait();\n carModelList.removeAll(carModelList);\n carBrandList.removeAll(carBrandList);\n carEngineList.removeAll(carEngineList);\n carElementList.removeAll(carElementList);\n executeButton.setDisable(true);\n System.exit(0);\n\n }catch (SQLException e){\n e.getMessage();\n }\n }", "private void disconnect() {\n\n if (inStream != null) {\n try {inStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (outStream != null) {\n try {outStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (socket != null) {\n try {socket.close();} catch (Exception e) { e.printStackTrace(); }\n }\n }", "protected void afterDisconnect() {\n // Empty implementation.\n }", "@Override\n\tpublic void dismiss() {\n\t\tbaseAct.unregisterReceiver(mReceiver);\n\t\tsuper.dismiss();\n\t}", "@Override\n\t\t\tpublic void disconnected() {\n\t\t\t\ttoast(\"IOIO disconnected\");\n\t\t\t}", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "public void Disconnect(View view){\n Intent intent=new Intent(this,Activity_Connect.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);//clearing backstack to open connect page\n startActivity(intent);\n Toast.makeText(this, \"Device disconnected\", Toast.LENGTH_SHORT).show();\n finish();\n }", "@Override\n public abstract void disconnect();", "public void disconnect(){\n\t\tif(player!=null){\n\t\t\tplayer.getConnection().close();\n\t\t\t\n\t\t\t// we get no disconnect signal if we close the connection ourself\n\t\t\tnotifyHandlers(MessageFlag.DISCONNECTED);\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onDisconnectRemoteNode(String url) {\t\t\t\t\n\t\t\t}", "public void disconnect()\n {\n try\n {\n if ( m_wagon != null )\n {\n m_wagon.disconnect();\n }\n }\n catch ( ConnectionException e )\n {\n m_log.error( \"Error disconnecting Wagon\", e );\n }\n }", "@Override\n\t\tpublic void onDisconnect(Myo myo, long timestamp) {\n\t\t\t// Set the text color of the text view to red when a Myo\n\t\t\t// disconnects.\n\t\t\t// mTextView.setTextColor(Color.RED);\n\t\t\tmyos.remove(myo);\n\t\t\tconnectedMyo = null;\n\t\t}", "@Override\n public void deleted(String pid) {\n ServiceRegistration oldRegistration = registrations.remove(pid);\n if (bundleContext != null) {\n Connect connect = (Connect) bundleContext.getService(oldRegistration.getReference());\n try {\n connect.close();\n } catch (LibvirtException e) {\n LOG.error(\"Error closing libvirt connection\", e);\n }\n }\n if (oldRegistration != null) {\n oldRegistration.unregister();\n }\n }", "@Override\n public void disconnect() throws IOException\n {\n super.disconnect();\n reader = null;\n writer = null;\n lastReplyLine = null;\n replyLines.setSize(0);\n //设置为退出状态\n setState(DISCONNECTED_STATE);\n }", "@UnsupportedAppUsage\n public void close() {\n this.mProfileConnector.disconnect();\n }", "@Override\n\tprotected void UnloadContent()\n\t{\n\t\t// TODO: Unload any non ContentManager content here\n\t}", "public void disconnect() {\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n Debug.logError(e, MODULE);\n }\n }", "@Override\n public void disconnect() throws IOException\n {\n super.disconnect();\n _reader = null;\n __writer = null;\n _replyLines.clear();\n setState(IMAPState.DISCONNECTED_STATE);\n }", "private boolean disconnect() {\r\n\r\n try {\r\n\r\n if (mFolder.isOpen()) {\r\n mFolder.close(true);\r\n }\r\n\r\n mStore.close();\r\n // Disconnect from POP3 server succeeded!\r\n return true;\r\n }\r\n catch (Exception e) {\r\n // Unknown error when disconnecting from POP3 server\r\n return false;\r\n }\r\n\r\n }", "void onDisconnect();", "void onDisconnect();", "private void disconnect() {\n if (readerThread != null)\n readerThread.kill();\n if (writerThread != null)\n writerThread.kill();\n if (nonblockReader != null) {\n nonblockReader.close();\n }\n isConnected = false;\n }", "public CompletionStage<Void> disconnect() {\n\t\treturn this.finConnection.sendMessage(\"disconnect-from-channel\", FinBeanUtils.toJsonObject(this.routingInfo)).thenAccept(ack->{\n\t\t\tif (!ack.isSuccess()) {\n\t\t\t\tthrow new RuntimeException(\"error disconnecting channel client, reason: \" + ack.getReason());\n\t\t\t}\n\t\t});\n\t}", "private void disconnect() {\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\t\n\t\t// Notify the GUI\n \n\t\tif(cg != null)\n\t\t\tcg.connectionFailed();\n\t\t\t\n\t}" ]
[ "0.5747655", "0.5720477", "0.5677066", "0.5537148", "0.55091166", "0.54621416", "0.54356235", "0.5433318", "0.54277307", "0.54186946", "0.5410594", "0.5404657", "0.5393821", "0.5381666", "0.53731394", "0.5313801", "0.5310137", "0.5303972", "0.5302376", "0.5293633", "0.52868277", "0.5250142", "0.5243001", "0.52328056", "0.523176", "0.52111626", "0.5168398", "0.51571923", "0.5151849", "0.5119729", "0.50991315", "0.50909364", "0.5088059", "0.5079444", "0.50779885", "0.50618476", "0.5048409", "0.5032862", "0.50226027", "0.50186765", "0.5013682", "0.49936163", "0.49919248", "0.49909982", "0.49908096", "0.49908096", "0.49908096", "0.49908096", "0.4989375", "0.49855667", "0.49588528", "0.49425012", "0.494171", "0.4932618", "0.49318308", "0.49304187", "0.49304187", "0.49207237", "0.49207237", "0.4919251", "0.48964363", "0.48854572", "0.48784852", "0.48782676", "0.4877398", "0.48735303", "0.48443654", "0.4818621", "0.48146036", "0.48118508", "0.48110354", "0.47968084", "0.47940332", "0.4783274", "0.47781664", "0.47716147", "0.47617507", "0.47612157", "0.47443342", "0.47433847", "0.4732414", "0.4728577", "0.47021914", "0.4690058", "0.4685568", "0.4672158", "0.4668327", "0.46638379", "0.46571854", "0.46570033", "0.46512565", "0.46464157", "0.46449438", "0.46423638", "0.46415117", "0.46401754", "0.46393722", "0.46393722", "0.4637712", "0.4633908", "0.46327347" ]
0.0
-1
write your code in Java SE 8
static public int solution(int[] A) { HashSet <Integer> newDistList = new HashSet<Integer>(); for (int s = 0; s<A.length; s++){ newDistList.add(A[s]); } return newDistList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tnew Action() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void execute(String content) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(content);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}.execute(\"jdk1.8之前匿名内部类实现方式\");\r\n\t\t\r\n\t\t\r\n\t\t//lambda\r\n\t\tAction login=(String content)->{\r\n\t\t\tSystem.out.println(\"jdk1.8的lambda语法实现\");\r\n\t\t};\r\n\t\tlogin.execute(\"jdk1.8的lambda语法实现\");\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tnew Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSystem.out.println(\"Before JAVA 8, too much code for too little to do\");\r\n\t\t\t}\r\n\t\t}).start();\r\n\t\t\r\n\t\t// Java 8 way:\r\n\t\t\r\n\t\tnew Thread( () -> System.out.println(\"In Java 8, Lambda Expression rocks !!\") ).start();\r\n\t\t\r\n\t\tSystem.out.println(\"-----------*************************-------------\");\r\n\t\t\r\n\t\t// Iterating Over List Using Lambda Expressions\r\n\t\t\r\n\t\tList features = Arrays.asList(\"Lambdas\",\"Default Method\",\"Stream API\",\"DAte and Time API\");\r\n\t\t\r\n\t\tfeatures.forEach(n -> System.out.println(n));\r\n\r\n\t\tSystem.out.println(\"-----------*************************-------------\");\r\n\t\t\t\t\r\n\t\t// Even better use method reference feature of Java 8\r\n\t\t// method reference is denoted by :: ****double colon***** operator\r\n\t\t// looks similar to scope resolution operator of C++\r\n\t\t\r\n\t\tfeatures.forEach(System.out::println);\r\n\r\n\t}", "public static void main(String[] args) {\r\n\t\tSomeJava8Features obj = new SomeJava8Features();\r\n\r\n\t\t// StringJoiner\r\n\t\texampleStringJoiner();\r\n\t\t\r\n\t\t// Default\r\n\t\tint ary[] = {3,6,8,9,0};\r\n\t\tSystem.out.println(\"\\nsumOfGivenIntArray ... \" + obj.sumOfGivenIntArray(ary));\r\n\t\tobj.sayMore(\"Hello Rohini\");\r\n\t\t\r\n\t\t// ForEach & Lambda Expression\r\n\t\texampleForEach_FindMaximum(ary);\r\n\t\t\r\n\r\n\t}", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void level7() {\n }", "Compatibility compatibility();", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public static void main(String[] args) {\n throw new NotImplementedException();\n }", "public static void main(String[] args) {\n Foo foo = new Java8Default();\n foo.sumDefault(2,4);\n\n }", "@Test\n public void source8() throws Exception {\n ImmutableList<String> options = (GeneratedAnnotationsTest.isJdk9OrLater()) ? ImmutableList.of(\"--release\", \"8\") : ImmutableList.of(\"-source\", \"8\", \"-target\", \"8\");\n String generated = runProcessor(options, null);\n assertThat(generated).contains(GeneratedAnnotationsTest.JAVAX_ANNOTATION_GENERATED);\n assertThat(generated).doesNotContain(GeneratedAnnotationsTest.JAVAX_ANNOTATION_PROCESSING_GENERATED);\n }", "void compileToJava();", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public final void mo8775b() {\n }", "public static void main(String[] args) {\n\t\t//Até o java 7\n\t\tnew Thread(new Runnable() {\n\n\t\t @Override\n\t\t public void run() {\n\t\t System.out.println(\"Executando um Runnable\");\n\t\t }\n\n\t\t}).start();\n\t\t//A partir do java 8\n\t\tnew Thread(() -> System.out.println(\"Executando um Runnable\")).start();\n\t\t\n\t\t//iterando com java 8: classe anonima\n\t\ttexto.forEach(new Consumer<String>() {\n\t\t public void accept(String s) {\n\t\t System.out.println(s);\n\t\t }\n\t\t});\n\t\t//iterando com java 8: lambda\n\t\t//Essa sintaxe funciona para qualquer interface \n\t\t//que tenha apenas um método abstrato\n\t\ttexto.forEach((String s) -> {\n\t\t System.out.println(s);\n\t\t});\n\t\t//ou\n\t\ttexto.forEach((s) -> {\n\t\t System.out.println(s);\n\t\t});\n\t\t//ou\n\t\ttexto.forEach(s -> {\n\t\t System.out.println(s);\n\t\t});\n\t\t//ou\n\t\ttexto.forEach(s -> System.out.println(s));\n\t\t// Uma interface que possui apenas um método abstrato \n\t\t//é agora conhecida como interface funcional e pode ser utilizada dessa forma\n\t\t\n\t\t//Outro exemplo é o próprio Comparator. Se utilizarmos a forma \n\t\t//de classe anônima, teremos essa situação: \n\t\ttexto.sort(new Comparator<String>() {\n\t\t public int compare(String s1, String s2) {\n\t\t if (s1.length() < s2.length())\n\t\t return -1;\n\t\t if (s1.length() > s2.length())\n\t\t return 1;\n\t\t return 0;\n\t\t }\n\t\t});\n\t\t//ou com lambda\n\t\ttexto.sort((s1, s2) -> {\n\t\t if (s1.length() < s2.length())\n\t\t return -1;\n\t\t if (s1.length() > s2.length())\n\t\t return 1;\n\t\t return 0;\n\t\t});\n\t\t//ou\n\t\ttexto.sort((s1, s2) -> {\n\t\t return Integer.compare(s1.length(), s2.length());\n\t\t});\n\t\t//ou como há apenas um único statement, podemos remover as chaves\n\t\ttexto.sort((s1, s2) -> Integer.compare(s1.length(), s2.length()));\n\t}", "public void mo38117a() {\n }", "void mo57277b();", "public static void main(String[] args) {\n version1WhileLoop();\n version1DoWhileLoop();\n version1ForLoop();\n version2ForLoop();\n version3ForLoop();\n }", "public abstract boolean mo2163j();", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "private NativeSupport() {\n\t}", "private static IRIProvider makeProviderJDK() { return new IRIProviderJDK(); }", "public void mo21785J() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public static void generateCode()\n {\n \n }", "private UsingSwig() {\n\t}", "public static void main(String[] args) {\n\t\tlanceur8();\n\t}", "void mo1941j();", "public abstract void mo2624j();", "private final boolean updateState(java.lang.Object r7, java.lang.Object r8) {\n /*\n // Method dump skipped, instructions count: 101\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlinx.coroutines.flow.StateFlowImpl.updateState(java.lang.Object, java.lang.Object):boolean\");\n }", "void mo72113b();", "static void feladat7() {\n\t}", "void mo28306a();", "private static void cajas() {\n\t\t\n\t}", "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public static void main(String[] args) {\n\n\t\tUnaryOperator<Integer> func=x->x*7;\t\t\n\t\tint num=func.apply(10);\n\t\tSystem.out.println(num);\n\t\t\n\t\tFunction<Integer, Integer> func1=x->x*10;\n\t\tSystem.out.println(func1.apply(10));\n\t\t\n\t\tList<String> langList=new ArrayList<String>();\n\t\tlangList.add(\"Java\");\n\t\tlangList.add(\"Ruby\");\n\t\tlangList.add(\"Python\");\n\t\t\n\t\tSystem.out.println(langList);\n\t\t\n\t\tlangList.replaceAll(ele -> ele +\" Deeps\");\n\t\tSystem.out.println(langList);\n\t}", "void mo57278c();", "interface DefaultMethod extends SingleMethod {\r\n\tdefault public void myMethod() {\r\n\t\tSystem.out.println(\"from Java 1.8 version can have method with a body\");\r\n}\r\n}", "void mo80457c();", "public void mo21792Q() {\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 \n }", "public void mo21787L() {\n }", "public void method_4270() {}", "static void feladat8() {\n\t}", "public static void main() {\n \n }", "private void level6() {\n }", "void mo57275a();", "void mo80452a();", "private Quantify()\n {\n throw new UnsupportedOperationException(\"Instantiation of utility classes is not supported.\");\n }", "public void m9741j() throws cf {\r\n }", "@Before\n public void setUp() {\n Assume.assumeThat(JavaVersion.getMajorVersion(), Matchers.lessThanOrEqualTo(8));\n }", "private stendhal() {\n\t}", "void mo41083a();", "public static void main(String[] args) {\n\t\tisPolindrom(\"abcd\");\r\n\t\tfibJava8(2);\r\n\t\tfactJava8(5);\r\n\t}", "void m8368b();", "@Override\n\tpublic void implementionSeven(String[] args) throws Exception {\n\n\t}", "public void mo6081a() {\n }", "java.lang.String getS8();", "public void mo21879u() {\n }", "void mo119582b();", "public abstract void mo27385c();", "public abstract void mo70713b();", "public void mo21781F() {\n }", "public interface AnonymousClass1lE {\n void A7X(String str, String str2, String str3);\n\n void A7Z(String str, String str2, @Nullable Map<String, String> map);\n\n void A7b(String str, String str2, Throwable th, @Nullable Map<String, String> map);\n\n void A7d(String str, String str2, @Nullable Map<String, String> map);\n\n void A7f(String str, String str2);\n\n void A8G(String str, String str2, boolean z);\n\n boolean A9J(String str);\n}", "void mo41086b();", "public static void main(String[] args) {\n\n // Creating object of class in main() method\n JEP306_StritfpSample t = new JEP306_StritfpSample();\n\n // Here we have error of putting strictfp and\n // error is not found public static void main method\n System.out.println(t.sum());\n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "private void kk12() {\n\n\t}", "public static void main(String[] args) {\n //Ersetzt jetzt mal unseren Parser, Stell Dir vor\n // das Ding liest das Beispiel da oben ^^.\n final StatementNode[] statementNodes = readStatements();\n \n //Zustände:\n // - FillSymbolTable (was für Symbole [variablen, ...] gibt es)\n // - TypInferenz (Was für Typen haben die Expressions und sind die eingaben semantisch korrekt)\n // - CodeGenerierung oder Ausführung (ersetzen wir mit \"schreibe die Werte aller Variablen nach Ende der Ausführung\")\n \n \n final SymbolTabelle symbolTabelle = new SymbolTabelle();\n //IDEE 2:\n //Ich gebe Statements und Expressions nur eine Methode mit Visitor als Callback\n final StatementVisitorSymbolTabelle statementVisitorSymbolTabelle = new StatementVisitorSymbolTabelle(symbolTabelle);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorSymbolTabelle);\n }\n \n final StatementVisitorTypInferenz statementVisitorTypInferenz = new StatementVisitorTypInferenz(symbolTabelle);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorTypInferenz);\n }\n \n PseudoLaufContext laufContext = new PseudoLaufContext();\n final StatementVisitorCodeGen statementVisitorCodeGen = new StatementVisitorCodeGen(laufContext);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorCodeGen);\n }\n \n laufContext.druckeVariablen();\n \n //Zusammenfassung:\n //Reduktion des Problems darauf, den Code nur noch von einem Abhängig zu machen\n //Jetzt nur noch abhängig vom Typ des Statements\n \n \n //Problem hierbei:\n //Ich muss selbst angeben, in welchem Zustand ich bin\n //Code-Duplizierung\n }", "public static void main(String[] args) {\n \n \n \n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "void mo80455b();", "interface C15937b {\n /* renamed from: a */\n void mo13368a();\n\n /* renamed from: a */\n void mo13369a(int i, int i2, int i3, boolean z);\n\n /* renamed from: a */\n void mo13370a(int i, int i2, List<C15929a> list) throws IOException;\n\n /* renamed from: a */\n void mo13371a(int i, long j);\n\n /* renamed from: a */\n void mo13372a(int i, ErrorCode errorCode);\n\n /* renamed from: a */\n void mo13373a(int i, ErrorCode errorCode, ByteString byteString);\n\n /* renamed from: a */\n void mo13374a(boolean z, int i, int i2);\n\n /* renamed from: a */\n void mo13375a(boolean z, int i, int i2, List<C15929a> list);\n\n /* renamed from: a */\n void mo13376a(boolean z, int i, BufferedSource bufferedSource, int i2) throws IOException;\n\n /* renamed from: a */\n void mo13377a(boolean z, C15943j c15943j);\n }", "void mo88521a();", "void mo20141a();", "public static void main(String[] args) {\n \n \n \n \n }", "public final void mo51373a() {\n }", "private final boolean shouldProposeGenerics(IJavaProject project) {\n\t\treturn true;\n\t\t/*\n\t\tString sourceVersion;\n\t\tif (project != null)\n\t\t\tsourceVersion= project.getOption(JavaCore.COMPILER_SOURCE, true);\n\t\telse\n\t\t\tsourceVersion= JavaCore.getOption(JavaCore.COMPILER_SOURCE);\n\n\t\treturn sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0;\n\t\t*/\n\t}", "public static void main(String[] args) {\n way8();\n }", "private JacobUtils() {}", "void mo60893b();", "public interface JavaCode {\n\n /**\n * Get an unique identification code for an object\n * TODO: This method is not reliable as hash codes are not unique, should use an UUID generator singleton instead.\n *\n * @param obj the object\n * @return the unique identification code\n */\n static int getUniqueID(Object obj) {\n return obj.hashCode();\n }\n\n /**\n * Compiles this code. If an object implements both {@link JavaCode}\n * and {@link JavaExpression}, only one of this method and\n * {@link JavaExpression#compileExpression(Subroutine, JavaScope)} should be called.\n *\n * @param subroutine the subroutine which this code belongs to\n * @param parent the parent scope of this code\n * @throws JTAException if an error occurs\n */\n void compileCode(Subroutine subroutine, JavaScope parent) throws JTAException;\n}", "public void mo8738a() {\n }", "public void mo1972o() throws cf {\r\n }", "public static void main (String[] args) {import java.util.*;%>\n//&&&staticSymbol&&&<%import org.eclipse.emf.codegen.ecore.genmodel.*;%>\n//&&&staticSymbol&&&<%\n\n/**\n * Copyright (c) 2002-2010 IBM Corporation and others.\n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors:\n * IBM - Initial API and implementation\n */\n\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nGenPackage genPackage = (GenPackage)((Object[])argument)[0]; GenModel genModel=genPackage.getGenModel(); /* Trick to import java.util.* without warnings */Iterator.class.getName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nboolean isInterface = Boolean.TRUE.equals(((Object[])argument)[1]); boolean isImplementation = Boolean.TRUE.equals(((Object[])argument)[2]);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nString publicStaticFinalFlag = isImplementation ? \"public static final \" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%include(\"../Header.javajetinc\");%>\n//&&&staticSymbol&&&<%\nif (isInterface || genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getReflectionPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&package <%\n//&&&staticSymbol&&&=genPackage.getClassPackageName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addPseudoImport(\"org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EClass\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.addImport(\"org.eclipse.emf.ecore.EObject\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genPackage.hasJavaLangConflict() && !genPackage.hasInterfaceImplConflict() && !genPackage.getClassPackageName().equals(genPackage.getInterfacePackageName())) genModel.addImport(genPackage.getInterfacePackageName() + \".*\");\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.markImportLocation(stringBuffer);\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (isInterface) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * The <b>Factory</b> for the model.\n//&&&staticSymbol&&& * It provides a create method for each non-abstract class of the model.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&&<%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @see <%\n//&&&staticSymbol&&&=genPackage.getQualifiedPackageInterfaceName()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&/**\n//&&&staticSymbol&&& * <!-- begin-user-doc -->\n//&&&staticSymbol&&& * An implementation of the model <b>Factory</b>.\n//&&&staticSymbol&&& * <!-- end-user-doc -->\n//&&&staticSymbol&&& * @generated\n//&&&staticSymbol&&& */\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public class <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.impl.EFactoryImpl\")\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%> implements <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&public interface <%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%><%\nif (!genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%> extends <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EFactory\")\n//&&&staticSymbol&&&%><%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&{\n//&&&staticSymbol&&&<%\nif (genModel.hasCopyrightField()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.String\")\n//&&&staticSymbol&&&%> copyright = <%\n//&&&staticSymbol&&&=genModel.getCopyrightFieldLiteral()\n//&&&staticSymbol&&&%>;<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation && (genModel.isSuppressEMFMetaData() || genModel.isSuppressInterfaces())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%> eINSTANCE = init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isInterface && genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> INSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isInterface && !genModel.isSuppressInterfaces()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * The singleton instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=publicStaticFinalFlag\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genPackage.getFactoryInterfaceName()\n//&&&staticSymbol&&&%> eINSTANCE = <%\n//&&&staticSymbol&&&=genPackage.getQualifiedFactoryClassName()\n//&&&staticSymbol&&&%>.init();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates the default factory implementation.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&<%\nString factoryType = genModel.isSuppressEMFMetaData() ? genPackage.getFactoryClassName() : genPackage.getImportedFactoryInterfaceName();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> init()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%> the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> = (<%\n//&&&staticSymbol&&&=factoryType\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EPackage\")\n//&&&staticSymbol&&&%>.Registry.INSTANCE.getEFactory(<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%>.eNS_URI);\n//&&&staticSymbol&&&\t\t\tif (the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%> != null)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn the<%\n//&&&staticSymbol&&&=genPackage.getFactoryName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception exception)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.plugin.EcorePlugin\")\n//&&&staticSymbol&&&%>.INSTANCE.log(exception);\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genPackage.getImportedFactoryClassName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Creates an instance of the factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getFactoryClassName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tsuper();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic EObject create(EClass eClass)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eClass.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genClass.getClassifierID()\n//&&&staticSymbol&&&%>: return <%\n//&&&staticSymbol&&&*%%storeSymbol%%*0\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The class '\" + eClass.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (!genPackage.getAllGenDataTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic Object createFromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Override\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convertToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\tswitch (eDataType.getClassifierID())\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tcase <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getClassifierID()\n//&&&staticSymbol&&&%>:\n//&&&staticSymbol&&&\t\t\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tdefault:\n//&&&staticSymbol&&&\t\t\t\tthrow new IllegalArgumentException(\"The datatype '\" + eDataType.getName() + \"' is not a valid classifier\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genClass.isAbstract()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genClass.isDynamic()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = <%\n//&&&staticSymbol&&&=genClass.getCastFromEObject()\n//&&&staticSymbol&&&%>super.create(<%\n//&&&staticSymbol&&&=genClass.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%> <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%> = new <%\n//&&&staticSymbol&&&=genClass.getImportedClassName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getClassTypeArguments()\n//&&&staticSymbol&&&%>()<%\nif (genModel.isSuppressInterfaces() && !genPackage.getReflectionPackageName().equals(genPackage.getInterfacePackageName())) {\n//&&&staticSymbol&&&%>{}<%\n}\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genClass.getSafeUncapName()\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%>String <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>literal<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getCreatorBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(literal);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + literal + \"' is not a valid enumerator of '\" + <%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(literal); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(literal))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>(item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (literal == null) return <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=genDataType.getStaticValue(null)\n//&&&staticSymbol&&&%>;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { if (!genDataType.isPrimitiveType()) genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(literal);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = (<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null && <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(result)<%\n} else {\n//&&&staticSymbol&&&%>result<%\n}\n//&&&staticSymbol&&&%>, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>result != null || <%\n}\n//&&&staticSymbol&&&%>exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(literal);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn ((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal)).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, literal);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (!genPackage.isDataTypeConverters() && genModel.useGenerics() && genDataType.isUncheckedCast() && !genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, String initialValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%> result = <%\n//&&&staticSymbol&&&=((GenEnum)genDataType).getImportedInstanceClassName()\n//&&&staticSymbol&&&%>.get(initialValue);\n//&&&staticSymbol&&&\t\tif (result == null) throw new IllegalArgumentException(\"The value '\" + initialValue + \"' is not a valid enumerator of '\" + eDataType.getName() + \"'\");<%\n//&&&staticSymbol&&&=genModel.getNonNLS()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(2)\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genModel.getNonNLS(3)\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.getObjectInstanceClassName().equals(genBaseType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.ArrayList\")\n//&&&staticSymbol&&&%><%\nif (genModel.useGenerics()) {\n//&&&staticSymbol&&&%><<%=genItemType.getObjectType().getImportedParameterizedInstanceClassName()%>><%\n}\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%> stringTokenizer = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.StringTokenizer\")\n//&&&staticSymbol&&&%>(initialValue); stringTokenizer.hasMoreTokens(); )\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (String item : split(initialValue))\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genModel.getRuntimeVersion().getValue() < GenRuntimeVersion.EMF26_VALUE) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString item = stringTokenizer.nextToken();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(create<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.add(<%\nif (!genItemType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, item));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (initialValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%> result = null;\n//&&&staticSymbol&&&\t\tRuntimeException exception = null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType() && !genDataType.getObjectInstanceClassName().equals(genMemberType.getObjectInstanceClassName())) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>create<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>FromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult = <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.createFromString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (result != null && <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.util.Diagnostician\")\n//&&&staticSymbol&&&%>.INSTANCE.validate(eDataType, result, null, null))\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\treturn result;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (RuntimeException e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\texception = e;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (result != null || exception == null) return result;\n//&&&staticSymbol&&& \n//&&&staticSymbol&&&\t\tthrow exception;\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(initialValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\nif (!genDataType.isObjectType()) {\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n}\n//&&&staticSymbol&&&%>super.createFromString(eDataType, initialValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) { String eDataType = genDataType.getQualifiedClassifierAccessor();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>final <%\n}\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>it<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genDataType.getConverterBody(genModel.getIndentation(stringBuffer))\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); boolean isPrimitiveConversion = !genDataType.isPrimitiveType() && genBaseType.isPrimitiveType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (isPrimitiveConversion) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genBaseType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genBaseType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedFactoryInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\tif (instanceValue.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = instanceValue.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : instanceValue)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage().isDataTypeConverters()) { genItemType = genItemType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genItemType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)<%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (!genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getQualifiedInstanceClassName().equals(genDataType.getQualifiedInstanceClassName())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (genMemberType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue).<%\n//&&&staticSymbol&&&=genMemberType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>());\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectType().getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) { genMemberType = genMemberType.getObjectType();\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\ttry\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage().isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>new <%\n//&&&staticSymbol&&&=genMemberType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue)<%\n} else {\n//&&&staticSymbol&&&%>instanceValue<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>.getName());\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else if (genDataType.isPrimitiveType() && genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, new <%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>(instanceValue));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(<%\n//&&&staticSymbol&&&=eDataType\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useGenerics() && (genDataType.getItemType() != null || genDataType.isUncheckedCast()) && (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody())) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@SuppressWarnings(\"unchecked\")\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic String convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"org.eclipse.emf.ecore.EDataType\")\n//&&&staticSymbol&&&%> eDataType, Object instanceValue)\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&& <%\nif (genDataType instanceof GenEnum) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : instanceValue.toString();\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getBaseType() != null) { GenDataType genBaseType = genDataType.getBaseType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genBaseType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genBaseType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genBaseType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genBaseType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genDataType.getItemType() != null) { GenDataType genItemType = genDataType.getItemType(); \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasCreatorBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n} else { final String singleWildcard = genModel.useGenerics() ? \"<?>\" : \"\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%> list = (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.List\")\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=singleWildcard\n//&&&staticSymbol&&&%>)instanceValue;\n//&&&staticSymbol&&&\t\tif (list.isEmpty()) return \"\";\n//&&&staticSymbol&&&\t\t<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%> result = new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.StringBuffer\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\nString item; if (!genModel.useGenerics()) { item = \"i.next()\"; \n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.util.Iterator\")\n//&&&staticSymbol&&&%> i = list.iterator(); i.hasNext(); )\n//&&&staticSymbol&&& <%\n} else { item = \"item\";\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tfor (<%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.Object\")\n//&&&staticSymbol&&&%> item : list)\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&& <%\nif (genItemType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(convert<%\n//&&&staticSymbol&&&=genItemType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(<%\n//&&&staticSymbol&&&=genItemType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genItemType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, <%\n//&&&staticSymbol&&&=item\n//&&&staticSymbol&&&%>));\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\tresult.append(' ');\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&&\t\treturn result.substring(0, result.length() - 1);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.getMemberTypes().isEmpty()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(((<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue)<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>.<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (instanceValue == null) return null;\n//&&&staticSymbol&&& <%\nfor (GenDataType genMemberType : genDataType.getMemberTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tif (<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>.isInstance(instanceValue))\n//&&&staticSymbol&&&\t\t{\n//&&&staticSymbol&&&\t\t\ttry\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&& <%\nif (genMemberType.getGenPackage() == genPackage) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = convert<%\n//&&&staticSymbol&&&=genMemberType.getName()\n//&&&staticSymbol&&&%>ToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tString value = <%\n//&&&staticSymbol&&&=genMemberType.getGenPackage().getQualifiedEFactoryInternalInstanceAccessor()\n//&&&staticSymbol&&&%>.convertToString(<%\n//&&&staticSymbol&&&=genMemberType.getQualifiedClassifierAccessor()\n//&&&staticSymbol&&&%>, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t\t\tif (value != null) return value;\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t\tcatch (Exception e)\n//&&&staticSymbol&&&\t\t\t{\n//&&&staticSymbol&&&\t\t\t\t// Keep trying other member types until all have failed.\n//&&&staticSymbol&&&\t\t\t}\n//&&&staticSymbol&&&\t\t}\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\tthrow new IllegalArgumentException(\"Invalid value: '\"+instanceValue+\"' for datatype :\"+eDataType.getName());\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (genPackage.isDataTypeConverters() || genDataType.hasConverterBody()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isPrimitiveType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn instanceValue == null ? null : convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>(<%\n}\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getObjectInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue<%\nif (genModel.getComplianceLevel().getValue() < GenJDKLevel.JDK50) {\n//&&&staticSymbol&&&%>).<%\n//&&&staticSymbol&&&=genDataType.getPrimitiveValueFunction()\n//&&&staticSymbol&&&%>()<%\n}\n//&&&staticSymbol&&&%>);\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>((<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%>)instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genModel.useGenerics() && (genDataType.isArrayType() || !genDataType.getEcoreDataType().getETypeParameters().isEmpty() || genDataType.getEcoreDataType().getInstanceTypeName().contains(\"<\"))) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(instanceValue);\n//&&&staticSymbol&&& <%\n} else if (!genDataType.hasConversionDelegate() && genDataType.isArrayType()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\t// TODO: implement this method\n//&&&staticSymbol&&&\t\t// Ensure that you remove @generated or mark it @generated NOT\n//&&&staticSymbol&&&\t\tthrow new <%\n//&&&staticSymbol&&&=genModel.getImportedName(\"java.lang.UnsupportedOperationException\")\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&& <%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t\treturn super.convertToString(eDataType, instanceValue);\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n} else {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenClass genClass : genPackage.getGenClasses()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genClass.hasFactoryInterfaceCreateMethod()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return a new object of class '<em><%\n//&&&staticSymbol&&&=genClass.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genClass.getTypeParameters()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getImportedInterfaceName()\n//&&&staticSymbol&&&%><%\n//&&&staticSymbol&&&=genClass.getInterfaceTypeArguments()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genClass.getName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genPackage.isDataTypeConverters()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nfor (GenDataType genDataType : genPackage.getAllGenDataTypes()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\nif (genDataType.isSerializable()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>' corresponding the given literal.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param literal a literal of the data type.\n//&&&staticSymbol&&&\t * @return a new instance value of the data type.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genDataType.getImportedParameterizedInstanceClassName()\n//&&&staticSymbol&&&%> create<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(String literal);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns a literal representation of an instance of data type '<em><%\n//&&&staticSymbol&&&=genDataType.getFormattedName()\n//&&&staticSymbol&&&%></em>'.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @param instanceValue an instance value of the data type.\n//&&&staticSymbol&&&\t * @return a literal representation of the instance value.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tString convert<%\n//&&&staticSymbol&&&=genDataType.getName()\n//&&&staticSymbol&&&%>(<%\n//&&&staticSymbol&&&=genDataType.getImportedBoundedWildcardInstanceClassName()\n//&&&staticSymbol&&&%> instanceValue);\n//&&&staticSymbol&&&\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\nif (!isImplementation && !genModel.isSuppressEMFMetaData()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * Returns the package supported by this factory.\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @return the package supported by this factory.\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\t<%\n//&&&staticSymbol&&&=genPackage.getPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>();\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n} else if (isImplementation) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&&\tpublic <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> get<%\n//&&&staticSymbol&&&=genPackage.getBasicPackageName()\n//&&&staticSymbol&&&%>()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn (<%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>)getEPackage();\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&\t/**\n//&&&staticSymbol&&&\t * <!-- begin-user-doc -->\n//&&&staticSymbol&&&\t * <!-- end-user-doc -->\n//&&&staticSymbol&&&\t * @deprecated\n//&&&staticSymbol&&&\t * @generated\n//&&&staticSymbol&&&\t */\n//&&&staticSymbol&&& <%\nif (genModel.useClassOverrideAnnotation()) {\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\t@Deprecated\n//&&&staticSymbol&&& <%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&\tpublic static <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%> getPackage()\n//&&&staticSymbol&&&\t{\n//&&&staticSymbol&&&\t\treturn <%\n//&&&staticSymbol&&&=genPackage.getImportedPackageInterfaceName()\n//&&&staticSymbol&&&%>.eINSTANCE;\n//&&&staticSymbol&&&\t}\n//&&&staticSymbol&&&\n//&&&staticSymbol&&&<%\n}\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&} //<%\n//&&&staticSymbol&&&*%%storeSymbol%%*1\n//&&&staticSymbol&&&%>\n//&&&staticSymbol&&&<%\ngenModel.emitSortedImports();\n//&&&staticSymbol&&&%>\n\n}", "static void feladat9() {\n\t}", "@Override\n public boolean isVersionCodeCompatible(int version) {\n return true;\n }", "public void mo4359a() {\n }", "private static List<String> getJavasSourceCodeFiels(Map<String,Object> map){\r\n \t\t\r\n \t\t\r\n \t\tSystem.out.println(\"............\");\r\n \t\tLinkedList<String> list = new LinkedList<String>();\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \r\n \t\t\t//package...\r\n \t\t\tif(o instanceof IPackageFragment){\r\n \t\t\t\t//System.out.println(\"Package --> \" + key);\r\n \t\t\t\tkey = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tkey = PACKAGE + \"(\" + key + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t//class...\r\n \t\t\tif(o instanceof ICompilationUnit){\r\n \t\t\t\t//System.out.println(\"Class --> \" + key);\r\n \t\t\t\tString classname = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tString packagename = key.substring(key.indexOf(PACKAGE),key.indexOf('\\n',key.indexOf(PACKAGE)));\r\n \t\t\t\tkey = CLASS_WITH_MEMBERS + \"(\" + packagename + \",\" + classname + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}//method\r\n \t\t\tif(o instanceof IMethod){\r\n \t\t\t\tSystem.out.println(\"Methode --> \" + key);\r\n \t\t\t\tkey = METHOD + \"(\" + getQueryFromMethod((IMethod)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(o instanceof IField){\r\n \t\t\t\tSystem.out.println(\"Attribut --> \" + key);\r\n \t\t\t\tkey = FIELD + \"(\" + getQueryFromField((IField)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn list;\r\n \t\t\r\n \t\t\r\n \t\t/*\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \t\t\t//if(o instanceof ISourceAttribute)\r\n \t\t\t\t//System.out.println(\"attribute\");\r\n \t\t\t//if(o instanceof ISourceMethod)\r\n \t\t\t\t//System.out.println(\"methode\");\r\n \t\t\tif(o instanceof IPackageFragment) \r\n \t\t\t\tSystem.out.println(\"Package\");\r\n \t\t\tif(o instanceof ICompilationUnit)\r\n \t\t\t\tSystem.out.println(\"sour code file\");\r\n \t\t\t\t\r\n \t\t\t//\"oldquery or class('voller packagename', klassenname)\"\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\tif(o instanceof IField)\r\n \t\t\t\tSystem.out.println(\"Attribut\");\r\n \t\t\tif(o instanceof IType)\r\n \t\t\t\tSystem.out.println(\"classe also class ... in einem file\");\r\n \t\t\tif(o instanceof IMethod)\r\n \t\t\t\tSystem.out.println(\"Methode\");\r\n \t\t\tif(o instanceof IPackageFragmentRoot) \r\n \t\t\t\tSystem.out.println(\"jar package / src Ordner\");\r\n \t\t\tif(o instanceof IProject)\r\n \t\t\t\tSystem.out.println(\"Projekt Ordner\");\r\n \t\t\tif(o instanceof IClassFile)\r\n \t\t\t\tSystem.out.println(\"ClassFile\");\r\n \t\t\tif(o instanceof IAdaptable) //trieft auch auf viele ander sachen zu\r\n \t\t\t\tSystem.out.println(\"Libaraycontainer\");\r\n \t\t\tif(o instanceof IFile)\r\n \t\t\t\tSystem.out.println(\"file\"); //je nach ausgewlter ansicht knnen file auch *.java datein sein\r\n \t\t\tif(o instanceof IFolder)\r\n \t\t\t\tSystem.out.println(\"folder\");\r\n \t\t\tSystem.out.println(o.getClass());\r\n \t\t\t\r\n \t\r\n \t\t}\r\n \t\treturn null;\r\n \t\t*/\r\n \t}", "public void mo1531a() {\n }", "public void mo1976s() throws cf {\r\n }", "void mo119581a();", "static void feladat6() {\n\t}", "private void generateSolution() {\n\t\t// TODO\n\n\t}" ]
[ "0.5890391", "0.58054996", "0.57008785", "0.56167847", "0.54946315", "0.54761344", "0.524263", "0.52340496", "0.5233149", "0.52029705", "0.5160466", "0.51574665", "0.5143396", "0.5094738", "0.5084682", "0.5069909", "0.50661004", "0.50645214", "0.5064437", "0.50475377", "0.5041245", "0.5039573", "0.5037435", "0.50317824", "0.5007829", "0.500209", "0.49986184", "0.4996393", "0.49733046", "0.49654463", "0.49482828", "0.49374196", "0.49367213", "0.49362347", "0.4931423", "0.49300268", "0.49164099", "0.49096605", "0.4893169", "0.48904118", "0.4883474", "0.4883474", "0.4883474", "0.4883474", "0.4883474", "0.4883474", "0.4869394", "0.48675945", "0.4863796", "0.4849808", "0.48444158", "0.48439786", "0.48421556", "0.4838581", "0.48383453", "0.4837389", "0.4833218", "0.48310906", "0.4830076", "0.4827487", "0.481306", "0.48097232", "0.4807137", "0.48028547", "0.4801506", "0.47964317", "0.47952133", "0.479351", "0.4792214", "0.4791279", "0.47875714", "0.47851777", "0.47851777", "0.47834784", "0.47784257", "0.47747812", "0.47722042", "0.47722042", "0.47719148", "0.47705945", "0.47705132", "0.47681588", "0.47653475", "0.47629744", "0.47611335", "0.47570732", "0.47566834", "0.47548115", "0.4751401", "0.47484854", "0.47464594", "0.47460574", "0.47457317", "0.4742769", "0.47399607", "0.47344413", "0.47313395", "0.47252822", "0.47233605", "0.4721698", "0.47122636" ]
0.0
-1
Processes requests for both HTTP GET and POST methods.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}", "@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }" ]
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.639271", "0.63919044", "0.63919044", "0.63903785", "0.63903785", "0.63903785", "0.63903785", "0.63887113", "0.63887113", "0.6380285", "0.63783026", "0.63781637", "0.637677", "0.63761306", "0.6370491", "0.63626", "0.63626", "0.63614637", "0.6355308", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896", "0.63546896" ]
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //get the request from the flickrSearch.html // String key = request.getParameter("keywords"); // String keywords = URLEncoder.encode(key,"utf-8"); String keywords = request.getParameter("flickrKeywords"); System.out.println("SearchToFlickrServlet do post keyword++++++++++++++++++++++++++++>>" + keywords); try { List<FlickrItem> result = Flickr.getInstance().search(keywords, "1"); // System.out.print(result); JSONArray array = JSONArray.fromObject(result); if (array != null && array.size() > 0) { List<FlickrItem> selectFlickr = new ArrayList<FlickrItem>(); for (int i = 0; i < array.size(); i++) { JSONObject json = array.getJSONObject(i); FlickrItem ipg = new FlickrItem(json.getString("URL"),json.getString("thumb"),json.getString("title")); // FlickrItem m = new FlickrItem(json.getString("URL")); System.out.print(json.getString("URL")); selectFlickr.add(ipg); } request.setAttribute("selectFlickr", selectFlickr); request.getRequestDispatcher("flickrList.jsp").forward(request, response); } } catch (Exception e) { e.printStackTrace(); } finally { } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public String post();", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "public void postData() {\n\n\t}", "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\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}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\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}", "@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@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}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\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 void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public abstract boolean handlePost(FORM form, BindException errors) throws Exception;", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \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}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "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}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\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 }", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }", "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}", "public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}", "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }" ]
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197", "0.6515622", "0.6513045", "0.6512626", "0.6492367", "0.64817846", "0.6477479", "0.64725804", "0.6472099", "0.6469389", "0.6456206", "0.6452577", "0.6452577", "0.6452577", "0.6450273", "0.6450273", "0.6438126", "0.6437522", "0.64339423", "0.64253825", "0.6422238", "0.6420897", "0.6420897", "0.6420897", "0.6407662", "0.64041835", "0.64041835", "0.639631", "0.6395677", "0.6354875", "0.63334197", "0.6324263", "0.62959254", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6288832", "0.6280875", "0.6272104", "0.6272104", "0.62711537", "0.62616795", "0.62544584", "0.6251865", "0.62274224", "0.6214439", "0.62137586", "0.621211", "0.620854", "0.62023044", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61775357", "0.61638993", "0.61603814", "0.6148914", "0.61465937", "0.61465937", "0.614548", "0.6141879", "0.6136717", "0.61313903", "0.61300284", "0.6124381", "0.6118381", "0.6118128", "0.61063534", "0.60992104", "0.6098801", "0.6096766" ]
0.0
-1
given: the last tracking put the project above the threshold
@Test public void isWarning_warns_when_90_percent_was_just_reached() { when(expirationBefore.getExpirationPercent()).thenReturn(Optional.of(89)); when(expirationAfter.getExpirationPercent()).thenReturn(Optional.of(90)); // when boolean completionWarning = expirationThresholdViolationIndicator.isWarning("some-uuid"); // then assertTrue(completionWarning); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "private void logHitResult() {\n if (hitResult){\n targets--;\n if (targets == 0){\n taskComplete = true;\n }\n\n hitList[hitCount] = new Point(shotList[shotCount].x, shotList[shotCount].y);\n hitCount++;\n\n } else {\n missList[missCount]= new Point(shotList[shotCount].x, shotList[shotCount].y);\n missCount++;\n }\n }", "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "public void checkAddTrack() {\n this.trackList.sort();\n int time = this.timeTrankiManager.getTrackTimeOfNext();\n Date dateCorruent = this.timeTrankiManager.getTime();\n\n if (time > 0) {\n Track trackIndicated = this.trackList.getTracklessTime(time);\n if (trackIndicated != null) {\n this.trackListFinal.addTrack(dateCorruent, trackIndicated);\n this.trackList.removeTrack(trackIndicated);\n this.timeTrankiManager.addMinute(trackIndicated.getTime());\n } else {\n this.trackListFinal.addTrack(dateCorruent, \"Networking Event\");\n this.trackListFinal.addEmpityEspace();\n resetTimeTrackingManager();\n }\n \n } else if (time == -1) {\n this.trackListFinal.addTrack(dateCorruent, \"Lunch\");\n this.timeTrankiManager.addMinute(60);\n } else if (time == -2) {\n this.trackListFinal.addTrack(dateCorruent, \"Networking Event\");\n this.trackListFinal.addEmpityEspace();\n resetTimeTrackingManager();\n } else {\n this.trackListFinal.addTrack(dateCorruent, \"Networking Event\");\n resetTimeTrackingManager();\n }\n }", "public void setThreshold(float threshold){\n this.threshold = threshold;\n }", "public int getThreshold() {\n return threshold; \n }", "private void tooHigh() {\n if (this.hitPoints > 255) {\n System.out.println(\"You set the value too high! Setting it to 255\");\n this.hitPoints = 255;\n }\n }", "void setThreshold(float value);", "public int getThreshold()\n {\n return threshold;\n }", "public void setThreshold(double t)\n {\n this.threshold = t;\n }", "protected static void adaptivaeThresholdCalc() {\n\t\tif (triggerCount > 3) {\n\t\t\tthreshold /= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold up to \" + threshold);\n\t\t}\n\t\tif (triggerCount < 2) {\n\t\t\tthreshold *= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold down to \" + threshold);\n\t\t}\n\n\t\tif (threshold < 1.5f)\n\t\t\tthreshold = 1.5f;\n\t}", "public void setThresh(Long thresh) {\n\t\tthis.thresh = thresh;\n\t}", "public void prune(double belowThreshold) {\n \n for(T first : getFirstDimension()) {\n \n for(T second : getMatches(first)) {\n \n if(get(first, second)<belowThreshold) {\n set(first, second, 0.0);\n }\n \n }\n \n }\n \n }", "public void findTrack() {\n for (Node n : start_node.getLinks()) {\n precedenti.put(n, start_node);\n valori.put(n, calculator.calcDistance(n, start_node));\n }\n while (!da_collegare.isEmpty()) {\n Node piu_vicino = null;\n double min = Double.MAX_VALUE;\n for (Node n : da_collegare) {\n double dist = valori.get(n);\n if (dist - min < THRESHOLD) {\n min = dist;\n piu_vicino = n;\n }\n }\n double dist = valori.get(piu_vicino);\n for (Node n : piu_vicino.getLinks()) {\n double ricalc = dist + calculator.calcDistance(n, piu_vicino);\n if (ricalc - valori.get(n) < THRESHOLD) {\n precedenti.put(n, piu_vicino);\n valori.put(n, ricalc);\n }\n }\n da_collegare.remove(piu_vicino);\n }\n }", "public void finishProject(Subproject project) {\n\t\tfor(Player p:players) {\n\t\t\tif(p!=current) {\n\t\t\t\tp.lowerScore(project.getFinishField().getAmountSZT());\n\t\t\t\tcurrent.raiseScore(project.getFinishField().getAmountSZT());\n\t\t\t}\n\t\t}\n\t\tproject.finishProject();\n\t\tprojectsFinished.add(project);\n\t\tprojectsActive.remove(project);\n\t}", "@Test\n public void testThreshold() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n circuit.incrementAndCheckState(9L);\n assertFalse(\"Circuit opened before reaching the threshold\", circuit.incrementAndCheckState(1L));\n }", "public void setThreshold(int t) {\r\n\t\t\tthis.t = t;\r\n\t\t}", "public int getMyNearbyThreshold() {\n return myNearbyThreshold;\n }", "@Override\n\t\tpublic void onTrackLimitationNotice(int arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void onTrackLimitationNotice(int arg0) {\n\n\t\t\t}", "float getThreshold();", "public void commitExploration() {\n watermarkCommittedTick = watermarkGoalTick;\n }", "public void add2ChipsOnTheSameProject(Subproject project) {\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT());\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT());\n\t}", "protected abstract void thresholdReached() throws IOException;", "void modThresh1(int theValue){\n\t threshold1=10*theValue;\n\t // threshold2 = threshold1 + 1;\n\t println(\"mod t1: \" + threshold1) ;\n\t}", "private void manageTrackDelete(final AbstractTrack track)\n {\n if(currentTrack != null && currentTrack.equals(track)){\n sendStopTrackingEvent(currentTrack);\n currentTrack = null;\n selectBestTrack();\n }\n\n /*\n Collection<SimulatedTrack> tracks = trackManager.getCurrentTracks();\n for(SimulatedTrack existingTrack : tracks)\n {\n double trackScore = getTrackScore(existingTrack);\n if(trackScore>bestTrackScore)\n {\n bestTrackScore = trackScore;\n bestTrack = existingTrack;\n }\n }\n\n // cannot appear a simulated track with better score than a fused track\n if(bestTrack==null){\n Collection<SimulatedTrack> simulatedTracks = trackManager.getCurrentTracks();\n for(SimulatedTrack simulatedTrack : simulatedTracks)\n {\n double trackScore = getTrackScore(simulatedTrack);\n if(trackScore>bestTrackScore)\n {\n bestTrackScore = trackScore;\n bestTrack = simulatedTrack;\n }\n }\n }\n\n currentTrack = bestTrack;\n currentTrackScore = bestTrackScore;\n\n if(bestTrack==null)\n {\n // TODO implement a fail-safe mechanism to start panning for new tracks\n }\n */\n }", "public int GetCurrentTrack();", "public int getThreshold() {\n/* 340 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract void logLap(int currentLap);", "public void setThreshold(int threshold) {\n/* 357 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public float getThreshold() {\n return threshold;\n }", "public void checkForProject(int i) {\n if (wordsOfInput[i].indexOf('$') == 0) {\n if ((!containsStartDate || !containsStartTime) && index > i) {\n index = i;\n tpsIndex = i;\n }\n String project = wordsOfInput[i].substring(1);\n builder.project(project);\n }\n }", "public double getThreshold() {\r\n return threshold;\r\n }", "private void addThreshold(AbstractThreshold threshold,\n HashMap<StatusCategory, Number> tholds) {\n if (threshold instanceof ProjectComplianceThreshold) {\n tholds.put(StatusCategory.ProjectCompliance, ((ProjectComplianceThreshold) threshold).value);\n } else if (threshold instanceof FileComplianceThreshold) {\n tholds.put(StatusCategory.FileCompliance, ((FileComplianceThreshold) threshold).value);\n } else {\n tholds.put(StatusCategory.Messages, ((MessageComplianceThreshold) threshold).value);\n }\n }", "double getLowerThreshold();", "public void createAfterTrackEnterXMinRule(){\n ECAAgent.getDefaultECAAgent().createRule(\"XMinAfterEntrace_\"+name,afterTrackEnterXMin,\"MAKEFITS.Track.C_trueCond\",\"MAKEFITS.Track.A_XMinAfterTrackEnter\",1,CouplingMode.IMMEDIATE ,ParamContext.RECENT);\n// ECAAgent.getDefaultECAAgent().createRule(\"XMinAfterEntrace_\"+name,afterTrackEnterXMin,\"MAKEFITS.Track.C_trueCond\",\"MAKEFITS.Track.A_XMinAfterTrackEnter\",1,CouplingMode.IMMEDIATE ,Context.RECENT);\n }", "@Override\r\n public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n }", "@Override\r\n public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n }", "public void testPercentSwapFreeBelowThreshold() {\n String jvmOptions = null;\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setSwap(1000);\n jvmRun.getJvm().setSwapFree(945);\n jvmRun.doAnalysis();\n Assert.assertEquals(\"Percent swap free not correct.\", 94, jvmRun.getJvm().getPercentSwapFree());\n Assert.assertTrue(Analysis.INFO_SWAPPING + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_SWAPPING));\n }", "public double getThreshold() {\n return threshold;\n }", "public boolean isOverThreshold(){return isOverThreshold;}", "private void manageTrackUpdate(final AbstractTrack track)\n {\n selectBestTrack();\n }", "public static void main(String[] args) {\n int currentLimit = 45 ; // try 45 , 65 ,90\n\n if (currentLimit >70 ) {\n System.out.println(\" you are speeding more than 70 --POINT TAKEN !! \");\n } else if (currentLimit > 60 ) {\n //System.out.println(\"your speed is less thank 70 but more than 60 \");\n System.out.println(\"your are speeding more than 60 and less than 70 -- WARNING TAKEN\");\n } else {\n System.out.println(\"KEEP DRIVING\");\n }\n\n\n }", "@Override\n\tpublic int countProjectTeam() {\n\t\treturn 0;\n\t}", "double getUpperThreshold();", "public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n \t\t\t}", "public void countHits() {\nif (this.hitpoints <= 0) {\nreturn;\n}\nthis.hitpoints = this.hitpoints - 1;\n}", "@Override\n public void onTrackLimitationNotice(int arg0) {\n }", "public void setChipOnExistingProjectBurnSZTTwice(Subproject project) {\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT()*2);\n\t}", "private boolean passThreshold(Decision decision) {\n\t\tint type = decision.getChoiceModifiers().getThresholdType();\n\t\tint sign = decision.getChoiceModifiers().getThresholdSign();\n\t\tint value = decision.getChoiceModifiers().getThresholdValue();\n\t\tCounters counter = storyController.getStory().getPlayerStats();\n\t\tboolean outcome = false;\n\t\tint[] typeBase = {counter.getPlayerHpStat(),counter.getEnemyHpStat(),counter.getTreasureStat()};\n\t\tswitch(sign){\n\t\t\tcase(0):\n\t\t\t\tif(typeBase[type] < value){outcome = true;};\n\t\t\t\tbreak;\n\t\t\tcase(1):\n\t\t\t\tif(typeBase[type] > value){outcome = true;};\n\t\t\t\tbreak;\n\t\t\tcase(2):\n\t\t\t\tif(typeBase[type] == value){outcome = true;};\n\t\t\t\tbreak;\n\t\t}\n\t\treturn outcome;\n\t}", "@Override\r\n\tpublic void decreaseNbProjectilesWith(int amount) {\r\n\t\tif (getNbProjectiles() > 0)\t\r\n\t\t\tsetNbProjectiles( getNbProjectiles() - amount );\t\t\r\n\t}", "private void setupProjectIncompleteDripFlow() {\n List<DProjects> projects = AppConfig.getInstance().getdProjectsDAO().findAllInternal();\n if (projects == null || projects.isEmpty()) return;\n\n // 5 days old project created\n Date recentEnoughProjectAccessed = new Date(lastRunDate.getTime() - 5*ONE_DAY_MILISEC);\n\n //3 days old login.\n Date recentEnoughLoginTime = new Date(lastRunDate.getTime() - 3*ONE_DAY_MILISEC);\n\n // one notification per user is enough.\n Map<DUsers, DProjects> userProjectMap = new HashMap<>();\n // find projects which are not complete.\n for (DProjects project : projects) {\n\n // ignore old projects (accessed older than 5 days), they may be already in the flow.\n if (lastAccessTime(project).before(recentEnoughProjectAccessed)) {\n continue;\n }\n\n ProjectDetails details = Controlcenter.getProjectSummary(project);\n long totalDone = details.getTotalHitsDone() + details.getTotalHitsSkipped();\n // if > 70% done, then ignore.\n if (details.getTotalHits() == 0 || (totalDone/(double)details.getTotalHits()) < .70) {\n // Find all the project users.\n List<DProjectUsers> projectUsers = AppConfig.getInstance().getdProjectUsersDAO().findAllByProjectIdInternal(project.getId());\n if (projectUsers == null || projectUsers.isEmpty()) break;\n\n for (DProjectUsers projectUser : projectUsers) {\n //not sending to contributors as we add everyone to default projects,\n // would be sad to send them mail asking them to finish Default projects.\n if (projectUser.getRole() == DTypes.Project_User_Role.OWNER) {\n DUsers user = AppConfig.getInstance().getdUsersDAO().findByIdInternal(projectUser.getUserId());\n //if the user has not logged in anytime soon.\n if (user != null && user.getUpdated_timestamp().before(recentEnoughLoginTime)) {\n userProjectMap.put(user, project);\n }\n }\n }\n }\n }\n LOG.info(\"setupProjectIncompleteDripFlow userProjectMap = \" + userProjectMap.size());\n DripFlows.addToProjectIncompleteFlow(userProjectMap);\n\n }", "public void setTwoChipsInOneProject(Subproject project) {\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT());\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT());\n\t}", "private static void loopWithCheck(int upperLimit, QuitObject q) {\r\n\t\t\tint i;\r\n\t\t\tdouble temp;\r\n\t\t\t\r\n\t\t\tfor (i=0; i<upperLimit; i++) {\r\n\t\t\t\tif(q.getGreaterThan()==q.getLessThan()){\r\n\t\t\t\t\tq.setFinalCount(i+10000);\r\n\t\t\t\t\tq.setStatus(1);\r\n\t\t\t\t\tquitProgram(q);\r\n\t\t\t\t}\r\n\t\t\t\ttemp = Math.random();\r\n\t\t\t\tif (temp > 0.5) {\r\n\t\t\t\t\tq.addOneGreaterThan();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tq.addOneLessThan();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq.setFinalCount(i+10000);\r\n\t\t\tq.setStatus(2);\r\n\t\t\tquitProgram(q);\r\n\t\t\t\r\n\t\t}", "@Override\n\t\tpublic void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n\t\t}", "public double getPercentThreshold()\n {\n return percentThreshold;\n }", "Track(){\n\t}", "public void setThreshold(int aThreshold) {\n if(0 <= threshold && threshold <= 100) {\n threshold = aThreshold;\n } else {\n throw new IllegalArgumentException(\"Threshold must be in the interval <1..100> inclusive. Actual Value: \" + aThreshold);\n } \n }", "public double getLowThreshold(){\n return lowThreshold;\n }", "private boolean hasNumberThreshold() {\r\n return entity.getActualNumber() < entity.getTheoreticalNumber();\r\n }", "@Override\r\n public void onTrackLimitationNotice(int arg0) {\n\r\n }", "@Test\n void testTrackBallYMin() {\n goalie.TrackBallSetDirection(new Vector(45,187), new Vector(-0.5f,0.5f));\n // test if goalie direction is negative\n assertEquals(-1, goalie.getNext_direction().getY());\n }", "public Long getThresh() {\n\t\treturn thresh;\n\t}", "protected void checkUploadTasks(final int threshold)\n {\n if (this.getMapRouletteClient().getCurrentBatchSize() >= threshold)\n {\n this.uploadTasks();\n }\n }", "public void Team_B_3_Points(View v) {\n teamBScore = teamBScore + 3;\n displayForTeamB(teamBScore);\n }", "public void add2ChipsOnExistingProjects(Subproject projectA, Subproject projectB) {\n\t\tcurrent.raiseScore(projectA.setChip(current.removeChip()).getAmountSZT());\n\t\tcurrent.raiseScore(projectB.setChip(current.removeChip()).getAmountSZT());\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 int compareTo(Hit paramHit)\r\n/* 29: */ {\r\n/* 30: 30 */ if (this.hitTime < paramHit.hitTime) {\r\n/* 31: 31 */ return -1;\r\n/* 32: */ }\r\n/* 33: 32 */ if (this.hitTime > paramHit.hitTime) {\r\n/* 34: 33 */ return 1;\r\n/* 35: */ }\r\n/* 36: 35 */ return Long.compare(this.hub.accountId, paramHit.hub.accountId);\r\n/* 37: */ }", "public void addPointForTeamB(View view) {\n teamB_score = teamB_score + 1;\n if (ADVANTAGE == 1) {\n advantageMode(teamA_score, teamB_score);\n } else\n checkScore(teamA_score, teamB_score);\n }", "private int FindGold() {\n VuforiaLocalizer vuforia;\n\n /**\n * {@link #tfod} is the variable we will use to store our instance of the Tensor Flow Object\n * Detection engine.\n */\n TFObjectDetector tfod;\n \n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = CameraDirection.BACK;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n \n\n /**\n * Initialize the Tensor Flow Object Detection engine.\n */\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_GOLD_MINERAL, LABEL_SILVER_MINERAL);\n tfod.activate();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n return 3;\n }\n\n int Npos1=0;\n int Npos2=0;\n int Npos3=0;\n int NposSilver1=0;\n int NposSilver2=0;\n int NposSilver3=0;\n double t_start = getRuntime();\n\n\n while (opModeIsActive()) {\n \n if( (getRuntime() - t_start ) > 3.5) break;\n if (Npos1 >=5 || Npos2>=5 || Npos3>=5)break;\n if (NposSilver1>=5 && NposSilver2>=5)break;\n if (NposSilver2>=5 && NposSilver3>=5)break;\n if (NposSilver1>=5 && NposSilver3>=5)break;\n if (tfod != null) {\n // getUpdatedRecognitions() will return null if no new information is available since\n // the last time that call was made.\n List<Recognition> updatedRecognitions = tfod.getUpdatedRecognitions();\n if (updatedRecognitions != null) {\n //telemetry.addData(\"# Object Detected\", updatedRecognitions.size());\n //if (updatedRecognitions.size() == 3) {\n int goldMineralX = -1;\n int silverMineralX = -1;\n for (Recognition recognition : updatedRecognitions) {\n if (recognition.getLabel().equals(LABEL_GOLD_MINERAL)) {\n goldMineralX = (int) recognition.getLeft();\n telemetry.addData(\"gold position\", goldMineralX);\n if(goldMineralX<300) {\n Npos1++;\n telemetry.addData(\"loc\", 1);\n }else if(goldMineralX<800){\n Npos2++;\n telemetry.addData(\"loc\", 2);\n }else{\n Npos3++;\n telemetry.addData(\"loc\", 3);\n }\n } \n \n if (recognition.getLabel().equals(LABEL_SILVER_MINERAL)) {\n silverMineralX = (int) recognition.getLeft();\n telemetry.addData(\"silver position\", silverMineralX);\n if(silverMineralX<300) {\n NposSilver1++;\n telemetry.addData(\"loc\", 1);\n }else if(silverMineralX<300){\n NposSilver2++;\n telemetry.addData(\"loc\", 2);\n }else{\n NposSilver3++;\n telemetry.addData(\"loc\", 3);\n }\n } \n }\n telemetry.update();\n }\n }\n }\n\n\n if (tfod != null) {\n tfod.shutdown();\n }\n \n \n \n telemetry.addData(\"\", 2);\n \n if (Npos1>=5)return 1;\n if (Npos2>=5)return 2;\n if (Npos3>=5)return 3;\n if (NposSilver1>=5 && NposSilver2>=5)return 3;\n if (NposSilver2>=5 && NposSilver3>=5)return 1; \n if (NposSilver1>=5 && NposSilver3>=5)return 2;\n\n return 3;\n }", "public static void testTrackBreakdown(){\n\t\tImageJ imj = new ImageJ(ImageJ.NO_SHOW);\n\t\t\n//\t\tExperiment_Processor ep;\n\t\t\n//\t\tProcessingParameters prParam = new ProcessingParameters();\n//\t\tprParam.diagnosticIm = false;\n\t\t\n\t\t//Set src and dest\n\t\tString srcName = \"E:\\\\testing\\\\Java Backbone Fitting\\\\Fitting Params\\\\fullExptWithAreaSplit_0.7-1.4_otherPtSplit\\\\divergedTrackExp.prejav\";\n\t\tString dstBaseDir = \"E:\\\\testing\\\\Java Backbone Fitting\\\\Track Breakdown\\\\\";\n\t\t\n\t\tExperiment ex = new Experiment(srcName);\n\t\t//Find a long track\n\t\t\n//\t\tint len = 16726;\n\t\t//Find a track that's the length of the experiment\n//\t\tSystem.out.println(\"Finding full-experiment track in \"+ex.tracks.size()+\" tracks...\");\n\t\tTrack longTrack = null;\n//\t\tint i;\n//\t\tfor (i=0; (i<ex.tracks.size() && longTrack==null); i++){\n//\t\t\tif (ex.getTrackFromInd(i).points.size()==len) longTrack=ex.getTrackFromInd(i);\n//\t\t}\n//\t\tSystem.out.println(\"Found track (ind=\"+i+\")\");\n\t\t\n\t\t\n\t\tVector<Track> fits = new Vector<Track>();\n\t\tVector<Track> divs = new Vector<Track>();\n\t\tBackboneFitter bbf;\n\t\tfor (int j=0; j<ex.tracks.size(); j++){\n\t\t\t\n\t\t\tlongTrack = ex.tracks.get(j);\n\t\t\tint len = longTrack.points.size();\n\t\t\tint clipLen = 500;\n\t\t\tif (len>(clipLen*3)){\n\t\t\t\tVector<Track> fitTracks = new Vector<Track>();\n\t\t\t\tVector<Track> divTracks = new Vector<Track>();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Clipping and Fitting track...\");\n\t\t\t\tfor (int i=0; i<=len/clipLen; i++){\n\t\t\t\t\n\t\t\t\t\tbbf = new BackboneFitter();\n\t\t//\t\t\tbbf.clipEnds = true;\n\t\t\t\t\tint sf = 1+i*clipLen;\n\t\t\t\t\tint ef = (len<((i+1)*clipLen))? len-1: (i+1)*clipLen;\n\t\t\t\t\t\n\t\t\t\t\tTrack clipTrack = new Track(longTrack.getPoints().subList(sf, ef), i);\n\t\t\t\t\t\t\n\t\t\t\t\t///method no longer exists\n\t\t\t\t\t//bbf.fitTrack(clipTrack);\n\t\t\t\t\t///\n\t\t\t\t\t\n\t\t\t\t\tif (bbf.getTrack()!=null){\n\t\t\t\t\t\tfitTracks.add(bbf.getTrack());\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdivTracks.add(clipTrack);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfits.addAll(fitTracks);\n\t\t\t\tdivs.addAll(divTracks);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"...Done fitting: \"+fitTracks.size()+\"/\"+(fitTracks.size()+divTracks.size()+\" were fit properly\"));\n\t\t\t\t\n\t\t\t\tExperiment fitEx = new Experiment();\n\t\t\t\tfitEx.tracks = fitTracks;\n\t\t\t\tExperiment divEx = new Experiment();\n\t\t\t\tdivEx.tracks = divTracks;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tFile f = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\");\n\t\t\t\t\tif (!f.exists()) f.mkdirs();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tf = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\"+\"fitTrackExp.jav\");\n\t\t\t\t\tSystem.out.println(\"Saving fit track experiment to \"+f.getPath());\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tfitEx.toDisk(dos, null);\n\t\t\t\t\t\tdos.close();\n\t\t\t\t\t\tSystem.out.println(\"Done saving fit tracks\");\n\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tf = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\"+\"divergedTrackExp.prejav\");\n\t\t\t\t\tSystem.out.println(\"Saving error track experiment to \"+f.getPath());\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdivEx.toDisk(dos, null);\n\t\t\t\t\t\tdos.close();\n\t\t\t\t\t\tSystem.out.println(\"Done saving diverged tracks\");\n\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t\t\t}\n\t\t\n\t\t\t\t} catch (Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tExperiment fitEx = new Experiment();\n\t\tfitEx.tracks = fits;\n\t\tExperiment divEx = new Experiment();\n\t\tdivEx.tracks = divs;\n\t\t\n\t\ttry {\n\t\t\tFile f = new File(dstBaseDir+\"allFitTracks.jav\");\n\t\t\tSystem.out.println(\"Saving fit track experiment to \"+f.getPath());\n\t\t\ttry{\n\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\n\t\t\t\tfitEx.toDisk(dos, null);\n\t\t\t\tdos.close();\n\t\t\t\tSystem.out.println(\"Done saving fit tracks\");\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t}\n\t\t\t\n\t\t\tf = new File(dstBaseDir+\"allDivTracks.prejav\");\n\t\t\tSystem.out.println(\"Saving error track experiment to \"+f.getPath());\n\t\t\ttry{\n\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\n\t\t\t\tdivEx.toDisk(dos, null);\n\t\t\t\tdos.close();\n\t\t\t\tSystem.out.println(\"Done saving diverged tracks\");\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t}\n\n\t\t} catch (Exception e){\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\timj.quit();\n\t}", "public void onTrackLimitationNotice(int arg0) { }", "public void setProjlimit(Integer projlimit) {\n this.projlimit = projlimit;\n }", "public static void setThreshold(int threshold) {\n EvalutionUtil.ifFalseCrash(threshold>0, \n \"The threshold for the relevant documents in the ranking should be bigger than 0\");\n thres = threshold;\n }", "public boolean hasReachedGoal(List<Integer> collectTime);", "@Test\n public void testGetProjectileSpikeDelay() {\n assertEquals(0, proj.getProjectileSpikeDelay(), 0.001);\n }", "@Updatable\n public Double getThreshold() {\n return threshold;\n }", "public void testPercentSwapFreeAtThreshold() {\n String jvmOptions = null;\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setSwap(1000);\n jvmRun.getJvm().setSwapFree(946);\n jvmRun.doAnalysis();\n Assert.assertEquals(\"Percent swap free not correct.\", 95, jvmRun.getJvm().getPercentSwapFree());\n Assert.assertFalse(Analysis.INFO_SWAPPING + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_SWAPPING));\n }", "public void addFreezeFrame()\n{\n int index = Collections.binarySearch(_freezeFrames, getTime());\n if(index<0)\n _freezeFrames.add(-index - 1, getTime());\n}", "public void removeChipFromProjectAndPutItIntoAnother(Subproject fromProject, Subproject toProject) {\n\t\tif(fromProject.chipCanBeRemoved()){\n\t\t\tChip removedChip=fromProject.removeLastChip();\n\t\t\tcurrent.raiseScore(toProject.setChip(removedChip).getAmountSZT());\n\t\t}\n\t}", "void awardPoints(){\n if (currentPoints <= 100 - POINTSGIVEN) {\n currentPoints += POINTSGIVEN;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }\n }", "public void setGamesCompleted(int num)\r\n {\r\n //Check if the new average time is less than 0 before setting the new average time \r\n if(num < 0)\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING:You cannot assign a negative number of games completed\");\r\n }\r\n else \r\n {\r\n this.gamesCompleted = num; \r\n }//end if\r\n }", "public int getOldTrack() {\n return oldTrack;\n }", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }", "public float getTracking() {\n return tracking;\n }", "@Test\n public void testVaticanReportMorePlayersEvent() {\n Game game = new Game(2);\n FaithTrack faithTrack1 = game.getPlayers().get(0).getFaithTrack();\n FaithTrack faithTrack2 = game.getPlayers().get(1).getFaithTrack();\n\n // entering the first vatican section\n faithTrack1.increasePos(7);\n // triggers the first vatican report\n faithTrack2.increasePos(8);\n\n // putting a sleep in order to let the dispatcher notify the subscribers\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n assertEquals(2, faithTrack1.getBonusPoints()[0]);\n assertEquals(2, faithTrack2.getBonusPoints()[0]);\n }", "public void hardMode(Boolean hitResult) throws LocationHitException{\r\n\t\tint x = 0, y = 0;\r\n\t\tint mostProbable;\r\n\r\n\t\tif (minMax == 0) {\r\n\t\t\tmostProbable = 1;\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\ty = j;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tminMax = 1;\r\n\t\t} else {\r\n\t\t\tmostProbable = 1000;\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\ty = j;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tminMax = 0;\r\n\t\t}\r\n\r\n\t\tif (!hitResult && direction.isEmpty()) {\r\n\t\t\tboolean newHit = false;\r\n\t\t\twhile (!newHit) {\r\n\t\t\t\tif (Player.userGrid[x][y] == 2 || Player.userGrid[x][y] == 3) {\r\n\t\t\t\t\tprobabilityGrid[x][y] = -1;\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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}\r\n\t\t\t\t\t\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\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}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else\r\n\t\t\t\t\tnewHit = true;\r\n\t\t\t}\r\n\t\t} else if (direction.isEmpty()) {\r\n\t\t\thitFound.add(hitX + \";\" + hitY);\r\n\t\t\tcounter++;\r\n\t\t\tif ((hitX + 1) < 9) {\r\n\t\t\t\tx = hitX + 1;\r\n\t\t\t\ty = hitY;\r\n\t\t\t\tdirection = \"HorizontalFront\";\r\n\t\t\t} else {\r\n\t\t\t\tx = hitX - 1;\r\n\t\t\t\ty = hitY;\r\n\t\t\t\tdirection = \"HorizontalBack\";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (direction.equals(\"HorizontalFront\")) {\r\n\t\t\t\tint tempX = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\tint tempY = Integer.parseInt(hitFound.get(0).split(\";\")[1]);\r\n\t\t\t\tif (hitResult && (hitX + 1 < 9)) {\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tx = hitX + 1;\r\n\t\t\t\t\ty = hitY;\r\n\t\t\t\t} else if (tempX > 0) {\r\n\t\t\t\t\tx = tempX - 1;\r\n\t\t\t\t\ty = tempY;\r\n\t\t\t\t\tdirection = \"HorizontalBack\";\r\n\t\t\t\t} else if ((Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1 < 11)) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1;\r\n\t\t\t\t\tdirection = \"VerticalFront\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) - 1;\r\n\t\t\t\t\tdirection = \"VerticalBack\";\r\n\t\t\t\t}\r\n\t\t\t} else if (direction.equals(\"HorizontalBack\")) {\r\n\t\t\t\tif (hitResult && (hitX > 0)) {\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tx = hitX - 1;\r\n\t\t\t\t\ty = hitY;\r\n\t\t\t\t} else if (Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1 < 11 && counter < 2) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1;\r\n\t\t\t\t\tdirection = \"VerticalFront\";\r\n\t\t\t\t} else if (counter < 2) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) - 1;\r\n\t\t\t\t\tdirection = \"VerticalBack\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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}\r\n\t\t\t\t\t\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\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}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdirection = \"\";\r\n\t\t\t\t\thitFound.clear();\r\n\t\t\t\t\tcounter = 0;\r\n\t\t\t\t}\r\n\t\t\t} else if (direction.equals(\"VerticalFront\") && counter < 2) {\r\n\t\t\t\tif (hitResult && (hitY + 1 < 11)) {\r\n\t\t\t\t\tx = hitX;\r\n\t\t\t\t\ty = hitY + 1;\r\n\t\t\t\t} else if (Integer.parseInt(hitFound.get(0).split(\";\")[1]) > 0) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) - 1;\r\n\t\t\t\t\tdirection = \"VerticalBack\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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}\r\n\t\t\t\t\t\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\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}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdirection = \"\";\r\n\t\t\t\t\thitFound.clear();\r\n\t\t\t\t\tcounter = 0;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (hitResult && (hitY > 0) && counter < 2) {\r\n\t\t\t\t\tx = hitX;\r\n\t\t\t\t\ty = hitY - 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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}\r\n\t\t\t\t\t\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\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}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdirection = \"\";\r\n\t\t\t\t\thitFound.clear();\r\n\t\t\t\t\tcounter = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tprobabilityGrid[x][y] = -1;\r\n\t\thitX = x;\r\n\t\thitY = y;\r\n\r\n\t\tint hitCoord[] = { x, y };\r\n\t\tsetCoords(hitCoord);\r\n\r\n\t\tif (Player.userGrid[x][y] == 1) {\r\n\t\t\t// change the grid value from 1 to 2 to signify hit\r\n\t\t\tPlayer.userGrid[x][y] = 2;\r\n\t\t\tString coordx = Integer.toString(x);\r\n\t\t\tString coordy = Integer.toString(y);\r\n\t\t\tif(!time1) {\r\n\t\t\t\ttimea=java.lang.System.currentTimeMillis();\r\n\t\t\t\ttime1=!time1;\r\n\t\t\t}else if(!time2) {\r\n\t\t\t\ttimeb=java.lang.System.currentTimeMillis();\r\n\t\t\t\t\ttime2=!time2;\r\n\t\t\t}else {\r\n\t\t\t\tdouble t=timeb-timea;\r\n\t\t\t\tif(t<3000) {\r\n\t\t\t\t\tsetScore(20);\r\n\t\t\t\t}\r\n\t\t\t\ttime1=false;\r\n\t\t\t\ttime2=false;\r\n\t\t\t\ttimea=0;\r\n\t\t\t\ttimeb=0;\r\n\t\t\t\t\r\n\t\t\t}//if time between consecutive hit is less than 3 seconds ,then bonus score\r\n\t\t\tsetScore(10);\r\n\t\t\tPlayer.coordinatesHit.add(coordx + \",\" + coordy);\r\n\t\t\tsetReply(\"It's a Hit!!!!!\");\r\n\t\t} else if (Player.userGrid[x][y] == 0) {\r\n\t\t\tPlayer.userGrid[x][y] = 3;\r\n\t\t\tsetScore(-1);\r\n\t\t\tsetReply(\"It's a miss!!!!!\");\r\n\t\t} else if (Player.userGrid[x][y] == 2 || Player.userGrid[x][y] == 3) {\r\n\t\t\tsetReply(\"The location has been hit earlier\");\r\n\t\t\t//throw new LocationHitException(\"The location has been hit earlier\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Override public void postGlobal() {\n for(int i=1;i<_chkMaxs.length;++i)\n _chkMaxs[i] = _chkMaxs[i-1] > _chkMaxs[i] ? _chkMaxs[i-1] : _chkMaxs[i];\n }", "@Override\r\n\tpublic void setThresholds(int itemthreshold, int timethreshold) {\n\t\t\r\n\t}", "private void derivedTask(Task task) {\r\n if (task.aboveThreshold()) {\r\n float budget = task.getBudget().singleValue();\r\n float minSilent = parameters.SILENT_LEVEL / 100.0f;\r\n if (budget > minSilent)\r\n report(task.getSentence(), false); // report significient derived Tasks\r\n newTasks.add(task);\r\n }\r\n }", "private int backtrack(Deplacement depl, Couleur couleurJoueur) {\n\t\tint maxBack = depl.size();\n\t\tfor(int i = 0; i < Constantes.N; i++) {\n\t\t\tfor(int j = 0; j < Constantes.N; j++) {\n\t\t\t\tdepl.add(new Position(i,j));\n\t\t\t\tif(estValide(depl, couleurJoueur)) {\n\t\t\t\t\tint val = backtrack(depl, couleurJoueur);\n\t\t\t\t\tif(val > maxBack) {\n\t\t\t\t\t\tmaxBack = val;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdepl.remove(depl.size() - 1);\n\t\t\t}\n\t\t}\n\t\treturn maxBack;\n\t}", "public void Team_A_3_Points(View v) {\n teamAScore = teamAScore + 3;\n displayForTeamA(teamAScore);\n }", "public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }", "public void setTrack(String newTrack)\n\t{\n\t\tthis.bgm = newTrack;\n\t}", "private void projectWeekAnxiety() {\n increaseStat(Stat.ANXIETY, 10);\n }", "public void setMaxTrackingLostTime(long delta) {\n\t\tthis.maxTrkLostFor = delta;\t\n\t\tlogger.create().info().level(2).extractCallInfo()\n\t\t\t.msg(\"Max tracking lost time set to: \"+(delta/1000)+\"s\").send();\n\t}", "void projectFound( String key ){\n projectInProgress = new Project();\n }", "@Override\n\tboolean allow() {\n\t\tlong curTime = System.currentTimeMillis()/1000 * 1000;\n\t\tlong boundary = curTime - 1000;\n\t\tsynchronized (log) {\n\t\t\t//1. Remove old ones before the lower boundary\n\t\t\twhile (!log.isEmpty() && log.element() <= boundary) {\n\t\t\t\tlog.poll();\n\t\t\t}\n\t\t\t//2. Add / log the new time\n\t\t\tlog.add(curTime);\n\t\t\tboolean allow = log.size() <= maxReqPerUnitTime;\n\t\t\tSystem.out.println(curTime + \", log size = \" + log.size()+\", allow=\"+allow);\n\t\t\treturn allow;\n\t\t}\n\t}", "public void WatchOverIt(int target_rank);", "public void openUpProject(Subproject project) {\n\t\tSubprojectField field=project.setChip(current.removeChip());\n\t\tcurrent.raiseScore(field.getAmountSZT());\n\t}", "public Ref whenPast(long absMillis, Thunk target) {\n return whenPast(absMillis, target, \"run\", E.NO_ARGS);\n }" ]
[ "0.5387721", "0.5359562", "0.5333467", "0.5308999", "0.526666", "0.52435", "0.51503986", "0.5116138", "0.5077327", "0.5076779", "0.50717807", "0.5052419", "0.5008714", "0.50026506", "0.4992294", "0.49693656", "0.49688953", "0.49679607", "0.49617237", "0.49593684", "0.49489915", "0.4941075", "0.49337062", "0.49254042", "0.4917468", "0.49103934", "0.4883632", "0.4877507", "0.48746574", "0.48724028", "0.48688942", "0.4865885", "0.48648465", "0.4862459", "0.486044", "0.48540267", "0.48473203", "0.48473203", "0.48430675", "0.48371443", "0.48365307", "0.4819519", "0.4819218", "0.47947764", "0.47942904", "0.4781138", "0.47695196", "0.47680002", "0.4762057", "0.4758098", "0.47535616", "0.47446635", "0.4742932", "0.47207907", "0.4719561", "0.47183344", "0.47175375", "0.47147328", "0.4708355", "0.47063947", "0.4702104", "0.46990854", "0.46979722", "0.46961772", "0.46931872", "0.4687667", "0.46870345", "0.4685814", "0.46775824", "0.46769506", "0.46769473", "0.46762532", "0.46750042", "0.46727878", "0.4670735", "0.46692786", "0.46647662", "0.46448952", "0.46425593", "0.46409804", "0.46369117", "0.4635356", "0.4633166", "0.4631573", "0.46291772", "0.46290168", "0.46273208", "0.46266568", "0.46260518", "0.46220702", "0.46196443", "0.4616687", "0.46107155", "0.4595944", "0.45918155", "0.45857626", "0.45821765", "0.45711228", "0.45703983", "0.45693454", "0.45671165" ]
0.0
-1
given: was and still is below threshold
@Test public void isWarning_does_not_warn_below_90_percent() { when(expirationBefore.getExpirationPercent()).thenReturn(Optional.of(88)); when(expirationAfter.getExpirationPercent()).thenReturn(Optional.of(89)); // when boolean completionWarning = expirationThresholdViolationIndicator.isWarning("some-uuid"); // then assertFalse(completionWarning); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isOverThreshold(){return isOverThreshold;}", "double getUpperThreshold();", "float getThreshold();", "double getLowerThreshold();", "@Test\n public void testThreshold() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n circuit.incrementAndCheckState(9L);\n assertFalse(\"Circuit opened before reaching the threshold\", circuit.incrementAndCheckState(1L));\n }", "public boolean isThresholdExceeded()\n {\n return (written > threshold);\n }", "private boolean passThreshold(Decision decision) {\n\t\tint type = decision.getChoiceModifiers().getThresholdType();\n\t\tint sign = decision.getChoiceModifiers().getThresholdSign();\n\t\tint value = decision.getChoiceModifiers().getThresholdValue();\n\t\tCounters counter = storyController.getStory().getPlayerStats();\n\t\tboolean outcome = false;\n\t\tint[] typeBase = {counter.getPlayerHpStat(),counter.getEnemyHpStat(),counter.getTreasureStat()};\n\t\tswitch(sign){\n\t\t\tcase(0):\n\t\t\t\tif(typeBase[type] < value){outcome = true;};\n\t\t\t\tbreak;\n\t\t\tcase(1):\n\t\t\t\tif(typeBase[type] > value){outcome = true;};\n\t\t\t\tbreak;\n\t\t\tcase(2):\n\t\t\t\tif(typeBase[type] == value){outcome = true;};\n\t\t\t\tbreak;\n\t\t}\n\t\treturn outcome;\n\t}", "public double getThreshold() {\r\n return threshold;\r\n }", "public double getThreshold() {\n return threshold;\n }", "public int getThreshold() {\n return threshold; \n }", "public int getThreshold()\n {\n return threshold;\n }", "protected abstract void thresholdReached() throws IOException;", "public float getThreshold() {\n return threshold;\n }", "public void setThreshold(float threshold){\n this.threshold = threshold;\n }", "protected static void adaptivaeThresholdCalc() {\n\t\tif (triggerCount > 3) {\n\t\t\tthreshold /= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold up to \" + threshold);\n\t\t}\n\t\tif (triggerCount < 2) {\n\t\t\tthreshold *= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold down to \" + threshold);\n\t\t}\n\n\t\tif (threshold < 1.5f)\n\t\t\tthreshold = 1.5f;\n\t}", "public int getThreshold() {\n/* 340 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private float applyThreshold(float input) {\n return abs(input) > THRESHOLD_MOTION ? input : 0;\n }", "@Override\n public boolean test(User user) {\n return user.getPoints() > 160;\n }", "@Override\r\n\t\t\tpublic boolean accept(double t) {\n\t\t\t\treturn t>0.5;\r\n\t\t\t}", "@Test\n public void testGettingThreshold() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n assertEquals(\"Wrong value of threshold\", Long.valueOf(threshold), Long.valueOf(circuit.getThreshold()));\n }", "void setThreshold(float value);", "void modThresh1(int theValue){\n\t threshold1=10*theValue;\n\t // threshold2 = threshold1 + 1;\n\t println(\"mod t1: \" + threshold1) ;\n\t}", "public double getLowThreshold(){\n return lowThreshold;\n }", "@Updatable\n public Double getThreshold() {\n return threshold;\n }", "private boolean isAboveLimit(FallingPiece piece){\r\n\t\tfor (Point p : piece.allOuterPoints()) {\r\n if (p.Y() >= height) \r\n return true;\r\n }\r\n\t\treturn false;\r\n\t}", "private boolean hasNumberThreshold() {\r\n return entity.getActualNumber() < entity.getTheoreticalNumber();\r\n }", "public void setThreshold(double t)\n {\n this.threshold = t;\n }", "protected void checkThreshold(int count) throws IOException\n {\n if (!thresholdExceeded && (written + count > threshold))\n {\n thresholdReached();\n thresholdExceeded = true;\n }\n }", "public double compare(double x, double y) {\n\t\tif (Math.abs(x - y) > _threshold)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn 1;\n\t}", "private void tooHigh() {\n if (this.hitPoints > 255) {\n System.out.println(\"You set the value too high! Setting it to 255\");\n this.hitPoints = 255;\n }\n }", "public boolean isHighValue() {\n return reward > 750;\n }", "public void prune(double belowThreshold) {\n \n for(T first : getFirstDimension()) {\n \n for(T second : getMatches(first)) {\n \n if(get(first, second)<belowThreshold) {\n set(first, second, 0.0);\n }\n \n }\n \n }\n \n }", "private boolean outOfRange(double i, double e, int threshold) {\n\n\t\tdouble lowerBound = e / (double) threshold;\n\t\tdouble upperBound = e * (double) threshold;\n\n\t\treturn ((i < lowerBound) || (i > upperBound));\n\t}", "@Override\n public boolean acceptMove(int baselineObjectiveValue, int newObjectiveValue) {\n if (newObjectiveValue > baselineObjectiveValue) {\n return true;\n }\n else {\n return false;\n }\n }", "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "public int getMyNearbyThreshold() {\n return myNearbyThreshold;\n }", "@Test\n public void testDontRaiseAlertBalanceGreaterThanThreshold() {\n BigDecimal balance = new BigDecimal(\"40.01\");\n String threshold = \"40\";\n long accountNumber = 1234567L;\n String accountNumberString = Long.toString(accountNumber);\n\n when(tuple.getValueByField(CBSMessageFields.FIELD_CURRENT_ACCOUNT_BALANCE)).thenReturn(balance);\n when(tuple.getStringByField(OCISDetails.THRESHOLD)).thenReturn(threshold);\n when(tuple.getLongByField(CBSMessageFields.FIELD_ACCOUNT_NUMBER)).thenReturn(accountNumber);\n\n RaiseLowBalanceAlert alertFunction = new RaiseLowBalanceAlert();\n alertFunction.execute(tuple, collector);\n\n ArgumentCaptor<Values> valuesCaptor = ArgumentCaptor.forClass(Values.class);\n verify(collector).emit(valuesCaptor.capture());\n\n Values values = valuesCaptor.getValue();\n assertThat(values, notNullValue());\n assertThat(values.size(), is(2));\n assertThat((String)values.get(0), is(accountNumberString));\n assertThat(values.get(1), nullValue());\n }", "@Test\n public void testIsInLimitUpper() {\n Assertions.assertFalse(saab.isInLimit(.5, 1.5, 2.0));\n }", "@Test\n\tpublic void increasingSignal() {\n\t\tDataset xData = data(0.0, 1.0);\n\t\tDataset yData = data(0.0, 1.0);\n\n\t\tdouble target = 0.4;\n\t\tdouble tolerance = 0.01;\n\n\t\tdouble expectedX = target - tolerance;\n\t\tdouble expectedY = target - tolerance;\n\n\t\ttest(xData, yData, target, tolerance, expectedX, expectedY);\n\t}", "public double getPercentThreshold()\n {\n return percentThreshold;\n }", "@Test\n\tpublic void decreasingSignal() {\n\t\tDataset xData = data(0.0, 1.0);\n\t\tDataset yData = data(1.0, 0.0);\n\n\t\tdouble target = 0.4;\n\t\tdouble tolerance = 0.01;\n\n\t\tdouble predictedY = target + tolerance;\n\t\tdouble predictedX = (predictedY - 1) * -1;\n\n\t\ttest(xData, yData, target, tolerance, predictedX, predictedY);\n\t}", "public Long getThresh() {\n\t\treturn thresh;\n\t}", "public int getLowerThreshold() {\n return lowerThreshold;\n }", "public boolean valueLargerThan(Money other);", "public void setThreshold(int threshold) {\n/* 357 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void testPercentSwapFreeBelowThreshold() {\n String jvmOptions = null;\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setSwap(1000);\n jvmRun.getJvm().setSwapFree(945);\n jvmRun.doAnalysis();\n Assert.assertEquals(\"Percent swap free not correct.\", 94, jvmRun.getJvm().getPercentSwapFree());\n Assert.assertTrue(Analysis.INFO_SWAPPING + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_SWAPPING));\n }", "public interface ThresholdDecreaser {\r\n\t/**\r\n\t * Applies threshold decreasing function at the LinkSpecification.\r\n\t * @param spec\r\n\t * @return decreased threshold[0,1]\r\n\t */\r\n\tpublic Set<Double> decrease(LinkSpecification spec);\r\n}", "protected boolean pass(IntegralImage II, int u, int v, double scale) {\n\t\treturn sum(II, u, v, scale) > threshold;\n\t}", "public double threshold(double z) {\n\t\t// This must be implemented by you\n\t\tif(z>=0) {\n\t\t\treturn 1;\n\t\t}else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public final void updateThreshold(double newThreshold){\n\t\t\n\t\tif(newThreshold != SignalSmoother.NO_RECOMMENDED_THRESHOLD){\n\t\t\t\n\t\t\tif(newThreshold == Double.valueOf(0)){\n\t\t\t\tthis.isThresholdUsingEnabled = THRESHOLD_STATE_DISABLED;\n\t\t\t}else\n\t\t\t\tthis.threshold = Math.abs(newThreshold);\n\t\t\t\n\t\t}\n\t\t\n\t}", "public boolean growsNegative();", "private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }", "private boolean checkGreedyWinRate() {\r\n return myTotal.get(0) > enTotal.get(0)+2 && (myself.health > 50 || myself.health > opponent.health);\r\n }", "public void testGreaterThanElement() {\n\t // fail(\"testGreaterThanElement\");\n \tCircuit circuit = new Circuit();\n \tDouble x1 = 0.5;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tGte gte1 = (Gte) circuit.getFactory().getGate(Gate.GTE);\n \tand.setLeftInput(x1);\n \tnot.setInput(x1);\n \tnot.eval();\n \tand.setRightInput(not.getOutput());\n\t\tand.eval();\n \tgte1.setLeftInput(and.getOutput());\n\t\tgte1.setRightInput(x1);\n \tassertEquals( new Double(0.0), gte1.eval());\n }", "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "public double threshold(double z) {\n\t\tif(z>=0) {\n\t\t\treturn 1;\n\t\t}else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public boolean nearMaxRescue() {\n double water = this.waterLevel;\n double no = (this.configuration.getMaximalLimitLevel()\n - this.configuration.getMaximalNormalLevel()) / 2;\n if (water > this.configuration.getMaximalLimitLevel()\n || water > this.configuration.getMaximalLimitLevel() - no) {\n return true;\n } else if (water < this.configuration.getMinimalLimitLevel()\n || water < this.configuration.getMinimalLimitLevel() + no) {\n\n return true;\n }\n return false;\n }", "private double getMaxThreshold() {\n return maxThreshold;\n }", "public boolean hasPassed()\n {\n if (y<=450.0f)\n return false;\n else\n return true;\n }", "public double getHighThreshold() {\n return highThreshold;\n }", "public boolean isWithinLimit() {\n return assumptionsFailed.get() < assumptionLimit;\n }", "private boolean CompareValues(int oldValue, int value)\n {\n if (playerType == PlayerType.White)\n {\n if (turn == 1)\n return oldValue > value;\n else\n return oldValue < value;\n }\n else\n if (turn == 1)\n return oldValue < value;\n else\n return oldValue > value;\n }", "public boolean lose(){\n\t\tif(steps>limit)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@Test\n public void testIsInLimitLower() {\n Assertions.assertTrue(saab.isInLimit(.3, .9, .6));\n }", "@Test\n public void testThresholdCircuitBreakingException() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n circuit.incrementAndCheckState(9L);\n assertTrue(\"The circuit was supposed to be open after increment above the threshold\", circuit.incrementAndCheckState(2L));\n }", "public int getLowerThreshold() {\r\n\t\tint lowerThreshold;\r\n\t\tlowerThreshold=this.lowerThreshold;\r\n\t\treturn lowerThreshold;\r\n\t}", "@Override\n protected boolean isFinished() {\n return (System.currentTimeMillis() >= thresholdTime || (currentAngle > (totalAngleTurn - 2) && currentAngle < (totalAngleTurn + 2)));\n }", "public int getUpperThreshold() {\r\n\t\tint upperThreshold;\r\n\t\tupperThreshold=this.upperThreshold;\r\n\t\treturn upperThreshold;\r\n\t}", "protected boolean isBalanceBelow(double amount) {\n return balance < amount;\n }", "@Test\n public void testTripCircuitOnFailuresAboveThreshold() {\n try {\n HystrixCommandProperties.Setter properties = HystrixCommandPropertiesTest.getUnitTestPropertiesSetter();\n HystrixCommandMetrics metrics = getMetrics(properties);\n HystrixCircuitBreaker cb = getCircuitBreaker(key, CommandOwnerForUnitTest.OWNER_TWO, metrics, properties);\n\n // this should start as allowing requests\n assertTrue(cb.allowRequest());\n assertFalse(cb.isOpen());\n\n // success with high latency\n metrics.markSuccess(400);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markFailure(10);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markFailure(10);\n\n // this should trip the circuit as the error percentage is above the threshold\n assertFalse(cb.allowRequest());\n assertTrue(cb.isOpen());\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"Error occurred: \" + e.getMessage());\n }\n }", "public void checkHighScore(){\n if(timeElapsed >= highMinutes){\n highMinutes = timeElapsed;\n highSeconds = timeCounter / 60;\n }\n }", "@Test\n public void testCircuitDoesNotTripOnFailuresBelowThreshold() {\n try {\n HystrixCommandProperties.Setter properties = HystrixCommandPropertiesTest.getUnitTestPropertiesSetter();\n HystrixCommandMetrics metrics = getMetrics(properties);\n HystrixCircuitBreaker cb = getCircuitBreaker(key, CommandOwnerForUnitTest.OWNER_TWO, metrics, properties);\n\n // this should start as allowing requests\n assertTrue(cb.allowRequest());\n assertFalse(cb.isOpen());\n\n // success with high latency\n metrics.markSuccess(400);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markSuccess(400);\n metrics.markSuccess(40);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markFailure(10);\n\n // this should remain open as the failure threshold is below the percentage limit\n assertTrue(cb.allowRequest());\n assertFalse(cb.isOpen());\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"Error occurred: \" + e.getMessage());\n }\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 }", "boolean hasFixedHotwordGain();", "private int threshFind(int[] ray){\n int min = 0;\n int max = 0;\n for(int i = 0; i < ray.length; i++){\n if(min > ray[i]) min = ray[i];\n else if(max < ray[i]) max = ray[i];\n }\n\n return (min + max) / 2;\n }", "private boolean m(){\r\n int m = countColors - maxSat;\r\n if (m <= TH){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "public void testPercentSwapFreeAtThreshold() {\n String jvmOptions = null;\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setSwap(1000);\n jvmRun.getJvm().setSwapFree(946);\n jvmRun.doAnalysis();\n Assert.assertEquals(\"Percent swap free not correct.\", 95, jvmRun.getJvm().getPercentSwapFree());\n Assert.assertFalse(Analysis.INFO_SWAPPING + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_SWAPPING));\n }", "public void setThreshold(int t) {\r\n\t\t\tthis.t = t;\r\n\t\t}", "public void consumeVigor(float amount) {\n\t\tstat -= amount;\n\t\tif(stat < 0f)\n\t\t\tstat = 0f;\n\t\t\n\t\t// Check for increasing level up counters\n\t\tif(amount > maxStat / threshold) {\n\t\t\t// Current average damage taken exceeding threshold of max HP\n\t\t\taverage = (average + (amount - (maxStat / threshold))) / 2f;\n\t\t\t// Current total damage taken exceeding threshold of max HP\n\t\t\ttallie += amount - (maxStat / threshold);\n\t\t\tSystem.out.println(\"Vigor \" + average + \" \" + tallie);\n\t\t}\n\n\t\t// Check for level up conditions\n\t\tif(tallie >= maxStat * Math.log(maxStat)) {\n\t\t\t// Apply new max HP and reset counters\n\t\t\tmaxStat = maxStat * average;\n\t\t\tthreshold = (float) Math.log(maxStat);\n\t\t\taverage = 0f;\n\t\t\ttallie = 0f;\n\t\t}\n\t}", "private double getMinThreshold() {\n return minThreshold;\n }", "public void testLevelPlannedWhenExceeded() throws Exception {\n checkLevelPlannedWhenExceed(new int[]{100},\n new double[]{300},\n new double[]{100},\n new double[]{300});\n\n // -- One account: no levelling possible\n checkLevelPlannedWhenExceed(new int[]{100},\n new double[]{300},\n new double[]{400},\n new double[]{300});\n\n // -- Two accounts: no levelling needed\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{100, 200},\n new double[]{300, 500});\n\n // -- Two accounts: extra pushed to second account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{400, 200},\n new double[]{400, 400});\n\n // -- Two accounts: extra pushed to first account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{100, 600},\n new double[]{200, 600});\n\n // -- Two accounts: part of extra pushed to second account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{400, 450},\n new double[]{400, 450});\n\n // -- Two accounts: total actual exceeds the total planned\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{250, 600},\n new double[]{250, 600});\n\n // -- Three accounts: extra taken from first account available\n checkLevelPlannedWhenExceed(new int[]{100, 101, 102},\n new double[]{300, 500, 200},\n new double[]{200, 600, 100},\n new double[]{200, 600, 200});\n\n // -- Three accounts: no planned for first one\n checkLevelPlannedWhenExceed(new int[]{100, 101, 102},\n new double[]{0, 500, 300},\n new double[]{0, 600, 100},\n new double[]{0, 600, 200});\n }", "public boolean isReached();", "public void setThresh(Long thresh) {\n\t\tthis.thresh = thresh;\n\t}", "private void checkIfHungry(){\r\n\t\tif (myRC.getEnergonLevel() * 2.5 < myRC.getMaxEnergonLevel()) {\r\n\t\t\tmission = Mission.HUNGRY;\r\n\t\t}\r\n\t}", "protected abstract float _getGrowthChance();", "public boolean CheckTimeInLevel(){\n \n Long comparetime = ((System.nanoTime() - StartTimeInLevel)/1000000000);\n \n return (comparetime>TILData.critpoints.get((int)speed));\n // stop tetris because this subject is an outlier for this level\n \n \n }", "@Override\n\tpublic int getScore(int target) {\n\t\tdouble d = toBound(target);\n\t\tif (d < 0 && d + height > 0){\n\t\t\treturn -50;\n\t\t} else {\n\t\t\treturn 5;\n\t\t}\n\t}", "private static void loopWithCheck(int upperLimit, QuitObject q) {\r\n\t\t\tint i;\r\n\t\t\tdouble temp;\r\n\t\t\t\r\n\t\t\tfor (i=0; i<upperLimit; i++) {\r\n\t\t\t\tif(q.getGreaterThan()==q.getLessThan()){\r\n\t\t\t\t\tq.setFinalCount(i+10000);\r\n\t\t\t\t\tq.setStatus(1);\r\n\t\t\t\t\tquitProgram(q);\r\n\t\t\t\t}\r\n\t\t\t\ttemp = Math.random();\r\n\t\t\t\tif (temp > 0.5) {\r\n\t\t\t\t\tq.addOneGreaterThan();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tq.addOneLessThan();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq.setFinalCount(i+10000);\r\n\t\t\tq.setStatus(2);\r\n\t\t\tquitProgram(q);\r\n\t\t\t\r\n\t\t}", "@Override\r\n\tint check_sweetness() {\n\t\treturn 30;\r\n\t}", "@Override\n public Event testEvent() throws PhidgetException {\n if((sensorController.getVal(sensorName) > threshold)){\n return new Event(name_gt,description_gt, hideFromFeed);\n } else {\n return new Event(name_lt,description_lt, hideFromFeed);\n }\n }", "@Test\n public void testDontRaiseAlertBalanceEqualsThreshold() {\n BigDecimal balance = new BigDecimal(\"40\");\n String threshold = \"40\";\n long accountNumber = 1234567L;\n String accountNumberString = Long.toString(accountNumber);\n\n when(tuple.getValueByField(CBSMessageFields.FIELD_CURRENT_ACCOUNT_BALANCE)).thenReturn(balance);\n when(tuple.getStringByField(OCISDetails.THRESHOLD)).thenReturn(threshold);\n when(tuple.getLongByField(CBSMessageFields.FIELD_ACCOUNT_NUMBER)).thenReturn(accountNumber);\n\n RaiseLowBalanceAlert alertFunction = new RaiseLowBalanceAlert();\n alertFunction.execute(tuple, collector);\n\n ArgumentCaptor<Values> valuesCaptor = ArgumentCaptor.forClass(Values.class);\n verify(collector).emit(valuesCaptor.capture());\n\n Values values = valuesCaptor.getValue();\n assertThat(values, notNullValue());\n assertThat(values.size(), is(2));\n assertThat((String)values.get(0), is(accountNumberString));\n assertThat(values.get(1), nullValue());\n }", "public void setThreshold(int inputThreshold) {\r\n\t\tthis.threshold = inputThreshold;\r\n\t}", "@Test\n public void testTwoOfTwoThreshold() {\n final ThresholdSha256Condition twoOfTwoCondition = ThresholdSha256Condition.from(\n 2, Lists.newArrayList(subcondition1, subcondition2)\n );\n\n // In order to fulfill a threshold condition, the count of the sub-fulfillments MUST be equal to\n // the threshold. Thus, construct a Fulfillment with only subfulfillment2, and expect it to verify\n // properly against oneOfTwoCondition.\n final ThresholdSha256Fulfillment fulfillmentWithFulfillment1 = ThresholdSha256Fulfillment.from(\n Lists.newArrayList(subcondition2),\n Lists.newArrayList(subfulfillment2)\n );\n assertThat(fulfillmentWithFulfillment1.verify(twoOfTwoCondition, new byte[0]), is(false));\n\n // In order to fulfill a threshold condition, the count of the sub-fulfillments MUST be equal to\n // the threshold. Thus, construct a Fulfillment with only fulfillment2, and expect it to verify\n // properly against oneOfTwoCondition.\n final ThresholdSha256Fulfillment fulfillmentWithFulfillment2 = ThresholdSha256Fulfillment.from(\n Lists.newArrayList(subcondition1),\n Lists.newArrayList(subfulfillment2)\n );\n assertThat(fulfillmentWithFulfillment2.verify(twoOfTwoCondition, new byte[0]), is(false));\n\n // Construct a Fulfillment with both fulfillments, and expect it to verify oneOfTwoCondition properly.\n final ThresholdSha256Fulfillment fulfillmentWithBoth = ThresholdSha256Fulfillment.from(\n Lists.newArrayList(),\n Lists.newArrayList(subfulfillment1, subfulfillment2)\n );\n assertThat(fulfillmentWithBoth.verify(twoOfTwoCondition, new byte[0]), is(true));\n\n // Construct a Fulfillment with both fulfillments, and expect it to verify oneOfTwoCondition properly.\n final ThresholdSha256Fulfillment fulfillmentWithBothReversed = ThresholdSha256Fulfillment.from(\n Lists.newArrayList(),\n Lists.newArrayList(subfulfillment2, subfulfillment1)\n );\n assertThat(fulfillmentWithBothReversed.verify(twoOfTwoCondition, new byte[0]), is(true));\n }", "@Test\n public void isWarning_warns_when_90_percent_was_just_reached() {\n when(expirationBefore.getExpirationPercent()).thenReturn(Optional.of(89));\n when(expirationAfter.getExpirationPercent()).thenReturn(Optional.of(90));\n\n // when\n boolean completionWarning = expirationThresholdViolationIndicator.isWarning(\"some-uuid\");\n\n // then\n assertTrue(completionWarning);\n }", "public int isGreaterThan(PokerHand otherHand)\n\t{\n\t\tint rank1 = this.getValue();\n\t\tint rank2 = otherHand.getValue();\n\t\tif(rank1 == rank2) return 0;\n\t\telse if(rank1 < rank2) return 1;\n\t\telse return -1;\n\t}", "Boolean CheckForLimit(float xVal, float yVal) {\n double xCalc = Math.pow(xVal - this.oval.centerX(), 2) / Math.pow((this.oval.width() / 2), 2);\n double yCalc = Math.pow(yVal - this.oval.centerY(), 2) / Math.pow((this.oval.height() / 2), 2);\n xCalc += yCalc;\n if (xCalc <= 1) {\n return true;\n } else {\n return false;\n }\n }", "public boolean closeEnoughToAlert(Entity e){\r\n\t\tVector3f distance = new Vector3f();\r\n\t\tdistance.sub(e.position, position);\r\n\t\t\r\n\t\tif(distance.length()<15.0f) return true;\r\n\t\treturn false;\r\n\t}", "@Test\n public void testTripCircuitOnTimeoutsAboveThreshold() {\n try {\n HystrixCommandProperties.Setter properties = HystrixCommandPropertiesTest.getUnitTestPropertiesSetter();\n HystrixCommandMetrics metrics = getMetrics(properties);\n HystrixCircuitBreaker cb = getCircuitBreaker(key, CommandOwnerForUnitTest.OWNER_TWO, metrics, properties);\n\n // this should start as allowing requests\n assertTrue(cb.allowRequest());\n assertFalse(cb.isOpen());\n\n // success with high latency\n metrics.markSuccess(400);\n metrics.markSuccess(400);\n metrics.markTimeout(10);\n metrics.markSuccess(400);\n metrics.markTimeout(10);\n metrics.markTimeout(10);\n metrics.markSuccess(400);\n metrics.markTimeout(10);\n metrics.markTimeout(10);\n\n // this should trip the circuit as the error percentage is above the threshold\n assertFalse(cb.allowRequest());\n assertTrue(cb.isOpen());\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"Error occurred: \" + e.getMessage());\n }\n }", "public boolean greaterthan(Inatnum a) throws Exception{\n if((this.isZero() &&a.isZero())==true) {return false;}//if both this and a are both zero, it returns false because it is not greater than. \n if((this.isZero())==false&&a.isZero()==true) {return true;}//conditional returns if a is greater than this.\n if((this.isZero())==true&&a.isZero()==false) {return false;}//conditional returns if this is greater than a.\n else {return this.pred().greaterthan(a.pred()); }//recursive call to subtract one from this and a.\n }", "private boolean checkGreedyEnergy() {\r\n return myTotal.get(2) < 10 || (myTotal.get(2) < 13 && myTotal.get(2) <= enTotal.get(2));\r\n }" ]
[ "0.6950653", "0.67517775", "0.6740633", "0.668889", "0.6669245", "0.6646927", "0.6641393", "0.6531242", "0.6485266", "0.6449287", "0.6436594", "0.6382293", "0.63602126", "0.6241251", "0.6235526", "0.62155914", "0.6128174", "0.6124808", "0.61111313", "0.6107572", "0.60559624", "0.60556006", "0.5977956", "0.59587294", "0.595815", "0.59192365", "0.5889183", "0.5869647", "0.5869531", "0.586717", "0.5863764", "0.5841929", "0.5837235", "0.58220637", "0.581173", "0.5803664", "0.57948136", "0.5771693", "0.5765553", "0.57552993", "0.57455033", "0.57410467", "0.57304585", "0.5717402", "0.5714137", "0.570714", "0.5705195", "0.5701373", "0.57008994", "0.5689644", "0.5689387", "0.56834304", "0.56816816", "0.567939", "0.5678959", "0.56705266", "0.56668264", "0.5664836", "0.5644216", "0.56302005", "0.562794", "0.562468", "0.56078553", "0.5607207", "0.5606737", "0.5560657", "0.5552842", "0.55288875", "0.5518917", "0.5511823", "0.55077606", "0.5506904", "0.5506396", "0.55033356", "0.549641", "0.54960513", "0.5489994", "0.5487897", "0.54846877", "0.5475009", "0.5474314", "0.54654795", "0.54478496", "0.5447307", "0.54464674", "0.54117227", "0.54108024", "0.5383476", "0.53665525", "0.5364281", "0.5362644", "0.53470343", "0.53423613", "0.5340622", "0.53358936", "0.5326019", "0.532253", "0.5315555", "0.5311078", "0.5305861" ]
0.5436748
85
given: the last tracking put the project above the threshold
@Test public void isWarning_does_not_warn_if_project_is_closed() { when(expirationBefore.getExpirationPercent()).thenReturn(Optional.of(89)); when(expirationAfter.getExpirationPercent()).thenReturn(Optional.of(96)); when(project.isClosed()).thenReturn(true); // when boolean completionWarning = expirationThresholdViolationIndicator.isWarning("some-uuid"); // then assertFalse(completionWarning); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "private void logHitResult() {\n if (hitResult){\n targets--;\n if (targets == 0){\n taskComplete = true;\n }\n\n hitList[hitCount] = new Point(shotList[shotCount].x, shotList[shotCount].y);\n hitCount++;\n\n } else {\n missList[missCount]= new Point(shotList[shotCount].x, shotList[shotCount].y);\n missCount++;\n }\n }", "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "public void checkAddTrack() {\n this.trackList.sort();\n int time = this.timeTrankiManager.getTrackTimeOfNext();\n Date dateCorruent = this.timeTrankiManager.getTime();\n\n if (time > 0) {\n Track trackIndicated = this.trackList.getTracklessTime(time);\n if (trackIndicated != null) {\n this.trackListFinal.addTrack(dateCorruent, trackIndicated);\n this.trackList.removeTrack(trackIndicated);\n this.timeTrankiManager.addMinute(trackIndicated.getTime());\n } else {\n this.trackListFinal.addTrack(dateCorruent, \"Networking Event\");\n this.trackListFinal.addEmpityEspace();\n resetTimeTrackingManager();\n }\n \n } else if (time == -1) {\n this.trackListFinal.addTrack(dateCorruent, \"Lunch\");\n this.timeTrankiManager.addMinute(60);\n } else if (time == -2) {\n this.trackListFinal.addTrack(dateCorruent, \"Networking Event\");\n this.trackListFinal.addEmpityEspace();\n resetTimeTrackingManager();\n } else {\n this.trackListFinal.addTrack(dateCorruent, \"Networking Event\");\n resetTimeTrackingManager();\n }\n }", "public void setThreshold(float threshold){\n this.threshold = threshold;\n }", "public int getThreshold() {\n return threshold; \n }", "private void tooHigh() {\n if (this.hitPoints > 255) {\n System.out.println(\"You set the value too high! Setting it to 255\");\n this.hitPoints = 255;\n }\n }", "void setThreshold(float value);", "public int getThreshold()\n {\n return threshold;\n }", "public void setThreshold(double t)\n {\n this.threshold = t;\n }", "protected static void adaptivaeThresholdCalc() {\n\t\tif (triggerCount > 3) {\n\t\t\tthreshold /= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold up to \" + threshold);\n\t\t}\n\t\tif (triggerCount < 2) {\n\t\t\tthreshold *= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold down to \" + threshold);\n\t\t}\n\n\t\tif (threshold < 1.5f)\n\t\t\tthreshold = 1.5f;\n\t}", "public void setThresh(Long thresh) {\n\t\tthis.thresh = thresh;\n\t}", "public void prune(double belowThreshold) {\n \n for(T first : getFirstDimension()) {\n \n for(T second : getMatches(first)) {\n \n if(get(first, second)<belowThreshold) {\n set(first, second, 0.0);\n }\n \n }\n \n }\n \n }", "public void findTrack() {\n for (Node n : start_node.getLinks()) {\n precedenti.put(n, start_node);\n valori.put(n, calculator.calcDistance(n, start_node));\n }\n while (!da_collegare.isEmpty()) {\n Node piu_vicino = null;\n double min = Double.MAX_VALUE;\n for (Node n : da_collegare) {\n double dist = valori.get(n);\n if (dist - min < THRESHOLD) {\n min = dist;\n piu_vicino = n;\n }\n }\n double dist = valori.get(piu_vicino);\n for (Node n : piu_vicino.getLinks()) {\n double ricalc = dist + calculator.calcDistance(n, piu_vicino);\n if (ricalc - valori.get(n) < THRESHOLD) {\n precedenti.put(n, piu_vicino);\n valori.put(n, ricalc);\n }\n }\n da_collegare.remove(piu_vicino);\n }\n }", "public void finishProject(Subproject project) {\n\t\tfor(Player p:players) {\n\t\t\tif(p!=current) {\n\t\t\t\tp.lowerScore(project.getFinishField().getAmountSZT());\n\t\t\t\tcurrent.raiseScore(project.getFinishField().getAmountSZT());\n\t\t\t}\n\t\t}\n\t\tproject.finishProject();\n\t\tprojectsFinished.add(project);\n\t\tprojectsActive.remove(project);\n\t}", "@Test\n public void testThreshold() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n circuit.incrementAndCheckState(9L);\n assertFalse(\"Circuit opened before reaching the threshold\", circuit.incrementAndCheckState(1L));\n }", "public void setThreshold(int t) {\r\n\t\t\tthis.t = t;\r\n\t\t}", "public int getMyNearbyThreshold() {\n return myNearbyThreshold;\n }", "@Override\n\t\tpublic void onTrackLimitationNotice(int arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void onTrackLimitationNotice(int arg0) {\n\n\t\t\t}", "float getThreshold();", "public void commitExploration() {\n watermarkCommittedTick = watermarkGoalTick;\n }", "public void add2ChipsOnTheSameProject(Subproject project) {\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT());\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT());\n\t}", "protected abstract void thresholdReached() throws IOException;", "void modThresh1(int theValue){\n\t threshold1=10*theValue;\n\t // threshold2 = threshold1 + 1;\n\t println(\"mod t1: \" + threshold1) ;\n\t}", "private void manageTrackDelete(final AbstractTrack track)\n {\n if(currentTrack != null && currentTrack.equals(track)){\n sendStopTrackingEvent(currentTrack);\n currentTrack = null;\n selectBestTrack();\n }\n\n /*\n Collection<SimulatedTrack> tracks = trackManager.getCurrentTracks();\n for(SimulatedTrack existingTrack : tracks)\n {\n double trackScore = getTrackScore(existingTrack);\n if(trackScore>bestTrackScore)\n {\n bestTrackScore = trackScore;\n bestTrack = existingTrack;\n }\n }\n\n // cannot appear a simulated track with better score than a fused track\n if(bestTrack==null){\n Collection<SimulatedTrack> simulatedTracks = trackManager.getCurrentTracks();\n for(SimulatedTrack simulatedTrack : simulatedTracks)\n {\n double trackScore = getTrackScore(simulatedTrack);\n if(trackScore>bestTrackScore)\n {\n bestTrackScore = trackScore;\n bestTrack = simulatedTrack;\n }\n }\n }\n\n currentTrack = bestTrack;\n currentTrackScore = bestTrackScore;\n\n if(bestTrack==null)\n {\n // TODO implement a fail-safe mechanism to start panning for new tracks\n }\n */\n }", "public int GetCurrentTrack();", "public int getThreshold() {\n/* 340 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract void logLap(int currentLap);", "public void setThreshold(int threshold) {\n/* 357 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public float getThreshold() {\n return threshold;\n }", "public void checkForProject(int i) {\n if (wordsOfInput[i].indexOf('$') == 0) {\n if ((!containsStartDate || !containsStartTime) && index > i) {\n index = i;\n tpsIndex = i;\n }\n String project = wordsOfInput[i].substring(1);\n builder.project(project);\n }\n }", "public double getThreshold() {\r\n return threshold;\r\n }", "private void addThreshold(AbstractThreshold threshold,\n HashMap<StatusCategory, Number> tholds) {\n if (threshold instanceof ProjectComplianceThreshold) {\n tholds.put(StatusCategory.ProjectCompliance, ((ProjectComplianceThreshold) threshold).value);\n } else if (threshold instanceof FileComplianceThreshold) {\n tholds.put(StatusCategory.FileCompliance, ((FileComplianceThreshold) threshold).value);\n } else {\n tholds.put(StatusCategory.Messages, ((MessageComplianceThreshold) threshold).value);\n }\n }", "double getLowerThreshold();", "public void createAfterTrackEnterXMinRule(){\n ECAAgent.getDefaultECAAgent().createRule(\"XMinAfterEntrace_\"+name,afterTrackEnterXMin,\"MAKEFITS.Track.C_trueCond\",\"MAKEFITS.Track.A_XMinAfterTrackEnter\",1,CouplingMode.IMMEDIATE ,ParamContext.RECENT);\n// ECAAgent.getDefaultECAAgent().createRule(\"XMinAfterEntrace_\"+name,afterTrackEnterXMin,\"MAKEFITS.Track.C_trueCond\",\"MAKEFITS.Track.A_XMinAfterTrackEnter\",1,CouplingMode.IMMEDIATE ,Context.RECENT);\n }", "@Override\r\n public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n }", "@Override\r\n public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n }", "public void testPercentSwapFreeBelowThreshold() {\n String jvmOptions = null;\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setSwap(1000);\n jvmRun.getJvm().setSwapFree(945);\n jvmRun.doAnalysis();\n Assert.assertEquals(\"Percent swap free not correct.\", 94, jvmRun.getJvm().getPercentSwapFree());\n Assert.assertTrue(Analysis.INFO_SWAPPING + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_SWAPPING));\n }", "public double getThreshold() {\n return threshold;\n }", "public boolean isOverThreshold(){return isOverThreshold;}", "private void manageTrackUpdate(final AbstractTrack track)\n {\n selectBestTrack();\n }", "public static void main(String[] args) {\n int currentLimit = 45 ; // try 45 , 65 ,90\n\n if (currentLimit >70 ) {\n System.out.println(\" you are speeding more than 70 --POINT TAKEN !! \");\n } else if (currentLimit > 60 ) {\n //System.out.println(\"your speed is less thank 70 but more than 60 \");\n System.out.println(\"your are speeding more than 60 and less than 70 -- WARNING TAKEN\");\n } else {\n System.out.println(\"KEEP DRIVING\");\n }\n\n\n }", "@Override\n\tpublic int countProjectTeam() {\n\t\treturn 0;\n\t}", "double getUpperThreshold();", "public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n \t\t\t}", "public void countHits() {\nif (this.hitpoints <= 0) {\nreturn;\n}\nthis.hitpoints = this.hitpoints - 1;\n}", "@Override\n public void onTrackLimitationNotice(int arg0) {\n }", "public void setChipOnExistingProjectBurnSZTTwice(Subproject project) {\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT()*2);\n\t}", "private boolean passThreshold(Decision decision) {\n\t\tint type = decision.getChoiceModifiers().getThresholdType();\n\t\tint sign = decision.getChoiceModifiers().getThresholdSign();\n\t\tint value = decision.getChoiceModifiers().getThresholdValue();\n\t\tCounters counter = storyController.getStory().getPlayerStats();\n\t\tboolean outcome = false;\n\t\tint[] typeBase = {counter.getPlayerHpStat(),counter.getEnemyHpStat(),counter.getTreasureStat()};\n\t\tswitch(sign){\n\t\t\tcase(0):\n\t\t\t\tif(typeBase[type] < value){outcome = true;};\n\t\t\t\tbreak;\n\t\t\tcase(1):\n\t\t\t\tif(typeBase[type] > value){outcome = true;};\n\t\t\t\tbreak;\n\t\t\tcase(2):\n\t\t\t\tif(typeBase[type] == value){outcome = true;};\n\t\t\t\tbreak;\n\t\t}\n\t\treturn outcome;\n\t}", "@Override\r\n\tpublic void decreaseNbProjectilesWith(int amount) {\r\n\t\tif (getNbProjectiles() > 0)\t\r\n\t\t\tsetNbProjectiles( getNbProjectiles() - amount );\t\t\r\n\t}", "private void setupProjectIncompleteDripFlow() {\n List<DProjects> projects = AppConfig.getInstance().getdProjectsDAO().findAllInternal();\n if (projects == null || projects.isEmpty()) return;\n\n // 5 days old project created\n Date recentEnoughProjectAccessed = new Date(lastRunDate.getTime() - 5*ONE_DAY_MILISEC);\n\n //3 days old login.\n Date recentEnoughLoginTime = new Date(lastRunDate.getTime() - 3*ONE_DAY_MILISEC);\n\n // one notification per user is enough.\n Map<DUsers, DProjects> userProjectMap = new HashMap<>();\n // find projects which are not complete.\n for (DProjects project : projects) {\n\n // ignore old projects (accessed older than 5 days), they may be already in the flow.\n if (lastAccessTime(project).before(recentEnoughProjectAccessed)) {\n continue;\n }\n\n ProjectDetails details = Controlcenter.getProjectSummary(project);\n long totalDone = details.getTotalHitsDone() + details.getTotalHitsSkipped();\n // if > 70% done, then ignore.\n if (details.getTotalHits() == 0 || (totalDone/(double)details.getTotalHits()) < .70) {\n // Find all the project users.\n List<DProjectUsers> projectUsers = AppConfig.getInstance().getdProjectUsersDAO().findAllByProjectIdInternal(project.getId());\n if (projectUsers == null || projectUsers.isEmpty()) break;\n\n for (DProjectUsers projectUser : projectUsers) {\n //not sending to contributors as we add everyone to default projects,\n // would be sad to send them mail asking them to finish Default projects.\n if (projectUser.getRole() == DTypes.Project_User_Role.OWNER) {\n DUsers user = AppConfig.getInstance().getdUsersDAO().findByIdInternal(projectUser.getUserId());\n //if the user has not logged in anytime soon.\n if (user != null && user.getUpdated_timestamp().before(recentEnoughLoginTime)) {\n userProjectMap.put(user, project);\n }\n }\n }\n }\n }\n LOG.info(\"setupProjectIncompleteDripFlow userProjectMap = \" + userProjectMap.size());\n DripFlows.addToProjectIncompleteFlow(userProjectMap);\n\n }", "public void setTwoChipsInOneProject(Subproject project) {\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT());\n\t\tcurrent.raiseScore(project.setChip(current.removeChip()).getAmountSZT());\n\t}", "private static void loopWithCheck(int upperLimit, QuitObject q) {\r\n\t\t\tint i;\r\n\t\t\tdouble temp;\r\n\t\t\t\r\n\t\t\tfor (i=0; i<upperLimit; i++) {\r\n\t\t\t\tif(q.getGreaterThan()==q.getLessThan()){\r\n\t\t\t\t\tq.setFinalCount(i+10000);\r\n\t\t\t\t\tq.setStatus(1);\r\n\t\t\t\t\tquitProgram(q);\r\n\t\t\t\t}\r\n\t\t\t\ttemp = Math.random();\r\n\t\t\t\tif (temp > 0.5) {\r\n\t\t\t\t\tq.addOneGreaterThan();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tq.addOneLessThan();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq.setFinalCount(i+10000);\r\n\t\t\tq.setStatus(2);\r\n\t\t\tquitProgram(q);\r\n\t\t\t\r\n\t\t}", "@Override\n\t\tpublic void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n\t\t}", "public double getPercentThreshold()\n {\n return percentThreshold;\n }", "Track(){\n\t}", "public void setThreshold(int aThreshold) {\n if(0 <= threshold && threshold <= 100) {\n threshold = aThreshold;\n } else {\n throw new IllegalArgumentException(\"Threshold must be in the interval <1..100> inclusive. Actual Value: \" + aThreshold);\n } \n }", "public double getLowThreshold(){\n return lowThreshold;\n }", "private boolean hasNumberThreshold() {\r\n return entity.getActualNumber() < entity.getTheoreticalNumber();\r\n }", "@Override\r\n public void onTrackLimitationNotice(int arg0) {\n\r\n }", "@Test\n void testTrackBallYMin() {\n goalie.TrackBallSetDirection(new Vector(45,187), new Vector(-0.5f,0.5f));\n // test if goalie direction is negative\n assertEquals(-1, goalie.getNext_direction().getY());\n }", "public Long getThresh() {\n\t\treturn thresh;\n\t}", "protected void checkUploadTasks(final int threshold)\n {\n if (this.getMapRouletteClient().getCurrentBatchSize() >= threshold)\n {\n this.uploadTasks();\n }\n }", "public void Team_B_3_Points(View v) {\n teamBScore = teamBScore + 3;\n displayForTeamB(teamBScore);\n }", "public void add2ChipsOnExistingProjects(Subproject projectA, Subproject projectB) {\n\t\tcurrent.raiseScore(projectA.setChip(current.removeChip()).getAmountSZT());\n\t\tcurrent.raiseScore(projectB.setChip(current.removeChip()).getAmountSZT());\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 int compareTo(Hit paramHit)\r\n/* 29: */ {\r\n/* 30: 30 */ if (this.hitTime < paramHit.hitTime) {\r\n/* 31: 31 */ return -1;\r\n/* 32: */ }\r\n/* 33: 32 */ if (this.hitTime > paramHit.hitTime) {\r\n/* 34: 33 */ return 1;\r\n/* 35: */ }\r\n/* 36: 35 */ return Long.compare(this.hub.accountId, paramHit.hub.accountId);\r\n/* 37: */ }", "public void addPointForTeamB(View view) {\n teamB_score = teamB_score + 1;\n if (ADVANTAGE == 1) {\n advantageMode(teamA_score, teamB_score);\n } else\n checkScore(teamA_score, teamB_score);\n }", "private int FindGold() {\n VuforiaLocalizer vuforia;\n\n /**\n * {@link #tfod} is the variable we will use to store our instance of the Tensor Flow Object\n * Detection engine.\n */\n TFObjectDetector tfod;\n \n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = CameraDirection.BACK;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n \n\n /**\n * Initialize the Tensor Flow Object Detection engine.\n */\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_GOLD_MINERAL, LABEL_SILVER_MINERAL);\n tfod.activate();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n return 3;\n }\n\n int Npos1=0;\n int Npos2=0;\n int Npos3=0;\n int NposSilver1=0;\n int NposSilver2=0;\n int NposSilver3=0;\n double t_start = getRuntime();\n\n\n while (opModeIsActive()) {\n \n if( (getRuntime() - t_start ) > 3.5) break;\n if (Npos1 >=5 || Npos2>=5 || Npos3>=5)break;\n if (NposSilver1>=5 && NposSilver2>=5)break;\n if (NposSilver2>=5 && NposSilver3>=5)break;\n if (NposSilver1>=5 && NposSilver3>=5)break;\n if (tfod != null) {\n // getUpdatedRecognitions() will return null if no new information is available since\n // the last time that call was made.\n List<Recognition> updatedRecognitions = tfod.getUpdatedRecognitions();\n if (updatedRecognitions != null) {\n //telemetry.addData(\"# Object Detected\", updatedRecognitions.size());\n //if (updatedRecognitions.size() == 3) {\n int goldMineralX = -1;\n int silverMineralX = -1;\n for (Recognition recognition : updatedRecognitions) {\n if (recognition.getLabel().equals(LABEL_GOLD_MINERAL)) {\n goldMineralX = (int) recognition.getLeft();\n telemetry.addData(\"gold position\", goldMineralX);\n if(goldMineralX<300) {\n Npos1++;\n telemetry.addData(\"loc\", 1);\n }else if(goldMineralX<800){\n Npos2++;\n telemetry.addData(\"loc\", 2);\n }else{\n Npos3++;\n telemetry.addData(\"loc\", 3);\n }\n } \n \n if (recognition.getLabel().equals(LABEL_SILVER_MINERAL)) {\n silverMineralX = (int) recognition.getLeft();\n telemetry.addData(\"silver position\", silverMineralX);\n if(silverMineralX<300) {\n NposSilver1++;\n telemetry.addData(\"loc\", 1);\n }else if(silverMineralX<300){\n NposSilver2++;\n telemetry.addData(\"loc\", 2);\n }else{\n NposSilver3++;\n telemetry.addData(\"loc\", 3);\n }\n } \n }\n telemetry.update();\n }\n }\n }\n\n\n if (tfod != null) {\n tfod.shutdown();\n }\n \n \n \n telemetry.addData(\"\", 2);\n \n if (Npos1>=5)return 1;\n if (Npos2>=5)return 2;\n if (Npos3>=5)return 3;\n if (NposSilver1>=5 && NposSilver2>=5)return 3;\n if (NposSilver2>=5 && NposSilver3>=5)return 1; \n if (NposSilver1>=5 && NposSilver3>=5)return 2;\n\n return 3;\n }", "public static void testTrackBreakdown(){\n\t\tImageJ imj = new ImageJ(ImageJ.NO_SHOW);\n\t\t\n//\t\tExperiment_Processor ep;\n\t\t\n//\t\tProcessingParameters prParam = new ProcessingParameters();\n//\t\tprParam.diagnosticIm = false;\n\t\t\n\t\t//Set src and dest\n\t\tString srcName = \"E:\\\\testing\\\\Java Backbone Fitting\\\\Fitting Params\\\\fullExptWithAreaSplit_0.7-1.4_otherPtSplit\\\\divergedTrackExp.prejav\";\n\t\tString dstBaseDir = \"E:\\\\testing\\\\Java Backbone Fitting\\\\Track Breakdown\\\\\";\n\t\t\n\t\tExperiment ex = new Experiment(srcName);\n\t\t//Find a long track\n\t\t\n//\t\tint len = 16726;\n\t\t//Find a track that's the length of the experiment\n//\t\tSystem.out.println(\"Finding full-experiment track in \"+ex.tracks.size()+\" tracks...\");\n\t\tTrack longTrack = null;\n//\t\tint i;\n//\t\tfor (i=0; (i<ex.tracks.size() && longTrack==null); i++){\n//\t\t\tif (ex.getTrackFromInd(i).points.size()==len) longTrack=ex.getTrackFromInd(i);\n//\t\t}\n//\t\tSystem.out.println(\"Found track (ind=\"+i+\")\");\n\t\t\n\t\t\n\t\tVector<Track> fits = new Vector<Track>();\n\t\tVector<Track> divs = new Vector<Track>();\n\t\tBackboneFitter bbf;\n\t\tfor (int j=0; j<ex.tracks.size(); j++){\n\t\t\t\n\t\t\tlongTrack = ex.tracks.get(j);\n\t\t\tint len = longTrack.points.size();\n\t\t\tint clipLen = 500;\n\t\t\tif (len>(clipLen*3)){\n\t\t\t\tVector<Track> fitTracks = new Vector<Track>();\n\t\t\t\tVector<Track> divTracks = new Vector<Track>();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Clipping and Fitting track...\");\n\t\t\t\tfor (int i=0; i<=len/clipLen; i++){\n\t\t\t\t\n\t\t\t\t\tbbf = new BackboneFitter();\n\t\t//\t\t\tbbf.clipEnds = true;\n\t\t\t\t\tint sf = 1+i*clipLen;\n\t\t\t\t\tint ef = (len<((i+1)*clipLen))? len-1: (i+1)*clipLen;\n\t\t\t\t\t\n\t\t\t\t\tTrack clipTrack = new Track(longTrack.getPoints().subList(sf, ef), i);\n\t\t\t\t\t\t\n\t\t\t\t\t///method no longer exists\n\t\t\t\t\t//bbf.fitTrack(clipTrack);\n\t\t\t\t\t///\n\t\t\t\t\t\n\t\t\t\t\tif (bbf.getTrack()!=null){\n\t\t\t\t\t\tfitTracks.add(bbf.getTrack());\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdivTracks.add(clipTrack);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfits.addAll(fitTracks);\n\t\t\t\tdivs.addAll(divTracks);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"...Done fitting: \"+fitTracks.size()+\"/\"+(fitTracks.size()+divTracks.size()+\" were fit properly\"));\n\t\t\t\t\n\t\t\t\tExperiment fitEx = new Experiment();\n\t\t\t\tfitEx.tracks = fitTracks;\n\t\t\t\tExperiment divEx = new Experiment();\n\t\t\t\tdivEx.tracks = divTracks;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tFile f = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\");\n\t\t\t\t\tif (!f.exists()) f.mkdirs();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tf = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\"+\"fitTrackExp.jav\");\n\t\t\t\t\tSystem.out.println(\"Saving fit track experiment to \"+f.getPath());\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tfitEx.toDisk(dos, null);\n\t\t\t\t\t\tdos.close();\n\t\t\t\t\t\tSystem.out.println(\"Done saving fit tracks\");\n\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tf = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\"+\"divergedTrackExp.prejav\");\n\t\t\t\t\tSystem.out.println(\"Saving error track experiment to \"+f.getPath());\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdivEx.toDisk(dos, null);\n\t\t\t\t\t\tdos.close();\n\t\t\t\t\t\tSystem.out.println(\"Done saving diverged tracks\");\n\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t\t\t}\n\t\t\n\t\t\t\t} catch (Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tExperiment fitEx = new Experiment();\n\t\tfitEx.tracks = fits;\n\t\tExperiment divEx = new Experiment();\n\t\tdivEx.tracks = divs;\n\t\t\n\t\ttry {\n\t\t\tFile f = new File(dstBaseDir+\"allFitTracks.jav\");\n\t\t\tSystem.out.println(\"Saving fit track experiment to \"+f.getPath());\n\t\t\ttry{\n\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\n\t\t\t\tfitEx.toDisk(dos, null);\n\t\t\t\tdos.close();\n\t\t\t\tSystem.out.println(\"Done saving fit tracks\");\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t}\n\t\t\t\n\t\t\tf = new File(dstBaseDir+\"allDivTracks.prejav\");\n\t\t\tSystem.out.println(\"Saving error track experiment to \"+f.getPath());\n\t\t\ttry{\n\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\n\t\t\t\tdivEx.toDisk(dos, null);\n\t\t\t\tdos.close();\n\t\t\t\tSystem.out.println(\"Done saving diverged tracks\");\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t}\n\n\t\t} catch (Exception e){\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\timj.quit();\n\t}", "public void onTrackLimitationNotice(int arg0) { }", "public void setProjlimit(Integer projlimit) {\n this.projlimit = projlimit;\n }", "public static void setThreshold(int threshold) {\n EvalutionUtil.ifFalseCrash(threshold>0, \n \"The threshold for the relevant documents in the ranking should be bigger than 0\");\n thres = threshold;\n }", "public boolean hasReachedGoal(List<Integer> collectTime);", "@Test\n public void testGetProjectileSpikeDelay() {\n assertEquals(0, proj.getProjectileSpikeDelay(), 0.001);\n }", "@Updatable\n public Double getThreshold() {\n return threshold;\n }", "public void testPercentSwapFreeAtThreshold() {\n String jvmOptions = null;\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setSwap(1000);\n jvmRun.getJvm().setSwapFree(946);\n jvmRun.doAnalysis();\n Assert.assertEquals(\"Percent swap free not correct.\", 95, jvmRun.getJvm().getPercentSwapFree());\n Assert.assertFalse(Analysis.INFO_SWAPPING + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_SWAPPING));\n }", "public void addFreezeFrame()\n{\n int index = Collections.binarySearch(_freezeFrames, getTime());\n if(index<0)\n _freezeFrames.add(-index - 1, getTime());\n}", "public void removeChipFromProjectAndPutItIntoAnother(Subproject fromProject, Subproject toProject) {\n\t\tif(fromProject.chipCanBeRemoved()){\n\t\t\tChip removedChip=fromProject.removeLastChip();\n\t\t\tcurrent.raiseScore(toProject.setChip(removedChip).getAmountSZT());\n\t\t}\n\t}", "void awardPoints(){\n if (currentPoints <= 100 - POINTSGIVEN) {\n currentPoints += POINTSGIVEN;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }\n }", "public void setGamesCompleted(int num)\r\n {\r\n //Check if the new average time is less than 0 before setting the new average time \r\n if(num < 0)\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING:You cannot assign a negative number of games completed\");\r\n }\r\n else \r\n {\r\n this.gamesCompleted = num; \r\n }//end if\r\n }", "public int getOldTrack() {\n return oldTrack;\n }", "public void calculateHighscores(){\n if((newPlayer.getScore() > (getRecord())) && (newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3())){\n setRecord3(getRecord2());\n setRecord2(getRecord());\n setRecord(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord2()) && (newPlayer.getScore() > getRecord3()) && (newPlayer.getScore() < getRecord())){\n setRecord3(getRecord2());\n setRecord2(newPlayer.getScore());\n newPlayer.resetScore();\n }\n if((newPlayer.getScore() > getRecord3()) && newPlayer.getScore() < getRecord2()){\n setRecord3(newPlayer.getScore());\n newPlayer.resetScore();\n }else{\n newPlayer.resetScore();\n\n }\n }", "public float getTracking() {\n return tracking;\n }", "@Test\n public void testVaticanReportMorePlayersEvent() {\n Game game = new Game(2);\n FaithTrack faithTrack1 = game.getPlayers().get(0).getFaithTrack();\n FaithTrack faithTrack2 = game.getPlayers().get(1).getFaithTrack();\n\n // entering the first vatican section\n faithTrack1.increasePos(7);\n // triggers the first vatican report\n faithTrack2.increasePos(8);\n\n // putting a sleep in order to let the dispatcher notify the subscribers\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n assertEquals(2, faithTrack1.getBonusPoints()[0]);\n assertEquals(2, faithTrack2.getBonusPoints()[0]);\n }", "public void hardMode(Boolean hitResult) throws LocationHitException{\r\n\t\tint x = 0, y = 0;\r\n\t\tint mostProbable;\r\n\r\n\t\tif (minMax == 0) {\r\n\t\t\tmostProbable = 1;\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\ty = j;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tminMax = 1;\r\n\t\t} else {\r\n\t\t\tmostProbable = 1000;\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\ty = j;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tminMax = 0;\r\n\t\t}\r\n\r\n\t\tif (!hitResult && direction.isEmpty()) {\r\n\t\t\tboolean newHit = false;\r\n\t\t\twhile (!newHit) {\r\n\t\t\t\tif (Player.userGrid[x][y] == 2 || Player.userGrid[x][y] == 3) {\r\n\t\t\t\t\tprobabilityGrid[x][y] = -1;\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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}\r\n\t\t\t\t\t\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\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}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else\r\n\t\t\t\t\tnewHit = true;\r\n\t\t\t}\r\n\t\t} else if (direction.isEmpty()) {\r\n\t\t\thitFound.add(hitX + \";\" + hitY);\r\n\t\t\tcounter++;\r\n\t\t\tif ((hitX + 1) < 9) {\r\n\t\t\t\tx = hitX + 1;\r\n\t\t\t\ty = hitY;\r\n\t\t\t\tdirection = \"HorizontalFront\";\r\n\t\t\t} else {\r\n\t\t\t\tx = hitX - 1;\r\n\t\t\t\ty = hitY;\r\n\t\t\t\tdirection = \"HorizontalBack\";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (direction.equals(\"HorizontalFront\")) {\r\n\t\t\t\tint tempX = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\tint tempY = Integer.parseInt(hitFound.get(0).split(\";\")[1]);\r\n\t\t\t\tif (hitResult && (hitX + 1 < 9)) {\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tx = hitX + 1;\r\n\t\t\t\t\ty = hitY;\r\n\t\t\t\t} else if (tempX > 0) {\r\n\t\t\t\t\tx = tempX - 1;\r\n\t\t\t\t\ty = tempY;\r\n\t\t\t\t\tdirection = \"HorizontalBack\";\r\n\t\t\t\t} else if ((Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1 < 11)) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1;\r\n\t\t\t\t\tdirection = \"VerticalFront\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) - 1;\r\n\t\t\t\t\tdirection = \"VerticalBack\";\r\n\t\t\t\t}\r\n\t\t\t} else if (direction.equals(\"HorizontalBack\")) {\r\n\t\t\t\tif (hitResult && (hitX > 0)) {\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tx = hitX - 1;\r\n\t\t\t\t\ty = hitY;\r\n\t\t\t\t} else if (Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1 < 11 && counter < 2) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) + 1;\r\n\t\t\t\t\tdirection = \"VerticalFront\";\r\n\t\t\t\t} else if (counter < 2) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) - 1;\r\n\t\t\t\t\tdirection = \"VerticalBack\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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}\r\n\t\t\t\t\t\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\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}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdirection = \"\";\r\n\t\t\t\t\thitFound.clear();\r\n\t\t\t\t\tcounter = 0;\r\n\t\t\t\t}\r\n\t\t\t} else if (direction.equals(\"VerticalFront\") && counter < 2) {\r\n\t\t\t\tif (hitResult && (hitY + 1 < 11)) {\r\n\t\t\t\t\tx = hitX;\r\n\t\t\t\t\ty = hitY + 1;\r\n\t\t\t\t} else if (Integer.parseInt(hitFound.get(0).split(\";\")[1]) > 0) {\r\n\t\t\t\t\tx = Integer.parseInt(hitFound.get(0).split(\";\")[0]);\r\n\t\t\t\t\ty = Integer.parseInt(hitFound.get(0).split(\";\")[1]) - 1;\r\n\t\t\t\t\tdirection = \"VerticalBack\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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}\r\n\t\t\t\t\t\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\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}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdirection = \"\";\r\n\t\t\t\t\thitFound.clear();\r\n\t\t\t\t\tcounter = 0;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (hitResult && (hitY > 0) && counter < 2) {\r\n\t\t\t\t\tx = hitX;\r\n\t\t\t\t\ty = hitY - 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (minMax == 0) {\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] > mostProbable) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\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}\r\n\t\t\t\t\t\tminMax = 1;\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\t\t\t\tif (probabilityGrid[i][j] < mostProbable && probabilityGrid[i][j] > 0) {\r\n\t\t\t\t\t\t\t\t\tmostProbable = probabilityGrid[i][j];\r\n\t\t\t\t\t\t\t\t\tx = i;\r\n\t\t\t\t\t\t\t\t\ty = j;\r\n\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}\r\n\t\t\t\t\t\tminMax = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdirection = \"\";\r\n\t\t\t\t\thitFound.clear();\r\n\t\t\t\t\tcounter = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tprobabilityGrid[x][y] = -1;\r\n\t\thitX = x;\r\n\t\thitY = y;\r\n\r\n\t\tint hitCoord[] = { x, y };\r\n\t\tsetCoords(hitCoord);\r\n\r\n\t\tif (Player.userGrid[x][y] == 1) {\r\n\t\t\t// change the grid value from 1 to 2 to signify hit\r\n\t\t\tPlayer.userGrid[x][y] = 2;\r\n\t\t\tString coordx = Integer.toString(x);\r\n\t\t\tString coordy = Integer.toString(y);\r\n\t\t\tif(!time1) {\r\n\t\t\t\ttimea=java.lang.System.currentTimeMillis();\r\n\t\t\t\ttime1=!time1;\r\n\t\t\t}else if(!time2) {\r\n\t\t\t\ttimeb=java.lang.System.currentTimeMillis();\r\n\t\t\t\t\ttime2=!time2;\r\n\t\t\t}else {\r\n\t\t\t\tdouble t=timeb-timea;\r\n\t\t\t\tif(t<3000) {\r\n\t\t\t\t\tsetScore(20);\r\n\t\t\t\t}\r\n\t\t\t\ttime1=false;\r\n\t\t\t\ttime2=false;\r\n\t\t\t\ttimea=0;\r\n\t\t\t\ttimeb=0;\r\n\t\t\t\t\r\n\t\t\t}//if time between consecutive hit is less than 3 seconds ,then bonus score\r\n\t\t\tsetScore(10);\r\n\t\t\tPlayer.coordinatesHit.add(coordx + \",\" + coordy);\r\n\t\t\tsetReply(\"It's a Hit!!!!!\");\r\n\t\t} else if (Player.userGrid[x][y] == 0) {\r\n\t\t\tPlayer.userGrid[x][y] = 3;\r\n\t\t\tsetScore(-1);\r\n\t\t\tsetReply(\"It's a miss!!!!!\");\r\n\t\t} else if (Player.userGrid[x][y] == 2 || Player.userGrid[x][y] == 3) {\r\n\t\t\tsetReply(\"The location has been hit earlier\");\r\n\t\t\t//throw new LocationHitException(\"The location has been hit earlier\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Override public void postGlobal() {\n for(int i=1;i<_chkMaxs.length;++i)\n _chkMaxs[i] = _chkMaxs[i-1] > _chkMaxs[i] ? _chkMaxs[i-1] : _chkMaxs[i];\n }", "@Override\r\n\tpublic void setThresholds(int itemthreshold, int timethreshold) {\n\t\t\r\n\t}", "private void derivedTask(Task task) {\r\n if (task.aboveThreshold()) {\r\n float budget = task.getBudget().singleValue();\r\n float minSilent = parameters.SILENT_LEVEL / 100.0f;\r\n if (budget > minSilent)\r\n report(task.getSentence(), false); // report significient derived Tasks\r\n newTasks.add(task);\r\n }\r\n }", "private int backtrack(Deplacement depl, Couleur couleurJoueur) {\n\t\tint maxBack = depl.size();\n\t\tfor(int i = 0; i < Constantes.N; i++) {\n\t\t\tfor(int j = 0; j < Constantes.N; j++) {\n\t\t\t\tdepl.add(new Position(i,j));\n\t\t\t\tif(estValide(depl, couleurJoueur)) {\n\t\t\t\t\tint val = backtrack(depl, couleurJoueur);\n\t\t\t\t\tif(val > maxBack) {\n\t\t\t\t\t\tmaxBack = val;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdepl.remove(depl.size() - 1);\n\t\t\t}\n\t\t}\n\t\treturn maxBack;\n\t}", "public void Team_A_3_Points(View v) {\n teamAScore = teamAScore + 3;\n displayForTeamA(teamAScore);\n }", "public void tracking_Report()\n {\n\t boolean trackingpresent =trackingreport.size()>0;\n\t if(trackingpresent)\n\t {\n\t\t //System.out.println(\"Tracking report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Tracking report is not present\");\n\t }\n }", "public void setTrack(String newTrack)\n\t{\n\t\tthis.bgm = newTrack;\n\t}", "private void projectWeekAnxiety() {\n increaseStat(Stat.ANXIETY, 10);\n }", "public void setMaxTrackingLostTime(long delta) {\n\t\tthis.maxTrkLostFor = delta;\t\n\t\tlogger.create().info().level(2).extractCallInfo()\n\t\t\t.msg(\"Max tracking lost time set to: \"+(delta/1000)+\"s\").send();\n\t}", "void projectFound( String key ){\n projectInProgress = new Project();\n }", "@Override\n\tboolean allow() {\n\t\tlong curTime = System.currentTimeMillis()/1000 * 1000;\n\t\tlong boundary = curTime - 1000;\n\t\tsynchronized (log) {\n\t\t\t//1. Remove old ones before the lower boundary\n\t\t\twhile (!log.isEmpty() && log.element() <= boundary) {\n\t\t\t\tlog.poll();\n\t\t\t}\n\t\t\t//2. Add / log the new time\n\t\t\tlog.add(curTime);\n\t\t\tboolean allow = log.size() <= maxReqPerUnitTime;\n\t\t\tSystem.out.println(curTime + \", log size = \" + log.size()+\", allow=\"+allow);\n\t\t\treturn allow;\n\t\t}\n\t}", "public void WatchOverIt(int target_rank);", "public void openUpProject(Subproject project) {\n\t\tSubprojectField field=project.setChip(current.removeChip());\n\t\tcurrent.raiseScore(field.getAmountSZT());\n\t}", "public Ref whenPast(long absMillis, Thunk target) {\n return whenPast(absMillis, target, \"run\", E.NO_ARGS);\n }" ]
[ "0.5387721", "0.5359562", "0.5333467", "0.5308999", "0.526666", "0.52435", "0.51503986", "0.5116138", "0.5077327", "0.5076779", "0.50717807", "0.5052419", "0.5008714", "0.50026506", "0.4992294", "0.49693656", "0.49688953", "0.49679607", "0.49617237", "0.49593684", "0.49489915", "0.4941075", "0.49337062", "0.49254042", "0.4917468", "0.49103934", "0.4883632", "0.4877507", "0.48746574", "0.48724028", "0.48688942", "0.4865885", "0.48648465", "0.4862459", "0.486044", "0.48540267", "0.48473203", "0.48473203", "0.48430675", "0.48371443", "0.48365307", "0.4819519", "0.4819218", "0.47947764", "0.47942904", "0.4781138", "0.47695196", "0.47680002", "0.4762057", "0.4758098", "0.47535616", "0.47446635", "0.4742932", "0.47207907", "0.4719561", "0.47183344", "0.47175375", "0.47147328", "0.4708355", "0.47063947", "0.4702104", "0.46990854", "0.46979722", "0.46961772", "0.46931872", "0.4687667", "0.46870345", "0.4685814", "0.46775824", "0.46769506", "0.46769473", "0.46762532", "0.46750042", "0.46727878", "0.4670735", "0.46692786", "0.46647662", "0.46448952", "0.46425593", "0.46409804", "0.46369117", "0.4635356", "0.4633166", "0.4631573", "0.46291772", "0.46290168", "0.46273208", "0.46266568", "0.46260518", "0.46220702", "0.46196443", "0.4616687", "0.46107155", "0.4595944", "0.45918155", "0.45857626", "0.45821765", "0.45711228", "0.45703983", "0.45693454", "0.45671165" ]
0.0
-1
The ID of the webhook that was used to send out this callback
@ApiModelProperty(example = "b2f574ff-7efe-4579-9f16-fcb9097e5ab6", required = true, value = "The ID of the webhook that was used to send out this callback") public UUID getWebhook() { return webhook; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getReceiverid();", "Object getMessageId();", "public String getCallId();", "long getMessageId();", "long getMessageId();", "int getMessageId();", "java.lang.String getRequestID();", "public Integer getHandlerId(){\n return SocketUtilities.byteArrayToInt(handlerId);\n }", "String getNotificationID();", "long getMessageID();", "long getMessageID();", "public UUID getID() {\r\n if(!getPayload().has(\"id\")) return null;\r\n return UUID.fromString(getPayload().getString(\"id\"));\r\n }", "String getWebhookName();", "java.lang.String getMessageId();", "@Override\n\tpublic String getListenerId()\n\t{\n\t\treturn ID;\n\t}", "int getSendid();", "public Object getMessageId()\n {\n return getUnderlyingId(true);\n }", "public UUID getCallId() {\n return callId;\n }", "public Long getId() {\n\t\treturn EventHandlerClass.DEFAULT_ID;\n\t}", "public int getReceiverid() {\n return receiverid_;\n }", "public String getPayloadId() {\r\n return this.payloadId;\r\n }", "public String getCallIdentifier() {\n return callIdHeader.getCallId();\n }", "public String getWebhookUrl() {\n return webhookUrl;\n }", "public String getId() {\n\t\treturn this.token.get(\"id\").toString();\n\t}", "public int getReceiverid() {\n return receiverid_;\n }", "public byte[] getID() {\n return messageid;\n }", "private String getNewConversationId( )\r\n {\r\n return UUID.randomUUID( ).toString( );\r\n }", "public byte getResponseId() {\n return responseId;\n }", "public long getIdMessage() {\r\n\t\treturn idMessage;\r\n\t}", "ResourceID getHeartbeatTargetId();", "public String getConsumerID(WSMessageConsumerDTO consumerDTO){\n String id = consumerDTO.getReceiverId();\n return id;\n }", "@Override\n\tpublic Handler getId() {\n\t\treturn null;\n\t}", "RemoteEventIdentifier createRemoteEventIdentifier();", "java.lang.String getMessageInfoID();", "@NonNull\n public String getIdentifier() {\n return mProto.id;\n }", "long getRpcId();", "String getTheirPartyId();", "@Override\n public long getUUID() {\n return endpointHandler.getUUID();\n }", "java.lang.String getSenderId();", "long getWorkflowID();", "public long getId() {\n\t\treturn _tempNoTiceShipMessage.getId();\n\t}", "@Override\n\tpublic int getId() {\n\t\treturn delegate.getId();\n\t}", "String getInvitationId();", "public int getCallId() {\n return this.mCallId;\n }", "public String getMessageId() {\n Field field = obtainField(FieldName.MESSAGE_ID);\n if (field == null)\n return null;\n\n return field.getBody();\n }", "@java.lang.Override\n public long getRequesterId() {\n return requesterId_;\n }", "FlowId id();", "public Number getWorkflowNotificationId() {\r\n return (Number) getAttributeInternal(WORKFLOWNOTIFICATIONID);\r\n }", "public String senderId() {\n return senderId;\n }", "long getCaptureFestivalId();", "public String getReceiverId() {\n return receiverId;\n }", "public long getMessageId() {\n return instance.getMessageId();\n }", "public int getR_Request_ID();", "public int getSenderId() {\n return senderId;\n }", "public static int getNotificationId(Bundle extras) {\n if (extras != null) {\n if (extras.containsKey(Constants.APPBOY_PUSH_CUSTOM_NOTIFICATION_ID)) {\n try {\n int notificationId = Integer.parseInt(extras.getString(Constants.APPBOY_PUSH_CUSTOM_NOTIFICATION_ID));\n Log.d(TAG, String.format(\"Using notification id provided in the message's extras bundle: \" + notificationId));\n return notificationId;\n\n } catch (NumberFormatException e) {\n Log.e(TAG, String.format(\"Unable to parse notification id provided in the message's extras bundle. Using default notification id instead: \" + Constants.APPBOY_DEFAULT_NOTIFICATION_ID));\n e.printStackTrace();\n return Constants.APPBOY_DEFAULT_NOTIFICATION_ID;\n }\n } else {\n String messageKey = AppboyNotificationUtils.bundleOptString(extras, Constants.APPBOY_PUSH_TITLE_KEY, \"\")\n + AppboyNotificationUtils.bundleOptString(extras, Constants.APPBOY_PUSH_CONTENT_KEY, \"\");\n int notificationId = messageKey.hashCode();\n Log.d(TAG, String.format(\"Message without notification id provided in the extras bundle received. Using a hash of the message: \" + notificationId));\n return notificationId;\n }\n } else {\n Log.d(TAG, String.format(\"Message without extras bundle received. Using default notification id: \" + Constants.APPBOY_DEFAULT_NOTIFICATION_ID));\n return Constants.APPBOY_DEFAULT_NOTIFICATION_ID;\n }\n }", "public static String getTransId() {\n\n return MDC.get(MDC_KEY_REQUEST_ID);\n }", "com.google.protobuf.ByteString\n getSenderIdBytes();", "netty.framework.messages.MsgId.MsgID getMsgID();", "netty.framework.messages.MsgId.MsgID getMsgID();", "public int getSendid() {\n return sendid_;\n }", "com.google.protobuf.ByteString getRecognizerIdBytes();", "@Override\n\tpublic String getListenerID() {\n\t\treturn null;\n\t}", "public interface AppIdCallback {\n String getAppId();\n}", "com.google.protobuf.ByteString\n getMessageIdBytes();", "@java.lang.Override\n public long getRequesterId() {\n return requesterId_;\n }", "public String getResponseId() {\n return responseId;\n }", "public String getId() {\n\t\treturn m_MessageId;\n\t}", "public long getMessageID() {\n return messageID_;\n }", "@Override\n public String getStringID() {\n return endpointHandler.getStringID();\n }", "public String getWechatId() {\n return wechatId;\n }", "public String getIdrequest() {\r\n\t\treturn idrequest;\r\n\t}", "@Override\n\tpublic String getConversationId() {\n\t\treturn null;\n\t}", "public int getEventID() {\r\n return eventID;\r\n }", "java.lang.String getProtocolId();", "public int getSenderId() {\r\n\t\treturn senderId;\r\n\t}", "@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }", "public int getWindowID() {\n\t\treturn windowID;\n\t}", "public Long getMessage_id() {\n return message_id;\n }", "java.lang.String getChannelId();", "public String getEndpointId();", "int getMsgid();", "public int getSendid() {\n return sendid_;\n }", "public int getEventID()\n {\n return eventID;\n }", "public int getMessageId() {\n return concatenateBytes(binary[MSID_OFFSET],\n binary[MSID_OFFSET+1],\n binary[MSID_OFFSET+2],\n binary[MSID_OFFSET+3]);\n }", "@Override\n public String getFunctionId() {\n return getFunction().getFunctionDefinition().getUniqueId();\n }", "public java.lang.String getReceiverId() {\r\n return receiverId;\r\n }", "public int getReceiverID(int messageID){\n Message message = allmessage.get(messageID);\n return message.getGetterid();\n }", "public long getConversationID() {\n return conversationID;\n }", "public int getR_RequestType_ID();", "public Integer getSendId() {\r\n return sendId;\r\n }", "public final String getHandlerId() {\n return prefix;\n }", "int getClientSessionID();", "public int getId() throws android.os.RemoteException;", "@Override\n public void onInvitationReceived(Invitation invitation) {\n String mIncomingInvitationId = invitation.getInvitationId();\n }", "public String getReceiver() {\n\t\treturn receiverId;\n\t}", "String getConfigurationHandlerId();", "public Integer getReceiveid() {\n return receiveid;\n }", "public String getId() {\n return mBundle.getString(KEY_ID);\n }", "private synchronized int webhookCount(String clientId) {\n if (!clientWebhooks.containsKey(clientId))\n clientWebhooks.put(clientId, 0);\n return clientWebhooks.get(clientId);\n }", "public long getMessageID() {\n return messageID_;\n }" ]
[ "0.63530827", "0.6265589", "0.6192923", "0.6163725", "0.6163725", "0.613895", "0.6095971", "0.60430336", "0.6029616", "0.5988508", "0.5988508", "0.59600914", "0.59502405", "0.59208596", "0.5906806", "0.58923876", "0.5888423", "0.58828217", "0.5848158", "0.58318603", "0.5806427", "0.5771967", "0.575068", "0.5741714", "0.57386905", "0.56954795", "0.5671526", "0.5651503", "0.56374997", "0.56330717", "0.5622086", "0.56161207", "0.5580268", "0.5577687", "0.5576655", "0.55761623", "0.5537856", "0.55251634", "0.55035275", "0.5479495", "0.5476906", "0.5476205", "0.5472393", "0.5472105", "0.5470701", "0.5463701", "0.54582417", "0.54436845", "0.54399073", "0.5439734", "0.5434253", "0.5433313", "0.543111", "0.5428571", "0.5423483", "0.54194105", "0.541767", "0.54138714", "0.54138714", "0.54117584", "0.54035574", "0.54021055", "0.5390244", "0.53871375", "0.5384306", "0.53652537", "0.53652537", "0.5349959", "0.53472525", "0.5342123", "0.53346086", "0.53343594", "0.5302524", "0.5302498", "0.53001964", "0.5296793", "0.52963644", "0.5289533", "0.5285343", "0.52796495", "0.5276101", "0.52758235", "0.52708226", "0.52682203", "0.5265761", "0.52617514", "0.5258836", "0.52575445", "0.52538174", "0.5251702", "0.5249439", "0.52473193", "0.52456427", "0.524407", "0.5242856", "0.52389175", "0.5236844", "0.5233661", "0.52276385", "0.52274615" ]
0.7196986
0
The event that triggered this webhook
@ApiModelProperty(example = "transaction.paid", required = true, value = "The event that triggered this webhook") public String getEvent() { return event; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEvent() {\n return this.event;\n }", "public Object getEvent() {\r\n return event;\r\n }", "EventType getEvent();", "public String getEventMessage() {\n return eventMessage;\n }", "java.lang.String getEventType();", "public String getPushEvent();", "public String getEventId();", "@Override\n public Object getEvent() {\n return eventObj;\n }", "public String getEventName();", "public Event getEvent(){\n\t\t\treturn event;\n\t\t}", "public Event getEvent() {\n\t\treturn event;\n\t}", "public SoEvent getEvent() {\n\t\treturn (eventAction != null ? eventAction.getEvent() : null); \n\t}", "public final String getEventType() {\n return this.id;\n }", "String getEventId();", "public String getEventType()\r\n {\r\n return eventType;\r\n }", "public String getEventType() {\r\n return eventType;\r\n }", "public String getEventType()\n {\n return eventType;\n }", "public String getEventType() {\n return eventType;\n }", "Event getEvent();", "public java.lang.String getEventId() {\n return eventId;\n }", "public int eventType() {\n return this._evtType;\n }", "public java.lang.String getEventId() {\n return eventId;\n }", "com.google.protobuf.ByteString getEventTypeBytes();", "public String getEventType() {\n\t\treturn eventType;\n\t}", "public long getEventId() {\n return eventId;\n }", "public EventType getEventType() {\n return this.eventType;\n }", "public int getEventValue() {\n return event_;\n }", "public String getExampleEvent() {\n return exampleEvent;\n }", "public String toAPICallbackEvent() {\n if (sdkNotificationEvent == null) {\n return apiCallbackEvent;\n }\n return sdkNotificationEvent.getApiValue();\n }", "@JsonProperty(\"EventType\")\r\n\tpublic EventRequest.EventType getEventType() {\r\n\t\treturn eventType;\r\n\t}", "public EventOccurrence getReceiveEvent();", "String getEventType();", "public int getEventValue() {\n return event_;\n }", "public String getEventName() {\n\t\treturn mEventName;\n\t}", "public int getEventCode() {\n return eventCode;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn this.event;\r\n\t}", "public String getEvent_code() {\n\t\treturn event_code;\n\t}", "@JsonGetter(\"event\")\r\n public String getEvent ( ) { \r\n return this.event;\r\n }", "public int getEventID() {\r\n return eventID;\r\n }", "com.google.speech.logs.timeline.InputEvent.Event getEvent();", "@Override\r\n\tpublic Long getEventId() {\n\t\treturn null;\r\n\t}", "public java.lang.String getEVENT_CODE()\n {\n \n return __EVENT_CODE;\n }", "public int getEventTypeID() {\r\n\treturn eventType;\r\n}", "@Override\n\t@Transient\n\tpublic String getEventType() {\n\t\treturn \"AFTER\";\n\t}", "public String getTypeEvent() {\n\t\treturn typeEvent;\n\t}", "@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}", "public String getEventTypeDescription()\n {\n return eventTypeDescription;\n }", "public IEvent getCauseEvent();", "public String getEventNameCode() {\n return eventNameCode;\n }", "Date getEventFiredAt();", "public String getEventID(){\n return eventID;\n }", "public LiveData<Event> getEvent() {\n return event;\n }", "@JsonProperty(\"EventObject\")\r\n\tpublic String getEventObject() {\r\n\t\treturn eventObject;\r\n\t}", "public String getEventLocation() {\n\t\treturn eventLocation;\n\t}", "public String getEventTypeName()\n {\n return eventTypeName;\n }", "public int getEventID()\n {\n return eventID;\n }", "public SoHandleEventAction getAction() { return eventAction; }", "@JsonProperty(\"event_name\")\n @ApiModelProperty(value = \"How an `event_handler` node is processed.\")\n public EventNameEnum getEventName() {\n return eventName;\n }", "@Override\n public String getEventType()\n {\n\t return null;\n }", "public Event getEvent() {\n\n return null;\n }", "public String getWebhookUrl() {\n return webhookUrl;\n }", "public String getAction(GoogleCloudDialogflowV2WebhookRequest webHookRequest) {\n String action = \"\";\n\n GoogleCloudDialogflowV2QueryResult queryResult = webHookRequest.getQueryResult();\n\n if (queryResult != null) {\n action = queryResult.getAction();\n }\n\n return action;\n }", "public String getEventUserFlow() {\r\n\t\treturn eventUserFlow;\r\n\t}", "public String getEventClass() {\n return eventClass;\n }", "public String getServicingEventLogInitiateActionReference() {\n return servicingEventLogInitiateActionReference;\n }", "public Constants.LongPollEvent getEvent() {\n if (this == DROP_MESSAGE) return Constants.LongPollEvent.FILTERED_CHAT;\n else return null;\n }", "String getWebhookName();", "public Response fire(EventI event);", "@ApiModelProperty(example = \"b2f574ff-7efe-4579-9f16-fcb9097e5ab6\", required = true, value = \"The ID of the webhook that was used to send out this callback\")\n public UUID getWebhook() {\n return webhook;\n }", "public EventOccurrence getSendEvent();", "HabitEvent getPassedHabitEvent();", "public EventType getEvent() {\n EventType result = EventType.valueOf(event_);\n return result == null ? EventType.UNRECOGNIZED : result;\n }", "@Override\n\tpublic EVENT_TYPE getEventType() {\n\t\treturn EVENT_TYPE.FLOW_EVENT;\n\t}", "public String getEventUserName() {\r\n\t\treturn eventUserName;\r\n\t}", "public Integer getEventid() {\n return eventid;\n }", "@Override\n public String toString() {\n StringBuffer buf = new StringBuffer(\"TriggerEvent{name=\");\n buf.append(name).append(\",type=\").append(type);\n if (payload != null) {\n buf.append(\",payload=\").append(payload.toString());\n }\n buf.append(\"}\");\n return String.valueOf(buf);\n }", "public String Get_event_value() \n {\n\n return event_value;\n }", "public java.lang.Long getEventTimestamp() {\n return eventTimestamp;\n }", "public java.lang.Long getEventTimestamp() {\n return eventTimestamp;\n }", "public EventType getEvent() {\n EventType result = EventType.valueOf(event_);\n return result == null ? EventType.UNRECOGNIZED : result;\n }", "public long getEventVersionId()\n {\n return eventVersionId;\n }", "public String getEventNote() {\r\n\t\treturn eventNote;\r\n\t}", "public ClEvent getEventType()\n {\n return eventType;\n }", "public EventEntry getEventEntry();", "public long getEventTime() {\n return eventTime;\n }", "public String getEventTime() {\r\n return eventTime;\r\n }", "com.walgreens.rxit.ch.cda.EIVLEvent getEvent();", "public String getEventTitle() {\n\t\treturn title;\n\t}", "public CommunityProfileOutboundEventType getEventType()\n {\n return eventType;\n }", "public interface Event\n\t{\n\t\tpublic static final String EVENT_ID = \"aether.event.id\";\n\t\tpublic static final String TIME = \"aether.event.time\";\n\t\tpublic static final String EVENT_TYPE = \"aether.event.type\";\n\t}", "public final EventType getEventType() {\n return parent.getEventType();\n }", "@EventName(\"receivedMessageFromTarget\")\n EventListener onReceivedMessageFromTarget(EventHandler<ReceivedMessageFromTarget> eventListener);", "@Override\n public void receive(CloudServiceEvent event) {\n logger.debug(\"Cloudstack event received: reference type:\" + event.getCloudServiceReferenceType() + \" reference id:\"\n + event.getCloudServiceReferenceId());\n }", "public String getEventTime() {\r\n\t\treturn eventTime;\r\n\t}", "public String getIntentDisplayName(GoogleCloudDialogflowV2WebhookRequest webHookRequest) {\n String action = \"\";\n\n GoogleCloudDialogflowV2QueryResult queryResult = webHookRequest.getQueryResult();\n\n if (queryResult != null) {\n action = queryResult.getIntent().getDisplayName();\n }\n\n return action;\n }", "public String getEventLocation() {\n\t\treturn location;\n\t}", "public ServletContextEvent getEvent() {\r\n\t\treturn (ServletContextEvent) eventHolder.get();\r\n\t}", "public String getMessageFired()\r\n\t{\r\n\t\treturn getMessageFired( getSession().getSessionContext() );\r\n\t}", "@JsonProperty(\"EventType\")\r\n\tpublic void setEventType(EventRequest.EventType eventType) {\r\n\t\tthis.eventType = eventType;\r\n\t}" ]
[ "0.6833718", "0.68174493", "0.6763698", "0.66796345", "0.66687244", "0.66395956", "0.6636396", "0.65173244", "0.6515056", "0.6484487", "0.6465175", "0.6432092", "0.64052856", "0.6397422", "0.6395049", "0.63783", "0.63739467", "0.63502944", "0.6335923", "0.6306087", "0.62709934", "0.6260032", "0.62120885", "0.6205034", "0.61809224", "0.6163571", "0.6152839", "0.6149649", "0.6139907", "0.61281604", "0.6087086", "0.60853684", "0.608228", "0.60780644", "0.60627496", "0.60347855", "0.6029347", "0.6023606", "0.60235494", "0.6016511", "0.60143036", "0.60108393", "0.59597445", "0.5955675", "0.5941496", "0.59357345", "0.59357345", "0.5915758", "0.5915404", "0.59038705", "0.5900662", "0.58932734", "0.58876705", "0.5887595", "0.58827895", "0.587893", "0.5873619", "0.58547753", "0.5850411", "0.5838568", "0.5837628", "0.58209074", "0.58192533", "0.58180845", "0.579597", "0.57922244", "0.5785927", "0.57736975", "0.5766435", "0.57623047", "0.5750561", "0.5743991", "0.5715685", "0.571494", "0.5700642", "0.56967795", "0.5696741", "0.5690646", "0.56844884", "0.5664669", "0.56608653", "0.56531036", "0.56500274", "0.562878", "0.5623636", "0.5619546", "0.56103194", "0.5606575", "0.55877477", "0.5585406", "0.55818886", "0.5579638", "0.55702084", "0.5544524", "0.5543265", "0.55425507", "0.55420274", "0.5539957", "0.55375904", "0.55351496" ]
0.7013365
0
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }", "private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }", "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }" ]
[ "0.78847593", "0.75493765", "0.74971926", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168" ]
0.0
-1
We have to call the classes of List and List_Items In order to operate with all the information
@FXML public void New_List(ActionEvent actionEvent) { //Here we are going to open a window to create a list. //Working!! try { FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("NewTodolist.fxml")); Parent root1 = (Parent) fxmlLoader.load(); Stage stage = new Stage(); stage.initModality(Modality.APPLICATION_MODAL); stage.initStyle(StageStyle.UNDECORATED); stage.setTitle("New List"); stage.setScene(new Scene(root1)); stage.show(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListItems() {\n itemList = new ArrayList();\n }", "public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }", "public List<Item> getItemList();", "private void populateItems (ObservableList<Item> itemList) throws ClassNotFoundException {\n\t\ttblResult.setItems(itemList);\n\t}", "public abstract java.util.List extractListItems (Object obj, String countProp, String itemProp) \n\t throws SAFSException;", "public ItemListDTO(LinkedList<QuantifiedItemDTO> itemList) {\r\n\t\titems = itemList;\r\n\t}", "@NotNull\n @Deprecated\n protected abstract List<? extends ListItem> readItems();", "public TaskList(List<ListItem> inputList) {\n this.listItems = new ArrayList<ListItem>(inputList);\n }", "java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> \n getItemList();", "java.util.List<com.rpg.framework.database.Protocol.Item> \n getItemsList();", "private static List<Item> getItems() {\n\t\treturn items;\n\t}", "@Override\n public Iterator<Item> iterator(){return new ListIterator();}", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "public void updateItemsList(List<Image> list) {\n\n\t\tthis.itemsList = list;\n\n\t}", "public abstract String getListItem (Object obj, int i, String itemProp) \n throws SAFSException;", "private void readItems() {\n }", "void updateList(ShoppingList _ShoppingList);", "private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }", "private void initList() {\n\n }", "abstract void makeList();", "public static void createLists() {\r\n \t\t// Raw Meat: (A bit cold...)\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.beef);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.porkchop);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.chicken);\r\n \t\t\r\n \t\t// Cooked Meat: (Meaty goodness for carnivorous pets!)\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_beef);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_porkchop);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_chicken);\r\n \t\t\r\n \t\t// Prepared Vegetables: (For most vegetarian pets.)\r\n \t\tObjectLists.addItem(\"vegetables\", Items.wheat);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.carrot);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.potato);\r\n \t\t\r\n \t\t// Fruit: (For exotic pets!)\r\n \t\tObjectLists.addItem(\"fruit\", Items.apple);\r\n \t\tObjectLists.addItem(\"fruit\", Items.melon);\r\n \t\tObjectLists.addItem(\"fruit\", Blocks.pumpkin);\r\n \t\tObjectLists.addItem(\"fruit\", Items.pumpkin_pie);\r\n \r\n \t\t// Raw Fish: (Very smelly!)\r\n \t\tObjectLists.addItem(\"rawfish\", Items.fish);\r\n \r\n \t\t// Cooked Fish: (For those fish fiends!)\r\n \t\tObjectLists.addItem(\"cookedfish\", Items.cooked_fished);\r\n \t\t\r\n \t\t// Cactus Food: (Jousts love these!)\r\n \t\tObjectLists.addItem(\"cactusfood\", new ItemStack(Items.dye, 1, 2)); // Cactus Green\r\n \t\t\r\n \t\t// Mushrooms: (Fungi treats!)\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom_block);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom_block);\r\n \t\t\r\n \t\t// Sweets: (Sweet sugary goodness!)\r\n \t\tObjectLists.addItem(\"sweets\", Items.sugar);\r\n \t\tObjectLists.addItem(\"sweets\", new ItemStack(Items.dye, 1, 15)); // Cocoa Beans\r\n \t\tObjectLists.addItem(\"sweets\", Items.cookie);\r\n \t\tObjectLists.addItem(\"sweets\", Blocks.cake);\r\n \t\tObjectLists.addItem(\"sweets\", Items.pumpkin_pie);\r\n \t\t\r\n \t\t// Fuel: (Fiery awesomeness!)\r\n \t\tObjectLists.addItem(\"fuel\", Items.coal);\r\n \t\t\r\n \t\t// Custom Entries:\r\n \t\tfor(String itemListName : itemListNames) {\r\n \t\t\taddFromConfig(itemListName.toLowerCase());\r\n \t\t}\r\n \t}", "public DaftarMhs_list(ArrayList<NamaMhs_Obj> list_data) {\n\n this.list_data = list_data;\n\n\n }", "protected void listItem(List<String> list) {\n for (int i = 0; i < list.size(); i++) {\n System.out.println(i + 1 + \" \" + list.get(i));\n }\n }", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "public AList() {\n items = (TypeHere[]) new Object[100];\n size = 0;\n }", "protected abstract List<E> getList();", "@Override\n\tpublic void listAllItems() {\n\t\t\n\t}", "public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }", "public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }", "private void loadLists() {\n }", "@SuppressWarnings(\"unchecked\")\r\n \tpublic List() {\r\n \t\titems = (T[]) new Object[INIT_LEN];\r\n \t\tnumItems = 0;\r\n \t\tcurrentObject = 0;\r\n \t}", "public void populateList() {\n }", "public void list()\n {\n for(Personality objectHolder : pList)\n {\n String toPrint = objectHolder.getDetails();\n System.out.println(toPrint);\n }\n }", "public void getShowRecord(List<MentalShowStruct> list) {\n/* 55 */ this.component.getRevertShowList(list);\n/* */ }", "java.util.List<java.lang.Integer> getItemsList();", "private List getList() {\n if(itemsList == null) {\n itemsList = new ArrayList<>();\n }\n return itemsList;\n }", "private void initList(CartInfo ci) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public abstract void setList(List<T> items);", "@Override\n public void definitionListItem_()\n {\n }", "public abstract java.util.Vector setDB2ListItems();", "private Lists() { }", "public interface LifeItem{\n List getTitle();\n List getContent();\n}", "public MutiList() {\n\t\tsuper();\n\t\tthis.myList = new ArrayList<>();\n\t}", "public List<TaskItemBean> getItemList(){\n return itemList;\n }", "private void getItemListById() throws ClassNotFoundException, SQLException, IOException {\n itemCodeCombo.removeAllItems();\n ItemControllerByChule itemController = new ItemControllerByChule();\n ArrayList<Item> allItem = itemController.getAllItems();\n itemCodeCombo.addItem(\"\");\n for (Item item : allItem) {\n itemCodeCombo.addItem(item.getItemCode());\n }\n itemListById.setSearchableCombo(itemCodeCombo, true, null);\n }", "protected void populateItem(ListItem<T> item) {\n }", "private List<EffectInfoModel> m19296a(List<TemplateInfo> list, List<TemplateInfo> list2, Set<Long> set) {\n ArrayList arrayList = new ArrayList();\n int count = this.bOt.getCount();\n if (count == 0) {\n return arrayList;\n }\n for (int i = 0; i < count; i++) {\n EffectInfoModel vh = this.bOt.mo35214vh(i);\n if (vh != null && !vh.isbNeedDownload() && C8451b.m24479up(QTemplateIDUtils.getTemplateSubType(vh.mTemplateId))) {\n TemplateInfo a = m19294a(vh.mTemplateId, (List<TemplateInfo>[]) new List[]{list2, list});\n if (a != null && !a.isRecommendItem()) {\n vh.mThumbUrl = a.strIcon;\n vh.mName = a.strTitle;\n vh.strSceneName = a.strScene;\n }\n if (set.add(Long.valueOf(vh.mTemplateId))) {\n arrayList.add(vh);\n }\n }\n }\n return arrayList;\n }", "@Override\n public void updateLists(ItemList userItemList, ItemList auctionItemList) {\n this.auctionItemList = auctionItemList;\n this.userItemList = userItemList;\n updateJList();\n }", "void addList(ShoppingList _ShoppingList);", "protected abstract void loadItemsInternal();", "@Override\n public void definitionListItem()\n {\n }", "public list() {\r\n }", "private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }", "@Test\n public void testGetListItems() {\n System.out.println(\"getListItems\");\n DataModel instance = new DataModel();\n List expResult = null;\n List result = instance.getListItems();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "void selectList(ShoppingList _ShoppingList);", "public void setListItems(List<String> lit) { mItems = lit; }", "private void prepareTheList()\n {\n int count = 0;\n for (String imageName : imageNames)\n {\n RecyclerUtils pu = new RecyclerUtils(imageName, imageDescription[count] ,images[count]);\n recyclerUtilsList.add(pu);\n count++;\n }\n }", "void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}", "public void init(List<ClientDownloadItem> list) {\n if (list != null) {\n mItemlist.clear();\n mItemlist.addAll(list);\n Log.i(TAG, \"mItemlist.size = \" + mItemlist.size());\n notifyDataSetChanged();\n }\n }", "private List<View> m9533a(List<View> list, List<View> list2) {\n LinkedList linkedList = new LinkedList();\n if (list != null && !list.isEmpty()) {\n int size = list.size();\n for (int i = 0; i < size; i++) {\n linkedList.add(list.get(i));\n }\n }\n if (list2 != null && !list2.isEmpty()) {\n int size2 = list2.size();\n for (int i2 = 0; i2 < size2; i2++) {\n linkedList.add(list2.get(i2));\n }\n }\n return linkedList;\n }", "public void setNewList(List<Item> items) {\n if (mUseIdDistributor) {\n IdDistributor.checkIds(items);\n }\n mItems = new ArrayList<>(items);\n mapPossibleTypes(mItems);\n getFastAdapter().notifyAdapterDataSetChanged();\n }", "ListItem createListItem();", "@Override\n\tpublic void sendItemListRequest() {\n\t\ttry {\n\t\t\tString xml = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\txml = server.getItems();\n\t\t\t} else {\n\t\t\t\tWebResource itemListReqService = service.path(URI_GETITEMS);\n\t\t\t\txml = itemListReqService.accept(MediaType.TEXT_XML).get(String.class);\n\t\t\t}\n\t\t\n\t\t\tArrayList<ItemObject> items = XMLParser.parseToListItemObject(xml);\n\t\t\tgui.setTableContent(items);\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClientHandlerException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!!\");\n\t\t} catch (WebServiceException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!!\");\n\t\t}\n\t}", "public ArrayList<ItemListElement> formatOutputForList() {\n \t\n \tArrayList<ItemListElement> item = new ArrayList<ItemListElement>();\n \t\n \tfor (int i = 0;i < currentTaskItems.size(); i++) {\n \t\n \t\t//map for item\n \t\t//0 -> number of item\n \t\t//1 -> item type\n \t\t//2 -> description\n \t\tString[] s = currentTaskItems.get(i);\n \t\tString top = s[0] + \" \" + s[1] + \" file(s)\";\n \t\tString bottom = \"Description: \" + s[2];\n \t\t\n \t\t//add the item to the list\n \t\titem.add(new ItemListElement(\n \t\t Utility.getIconFromString(s[1]), \n \t\t top, bottom));\n \t} \t\n \treturn item; \t\n }", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }", "public ChainShopAdapter(List<MultiItemEntity> data) {\n super(data);\n addItemType(TYPE_LEVEL_1, R.layout.item_shop_employess_list);\n addItemType(TYPE_PERSON, R.layout.item_shop_employee);\n }", "public MultiList(int listType){\n this.listType = listType;\n }", "public DList2 list(){\r\n return this.list;\r\n }", "public final void accept(List<l> list) {\n com.iqoption.core.data.b.c a = this.dlr.dlm;\n kotlin.jvm.internal.h.d(list, \"it\");\n a.setValue(list);\n }", "public FeedAdapter(Context context, List<DailyInfo.IssueListBean.ItemListBean> list) {\n super(context);\n this.list = list;\n }", "ListType createListType();", "@Override\n public String getName() {\n return \"list\";\n }", "public static Object list(List<Object> items) {\n int size = (items == null) ? 0 : items.size();\n if(size > 0) {\n SPair result = new SPair();\n SPair sp = result;\n for(int i = 0; i<size; i++) {\n sp.setCar(items.get(i));\n if(i == size-1) {\n sp.setCdr(SEmptyList.getInstance());\n }\n else {\n SPair tmp = new SPair();\n sp.setCdr(tmp);\n sp = tmp;\n }\n }\n return result;\n }\n else\n return SEmptyList.getInstance();\n }", "abstract List<T> getReuslt();", "@Test\r\n public void testListar() {\r\n TipoItemRN rn = new TipoItemRN();\r\n TipoItem item = new TipoItem();\r\n item.setDescricao(\"ListarDescriçãoTipoItem\");\r\n rn.salvar(item);\r\n \r\n TipoItem item2 = new TipoItem();\r\n item2.setDescricao(\"ListarDescriçãoTipoItem2\");\r\n rn.salvar(item2);\r\n \r\n List<TipoItem> tipoItens = rn.listar();\r\n \r\n assertTrue(tipoItens.size() >0);\r\n \r\n rn.remover(item);\r\n rn.remover(item2);\r\n }", "public void refresh(List<T> list) {\n this.items = list;\n notifyDataSetChanged();\n }", "public List(ObjectProvider ownerOP, AbstractMemberMetaData mmd)\r\n {\r\n super(ownerOP, mmd);\r\n }", "public abstract List<T> getList();", "public abstract void mo56923b(List<C4122e> list);", "public void mapListUpdate(List<Map<Integer, String>> list, int item, String methodType, String updateValue)\n\t{\n\t\tfor(int i=0; i<list.size(); i++)\n\t\t{\n\t\t\tif (methodType.equals(\"PREVIOUSADD\")) \tlist.get(i).put(item, updateValue + list.get(i).get(item));\n\t\t\tif (methodType.equals(\"BACKADD\")) \tlist.get(i).put(item, list.get(i).get(item) + updateValue);\n\t\t\tif (methodType.equals(\"FULLCHANGE\")) \tlist.get(i).put(item, updateValue + list.get(i).get(item));\n\t\t}\n\t}", "private List<ItemModel> addList() {\n List<ItemModel> items = new ArrayList<>();\n\n managerlist = new ArrayList(strangerList);\n for(int i = 0; i < managerlist.size(); i++)\n if(managerlist.get(i).getId().equals(mPI.getId())) {\n managerlist.remove(i);\n break;\n }\n for(PersonalInformation i : managerlist){\n items.add(new ItemModel(i.getGraph(), i.getName(), i.getCity(), i.getAge()));\n }\n return items;\n }", "@Override\n public String toString() {\n return list.toString();\n }", "@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }", "private void getItems() {\n getComputers();\n getPrinters();\n }", "public void listProductList(List<Item> productList) {\n\t\tIterator<Item> iterator = productList.listIterator();\n\t\twhile(iterator.hasNext()) {\n\t\t\tItem item = (Item) iterator.next();\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Item id: \" + item.getId());\n\t\t\tSystem.out.println(\"Name: \" + item.getName());\n\t\t\tSystem.out.println(\"Description: \" + item.getDescription());\n\t\t\tif(item.getQuantity() <= 0)\n\t\t\t\tSystem.out.println(\"Quantity: \"+ \"Out of Stock!! (You cannot buy this item right now)\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Quantity: \" + item.getQuantity());\n\t\t\tSystem.out.println(\"Price per item: \" + item.getPrice());\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public List<New> list();", "public RecyclerViewProductos( List<Producto> lista) {\n this.productoList=lista;\n }", "public List<ItemDTO> getItems()\n\t{\t\n\t\tList<ItemDTO> itemsList = new ArrayList<>();\n\t\tfor (ItemData item : items) \n\t\t\titemsList.add(new ItemDTO(item.idItem,item.description,item.price,item.VAT,item.quantitySold));\t\n\t\treturn itemsList;\n\t}", "public MyAdapterTopics(List<Topics> listItems, Context context) {\n this.listItems = listItems;\n this.context = context;\n }", "void mo29842a(IObjectWrapper iObjectWrapper, zzatk zzatk, List<String> list) throws RemoteException;", "@SuppressWarnings (\"rawtypes\") public java.util.List getItems(){\n return this.items;\n }", "public void initializeList() {\n listitems.clear();\n int medicationsSize = Medications.length;\n for(int i =0;i<medicationsSize;i++){\n Medication Med = new Medication(Medications[i]);\n listitems.add(Med);\n }\n\n }", "public Object get(ListField list, int index) {\nif ( list == _lfBoys ) {\nreturn _listBoys.elementAt(index);\n} else {\nreturn _listGirls.elementAt(index);\n}\n}", "public static void addList() {\n\t}", "public interface IItemList<StackType extends IAEStack> extends IItemContainer<StackType>, Iterable<StackType>\n{\n\n\t/**\n\t * add a stack to the list stackSize is used to add to stackSize, this will merge the stack with an item already in\n\t * the list if found.\n\t * \n\t * @param option stacktype option\n\t */\n\tpublic void addStorage(StackType option); // adds a stack as stored\n\n\t/**\n\t * add a stack to the list as craftable, this will merge the stack with an item already in the list if found.\n\t * \n\t * @param option stacktype option\n\t */\n\tpublic void addCrafting(StackType option);\n\n\t/**\n\t * add a stack to the list, stack size is used to add to requestable, this will merge the stack with an item already\n\t * in the list if found.\n\t * \n\t * @param option stacktype option\n\t */\n\tpublic void addRequestable(StackType option); // adds a stack as requestable\n\n\t/**\n\t * @return the first item in the list\n\t */\n\tStackType getFirstItem();\n\n\t/**\n\t * @return the number of items in the list\n\t */\n\tint size();\n\n\t/**\n\t * allows you to iterate the list.\n\t */\n\t@Override\n\tpublic Iterator<StackType> iterator();\n\n\t/**\n\t * resets stack sizes to 0.\n\t */\n\tvoid resetStatus();\n\n}", "public interface IListActivity {\n public void showList(List<ListBean.DataBean> list);\n}", "Object getTolist();", "@Override\n public Iterator<Item> iterator() {\n return new ListIterator();\n }", "interface List { // List ADT\npublic void clear(); // Remove all Objects from list\npublic void insert(Object item); // Insert Object at curr position\npublic void append(Object item); // Insert Object at tail of list\npublic Object remove(); // Remove/return current Object\npublic void setFirst(); // Set current to first position\npublic void next(); // Move current to next position\npublic void prev(); // Move current to prev position\npublic int length(); // Return current length of list\npublic void setPos(int pos); // Set current to specified pos\npublic void setValue(Object val); // Set current Object's value\npublic Object currValue(); // Return value of current Object\npublic boolean isEmpty(); // Return true if list is empty\npublic boolean isInList(); // True if current is within list\npublic void print(); // Print all of list's elements\n}", "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"ListItem \" + item;\n\t\t}" ]
[ "0.6742514", "0.6525955", "0.6471842", "0.6467685", "0.640348", "0.6366688", "0.63028365", "0.6294909", "0.6289523", "0.6257292", "0.6193452", "0.61743057", "0.61505187", "0.6114848", "0.60993135", "0.6098665", "0.60894185", "0.6041285", "0.6034012", "0.6027945", "0.6025674", "0.60190517", "0.59883165", "0.59881014", "0.598502", "0.59587365", "0.5949719", "0.594268", "0.594268", "0.5942616", "0.5923691", "0.5922595", "0.5907803", "0.58963764", "0.5875292", "0.5870467", "0.5854058", "0.5853419", "0.5846805", "0.58212554", "0.5818585", "0.58169574", "0.5814681", "0.58113885", "0.5807733", "0.58057344", "0.5794159", "0.5781103", "0.5775846", "0.57741386", "0.57720494", "0.5761033", "0.57597756", "0.5755906", "0.57545626", "0.57432914", "0.57411516", "0.57401055", "0.57363987", "0.5735568", "0.5734967", "0.57322204", "0.57295775", "0.5729138", "0.5725007", "0.5721414", "0.5713538", "0.5708363", "0.5697341", "0.5696652", "0.569155", "0.5687622", "0.5687571", "0.56875056", "0.56787676", "0.56744224", "0.5671894", "0.5666962", "0.5660833", "0.5660116", "0.5658458", "0.5657119", "0.565599", "0.5655057", "0.5648587", "0.56376654", "0.56372285", "0.56315905", "0.5627559", "0.56247485", "0.56226075", "0.56179154", "0.5617052", "0.56160384", "0.5615807", "0.56122595", "0.56087893", "0.56045574", "0.5602581", "0.5600019", "0.55981755" ]
0.0
-1
Here we are going to load a list to program. //We have to call the list class
@FXML public void Load_List(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadLists() {\n }", "public void loadList(String name){\n }", "private void initList() {\n\n }", "public void loadAllLists(){\n }", "public List<String> load();", "void doList()\n\t{\n /* currentXXX may NOT be invalid! */\n\n\t\tint currentModule = propertyGet(LIST_MODULE);\n int currentLine = propertyGet(LIST_LINE);\n int listsize = propertyGet(LIST_SIZE);\n\n String arg1 = null;\n int module1 = currentModule;\n int line1 = currentLine;\n\n String arg2 = null;\n int line2 = currentLine;\n\n int numLines = 0;\n\n\t\ttry\n\t\t{\n if (hasMoreTokens())\n\t\t\t{\n arg1 = nextToken();\n\n if (arg1.equals(\"-\")) //$NON-NLS-1$\n {\n\t\t\t\t\t// move back two times the listing size and if listsize is odd then move forward one\n line1 = line2 = line1 - (2 * listsize);\n }\n else\n {\n int[] result = parseLocationArg(currentModule, currentLine, arg1);\n module1 = result[0];\n line2 = line1 = result[1];\n\n if (hasMoreTokens())\n {\n arg2 = nextToken();\n line2 = parseLineArg(module1, arg2);\n }\n }\n\t\t\t}\n\n//\t\t\tSystem.out.println(\"1=\"+module1+\":\"+line1+\",2=:\"+line2);\n\n\t\t\t/**\n\t\t\t * Check for a few error conditions, otherwise we'll write a listing!\n\t\t\t */\n\t\t\tif (hasMoreTokens())\n\t\t\t{\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"lineJunk\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tint half = listsize/2;\n\t\t\t\tSourceFile file = m_fileInfo.getFile(module1);\n\t\t\t\tnumLines = file.getLineCount();\n\n\t\t\t\tint newLine;\n\t\t\t\tif (numLines == 1 && file.getLine(1).equals(\"\")) //$NON-NLS-1$\n\t\t\t\t{\n\t\t\t\t\t// there's no source in the file at all!\n\t\t\t\t\t// this presumably means that the source file isn't in the current directory\n\t\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"sourceFileNotFound\")); //$NON-NLS-1$\n\t\t\t\t\tnewLine = currentLine;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// pressing return is ok, otherwise throw the exception\n\t\t\t\t\tif (line1 > numLines && arg1 != null)\n\t\t\t\t\t\tthrow new IndexOutOfBoundsException();\n\t\n\t\t\t\t\t/* if no arg2 then user requested the next N lines around something */\n\t\t\t\t\tif (arg2 == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tline2 = line1 + (half) - 1;\n\t\t\t\t\t\tline1 = line1 - (listsize-half);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* adjust our range of lines to ensure we conform */\n\t\t\t\t\tif (line1 < 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t/* shrink line 1, grow line2 */\n\t\t\t\t\t\tline2 += -(line1 - 1);\n\t\t\t\t\t\tline1 = 1;\n\t\t\t\t\t}\n\t\n\t\t\t\t\tif (line2 > numLines)\n\t\t\t\t\t\tline2 = numLines;\n\t\n//\t\t\t\t System.out.println(\"1=\"+module1+\":\"+line1+\",2=\"+module2+\":\"+line2+\",num=\"+numLines+\",half=\"+half);\n\t\n\t\t\t\t\t/* nothing to display */\n\t\t\t\t\tif (line1 > line2)\n\t\t\t\t\t\tthrow new IndexOutOfBoundsException();\n\t\n\t\t\t\t\t/* now do it! */\n\t\t\t\t\tSourceFile source = m_fileInfo.getFile(module1);\n\t\t\t\t\tfor(int i=line1; i<=line2; i++)\n\t\t\t\t\t\toutputSource(module1, i, source.getLine(i));\n\t\t\t\t\t\n\t\t\t\t\tnewLine = line2 + half + (((listsize % 2) == 0) ? 1 : 2); // add one if even, 2 for odd;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* save away valid context */\n\t\t\t\tpropertyPut(LIST_MODULE, module1);\n\t\t\t\tpropertyPut(LIST_LINE, newLine);\n\t\t\t\tm_repeatLine = \"list\"; /* allow repeated listing by typing CR */ //$NON-NLS-1$\n\t\t\t}\n\t\t}\n catch(IndexOutOfBoundsException iob)\n\t\t{\n\t\t\tString name = \"#\"+module1; //$NON-NLS-1$\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"line\", Integer.toString(line1)); //$NON-NLS-1$\n\t\t\targs.put(\"filename\", name); //$NON-NLS-1$\n\t\t\targs.put(\"total\", Integer.toString(numLines)); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"lineNumberOutOfRange\", args)); //$NON-NLS-1$\n\t\t}\n\t\tcatch(AmbiguousException ae)\n\t\t{\n\t\t\terr(ae.getMessage());\n\t\t}\n\t\tcatch(NoMatchException nme)\n\t\t{\n\t\t\t// TODO [mmorearty]: try to find a matching source file\n\t\t\terr(nme.getMessage());\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"noFilesFound\")); //$NON-NLS-1$\n\t\t}\n\t\tcatch(ParseException pe)\n\t\t{\n\t\t\terr(pe.getMessage());\n\t\t}\n\t}", "public void loadList () {\r\n ArrayList<String> list = fileManager.loadWordList();\r\n if (list != null) {\r\n for (String s : list) {\r\n addWord(s);\r\n }\r\n }\r\n }", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "List<T> readList();", "public void listar() {\n\t\t\n\t}", "public ListTest() {\n this.console = new Scanner(System.in);\n this.coursesToSelect = new ArrayList();\n }", "public void loadShoppingList(){\n try{\n //load the shopping list from the external file\n List<Ingredient> returnedList = Data.<Ingredient>loadList(shoppingListFile);\n if (returnedList != null){\n //convert list to an observableList\n shoppingListIngredients = FXCollections.observableList(returnedList);\n //set to the shopping list\n shoppingList.setItems(shoppingListIngredients);\n } else {\n System.out.println(\"No Shopping List Loaded \");\n }\n } catch (Exception e){\n System.out.println(\"Unable to load shopping list from file \" + shoppingListFile +\n \", the file may not exist\");\n e.printStackTrace();\n }\n }", "public static void main(String args[]){\r\n Object objArray;\r\n \r\n \t Scanner input = new Scanner(System.in);\r\n \t // display on console enter file name\r\n \t System.out.println(\"Enter array list data separated by a comma - for example 1, 2, 3, 4 : \");\r\n\r\n \t input = new Scanner(System.in);\r\n Object arrayListInput = input.nextLine();\r\n \r\n // create instance of class ArrayList.java\r\n \t Arraylist arrayList = new Arraylist();\r\n\r\n \t // load input data into array list object\r\n \t arrayList.loadArrayList(arrayListInput);\r\n\r\n \t // determine if array list object is empty \t \r\n \t boolean arrayListEmpty = arrayList.isEmpty();\r\n \t \r\n \t System.out.println(\"Is the array list empty \" + arrayListEmpty);\r\n \r\n arrayList.add(\"10\"); \r\n \t System.out.println(\"Add object to array list\");\r\n \t \r\n objArray = arrayList.get(5);\r\n \t System.out.println(\"Get object from array list \");\r\n \r\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 }", "public void loadData() {\n\t\tempsList.add(\"Pankaj\");\r\n\t\tempsList.add(\"Raj\");\r\n\t\tempsList.add(\"David\");\r\n\t\tempsList.add(\"Lisa\");\r\n\t}", "public void loadList() {\n // Run the query.\n nodes = mDbNodeHelper.getNodeListData();\n }", "public void populateList() {\n }", "abstract void makeList();", "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}", "private void initList() {\r\n\t\tlist = new JList<>();\r\n\t\tFile rootFile = new File(System.getProperty(\"user.dir\"));\r\n\t\tloadFilesInFolder(rootFile);\r\n\t\tlist.addListSelectionListener(new FileListSelectionListener());\r\n\t}", "public list() {\r\n }", "public void doList ( RunData data)\n\t{\n\t\t// get the state object\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\n\t}", "private static void initializeLists() {\n\t\t\n\t\t//read from serialized files to assign array lists\n\t\t//customerList = (ArrayList<Customer>) readObject(customerFile);\n\t\t//employeeList = (ArrayList<Employee>) readObject(employeeFile);\n\t\t//applicationList = (ArrayList<Application>) readObject(applicationFile);\n\t\t//accountList = (ArrayList<BankAccount>) readObject(accountFile);\n\t\t\n\t\t//read from database to assign array lists\n\t\temployeeList = (ArrayList<Employee>)employeeDao.readAll();\n\t\tcustomerList = (ArrayList<Customer>)customerDao.readAll();\n\t\taccountList = (ArrayList<BankAccount>) accountDao.readAll();\n\t\tapplicationList = (ArrayList<Application>)applicationDao.readAll();\n\t\t\n\t\tassignBankAccounts();\n\t}", "List<T> read();", "public void getList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < slist.size(); i++) {\n\n\t\t\t\tfwriter.append(slist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\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}", "private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }", "public void loadToDoList() {\n try {\n toDoList = jsonReader.read();\n System.out.println(\"Loaded \" + toDoList.getName() + \" from \" + JSON_STORE);\n } catch (IOException e) {\n System.out.println(\"Unable to read from file: \" + JSON_STORE);\n }\n }", "public void initialize()\r\n {\n \t\tSystem.out.println(\"*** Initializing asserted list ...\");\r\n \t\treload();\r\n \t\tSystem.out.println(\"*** ... List loaded\");\r\n }", "public void genLists() {\n\t}", "private void loadList() {\n new MyAsyncTask(this, username, mainUsername, authHead, pageType,\n userList, view).execute(\"\");\n this.swipeContainer.setRefreshing(false);\n }", "public void loadInfo(){\n list=control.getPrgList();\n refreshpsTextField(list.size());\n populatepsListView();\n }", "private void loadAPlayListPressed() {\n\n\t\t// go to the selected folder and look for a file called list.txt and then load all the names of the files onto the jlist\n\n\t\tJFileChooser outputChooser = new JFileChooser();\n\t\toutputChooser.setCurrentDirectory(new java.io.File(\".\"));\n\t\toutputChooser.setDialogTitle(\"Choose a directory to output to\");\n\n\t\toutputChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n\t\tint returnValue = outputChooser.showOpenDialog(Library.this);\n\n\t\tif (returnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\tplaylistDirectory = outputChooser.getSelectedFile().getAbsoluteFile();\n\n\t\t}\n\n\t\t// now look in the playlist directory for the list.txt file. If there is one then go to all the paths and then load the file \n\t\t// names onto the jlist\n\t\tFile[] files;\n\t\tif(playlistDirectory !=null){\n\t\t\tfiles = playlistDirectory.listFiles();\n\n\t\t\tboolean textFileExists = false;\n\t\t\tFile a = null;\n\t\t\tfor(File f : files ){\n\t\t\t\tif((f.getName().toLowerCase().endsWith(\".txt\"))){\n\t\t\t\t\ttextFileExists = true;\n\t\t\t\t\ta = f;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// checks if the file exists\n\t\t\tif(textFileExists){\n\n\t\t\t\ttry {\n\t\t\t\t\tl.clear();\n\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(a));\n\t\t\t\t\tString line = br.readLine();\n\t\t\t\t\twhile (line != null) {\n\t\t\t\t\t\tString[] split = line.split(File.separator);\n\t\t\t\t\t\tint last = split.length;\n\t\t\t\t\t\tString lastString = split[last-1];\n\t\t\t\t\t\tpaths.put(lastString, line);\n\t\t\t\t\t\tFile mock = new File(line);\n\t\t\t\t\t\tsizes.put(lastString,mock.length());\n\t\t\t\t\t\tl.addElement(lastString);\n\t\t\t\t\t\tline = br.readLine();\n\t\t\t\t\t}\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e3) {\n\t\t\t\t\t// Could not read log file, display error message\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Could not open file\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\n\t\t\t}else{\n\t\t\t\tJOptionPane.showMessageDialog(Library.this, \"Sorry, no plyalist exists in this folder!\");\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tFileInputStream fileInputStream = new FileInputStream(\"G:\\\\Prog\\\\arraylist.txt\");\n\t\t\tint i;\n\t\t\twhile((i = fileInputStream.read()) != -1)\n\t\t\t{\n\t\t\t\tSystem.out.print((char)i);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tfileInputStream.close();\n\t\t} catch (FileNotFoundException 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\t\n\t\n\tList l = new ArrayList();\n\t l.toArray();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private Lists() { }", "public void loadData () {\n // create an ObjectInputStream for the file we created before\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"DB/Guest.ser\"));\n\n int noOfOrdRecords = ois.readInt();\n Guest.setMaxID(ois.readInt());\n System.out.println(\"GuestController: \" + noOfOrdRecords + \" Entries Loaded\");\n for (int i = 0; i < noOfOrdRecords; i++) {\n guestList.add((Guest) ois.readObject());\n //orderList.get(i).getTable().setAvailable(false);\n }\n } catch (IOException | ClassNotFoundException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n }", "public Main() {\n// try {\n// out = new PrintWriter(outFile);\n// } catch (FileNotFoundException e) {\n// e.printStackTrace();\n// }\n while(true) {\n getList();\n }\n }", "private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }", "public static void populateLists() throws IOException\n\t{\n\n\t\tFile loginInfo = new File(\"loginDetails.txt\");\n\t\tFile topics = new File(\"task.txt\");\n\t\tFile games = new File(\"game.txt\");\n\t\tFile questions = new File(\"Questions.txt\");\n\t\tFile topic = new File(\"Topics.txt\");\n\t\t//File userinfo=new File\n Scanner fileReader;\n\t\tString[] temp;\n\t\t\n\t\tloginDetails.add(new ArrayList<String>());\n\t\tloginDetails.add(new ArrayList<String>());\n\t\tloginDetails.add(new ArrayList<String>());\n\t\t\n\t\ttopicsMenu.add(new ArrayList<String>());\n\t\ttopicsMenu.add(new ArrayList<String>());\n\n\t\tgameMenu.add(new ArrayList<String>());\n\t\tgameMenu.add(new ArrayList<String>());\n\t\ttopicMenu.add(new ArrayList<String>());\n\t\ttopicMenu.add(new ArrayList<String>());\n\n\n\t\tfor(int i=0; i<9; i++)\n\t\t\tquestionDetails.add(new ArrayList<String>());\n if(loginInfo.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(loginInfo);\n\t\t\t\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<loginDetails.size(); i++)\n\t\t\t\t\tloginDetails.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}writeToFile(loginInfo,\"\");\n if(topics.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(topics);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<topicsMenu.size(); i++)\n\t\t\t\t\ttopicsMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\t if(topic.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(topic);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<topicMenu.size(); i++)\n\t\t\t\t\ttopicMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n\t\tif(games.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(games);\n\n\t\t\twhile(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<gameMenu.size(); i++)\n\t\t\t\t\tgameMenu.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n if(questions.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(questions);\n while(fileReader.hasNext())\n\t\t\t{\n\t\t\t\ttemp = fileReader.nextLine().split(\",\");\n\t\t\t\tfor(int i=0; i<questionDetails.size(); i++)\n\t\t\t\t\tquestionDetails.get(i).add(temp[i]);\n\t\t\t}\n\t\t\tfileReader.close();\n\t\t}\n }", "private void readAdv(List list, int ver)\n\t\t\tthrows IOException, FileNotFoundException {\n\t}", "private void loadList(List<Integer> expectedList) {\n expectedList.clear();\n for (int i = 0; i < Constants.WINDOW_SIZE; i++)\n expectedList.add(i);\n }", "public static void main(String[] args) {\n\t\tList mylist = new ArrayList<>();\n\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 static void addList() {\n\t}", "public void loadLists() {\n Cursor cListas = getAllLists(); // Cursor en tabla listas\n Cursor cMovieList; // Cursor en tabla lista-pelicula\n Cursor cPeli; // Cursor en tabla peliculas a una película\n while (cListas.moveToNext()) {\n int id_list = cListas.getInt(cListas.getColumnIndex(ColumnList.ID_LIST));\n if (!Lista.existLista(id_list)) {\n Lista lista = new Lista(id_list,\n cListas.getString(cListas.getColumnIndex(ColumnList.NAME_LIST)),\n cListas.getString(cListas.getColumnIndex(ColumnList.DESCRIPTION_LIST)));\n cMovieList = getMoviesInList(cListas.getInt(cListas.getColumnIndex(ColumnList.ID_LIST)));\n while (cMovieList.moveToNext()) {\n cPeli = getMovie(cMovieList.getInt(cMovieList.getColumnIndex(ColumnMoviesList.ID_MOVIE)));\n if(cPeli.moveToNext())\n lista.addPelicula(getPelicula(cPeli.getString(cPeli.getColumnIndex(ColumnMovie.IMDBID))));\n cPeli.close();\n }\n cMovieList.close();\n }\n }\n cListas.close();\n }", "public static void main(String[] args) {\n\r\n\t\tList list = new List();\r\n\t\t\r\n\t\tlist.addEl(1);\r\n\t\tlist.addEl(2);\r\n\t//\tlist.addEl(3);\r\n\t\tlist.printList();\r\n\t\tlist.delEl(2);\r\n\t\tlist.printList();\r\n\t\t\r\n\t}", "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 }", "private void LoadList() {\n try {\n //get the list\n ListView termListAdpt = findViewById(R.id.assessmentListView);\n //set the adapter for term list\n AssessmentAdapter = new ArrayAdapter<String>(AssessmentActivity.this, android.R.layout.simple_list_item_1, AssessmentData.getAssessmentsbyNames());\n termListAdpt.setAdapter(AssessmentAdapter);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static void fetchWords() {\n wordList = new ArrayList<String>();\n try {\n //problems with reading into method\n WordFetcher.readInto(wordList); \n } catch(Exception e) {\n System.out.println(e);\n }\n }", "public void load(){\n\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open Streams\n\t\t\tFileInputStream inFile = new FileInputStream(\"user.ser\");\n\t\t\tObjectInputStream objIn = new ObjectInputStream(inFile);\n\t\t\t\n\t\t\t// Load the existing UserList at the head\n\t\t\tthis.head = (User)objIn.readObject();\n\t\t\t\n\t\t\t// Close Streams\n\t\t\tobjIn.close();\n\t\t\tinFile.close();\n\t\t}\n\n\t\tcatch(Exception d) {\n\t\t System.out.println(\"Error loading\");\n\t\t}\n\n\t}", "private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tList list =new ArrayList();\r\n\t\tlist.add(\"one\");\r\n\t\tlist.add(\"two\");\r\n\t\tlist.add(\"three\");\r\n\t\tlist.add(\"four\");\r\n\t\t\r\n\t\tSystem.out.println(list.size());\r\n\t\t\r\n\t\tSystem.out.println(list.get(1));\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "private void setupVariables() {\n activeCourseList = new ArrayList<>();\n activeScheduleList = new ArrayList<>();\n\n scanner = new Scanner(System.in);\n reader = new JsonReader(\"./data/ScheduleList.json\",\n \"./data/CourseList.json\");\n\n loadLists();\n }", "public TaskList(List<ListItem> inputList) {\n this.listItems = new ArrayList<ListItem>(inputList);\n }", "void printList();", "public static void main(String[] args) throws Exception\n {\n List<String> list = new ArrayList<String>();\n list.add(\"1\");\n list.add(\"2\");\n list.add(\"3\");\n list.add(\"4\");\n ModifyList modifyList = new ModifyList(list);\n modifyList.start();\n \n for (String string : list) {\n System.out.println(string);\n }\n }", "public void loadMealPlanner(){\n try{\n //load the planner list of Days\n List<Days> returnedList = Data.<Days>loadList(mealPlannerFile);\n if (returnedList != null){\n //set to weeklist\n ObservableWeekList = FXCollections.observableList(returnedList);\n weekList.setItems(ObservableWeekList);\n } else {\n System.out.println(\"No meal planner Loaded \");\n }\n } catch (Exception e){\n System.out.println(\"Unable to load meal planner from file \" + shoppingListFile +\n \", the file may not exist\");\n e.printStackTrace();\n }\n }", "public List<Task> load(){\n try {\n List<Task> tasks = getTasksFromFile();\n return tasks;\n }catch (FileNotFoundException e) {\n System.out.println(\"☹ OOPS!!! There is no file in the path: \"+e.getMessage());\n List<Task> tasks = new ArrayList();\n return tasks;\n }\n }", "private void loadLists() {\n setUpFooter();\n if (numberOfLists > 0) {\n this.updateComponent(footer);\n for (Object l : agenda.getConnector().getItems(agenda.getUsername(), \"list\")) {\n Items list = (Items) l;\n comboBox.addItem(list.getName());\n JPanel panel = new JPanel();\n panel.setName(list.getName());\n setup.put(list.getName(), false);\n window.add(list.getName(), panel);\n currentList = list;\n }\n setUpHeader();\n for (Component c : window.getComponents()) {\n if (!setup.get(c.getName())){\n setUpList((JPanel) c);\n setup.replace(c.getName(),true);\n break;\n }\n }\n comboBox.setSelectedIndex(numberOfLists-1);\n } else{\n setUpHeader();\n }\n }", "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 void initial_list_original(){\n \tFile file = new File(original_directory_conf);\n \tif(file.exists()){\n \t\tArrayList<String> original_directory_list = new ArrayList<String>();\n original_directory_list = read_from_file.readFromFile(original_directory_conf);\n for(int i = 0; i < original_directory_list.size(); i++){\n \tdefault_list_model1.addElement(original_directory_list.get(i));\n }\n list_original.setModel(default_list_model1);\n scroll_pane.repaint();\n \t}else{\n \t\treturn;\n \t}\n \t\n }", "public void load() ;", "public static void loadToDoListsFromFile() {\n\n\t\tAccount openedAccount = AccountManager.getAccount();\n\t\tFile loadListFile = new File(\n\t\t\t\tSystem.getProperty(\"user.dir\") + \"//ToDoLists//\" + openedAccount.getUserName() + \"//toDoList.txt\");\n\n\t\tif (loadListFile.exists()) {\n\n\t\t\ttry (Scanner readFromFile = new Scanner(loadListFile)) {\n\n\t\t\t\tString listName = new String();\n\t\t\t\tString taskName = new String();\n\t\t\t\tString taskDescription = new String();\n\t\t\t\tString taskTag = new String();\n\t\t\t\tString isFinished = new String();\n\t\t\t\tLocalDate dueDate;\n\t\t\t\tString[] time;\n\t\t\t\tint[] timeInt = new int[3];\n\n\t\t\t\twhile (readFromFile.hasNext()) {\n\n\t\t\t\t\tlistName = readFromFile.nextLine();\n\n\t\t\t\t\tcreateNewToDoList(listName);\n\n\t\t\t\t\tToDoList list = getToDoList(listName);\n\t\t\t\t\tFile taskFile = new File(System.getProperty(\"user.dir\") + \"//ToDoLists//\"\n\t\t\t\t\t\t\t+ openedAccount.getUserName() + \"//\" + list.getListName() + \".txt\");\n\n\t\t\t\t\ttry (Scanner readTaskFile = new Scanner(taskFile)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile (readTaskFile.hasNext()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttaskName = readTaskFile.nextLine();\n\t\t\t\t\t\t\ttaskDescription = readTaskFile.nextLine();\n\t\t\t\t\t\t\ttaskTag = readTaskFile.nextLine();\n\t\t\t\t\t\t\tisFinished = readTaskFile.nextLine();\n\t\t\t\t\t\t\ttime = readTaskFile.nextLine().split(\"-\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\t\t\t\t\t\ttimeInt[i] = Integer.valueOf(time[i]);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tdueDate = LocalDate.of(timeInt[0], timeInt[1], timeInt[2]);\n\t\t\t\t\t\t\tlist.createNewTask(taskName, taskDescription, dueDate, taskTag);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (isFinished.equals(\"true\")) {\n\t\t\t\t\t\t\t\tlist.getTaskByTaskName(taskName).setFinished(true);\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} catch (IOException e) {\n\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "private void initList(CartInfo ci) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public static void readInto(ArrayList<String> list) throws Exception {\n URL wordsURL = new URL(url);\n BufferedReader in = new BufferedReader(\n new InputStreamReader(wordsURL.openStream()));\n String word;\n while ((word = in.readLine()) != null){\n list.add(word);\n }\n in.close();\n }", "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}", "protected abstract void loadItemsInternal();", "private static void load(List<Opinion> opinionList) {\n System.out.println(\"Loading...\");\n clearDB();\n opinionDAO.openConnection();\n if (opinionDAO.dbDropped) {\n opinionDAO.createTables();\n }\n opinionList.forEach(opinion -> opinionDAO.insertOpinion(opinion));\n System.out.println(opinionList.size() + \" opinions loaded to database.\");\n opinionDAO.closeConnection();\n }", "void loadNext();", "private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }", "public void populateList(){\n\t\tfor (int i = 0; i < 10; i++){\n\t\t\tscoreList.add(-1);\t\t\t\n\t\t\tnameList.add(\"\");\n\t\t}\n\t\tint i=0; \n\t\ttry {\n\t\t\tScanner results = new Scanner(new File(\"results.txt\"));\n\t\t\twhile (results.hasNext()){\n\t\t\t\tnameList.set(i, results.next());\n\t\t\t\tscoreList.set(i, results.nextInt());\n\t\t\t\ti++;\n\t\t\t}\n\t\t} catch (FileNotFoundException e1){\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public static void main(String args[]) {\n\t\t\n\t\tListElement le = new ListElement();\n\t\tle.setData(5);\n\t\t\n\t\tSystem.out.println(\"Initializing ListELement...\" + \"\\n\" + \"ListElement has data: \" + le.getData());\n\t\tSystem.gc();\n\t}", "public void readFromEmployeeListFile()\r\n {\r\n try(ObjectInputStream fromEmployeeListFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/employeelist.dta\")))\r\n {\r\n employeeList = (EmployeeList) fromEmployeeListFile.readObject();\r\n employeeList.setSavedStaticEmpRunNR(fromEmployeeListFile);\r\n }\r\n catch(ClassNotFoundException cnfe)\r\n {\r\n employeeList = new EmployeeList();\r\n JOptionPane.showMessageDialog(null, \"Fant ikke definisjon av ansatt \"\r\n + \"objektene.\\nOppretter tomt ansattregister.\\n\"\r\n + cnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n employeeList = new EmployeeList();\r\n JOptionPane.showMessageDialog(null, \"Finner ikke angitt fil.\\n\"\r\n + \"Oppretter tomt ansattregister.\\n\" \r\n + fnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(IOException ioe)\r\n\t{\r\n employeeList = new EmployeeList();\r\n JOptionPane.showMessageDialog(null, \"Fikk ikke lest fra filen.\\n\"\r\n + \"Oppretter tomt ansattregister.\\n\"\r\n + ioe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n }", "public void readFromBookingListFile()\r\n {\r\n try(ObjectInputStream fromBookingListFile = \r\n new ObjectInputStream(new FileInputStream(\"listfiles/bookinglist.dta\")))\r\n {\r\n bookingList = (BookingList) fromBookingListFile.readObject();\r\n bookingList.setSavedStaticBookingRunNr(fromBookingListFile);\r\n }\r\n catch(ClassNotFoundException cnfe)\r\n {\r\n bookingList = new BookingList();\r\n JOptionPane.showMessageDialog(null, \"Fant ikke definisjon av booking \"\r\n + \"objektene.\\nOppretter tomt bookingregister.\\n\" \r\n + cnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(FileNotFoundException fnfe)\r\n {\r\n bookingList = new BookingList();\r\n JOptionPane.showMessageDialog(null, \"Finner ikke angitt fil.\\n\"\r\n + \"Oppretter tomt bookingregister.\\n\" \r\n + fnfe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n catch(IOException ioe)\r\n\t{\r\n bookingList = new BookingList();\r\n JOptionPane.showMessageDialog(null, \"Fikk ikke lest fra filen.\\n\"\r\n + \"Oppretter tomt bookingregister.\\n\"\r\n + ioe.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n }", "private void loadListView() {\n\t\tList<ClientData> list = new ArrayList<ClientData>();\n\t\ttry {\n\t\t\tlist = connector.get();\n\t\t\tlView.updateDataView(list);\n\t\t} catch (ClientException e) {\n\t\t\tlView.showErrorMessage(e);\n\t\t}\n\n\t}", "public void load(String[] list) {\n\tpieces.clear();\n\tfor(String s : list) {\n\t int n = s.lastIndexOf('.');\n\t if(n != -1) s = s.substring(0, n);\n\t pieces.add(s);\n\t}\n\tupdate();\n }", "public Library (){\r\n\t\tthis.inverntory = new List();\r\n\t}", "private LinkedList<User> GetUserList() throws FileNotFoundException, IOException, ClassNotFoundException{\r\n File Users = new File(\"DataBase/Users/UsersDataBase.obj\");\r\n Users.createNewFile();\r\n try{\r\n FileInputStream InputFile = new FileInputStream(Users);\r\n ObjectInputStream InputObject = new ObjectInputStream(InputFile);\r\n\r\n LinkedList <User> UserList = (LinkedList <User>) InputObject.readObject();\r\n\r\n InputFile.close();\r\n InputObject.close();\r\n\r\n return UserList;\r\n }\r\n catch (EOFException e){\r\n return null; \r\n } \r\n }", "void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}", "public void handleLoad() throws IOException {\n File file = new File(this.path);\n\n // creates data directory if it does not exist\n file.getParentFile().mkdirs();\n\n // creates tasks.txt if it does not exist\n if (!file.exists()) {\n file.createNewFile();\n }\n\n Scanner sc = new Scanner(file);\n\n while (sc.hasNext()) {\n String longCommand = sc.nextLine();\n String[] keywords = longCommand.split(\" \\\\|\\\\| \");\n Task cur = null;\n switch (keywords[1]) {\n case \"todo\":\n cur = new Todo(keywords[2]);\n break;\n case \"deadline\":\n cur = new Deadline(keywords[2], keywords[3]);\n break;\n case \"event\":\n cur = new Event(keywords[2], keywords[3]);\n break;\n default:\n System.out.println(\"error\");\n break;\n }\n if (keywords[0].equals(\"1\")) {\n cur.markAsDone();\n }\n TaskList.getTaskLists().add(cur);\n }\n sc.close();\n }", "@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }", "public PatientList()\r\n\t{\r\n\t\treadPatientListFromFile();\r\n\t\t//showPatientList();\r\n\t}", "public ListIDE() {\n initComponents();\n loadAsset();\n directory = new Directory();\n }", "public abstract List<T> readObj(String path);", "public void ouvrirListe(){\n\t\n}", "public void loadList(List<?> list, Class<?> elementClazz, int dimensions)\n throws Exception {\n // due to the way java 5 implements generics (with erasure),\n // we are just creating ListType<E>, not a list of a specific type\n loadListComponent(list, elementClazz, dimensions);\n }", "public static void main(String[] args) {\n\n List<Integer> list = new ArrayList<>(); // using import statements after the package declaration\n }", "public DLList() {\r\n init();\r\n }", "void load_from_file(){\n\t\tthis.setAlwaysOnTop(false);\n\t\t\n\t\t/**\n\t\t * chose file with file selector \n\t\t */\n\t\t\n\t\tFileDialog fd = new FileDialog(this, \"Choose a file\", FileDialog.LOAD);\n\t\t\n\t\t//default path is current directory\n\t\tfd.setDirectory(System.getProperty(\"user.dir\"));\n\t\tfd.setFile(\"*.cmakro\");\n\t\tfd.setVisible(true);\n\t\t\n\t\t\n\t\t\n\t\tString filename = fd.getFile();\n\t\tString path = fd.getDirectory();\n\t\tString file_withpath = path + filename;\n\t\t\n\t\t\n\t\tif (filename != null) {\n\t\t\t System.out.println(\"load path: \" + file_withpath);\t\n\t\t\n\t\t\t \n\t\t\t /**\n\t\t\t * read object from file \n\t\t\t */\n\t\t\t\ttry {\n\t\t\t\t\tObjectInputStream in = new ObjectInputStream(new FileInputStream(file_withpath));\n\n\t\t\t\t\tKey_Lists = Key_Lists.copy((key_lists) in.readObject());\n\n\t\t\t\t\tkeys_area.setText(Key_Lists.arraylist_tostring());\t\t\n\t\t\t\t\t\n\t\t\t\t\tin.close();\n\t\t\t\t\t\n\t\t\t\t\tinfo_label.setForeground(green);\n\t\t\t\t\tinfo_label.setText(\"file loaded :D\");\n\t\t\t\t\t\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tinfo_label.setForeground(white);\n\t\t\t\t\tinfo_label.setText(\"wrong file format\");\n\t\t\t\t\tSystem.out.println(\"io exception\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tthis.setAlwaysOnTop(true);\n\t\n\t}", "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}", "private void initializeList() {\n findViewById(R.id.label_operation_in_progress).setVisibility(View.GONE);\n adapter = new MapPackageListAdapter();\n listView.setAdapter(adapter);\n listView.setVisibility(View.VISIBLE);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n \n @Override\n public void onItemClick(AdapterView<?> parent, final View view, final int position, long id) {\n List<DownloadPackage> childPackages = searchByParentCode(currentPackages.get(position).getCode());\n if (childPackages.size() > 0) {\n currentPackages = searchByParentCode(currentPackages.get(position).getCode());\n adapter.notifyDataSetChanged();\n }\n }\n });\n }", "public static void clientFunc(){\n List list = new ArrayList(); //rawtype list\n list.add(10);\n list.add(\"jenkins\");\n list.add(new Object());\n\n //unsafe classcast exception at runtime\n //rawtypes are unsafe\n List<String> stringList = list;\n\n ListIterator listIterator = list.listIterator();\n while(listIterator.hasNext()){\n System.out.println(listIterator.next());\n }\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 static void init() {\n\t\tList<Object> objects = FileManager.readObjectFromFile(\"student.dat\");\n\t\tfor (Object o : objects)\n\t\t\tStudentList.add((Student) o);\n\t}", "private static int Initialize (String[] list)\n {\n\t\tString filename, stateInput;\n \t\tint i = 0, numItems = 0;\n \t \ttry {\n System.out.print(\"Input File : \");\n Scanner stdin = new Scanner(System.in);\n filename = stdin.nextLine();\n stdin = new Scanner(new File(filename));\n\n while ((stdin.hasNext()) && (i < list.length))\n {\n stateInput = stdin.nextLine();\n System.out.println(\"S = \" + stateInput);\n list[i] = stateInput;\n i++;\n }\n numItems = i;\n }\n catch (IOException e) {\n System.out.println(e.getMessage());\n }\n return numItems;\n }", "public List getList () {\nif (list == null) {//GEN-END:|13-getter|0|13-preInit\n // write pre-init user code here\nlist = new List (\"list\", Choice.IMPLICIT);//GEN-BEGIN:|13-getter|1|13-postInit\nlist.append (\"S\\u00F6k text\", null);\nlist.append (\"Tidigare s\\u00F6kningar\", null);\nlist.addCommand (getExitCommand ());\nlist.setCommandListener (this);\nlist.setSelectedFlags (new boolean[] { false, false });//GEN-END:|13-getter|1|13-postInit\n // write post-init user code here\n}//GEN-BEGIN:|13-getter|2|\nreturn list;\n}", "public Liste(){\n\t\tsuper();\n\t\tthis.liste = new int[this.BASE_LENGTH];\n\t\tthis.nb = 0;\n\t}", "public static void loadArrayList() throws IOException\n\t{\n\t\tString usersXPFile = \"UsersXP.txt\";\n\t\t\n\t\tFile file = new File(usersXPFile);\n\t\t\n\t\tScanner fileReader;\n\t\t\n\t\tif(file.exists())\n\t\t{\n\t\t\tfileReader = new Scanner(file);\n\t\t\twhile(fileReader.hasNext())\n\t\t\t\tuserDetail1.add(userData.addNewuser(fileReader.nextLine().trim()));\n\t\t\tfileReader.close();\n\t\t}\n\t\telse overwriteFile(usersXPFile, \"\");\n\t\t\n\t\t\n\t}", "public TaskProgram() {\n initComponents();\n list=new ArrayList();\n li=list.listIterator();\n curtask=0;\n tottask=0;\n }", "public final void accept(List<l> list) {\n com.iqoption.core.data.b.c a = this.dlr.dlm;\n kotlin.jvm.internal.h.d(list, \"it\");\n a.setValue(list);\n }", "public void getOrderedList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < olist.size(); i++) {\n\n\t\t\t\tfwriter.append(olist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\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}" ]
[ "0.80028164", "0.72257686", "0.69284856", "0.6814337", "0.6764239", "0.6609043", "0.6569459", "0.65537775", "0.65217614", "0.6517266", "0.6472328", "0.64500517", "0.64457583", "0.6390467", "0.63770187", "0.6360044", "0.63143235", "0.628208", "0.62635493", "0.6250235", "0.62362087", "0.62224007", "0.62030494", "0.6202574", "0.6179476", "0.61636454", "0.61334014", "0.6133377", "0.6129074", "0.6122236", "0.6117724", "0.61145496", "0.611421", "0.6095113", "0.60877407", "0.6061896", "0.6058105", "0.603973", "0.6036273", "0.6022742", "0.6013782", "0.6009606", "0.60078406", "0.60045236", "0.59962624", "0.59636813", "0.5954288", "0.5942541", "0.5926727", "0.59208345", "0.5911911", "0.59082603", "0.5905894", "0.59029406", "0.58967125", "0.5857451", "0.58560026", "0.5852635", "0.58524823", "0.5848178", "0.584651", "0.5844089", "0.5836218", "0.58356386", "0.5833696", "0.582566", "0.58237314", "0.5822593", "0.58187544", "0.581828", "0.58148247", "0.58067834", "0.58016205", "0.58007383", "0.5798981", "0.5795578", "0.5789116", "0.5782796", "0.57780856", "0.57766473", "0.57731974", "0.57691216", "0.576623", "0.57660556", "0.57647353", "0.57601035", "0.5752759", "0.57509065", "0.57475996", "0.57461345", "0.5739969", "0.5739542", "0.5737339", "0.57370716", "0.5736167", "0.5735661", "0.5733203", "0.5731155", "0.5728981", "0.57288796", "0.5726551" ]
0.0
-1
/ Here we are going to save all the lists, if we make changes to all of them. We have to call the list class
@FXML public void Save_All_Lists(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveList() throws Exception {\n JournalEntries.saveList(JournalList,ReconcileCur.ReconcileNum);\n }", "public void saveAll(List list);", "public void saveListToFile() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = null;\r\n\t\t\ttry {\r\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(FTP_LIST_FILE));\r\n\t\t\t\toos.writeObject(FTPList.self);\r\n\t\t\t\toos.flush();\r\n\t\t\t} finally {\r\n\t\t\t\toos.close();\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "public void saveAllLists() {\n // else: create \"ToDoList\" folder\n // Get all lists and their corresponding items via a while loop that loops\n // through the ComboBox's values and creates .txt files for each list\n // Create a new .txt of name list\n // This will need some sort of nested loop, the outer looping through the lists\n // and the inner looping through the items of that list\n // Store inside of the current .txt\n // Close the .txt\n }", "private void loadLists() {\n }", "public void saveListe()\n\t{\n\t\tdevis=getDevisActuel();\n//\t\tClient client=clientListController.getClient();\n//\t\tdevis.setCclient(client.getCclient());\n//\t\tdevis.setDesAdresseClient(client.getDesAdresse());\n//\t\tdevis.setCodePostalClient(client.getCodePostal());\n\t\tgetClientOfDevis(clientListController.findClientById(devis.getCclient()));\n\t\t\n\t\tdevis.setMtTotalTtc(devis.getMtTotalTtc().setScale(3, BigDecimal.ROUND_UP));\n\t\tdevis.setMtTotalTva(devis.getMtTotalTva().setScale(3, BigDecimal.ROUND_UP));\n\t\tdevis.setNetApayer(devis.getNetApayer().setScale(3, BigDecimal.ROUND_UP));\n\t\t\n\t\tif(listedetailarticles!=null)\n\t\t\tlistedetaildevis=listedetailarticles;\n\t\tif(devisListeController.modif==true)\n\t\t{\n\t\t\tList<DetailDevisClient>list=findDetailOfDevis(devis.getCdevisClient());\n\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t{\n\t\t\t\tremove(list.get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\tdevisInit=devis;\n\t\tdevisListeController.save();\n\t\t\n\t\t/*if(listedetailarticles!=null)\n\t\t\tlistedetaildevis=listedetailarticles;\n\t\t\n\t\tif(devisListeController.modif==true)\n\t\t{\n\t\t\tList<DetailDevisClient>list=findDetailOfDevis(dc.getCdevisClient());\n\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t{\n\t\t\t\tremove(list.get(i));\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tdetailDevisClientService.saveList(listedetaildevis);\n\t\t\n\t\t\n\t\t/*listedetaildevisStatic.clear();\n\t\tfor(DetailDevisClient ddc :listedetaildevis)\n\t\t{\n\t\t\tlistedetaildevisStatic.add(ddc);\n\t\t}*/\n\t\tdetailDevis=new DetailDevisClient();\n\t\t\n\t\t\n\t\t//listedetailarticles.clear();\n\t\t/*listedetaildevis.clear();\n\t\tdevisListeController.setDevis(new DevisClient());\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tcontext.update(\"formPrincipal\");\n\t\t*/\n\t\t\n\t\ttry {\n\t\t\tPDF();\n\t\t} catch (JRException 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\t\tfinally{\n\t\t\t//nouveauDevis();\n\t\t}\n\t\t\n\t\tFacesContext.getCurrentInstance().addMessage\n\t\t(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Detail Devis Enregistré!\", null));\n\t\t//nouveauDevis();\n\t}", "public static void restoreList() {\n\n if (copyList.isEmpty())\n return;\n\n\n getList().clear();\n\n for (Map<String, ?> item : copyList) {\n getList().add(item);\n }\n\n copyList.clear();\n //Log.d(\"test\", \"After restore: Champlist size \" + getSize() + \" copylist size \" + copyList.size());\n\n }", "@Override\n public void refreshList(ArrayList<String> newList){\n }", "public void saveChanges() {\n if(finalListModel.isEmpty() || finalListModel.size() < initialListModel.size() ) {\n JOptionPane.showMessageDialog(null, \"Sorry, number of buttons should be \" +\n \"equal to the number of files in final list\");\n }\n// else if((finalListModel.toString()).equals(initialListModel.toString())) {\n// JOptionPane.showMessageDialog(null, \"Sorry, make different selections as \" +\n// \"both final and initial list are same\");\n// }\n else {\n save();\n initialListModel.removeAllElements();\n for (int i = 0; i < order.getItemCount(); i++) {\n initialListModel.addElement(finalListModel.getElementAt(i));\n }\n }\n }", "private void saveJobList() {\n\t\tFileLoader.saveObject(getApplicationContext(), FILE_NAME_JOBS, (Serializable) jobs);\n\t}", "public void updateList() \n { \n model.clear();\n for(int i = ScholarshipTask.repository.data.size() - 1; i >= 0; i--) \n {\n model.addElement(ScholarshipTask.repository.data.get(i));\n }\n }", "public void refershData(ArrayList<SquareLiveModel> contents) {\n\t\tlistData = contents;\n\t\tnotifyDataSetChanged();\n\t}", "public ListeSave getListeSave() {\n\t\tif(listeSave==null){\n\t\t\tlisteSave = new ListeSave();\n\t\t}\n\t\treturn listeSave;\n\t}", "public void setCurrentListToBeDoneList();", "private void setDataOnList() {\r\n if (SharedPref.getSecureTab(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.SECURE_TAB)) {\r\n dataModelArrayList.addAll(secureMediaFileDb.getSecureUnarchiveFileList());\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelper.imageDataModelList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewData.imageDataModelList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewData.imageDataModelList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewData.imageDataModelList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelperBaseOnId.dataModelArrayList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewDataOnIdBasis.dataModelArrayList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n }\r\n }", "@Override\n public void save(ArrayList<League> leagues) {\n\n }", "@Override\n\tpublic List<Baidu> savaList(List<Baidu> bl) {\n\t\tbaiduDao.save(bl);\n\t\treturn bl;\n\t}", "private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void SerialiseList() throws IOException {\n ObjectOutputStream oStream = null;\n\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"Warehouses\" + \".dat\"));\n oStream.writeObject(Wlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"Stores\" + \".dat\"));\n oStream.writeObject(Slist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"WarehouseAdminList\" + \".dat\"));\n oStream.writeObject(WAlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"StoreAdminList\" + \".dat\"));\n oStream.writeObject(SAlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n }", "public void save(){\n\t\t\n\t\ttry {\n\t\t\t\t \n\t\t\t// Open Streams\n\t\t\tFileOutputStream outFile = new FileOutputStream(\"user.ser\");\n\t\t\tObjectOutputStream outObj = new ObjectOutputStream(outFile);\n\t\t\t\t \n\t\t\t// Serializing the head will save the whole list\n\t\t\toutObj.writeObject(this.head);\n\t\t\t\t \n\t\t\t// Close Streams \n\t\t\toutObj.close();\n\t\t\toutFile.close();\n\t\t}\n\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Error saving\");\n\t\t}\n\t\t\t\n\t}", "public void saveArrayList(ArrayList<String> list, String key) {\n SharedPreferences preferences = getSharedPreferences(\"itemlist\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(list);\n editor.putString(key, json);\n editor.apply();\n }", "public void saveAllTasklists(ArrayList<ArrayList<Task>> superlist) throws IOException {\n\t\tassert (superlist.size() == NUM_TASKLISTS_FROM_LOGIC);\n\n\t\tfor (TasklistEnum listType : TasklistEnum.savedLists) {\n\t\t\tFile dest = new File(directory, listType.filename());\n\t\t\tArrayList<Task> listToSave = superlist.get(listType.index());\n\t\t\ttry {\n\t\t\t\tstorageWriter.saveTasklist(listToSave, dest);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tdirectoryManager.createDirectory(directory); //in case user deletes the directory during runtime\n\t\t\t\tstorageWriter.saveTasklist(listToSave, dest); //recreate the directory and try again\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void refreshList() {\n }", "public void saveList(List<T> ListObject) throws DaoException;", "public void getList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < slist.size(); i++) {\n\n\t\t\t\tfwriter.append(slist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\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}", "public void save() {\n\t\tSiteDB.getSiteDB().sites = mySites;\n\t\t\n\t\t// create a new cloned list of sites (from the ones we just installed!)\n\t\tcreateImmutableSitelist();\n\t\tsitePanel.reloadSitelist();\n\n\t\t// Save the new site list to disk\n\t\t// if we're successful, \n\t\t// notify that we're no longer modified, plus we should redraw.\n\t\tif(SiteDB.getSiteDB().save())\n\t\t\tsitePanel.setDataModified(false);\t\t\n\t}", "public void refreshLists() {\n refreshCitizenList();\n refreshPlayerList();\n }", "public void saveAll() {\n\n if (schedule != null) {\n\n readWrite.save(schedule, buddies);\n }\n if (finalsList != null) {\n\n readWrite.save(finalsList, finalsTerm);\n }\n }", "public void loadAllLists(){\n }", "private void saveListToFile() {\n try {\n PrintStream out = new PrintStream(\n openFileOutput(LIST_FILENAME, MODE_PRIVATE)\n );\n\n for (int i = 0; i < listArr.size(); i++) {\n out.println(listArr.get(i));\n }\n\n out.close();\n\n } catch (IOException ioe) {\n Log.e(\"saveListToFile\", ioe.toString());\n }\n }", "private void saveData(){\n\t\tsynchronized(onlineAllInfoList){\n\t\t\tRecorder.save(onlineAllInfoList, onlineAllInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving onlineCompetitionInfoList...\");System.out.flush();\n\t\tsynchronized(onlineCompetitionInfoList){\n\t\t\tRecorder.save(onlineCompetitionInfoList, onlineCompetitionInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving competitionList...\");System.out.flush();\n\t\tsynchronized(competitionList){\n\t\t\tRecorder.save(competitionList, competitionInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving allAIInfoList...\");System.out.flush();\n\t\tsynchronized(allAIInfoList){\n\t\t\tRecorder.save(allAIInfoList, allInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving waitingInfoList...\");System.out.flush();\n\t\tsynchronized(waitingInfoList){\n\t\t\tRecorder.save(waitingInfoList, waitingInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving sortedAIInfoPool...\");System.out.flush();\n\t\tsynchronized(sortedAIInfoPool){\n\t\t\tRecorder.save(sortedAIInfoPool, sortedInfoListFileName);\t\t\t\n\t\t}\n\t}", "public void updateList() {\n if (getActivity().getClass().getName().contains(\"BookmarksActivity\")) {\n\n // Call the create right after initializing the helper, just in case\n // the user has never run the app before.\n mDbNodeHelper.createDatabase();\n\n // Get a list of bookmarked node titles.\n loadBookmarks();\n\n // Close the database\n mDbNodeHelper.close();\n\n // Clear the old ListView.\n setListAdapter(null);\n\n // Initialize a new model object\n CategoryModel[] bookmarksModel = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n bookmarksModel[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n\n // Create a new list adapter based on our new updated array.\n ListAdapter bookmarksAdapter = new CategoryModelListAdapter(mActivity, bookmarksModel);\n\n // set the new list adapter, thus updating the list display.\n setListAdapter(bookmarksAdapter);\n }\n else if (getActivity().getClass().getName().contains(\"BrowseActivity\")) {\n\n // Call the create right after initializing the helper, just in case\n // the user has never run the app before.\n mDbNodeHelper.createDatabase();\n\n // Get a list of bookmarked node titles.\n loadList();\n\n // Close the database\n mDbNodeHelper.close();\n\n // Clear the old ListView.\n setListAdapter(null);\n\n // Initialize a new model object\n CategoryModel[] bookmarksModel = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n bookmarksModel[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n\n // Create a new list adapter based on our new updated array.\n ListAdapter bookmarksAdapter = new CategoryModelListAdapter(mActivity, bookmarksModel);\n\n // set the new list adapter, thus updating the list display.\n setListAdapter(bookmarksAdapter);\n }\n }", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void writeSerializedObject(List list) {\r\n\t\tFileOutputStream fos = null;\r\n\t\tObjectOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tfos = new FileOutputStream(System.getProperty(\"user.dir\") + \"\\\\Databases\\\\students.dat\");\r\n\t\t\tout = new ObjectOutputStream(fos);\r\n\t\t\tout.writeObject(list);\r\n\t\t\tout.close();\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public void doSave() throws Exception {\r\n\t\tif ((_listForm != null && _listForm.getDataStore() != _ds) || _mode == MODE_LIST_OFF_PAGE) {\r\n\t\t\tif (getPageDataStoresStatus() == DataStoreBuffer.STATUS_NEW) {\r\n\t\t\t\tdoCancel();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (getDataStore() != null) {\r\n\t\t\tDataStoreBuffer dsb = getDataStore();\r\n\t\t\ttry {\r\n\t\t\t\tdoDataStoreUpdate();\r\n\t\t\t} catch (DirtyDataException ex) {\r\n\t\t\t\tif (_validator != null)\r\n\t\t\t\t\t_validator.addErrorMessage(_dirtyDataError);\r\n\t\t\t} catch (DataStoreException ex) {\r\n\t\t\t\tif (_validator != null)\r\n\t\t\t\t\t_validator.addErrorMessage(ex.getMessage(), ((JspController) getPage()).getBoundComponent(_ds, ex.getColumn()), ex.getRow());\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tif (_validator != null)\r\n\t\t\t\t\t_validator.addErrorMessage(ex.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_mode == MODE_LIST_ON_PAGE) {\r\n\t\t\tif (_reloadRowAfterSave) {\r\n\t\t\t\tif (_ds instanceof DataStore)\r\n\t\t\t\t\t((DataStore)_ds).reloadRow(_ds.getRow());\r\n\t\t\t}\r\n\r\n\t\t\tif (_listForm != null && _listForm.getDataStore() != _ds) {\r\n\t\t\t\tDataStoreRow source = _ds.getDataStoreRow(_ds.getRow(), DataStoreBuffer.BUFFER_STANDARD);\r\n\t\t\t\tif (_listSelectedRow != null)\r\n\t\t\t\t\tsource.copyTo(_listSelectedRow);\r\n\t\t\t\telse {\r\n\t\t\t\t\t_listSelectedRow = _listForm.getDataStore().getDataStoreRow(_listForm.getDataStore().insertRow(), DataStoreBuffer.BUFFER_STANDARD);\r\n\t\t\t\t\tsource.copyTo(_listSelectedRow);\r\n\t\t\t\t}\r\n\t\t\t\tDataStoreBuffer dsb = _listForm.getDataStore();\r\n\t\t\t\tif (dsb != null && dsb instanceof DataStore) {\r\n\t\t\t\t\tif (_reloadRowAfterSave ) {\r\n\t\t\t\t\t\tdsb.setRowStatus(DataStoreBuffer.STATUS_NOT_MODIFIED);\r\n\t\t\t\t\t\t((DataStore)dsb).reloadRow();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tsyncListFormPage();\r\n\t\t} else\r\n\t\t\treturnToListPage(true);\r\n\t}", "public void save () {\r\n\t\tlog.debug(\"TunnelList:save()\");\r\n\t\tlog.info(\"Saving to file\");\r\n\t\tFileTunnel.saveTunnels(this);\r\n\t}", "private void updateLists() {\r\n for (int i = 0; i < this.memoryLists.length; i++) {\r\n MemoryBlock memBlock = (MemoryBlock) memoryBlocks.get(i);\r\n\r\n if (memBlock.isChanged(this.lastChanged[i]) || memoryUpdateState[i]) {\r\n Vector<MemoryInt> memVector = memBlock.getMemoryVector();\r\n\r\n if (memVector != null) memoryLists[i].setListData(memVector);\r\n\r\n // if memory block has changed, do also redraw next time\r\n // in order to remove indication\r\n memoryUpdateState[i] = memBlock.isChanged(this.lastChanged[i]);\r\n this.lastChanged[i] = memBlock.lastChanged();\r\n }\r\n }\r\n }", "private void saveClubList() {\n SharedPreferences sharedPreferences = getSharedPreferences(\"Shared Preferences\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(clubList);\n editor.putString(\"Club List\", json);\n editor.apply();\n }", "public void memorizzaListaElettorale(ArrayList<Lista> listaelettorale) {\n\n\t\tDB db = getDB();\n\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t//pulisco\n\t\tmap.clear();\n\t\t\n\t\tint contatore = 0;\n\t\t//inserisco la lista delle liste elettorali\n\t\tfor (Lista lista : listaelettorale) {\n\t\t\tmap.put(contatore++, lista);\n\t\t}\n\t\tdb.commit(); //commit \n\n\t}", "@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\t\tsavedInstanceState.putInt(\"LIST_POSITION\", mPosition);\n\t\tsavedInstanceState.putInt(\"LIST_OFFSET\", mOffset);\n\t\tsuper.onSaveInstanceState(savedInstanceState);\n\t}", "private void storePotList(){\n String tempName;\n int tempWeight;\n SharedPreferences preferences = getSharedPreferences(SHAREDPREF_SET, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n int sizeOfPotList = potList.countPots();\n editor.putInt(SHAREDPREF_ITEM_POTLIST_SIZE, sizeOfPotList);\n for(int i = 0; i < potList.countPots();i++){\n tempWeight = (potList.getPot(i).getWeightInG());\n tempName = (potList.getPot(i).getName());\n editor.putString(SHAREDPREF_ITEM_POTLIST_NAME+i, tempName);\n editor.putInt(SHAREDPREF_ITEM_POTLIST_WEIGHT+i, tempWeight);\n }\n editor.commit();\n }", "private void saveAndExit() {\n if (yesNoQuestion(\"Would you like to save the current active courses to the saved list before saving?\")) {\n addActiveCourseListToCourseList();\n }\n try {\n JsonWriter writer = new JsonWriter(\"./data/ScheduleList.json\",\n \"./data/CourseList.json\");\n writer.open(true);\n writer.writeScheduleList(scheduleList);\n writer.close(true);\n\n writer.open(false);\n writer.writeCourseList(courseList);\n writer.close(false);\n } catch (IOException ioe) {\n System.out.println(\"File Not Found, failed to save\");\n } catch (Exception e) {\n System.out.println(\"Unexpected Error, failed to save\");\n }\n\n }", "private void saveMemberList () {\r\n\t\tStringBuffer\tmembers\t\t= new StringBuffer();\r\n\t\tboolean\t\t\taddSplit\t= false;\r\n\t\t\r\n\t\tfor (String member : this.members) {\r\n\t\t\tif (addSplit)\r\n\t\t\t\tmembers.append(splitMember);\r\n\t\t\tmembers.append(member);\r\n\t\t\taddSplit = true;\r\n\t\t}\r\n\t\t\r\n\t\tstorage.setString(namedStringMembers, members.toString());\r\n\t}", "public void saveToDoList() {\n try {\n jsonWriter.open();\n jsonWriter.write(toDoList);\n jsonWriter.close();\n\n System.out.println(\"Saved \" + toDoList.getName() + \" to \" + JSON_STORE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to write to file: \" + JSON_STORE);\n }\n }", "private void updateList() {\n Model.instace.getAllArticles(new ArticleFirebase.GetAllArticlesAndObserveCallback() {\n @Override\n public void onComplete(List<Article> list) {\n data.clear();\n data = list;\n adapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancel() {\n\n }\n });\n }", "public void save() {\n super.storageSave(listPedidosAssistencia.toArray());\n }", "public void save(Context context){\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = context.openFileOutput(\"state.bin\", Context.MODE_PRIVATE);\n\t\t\tObjectOutputStream os = new ObjectOutputStream(fos);\n\t\t\tos.writeObject(this.list);\n\t\t\tos.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void reiniciarLista(){\n lista_inicializada = false;\n }", "public void updateList() {\n\t\tthis.myList.clear();\n\t\tIterator<String> item = this.myHashMap.keySet().iterator();\n\n\t\twhile (item.hasNext())\n\t\t{\n\t\t\tString name = (String)item.next();\n\t\t\tthis.myList.add(name);\n\t\t}\n\t\tthis.nameId = -1;\n\t\t\n\t}", "private void restList() {\n for (Processus tmp : listOfProcess) {\n tmp.resetProcess();\n }\n }", "public void setEditList(List<StepModel> stepList){\n //Guardamos el tamaña de la lista a modificar\n int prevSize = this.stepModelList.size();\n //Limpiamos la lista\n this.stepModelList.clear();\n //Si la lista que me pasan por parámtro es nula, la inicializo a vacia\n if(stepList == null) stepList = new ArrayList<>();\n //Añado la lista que me pasan por parámetro a la lista vaciada\n this.stepModelList.addAll(stepList);\n //Notifico al adaptador que el rango de item se ha eliminado\n notifyItemRangeRemoved(0, prevSize);\n //Notifico que se ha insertado un nuevo rango de items\n notifyItemRangeInserted(0, stepList.size());\n }", "public static void addList() {\n\t}", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "private void refreshData() {\n\r\n\t SfJdRecordFileModel model = (SfJdRecordFileModel) listCursor.getCurrentObject();\r\n\r\n\t if (model != null && !\"\".equals(ZcUtil.safeString(model.getModelId()))) {//列表页面双击进入\r\n\r\n\t this.pageStatus = ZcSettingConstants.PAGE_STATUS_BROWSE;\r\n\r\n\t model = getModel(model.getModelId());\r\n\t listCursor.setCurrentObject(model);\r\n\t this.setEditingObject(model);\r\n\t } else {//新增按钮进入\r\n\r\n\t this.pageStatus = ZcSettingConstants.PAGE_STATUS_NEW;\r\n\r\n\t model = new SfJdRecordFileModel();\r\n\t \r\n\t setDefaultValue(model);\r\n\r\n\t listCursor.getDataList().add(model);\r\n\r\n\t listCursor.setCurrentObject(model);\r\n\r\n\t this.setEditingObject(model);\r\n\r\n\t }\r\n\r\n\t refreshSubData();\r\n\t \r\n\t setOldObject();\r\n\r\n\t setButtonStatus();\r\n\r\n\t updateFieldEditorsEditable();\r\n\r\n\t }", "private void rewriteLocationList(List<Location> newLocationList) {\n Log.d(\"debugMode\", \"writing new contents\");\n for (Location location : newLocationList) {\n String line = \"\\n\" + location.returnFull();\n byte[] bytes = line.getBytes();\n\n FileOutputStream out;\n try {\n Log.d(\"debugMode\", location.returnFull());\n out = openFileOutput(\"Locations.txt\", MODE_APPEND);\n out.write(bytes);\n out.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "private static void initializeLists() {\n\t\t\n\t\t//read from serialized files to assign array lists\n\t\t//customerList = (ArrayList<Customer>) readObject(customerFile);\n\t\t//employeeList = (ArrayList<Employee>) readObject(employeeFile);\n\t\t//applicationList = (ArrayList<Application>) readObject(applicationFile);\n\t\t//accountList = (ArrayList<BankAccount>) readObject(accountFile);\n\t\t\n\t\t//read from database to assign array lists\n\t\temployeeList = (ArrayList<Employee>)employeeDao.readAll();\n\t\tcustomerList = (ArrayList<Customer>)customerDao.readAll();\n\t\taccountList = (ArrayList<BankAccount>) accountDao.readAll();\n\t\tapplicationList = (ArrayList<Application>)applicationDao.readAll();\n\t\t\n\t\tassignBankAccounts();\n\t}", "public void updateList(List<?> listOfObjects){\n this.radioObjects = listOfObjects;\n }", "public void updateAnimalList(){\r\n // if (animals != null && animals.size() > 0)\r\n // {\r\n // \r\n // }\r\n // else\r\n // {\r\n animals.clear();\r\n \r\n for (fit5042.assign.repository.entity.Animal animal : animalManagedBean.getAllAnimals())//for each animal entry in the Entity Class Animal, get all animals\r\n {\r\n animals.add(animal); //add Animal data to the ArrayList<Animal> animals\r\n }\r\n \r\n setAnimal(animals); //set the global ArrayList attribute with the local ArrayList attribute\r\n // }\r\n }", "public void save(List<T> data) {\n\t\ttry {\n\t\t\tFile file = new File(getFileLocation());\n\t\t\tif (!file.getParentFile().exists()) {\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(getFileLocation());\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(gson.toJson(data));\n\t\t\tbw.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void saveIds(ArrayList<String> idList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(idList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void revolver() {\n this.lista = Lista.escojerAleatorio(this, this.size()).lista;\n }", "public void saveTaverns(ArrayList<Tavern> list){\n for (int i = 0; i < list.size(); i++){\n mapper.save(list.get(i));\n }\n }", "private String refresh(List lstDataToSave, List list, Timestamp timestamp) {\r\n StringBuffer message = new StringBuffer();\r\n BudgetSubAwardBean budgetSubAwardBean;\r\n \r\n String str = null, fileName;\r\n for(int index = 0; index < lstDataToSave.size(); index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)lstDataToSave.get(index);\r\n \r\n //No need to update/refresh Deleted beans\r\n if((budgetSubAwardBean.getAcType() != null && budgetSubAwardBean.getAcType().equals(TypeConstants.DELETE_RECORD))\r\n || (budgetSubAwardBean.getAcType() != null && !budgetSubAwardBean.getAcType().equals(TypeConstants.INSERT_RECORD) && budgetSubAwardBean.getPdfAcType() == null && budgetSubAwardBean.getXmlAcType() == null)){\r\n continue;\r\n }\r\n \r\n if(list != null && list.size() > 0) {\r\n str = list.get(index).toString();\r\n budgetSubAwardBean.setTranslationComments(str);\r\n }\r\n \r\n //If Beans are Inserted. update AwSubAwardNumber and timestamp.\r\n if(budgetSubAwardBean.getAcType() != null && budgetSubAwardBean.getAcType().equals(TypeConstants.INSERT_RECORD)) {\r\n budgetSubAwardBean.setAwSubAwardNumber(budgetSubAwardBean.getSubAwardNumber());\r\n budgetSubAwardBean.setUpdateTimestamp(timestamp);\r\n }\r\n \r\n if(str != null && str.equals(BudgetSubAwardConstants.XML_GENERATED_SUCCESSFULLY)){\r\n if(timestamp != null) {\r\n if(budgetSubAwardBean.getAcType() != null) {\r\n budgetSubAwardBean.setUpdateUser(mdiForm.getUserId());\r\n budgetSubAwardBean.setUpdateTimestamp(timestamp);\r\n }\r\n if(budgetSubAwardBean.getPdfAcType() != null) {\r\n budgetSubAwardBean.setPdfUpdateUser(mdiForm.getUserId());\r\n budgetSubAwardBean.setPdfUpdateTimestamp(timestamp);\r\n budgetSubAwardBean.setXmlUpdateUser(mdiForm.getUserId());\r\n budgetSubAwardBean.setXmlUpdateTimestamp(timestamp);\r\n }\r\n }\r\n budgetSubAwardBean.setAcType(null);\r\n budgetSubAwardBean.setPdfAcType(null);\r\n budgetSubAwardBean.setXmlAcType(null);\r\n }else {\r\n if(message.length() != 0) {\r\n message.append(\"\\n\\n\"); //Append Next Line and an Empty Line\r\n }\r\n message.append(\"Sub Award Num:\"+budgetSubAwardBean.getSubAwardNumber());\r\n message.append(\", File Name:\");\r\n if(budgetSubAwardBean.getPdfAcType() != null) {\r\n fileName = lstFileNames.get(0).toString();\r\n lstFileNames.remove(0); //So that 0th element would be next element\r\n if(timestamp != null) {\r\n budgetSubAwardBean.setPdfUpdateUser(mdiForm.getUserId());\r\n budgetSubAwardBean.setPdfUpdateTimestamp(timestamp);\r\n }\r\n }else {\r\n fileName = budgetSubAwardBean.getPdfFileName();\r\n }\r\n message.append(fileName);\r\n message.append(\"\\n\"+str);\r\n \r\n //budgetSubAwardBean.setAcType(null);\r\n //budgetSubAwardBean.setPdfAcType(TypeConstants.UPDATE_RECORD);\r\n budgetSubAwardBean.setPdfFileName(fileName);\r\n }\r\n }//End For\r\n \r\n //refresh view of selected Sub Award\r\n displayDetails();\r\n \r\n return message.toString();\r\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n //ALWAYS CALL THE SUPER METHOD - To be nice!\n super.onSaveInstanceState(outState);\n Log.d(TAG, \"onSaveInstanceState\");\n\t\t/* Here we put code now to save the state */\n outState.putParcelableArrayList(\"savedList\",bag);\n\n }", "public Boolean saveAll(List<ControlAcceso> list) {\n\t\treturn null;\n\t}", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}", "public void saveArticlesList();", "public void oppdaterJliste()\n {\n bModel.clear();\n\n Iterator<Boligsoker> iterator = register.getBoligsokere().iterator();\n\n while(iterator.hasNext())\n bModel.addElement(iterator.next());\n }", "public void saveChanges ()\n\t{\n\t\n\t\tint nlayers = mCheckBoxList.size();\n\t\tVector layers = new Vector();\n\t\t\n\t\tfor (int i = 0; i < nlayers; i++)\n\t\t{\n\t\t\tJCheckBox checkBox = (JCheckBox)mCheckBoxList.get(i);\n\t\t\tif (checkBox.isSelected())\n\t\t\t{\n\t\t\t\tString layerName = checkBox.getText();\n\t\t\t\tLayer lyr = AppContext.layerManager.getLayer(layerName);\n\t\t\t\tlayers.add(lyr);\n\t\t\t}\n\t\t}\n\t\n\t\tAppContext.cartogramWizard.setSimultaneousLayers(layers);\n\t\n\t}", "@Override\n\tpublic String saveAll(List<Employee> empList) {\n\t\treturn null;\n\t}", "private void addActiveCourseListToCourseList() {\n courseList.addCoursesToList(activeCourseList);\n activeCourseList = new ArrayList<>();\n System.out.println(\"Added and Cleared!\");\n }", "@Override\n\tpublic void save(List<Field> entity) {\n\t\t\n\t}", "@Override\n public int bathSave(List<T> entitys) throws Exception {\n return mapper.insertList(entitys);\n }", "public void guardaLlista() throws IOException {\n ctrl_Persistencia.guardaLlista(\"@../../Dades/\"+list.getNomLlista()+\".llista\",list);\n }", "public void guardarCambios(View v){\n\n ArrayList<ENListaCompra> miL = DespenBD.getListasVisibles();\n ENListaCompra lCompra = miL.get(miL.size()-posicion-1);\n\n System.out.println(\"Posician: \"+posicion);\n System.out.println(\"Nombre: \"+lCompra.getNombre());\n\n DespenBD.editarLista(lCompra.getNombre(),lCompra.getFecha(),etNombre.getText().toString(), etFecha.getText().toString());\n //lCompra.setNombre();\n\n /* for (ENListaCompra lc: miL) {\n //misListas.add(0, new MisListas(\"\"+lc.getNombre(),\"\"+lc.getFecha()));\n System.out.println(\"imprime: \" + lc.getNombre());\n }*/\n\n Intent i = new Intent(this, ListasCompra.class );\n //i.putExtra(\"nombre\", \"\" + etNombre.getText());\n //i.putExtra(\"accion\", \"editar\");\n startActivity(i);\n\n finish();\n\n }", "public void refreshList() {\n PartDAO partDAO = new PartDAO();\n for (Part p : partDAO.getAll()) {\n if (p.getStockLevel() > 0) {\n Label partLabel = new Label(\"ID: \" + p.getPartID() + \" / Name: \" + p.getName() + \" / Stock: \" + p.getStockLevel());\n partHashMap.put(partLabel.getText(), p);\n partList.getItems().add(partLabel);\n }\n }\n Customer customer = new Customer();\n CustomerDAO customerDAO = new CustomerDAO();\n for(Customer c: customerDAO.getAll()) {\n if(jobReference.getJob().getCustomerID() == Integer.parseInt(c.getCustomerID())) {\n customer.setFirstName(c.getFirstName());\n customer.setLastName(c.getLastName());\n break;\n }\n }\n if(jobReference.getJob().getRegistrationID() == null) {\n jobDetailsLbl.setText(\"Date: \" + jobReference.getJob().getDateBookedIn() + \" / Name: \" + customer.getFirstName() + \" \" + customer.getLastName() + \" / Part-only job\");\n }\n else {\n jobDetailsLbl.setText(\"Date: \" + jobReference.getJob().getDateBookedIn() + \" / Name: \" + customer.getFirstName() + \" \" + customer.getLastName() + \" / Car ID: \" + jobReference.getJob().getRegistrationID());\n }\n stockUsedField.setText(\"1\");\n }", "@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;\n // Add the primary keys to the serialized key list if there are any.\n if (loci != null) {\n for (com.poesys.db.dto.IDbDto object : loci) {\n lociKeys.add(object.getPrimaryKey());\n }\n }\n }", "private void initList() {\n\n }", "@Override\n\tpublic void savePengdingWaybill(List<WaybillPendingEntity> pendingList) {\n\t\t\n\t}", "@Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeList(listData);\n }", "List<T> saveOrUpdateList(final List<T> entitiesList);", "private void Writehistory (List list, savekq savehistory){\n if (kiemtrasopt(list) < 10) {\n list.add(0, savehistory);\n } else {\n list.remove(9);\n list.add(0, savehistory);\n }\n }", "public void saveToReadID(ArrayList<String> idList) {\n\n\t\tSAVE_FILE = TO_READ_FILE;\n\t\tsaveIds(idList);\n\t}", "public void saveAllHistory() {\n\n\t\tfor (Map.Entry<Integer, History> entry : mapOfHistorys.entrySet()) {\n\t\t\tHistory history = entry.getValue();\n\t\t\thistory.save();\n\t\t\t\n\t\t}\n\t}", "public void reload(){\n populateList();\n }", "private void saveExternalFilesList() {\n List<String> extFiles = new ArrayList<>();\n journalFiles.forEach(file -> {\n if (!file.isBuiltInListProperty().get()) {\n file.getAbsolutePath().ifPresent(path -> extFiles.add(path.toAbsolutePath().toString()));\n }\n });\n abbreviationsPreferences.setExternalJournalLists(extFiles);\n }", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }", "public void genLists() {\n\t}", "public void exportAllLists(){\n }", "private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}", "private void reloadButtons(String newList) \n {\n // store saved url/url names in the lists array\n String[] lists = \n savedSiteList.getAll().keySet().toArray(new String[0]); \n Arrays.sort(lists, String.CASE_INSENSITIVE_ORDER); // sort by list\n\n // if a new list was added, insert in GUI at the appropriate location\n if (newList != null)\n {\n makeListGUI(newList, Arrays.binarySearch(lists, newList));\n }\n else // display GUI for all lists\n { \n // display all saved searches\n for (int index = 0; index < lists.length; ++index)\n makeListGUI(lists[index], index);\n } \n }", "void updateList(ShoppingList _ShoppingList);", "public static void save()\n {\n try {\n \n \n PrintWriter fich = null;\n \n fich = new PrintWriter(new BufferedWriter(new FileWriter(\"bd.pl\", true)));\n\t\t\t//true c'est elle qui permet d'écrire à la suite des donnée enregistrer et non de les remplacé \n \n for(String auto : GestionController.listApp)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listDetFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listType)\n {\n \n fich.println(auto);\n }\n fich.println();\n fich.close();\n } catch (Exception e1) {\n printStrace(e1);\n\t\t}\n }", "private void setToDoLists(){\n\n ArrayList<String> groceries = new ArrayList<String>();\n groceries.add(\"groceries\");\n groceries.add(\"apples\");\n groceries.add(\"gogurts\");\n groceries.add(\"cereal\");\n groceries.add(\"fruit roll ups\");\n groceries.add(\"lunch meat\");\n groceries.add(\"milk\");\n groceries.add(\"something for dessert\");\n groceries.add(\"steak\");\n groceries.add(\"milksteak\");\n groceries.add(\"cookies\");\n groceries.add(\"brewzongs\");\n\n ArrayList<String> bills = new ArrayList<String>();\n bills.add(\"bills\");\n bills.add(\"car loan\");\n bills.add(\"cable\");\n bills.add(\"rent\");\n\n ArrayList<String> emails = new ArrayList<String>();\n emails.add(\"emails\");\n\n ArrayList<ArrayList<String>> tmpMyList;\n tmpMyList = new ArrayList<ArrayList<String>>();\n\n tmpMyList.add(groceries);\n tmpMyList.add(bills);\n tmpMyList.add(emails);\n\n myList = tmpMyList;\n\n }", "private void setBooksInfo () {\n infoList = new ArrayList<> ();\n\n\n // item number 1\n\n Info info = new Info ();// this class will help us to save data easily !\n //set the title >> it can be Book name or Topic title ...\n info.setInfoTitle (\"ما هي اضطرابات طيف التوحد؟\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"سيساعدك هذا المستند على معرفة اضطراب طيف التوحد بشكل عام\");\n\n // we can add book url or download >>\n info.setInfoPageURL (\"https://firebasestorage.googleapis.com/v0/b/autismapp-b0b6a.appspot.com/o/material%2FInfo-Pack-for\"\n + \"-translation-Arabic.pdf?alt=media&token=69b19a8d-8b4c-400a-a0eb-bb5c4e5324e6\");\n\n infoList.add (info); //adding item 1 to list\n\n\n/* // item number 2\n info = new Info ();// save the second Book\n //set the title >> it can be Book name or Topic title ...\n info.setInfoTitle (\"Solve My Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this Book has will help patient of Autism to get better by communicate with experts ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://material.io/\");\n\n infoList.add (info);//adding item number 2 to list\n\n\n // item 3\n info = new Info ();// save the third Book\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Autism Community\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this an Book about patient of Autism and how to help them get better ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://www.tutorialspoint.com/android/index.html\");\n infoList.add (info);// adding item 3 to list\n\n // item number 4\n info = new Info ();// save the second Book\n //set the title >> it can be Book name or Topic title ...\n info.setInfoTitle (\"Solve My Autism part 2\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this Book has will help patient of Autism to get better by communicate with experts ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://material.io/\");\n\n infoList.add (info);//adding item number 4 to list\n\n\n // item 5\n info = new Info ();// save the third Book\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Autism Community 2\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this an Book about patient of Autism and how to help them get better ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://www.tutorialspoint.com/android/index.html\");\n infoList.add (info);// adding item 5 to list*/\n\n\n displayInfo (infoList);\n\n }", "public void addList()\n\t{\n\t\tdlm_patch.clear();\n\t\tif (pf.getAllPatch_DB() != null)\n\t\t{\n\t\t\tfor ( Patch p : pf.getAllPatch_DB() )\n\t\t\t\tdlm_patch.addElement(p);\n\t\t}\n\t}", "private void saveStoreListChangesInDb() {\n if (currentUser != null) {\n final String userId = currentUser.getUid();\n firebaseDb.collection(userId)\n .document(shoppingListName)\n .update(\"stores\", storeList)\n .addOnFailureListener(e -> Toast.makeText(getApplicationContext(),\n R.string.Update_list_error_msg, Toast.LENGTH_SHORT)\n .show());\n }\n }", "public void initial_list_original(){\n \tFile file = new File(original_directory_conf);\n \tif(file.exists()){\n \t\tArrayList<String> original_directory_list = new ArrayList<String>();\n original_directory_list = read_from_file.readFromFile(original_directory_conf);\n for(int i = 0; i < original_directory_list.size(); i++){\n \tdefault_list_model1.addElement(original_directory_list.get(i));\n }\n list_original.setModel(default_list_model1);\n scroll_pane.repaint();\n \t}else{\n \t\treturn;\n \t}\n \t\n }", "@Override\n\tpublic void updateDataListVO(List<StudentDTO> dataList) {\n\t\t\n\t}", "public void setList(DOCKSList param) {\r\n localListTracker = param != null;\r\n\r\n this.localList = param;\r\n }" ]
[ "0.7295708", "0.71639675", "0.6782474", "0.67464", "0.67024076", "0.6554359", "0.6540199", "0.6522308", "0.6471947", "0.6436883", "0.64263606", "0.635334", "0.63498664", "0.63463724", "0.6316559", "0.6315619", "0.63057214", "0.6305493", "0.629382", "0.62901753", "0.6276917", "0.6272431", "0.62616", "0.6261099", "0.6255873", "0.62492085", "0.6241426", "0.61916333", "0.6162009", "0.6159581", "0.61468744", "0.6135163", "0.6126886", "0.6111474", "0.6109381", "0.6107364", "0.61071604", "0.6103647", "0.61003745", "0.60998464", "0.6098382", "0.60955054", "0.60891354", "0.60844374", "0.60725224", "0.60662943", "0.6039616", "0.6038565", "0.6030522", "0.6029568", "0.6027538", "0.60186505", "0.6015597", "0.6011038", "0.6003463", "0.60010695", "0.59777004", "0.5969023", "0.5966098", "0.596545", "0.59652877", "0.59616834", "0.5940254", "0.59392047", "0.5938054", "0.59318596", "0.59300244", "0.59287775", "0.5906721", "0.58988637", "0.58974725", "0.5895846", "0.5895482", "0.5894329", "0.5891897", "0.58907294", "0.5886196", "0.5883926", "0.5880602", "0.58804697", "0.58731747", "0.5870451", "0.58701885", "0.58673084", "0.58670175", "0.58593166", "0.58453816", "0.58440465", "0.58394074", "0.5835175", "0.5834575", "0.5833261", "0.58277273", "0.58192074", "0.5814609", "0.5814272", "0.58107716", "0.5809883", "0.5806644", "0.5801004", "0.5800941" ]
0.0
-1
/ Here we are going to click a Todo list of the list and we are going to display all the elements of this list on the list next to this one. We have to check if the Show_completed_Items or Show_Incompleted_Items is marked; in order to filter the items of that list.
@FXML public void Show_List(MouseEvent mouseEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n void showCompletedTasksClicked(ActionEvent event)\n {\n ObservableList<Item> completedTasks = FXCollections.observableArrayList();\n\n if(showCompletedTasks.isSelected())\n {\n // Have it display in listView\n // First need to remove all the items in listView and then display only completed\n showIncompleteTasks.setSelected(false);\n\n listView.getItems().clear();\n\n // Creating a list with only completed tasks\n createList(true, completedTasks);\n\n listView.refresh();\n }\n\n listView.setItems(completedTasks);\n\n if(!showIncompleteTasks.isSelected())\n {\n // Uncheck the checkbox\n listView.getItems().clear();\n\n // Add all items to the table\n for(Item item : Item.getToDoList())\n {\n listView.getItems().add(Item.getToDoList().get(Item.getToDoList().indexOf(item)));\n }\n\n listView.refresh();\n }\n }", "@FXML\n void showIncompleteTasksClicked(ActionEvent event)\n {\n ObservableList<Item> incompleteTasks = FXCollections.observableArrayList();\n\n if(showIncompleteTasks.isSelected())\n {\n // Have it display in listView\n // First need to remove all the items in listView and then display only incomplete\n showCompletedTasks.setSelected(false);\n\n listView.getItems().clear();\n\n createList(false, incompleteTasks);\n\n listView.refresh();\n }\n\n listView.setItems(incompleteTasks);\n\n if(!showIncompleteTasks.isSelected())\n {\n // Uncheck the checkbox\n listView.getItems().clear();\n\n // Add all items to the table\n for(Item item : Item.getToDoList())\n {\n listView.getItems().add(Item.getToDoList().get(Item.getToDoList().indexOf(item)));\n }\n\n listView.refresh();\n }\n }", "public void Show_only_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "public void setDisplayDoneItems(ActionEvent actionEvent) {\n // we will simply loop through all of our items and\n // store the ones that are not yet done in a temporary tdlist\n // and then displayTODOs(tdlist) the result\n }", "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "public void hide_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(!selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "private void syncListFromTodo() {\r\n DefaultListModel<String> dlm = new DefaultListModel<>();\r\n for (Task task : myTodo.getTodo().values()) {\r\n if (!task.isComplete() || showCompleted) {\r\n String display = String.format(\"%1s DueDate: %10s %s %3s\", task.getName(), task.getDueDate(),\r\n task.isComplete() ? \" Completed!\" : \" Not Completed\", task.getPriority());\r\n dlm.addElement(display);\r\n list.setFont(new Font(\"TimesRoman\", Font.PLAIN, 15));\r\n }\r\n }\r\n list.setModel(dlm);\r\n }", "@Test\n void testFilterList(){\n ToDoList todoList = new ToDoList();\n ToDo todo1 = new ToDo(\"Todo1\");\n todo1.setInhalt(\"Dies ist ein Test\");\n\n todoList.add(new ToDo((\"Todo2\")));\n ToDo todo3 = new ToDo(\"Todo3\");\n todo3.setInhalt(\"3+3=6\");\n todo3.setStatus(Status.IN_ARBEIT);\n todoList.add(new ToDo((\"Todo4\")));\n todoList.add(todo3);\n ToDo todo4 = new ToDo(\"Trala\");\n todo4.setStatus(Status.IN_ARBEIT);\n todo4.setStatus(Status.BEENDET);\n todo4.setInhalt(\"ab\");\n ToDo todo5 = new ToDo(\"Trala\");\n todo5.setInhalt(\"aa\");\n todo5.setStatus(Status.IN_ARBEIT);\n todo5.setStatus(Status.BEENDET);\n todoList.add(todo5);\n todoList.add(todo4);\n todoList.add(todo1);\n\n ToDoList open = todoList.getStatusFilteredList(Status.OFFEN);\n assertEquals(3, open.size());\n\n ToDoList inwork = todoList.getStatusFilteredList(Status.IN_ARBEIT);\n assertEquals(1, inwork.size());\n\n ToDoList beendet = todoList.getStatusFilteredList(Status.BEENDET);\n assertEquals(2, beendet.size());\n }", "@Override\n\tpublic void showCompletedTodo() {\n\n\t}", "@Override\n\tpublic void showActiveTodo() {\n\n\t}", "private void viewList() {\n ToDoList highPriority = new ToDoList(\"high priority\");\n ToDoList midPriority = new ToDoList(\"mid priority\");\n ToDoList lowPriority = new ToDoList(\"high priority\");\n\n for (int i = 0; i < toDoList.getSize(); i++) {\n if (toDoList.getItemAtIndex(i + 1).getCategory().equals(Categories.HIGHPRIORITY)) {\n highPriority.insert(toDoList.getItemAtIndex(i + 1));\n }\n\n if (toDoList.getItemAtIndex(i + 1).getCategory().equals(Categories.MIDPRIORITY)) {\n midPriority.insert(toDoList.getItemAtIndex(i + 1));\n }\n\n if (toDoList.getItemAtIndex(i + 1).getCategory().equals(Categories.LOWPRIORITY)) {\n lowPriority.insert(toDoList.getItemAtIndex(i + 1));\n }\n }\n\n System.out.println(\"HIGH PRIORITY: \");\n display(highPriority);\n System.out.println(\"MID PRIORITY: \");\n display(midPriority);\n System.out.println(\"LOW PRIORITY: \");\n display(lowPriority);\n displayUrgent(toDoList);\n }", "private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }", "private void doViewAllTasks() {\n ArrayList<Task> t1 = todoList.getListOfTasks();\n if (t1.size() > 0) {\n for (Task task : t1) {\n System.out.println(task.getTime() + \" \" + task.getDescription() + \" \" + task.getDate());\n }\n } else {\n System.out.println(\"No tasks available.\");\n }\n }", "private void setList() {\n Log.i(LOG,\"+++ setList\");\n txtCount.setText(\"\" + projectTaskList.size());\n if (projectTaskList.isEmpty()) {\n return;\n }\n\n projectTaskAdapter = new ProjectTaskAdapter(projectTaskList, darkColor, getActivity(), new ProjectTaskAdapter.TaskListener() {\n @Override\n public void onTaskNameClicked(ProjectTaskDTO projTask, int position) {\n projectTask = projTask;\n mListener.onStatusUpdateRequested(projectTask,position);\n }\n\n\n });\n\n mRecyclerView.setAdapter(projectTaskAdapter);\n mRecyclerView.scrollToPosition(selectedIndex);\n\n }", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "private void updateListVisibility() {\n switch (currentFilter) {\n case 0: // Available quests...\n if (user.getInt(QuestApp.ALIGNMENT_KEY) == 0) { //... for good heroes\n setListAdapter(adapterAvailableGood);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 1) { //... for neutral heroes\n setListAdapter(adapterAvailableNeutral);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 2){ //... for evil heroes\n setListAdapter(adapterAvailableEvil);\n }\n break;\n case 1: // Accepted quests\n setListAdapter(adapterAccepted);\n break;\n case 2: // Completed quests\n setListAdapter(adapterCompleted);\n break;\n }\n }", "public void display(ToDoList toDoList) {\n int length = toDoList.getSize();\n\n if (length == 0) {\n System.out.println(\"You have completed all your tasks! Yay!!\");\n }\n\n for (int i = 0; i < length; i++) {\n String name = toDoList.getItemAtIndex(i + 1).getTitle();\n String days = toDoList.getItemAtIndex(i + 1).getDaysBeforeDue();\n System.out.println((i + 1) + \". \" + name + \": due in \" + days + \" days\");\n }\n }", "@When(\"User clicks on Sortable a list of items should appear\")\n public void user_clicks_on_Sortable_a_list_of_items_should_appear() {\n homePage.user_clicks_on_Sortable_a_list_of_items_should_appear_Test();\n }", "@Test\n public void checkListView(){\n //assert awaiting approval view\n View awaitingApprovalView = solo.getView(\"awaiting_approval\");\n assertTrue(solo.waitForText(\"Awaiting Approval\",1,2000));\n //Check for list of awaiting approvals\n View awaitingApprovalListView = solo.getView(\"books_awaiting_list\");\n //click on list of borrowed books\n solo.clickOnView(awaitingApprovalListView);\n solo.assertCurrentActivity(\"Wrong Activity\", Host.class);\n\n\n }", "public static void printList(){\n ui.showToUser(ui.DIVIDER, \"Here are the tasks in your list:\");\n for (int i=0; i<Tasks.size(); ++i){\n Task task = Tasks.get(i);\n Integer taskNumber = i+1;\n ui.showToUser(taskNumber + \".\" + task.toString());\n }\n ui.showToUser(ui.DIVIDER);\n }", "private void displayTasks(List<Task> taskList) {\n\n adapter.setTaskList(taskList);\n adapter.notifyDataSetChanged();\n }", "private void doViewAllCompletedTasks() {\n ArrayList<Task> t1 = todoList.getListOfCompletedTasks();\n if (t1.size() > 0) {\n for (Task task : t1) {\n System.out.println(task.getTime() + \" \" + task.getDescription() + \" \" + task.getDate());\n }\n } else {\n System.out.println(\"No completed tasks available.\");\n }\n }", "private void gotoCheckInListView() {\n }", "public void verifyTodoCompleteFrontend(String toDoName, String status) {\n try {\n Thread.sleep(smallTimeOut);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //TODO move xpath to properties file\n WebElement toDoRow = getDriver()\n .findElement(By.xpath(\"//input[@class='newTodoInput'][@value='\" + toDoName + \"']/ancestor::tr[contains(@class,'newRow')]\"));\n WebElement toDoCategory = getDriver().findElement(By.xpath(\n \"//input[@class='newTodoInput'][@value='\" + toDoName + \"']/ancestor::tr[contains(@class,'newRow')]//div[contains(@class,'ui dropdown category')]\"));\n WebElement toDoClient = getDriver().findElement(By.xpath(\n \"//input[@class='newTodoInput'][@value='\" + toDoName + \"']/ancestor::tr[contains(@class,'newRow')]//div[contains(@class,'ui dropdown client')]\"));\n WebElement toDoAuditor = getDriver().findElement(By.xpath(\n \"//input[@class='newTodoInput'][@value='\" + toDoName + \"']/ancestor::tr[contains(@class,'newRow')]//div[contains(@class,'ui dropdown auditor')]\"));\n\n if (status.equals(\"true\")) {\n getLogger().info(\"Verify Completed To-Do front-end\");\n if ((toDoRow.getAttribute(\"class\").endsWith(\"todoCompleted\")) && (toDoCategory.getAttribute(\"class\").endsWith(\"disabled\")) && (toDoClient\n .getAttribute(\"class\").endsWith(\"disabled\")) && (toDoAuditor.getAttribute(\"class\").endsWith(\"disabled\"))) {\n NXGReports.addStep(\"Verify Completed To-Do front-end\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify Completed To-Do front-end\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } else {\n getLogger().info(\"Verify not Completed To-Do front-end\");\n if ((!toDoRow.getAttribute(\"class\").endsWith(\"todoCompleted\")) && (!toDoCategory.getAttribute(\"class\")\n .endsWith(\"disabled\")) && (!toDoClient.getAttribute(\"class\").endsWith(\"disabled\")) && (!toDoAuditor.getAttribute(\"class\")\n .endsWith(\"disabled\"))) {\n NXGReports.addStep(\"Verify not Completed To-Do front-end\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify not Completed To-Do front-end\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }\n }", "@Test\n public void todoItemsOrderByStatusTest() throws InterruptedException {\n onView(withId(R.id.fabList)).perform(click());\n onView(withId(R.id.editTextName)).perform(click(), replaceText(\"To-Do List 1\"), closeSoftKeyboard());\n onView(withId(R.id.btnCreateList)).perform(click());\n onView(withId(R.id.recyclerView)).perform(RecyclerViewActions.actionOnItemAtPosition(TestUtils.getCountFromRecyclerView(R.id.recyclerView) - 1, new ClickOnRelativeList()));\n\n for (List<Integer> lInt : TestUtils.getStatusList()) {\n int lIntCount = 0;\n for (int i = 3; i >= 1; i--) {\n onView(withId(R.id.fabInner)).perform(click());\n onView(withId(R.id.editTextName)).perform(replaceText(i + \"_Name\"));\n onView(withId(R.id.editTextDescription)).perform(replaceText(i + \"_Description\"));\n onView(withId(R.id.editTextDeadline)).perform(replaceText(Utils.getCurrentDate()));\n onView(withId(R.id.btnCreateItem)).perform(click());\n if (lInt.get(lIntCount) == 1) {\n onView(withId(R.id.recyclerViewInner)).perform(RecyclerViewActions.actionOnItemAtPosition(lIntCount, new ClickOnCheckbox()));\n }\n lIntCount++;\n }\n // Click status item from menu on Toolbar\n onView(withId(R.id.menu_order_by)).perform(click());\n onView(withText(R.string.status)).perform(click());\n // Make thread sleep for 2 seconds so we could check whether it's true or not\n Thread.sleep(2000);\n for (int j = 0; j < 3; j++) {\n onView(withId(R.id.recyclerViewInner)).perform(RecyclerViewActions.actionOnItemAtPosition(0, new ClickOnImageDeleteItem()));\n onView(withId(R.id.btnYes)).perform(click());\n }\n }\n\n // Go back to FragmentTodoList\n Espresso.pressBack();\n // Delete To-Do list\n onView(withId(R.id.recyclerView)).perform(RecyclerViewActions.actionOnItemAtPosition(TestUtils.getCountFromRecyclerView(R.id.recyclerView) - 1, new ClickOnImageDeleteList()));\n onView(withId(R.id.btnYes)).perform(click());\n\n Thread.sleep(2000);\n\n }", "private void showListSelectCheckBox(){\n DisplayListWithCheckBox();\n //wordList.setSelection(FirstVisiblePosition);\n\n FloatingActionButton fab_plus = findViewById(R.id.fab_plus);\n fab_plus.setVisibility(View.INVISIBLE);\n FloatingActionButton fab_play = findViewById(R.id.fab_play);\n fab_play.setVisibility(View.INVISIBLE);\n FloatingActionButton fab_delete = findViewById(R.id.fab_delete);\n fab_delete.setVisibility(View.VISIBLE);\n }", "public void setCurrentListToBeDoneList();", "public void deleteAllExistedTodoItems() {\n waitForVisibleElement(createToDoBtnEle, \"createTodoBtn\");\n getLogger().info(\"Try to delete all existed todo items.\");\n try {\n Boolean isInvisible = findNewTodoItems();\n System.out.println(\"isInvisible: \" + isInvisible);\n if (isInvisible) {\n Thread.sleep(smallTimeOut);\n waitForClickableOfElement(todoAllCheckbox);\n getLogger().info(\"Select all Delete mail: \");\n System.out.println(\"eleTodo CheckboxRox is: \" + eleToDoCheckboxRow);\n todoAllCheckbox.click();\n waitForClickableOfElement(btnBulkActions);\n btnBulkActions.click();\n deleteTodoSelectionEle.click();\n waitForCssValueChanged(deteleConfirmForm, \"Delete confirm form\", \"display\", \"block\");\n waitForClickableOfElement(deleteTodoBtn);\n waitForTextValueChanged(deleteTodoBtn, \"Delete Todo Btn\", \"Delete\");\n deleteTodoBtn.click();\n waitForCssValueChanged(deteleConfirmForm, \"Delete confirm form\", \"display\", \"none\");\n getLogger().info(\"Delete all Todo items successfully\");\n NXGReports.addStep(\"Delete all Todo items\", LogAs.PASSED, null);\n } else {\n getLogger().info(\"No items to delele\");\n NXGReports.addStep(\"Delete all Todo items\", LogAs.PASSED, null);\n }\n } catch (Exception e) {\n AbstractService.sStatusCnt++;\n e.printStackTrace();\n NXGReports.addStep(\"Delete all Todo items\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n\n }\n\n }", "private void display()\n {\n tasksColumn.setCellValueFactory(new PropertyValueFactory<>(\"task\"));\n completionDateColumn.setCellValueFactory(new PropertyValueFactory<>(\"completionDate\"));\n completedColumn.setCellValueFactory(new PropertyValueFactory<>(\"completed\"));\n\n listView.getItems().add(Item.getToDoList().get(index));\n index++;\n }", "private void initializeToDoList() {\r\n // Get all of the notes from the database and create the item list\r\n Cursor c = mDbHelper.fetchAllNotes();\r\n listView = (ListView) findViewById(R.id.listView);\r\n final ListView lv = listView;\r\n startManagingCursor(c);\r\n String[] from = new String[] { DbAdapter.KEY_TITLE, DbAdapter.KEY_BODY, DbAdapter.KEY_REMINDER_AT };\r\n int[] to = new int[] { R.id.firstLineTitle, R.id.secondLineDesc };\r\n // Now create an array adapter and set it to display using our row\r\n SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.todo_list, c, from, to, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);\r\n lv.setAdapter(notes);\r\n lv.setOnItemClickListener(new OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n if ( mActionMode == null ) {\r\n SQLiteCursor listItem = (SQLiteCursor)lv.getItemAtPosition(position);\r\n Intent intent = new Intent(MainActivity.this, CreateToDo.class);\r\n Bundle extras = intent.getExtras();\r\n intent.putExtra(DbAdapter.KEY_ID, listItem.getInt(listItem.getColumnIndex(DbAdapter.KEY_ID)));\r\n intent.putExtra(DbAdapter.KEY_TITLE, listItem.getString(listItem.getColumnIndex(DbAdapter.KEY_TITLE)));\r\n intent.putExtra(DbAdapter.KEY_BODY, listItem.getString(listItem.getColumnIndex(DbAdapter.KEY_BODY)));\r\n intent.putExtra(DbAdapter.KEY_REMINDER_AT, listItem.getString(listItem.getColumnIndex(DbAdapter.KEY_REMINDER_AT)));\r\n startActivity(intent);\r\n } else {\r\n toggleViewSelection(view, id, position);\r\n }\r\n }\r\n });\r\n\r\n\r\n lv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\r\n @Override\r\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\r\n // Start the CAB using the ActionMode.Callback defined above\r\n mActionMode = MainActivity.this.startActionMode(MainActivity.this);\r\n toggleViewSelection(view, id, position);\r\n return true;\r\n }\r\n });\r\n }", "public void showComplete() {\r\n showCompleted = !showCompleted;\r\n todoListGui();\r\n }", "private void updateUI() {\n ArrayList<String> taskList = new ArrayList<>();\n SQLiteDatabase db = mHelper.getReadableDatabase();\n Cursor cursor = db.query(Task.TaskEntry.TABLE,new String[] {Task.TaskEntry.COL_TASK_TITLE},null,null,null,null,null);\n listItems.clear();\n\n while (cursor.moveToNext()){\n int index = cursor.getColumnIndex(Task.TaskEntry.COL_TASK_TITLE);\n taskList.add(cursor.getString(index));\n ListItems item = new ListItems(cursor.getString(index));\n listItems.add(item);\n }\n\n\n R_adapter = new RecyclerAdapterGoals(this.getContext(), listItems);\n mTaskListView.setAdapter(R_adapter);\n cursor.close();\n db.close();\n }", "void updateFilteredListToShowAll();", "void updateFilteredListToShowAll();", "public void updateAllFilteredListToShowAllActiveEntries();", "@Override\n public void onClick(View view) {\n Utils.saveInSharedPreference(activity, \"filter-state\", \"isStarFilterOn\", isStarFilterOn );\n Utils.saveInSharedPreference(activity, \"filter-state\", \"isFavFilterOn\", isFavFilterOn );\n\n if(!isFavFilterOn && !isStarFilterOn) {\n recyclerViewAdapter.getFilter().filter(\"A\"); //display entire list\n }\n else {\n recyclerViewAdapter.getFilter().filter(Utils.getFilterSting(isStarFilterOn, isFavFilterOn));\n }\n drawerLayout.closeDrawers();\n }", "Boolean isCurrentListDoneList();", "@Test\n public void testDAM31801002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801002Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingOverwrittenTypeAliasName();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tlist = mdb.getselect_all_data(ed.getText().toString());\n\t\t\t\tMy_list_adapter adapter = new My_list_adapter(getApplicationContext(),\n\t\t\t\t\t\tlist);\n\t\t\t\tlv.setAdapter(adapter);\n\t\t\t}", "void showTodoView();", "private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n Intent i = new Intent(ManageTaskActivity.this, ShowTaskListActivity.class);\n\n //Stores the parcelable TaskList that contains all tasks\n i.putParcelableArrayListExtra(\"TASK_LIST\", _Task);\n\n //Starts the activity, although since this activity will not change the list, we will not require result/return.\n startActivity(i);\n\n }", "private void getTodoItemsFromDatabase(){\n Cursor result = todoDatabaseHelper.getAllData();\n if(result.getCount() > 0){\n //there is some data\n while(result.moveToNext()){\n TodoItem todoItem = new TodoItem(result.getInt(0) ,result.getString(1), result.getString(2));\n todoItem.setSelected(false);\n todoItem.setCollapsed(true);\n todoItems.add(todoItem);\n }\n }\n }", "@GetMapping({\"/\", \"/list\"}) // when is active true -> printing only with done=true, using stream in service\n public String list (Model model, @RequestParam (required = false) boolean isActive, @RequestParam(required = false) String searchInput) {\n if (isActive == true) {\n model.addAttribute(\"todos\", todoService.onlyActive());\n }\n else if(searchInput==null) {\n model.addAttribute(\"assignees\", assigneeService.allAssignee());\n model.addAttribute(\"todos\", todoService.allTodos());\n }\n else if (searchInput!=null) {\n model.addAttribute(\"todos\",todoService.searchBy_TITLE_DATE_DESCRIPTION(searchInput));\n }\n return \"todoList\";\n }", "public static void printTaskList(ArrayList<Task> taskList){\n if (taskList.size() != 0) {\n Task task; // declaring the temporary Task variable\n System.out.printf(\"%-11s%-5s%-22s%s\\n\", \"Completed\", \"No.\", \"Task\", \"Date\"); // printing the column headers\n for (int i = 0; i < taskList.size(); i++) { // iterating over each task in the user's task list\n task = taskList.get(i); // getting the current task in the list\n System.out.print(\" [ \"); // formatting \n if (task.getIsComplete()) { // if the task is complete\n System.out.print(\"✓\"); // marking the task as complete\n } else {\n System.out.print(\" \"); // marking the task as incomplete\n }\n System.out.print(\" ] \"); // formatting\n System.out.printf(\"%-5d\", i + 1); // printing the task number\n System.out.printf(\"%-22s\", task.getLabel()); // printing the label of the task\n System.out.printf(\"%s\", task.getDate()); // printing the date of the task\n System.out.print(\"\\n\"); // printing a newline for formatting\n }\n } else {\n System.out.println(\"You do not have any tasks. Be sure to check your task list and add a task.\"); // telling the user they do not have any tasks\n }\n System.out.print(\"\\n\"); // printing a newline for formatting\n pause(); // pauses the screen\n }", "@Override\n public void onChanged(@Nullable List<Todo> todos) {\n adapter.submitList(todos);\n }", "@Test\n public void testDAM31801001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam31801001Click();\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n\n todoListPage.setTodoCreationDate(\"2016/12/30\");\n\n todoListPage = todoListPage.searchUsingClassTypeAlias();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "private void todoListGui() {\r\n panelSelectFile.setVisible(false);\r\n if (panelTask != null) {\r\n panelTask.setVisible(false);\r\n }\r\n\r\n makePanelList();\r\n syncListFromTodo();\r\n\r\n jframe.setTitle(myTodo.getName());\r\n panelList.setBackground(Color.ORANGE);\r\n panelList.setVisible(true);\r\n }", "@Test\n public void clickListTest() {\n\n onView(withId(R.id.rv_list)).perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n }", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "public void showTaskDetail(ProntoTask prontoTask) {\n try {\n taskNameEditText.setText(prontoTask.getTitle());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n taskDescriptionEditText.setText(prontoTask.getDescription());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n int priority = prontoTask.getPriority();\n if (priority > 0){\n switch (priority){\n case Constants.PRIORITY_LOW:\n lowPriorityButton.setChecked(true);\n break;\n case Constants.PRIORITY_MEDIUM:\n mediumPriorityButton.setChecked(true);\n break;\n case Constants.PRIORITY_HIGH:\n highPriorityButton.setChecked(true);\n break;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n String formattedDueDate = TimeUtils.getReadableDateWithoutTime(prontoTask.getReminder().getDateAndTime());\n dateTextView.setText(formattedDueDate);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try {\n String formattedDueTime = DateHelper.getTimeShort(activity, prontoTask.getReminder().getDateAndTime());\n timeTextView.setText(formattedDueTime);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n try {\n onFolderSelected(currentTask.getFolder());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //Show Tags assigned to this prontoTask\n if (currentTask.getTags() != null && currentTask.getTags().size() > 0){\n String tagText = \"\";\n for (ProntoTag prontoTag : currentTask.getTags()){\n tagText = tagText + \"#\" + prontoTag.getTagName() + \", \";\n }\n tagsTextView.setText(tagText);\n tagsTextView.setTextColor(ContextCompat.getColor(activity, R.color.primary_dark));\n tagsTextView.setTypeface(tagsTextView.getTypeface(), Typeface.BOLD);\n }\n }", "@Test\n public void todoItemsOrderByDeadlineTest() throws InterruptedException {\n onView(withId(R.id.fabList)).perform(click());\n onView(withId(R.id.editTextName)).perform(click(), replaceText(\"To-Do List 1\"), closeSoftKeyboard());\n onView(withId(R.id.btnCreateList)).perform(click());\n onView(withId(R.id.recyclerView)).perform(RecyclerViewActions.actionOnItemAtPosition(TestUtils.getCountFromRecyclerView(R.id.recyclerView) - 1, new ClickOnRelativeList()));\n\n List<String> deadlineList = TestUtils.getDateList();\n for (int i = 0; i < deadlineList.size(); i++) {\n onView(withId(R.id.fabInner)).perform(click());\n onView(withId(R.id.editTextName)).perform(replaceText(i + \"_Name\"));\n onView(withId(R.id.editTextDescription)).perform(replaceText(i + \"_Description\"));\n onView(withId(R.id.editTextDeadline)).perform(replaceText(deadlineList.get(i)));\n onView(withId(R.id.btnCreateItem)).perform(click());\n }\n // Click deadline item from menu on Toolbar\n onView(withId(R.id.menu_order_by)).perform(click());\n onView(withText(R.string.deadline)).perform(click());\n // Make thread sleep for 2 seconds so we could check whether it's true or not\n Thread.sleep(2000);\n\n // Go back to FragmentTodoList\n Espresso.pressBack();\n\n // Delete To-Do list\n onView(withId(R.id.recyclerView)).perform(RecyclerViewActions.actionOnItemAtPosition(TestUtils.getCountFromRecyclerView(R.id.recyclerView) - 1, new ClickOnImageDeleteList()));\n onView(withId(R.id.btnYes)).perform(click());\n\n Thread.sleep(2000);\n\n }", "private void getFoodProcessingInpectionList() {\n ListView list = (ListView) getView().findViewById(R.id.foodprocessinglist);\n foodProcessingInpectionArrayList.clear();\n foodProcessingInpectionArrayList.removeAll(foodProcessingInpectionArrayList);\n List<FoodProcessingInpection> foodProcessingInpectionlist = db.getFoodProcessingInpectionList();\n\n List<CBPartner> cbPartnerList = db.getAllCPartners();\n String cbPartner = \"\";\n\n int listSize = foodProcessingInpectionlist.size();\n System.out.println(listSize + \"===============foodProcessingInpectionlist==========\");\n\n for (int i = 0; i < foodProcessingInpectionlist.size(); i++) {\n System.out.println(\"Document Number=== \" + foodProcessingInpectionlist.get(i).getDocumentNumber());\n\n String retreivedDocumentDate = foodProcessingInpectionlist.get(i).getDocumentDate();\n\n cbPartnerID = foodProcessingInpectionlist.get(i).getNameOfApplicant();\n\n for(CBPartner partner : cbPartnerList){\n if(null != cbPartnerID && cbPartnerID.equals(partner.getC_bpartner_id())){\n cbPartner = partner.getName();\n System.out.println(app + \" cbPartner : \" + cbPartner);\n } else{\n //System.out.println(app + \" cbPartner not found\");\n }\n }\n\n\n if (retreivedDocumentDate != null) {\n foodProcessingInpectionArrayList.add(new FoodProcessingInpection(\n foodProcessingInpectionlist.get(i).getDocumentNumber(),\n retreivedDocumentDate,\n cbPartner,\n foodProcessingInpectionlist.get(i).getFoodCropManufacturingPlanApproval()));\n }\n\n\n localhash.put(i, foodProcessingInpectionlist.get(i).getLocalID());\n adapter = new FoodProcessingListAdapter(getActivity(), foodProcessingInpectionArrayList);\n list.setAdapter(adapter);\n }\n\n\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n TextView textviewDocumentNumber = viewClicked.findViewById(R.id.textviewdocument_no_no);\n TextView textviewDocumentDate = viewClicked.findViewById(R.id.textviewdocument_date_date);\n TextView textviewsisalSpinningExportNumber = viewClicked.findViewById(R.id.textviewlicence_number);\n TextView textviewApplicantName = viewClicked.findViewById(R.id.textviewname_of_applicant);\n\n documentNumber = foodProcessingInpectionArrayList.get(position).getDocumentNumber();\n documentDate = foodProcessingInpectionArrayList.get(position).getDocumentDate();\n Licenceno = foodProcessingInpectionArrayList.get(position).getFoodCropManufacturingPlanApproval();\n nameOfApplicant = foodProcessingInpectionArrayList.get(position).getNameOfApplicant();\n\n localID = localhash.get(position);\n\n }\n });\n }", "@Override\n\tpublic boolean showInList()\n\t{\n\t\treturn true;\n\t}", "public void listAllTasks() {\n System.out.println(LINEBAR);\n if (tasks.taskIndex == 0) {\n ui.printNoItemInList();\n System.out.println(LINEBAR);\n return;\n }\n\n int taskNumber = 1;\n for (Task t : tasks.TaskList) {\n System.out.println(taskNumber + \". \" + t);\n taskNumber++;\n }\n System.out.println(LINEBAR);\n }", "public void filterByFoDisplayAll(){\n // add them into the new list\n for (int i = 0; i < moodListBeforeFilterFo.getCount(); i++ ){\n moodListAfterFilter.add(moodListBeforeFilterFo.getMoodEvent(i));\n }\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int nItem,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tPullDownListInfo pli = m_PDLI.get(nItem);\r\n\t\t\t\tif (!pli.getIsChoose()) {\r\n\t\t\t\t\tm_tvSortName.setText(pli.getText());\r\n\t\t\t\t\t//\r\n\t\t\t\t\tresetPullDownListView();\r\n\t\t\t\t\tpli.setIsChoose(true);\r\n\t\t\t\t\tm_PullDownLA.notifyDataSetChanged();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm_tvSortName\r\n\t\t\t\t\t\t.setBackgroundResource(R.drawable.common_tv_bg_pulldown_normal);\r\n\t\t\t\tm_PDLV.setVisibility(View.GONE);\r\n\r\n\t\t\t\tint nRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_NEW;\r\n\t\t\t\tswitch (nItem) {\r\n\t\t\t\tcase 1: {\r\n//\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_LIKE;\r\n//\t\t\t\t\tm_filters = getSearchHistory();\r\n\t//\r\n//\t\t\t\t\t// 友盟统计--任务--排序--猜你喜欢\r\n//\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Like\");\r\n//\t\t\t\t}\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\tcase 2: {\r\n//\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_PERIPHERY;\r\n//\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n//\t\t\t\t\tm_bIsSearch = false;\r\n\t//\r\n//\t\t\t\t\t// 友盟统计--任务--排序--周边职位\r\n//\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Reriphery\");\r\n//\t\t\t\t}\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\tcase 3: {\r\n\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_SORT;\r\n\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n\t\t\t\t\tm_bIsSearch = false;\r\n\r\n\t\t\t\t\t// 友盟统计--任务--排序--悬赏排名\r\n\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Sort\");\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 0:\r\n\t\t\t\tdefault: {\r\n\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_NEW;\r\n\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n\t\t\t\t\tm_bIsSearch = false;\r\n\r\n\t\t\t\t\t// 友盟统计--任务--排序--最新发布\r\n\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_New\");\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm_nListStatus = LISTVIEW_STATUS_ONREFRESH;\r\n\t\t\t\tm_lvReward.setLoading();\r\n\t\t\t\t// 获取悬赏任务列表\r\n\t\t\t\tstartGetData(HeadhunterPublic.REWARD_DIRECTIONTYPE_NEW, \"\",\r\n\t\t\t\t\t\tnRequestType);\r\n\t\t\t}", "private void updateUI() {\n /* Making an array of strings to store tasks entered by the user. */\n ArrayList<String> taskList = new ArrayList<>();\n SQLiteDatabase db = OpenDB.getReadableDatabase();\n Cursor cursor = db.query(AccessData.ToDoEntry.table,\n new String[]{AccessData.ToDoEntry._ID, AccessData.ToDoEntry.todo_title},\n null, null, null, null, null);\n while (cursor.moveToNext()) {\n int idx = cursor.getColumnIndex(AccessData.ToDoEntry.todo_title);\n taskList.add(cursor.getString(idx));\n }\n\n /* Check if array adapter is created. */\n if (listAdapter == null) {\n /* If adapter is not created i.e. NULL, create a new adapter */\n listAdapter = new ArrayAdapter<>(this,\n R.layout.todo_item,\n R.id.task_title,\n taskList);\n /* Set the above created adapter as the todoListView adapter */\n todoListView.setAdapter(listAdapter);\n } else {\n /* If created: it is assigned to the todoListView */\n listAdapter.clear(); // clear it\n listAdapter.addAll(taskList); // re-populate it\n listAdapter.notifyDataSetChanged(); // notify view to refresh with new data values\n }\n\n cursor.close();\n db.close();\n }", "void updateFilteredListsToShowAll();", "public void populateListView(ArrayList<TodoData> todos) {\n ListView listView = findViewById(R.id.search_listview);\n TodoListAdapter adapter = new TodoListAdapter(this, todos);\n listView.setAdapter(adapter);\n }", "@Test\n public void todoItemsOrderByNameTest() throws InterruptedException {\n onView(withId(R.id.fabList)).perform(click());\n onView(withId(R.id.editTextName)).perform(click(), replaceText(\"To-Do List 1\"), closeSoftKeyboard());\n onView(withId(R.id.btnCreateList)).perform(click());\n onView(withId(R.id.recyclerView)).perform(RecyclerViewActions.actionOnItemAtPosition(TestUtils.getCountFromRecyclerView(R.id.recyclerView) - 1, new ClickOnRelativeList()));\n // Create 3 To-Do items with descending order\n List<Integer> nameList = TestUtils.getNameList();\n for (int i = 0; i < nameList.size(); i++) {\n onView(withId(R.id.fabInner)).perform(click());\n onView(withId(R.id.editTextName)).perform(replaceText(i + \"_Name\"));\n onView(withId(R.id.editTextDescription)).perform(replaceText(i + \"_Description\"));\n onView(withId(R.id.editTextDeadline)).perform(replaceText(Utils.getCurrentDate()));\n onView(withId(R.id.btnCreateItem)).perform(click());\n }\n // Click name item from menu on Toolbar\n onView(withId(R.id.menu_order_by)).perform(click());\n onView(withText(R.string.name)).perform(click());\n // Make thread sleep for 3 seconds so we could check whether it's true or not\n Thread.sleep(3000);\n // Go back to FragmentTodoList\n Espresso.pressBack();\n // Delete To-Do list\n onView(withId(R.id.recyclerView)).perform(RecyclerViewActions.actionOnItemAtPosition(TestUtils.getCountFromRecyclerView(R.id.recyclerView) - 1, new ClickOnImageDeleteList()));\n onView(withId(R.id.btnYes)).perform(click());\n\n Thread.sleep(2000);\n\n }", "void onListInteraction(int index, boolean isLongClicked);", "void contentList_mouseClicked(MouseEvent e) {\n if (e.getClickCount() > 1) {\n doView();\n }\n\n }", "@Test\n public void testDAM30503001() {\n\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30503001Click();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n\n assertThat(isTodoPresent, is(true));\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.searchByCriteriaBean();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tpulllist();\n\t\t\t}", "void onListClick();", "@Test\n void testGetOpenToDos() {\n ToDoList todoList = new ToDoList();\n ToDo todo1 = new ToDo(\"Todo1\");\n todoList.add(todo1);\n todoList.add(new ToDo((\"Todo2\")));\n assertEquals(2, todoList.getOpenEntries());\n\n ToDo todo3 = new ToDo(\"ToDo3\");\n todoList.add(todo3);\n assertEquals(3, todoList.getOpenEntries());\n todo3.setStatus(Status.IN_ARBEIT);\n todo3.setStatus(Status.BEENDET);\n assertEquals(2, todoList.getOpenEntries());\n todoList.remove(todo3);\n assertEquals(2, todoList.getOpenEntries());\n todoList.remove(todo1);\n assertEquals(1, todoList.getOpenEntries());\n }", "@Override\n public void com_android_internal_widget_FloatingToolbar__getVisibleAndEnabledMenuItems__Menu(ILTweaks.MethodParam param) {\n param.before(() -> {\n Menu menu = (Menu) param.args[0];\n for (int i = 0; i < menu.size(); ++i) {\n MenuItem item = menu.getItem(i);\n Intent intent = item.getIntent();\n if (intent != null && intent.getComponent() != null\n && PackageNames.L_TWEAKS.equals(intent.getComponent().getPackageName())) {\n item.setVisible(true);\n }\n }\n });\n }", "@Test\n public void testDAM30901001() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n TodoListPage todoListPage = dam3IndexPage.dam30901001Click();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n todoListPage.selectCompleteStatRadio();\n\n todoListPage = todoListPage.ifElementUsageSearch();\n\n // Confirmation of database state before batch update\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n\n // 1 and 3 todos are incomplete. hence not displayed\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000003\");\n assertThat(isTodoPresent, is(false));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(false));\n // 10 todo is complete. hence displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // default value of finished is now false.hence todos like 1,3 will be displayed\n // where as todo like 10 will not be displayed.\n todoListPage.selectInCompleteStatRadio();\n todoListPage = todoListPage.ifElementUsageSearch();\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000003\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n // 10 todo is complete. hence displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(false));\n\n // scenario when finished property of criteria is null.\n\n }", "private void openToDoList(Object categoryDAO, Object toDoDAO) {\r\n System.out.println();\r\n GuiToDoEditCategoriesImpl.getInstance().getCategoryController().getCategory()\r\n .setCategoriyDAO((CategoryDAO) categoryDAO);\r\n gtm.updateToDosAndCategories();\r\n GuiToDoEditCategoriesImpl.getInstance().updateList();\r\n gtm = new GuiToDoMainImpl((ToDoDAO) toDoDAO);\r\n gtm.updateToDosAndCategories();\r\n gtm.updateList();\r\n newFile = false;\r\n }", "public void setToDoListTitles() {\n\n ArrayList<String> toDoListTitlesSetter = new ArrayList<String>();\n for (int i = 0; i < myList.size(); i++) {\n toDoListTitlesSetter.add(myList.get(i).get(0));\n }\n toDoListTitlesTemp.clear();\n for(int i = 0; i < toDoListTitlesSetter.size(); i++){\n toDoListTitlesTemp.add(toDoListTitlesSetter.get(i));\n }\n\n Log.i(TAG, \"we have set the list titles\");\n }", "private void setToDoLists(){\n\n ArrayList<String> groceries = new ArrayList<String>();\n groceries.add(\"groceries\");\n groceries.add(\"apples\");\n groceries.add(\"gogurts\");\n groceries.add(\"cereal\");\n groceries.add(\"fruit roll ups\");\n groceries.add(\"lunch meat\");\n groceries.add(\"milk\");\n groceries.add(\"something for dessert\");\n groceries.add(\"steak\");\n groceries.add(\"milksteak\");\n groceries.add(\"cookies\");\n groceries.add(\"brewzongs\");\n\n ArrayList<String> bills = new ArrayList<String>();\n bills.add(\"bills\");\n bills.add(\"car loan\");\n bills.add(\"cable\");\n bills.add(\"rent\");\n\n ArrayList<String> emails = new ArrayList<String>();\n emails.add(\"emails\");\n\n ArrayList<ArrayList<String>> tmpMyList;\n tmpMyList = new ArrayList<ArrayList<String>>();\n\n tmpMyList.add(groceries);\n tmpMyList.add(bills);\n tmpMyList.add(emails);\n\n myList = tmpMyList;\n\n }", "public void browseImportantItem(){\n for(Item item : importantItemList){\n if(item.getImportance().equals(\"yes\")){\n printOut(item);\n }\n }\n }", "@Test\n public void testDAM30503002() {\n // Data preparation\n {\n clearAndCreateTestDataForBook();\n }\n\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n TodoListPage todoListPage = dam3IndexPage.dam30503002Click();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"3\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"7\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"10\"));\n\n boolean isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n\n assertThat(isTodoPresent, is(true));\n\n todoListPage.setTodoTitleContent(\"Todo 1\");\n todoListPage.setTodoCreationDate(\"2016-12-30\");\n\n todoListPage = todoListPage.searchByCriteriaBeanRetMap();\n\n // Assert the todo record count from DB table\n assertThat(todoListPage.getCompletedTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getIncompletTodoCount(), equalTo(\"1\"));\n assertThat(todoListPage.getTotalTodoCount(), equalTo(\"2\"));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000001\");\n assertThat(isTodoPresent, is(true));\n\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000010\");\n assertThat(isTodoPresent, is(true));\n\n // this todo does not meets the criteria.Hence not displayed.\n isTodoPresent = todoListPage.isTodoDisplayed(\"0000000002\");\n assertThat(isTodoPresent, is(false));\n }", "private void initializeList() {\n findViewById(R.id.label_operation_in_progress).setVisibility(View.GONE);\n adapter = new MapPackageListAdapter();\n listView.setAdapter(adapter);\n listView.setVisibility(View.VISIBLE);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n \n @Override\n public void onItemClick(AdapterView<?> parent, final View view, final int position, long id) {\n List<DownloadPackage> childPackages = searchByParentCode(currentPackages.get(position).getCode());\n if (childPackages.size() > 0) {\n currentPackages = searchByParentCode(currentPackages.get(position).getCode());\n adapter.notifyDataSetChanged();\n }\n }\n });\n }", "public boolean getShowInTaskList(){\n Boolean show = getGeneralProperties().getBooleanAsObj(PROP_GET_SHOW_IN_TASK_LIST);\n if (show==null){\n return true;\n } else {\n return show.booleanValue();\n }\n }", "public void print() {\n for (Entry entry : listentries) {\n System.out.println(\"These are the tasks currently on your lists:\");\n System.out.println(\"Name of Task:\" + entry.getName());\n System.out.println(\"Status:\" + entry.getStatus());\n System.out.println(\"Due Date:\" + entry.getDueDate());\n System.out.println(\"Days Left To do Tasks:\" + entry.getDaysLeft());\n }\n }", "public void testGetAllToDoItemsEmailContentWithSelectedItems_activityIdSet_NothingPrinted()\n\t{\n\t\t// arrange\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\thelper.insertNewItem(categoryId, \"item1\", false, 1);\n\t\thelper.insertNewItem(categoryId, \"item2\", false, 2);\n\t\thelper.insertNewItem(categoryId, \"item3\", false, 3);\n\n\t\t// Act & Assert\n\t\tSpanned reportText = service.getAllToDoItemsEmailContent(new Long(listId));\n\n\t\tassertEquals(0, reportText.length());\n\t}", "public void displaySelections() {\n List<VendingItem> listOfItems = service.getAllItemsNonZero(); //<-- uses lambda\n view.displaySelections(listOfItems);\n }", "public void startToDoList(View view) {\n\n startActivity(new Intent(this, toDoNewList.class));\n }", "private void displayUrgent(ToDoList toDoList) {\n int i = 1;\n\n System.out.println(\"Urgent Items:\");\n\n for (Item item : toDoList.getItems()) {\n if (Integer.parseInt(item.getDaysBeforeDue()) <= 1) {\n Categories c = item.getCategory();\n System.out.println(i + \". \" + item.getTitle() + \" due in \" + item.getDaysBeforeDue() + \" days, \" + c);\n i++;\n }\n }\n }", "public void onClick(View v) {\n\t\t\t\t\n\t\t\t\tlistview_search_list.setVisibility(View.VISIBLE);\n\t\t\t\tsearched_list.clear();\n\t\t\t\tsearch = search_datasource.getAllSearch(edit_search_text.getText().toString());\n\t\t\t\tBoolean bool = search.getSearch_subject_list().size()>0 || \n\t\t\t\t\t\tsearch.getSearch_chapter_list().size()>0 ||\n\t\t\t\t\t\tsearch.getSearch_topic_list().size()>0;\n\t\t\t\tif(bool)\n\t\t\t\t{\n\t\t\t\t\tif(search.getSearch_subject_list().size()>0)\n\t\t\t\t\t{\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int i=0;i<search.getSearch_subject_list().size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\t\t\tadapter_temp.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(search.getSearch_chapter_list().size()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int i=0;i<search.getSearch_chapter_list().size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\t\t\tadapter_temp.add(search.getSearch_chapter_list().get(i).getChapter_name());\n\t\t\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(search.getSearch_topic_list().size()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int i=0;i<search.getSearch_topic_list().size();i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//searched_list.add(search.getSearch_subject_list().get(i).getSubject_name());\n\t\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\t\t\tadapter_temp.add(search.getSearch_topic_list().get(i).getTopic_name());\n\t\t\t\t\t\t\tadapter_temp.notifyDataSetChanged();\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\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tArrayAdapter<String> adapter_temp = (ArrayAdapter<String>) listview_search_list.getAdapter();\n\t\t\t\t\tadapter_temp.add(\"Search Not Found!! Search is Case Sensitive\");\n\t\t\t\t\tadapter_temp.notifyDataSetChanged();\n\t\t\t\t}\t\t\t\t\n\t\t\t}", "@OnAlias(value = \"get_todo_list3\")\n\tpublic void getTodoList3(TeamchatAPI api) throws Exception {\n\t\t// using helper class\n\t\tBool_converter boolc = new Bool_converter();\n\t\t// populating with todos name list\n\t\t// get option name\n\t\tString[] todolist = api.context().currentReply().getField(\"todolist\")\n\t\t\t\t.split(\"\\\\|\");\n\t\t// get project id from option name\n\t\tString todolistId = todolist[(todolist.length - 1)].trim();\n\t\tTodo[] todos = bah.getActiveTodos(projectId, todolistId);\n\t\tString todolistName = todos[0].getTodolist().getName();\n\t\tString htmlResponse = \"<h4>\" + todolistName + \"</h4>\"\n\t\t\t\t+ \"<h5 style=\\\"color:#F00;\\\">You can't edit the values</h5>\";\n\t\tfor (Todo todo : todos) {\n\t\t\thtmlResponse += \"<label><input type=\\\"checkbox\\\" value=\\\"\"\n\t\t\t\t\t+ todo.getId() + \"\\\" \"\n\t\t\t\t\t+ boolc.toBoolHTML(todo.getCompleted()) + \">&nbsp;\"\n\t\t\t\t\t+ todo.getContent() + \"</label><br />\";\n\t\t}\n\t\t// show the user the current state\n\t\tapi.perform(api.context().currentRoom()\n\t\t\t\t.post(new PrimaryChatlet().setQuestionHtml(htmlResponse)));\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n int relpos = position - 1;\n Intent intent = new Intent();\n intent.setClass(InspectTaskList.this, InspectTaskDetail.class);\n // getEntity\n if (list != null && list.size() > relpos) {\n Task task = list.get(relpos);\n String json = new Gson().toJson(task);\n intent.putExtra(AeaConstants.EXTRA_TASK, json);\n startActivityForResult(intent, REQUEST_CODE_TASK_REPORT);\n }\n selectedId = relpos;\n }", "public void clickOnPAList() {\n\t\twait.waitForElementToBeClickable(element(\"link_paListing\"));\n\t\texecuteJavascript(\"document.getElementById('pa-list').click()\");\n\t\tlogMessage(\"User clicks on PA List on left navigation bar\");\n\t}", "@Test\n void testGetSortedList(){\n ToDoList todoList = new ToDoList();\n ToDo todo1 = new ToDo(\"Todo1\");\n todo1.setInhalt(\"Dies ist ein Test\");\n\n todoList.add(new ToDo((\"Todo2\")));\n ToDo todo3 = new ToDo(\"Todo3\");\n todo3.setInhalt(\"3+3=6\");\n todo3.setStatus(Status.IN_ARBEIT);\n todoList.add(new ToDo((\"Todo4\")));\n todoList.add(todo3);\n ToDo todo4 = new ToDo(\"Trala\");\n todo4.setStatus(Status.IN_ARBEIT);\n todo4.setStatus(Status.BEENDET);\n todo4.setInhalt(\"ab\");\n ToDo todo5 = new ToDo(\"Trala\");\n todo5.setInhalt(\"aa\");\n todo5.setStatus(Status.IN_ARBEIT);\n todo5.setStatus(Status.BEENDET);\n todoList.add(todo5);\n todoList.add(todo4);\n todoList.add(todo1);\n\n todoList = todoList.getSortedList();\n\n assertEquals(Status.OFFEN, todoList.get(0).getStatus());\n assertEquals(Status.OFFEN, todoList.get(1).getStatus());\n assertEquals(Status.OFFEN, todoList.get(2).getStatus());\n assertEquals(Status.IN_ARBEIT, todoList.get(3).getStatus());\n assertEquals(Status.BEENDET, todoList.get(4).getStatus());\n assertEquals(Status.BEENDET, todoList.get(5).getStatus());\n\n assertEquals(\"Trala\", todoList.get(5).getBez());\n assertEquals(\"Todo3\", todoList.get(3).getBez());\n\n assertEquals(\"aa\", todoList.get(4).getInhalt());\n assertEquals(\"ab\", todoList.get(5).getInhalt());\n }", "public void testCase04_EditFavoriteToFavorite() {\n boolean find = false;\n float frequency = 0;\n int stationInList = 0;\n String preFavoritaFreq = \"\";\n ListView listView = (ListView) mFMRadioFavorite.findViewById(R.id.station_list);\n FMRadioTestCaseUtil.sleep(SLEEP_TIME);\n assertTrue((listView != null) && (listView.getCount() > 0));\n ListAdapter listAdapter = listView.getAdapter();\n int count = listView.getCount();\n for (int i = 0; i < count; i++) {\n int favoriateCount = 0;\n View view = listAdapter.getView(i, null, listView);\n TextView textView = (TextView) view.findViewById(R.id.lv_station_freq);\n String frequencyStr = textView.getText().toString();\n try {\n frequency = Float.parseFloat(frequencyStr);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n stationInList = (int) (frequency * CONVERT_RATE);\n boolean canAddTo = FMRadioStation.getStationCount(mFMRadioFavorite, FMRadioStation.STATION_TYPE_FAVORITE) < FMRadioStation.MAX_FAVORITE_STATION_COUNT;\n if (FMRadioStation.isFavoriteStation(mFMRadioFavorite, stationInList)) {\n favoriateCount += 1;\n preFavoritaFreq = frequencyStr;\n }\n // add to favoriate\n if (!FMRadioStation.isFavoriteStation(mFMRadioFavorite, stationInList) && canAddTo) {\n mSolo.clickLongOnText(frequencyStr);\n mSolo.clickOnText(FMRadioTestCaseUtil.getProjectString(mContext, R.string.add_to_favorite1, R.string.add_to_favorite));\n mInstrumentation.waitForIdleSync();\n InputMethodManager inputMethodManager = (InputMethodManager)mSolo.getCurrentActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.toggleSoftInput(0, 0);\n mSolo.clickOnButton(mContext.getString(R.string.btn_ok));\n mInstrumentation.waitForIdleSync();\n sleep(SLEEP_TIME);\n assertTrue(FMRadioStation.isFavoriteStation(mFMRadioFavorite, stationInList));\n // edit favoriate to exist favorite\n if (favoriateCount > 0) {\n mSolo.clickLongOnText(frequencyStr);\n mSolo.clickOnText(mContext.getString(R.string.contmenu_item_edit));\n EditText editText = (EditText) mSolo.getView(R.id.dlg_edit_station_name_text);\n mSolo.clearEditText(editText);\n mSolo.enterText(editText, preFavoritaFreq);\n mInstrumentation.waitForIdleSync();\n InputMethodManager inputMethodManager2 = (InputMethodManager)mSolo.getCurrentActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager2.toggleSoftInput(0, 0);\n mSolo.clickOnButton(mContext.getString(R.string.btn_ok));\n mInstrumentation.waitForIdleSync();\n sleep(SLEEP_TIME);\n assertEquals(preFavoritaFreq, FMRadioStation.getStationName(mFMRadioFavorite, stationInList, FMRadioStation.STATION_TYPE_FAVORITE));\n break;\n }\n }\n }\n testCase03_DeleteFromFavorite();\n }", "public void testGetAllToDoItemsEmailContentWithSelectedItems()\n\t{\n\t\t// arrange\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\thelper.insertNewItem(categoryId, \"item1\", true, 0);\n\t\thelper.insertNewItem(categoryId, \"item2\", true, 1);\n\t\thelper.insertNewItem(categoryId, \"item3\", false, 2);\n\n\t\t// Act & Assert\n\t\tSpanned reportText = service.getAllToDoItemsEmailContent(null);\n\n\t\tassertEquals(33, reportText.length());\n\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tif (click_flag == false) {\n\t\t\t\t\t\t\t\tpos = position;\n\t\t\t\t\t\t\t\tif (position == pos) {\n\t\t\t\t\t\t\t\t\tlistItem.setBackgroundResource(R.drawable.listitemgreen);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistItem.setBackgroundResource(R.drawable.listitem_default);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println(\"pos is:\" + pos + \"_\"\n\t\t\t\t\t\t\t\t\t\t+ position);\n\t\t\t\t\t\t\t\tString recordId = list.get(position).requestId;\n\t\t\t\t\t\t\t\tString proj = list.get(position).projectId;\n\t\t\t\t\t\t\t\tString tabId = list.get(position).tableId;\n\t\t\t\t\t\t\t\tString app_title = list.get(position).title;\n\t\t\t\t\t\t\t\tlistItem.setBackgroundResource(R.drawable.listitemyellow);\n\t\t\t\t\t\t\t\tcallWebUrlApproval(recordId, tabId, proj,\n\t\t\t\t\t\t\t\t\t\tapp_title, position);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "@Override\n public void run() {\n thisListView.setAdapter(thisAdapter);\n\n\n thisListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Patient currentPatient = patientList.get(position);\n\n //Log.d(\"clicker: \", patientList.get(position).getCondition().toString());\n\n\n //thisIntent = new Intent(StaffActivity.this, SinglePatientView.class);\n //thisIntent.putExtra(\"patientName\", currentPatient.getpName());\n //thisIntent.putExtra(\"patientConditions\", currentPatient.getCondition().toString());\n //startActivity(thisIntent);\n\n }\n\n });\n\n }", "void printFilteredItems();", "@VTID(30)\n boolean getShowAllItems();", "private void filterHidden() {\n final List<TreeItem<File>> filterItems = new LinkedList<>();\n\n for (TreeItem<File> item : itemList) {\n if (isCancelled()) {\n return;\n }\n\n if (!shouldHideFile.test(item.getValue())) {\n filterItems.add(item);\n\n if (shouldSchedule(filterItems)) {\n scheduleJavaFx(filterItems);\n filterItems.clear();\n }\n }\n }\n\n scheduleJavaFx(filterItems);\n Platform.runLater(latch::countDown);\n }", "@Override\n\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> adapterView, View view, int pos, long id) {\n\t\t\t\t\t\t\t_selectedautocompletedto = (settingdto) adapterView.getItemAtPosition(pos);\n\t\t\t\t\t\t\trefreshlistfromdbonfilter(_selectedautocompletedto.getsetting_name());\n\t\t\t\t\t\t}", "abstract void listDisponibles_mouseClicked(MouseEvent e);", "private List<ToDoItem> refreshItemsFromMobileServiceTable() throws ExecutionException, InterruptedException {\n //List list = mToDoTable.where ( ).field (\"complete\").eq(val(false)).execute().get();\n return mToDoTable.where ().field (\"userId\").eq (val (userId)).and(mToDoTable.where ( ).field (\"complete\").eq(val(false))).execute().get();\n }", "public static void listTasks(ArrayList<Task> taskList) {\r\n StringBuilder sb = new StringBuilder();\r\n int i = 1;\r\n sb.append(\"Here are the tasks in your list:\\n\");\r\n for (Task task : taskList) {\r\n sb.append(i++ + \".\" + task.toString() + \"\\n\");\r\n }\r\n CmdUx.printHBars(sb.toString());\r\n }", "public void testMarkAllItemsSelected()\n\t{\n\t\t// Arrange\n\t\taddListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, true);\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertTrue(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item6\").getIsSelected());\t\t\n\t\t\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, false);\n\t\tallLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tnewList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tnewCategory1 = newList.getCategory(\"cat1\");\n\t\tnewCategory2 = newList.getCategory(\"cat2\");\n\t\tassertFalse(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\t\n\t}", "@Override\n public void onClick(View arg0) {\n\n\n listView.setAdapter(urgentTodosAdapter);\n urgentTodosAdapter.loadObjects();\n\n Toast.makeText(getApplication(), \"แสดงรายการ\"+dayofmonth,\n Toast.LENGTH_SHORT).show();\n\n\n }", "private void listCreator() {\n String[] title = getResources().getStringArray(R.array.Home);\n String[] description = getResources().getStringArray(R.array.Description);\n\n Adapter adapter = new Adapter(this, title, description);\n lists.setAdapter(adapter);\n\n lists.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //switch case implemented to know which item was clicked\n switch (position) {\n case 0: {//if first section is selected, open new activity -->WeeklyView\n Intent intent = new Intent(MainActivity.this, WeeklyView.class);\n startActivity(intent);\n break;\n }\n case 1: {//if second option is selected, open new activity displaying monthly calendar\n Intent intent = new Intent(MainActivity.this, MonthlyActivity.class);\n startActivity(intent);\n break;\n }\n case 2: {//if third option is selected, it will open to umkc bookstore in new browser\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.umkcbookstore.com/\"));\n startActivity(browserIntent);\n break;\n }\n case 3: {//if fourth option is selected it will open the outlook login in their browser\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://login.microsoftonline.com/\"));\n startActivity(browserIntent);\n break;\n }\n case 4: {//if fifth option is selected, open new activity showing educational resources\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://pitt.libguides.com/openeducation/biglist\"));\n startActivity(browserIntent);\n break;\n }\n case 5: {//if sixth option chosen, open new activity showing youtube playlist. youtube api used here\n Intent wellnessIntent = new Intent(MainActivity.this, YoutubeActivity.class);\n startActivity(wellnessIntent);\n break;\n }\n case 6: {//if seventh option is chosen, open new activity, grid view of options for 2 games, facebook, hulu, netflix, youtube.\n Intent entertainIntent = new Intent(MainActivity.this, EntertainActivity.class);\n startActivity(entertainIntent);\n break;\n }\n default:\n break;\n }\n }\n });\n }", "public List<Task> getToDoList()\r\n {\r\n return toDoList;\r\n }" ]
[ "0.7003566", "0.68688405", "0.67832905", "0.660376", "0.65739137", "0.6502332", "0.6500389", "0.6331896", "0.6326708", "0.62756115", "0.61506325", "0.60715914", "0.60136086", "0.60021555", "0.5937449", "0.5924085", "0.5923423", "0.5880505", "0.5879162", "0.5861957", "0.58549434", "0.58453536", "0.58299065", "0.5827613", "0.5826063", "0.58194953", "0.5811789", "0.5800539", "0.57884794", "0.5779106", "0.5773478", "0.5755084", "0.5753216", "0.5753216", "0.5738235", "0.5721644", "0.57192874", "0.5690867", "0.5670738", "0.56640613", "0.56385916", "0.56222993", "0.56171656", "0.56169516", "0.5610776", "0.56027055", "0.56000805", "0.5586682", "0.5585446", "0.5578528", "0.55738693", "0.5547339", "0.5524661", "0.5520151", "0.5515882", "0.5515253", "0.5514835", "0.55141103", "0.550994", "0.55063945", "0.5497598", "0.549142", "0.5489277", "0.5489273", "0.54744554", "0.5467562", "0.54610944", "0.54585034", "0.5453876", "0.5452855", "0.5439239", "0.5428813", "0.542448", "0.54242927", "0.54169875", "0.5412805", "0.53913486", "0.53870034", "0.53686047", "0.53656656", "0.53514624", "0.53363", "0.5325748", "0.53125924", "0.5309757", "0.53086954", "0.52996415", "0.529123", "0.5278991", "0.5275696", "0.527539", "0.52712435", "0.5270424", "0.52659386", "0.5264288", "0.52599263", "0.5255847", "0.52535033", "0.52512735", "0.5248655", "0.52472335" ]
0.0
-1
We have to call the Item class We are going to clear this variable
@FXML public void Delete_Item(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear(){\n this.items.clear();\n }", "public void clearItems(){\n items.clear();\n }", "public void clear() {\r\n\t\titems.clear();\r\n\t}", "void clear()\n\t{\n\t\tgetItems().clear();\n\t}", "public void clearItems() {\n grabbedItems.clear();\n }", "public void clear() {\n items.clear();\n update();\n }", "public void empty() {\n _items.clear();\n }", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "public void reset() {\n \titems.clear();\n \tsetProcessCount(0);\n }", "void onItemClear();", "void onItemClear();", "public void hapusItem(Item objItem) {\n arrItem.remove(objItem); //buang item\n }", "public void clear() {\r\n items.clear();\r\n keys.clear();\r\n }", "public void clear() {\r\n items = Arrays.copyOf(new int[items.length], items.length);\r\n NumItems = 0;\r\n }", "private void clearItemElementsForItem(Item item) {\n ItemElement selfElement = item.getSelfElement();\n item.getFullItemElementList().clear();\n item.getFullItemElementList().add(selfElement);\n //Make sure display list is updated to reflect changes. \n item.resetItemElementDisplayList();\n }", "public void clear() {\n size = 0;\n Arrays.fill(items, null);\n }", "public void clear() {\n\t\tthis.count = (emptyItem ? 1 : 0);\n\t\tpages.clear();\n\t}", "public void removeAllItem() {\n orderList.clear();\n }", "private void recreateModel() {\n items = null;\n didItCountAlready = false;\n }", "@Override\n\t\t\tpublic void clear() {\n\t\t\t\t\n\t\t\t}", "public void clearItems(){\n\t\tinnerItemShippingStatusList.clear();\n\t}", "@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}", "public synchronized void resetLineItems() {\n lineItems = null;\n }", "public void reset() {\n itemCount = 0;\n stock = new VendItem[maxItems];\n totalMoney = 0;\n userMoney = 0;\n vmStatus = null;\n }", "public Builder clearInventoryItemData() {\n if (inventoryItemDataBuilder_ == null) {\n if (inventoryItemCase_ == 3) {\n inventoryItemCase_ = 0;\n inventoryItem_ = null;\n onChanged();\n }\n } else {\n if (inventoryItemCase_ == 3) {\n inventoryItemCase_ = 0;\n inventoryItem_ = null;\n }\n inventoryItemDataBuilder_.clear();\n }\n return this;\n }", "@Override\n protected void clear() {\n\n }", "public Builder clearItem() {\n item_ = emptyIntList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }", "public void useItem() {\n\t\tif (!hasItem()) return;\n\t\titem.activate();\n\t\titem = null;\n\t}", "@Override\r\n\tpublic void clear() {\n\t\t\r\n\t}", "@Override\n public void clear() {\n \n }", "public void reset() {\n this.list.clear();\n }", "public void clear() {\n mItems.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n mItems.clear();\n notifyDataSetChanged();\n }", "public void clear() {\n\n mItems.clear();\n notifyDataSetChanged();\n\n }", "public void clear() {\n int count = mItems.size();\n mItems.clear();\n getFastAdapter().notifyAdapterItemRangeRemoved(getFastAdapter().getItemCount(getOrder()), count);\n }", "public Builder clearItemStorage() {\n bitField0_ = (bitField0_ & ~0x00000040);\n itemStorage_ = 0;\n onChanged();\n return this;\n }", "public void clear() {\n\t\tallItems.clear();\n\t\tminimums.clear();\n\t}", "@Override\n\tpublic void clear() {\n\n\t}", "public void clearAll()\r\n {\r\n if(measurementItems!=null) measurementItems.clear();\r\n itemsQuantity=(measurementItems!=null)?measurementItems.size():0;\r\n }", "void clear() {\n data = new Data(this);\n }", "public Builder clearItem() {\n if (itemBuilder_ == null) {\n item_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000080);\n onChanged();\n } else {\n itemBuilder_.clear();\n }\n return this;\n }", "public void removeAllItems()\r\n {\r\n head = tail = null;\r\n nItems = 0;\r\n }", "@Override\n public void clear()\n {\n\n }", "@Override public void clear() {\n }", "@Override\n\tvoid clear() {\n\n\t}", "@Override\r\n\t\tpublic Item getItem() {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\tpublic void clear() {\n\r\n\t}", "@Override\n public void clear()\n {\n }", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t\t\n\t}", "@Override\n\tpublic void clear() {\n\t}", "public void clear() {\r\n myShoppingCart = new HashMap<Item, BigDecimal>();\r\n }", "public void Case4(){\n System.out.println(\"Testing Case 4\");\n byItemCode();\n clear();\n System.out.println(\"Case 4 Done\");\n }", "protected /*override*/ void ClearItems()\r\n { \r\n CheckSealed();\r\n super.ClearItems(); \r\n }", "public void clear() {\n\t\t\r\n\t}", "private void clear() {\n }", "public void useKey() {\n Key key = this.getInventory().getFirstKey();\n if (key != null){\n this.getInventory().removeItems(key);\n }\n }", "public void clearCart() {\n this.items.clear();\n }", "@Override\n public synchronized void clear() {\n }", "public void Reset()\n {\n this.list1.clear();\n }", "public void clear()\n {\n }", "public void removeAllItems() {\n contents.clear();\n }", "@Override\n public void clearData() {\n }", "public void resetCounts() {\n // For each item in the RecyclerView\n for(int pos = 0; pos < numItems; pos++) {\n // Reset the count variable of the item\n DataStorage.listInUse.getList().get(pos).reset();\n notifyItemChanged(pos);\n }\n }", "public void clear() {\n this.data().clear();\n }", "public void clear() {\n listItems.clear();\n notifyDataSetChanged();\n }", "@Override\n public void clear() {\n super.clear();\n }", "public void clearRandomItems();", "public void makeEmpty(){\n front = null;\n numItems =0;\n }", "public void clearPurchaseList()\r\n\t{\r\n\t\tm_purechaseList.clear();\r\n\t}", "public void clear() {\r\n\t\tdata.clear();\r\n\r\n\t}", "@Override\n public void remove() {\n if (lastItem == null)\n throw new IllegalStateException();\n bag.remove(lastItem);\n lastItem = null;\n }", "public void clearData()\r\n {\r\n \r\n }", "protected void clear() {\n\n\t\tthis.myRRList.clear();\n\t}", "@RequestMapping(method=RequestMethod.DELETE, value = \"/item\", produces = \"application/json\")\n public void clearItems()\n {\n this.itemRepository.clearItems();\n }", "public void clear () {\n\t\treset();\n\t}", "public void clear(){\r\n BarsList.clear();\r\n }", "private void clearData() {}", "private void reset() {\n\t\tdata.clear();\n\t}", "void clear() {\n\t\t// Initialize new empty list, clearing out old data\n\t\tmNewsList = new ArrayList<>();\n\t}", "@Override\n\t\tprotected void resetAttribute(SVGItem item) {\n\t\t}", "public void reset() {\n price = 0;\n itemNumbers.clear();\n selectedOptions.clear();\n setupGUI();\n }", "public void removeAllItems ();", "public void clear() {\n\n\t}", "public void run() {\n AuctionItemCollection coll = AuctionItemCollection.getInstance();\n for (AuctionItem item : coll.getValues()) {\n if (!item.isOpen())\n coll.remove(item.getItemInfo().getId());\n }\n coll.rebuildCache();\n }", "public void clearContainer()\n\t{\n\t\tcargoList.clear();\n\t\tthis.currentVolume=0;\n\t\tthis.currentWeight=0;\n\t}", "public void reset()\n {\n setLastItem(NOTHING_HANDLED);\n for (int i = 0; i < counters.length; i++)\n {\n counters[i] = 0;\n }\n for (int j = 0; j < expected.length; j++)\n {\n expected[j] = ITEM_DONT_CARE;\n }\n }", "public void clear(){\r\n NotesList.clear();\r\n }", "private void reset(Holder oldHolder) {\r\n\t\tif(getHolder() != oldHolder)\r\n\t\t\tsetHolder(oldHolder);\r\n\t\tif(!oldHolder.holdsItem(this))\r\n\t\t\toldHolder.addItem(this);\r\n\t}", "public void clear() {\n final int itemCount = mItems.size();\n mItems.clear();\n mDatasourceObservable.notifyItemRangeRemoved(0, itemCount);\n }", "public Builder clearType() {\n bitField0_ = (bitField0_ & ~0x00000001);\n type_ = com.rpg.framework.database.Protocol.ItemType.ITEM_TYPE_USE;\n onChanged();\n return this;\n }", "@Override\n\t\t\tpublic void unloadViewData(DemoData item) {\n\t\t\t\t\n\t\t\t}", "public void clear()\r\n {\r\n super.clear();\r\n }", "@Override\n\tpublic void close() {\n\t\tsuper.close();\n\t\t\n\t\tbnetMap.clear();\n\t\titemIds.clear();\n\t}", "@Override\n public void clear() {\n checkNotDeleted();\n super.clear();\n }" ]
[ "0.8133293", "0.7872399", "0.78146356", "0.7719372", "0.7618403", "0.7617641", "0.7584467", "0.7562232", "0.7413475", "0.71762586", "0.71762586", "0.71537817", "0.7088861", "0.7027513", "0.7013709", "0.70094585", "0.69577795", "0.69182944", "0.6918165", "0.6910161", "0.6906291", "0.687606", "0.687606", "0.6856837", "0.68530816", "0.68382174", "0.6778368", "0.67780316", "0.6771636", "0.67636925", "0.6755341", "0.6747722", "0.67452943", "0.67452943", "0.6744317", "0.673549", "0.66787213", "0.6654569", "0.6652932", "0.6637202", "0.66232455", "0.661902", "0.66095096", "0.6607891", "0.66026884", "0.66017526", "0.65955526", "0.65848583", "0.6579341", "0.65712875", "0.65712875", "0.65712875", "0.65712875", "0.65712875", "0.65712875", "0.65712875", "0.65706563", "0.6567532", "0.6566395", "0.65646327", "0.65620416", "0.65599245", "0.6558617", "0.6553328", "0.6551685", "0.65512294", "0.65400964", "0.6531813", "0.6531656", "0.6516896", "0.64964277", "0.64947754", "0.6490979", "0.64907366", "0.64885676", "0.64740753", "0.6469292", "0.64678687", "0.64569825", "0.6450756", "0.644907", "0.6405404", "0.6403676", "0.6398619", "0.6398183", "0.63971764", "0.63934135", "0.6387191", "0.6384489", "0.6378115", "0.6363356", "0.6358318", "0.6357838", "0.6355575", "0.63495106", "0.63488704", "0.6346791", "0.63409543", "0.63405347", "0.6339513", "0.6333666" ]
0.0
-1
//We have to call the list class We are going to use the method declared on this list class to save the list
@FXML public void Save_List(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveList() throws Exception {\n JournalEntries.saveList(JournalList,ReconcileCur.ReconcileNum);\n }", "public void saveAll(List list);", "public void saveList(List<T> ListObject) throws DaoException;", "public void saveListToFile() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = null;\r\n\t\t\ttry {\r\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(FTP_LIST_FILE));\r\n\t\t\t\toos.writeObject(FTPList.self);\r\n\t\t\t\toos.flush();\r\n\t\t\t} finally {\r\n\t\t\t\toos.close();\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void saveListe()\n\t{\n\t\tdevis=getDevisActuel();\n//\t\tClient client=clientListController.getClient();\n//\t\tdevis.setCclient(client.getCclient());\n//\t\tdevis.setDesAdresseClient(client.getDesAdresse());\n//\t\tdevis.setCodePostalClient(client.getCodePostal());\n\t\tgetClientOfDevis(clientListController.findClientById(devis.getCclient()));\n\t\t\n\t\tdevis.setMtTotalTtc(devis.getMtTotalTtc().setScale(3, BigDecimal.ROUND_UP));\n\t\tdevis.setMtTotalTva(devis.getMtTotalTva().setScale(3, BigDecimal.ROUND_UP));\n\t\tdevis.setNetApayer(devis.getNetApayer().setScale(3, BigDecimal.ROUND_UP));\n\t\t\n\t\tif(listedetailarticles!=null)\n\t\t\tlistedetaildevis=listedetailarticles;\n\t\tif(devisListeController.modif==true)\n\t\t{\n\t\t\tList<DetailDevisClient>list=findDetailOfDevis(devis.getCdevisClient());\n\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t{\n\t\t\t\tremove(list.get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\tdevisInit=devis;\n\t\tdevisListeController.save();\n\t\t\n\t\t/*if(listedetailarticles!=null)\n\t\t\tlistedetaildevis=listedetailarticles;\n\t\t\n\t\tif(devisListeController.modif==true)\n\t\t{\n\t\t\tList<DetailDevisClient>list=findDetailOfDevis(dc.getCdevisClient());\n\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t{\n\t\t\t\tremove(list.get(i));\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tdetailDevisClientService.saveList(listedetaildevis);\n\t\t\n\t\t\n\t\t/*listedetaildevisStatic.clear();\n\t\tfor(DetailDevisClient ddc :listedetaildevis)\n\t\t{\n\t\t\tlistedetaildevisStatic.add(ddc);\n\t\t}*/\n\t\tdetailDevis=new DetailDevisClient();\n\t\t\n\t\t\n\t\t//listedetailarticles.clear();\n\t\t/*listedetaildevis.clear();\n\t\tdevisListeController.setDevis(new DevisClient());\n\t\tRequestContext context = RequestContext.getCurrentInstance();\n\t\tcontext.update(\"formPrincipal\");\n\t\t*/\n\t\t\n\t\ttry {\n\t\t\tPDF();\n\t\t} catch (JRException 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\t\tfinally{\n\t\t\t//nouveauDevis();\n\t\t}\n\t\t\n\t\tFacesContext.getCurrentInstance().addMessage\n\t\t(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Detail Devis Enregistré!\", null));\n\t\t//nouveauDevis();\n\t}", "public void save(){\n\t\t\n\t\ttry {\n\t\t\t\t \n\t\t\t// Open Streams\n\t\t\tFileOutputStream outFile = new FileOutputStream(\"user.ser\");\n\t\t\tObjectOutputStream outObj = new ObjectOutputStream(outFile);\n\t\t\t\t \n\t\t\t// Serializing the head will save the whole list\n\t\t\toutObj.writeObject(this.head);\n\t\t\t\t \n\t\t\t// Close Streams \n\t\t\toutObj.close();\n\t\t\toutFile.close();\n\t\t}\n\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Error saving\");\n\t\t}\n\t\t\t\n\t}", "public ListeSave getListeSave() {\n\t\tif(listeSave==null){\n\t\t\tlisteSave = new ListeSave();\n\t\t}\n\t\treturn listeSave;\n\t}", "public void saveArticlesList();", "public void ouvrirListe(){\n\t\n}", "@Override\n\tpublic List<Baidu> savaList(List<Baidu> bl) {\n\t\tbaiduDao.save(bl);\n\t\treturn bl;\n\t}", "@Override\n\tpublic void save(List<Field> entity) {\n\t\t\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic void writeSerializedObject(List list) {\r\n\t\tFileOutputStream fos = null;\r\n\t\tObjectOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tfos = new FileOutputStream(System.getProperty(\"user.dir\") + \"\\\\Databases\\\\students.dat\");\r\n\t\t\tout = new ObjectOutputStream(fos);\r\n\t\t\tout.writeObject(list);\r\n\t\t\tout.close();\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public void save() {\n super.storageSave(listPedidosAssistencia.toArray());\n }", "@Override\n\tpublic void savePengdingWaybill(List<WaybillPendingEntity> pendingList) {\n\t\t\n\t}", "public void saveArrayList(ArrayList<String> list, String key) {\n SharedPreferences preferences = getSharedPreferences(\"itemlist\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(list);\n editor.putString(key, json);\n editor.apply();\n }", "private void openSaveList() {\n //Open the saveList Activity\n Intent saveListActivityIntent = new Intent(this, SaveList.class);\n startActivity(saveListActivityIntent);\n }", "public void getList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < slist.size(); i++) {\n\n\t\t\t\tfwriter.append(slist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\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}", "@Override\n public void save(ArrayList<League> leagues) {\n\n }", "@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }", "@Test\n public void shoppingListSavesLocally() throws Exception {\n }", "void addList(ShoppingList _ShoppingList);", "public static FeedBack persist(HttpServletRequest req, FormModel form, PrintWriter out, HttpSession session, Connection con)\r\n {\r\n\r\n int i = 0;\r\n int max_list_size = DistributionList.getMaxListSize(session);\r\n String table_name = DistributionList.getTableName(session);\r\n\r\n boolean isProshopUser = ProcessConstants.isProshopUser((String)session.getAttribute(\"user\"));\r\n\r\n //get the table from the form and add the name in the list\r\n RowModel row = form.getRow(DistributionList.LIST_OF_NAMES);\r\n TableModel names = (TableModel)(((Cell)row.get(0)).getContent());\r\n\r\n String[] all_names = new String[max_list_size];\r\n\r\n for (i=0; i<max_list_size; i++)\r\n {\r\n all_names[i] = \"\"; // init array\r\n }\r\n\r\n for (i=0; i<names.size(); i++)\r\n {\r\n all_names[i] = (names.getRow(i)).getId(); // put usernames in array\r\n }\r\n\r\n //get the name for the distribution list\r\n String list_name = req.getParameter(DistributionList.LIST_NAME);\r\n\r\n //\r\n // get this user's user id\r\n //\r\n String user = (String)session.getAttribute(\"user\"); // get username ('proshop' or member's username)\r\n\r\n // save the distribution list\r\n try {\r\n\r\n //build the correct statement using the appropriate database table based on the\r\n //type of the user\r\n String statement = \"INSERT INTO \" + table_name + \" (name, owner\";\r\n\r\n for (int j=1; j<=max_list_size; j++)\r\n {\r\n statement = statement + \", user\" + j;\r\n }\r\n\r\n statement = statement + \") VALUES (?,?,\";\r\n\r\n for (int k=0; k<max_list_size-1; k++)\r\n {\r\n statement = statement + \"?,\";\r\n }\r\n\r\n statement = statement + \"?)\";\r\n\r\n PreparedStatement pstmt = con.prepareStatement (statement);\r\n\r\n pstmt.clearParameters(); // clear the parms\r\n pstmt.setString(1, list_name); // put the parm in pstmt\r\n pstmt.setString(2, user);\r\n\r\n for (i=0; i<max_list_size; i++)\r\n {\r\n pstmt.setString(i+3, all_names[i]);\r\n }\r\n\r\n pstmt.executeUpdate(); // execute the prepared stmt\r\n\r\n pstmt.close(); // close the stmt\r\n\r\n }\r\n catch (Exception exc) {\r\n\r\n exc.printStackTrace();\r\n }\r\n\r\n return new FeedBack();\r\n }", "@Override\n\tpublic void saveActivityCommodity(List<ActivityCommodity> list) {\n\t\t\n\t}", "public void save()\n\t{\t\n\t\tfor (Preis p : items) {\n\t\t\titmDAO.create(p.getItem());\n\t\t\tprcDAO.create(p);\n\t\t}\n\t\tstrDAO.create(this);\n\t}", "public void saveBookListInfo(CheckOutForm myForm) {\n\t\tint id=myForm.getFrmViewDetailBook().getBookId();\r\n\t\tBookList myBookList=myBookListDao.getBookListById(id);\r\n\t\tint c=myForm.getFrmViewDetailBook().getNoofcopies();\r\n\t\tint copy=c+myForm.getNoOfcopies();\r\n\t\tmyForm.setNoOfcopies(copy);\r\n\t\tmyBookList.setNoOfCopy(copy);\r\n\t\tmyBookListDao.saveBookInfo(myBookList);\r\n\t\t\r\n\t}", "private void saveListToFile() {\n try {\n PrintStream out = new PrintStream(\n openFileOutput(LIST_FILENAME, MODE_PRIVATE)\n );\n\n for (int i = 0; i < listArr.size(); i++) {\n out.println(listArr.get(i));\n }\n\n out.close();\n\n } catch (IOException ioe) {\n Log.e(\"saveListToFile\", ioe.toString());\n }\n }", "public void doSave() throws Exception {\r\n\t\tif ((_listForm != null && _listForm.getDataStore() != _ds) || _mode == MODE_LIST_OFF_PAGE) {\r\n\t\t\tif (getPageDataStoresStatus() == DataStoreBuffer.STATUS_NEW) {\r\n\t\t\t\tdoCancel();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (getDataStore() != null) {\r\n\t\t\tDataStoreBuffer dsb = getDataStore();\r\n\t\t\ttry {\r\n\t\t\t\tdoDataStoreUpdate();\r\n\t\t\t} catch (DirtyDataException ex) {\r\n\t\t\t\tif (_validator != null)\r\n\t\t\t\t\t_validator.addErrorMessage(_dirtyDataError);\r\n\t\t\t} catch (DataStoreException ex) {\r\n\t\t\t\tif (_validator != null)\r\n\t\t\t\t\t_validator.addErrorMessage(ex.getMessage(), ((JspController) getPage()).getBoundComponent(_ds, ex.getColumn()), ex.getRow());\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tif (_validator != null)\r\n\t\t\t\t\t_validator.addErrorMessage(ex.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_mode == MODE_LIST_ON_PAGE) {\r\n\t\t\tif (_reloadRowAfterSave) {\r\n\t\t\t\tif (_ds instanceof DataStore)\r\n\t\t\t\t\t((DataStore)_ds).reloadRow(_ds.getRow());\r\n\t\t\t}\r\n\r\n\t\t\tif (_listForm != null && _listForm.getDataStore() != _ds) {\r\n\t\t\t\tDataStoreRow source = _ds.getDataStoreRow(_ds.getRow(), DataStoreBuffer.BUFFER_STANDARD);\r\n\t\t\t\tif (_listSelectedRow != null)\r\n\t\t\t\t\tsource.copyTo(_listSelectedRow);\r\n\t\t\t\telse {\r\n\t\t\t\t\t_listSelectedRow = _listForm.getDataStore().getDataStoreRow(_listForm.getDataStore().insertRow(), DataStoreBuffer.BUFFER_STANDARD);\r\n\t\t\t\t\tsource.copyTo(_listSelectedRow);\r\n\t\t\t\t}\r\n\t\t\t\tDataStoreBuffer dsb = _listForm.getDataStore();\r\n\t\t\t\tif (dsb != null && dsb instanceof DataStore) {\r\n\t\t\t\t\tif (_reloadRowAfterSave ) {\r\n\t\t\t\t\t\tdsb.setRowStatus(DataStoreBuffer.STATUS_NOT_MODIFIED);\r\n\t\t\t\t\t\t((DataStore)dsb).reloadRow();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tsyncListFormPage();\r\n\t\t} else\r\n\t\t\treturnToListPage(true);\r\n\t}", "void saveLineItemList(List<LineItem> lineItemList);", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}", "private void saveIds(ArrayList<String> idList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(idList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "abstract void makeList();", "public void setCurrentListToBeDoneList();", "void updateList(ShoppingList _ShoppingList);", "public void saveBid(BidListModel bidList) {\n bidListRep.save(bidList);\n }", "public void AddReliquias(){\n DLList reliquias = new DLList();\n reliquias.insertarInicio(NombreReliquia); \n }", "@Override\n\tpublic void save(List<User> entity) {\n\t\t\n\t}", "public DaftarMhs_list(ArrayList<NamaMhs_Obj> list_data) {\n\n this.list_data = list_data;\n\n\n }", "public void saveToDoList() {\n try {\n jsonWriter.open();\n jsonWriter.write(toDoList);\n jsonWriter.close();\n\n System.out.println(\"Saved \" + toDoList.getName() + \" to \" + JSON_STORE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to write to file: \" + JSON_STORE);\n }\n }", "public void setList_Base (String List_Base);", "public static void addList() {\n\t}", "public Boolean saveAll(List<ControlAcceso> list) {\n\t\treturn null;\n\t}", "public void exportAllLists(){\n }", "public void saveToReadID(ArrayList<String> idList) {\n\n\t\tSAVE_FILE = TO_READ_FILE;\n\t\tsaveIds(idList);\n\t}", "void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}", "private String refresh(List lstDataToSave, List list, Timestamp timestamp) {\r\n StringBuffer message = new StringBuffer();\r\n BudgetSubAwardBean budgetSubAwardBean;\r\n \r\n String str = null, fileName;\r\n for(int index = 0; index < lstDataToSave.size(); index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)lstDataToSave.get(index);\r\n \r\n //No need to update/refresh Deleted beans\r\n if((budgetSubAwardBean.getAcType() != null && budgetSubAwardBean.getAcType().equals(TypeConstants.DELETE_RECORD))\r\n || (budgetSubAwardBean.getAcType() != null && !budgetSubAwardBean.getAcType().equals(TypeConstants.INSERT_RECORD) && budgetSubAwardBean.getPdfAcType() == null && budgetSubAwardBean.getXmlAcType() == null)){\r\n continue;\r\n }\r\n \r\n if(list != null && list.size() > 0) {\r\n str = list.get(index).toString();\r\n budgetSubAwardBean.setTranslationComments(str);\r\n }\r\n \r\n //If Beans are Inserted. update AwSubAwardNumber and timestamp.\r\n if(budgetSubAwardBean.getAcType() != null && budgetSubAwardBean.getAcType().equals(TypeConstants.INSERT_RECORD)) {\r\n budgetSubAwardBean.setAwSubAwardNumber(budgetSubAwardBean.getSubAwardNumber());\r\n budgetSubAwardBean.setUpdateTimestamp(timestamp);\r\n }\r\n \r\n if(str != null && str.equals(BudgetSubAwardConstants.XML_GENERATED_SUCCESSFULLY)){\r\n if(timestamp != null) {\r\n if(budgetSubAwardBean.getAcType() != null) {\r\n budgetSubAwardBean.setUpdateUser(mdiForm.getUserId());\r\n budgetSubAwardBean.setUpdateTimestamp(timestamp);\r\n }\r\n if(budgetSubAwardBean.getPdfAcType() != null) {\r\n budgetSubAwardBean.setPdfUpdateUser(mdiForm.getUserId());\r\n budgetSubAwardBean.setPdfUpdateTimestamp(timestamp);\r\n budgetSubAwardBean.setXmlUpdateUser(mdiForm.getUserId());\r\n budgetSubAwardBean.setXmlUpdateTimestamp(timestamp);\r\n }\r\n }\r\n budgetSubAwardBean.setAcType(null);\r\n budgetSubAwardBean.setPdfAcType(null);\r\n budgetSubAwardBean.setXmlAcType(null);\r\n }else {\r\n if(message.length() != 0) {\r\n message.append(\"\\n\\n\"); //Append Next Line and an Empty Line\r\n }\r\n message.append(\"Sub Award Num:\"+budgetSubAwardBean.getSubAwardNumber());\r\n message.append(\", File Name:\");\r\n if(budgetSubAwardBean.getPdfAcType() != null) {\r\n fileName = lstFileNames.get(0).toString();\r\n lstFileNames.remove(0); //So that 0th element would be next element\r\n if(timestamp != null) {\r\n budgetSubAwardBean.setPdfUpdateUser(mdiForm.getUserId());\r\n budgetSubAwardBean.setPdfUpdateTimestamp(timestamp);\r\n }\r\n }else {\r\n fileName = budgetSubAwardBean.getPdfFileName();\r\n }\r\n message.append(fileName);\r\n message.append(\"\\n\"+str);\r\n \r\n //budgetSubAwardBean.setAcType(null);\r\n //budgetSubAwardBean.setPdfAcType(TypeConstants.UPDATE_RECORD);\r\n budgetSubAwardBean.setPdfFileName(fileName);\r\n }\r\n }//End For\r\n \r\n //refresh view of selected Sub Award\r\n displayDetails();\r\n \r\n return message.toString();\r\n }", "public void saveAllLists() {\n // else: create \"ToDoList\" folder\n // Get all lists and their corresponding items via a while loop that loops\n // through the ComboBox's values and creates .txt files for each list\n // Create a new .txt of name list\n // This will need some sort of nested loop, the outer looping through the lists\n // and the inner looping through the items of that list\n // Store inside of the current .txt\n // Close the .txt\n }", "@Override\n public void Save() {\n\t \n }", "public void saveMealPlanner(){\n Data.<Days>saveList(ObservableWeekList, mealPlannerFile);\n }", "public void EditandSavelist(String Editlistname){\r\n\t\tString editlist = getValue(Editlistname);\r\n\r\n\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:- Link should be edited and saved\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"lnkeditlist\"));\r\n\t\t\tclick(locator_split(\"lnkeditlist\")); \r\n\r\n\t\t\tsleep(1000);\r\n\t\t\twaitForElement(locator_split(\"txtlistname\"));\r\n\t\t\tsendKeys(locator_split(\"txtlistname\"), editlist);\r\n\r\n\r\n\t\t\twaitForElement(locator_split(\"clksavelist\"));\r\n\t\t\tclick(locator_split(\"clksavelist\")); \r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Link is edited and saved\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Favorities is not clicked \"+elementProperties.getProperty(\"lnkFavorities\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkFavorities\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\t\r\n\r\n\r\n\t}", "private void saveClubList() {\n SharedPreferences sharedPreferences = getSharedPreferences(\"Shared Preferences\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(clubList);\n editor.putString(\"Club List\", json);\n editor.apply();\n }", "@Override\n public int bathSave(List<T> entitys) throws Exception {\n return mapper.insertList(entitys);\n }", "@Override\n public void save()\n {\n \n }", "public void save(Context context){\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = context.openFileOutput(\"state.bin\", Context.MODE_PRIVATE);\n\t\t\tObjectOutputStream os = new ObjectOutputStream(fos);\n\t\t\tos.writeObject(this.list);\n\t\t\tos.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void guardarCambios(View v){\n\n ArrayList<ENListaCompra> miL = DespenBD.getListasVisibles();\n ENListaCompra lCompra = miL.get(miL.size()-posicion-1);\n\n System.out.println(\"Posician: \"+posicion);\n System.out.println(\"Nombre: \"+lCompra.getNombre());\n\n DespenBD.editarLista(lCompra.getNombre(),lCompra.getFecha(),etNombre.getText().toString(), etFecha.getText().toString());\n //lCompra.setNombre();\n\n /* for (ENListaCompra lc: miL) {\n //misListas.add(0, new MisListas(\"\"+lc.getNombre(),\"\"+lc.getFecha()));\n System.out.println(\"imprime: \" + lc.getNombre());\n }*/\n\n Intent i = new Intent(this, ListasCompra.class );\n //i.putExtra(\"nombre\", \"\" + etNombre.getText());\n //i.putExtra(\"accion\", \"editar\");\n startActivity(i);\n\n finish();\n\n }", "public List saveFN(List fileLst, RequestMeta requestMeta) {\n return assistFileService.saveFN(fileLst, requestMeta);\r\n }", "@Override\n public void save() {\n \n }", "public static void save()\n {\n try {\n \n \n PrintWriter fich = null;\n \n fich = new PrintWriter(new BufferedWriter(new FileWriter(\"bd.pl\", true)));\n\t\t\t//true c'est elle qui permet d'écrire à la suite des donnée enregistrer et non de les remplacé \n \n for(String auto : GestionController.listApp)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listDetFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listType)\n {\n \n fich.println(auto);\n }\n fich.println();\n fich.close();\n } catch (Exception e1) {\n printStrace(e1);\n\t\t}\n }", "private void saveMemberList () {\r\n\t\tStringBuffer\tmembers\t\t= new StringBuffer();\r\n\t\tboolean\t\t\taddSplit\t= false;\r\n\t\t\r\n\t\tfor (String member : this.members) {\r\n\t\t\tif (addSplit)\r\n\t\t\t\tmembers.append(splitMember);\r\n\t\t\tmembers.append(member);\r\n\t\t\taddSplit = true;\r\n\t\t}\r\n\t\t\r\n\t\tstorage.setString(namedStringMembers, members.toString());\r\n\t}", "private void setBooksInfo () {\n infoList = new ArrayList<> ();\n\n\n // item number 1\n\n Info info = new Info ();// this class will help us to save data easily !\n //set the title >> it can be Book name or Topic title ...\n info.setInfoTitle (\"ما هي اضطرابات طيف التوحد؟\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"سيساعدك هذا المستند على معرفة اضطراب طيف التوحد بشكل عام\");\n\n // we can add book url or download >>\n info.setInfoPageURL (\"https://firebasestorage.googleapis.com/v0/b/autismapp-b0b6a.appspot.com/o/material%2FInfo-Pack-for\"\n + \"-translation-Arabic.pdf?alt=media&token=69b19a8d-8b4c-400a-a0eb-bb5c4e5324e6\");\n\n infoList.add (info); //adding item 1 to list\n\n\n/* // item number 2\n info = new Info ();// save the second Book\n //set the title >> it can be Book name or Topic title ...\n info.setInfoTitle (\"Solve My Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this Book has will help patient of Autism to get better by communicate with experts ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://material.io/\");\n\n infoList.add (info);//adding item number 2 to list\n\n\n // item 3\n info = new Info ();// save the third Book\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Autism Community\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this an Book about patient of Autism and how to help them get better ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://www.tutorialspoint.com/android/index.html\");\n infoList.add (info);// adding item 3 to list\n\n // item number 4\n info = new Info ();// save the second Book\n //set the title >> it can be Book name or Topic title ...\n info.setInfoTitle (\"Solve My Autism part 2\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this Book has will help patient of Autism to get better by communicate with experts ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://material.io/\");\n\n infoList.add (info);//adding item number 4 to list\n\n\n // item 5\n info = new Info ();// save the third Book\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Autism Community 2\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this an Book about patient of Autism and how to help them get better ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://www.tutorialspoint.com/android/index.html\");\n infoList.add (info);// adding item 5 to list*/\n\n\n displayInfo (infoList);\n\n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "void saveRealtimeListUsers(final RealtimeList realtimeList) {\n deleteRealtimeListUsers(realtimeList.getId());\n\n // Add in all of the entries.\n ejt.batchUpdate(\"insert into realtime_list_users values (?,?,?)\", new BatchPreparedStatementSetter() {\n @Override\n public int getBatchSize() {\n return realtimeList.getRealtimeListUsers().size();\n }\n\n @Override\n public void setValues(PreparedStatement ps, int i) throws SQLException {\n ShareUser wlu = realtimeList.getRealtimeListUsers().get(i);\n ps.setInt(1, realtimeList.getId());\n ps.setInt(2, wlu.getUserId());\n ps.setInt(3, wlu.getAccessType());\n }\n });\n }", "private void saveJobList() {\n\t\tFileLoader.saveObject(getApplicationContext(), FILE_NAME_JOBS, (Serializable) jobs);\n\t}", "private void saveData() {\n }", "public void saveToQuestionBank(ArrayList<Question> list) {\n\n\t\tSAVE_FILE = QUESTION_BANK;\n\t\tsaveQuestions(list);\n\t}", "public interface OmsOrderOperateHistoryDao {\n /**\n * Multiple create\n */\n int insertList(@Param(\"list\") List<OmsOrderOperateHistory> orderOperateHistoryList);\n}", "@Override\n\tpublic String saveAll(List<Employee> empList) {\n\t\treturn null;\n\t}", "public interface EbOrderDetailDao {\n\n /**\n * 这里保存的并不是List集合,因为考虑到了并发的问题,这里最好使用单个实体\n * 即时一个订单中有多个订单项,这里使用单个实体会方便一点!\n * @param orderDetail\n */\n void saveOrderDetail(EbOrderDetail orderDetail);\n\n\n\n}", "public void save () {\r\n\t\tlog.debug(\"TunnelList:save()\");\r\n\t\tlog.info(\"Saving to file\");\r\n\t\tFileTunnel.saveTunnels(this);\r\n\t}", "@Override\n\tpublic void updateDataListVO(List<StudentDTO> dataList) {\n\t\t\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}", "public void writeToEmployeeListFile()\r\n {\r\n\ttry(ObjectOutputStream toEmployeeListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/employeelist.dta\")))\r\n\t{\r\n toEmployeeListFile.writeObject(employeeList);\r\n employeeList.saveStaticEmpRunNr(toEmployeeListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Ansatt objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }", "@Override\n public void refreshList(ArrayList<String> newList){\n }", "public void insertPhone(ArrayList<DetailModel> detailModelArrayList){\n\n\n\n\n }", "@Override\n\tpublic void saveLabeledGood(List<LabeledGoodEntity> labelGoodList) {\n\t\t\n\t}", "public void SerialiseList() throws IOException {\n ObjectOutputStream oStream = null;\n\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"Warehouses\" + \".dat\"));\n oStream.writeObject(Wlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"Stores\" + \".dat\"));\n oStream.writeObject(Slist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"WarehouseAdminList\" + \".dat\"));\n oStream.writeObject(WAlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n try {\n oStream = new ObjectOutputStream(new FileOutputStream(\"StoreAdminList\" + \".dat\"));\n oStream.writeObject(SAlist);\n System.out.println(\"File saved\");\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n oStream.close();\n }\n }", "public void save() {\t\n\t\n\t\n\t}", "@Override\n public void save() {\n\n }", "@Override\r\n\tprotected void saveData(List<ApplMstHousestatus> bList, int numOfBulkRecord) {\n\t\tList<ApplMstHousestatusDest> amhdList = new ArrayList<>();\r\n\t\tfor(ApplMstHousestatus amh : bList) {\r\n\t\t\tApplMstHousestatusDest amhd = new ApplMstHousestatusDest();\r\n\t\t\ttry {\r\n\t\t\t\tBeanUtils.copyProperties(amhd, amh);\r\n\t\t\t} catch (IllegalAccessException | InvocationTargetException e) {\r\n\t\t\t\tlogger.error(e);\r\n\t\t\t}\r\n\t\t\tamhdList.add(amhd);\r\n\t\t}\r\n\t\tif(amhdList.size() > 0)\r\n\t\t\tservice2.save(amhdList, numOfBulkRecord);\r\n\t}", "void openSavedStationList();", "public void saveBookUpdateInfo(CheckOutForm myForm) {\n\t\tint cp=myForm.getNoOfcopies();\r\n\t\tSystem.out.println(\"No Of Copy in Book Update Service!!!!\"+cp);\r\n\t\tList<CallNumber> l=myCallNumberDao.getLastAccessionNo();\r\n\t\tint size=l.size();\r\n\t\tSystem.out.println(\"in service\"+size);\r\n\t\t/*CallNumber c=l.get(size);\r\n\t\tint last_no=c.getAccessionNo();\r\n\t\tint c_id=c.getId();*/\r\n\t\t\r\n\t\tint book_id=myForm.getFrmViewDetailBook().getBookId();\r\n\t\tint author_id=myForm.getFrmViewDetailBook().getAuthorId();\r\n\t\tint accession_id=myForm.getFrmViewDetailBook().getAccessionId();\r\n\t\tString call_code=myForm.getFrmViewDetailBook().getCallNumberCode();\r\n\t\tSystem.out.println(\"Call Code\"+call_code);\r\n\t\tString[] temp_callCode;\r\n\t\tString delimiter = \"-\";\r\n\t\ttemp_callCode=call_code.split(delimiter);\r\n\t\tString st=\"\";\r\n\t\tst+=temp_callCode[0];\r\n\t\tString st1=\"-\";\r\n\t\tString st2=st+st1;\r\n\t\tSystem.out.println(\"Call number Code\"+st2);\r\n\t\tfor(int i=1;i<=cp;i++){\r\n\t\t\tCallNumber myCallNo=new CallNumber();\r\n\t\t\tint accession_no=size+i;\r\n\t\t\tmyCallNo.setId(null);\r\n\t\t\t//int accession_no=size+i;\r\n\t\t String st3=Integer.toString(accession_no);\r\n\t\t\tmyCallNo.setCallNumberCode(st2+st3);\r\n\t\t\tmyCallNo.setAccessionNo(accession_no);\r\n\t\t\tmyCallNo.setIssuseStatus(1);\r\n\t\t BookList myBookList=myBookListDao.getBookListById(book_id);\r\n\t\t /*myBookList.setId(book_id);\r\n\t\t AccessionCode myAccession=\r\n\t\t myCallNo.setAccession(myAccession);*/\r\n\t\t //BookList myBook=\r\n\t\t myCallNo.setBook(myBookList);\r\n\t\t Author myAuthor=myAuthorDao.getAuthorById(author_id);\r\n\t\t myCallNo.setAuthor(myAuthor);\r\n\t\t // myAuthor.setId(author_id);\r\n\t\t // myAuthor.setBookAuthors((Set<BookAuthor>) myAuthor);\r\n\t\t AccessionCode myAccessionCode=myAccessionCodeDao.getAccessionCodeById(accession_id);\r\n\t\t // myAccessionCode.setId(accession_id);\r\n\t\t myCallNo.setAccession(myAccessionCode);\r\n\t\t myCallNumberDao.saveBookUpdateInfo(myCallNo);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void save(List<User> pdApp) throws IOException {\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(storeDir + File.separator + storeFile));\n oos.writeObject(pdApp);\n oos.close();\n }", "@Override\n\tpublic <S extends Basket> List<S> save(Iterable<S> arg0) {\n\t\treturn null;\n\t}", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n //ALWAYS CALL THE SUPER METHOD - To be nice!\n super.onSaveInstanceState(outState);\n Log.d(TAG, \"onSaveInstanceState\");\n\t\t/* Here we put code now to save the state */\n outState.putParcelableArrayList(\"savedList\",bag);\n\n }", "public void setData(List<Business> list) {\n }", "public void getOrderedList() {\n\n\t\tFile opFile = new File(\"/home/bridgeit/Desktop/newfile.txt\");\n\t\ttry {\n\t\t\topFile.createNewFile();\n\t\t\tFileWriter fwriter = new FileWriter(opFile);\n\n\t\t\tfor (int i = 0; i < olist.size(); i++) {\n\n\t\t\t\tfwriter.append(olist.returnItem(i) + \" \");\n\n\t\t\t}\n\t\t\tfwriter.close();\n\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}", "public void listar() {\n\t\t\n\t}", "public list() {\r\n }", "public interface MyCallbacl_refresherlist {\n\n void addtolist(GPScoords_price obj);\n void removefromlist(String obj);\n\n\n}", "public void save(List<T> data) {\n\t\ttry {\n\t\t\tFile file = new File(getFileLocation());\n\t\t\tif (!file.getParentFile().exists()) {\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(getFileLocation());\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(gson.toJson(data));\n\t\t\tbw.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void populateList() {\n }", "List<T> saveOrUpdateList(final List<T> entitiesList);", "public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }", "public void add_to_my_list_process(View v) {\n\n addToCart_flag = false;\n // get current login value saved in sharedpreferences object\n SharedPreferences loginSharedPref = getSharedPreferences(\"LoginData\", MODE_PRIVATE);\n // get current agent id\n final String AgentID = loginSharedPref.getString(\"ID\", \"\");\n // create string\n create_final_string_product();\n /* get all list names into arraylist object */\n ArrayList<String> listNames = get_list_data_from_local_DB(AgentID);\n // display alert box to choose list name by user\n display_list_names(listNames, AgentID);\n // clear all data after adding product into cart\n clear_data();\n }", "private void loadLists() {\n }", "public List<New> list();", "public void save() throws ZSessionException {\n\t ZSessionList zList = new ZSessionList();\n zList.upsert(this);\n }", "public static void ser(ArrayList<Task> taskList) {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"taskList.ser\"); // create a space for serializing the ArrayList object\n ObjectOutputStream out = new ObjectOutputStream(fileOut); // object for serializing the ArrayList object\n out.writeObject(taskList); // writing/serializing the ArrayList object (has all the user's task variables)\n out.close(); // closing the serializing object\n fileOut.close(); // closing the serialized file\n System.out.println(\"Tasks saved.\"); // printing that the save was successful\n } catch (IOException ioe) { \n System.err.println(\"Java IO Exception: \" + ioe);\n }\n }", "public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }" ]
[ "0.71454495", "0.7096142", "0.68804485", "0.67962503", "0.66471696", "0.664538", "0.6611159", "0.65850484", "0.650511", "0.64684206", "0.6462277", "0.64486784", "0.6442597", "0.63704413", "0.6369173", "0.6341958", "0.6339627", "0.6327689", "0.6237658", "0.620951", "0.6208358", "0.6206264", "0.61866146", "0.6180784", "0.6150737", "0.61341655", "0.6130646", "0.61286265", "0.612488", "0.61236787", "0.61134094", "0.61044395", "0.61029655", "0.6097089", "0.6092167", "0.6089464", "0.6087174", "0.60841244", "0.6067397", "0.606443", "0.6050054", "0.60466087", "0.6030852", "0.60260385", "0.6024482", "0.60223174", "0.6021936", "0.6014208", "0.6011927", "0.60117507", "0.6003117", "0.5999291", "0.59925824", "0.5992545", "0.59900737", "0.5986919", "0.59821266", "0.5981938", "0.5977949", "0.5969026", "0.59608364", "0.59608364", "0.59597534", "0.5958857", "0.59566617", "0.5954621", "0.5952818", "0.594613", "0.5935391", "0.59316546", "0.5930062", "0.59284335", "0.59284335", "0.5920811", "0.59132946", "0.5911132", "0.59075034", "0.59045357", "0.5900056", "0.5899858", "0.5899456", "0.5897766", "0.58956873", "0.5893895", "0.58907086", "0.58810264", "0.58751905", "0.5875057", "0.586289", "0.58561856", "0.58555096", "0.58533955", "0.5849858", "0.5849803", "0.58479", "0.58443445", "0.58410406", "0.58380383", "0.5832741", "0.5825274", "0.58237565" ]
0.0
-1
Here we are going to check the status of the item; if is incomplete and we pressed the button; then we are going to change back the status of the item. Otherwise, if is complete and we pressed again the button completed; we are going to set back to incomplete the status of the item. We have to use the ListItems class to show the information of the item.
@FXML public void Item_Is_Completed(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n\n holder.routineCompletedButton.setSelected(!holder.routineCompletedButton.isSelected());\n\n }", "private void completeListener() {\n buttonPanel.getCompleteTask().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n for (int i = 0;i<toDoList.toDoListLength();i++) {\n JRadioButton task = toDoButtonList.get(i);\n if (task.isSelected()&& !task.getText().equals(\"\")){\n toDoList.getTask(i).setComplete();\n }\n }\n refresh();\n }\n });\n }", "@Override\n protected void updateItem(Boolean t, boolean empty) {\n super.updateItem(t, empty);\n if (!empty) {\n setGraphic(cellButton);\n }\n }", "public void showComplete() {\r\n showCompleted = !showCompleted;\r\n todoListGui();\r\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tTextView stateTv = (TextView) view.findViewById(R.id.item_state);\n\t\t\t\tString state = stateTv.getText().toString();\n\t\t\t\tButton b;\n\t\t\t\tfinal TextView tc = (TextView) view.findViewById(R.id.item_task_content);\n\t\t\t\tif (state.equals(\"等待中\")) {\n\t\t\t\t\t b = (Button) view.findViewById(R.id.task_info_delete);\n\t\t\t\t\t if (b.getVisibility() == View.GONE)\n\t\t\t\t\t\t\tb.setVisibility(View.VISIBLE);\n\t\t\t\t\t\telse if (b.getVisibility() == View.VISIBLE)\n\t\t\t\t\t\t\tb.setVisibility(View.GONE);\n\t\t\t\t\t b.setOnClickListener(new Button.OnClickListener(){\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tString taskContent = tc.getText().toString();\n\t\t\t\t\t\t\tString result = DataUtils.deleteMyTask(taskContent);\n\t\t\t\t\t\t\tif (result.equals(DataUtils.DELETETASK_SUCCESS)) {\n\t\t\t\t\t\t\t\tnew GetDataTask().execute();\n\t\t\t\t\t\t\t\tToast.makeText(getActivity().getApplicationContext(), \"成功删除任务\" , Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tToast.makeText(getActivity().getApplicationContext(), \"删除任务失败\" , Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tv.setVisibility(View.GONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse if (state.equals(\"进行中\")){\n\t\t\t\t\tb = (Button) view.findViewById(R.id.task_info_accept);\n\t\t\t\t\tb.setText(\"任务已完成\");\n\t\t\t\t\tif (b.getVisibility() == View.GONE)\n\t\t\t\t\t\tb.setVisibility(View.VISIBLE);\n\t\t\t\t\telse if (b.getVisibility() == View.VISIBLE)\n\t\t\t\t\t\tb.setVisibility(View.GONE);\n\t\t\t\t\tb.setOnClickListener(new Button.OnClickListener(){\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tString taskContent = tc.getText().toString();\n\t\t\t\t\t\t\tString result = DataUtils.finishMyTask(taskContent);\n\t\t\t\t\t\t\tif (result.equals(DataUtils.FINISHTASK_SUCCESS)) {\n\t\t\t\t\t\t\t\tnew GetDataTask().execute();\n\t\t\t\t\t\t\t\tToast.makeText(getActivity().getApplicationContext(), \"任务成功完成\" , Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tToast.makeText(getActivity().getApplicationContext(), \"发送信息失败\" , Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tv.setVisibility(View.GONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void onClick(View v) {\n\t\tif (v == mOk) {\r\n\t\t\tif (mCheckTable != null && mList != null) {\r\n\t\t\t\tAppDrawerControler appDrawerControler = AppDrawerControler.getInstance(GoLauncher.getContext());\r\n\t\t\t\tfor (int i = 0; i < mCheckTable.length && i < mList.size(); i++) {\r\n\t\t\t\t\tif (mModifyCheckTable[i] != mCheckTable[i]) {\r\n\t\t\t\t\t\tAppItemInfo info = mList.get(i);\r\n\t\t\t\t\t\tif (mModifyCheckTable[i]) {\r\n//\t\t\t\t\t\t\tAppCore.getInstance().getTaskMgrControler()\r\n//\t\t\t\t\t\t\t\t\t.addIgnoreAppItem(info.mIntent);\r\n\t\t\t\t\t\t\tappDrawerControler.addIgnoreAppItem(info.mIntent);\r\n\t\t\t\t\t\t} else {\r\n//\t\t\t\t\t\t\tAppCore.getInstance().getTaskMgrControler()\r\n//\t\t\t\t\t\t\t\t\t.delIgnoreAppItem(info.mIntent);\r\n\t\t\t\t\t\t\tappDrawerControler.delIgnoreAppItem(info.mIntent);\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}\r\n\t\t\tfinish();\r\n\t\t} else if (v == mCancle) {\r\n\t\t\tfinish();\r\n\t\t}\r\n\t}", "public void setDisplayDoneItems(ActionEvent actionEvent) {\n // we will simply loop through all of our items and\n // store the ones that are not yet done in a temporary tdlist\n // and then displayTODOs(tdlist) the result\n }", "@Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n deleteItem(parent, position);\n } else if (item == 1) {\n updateBook(parent, position);\n } else if (item == 2) {\n updateAuthor(parent, position);\n }else if (item == 3) {\n makeChoice(false);\n } else if (item == 4) {\n makeChoice(true);\n }\n\n\n }", "public void checkItem(final ToDoItem item) {\n if (mClient == null) {\n return;\n }\n\n // Set the item as completed and update it in the table\n item.setComplete(true);\n\n AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>(){\n @Override\n protected Void doInBackground(Void... params) {\n try {\n\n checkItemInTable(item);\n getActivity ().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (item.isComplete()) {\n mAdapter.remove(item);\n }\n }\n });\n } catch (final Exception e) {\n createAndShowDialogFromTask(e, \"Error\");\n }\n\n return null;\n }\n };\n\n runAsyncTask(task);\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tswitch (arg2) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tivStatus.setBackgroundResource(R.drawable.icon_fine);\r\n\t\t\t\t\tivStatus.setImageResource(R.drawable.icon_fine);\r\n\t\t\t\t\ttvStatus.setText(statusList.get(arg2).getTenTrangthai());\r\n\t\t\t\t\tGlobal.saveIntPreference(getActivity(), Global.STATUS_SAFE,\r\n\t\t\t\t\t\t\t1);\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tivStatus.setBackgroundResource(R.drawable.sos_ic_dangerous);\r\n\t\t\t\t\tivStatus.setImageResource(R.drawable.sos_ic_dangerous);\r\n\t\t\t\t\ttvStatus.setText(statusList.get(arg2).getTenTrangthai());\r\n\t\t\t\t\tGlobal.saveIntPreference(getActivity(), Global.STATUS_SAFE,\r\n\t\t\t\t\t\t\t2);\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}", "public void completeTask() {\r\n int selected = list.getSelectedIndex();\r\n if (selected >= 0) {\r\n Task task = myTodo.getTaskByIndex(selected + 1);\r\n myTodo.getTodo().get(task.getHashKey()).setComplete(true);\r\n showCompleted = true;\r\n playSound(\"c1.wav\");\r\n }\r\n todoListGui();\r\n }", "public void undoCompleteTask() {\r\n int selected = list.getSelectedIndex();\r\n if (selected >= 0) {\r\n Task task = myTodo.getTaskByIndex(selected + 1);\r\n myTodo.getTodo().get(task.getHashKey()).setComplete(false);\r\n showCompleted = false;\r\n }\r\n todoListGui();\r\n }", "private void animateItem(VerifierStatus status) {\n mIsAnimating = true;\n VerificationSteps.SubSteps subSteps = getSubStepFromCode(status.code);\n String parentStep = \"\";\n if (subSteps != null) {\n parentStep = subSteps.parentStep;\n }\n VerificationCustomItem itemWithTag = findViewWithTag(parentStep);\n if (itemWithTag != null) {\n itemWithTag.activateSubItem(status, () -> {\n if (mStatusQueue.size() == 0) {\n mIsAnimating = false;\n } else {\n animateItem(mStatusQueue.poll());\n }\n });\n }\n }", "public void Show_only_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "private void onDoneClicked() {\n\n// if(flag == 1)\n// {\n if (items.size() > 0) {\n\n\n //insertion method\n String title = mEtTitle.getText().toString();\n String itemString = RemainderItems.convertItemsListToString(items);\n RemainderItems notes = new RemainderItems();\n\n notes.title = title;\n notes.items = itemString;\n\n dbhelper.insertDataToDatabase(notes, dbhelper.getWritableDatabase());\n\n Toast.makeText(CheckboxNoteActivity.this, \"Retrieved Item Size = \" + retrievedItems.size(), Toast.LENGTH_SHORT).show();\n }\n\n // }\n\n// else{\n// String title = mEtTitle.getText().toString();\n// String content = mEtNotes.getText().toString();\n// RemainderItems newContent = new RemainderItems();\n// newContent.title = title;\n// newContent.items = content;\n// notedbhelper.insertNote(newContent,notedbhelper.getWritableDatabase());\n// }\n\n }", "public void hide_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(!selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "boolean updateItems() {\n return updateItems(selectedIndex);\n }", "@Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n deleteList(parent, position);\n } else if (item == 1) {\n updateList(parent, position);\n }\n\n }", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tif(chooseflag.equals(\"1\")){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tchooseflag = \"1\";\r\n\t\t\tif(v.getId() == R.id.uncompletedbaoxiu){\r\n\t\t\t\tif(v.getTag().toString().equals(\"1\")){\r\n\t\t\t\t\tchooseflag = \"0\";\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tuncompletedbaoxiu.setTag(\"1\");\r\n\t\t\t\tcompletedbaoxiu.setTag(\"0\");\r\n\t\t\t\ttext1.setTextColor(0xffffba02);\r\n\t\t\t\ttext2.setTextColor(0xff909090);\r\n\t\t\t\tuncompletedview.setBackgroundColor(0xffffba02);\r\n\t\t\t\tcompletedview.setBackgroundColor(0xffa0a0a0);\r\n\t\t\t\tLoger.d(\"test5\",\"gonggao add refresh\");\r\n\t\t\t\tif(NetworkService.networkBool){\r\n\t\t\t\t\tforumtopicLists.clear();\r\n\t\t\t\t\tRequestParams reference = new RequestParams();\r\n\t\t\t\t\treference.put(\"community_id\", App.sFamilyCommunityId);\t\t\r\n\t\t\t\t\treference.put(\"user_id\", App.sUserLoginId);\t\r\n\t\t\t\t\treference.put(\"count\", 6);\t\r\n\t\t\t\t\treference.put(\"category_type\",App.BAOXIU_TYPE);\r\n\t\t\t\t\treference.put(\"process_type\",1);\r\n\t\t\t\t\treference.put(\"tag\",\"getrepair\");\r\n\t\t\t\t\treference.put(\"apitype\",IHttpRequestUtils.APITYPE[4]);\r\n\t\t\t\t\tLoger.d(\"test5\", \"community_id=\"+App.sFamilyCommunityId+\"user_id=\"+App.sUserLoginId);\r\n\t\t\t\t\t//reference.put(\"key_word\",searchmessage);\r\n\t\t\t\t\tAsyncHttpClient client = new AsyncHttpClient();\r\n\t\t\t\t\tclient.post(IHttpRequestUtils.URL+IHttpRequestUtils.YOULIN,\r\n\t\t\t\t\t\t\treference, new JsonHttpResponseHandler() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\t\tJSONArray response) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub 18945051215\r\n\t\t\t\t\t\t\tgetTopicDetailsInfos(response,\"init\");\r\n\t\t\t\t\t\t\tFlag = \"ok\";\r\n\t\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\t\tmaddapter.notifyDataSetChanged();\r\n\t\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\t\tJSONObject response) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tMessage message = new Message();\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tFlag = response.getString(\"flag\");\r\n\t\t\t\t\t\t\t\tif(\"no\".equals(Flag)){\r\n\t\t\t\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t\t\t\t\tnew Timer().schedule(new TimerTask() {\r\n\t\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\t\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.GONE);\r\n\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});\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}, 1000);\r\n\t\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty yes\");\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty no\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\t\tString responseString, Throwable throwable) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tnew ErrorServer(PropertyRepairActivity.this, responseString.toString());\r\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, responseString, throwable);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/*********************refresh*********************/\r\n\t\t\t\t\tFragmentManager manager = this.getSupportFragmentManager();\r\n\t\t\t\t\tFragmentTransaction tx = manager.beginTransaction();\r\n\t\t\t\t\ttx.replace(R.id.tabcontentrepair,new PullToRefreshListFragment(),\"myfragment\");\r\n\t\t\t\t\ttx.commit();\r\n\t\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\");\r\n\t\t\t\t\t/*********************refresh*********************/\r\n\t\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\"+cRequesttype+\"Flag=\"+Flag);\r\n\t\t\t // TODO Auto-generated method stub\r\n\t\t\t\t\tnew Thread(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tLong currenttime = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\twhile (PropertyRepairActivity.this.getSupportFragmentManager().findFragmentByTag(\r\n\t\t\t\t\t\t\t\t\t\t\"myfragment\") == null) {\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\twhile(!cRequesttype ){\r\n\t\t\t\t\t\t\t\t\tif((System.currentTimeMillis()-currenttime)>App.WAITFORHTTPTIME+5000){\r\n\t\t\t\t\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\"+cRequesttype+\"Flag=\"+Flag);\r\n\t\t\t\t\t\t\t\t\t\tif(cRequesttype&&Flag!=null&& (Flag.equals(\"ok\")||Flag.equals(\"no\"))){\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\tLoger.d(\"test5\", \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\");\r\n\t\t\t\t\t\t\t\t\t\t\tfinal PullToRefreshListFragment finalfrag9 = (PullToRefreshListFragment) PropertyRepairActivity.this.getSupportFragmentManager()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.findFragmentByTag(\"myfragment\");\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\tmPullRefreshListView = finalfrag9.getPullToRefreshListView();\r\n\t\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn;\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\t// Set a listener to be invoked when the list should be\r\n\t\t\t\t\t\t\t\t\t\t\t// refreshed.\r\n\t\t\t\t\t\t\t\t\t\t\tmPullRefreshListView.setMode(Mode.PULL_FROM_END);\r\n\t\t\t\t\t\t\t\t\t\t\tmPullRefreshListView.setOnRefreshListener(PropertyRepairActivity.this);\r\n\t\t\t\t\t\t\t\t\t\t\t// You can also just use\r\n\t\t\t\t\t\t\t\t\t\t\t// mPullRefreshListFragment.getListView()\r\n\t\t\t\t\t\t\t\t\t\t\tactualListView = mPullRefreshListView\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getRefreshableView();\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tactualListView.setDividerHeight(0);\r\n//\t\t\t\t\t\t\t\t\t\t\tactualListView.setDivider(PropertyGonggaoActivity.this.getResources().getDrawable(R.drawable.fengexian));\r\n\t\t\t\t\t\t\t\t\t\t\tactualListView.setAdapter(maddapter);\r\n\t\t\t\t\t\t\t\t\t\t\tactualListView.setLayoutParams(new FrameLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT));\r\n\t\t\t\t\t\t\t\t\t\t\tactualListView.setOnItemLongClickListener(new OnItemLongClickListener() {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view, int position,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlong id) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tView contentView=getLayoutInflater().inflate(R.layout.activity_share_popwindow_newpush, null);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tListView listView=(ListView) contentView.findViewById(R.id.share_pop_repair_lv);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tarr=new String[]{\"删除\",\"删除全部\"};\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tArrayAdapter<String> adapter=new ArrayAdapter<String>(PropertyRepairActivity.this, R.layout.activity_share_pop_textview,arr);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tlistView.setAdapter(adapter);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tlistView.setOnItemClickListener(new listViewListen(position-1));\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow=new PopupWindow(PropertyRepairActivity.this);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setWidth(LayoutParams.WRAP_CONTENT);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setHeight(LayoutParams.WRAP_CONTENT);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setBackgroundDrawable(new BitmapDrawable());\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setFocusable(true);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setOutsideTouchable(true);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setContentView(contentView);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.showAtLocation(getWindow().getDecorView(), Gravity.CENTER, 0, 0);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\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});\r\n\t\t\t\t\t\t\t\t\t\t\tfinalfrag9.setListShown(true);\r\n\t\t\t\t\t\t\t\t\t\t\t//Loger.i(\"youlin\",\"11111111111111111->\"+((ForumTopic)forumtopicLists.get(0)).getSender_id()+\" \"+App.sUserLoginId);\r\n\t\t\t\t\t\t\t\t\t\t}else if(cRequesttype && Flag.equals(\"none\")){\r\n\t\t\t\t\t\t\t\t\t\t\tfinal PullToRefreshListFragment finalfrag9 = (PullToRefreshListFragment) PropertyRepairActivity.this.getSupportFragmentManager()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.findFragmentByTag(\"myfragment\");\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\tmPullRefreshListView = finalfrag9.getPullToRefreshListView();\r\n\t\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn;\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\tfinalfrag9.setListShown(true);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tcRequesttype = false;\r\n\t\t\t\t\t\t\t\t\t\tFlag=\"none\";\r\n\t\t\t\t\t\t\t\t\t\tchooseflag = \"0\";\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).start();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}else if(v.getId() == R.id.completedbaoxiu){\r\n\t\t\t\tLoger.d(\"test5\",\"baoxiu add refresh\");\r\n\t\t\t\tif(v.getTag().toString().equals(\"1\")){\r\n\t\t\t\t\tchooseflag = \"0\";\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tuncompletedbaoxiu.setTag(\"0\"); //hyy\r\n\t\t\t\tcompletedbaoxiu.setTag(\"1\");\r\n\t\t\t\ttext2.setTextColor(0xffffba02);\r\n\t\t\t\ttext1.setTextColor(0xff909090);\r\n\t\t\t\tcompletedview.setBackgroundColor(0xffffba02);\r\n\t\t\t\tuncompletedview.setBackgroundColor(0xffa0a0a0);\r\n\t\t\t\tif(NetworkService.networkBool){\r\n\t\t\t\t\tforumtopicLists.clear();\r\n\t\t\t\t\tRequestParams reference = new RequestParams();\r\n\t\t\t\t\treference.put(\"community_id\", App.sFamilyCommunityId);\t\t\r\n\t\t\t\t\treference.put(\"user_id\", App.sUserLoginId);\t\r\n\t\t\t\t\treference.put(\"count\", 6);\t\r\n\t\t\t\t\treference.put(\"category_type\",App.BAOXIU_TYPE);\r\n\t\t\t\t\treference.put(\"process_type\",3);\r\n\t\t\t\t\treference.put(\"tag\",\"getrepair\");\r\n\t\t\t\t\treference.put(\"apitype\",IHttpRequestUtils.APITYPE[4]);\r\n\t\t\t\t\tLoger.d(\"test5\", \"community_id=\"+App.sFamilyCommunityId+\"user_id=\"+App.sUserLoginId);\r\n\t\t\t\t\t//reference.put(\"key_word\",searchmessage);\r\n\t\t\t\t\tAsyncHttpClient client = new AsyncHttpClient();\r\n\t\t\t\t\tclient.post(IHttpRequestUtils.URL+IHttpRequestUtils.YOULIN,\r\n\t\t\t\t\t\t\treference, new JsonHttpResponseHandler() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\t\tJSONArray response) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub 18945051215\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tgetTopicDetailsInfos(response,\"init\");\r\n\t\t\t\t\t\t\tFlag = \"ok\";\r\n\t\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\t\tmaddapter.notifyDataSetChanged();\r\n\t\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\t\tJSONObject response) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tMessage message = new Message();\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tFlag = response.getString(\"flag\");\r\n\t\t\t\t\t\t\t\tif(\"no\".equals(Flag)){\r\n\t\t\t\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t\t\t\t\tnew Timer().schedule(new TimerTask() {\r\n\t\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\t\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.GONE);\r\n\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});\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}, 1000);\r\n\t\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty yes\");\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty no\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\t\tString responseString, Throwable throwable) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tnew ErrorServer(PropertyRepairActivity.this, responseString.toString());\r\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, responseString, throwable);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\t/*********************refresh*********************/\r\n\t\t\t\t\tFragmentManager manager = this.getSupportFragmentManager();\r\n\t\t\t\t\tFragmentTransaction tx = manager.beginTransaction();\r\n\t\t\t\t\ttx.replace(R.id.tabcontentrepair,new PullToRefreshListFragment(),\"myfragment\");\r\n\t\t\t\t\ttx.commit();\r\n\t\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\");\r\n\t\t\t\t\t/*********************refresh*********************/\r\n\t\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\"+cRequesttype+\"Flag=\"+Flag);\r\n\t\t\t // TODO Auto-generated method stub\r\n\t\t\t\t\tnew Thread(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tLong currenttime = System.currentTimeMillis();\r\n\t\t\t\t\t\t\t\twhile (PropertyRepairActivity.this.getSupportFragmentManager().findFragmentByTag(\r\n\t\t\t\t\t\t\t\t\t\t\"myfragment\") == null) {\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\twhile(!cRequesttype ){\r\n\t\t\t\t\t\t\t\t\tif((System.currentTimeMillis()-currenttime)>App.WAITFORHTTPTIME+5000){\r\n\t\t\t\t\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\tLoger.d(\"test5\", \"gongao cRequesttype=\"+cRequesttype+\"Flag=\"+Flag);\r\n\t\t\t\t\t\t\t\t\t\tif(cRequesttype && (Flag.equals(\"ok\")||Flag.equals(\"no\"))){\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\tLoger.d(\"test5\", \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\");\r\n\t\t\t\t\t\t\t\t\t\t\tfinal PullToRefreshListFragment finalfrag9 = (PullToRefreshListFragment) PropertyRepairActivity.this.getSupportFragmentManager()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.findFragmentByTag(\"myfragment\");\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\tmPullRefreshListView = finalfrag9.getPullToRefreshListView();\r\n\t\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn;\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\t// Set a listener to be invoked when the list should be\r\n\t\t\t\t\t\t\t\t\t\t\t// refreshed.\r\n\t\t\t\t\t\t\t\t\t\t\tmPullRefreshListView.setMode(Mode.PULL_FROM_END);\r\n\t\t\t\t\t\t\t\t\t\t\tmPullRefreshListView.setOnRefreshListener(PropertyRepairActivity.this);\r\n\t\t\t\t\t\t\t\t\t\t\t// You can also just use\r\n\t\t\t\t\t\t\t\t\t\t\t// mPullRefreshListFragment.getListView()\r\n\t\t\t\t\t\t\t\t\t\t\tactualListView = mPullRefreshListView\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getRefreshableView();\r\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\tactualListView.setDividerHeight(0);\r\n//\t\t\t\t\t\t\t\t\t\t\tactualListView.setDivider(PropertyGonggaoActivity.this.getResources().getDrawable(R.drawable.fengexian));\r\n\t\t\t\t\t\t\t\t\t\t\tactualListView.setAdapter(maddapter);\r\n\t\t\t\t\t\t\t\t\t\t\tactualListView.setLayoutParams(new FrameLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT));\r\n\t\t\t\t\t\t\t\t\t\t\tactualListView.setOnItemLongClickListener(new OnItemLongClickListener() {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view, int position,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlong id) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tView contentView=getLayoutInflater().inflate(R.layout.activity_share_popwindow_newpush, null);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tListView listView=(ListView) contentView.findViewById(R.id.share_pop_repair_lv);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tarr=new String[]{\"删除\",\"删除全部\"};\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tArrayAdapter<String> adapter=new ArrayAdapter<String>(PropertyRepairActivity.this, R.layout.activity_share_pop_textview,arr);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tlistView.setAdapter(adapter);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tlistView.setOnItemClickListener(new listViewListen(position-1));\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow=new PopupWindow(PropertyRepairActivity.this);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setWidth(LayoutParams.WRAP_CONTENT);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setHeight(LayoutParams.WRAP_CONTENT);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setBackgroundDrawable(new BitmapDrawable());\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setFocusable(true);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setOutsideTouchable(true);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.setContentView(contentView);\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\tpopupWindow.showAtLocation(getWindow().getDecorView(), Gravity.CENTER, 0, 0);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\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});\r\n\t\t\t\t\t\t\t\t\t\t\tfinalfrag9.setListShown(true);\r\n\t\t\t\t\t\t\t\t\t\t\t//Loger.i(\"youlin\",\"11111111111111111->\"+((ForumTopic)forumtopicLists.get(0)).getSender_id()+\" \"+App.sUserLoginId);\r\n\t\t\t\t\t\t\t\t\t\t}else if(cRequesttype && Flag.equals(\"none\")){\r\n\t\t\t\t\t\t\t\t\t\t\tfinal PullToRefreshListFragment finalfrag9 = (PullToRefreshListFragment) PropertyRepairActivity.this.getSupportFragmentManager()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.findFragmentByTag(\"myfragment\");\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\tmPullRefreshListView = finalfrag9.getPullToRefreshListView();\r\n\t\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn;\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\tfinalfrag9.setListShown(true);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tcRequesttype = false;\r\n\t\t\t\t\t\t\t\t\t\tFlag=\"none\";\r\n\t\t\t\t\t\t\t\t\t\tchooseflag = \"0\";\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).start();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void itemOkay() \r\n\t{\n\t\t\r\n\t}", "public void markItemAsDone(int index) {\n int correctIndex = index - 1;\n assertIndexInRange(correctIndex);\n ListItem tempItem = this.listItems.get(correctIndex).markAsDone();\n assert tempItem.isDone(); // check the updated item's done status is true\n this.listItems.set(correctIndex, tempItem);\n }", "@Override\n protected void updateItem(Boolean t, boolean empty) {\n super.updateItem(t, empty);\n if(!empty){\n setGraphic(cellButton);\n }\n else{\n setGraphic(null);\n }\n }", "public abstract boolean depleteItem();", "public void setCurrentListToBeDoneList();", "Boolean isCurrentListDoneList();", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_21.setVisibility(View.INVISIBLE);\r\n item21_t= item21;\r\n item21 = 0;\r\n Log.i(TAG,\"item21\" + item21);\r\n }else{\r\n spinner_item_21.setVisibility(View.VISIBLE);\r\n item21 = item21_t;\r\n Log.i(TAG,\"item21\" + item21);\r\n }\r\n }", "void updateStatusForItem(HighlightsModel item, CreatingStatus currentStatus) {\n if (item.status != null) {\n item.status.currentUriIndex = currentStatus.currentUriIndex;\n item.status.maxUris = currentStatus.maxUris;\n item.status.progress = currentStatus.progress;\n } else {\n Log.e(TAG, \"Status - Error!! status == null for uriIdx:\" + currentStatus.currentUriIndex + \", maxUris:\" + currentStatus.maxUris + \",progress:\" + currentStatus.progress);\n }\n }", "@Override\n public void clickPositive() {\n meetingManager.undoConfirm(chosenTrade, chosenTrader);\n Toast.makeText(this, \"Successfully undo confirm\", Toast.LENGTH_SHORT).show();\n viewList();\n\n }", "public void onClick(DialogInterface dialog, int id) {\n holder.state_imageView.setImageResource(R.drawable.ic_remove);\n holder.isdone.setText(\"Incomplet\");\n holder.isdone.setChecked(false);\n seanceList.get(position).setDone(false);\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_22.setVisibility(View.INVISIBLE);\r\n item22_t= item22;\r\n item22 = 0;\r\n Log.i(TAG,\"item22\" + item22);\r\n }else{\r\n spinner_item_22.setVisibility(View.VISIBLE);\r\n item22 = item22_t;\r\n Log.i(TAG,\"item22\" + item22);\r\n }\r\n }", "@Override\n\tprotected void updateItem(final Boolean value, final boolean empty) {\n\t\tsuper.updateItem(value, empty);\n\t\tif (!empty && getTableRow().getItem() != null) {\n\t\t\tif (value != null && value) {\n\t\t\t\tif (getTableRow().getItem().isDefaultValue()) {\n\t\t\t\t\tsetGraphic(resetToOldValueButton);\n\t\t\t\t} else {\n\t\t\t\t\tsetGraphic(new HBox(resetToDefaultButton, resetToOldValueButton));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getTableRow().getItem().isDefaultValue()) {\n\t\t\t\t\tsetGraphic(null);\n\t\t\t\t} else {\n\t\t\t\t\tsetGraphic(resetToDefaultButton);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tsetGraphic(null);\n\t\t}\n\t}", "@Override\n public void onItemToggled(boolean active, int position) {\n Uri currentTaskUri = ContentUris.withAppendedId(TaskContract.CONTENT_URI, mAdapter.getItemId(position));\n\n ContentValues values = new ContentValues();\n values.put(TaskContract.TaskColumns.IS_COMPLETE, 1);\n\n int rowsAffected = getContentResolver().update(currentTaskUri, values, null, null);\n\n if (rowsAffected == 0) {\n\n Toast.makeText(this, getString(R.string.task_completed_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n\n Toast.makeText(this, getString(R.string.task_completed),\n Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_23.setVisibility(View.INVISIBLE);\r\n item23_t= item23;\r\n item23 = 0;\r\n Log.i(TAG,\"item23\" + item23);\r\n }else{\r\n spinner_item_23.setVisibility(View.VISIBLE);\r\n item23 = item23_t;\r\n Log.i(TAG,\"item23\" + item23);\r\n }\r\n }", "@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\r\n\t\t\t\t\tboolean isChecked) {\n\t\t\t\tif(isChecked){\r\n\t //update the status of checkbox to checked\r\n\t \r\n\t checkedItem.set(p, true);\r\n\t idList.set(p,id);\r\n\t item.set(p, friend);\r\n\t nameList.set(p, name);\r\n\t }else{\r\n\t //update the status of checkbox to unchecked\r\n\t checkedItem.set(p, false);\r\n\t idList.set(p,null);\r\n\t item.set(p, null);\r\n\t nameList.set(p, null);\r\n\t }\r\n\t\t\t}", "@FXML\n void showIncompleteTasksClicked(ActionEvent event)\n {\n ObservableList<Item> incompleteTasks = FXCollections.observableArrayList();\n\n if(showIncompleteTasks.isSelected())\n {\n // Have it display in listView\n // First need to remove all the items in listView and then display only incomplete\n showCompletedTasks.setSelected(false);\n\n listView.getItems().clear();\n\n createList(false, incompleteTasks);\n\n listView.refresh();\n }\n\n listView.setItems(incompleteTasks);\n\n if(!showIncompleteTasks.isSelected())\n {\n // Uncheck the checkbox\n listView.getItems().clear();\n\n // Add all items to the table\n for(Item item : Item.getToDoList())\n {\n listView.getItems().add(Item.getToDoList().get(Item.getToDoList().indexOf(item)));\n }\n\n listView.refresh();\n }\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tif (Main.mp.isPlaying()) {\n\t\t\t\t\t\tMain.mp.stop();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < items.size(); i++){\n\t\t\t\t\t\tif(items.get(i) != item)\n\t\t\t\t\t\t\titems.get(i).setPlaying(false);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i = 0; i < listHolder.size(); i++){\n\t\t\t\t\t\tlistHolder.get(i).btnPlayPause.setBackgroundResource(R.drawable.icon_play);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (item.isPlaying()) {\n\t\t\t\t\t\tholder.btnPlayPause.setBackgroundResource(R.drawable.icon_play);\n\t\t\t\t\t\titem.setPlaying(false);\n\t\t\t\t\t\titems.get(position).setPlaying(false);\n\t\t\t\t\t\tif (Main.mp.isPlaying()) {\n\t\t\t\t\t\t\tMain.mp.stop();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurPosition = position;\n\t\t\t\t\t\tplayAudio(context, item.getAudioResource());\n\t\t\t\t\t\t\n\t\t\t\t\t\tholder.btnPlayPause.setBackgroundResource(R.drawable.icon_pause);\n\t\t\t\t\t\titem.setPlaying(true);\n\t\t\t\t\t\titems.get(position).setPlaying(true);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ViewHolder object : listHolder) {\n\t\t\t\t\t\tif (object != holder) {\n\t\t\t\t\t\t\tobject.btnPlayPause.setBackgroundResource(R.drawable.icon_play);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public void setStateComplete() {state = STATUS_COMPLETE;}", "@Override\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tif (click_flag == false) {\n\t\t\t\t\t\t\t\tpos = position;\n\t\t\t\t\t\t\t\tif (position == pos) {\n\t\t\t\t\t\t\t\t\tlistItem.setBackgroundResource(R.drawable.listitemgreen);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistItem.setBackgroundResource(R.drawable.listitem_default);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tSystem.out.println(\"pos is:\" + pos + \"_\"\n\t\t\t\t\t\t\t\t\t\t+ position);\n\t\t\t\t\t\t\t\tString recordId = list.get(position).requestId;\n\t\t\t\t\t\t\t\tString proj = list.get(position).projectId;\n\t\t\t\t\t\t\t\tString tabId = list.get(position).tableId;\n\t\t\t\t\t\t\t\tString app_title = list.get(position).title;\n\t\t\t\t\t\t\t\tlistItem.setBackgroundResource(R.drawable.listitemyellow);\n\t\t\t\t\t\t\t\tcallWebUrlApproval(recordId, tabId, proj,\n\t\t\t\t\t\t\t\t\t\tapp_title, position);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "public void update(){\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(selectedItem > items.length - 1) selectedItem = items.length - 1;\n\t\tif(selectedItem < 0) selectedItem = 0;\n\t\tif(JudokaComponent.input.enter){\n\t\t\tif(selectedItem == 0) JudokaComponent.changeMenu(JudokaComponent.CREATE_JUDOKA);\n\t\t\telse if(selectedItem == 1) JudokaComponent.changeMenu(JudokaComponent.SINGLEPLAYER);\n\t\t\telse if(selectedItem == 2) JudokaComponent.changeMenu(JudokaComponent.MULTIPLAYER);\n\t\t\telse if(selectedItem == 3) JudokaComponent.changeMenu(JudokaComponent.ABOUT);\n\t\t\telse if(selectedItem == 4) JudokaComponent.changeMenu(JudokaComponent.EXIT);\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n String checkBoulder = (String) completeBoulder.getText();\n // if button says \"Topped out!\"\n if (checkBoulder.equals(getResources().getString(R.string.topout_complete))){\n //do nothing\n }\n else {\n tries_title.setBackgroundColor(getResources().getColor(R.color.colorGreen));\n tries_title.setText(R.string.good_job);\n showTriesBox();\n }\n }", "@Override\n public void onClick(View v) {\n boolean isFromMain = true;\n\n for (Book book:DatabaseOP.getInstance().selectALLBook()){\n if (!mBook.getISBN().equals(book.getISBN())){\n isFromMain = false;\n }\n }\n if (isFromMain){\n DatabaseOP.getInstance().updateAllBook(mBook);\n MainActivity.bookList = DatabaseOP.getInstance().selectALLBook();\n adapter.setmBookList(MainActivity.bookList);\n adapter.notifyDataSetChanged();\n }else {\n getView(mBook);\n MainActivity.addbook.set(index,mBook);\n adapter.setmBookList(MainActivity.bookList);\n adapter.notifyDataSetChanged();\n }\n finish();/////add\n }", "@Override\r\n\t\tprotected void updateItem(Boolean t, boolean empty) {\r\n\t\t\tsuper.updateItem(t, empty);\r\n\t\t\tif (!empty) {\r\n\t\t\t\tsetGraphic(pane);\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\tprotected void updateItem(Boolean t, boolean empty) {\r\n\t\t\tsuper.updateItem(t, empty);\r\n\t\t\tif (!empty) {\r\n\t\t\t\tsetGraphic(pane);\r\n\t\t\t}\r\n\t\t}", "private void equipButtonClicked(final ShopItem shopItem) {\n shopItem.setState(ItemStatusID.EQUIPPED);\n if (shopItem instanceof Shovel) {\n for (Shovel shovel : SHOVELS) {\n if (shovel.equals(shopItem)) {\n continue;\n } else if (shovel.getState() == ItemStatusID.EQUIPPED) {\n shovel.setState(ItemStatusID.BOUGHT);\n break;\n }\n }\n } else if (shopItem instanceof Background) {\n for (Background background : BACKGROUNDS) {\n if (background.equals(shopItem)) {\n continue;\n } else if (background.getState() == ItemStatusID.EQUIPPED) {\n background.setState(ItemStatusID.BOUGHT);\n break;\n }\n }\n }\n updateUI();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tint position = (Integer) v.getTag();\n\t\t\t\tGameInfoitem item = list.get(position);\n\t\t\t\tint status = item.download_state;\n\t\t\t\tswitch (status) {\n\t\t\t\tcase DownloadManager.STATUS_NORMAL:\n\t\t\t\t\tstartDownload(item.url);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DownloadManager.STATUS_FAILED:\n\t\t\t\t\tmDownloadManager.restartDownload(item.id);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DownloadManager.STATUS_PAUSED:\n\t\t\t\t\tmDownloadManager.resumeDownload(item.id);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DownloadManager.STATUS_PENDING:\n\t\t\t\tcase DownloadManager.STATUS_RUNNING:\n\t\t\t\t\tmDownloadManager.pauseDownload(item.id);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DownloadManager.STATUS_SUCCESSFUL:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}", "public void performButton(int i){\n\t\tif(ClientWindow.retButtons()[i].getIcon()!=null){\n\t\t\tresetSelected();\n\t\t\tClientWindow.retButtons()[i].setBackground(Color.BLACK);\n\t\t\tClientWindow.currentlySelected=ClientWindow.rPackage.getInventory().get(i);\n\t\t}\n\t\telse{\n\t\t\tresetSelected();\n\t\t\tClientWindow.currentlySelected=null;\n\t\t}\n\t}", "public void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\t\t\n\t\t\t\t\t //remove the task then update the UI\n\t\t\t\t\t\tcurrentTaskItems.remove(editPosition);\n\t\t\t\t\t\tupdateListViewAndCount();\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\tfor(int i = 0; i < items.size(); i++){\n\t\t\t\titems.get(i).setPlaying(false);\n\t\t\t}\n\t\t\tfor(int i = 0; i < listHolder.size(); i++){\n\t\t\t\tlistHolder.get(i).btnPlayPause\n\t\t\t\t.setBackgroundResource(R.drawable.icon_play);\n\t\t\t}\n\t\t}", "@Override\r\n\t\t\t\t\tprotected void updateItem(Object arg0, boolean arg1) {\n\t\t\t\t\t\tsuper.updateItem(arg0, arg1);\r\n\t\t\t\t\t\tif (arg1) {\r\n\t\t\t\t\t\t\tsetGraphic(null);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbtn.setOnAction(new EventHandler<ActionEvent>() {\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void handle(ActionEvent arg0) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getItems().get(getIndex());\r\n\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\t\t\t\t\t\tif(ConnectionManager.queryInsert(conn, \"DELETE FROM dbo.product WHERE id=\"+data.getId())>0) {\r\n\t\t\t\t\t\t\t\t\t\ttxt_cost.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_date.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_name.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_price.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_qty.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\t\t\t\t\t\t\ttxt_search.clear();\r\n\t\t\t\t\t\t\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\tsetGraphic(btn);\r\n\t\t\t\t\t\t\tsetText(null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif (item.isFavorite()) {\n\t\t\t\t\t\tholder.btnFavorite\n\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.icon_favorite_off);\n\t\t\t\t\t\titem.setFavorite(false);\n\t\t\t\t\t\tpref.setString(item.getFileName(), false);\n\t\t\t\t\t\tif (!inRingtones) {\n\t\t\t\t\t\t\tIntent broadcast = new Intent();\n\t\t\t\t\t\t\tbroadcast.setAction(\"REMOVE_SONG\");\n\t\t\t\t\t\t\tcontext.sendBroadcast(broadcast);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tholder.btnFavorite\n\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.icon_favorite);\n\t\t\t\t\t\titem.setFavorite(true);\n\t\t\t\t\t\tpref.setString(item.getFileName(), true);\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n public void OnOkButtonPressed(OrderDetail detail) {\n orderListAdpater.addOrderDetail(detail);\n orderListAdpater.setSelectedIndex(orderListAdpater.getCount() - 1);\n orderList.setSelection(orderListAdpater.getCount());\n\n// if (orderListAdpater.orderDetailList.size() == 1) {\n orderListAdpater.notifyDataSetChanged();\n// }\n onOrderUpdate();\n\n }", "public void onClick(DialogInterface dialog, int id) {\n holder.state_imageView.setImageResource(R.drawable.ic_check_mark);\n holder.isdone.setText(\"Complet\");\n holder.isdone.setChecked(true);\n seanceList.get(position).setDone(true);\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tListSelectionModel lsm = list.getSelectionModel();\r\n\t\t\tint selected = lsm.getMinSelectionIndex();\r\n\r\n\t\t\tItemView itemView = (ItemView) list.getModel().getElementAt(selected);\r\n\r\n\t\t\t// change item\r\n\t\t\tJOptionPane options = new JOptionPane();\r\n\t\t\tObject[] addFields = { \"Name: \", nameTextField, \"Price: \", priceTextField, \"URL: \", urlTextField, };\r\n\t\t\tint option = JOptionPane.showConfirmDialog(null, addFields, \"Edit item\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\t\tif (option == JOptionPane.OK_OPTION) {\r\n\t\t\t\tString name = nameTextField.getText();\r\n\t\t\t\tString price = priceTextField.getText();\r\n\t\t\t\tString url = urlTextField.getText();\r\n\r\n\t\t\t\tdouble doublePrice = Double.parseDouble(price);\r\n\r\n\t\t\t\titemView.getItem().setName(name);\r\n\t\t\t\titemView.getItem().setCurrentPrice(doublePrice);\r\n\t\t\t\titemView.getItem().setUrl(url);\r\n\t\t\t\t// clear text fields\r\n\t\t\t\tnameTextField.setText(\"\");\r\n\t\t\t\tpriceTextField.setText(\"\");\r\n\t\t\t\turlTextField.setText(\"\");\r\n\t\t\t}\r\n\t\t}", "@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}", "private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}", "@FXML\n void showCompletedTasksClicked(ActionEvent event)\n {\n ObservableList<Item> completedTasks = FXCollections.observableArrayList();\n\n if(showCompletedTasks.isSelected())\n {\n // Have it display in listView\n // First need to remove all the items in listView and then display only completed\n showIncompleteTasks.setSelected(false);\n\n listView.getItems().clear();\n\n // Creating a list with only completed tasks\n createList(true, completedTasks);\n\n listView.refresh();\n }\n\n listView.setItems(completedTasks);\n\n if(!showIncompleteTasks.isSelected())\n {\n // Uncheck the checkbox\n listView.getItems().clear();\n\n // Add all items to the table\n for(Item item : Item.getToDoList())\n {\n listView.getItems().add(Item.getToDoList().get(Item.getToDoList().indexOf(item)));\n }\n\n listView.refresh();\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfor(int i= 0 ;i<myList.size();i++){\n\t\t\t\t\tmyList.get(i).ischeck=false;\n\t\t\t\t}\n\t\t\t\tmyList.get(position).ischeck=true;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t}", "private void updateUI() {\n swipeRefreshLayout.setRefreshing(false);\n adapter.clearItems();\n itemList.addAll(DatabaseController.getInstance(getApplicationContext()).getItems());\n if (itemList.size() > 0){\n emptyTextView.setVisibility(View.GONE);\n adapter.notifyDataSetChanged();\n } else {\n emptyTextView.setVisibility(View.VISIBLE);\n }\n }", "@Override\n\tpublic boolean update(StatusDetail item) {\n\t\treturn false;\n\t}", "@Override\r\n public void onClick(View view) {\n entries.remove(position);\r\n notifyItemRemoved(position);\r\n notifyItemRangeChanged(position, entries.size());\r\n Toast.makeText(mContext, \"Rejected : \" + u, Toast.LENGTH_SHORT).show();\r\n }", "@Override\n public String executeGui(TaskList items, Ui ui) {\n try {\n int indexToBeUndone = budgetList.getSize() - Numbers.ONE.value;\n\n if (indexToBeUndone != Numbers.ZERO.value) {\n budgetList.undoLastBudget(indexToBeUndone);\n float newBudget = budgetList.getBudget();\n return ui.showUndoneBudgetGui(Float.toString(newBudget));\n } else {\n return ui.showBudgetUndoErrorGui();\n }\n } catch (Exception e) {\n return ui.showBudgetUndoErrorGui();\n }\n }", "@Override\n public boolean onOptionsItemSelected(android.view.MenuItem item) {\n int id = item.getItemId();\n if (!editing) {\n item.setTitle(getResources().getString(R.string.done));\n editing = true;\n }else{\n item.setTitle(getResources().getString(R.string.edit));\n editing = false;\n }\n customAdapter.notifyDataSetChanged();\n return super.onOptionsItemSelected(item);\n }", "@Override\n void setupState(TYPE firstItem) {\n currentItem = 0;\n }", "private void addFinalBtn() {\n if(audioList.isSelectionEmpty()) {\n JOptionPane.showMessageDialog(null, \"Please select an audio from audio list\");\n }\n else {\n String filename = (String)audioList.getSelectedValue();\n if (finalListModel.size() < order.getItemCount())\n if(finalListModel.size() < order.getSelectedIndex())\n JOptionPane.showMessageDialog(null, \"Sorry, try to pick the previous buttons first\");\n else {\n if (finalListModel.contains(filename))\n JOptionPane.showMessageDialog(null, \"Sorry the item already exists\");\n else\n finalListModel.add(order.getSelectedIndex(), filename);\n }\n else\n JOptionPane.showMessageDialog(null, \"Sorry you have exceeded the \" +\n \"number of available buttons, please add a new button, then try.\");\n }\n }", "@Override\n\t\t\tpublic boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\t\t\n\t\t\t\t \n\t\t\t\tswitch (item.getItemId()) {\n\t\t\t\tcase R.id.delete:\n\t\t\t\t\t\n\t\t\t\t\tfor(messagewrapper obje:dummyList){\n\t\t\t\t\t\t\n\t\t\t\t\t\tmAdapter.remove(obje);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcheckedCount=0;\n\t\t\t\t\t\n\t\t\t\t\tmode.finish();\n\t\t\t\t\treturn true;\n\t\t\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "boolean updateUI() {\n BackgroundStatus bgStat= _monItem.getStatus();\n WebAssert.argTst(ComparisonUtil.equals(bgStat.getID(), _oldBgStat.getID()),\n \"You cannot update the report to one with \" +\n \"a different package id.\");\n boolean retval= update();\n _oldBgStat = _monItem.getStatus();\n if (_monItem.isDone()) {\n if (_monItem.getState()==BackgroundState.SUCCESS) {\n if (!_success) {\n String name= Application.getInstance().getAppName();\n Notifications.notify( name + \" Task Completed\",\n _monItem.getReportDesc() +\", \" +_monItem.getTitle() +\" has completed.\");\n }\n _success= true;\n if (!_calledAutoActivation &&\n _monItem.getActivateOnCompletion() &&\n !_monItem.getStatus().isMultiPart()) {\n _calledAutoActivation= true;\n ActivationFactory.getInstance().activate(_monItem,0,!_monItem.getImmediately());\n }\n }\n }\n\n return retval;\n\n }", "public void actionPerformed(ActionEvent e)\n\t\t\t\t\t{\n\t\t\t\t\t\tBuyerUIItem thisUIItem = (BuyerUIItem)order.getParent();\n\t\t\t\t\t\tint amountDesired = (int)spinner.getValue();\n\t\t\t\t\t\tif(_item.getQuantity() >= amountDesired && _item.inStock()) {\n\t\t\t\t\t\t\titemHelper.orderItem(thisUIItem, _item, amountDesired);\n\t\t\t\t\t\t\tquantity.setText(String.valueOf(_item.getQuantity()));\n\t\t\t\t\t\t\tnumModel.setValue(1);\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else if(_item.inStock()) {\n\t\t\t\t\t\t\titemHelper.underStock(_item);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\titemHelper.stockOut(_item);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onCompletedClick(int position) {\n }", "@Override\n public void updateItem(FileTree item, boolean empty) {\n super.updateItem(item, empty);\n\n if (empty) {\n setText(null);\n setGraphic(null);\n } else {\n if (isEditing()) {\n if (text_field != null) {\n text_field.setText(getString());\n }\n setText(null);\n setGraphic(text_field);\n } else {\n setText(getString());\n setGraphic(getTreeItem().getGraphic());\n }\n }\n }", "public void setItemState(boolean isOn){\n\t\tthis.isWarningOn=isOn;\n\t\tbtn.setEnabled(!isOn);\n\t\tbtn.setBackground(this.getBackground());\n\t\twnd.setState(isOn);\n\t\tif (isOn)\n\t\t\twnd.setLabel(WarningText);\n\t\telse \n\t\t\twnd.setLabel((VariantPointConstants.isvShowLowStock() && quantity <= LowStockThreshold) \n\t\t\t\t\t? LowStockText : NormalText);\n\t}", "public void setDone(){\n this.status = \"Done\";\n }", "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.getCancelButton().setEnabled(!isLastStep);\n\t\t\n\t\tthis.getBackButton().setVisible(!isLastStep);\n\t\tthis.getBackButton().setEnabled(!isFirstStep && !isLastStep);\n\n\t\tthis.getNextButton().setVisible(!isLastStep);\n\t\tthis.getNextButton().setEnabled(!isLastStep && isValid);\n\n\t\tthis.getFinishButton().setEnabled(isLastStep);\n\t\tthis.getFinishButton().setVisible(isLastStep);\n\t}", "protected void updateStatus() {\n super.updateStatus();\n if (!getHaveData()) {\n if (getAllowMultiple()) {\n setStatus(\"Select one or more files\");\n } else {\n setStatus(\"Select a file\");\n }\n }\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n ScheduleItem item = itemList.get(position);\n item.setSelected(!item.isSelected());\n view.setBackgroundColor(item.isSelected() ? Color.rgb(27, 179, 245) : Color.WHITE);\n\n\n button.setEnabled(false);\n button.setBackgroundColor(Color.LTGRAY);\n for(ScheduleItem scheduleItem: itemList){\n if(scheduleItem.isSelected()){\n button.setEnabled(true);\n button.setBackgroundColor(Color.BLUE);\n }\n }\n\n\n }", "public void updateItemList(int position) {\n \t\n \tString temp[] = currentTaskItems.get(position);\n \tString[] temp2 = getCurrentItemTypes();\n \t\n \tIntent intent = new Intent(this, CreateItem.class);\n \tintent.putExtra(ITEM, temp);\n \tintent.putExtra(TYPES, temp2);\n \tintent.putExtra(EDIT, \"yes\");\n \tstartActivityForResult(intent, 2); \t \t\t\t\t\t\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_26.setVisibility(View.INVISIBLE);\r\n item26_t= item26;\r\n item26 = 0;\r\n Log.i(TAG,\"item26\" + item26);\r\n }else{\r\n spinner_item_26.setVisibility(View.VISIBLE);\r\n item26 = item26_t;\r\n Log.i(TAG,\"item26\" + item26);\r\n }\r\n }", "protected void updateItemIfNeeded(int oldIndex, T oldItem, boolean wasEmpty) {\r\n // weed out the obvious\r\n if (oldIndex != getIndex()) return;\r\n if (oldItem == null || getItem() == null) return;\r\n if (wasEmpty != isEmpty()) return;\r\n // here both old and new != null, check whether the item had changed\r\n if (oldItem != getItem()) return;\r\n // unchanged, check if it should have been changed\r\n T listItem = getTableView().getItems().get(getIndex());\r\n // update if not same\r\n if (oldItem != listItem) {\r\n // doesn't help much because itemProperty doesn't fire\r\n // so we need the help of the skin: it must listen\r\n // to invalidation and force an update if \r\n // its super wouldn't get a changeEvent\r\n updateItem(listItem, isEmpty());\r\n }\r\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_25.setVisibility(View.INVISIBLE);\r\n item25_t= item25;\r\n item25 = 0;\r\n Log.i(TAG,\"item25\" + item25);\r\n }else{\r\n spinner_item_25.setVisibility(View.VISIBLE);\r\n item25 = item25_t;\r\n Log.i(TAG,\"item25\" + item25);\r\n }\r\n }", "public void updateItem(Massage post, boolean empty) {\n super.updateItem(post, empty);\n if (post != null) {\n try {\n setGraphic(new MassageController(post).init());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public void onSetNewCurrentItem() {\n }", "public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}", "@Override\n public void onItemClick(View view, int position) {\n\n if (isFrom.equals(\"StartJob\"))\n {\n if (jobStatus.equals(IsEditVehicle)) {\n\n String truck_name = listTrckAvailble.get(position).getCustomName();\n String truck_type = listTrckAvailble.get(position).getVehicle().getTruckType().getTruckTypeName();\n String truck_size = listTrckAvailble.get(position).getVehicle().getDimension();\n String truck_id = String.valueOf(listTrckAvailble.get(position).getProviderVehicleId());\n Intent i = new Intent();\n i.putExtra(\"isEdit\", \"isTruckEdit\");\n i.putExtra(\"truck_name\", truck_name);\n i.putExtra(\"truck_id\", truck_id);\n i.putExtra(\"truck_type\", truck_type);\n i.putExtra(\"truck_size\", truck_size);\n setResult(4, i);\n finish();\n } else {\n String driver_name = listAvailableDriver.get(position).getDriverName();\n String driver_email = listAvailableDriver.get(position).getDriverEmail();\n String driver_mobile = listAvailableDriver.get(position).getDriverPhone();\n String driver_id = String.valueOf(listAvailableDriver.get(position).getDriverId());\n String driver_image = listAvailableDriver.get(position).getDriverPic();\n Intent i = new Intent();\n i.putExtra(\"isEdit\", \"isDriverEdit\");\n i.putExtra(\"driver_id\", driver_id);\n i.putExtra(\"driver_email\", driver_email);\n i.putExtra(\"driver_mobile\", driver_mobile);\n i.putExtra(\"driver_name\", driver_name);\n i.putExtra(\"driver_image\", driver_image);\n setResult(4, i);\n finish();\n }\n }\n if (isFrom.equals(\"Posted\")) {\n// return the the selected values on the on actvity result of EditAvailbleDriverOrTruckActivity based on the job status\n if (jobStatus.equals(IsEditVehicle)) {\n String truck_name = listTrckAvailble.get(position).getCustomName();\n String truck_type = listTrckAvailble.get(position).getVehicle().getTruckType().getTruckTypeName();\n String truck_size = listTrckAvailble.get(position).getVehicle().getDimension();\n String truck_id = String.valueOf(listTrckAvailble.get(position).getProviderVehicleId());\n Intent i = new Intent();\n i.putExtra(\"isEdit\", \"isTruckEdit\");\n i.putExtra(\"truck_name\", truck_name);\n i.putExtra(\"truck_id\", truck_id);\n i.putExtra(\"truck_type\", truck_type);\n i.putExtra(\"truck_size\", truck_size);\n setResult(2, i);\n finish();\n } else {\n String driver_name = listAvailableDriver.get(position).getDriverName();\n String driver_email = listAvailableDriver.get(position).getDriverEmail();\n String driver_mobile = listAvailableDriver.get(position).getDriverPhone();\n String driver_id = String.valueOf(listAvailableDriver.get(position).getDriverId());\n String driver_image = listAvailableDriver.get(position).getDriverPic() ;\n Toast.makeText(getApplicationContext(),driver_id,Toast.LENGTH_SHORT).show();\n Intent i = new Intent();\n i.putExtra(\"isEdit\", \"isDriverEdit\");\n i.putExtra(\"driver_id\", driver_id);\n i.putExtra(\"driver_email\", driver_email);\n i.putExtra(\"driver_mobile\", driver_mobile);\n i.putExtra(\"driver_name\", driver_name);\n i.putExtra(\"driver_image\", driver_image);\n setResult(2, i);\n finish();\n }\n }\n }", "public void setItemCheck(boolean isChecked, int position) {\n Item item = itemsList.get(position);\n item.setDone(isChecked);\n updateDB(item);\n }", "private void move_mode_true(MenuItem item) {\n\t\t/*----------------------------\n\t\t * Steps: Current mode => false\n\t\t * 1. Set icon => On\n\t\t * 2. move_mode => false\n\t\t * 2-2. TNActv.checkedPositions => clear()\n\t\t * \n\t\t * 2-3. Get position from preference\n\t\t * \n\t\t * 3. Re-set tiList\n\t\t * 4. Update aAdapter\n\t\t\t----------------------------*/\n\t\t\n\t\titem.setIcon(R.drawable.ifm8_thumb_actv_opt_menu_move_mode_off);\n\t\t\n\t\tmove_mode = false;\n\n\t\t// Log\n\t\tLog.d(\"TNActv.java\"\n\t\t\t\t+ \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\n\t\t\t\t\t\t.getLineNumber() + \"]\", \"move_mode => Now false\");\n\t\t/*----------------------------\n\t\t * 2-2. TNActv.checkedPositions => clear()\n\t\t\t----------------------------*/\n\t\tTNActv.checkedPositions.clear();\n\t\t\n\t\t/*----------------------------\n\t\t * 2-3. Get position from preference\n\t\t\t----------------------------*/\n\t\tint selected_position = Methods.get_pref(this, tnactv_selected_item, 0);\n\t\t\n\t\t/*----------------------------\n\t\t * 3. Re-set tiList\n\t\t\t----------------------------*/\n//\t\tString tableName = Methods.convertPathIntoTableName(this);\n\t\tString currentPath = Methods.get_currentPath_from_prefs(this);\n\t\t\n\t\tString tableName = Methods.convert_filePath_into_table_name(this, currentPath);\n\n\n\t\ttiList.clear();\n\n\t\t// Log\n\t\tLog.d(\"TNActv.java\"\n\t\t\t\t+ \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\n\t\t\t\t\t\t.getLineNumber() + \"]\", \"tiList => Cleared\");\n\n\t\tLog.d(\"TNActv.java\"\n\t\t\t\t+ \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\n\t\t\t\t\t\t.getLineNumber() + \"]\", \"checkedPositions.size() => \" + checkedPositions.size());\n\t\t\n\t\tif (long_searchedItems == null) {\n\n\t\t\ttiList.addAll(Methods.getAllData(this, tableName));\n\t\t\t\n\t\t} else {//if (long_searchedItems == null)\n\n//\t\t\ttiList = Methods.getAllData(this, tableName);\n//\t\t\ttiList = Methods.convert_fileIdArray2tiList(this, \"IFM8\", long_searchedItems);\n\t\t\t\n\t\t}//if (long_searchedItems == null)\n\n\t\t// Log\n\t\tLog.d(\"TNActv.java\"\n\t\t\t\t+ \"[\"\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2]\n\t\t\t\t\t\t.getLineNumber() + \"]\", \"tiList.size() => \" + tiList.size());\n\t\t\n\t\t/*----------------------------\n\t\t * 4. Update aAdapter\n\t\t\t----------------------------*/\n\t\tMethods.sort_tiList(tiList);\n\t\t\n\t\taAdapter = \n\t\t\t\tnew TIListAdapter(\n\t\t\t\t\t\tthis, \n\t\t\t\t\t\tR.layout.thumb_activity, \n\t\t\t\t\t\ttiList,\n\t\t\t\t\t\tCONS.MoveMode.OFF);\n\t\t\n\t\tsetListAdapter(aAdapter);\n\t\t\n\t\tthis.setSelection(selected_position);\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int nItem,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tPullDownListInfo pli = m_PDLI.get(nItem);\r\n\t\t\t\tif (!pli.getIsChoose()) {\r\n\t\t\t\t\tm_tvSortName.setText(pli.getText());\r\n\t\t\t\t\t//\r\n\t\t\t\t\tresetPullDownListView();\r\n\t\t\t\t\tpli.setIsChoose(true);\r\n\t\t\t\t\tm_PullDownLA.notifyDataSetChanged();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm_tvSortName\r\n\t\t\t\t\t\t.setBackgroundResource(R.drawable.common_tv_bg_pulldown_normal);\r\n\t\t\t\tm_PDLV.setVisibility(View.GONE);\r\n\r\n\t\t\t\tint nRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_NEW;\r\n\t\t\t\tswitch (nItem) {\r\n\t\t\t\tcase 1: {\r\n//\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_LIKE;\r\n//\t\t\t\t\tm_filters = getSearchHistory();\r\n\t//\r\n//\t\t\t\t\t// 友盟统计--任务--排序--猜你喜欢\r\n//\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Like\");\r\n//\t\t\t\t}\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\tcase 2: {\r\n//\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_PERIPHERY;\r\n//\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n//\t\t\t\t\tm_bIsSearch = false;\r\n\t//\r\n//\t\t\t\t\t// 友盟统计--任务--排序--周边职位\r\n//\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Reriphery\");\r\n//\t\t\t\t}\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\tcase 3: {\r\n\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_SORT;\r\n\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n\t\t\t\t\tm_bIsSearch = false;\r\n\r\n\t\t\t\t\t// 友盟统计--任务--排序--悬赏排名\r\n\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Sort\");\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 0:\r\n\t\t\t\tdefault: {\r\n\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_NEW;\r\n\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n\t\t\t\t\tm_bIsSearch = false;\r\n\r\n\t\t\t\t\t// 友盟统计--任务--排序--最新发布\r\n\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_New\");\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm_nListStatus = LISTVIEW_STATUS_ONREFRESH;\r\n\t\t\t\tm_lvReward.setLoading();\r\n\t\t\t\t// 获取悬赏任务列表\r\n\t\t\t\tstartGetData(HeadhunterPublic.REWARD_DIRECTIONTYPE_NEW, \"\",\r\n\t\t\t\t\t\tnRequestType);\r\n\t\t\t}", "@Override\n public void onDone(boolean state, ArrayList<Ingredient> list) {\n Log.i(\"AddDinnerActivity\", \"Got list from fragment: \" + list.toString());\n if (state) {\n ingredientList = new ArrayList<>();\n ingredientList = list;\n Log.d(TAG, \"Updated ingredientList from fragment \" + ingredientList);\n updateAdapter();\n }\n }", "@Override\r\n public void onCheckedChanged(CompoundButton buttonView,\r\n boolean isChecked) {\n if(isChecked){\r\n spinner_item_24.setVisibility(View.INVISIBLE);\r\n item24_t= item24;\r\n item24 = 0;\r\n Log.i(TAG,\"item24\" + item24);\r\n }else{\r\n spinner_item_24.setVisibility(View.VISIBLE);\r\n item24 = item24_t;\r\n Log.i(TAG,\"item24\" + item24);\r\n }\r\n }", "@Override\n public void onItemCheck(ToDoItem item, int position) {\n int id = dbHelper.getID(item);\n dbHelper.setCompleted(item, true);\n Toast.makeText(getContext(), \"'\" + item.getName() + \"' is completed!\", Toast.LENGTH_LONG).show();\n NotificationManagerCompat notificationManager = NotificationManagerCompat.from(getContext());\n notificationManager.cancel(id);\n\n Intent intent = new Intent(getContext(), ToDoAlarmReceiver.class);\n intent.putExtra(\"ToDoName\", item.getName());\n intent.putExtra(\"AlarmID\", id);\n MainActivity.stopAlarm(getContext(), intent);\n\n mAdapter.notifyItemRemoved(position);\n }", "public void markTaskItemAsComplete(int index) throws Exception {\n toggleBookMark(index, true);\n }", "public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n itemPosition = position;\n // ListView Clicked item value\n String itemValue = (String) listView.getItemAtPosition(position);\n if(check.equals(\"true\")){\n if(MainActivity.bm.checkBooked(admin, itemValue)){\n new AlertDialog.Builder(Search_Itinerary_ResultActivity.this)\n .setTitle( \"BOOK ITINERARY\" )\n .setMessage( \"You already booked this itinerary: \"+\"\\n\" + itemValue)\n .setNegativeButton( \"back\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d( \"AlertDialog\", \"Negative\" );\n }\n } )\n .show();\n }\n else{\n new AlertDialog.Builder(Search_Itinerary_ResultActivity.this )\n .setTitle( \"BOOK ITINERARY\" )\n .setMessage( \"Do you want book this itinerary:\"+\"\\n\" + itemValue)\n .setPositiveButton( \"YES\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d(\"AlertDialog\", \"Positive\");\n MainActivity.bm.bookItinerary(admin, itineraries.get(itemPosition));\n //save the client info\n try {\n MainActivity.saveFileBook();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // modify the fm\n for(Flight flight:itineraries.get(itemPosition).itinerary){\n MainActivity.fm.getFlight(flight.flightNum).bookFlight();\n }\n try {\n MainActivity.saveFileFlight();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Intent intent = new Intent(\n Search_Itinerary_ResultActivity.this,\n View_Booked_ItinerariesActivity.class);\n intent.putExtra(MainActivity.USER, email);\n intent.putExtra(MainActivity.CHECK_ADMIN, check);\n startActivity(intent);\n }\n })\n .setNegativeButton( \"NO\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d( \"AlertDialog\", \"Negative\" );\n }\n } )\n .show();\n }\n\n }\n else{\n if(MainActivity.bm.checkBooked(client, itemValue)){\n new AlertDialog.Builder(Search_Itinerary_ResultActivity.this)\n .setTitle( \"BOOK ITINERARY\" )\n .setMessage( \"You already booked this itinerary: \"+\"\\n\" + itemValue)\n .setNegativeButton( \"back\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d( \"AlertDialog\", \"Negative\" );\n }\n } )\n .show();\n }\n // Client\n else{\n new AlertDialog.Builder(Search_Itinerary_ResultActivity.this )\n .setTitle( \"BOOK ITINERARY\" )\n .setMessage( \"Do you want book this itinerary:\"+\"\\n\" + itemValue)\n .setPositiveButton( \"YES\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d( \"AlertDialog\", \"Positive\" );\n // if client able to book\n System.out.println(itemPosition);\n MainActivity.bm.bookItinerary(client, itineraries.get(itemPosition));\n //save the client info\n try {\n MainActivity.saveFileBook();\n } catch (ClassNotFoundException e) {\n\n e.printStackTrace();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n // modify the fm\n for(Flight flight:itineraries.get(itemPosition).itinerary){\n MainActivity.fm.getFlight(flight.flightNum).bookFlight();\n }\n try {\n MainActivity.saveFileFlight();\n } catch (ClassNotFoundException e) {\n\n e.printStackTrace();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n Intent intent = new Intent(\n Search_Itinerary_ResultActivity.this,\n View_Booked_ItinerariesActivity.class);\n intent.putExtra(MainActivity.USER, email);\n intent.putExtra(MainActivity.CHECK_ADMIN, check);\n startActivity(intent);\n }\n })\n .setNegativeButton( \"NO\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d( \"AlertDialog\", \"Negative\" );\n }\n } )\n .show();\n }\n }\n }", "@Override\n public void onClick(View view) {\n if(view.isSelected()){\n view.setSelected(false);\n selectedList.remove((Integer) getAdapterPosition());\n }\n else{\n view.setSelected(true);\n selectedList.add((Integer) getAdapterPosition());\n }\n\n //when a meta magic is selected we allow the modifications\n if(! (selectedList == null) && ! selectedList.isEmpty()){\n parent.findViewById(R.id.buttonDelete).setEnabled(true);\n\n //we allow modification only if there is one item selected\n if(selectedList.size() == 1)\n {\n parent.findViewById(R.id.buttonEdit).setEnabled(true);\n }\n else\n {\n parent.findViewById(R.id.buttonEdit).setEnabled(false);\n }\n\n }\n else{\n parent.findViewById(R.id.buttonDelete).setEnabled(false);\n parent.findViewById(R.id.buttonEdit).setEnabled(false);\n }\n\n }", "public void UpdateCommandsUI(){\n Button B;\n try{\n for (int i = 0; i < f.getNumComp(); i++) {\n B = (Button) findViewById(300000 + i); //Buy Button\n if(dayOpen & (p.getMoney()>0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(dayOpen & (p.getLevel()>= 4)){\n B.setEnabled(true);\n B.setTextColor(0xffff0000);\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n\n B = (Button) findViewById(400000 + i); //Sell Button\n if (dayOpen & (f.getSharesOwned(i) > 0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(p.getLevel()>=4 & !f.isShorted(i) & dayOpen){\n B.setEnabled(true);\n B.setTextColor(0xffff0000); //Red Color for short positions\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "public void handleUpdateItemButtonAction(ActionEvent event) {\n //delete all panes on actionHolderPane and add the updateItemPane\n setAllChildrenInvisible();\n updateItemPane.setVisible(true);\n this.handleOnShowAnimation(actionHolderPane);\n }", "@Override\n public void onClick(View buttonView) {\n {\n String tgName = (buttonView.getTag(R.string.TOGGLE_GROUP) != null?\n (String)buttonView.getTag(R.string.TOGGLE_GROUP):\n \"\");\n for(CheckBox b: getCheckBoxes()) {\n if (b == buttonView) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), b.isChecked());\n continue;\n }\n if (b.getTag(R.string.TOGGLE_GROUP) != null) {\n String btgName = (String) b.getTag(R.string.TOGGLE_GROUP);\n if (tgName.equalsIgnoreCase(btgName)) {\n if (b.isChecked()) {\n updateJSON((String)b.getTag(R.string.JSON_ITEM_INDEX), b.getTag(R.string.JSON_OBJECT), false);\n }\n b.setChecked(false);\n }\n }\n }\n }\n if (!canSelect((CompoundButton)buttonView)) {\n Toast.makeText(\n getContext(),\n \"Limited to [\" + max_select + \"] items.\",\n Toast.LENGTH_SHORT)\n .show();\n }\n }", "public void actionPerformed(ActionEvent e) {\n if(e.getActionCommand().equals(\"Update\")){\n httpmethods httpmethods = new httpmethods();\n\n //Store textfield text in string\n String itemID = txtItemID.getText();\n String itemName = txtItemName.getText();\n String itemType = txtItemType.getText();\n String itemPrice = txtItemPrice.getText();\n String itemStock = txtItemStock.getText();\n\n //Read method\n Item it = httpmethods.findItem(itemID);\n\n //booleans for checking valid input\n boolean nameCheck, priceCheck, stockCheck, typecheck;\n\n if(itemType==null || !itemType.matches(\"[a-zA-Z]+\")){\n typecheck = false;\n txtItemType.setText(\"Invalid Type Input\");\n }\n else{\n typecheck = true;\n }\n\n if(!itemName.matches(\"[a-zA-Z0-9]+\")){\n nameCheck = false;\n txtItemName.setText(\"Invalid Name Input\");\n }\n else{\n nameCheck = true;\n }\n\n if(GenericHelper.validNumber(itemPrice)){\n priceCheck = true;\n }\n else{\n priceCheck = false;\n txtItemPrice.setText(\"Invalid Price Input\");\n }\n\n if(GenericHelper.validNumber(itemStock)){\n stockCheck = true;\n }\n else{\n stockCheck = false;\n txtItemStock.setText(\"Invalid Stock Input\");\n }\n\n //If all are valid then call update httpmethod\n if(nameCheck && typecheck && priceCheck && stockCheck){\n double ditemPrice = Double.parseDouble(itemPrice);\n double ditemStock = Double.parseDouble(itemStock);\n item = new Item.Builder().copy(it).itemName(itemName).itemType(itemType).itemPrice(ditemPrice).itemStock(ditemStock).builder();\n httpmethods.updateItem(item);\n txtItemName.setText(\"\");\n txtItemType.setText(\"\");\n txtItemPrice.setText(\"\");\n txtItemStock.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Item Updated\");\n }\n\n\n }\n\n //When Get Info Button is clicked\n if(e.getActionCommand().equals(\"Get Info\")){\n boolean idCheck;\n\n //Use read method of readitemgui\n String id = txtItemID.getText();\n httpmethods httpmethods = new httpmethods();\n Item it = httpmethods.findItem(id);\n txtItemName.setText(it.getItemName());\n txtItemType.setText(it.getItemType());\n\n //Doubles are stored in string without decimals\n String price = String.valueOf(it.getItemPrice()).split(\"\\\\.\")[0];;\n String stock = String.valueOf(it.getItemStock()).split(\"\\\\.\")[0];\n txtItemPrice.setText(price);\n txtItemStock.setText(stock);\n }\n\n //When Clear Button is clicked\n if(e.getActionCommand().equals(\"Clear\")){\n txtItemID.setText(\"\");\n txtItemName.setText(\"\");\n txtItemType.setText(\"\");\n txtItemPrice.setText(\"\");\n txtItemStock.setText(\"\");\n }\n\n //When Exit Button is clicked\n if(e.getActionCommand().equals(\"Exit\")){\n UpdateItemFrame.dispose();\n }\n }", "@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view,\n int position, long id) {\n for (int i = 0; i < list.size(); i++) {\n if (!list.get(i).getId().equals(sublist.get(position).getId())) {\n list.get(i).setSelect(false);\n }\n }\n\n if (sublist.get(position).isSelect()) {\n sublist.get(position).setSelect(false);\n if (mHandler != null) {\n Message message = mHandler.obtainMessage();\n Bundle bundle = new Bundle();\n message.what = Constants.NOT_SHOW_UPLOAD_BTN;\n bundle.putString(\"img_path\", sublist.get(position).getImagePath());\n message.setData(bundle);\n mHandler.sendMessage(message);\n }\n } else {\n sublist.get(position).setSelect(true);\n if (mHandler != null) {\n Message message = mHandler.obtainMessage();\n Bundle bundle = new Bundle();\n message.what = Constants.SHOW_UPLOAD_BTN;\n bundle.putString(\"img_path\", sublist.get(position).getImagePath());\n bundle.putString(\"img_name\", sublist.get(position).getDisplayname());\n message.setData(bundle);\n mHandler.sendMessage(message);\n }\n }\n\n adapter.refreshItem(position);\n\n return true;\n }", "public void setItems() {\n if (partSelected instanceof OutSourced) { // determines if part is OutSourced\n outSourcedRbtn.setSelected(true);\n companyNameLbl.setText(\"Company Name\");\n OutSourced item = (OutSourced) partSelected;\n idTxt.setText(Integer.toString(item.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(item.getPartName());\n invTxt.setText(Integer.toString(item.getPartInStock()));\n costTxt.setText(Double.toString(item.getPartPrice()));\n maxTxt.setText(Integer.toString(item.getMax()));\n minTxt.setText(Integer.toString(item.getMin()));\n idTxt.setText(Integer.toString(item.getPartID()));\n companyNameTxt.setText(item.getCompanyName());\n }\n if (partSelected instanceof InHouse) { // determines if part Is InHouse\n inHouseRbtn.setSelected(true);\n companyNameLbl.setText(\"Machine ID\");\n InHouse itemA = (InHouse) partSelected;\n idTxt.setText(Integer.toString(itemA.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(itemA.getPartName());\n invTxt.setText(Integer.toString(itemA.getPartInStock()));\n costTxt.setText(Double.toString(itemA.getPartPrice()));\n maxTxt.setText(Integer.toString(itemA.getMax()));\n minTxt.setText(Integer.toString(itemA.getMin()));\n idTxt.setText(Integer.toString(itemA.getPartID()));\n companyNameTxt.setText(Integer.toString(itemA.getMachineID()));\n\n }\n }", "public static boolean toggleComplete(Task task) {\n Boolean complete = task.getCompleted(); // Get the current value\n\n // TOGGLE COMPLETE\n if (complete) // store the opposite of the current value\n complete = false;\n else\n complete = true;\n try{\n String query = \"UPDATE TASK SET ISCOMPLETE = ? WHERE (NAME = ? AND COLOUR = ? AND DATE = ?)\"; // Setup query for task\n PreparedStatement statement = DatabaseHandler.getConnection().prepareStatement(query); // Setup statement for query\n statement.setString(1, complete.toString()); // Store new isCompleted value\n statement.setString(2, task.getName()); // store values of task\n statement.setString(3, task.getColor().toString());\n statement.setString(4, Calendar.selectedDay.getDate().toString());\n int result = statement.executeUpdate(); // send out the statement\n if (result > 0){ // If swapped successfully, re-load the tasks\n getMainController().loadTasks(); // Reload the task list to update the graphics.\n }\n return (result > 0);\n } catch (SQLException e) {\n e.printStackTrace(); // If task was unable to be edited\n e.printStackTrace(); // Create alert for failing to edit\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setHeaderText(null);\n alert.setContentText(\"Unable to edit task.\");\n alert.showAndWait();\n }\n return false;\n }", "private void reDrowStatusCard() {\n \t\tint currentInstance= Storage_access.getCurrentProjectInstanceBDDID() ;\n \t\t\n \t\tdispatcher.execute(new GetActivityStateAction(currentInstance), new AsyncCallback<GetActivityStateActionResult>() {\n \n \t\n \n \t\t\t@Override public void onFailure(Throwable arg0) {\n \t\t\t\tSystem.out.println(\"!!!!!!!!!!!!!!!!!!!!!**** failed to get activities status\");\n \n \t\t\t}\n \n \t\t\t@Override public void onSuccess(GetActivityStateActionResult result) {\n \t\t\t\tfor (int i=0; i< Storage_access.getNumberOfCard(); i++) {\n \t\t\t\t\tString card = Storage_access.getCard(i);\n \t\t\t\t\tActivityState_dto a = result.getActivitiesState().get(\"\"+Storage_access.getBddIdCard(card));\n \t\t\t\t\tif (a == null) \n \t\t\t\t\t\tStorage_access.revoveFromSlot(i);\t\n \t\t\t\t\telse \n \t\t\t\t\t\tStorage_access.setSlotCard(i, a.getDay(), a.getPeriod());\t\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\teventBus.fireEvent( \n \t\t\t\t\t\tnew BoardViewChangedEvent(getView().getCombo_viewChoice1().getSelectedIndex(),\n \t\t\t\t\t\t\t\t\t\t\t\t getView().getCombo_viewChoice2().getSelectedIndex())\n \t\t\t\t\t\t);\n \t\t\t\t//Storage_access.printStorage();\n \t\t\t}\n \n \t\t\t});\n \n \t\t\n \t}", "@Override\n public void onClick(View v) {\n if (AddNewCarActivity.isedit) {\n if (!AddNewCarActivity.addCarModelObject.getStrStatus().contains(edt_Status.getText().toString()) && !AddNewCarActivity.addCarModelObject.editFilied.contains(ParamsKey.KEY_vehicleStatus)) {\n AddNewCarActivity.addCarModelObject.editFilied.add(ParamsKey.KEY_vehicleStatus);\n }\n }\n AddNewCarActivity.addCarModelObject.setStrStatus(edt_Status.getText().toString().trim());\n callbackAdd.onNextSecected(false, null);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(!order.get(position).getKitchenStaus().contentEquals(\"Completed\"))\n\t\t\t\t{\n\t\t\t\t\tString description=order.get(position).getVchFoodDescription();\n\t\t\t\t\tif (description != null && !description.isEmpty() && !description.equals(\"null\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tdescription=order.get(position).getVchFoodDescription();\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tdescription=\" \";\n\t\t\t\t\t}\n\t\t\t\t\tEditOrderDetailsActivity editOrderDetailsActivity = new EditOrderDetailsActivity();\n\t\t\t\t\tBundle args = new Bundle();\n\t\t\t\t\targs.putString(\"Id\", order.get(position).getId());\n\t\t\t\t\targs.putString(\"MenuName\", order.get(position).getMenu_Name());\n\t\t\t\t\targs.putString(\"Qty\", order.get(position).getQty());\n\t\t\t\t\targs.putString(\"Price\", order.get(position).getPrice());\n\t\t\t\t\targs.putString(\"OrderId\", order.get(position).getOrder_Id());\n\t\t\t\t\targs.putString(\"TableName\", order.get(position).getTable_Name());\n\t\t\t\t\targs.putString(\"pagename\",pagenamee);\n\t\t\t\t\targs.putString(\"FoodDescription\",description);\n\t\t\t\t\teditOrderDetailsActivity.setArguments(args);\n\t\t\t\t\tMainActivity.fragmentManager.beginTransaction().replace(R.id.content_main, editOrderDetailsActivity).commitAllowingStateLoss();\n\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(context,\"You Cannot Edited Or Delete this Order\",Toast.LENGTH_SHORT);\n\t\t\t\t}\n\n\t\t\t}" ]
[ "0.6499929", "0.61665344", "0.61504716", "0.6120052", "0.60636574", "0.6044803", "0.600995", "0.5995826", "0.5974954", "0.59745145", "0.5973556", "0.59696627", "0.5951985", "0.594856", "0.59118783", "0.5891657", "0.58869123", "0.58653307", "0.5850096", "0.58472013", "0.58351105", "0.5826396", "0.58187544", "0.57784015", "0.57618076", "0.57576615", "0.5752227", "0.5739828", "0.57352036", "0.5731521", "0.57138103", "0.57061684", "0.5702103", "0.56977826", "0.56911254", "0.5686061", "0.566981", "0.5668931", "0.56635064", "0.5658178", "0.56475013", "0.5644569", "0.5644569", "0.5634449", "0.56216156", "0.56127536", "0.56113046", "0.56094736", "0.55891633", "0.5586444", "0.5583011", "0.5569706", "0.55590785", "0.5551566", "0.5551213", "0.55430293", "0.5537606", "0.55372477", "0.55293906", "0.55193996", "0.55167365", "0.5515414", "0.5511511", "0.55009705", "0.54994386", "0.5497177", "0.5490591", "0.5488465", "0.54840773", "0.54824466", "0.54823416", "0.5472869", "0.5464121", "0.5461453", "0.5457494", "0.5454414", "0.5452235", "0.54508144", "0.54461354", "0.5445136", "0.5433368", "0.54333615", "0.54257506", "0.54252094", "0.5420249", "0.54200983", "0.5418104", "0.54155064", "0.54107815", "0.54101926", "0.5405238", "0.54047614", "0.5403615", "0.5401334", "0.5396031", "0.53941065", "0.53914636", "0.5385996", "0.53840405", "0.5377073", "0.5361627" ]
0.0
-1
Here we are going to filter and just show the items that are completed in the list. Also, we are going to check if the Show_Incompleted_Items is marked, in order to disable that option and enable this new option of filtering Show_Completed_Items. We have to use the List and ListItems class to show all the information about these ones
@FXML public void Show_Completed_Items(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Show_only_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "public void hide_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(!selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "private void updateListVisibility() {\n switch (currentFilter) {\n case 0: // Available quests...\n if (user.getInt(QuestApp.ALIGNMENT_KEY) == 0) { //... for good heroes\n setListAdapter(adapterAvailableGood);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 1) { //... for neutral heroes\n setListAdapter(adapterAvailableNeutral);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 2){ //... for evil heroes\n setListAdapter(adapterAvailableEvil);\n }\n break;\n case 1: // Accepted quests\n setListAdapter(adapterAccepted);\n break;\n case 2: // Completed quests\n setListAdapter(adapterCompleted);\n break;\n }\n }", "public void updateAllFilteredListToShowAllActiveEntries();", "void updateFilteredListToShowAll();", "void updateFilteredListToShowAll();", "@VTID(30)\n boolean getShowAllItems();", "void updateFilteredListsToShowAll();", "Boolean isCurrentListDoneList();", "@Test\n void testFilterList(){\n ToDoList todoList = new ToDoList();\n ToDo todo1 = new ToDo(\"Todo1\");\n todo1.setInhalt(\"Dies ist ein Test\");\n\n todoList.add(new ToDo((\"Todo2\")));\n ToDo todo3 = new ToDo(\"Todo3\");\n todo3.setInhalt(\"3+3=6\");\n todo3.setStatus(Status.IN_ARBEIT);\n todoList.add(new ToDo((\"Todo4\")));\n todoList.add(todo3);\n ToDo todo4 = new ToDo(\"Trala\");\n todo4.setStatus(Status.IN_ARBEIT);\n todo4.setStatus(Status.BEENDET);\n todo4.setInhalt(\"ab\");\n ToDo todo5 = new ToDo(\"Trala\");\n todo5.setInhalt(\"aa\");\n todo5.setStatus(Status.IN_ARBEIT);\n todo5.setStatus(Status.BEENDET);\n todoList.add(todo5);\n todoList.add(todo4);\n todoList.add(todo1);\n\n ToDoList open = todoList.getStatusFilteredList(Status.OFFEN);\n assertEquals(3, open.size());\n\n ToDoList inwork = todoList.getStatusFilteredList(Status.IN_ARBEIT);\n assertEquals(1, inwork.size());\n\n ToDoList beendet = todoList.getStatusFilteredList(Status.BEENDET);\n assertEquals(2, beendet.size());\n }", "private void filterHidden() {\n final List<TreeItem<File>> filterItems = new LinkedList<>();\n\n for (TreeItem<File> item : itemList) {\n if (isCancelled()) {\n return;\n }\n\n if (!shouldHideFile.test(item.getValue())) {\n filterItems.add(item);\n\n if (shouldSchedule(filterItems)) {\n scheduleJavaFx(filterItems);\n filterItems.clear();\n }\n }\n }\n\n scheduleJavaFx(filterItems);\n Platform.runLater(latch::countDown);\n }", "@FXML\n void showCompletedTasksClicked(ActionEvent event)\n {\n ObservableList<Item> completedTasks = FXCollections.observableArrayList();\n\n if(showCompletedTasks.isSelected())\n {\n // Have it display in listView\n // First need to remove all the items in listView and then display only completed\n showIncompleteTasks.setSelected(false);\n\n listView.getItems().clear();\n\n // Creating a list with only completed tasks\n createList(true, completedTasks);\n\n listView.refresh();\n }\n\n listView.setItems(completedTasks);\n\n if(!showIncompleteTasks.isSelected())\n {\n // Uncheck the checkbox\n listView.getItems().clear();\n\n // Add all items to the table\n for(Item item : Item.getToDoList())\n {\n listView.getItems().add(Item.getToDoList().get(Item.getToDoList().indexOf(item)));\n }\n\n listView.refresh();\n }\n }", "@FXML\n void showIncompleteTasksClicked(ActionEvent event)\n {\n ObservableList<Item> incompleteTasks = FXCollections.observableArrayList();\n\n if(showIncompleteTasks.isSelected())\n {\n // Have it display in listView\n // First need to remove all the items in listView and then display only incomplete\n showCompletedTasks.setSelected(false);\n\n listView.getItems().clear();\n\n createList(false, incompleteTasks);\n\n listView.refresh();\n }\n\n listView.setItems(incompleteTasks);\n\n if(!showIncompleteTasks.isSelected())\n {\n // Uncheck the checkbox\n listView.getItems().clear();\n\n // Add all items to the table\n for(Item item : Item.getToDoList())\n {\n listView.getItems().add(Item.getToDoList().get(Item.getToDoList().indexOf(item)));\n }\n\n listView.refresh();\n }\n }", "public boolean hasVisibleItems();", "void printFilteredItems();", "public void showComplete() {\r\n showCompleted = !showCompleted;\r\n todoListGui();\r\n }", "public String visibleItems() {\n \tStringBuilder s = new StringBuilder(\"\");\n for (Item item : items) {\n if (item instanceof Visible && item.isVisible()) {\n s.append(\"\\nThere is a '\").append(item.detailDescription()).append(\"' (i.e. \" + item.description() + \" ) here.\");\n }\n }\n return s.toString();\n }", "public boolean isInterestedInAllItems();", "public void filterByFoDisplayAll(){\n // add them into the new list\n for (int i = 0; i < moodListBeforeFilterFo.getCount(); i++ ){\n moodListAfterFilter.add(moodListBeforeFilterFo.getMoodEvent(i));\n }\n }", "private void showFilteredList(ArrayList<PropertyListBean.Data> data) {\n try {\n for (int i = 0; i < data.size(); i++) {\n int flag = 0;\n if ((filter.get(\"2BHK\") == 1 && data.get(i).getType().equalsIgnoreCase(\"BHK2\"))\n || (filter.get(\"3BHK\") == 1 && data.get(i).getType().equalsIgnoreCase(\"BHK3\"))\n || (filter.get(\"4BHK\") == 1 && data.get(i).getType().equalsIgnoreCase(\"BHK4\"))\n || (filter.get(\"AP\") == 1 && data.get(i).getBuildingType().equalsIgnoreCase(\"AP\"))\n || (filter.get(\"IF\") == 1 && data.get(i).getBuildingType().equalsIgnoreCase(\"IF\"))\n || (filter.get(\"IH\") == 1 && data.get(i).getBuildingType().equalsIgnoreCase(\"IH\"))\n || (filter.get(\"FF\") == 1 && data.get(i).getFurnishing().equalsIgnoreCase(\"FULLY_FURNISHED\"))\n || (filter.get(\"SF\") == 1 && data.get(i).getFurnishing().equalsIgnoreCase(\"SEMI_FURNISHED\"))) {\n flag = 1;\n }\n if (flag == 1) {\n propertyList.add(data.get(i));\n }\n }\n mPlistAdapter.setArraylist(propertyList);\n if (pageNo == 1) {\n mPListView.setAdapter(mPlistAdapter);\n }\n mPlistAdapter.notifyDataSetChanged();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void setDisplayDoneItems(ActionEvent actionEvent) {\n // we will simply loop through all of our items and\n // store the ones that are not yet done in a temporary tdlist\n // and then displayTODOs(tdlist) the result\n }", "List<JSONObject> getFilteredItems();", "private void checkItemsAvailability() {\n if (noItemsText != null && itemList != null && itemRecyclerView != null) {\n if (itemList.size() < 1) {\n itemRecyclerView.setVisibility(View.GONE);\n noItemsText.setVisibility(View.VISIBLE);\n } else {\n noItemsText.setVisibility(View.GONE);\n itemRecyclerView.setVisibility(View.VISIBLE);\n }\n }\n }", "@VTID(31)\n void setShowAllItems(\n boolean rhs);", "public void filterByMyDisplayAll(){\n // add them into the new list\n for (int i = 0; i < moodListBeforeFilterMy.getCount(); i++ ){\n moodListAfterFilter.add(moodListBeforeFilterMy.getMoodEvent(i));\n }\n }", "private void syncListFromTodo() {\r\n DefaultListModel<String> dlm = new DefaultListModel<>();\r\n for (Task task : myTodo.getTodo().values()) {\r\n if (!task.isComplete() || showCompleted) {\r\n String display = String.format(\"%1s DueDate: %10s %s %3s\", task.getName(), task.getDueDate(),\r\n task.isComplete() ? \" Completed!\" : \" Not Completed\", task.getPriority());\r\n dlm.addElement(display);\r\n list.setFont(new Font(\"TimesRoman\", Font.PLAIN, 15));\r\n }\r\n }\r\n list.setModel(dlm);\r\n }", "public List<Item> getAllItemsAvailable();", "public final void filterResponse(List<TitleInstructionItem> list) {\n ArrayList arrayList = new ArrayList();\n ArrayList arrayList2 = new ArrayList();\n for (TitleInstructionItem titleInstructionItem : list) {\n if (titleInstructionItem.getTitleDeliveryMethodCode() == null) {\n arrayList2.add(titleInstructionItem);\n } else {\n arrayList.add(titleInstructionItem);\n }\n }\n this.notSetList.clear();\n this.setList.clear();\n this.setList = new ArrayList<>(CollectionsKt.sortedWith(arrayList, new SaleDocListActivity$filterResponse$$inlined$compareBy$1()));\n this.notSetList = new ArrayList<>(CollectionsKt.sortedWith(arrayList2, new SaleDocListActivity$filterResponse$$inlined$compareBy$2()));\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n adapter.setFilter(lista1);\n return true; // Return true to collapse action view\n }", "private void setUpFilter() {\n List<Department> departmentsList = departmentService.getAll(0, 10000);\n departments.setItems(departmentsList);\n departments.setItemLabelGenerator(Department::getDepartment_name);\n departments.setValue(departmentsList.get(0));\n category.setItems(\"Consumable\", \"Asset\", \"%\");\n category.setValue(\"%\");\n status.setItems(\"FREE\", \"IN USE\", \"%\");\n status.setValue(\"%\");\n show.addClickListener(click -> updateGrid());\n }", "public SelectItem[] getStatusFilterItems() {\n return STATUS_FILTER_ITEMS;\n }", "public boolean getShowInTaskList(){\n Boolean show = getGeneralProperties().getBooleanAsObj(PROP_GET_SHOW_IN_TASK_LIST);\n if (show==null){\n return true;\n } else {\n return show.booleanValue();\n }\n }", "public void setCurrentListToBeDoneList();", "private void actionShowFilters() {\n filterDialog.resetUnfilteredList(Client.reportMap.values());\n filterDialog.show();\n }", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "public void UpdateHideOrShow(String commoditId, String status) {\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i < filteredList.size(); i++) {\n\t\t\t\tif (filteredList.get(i).getId().equalsIgnoreCase(commoditId)) {\n\t\t\t\t\tfilteredList.get(i).setStatusPrice(status);\n\t\t\t\t}\n\t\t\t\tif (commodityDetails.get(i).getId()\n\t\t\t\t\t\t.equalsIgnoreCase(commoditId)) {\n\t\t\t\t\tcommodityDetails.get(i).setStatusPrice(status);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tCollections.sort(filteredList, convertStringToDateAndCompare);\n\t\t\tnotifyDataSetChanged();\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "public void browseImportantItem(){\n for(Item item : importantItemList){\n if(item.getImportance().equals(\"yes\")){\n printOut(item);\n }\n }\n }", "private void doViewAllCompletedTasks() {\n ArrayList<Task> t1 = todoList.getListOfCompletedTasks();\n if (t1.size() > 0) {\n for (Task task : t1) {\n System.out.println(task.getTime() + \" \" + task.getDescription() + \" \" + task.getDate());\n }\n } else {\n System.out.println(\"No completed tasks available.\");\n }\n }", "private void filterItems()\n {\n System.out.println(\"filtered items (name containing 's'):\");\n Set<ClothingItem> items = ctrl.filterItemsByName(\"s\");\n items.stream().forEach(System.out::println);\n }", "boolean isHiddenFromList();", "public void displaySelections() {\n List<VendingItem> listOfItems = service.getAllItemsNonZero(); //<-- uses lambda\n view.displaySelections(listOfItems);\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n adapter.setFilter(resultAlls);\n return true; // Return true to collapse action view\n }", "@Override\n public boolean areAllItemsEnabled() {\n return false;\n }", "private void initializeList() {\n findViewById(R.id.label_operation_in_progress).setVisibility(View.GONE);\n adapter = new MapPackageListAdapter();\n listView.setAdapter(adapter);\n listView.setVisibility(View.VISIBLE);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n \n @Override\n public void onItemClick(AdapterView<?> parent, final View view, final int position, long id) {\n List<DownloadPackage> childPackages = searchByParentCode(currentPackages.get(position).getCode());\n if (childPackages.size() > 0) {\n currentPackages = searchByParentCode(currentPackages.get(position).getCode());\n adapter.notifyDataSetChanged();\n }\n }\n });\n }", "@Override\n public Filter getFilter() {\n return main_list_filter;\n }", "@SuppressWarnings(\"unchecked\")\n public List<Item> getActiveTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item where status = 0\").list();\n session.close();\n return list;\n }", "ObservableList<Task> getFilteredTaskList();", "private void applyFilters() {\n Task task = new Task() {\n @Override\n public Object call() {\n long start = System.currentTimeMillis();\n System.out.println(\"Applying filters! \" + filterList.size());\n filteredRowItemList = fullCustomerRowItemList;\n for (CustomerListFilter eachFilter : filterList) {\n eachFilter.setCustomerList(filteredRowItemList);\n filteredRowItemList = eachFilter.run();\n }\n System.out.println(\"Filtering took : \" + (System.currentTimeMillis() - start) + \" ms\");\n searchResultsTable.setItems(filteredRowItemList);\n customerCountStatus.setText(Integer.toString(filteredRowItemList.size()));\n return null;\n }\n };\n task.run();\n }", "private List<ToDoItem> refreshItemsFromMobileServiceTable() throws ExecutionException, InterruptedException {\n //List list = mToDoTable.where ( ).field (\"complete\").eq(val(false)).execute().get();\n return mToDoTable.where ().field (\"userId\").eq (val (userId)).and(mToDoTable.where ( ).field (\"complete\").eq(val(false))).execute().get();\n }", "private List<InventoryBO> shortListRelevantInventory(final ItemBO anItem)\n\t{\n\t\tfinal InventoryBO selected = anItem.getSelectedInventory();\n\t\tfinal InventoryBO main = anItem.getMainDCInventory();\n\n\t\tlogger.info(\"shortListRelevantInventory(...): selected: \" + selected);\n\t\tlogger.info(\"shortListRelevantInventory(...): main: \" + main);\n\t\tlogger.info(\"shortListRelevantInventory(...): ------------------------\");\n\t\t\n\t\tfinal Set<InventoryBO> temp = new HashSet<InventoryBO>();\n\t\tif (selected != null)\n\t\t{\n\t\t\ttemp.add(selected);\n\t\t}\n\t\tif (main != null)\n\t\t{\n\t\t\ttemp.add(main);\n\t\t}\n\n\t\treturn new ArrayList<InventoryBO>(temp);\n\t}", "@Override\n public int getItemCount() {\n return filteredList.size();\n }", "@Override\n\tpublic boolean showInList()\n\t{\n\t\treturn true;\n\t}", "ObservableList<Deliverable> getFilteredDeliverableList();", "@GetMapping({\"/\", \"/list\"}) // when is active true -> printing only with done=true, using stream in service\n public String list (Model model, @RequestParam (required = false) boolean isActive, @RequestParam(required = false) String searchInput) {\n if (isActive == true) {\n model.addAttribute(\"todos\", todoService.onlyActive());\n }\n else if(searchInput==null) {\n model.addAttribute(\"assignees\", assigneeService.allAssignee());\n model.addAttribute(\"todos\", todoService.allTodos());\n }\n else if (searchInput!=null) {\n model.addAttribute(\"todos\",todoService.searchBy_TITLE_DATE_DESCRIPTION(searchInput));\n }\n return \"todoList\";\n }", "public List<SearchedItem> getAllSearchedItems(StaplerRequest req, String tokenList) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, ServletException {\n Set<String> filteredItems= new TreeSet<String>();\n AbstractProject p;\n \n if(\"Filter\".equals(req.getParameter(\"submit\"))){ //user wanto to change setting for this search\n filteredItems = getFilter(req);\n }\n else{\n filteredItems = User.current().getProperty(SearchProperty.class).getFilter();\n }\n req.setAttribute(\"filteredItems\", filteredItems);\n return getResolvedAndFilteredItems(tokenList, req, filteredItems);\n }", "private void setList() {\n Log.i(LOG,\"+++ setList\");\n txtCount.setText(\"\" + projectTaskList.size());\n if (projectTaskList.isEmpty()) {\n return;\n }\n\n projectTaskAdapter = new ProjectTaskAdapter(projectTaskList, darkColor, getActivity(), new ProjectTaskAdapter.TaskListener() {\n @Override\n public void onTaskNameClicked(ProjectTaskDTO projTask, int position) {\n projectTask = projTask;\n mListener.onStatusUpdateRequested(projectTask,position);\n }\n\n\n });\n\n mRecyclerView.setAdapter(projectTaskAdapter);\n mRecyclerView.scrollToPosition(selectedIndex);\n\n }", "protected boolean shouldShowItemNone() {\n return false;\n }", "public MainList getSummaryForcast() {\n\t\t\n\t\tMainList mainLists = new MainList();\n\t\tList<Forcast> forcasts = new ArrayList<>();\n\t\tList<Forcast> forcastLists = this.mainList.getListItem();\n\t\t\n\t\tforcasts = forcastLists.stream().filter(p -> this.getFilterDuration(p.getDt_txt(), new Date()) == true).collect(Collectors.toList());\n\t\t\n\t\tmainLists.setListItem(forcasts);\n\t\tmainLists.setCity(this.mainList.getCity());\n\t\t\n\t\treturn mainLists;\n\t}", "boolean updateItems() {\n return updateItems(selectedIndex);\n }", "@Override\n\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\tif (totalItemCount > 0 && totalItemCount < TOTAL_ITEM_FOUND - 1) {\n\t\t\t\tBoolean endOfList = false;\n\t\t\t\tendOfList = (visibleItemCount + firstVisibleItem == totalItemCount) ? true\n\t\t\t\t\t\t: false;\n\t\t\t\tif (endOfList && !KEY_IS_LOADING) {\n\t\t\t\t\tKEY_IS_LOADING = true;\n\t\t\t\t\tswitch (tab_interested_fan.getCheckedRadioButtonId()) {\n\t\t\t\t\tcase R.id.btn_Interested:\n\t\t\t\t\t\tif(KEY_IS_SEARCHING)\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_SEARCHING, totalItemCount + 1, true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_LISTING,\n\t\t\t\t\t\t\t\t\ttotalItemCount + 1, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase R.id.btn_Fan:\n\t\t\t\t\t\tif(KEY_IS_SEARCHING)\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_SEARCHING, totalItemCount + 1, true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_LISTING,\n\t\t\t\t\t\t\t\t\ttotalItemCount + 1, true);\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}", "@Override\n public void com_android_internal_widget_FloatingToolbar__getVisibleAndEnabledMenuItems__Menu(ILTweaks.MethodParam param) {\n param.before(() -> {\n Menu menu = (Menu) param.args[0];\n for (int i = 0; i < menu.size(); ++i) {\n MenuItem item = menu.getItem(i);\n Intent intent = item.getIntent();\n if (intent != null && intent.getComponent() != null\n && PackageNames.L_TWEAKS.equals(intent.getComponent().getPackageName())) {\n item.setVisible(true);\n }\n }\n });\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int nItem,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tPullDownListInfo pli = m_PDLI.get(nItem);\r\n\t\t\t\tif (!pli.getIsChoose()) {\r\n\t\t\t\t\tm_tvSortName.setText(pli.getText());\r\n\t\t\t\t\t//\r\n\t\t\t\t\tresetPullDownListView();\r\n\t\t\t\t\tpli.setIsChoose(true);\r\n\t\t\t\t\tm_PullDownLA.notifyDataSetChanged();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm_tvSortName\r\n\t\t\t\t\t\t.setBackgroundResource(R.drawable.common_tv_bg_pulldown_normal);\r\n\t\t\t\tm_PDLV.setVisibility(View.GONE);\r\n\r\n\t\t\t\tint nRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_NEW;\r\n\t\t\t\tswitch (nItem) {\r\n\t\t\t\tcase 1: {\r\n//\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_LIKE;\r\n//\t\t\t\t\tm_filters = getSearchHistory();\r\n\t//\r\n//\t\t\t\t\t// 友盟统计--任务--排序--猜你喜欢\r\n//\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Like\");\r\n//\t\t\t\t}\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\tcase 2: {\r\n//\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_PERIPHERY;\r\n//\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n//\t\t\t\t\tm_bIsSearch = false;\r\n\t//\r\n//\t\t\t\t\t// 友盟统计--任务--排序--周边职位\r\n//\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Reriphery\");\r\n//\t\t\t\t}\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\tcase 3: {\r\n\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_SORT;\r\n\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n\t\t\t\t\tm_bIsSearch = false;\r\n\r\n\t\t\t\t\t// 友盟统计--任务--排序--悬赏排名\r\n\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Sort\");\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 0:\r\n\t\t\t\tdefault: {\r\n\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_NEW;\r\n\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n\t\t\t\t\tm_bIsSearch = false;\r\n\r\n\t\t\t\t\t// 友盟统计--任务--排序--最新发布\r\n\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_New\");\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm_nListStatus = LISTVIEW_STATUS_ONREFRESH;\r\n\t\t\t\tm_lvReward.setLoading();\r\n\t\t\t\t// 获取悬赏任务列表\r\n\t\t\t\tstartGetData(HeadhunterPublic.REWARD_DIRECTIONTYPE_NEW, \"\",\r\n\t\t\t\t\t\tnRequestType);\r\n\t\t\t}", "public PlanFormulateListAdapter(List<PlanListBean> data, Context context, boolean isTask) {\n super(data);\n addItemType(PlanListBean.START, R.layout.cdqj_patrol_plan_my_start_item);\n addItemType(PlanListBean.OTHER, R.layout.cdqj_patrol_plan_my_other_item);\n this.context = context;\n this.isTask = isTask;\n }", "public abstract boolean isItemFiltered(pt.keep.oaiextended.AgentItem item);", "@Override\n public int getItemCount() { return completedWorkouts.size(); }", "@VTID(38)\n boolean getList();", "public boolean isSetItems() {\n return this.items != null;\n }", "private void getFoodProcessingInpectionList() {\n ListView list = (ListView) getView().findViewById(R.id.foodprocessinglist);\n foodProcessingInpectionArrayList.clear();\n foodProcessingInpectionArrayList.removeAll(foodProcessingInpectionArrayList);\n List<FoodProcessingInpection> foodProcessingInpectionlist = db.getFoodProcessingInpectionList();\n\n List<CBPartner> cbPartnerList = db.getAllCPartners();\n String cbPartner = \"\";\n\n int listSize = foodProcessingInpectionlist.size();\n System.out.println(listSize + \"===============foodProcessingInpectionlist==========\");\n\n for (int i = 0; i < foodProcessingInpectionlist.size(); i++) {\n System.out.println(\"Document Number=== \" + foodProcessingInpectionlist.get(i).getDocumentNumber());\n\n String retreivedDocumentDate = foodProcessingInpectionlist.get(i).getDocumentDate();\n\n cbPartnerID = foodProcessingInpectionlist.get(i).getNameOfApplicant();\n\n for(CBPartner partner : cbPartnerList){\n if(null != cbPartnerID && cbPartnerID.equals(partner.getC_bpartner_id())){\n cbPartner = partner.getName();\n System.out.println(app + \" cbPartner : \" + cbPartner);\n } else{\n //System.out.println(app + \" cbPartner not found\");\n }\n }\n\n\n if (retreivedDocumentDate != null) {\n foodProcessingInpectionArrayList.add(new FoodProcessingInpection(\n foodProcessingInpectionlist.get(i).getDocumentNumber(),\n retreivedDocumentDate,\n cbPartner,\n foodProcessingInpectionlist.get(i).getFoodCropManufacturingPlanApproval()));\n }\n\n\n localhash.put(i, foodProcessingInpectionlist.get(i).getLocalID());\n adapter = new FoodProcessingListAdapter(getActivity(), foodProcessingInpectionArrayList);\n list.setAdapter(adapter);\n }\n\n\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n TextView textviewDocumentNumber = viewClicked.findViewById(R.id.textviewdocument_no_no);\n TextView textviewDocumentDate = viewClicked.findViewById(R.id.textviewdocument_date_date);\n TextView textviewsisalSpinningExportNumber = viewClicked.findViewById(R.id.textviewlicence_number);\n TextView textviewApplicantName = viewClicked.findViewById(R.id.textviewname_of_applicant);\n\n documentNumber = foodProcessingInpectionArrayList.get(position).getDocumentNumber();\n documentDate = foodProcessingInpectionArrayList.get(position).getDocumentDate();\n Licenceno = foodProcessingInpectionArrayList.get(position).getFoodCropManufacturingPlanApproval();\n nameOfApplicant = foodProcessingInpectionArrayList.get(position).getNameOfApplicant();\n\n localID = localhash.get(position);\n\n }\n });\n }", "@ApiStatus.Internal\n default boolean isListable() {\n \n return false;\n }", "public Builder clearIsList() {\n bitField0_ = (bitField0_ & ~0x00000008);\n isList_ = false;\n onChanged();\n return this;\n }", "public List<TaskItemBean> getItemList(){\n return itemList;\n }", "public void updateTempList() {\n if (disableListUpdate == 0) {\n tempAdParts.clear();\n LatLngBounds bounds = mapboxMap.getProjection().getVisibleRegion().latLngBounds;\n iterator = AdParts.listIterator();\n while (iterator.hasNext()) {\n current = iterator.next();\n if (bounds.contains(current.getLatLng())) {\n tempAdParts.add(current);\n }\n }\n AdAdapter adapter = new AdAdapter(MainActivity.this, tempAdParts);\n listView.setAdapter(adapter);\n }\n }", "public void testMarkAllItemsSelected()\n\t{\n\t\t// Arrange\n\t\taddListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, true);\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertTrue(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item6\").getIsSelected());\t\t\n\t\t\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, false);\n\t\tallLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tnewList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tnewCategory1 = newList.getCategory(\"cat1\");\n\t\tnewCategory2 = newList.getCategory(\"cat2\");\n\t\tassertFalse(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\t\n\t}", "public boolean filterItems(ArrayList<CaseItem> allItems,\n LinkedList<CaseItem> filteredItems) {\n boolean result = true;\n\n SqlJetDb database ;\n ISqlJetTable casesTable ;\n\n File dbFile = new File(dbFileName) ;\n try {\n database = SqlJetDb.open (dbFile, true);\n casesTable = database.getTable(\"cases\");\n } catch ( SqlJetException e ) {\n errorMessage = e.getClass().getName() + \": \" + e.getMessage() ;\n return false;\n }\n\n try {\n database.beginTransaction(SqlJetTransactionMode.READ_ONLY);\n }\n catch ( SqlJetException e ) {\n errorMessage = e.getClass().getName() + \": \" + e.getMessage() ;\n result=false;\n }\n\n filteredItems.clear();\n\n// Set<String> inms = null;\n// try {\n// inms = casesTable.getIndexesNames();\n// }\n// catch ( SqlJetException e ) {\n// errorMessage = e.getClass().getName() + \": \" + e.getMessage() ;\n// result=false;\n// }\n//\n// for (String inm:inms) {\n// logger.debug(\"Got index \" + inm);\n// }\n\n for (CaseItem caseItem:allItems) {\n logger.debug(\"Testing if we need to add \\\"{}\\\"\", caseItem.getNumber());\n boolean found = false;//\n ISqlJetCursor cursor = null;\n try {\n cursor = casesTable.lookup(\"number_idx\", caseItem.getNumber());\n if (!cursor.eof()) {\n do {\n String dsch = FilenameProcessing.dateToDbFormat(caseItem.getDate());\n\n found = dsch.equals(cursor.getString(\"date_scheduled\")) &&\n caseItem.getJudge().equals( cursor.getString(\"judge\") ) &&\n caseItem.getNumber().equals(cursor.getString(\"number\")) &&\n caseItem.getInvolved().equals(cursor.getString(\"involved\")) &&\n caseItem.getDescription().equals(cursor.getString(\"description\")) &&\n caseItem.getType().equals(cursor.getString(\"type\"));\n\n //TODO: check court id here too\n\n if (found) {\n logger.debug(\"Record for {} already exists in db\", caseItem.getNumber());\n break;\n }\n } while (cursor.next());\n }\n// else {\n// logger.debug(\"Definitely no {} in db\", caseItem.getNumber());\n// }\n } catch (SqlJetException e) {\n errorMessage = e.getClass().getName() + \": \" + e.getMessage();\n result = false;\n break;\n } finally {\n try {\n if (cursor!=null) {\n cursor.close();\n }\n } catch (SqlJetException e) {\n errorMessage = e.getClass().getName() + \": \" + e.getMessage();\n result = false;\n break;\n }\n }\n\n if (!found) {\n filteredItems.add(caseItem);\n }\n }\n\n logger.debug(\"Finally need to add {} items to db\", filteredItems.size());\n\n try {\n database.commit();\n }\n catch (SqlJetException e) {\n errorMessage = e.getClass().getName() + \": \" + e.getMessage();\n result = false;\n }\n\n return result;\n }", "public Builder clearIsList() {\n bitField0_ = (bitField0_ & ~0x00000004);\n isList_ = false;\n onChanged();\n return this;\n }", "public boolean isListable();", "@Override\n\tpublic void showCompletedTodo() {\n\n\t}", "public Boolean hasItems() {\n return this.hasItems;\n }", "ObservableList<Task> getUnfilteredTaskList();", "public boolean isInList();", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n reloadMenuItem.setVisible(false);\n listToggleMenuItem.setVisible(false);\n mIsSearchMode = true;\n return true;\n }", "@Override\r\n\t\tprotected void onPostExecute(AppBeanParacable result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif (!isCancelled()) {\r\n\t\t\t\tif (result != null) {\r\n\r\n\t\t\t\t\tif (result instanceof CompareBean) {\r\n\t\t\t\t\t\tsearchlist = ((CompareBean) result).getList();\r\n\t\t\t\t\t\tif (searchlist.size() > 0) {\r\n\t\t\t\t\t\t\tadapter = new SearchWatchlistView(searchlist,\r\n\t\t\t\t\t\t\t\t\tmContext, keyword);\r\n\r\n\t\t\t\t\t\t\tif (addtoCompare.getVisibility() == View.VISIBLE) {\r\n\t\t\t\t\t\t\t\taddtoCompare.setAdapter(adapter);\r\n\t\t\t\t\t\t\t\tif (addtoCompare.getText().toString().trim()\r\n\t\t\t\t\t\t\t\t\t\t.length() > 2) {\r\n\t\t\t\t\t\t\t\t\taddtoCompare.showDropDown();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\taddtoCompare.dismissDropDown();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (addtoCompare2.getVisibility() == View.VISIBLE) {\r\n\t\t\t\t\t\t\t\taddtoCompare2.setAdapter(adapter);\r\n\t\t\t\t\t\t\t\taddtoCompare2.showDropDown();\r\n\t\t\t\t\t\t\t\tif (addtoCompare2.getText().toString().trim()\r\n\t\t\t\t\t\t\t\t\t\t.length() > 2) {\r\n\t\t\t\t\t\t\t\t\taddtoCompare2.showDropDown();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\taddtoCompare2.dismissDropDown();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (addtoCompare.getVisibility() == View.GONE\r\n\t\t\t\t\t\t\t\t\t&& addtoCompare.getVisibility() == View.VISIBLE) {\r\n\t\t\t\t\t\t\t\taddtoCompare.dismissDropDown();\r\n\t\t\t\t\t\t\t\taddtoCompare2.dismissDropDown();\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\taddtoCompare.dismissDropDown();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}", "private void displayUrgent(ToDoList toDoList) {\n int i = 1;\n\n System.out.println(\"Urgent Items:\");\n\n for (Item item : toDoList.getItems()) {\n if (Integer.parseInt(item.getDaysBeforeDue()) <= 1) {\n Categories c = item.getCategory();\n System.out.println(i + \". \" + item.getTitle() + \" due in \" + item.getDaysBeforeDue() + \" days, \" + c);\n i++;\n }\n }\n }", "@Override\n\t\tpublic boolean areAllItemsEnabled() {\n\t\t\treturn true;\n\t\t}", "private void showList() {\n\n if(USE_EXTERNAL_FILES_DIR) {\n mList = mFileUtil.getFileNameListInExternalFilesDir();\n } else {\n mList = mFileUtil.getFileListInAsset(FILE_EXT);\n }\n mAdapter.clear();\n mAdapter.addAll(mList);\n mAdapter.notifyDataSetChanged();\n mListView.invalidate();\n}", "@Override\n public void onClick(View view) {\n RadioButton checkedButton = filterView.findViewById(rg.getCheckedRadioButtonId());\n\n // perform different filtering based on teh selected filter\n switch(checkedButton.getText().toString()) {\n case \"No Filter\":\n // get the original list\n originalJobsList = filterProcessor.getOriginalJobList();\n break;\n case \"Filter based on Job Title\":\n // filter based on title using the Filter processor\n String searchTerm = filterTermEV.getText().toString();\n\n originalJobsList = filterProcessor.filterBasedOnTitle(searchTerm);\n\n break;\n case \"Filter based on Job Location\":\n // filter based on job location\n searchTerm = filterTermEV.getText().toString();\n\n originalJobsList = filterProcessor.filterBasedOnLocation(searchTerm);\n break;\n case \"Filter based on Salary Range\":\n // filter based on salary range\n\n int minSalary = minRange.getValue();\n\n int maxSalary = maxRange.getValue();\n\n // perform filtering only if maxSalary is greater than minSalary\n if(maxSalary > minSalary) {\n originalJobsList = filterProcessor.filterBasedOnSalaryRange(minSalary, maxSalary);\n }\n\n break;\n }\n\n// System.out.println(originalJobsList);\n\n jobAdapterList.clear();\n\n for(Job current : originalJobsList) {\n jobAdapterList.add(current);\n }\n\n jobAdapter.notifyDataSetChanged();\n\n alertDialog.hide();\n }", "@Override\r\n\tpublic boolean isVisible()\r\n\t{\n\t\treturn !getFormScreen().getMode().equals(Mode.LIST_VIEW);\r\n\t}", "@Override\n\tpublic boolean areAllItemsEnabled() {\n\t\treturn false;\n\t}", "private void fillStatusList() {\n StatusList = new ArrayList<>();\n StatusList.add(new StatusItem(\"Single\"));\n StatusList.add(new StatusItem(\"Married\"));\n }", "boolean getIsList();", "boolean getIsList();", "boolean isPreFiltered();", "public void btnShowUnpaid_onClick(View view) {\n setTitle(R.string.title_booklist_unpaid);\n\n mBookingList = mDataSource.getAllBookings();\n ArrayList<Booking> mUnpaidBookings = new ArrayList<>();\n\n for(int i=0;i<mBookingList.size();i++){\n if(mBookingList.get(i).isPaid()==0)\n mUnpaidBookings.add(mBookingList.get(i));\n }\n\n mAdapter = new BookingListAdapter(this, mUnpaidBookings);\n mRV.setAdapter(mAdapter);\n mRV.setLayoutManager(new LinearLayoutManager(this));\n }", "private void emptyViewForFilter(){\n if(adapter.getItemCount() <= 0){\n v.setVisibility(View.GONE);\n filempty.setVisibility(View.VISIBLE);\n } else {\n v.setVisibility(View.VISIBLE);\n filempty.setVisibility(View.GONE);\n }\n }", "private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }", "private void InitList()\n {\n Globals.list = new ArrayList<>();\n Globals.search_result = new ArrayList<>();\n Globals.selected_items = new ArrayList<>();\n\n Globals.list.add(\"Afghanistan\");\n Globals.list.add(\"Albania\");\n Globals.list.add(\"Algeria\");\n Globals.list.add(\"Andorra\");\n Globals.list.add(\"Angola\");\n Globals.list.add(\"Anguilla\");\n Globals.list.add(\"Antigua & Barbuda\");\n Globals.list.add(\"Argentina\");\n Globals.list.add(\"Armenia\");\n Globals.list.add(\"Australia\");\n Globals.list.add(\"Austria\");\n Globals.list.add(\"Azerbaijan\");\n Globals.list.add(\"Bahamas\");\n Globals.list.add(\"Bahrain\");\n Globals.list.add(\"Bangladesh\");\n Globals.list.add(\"Barbados\");\n Globals.list.add(\"Belarus\");\n Globals.list.add(\"Belgium\");\n Globals.list.add(\"Belize\");\n Globals.list.add(\"Benin\");\n Globals.list.add(\"Bermuda\");\n Globals.list.add(\"Bhutan\");\n Globals.list.add(\"Bolivia\");\n Globals.list.add(\"Bosnia & Herzegovina\");\n Globals.list.add(\"Botswana\");\n Globals.list.add(\"Brazil\");\n Globals.list.add(\"Brunei Darussalam\");\n Globals.list.add(\"Bulgaria\");\n Globals.list.add(\"Burkina Faso\");\n Globals.list.add(\"Myanmar/Burma\");\n Globals.list.add(\"Burundi\");\n Globals.list.add(\"Cambodia\");\n Globals.list.add(\"Cameroon\");\n Globals.list.add(\"Canada\");\n Globals.list.add(\"Cape Verde\");\n Globals.list.add(\"Cayman Islands\");\n Globals.list.add(\"Central African Republic\");\n Globals.list.add(\"Chad\");\n Globals.list.add(\"Chile\");\n Globals.list.add(\"China\");\n Globals.list.add(\"Colombia\");\n Globals.list.add(\"Comoros\");\n Globals.list.add(\"Congo\");\n Globals.list.add(\"Costa Rica\");\n Globals.list.add(\"Croatia\");\n Globals.list.add(\"Cuba\");\n Globals.list.add(\"Cyprus\");\n Globals.list.add(\"Czech Republic\");\n Globals.list.add(\"Democratic Republic of the Congo\");\n Globals.list.add(\"Denmark\");\n Globals.list.add(\"Djibouti\");\n Globals.list.add(\"Dominican Republic\");\n Globals.list.add(\"Dominica\");\n Globals.list.add(\"Ecuador\");\n Globals.list.add(\"Egypt\");\n Globals.list.add(\"El Salvador\");\n Globals.list.add(\"Equatorial Guinea\");\n Globals.list.add(\"Eritrea\");\n Globals.list.add(\"Estonia\");\n Globals.list.add(\"Ethiopia\");\n Globals.list.add(\"Fiji\");\n Globals.list.add(\"Finland\");\n Globals.list.add(\"France\");\n Globals.list.add(\"French Guiana\");\n Globals.list.add(\"Gabon\");\n Globals.list.add(\"Gambia\");\n Globals.list.add(\"Georgia\");\n Globals.list.add(\"Germany\");\n Globals.list.add(\"Ghana\");\n Globals.list.add(\"Great Britain\");\n Globals.list.add(\"Greece\");\n Globals.list.add(\"Grenada\");\n Globals.list.add(\"Guadeloupe\");\n Globals.list.add(\"Guatemala\");\n Globals.list.add(\"Guinea\");\n Globals.list.add(\"Guinea-Bissau\");\n Globals.list.add(\"Guyana\");\n Globals.list.add(\"Haiti\");\n Globals.list.add(\"Honduras\");\n Globals.list.add(\"Hungary\");\n }", "private void updateFilteredData() {\n\t\tswitch (currentTabScreen) {\n\t\tcase INVENTORY:\n\t\t\tpresentationInventoryData.clear();\n\n\t\t\tfor (RecordObj record: masterInventoryData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationInventoryData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tcase INITIAL:\n\t\t\tpresentationInitialData.clear();\n\n\t\t\tfor (RecordObj record: masterInitialData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationInitialData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tcase SEARCH:\n\t\t\tpresentationSearchData.clear();\n\n\t\t\tfor (RecordObj record: masterSearchData) {\n\t\t\t\tif (matchesFilter(record)) {\n\t\t\t\t\tpresentationSearchData.add(record);\n\t\t\t\t} // End if statement\n\t\t\t} // End for loop \n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}// End switch statement\n\t}", "@Override\n public void resetFilteredLists() {\n\n }", "@Override\n public int getItemCount() {\n return mFlatListFiltered.size();\n }", "@Override\n public void onClick(View view) {\n Utils.saveInSharedPreference(activity, \"filter-state\", \"isStarFilterOn\", isStarFilterOn );\n Utils.saveInSharedPreference(activity, \"filter-state\", \"isFavFilterOn\", isFavFilterOn );\n\n if(!isFavFilterOn && !isStarFilterOn) {\n recyclerViewAdapter.getFilter().filter(\"A\"); //display entire list\n }\n else {\n recyclerViewAdapter.getFilter().filter(Utils.getFilterSting(isStarFilterOn, isFavFilterOn));\n }\n drawerLayout.closeDrawers();\n }" ]
[ "0.7748033", "0.7386651", "0.6752783", "0.61554736", "0.6115014", "0.6115014", "0.6108627", "0.6066538", "0.6035199", "0.5973296", "0.58721966", "0.5828944", "0.57874113", "0.56932294", "0.56816465", "0.5676307", "0.5663203", "0.5655005", "0.56510717", "0.5625896", "0.5621955", "0.5611798", "0.55621076", "0.5511528", "0.54936713", "0.5483889", "0.54658103", "0.546173", "0.5433952", "0.54328066", "0.5425994", "0.54222786", "0.5397195", "0.53511345", "0.53202695", "0.5309651", "0.53039277", "0.5286595", "0.526355", "0.52167374", "0.5213481", "0.5205632", "0.52041286", "0.5202197", "0.52008617", "0.51998025", "0.519717", "0.5196194", "0.51830274", "0.51704", "0.51538366", "0.5152225", "0.51395166", "0.50882244", "0.506874", "0.5066584", "0.50658095", "0.5056074", "0.5054182", "0.5051292", "0.50448805", "0.5042346", "0.5031549", "0.502804", "0.5027641", "0.50273037", "0.5014572", "0.50124353", "0.5009921", "0.50023884", "0.5001068", "0.49995148", "0.49974638", "0.49868566", "0.49836645", "0.49830607", "0.49796686", "0.4969387", "0.496108", "0.49550787", "0.49538323", "0.49446973", "0.49416006", "0.49383277", "0.4936478", "0.4930692", "0.4927818", "0.4918356", "0.4916843", "0.49140608", "0.4908754", "0.4908754", "0.49078187", "0.49039885", "0.49005026", "0.48979947", "0.48888713", "0.488506", "0.4881763", "0.48789218", "0.48762757" ]
0.0
-1
Here we are going to filter and just show the items that are incompleted in the list. Also, we are going to check if the Show_completed_Items is marked, in order to disable that option and enable this new option of filtering Show_Completed_Items. We have to use the List and ListItems classes to show all the information about these ones.
@FXML public void Show_Incomplete_Items(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Show_only_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "public void hide_completed()\r\n {\n if(!this.filter)\r\n {\r\n if(tableView.getItems().size()>0) {\r\n for (int i = 0; i < tableView.getItems().size(); i++) {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n this.all_items.add(selectedList);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n resettable();\r\n }\r\n this.filter = true;\r\n ArrayList<ucf.assignments.list> tmplist = new ArrayList<ucf.assignments.list>();\r\n\r\n for(int i = 0; i<tableView.getItems().size();i++)\r\n {\r\n ucf.assignments.list selectedList = tableView.getItems().get(i);\r\n if(!selectedList.getstatus())\r\n tmplist.add(selectedList);\r\n }\r\n tableView.getItems().removeAll(tmplist);\r\n }", "private void updateListVisibility() {\n switch (currentFilter) {\n case 0: // Available quests...\n if (user.getInt(QuestApp.ALIGNMENT_KEY) == 0) { //... for good heroes\n setListAdapter(adapterAvailableGood);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 1) { //... for neutral heroes\n setListAdapter(adapterAvailableNeutral);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 2){ //... for evil heroes\n setListAdapter(adapterAvailableEvil);\n }\n break;\n case 1: // Accepted quests\n setListAdapter(adapterAccepted);\n break;\n case 2: // Completed quests\n setListAdapter(adapterCompleted);\n break;\n }\n }", "@VTID(30)\n boolean getShowAllItems();", "public void updateAllFilteredListToShowAllActiveEntries();", "void updateFilteredListToShowAll();", "void updateFilteredListToShowAll();", "@FXML\n void showIncompleteTasksClicked(ActionEvent event)\n {\n ObservableList<Item> incompleteTasks = FXCollections.observableArrayList();\n\n if(showIncompleteTasks.isSelected())\n {\n // Have it display in listView\n // First need to remove all the items in listView and then display only incomplete\n showCompletedTasks.setSelected(false);\n\n listView.getItems().clear();\n\n createList(false, incompleteTasks);\n\n listView.refresh();\n }\n\n listView.setItems(incompleteTasks);\n\n if(!showIncompleteTasks.isSelected())\n {\n // Uncheck the checkbox\n listView.getItems().clear();\n\n // Add all items to the table\n for(Item item : Item.getToDoList())\n {\n listView.getItems().add(Item.getToDoList().get(Item.getToDoList().indexOf(item)));\n }\n\n listView.refresh();\n }\n }", "@FXML\n void showCompletedTasksClicked(ActionEvent event)\n {\n ObservableList<Item> completedTasks = FXCollections.observableArrayList();\n\n if(showCompletedTasks.isSelected())\n {\n // Have it display in listView\n // First need to remove all the items in listView and then display only completed\n showIncompleteTasks.setSelected(false);\n\n listView.getItems().clear();\n\n // Creating a list with only completed tasks\n createList(true, completedTasks);\n\n listView.refresh();\n }\n\n listView.setItems(completedTasks);\n\n if(!showIncompleteTasks.isSelected())\n {\n // Uncheck the checkbox\n listView.getItems().clear();\n\n // Add all items to the table\n for(Item item : Item.getToDoList())\n {\n listView.getItems().add(Item.getToDoList().get(Item.getToDoList().indexOf(item)));\n }\n\n listView.refresh();\n }\n }", "void updateFilteredListsToShowAll();", "Boolean isCurrentListDoneList();", "@Test\n void testFilterList(){\n ToDoList todoList = new ToDoList();\n ToDo todo1 = new ToDo(\"Todo1\");\n todo1.setInhalt(\"Dies ist ein Test\");\n\n todoList.add(new ToDo((\"Todo2\")));\n ToDo todo3 = new ToDo(\"Todo3\");\n todo3.setInhalt(\"3+3=6\");\n todo3.setStatus(Status.IN_ARBEIT);\n todoList.add(new ToDo((\"Todo4\")));\n todoList.add(todo3);\n ToDo todo4 = new ToDo(\"Trala\");\n todo4.setStatus(Status.IN_ARBEIT);\n todo4.setStatus(Status.BEENDET);\n todo4.setInhalt(\"ab\");\n ToDo todo5 = new ToDo(\"Trala\");\n todo5.setInhalt(\"aa\");\n todo5.setStatus(Status.IN_ARBEIT);\n todo5.setStatus(Status.BEENDET);\n todoList.add(todo5);\n todoList.add(todo4);\n todoList.add(todo1);\n\n ToDoList open = todoList.getStatusFilteredList(Status.OFFEN);\n assertEquals(3, open.size());\n\n ToDoList inwork = todoList.getStatusFilteredList(Status.IN_ARBEIT);\n assertEquals(1, inwork.size());\n\n ToDoList beendet = todoList.getStatusFilteredList(Status.BEENDET);\n assertEquals(2, beendet.size());\n }", "public void showComplete() {\r\n showCompleted = !showCompleted;\r\n todoListGui();\r\n }", "public boolean hasVisibleItems();", "private void filterHidden() {\n final List<TreeItem<File>> filterItems = new LinkedList<>();\n\n for (TreeItem<File> item : itemList) {\n if (isCancelled()) {\n return;\n }\n\n if (!shouldHideFile.test(item.getValue())) {\n filterItems.add(item);\n\n if (shouldSchedule(filterItems)) {\n scheduleJavaFx(filterItems);\n filterItems.clear();\n }\n }\n }\n\n scheduleJavaFx(filterItems);\n Platform.runLater(latch::countDown);\n }", "public boolean isInterestedInAllItems();", "@VTID(31)\n void setShowAllItems(\n boolean rhs);", "void printFilteredItems();", "private void checkItemsAvailability() {\n if (noItemsText != null && itemList != null && itemRecyclerView != null) {\n if (itemList.size() < 1) {\n itemRecyclerView.setVisibility(View.GONE);\n noItemsText.setVisibility(View.VISIBLE);\n } else {\n noItemsText.setVisibility(View.GONE);\n itemRecyclerView.setVisibility(View.VISIBLE);\n }\n }\n }", "public String visibleItems() {\n \tStringBuilder s = new StringBuilder(\"\");\n for (Item item : items) {\n if (item instanceof Visible && item.isVisible()) {\n s.append(\"\\nThere is a '\").append(item.detailDescription()).append(\"' (i.e. \" + item.description() + \" ) here.\");\n }\n }\n return s.toString();\n }", "public SelectItem[] getStatusFilterItems() {\n return STATUS_FILTER_ITEMS;\n }", "public void setDisplayDoneItems(ActionEvent actionEvent) {\n // we will simply loop through all of our items and\n // store the ones that are not yet done in a temporary tdlist\n // and then displayTODOs(tdlist) the result\n }", "public void filterByFoDisplayAll(){\n // add them into the new list\n for (int i = 0; i < moodListBeforeFilterFo.getCount(); i++ ){\n moodListAfterFilter.add(moodListBeforeFilterFo.getMoodEvent(i));\n }\n }", "List<JSONObject> getFilteredItems();", "private void doViewAllCompletedTasks() {\n ArrayList<Task> t1 = todoList.getListOfCompletedTasks();\n if (t1.size() > 0) {\n for (Task task : t1) {\n System.out.println(task.getTime() + \" \" + task.getDescription() + \" \" + task.getDate());\n }\n } else {\n System.out.println(\"No completed tasks available.\");\n }\n }", "public List<Item> getAllItemsAvailable();", "public boolean getShowInTaskList(){\n Boolean show = getGeneralProperties().getBooleanAsObj(PROP_GET_SHOW_IN_TASK_LIST);\n if (show==null){\n return true;\n } else {\n return show.booleanValue();\n }\n }", "private void setUpFilter() {\n List<Department> departmentsList = departmentService.getAll(0, 10000);\n departments.setItems(departmentsList);\n departments.setItemLabelGenerator(Department::getDepartment_name);\n departments.setValue(departmentsList.get(0));\n category.setItems(\"Consumable\", \"Asset\", \"%\");\n category.setValue(\"%\");\n status.setItems(\"FREE\", \"IN USE\", \"%\");\n status.setValue(\"%\");\n show.addClickListener(click -> updateGrid());\n }", "private void syncListFromTodo() {\r\n DefaultListModel<String> dlm = new DefaultListModel<>();\r\n for (Task task : myTodo.getTodo().values()) {\r\n if (!task.isComplete() || showCompleted) {\r\n String display = String.format(\"%1s DueDate: %10s %s %3s\", task.getName(), task.getDueDate(),\r\n task.isComplete() ? \" Completed!\" : \" Not Completed\", task.getPriority());\r\n dlm.addElement(display);\r\n list.setFont(new Font(\"TimesRoman\", Font.PLAIN, 15));\r\n }\r\n }\r\n list.setModel(dlm);\r\n }", "@Override\n public boolean areAllItemsEnabled() {\n return false;\n }", "private void showFilteredList(ArrayList<PropertyListBean.Data> data) {\n try {\n for (int i = 0; i < data.size(); i++) {\n int flag = 0;\n if ((filter.get(\"2BHK\") == 1 && data.get(i).getType().equalsIgnoreCase(\"BHK2\"))\n || (filter.get(\"3BHK\") == 1 && data.get(i).getType().equalsIgnoreCase(\"BHK3\"))\n || (filter.get(\"4BHK\") == 1 && data.get(i).getType().equalsIgnoreCase(\"BHK4\"))\n || (filter.get(\"AP\") == 1 && data.get(i).getBuildingType().equalsIgnoreCase(\"AP\"))\n || (filter.get(\"IF\") == 1 && data.get(i).getBuildingType().equalsIgnoreCase(\"IF\"))\n || (filter.get(\"IH\") == 1 && data.get(i).getBuildingType().equalsIgnoreCase(\"IH\"))\n || (filter.get(\"FF\") == 1 && data.get(i).getFurnishing().equalsIgnoreCase(\"FULLY_FURNISHED\"))\n || (filter.get(\"SF\") == 1 && data.get(i).getFurnishing().equalsIgnoreCase(\"SEMI_FURNISHED\"))) {\n flag = 1;\n }\n if (flag == 1) {\n propertyList.add(data.get(i));\n }\n }\n mPlistAdapter.setArraylist(propertyList);\n if (pageNo == 1) {\n mPListView.setAdapter(mPlistAdapter);\n }\n mPlistAdapter.notifyDataSetChanged();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public final void filterResponse(List<TitleInstructionItem> list) {\n ArrayList arrayList = new ArrayList();\n ArrayList arrayList2 = new ArrayList();\n for (TitleInstructionItem titleInstructionItem : list) {\n if (titleInstructionItem.getTitleDeliveryMethodCode() == null) {\n arrayList2.add(titleInstructionItem);\n } else {\n arrayList.add(titleInstructionItem);\n }\n }\n this.notSetList.clear();\n this.setList.clear();\n this.setList = new ArrayList<>(CollectionsKt.sortedWith(arrayList, new SaleDocListActivity$filterResponse$$inlined$compareBy$1()));\n this.notSetList = new ArrayList<>(CollectionsKt.sortedWith(arrayList2, new SaleDocListActivity$filterResponse$$inlined$compareBy$2()));\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n adapter.setFilter(lista1);\n return true; // Return true to collapse action view\n }", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "private void actionShowFilters() {\n filterDialog.resetUnfilteredList(Client.reportMap.values());\n filterDialog.show();\n }", "public void browseImportantItem(){\n for(Item item : importantItemList){\n if(item.getImportance().equals(\"yes\")){\n printOut(item);\n }\n }\n }", "public void filterByMyDisplayAll(){\n // add them into the new list\n for (int i = 0; i < moodListBeforeFilterMy.getCount(); i++ ){\n moodListAfterFilter.add(moodListBeforeFilterMy.getMoodEvent(i));\n }\n }", "@Override\n\tpublic void showCompletedTodo() {\n\n\t}", "public void setCurrentListToBeDoneList();", "@SuppressWarnings(\"unchecked\")\n public List<Item> getActiveTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item where status = 0\").list();\n session.close();\n return list;\n }", "public void displaySelections() {\n List<VendingItem> listOfItems = service.getAllItemsNonZero(); //<-- uses lambda\n view.displaySelections(listOfItems);\n }", "public void UpdateHideOrShow(String commoditId, String status) {\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i < filteredList.size(); i++) {\n\t\t\t\tif (filteredList.get(i).getId().equalsIgnoreCase(commoditId)) {\n\t\t\t\t\tfilteredList.get(i).setStatusPrice(status);\n\t\t\t\t}\n\t\t\t\tif (commodityDetails.get(i).getId()\n\t\t\t\t\t\t.equalsIgnoreCase(commoditId)) {\n\t\t\t\t\tcommodityDetails.get(i).setStatusPrice(status);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tCollections.sort(filteredList, convertStringToDateAndCompare);\n\t\t\tnotifyDataSetChanged();\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n adapter.setFilter(resultAlls);\n return true; // Return true to collapse action view\n }", "@Override\n public int getItemCount() { return completedWorkouts.size(); }", "private List<ToDoItem> refreshItemsFromMobileServiceTable() throws ExecutionException, InterruptedException {\n //List list = mToDoTable.where ( ).field (\"complete\").eq(val(false)).execute().get();\n return mToDoTable.where ().field (\"userId\").eq (val (userId)).and(mToDoTable.where ( ).field (\"complete\").eq(val(false))).execute().get();\n }", "public void testMarkAllItemsSelected()\n\t{\n\t\t// Arrange\n\t\taddListWith6Items(\"testlist\");\n\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, true);\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tCategoryBean newCategory1 = newList.getCategory(\"cat1\");\n\t\tCategoryBean newCategory2 = newList.getCategory(\"cat2\");\n\t\tassertTrue(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertTrue(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertTrue(newCategory2.getEntry(\"item6\").getIsSelected());\t\t\n\t\t\n\t\t// Act\n\t\tservice.markAllItemsSelected(2l, false);\n\t\tallLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tnewList = allLists.getActivity(\"testlist\");\n\n\t\t// Assert\n\t\tnewCategory1 = newList.getCategory(\"cat1\");\n\t\tnewCategory2 = newList.getCategory(\"cat2\");\n\t\tassertFalse(newCategory1.getEntry(\"item1\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item2\").getIsSelected());\n\t\tassertFalse(newCategory1.getEntry(\"item3\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item4\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item5\").getIsSelected());\n\t\tassertFalse(newCategory2.getEntry(\"item6\").getIsSelected());\t\n\t}", "public boolean isSetItems() {\n return this.items != null;\n }", "public void btnShowUnpaid_onClick(View view) {\n setTitle(R.string.title_booklist_unpaid);\n\n mBookingList = mDataSource.getAllBookings();\n ArrayList<Booking> mUnpaidBookings = new ArrayList<>();\n\n for(int i=0;i<mBookingList.size();i++){\n if(mBookingList.get(i).isPaid()==0)\n mUnpaidBookings.add(mBookingList.get(i));\n }\n\n mAdapter = new BookingListAdapter(this, mUnpaidBookings);\n mRV.setAdapter(mAdapter);\n mRV.setLayoutManager(new LinearLayoutManager(this));\n }", "@Override\n\tpublic boolean showInList()\n\t{\n\t\treturn true;\n\t}", "@Override\n\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\tif (totalItemCount > 0 && totalItemCount < TOTAL_ITEM_FOUND - 1) {\n\t\t\t\tBoolean endOfList = false;\n\t\t\t\tendOfList = (visibleItemCount + firstVisibleItem == totalItemCount) ? true\n\t\t\t\t\t\t: false;\n\t\t\t\tif (endOfList && !KEY_IS_LOADING) {\n\t\t\t\t\tKEY_IS_LOADING = true;\n\t\t\t\t\tswitch (tab_interested_fan.getCheckedRadioButtonId()) {\n\t\t\t\t\tcase R.id.btn_Interested:\n\t\t\t\t\t\tif(KEY_IS_SEARCHING)\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_SEARCHING, totalItemCount + 1, true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_LISTING,\n\t\t\t\t\t\t\t\t\ttotalItemCount + 1, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase R.id.btn_Fan:\n\t\t\t\t\t\tif(KEY_IS_SEARCHING)\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_SEARCHING, totalItemCount + 1, true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_LISTING,\n\t\t\t\t\t\t\t\t\ttotalItemCount + 1, true);\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}", "boolean isHiddenFromList();", "@Override\n\t\tpublic boolean areAllItemsEnabled() {\n\t\t\treturn true;\n\t\t}", "ObservableList<Task> getFilteredTaskList();", "private void initializeList() {\n findViewById(R.id.label_operation_in_progress).setVisibility(View.GONE);\n adapter = new MapPackageListAdapter();\n listView.setAdapter(adapter);\n listView.setVisibility(View.VISIBLE);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n \n @Override\n public void onItemClick(AdapterView<?> parent, final View view, final int position, long id) {\n List<DownloadPackage> childPackages = searchByParentCode(currentPackages.get(position).getCode());\n if (childPackages.size() > 0) {\n currentPackages = searchByParentCode(currentPackages.get(position).getCode());\n adapter.notifyDataSetChanged();\n }\n }\n });\n }", "public Boolean hasItems() {\n return this.hasItems;\n }", "@Override\n\tpublic boolean areAllItemsEnabled() {\n\t\treturn false;\n\t}", "@Override\n public int getItemCount() {\n return filteredList.size();\n }", "private List<InventoryBO> shortListRelevantInventory(final ItemBO anItem)\n\t{\n\t\tfinal InventoryBO selected = anItem.getSelectedInventory();\n\t\tfinal InventoryBO main = anItem.getMainDCInventory();\n\n\t\tlogger.info(\"shortListRelevantInventory(...): selected: \" + selected);\n\t\tlogger.info(\"shortListRelevantInventory(...): main: \" + main);\n\t\tlogger.info(\"shortListRelevantInventory(...): ------------------------\");\n\t\t\n\t\tfinal Set<InventoryBO> temp = new HashSet<InventoryBO>();\n\t\tif (selected != null)\n\t\t{\n\t\t\ttemp.add(selected);\n\t\t}\n\t\tif (main != null)\n\t\t{\n\t\t\ttemp.add(main);\n\t\t}\n\n\t\treturn new ArrayList<InventoryBO>(temp);\n\t}", "private void setList() {\n Log.i(LOG,\"+++ setList\");\n txtCount.setText(\"\" + projectTaskList.size());\n if (projectTaskList.isEmpty()) {\n return;\n }\n\n projectTaskAdapter = new ProjectTaskAdapter(projectTaskList, darkColor, getActivity(), new ProjectTaskAdapter.TaskListener() {\n @Override\n public void onTaskNameClicked(ProjectTaskDTO projTask, int position) {\n projectTask = projTask;\n mListener.onStatusUpdateRequested(projectTask,position);\n }\n\n\n });\n\n mRecyclerView.setAdapter(projectTaskAdapter);\n mRecyclerView.scrollToPosition(selectedIndex);\n\n }", "boolean updateItems() {\n return updateItems(selectedIndex);\n }", "protected boolean shouldShowItemNone() {\n return false;\n }", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "private void filterItems()\n {\n System.out.println(\"filtered items (name containing 's'):\");\n Set<ClothingItem> items = ctrl.filterItemsByName(\"s\");\n items.stream().forEach(System.out::println);\n }", "@Override\n public void com_android_internal_widget_FloatingToolbar__getVisibleAndEnabledMenuItems__Menu(ILTweaks.MethodParam param) {\n param.before(() -> {\n Menu menu = (Menu) param.args[0];\n for (int i = 0; i < menu.size(); ++i) {\n MenuItem item = menu.getItem(i);\n Intent intent = item.getIntent();\n if (intent != null && intent.getComponent() != null\n && PackageNames.L_TWEAKS.equals(intent.getComponent().getPackageName())) {\n item.setVisible(true);\n }\n }\n });\n }", "public Builder clearIsList() {\n bitField0_ = (bitField0_ & ~0x00000008);\n isList_ = false;\n onChanged();\n return this;\n }", "private void getFoodProcessingInpectionList() {\n ListView list = (ListView) getView().findViewById(R.id.foodprocessinglist);\n foodProcessingInpectionArrayList.clear();\n foodProcessingInpectionArrayList.removeAll(foodProcessingInpectionArrayList);\n List<FoodProcessingInpection> foodProcessingInpectionlist = db.getFoodProcessingInpectionList();\n\n List<CBPartner> cbPartnerList = db.getAllCPartners();\n String cbPartner = \"\";\n\n int listSize = foodProcessingInpectionlist.size();\n System.out.println(listSize + \"===============foodProcessingInpectionlist==========\");\n\n for (int i = 0; i < foodProcessingInpectionlist.size(); i++) {\n System.out.println(\"Document Number=== \" + foodProcessingInpectionlist.get(i).getDocumentNumber());\n\n String retreivedDocumentDate = foodProcessingInpectionlist.get(i).getDocumentDate();\n\n cbPartnerID = foodProcessingInpectionlist.get(i).getNameOfApplicant();\n\n for(CBPartner partner : cbPartnerList){\n if(null != cbPartnerID && cbPartnerID.equals(partner.getC_bpartner_id())){\n cbPartner = partner.getName();\n System.out.println(app + \" cbPartner : \" + cbPartner);\n } else{\n //System.out.println(app + \" cbPartner not found\");\n }\n }\n\n\n if (retreivedDocumentDate != null) {\n foodProcessingInpectionArrayList.add(new FoodProcessingInpection(\n foodProcessingInpectionlist.get(i).getDocumentNumber(),\n retreivedDocumentDate,\n cbPartner,\n foodProcessingInpectionlist.get(i).getFoodCropManufacturingPlanApproval()));\n }\n\n\n localhash.put(i, foodProcessingInpectionlist.get(i).getLocalID());\n adapter = new FoodProcessingListAdapter(getActivity(), foodProcessingInpectionArrayList);\n list.setAdapter(adapter);\n }\n\n\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n TextView textviewDocumentNumber = viewClicked.findViewById(R.id.textviewdocument_no_no);\n TextView textviewDocumentDate = viewClicked.findViewById(R.id.textviewdocument_date_date);\n TextView textviewsisalSpinningExportNumber = viewClicked.findViewById(R.id.textviewlicence_number);\n TextView textviewApplicantName = viewClicked.findViewById(R.id.textviewname_of_applicant);\n\n documentNumber = foodProcessingInpectionArrayList.get(position).getDocumentNumber();\n documentDate = foodProcessingInpectionArrayList.get(position).getDocumentDate();\n Licenceno = foodProcessingInpectionArrayList.get(position).getFoodCropManufacturingPlanApproval();\n nameOfApplicant = foodProcessingInpectionArrayList.get(position).getNameOfApplicant();\n\n localID = localhash.get(position);\n\n }\n });\n }", "@Override\n public int getItemCount() {\n return mFlatListFiltered.size();\n }", "public Builder clearIsList() {\n bitField0_ = (bitField0_ & ~0x00000004);\n isList_ = false;\n onChanged();\n return this;\n }", "private void applyFilters() {\n Task task = new Task() {\n @Override\n public Object call() {\n long start = System.currentTimeMillis();\n System.out.println(\"Applying filters! \" + filterList.size());\n filteredRowItemList = fullCustomerRowItemList;\n for (CustomerListFilter eachFilter : filterList) {\n eachFilter.setCustomerList(filteredRowItemList);\n filteredRowItemList = eachFilter.run();\n }\n System.out.println(\"Filtering took : \" + (System.currentTimeMillis() - start) + \" ms\");\n searchResultsTable.setItems(filteredRowItemList);\n customerCountStatus.setText(Integer.toString(filteredRowItemList.size()));\n return null;\n }\n };\n task.run();\n }", "private void fillStatusList() {\n StatusList = new ArrayList<>();\n StatusList.add(new StatusItem(\"Single\"));\n StatusList.add(new StatusItem(\"Married\"));\n }", "@Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n reloadMenuItem.setVisible(false);\n listToggleMenuItem.setVisible(false);\n mIsSearchMode = true;\n return true;\n }", "@ApiStatus.Internal\n default boolean isListable() {\n \n return false;\n }", "public List<TaskItemBean> getItemList(){\n return itemList;\n }", "public PlanFormulateListAdapter(List<PlanListBean> data, Context context, boolean isTask) {\n super(data);\n addItemType(PlanListBean.START, R.layout.cdqj_patrol_plan_my_start_item);\n addItemType(PlanListBean.OTHER, R.layout.cdqj_patrol_plan_my_other_item);\n this.context = context;\n this.isTask = isTask;\n }", "private void emptyViewForFilter(){\n if(adapter.getItemCount() <= 0){\n v.setVisibility(View.GONE);\n filempty.setVisibility(View.VISIBLE);\n } else {\n v.setVisibility(View.VISIBLE);\n filempty.setVisibility(View.GONE);\n }\n }", "public void showAllItems() {\n\t\tif (mIsAllItemsHide) {\n\n\t\t\tfor (int i = 0; i < mTotalTexts.size(); i++) {\n\t\t\t\tmTotalTexts.get(i).setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t\tmTitleText.setVisibility(View.VISIBLE);\n\t\t\tmInnerEditText.setVisibility(View.VISIBLE);\n\t\t\tthis.measure(mWidthMeasureSpec, mHeightMeasureSpec);\n\n\t\t\tif (mOnAfterShowAllItemsListener != null) {\n\t\t\t\tmOnAfterShowAllItemsListener.onAfterShowAllItems();\n\t\t\t}\n\t\t}\n\t\tmIsAllItemsHide = false;\n\t\tmInnerEditText.requestFocus();\n\t}", "ObservableList<Deliverable> getFilteredDeliverableList();", "@Override\r\n\t\tprotected void onPostExecute(AppBeanParacable result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif (!isCancelled()) {\r\n\t\t\t\tif (result != null) {\r\n\r\n\t\t\t\t\tif (result instanceof CompareBean) {\r\n\t\t\t\t\t\tsearchlist = ((CompareBean) result).getList();\r\n\t\t\t\t\t\tif (searchlist.size() > 0) {\r\n\t\t\t\t\t\t\tadapter = new SearchWatchlistView(searchlist,\r\n\t\t\t\t\t\t\t\t\tmContext, keyword);\r\n\r\n\t\t\t\t\t\t\tif (addtoCompare.getVisibility() == View.VISIBLE) {\r\n\t\t\t\t\t\t\t\taddtoCompare.setAdapter(adapter);\r\n\t\t\t\t\t\t\t\tif (addtoCompare.getText().toString().trim()\r\n\t\t\t\t\t\t\t\t\t\t.length() > 2) {\r\n\t\t\t\t\t\t\t\t\taddtoCompare.showDropDown();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\taddtoCompare.dismissDropDown();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (addtoCompare2.getVisibility() == View.VISIBLE) {\r\n\t\t\t\t\t\t\t\taddtoCompare2.setAdapter(adapter);\r\n\t\t\t\t\t\t\t\taddtoCompare2.showDropDown();\r\n\t\t\t\t\t\t\t\tif (addtoCompare2.getText().toString().trim()\r\n\t\t\t\t\t\t\t\t\t\t.length() > 2) {\r\n\t\t\t\t\t\t\t\t\taddtoCompare2.showDropDown();\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\taddtoCompare2.dismissDropDown();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else if (addtoCompare.getVisibility() == View.GONE\r\n\t\t\t\t\t\t\t\t\t&& addtoCompare.getVisibility() == View.VISIBLE) {\r\n\t\t\t\t\t\t\t\taddtoCompare.dismissDropDown();\r\n\t\t\t\t\t\t\t\taddtoCompare2.dismissDropDown();\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\taddtoCompare.dismissDropDown();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}", "@Override\n public Filter getFilter() {\n return main_list_filter;\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int nItem,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tPullDownListInfo pli = m_PDLI.get(nItem);\r\n\t\t\t\tif (!pli.getIsChoose()) {\r\n\t\t\t\t\tm_tvSortName.setText(pli.getText());\r\n\t\t\t\t\t//\r\n\t\t\t\t\tresetPullDownListView();\r\n\t\t\t\t\tpli.setIsChoose(true);\r\n\t\t\t\t\tm_PullDownLA.notifyDataSetChanged();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm_tvSortName\r\n\t\t\t\t\t\t.setBackgroundResource(R.drawable.common_tv_bg_pulldown_normal);\r\n\t\t\t\tm_PDLV.setVisibility(View.GONE);\r\n\r\n\t\t\t\tint nRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_NEW;\r\n\t\t\t\tswitch (nItem) {\r\n\t\t\t\tcase 1: {\r\n//\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_LIKE;\r\n//\t\t\t\t\tm_filters = getSearchHistory();\r\n\t//\r\n//\t\t\t\t\t// 友盟统计--任务--排序--猜你喜欢\r\n//\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Like\");\r\n//\t\t\t\t}\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\tcase 2: {\r\n//\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_PERIPHERY;\r\n//\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n//\t\t\t\t\tm_bIsSearch = false;\r\n\t//\r\n//\t\t\t\t\t// 友盟统计--任务--排序--周边职位\r\n//\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Reriphery\");\r\n//\t\t\t\t}\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\tcase 3: {\r\n\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_SORT;\r\n\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n\t\t\t\t\tm_bIsSearch = false;\r\n\r\n\t\t\t\t\t// 友盟统计--任务--排序--悬赏排名\r\n\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Sort\");\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 0:\r\n\t\t\t\tdefault: {\r\n\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_NEW;\r\n\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n\t\t\t\t\tm_bIsSearch = false;\r\n\r\n\t\t\t\t\t// 友盟统计--任务--排序--最新发布\r\n\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_New\");\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm_nListStatus = LISTVIEW_STATUS_ONREFRESH;\r\n\t\t\t\tm_lvReward.setLoading();\r\n\t\t\t\t// 获取悬赏任务列表\r\n\t\t\t\tstartGetData(HeadhunterPublic.REWARD_DIRECTIONTYPE_NEW, \"\",\r\n\t\t\t\t\t\tnRequestType);\r\n\t\t\t}", "void onItemsLoadComplete() {\n adapter.notifyDataSetChanged();\n\n // Stop refresh animation\n srl.setRefreshing(false);\n }", "boolean getIsComplete();", "private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }", "public abstract boolean isItemFiltered(pt.keep.oaiextended.AgentItem item);", "@Override\r\n\tpublic boolean isVisible()\r\n\t{\n\t\treturn !getFormScreen().getMode().equals(Mode.LIST_VIEW);\r\n\t}", "@VTID(38)\n boolean getList();", "@Override\n\tpublic void onGetUserItemsSuccess(LinkedHashSet<ItemBasic> userItems) {\n\t\tuserItemsObtained = userItems;\n<<<<<<< HEAD\n\t\tMyProfileItemAdapter myItemsItemAdapter = new MyProfileItemAdapter(PersonProfileItems.this, imageLoader, userItems);\n=======\n\t\tMyProfileItemAdapter myItemsItemAdapter = new MyProfileItemAdapter(PersonProfileItems.this, katwalk.imageLoader, userItems);\n>>>>>>> GoWild\n\t\tlistOfItems.setAdapter(myItemsItemAdapter);\n\t\t\n\t\tetMyItemsListSearch.addTextChangedListener(new TextWatcher() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n<<<<<<< HEAD\n\t\t\t\tMyProfileItemAdapter myItemsItemAdapter = new MyProfileItemAdapter(PersonProfileItems.this, imageLoader, userItemsObtained, s);\n=======\n\t\t\t\tMyProfileItemAdapter myItemsItemAdapter = new MyProfileItemAdapter(PersonProfileItems.this, katwalk.imageLoader, userItemsObtained, s);\n>>>>>>> GoWild\n\t\t\t\tlistOfItems.setAdapter(myItemsItemAdapter);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}); // End of TextWatcher\n\n\t}", "public boolean isInList();", "@GetMapping({\"/\", \"/list\"}) // when is active true -> printing only with done=true, using stream in service\n public String list (Model model, @RequestParam (required = false) boolean isActive, @RequestParam(required = false) String searchInput) {\n if (isActive == true) {\n model.addAttribute(\"todos\", todoService.onlyActive());\n }\n else if(searchInput==null) {\n model.addAttribute(\"assignees\", assigneeService.allAssignee());\n model.addAttribute(\"todos\", todoService.allTodos());\n }\n else if (searchInput!=null) {\n model.addAttribute(\"todos\",todoService.searchBy_TITLE_DATE_DESCRIPTION(searchInput));\n }\n return \"todoList\";\n }", "ObservableList<Task> getUnfilteredTaskList();", "public void chooseOptionMarkAsCompleteOnBulkActionsDropDown() {\n try {\n getLogger().info(\"Choose option: Mark as complete\");\n optionMarkAsComplete.click();\n NXGReports.addStep(\"Choose option: Mark as complete.\", LogAs.PASSED, null);\n } catch (Exception ex) {\n getLogger().info(ex);\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Choose option: Mark as complete.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n\n }", "public MainList getSummaryForcast() {\n\t\t\n\t\tMainList mainLists = new MainList();\n\t\tList<Forcast> forcasts = new ArrayList<>();\n\t\tList<Forcast> forcastLists = this.mainList.getListItem();\n\t\t\n\t\tforcasts = forcastLists.stream().filter(p -> this.getFilterDuration(p.getDt_txt(), new Date()) == true).collect(Collectors.toList());\n\t\t\n\t\tmainLists.setListItem(forcasts);\n\t\tmainLists.setCity(this.mainList.getCity());\n\t\t\n\t\treturn mainLists;\n\t}", "private void displayUrgent(ToDoList toDoList) {\n int i = 1;\n\n System.out.println(\"Urgent Items:\");\n\n for (Item item : toDoList.getItems()) {\n if (Integer.parseInt(item.getDaysBeforeDue()) <= 1) {\n Categories c = item.getCategory();\n System.out.println(i + \". \" + item.getTitle() + \" due in \" + item.getDaysBeforeDue() + \" days, \" + c);\n i++;\n }\n }\n }", "boolean isPreFiltered();", "@Override\n public void onChanged(@Nullable final List<AssessmentEntity> assessments) {\n List<AssessmentEntity> filteredAssessments = new ArrayList<>();\n assessmentAdapter.setCourses(assessments);\n\n for (AssessmentEntity a : assessments) {\n if(a.getCourseId()== getIntent().getIntExtra(\"courseId\", 0)){\n filteredAssessments.add(a);\n }\n }\n\n if(filteredAssessments.size() == 5){\n fab.hide();\n }else{\n fab.show();\n }\n assessmentAdapter.setCourses(filteredAssessments);\n\n }", "public List<SearchedItem> getAllSearchedItems(StaplerRequest req, String tokenList) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, ServletException {\n Set<String> filteredItems= new TreeSet<String>();\n AbstractProject p;\n \n if(\"Filter\".equals(req.getParameter(\"submit\"))){ //user wanto to change setting for this search\n filteredItems = getFilter(req);\n }\n else{\n filteredItems = User.current().getProperty(SearchProperty.class).getFilter();\n }\n req.setAttribute(\"filteredItems\", filteredItems);\n return getResolvedAndFilteredItems(tokenList, req, filteredItems);\n }", "private void viewSavedSchedules() {\n if (yesNoQuestion(\"Would you like to filter through the saved schedules?\")) {\n showAllSchedulesFiltered(scheduleList.getScheduleList());\n } else {\n showAllSchedules(scheduleList.getScheduleList());\n }\n }", "public boolean isListable();", "public boolean hasMoreItems();", "@Override\r\n\tpublic List<SweetItem> showAllSweetItems() {\n\t\treturn null;\r\n\t}", "public void updateTempList() {\n if (disableListUpdate == 0) {\n tempAdParts.clear();\n LatLngBounds bounds = mapboxMap.getProjection().getVisibleRegion().latLngBounds;\n iterator = AdParts.listIterator();\n while (iterator.hasNext()) {\n current = iterator.next();\n if (bounds.contains(current.getLatLng())) {\n tempAdParts.add(current);\n }\n }\n AdAdapter adapter = new AdAdapter(MainActivity.this, tempAdParts);\n listView.setAdapter(adapter);\n }\n }" ]
[ "0.78877777", "0.7486506", "0.6562674", "0.60855645", "0.6045815", "0.5944023", "0.5944023", "0.59406537", "0.59373975", "0.5917731", "0.59062934", "0.5883217", "0.5875178", "0.565532", "0.5654515", "0.56338465", "0.5596457", "0.5529711", "0.5528712", "0.55030483", "0.5493035", "0.54909754", "0.54554915", "0.5395866", "0.539519", "0.5392945", "0.5387905", "0.53357387", "0.53339005", "0.53256834", "0.53199226", "0.5295816", "0.52851635", "0.5266572", "0.525331", "0.52527", "0.52440625", "0.5227473", "0.52115375", "0.5205599", "0.51839143", "0.51775306", "0.5166604", "0.51466924", "0.51311195", "0.51044375", "0.50961244", "0.5095295", "0.5084174", "0.50769025", "0.5068817", "0.5066116", "0.50655735", "0.50562817", "0.5053764", "0.5051463", "0.50484055", "0.504293", "0.5042501", "0.5033015", "0.5032445", "0.5030179", "0.5017242", "0.50044703", "0.4992465", "0.49799117", "0.49744102", "0.497148", "0.49691737", "0.4965653", "0.49626562", "0.49496153", "0.49495983", "0.49393964", "0.49327257", "0.49275473", "0.49257255", "0.4925575", "0.49236906", "0.49219573", "0.49200523", "0.4913926", "0.49114528", "0.49043724", "0.48863617", "0.4878043", "0.48699313", "0.486632", "0.48631418", "0.48626444", "0.48606488", "0.4845653", "0.48441434", "0.4834119", "0.48290694", "0.4828758", "0.4820382", "0.4809722", "0.48088792", "0.48066902", "0.48064977" ]
0.0
-1
/ Here we are going to load multiple lists into the list view which is the Lists. We are going to add them and load them with the List class
@FXML public void Load_Multiple_Lists(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadLists() {\n }", "public void loadAllLists(){\n }", "public void loadLists() {\n Cursor cListas = getAllLists(); // Cursor en tabla listas\n Cursor cMovieList; // Cursor en tabla lista-pelicula\n Cursor cPeli; // Cursor en tabla peliculas a una película\n while (cListas.moveToNext()) {\n int id_list = cListas.getInt(cListas.getColumnIndex(ColumnList.ID_LIST));\n if (!Lista.existLista(id_list)) {\n Lista lista = new Lista(id_list,\n cListas.getString(cListas.getColumnIndex(ColumnList.NAME_LIST)),\n cListas.getString(cListas.getColumnIndex(ColumnList.DESCRIPTION_LIST)));\n cMovieList = getMoviesInList(cListas.getInt(cListas.getColumnIndex(ColumnList.ID_LIST)));\n while (cMovieList.moveToNext()) {\n cPeli = getMovie(cMovieList.getInt(cMovieList.getColumnIndex(ColumnMoviesList.ID_MOVIE)));\n if(cPeli.moveToNext())\n lista.addPelicula(getPelicula(cPeli.getString(cPeli.getColumnIndex(ColumnMovie.IMDBID))));\n cPeli.close();\n }\n cMovieList.close();\n }\n }\n cListas.close();\n }", "private void loadListView() {\n\t\tList<ClientData> list = new ArrayList<ClientData>();\n\t\ttry {\n\t\t\tlist = connector.get();\n\t\t\tlView.updateDataView(list);\n\t\t} catch (ClientException e) {\n\t\t\tlView.showErrorMessage(e);\n\t\t}\n\n\t}", "private void loadLists() {\n loadSavedCourses();\n loadSavedSchedules();\n }", "private void loadLists() {\n setUpFooter();\n if (numberOfLists > 0) {\n this.updateComponent(footer);\n for (Object l : agenda.getConnector().getItems(agenda.getUsername(), \"list\")) {\n Items list = (Items) l;\n comboBox.addItem(list.getName());\n JPanel panel = new JPanel();\n panel.setName(list.getName());\n setup.put(list.getName(), false);\n window.add(list.getName(), panel);\n currentList = list;\n }\n setUpHeader();\n for (Component c : window.getComponents()) {\n if (!setup.get(c.getName())){\n setUpList((JPanel) c);\n setup.replace(c.getName(),true);\n break;\n }\n }\n comboBox.setSelectedIndex(numberOfLists-1);\n } else{\n setUpHeader();\n }\n }", "private void LoadList() {\n try {\n //get the list\n ListView termListAdpt = findViewById(R.id.assessmentListView);\n //set the adapter for term list\n AssessmentAdapter = new ArrayAdapter<String>(AssessmentActivity.this, android.R.layout.simple_list_item_1, AssessmentData.getAssessmentsbyNames());\n termListAdpt.setAdapter(AssessmentAdapter);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void loadListView(ArrayList<LonelyPicture> picList){\n \t\n\t\t\t\t\n\n\t\t adapter = new ArrayAdapter<LonelyPicture>(getActivity().getApplicationContext(),\n\t\t android.R.layout.simple_list_item_multiple_choice, android.R.id.text1, picList);\n\t\t \n\n\t\t picListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);\n\t\t picListView.setAdapter(adapter);\n\t\t\n\t\t \n\t\t //picListView = (ListView) findViewById(R.id.picListView);\n\t\t//will this really work?\n\t\t\n\t\t\t picListView = (ListView) getActivity().findViewById(R.id.picListView);\n\t\t\t picListView.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t\t\t\n\t\t\t\t public void onItemClick(AdapterView<?> a, View v, int i, long l){\n\t\t\t\t\t MainActivity.fetch = (LonelyPicture) picListView.getItemAtPosition(i);\n\t\t\t\t\tMainActivity.printList.add((LonelyPicture) picListView.getItemAtPosition(i));\n\t\t\t\t\tButton right = (Button) getActivity().findViewById(R.id.show_and_back_button);\n\t\t\t\t\tright.setEnabled(true);\n\t\t\t\t\tLog.e(\"From picListFragment--guid\", MainActivity.fetch.getGUID());\n\t\t\t\t\t\n\t\t\t\t }});\n\t\t \n }", "private void initializeList() {\n findViewById(R.id.label_operation_in_progress).setVisibility(View.GONE);\n adapter = new MapPackageListAdapter();\n listView.setAdapter(adapter);\n listView.setVisibility(View.VISIBLE);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n \n @Override\n public void onItemClick(AdapterView<?> parent, final View view, final int position, long id) {\n List<DownloadPackage> childPackages = searchByParentCode(currentPackages.get(position).getCode());\n if (childPackages.size() > 0) {\n currentPackages = searchByParentCode(currentPackages.get(position).getCode());\n adapter.notifyDataSetChanged();\n }\n }\n });\n }", "private void showList() {\n\n if(USE_EXTERNAL_FILES_DIR) {\n mList = mFileUtil.getFileNameListInExternalFilesDir();\n } else {\n mList = mFileUtil.getFileListInAsset(FILE_EXT);\n }\n mAdapter.clear();\n mAdapter.addAll(mList);\n mAdapter.notifyDataSetChanged();\n mListView.invalidate();\n}", "private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }", "private void addDataForListView() {\n \t\n \tif(loadable)\n \t{\t\n \tloadable = false;\n \tdirection = BACKWARD;\n \tstrUrl = Url.composeHotPageUrl(type_id, class_id, last_id);\n \trequestData();\n \t}\n\t}", "private void loadList() {\n new MyAsyncTask(this, username, mainUsername, authHead, pageType,\n userList, view).execute(\"\");\n this.swipeContainer.setRefreshing(false);\n }", "private void populateListView() {\n ArrayAdapter<Representative> adapter = new MyListAdapter();\n ListView list = (ListView) findViewById(R.id.repListView);\n list.setAdapter(adapter);\n }", "private void setDataOnList() {\r\n if (SharedPref.getSecureTab(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.SECURE_TAB)) {\r\n dataModelArrayList.addAll(secureMediaFileDb.getSecureUnarchiveFileList());\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelper.imageDataModelList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewData.imageDataModelList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewData.imageDataModelList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewData.imageDataModelList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n position = dataModelArrayList.indexOf(imageDataModel);\r\n } else if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n dataModelArrayList.addAll(GalleryHelperBaseOnId.dataModelArrayList);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(VideoViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n dataModelArrayList.addAll(AudioViewDataOnIdBasis.dataModelArrayList);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n dataModelArrayList.addAll(PhotoViewDataOnIdBasis.dataModelArrayList);\r\n }\r\n Collections.sort(dataModelArrayList);\r\n }\r\n }", "private void initList() {\n tempShopList=wdh.getTempShopList();\n final String[] listIndex=new String[tempShopList.size()];\n \n // System.out.println(tempShopList.size());\n \n for(int i=0;i<tempShopList.size();i++)\n listIndex[i]=String.valueOf(i+1); \n \n// jList1=new JList(listIndex);\n// jScrollPane1=new JScrollPane(jList1);\n// jScrollPane1.setViewportView(jList1);\n \n \n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings1 = listIndex;\n public int getSize() { return strings1.length; }\n public Object getElementAt(int i) { return strings1[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n \n }", "public void populateListView() {\n\n\n }", "private void populateListView() {\n List<String> groupNames = new ArrayList<String>();\n for (Pair<String, Group> pair : savedGroups) {\n groupNames.add(pair.first);\n }\n if (groupsListAdapter != null) {\n groupsListAdapter.clear();\n groupsListAdapter.addAll(groupNames);\n groupsListAdapter.notifyDataSetChanged();\n }\n }", "private void filllist() {\n mAlLocationBox.clear();\n DatabaseHandler databaseHandler=new DatabaseHandler(this);\n ArrayList<ArrayList<Object>> data = databaseHandler.listIitems();\n\n for (int p = 0; p < data.size(); p++) {\n mLocationBox = new LocationBox();\n ArrayList<Object> temp = data.get(p);\n Log.e(\"List\", temp.get(0).toString());\n Log.e(\"List\", temp.get(1).toString());\n Log.e(\"List\", temp.get(2).toString());\n Log.e(\"List\", temp.get(3).toString());\n mLocationBox.setId(Integer.valueOf(temp.get(0).toString()));\n mLocationBox.setName(temp.get(1).toString());\n mLocationBox.setMode(temp.get(2).toString());\n mLocationBox.setStatus(temp.get(3).toString());\n mAlLocationBox.add(mLocationBox);\n }\n LocationBoxAdapter locationBoxAdapter = new LocationBoxAdapter(LocationBoxListActivity.this,mAlLocationBox);\n listcontent.setAdapter(locationBoxAdapter);\n }", "private void setupListView() {\n potList = loadPotList();\n arrayofpots = potList.getPotDescriptions();\n refresher(arrayofpots);\n }", "public void loadList(String name){\n }", "private void loadDataInListView() {\n list_med = myMedicationDB.getAllData();\n list_schedule = myMedicationDB.getAllDataSchedule();\n myAdapterMedication = new myAdapterMedication(context, list_med, list_schedule);\n allMedList.setAdapter(myAdapterMedication);\n myAdapterMedication.notifyDataSetChanged();\n\n }", "private void loadListView(){\n try {\n MyDBHandler dbHandler = new MyDBHandler(this);\n availabilities.clear();//Clear the array list\n ArrayList<String> myAvailabilities = new ArrayList<String>();\n\n availabilities.addAll(dbHandler.getAllAvailabilitiesFromSP(companyID));\n\n //Concatenate the availability\n for(Availability availability: availabilities)\n myAvailabilities.add(getDayName(availability.getDayID()) + \" at \" +\n availability.getStartDate() + \" to \" +\n availability.getEndDate());\n\n if(myAvailabilities.size()==0) {\n myAvailabilities.add(EMPTY_TEXT_LV1);\n }\n ArrayAdapter<String> data = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myAvailabilities);\n lv_availability.setAdapter(data);\n\n }catch(Exception ex){\n Toast.makeText(this,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "private void initLsitData() {\n\t\tlist = new ArrayList<View>();\n\n\t\tlist.add(new NewsMenupagerItem(Mactivity,TY).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,YL).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,QW).initView());\n\t\tlist.add(new NewsMenupagerItem(Mactivity,MV).initView());\n\n\n\t}", "private void prepareListData() {\n mCategoryList = new ArrayList<>();\n mFullList = new ArrayList<>();\n for (Category cat : fileSystem.getLocalInformationList())\n {\n List<Object> phraseList = cat.phraseList;\n mCategoryList.add(new Category(phraseList, cat.name));\n }\n mFullList.addAll(mCategoryList);\n\n }", "private void inicializaListView(){\n }", "private void initList() {\n\n }", "private void populateListView() {\n String[] myItems = {\"Blue\", \"green\", \"Purple\", \"red\"};\n\n //creating listviewadapter which is an array for storing the data and linking it according to the\n //custom listview\n\n ArrayAdapter<String> listViewAdapter = new ArrayAdapter<String>(this, R.layout.da_items, myItems);\n //linking the listview with our adapter to present data\n ListView Lv = (ListView)findViewById(R.id.listView_data);\n Lv.setAdapter(listViewAdapter);\n }", "private void loadEntryList() {\n EntryAdapter adapter = new EntryAdapter(MainActivity.this, db.selectAll());\n listView.setAdapter(adapter);\n }", "private void cargarLista(ArrayList<CarritoDTO> arrayList)\n {\n DefaultListModel modelo = new DefaultListModel();\n //Recorrer el contenido del ArrayList\n for(int i=0; i<arrayList.size(); i++) \n {\n CarritoDTO item =(CarritoDTO) arrayList.get(i);\n //Añadir cada elemento del ArrayList en el modelo de la lista\n modelo.add(i, item.toString());\n }\n //Asociar el modelo de lista al JList\n jList1.setModel(modelo);\n }", "@Override\n public void onListDataLoaded() {\n if (this.progressBar != null && !this.isListLoaded) {\n this.progressBar.setVisibility(View.GONE);\n }\n if (!this.isListLoaded) {\n addListHeader();\n this.isListLoaded = true;\n }\n }", "private void supaporn() {\n\t\tlistView = (ListView) findViewById(R.id.listView1);\n\t\tlists = new ArrayList<items_list>();\n\t\tadapter=new MyAdater();\n\t\tlistView.setAdapter(adapter);\n\t}", "private void showList() {\n try {\n swipeRefreshLayout.setVisibility(View.VISIBLE);\n tvMessage.setVisibility(View.GONE);\n\n /* to void duplicate data*/\n Set<NewsDetail> newsDetailSet = new HashSet<NewsDetail>(newsList);\n\n newsList.clear();\n newsList = new ArrayList<NewsDetail>(newsDetailSet);\n if (adapter == null) {\n adapter = new NewsListAdapter(mContext, newsList);\n listView.setAdapter(adapter);\n } else {\n adapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void loadShoppingList(){\n try{\n //load the shopping list from the external file\n List<Ingredient> returnedList = Data.<Ingredient>loadList(shoppingListFile);\n if (returnedList != null){\n //convert list to an observableList\n shoppingListIngredients = FXCollections.observableList(returnedList);\n //set to the shopping list\n shoppingList.setItems(shoppingListIngredients);\n } else {\n System.out.println(\"No Shopping List Loaded \");\n }\n } catch (Exception e){\n System.out.println(\"Unable to load shopping list from file \" + shoppingListFile +\n \", the file may not exist\");\n e.printStackTrace();\n }\n }", "public void setDatatoList() {\n swipeRefreshLayout.setRefreshing(true);\n DatabaseHandler databaseHandler = new DatabaseHandler(getApplicationContext());\n locationDetailsList = databaseHandler.getAllLocationDetails();\n if (locationDetailsList.size() > 0) {\n\n recyclerView.setVisibility(View.VISIBLE);\n emptyListText.setVisibility(View.GONE);\n\n mAdapter = new LocationDetailsAdapter(locationDetailsList, this);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(mAdapter);\n } else {\n recyclerView.setVisibility(View.GONE);\n emptyListText.setVisibility(View.VISIBLE);\n emptyListText.setText(this.getResources().getString(R.string.no_list_items));\n }\n swipeRefreshLayout.setRefreshing(false);\n }", "public void refreshLists() {\n refreshCitizenList();\n refreshPlayerList();\n }", "protected void populateContentListView(ArrayList<UnistorEntry> content){\n\n // If first entry is back button, the content array\n // is sorted without this item, which will be added in the first position\n if(content.get(0).getEntryType() == Constants.ENTRY_TYPE_BACK){\n UnistorEntry backEntry = content.remove(0);\n Collections.sort(content, new UnistorEntryComparator());\n content.add(0, backEntry);\n }else{\n Collections.sort(content, new UnistorEntryComparator());\n }\n\n // Setting the adapter with the new items.\n // If the adapter have been previously created, we use notifyDataSetChanged to refresh,\n // that uses fairly less resources than creating a new one.\n if(this.listView.getAdapter() == null){\n UnistorEntryListAdapter listViewAdapter = new UnistorEntryListAdapter(mContext, content);\n this.listView.setAdapter(listViewAdapter);\n // Set context menu for the listview\n registerForContextMenu(listView);\n\n }else{\n UnistorEntryListAdapter listViewAdapter = (UnistorEntryListAdapter)this.listView.getAdapter();\n listViewAdapter.clear();\n listViewAdapter.addAll(content);\n listViewAdapter.notifyDataSetChanged();\n }\n\n\n }", "private void initInstances(View rootView) {\n setRetainInstance(true);\n listView = (ListView) rootView.findViewById(R.id.ListView);\n listView.setAdapter(mDessertListAdapter = new DessertListAdapter());\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n MainBus.getInstance().post(new BusDessertListItem(position));\n }\n });\n\n swipeRefreshLayout = (SwipeRefreshLayout) rootView.findViewById(R.id.swipeRefresh);\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n loadData();\n }\n });\n listView.setOnScrollListener(new AbsListView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n\n }\n\n @Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n swipeRefreshLayout.setEnabled(firstVisibleItem == 0);\n if(firstVisibleItem+visibleItemCount>=totalItemCount){\n //loadmore\n //make sure it doesn't get call more than once at a time\n //\n }\n }\n });\n loadData();\n }", "private void fillList(JList aListComponent,ArrayList<String> theList) {\n DefaultListModel itsModel = new DefaultListModel();\n aListComponent.setModel(itsModel);\n for(String anItem : theList){\n itsModel.addElement(anItem);\n }\n aListComponent.setModel(itsModel);\n }", "private void LoadComponents() {\n MenuBaseAdapter adapter = new MenuBaseAdapter(this.getActivity(), DataApp.LISTDATA);\n // list.setAdapter(adapter);\n this.event.OnLodCompleteDataResult();\n }", "private void populateList(){\n //Build name list\n this.names = new String[] {\"Guy1\",\"Guy2\",\"Guy3\",\"Guy4\",\"Guy5\",\"Guy6\"};\n //Get adapter\n //ArrayAdapter<String>(Context, Layout to be used, Items to be placed)\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.list_items, names);\n //Filling the list view\n ListView list = findViewById(R.id.transaction_list);\n list.setAdapter(adapter);\n }", "public void loadInfo(){\n list=control.getPrgList();\n refreshpsTextField(list.size());\n populatepsListView();\n }", "public void populateListView(ArrayList<TodoData> todos) {\n ListView listView = findViewById(R.id.search_listview);\n TodoListAdapter adapter = new TodoListAdapter(this, todos);\n listView.setAdapter(adapter);\n }", "public void loadList() {\n // Run the query.\n nodes = mDbNodeHelper.getNodeListData();\n }", "@Override\n\t\tpublic void initList() {\n\t\t\tadapter = new MsgItemAdapter(context);\n\t\t\tArrayList<MsgBean> datas = getData();\n\t\t\tadapter.setData(datas);\n\t\t\tmListView.setAdapter(adapter);\n\t\t\tmListView.setViewMode(true, true);\n\t\t\tif(!DataValidate.checkDataValid(datas)){\n\t\t\t\tpageView.setDefaultPage().setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t}", "private void prepareTheList()\n {\n int count = 0;\n for (String imageName : imageNames)\n {\n RecyclerUtils pu = new RecyclerUtils(imageName, imageDescription[count] ,images[count]);\n recyclerUtilsList.add(pu);\n count++;\n }\n }", "public void updateList() {\n if (getActivity().getClass().getName().contains(\"BookmarksActivity\")) {\n\n // Call the create right after initializing the helper, just in case\n // the user has never run the app before.\n mDbNodeHelper.createDatabase();\n\n // Get a list of bookmarked node titles.\n loadBookmarks();\n\n // Close the database\n mDbNodeHelper.close();\n\n // Clear the old ListView.\n setListAdapter(null);\n\n // Initialize a new model object\n CategoryModel[] bookmarksModel = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n bookmarksModel[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n\n // Create a new list adapter based on our new updated array.\n ListAdapter bookmarksAdapter = new CategoryModelListAdapter(mActivity, bookmarksModel);\n\n // set the new list adapter, thus updating the list display.\n setListAdapter(bookmarksAdapter);\n }\n else if (getActivity().getClass().getName().contains(\"BrowseActivity\")) {\n\n // Call the create right after initializing the helper, just in case\n // the user has never run the app before.\n mDbNodeHelper.createDatabase();\n\n // Get a list of bookmarked node titles.\n loadList();\n\n // Close the database\n mDbNodeHelper.close();\n\n // Clear the old ListView.\n setListAdapter(null);\n\n // Initialize a new model object\n CategoryModel[] bookmarksModel = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n bookmarksModel[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n\n // Create a new list adapter based on our new updated array.\n ListAdapter bookmarksAdapter = new CategoryModelListAdapter(mActivity, bookmarksModel);\n\n // set the new list adapter, thus updating the list display.\n setListAdapter(bookmarksAdapter);\n }\n }", "private void initList() {\r\n\t\tlist = new JList<>();\r\n\t\tFile rootFile = new File(System.getProperty(\"user.dir\"));\r\n\t\tloadFilesInFolder(rootFile);\r\n\t\tlist.addListSelectionListener(new FileListSelectionListener());\r\n\t}", "public void openList() {\n\t\tString title = resourceManager.getString(\"process.view.list.title\");\n\t\tint indexOfTab = tabbedPane.indexOfTab(title);\n\t\tif (indexOfTab >= 0) {\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t} else {\n\t\t\tlView = new ListView(this, resourceManager);\n\t\t\ttabbedPane.addTab(title, lView);\n\n\t\t\ttabbedPane.setTabComponentAt(tabbedPane.indexOfTab(title),\n\t\t\t\t\tnew ButtonTabComponent(tabbedPane, this, lView,\n\t\t\t\t\t\t\tresourceManager));\n\t\t\tindexOfTab = tabbedPane.indexOfTab(title);\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t\tloadListView();\n\t\t}\n\t}", "public S<T> list(String idView,List<Object> objects){\n\t\t\n\t\tidView =idView.intern();\n\t\tT aux = t;\n\t\tint resID = activity.getResources().getIdentifier(idView, \"layout\", activity.getPackageName());\n\t\tListView list = (ListView) t;\n\t\tSAdapter a = new SAdapter(resID,objects);\n\t\tlist.setAdapter(a);\n\t\t\n\t\tt = aux;\n\t\treturn this;\n\t}", "void loadNewData(List<Todo> newTodo) {\n mTodoList = newTodo;\n notifyDataSetChanged();\n }", "private void loadItemList() {\n this.presenter.initialize();\n }", "private static void initializeLists() {\n\t\t\n\t\t//read from serialized files to assign array lists\n\t\t//customerList = (ArrayList<Customer>) readObject(customerFile);\n\t\t//employeeList = (ArrayList<Employee>) readObject(employeeFile);\n\t\t//applicationList = (ArrayList<Application>) readObject(applicationFile);\n\t\t//accountList = (ArrayList<BankAccount>) readObject(accountFile);\n\t\t\n\t\t//read from database to assign array lists\n\t\temployeeList = (ArrayList<Employee>)employeeDao.readAll();\n\t\tcustomerList = (ArrayList<Customer>)customerDao.readAll();\n\t\taccountList = (ArrayList<BankAccount>) accountDao.readAll();\n\t\tapplicationList = (ArrayList<Application>)applicationDao.readAll();\n\t\t\n\t\tassignBankAccounts();\n\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tif (listitem != null || listitem.size() > 0) {\n\t\t\t\t\tlistitem.clear();\n\t\t\t\t}\n\t\t\t\tnew AsyncTask<Void, Void, Void>() {\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\tgetdata(1);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\t\t\tif (count >= 19) {\n\t\t\t\t\t\t\txlistview.startLoadMore();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\txlistview.stopLoadMore();\n\t\t\t\t\t\t}\n\t\t\t\t\t\txlistview.setRefreshSuccess();\n\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\tLog.d(TAG, \"jieshu\");\n\t\t\t\t\t}\n\t\t\t\t}.execute(null, null, null);\n\t\t\t}", "public static void addList() {\n\t}", "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 void setUpList() {\n\t\tRoomItemAdapter adapter = new RoomItemAdapter(getApplicationContext(),\n\t\t\t\trName, rRate);\n\t\tlistView.setAdapter(adapter);\n\n\t\tlistView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\thandleClick(position);\n\t\t\t}\n\t\t});\n\t}", "private void fillData() {\n adapter = new ListViewAdapter();\n listview01.setAdapter(adapter);\n }", "private void loadEmployees() {\n Cursor cursor = databaseHelper.getAllPersons();\n\n if (cursor.moveToFirst()) {\n do {\n personList.add(new PersonClass(\n cursor.getString(0),\n cursor.getString(1),\n cursor.getInt(2),\n cursor.getString(3)\n\n ));\n } while (cursor.moveToNext());\n cursor.close();\n\n PersonAdapter personAdapter = new PersonAdapter(this, R.layout.list_person, personList, databaseHelper);\n listView.setAdapter(personAdapter);\n\n\n }\n }", "public void init(List<ClientDownloadItem> list) {\n if (list != null) {\n mItemlist.clear();\n mItemlist.addAll(list);\n Log.i(TAG, \"mItemlist.size = \" + mItemlist.size());\n notifyDataSetChanged();\n }\n }", "private void initList(int num) {\r\n\t\t/**\r\n\t\t * Set up the adapters\r\n\t\t */\r\n\t\tswitch (num) {\r\n\t\tcase 1:\r\n\t\t\tif(MyAppService.securityList != null && MyAppService.securityList.size() > 0) {\r\n\t\t\t\tArrayList<String> secList = getList(MyAppService.securityList);\r\n\t\t\t\tlistsc1.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, secList));\r\n\t\t\t}else \r\n\t\t\t\tlistsc1.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, \r\n\t\t\t\t\t\tgetResources().getStringArray(R.array.accordion_string_1)));\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tif(MyAppService.healthList != null && MyAppService.healthList.size() > 0) {\r\n\t\t\t\tArrayList<String> secList = getList(MyAppService.healthList);\r\n\t\t\t\tlistsc2.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, secList));\r\n\t\t\t}else \r\n\t\t\t\tlistsc2.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, \r\n\t\t\t\t\t\tgetResources().getStringArray(R.array.accordion_string_2)));\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tif(MyAppService.fireList != null && MyAppService.fireList.size() > 0) {\r\n\t\t\t\tArrayList<String> secList = getList(MyAppService.fireList);\r\n\t\t\t\tlistsc3.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, secList));\r\n\t\t\t}else \r\n\t\t\t\tlistsc3.setAdapter(new ArrayAdapter<String>(getParent(), R.layout.accordion_item_layout, \r\n\t\t\t\t\t\tgetResources().getStringArray(R.array.accordion_string_3)));\r\n\t\t\tbreak;\t\t\t\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\r\n\t}", "private void populateQuestionListView(){\n questionList = (ListView) findViewById(R.id.question_list);\n qla = new QuizListAdapter(this);\n for(int i = 0; i < questions.getSize(); i++)\n qla.add(questions.getNext(Question.class));\n\n //sets the adapter for all the list items\n if(questionList != null){\n questionList.setAdapter(qla);\n }\n }", "public void loadList () {\r\n ArrayList<String> list = fileManager.loadWordList();\r\n if (list != null) {\r\n for (String s : list) {\r\n addWord(s);\r\n }\r\n }\r\n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn lists.size();\n\t\t}", "private void setToDoLists(){\n\n ArrayList<String> groceries = new ArrayList<String>();\n groceries.add(\"groceries\");\n groceries.add(\"apples\");\n groceries.add(\"gogurts\");\n groceries.add(\"cereal\");\n groceries.add(\"fruit roll ups\");\n groceries.add(\"lunch meat\");\n groceries.add(\"milk\");\n groceries.add(\"something for dessert\");\n groceries.add(\"steak\");\n groceries.add(\"milksteak\");\n groceries.add(\"cookies\");\n groceries.add(\"brewzongs\");\n\n ArrayList<String> bills = new ArrayList<String>();\n bills.add(\"bills\");\n bills.add(\"car loan\");\n bills.add(\"cable\");\n bills.add(\"rent\");\n\n ArrayList<String> emails = new ArrayList<String>();\n emails.add(\"emails\");\n\n ArrayList<ArrayList<String>> tmpMyList;\n tmpMyList = new ArrayList<ArrayList<String>>();\n\n tmpMyList.add(groceries);\n tmpMyList.add(bills);\n tmpMyList.add(emails);\n\n myList = tmpMyList;\n\n }", "private void loadListView() {\n final ProgressDialog progressDialog = new ProgressDialog(getActivity());\n progressDialog.setMessage(\"Please waiting\");\n progressDialog.show();\n tableUser.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n userArrayList.clear();\n userAdapter.clear();\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n User user = snapshot.getValue(User.class);\n user.setId(snapshot.getKey());\n userArrayList.add(user);\n }\n userAdapter.notifyDataSetChanged();\n progressDialog.dismiss();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "@Override\n protected void initData() {\n mPullRefreshListView.setOnRefreshListener(new PullToRefreshBase.OnRefreshListener2<ListView>() {\n /**\n * 下拉刷新\n * @param refreshView\n */\n @Override\n public void onPullDownToRefresh(PullToRefreshBase<ListView> refreshView) {\n //得到当前刷新的时间\n String label = DateUtils.formatDateTime(getGlobalApplication(), System.currentTimeMillis(),\n DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_ABBREV_ALL);\n // Update the LastUpdatedLabel\n //设置更新时间\n refreshView.getLoadingLayoutProxy().setLastUpdatedLabel(label);\n// Toast.makeText(mContext, \"下拉刷新\", Toast.LENGTH_SHORT).show();\n new GetDataTask().execute();\n }\n\n /**\n * 上拉刷新\n * @param refreshView\n */\n @Override\n public void onPullUpToRefresh(PullToRefreshBase<ListView> refreshView) {\n //得到当前刷新的时间\n String label = DateUtils.formatDateTime(getGlobalApplication(), System.currentTimeMillis(),\n DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_ABBREV_ALL);\n // Update the LastUpdatedLabel\n //设置更新时间\n refreshView.getLoadingLayoutProxy().setLastUpdatedLabel(label);\n// Toast.makeText(mContext, \"上拉刷新!\", Toast.LENGTH_SHORT).show();\n new GetDataTask().execute();\n }\n\n });\n\n // Add an end-of-list listener\n //设置监听最后一条\n mPullRefreshListView.setOnLastItemVisibleListener(new PullToRefreshBase.OnLastItemVisibleListener() {\n @Override\n public void onLastItemVisible() {\n Toast.makeText(mContext, \"滑动到最后一条了!\", Toast.LENGTH_SHORT).show();\n }\n });\n\n //从服务器获取数据\n //得到ListView\n listview = mPullRefreshListView.getRefreshableView();\n articlesList = new ArrayList<>();\n\n// Article art;//new Article(\"希望大家说都开开学习\",\"http://img.zcool.cn/community/01b72057a7e0790000018c1bf4fce0.png\",\"https://zhidao.baidu.com/question/1885817326500180748.html\",\"0\",\"0\");\n// for (int i = 0; i < 10; i++) {\n// art = new Article(\"希望大家说都开开学习\", \"http://img.zcool.cn/community/01b72057a7e0790000018c1bf4fce0.png\", \"https://zhidao.baidu.com/question/1885817326500180748.html\", \"\" + i, \"\" + i, \"\" + i);\n// articlesList.add(art);\n// }\n\n\n OkGo.post(Urls.URL_LOADART)\n .params(\"typeName\", title)\n .execute(new StringCallback() {\n @Override\n public void onSuccess(String s, Call call, Response response) {\n //获得\n articlesList = (ArrayList<Article>) JSON.parseArray(s, Article.class);\n mAdapter = new ArticleAdapter(mContext, articlesList, R.layout.item_article);\n //设置ListView的适配器\n listview.setAdapter(mAdapter);\n }\n });\n\n// mAdapter = new ArticleAdapter(mContext, articlesList, R.layout.item_article);\n// //设置ListView的适配器\n// listview.setAdapter(mAdapter);\n// /**\n// * Add Sound Event Listener\n// * 添加刷新事件并且发出声音\n// */\n// SoundPullEventListener<ListView> soundListener = new SoundPullEventListener<ListView>(this);\n// soundListener.addSoundEvent(State.PULL_TO_REFRESH, R.raw.pull_event);\n// soundListener.addSoundEvent(State.RESET, R.raw.reset_sound);\n// soundListener.addSoundEvent(State.REFRESHING, R.raw.refreshing_sound);\n// mPullRefreshListView.setOnPullEventListener(soundListener);\n//\n// // You can also just use setListAdapter(mAdapter) or\n// // mPullRefreshListView.setAdapter(mAdapter)\n //设置适配器\n// listview.setAdapter(mAdapter);\n\n //设置上拉刷新或者下拉刷新\n// mPullRefreshListView.setMode(PullToRefreshBase.Mode.PULL_FROM_END);\n mPullRefreshListView.setMode(PullToRefreshBase.Mode.PULL_FROM_START);\n\n }", "private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }", "private void loadData(){\n\n fileName = EditedFiles.getActiveFacilityFile();\n getFacilities().clear();\n\n try {\n getFacilities().addAll(ReaderThreadRunner.startReader(fileName));\n } catch (ExecutionException | InterruptedException e) {\n e.printStackTrace();\n }\n\n\n observableList = FXCollections.observableList(getFacilities());\n facilitiesView.setItems(observableList);\n }", "private void initView(List<PersonWrapper> listOfPersons) {\n adapter = new PersonAdapter(context, listOfPersons);\n mPersonsView.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n }", "private void LoopData() {\n\t\tfor (int i = 0; i < drawable.length; i++) {\n\t\t\titems_list items_list = new items_list();\n\t\t\titems_list.setDrawable(getResources().getDrawable(drawable[i]));\n\t\t\titems_list.setLek(string[i]);\n\t\t\tlists.add(items_list);\n\t\t}\n\n\t}", "private List<View> m9533a(List<View> list, List<View> list2) {\n LinkedList linkedList = new LinkedList();\n if (list != null && !list.isEmpty()) {\n int size = list.size();\n for (int i = 0; i < size; i++) {\n linkedList.add(list.get(i));\n }\n }\n if (list2 != null && !list2.isEmpty()) {\n int size2 = list2.size();\n for (int i2 = 0; i2 < size2; i2++) {\n linkedList.add(list2.get(i2));\n }\n }\n return linkedList;\n }", "private void carregaLista() {\n listagem = (ListView) findViewById(R.id.lst_cadastrados);\n dbhelper = new DBHelper(this);\n UsuarioDAO dao = new UsuarioDAO(dbhelper);\n //Preenche a lista com os dados do banco\n List<Usuarios> usuarios = dao.buscaUsuarios();\n dbhelper.close();\n UsuarioAdapter adapter = new UsuarioAdapter(this, usuarios);\n listagem.setAdapter(adapter);\n }", "private void loadPortals(List<String> list) {\n\t\tList<String> currentPortals = m_PortalList.getItems();\r\n\t\tfor(String portal : list){\r\n\t\t\tif(!currentPortals.contains(portal)){\r\n\t\t\t\t//Load the corresponding datasets from the database into the categorizer and into the tableview\r\n\t\t\t\ttry {\r\n\t\t\t\t\tm_Categorizer.loadPortal(portal);\r\n\t\t\t\t\tm_data.addAll(m_Categorizer.Datasets());\r\n\t\t\t\t} catch (StorageException e) {\r\n\t\t\t\t\tAlert error = new Alert(AlertType.ERROR, \"Cannot connect to database!\");\r\n\t\t\t\t\terror.showAndWait();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t//Add the portal to the listview\r\n\t\t\t\tcurrentPortals.add(portal);\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Reset label for number of datasets\r\n\t\tm_numDatasetsLabel.setText(m_Categorizer.Datasets().size() + \" Datasets loaded.\");\r\n\t\t//Refresh statistics window\r\n\t\tm_StatisticsWindow.refresh();\r\n\t\t//update filter choicebox\r\n\t\tupdateFilterChoiceBox();\r\n\t}", "public static void createLists() {\r\n \t\t// Raw Meat: (A bit cold...)\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.beef);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.porkchop);\r\n \t\tObjectLists.addItem(\"rawmeat\", Items.chicken);\r\n \t\t\r\n \t\t// Cooked Meat: (Meaty goodness for carnivorous pets!)\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_beef);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_porkchop);\r\n \t\tObjectLists.addItem(\"cookedmeat\", Items.cooked_chicken);\r\n \t\t\r\n \t\t// Prepared Vegetables: (For most vegetarian pets.)\r\n \t\tObjectLists.addItem(\"vegetables\", Items.wheat);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.carrot);\r\n \t\tObjectLists.addItem(\"vegetables\", Items.potato);\r\n \t\t\r\n \t\t// Fruit: (For exotic pets!)\r\n \t\tObjectLists.addItem(\"fruit\", Items.apple);\r\n \t\tObjectLists.addItem(\"fruit\", Items.melon);\r\n \t\tObjectLists.addItem(\"fruit\", Blocks.pumpkin);\r\n \t\tObjectLists.addItem(\"fruit\", Items.pumpkin_pie);\r\n \r\n \t\t// Raw Fish: (Very smelly!)\r\n \t\tObjectLists.addItem(\"rawfish\", Items.fish);\r\n \r\n \t\t// Cooked Fish: (For those fish fiends!)\r\n \t\tObjectLists.addItem(\"cookedfish\", Items.cooked_fished);\r\n \t\t\r\n \t\t// Cactus Food: (Jousts love these!)\r\n \t\tObjectLists.addItem(\"cactusfood\", new ItemStack(Items.dye, 1, 2)); // Cactus Green\r\n \t\t\r\n \t\t// Mushrooms: (Fungi treats!)\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.brown_mushroom_block);\r\n \t\tObjectLists.addItem(\"mushrooms\", Blocks.red_mushroom_block);\r\n \t\t\r\n \t\t// Sweets: (Sweet sugary goodness!)\r\n \t\tObjectLists.addItem(\"sweets\", Items.sugar);\r\n \t\tObjectLists.addItem(\"sweets\", new ItemStack(Items.dye, 1, 15)); // Cocoa Beans\r\n \t\tObjectLists.addItem(\"sweets\", Items.cookie);\r\n \t\tObjectLists.addItem(\"sweets\", Blocks.cake);\r\n \t\tObjectLists.addItem(\"sweets\", Items.pumpkin_pie);\r\n \t\t\r\n \t\t// Fuel: (Fiery awesomeness!)\r\n \t\tObjectLists.addItem(\"fuel\", Items.coal);\r\n \t\t\r\n \t\t// Custom Entries:\r\n \t\tfor(String itemListName : itemListNames) {\r\n \t\t\taddFromConfig(itemListName.toLowerCase());\r\n \t\t}\r\n \t}", "private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}", "private void updateListView() {\n fileList.getItems().setAll(files.readList());\n //System.out.println(System.currentTimeMillis() - start + \" мс\");\n }", "private void loadItems() {\n try {\n if (ServerIdUtil.isServerId(memberId)) {\n if (ServerIdUtil.containsServerId(memberId)) {\n memberId = ServerIdUtil.getLocalId(memberId);\n } else {\n return;\n }\n }\n List<VideoReference> videoReferences = new Select().from(VideoReference.class).where(VideoReference_Table.userId.is(memberId)).orderBy(OrderBy.fromProperty(VideoReference_Table.date).descending()).queryList();\n List<String> videoIds = new ArrayList<>();\n for (VideoReference videoReference : videoReferences) {\n videoIds.add(videoReference.getId());\n }\n itemList = new Select().from(Video.class).where(Video_Table.id.in(videoIds)).orderBy(OrderBy.fromProperty(Video_Table.date).descending()).queryList();\n } catch (Throwable t) {\n itemList = new ArrayList<>();\n }\n }", "private void loadList(List<Transaction> theList) {\n\t\tdialogview.dismissProgress();\r\n\t\tfor (int i = 0; i < theList.size(); i++) {\r\n\r\n\t\t\tTransaction obj = theList.get(i);\r\n\r\n\t\t\tif (System.currentTimeMillis() <= Long.valueOf(obj.getVALIDITY())) {\r\n\t\t\t\tView child;\r\n\t\t\t\tLayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n\t\t\t\tchild = inflater.inflate(R.layout.listitem_search_result, null);\r\n\t\t\t\tTextView tv_item = (TextView) child.findViewById(R.id.tv_item);\r\n\t\t\t\tTextView tv_quantity = (TextView) child\r\n\t\t\t\t\t\t.findViewById(R.id.tv_quantity);\r\n\t\t\t\tTextView tv_name = (TextView) child.findViewById(R.id.tv_name);\r\n\t\t\t\tTextView tv_address = (TextView) child\r\n\t\t\t\t\t\t.findViewById(R.id.tv_address);\r\n\t\t\t\tTextView tv_area = (TextView) child.findViewById(R.id.tv_area);\r\n\t\t\t\tTextView tv_phone = (TextView) child\r\n\t\t\t\t\t\t.findViewById(R.id.tv_phone);\r\n\r\n\t\t\t\ttv_item.setText(\"Donation : \" + obj.getDONATIONTYPE()\r\n\t\t\t\t\t\t+ \" Quantity : \" + obj.getQUANTITY());\r\n\t\t\t\t// tv_quantity.setText(\"Quantity : \" + obj.getQUANTITY());\r\n\t\t\t\ttv_name.setText(\"Name : \" + obj.getNAME());\r\n\t\t\t\ttv_address.setText(\"Address : \" + obj.getADDRESS());\r\n\t\t\t\ttv_area.setText(\"Area/Location : \" + obj.getAREA());\r\n\t\t\t\ttv_phone.setText(\"Contact : +91-\" + obj.getPHONE());\r\n\r\n\t\t\t\tll_main.addView(child);\r\n\r\n\t\t\t\tLinearLayout ll = new LinearLayout(this);\r\n\t\t\t\tll.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,\r\n\t\t\t\t\t\t8));\r\n\t\t\t\tll_main.addView(ll);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "private void initListView(View view)\n {\n\n theListView = (ListView) view.findViewById(R.id.ml_list_view);\n theListAdapter = new TextAdapter(layoutInflater);\n theListView.setAdapter((ListAdapter) theListAdapter);\n\n }", "public DaftarMhs_list(ArrayList<NamaMhs_Obj> list_data) {\n\n this.list_data = list_data;\n\n\n }", "public void init(){\n obsSongs = FXCollections.observableArrayList(bllfacade.getAllSongs());\n obsPlaylists = FXCollections.observableArrayList(bllfacade.getAllPlaylists());\n \n \n ClTitle.setCellValueFactory(new PropertyValueFactory<>(\"title\"));\n ClArtist.setCellValueFactory(new PropertyValueFactory<>(\"artist\"));\n ClCategory.setCellValueFactory(new PropertyValueFactory<>(\"genre\"));\n ClTime.setCellValueFactory(new PropertyValueFactory<>(\"time\"));\n lstSongs.setItems(obsSongs); \n \n ClName.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n ClSongs.setCellValueFactory(new PropertyValueFactory<>(\"totalSongs\"));\n ClPTime.setCellValueFactory(new PropertyValueFactory<>(\"totalTime\"));\n lstPlaylists.setItems(obsPlaylists);\n }", "private void populateList() {\n new AsyncTask<Void, Void, Boolean>() {\n @Override\n protected Boolean doInBackground(Void... params) {\n List<Item> list = TodoApplication.getDbHelper().getAllItems();\n if(list == null) {\n Log.d(TAG, \"doInBackground: no items in the database.\");\n return false;\n } else {\n itemsList = list;\n adapter.setUpdatedList(itemsList);\n }\n // Successfully loaded the list.\n return true;\n }\n\n @Override\n protected void onPostExecute(Boolean isSuccess) {\n super.onPostExecute(isSuccess);\n if(isCancelled()) {\n return;\n }\n if(isSuccess) {\n if(adapter != null) {\n adapter.notifyDataSetChanged();\n }\n if(itemsList == null || itemsList.size() == 0) {\n setEmptyScreen();\n } else {\n emptyText.setVisibility(View.GONE);\n todoRecyclerView.setVisibility(View.VISIBLE);\n }\n } else {\n setEmptyScreen();\n }\n }\n }.execute();\n }", "private void generateDataList(List<Genre> genreList) {\n mAdapter = new GenreListAdapter(getContext(),genreList);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext());\n mRecyclerView.setLayoutManager(layoutManager);\n mRecyclerView.setAdapter(mAdapter);\n }", "private void initDate() {\n\t\t\n mlistview.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\ttry {\n\t\t\t\t\tChemicals chemicals=mDatas.get(arg2);\n\t\t\t\t\tif(chemicals!=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tBundle bundle = new Bundle(); \n\t\t\t\t\t\tbundle.putSerializable(\"Chemicals\", chemicals); \n\t\t\t\t\t\tIntent intent=new Intent(ChemicalsDirectoryActivity.this, ChemicalsDatilShowActivity.class);\n\t\t\t \t\tintent.putExtras(bundle);\n\t\t\t \t\tstartActivity(intent);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n \n mlistview.setIClickLoadListListener(new IClickLoadListListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onLoad(Handler handler) {\n\t\t\t\tSqlOperate<Chemicals> opetaterChemicals=new SqlOperate<Chemicals>(ChemicalsDirectoryActivity.this, Chemicals.class);\n\t\t\t\tfinal List<Chemicals> data=opetaterChemicals.SelectOffsetEntitysBySqlCondition(mSqlStr, pangSize, pageCount);\n\t\t\t\tpageCount++;\n\t\t opetaterChemicals.close();\n\t\t\t\t\n\t\t\t\tif(data!=null&&data.size()>0)\n\t\t {\n\t\t\t\t\thandler.post(new Runnable() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmDatas.addAll(data);\n\t\t\t\t\t\t\tmAdapter.notifyDataSetChanged();\n\t\t\t\t\t\t\tif(data.size()<pangSize)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmlistview.hindLoadView(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t }\n\t\t else\n\t\t {\n\t\t \tmlistview.hindLoadView(true);\n\t\t }\n\t\t\t}\n\t\t});\n\t}", "public void initList(LinearLayout container) {\n for (Quote quote : this.items) {\n View view = LayoutInflater.from(this.context).inflate(R.layout.row_quote, null);\n QuoteListViewHolder viewHolder = new QuoteListViewHolder(view);\n\n viewHolder.populate(quote);\n container.addView(view);\n }\n }", "private void initList() {\n\t\t\r\n\t\tpointArrayAdapter = new WastePointsAdapter(mContext, R.layout.list_feeds_item, mWastePointController.getWastePointsList());\r\n\t\tsetListAdapter(pointArrayAdapter);\r\n\t\ttry {\r\n\t\t\tgetListView().setDivider(null);\r\n\t\t\temptyText.setVisibility(View.GONE);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tgetListView().setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tmWastePointController.setCurrentWastePoint(mWastePointController.getWastePointsList().get(arg2));\r\n\t\t\t\t((MainActivity)PointsListFragment.this.getActivity()).showPointDetails();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}", "private void initView() {\n initRefreshListView(mListview);\n }", "private void InitData() {\n\t\tmOptList = new HashMap<Integer, PlaylistEntry>();\n\t\tplaylist = new Playlist();\n\t\tmAdapter = new MusicAdapter(getContext());\n\n\t\tmListView = new ListView(getContext());\n\t\tmListView.setDividerHeight(0);\n\t\tmListView.setCacheColorHint(0x00000000);\n\t\tmListView.setFadingEdgeLength(0);\n\t\tmListView.setFastScrollEnabled(true);\n\t\tmListView.setFooterDividersEnabled(true);\n\t\tmListView.setSelector(R.drawable.press_list_sum);\n\t\tmListView.setOnItemClickListener(mOnItemClickListener);\n\t\tmListView.setPadding(1, 1, 1, 1);\n\n\t\t// 设置最后一个View\n\t\tView mFooterView = new View(getContext());\n\t\tmFooterView.setLayoutParams(new ListView.LayoutParams(\n\t\t\t\tLayoutParams.FILL_PARENT, Util.dipTopx(getContext(), 1)));// 以前是66\n\t\tmListView.addFooterView(mFooterView);\n\t\tmListView.setAdapter(mAdapter);\n\t\tmLinearLayout.addView(mListView);\n\n\t\tLinearLayout mLayout = new LinearLayout(getContext());\n\t\t// mLayout.setPadding(2, 0, 2, Util.dipTopx(getContext(), 13));\n\t\tmLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLayout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tLayoutParams.FILL_PARENT));\n\n\t\tView mView = new View(mLayout.getContext());\n\t\tmView.setLayoutParams(new LinearLayout.LayoutParams(\n\t\t\t\tLayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 1));\n\n\t\tmLayout.addView(mView);\n\t\tmLayout.addView(mControlBar);\n\n\t\tthis.addView(mLinearLayout);\n\t\tthis.addView(mLayout);\n\t}", "@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tlistitem.clear();\n\t\t\t\tnew AsyncTask<Void, Void, Void>() {\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\t\t\tgetmessage_list(1);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void onPostExecute(Void result) {\n\t\t\t\t\t\tif (count >= 19) {\n\t\t\t\t\t\t\txListView.startLoadMore();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\txListView.stopLoadMore();\n\t\t\t\t\t\t}\n\t\t\t\t\t\txListView.setRefreshSuccess();\n\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\tLog.d(TAG, \"jieshu\");\n\t\t\t\t\t}\n\t\t\t\t}.execute(null, null, null);\n\t\t\t}", "public void populateList() {\n }", "private void updateListView() {\n adapter = new TableItemAdapter(this, tableItems);\n this.listView.setAdapter(adapter);\n }", "public void loadJList()\n {\n if(!namesArray.isEmpty() && !tempArray.isEmpty())\n {\n Vector<String> displayVec = new Vector<>();\n for(int i = 0; i < namesArray.size(); i++)\n {\n displayVec.add(namesArray.get(i) + \" (\" + tempArray.get(i).get(0)\n + \", \" + tempArray.get(i).get(1) + \")\");\n }\n cityJList.setListData(displayVec);\n cityJList.setSelectedIndex(0);\n }\n else\n {\n cityJList.setListData(new Vector<String>());\n }\n }", "public void displayDataUpListView() {\n\t\ttry {\n\t\t\t// lay tat ca cac du lieu trong sqlite\n\t\t\talNews = qlb.getAllNewsDaTa();\n\t\t\tmListView.setAdapter(new AdapterListNewsSaved(\n\t\t\t\t\tActivity_News_Saved_List.this));\n\t\t} catch (Exception e) {\n\t\t\tmListView.setAdapter(null);\n\t\t}\n\n\t}", "public void setListView() {\n arr = inSet.toArray(new String[inSet.size()]);\n adapter = new ArrayAdapter(SetBlock.this, android.R.layout.simple_list_item_1, arr);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n adapter.notifyDataSetChanged();\n listView.setAdapter(adapter);\n }\n });\n }", "private void fillArrayLists(){\n titlesList = new ArrayList<>();\n fragmentsList = new ArrayList<>();\n\n titlesList.add(getString(R.string.basic));\n titlesList.add(getString(R.string.easy));\n titlesList.add(getString(R.string.normal));\n titlesList.add(getString(R.string.hard));\n\n fragmentsList.add(LevelBasicFragment.newInstance(basicLevelWord, basicLevelType, language));\n fragmentsList.add(LevelEasyFragment.newInstance(easyLevelWord, easyLevelType, language));\n fragmentsList.add(LevelNormalFragment.newInstance(normalLevelWord, normalLevelType, language));\n fragmentsList.add(LevelHardFragment.newInstance(hardLevelWord, hardLevelType, language));\n }", "private void refreshListView() {\n\t\tSQLiteDatabase db = dbh.getReadableDatabase();\n\t\tsharedListView.setAdapter(null);\n\t\tCursor c1 = db.rawQuery(\"SELECT _id, title, subtitle, content, author, otheruser FROM todos WHERE otheruser = '\" + author + \"'\", null);\n\t\tListAdapter adapter2 = new SimpleCursorAdapter(this, R.layout.activity_items, c1, from, to, 0);\n\t\tsharedListView.setAdapter(adapter2);\n\t\tadapter.notifyDataSetChanged();\n\t}", "private void initLists() {\r\n listPanel.removeAll();\r\n\r\n memoryLists = new JList[this.memoryBlocks.size()];\r\n memoryUpdateState = new boolean[this.memoryBlocks.size()];\r\n this.lastChanged = new int[this.memoryBlocks.size()];\r\n\r\n for (int i = 0; i < this.memoryBlocks.size(); i++) {\r\n this.lastChanged[i] = -1;\r\n memoryLists[i] = this.addList((MemoryBlock) memoryBlocks.get(i));\r\n\r\n // redraw first time\r\n memoryUpdateState[i] = true;\r\n }\r\n\r\n this.updateLists();\r\n }", "private List<ItemModel> addList() {\n List<ItemModel> items = new ArrayList<>();\n\n managerlist = new ArrayList(strangerList);\n for(int i = 0; i < managerlist.size(); i++)\n if(managerlist.get(i).getId().equals(mPI.getId())) {\n managerlist.remove(i);\n break;\n }\n for(PersonalInformation i : managerlist){\n items.add(new ItemModel(i.getGraph(), i.getName(), i.getCity(), i.getAge()));\n }\n return items;\n }", "private void setList() {\n Log.i(LOG,\"+++ setList\");\n txtCount.setText(\"\" + projectTaskList.size());\n if (projectTaskList.isEmpty()) {\n return;\n }\n\n projectTaskAdapter = new ProjectTaskAdapter(projectTaskList, darkColor, getActivity(), new ProjectTaskAdapter.TaskListener() {\n @Override\n public void onTaskNameClicked(ProjectTaskDTO projTask, int position) {\n projectTask = projTask;\n mListener.onStatusUpdateRequested(projectTask,position);\n }\n\n\n });\n\n mRecyclerView.setAdapter(projectTaskAdapter);\n mRecyclerView.scrollToPosition(selectedIndex);\n\n }" ]
[ "0.7997858", "0.73666316", "0.7255199", "0.7125679", "0.707941", "0.6913916", "0.68154305", "0.67772526", "0.67722124", "0.67345035", "0.66934407", "0.66892064", "0.6687648", "0.66600853", "0.6597836", "0.65881836", "0.65635467", "0.6563247", "0.65509367", "0.65480596", "0.6526163", "0.6506138", "0.6498492", "0.6494462", "0.6480383", "0.64644074", "0.64449966", "0.64209646", "0.6398604", "0.6397233", "0.63971174", "0.63833284", "0.638107", "0.63737905", "0.6363878", "0.6326283", "0.6322649", "0.63162524", "0.6296889", "0.6285405", "0.62713253", "0.62670916", "0.62632966", "0.62531847", "0.62495846", "0.6245768", "0.6224877", "0.6221983", "0.62211764", "0.620862", "0.62041634", "0.6202333", "0.6199503", "0.619636", "0.61943406", "0.6187214", "0.61860585", "0.61651874", "0.6162102", "0.61609805", "0.61566854", "0.614844", "0.6147795", "0.61470246", "0.61385053", "0.61322314", "0.6128467", "0.6112718", "0.61065245", "0.6104313", "0.61040586", "0.61011726", "0.60923976", "0.60898507", "0.60883904", "0.6085854", "0.60806096", "0.6074241", "0.60741645", "0.60658693", "0.60643274", "0.60636616", "0.60606813", "0.6060026", "0.60536134", "0.6053008", "0.6051977", "0.60497105", "0.60488904", "0.60470504", "0.604067", "0.6028327", "0.60242134", "0.6012786", "0.60122955", "0.6011429", "0.6010499", "0.6010148", "0.6007533", "0.6006052", "0.60032344" ]
0.0
-1
Here we are going to check in the show_list what was the list that was selected. Then if this list is selected, and we press this button, we are going to delete all this list. We are going to use the List class, and delete all the attributes that belong to the list
@FXML public void Delete_List(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deleteList(){\n new Thread(() -> agenda.getConnector().deleteItem(currentList)).start();\n numberOfLists--;\n for(Component c:window.getComponents()){\n if (c.getName().equals(comboBox.getSelectedItem().toString())){\n window.remove(c);\n }\n }\n if(comboBox.getItemCount() == 1){\n comboBox = new JComboBox();\n }else {\n comboBox.removeItemAt(comboBox.getSelectedIndex());\n }\n setUpHeader();\n this.updateComponent(header);\n }", "public void deleteTDList(ActionEvent actionEvent) {\n // find the tdlist being referenced by the button,\n // removeList() from it's parenting group\n }", "private void delete() {\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tif (list.get(i).toString().equals(lu.toString())) {\r\n\t\t\t\tlist.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.makeXml(list);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tinitTableView();\r\n\t}", "public void eliminarLista(){\n //se define la lista seleccionada y se elimina\n ListaCompras listaSeleccionada = ListasComprasTabla.getSelectionModel().getSelectedItem();\n if (listaSeleccionada!=null) {\n ListasComprasTabla.getItems().remove(listaSeleccionada);\n }else {\n System.out.println(\"No hay lista seleccionada\");\n }\n }", "@FXML\n public void handleDeleteButton(ActionEvent event) {\n if (cList.getItems().size() == 0) {\n alert(\"Error\", \"Invalid selection.\", \"The list is already empty.\");\n return;\n }\n\n String s = (String) cList.getSelectionModel().getSelectedItem();\n\n if (cList.getSelectionModel().getSelectedIndex() == -1) {\n alert(\"Error\", \"Invalid selection.\", \"Please select an item to delete.\");\n return;\n }\n\n String parts[] = s.split(\"=\");\n Tag delete = null;\n for (Tag t : tags) {\n if (t.getType().equals(parts[0]) && t.getValue().equals(parts[1])) {\n obsList.remove(s);\n }\n }\n tags.remove(delete);\n cList.setItems(obsList);\n\n\n }", "private void removeList()\r\n {\n if (tableCheckBinding != null)\r\n {\r\n tableCheckBinding.dispose();\r\n tableCheckBinding = null;\r\n }\r\n\r\n // m_TableViewer.setInput(null);\r\n WritableList newList = new WritableList(SWTObservables.getRealm(Display.getDefault()));\r\n for (int i = 0; i < 10; ++i)\r\n {\r\n newList.add(this.generateNewDataModelItem());\r\n }\r\n m_TableViewer.setInput(newList);\r\n }", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {\n int index = jList1.getSelectedIndex();\n \n String idCategory = listIDCategory.get(index);\n deleteCategory(idCategory);\n \n }", "public void deleteSelection() {\n deleteFurniture(Home.getFurnitureSubList(this.home.getSelectedItems())); \n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tUser zws = alllist.getSelectedValue();\r\n\t\t\t\tam.removeElement(zws);\r\n\t\t\t\tall.remove(zws);\r\n\t\t\t\tvm.addElement(zws);\r\n\t\t\t\tverwalter.remove(zws);\r\n\t\t\t}", "public void cabDeselectAll() {\n ListView lv = getListView();\n int vCnt = lv.getCount();\n \n for (int i = 0; i < vCnt; i++) {\n \tlv.setItemChecked(i, false);\n }\n \n selectedListItems.clear();\n redrawListView();\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tfor(int i = 0; i <deleteButtons.size(); i++) {\n\t\t\t\t\t\tif(e.getSource() == deleteButtons.get(i)) {\n\t\t\t\t\t\t\tdutchList.remove(i + 1);\n\t\t\t\t\t\t\tdutchList.revalidate();\n\t\t\t\t\t\t\tsetSize(getSize().width, getSize().height - 40);\n\t\t\t\t\t\t\tdeleteButtons.remove(i);\n\t\t\t\t\t\t\tlist.remove(i + 1);\n\t\t\t\t\t\t\tSystem.out.println(deleteButtons.size());\n\t\t\t\t\t\t\tSystem.out.println(list.size());\n\t\t\t\t\t\t\tcalculateDutch();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "public void deleteItem(ActionEvent actionEvent) {\n // find the list that the item belongs in\n // removeItem() from its parenting list\n }", "private void removePressed() {\n\t\ts = allMedia.getSelectedValuesList();\n\t\t// now remove all the value that are in the list from the default list model\n\t\tfor(Object o : s){\n\t\t\tif(l.contains(o)){\n\t\t\t\tl.removeElement(o);\n\t\t\t}\n\t\t}\n\t}", "public void eliminarTodosLosElementos(){\n\t\tlistModel.removeAllElements();\n\t}", "public void setCurrentListToBeUndoneList();", "public void removeDialog(ArrayList<Order> listOrder) {\n\t\tJLabel rmLabelOrder = new JLabel(\"Order's id\");\n\t\trmLabelOrder.setSize(80,40);\n\t\trmLabelOrder.setLocation(100, 50);\n\t\tJTextField rmTextOrder = new JTextField();\n\t\trmTextOrder.setSize(250,40);\n\t\trmTextOrder.setLocation(250, 50);\n\t\tadd(rmLabelOrder);\n\t\tadd(rmTextOrder);\n\t\t\n\t\t// setup field Item for remove dialog\n\t\tJLabel rmLabelItem = new JLabel(\"Item's id\");\n\t\trmLabelItem.setSize(80,40);\n\t\trmLabelItem.setLocation(100, 120);\n\t\tJTextField rmTextItem = new JTextField();\n\t\trmTextItem.setSize(250,40);\n\t\trmTextItem.setLocation(250, 120);\n\t\tadd(rmLabelItem);\n\t\tadd(rmTextItem);\n\t\t\n\t\tokJButton.setSize(100,30);\n\t\tokJButton.setLocation(250,330);\n\t\tokJButton.setFocusPainted(false);\n\t\tadd(okJButton);\n\t\tokJButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t\tif(rmLabelOrder.getText() == null || rmLabelItem == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Ban chua nhap thong tin\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tString strIdOrder = rmTextOrder.getText();\n\t\t\t\t\tString strIdItem = rmTextItem.getText();\n\t\t\t\t\tcheckTypeForRemove(strIdOrder, strIdItem);\n\t\t\t\t\t\n\t\t\t\t\tint idOrder = Integer.parseInt(rmTextOrder.getText());\n\t\t\t\t\tint idItem = Integer.parseInt(rmTextItem.getText());\n\t\t\t\t\t\n\t\t\t\t\tcheckIdOrderForRemove(idOrder, listOrder);\n\t\t\t\t\tcheckIdMediaForRemove(idItem, listOrder.get(idOrder -1));\n\t\t\t\t\t\n\t\t\t\t\tlistOrder.get(idOrder -1).removeMedia(idItem);\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Remove Item complete!\", \"Remove Item\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage(), \"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tsetVisible(true);\n\t}", "public void deletelist(){\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:- current list should be deleted\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"lnkdeletelist\"));\r\n\t\t\tclick(locator_split(\"lnkdeletelist\"));\r\n\r\n\t\t\tThread.sleep(3000);\r\n\t\t\twaitForElement(locator_split(\"btnconfirmdeletelist\"));\r\n\t\t\tclick(locator_split(\"btnconfirmdeletelist\"));\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- list is deleted\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- list is not deleted \"+elementProperties.getProperty(\"lnkdeletelist\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkdeletelist\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\t\r\n\r\n\r\n\t}", "@FXML\n\t\t \tprivate void BorrarSongfromPlylist() {\n\t\t \t\tList_Song a = new List_Song();\n\t\t \t\tPlaylist select= tablaPlayList.getSelectionModel().getSelectedItem();\n\t\t \t\tSong selected=tablaCancionesPlaylist.getSelectionModel().getSelectedItem();\n\t\t \t\tif ( selected != null && select!=null) {\n\t\t \t\t\ttry {\n\t\t \t\t\t\ta.setSong(selected);\n\t\t \t\t\t\ta.setList(select);\n\t\t \t\t\t\tList_SongDAO b = new List_SongDAO(a);\n\n\t\t \t\t\t\tb.remove_List_Song();\n\t\t \t\t\t\tconfiguraTablaPlaylist();\n\t\t \t\t\t} catch (Exception e) {\n\t\t \t\t\t\tDialog.showError(\"Eliminar cancion de una playlist\", \"Ha surgido un error al borrarla\", \"\");\n\t\t \t\t\t\te.printStackTrace();\n\t\t \t\t\t}\n\t\t \t\t} else {\n\t\t \t\t\tDialog.showWarning(\"Eliminar cancion de una playlist\", \"Selecciona Cancion\", \"\");\n\t\t \t\t}\n\n\t\t \t}", "public void onDeleteList() {\n ListsManager listManager = ListsManager.getInstance(context);\n listManager.deleteTable(deletePosition,context);\n Toast.makeText(context, \"deleted TodoList\", Toast.LENGTH_SHORT).show();\n data.remove(deletePosition);\n notifyItemRemoved(deletePosition);\n }", "@After(value = \"@deleteList\", order = 1)\n public void deleteList() {\n String listId = context.getDataCollection((\"list\")).get(\"id\");\n context.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n given(context.getRequestSpecification()).when().delete(\"/lists/\".concat(listId));\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tItemType i = getSelectedItem();\n\t\t\t\tif(i != null)\n\t\t\t\t{\t\n\n\t\t\t\t\tfinal String msg = \"Delete \"+i.getName() + \"?\";\n\t\t\t\t\tif(!confirmDelete(msg))\n\t\t\t\t\t\treturn;\n\t\t\t\t\ti.removeContainer(GeneralItemList.this);\n\t\t\t\t\ti.destroy();\n\t\t\t\t}\n\t\t\t\titems.remove(i);\n\t\t\t\tlist.clearSelection();\n\t\t\t\tlist.repaint(100);\t\t\t\t\n\t\t\t}", "@FXML\n void clearEntireListClicked(ActionEvent event)\n {\n Item.getToDoList().clear();\n\n // Clear the table view\n listView.getItems().clear();\n\n // Reset the index to 0 and clear\n index = 0;\n clear();\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.del_bkmarks) {\n\n final Button bkdeletebtn=(Button)findViewById(R.id.bkmrk_delete_btn);\n final Button bkcancelbtn=(Button)findViewById(R.id.bkmrk_cancel_btn);\n\n bkcancelbtn.setVisibility(View.VISIBLE);\n bkdeletebtn.setVisibility(View.VISIBLE);\n\n\n Myapp2.setCheckboxShown(true);\n //bkMarkList.deferNotifyDataSetChanged();\n bkMarkList.setAdapter(adapter);\n\n\n bkcancelbtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n Myapp2.setCheckboxShown(false);\n //checkboxShown=false;\n bkcancelbtn.setVisibility(View.GONE);\n bkdeletebtn.setVisibility(View.GONE);\n\n bkMarkList.setAdapter(adapter);\n }\n });\n\n\n\n bkdeletebtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n for(int i=0;i<Myapp2.getChecks().size();i++){\n\n if(Myapp2.getChecks().get(i)==1){\n\n int index=i+1;\n\n //remove items from the list here for example from ArryList\n Myapp2.getChecks().remove(i);\n PgNoOfBkMarks.remove(i);\n paraName.remove(i);\n SuraName.remove(i);\n //similarly remove other items from the list from that particular postion\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor editor =settings.edit();\n\n editor.remove(\"bookmark_\"+index);\n editor.putInt(\"bookmark_no\",settings.getInt(\"bookmark_no\",0)-1);\n editor.apply();\n\n\n\n i--;\n }\n }\n Myapp2.setCheckboxShown(false);\n bkcancelbtn.setVisibility(View.GONE);\n bkdeletebtn.setVisibility(View.GONE);\n bkMarkList.setAdapter(adapter);\n }\n });\n\n\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@FXML\n public void removeListItem(ActionEvent event) throws IOException {\n int removeItemIndex = unseenPacketList.getSelectionModel().getSelectedIndex();\n if (removeItemIndex < 0) {\n \tJOptionPane.showMessageDialog(null, \"Cannot remove from already empty list.\");\n } else {\n \tUpdateHandler.getAllPacketsList().remove(removeItemIndex);\n unseenPacketList.getItems().remove(removeItemIndex);\n UpdateHandler.getUnseenPacketListIndex().remove(removeItemIndex);\n }\n \n }", "public void removeIngre(Button btn, RecipeTM tm, ObservableList<RecipeTM> obList) {\r\n btn.setOnAction((e) -> {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Warning\");\r\n alert.setContentText(\"Are you sure ?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n try {\r\n deleteResIngre(tm.getIngreID(), cmbCakeID.getSelectionModel().getSelectedItem());\r\n } catch (SQLException | ClassNotFoundException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n obList.remove(tm);\r\n tblRecipe.refresh();\r\n }\r\n });\r\n }", "public void doDelete() throws Exception {\r\n\t\t_ds.deleteRow();\r\n\t\tdoDataStoreUpdate();\r\n\t\tif (_mode == MODE_LIST_ON_PAGE) {\r\n\t\t\tif (_listForm != null && _listForm.getDataStore() != _ds) {\r\n\t\t\t\t//different datastores on list and detail\r\n\t\t\t\tDataStoreBuffer listDs = _listForm.getDataStore();\r\n\t\t\t\tif (_listSelectedRow != null) {\r\n\t\t\t\t\tfor (int i = 0; i < listDs.getRowCount(); i++) {\r\n\t\t\t\t\t\tif (listDs.getDataStoreRow(i, DataStoreBuffer.BUFFER_STANDARD).getDSDataRow() == _listSelectedRow.getDSDataRow()) {\r\n\t\t\t\t\t\t\tlistDs.removeRow(i);\r\n\t\t\t\t\t\t\tbreak;\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\tif (listDs.getRowCount() == 0)\r\n\t\t\t\t\tsetVisible(false);\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (listDs.getRow() == -1)\r\n\t\t\t\t\t\tlistDs.gotoRow(listDs.getRowCount() - 1);\r\n\t\t\t\t\t_listForm.setRowToEdit(listDs.getRow());\r\n\t\t\t\t\tdoEdit();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t//list and detail share the same datastore\r\n\t\t\t\tif (_ds.getRowCount() == 0)\r\n\t\t\t\t\tsetVisible(false);\r\n\t\t\t\telse\r\n\t\t\t\t\tscrollToMe();\r\n\t\t\t}\r\n\t\t\tsyncListFormPage();\r\n\t\t} else {\r\n\t\t\treturnToListPage(true);\r\n\t\t}\r\n\t}", "public void deleteSelectedAndRefresh()\n\t{\n\t\tDisplayThreeSQLHandler.changeRoom(\"CREATURE\", selectedCreature, -1);\n\t\t\n\t\tremoveElement(thingsInColumn.indexOf(selectedCreature));\n\t\t\n\t\tselectedCreature = thingsInColumn.get(itemsVisible[buttonLastPressed]);\n\t\t\n\t\tDisplayThree.getInstance().addBox.changeContents(\"CREATURE\", false);\n\t\t;\n\t\t\n\t\tthis.updateButtons();\n\t}", "private void deleteShoppingList() {\n //Dialog to confirm delete\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getResources().getString(R.string.dialog_title))\n .setMessage(getResources().getString(R.string.dialog_message))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Se elimina la lista de la compra\n shoppingLists.remove(position);\n\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n\n //go to home fragment\n Fragment homeFragement = new HomeFragment();\n navigationController.changeFragment(getActivity(), homeFragement, null, Constants.HOME_STATES.HOME_STATE);\n }\n })\n .setNegativeButton(\"CANCELAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n }).show();\n }", "@Override\n\tpublic void deleteSelected() {\n\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tUser zws = alllist.getSelectedValue();\r\n\t\t\t\tvm.removeElement(zws);\r\n\t\t\t\tverwalter.remove(zws);\r\n\t\t\t\tam.addElement(zws);\r\n\t\t\t\tall.add(zws);\r\n\t\t\t}", "public void deleteListObject(List<Student> list1)\r\n\t{\r\n\t\tlist1.remove(s2);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"after removing\");\r\n\t\tfor(Student s:list1)\r\n\t\t{\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t}", "public void supprimerLivres(View view) {\n /* recuperer les ids des livres selectionnes dans\n * la liste de livres\n */\n long[] ids = list.getCheckedItemIds();\n if (ids.length == 0)\n return;\n\n for (long id : ids) {\n Log.d(\"supprimer id =\", id + \"\");\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"content\")\n .authority(authority)\n .appendPath(\"book_table\");\n /* id du livre a supprimer a la fin de uri */\n ContentUris.appendId(builder, id);\n Uri uri = builder.build();\n\n int res = getContentResolver().delete(uri, null, null);\n Log.d(\"result of delete=\", res + \"\");\n }\n /* apres la suppression de titres mettre a jour la liste\n de titres, id_author ne change pas */\n getLoaderManager().restartLoader(1, null, callbackTitres);\n }", "private DefaultListModel<String> removeItem(JList<String> list, DefaultListModel<String> listModel) {\r\n\t\tint[] selectedItems = list.getSelectedIndices();\r\n\t\tfor(int i=selectedItems.length; i>0; i--)\r\n\t\t\tlistModel.removeElementAt(selectedItems[i-1]);\r\n\t\treturn listModel;\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n if (titleItem.equals( getString(R.string.empty_list))) return;\n DataBaseHelper myDbHelper = new DataBaseHelper(getActivity());\n try {\n myDbHelper.createDataBase();\n } catch (IOException ioe) {\n throw new Error(\"Unable to create database\");\n }\n\n try {\n myDbHelper.openDataBase();\n } catch (SQLException sqle) {\n throw new Error(\"Unable to open database\");\n }\n\n if (!myDbHelper.deleteList(titleItem) || !myDbHelper.replaceListBook(titleItem, getString(R.string.without_list))) {\n return;\n }\n\n myDbHelper.deleteList(titleItem);\n myDbHelper.replaceListBook(titleItem, getString(R.string.without_list));\n myDbHelper.close();\n mList.remove(selectedItem);\n mAdapter = new SimpleAdapter(getActivity(), mList, R.layout.list_itemlist, new String[]{TITLE, DESCRIPTION}, new int[]{R.id.text1, R.id.text2});\n listView.setAdapter(mAdapter);\n\n Toast.makeText(getActivity(), titleItem + \" \" + getString(R.string.deleted), Toast.LENGTH_SHORT).show();\n\n }", "public void actionPerformed(ActionEvent event) {\n selectedTeacherRemove = -1; //Presetting the variable to -1\r\n selectedTeacherRemove = removeTeachersList.getSelectedIndex(); \r\n //clear the selection on teachers list\r\n editTeachersList.clearSelection();\r\n //if user selects soemthing on jlist \r\n // System.out.println(\"selectTeacher = \" + selectedTeacherRemove);\r\n if (selectedTeacherRemove!=-1){ \r\n for (int i = 0; i < bookInv.numBookSets(); i++){\r\n for (int j = 0; j < bookInv.getBookSet(i).getSize(); j++){\r\n Book temp = bookInv.getBookSet(i).getBook(j);\r\n String teacherName = teachers.get(selectedTeacherRemove).getName();\r\n if (temp.getTeacherName() != null){\r\n if (temp.getTeacherName().equals(teacherName)){\r\n bookInv.getBookSet(i).getBook(j).setInStockStatus(true);\r\n bookInv.getBookSet(i).getBook(j).setStudentName(null);\r\n bookInv.getBookSet(i).getBook(j).setTeacherName(null);\r\n bookInv.getBookSet(i).getBook(j).setPeriodNum(-1);\r\n }\r\n }\r\n }\r\n }\r\n //Saving inventory\r\n try{\r\n bookInv.saveInv();\r\n }catch(IOException e){}\r\n \r\n \r\n // editTeachersName = new JLabel(\"Selected Teacher: \"+ teachers.get(selectedTeacher).getName());\r\n teachers.get(selectedTeacherRemove).writePeriodList(true);\r\n teachers.remove(selectedTeacherRemove);\r\n //remove element from all the list models\r\n removeTeachersListModel.remove(selectedTeacherRemove); \r\n teacherListModel.remove(selectedTeacherRemove); \r\n editTeachersListModel.remove(selectedTeacherRemove);\r\n //remove all elements from the periods \r\n teacherPeriodsListModel.removeAllElements();\r\n //clsoe the frame\r\n removeTeachersFrame.setVisible(false);\r\n } \r\n }", "private void btnEliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarActionPerformed\n e=libCancion.getSelectedIndex();\n System.out.println(e);\n lista.remove(e); \n libCancion.setModel(lista);\n \n cancion.eliminarCancion(e);// TODO add your handling code here:\n i--;\n System.out.println(cancion.getSize());\n }", "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "public void removeSelectedAction() {\n\t\tvar selectedItems = pairsListView.getSelectionModel().getSelectedItems();\n\t\tpairsListView.getItems().removeAll(selectedItems);\n\t}", "public void eliminarMateria() {\n ejbFacade.remove(materia);\n items = ejbFacade.findAll();\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.update(\"MateriaListForm:datalist\");\n requestContext.execute(\"PF('Confirmacion').hide()\");\n departamento = new Departamento();\n materia = new Materia();\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se eliminó con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n requestContext.update(\"MateriaListForm\");\n }", "public void onClick(DialogInterface dialog, int id) {\n study1.delete(l_name);\n listItems.remove(l_name);\n adapter.notifyDataSetChanged();\n }", "private void deleteButton(Button b) {\n DefaultListModel m = (DefaultListModel) srcList.getModel();\n int i;\n for (i = 0; i < m.getSize(); ++i) {\n if (m.get(i) == b) {\n break;\n }\n }\n if (i == m.getSize()) {\n m.addElement(b);\n }\n }", "@PostMapping(\"/adminDeleteShows\")\n public String adminDeleteShows(@RequestParam(required = false, value=\"deleteList\") Long[] deleteList, Model model){\n String nextPage = \"adminShowList\";\n\n if (deleteList != null && deleteList.length > 0){\n for (Long showId : deleteList) {\n Show show = showRepo.findById(showId).get();\n if (show != null){\n List<Watching> watchings = watchingRepo.findByShow(show);\n if (watchings != null){\n for (Watching watch : watchings) {\n watchingRepo.delete(watch);\n }\n }\n showRepo.delete(show);\n }\n }\n }\n model.addAttribute(\"showList\", showRepo.findAll());\n return nextPage;\n }", "private void jBtn_SupprimerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtn_SupprimerActionPerformed\n // Si onglet Client\n if(numOnglet() == 0){\n // On stock l index quand une ligne de la table est selectionnnee\n int rowIndex = jTable_Clients.getSelectedRow();\n // Si pas de ligne selectionnee\n if(rowIndex == -1){\n showMessageDialog(null, \"Veuillez sélectionner la ligne du Client \"\n + \"à supprimer\");\n }\n else{\n // On appelle la methode d instance associee au Client selectionne\n laListeClient.get(rowIndex).Suppression();\n try {\n tableClient();\n } catch (Exception ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n // Onglet Prospect\n else{\n // On stock l index quand une ligne de la table est selectionnnee\n int rowIndex = jTable_Prospects.getSelectedRow();\n // Si pas de ligne selectionnee\n if(rowIndex == -1){\n showMessageDialog(null, \"Veuillez sélectionner la ligne du Prospect \"\n + \"à supprimer\");\n }\n else{\n // On appelle la methode d instance associee au Client selectionne\n laListeProspeect.get(rowIndex).Suppression();\n try {\n tableProspect();\n } catch (Exception ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n hideButton();\n }", "public void actionPerformed(ActionEvent event) {\n\t\tListTreeNode toDelete = controller.getView().getSelectedItem();\n\t\tif(toDelete != null) {\n\t\t\tcontroller.getModel().deleteListItem(toDelete);\n\t\t\tcontroller.getView().updateList();\n\t\t}\n\t}", "@RequestMapping(value = \"/delete\", method = RequestMethod.GET)\r\n\tpublic String deleteList(){\r\n\t\tClearList list = clearListRepository.findById(getActiveListId()).get();\r\n\t\tString listN = list.getListName();\r\n\t\tclearListRepository.deleteById(getActiveListId());\r\n\t\t\r\n\t\treturn String.format(\"The Clearlist %s has been deleted\",listN);\r\n\t}", "public native void deselectAll() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectAll();\r\n }-*/;", "private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"How would you like to delete data?\", \"Delete Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n jtModel.removeRow(toCount()-toCount());\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted first row\");\n }\n else if(option==1)\n {\n jtModel.removeRow(toCount()-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted last row\");\n }\n else if(option==2)\n {\n toDeletIndex();\n }\n else\n {\n \n }\n }\n }", "public void remove()\r\n { Exceptions.unmodifiable(\"list\"); }", "@Override\r\n\tprotected void delete_objectList(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows KANException {\n\t\t\r\n\t}", "public String btn_delete_action()\n {\n int n = this.getDataTableSemental().getRowCount();\n ArrayList<SementalDTO> selected = new ArrayList();\n for (int i = 0; i < n; i++) { //Obtener elementos seleccionados\n this.getDataTableSemental().setRowIndex(i);\n SementalDTO aux = (SementalDTO) this.\n getDataTableSemental().getRowData();\n if (aux.isSelected()) {\n selected.add(aux);\n }\n }\n if(selected == null || selected.size() == 0)\n {\n //En caso de que no se seleccione ningun elemento\n MessageBean.setErrorMessageFromBundle(\"not_selected\", this.getMyLocale());\n return null;\n }\n else if(selected.size() == 1)\n { //En caso de que solo se seleccione un elemento\n \n //si tiene hijos o asociacions despliega el mensaje de alerta\n if(getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n haveSemenGathering(\n selected.get(0).getSementalId()))\n {\n this.getAlertMessage().setRendered(true);\n this.getMainPanel().setRendered(false);\n getgermplasm$SementalSessionBean().setDeleteSemental(\n selected.get(0).getSementalId());\n }\n else\n {\n //delete the accession\n getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n deleteSemental(selected.get(0).getSementalId());\n //refresh the list\n getgermplasm$SementalSessionBean().getPagination().deleteItem();\n getgermplasm$SementalSessionBean().getPagination().refreshList();\n getgermplasm$SemenGatheringSessionBean().setPagination(null);\n MessageBean.setSuccessMessageFromBundle(\"delete_semental_success\", this.getMyLocale());\n }\n \n return null;\n }\n else{ //En caso de que sea seleccion multiple\n MessageBean.setErrorMessageFromBundle(\"not_yet\", this.getMyLocale());\n return null;\n }\n }", "@FXML\n public void btnClearShoppingListClicked(){\n\n //run confirmation dialog box\n String title = \"Clear ShoppingList\";\n String message = \"Are you sure you want to clear shopping list\";\n boolean confirmClear = plannerBox.confirmDiaglogBox(title, message);\n\n if (confirmClear){\n shoppingListIngredients.clear();\n //no generated shopping list so no date of generated shopping list\n settings.setGeneratedShoppingList(null);\n //save the blank list\n Data.<Ingredient>saveList(shoppingListIngredients, shoppingListFile);\n //when the shopping list is cleared if the planner still has meals / Recipes in then\n //the shopping list and the planner are out of sync, set the warning and settings\n for (Days dm : ObservableWeekList){\n if (!dm.noMealsSet()){\n settings.setShoppingListOutOfSync(true);\n labelWarningShoppingList.setVisible(true);\n return;\n }\n }\n //if there is no meals in the planner then the shopping list and the planner are in sync\n settings.setShoppingListOutOfSync(false);\n labelWarningShoppingList.setVisible(false);\n }\n }", "public static void removeFromList(FormModel form, HttpSession session, HttpServletRequest req, HttpServletResponse res, Connection con, PrintWriter out)\r\n throws IOException\r\n {\n String name_to_remove = req.getParameter(Member.REQ_USER_NAME);\r\n\r\n if (name_to_remove != null && !(name_to_remove.equals(\"\")))\r\n {\r\n\r\n //get the table from the form and add the name in the list\r\n RowModel row = form.getRow(DistributionList.LIST_OF_NAMES);\r\n TableModel names = (TableModel)(((Cell)row.get(0)).getContent());\r\n\r\n names.remove(name_to_remove);\r\n\r\n ActionModel model = names.getContextActions();\r\n Action searchAction = (Action)(model.get(0));\r\n if (names.size()<DistributionList.getMaxListSize(session))\r\n {\r\n searchAction.setSelected(false);\r\n }\r\n else\r\n {\r\n searchAction.setSelected(true);\r\n }\r\n }\r\n\r\n\r\n }", "private static boolean deleteSelectedShows(List<String> clickedResults)\n {\n int check = 0;\n for (String s : clickedResults)\n {\n ShowDAO.removeShow(Integer.parseInt(s));\n check += 1;\n }\n\n if(check > 0)\n {\n return true;\n }\n return false;\n }", "private void removeFinalBtn()\n {\n if (finalListModel.size() <= 0)\n JOptionPane.showMessageDialog(null, \"Cannot remove more buttons\");\n else\n if(finalListModel.size() <= order.getSelectedIndex())\n JOptionPane.showMessageDialog(null, \"Sorry, try to pick the previous buttons first \");\n else\n finalListModel.remove(order.getSelectedIndex());\n }", "public void deselectAll()\n {\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == menuItem1){\r\n\t\t\tList li = new List();\r\n\t\t\tli.Run();\r\n\t\t}\r\n\t\telse if(e.getSource() == menuItem2){\r\n\t\t\tDelete de = new Delete();\r\n\t\t\tde.Run();\r\n\t\t}\r\n\t\telse if(e.getSource() == menuItem3){\r\n\t\t\tstrSql = \"Delete from saveinfo;\";\r\n\t\t\tDeleteData dd = new DeleteData(strSql);\r\n\t\t\tdd.delete();\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void onClick(View v) {\n long sid = allListOkLast.get(position).getId();\n Query<GpsPointDetailData> build = db.getGpsPointDetailDao().queryBuilder().where(GpsPointDetailDao.Properties.Id.eq(sid)).build();\n db.deleteGpsPointDetailData(sid);\n adapter.removeItem(position);\n }", "public static void deleteButtonActionPerformed(ActionEvent evt){\r\n yearField.setEditable(true);\r\n semesterChoice.setEnabled(true);\r\n mylist.empty();\r\n subjectCodes = new ArrayList<>();\r\n timeLabels = new ArrayList<>();\r\n schedulePanel.removeAll();\r\n schedulePanel.repaint();\r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel); \r\n }", "public void delAll(List list);", "public void clear() {\r\n\t\tboolean enabled = isEnabled() ;\r\n\t\tif (enabled) {\r\n\t\t\tsetEnabled(false);\r\n\t\t}\r\n\t\tlistModel.clear();\r\n\t\tif (enabled) {\r\n\t\t\tsetEnabled(true);\r\n\t\t}\r\n\t}", "public void eliminarLista(Lista lista) {\n String selection = ColumnList.ID_LIST + \" = ?\";\n String[] selectionArgs = {Integer.toString(lista.getId())};\n\n deleteAnyRow(LIST_TABLE_NAME, selection, selectionArgs);\n }", "@Override\n public void onClick(View view) {\n long result = typeBookDAO.deleteTypeBook(typeBook.id);\n\n if (result < 0) {\n\n Toast.makeText(context,\"Xoa ko thanh cong!!!\",Toast.LENGTH_SHORT).show();\n\n } else {\n Toast.makeText(context,\"Xoa thanh cong!!!\",Toast.LENGTH_SHORT).show();\n // xoa typebook trong arraylist\n arrayList.remove(position);\n\n // f5 adapter\n notifyDataSetChanged();\n\n }\n\n\n\n }", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\tfor(int i=0;i<favorites.size();i++){\r\n\t\t\t\t\t\tif(e.getSource().equals(deleteButtons.get(i))){\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tClient client=new Client();\r\n\t\t\t\t\t\t\t\tclient.deleteCollection(favorites.get(i).getFoodName());\r\n\t\t\t\t\t\t\t\tnew MYCollection(customer).setVisible(true);\r\n\t\t\t\t\t\t\t\tclose();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\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}\r\n\t\t\t\t}", "public void evt_DeleteCurrentObject()\r\n {\r\n rh2EventPos.hoOiList.oilNumOfSelected -= 1;\t\t\t\t\t// Un de moins dans l'OiList\r\n if (rh2EventPrev != null)\r\n {\r\n rh2EventPrev.hoNextSelected = rh2EventPos.hoNextSelected;\r\n rh2EventPos = rh2EventPrev; // Car le courant est vire!\r\n }\r\n else\r\n {\r\n// rhPtr.rhOiList[rh2EventPosOiList].oilListSelected=rh2EventPos.hoNextSelected;\r\n rh2EventPrevOiList.oilListSelected = rh2EventPos.hoNextSelected;\r\n rh2EventPos = null;\r\n }\r\n }", "@Override\n public void onClick(View v) {\n SplNewList.clear();\n\n splNewListId.clear();\n for (int i = 0; i < specializationSelectedList.size(); i++)\n\n if (specializationSelectedList.get(i).getStatus()) {\n // jobLocation.setText(metrocitySelectedList.toString().replace(\"[\",\"\").replace(\"]\",\"\"));\n SplNewList.add(specializationSelectedList.get(i).getSpecialization_name());\n splNewListId.add(specializationSelectedList.get(i).getSpecialization_id());\n Log.d(\"modelArrayList\", specializationList.get(i).getSpecialization_name() + \"<><<\" + specializationList.get(i).getStatus());\n }\n\n Log.d(\"ISZEOFTITLESELLIS\", SplNewList.size() + \"\");\n medicalSplId = splNewListId.toString().replace(\"[\", \"\").replace(\"]\", \"\");\n\n Log.d(\"MEDICALmedicalSplId\", medicalSplId);\n\n spl_auto.setText(SplNewList.toString().replace(\"[\", \"\").replace(\"]\", \"\"));\n if (SplNewList.size() > 3) {\n Toast toast = Toast.makeText(Sell_Buy_Practice_Activity.this, \"Only 3 Specializations can be selected!\", Toast.LENGTH_LONG);\n\n toast.show();\n dialog.show();\n } else {\n dialog.dismiss();\n }\n\n }", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "private void actionDelete(final ImageDataModel modelData) {\r\n // Remove the item from Current List of GalleryHelperBaseOnId.class\r\n if (SharedPref.getListType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.LIST_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelper.imageDataModelList.remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageDataModelList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageDataModelList.remove(modelData);\r\n }\r\n }\r\n\r\n if (SharedPref.getAlbumType(MediaVaultController.getSharedPreferencesInstance()).equals(Constant.ALBUM_VIEW)) {\r\n if (Constant.ALL_VIEW.equalsIgnoreCase(SharedPref.getAllType(sharedPreferences))) {\r\n GalleryHelperBaseOnId.dataModelArrayList.remove(modelData);\r\n // Remove the item from Main List of GalleryHelper.class\r\n GalleryHelper.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.VIDEO_VIEW.equalsIgnoreCase(SharedPref.getVideoType(sharedPreferences))) {\r\n VideoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n VideoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n } else if (Constant.AUDIO_VIEW.equalsIgnoreCase(SharedPref.getAudioType(sharedPreferences))) {\r\n AudioViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n AudioViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n } else if (Constant.PHOTO_VIEW.equalsIgnoreCase(SharedPref.getPhotoType(sharedPreferences))) {\r\n PhotoViewData.imageFolderMap.get(nameKey).remove(modelData);\r\n PhotoViewDataOnIdBasis.dataModelArrayList.remove(modelData);\r\n }\r\n }\r\n\r\n\r\n final String message = String.format(getString(R.string.delete_success_message));\r\n try {\r\n // method to deleting the selected file\r\n FileUtils.deleteFile(modelData.getFile());\r\n FileUtils.deleteDirectory(modelData.getFile().getParentFile());\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n // method to scan the file and update its position\r\n FileUtils.scanFile(PhotoViewActivity.this, modelData.getFile());\r\n\r\n SDKUtils.showToast(PhotoViewActivity.this, message);\r\n // notify viewpager adapter\r\n notifyAdapter();\r\n if (CustomPagerAdapter != null)\r\n CustomPagerAdapter.itemCheckInList();\r\n }", "public void deleteTag(ActionEvent event) {\n\t\tObservableList<Tag> list;\n\t\tlist = TagListDisplay.getSelectionModel().getSelectedItems();\n\t\t\n\t\tif(list.isEmpty() == true) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"No Tag Selected\");\n\t\t\talert.setContentText(\"No tag selected. Delete Failed!\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\tAlert alert2 = new Alert(AlertType.CONFIRMATION);\n\t\talert2.setTitle(\"Confirmation Dialog\");\n\t\talert2.setHeaderText(\"Confirm Action\");\n\t\talert2.setContentText(\"Are you sure?\");\n\t\tOptional<ButtonType> result = alert2.showAndWait();\n\t\t\n\t\tif(result.get() == ButtonType.OK) {\n\t\t\tTag tag = (Tag) TagListDisplay.getSelectionModel().getSelectedItem();\n\t\t\t\n\t\t\tImageView img = (ImageView) PhotoListDisplay.getSelectionModel().getSelectedItem();\n\t\t\tPhoto p = AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getPhotoFromImage(img);\n\t\t\tArrayList<Tag> listTags = p.getTags();\n\t\t\t\n\t\t\tlistTags.remove(tag);\n\t\t\t\n\t\t\ttagObsList = FXCollections.observableList(listTags);\n\t\t\tTagListDisplay.setItems(tagObsList);\n\t\t}else {\n\t\t\treturn;\n\t\t}\n\t\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\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\n\t\t/*\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t*/\n\t}", "@Override\n\t\t\tpublic boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\t\t\n\t\t\t\t \n\t\t\t\tswitch (item.getItemId()) {\n\t\t\t\tcase R.id.delete:\n\t\t\t\t\t\n\t\t\t\t\tfor(messagewrapper obje:dummyList){\n\t\t\t\t\t\t\n\t\t\t\t\t\tmAdapter.remove(obje);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tcheckedCount=0;\n\t\t\t\t\t\n\t\t\t\t\tmode.finish();\n\t\t\t\t\treturn true;\n\t\t\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "private static void deleteBb() {\n // get the name of the billboard to delete from the Jlist\n String name = (String) list.getSelectedValue();\n // ensure that there is a name selected\n if (name == null || name.equals(\"\")) {\n lbl_message.setText(\"No billboard selected\");\n Log.Confirmation(\"No billboard selected\");\n return;\n }\n // set the action request to the server\n user.setAction(\"Delete Billboard\");\n // Attempt connection to server\n if (AttemptConnect()) {\n try {\n // Send user object to server\n objectStreamer.Send(user);\n // send the name of the billboard to be deleted from the database\n dos.writeUTF(name);\n // check if deleted successfully\n if (dis.readBoolean()) {\n // remove the billboard from the list\n listUserBillboards.userBillboards.remove(name);\n listBillboards.billboards.remove(name);\n if (usersListModel != null) {\n usersListModel.removeElement(name);\n }\n if (billboardListModel != null) {\n billboardListModel.removeElement(name);\n }\n if (allListModel != null) {\n allListModel.removeElement(name);\n } else if (listModel != null) {\n listModel.removeElement(name);\n }\n // display confirmation message to the user and post log confirmation\n lbl_message.setText(\"Billboard deleted\");\n Log.Confirmation(\"Billboard successfully deleted\");\n getSchedulesList();\n scheduleListModel.clear();\n scheduleListModel.addAll(listSchedules.schedules);\n }\n // If billboard not deleted then display message to the user\n else {\n lbl_message.setText(\"Billboard not deleted\");\n Log.Error(\"Error when attempting to delete billboard\");\n }\n }\n // catch any unanticipated exceptions and print to console\n catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n Log.Error(\"Failed to delete billboard\");\n }\n // Disconnect from server\n AttemptDisconnect();\n }\n // Post message to user if unable to connect to server\n else {\n Log.Error(\"Unable to connect to server\");\n }\n resetFields();\n fieldsEnabled(false);\n }", "private void onDeleteElement(View view) {\n\n\n Node exist = arSceneView.getScene().findByName(TEMP_LINE_STRING);\n if(exist !=null)\n\n {\n arSceneView.getScene().removeChild(exist);\n\n tempLine = null;\n\n }\n\n if(listElements.size()<1) {\n Toast.makeText(MainActivity.this, \"List empty\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n Description r = listElements.get(listElements.size() - 1);\n if (r != null) {\n arSceneView.getScene().removeChild(r.getNode());\n r.getNode().setParent(null);\n listElements.remove(listElements.size() - 1);\n\n }\n\n\n\n\n\n\n\n\n }", "@FXML\n\tprivate void deleteButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart deletePartFromProduct = partListProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (deletePartFromProduct != null) {\n\t\t\t\n\t\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Pressing OK will remove the part from the product.\\n\\n\" + \"Are you sure you want to remove the part?\");\n\t\t\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\n\t\t\tif (result.isPresent() && result.get() == ButtonType.OK) {\n\t\t\t\n\t\t\t\tdummyList.remove(deletePartFromProduct);\n\n\t\t\t}\n\t\t}\n\t}", "public void buttonDelete(ActionEvent event) {\n\t\tObservableList<Player> allProduct, SinglePlayer;\n\t\tallProduct = tableview.getItems();\n\t\tSinglePlayer = tableview.getSelectionModel().getSelectedItems();\n\t\tSinglePlayer.forEach(allProduct::remove);\n\t}", "public void markCsgListDelete() throws JNCException {\n markLeafDelete(\"csgList\");\n }", "private void m91744a(List<AwemeLabelModel> list) {\n if (!C6307b.m19566a((Collection<T>) list)) {\n for (int i = 0; i < list.size(); i++) {\n AwemeLabelModel awemeLabelModel = (AwemeLabelModel) list.get(i);\n if (awemeLabelModel != null && awemeLabelModel.getLabelType() == 1 && !C28482e.m93606a(this.f73950g) && this.f73950g.getStatus() != null && this.f73950g.getStatus().getPrivateStatus() == 1) {\n list.remove(awemeLabelModel);\n }\n }\n }\n }", "@Override\r\n\tpublic void onClick(View v) {\n\t\tlist.remove(index);\r\n\t\tact.showOrderList(toView, list, act);\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n int indexDelFilm = listLesFilm.getSelectedIndex();\n System.out.println(\"Delete Film Index:\" + indexDelFilm);\n\n // Get delete film's name.\n String stringDelFilmNom = new String(listFilmInList.get(indexDelFilm).getNomdefilm());\n // Delete Last Space in String\n System.out.println(\"Delete Film Name: \" + stringDelFilmNom);\n\n // Get Film names from TXT file, search the movie which we want to delete and then delete it\n // Turn TXT to ArrayList\n File directory = new File(\"src/main/resources/film.csv\");\n String absoultePath = directory.getAbsolutePath();\n List<String> listFilmInTxt = new ArrayList<String>();\n List<String> listModeInTxt = new ArrayList<String>();\n List<Integer> listFilmIdInTxt = new ArrayList<Integer>();\n List<String> listYearInTxt = new ArrayList<String>();\n\n String line = \"\";\n try {\n FileInputStream fin = new FileInputStream(absoultePath);\n InputStreamReader reader = new InputStreamReader(fin);\n BufferedReader buffReader = new BufferedReader(reader);\n StringBuffer stringBuffer = new StringBuffer();\n while ((line = buffReader.readLine()) != null) {\n String[] stringFilm = line.split(\",\");\n listFilmInTxt.add(stringFilm[0]);\n listModeInTxt.add(stringFilm[1]);\n listFilmIdInTxt.add(Integer.valueOf(stringFilm[2]));\n listYearInTxt.add(stringFilm[3]);\n }\n System.out.println(listFilmInTxt);\n buffReader.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n\n // Check if the movie film is in array list, if yes then delete.\n for (int i = 0; i < listFilmInTxt.size(); i++) {\n// System.out.println(listFilmInTxt.get(i));\n if (listFilmInTxt.get(i).equals(stringDelFilmNom)) {\n System.out.println(i);\n System.out.println(listFilmInTxt.get(i));\n if (indexDelFilm != -1) {\n listFilmInList.remove(indexDelFilm);\n listModel.remove(indexDelFilm);\n System.out.println(\"yes\");\n try {\n\n // Empty txt file\n FileWriter fw = new FileWriter(absoultePath);\n fw.write(\"\");\n fw.flush();\n fw.close();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n\n listFilmInTxt.remove(i);\n listModeInTxt.remove(i);\n listFilmIdInTxt.remove(i);\n listYearInTxt.remove(i);\n\n // Rewrite the processed form into the TXT file.\n for (int j = 0; j < listFilmInTxt.size(); j++) {\n\n // Except for the last line, add \"\\n\" to wrap line.\n if (j < listFilmInTxt.size() - 1) {\n try {\n FileWriter fw = new FileWriter(absoultePath, true);\n fw.write(listFilmInTxt.get(j) + \",\" + listModeInTxt.get(j) + \",\" + listFilmIdInTxt.get(j) + \",\" + listYearInTxt.get(j) + \"\\n\");\n fw.close();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n // For the last line.\n } else {\n try {\n FileWriter fw = new FileWriter(absoultePath, true);\n fw.write(listFilmInTxt.get(j) + \",\" + listModeInTxt.get(j) + \",\" + listFilmIdInTxt.get(j) + \",\" + listYearInTxt.get(j));\n fw.close();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }\n\n }\n }\n\n }\n }\n\n\n }", "@FXML\r\n\r\n private void deleteFriend(){\r\n // Delete from GUI\r\n final int selectIndex = udb_FriendsListView.getSelectionModel().getSelectedIndex();\r\n if(selectIndex != -1){\r\n String itemToRemove = udb_FriendsListView.getSelectionModel().getSelectedItem();\r\n final int newSelectedIndex = (selectIndex == udb_FriendsListView.getItems().size() - 1) ? selectIndex - 1 : selectIndex;\r\n udb_FriendsListView.getItems().remove(selectIndex);\r\n udb_FriendsListView.getSelectionModel().select(newSelectedIndex);\r\n\r\n //Delete from DB\r\n try{\r\n FriendsDao.deleteFriend(userName, itemToRemove);\r\n }catch (Exception e){\r\n\r\n }\r\n }\r\n\r\n }", "public void clearList()\n {\n for (Category item : itemsList)\n {\n item.setSelected(false);\n }\n notifyDataSetChanged();\n }", "@Override\r\n protected void delete_objectList( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws KANException\r\n {\n\r\n }", "@Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n int id = item.getItemId();\n //use switch condition\n switch (id){\n case R.id.select_delete:\n //when click delete\n //use for loop\n for (NoteEntity noteSelect :selectList) {\n //remove select item from list\n list.remove(noteSelect);\n mainViewModel.deleteById(noteSelect.getId());\n }\n //check condition\n if (list.size()==0){\n //when list is empty\n //visible text view\n tvEmpty.setVisibility(View.VISIBLE);\n }\n mode.finish();\n break;\n case R.id.select_all:\n //when click on select all\n //check condition\n if (selectList.size() == list.size()){\n //when all item selected\n //set isSelectAll false\n isSelectAll = false;\n //clear select list\n selectList.clear();\n }else {\n //when all item unselected\n //set isSelectAll true\n isSelectAll = true;\n //clear list\n selectList.clear();\n //add all values in select list\n selectList.addAll(list);\n }\n //set text in view mode\n mainViewModel.setSelectedLiveData(String.valueOf(selectList.size()));\n //notify adaptor\n notifyDataSetChanged();\n break;\n }\n return true;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n String nama = String.valueOf(cbbNama.getSelectedItem());\n String pilihan2 = String.valueOf(cbbPilihan2.getSelectedItem());\n //dapetin nama nama table\n LinkedList<String> arrTable = DataAksesAdmin.listTable();\n //linked list buat nampung yg mau dihapus\n LinkedList<String> forDelete = new LinkedList<>();\n //pindahin ke array kalo ada namanya\n for(int i = 0; i < arrTable.size(); i++){\n for(int j = 1; j < 15; j++){\n if(arrTable.get(i).equals(nama+j)){\n forDelete.add(arrTable.get(i));\n }\n }\n }\n DataAksesAdmin.delUser(nama, pilihan2, forDelete);\n JOptionPane.showMessageDialog(null, \"Data Berhasil Dihapus!\");\n }", "@FXML\r\n\tpublic void deleteItem() {\r\n\t\tcontroller.deleteWishlistItem(listView.getSelectionModel().getSelectedItem().getId());\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tlistView.getSelectionModel().select(-1);\r\n\t}", "public void clear() {\n\t\tsuper.clear();\n\t\tthis.modelList.clear();\n\t\tif (elementoSeleccionar != null) {\n\t\t\tinsertItem(adapter.getListBoxDescription(elementoSeleccionar), elementoSeleccionar, 0);\n\t\t}\n\t}", "public void desmarcarTodos() {\n for (InputCheckbox checkbox : l_campos)\n {\n checkbox.setChecked(false);\n }\n }", "@FXML\n\tprivate void deleteSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getItems().get(selectedIndex);\n\t\ttaskList.getSelectionModel().clearSelection();\n\t\ttaskList.getItems().remove(task);\n\t\tchatView.setText(\"\");\n\t\ttaskList.getItems().removeAll();\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tString removeTask = task_split[1];\n\t\tif (task.contains(\"due by\")) {\n\t\t\tString[] taskDate = task_split[1].split(\"\\\\s+\");\n\t\t\tSystem.out.println(taskDate);\n\t\t\tString end = taskDate[taskDate.length - 3];\n\t\t\tSystem.out.println(end);\n\t\t\tremoveTask = task_split[1].substring(0, task_split[1].indexOf(end)).trim();\n\t\t\tSystem.out.println(removeTask);\n\n\t\t}\n\t\tclient.removeTask(removeTask.replace(\"\\n\", \"\"));\n\t}", "@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listdir.indexOf(rowb);\n\t\t\t\t\tlistdir.remove(removeIndex);\n\t\t\t\t\tgetView().getDireccion().removeRow(removeIndex + 1);\n\t\t\t\t}", "void toggleDeleteVisible (ActionEvent actionEvent) {\n if (this.isSelected())\n app.deleteElements.add(element);\n else\n app.deleteElements.remove(element);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n panel1 = new java.awt.Panel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jList2 = new javax.swing.JList();\n jButton9 = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jButton2 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jButton7 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n jButton10 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jScrollPane2.setViewportView(jList2);\n\n jButton9.setText(\"Delete all students\");\n jButton9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton9ActionPerformed(evt);\n }\n });\n\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Id\");\n\n jLabel2.setText(\"Phone#\");\n\n jLabel3.setText(\"Email Address\");\n\n javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1);\n panel1.setLayout(panel1Layout);\n panel1Layout.setHorizontalGroup(\n panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createSequentialGroup()\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createSequentialGroup()\n .addGap(189, 189, 189)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jLabel1)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jTextField3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 107, Short.MAX_VALUE)\n .addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField2, javax.swing.GroupLayout.Alignment.LEADING)))\n .addGroup(panel1Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jButton9)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 439, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(33, Short.MAX_VALUE))\n );\n panel1Layout.setVerticalGroup(\n panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()\n .addContainerGap(151, Short.MAX_VALUE)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(109, 109, 109)\n .addComponent(jButton9))\n .addGroup(panel1Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, 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(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jButton2.setText(\"back to main menu\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"FirstName\");\n\n jLabel5.setText(\"LastName\");\n\n jButton7.setText(\"Add Student\");\n jButton7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton7ActionPerformed(evt);\n }\n });\n\n jButton3.setForeground(new java.awt.Color(153, 153, 0));\n jButton3.setText(\"UPDATE STUDENT\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"clear\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton8.setText(\"Edit selected student\");\n jButton8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton8ActionPerformed(evt);\n }\n });\n\n jButton10.setText(\"Delete selected student\");\n jButton10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton10ActionPerformed(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 .addComponent(panel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(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(jButton2))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5))\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField4)\n .addComponent(jTextField5)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton8)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButton3))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton10)\n .addContainerGap())))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(panel1, 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 .addGroup(layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jTextField4, 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(jLabel5)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(2, 2, 2)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2))\n );\n\n pack();\n }", "@FXML\n private void deleteSongOnPlaylist(ActionEvent event) {\n Song s = lstSOP.getSelectionModel().getSelectedItem();\n int plId = lstPlaylists.getSelectionModel().getSelectedItem().getId();\n bllfacade.deleteSongOnPlaylist(plId,s.getId(),s.getPosition());\n bllfacade.reloadPlaylists();\n init();\n }", "public void domicilioElimina(){\r\n\t\tlog.info(\"DomicilioElimina()\");\r\n\t\tfor (int i = 0; i < DomicilioPersonaList.size(); i++) { \t\t\r\n\t \tlog.info(\"\"+DomicilioPersonaList.get(i).getItem()+\" ,idd \"+getIdd() +\" \"+DomicilioPersonaList.get(i).getDomicilio());\r\n\r\n\t\tif((DomicilioPersonaList.get(i).getIddomiciliopersona()== 0 || DomicilioPersonaList.get(i).getIddomiciliopersona()== null) && DomicilioPersonaList.get(i).getItem()==\"Por Agregar\"){\r\n\t\t\tlog.info(\"N2----> DomicilioPersonaList.get(i).getIddomiciliopersona()\" +\" \" +DomicilioPersonaList.get(i).getIddomiciliopersona());\r\n\t\t\tDomicilioPersonaSie domtemp = new DomicilioPersonaSie();\r\n\t\t\tdomtemp.setIddomiciliopersona(idd);\r\n\t\t\tDomicilioPersonaList.remove(domtemp);\r\n\t\tfor (int j = i; j < DomicilioPersonaList.size(); j++) {\r\n\t\t\tlog.info(\" i \" +i+\" j \"+ j);\r\n\t\t\ti=i+1;\r\n\t\t\tDomicilioPersonaList.set(j, DomicilioPersonaList.get(j));\r\n\t\t}break;\r\n\t\t}\r\n\t\telse if(DomicilioPersonaList.get(i).getIddomiciliopersona() ==(getIdd()) && DomicilioPersonaList.get(i).getItem()==\"Agregado\"){\r\n\t\t\tlog.info(\"ALERTA WDFFFF\");\r\n\t\t\tDomicilioPersonaSie obj = new DomicilioPersonaSie();\r\n\t\t\tobj.setIddomiciliopersona(idd);\r\n\t\t\tlog.info(\"DENTRO LISTA DESHABILITADO\");\r\n\t\t\tDomicilioPersonaDeshabilitado.add(obj);\t\r\n\t\t\tFaceMessage.FaceMessageError(\"ALERTA\", \"Los Cambios se realizaran despues de hacer clic en el boton Guardar\");\t\t\t\r\n//\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_WARN,\r\n//\t\t\tConstants.MESSAGE_ERROR_TELEFONO_CLIENTE,mensaje);\r\n//\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void actuallyRemove() {\n /*\n * // Set the TextViews View v = mListView.getChildAt(mRemovePosition -\n * mListView.getFirstVisiblePosition()); TextView nameView =\n * (TextView)(v.findViewById(R.id.sd_name));\n * nameView.setText(R.string.add_speed_dial);\n * nameView.setEnabled(false); TextView labelView =\n * (TextView)(v.findViewById(R.id.sd_label)); labelView.setText(\"\");\n * labelView.setVisibility(View.GONE); TextView numberView =\n * (TextView)(v.findViewById(R.id.sd_number)); numberView.setText(\"\");\n * numberView.setVisibility(View.GONE); ImageView removeView =\n * (ImageView)(v.findViewById(R.id.sd_remove));\n * removeView.setVisibility(View.GONE); ImageView photoView =\n * (ImageView)(v.findViewById(R.id.sd_photo));\n * photoView.setVisibility(View.GONE); // Pref\n */\n mPrefNumState[mRemovePosition + 1] = \"\";\n mPrefMarkState[mRemovePosition + 1] = -1;\n SharedPreferences.Editor editor = mPref.edit();\n editor.putString(String.valueOf(mRemovePosition + 1), mPrefNumState[mRemovePosition + 1]);\n editor.putInt(String.valueOf(offset(mRemovePosition + 1)),\n mPrefMarkState[mRemovePosition + 1]);\n editor.apply();\n startQuery();\n }", "public String ajaxRemoveFromList() throws Exception {\n\t\tJSONObject json = new JSONObject(Constant.getObjectBean().getData());\n\t\tString groupId = json.getString(ApplyItemConstant.KEY_GROUP_ID);\n\t\tString playerId = json.getString(ApplyItemConstant.KEY_PLAYER_ID);\n\t\tXMLCREATE = XmlService.adminRemoveSTBOutToGroup(playerId);\n\t\tModelService.adminRemoveSTBOutToGroup(XMLCREATE);\n\t\t// reload group DB\n\t\treturn getSetupBox(groupId);\n\t}", "@FXML\n private void deletePlaylist(ActionEvent event) {\n Parent root;\n try{\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/mytunes/gui/view/DeleteWindow.fxml\"));\n root = loader.load();\n Stage stage = new Stage();\n \n DeleteWindowController del = loader.getController();\n del.acceptPlaylist(lstPlaylists.getSelectionModel().getSelectedItem());\n \n stage.setTitle(\"Delete\");\n stage.setScene(new Scene(root, 350,250));\n stage.show();\n stage.setOnHiding(new EventHandler<WindowEvent>() {\n @Override\n public void handle(WindowEvent event) {\n bllfacade.reloadPlaylists();\n init();\n }\n });\n } catch (IOException ex) {\n Logger.getLogger(AppController.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n /* bllfacade.deletePlaylist(lstPlaylists.getSelectionModel().getSelectedItem());\n bll.reloadPlaylists();\n init();*/\n }", "@FXML public void deleteBT_handler(ActionEvent e) {\n\t\tif(list.getSelectionModel().getSelectedIndex() == -1) {\n\t\t\tAlert error = new Alert(AlertType.ERROR, \"Nothing Selected.\\nPlease select correctly or add new User\", ButtonType.OK);\n\t error.showAndWait();\n\t\t}\n\t\telse {\n\t\t\tAlert warning = new Alert(AlertType.WARNING,\"Delete this User from list?\", ButtonType.YES, ButtonType.NO);\n\t warning.showAndWait();\n\t if(warning.getResult() == ButtonType.NO){\n\t return;\n\t }\n\t\n\t int idx = list.getSelectionModel().getSelectedIndex();\n\t if(list.getSelectionModel().getSelectedItem().getUserName().equals(\"stock\")) {\n\t \tAlert error = new Alert(AlertType.ERROR, \"You can't delete stock username\", ButtonType.OK);\n\t error.showAndWait();\n\t \treturn;\n\t }\n\t obs.remove(idx);\n\t mgUsr.arrList.remove(idx);\n\t\t}\n\t}", "@Override\n public void onGuiClosed(){\n\t\tfor(int displayListID : partDisplayLists.values()){\n\t\t\tGL11.glDeleteLists(displayListID, 1);\n\t\t}\n }", "public void removeAttribute() {\n attributesToRemove = \"\";\r\n for (AttributeRow attribute : listAttributes) {\r\n if (attribute.isSelected()) {\r\n attributesToRemove = attributesToRemove + (attribute.getIdAttribute() + 1) + \",\";\r\n }\r\n }\r\n if (attributesToRemove.length() != 0) {\r\n attributesToRemove = attributesToRemove.substring(0, attributesToRemove.length() - 1);\r\n RequestContext.getCurrentInstance().execute(\"PF('wvDlgConfirmRemoveAttribute').show()\");\r\n } else {\r\n printMessage(\"Error\", \"You must select the attributes to be removed\", FacesMessage.SEVERITY_ERROR);\r\n }\r\n }", "public void clearList() {\n\t\tdeletedList.clear();\n\t}", "private void onRemove() throws Exception\n {\n // get the target list selection\n Object selection[] = _lstTarget.getSelectedValues();\n\n // iterate the selection\n TransferEntity te;\n EntityDobj table;\n for(int i = 0; selection != null && i < selection.length; i++)\n {\n // get the te\n te = (TransferEntity)selection[i];\n if(te != null)\n {\n // get the associate entitydobj\n table = _dt.getSourceDataSource().getEntity(te.getSourceEntityName());\n if(table != null)\n {\n // add to the source list\n _lstSource.addItem(table);\n\n // remove from ds\n _dt.removeTransferEntity(te, true);\n }\n }\n }\n\n // remove the selection from the target list\n for(int i = 0; selection != null && i < selection.length; i++)\n {\n // get the table\n te = (TransferEntity)selection[i];\n if(te != null)\n _lstTarget.removeItem(te);\n }\n }", "public void deleteList(int list_id) {\n String strFilter = LIST_ID + \"=\" + list_id;\n SQLiteDatabase d = helper.getWritableDatabase();\n d.delete(TABLE_ITEMS, strFilter, null);\n // delete list\n strFilter = ID + \"=\" + list_id;\n d.delete(TABLE_LISTS, strFilter, null);\n }" ]
[ "0.7030985", "0.69854444", "0.6962105", "0.69430923", "0.6801749", "0.6705966", "0.66100156", "0.65264684", "0.6524881", "0.6491596", "0.6407102", "0.63989", "0.637045", "0.6368784", "0.63447976", "0.63166755", "0.6315153", "0.62809724", "0.62215894", "0.6193114", "0.61894524", "0.61685985", "0.6162352", "0.61336863", "0.61145806", "0.6113422", "0.6044996", "0.6032916", "0.60216486", "0.60213256", "0.60147214", "0.60095525", "0.60007", "0.5978112", "0.59692615", "0.59692585", "0.59664065", "0.59606355", "0.59545714", "0.59193957", "0.5912487", "0.59045845", "0.58994216", "0.5894227", "0.5889673", "0.58787864", "0.5853765", "0.5838126", "0.5832664", "0.5832008", "0.5830723", "0.58161384", "0.5810394", "0.58077365", "0.5804892", "0.57988584", "0.57839286", "0.5780363", "0.5774722", "0.5763983", "0.57615787", "0.57606524", "0.5756389", "0.575624", "0.57561827", "0.5754901", "0.5754173", "0.5743197", "0.5742158", "0.57414305", "0.57347983", "0.57344073", "0.5734146", "0.5728133", "0.57262623", "0.57208973", "0.571991", "0.57121426", "0.57119715", "0.57096916", "0.5709345", "0.57050294", "0.5703725", "0.5692996", "0.5681129", "0.56762105", "0.5675569", "0.5675394", "0.5663713", "0.56608874", "0.5654947", "0.56525874", "0.564284", "0.56350553", "0.5627986", "0.5626982", "0.5617916", "0.5617092", "0.56159383", "0.5613638" ]
0.5874902
46
Here we are going to check in the show_list what was the list that was selected. Then if this list is selected, and we press this button, we are going to edi the name of this list. Here we are going to use the List class.
@FXML public void Edit_Name_List(ActionEvent actionEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "void onListClick();", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "private void showListSelectCheckBox(){\n DisplayListWithCheckBox();\n //wordList.setSelection(FirstVisiblePosition);\n\n FloatingActionButton fab_plus = findViewById(R.id.fab_plus);\n fab_plus.setVisibility(View.INVISIBLE);\n FloatingActionButton fab_play = findViewById(R.id.fab_play);\n fab_play.setVisibility(View.INVISIBLE);\n FloatingActionButton fab_delete = findViewById(R.id.fab_delete);\n fab_delete.setVisibility(View.VISIBLE);\n }", "public void selectlistname(String selectlist){\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:- Link should be selected in the dropdown\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"dropdowncurrentlist\"));\r\n\t\t\tclick(locator_split(\"dropdowncurrentlist\"));\r\n\r\n\t\t\twaitforElementVisible(returnByValue(getValue(\"listselectname\")));\r\n\t\t\tclick(returnByValue(getValue(\"listselectname\")));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- list is slected\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Favorities is not clicked \"+elementProperties.getProperty(\"dropdowncurrentlist\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"dropdowncurrentlist\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\t\r\n\r\n\r\n\t}", "public void onButtonActionEvent(com.codename1.ui.events.ActionEvent ev) {\n new ListEvent().show();\n }", "private void editList(){\n String name =this.stringPopUp(\"New name:\");\n Color newDefaultPriority = ColorPicker.colorPopUp(ColorPicker.getColor(currentList.getColor()));\n if(name != null && !name.isEmpty()) {\n String oldName = getPanelForList().getName();\n JPanel panel = getPanelForList();\n currentList.setName(name);\n currentList.setColor(ColorPicker.getColorName(newDefaultPriority));\n agenda.getConnector().editItem(currentList);\n setup.remove(oldName);\n window.remove(panel);\n setup.put(name,true);\n panel.setName(name);\n comboBox.addItem(name);\n comboBox.setSelectedItem(name);\n window.add(name,panel);\n comboBox.removeItem(oldName);\n this.updateComponent(panel);\n this.showPanel(name);\n this.updateComponent(header);\n }\n }", "private void getClientList(ActionEvent e){\r\n new ClientList().Display();\r\n }", "private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }", "public void openList() {\n\t\tString title = resourceManager.getString(\"process.view.list.title\");\n\t\tint indexOfTab = tabbedPane.indexOfTab(title);\n\t\tif (indexOfTab >= 0) {\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t} else {\n\t\t\tlView = new ListView(this, resourceManager);\n\t\t\ttabbedPane.addTab(title, lView);\n\n\t\t\ttabbedPane.setTabComponentAt(tabbedPane.indexOfTab(title),\n\t\t\t\t\tnew ButtonTabComponent(tabbedPane, this, lView,\n\t\t\t\t\t\t\tresourceManager));\n\t\t\tindexOfTab = tabbedPane.indexOfTab(title);\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t\tloadListView();\n\t\t}\n\t}", "public interface ListListener {\n\t/*\n\t * Called by soundfun.ui when a different element\n\t * has been selected. This also is called if no\n\t * element was previously selected and is now selected.\n\t */\n\tpublic void selected(String action);\n}", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tlist = mdb.getselect_all_data(ed.getText().toString());\n\t\t\t\tMy_list_adapter adapter = new My_list_adapter(getApplicationContext(),\n\t\t\t\t\t\tlist);\n\t\t\t\tlv.setAdapter(adapter);\n\t\t\t}", "private void info(ActionEvent x) {\n\t\tProject p = this.list.getSelectedValue();\n\t\tif (p != null) {\n\t\t\tcontroller.moreinfo(p.getName());\n\t\t}\n\t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "private void registerListClicks(){\n //Gets list element\n ListView list = findViewById(R.id.transaction_list);\n //Sets onclick listener\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //Gets the relevant view\n TextView text = (TextView) view;\n //Saves the name of the recipient\n chosenName = (String) text.getText();\n //Checks if the button should be enabled\n checkIfEnable();\n }\n });\n }", "private void reloadButtons(String newList) \n {\n // store saved url/url names in the lists array\n String[] lists = \n savedSiteList.getAll().keySet().toArray(new String[0]); \n Arrays.sort(lists, String.CASE_INSENSITIVE_ORDER); // sort by list\n\n // if a new list was added, insert in GUI at the appropriate location\n if (newList != null)\n {\n makeListGUI(newList, Arrays.binarySearch(lists, newList));\n }\n else // display GUI for all lists\n { \n // display all saved searches\n for (int index = 0; index < lists.length; ++index)\n makeListGUI(lists[index], index);\n } \n }", "private void makeListGUI(String list, int index)\n {\n // get a reference to the LayoutInflater service\n LayoutInflater inflater = (LayoutInflater) getSystemService(\n Context.LAYOUT_INFLATER_SERVICE);\n\n // inflate new_list_view.xml to create new list and edit Buttons\n View newListView = inflater.inflate(R.layout.new_list_view, null);\n \n // get newListButton, set its text and register its listener\n Button newListButton = \n (Button) newListView.findViewById(R.id.newListButton);\n newListButton.setText(list); \n newListButton.setOnClickListener(listButtonListener); \n\n // get newEditButton and register its listener\n Button newEditButton = \n (Button) newListView.findViewById(R.id.newEditButton); \n newEditButton.setOnClickListener(editButtonListener);\n\n // add new list and edit buttons to listTableLayout\n listTableLayout.addView(newListView, index);\n }", "@Override\n\tpublic boolean showInList()\n\t{\n\t\treturn true;\n\t}", "private void setListClickedEvent() {\n raceCarList.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n String raceCarName = raceCarList.getSelectionModel().getSelectedItem();\n RaceCar raceCar = Storage.findRaceCar(raceCarName);\n Storage.setSelectedRaceCar(raceCar);\n clearInputFieldStyle();\n setFields(raceCar);\n setAllFieldsAndSliderDisabled(true);\n setButtonsDisabled(true, false, false);\n ViewHelper.updateCarData();\n }\n });\n }", "protected void ACTION_B_LIST(ActionEvent arg0) {\n\t\tListNetworkInerface();\r\n\t\tselect.setEnabled(true);\r\n\t\tback.setEnabled(true);\r\n\t\thelp.setEnabled(true);\r\n\t\tload.setEnabled(true);\r\n\t\ttextField.requestFocus();\r\n\t}", "@Override\n public String getName() {\n return \"list\";\n }", "private void selected(ListSelectionEvent e) {\n\t\tProject project = (Project) list.getSelectedValue();\n\t\tif (project != null) {\n\t\t\tinfo.setText(\"Description: \" + project.getDescription());\n\t\t} else {\n\t\t\tinfo.setText(\"Description: \");\n\t\t}\n\t}", "public ListFrameRobots(ArrayList<Team> teamRobotInfo)\r\n {\r\n super( \"List Test\" );\r\n setLayout( new FlowLayout() ); // set frame layout\r\n \r\n for(int i = 0; i < 12; i ++)\r\n {\r\n teamNames[i] = teamRobotInfo.get(i).getTeamName();\r\n }\r\n\r\n \r\n \r\n teamNamesJList = new JList(teamNames);\r\n teamNamesJList.setVisibleRowCount(12);\r\n \r\n \r\n \r\n teamNamesJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\r\n /*\r\n add( new JScrollPane(teamNamesJList));\r\n\r\n colorJList.addListSelectionListener(\r\n new ListSelectionListener() // anonymous inner class\r\n { \r\n // handle list selection events\r\n public void valueChanged( ListSelectionEvent event )\r\n {\r\n getContentPane().setBackground( \r\n colors[ colorJList.getSelectedIndex() ] );\r\n label.setName(\"Dogs\");\r\n } // end method valueChanged\r\n } // end anonymous inner class\r\n \r\n ); // end call to addListSelectionListener\r\n \r\n \r\n /* \r\n teamNamesJList.addListSelectionListener(\r\n new ListSelectionListener() // anonymous inner class\r\n { \r\n // handle list selection events\r\n public void valueChanged( ListSelectionEvent event )\r\n {\r\n getContentPane().setBackground( \r\n colors[ colorJList.getSelectedIndex() ] );\r\n } // end method valueChanged\r\n } // end anonymous inner class\r\n \r\n );\r\n \r\n */\r\n }", "public ShowList(String title) {\n id = title;\n initComponents();\n updateListModel();\n }", "private void showList() {\n select();\n //create adapter\n adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, studentInfo);\n //show data list\n listView.setAdapter(adapter);\n }", "private void addList(){\n boolean unique = true;\n String name =this.stringPopUp(\"List name:\");\n do {\n if(name == null){\n return;\n }\n if(!unique){\n unique = true;\n name = this.stringPopUp(\"List with this name already exists\");\n }\n for (Component p : window.getComponents()) {\n if (p.getName().equals(name)) {\n unique = false;\n }\n }\n }while (!unique);\n numberOfLists++;\n\n Users user = new Users();\n user.setEmail(agenda.getUsername());\n ColorPicker colorPicker = ColorPicker.createColorPicker(4);\n JOptionPane.showConfirmDialog(null, colorPicker, \"Chose default priority\", JOptionPane.OK_CANCEL_OPTION);\n Items item = new Items(name,ColorPicker.getColorName(colorPicker.getColor()),\"list\",user);\n agenda.getConnector().addItem(item,user);\n comboBox.addItem(name);\n currentList = agenda.getConnector().getItem(agenda.getUsername(),\"list\",name);\n JPanel panel = new JPanel();\n setUpList(panel);\n setup.put(name,true);\n comboBox.setSelectedItem(name);\n panel.setName(name);\n window.add(name, panel);\n this.showPanel(name);\n this.updateComponent(panel);\n comboBox.setSelectedIndex(numberOfLists-1);\n\n if(numberOfLists==1){\n setUpHeader();\n }\n }", "private void registerClick() {\n listView = (ListView) findViewById(R.id.listViewPick);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n private AdapterView parent;\n\n @Override\n public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {\n this.parent = parent;\n TextView textView = (TextView) viewClicked;\n //String message = \"You clicked # \" + position + \", which is list: \" + textView.getText().toString();\n //Toast.makeText(PickExisting.this, message, Toast.LENGTH_SHORT).show();\n\n String name = textView.getText().toString();\n Product product = new Product();\n product = myDB.findProdByName(name);\n\n if (FROM.equals(\"UseList\")) {\n myDB.addListProduct(FORWARD, product);\n }else{\n myDB.addInventoryProduct(FORWARD, product);\n }\n }\n });\n }", "public List getList () {\nif (list == null) {//GEN-END:|13-getter|0|13-preInit\n // write pre-init user code here\nlist = new List (\"list\", Choice.IMPLICIT);//GEN-BEGIN:|13-getter|1|13-postInit\nlist.append (\"S\\u00F6k text\", null);\nlist.append (\"Tidigare s\\u00F6kningar\", null);\nlist.addCommand (getExitCommand ());\nlist.setCommandListener (this);\nlist.setSelectedFlags (new boolean[] { false, false });//GEN-END:|13-getter|1|13-postInit\n // write post-init user code here\n}//GEN-BEGIN:|13-getter|2|\nreturn list;\n}", "public void btnListClick(){\n // Scan the Wi-Fi to refresh list\n mwifiAdmin.scanForRescueNet();\n // Show the List screen\n FragmentManager fm = getActivity().getSupportFragmentManager();\n if(rescueListFragment == null)\n rescueListFragment = RescueListFragment.newInstance(mwifiAdmin);\n fm.beginTransaction().replace(R.id.container_main, rescueListFragment).addToBackStack(null).commit();\n }", "public void showUploadList() {\n\t\tButton btn = (Button) ((Sync) initiator).findViewById(R.id.btn_sync_uplist);\n\t\t// On le desactive\n\t\tbtn.setEnabled(false);\n\t\t\n\t\t// On prend le bouton de download\n\t\tbtn = (Button) ((Sync) initiator).findViewById(R.id.btn_sync_downlist);\n\t\t// On l active\n\t\tbtn.setEnabled(true);\n\t\t\n\t\tsetDirectionUpload();\n\t\t((Sync) initiator).showListView();\n\t\t\n\t}", "public void display_list_names(final ArrayList<String> listNames,final String AgentID){\n final AlertDialog.Builder select_LN_alertBox = new AlertDialog.Builder(this);\n // define array adapter of list name getting from local table of lists set into alert box\n final ArrayAdapter<String> arrayAdapter_list_names = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_single_choice, listNames);\n\n if(!arrayAdapter_list_names.isEmpty()) {\n\n // set title of alert box\n select_LN_alertBox.setTitle(\"Select List\");\n // create radio buttons of list in alert box\n select_LN_alertBox.setSingleChoiceItems(arrayAdapter_list_names, selected, new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // get current position\n selected = which;\n }\n });\n // set positive button\n select_LN_alertBox.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n /* checking product ids are empty or not */\n if(!product_ids_for_list.isEmpty()) {\n // get selected list name chosen by user\n String selected_ln = arrayAdapter_list_names.getItem(selected);\n // get increment into int variable\n int list_incr = get_list_incr_from_local_list_db(selected_ln, AgentID);\n // insert values into local list_items\n insert_values_in_list_items_local_db(AgentID, selected_ln,list_incr);\n product_ids_for_list.clear();\n } else{\n Toast.makeText(Product_Details_Page_Type_4.this,\n \"Please select some products\" ,Toast.LENGTH_LONG).show();\n }\n }\n });\n // set negative button\n select_LN_alertBox.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n } else {\n\n select_LN_alertBox.setMessage(\"No records found\");\n select_LN_alertBox.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n }\n // show alert box\n select_LN_alertBox.show();\n }", "void selectList(ShoppingList _ShoppingList);", "public void setCurrentListToBeDoneList();", "public void showPanelToNewPlayList() {\n\t\tjpIntroduceNameList.setVisible(true);\n\t\tjpIntroduceNameList.setFocusable(true);\n\t\tjpIntroduceNameList.requestFocus(true);\n\t\tjpIntroduceNameList.setRequestFocusEnabled(true);\n\t\tjpIntroduceNameList.requestFocus();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n\n final ListModel LM = new ListModel();\n LM.strMainAsset=\"images/custom/custom_main.png\";\n LM.strListName=((EditText)V.findViewById(R.id.edit_list_create_name)).getText().toString();\n LM.strRowThImage=\"images/custom/custom_th.png\";\n LM.strRowImage=null;\n \n// LM.strRowBGImage=\"images/custom/custom_content.png\";\n\n ListItemRowModel LIM=new ListItemRowModel(AppState.getInstance().CurrentProduct.strId);\n\n LM.items.add(LIM);\n\n //add it to my lists\n AppState.getInstance().myList.items.add(LM);\n\n //set the title\n ((TextView)V.findViewById(R.id.text_list_add_create)).setText(\"List Created!\");\n\n\n\n //show the created layout\n LinearLayout layoutCreated=(LinearLayout)V.findViewById(R.id.layout_add_list_created);\n layoutCreated.setVisibility(View.VISIBLE);\n layoutCreated.setAlpha(0f);\n layoutCreated.animate().alpha(1).setDuration(300);\n\n\n //hide the form\n V.findViewById(R.id.layout_create_form).setVisibility(View.GONE);\n\n //set the propper title\n ((TextView)V.findViewById(R.id.text_list_created)).setText(LM.strListName);\n\n //set public or not\n if(!((CheckBox)V.findViewById(R.id.checkbox_add_list_create)).isChecked())\n ((TextView) V.findViewById(R.id.text_list_created_public)).setText(\"This list is public\");\n else\n ((TextView) V.findViewById(R.id.text_list_created_public)).setText(\"This list is private\");\n\n\n V.findViewById(R.id.btn_view_created).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dismiss();\n\n AppState.getInstance().CurrentList=LM;\n ListViewFragment listViewFragment= new ListViewFragment();\n\n Bundle args = new Bundle();\n args.putInt(ListFragment.ARG_PARAM1, R.layout.layout_list);\n args.putString(ListFragment.ARG_PARAM2, \"list\");\n listViewFragment.setArguments(args);\n\n ((MainActivity)getActivity()).setFragment(listViewFragment, FragmentTransaction.TRANSIT_FRAGMENT_OPEN,false);\n }\n });\n\n\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n AbstractButton selectedButton = null;\n for (Enumeration<AbstractButton> buttons = buttonGroup.getElements(); buttons.hasMoreElements(); ) {\n AbstractButton button = buttons.nextElement();\n if (button.isSelected()) {\n selectedButton = button;\n }\n }\n\n //Model um das hinzufügen von Zeilen zu ermöglichen\n DefaultListModel<String> list = ((DefaultListModel<String>) listResults.getModel());\n //Jedes mal zuerst die Liste Leeren\n list.clear();\n if (selectedButton == radioButtonAllStyles) {\n /*\n * Erzeugt Guiausgabe der Bierarten.\n * Die id wird mit \"::\" vor dem Bierart Namen ausgeben.\n * */\n beerService.getBeerStyles()\n .forEach((k, v) -> list.addElement(k + \"::\" + v));\n } else if (selectedButton == radioButtonStyle) {\n /*\n * Erzeugt Guiausgabe der Bierarten, welche die Zeichenfolge ″search″ im Namen enthalten.\n * Die id wird mit \"::\" vor dem Bierart Namen ausgeben.\n *\n * @param searchString Zeichenfolge die enthalten sein soll\n * */\n beerService.getBeerStylesBySearchStr(textFieldArgs.getText())\n .forEach((k, v) -> list.addElement(k + \"::\" + v));\n } else if (selectedButton == radioButtonAllBeers) {\n /*\n * Gibt zeilenweise ID und Name mit \"::\" getrennt der Biere aus.\n * */\n beerService.getBeers()\n .forEach(x -> list.addElement((x.getId() + \"::\" + x.getName())));\n } else if (selectedButton == radioButtonBeerWithId) {\n /*\n * Gibt in einer Zeile ID und Namen und in einer zweiten Zeile die Beschreibung\n * des entsprechenden Bieres aus.\n *\n * @param id id nach der gesucht werden soll\n * */\n Beer beer = beerService.getBeerById(textFieldArgs.getText());\n if (beer != null) {\n list.addElement(beer.getId() + \"::\" + beer.getName());\n }\n }\n }", "private void addElementsToPanelList(JList<String> jlist, JButton clickUpdate, JButton clickDelete,\r\n JButton clickComplete, JButton clickIncomplete,\r\n JButton clickCreate, JButton showComplete,\r\n JButton clickSave) {\r\n panelList.add(jlist);\r\n panelList.add(clickUpdate);\r\n panelList.add(clickDelete);\r\n panelList.add(clickComplete);\r\n panelList.add(clickIncomplete);\r\n panelList.add(clickCreate);\r\n panelList.add(showComplete);\r\n panelList.add(clickSave);\r\n }", "public OverviewSmallListChoosrDialogOptions showListChooser(String referenceID, boolean multiSelect, boolean showFilter, String title, String okText, String cancelText, IDLabelList items, Collection<String> selectedIDs){\n/*Generated! Do not modify!*/ \tListChooserParameters parameters = createListChooserParameters(referenceID, multiSelect, showFilter, title, okText, cancelText);\n/*Generated! Do not modify!*/ \tSet<String> selectedIDsSet = new HashSet<String>();\n/*Generated! Do not modify!*/ \tif (selectedIDs != null){\n/*Generated! Do not modify!*/ \t\tselectedIDsSet = new HashSet<String>(selectedIDs);\n/*Generated! Do not modify!*/ \t}\n/*Generated! Do not modify!*/ \tList<ListChooserItem> chooserItems = new ArrayList<ListChooserItem>();\n/*Generated! Do not modify!*/ \tfor (IDLabel i: items.getItems()){\n/*Generated! Do not modify!*/ \t\tchooserItems.add(createItem(i.getID(), i.getLabel(), null, selectedIDsSet.contains(i.getID())));\n/*Generated! Do not modify!*/ \t}\n/*Generated! Do not modify!*/ \tparameters.setShowIcons(false);\n/*Generated! Do not modify!*/ \tparameters.setItems(chooserItems);\n/*Generated! Do not modify!*/ \treplyDTO.setListChooserParameters(parameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ \taddRecordedAction(ReplyActionType.SHOW_LIST_CHOOSER_TEXTS, \"showListChooser(\" + escapeString(referenceID) + \", \" + multiSelect + \", \" + showFilter + \", \" + escapeString(title) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(okText) + \", \" + escapeString(cancelText) + \", \", gson.toJson(items), selectedIDs);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallListChoosrDialogOptions(this, parameters);\n/*Generated! Do not modify!*/ }", "private void contactsListEvent(){\n UI.getContacts().addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(ListSelectionEvent e) {\r\n UI.getProperList().clear(); //Clear screen\r\n UI.getContacts().setCellRenderer(clearNotification); //Clear notification\r\n UI.getUserName().setText((String) UI.getContacts().getSelectedValue()); //Set selected username\r\n String currentChat = (String)UI.getContacts().getSelectedValue();\r\n if(chats.containsKey(currentChat)){ //If database exists\r\n for(String s: chats.get(currentChat)){ //Load messages to screen\r\n UI.getProperList().addElement(s);\r\n }\r\n }\r\n }\r\n });\r\n }", "public String getName() {\r\n return listName;\r\n }", "public void buttonLoadList(ActionEvent actionEvent) {\n }", "@Override\n public void onClick(View v) {\n SplNewList.clear();\n\n splNewListId.clear();\n for (int i = 0; i < specializationSelectedList.size(); i++)\n\n if (specializationSelectedList.get(i).getStatus()) {\n // jobLocation.setText(metrocitySelectedList.toString().replace(\"[\",\"\").replace(\"]\",\"\"));\n SplNewList.add(specializationSelectedList.get(i).getSpecialization_name());\n splNewListId.add(specializationSelectedList.get(i).getSpecialization_id());\n Log.d(\"modelArrayList\", specializationList.get(i).getSpecialization_name() + \"<><<\" + specializationList.get(i).getStatus());\n }\n\n Log.d(\"ISZEOFTITLESELLIS\", SplNewList.size() + \"\");\n medicalSplId = splNewListId.toString().replace(\"[\", \"\").replace(\"]\", \"\");\n\n Log.d(\"MEDICALmedicalSplId\", medicalSplId);\n\n spl_auto.setText(SplNewList.toString().replace(\"[\", \"\").replace(\"]\", \"\"));\n if (SplNewList.size() > 3) {\n Toast toast = Toast.makeText(Sell_Buy_Practice_Activity.this, \"Only 3 Specializations can be selected!\", Toast.LENGTH_LONG);\n\n toast.show();\n dialog.show();\n } else {\n dialog.dismiss();\n }\n\n }", "private void jList1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList1MouseClicked\n Componente aux = this.d.getComponenteNome(this.jList1.getSelectedValue());\n if(aux!=null) {\n this.jLabel8.setText(aux.getDescricao());\n if (evt.getClickCount()== 2 && this.model2.getSize()<=5){\n if(!this.tipos.contains(aux.getTipo())) {\n this.auxC.addComponente(aux.getID(),aux.getPreco());\n dispose();\n execCriarConfGUI();\n }\n else {\n Object[] options = {\"SIM\",\"NÃO\"};\n int result = JOptionPane.showOptionDialog(null, \"Já existe um Componente do tipo \"+aux.getTipo()+\".\\nDeseja troca-lo?\"\n ,\"TIPOS IGUAIS\",JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE,null,options,null );\n if (result == JOptionPane.YES_OPTION) {\n this.auxC = this.d.remComp(this.auxC,aux.getTipo());\n List<String> add = new ArrayList<>();\n add.add(aux.getID());\n this.auxC = this.d.addComponente(this.auxC,add);\n dispose();\n execCriarConfGUI();\n }\n }\n \n }\n }\n }", "@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tint idx = jlst.getSelectedIndex();\n\t\t\n\t\tif(idx != -1)\n\t\t\tjlab.setText(\"Current selection: \" + names[idx]);\n\t\t\n\t\telse \n\t\t\t\n\t\t\tjlab.setText(\"Please choose a name\");\n\t\t\n\t\t\n\t}", "@Override\r\n public void valueChanged(ListSelectionEvent event)\r\n {\r\n System.out.println(event);\r\n if(list1.getSelectedValue() != null){\r\n file_name = list1.getSelectedValue().toString();\r\n System.out.println(\"Log \"+file_name);\r\n }\r\n }", "abstract void listSeleccionadas_mouseClicked(MouseEvent e);", "private void CreateList (MouseEvent evt)\n {\n if(currentPlayers < nPlayers)\n {\n label2.setText(\"List not full\");\n }\n else\n {\n new TEST(Names);\n label2.setText(\"List created\");\n }\n }", "private void todoListGui() {\r\n panelSelectFile.setVisible(false);\r\n if (panelTask != null) {\r\n panelTask.setVisible(false);\r\n }\r\n\r\n makePanelList();\r\n syncListFromTodo();\r\n\r\n jframe.setTitle(myTodo.getName());\r\n panelList.setBackground(Color.ORANGE);\r\n panelList.setVisible(true);\r\n }", "public void valueChanged(ListSelectionEvent le) {\n\n int idx = jlist.getSelectedIndex();\n\n /** Display the selection */\n if (idx != -1)\n jl.setText(\"Current Selection = \" + names[idx]);\n else\n jl.setText(\"Please choose a name !\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n buttonGroup2 = new javax.swing.ButtonGroup();\n jButton1 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButton1.setText(\"Makine Listesi (Türe Göre)\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Bekleyen İş Emirleri\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"Yeni İş Emiri Girişi\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"İş Emiri ID\");\n\n jLabel2.setText(\"İşin Uzunluğu\");\n\n jLabel3.setText(\"İş Türü\");\n\n jList1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList1MouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(jList1);\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(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(71, 71, 71)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 184, Short.MAX_VALUE)\n .addComponent(jTextField3)\n .addComponent(jTextField1)))\n .addComponent(jScrollPane1)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, 319, Short.MAX_VALUE)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, 319, Short.MAX_VALUE))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextField2, 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(jLabel3)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton4)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\r\n\t\t\t\tDeviceList();\r\n\t\t\t\tlist.setText(ResultMessage);\r\n\t\t\t\tcount = 1;\r\n\r\n\t\t\t}", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n // TODO add your handling code here:\n int index = jList1.getSelectedIndex();\n if (index != -1){\n String conteudo = jList1.getSelectedValue().toString();\n String[] parts = conteudo.split(\" | \", 2);\n String novaCategoria = jComboBox1.getSelectedItem().toString();\n this.facade.mudarCategoriaNova(Integer.parseInt(parts[0]), novaCategoria);\n List<String> conteudos = this.facade.listaConteudo();\n DefaultListModel<String> model = new DefaultListModel<>();\n jList1.setModel(model);\n for (String s : conteudos){\n model.addElement(s);\n }\n }\n }", "@SuppressWarnings(\"unused\")\n\tprivate void updateList() {\n\t\t// list of names\n\t\tnameList = new LinkedList<String>();\n\t\t// get the leafs in the tree\n\t\tdecisionTree.leafTraversal(currentQuestion, nameList);\n\t\t// remove everything in the list panel\n\t\tlistPanel.removeAll();\n\t\t// initiate a JLabel that will be holding each name\n\t\tJLabel list;\n\t\twhile (!nameList.isEmpty()) {\n\t\t\t// create a new JLabel and put in a name each time\n\t\t\tlist = new JLabel(nameList.getFirst());\n\t\t\t// set alignment, font and color\n\t\t\tlist.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\tlist.setFont(new Font(\"Serif\", Font.BOLD, 18));\n\t\t\tlist.setForeground(new Color(86, 10, 0));\n\t\t\t// add this JLabel to the list panel\n\t\t\tlistPanel.add(list);\n\t\t\tnameList.deleteFirst();\n\t\t}\n\t\trevalidate();\n\t\trepaint();\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Intent intent = new Intent(this, RedyListproducts.class);\n intent.putExtra(\"LIST_NAME\",alSavedLists.get(position));\n startActivity(intent);\n\n }", "public String getName() {\n return list;\n }", "@FXML\n private void fiilSOPm(MouseEvent event) {\n obsSOP= FXCollections.observableArrayList(lstPlaylists.getSelectionModel().getSelectedItem().getAllSongsOnPlaylist());\n selectedPlaylistId = lstPlaylists.getSelectionModel().getSelectedItem().getId();\n lstSOP.setItems(obsSOP);\n \n }", "public void handleSidePanelListClick(Event event) {\n try {\n this.executeCommand(\"list e\");\n Index index = this.listPanel.getEventIndex(event);\n if (index == null) {\n this.executeCommand(\"list all e\");\n index = this.listPanel.getEventIndex(event);\n }\n assert index != null;\n this.executeCommand(\"view \" + index.getOneBased());\n } catch (CommandException | ParseException e) {\n logger.info(\"Invalid command: list e + view index\");\n resultDisplay.setFeedbackToUser(e.getMessage());\n }\n }", "private void select(ActionEvent e){\r\n // Mark this client as an existing client since they are in the list\r\n existingClient = true;\r\n // To bring data to Management Screen we will modify the text fields\r\n NAME_FIELD.setText(client.getName());\r\n ADDRESS_1_FIELD.setText(client.getAddress1());\r\n ADDRESS_2_FIELD.setText(client.getAddress2());\r\n CITY_FIELD.setText(client.getCity());\r\n ZIP_FIELD.setText(client.getZip());\r\n COUNTRY_FIELD.setText(client.getCountry());\r\n PHONE_FIELD.setText(client.getPhone());\r\n // client.setAddressID();\r\n client.setClientID(Client.getClientID(client.getName(), client.getAddressID()));\r\n // Pass client information to Client Management Screen\r\n currClient = client;\r\n back(e);\r\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.d(\"jsonlog\", \"on click of show list view\");\r\n\t\t\t\t\r\n\t\t\t\t detailsList = new ArrayList<HashMap<String,String>>();\r\n\t\t\t\turl = \"http://10.0.2.2:8080/allgreetings\";\r\n\t\t\t\t\r\n\t\t\t\tnew getjsonlist().execute();\r\n\t\t\t\t\r\n\t\t\t}", "@FXML\n public void Load_Multiple_Lists(ActionEvent actionEvent) {\n }", "public void showList(List<String> userList,Map<String, MessageFrame> frameList) {\n\t\t\n\t\tuList=userList;\n\t\tfList=frameList;\n\t\tif(list==null) { // if it's the first time that the list is created, all the JComponents are created\n\t\t\tlist= new JList(uList.toArray());\n\t\t\tchatButton=new JButton(\"Chat\");\n\t\t\tbottomPanel=new JPanel();\n\t\t\tchatButton.addActionListener(chatActionListener);\n\t\t\tlist.setSize(300, 500);\n\t\t\tbottomPanel.setLayout(new BorderLayout());\n\t\t\tbottomPanel.add(list,BorderLayout.CENTER);\n\t\t\tbottomPanel.add(chatButton,BorderLayout.EAST);\n\t\t\tcontentPane.add(bottomPanel, BorderLayout.CENTER);\n\t\t\tbottomPanel.revalidate();\n\t\t}else\n\t\t{\n\t\t\tlist.setListData(uList.toArray()); // updates the list with the current clients connected to the servers\n\t\t\tbottomPanel.revalidate();\n\t\t}\n\t}", "protected void doListEdit() {\r\n String nameInput = mEditTextForList.getText().toString();\r\n\r\n /**\r\n * Set input text to be the current list item name if it is not empty and is not the\r\n * previous name.\r\n */\r\n if (!nameInput.equals(\"\") && !nameInput.equals(mItemName)) {\r\n Firebase firebaseRef = new Firebase(Constants.FIREBASE_URL);\r\n\r\n /* Make a map for the item you are editing the name of */\r\n HashMap<String, Object> updatedItemToAddMap = new HashMap<String, Object>();\r\n\r\n /* Add the new name to the update map*/\r\n updatedItemToAddMap.put(\"/\" + Constants.FIREBASE_LOCATION_SHOPPING_LIST_ITEMS + \"/\"\r\n + mListId + \"/\" + mItemId + \"/\" + Constants.FIREBASE_PROPERTY_ITEM_NAME,\r\n nameInput);\r\n\r\n /* Make the timestamp for last changed */\r\n HashMap<String, Object> changedTimestampMap = new HashMap<>();\r\n changedTimestampMap.put(Constants.FIREBASE_PROPERTY_TIMESTAMP, ServerValue.TIMESTAMP);\r\n\r\n /* Add the updated timestamp */\r\n updatedItemToAddMap.put(\"/\" + Constants.FIREBASE_LOCATION_ACTIVE_LISTS +\r\n \"/\" + mListId + \"/\" + Constants.FIREBASE_PROPERTY_TIMESTAMP_LAST_CHANGED, changedTimestampMap);\r\n\r\n /* Do the update */\r\n firebaseRef.updateChildren(updatedItemToAddMap);\r\n\r\n }\r\n }", "private void initListPannel(String[] list){\n \n m_DownloadPanel.removeAll();\n m_List = new JList(list);\n \n m_listPanel = new JPanel();\n m_listPanel.setPreferredSize(PANELSIZE);\n m_listPanel.setBounds(0, 0, 200, 200);\n \n m_buttonPannel = new JPanel();\n m_buttonPannel.setLayout(new BorderLayout());\n m_GetFile = new JButton(\"Use Selected File\");\n m_GetFile.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent e){\n String fileID = m_data[m_List.getSelectedIndex()][0];\n String path = CLOUD.getFilePath(m_sid, fileID);\n File f = CLOUD.DownloadFile(path);\n \n System.err.println(\"Path = \"+f.getAbsolutePath());\n OpenDialog o = new OpenDialog(m_db,m_TP,m_guiContext);\n o.ReadFile(f);\n //\n \n \n }\n });\n m_buttonPannel.add( m_GetFile, BorderLayout.CENTER);\n \n m_listPanel.setBackground(Color.YELLOW);\n \n m_listPanel.setLayout(new BorderLayout()); \n m_listPanel.add(new JScrollPane(m_List), BorderLayout.CENTER);\n m_listPanel.add(m_buttonPannel, BorderLayout.SOUTH); \n m_listPanel.repaint();\n m_listPanel.validate();\n m_DownloadPanel.add(m_listPanel);\n m_DownloadPanel.validate(); \n }", "public void showDownloadList() {\n\t\tButton btn = (Button) ((Sync) initiator).findViewById(R.id.btn_sync_downlist);\n\t\t// On le desactive\n\t\tbtn.setEnabled(false);\n\t\t\n\t\t// On prend le bouton d'upload\n\t\tbtn = (Button) ((Sync) initiator).findViewById(R.id.btn_sync_uplist);\n\t\t// On l active\n\t\tbtn.setEnabled(true);\n\t\t\n\t\tsetDirectionDownload();\n\t\t((Sync) initiator).showListView();\n\t\t\t\t\n\t}", "@Override\n public void onBindViewHolder(@NonNull @NotNull AdapterList.ViewHolder holder, int position) {\n\n final String item = listNames.get(position);\n holder.listText.setText(item); // set the list name\n holder.theIcon.setImageResource(R.drawable.list_icon_100);\n fullViewHolder.add(holder); // add current list view to full list of view holders\n\n // upon long pressing a list view\n holder.itemView.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n int countOfSelected = selected.size(); // take the size of selected lists\n\n // if the size = 0, then start action mode\n // add current item into selected arraylist\n // highlight it\n if(countOfSelected == 0)\n {\n receiver.onLongClickAction();\n selected.add(item);\n viewHoldersList.add(holder);\n highlightView(holder);\n }\n return true;\n }\n });\n\n holder.itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n int countOfSelected = selected.size(); // take the size of selected lists\n\n // if some lists are already present then\n if(countOfSelected > 0)\n {\n // check whether currently selected list is present in the list\n // if so remove it from the list, else add it as new element\n if (selected.contains(item))\n {\n selected.remove(item);\n viewHoldersList.remove(holder);\n unhighlightView(holder);\n }\n else\n {\n selected.add(item);\n viewHoldersList.add(holder);\n highlightView(holder);\n }\n receiver.onClickAction();\n }\n else // else goto the activity to display the contents of the clicked list\n {\n intent = new Intent(holder.itemView.getContext(), ViewIndividualList.class);\n sharedPreferences.edit().putString(\"file_name\", holder.listText.getText().toString()+\".txt\").apply();\n sharedPreferences.edit().putString(\"selected\", \"off\").apply();\n holder.itemView.getContext().startActivity(intent);\n }\n }\n });\n\n }", "static void outputCurrentItem(ABCSelectionList list) {\n String cursor = (list.getCount() > 0) ? String.valueOf(list.getCursor() + 1) : \"0\"; //convert from 0 index to 1 for display\n String max = (list.getCount() > 0) ? String.valueOf(list.getCount()) : \"0\";\n\n String type = list.getTypeName();\n System.out.println(\"\\n\\n\" + type);\n System.out.println(\"Current Selection: \" + cursor + \" of \" + max);\n System.out.println(list.prettyCurrentItem());\n }", "private void loadLists() {\n setUpFooter();\n if (numberOfLists > 0) {\n this.updateComponent(footer);\n for (Object l : agenda.getConnector().getItems(agenda.getUsername(), \"list\")) {\n Items list = (Items) l;\n comboBox.addItem(list.getName());\n JPanel panel = new JPanel();\n panel.setName(list.getName());\n setup.put(list.getName(), false);\n window.add(list.getName(), panel);\n currentList = list;\n }\n setUpHeader();\n for (Component c : window.getComponents()) {\n if (!setup.get(c.getName())){\n setUpList((JPanel) c);\n setup.replace(c.getName(),true);\n break;\n }\n }\n comboBox.setSelectedIndex(numberOfLists-1);\n } else{\n setUpHeader();\n }\n }", "public void addToList() {\n addToCurrentListButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //getting the variables from the user input\n String address = enterAddress.getText();\n String issue = enterAddress.getText();\n String model = enterModel.getText();\n //date method\n Date date = new Date();\n //creating a quick CentralAC list\n CentralAC acEntry = new CentralAC(address, issue, date, model);\n //adding items to the Arraylist\n HVACGUI.newCentralAC.add(acEntry);\n //adding items to the default list model\n HVACGUI.openService.addElement(acEntry);\n //disposing the form\n CentralAC_GUI.this.dispose();\n\n\n }\n });\n }", "private void InitList()\n {\n Globals.list = new ArrayList<>();\n Globals.search_result = new ArrayList<>();\n Globals.selected_items = new ArrayList<>();\n\n Globals.list.add(\"Afghanistan\");\n Globals.list.add(\"Albania\");\n Globals.list.add(\"Algeria\");\n Globals.list.add(\"Andorra\");\n Globals.list.add(\"Angola\");\n Globals.list.add(\"Anguilla\");\n Globals.list.add(\"Antigua & Barbuda\");\n Globals.list.add(\"Argentina\");\n Globals.list.add(\"Armenia\");\n Globals.list.add(\"Australia\");\n Globals.list.add(\"Austria\");\n Globals.list.add(\"Azerbaijan\");\n Globals.list.add(\"Bahamas\");\n Globals.list.add(\"Bahrain\");\n Globals.list.add(\"Bangladesh\");\n Globals.list.add(\"Barbados\");\n Globals.list.add(\"Belarus\");\n Globals.list.add(\"Belgium\");\n Globals.list.add(\"Belize\");\n Globals.list.add(\"Benin\");\n Globals.list.add(\"Bermuda\");\n Globals.list.add(\"Bhutan\");\n Globals.list.add(\"Bolivia\");\n Globals.list.add(\"Bosnia & Herzegovina\");\n Globals.list.add(\"Botswana\");\n Globals.list.add(\"Brazil\");\n Globals.list.add(\"Brunei Darussalam\");\n Globals.list.add(\"Bulgaria\");\n Globals.list.add(\"Burkina Faso\");\n Globals.list.add(\"Myanmar/Burma\");\n Globals.list.add(\"Burundi\");\n Globals.list.add(\"Cambodia\");\n Globals.list.add(\"Cameroon\");\n Globals.list.add(\"Canada\");\n Globals.list.add(\"Cape Verde\");\n Globals.list.add(\"Cayman Islands\");\n Globals.list.add(\"Central African Republic\");\n Globals.list.add(\"Chad\");\n Globals.list.add(\"Chile\");\n Globals.list.add(\"China\");\n Globals.list.add(\"Colombia\");\n Globals.list.add(\"Comoros\");\n Globals.list.add(\"Congo\");\n Globals.list.add(\"Costa Rica\");\n Globals.list.add(\"Croatia\");\n Globals.list.add(\"Cuba\");\n Globals.list.add(\"Cyprus\");\n Globals.list.add(\"Czech Republic\");\n Globals.list.add(\"Democratic Republic of the Congo\");\n Globals.list.add(\"Denmark\");\n Globals.list.add(\"Djibouti\");\n Globals.list.add(\"Dominican Republic\");\n Globals.list.add(\"Dominica\");\n Globals.list.add(\"Ecuador\");\n Globals.list.add(\"Egypt\");\n Globals.list.add(\"El Salvador\");\n Globals.list.add(\"Equatorial Guinea\");\n Globals.list.add(\"Eritrea\");\n Globals.list.add(\"Estonia\");\n Globals.list.add(\"Ethiopia\");\n Globals.list.add(\"Fiji\");\n Globals.list.add(\"Finland\");\n Globals.list.add(\"France\");\n Globals.list.add(\"French Guiana\");\n Globals.list.add(\"Gabon\");\n Globals.list.add(\"Gambia\");\n Globals.list.add(\"Georgia\");\n Globals.list.add(\"Germany\");\n Globals.list.add(\"Ghana\");\n Globals.list.add(\"Great Britain\");\n Globals.list.add(\"Greece\");\n Globals.list.add(\"Grenada\");\n Globals.list.add(\"Guadeloupe\");\n Globals.list.add(\"Guatemala\");\n Globals.list.add(\"Guinea\");\n Globals.list.add(\"Guinea-Bissau\");\n Globals.list.add(\"Guyana\");\n Globals.list.add(\"Haiti\");\n Globals.list.add(\"Honduras\");\n Globals.list.add(\"Hungary\");\n }", "private void gotoCheckInListView() {\n }", "private void displayList(){\n\t\tmArrayAdapter.clear();\n\t\tBT.setupBT();\n\n\t\tListView newDevicesListView = (ListView)\n\t\t\t\tdialog.findViewById(R.id.device_list_display);\n\n\t\tnewDevicesListView.setAdapter(mArrayAdapter);\n\t\tnewDevicesListView.setClickable(true);\n\t}", "@Override\n public void onClick(View v) \n {\n TableRow buttonTableRow = (TableRow) v.getParent();\n Button searchButton = \n (Button) buttonTableRow.findViewById(R.id.newListButton);\n \n String list = searchButton.getText().toString();\n \n // set EditTexts to match the chosen url and site_name\n listEditText.setText(list);\n urlEditText.setText(savedSiteList.getString(list, \"\"));\n }", "public void start(Stage myStage) { \n \n // Give the stage a title. \n myStage.setTitle(\"ListView Demo\"); \n \n // Use a FlowPane for the root node. In this case, \n // vertical and horizontal gaps of 10. \n FlowPane rootNode = new FlowPane(10, 10); \n \n // Center the controls in the scene. \n rootNode.setAlignment(Pos.CENTER); \n \n // Create a scene. \n Scene myScene = new Scene(rootNode, 200, 120); \n \n // Set the scene on the stage. \n myStage.setScene(myScene); \n \n // Create a label. \n response = new Label(\"Select Computer Type\"); \n \n // Create an ObservableList of entries for the list view. \n ObservableList<String> computerTypes = \n FXCollections.observableArrayList(\"Smartphone\", \"Tablet\", \"Notebook\", \n \"Desktop\" ); \n \n // Create the list view. \n ListView<String> lvComputers = new ListView<String>(computerTypes); \n \n // Set the preferred height and width. \n lvComputers.setPrefSize(100, 70); \n \n // Get the list view selection model. \n MultipleSelectionModel<String> lvSelModel = \n lvComputers.getSelectionModel(); \n \n // Use a change listener to respond to a change of selection within \n // a list view. \n lvSelModel.selectedItemProperty().addListener( \n new ChangeListener<String>() { \n public void changed(ObservableValue<? extends String> changed, \n String oldVal, String newVal) { \n \n // Display the selection. \n response.setText(\"Computer selected is \" + newVal); \n } \n }); \n \n // Add the label and list view to the scene graph. \n rootNode.getChildren().addAll(lvComputers, response); \n \n // Show the stage and its scene. \n myStage.show(); \n }", "public static void printToScreen(List<String> list1){\n\t\tJOptionPane.showMessageDialog(null, \"ArrayList has \" + list1.size() + \" Names\");\n\t\tJOptionPane.showMessageDialog(null, \"Here is the List \" + list1);\n\t}", "public void printList() {\n userListCtrl.showAll();\n }", "private void createNewListSection() {\n\t\tImageIcon image10 = new ImageIcon(sURLFCL1);\n\t\tImageIcon image11 = new ImageIcon(sURLFCL2);\n\t\tImageIcon image12 = new ImageIcon(sURLFCL3);\n\t\tjbCreateLists = new JButton(\"New PlayList\");\n\t\tjbCreateLists.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbCreateLists.setForeground(new Color(150,100,100));\n\t\tjbCreateLists.setIcon(image10);\n\t\tjbCreateLists.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setRolloverIcon(image11);\n\t\tjbCreateLists.setRolloverSelectedIcon(image12);\t\n\t\tjbCreateLists.setContentAreaFilled(false);\n\t\tjbCreateLists.setFocusable(false);\n\t\tjbCreateLists.setBorderPainted(false);\n\t}", "public void buildAndShowListForm() {\n GeyserAdvancement categoryAdvancement = storedAdvancements.get(currentAdvancementCategoryId);\n String language = session.locale();\n\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .title(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getTitle(), language))\n .content(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getDescription(), language));\n\n List<GeyserAdvancement> visibleAdvancements = new ArrayList<>();\n if (currentAdvancementCategoryId != null) {\n for (GeyserAdvancement advancement : storedAdvancements.values()) {\n boolean earned = isEarned(advancement);\n if (earned || !advancement.getDisplayData().isHidden()) {\n if (advancement.getParentId() != null && currentAdvancementCategoryId.equals(advancement.getRootId(this))) {\n String color = earned ? advancement.getDisplayColor() : \"\";\n builder.button(color + MessageTranslator.convertMessage(advancement.getDisplayData().getTitle()) + '\\n');\n\n visibleAdvancements.add(advancement);\n }\n }\n }\n }\n\n builder.button(GeyserLocale.getPlayerLocaleString(\"gui.back\", language));\n\n builder.closedResultHandler(() -> {\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n\n }).validResultHandler((response) -> {\n if (response.getClickedButtonId() < visibleAdvancements.size()) {\n GeyserAdvancement advancement = visibleAdvancements.get(response.clickedButtonId());\n buildAndShowInfoForm(advancement);\n } else {\n buildAndShowMenuForm();\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n }\n });\n\n session.sendForm(builder);\n }", "private void onClickDownloadList() {\n if (_SELECTEDCLIENTS.isEmpty()) {\n Toast.makeText(this, \"Du har ikke valgt kunder\", Toast.LENGTH_SHORT).show();\n } else {\n if (_SELECTEDCLIENTS.size() == 1) {\n Intent showClientIntent = new Intent();\n showClientIntent.setClass(this, ClientDataActivity.class);\n _clientController.createCompanyList(_SELECTEDCLIENTS);\n _canvasController.createCanvasList();\n showClientIntent.putExtra(SharedConstants.CLIENT, _SELECTEDCLIENTS.get(0));\n startActivity(showClientIntent);\n } else {\n Intent clientIntent = new Intent();\n clientIntent.setClass(this, ClientActivity.class);\n clientIntent.putExtra(SharedConstants.SELECTEDCLIENTLIST, MainActivity._SELECTEDCLIENTS);\n _clientController.createCompanyList(_SELECTEDCLIENTS);\n _canvasController.createCanvasList();\n startActivity(clientIntent);\n }\n }\n }", "private void makeList(String url, String site_name)\n {\n // originalSiteList will be null if we're modifying an existing search\n String originalSiteList = savedSiteList.getString(site_name, null);\n\n // get a SharedPreferences.Editor to store new url/site name pair\n SharedPreferences.Editor preferencesEditor = savedSiteList.edit();\n preferencesEditor.putString(site_name, url); // store current search\n preferencesEditor.apply(); // store the updated preferences\n \n // if this is a new site name, add its GUI\n if (originalSiteList == null) \n reloadButtons(site_name); // adds a new button for this list\n }", "@Override\n\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\tint id = Integer.parseInt((String) pidDropDown.getSelectedItem());\n\t\t\t\t\t\n\t\t\t\t\tfor (Patient p : plist) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (id == p.id) {\n\n\t\t\t\t\t\t\tpNametxt.setText(p.name);\n\t\t\t\t\t\t\tpAgetxt.setText(Integer.toString(p.age));\n\t\t\t\t\t\t\tpWeighttxt.setText(Integer.toString(p.weight));\n\t\t\t\t\t\t\tpDoctortxt.setText(p.doctor);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// and populate the GUI with proper details\n\n\t\t\t\t}", "public void listAction() {\n TextWin newWindow = new TextWin(getSelectedCell());\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }", "public OverviewSmallListChoosrDialogOptions showListChooser(String referenceID, boolean multiSelect, boolean showFilter, String title, IDLabelList items, Collection<String> selectedIDs){\n/*Generated! Do not modify!*/ return showListChooser(referenceID, multiSelect, showFilter, title, DEFAULT_OK_TEXT, DEFAULT_CANCEL_TEXT, items, selectedIDs);\n/*Generated! Do not modify!*/ }", "private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }", "public void valueChanged(ListSelectionEvent event) {\n\tString selectionStr= \"\";\n\n\n\tif (event.getSource() instanceof JList) {\n\t JList selected=(JList)event.getSource();\n\t selectionStr=(String)selected.getSelectedValue();\n\n\t if (selected==declJList) {\n\t\t//get the selected name\n\t\t//declJListSelected=selectionStr; //do nothing for now\n\t\treturn;\n\t }\n\t return;\n\t}\n }", "public void getShowRecord(List<MentalShowStruct> list) {\n/* 55 */ this.component.getRevertShowList(list);\n/* */ }", "@Override\n public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Toast.makeText(getApplicationContext(), \"Selected :\" + \" \" + listData.get(position), Toast.LENGTH_LONG).show();\n }", "void onListInteraction(int index, boolean isLongClicked);", "public OverviewSmallListChoosrDialogOptions showListChooser(String referenceID, boolean multiSelect, boolean showFilter, String title, String okText, String cancelText, IDLabelImageAssetList items, Collection<String> selectedIDs){\n/*Generated! Do not modify!*/ \tListChooserParameters parameters = createListChooserParameters(referenceID, multiSelect, showFilter, title, okText, cancelText);\n/*Generated! Do not modify!*/ \tSet<String> selectedIDsSet = new HashSet<String>();\n/*Generated! Do not modify!*/ \tif (selectedIDs != null){\n/*Generated! Do not modify!*/ \t\tselectedIDsSet = new HashSet<String>(selectedIDs);\n/*Generated! Do not modify!*/ \t}\n/*Generated! Do not modify!*/ \tList<ListChooserItem> chooserItems = new ArrayList<ListChooserItem>();\n/*Generated! Do not modify!*/ \tfor (IDLabelImageAsset i: items.getItems()){\n/*Generated! Do not modify!*/ \t\tchooserItems.add(createItem(i.getID(), i.getLabel(), i.getImageAssetID(), selectedIDsSet.contains(i.getID())));\n/*Generated! Do not modify!*/ \t}\n/*Generated! Do not modify!*/ \tparameters.setShowIcons(true);\n/*Generated! Do not modify!*/ \tparameters.setItems(chooserItems);\n/*Generated! Do not modify!*/ \treplyDTO.setListChooserParameters(parameters);\n/*Generated! Do not modify!*/ \t\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(ReplyActionType.SHOW_LIST_CHOOSER_IMGS, \"showListChooser(\" + escapeString(referenceID) + \", \" + multiSelect + \", \" + showFilter + \", \" + escapeString(title) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(okText) + \", \" + escapeString(cancelText) + \", \", gson.toJson(items), selectedIDs);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ \n/*Generated! Do not modify!*/ return new OverviewSmallListChoosrDialogOptions(this, parameters);\n/*Generated! Do not modify!*/ }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">\n private void initComponents() {\n\n jLabel1 = new JLabel();\n //jLabel2 = new JLabel();\n jSeparator1 = new JSeparator();\n jScrollPane1 = new JScrollPane();\n jList1 = new JList();\n addSongButton = new JButton();\n removeSongButton = new JButton();\n swapSongsButton = new JButton();\n\n jLabel1.setText(\"List title\");\n\n /*jLabel2.setText(\"Error: \");\n jLabel2.setForeground(Color.RED);\n jLabel2.setVisible(false);*/\n\n listModel = new DefaultListModel();\n jList1.setModel(listModel);\n jList1.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\n jList1.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount() == 2) {\n // Double-click detected\n int songIndex = jList1.getSelectedIndex();\n int listIndex = listSet.getSelectedIndex();\n String[] id = listPController.getSongId(listIndex, songIndex);\n songTabView.showSong(id[0], id[1]);\n tabbedPane.setSelectedIndex(1);\n listSet.clearSelection();\n }\n }\n });\n jScrollPane1.setViewportView(jList1);\n\n addSongButton.setText(\"Add Song\");\n addSongButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n addSongButtonActionPerformed(e);\n }\n });\n\n removeSongButton.setText(\"Remove Song\");\n removeSongButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n removeSongButtonActionPerformed(e);\n }\n });\n\n swapSongsButton.setText(\"Swap Songs\");\n swapSongsButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n swapSongsButtonActionPerformed(e);\n }\n });\n\n GroupLayout layout = new GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator1)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addGroup(layout.createSequentialGroup()\n .addComponent(addSongButton)\n .addGap(18, 18, 18)\n .addComponent(removeSongButton)\n .addGap(18, 18, 18)\n .addComponent(swapSongsButton))\n /*.addComponent(jLabel2)*/)\n .addGap(0, 43, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, GroupLayout.PREFERRED_SIZE, 10, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(addSongButton)\n .addComponent(removeSongButton)\n .addComponent(swapSongsButton))\n /*.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)*/\n .addContainerGap())\n );\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tDefaultListModel<String> listModel = new DefaultListModel<>();\n\t\t\t\tArrayList<Word> jsonArray = GSONread.returnWords(true);\n\t\t\t\tfor (int i = 0; i < jsonArray.size(); i++) {\n\t\t\t\t\tlistModel.addElement(jsonArray.get(i).getName().toString());\n\t\t\t\t}\n\t\t\t\twordList.setModel(listModel);\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n btnPlayURL = new javax.swing.JButton();\n btnCancelPlayback = new javax.swing.JButton();\n txfURL = new javax.swing.JTextField();\n txfShortID = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n lstFavoriten = new javax.swing.JList();\n btnShortIDSave = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n btnSelSender = new javax.swing.JButton();\n btnF5 = new javax.swing.JButton();\n lblStation = new javax.swing.JLabel();\n\n btnPlayURL.setText(\"URL abspielen\");\n btnPlayURL.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnPlayURLActionPerformed(evt);\n }\n });\n\n btnCancelPlayback.setText(\"Stream Stop\");\n btnCancelPlayback.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnCancelPlaybackActionPerformed(evt);\n }\n });\n\n lstFavoriten.setModel(new DefaultListModel<String>());\n lstFavoriten.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jScrollPane1.setViewportView(lstFavoriten);\n\n btnShortIDSave.setText(\"Kurzname speichern\");\n btnShortIDSave.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnShortIDSaveActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"URL\");\n\n jLabel2.setText(\"KurzID\");\n\n btnSelSender.setText(\"Sender wählen\");\n btnSelSender.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnSelSenderActionPerformed(evt);\n }\n });\n\n btnF5.setText(\"Aktualisieren\");\n btnF5.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnF5ActionPerformed(evt);\n }\n });\n\n lblStation.setText(\"Aktuelle Station: \");\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()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblStation, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txfURL)\n .addComponent(txfShortID)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 277, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnPlayURL, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnSelSender, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnF5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnShortIDSave)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(btnCancelPlayback, 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 .addContainerGap()\n .addComponent(lblStation)\n .addGap(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 337, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnF5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnSelSender)))\n .addGap(18, 18, 18)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txfURL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnPlayURL))\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txfShortID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnShortIDSave))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnCancelPlayback, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tDefaultListModel<String> listModel = new DefaultListModel<>();\n\t\t\t\tArrayList<Word> jsonArray = GSONread.returnWords(false);\n\t\t\t\tfor (int i = 0; i < jsonArray.size(); i++) {\n\t\t\t\t\tlistModel.addElement(jsonArray.get(i).getName().toString());\n\t\t\t\t}\n\t\t\t\twordList.setModel(listModel);\n\t\t\t}", "public void buttonSaveList(ActionEvent actionEvent) {\n }", "private void updateUserList() {\n\t\tUser u = jdbc.get_user(lastClickedUser);\n\t\tString s = String.format(\"%s, %s [%s]\", u.get_lastname(), u.get_firstname(), u.get_username());\n\t\tuserList.setElementAt(s, lastClickedIndex);\n\t}", "@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 jLabel2 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n lstSpecies = new javax.swing.JList<>();\n btnAdd = new javax.swing.JButton();\n btnUpdate = new javax.swing.JButton();\n btnDelete = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n txtCondition = new javax.swing.JTextField();\n btnSearch = new javax.swing.JButton();\n lblMessage = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(137, 196, 244));\n\n jLabel2.setFont(new java.awt.Font(\"Nimbus Roman No9 L\", 3, 18)); // NOI18N\n jLabel2.setText(\"Name\");\n\n lstSpecies.setBackground(new java.awt.Color(228, 241, 254));\n lstSpecies.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n lstSpecies.setFont(new java.awt.Font(\"Nimbus Mono L\", 0, 14)); // NOI18N\n lstSpecies.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n lstSpeciesValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(lstSpecies);\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 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 321, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)\n );\n\n btnAdd.setBackground(new java.awt.Color(228, 241, 254));\n btnAdd.setFont(new java.awt.Font(\"Nimbus Mono L\", 3, 14)); // NOI18N\n btnAdd.setIcon(new javax.swing.ImageIcon(\"/home/mbralic/IDEA Projekt/DogsShelter/src/main/resources/iconadd.png\")); // NOI18N\n btnAdd.setText(\" Add\");\n btnAdd.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n btnAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAddActionPerformed(evt);\n }\n });\n\n btnUpdate.setBackground(new java.awt.Color(228, 241, 254));\n btnUpdate.setFont(new java.awt.Font(\"Nimbus Mono L\", 3, 14)); // NOI18N\n btnUpdate.setIcon(new javax.swing.ImageIcon(\"/home/mbralic/IDEA Projekt/DogsShelter/src/main/resources/iconeupdate.png\")); // NOI18N\n btnUpdate.setText(\"Update\");\n btnUpdate.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n btnUpdate.setMaximumSize(new java.awt.Dimension(55, 27));\n btnUpdate.setMinimumSize(new java.awt.Dimension(55, 27));\n btnUpdate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnUpdateActionPerformed(evt);\n }\n });\n\n btnDelete.setBackground(new java.awt.Color(228, 241, 254));\n btnDelete.setFont(new java.awt.Font(\"Nimbus Mono L\", 3, 14)); // NOI18N\n btnDelete.setIcon(new javax.swing.ImageIcon(\"/home/mbralic/IDEA Projekt/DogsShelter/src/main/resources/icondelete.png\")); // NOI18N\n btnDelete.setText(\"Delete\");\n btnDelete.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n btnDelete.setMaximumSize(new java.awt.Dimension(55, 27));\n btnDelete.setMinimumSize(new java.awt.Dimension(55, 27));\n btnDelete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDeleteActionPerformed(evt);\n }\n });\n\n jPanel3.setBackground(new java.awt.Color(52, 152, 219));\n jPanel3.setPreferredSize(new java.awt.Dimension(1110, 78));\n\n jLabel3.setFont(new java.awt.Font(\"Purisa\", 3, 24)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setIcon(new javax.swing.ImageIcon(\"/home/mbralic/IDEA Projekt/DogsShelter/src/main/resources/icon.png\")); // NOI18N\n jLabel3.setText(\"Species management \");\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(30, 30, 30)\n .addComponent(jLabel3)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n txtName.setBackground(new java.awt.Color(228, 241, 254));\n txtName.setFont(new java.awt.Font(\"Nimbus Mono L\", 0, 14)); // NOI18N\n txtName.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jButton2.setFont(new java.awt.Font(\"Nimbus Mono L\", 3, 14)); // NOI18N\n jButton2.setIcon(new javax.swing.ImageIcon(\"/home/mbralic/IDEA Projekt/DogsShelter/src/main/resources/iconclean.png\")); // NOI18N\n jButton2.setText(\"Clean\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n txtCondition.setBackground(new java.awt.Color(228, 241, 254));\n txtCondition.setFont(new java.awt.Font(\"Nimbus Mono L\", 0, 14)); // NOI18N\n txtCondition.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n btnSearch.setBackground(new java.awt.Color(228, 241, 254));\n btnSearch.setFont(new java.awt.Font(\"Nimbus Mono L\", 3, 14)); // NOI18N\n btnSearch.setIcon(new javax.swing.ImageIcon(\"/home/mbralic/IDEA Projekt/DogsShelter/src/main/resources/iconsearch.png\")); // NOI18N\n btnSearch.setText(\"Search\");\n btnSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSearchActionPerformed(evt);\n }\n });\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 .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 1652, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(68, 68, 68)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 258, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(121, 121, 121)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(txtCondition, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnSearch))\n .addComponent(jButton2)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(458, 458, 458)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(119, 119, 119))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblMessage, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(37, 37, 37)))\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(658, 658, 658))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\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, 30, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtCondition, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addComponent(btnAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(36, 36, 36)\n .addComponent(btnDelete, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(64, 64, 64)\n .addComponent(lblMessage, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(38, 38, 38)))\n .addGap(24, 24, 24)\n .addComponent(jButton2)\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 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 1088, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id)\n {\n String selection = l.getItemAtPosition(position).toString();\n Toast.makeText(this, selection, Toast.LENGTH_LONG).show();\n }" ]
[ "0.7237417", "0.6661629", "0.6627893", "0.6538771", "0.6447592", "0.6368683", "0.6364417", "0.63498116", "0.634613", "0.6325677", "0.6295471", "0.6285184", "0.6285184", "0.6285184", "0.6285184", "0.62079436", "0.6198001", "0.61827284", "0.61574936", "0.61571634", "0.61554897", "0.6153057", "0.61339635", "0.6126295", "0.6126059", "0.6106266", "0.60883695", "0.60713565", "0.60675657", "0.60542464", "0.6044347", "0.60275745", "0.6006008", "0.6004194", "0.5970357", "0.5963545", "0.59584266", "0.59530133", "0.5939978", "0.5936769", "0.592329", "0.59179443", "0.5907762", "0.5905069", "0.5899617", "0.58989286", "0.58793736", "0.5879348", "0.58785385", "0.58775425", "0.58420426", "0.58413464", "0.58348423", "0.5824244", "0.58130276", "0.58062214", "0.58012694", "0.57964104", "0.5792266", "0.57864505", "0.578638", "0.57819664", "0.57781774", "0.5760102", "0.5758824", "0.5755526", "0.5754583", "0.57518584", "0.57463205", "0.57333016", "0.57329214", "0.5729206", "0.57179296", "0.5710177", "0.57070386", "0.570197", "0.56990916", "0.56904626", "0.56821513", "0.5660024", "0.56574166", "0.56566334", "0.56447273", "0.5644508", "0.5642634", "0.56407654", "0.56330174", "0.5619606", "0.5617785", "0.5616289", "0.5608361", "0.56047064", "0.5600649", "0.5600497", "0.5597714", "0.5596499", "0.5594924", "0.55855167", "0.5581985", "0.55813533", "0.55794" ]
0.0
-1
Here we are opening a new window that will be used to modify the description or the due date of this item. For this new window and class, we have to pass as parameter the List, and Item_List, which we have to specify the item of this item_list. We have to check which item on the List_Items was selected, and click the button.
@FXML public void Modify_Item(ActionEvent actionEvent) { try { FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("ModifyItemlist.fxml")); Parent root1 = (Parent) fxmlLoader.load(); Stage stage = new Stage(); stage.initModality(Modality.APPLICATION_MODAL); stage.initStyle(StageStyle.UNDECORATED); stage.setTitle("New Item"); stage.setScene(new Scene(root1)); stage.show(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOpenEditDialog(Item item){\n /** Store as public reference */\n this.item = item;\n dialogNewItem.show();\n }", "public void showListChooserDialog(final OnListItemChoosen itemListener, String title, final String ... items) {\n final AWTFrame popup = new AWTFrame();\n final ActionListener listener = (ActionEvent e) -> {\n int index = Utils.linearSearch(items, e.getActionCommand());\n if (index >= 0)\n itemListener.itemChoose(index);\n else\n itemListener.cancelled();\n popup.closePopup();\n };\n AWTPanel frame = new AWTPanel(new BorderLayout());\n AWTPanel list = new AWTPanel(0, 1);\n for (String item : items) {\n list.add(new AWTButton(item, listener));\n }\n if (title != null) {\n frame.add(new AWTLabel(title, 1, 20, true), BorderLayout.NORTH);\n }\n frame.add(list, BorderLayout.CENTER);\n frame.add(new AWTButton(\"CANCEL\", listener), BorderLayout.SOUTH);\n popup.setContentPane(frame);\n popup.showAsPopup(this);\n }", "public void openList() {\n\t\tString title = resourceManager.getString(\"process.view.list.title\");\n\t\tint indexOfTab = tabbedPane.indexOfTab(title);\n\t\tif (indexOfTab >= 0) {\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t} else {\n\t\t\tlView = new ListView(this, resourceManager);\n\t\t\ttabbedPane.addTab(title, lView);\n\n\t\t\ttabbedPane.setTabComponentAt(tabbedPane.indexOfTab(title),\n\t\t\t\t\tnew ButtonTabComponent(tabbedPane, this, lView,\n\t\t\t\t\t\t\tresourceManager));\n\t\t\tindexOfTab = tabbedPane.indexOfTab(title);\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t\tloadListView();\n\t\t}\n\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tListSelectionModel lsm = list.getSelectionModel();\r\n\t\t\tint selected = lsm.getMinSelectionIndex();\r\n\r\n\t\t\tItemView itemView = (ItemView) list.getModel().getElementAt(selected);\r\n\r\n\t\t\t// change item\r\n\t\t\tJOptionPane options = new JOptionPane();\r\n\t\t\tObject[] addFields = { \"Name: \", nameTextField, \"Price: \", priceTextField, \"URL: \", urlTextField, };\r\n\t\t\tint option = JOptionPane.showConfirmDialog(null, addFields, \"Edit item\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\t\tif (option == JOptionPane.OK_OPTION) {\r\n\t\t\t\tString name = nameTextField.getText();\r\n\t\t\t\tString price = priceTextField.getText();\r\n\t\t\t\tString url = urlTextField.getText();\r\n\r\n\t\t\t\tdouble doublePrice = Double.parseDouble(price);\r\n\r\n\t\t\t\titemView.getItem().setName(name);\r\n\t\t\t\titemView.getItem().setCurrentPrice(doublePrice);\r\n\t\t\t\titemView.getItem().setUrl(url);\r\n\t\t\t\t// clear text fields\r\n\t\t\t\tnameTextField.setText(\"\");\r\n\t\t\t\tpriceTextField.setText(\"\");\r\n\t\t\t\turlTextField.setText(\"\");\r\n\t\t\t}\r\n\t\t}", "public void listAction() {\n TextWin newWindow = new TextWin(getSelectedCell());\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }", "private void startListActivity() {\n\t\tCursor c = mDbHelper.fetchAllNotes(TableName);\n\t\tString[] from = new String[]{NotesDbAdapter.KEY_TITLE};\n\t\tint[] to = new int[] {android.R.id.text1 };\n\t\tnotes = new SimpleCursorAdapter(this,android.R.layout.simple_list_item_1,c,from, to);\n\t\t\n\t\t////\n\t\tlv = (ListView) findViewById(R.id.titleList2);\n\t\tlv.setAdapter(adapter);\n\t\t\n\t\tlv.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\t\t\t\tCursor c = mDbHelper.fetchNote(TableName,arg3);\n\t\t\t\t\t\t\t\tstartActivity(c.getString(1),c.getString(2),arg3);\n\t\t\t}\n\t\t});\n\t\tlv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tDialogButton a = new DialogButton(ctx,TableName,arg3);\n\t\t\t\ta.createEdit();\n\t\t\t\ta.show();\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\t}", "public void createNewItem(ActionEvent actionEvent) {\n // we will create a new item instance here (ideally we would use another window for this)\n // and then we will simply addItem() to the currently selected list\n }", "public void createNewList(ActionEvent actionEvent) {\n // ideally again, this would have its own window\n // give it a title, and optionally populate it with some items\n }", "private void viewPageClicked(ActionEvent event) {\n\n Item tempItem = new Item();\n String itemURL = tempItem.itemURL;\n Desktop dk = Desktop.getDesktop();\n try{\n dk.browse(new java.net.URI(itemURL));\n }catch(IOException | URISyntaxException e){\n System.out.println(\"The URL on file is invalid.\");\n }\n\n showMessage(\"Visiting Item Web Page\");\n\n }", "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "private void makeListGUI(String list, int index)\n {\n // get a reference to the LayoutInflater service\n LayoutInflater inflater = (LayoutInflater) getSystemService(\n Context.LAYOUT_INFLATER_SERVICE);\n\n // inflate new_list_view.xml to create new list and edit Buttons\n View newListView = inflater.inflate(R.layout.new_list_view, null);\n \n // get newListButton, set its text and register its listener\n Button newListButton = \n (Button) newListView.findViewById(R.id.newListButton);\n newListButton.setText(list); \n newListButton.setOnClickListener(listButtonListener); \n\n // get newEditButton and register its listener\n Button newEditButton = \n (Button) newListView.findViewById(R.id.newEditButton); \n newEditButton.setOnClickListener(editButtonListener);\n\n // add new list and edit buttons to listTableLayout\n listTableLayout.addView(newListView, index);\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tItemDetails itemDetails = (ItemDetails) list.getAdapter()\n\t\t\t\t\t\t.getItem(arg2);\n\n\t\t\t\tnew AlertDialog.Builder(FindAProductActivity.this)\n\t\t\t\t\t\t.setTitle(\"Information:\")\n\t\t\t\t\t\t.setMessage(\"\" + itemDetails.getName())\n\t\t\t\t\t\t.setIcon(android.R.drawable.ic_dialog_info)\n\t\t\t\t\t\t.setNeutralButton(\"OK\", null).show();\n\n\t\t\t\t// Bundle bundle = new Bundle();\n\t\t\t\t// bundle.putSerializable(\"ItemDetails\", itemDetails);\n\t\t\t\t// i.putExtras(bundle);\n\t\t\t\t// startActivity(i);\n\t\t\t}", "private void addItemScreen() {\n \tIntent intent = new Intent(this, ItemEditor.class);\n \tstartActivity(intent);\n }", "private static void openToDoListWindow() {\n\t\n // Create a window for app\n frame = new JFrame(AppConst.UI_CONST.APP_NAME);\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n panel = new JPanel();\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n panel.setOpaque(true);\n \n // Create text area to display message to users\n ButtonListener buttonListener = new ButtonListener();\n output = new JTextArea(windowHeight, windowWidth);\n output.setBackground(Color.white);\n output.setForeground(Color.black);\n output.setLineWrap(true);\n output.setWrapStyleWord(true);\n output.setEditable(false);\n \n table = mTableHelper.getTable();\n\t\t// Create scroll bar if table area is full \n JScrollPane scroller = new JScrollPane(table);\n scroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n scroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n table.setFillsViewportHeight(true);\n\n\t\t// Create scroll bar if text area is full\n JScrollPane scroller2 = new JScrollPane(output);\n scroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n scroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n \n // Create input panel to get user's command\n JPanel inputpanel = new JPanel();\n inputpanel.setLayout(new FlowLayout());\n input = new JTextField(windowWidth);\n input.setBackground(Color.white);\n input.setForeground(Color.red);\n input.setCaretColor(Color.blue);\n input.setActionCommand(AppConst.UI_CONST.ENTER); \n input.addActionListener(buttonListener);\n input.addKeyListener(new KeyAdapter() {\n public void keyPressed(KeyEvent evt) {\n panelKeyPressAction(evt);\n }\n });\n \n // Added the table box, display message box and the input to the panel\n DefaultCaret caret = (DefaultCaret) output.getCaret();\n caret.setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);\n panel.add(scroller);\n panel.add(scroller2);\n inputpanel.add(input);\n panel.add(inputpanel);\n \n frame.getContentPane().add(BorderLayout.CENTER, panel);\n frame.pack();\n frame.setLocationByPlatform(true);\n frame.setVisible(true);\n frame.setResizable(false);\n \n input.requestFocus();\n userCommandCount = 0;\n displayMessage(AppConst.UI_CONST.COMMAND_MESSAGE);\n }", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "public AlertDialog openAdder() {\n // build the AlertDialog\n AlertDialog.Builder addBuilder = new AlertDialog.Builder(this);\n addBuilder.setTitle(\"Add item\");\n addBuilder.setMessage(\"Name of new item:\");\n\n // have editable text field to specify new item\n final EditText editText = new EditText(this);\n addBuilder.setView(editText);\n\n // add item when positive button is clicked\n addBuilder.setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n items.add(new Item(editText.getText().toString(), false));\n itemsAdapter.notifyDataSetChanged();\n }\n });\n\n // do nothing when negative button is clicked\n addBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n return;\n }\n });\n\n return addBuilder.create();\n }", "@Override\r\n\t\t\tpublic void setOnItemClick(AdapterView<?> arg0, View view,\r\n\t\t\t\t\tint position, long arg3) {\n\t\t\t\txbet.setText(jfscSpTypeList.get(position).getName());\r\n\t\t\t\txb_popup.dimissPopupwindow();\r\n\t\t\t}", "private void createNewListSection() {\n\t\tImageIcon image10 = new ImageIcon(sURLFCL1);\n\t\tImageIcon image11 = new ImageIcon(sURLFCL2);\n\t\tImageIcon image12 = new ImageIcon(sURLFCL3);\n\t\tjbCreateLists = new JButton(\"New PlayList\");\n\t\tjbCreateLists.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbCreateLists.setForeground(new Color(150,100,100));\n\t\tjbCreateLists.setIcon(image10);\n\t\tjbCreateLists.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setRolloverIcon(image11);\n\t\tjbCreateLists.setRolloverSelectedIcon(image12);\t\n\t\tjbCreateLists.setContentAreaFilled(false);\n\t\tjbCreateLists.setFocusable(false);\n\t\tjbCreateLists.setBorderPainted(false);\n\t}", "@Override\r\n\t\t\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\t\t\tWindow.open(result.get(\"description\"), \"description\", result.get(\"description\"));\r\n\r\n\t\t\t\t\t\t}", "private void openSaveList() {\n //Open the saveList Activity\n Intent saveListActivityIntent = new Intent(this, SaveList.class);\n startActivity(saveListActivityIntent);\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tlistPanel.showWorkDialog();\n\t\t}", "public void addToList(View view) {\n Items newItem = new Items();\n EditText ETNew = (EditText) findViewById(R.id.ETNew);\n newItem.todo = ETNew.getText().toString();\n newItem.done = false;\n helper.create(newItem);\n Toast.makeText(this, \"Item added\", Toast.LENGTH_SHORT).show();\n adaptList2();\n ETNew.setText(\"\");\n ETNew.setHint(\"my new to-do\");\n }", "private void createContents(ArrayList<String> content) {\r\n\t\t// create ne whell for dialog window\r\n\t\tshell = new Shell(getParent(), SWT.APPLICATION_MODAL);\r\n\t\tshell.setSize(367, 348);\r\n\t\tshell.setText(getText());\r\n\t\t\r\n\t\tcenterDialog(shell);\r\n\r\n\t\t// create List component inside dialog window\r\n\t\tfinal List list = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// fill list with documentation infElements\r\n\t\tfor (int i=0; i<content.size(); i++)\r\n\t\t\tlist.add(content.get(i));\r\n\t\t\r\n\t\t// set default selection\r\n\t\tlist.setSelection(0);\r\n\t\t\r\n\t\t// set position of List component\r\n\t\tlist.setBounds(10, 31, 341, 270);\r\n\t\t\r\n\t\t// create Label for the List component\r\n\t\tLabel lblSelectDocumentationTopic = new Label(shell, SWT.NONE);\r\n\t\tlblSelectDocumentationTopic.setBounds(10, 10, 173, 15);\r\n\t\tlblSelectDocumentationTopic.setText(\"Select Documentation Topic\");\r\n\r\n\t\t// create Cancel button\r\n\t\tButton btnCancel = new Button(shell, SWT.NONE);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = \"\";\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancel.setBounds(276, 307, 75, 25);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\r\n\t\t// Create OK button\r\n\t\tButton btnOk = new Button(shell, SWT.NONE);\r\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOk.setBounds(183, 307, 75, 25);\r\n\t\tbtnOk.setText(\"OK\");\r\n\t\t\r\n\t}", "private void resourceActionWindow (ButtonImage button){\n JPopupMenu depositList = new JPopupMenu(\"Deposits\");\n DepositMenu subMenu = new DepositMenu(gui, \"Send to\", selectedResource, Command.SEND_DEPOSIT_ID, 0);\n depositList.add(subMenu);\n button.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent e) {\n depositList.show(button , e.getX(), e.getY());\n }\n });\n }", "public static void doCreateitem(RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tParameterParser params = data.getParameters ();\n\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, new TreeSet());\n\n\t\tMap current_stack_frame = peekAtStack(state);\n\t\tboolean pop = false;\n\t\t\n\t\tString collectionId = params.getString(\"collectionId\");\n\t\tString itemType = params.getString(\"itemType\");\n\t\tString flow = params.getString(\"flow\");\n\t\t\n\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\n\t\tSet alerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\tif(alerts == null)\n\t\t{\n\t\t\talerts = new HashSet();\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\t\tSet missing = new HashSet();\n\t\tif(flow == null || flow.equals(\"cancel\"))\n\t\t{\n\t\t\tpop = true;\n\t\t}\n\t\telse if(flow.equals(\"updateNumber\"))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, false);\n\t\t\tint number = params.getInt(\"numberOfItems\");\n\t\t\tInteger numberOfItems = new Integer(number);\n\t\t\tcurrent_stack_frame.put(ResourcesAction.STATE_STACK_CREATE_NUMBER, numberOfItems);\n\n\t\t\t// clear display of error messages\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, new HashSet());\n\n\t\t\tList items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\t\tif(items == null)\n\t\t\t{\n\t\t\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\t\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t\t\t}\n\n\t\t\t\tString encoding = data.getRequest().getCharacterEncoding();\n\n\t\t\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\t\t\tif(defaultRetractDate == null)\n\t\t\t\t{\n\t\t\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t\t\t}\n\n\t\t\t\titems = newEditItems(collectionId, itemType, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\n\t\t\t}\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, items);\n\t\t\tIterator it = items.iterator();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tEditItem item = (EditItem) it.next();\n\t\t\t\titem.clearMissing();\n\t\t\t}\n\t\t\tstate.removeAttribute(STATE_MESSAGE);\n\t\t}\n\t\telse if(flow.equals(\"create\") && TYPE_FOLDER.equals(itemType))\n\t\t{\n\t\t\t// Get the items\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts.isEmpty())\n\t\t\t{\n\t\t\t\t// Save the items\n\t\t\t\tcreateFolders(state);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\n\t\t\t\tif(alerts.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tpop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(flow.equals(\"create\") && TYPE_UPLOAD.equals(itemType))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts.isEmpty())\n\t\t\t{\n\t\t\t\tcreateFiles(state);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\t\tif(alerts.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tpop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(flow.equals(\"create\") && MIME_TYPE_DOCUMENT_HTML.equals(itemType))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts.isEmpty())\n\t\t\t{\n\t\t\t\tcreateFiles(state);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\t\tif(alerts.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tpop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(flow.equals(\"create\") && MIME_TYPE_DOCUMENT_PLAINTEXT.equals(itemType))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts.isEmpty())\n\t\t\t{\n\t\t\t\tcreateFiles(state);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\t\tif(alerts.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tpop =true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(flow.equals(\"create\") && TYPE_URL.equals(itemType))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts.isEmpty())\n\t\t\t{\n\t\t\t\tcreateUrls(state);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\t\tif(alerts.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tpop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\telse if(flow.equals(\"create\") && TYPE_FORM.equals(itemType))\n//\t\t{\n//\t\t\tcaptureMultipleValues(state, params, true);\n//\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n//\t\t\tif(alerts == null)\n//\t\t\t{\n//\t\t\t\talerts = new HashSet();\n//\t\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n//\t\t\t}\n//\t\t\tif(alerts.isEmpty())\n//\t\t\t{\n//\t\t\t\tcreateStructuredArtifacts(state);\n//\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n//\t\t\t\tif(alerts.isEmpty())\n//\t\t\t\t{\n//\t\t\t\t\tpop = true;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\telse if(flow.equals(\"create\"))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts == null)\n\t\t\t{\n\t\t\t\talerts = new HashSet();\n\t\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t\t}\n\t\t\talerts.add(\"Invalid item type\");\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\t\telse if(flow.equals(\"updateDocType\"))\n\t\t{\n\t\t\t// captureMultipleValues(state, params, false);\n\t\t\tString formtype = params.getString(\"formtype\");\n\t\t\tif(formtype == null || formtype.equals(\"\"))\n\t\t\t{\n\t\t\t\talerts.add(\"Must select a form type\");\n\t\t\t\tmissing.add(\"formtype\");\n\t\t\t}\n\t\t\tcurrent_stack_frame.put(STATE_STACK_STRUCTOBJ_TYPE, formtype);\n\t\t\t//setupStructuredObjects(state);\n\t\t}\n\t\telse if(flow.equals(\"addInstance\"))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, false);\n\t\t\tString field = params.getString(\"field\");\n\t\t\tList new_items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\t\tif(new_items == null)\n\t\t\t{\n\t\t\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\t\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t\t\t}\n\n\t\t\t\tString encoding = data.getRequest().getCharacterEncoding();\n\t\t\t\t\n\t\t\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\t\t\tif(defaultRetractDate == null)\n\t\t\t\t{\n\t\t\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t\t\t}\n\n\t\t\t\tnew_items = newEditItems(collectionId, itemType, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\n\t\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, new_items);\n\n\t\t\t}\n\t\t\tEditItem item = (EditItem) new_items.get(0);\n\t\t\taddInstance(field, item.getProperties());\n\t\t\tResourcesMetadata form = item.getForm();\n\t\t\tList flatList = form.getFlatList();\n\t\t\titem.setProperties(flatList);\n\t\t}\n\t\telse if(flow.equals(\"linkResource\") && TYPE_FORM.equals(itemType))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, false);\n\t\t\tcreateLink(data, state);\n\t\t\t\n\t\t}\n\t\telse if(flow.equals(\"showOptional\"))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, false);\n\t\t\tint twiggleNumber = params.getInt(\"twiggleNumber\", 0);\n\t\t\tString metadataGroup = params.getString(\"metadataGroup\");\n\t\t\tList new_items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\t\tif(new_items == null)\n\t\t\t{\n\t\t\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\t\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t\t\t}\n\n\t\t\t\tString encoding = data.getRequest().getCharacterEncoding();\n\n\t\t\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\t\t\tif(defaultRetractDate == null)\n\t\t\t\t{\n\t\t\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t\t\t}\n\n\t\t\t\tnew_items = newEditItems(collectionId, itemType, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\t\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, new_items);\n\n\t\t\t}\n\t\t\tif(new_items != null && new_items.size() > twiggleNumber)\n\t\t\t{\n\t\t\t\tEditItem item = (EditItem) new_items.get(twiggleNumber);\n\t\t\t\tif(item != null)\n\t\t\t\t{\n\t\t\t\t\titem.showMetadataGroup(metadataGroup);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// clear display of error messages\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, new HashSet());\n\t\t\tIterator it = new_items.iterator();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tEditItem item = (EditItem) it.next();\n\t\t\t\titem.clearMissing();\n\t\t\t}\n\t\t}\n\t\telse if(flow.equals(\"hideOptional\"))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, false);\n\t\t\tint twiggleNumber = params.getInt(\"twiggleNumber\", 0);\n\t\t\tString metadataGroup = params.getString(\"metadataGroup\");\n\t\t\tList new_items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\t\tif(new_items == null)\n\t\t\t{\n\t\t\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\t\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t\t\t}\n\n\t\t\t\tString encoding = data.getRequest().getCharacterEncoding();\n\n\t\t\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\t\t\tif(defaultRetractDate == null)\n\t\t\t\t{\n\t\t\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t\t\t}\n\n\t\t\t\tnew_items = newEditItems(collectionId, itemType, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\t\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, new_items);\n\t\t\t}\n\t\t\tif(new_items != null && new_items.size() > twiggleNumber)\n\t\t\t{\n\t\t\t\tEditItem item = (EditItem) new_items.get(twiggleNumber);\n\t\t\t\tif(item != null)\n\t\t\t\t{\n\t\t\t\t\titem.hideMetadataGroup(metadataGroup);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// clear display of error messages\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, new HashSet());\n\t\t\tIterator it = new_items.iterator();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tEditItem item = (EditItem) it.next();\n\t\t\t\titem.clearMissing();\n\t\t\t}\n\t\t}\n\n\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\tif(alerts == null)\n\t\t{\n\t\t\talerts = new HashSet();\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\t\t\n\t\tIterator alertIt = alerts.iterator();\n\t\twhile(alertIt.hasNext())\n\t\t{\n\t\t\tString alert = (String) alertIt.next();\n\t\t\taddCreateContextAlert(state, alert);\n\t\t\t//addAlert(state, alert);\n\t\t}\n\t\talerts.clear();\n\t\tcurrent_stack_frame.put(STATE_CREATE_MISSING_ITEM, missing);\n\n\t\tif(pop)\n\t\t{\n\t\t\tList new_items = (List) current_stack_frame.get(ResourcesAction.STATE_HELPER_NEW_ITEMS);\n\t\t\tString helper_changed = (String) state.getAttribute(STATE_HELPER_CHANGED);\n\t\t\tif(Boolean.TRUE.toString().equals(helper_changed))\n\t\t\t{\n\t\t\t\t// get list of attachments?\n\t\t\t\tif(new_items != null)\n\t\t\t\t{\n\t\t\t\t\tList attachments = (List) state.getAttribute(STATE_ATTACHMENTS);\n\t\t\t\t\tif(attachments == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tattachments = EntityManager.newReferenceList();\n\t\t\t\t\t\tstate.setAttribute(STATE_ATTACHMENTS, attachments);\n\t\t\t\t\t}\n\t\t\t\t\tIterator it = new_items.iterator();\n\t\t\t\t\twhile(it.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tAttachItem item = (AttachItem) it.next();\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource(item.getId());\n\t\t\t\t\t\t\tif (checkSelctItemFilter(resource, state))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tattachments.add(resource.getReference());\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\tit.remove();\n\t\t\t\t\t\t\t\taddAlert(state, (String) rb.getFormattedMessage(\"filter\", new Object[]{item.getDisplayName()}));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (PermissionException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, (String) rb.getFormattedMessage(\"filter\", new Object[]{item.getDisplayName()}));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (IdUnusedException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, (String) rb.getFormattedMessage(\"filter\", new Object[]{item.getDisplayName()}));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (TypeException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, (String) rb.getFormattedMessage(\"filter\", new Object[]{item.getDisplayName()}));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(item.getId()));\n\n\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t\tpopFromStack(state);\n\t\t\tresetCurrentMode(state);\n\n\t\t\tif(!ResourcesAction.isStackEmpty(state) && new_items != null)\n\t\t\t{\n\t\t\t\tcurrent_stack_frame = peekAtStack(state);\n\t\t\t\tList old_items = (List) current_stack_frame.get(STATE_HELPER_NEW_ITEMS);\n\t\t\t\tif(old_items == null)\n\t\t\t\t{\n\t\t\t\t\told_items = new Vector();\n\t\t\t\t\tcurrent_stack_frame.put(STATE_HELPER_NEW_ITEMS, old_items);\n\t\t\t\t}\n\t\t\t\told_items.addAll(new_items);\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public void perform() {\n pickList.advanced().getSourceList().getItem(ChoicePickerHelper.byIndex().last()).select();\n pickList.advanced().getAddButtonElement().click();\n pickList.advanced().getRemoveButtonElement().click();\n }", "private void startEditExistingTextActivity(int whichListPosition){\n ArrayList<String> listToExpand = new ArrayList<String>();\n listToExpand = myList.get(whichListPosition);\n Intent intent = new Intent(this, EditExistingText.class);\n Bundle bundle = new Bundle();\n bundle.putStringArrayList(\"theList\", listToExpand);\n bundle.putInt(\"theListPosition\", whichListPosition);\n bundle.putInt(\"theItemPosition\", 0);\n intent.putExtras(bundle);\n startActivityForResult(intent, EDITTEXTRC);\n }", "private void editList(){\n String name =this.stringPopUp(\"New name:\");\n Color newDefaultPriority = ColorPicker.colorPopUp(ColorPicker.getColor(currentList.getColor()));\n if(name != null && !name.isEmpty()) {\n String oldName = getPanelForList().getName();\n JPanel panel = getPanelForList();\n currentList.setName(name);\n currentList.setColor(ColorPicker.getColorName(newDefaultPriority));\n agenda.getConnector().editItem(currentList);\n setup.remove(oldName);\n window.remove(panel);\n setup.put(name,true);\n panel.setName(name);\n comboBox.addItem(name);\n comboBox.setSelectedItem(name);\n window.add(name,panel);\n comboBox.removeItem(oldName);\n this.updateComponent(panel);\n this.showPanel(name);\n this.updateComponent(header);\n }\n }", "protected void doListEdit() {\r\n String nameInput = mEditTextForList.getText().toString();\r\n\r\n /**\r\n * Set input text to be the current list item name if it is not empty and is not the\r\n * previous name.\r\n */\r\n if (!nameInput.equals(\"\") && !nameInput.equals(mItemName)) {\r\n Firebase firebaseRef = new Firebase(Constants.FIREBASE_URL);\r\n\r\n /* Make a map for the item you are editing the name of */\r\n HashMap<String, Object> updatedItemToAddMap = new HashMap<String, Object>();\r\n\r\n /* Add the new name to the update map*/\r\n updatedItemToAddMap.put(\"/\" + Constants.FIREBASE_LOCATION_SHOPPING_LIST_ITEMS + \"/\"\r\n + mListId + \"/\" + mItemId + \"/\" + Constants.FIREBASE_PROPERTY_ITEM_NAME,\r\n nameInput);\r\n\r\n /* Make the timestamp for last changed */\r\n HashMap<String, Object> changedTimestampMap = new HashMap<>();\r\n changedTimestampMap.put(Constants.FIREBASE_PROPERTY_TIMESTAMP, ServerValue.TIMESTAMP);\r\n\r\n /* Add the updated timestamp */\r\n updatedItemToAddMap.put(\"/\" + Constants.FIREBASE_LOCATION_ACTIVE_LISTS +\r\n \"/\" + mListId + \"/\" + Constants.FIREBASE_PROPERTY_TIMESTAMP_LAST_CHANGED, changedTimestampMap);\r\n\r\n /* Do the update */\r\n firebaseRef.updateChildren(updatedItemToAddMap);\r\n\r\n }\r\n }", "private void viewPageClicked() {\n //--\n //-- WRITE YOUR CODE HERE!\n //--\n try{\n Desktop d = Desktop.getDesktop();\n d.browse(new URI(itemView.getItem().getURL()));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n showMessage(\"View clicked!\");\n }", "public void onButtonActionEvent(com.codename1.ui.events.ActionEvent ev) {\n new ListEvent().show();\n }", "public void handleGetItemDetailsButtonAction(ActionEvent event) {\n String itemID = updateItemItemID.getText();\n try{\n //get the details from mgr\n HashMap itemInfo = updateMgr.getItemInfo(itemID);\n //display on the fields\n updateItemTitle.setText((String)itemInfo.get(Table.BOOK_TITLE));\n updateItemAuthor.setText((String)itemInfo.get(Table.BOOK_AUTHOR));\n updateItemDescription.setText((String)itemInfo.get(Table.BOOK_DESCRIPTION));\n updateItemPublishDate.setText(formatDateString((Calendar)itemInfo.get(Table.BOOK_DATE)));\n updateItemISBN.setText((String)itemInfo.get(Table.BOOK_ISBN));\n updateItemGenre.setText((String)itemInfo.get(Table.BOOK_GENRE));\n //enable item info pane\n updateItemInfoPane.setDisable(false);\n this.tempItemID = itemID;\n }\n catch(ItemNotFoundException | SQLException | ClassNotFoundException e){\n this.displayWarning(\"Error\", e.getMessage());\n } catch (Exception ex) {\n this.displayWarning(\"Error\", ex.getMessage());\n } \n }", "private void todoListGui() {\r\n panelSelectFile.setVisible(false);\r\n if (panelTask != null) {\r\n panelTask.setVisible(false);\r\n }\r\n\r\n makePanelList();\r\n syncListFromTodo();\r\n\r\n jframe.setTitle(myTodo.getName());\r\n panelList.setBackground(Color.ORANGE);\r\n panelList.setVisible(true);\r\n }", "void copyItemInEdt() {\n\t\tedtMessage.setText(messageToPasteFromTheListView);\n\t}", "public void clickOnItem(TraceableItem li) {\r\n\t\tIntent intent = new Intent();\r\n\t\tBundle bun = new Bundle();\r\n\r\n\t\tbun.putString(\"mode\", \"display\");\r\n\t\tbun.putLong(\"wordId\", li.getId());\r\n\t\tif (id != -1) {\r\n\t\t\tbun.putLong(\"collectionId\", id);\r\n\t\t\tbun.putString(\"collectionName\", collectionName);\r\n\t\t}\r\n\r\n\t\tintent.setClass(this, ViewWordActivity.class);\r\n\t\tintent.putExtras(bun);\r\n\t\tstartActivity(intent);\r\n\t}", "public AddItem() {\n initComponents();\n loadAllToTable();\n tblItems.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent e) {\n if (tblItems.getSelectedRow() == -1) return;\n \n String itemId= tblItems.getValueAt(tblItems.getSelectedRow(), 0).toString();\n \n String des= tblItems.getValueAt(tblItems.getSelectedRow(), 1).toString();\n String qty= tblItems.getValueAt(tblItems.getSelectedRow(), 2).toString();\n String unitPrice= tblItems.getValueAt(tblItems.getSelectedRow(), 3).toString();\n \n txtItemCode.setText(itemId);\n txtDescription.setText(des);\n \n txtQtyOnHand.setText(qty);\n txtUnitPrice.setText(unitPrice);\n \n }\n \n });\n \n \n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n Item item = (Item) mItems.get(arg2);\n Intent intent = new Intent(this, ItemDetailActivity.class);\n intent.putExtra(\"TITLE\", item.getTitle());\n intent.putExtra(\"DESCRIPTION\", item.getDescription());\n intent.putExtra(\"DATE\", item.getDate());\n intent.putExtra(\"LINK\", item.getLink());\n startActivity(intent);\n }", "public void AddToCartListPage(String Item){\r\n\t\tString Addtocartlistitem = getValue(Item);\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:- Addtocartlist should be Added\");\r\n\t\ttry{\r\n\t\t\twaitForElement(locator_split(\"BylnkFavListAddToCart\"));\r\n\t\t\tclickObjectByMatchingPropertyValue(locator_split(\"BylnkFavListAddToCart\"),propId,Addtocartlistitem);\r\n\t\t\twaitForPageToLoad(20);\r\n\t\t\tSystem.out.println(\"Addtocartlist is Added.\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Addtocartlist is Added\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Addtocartlist is not Added\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"BylnkFavListAddToCart\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t}", "public void updateDetailWindow();", "public NewItemDlg(Bundle args) {\n this.setArguments(args);}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tnew AlertDialog.Builder(List.this).setTitle(\"A\").setMessage(\"B\").setPositiveButton(\"Edit\", new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}).setNegativeButton(\"Delete\", new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}).setNeutralButton(\"Cancel\", new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}\n\t\t\t\t}).setCancelable(false).show();\n\t\t\t}", "private void listCreator() {\n String[] title = getResources().getStringArray(R.array.Home);\n String[] description = getResources().getStringArray(R.array.Description);\n\n Adapter adapter = new Adapter(this, title, description);\n lists.setAdapter(adapter);\n\n lists.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //switch case implemented to know which item was clicked\n switch (position) {\n case 0: {//if first section is selected, open new activity -->WeeklyView\n Intent intent = new Intent(MainActivity.this, WeeklyView.class);\n startActivity(intent);\n break;\n }\n case 1: {//if second option is selected, open new activity displaying monthly calendar\n Intent intent = new Intent(MainActivity.this, MonthlyActivity.class);\n startActivity(intent);\n break;\n }\n case 2: {//if third option is selected, it will open to umkc bookstore in new browser\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.umkcbookstore.com/\"));\n startActivity(browserIntent);\n break;\n }\n case 3: {//if fourth option is selected it will open the outlook login in their browser\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://login.microsoftonline.com/\"));\n startActivity(browserIntent);\n break;\n }\n case 4: {//if fifth option is selected, open new activity showing educational resources\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://pitt.libguides.com/openeducation/biglist\"));\n startActivity(browserIntent);\n break;\n }\n case 5: {//if sixth option chosen, open new activity showing youtube playlist. youtube api used here\n Intent wellnessIntent = new Intent(MainActivity.this, YoutubeActivity.class);\n startActivity(wellnessIntent);\n break;\n }\n case 6: {//if seventh option is chosen, open new activity, grid view of options for 2 games, facebook, hulu, netflix, youtube.\n Intent entertainIntent = new Intent(MainActivity.this, EntertainActivity.class);\n startActivity(entertainIntent);\n break;\n }\n default:\n break;\n }\n }\n });\n }", "void onListClick();", "View(LinkedTaskList myList){\n myNewList = myList;\n setJList(myNewList);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n setBounds(50, 25, 1200 ,700);\n setResizable(false);\n setTitle(\"Task Manager\");\n\n\n//Buttons\n weekPlan.setBackground(Color.ORANGE);\n addTask.setBackground(Color.ORANGE);\n editTask.setBackground(Color.ORANGE);\n detailView.setBackground(Color.ORANGE);\n removeTask.setBackground(Color.ORANGE);\n calendar.setBackground(Color.ORANGE);\n update.setBackground(Color.ORANGE);\n\n weekPlan.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n new ViewWeek(myNewList);\n }\n });\n\n addTask.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n new View(1, myNewList);\n }\n });\n\n editTask.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n new ViewEdit(taskList.getSelectedIndex(), myNewList);\n } catch (Exception ex){\n JOptionPane.showMessageDialog(null, \"Task didn`t choose\");\n }\n }\n });\n\n calendar.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n SwingCalendar sc = new SwingCalendar(myNewList);\n }\n });\n\n update.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n update(myNewList);\n }\n });\n\n\n//Panel\n JPanel panel = new JPanel();\n panel.setLayout(new FlowLayout());\n panel.setBackground(Color.darkGray);\n\n panel.add(weekPlan);\n panel.add(addTask);\n panel.add(editTask);\n panel.add(detailView);\n panel.add(removeTask);\n panel.add(calendar);\n panel.add(update);\n\n\n\n removeTask.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n if (taskList.getSelectedIndex() == -1) {\n throw new IOException();\n }\n new ViewRemove(taskList.getSelectedIndex(), myNewList);\n } catch (Exception ex) {\n logger.error(\"The task for removing did not choose.\");\n JOptionPane.showMessageDialog(null, \"Task didn`t choose\");\n }\n }\n });\n\n JScrollPane scrollPane = new JScrollPane(taskList);\n scrollPane.setPreferredSize(new Dimension(700,500));\n panel.add(scrollPane);\n setContentPane(panel);\n\n detailView.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n new DetailView(myNewList);\n }\n });\n\n setVisible(true);\n }", "private void startOneListAndItemsActivity(int whichListPosition){\n ArrayList<String> listToExpand = new ArrayList<String>();\n listToExpand = myList.get(whichListPosition);\n Intent intent = new Intent(this, OneListAndItems.class);\n Bundle bundle = new Bundle();\n bundle.putStringArrayList(\"theList\", listToExpand);\n bundle.putInt(\"theListPosition\", whichListPosition);\n bundle.putInt(\"theItemPosition\", 0);\n intent.putExtras(bundle);\n startActivityForResult(intent, ONELISTRC);\n }", "public InvoiceLineWindow(final TabInvoiceLine parent) {\n this.parent = parent;\n invln = new InvoiceLineAdapter();\n\n// line = new Line(); \n// BeanItem<InvoiceLineAdapter> invoiceLine = new BeanItem<InvoiceLineAdapter>(invln);\n// parent.setItemDataSource(invoiceLine);\n// BeanItem<Line> invoiceLine = new BeanItem<Line>(line);\n// parent.setItemDataSource(invoiceLine);\n \n subwindow = new Window(\"Invoice Line\");\n subwindow.setModal(true);\n \n VerticalLayout layout = (VerticalLayout) subwindow.getContent();\n layout.setMargin(true);\n layout.setSpacing(true);\n\n Button btnClose = new Button(\"Close\", new Button.ClickListener() {\n public void buttonClick(ClickEvent event) {\n (subwindow.getParent()).removeWindow(subwindow);\n }\n });\n\n Button btnSave = new Button(\"Save\", new Button.ClickListener() {\n public void buttonClick(ClickEvent event) {\n //update GUI table !!\n ///parent.getTable().addInvoiceLine (invln);\n //update actual invoice line item\n ///parent.items.add (invln);\n \n //close popup\n (subwindow.getParent()).removeWindow(subwindow);\n }\n });\n \n try {\n layout.addComponent(createInvoiceLineForm());\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n layout.addComponent(btnSave);\n layout.addComponent(btnClose);\n layout.setComponentAlignment(btnClose, Alignment.BOTTOM_RIGHT); \n }", "void openViewMore(int code, ArrayList<ItemBox> list){\r\n Intent intent = new Intent(this, ViewMore.class);\r\n intent.putExtra(\"depart_code\", code);\r\n\r\n Bundle b = new Bundle();\r\n b.putSerializable(\"list\", list);\r\n intent.putExtra(\"bundle\", b);\r\n startActivity(intent);\r\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tString description = descriptionField.getText();\n\t\t\tlistPanel.addTask(new Task(description));\n\t\t}", "public void createItem(View view) {\n \t\n String[] temp = getCurrentItemTypes();\n \n Intent intent = new Intent(this, CreateItem.class);\n intent.putExtra(EDIT, \"no\");\n intent.putExtra(TYPES, temp);\n startActivityForResult(intent, 1);\n }", "@Override\n public void OnItemClick(View view, int postion) {\n Intent intent = new Intent(MyPubishActivity.this, IndexDetailActivity.class);\n String entryId = String.valueOf(publishList.get(postion).getItem_id());\n intent.putExtra(\"entryId\", entryId);\n startActivity(intent);\n }", "public void doChangeItemDueDate(ActionEvent actionEvent) {\n // grab the item\n // setDueDate(item);\n }", "public void EditandSavelist(String Editlistname){\r\n\t\tString editlist = getValue(Editlistname);\r\n\r\n\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:- Link should be edited and saved\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"lnkeditlist\"));\r\n\t\t\tclick(locator_split(\"lnkeditlist\")); \r\n\r\n\t\t\tsleep(1000);\r\n\t\t\twaitForElement(locator_split(\"txtlistname\"));\r\n\t\t\tsendKeys(locator_split(\"txtlistname\"), editlist);\r\n\r\n\r\n\t\t\twaitForElement(locator_split(\"clksavelist\"));\r\n\t\t\tclick(locator_split(\"clksavelist\")); \r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Link is edited and saved\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Favorities is not clicked \"+elementProperties.getProperty(\"lnkFavorities\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkFavorities\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\t\r\n\r\n\r\n\t}", "void issuedClick(String item);", "public ItemMenu(JDealsController sysCtrl) {\n super(\"Item Menu\", sysCtrl);\n\n this.addItem(\"Add general good\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.GOODS);\n }\n });\n this.addItem(\"Restourant Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.RESTOURANT);\n }\n });\n this.addItem(\"Travel Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.TRAVEL);\n }\n });\n }", "public ListViewHolder(@NonNull View itemView) {\n super(itemView);\n lblActiveWorkoutName= itemView.findViewById(R.id.lblActiveWorkoutName);\n lblActiveWorkoutDate = itemView.findViewById(R.id.lblActiveWorkoutDate);\n btnViewExercises = itemView.findViewById(R.id.btnViewExercises);\n }", "public void clickDescriptionTab() {\r\n\t\t\r\n\t\tString xpath = \"//div[contains(@class,\"+PURCHASING_PRODUCT_WINDOW_CLASS+\")]//span[text()='Description']\";\r\n\t\t\r\n\t\tWebDriverWait wait = new WebDriverWait(driver,20);\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(By.xpath(xpath)));\r\n\t\t\r\n\t\tMcsElement.getElementByAttributeValueAndParentElement(driver, \"div\",\r\n\t\t\t\t\"@class\", PURCHASING_PRODUCT_WINDOW_CLASS, \"span\", \"text()\",\r\n\t\t\t\t\"Description\", true, true).click();\r\n\r\n\t}", "public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}", "public void hoverDateItemInDatePicker(boolean isNewToDoPage) {\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 eleIdDueDate.click();\n } else {\n waitForClickableOfElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n eleToDoNewRowDueDateText.get(0).click();\n }\n waitForClickableOfElement(eleXpathChooseDate, \"Date picker\");\n hoverElement(eleXpathChooseDate, \"Date picker\");\n NXGReports.addStep(\"Verify hover select date in date picker\", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Verify hover select date in date pickerd\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "public void openTheListOfGadgets(){\r\n\t\tdriver.findElement(By.xpath(\"\"+TODAY_WIN_XPATH+\"//button[contains(text(),'Add more..')]\")).click();\r\n\t\tReporter.log(\"List Of Gadgets Buttons is clicked\",true);\r\n\t}", "public void doChangeItemDescription(ActionEvent actionEvent) {\n // find the item that the user is clicking\n // do setDescription()\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddNewItem();\n\t\t\t}", "@Override\n public void onClick(View v) {\n ((CreateDocketActivityPart2) activity).openPopUpForWorkDone(position);\n }", "public void onClick(Widget w) {\n\t\t\t\tHashSet existingFields = new HashSet();\n\t\t\t\tif (defList.size() > 0) {\n\t\t\t\t\tFactData d = (FactData) defList.get(0);\n\t\t\t\t\tfor (Iterator iterator = d.fieldData.iterator(); iterator.hasNext();) {\n\t\t\t\t\t\tFieldData f = (FieldData) iterator.next();\n\t\t\t\t\t\texistingFields.add(f.name);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tString[] fields = (String[]) sce.fieldsForType.get(type);\n\t\t\t\tfinal FormStylePopup pop = new FormStylePopup(\"images/rule_asset.gif\", \"Choose a field to add\");\n\t\t\t\tfinal ListBox b = new ListBox();\n\t\t\t\tfor (int i = 0; i < fields.length; i++) {\n\t\t\t\t\tString fld = fields[i];\n\t\t\t\t\tif (!existingFields.contains(fld)) b.addItem(fld);\n\t\t\t\t}\n\t\t\t\tpop.addRow(b);\n\t\t\t\tButton ok = new Button(\"OK\");\n\t\t\t\tok.addClickListener(new ClickListener() {\n\t\t\t\t\t\t\t\t\tpublic void onClick(Widget w) {\n\t\t\t\t\t\t\t\t\t\tString f = b.getItemText(b.getSelectedIndex());\n\t\t\t\t\t\t\t\t\t\tfor (Iterator iterator = defList.iterator(); iterator.hasNext();) {\n\t\t\t\t\t\t\t\t\t\t\tFactData fd = (FactData) iterator.next();\n\t\t\t\t\t\t\t\t\t\t\tfd.fieldData.add(new FieldData(f, \"\"));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t outer.setWidget(1, 0, render(defList));\n\t\t\t\t\t\t\t\t pop.hide();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\tpop.addRow(ok);\n\n\t\t\t\tpop.show();\n\t\t\t}", "public void startToDoList(View view) {\n\n startActivity(new Intent(this, toDoNewList.class));\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tif(list!=null&&list.size()>0){\n\t\t\t\t\tShareMenuWindow window = new ShareMenuWindow(CommodityInfosActivity.this);\n\t\t\t\t\twindow.ico =list.get(0).banner_imgurl;\n\t\t\t\t\twindow.url = \"\";\n\t\t\t\t\twindow.title = getResources().getString(R.string.app_name);\n\t\t\t\t\twindow.content = datas.name;\n\t\t\t\t\twindow.showAtBottom();\n\t\t\t\t}\n\t\t\t}", "@Override public void onItemClick(View view, int position) {\n final Dialog dialog = new Dialog(Informal.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_informal);\n Button btn = (Button) dialog.findViewById(R.id.dialog_btn);\n TextView mTextView = (TextView)dialog.findViewById(R.id.dialog_event_name);\n TextView description = (TextView)dialog.findViewById(R.id.dialog_description_text);\n mTextView.setText(Constants.mEvents_Informal[position]);\n description.setText(getString(Constants.mEvents_Informal_description[position]));\n dialog.show();\n btn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n }", "@Override\n public void onClick(View v) { Intent intent = new Intent(v.getContext(), ItemDescriptionActivity.class);\n// intent.putExtra(\"title\", data.get(position).getItems().get(position).getTitle());\n// intent.putExtra(\"description\", data.get(position).getItems().get(position).getDescription());\n// v.getContext().startActivity(intent);\n//\n Intent intent = new Intent(v.getContext(), ItemListActivity.class);\n intent.putExtra(\"id\", data.get(position).getId());\n activityContext.startActivity(intent);\n }", "private void manageItemButtonHandler() {\n\t\tTitledBorder border = new TitledBorder(\" MANAGE ITEM\");\n\t\tborder.setTitleFont(new Font(\"TimesNewRoman\", Font.BOLD, 12));\n\t\tdisplayPanel.setBorder(border);\n\t\t\n\t\tdisplayPanel.removeAll();\n\t\tdisplayPanel.add(new ManageItemPanel(rmos, itemManager));\n\t\tdisplayPanel.revalidate();\n\t\tdisplayPanel.repaint();\n\t}", "@Override\n public void onClick(DialogInterface dialog, int item) {\n if (item == 0) {\n deleteList(parent, position);\n } else if (item == 1) {\n updateList(parent, position);\n }\n\n }", "public static void goToEditSongWindow()\n {\n EditSongWindow editSongWindow = new EditSongWindow();\n editSongWindow.setVisible(true);\n editSongWindow.setFatherWindow(actualWindow, false);\n }", "View(int key, LinkedTaskList myNewList) {\n if(key == 1) { // add task\n JLabel repeatLabel = new JLabel(\"Is Your task repeated?\");\n JButton repeated = new JButton(\"Yes\");\n JButton notRepeated = new JButton(\"No\");\n\n repeated.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n dispose();\n new ViewAdd(\"yes\", myNewList);\n }\n });\n\n notRepeated.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n dispose();\n new ViewAdd(\"no\", myNewList);\n }\n });\n\n JPanel panel = new JPanel();\n panel.setLayout(new FlowLayout());\n\n panel.add(repeatLabel);\n panel.add(repeated);\n panel.add(notRepeated);\n\n setContentPane(panel);\n setBounds(900,300,300,100);\n setTitle(\"Add Task\");\n setResizable(false);\n setVisible(true);\n }\n }", "private void info(ActionEvent x) {\n\t\tProject p = this.list.getSelectedValue();\n\t\tif (p != null) {\n\t\t\tcontroller.moreinfo(p.getName());\n\t\t}\n\t}", "public void createlist(String name,String description){\r\n\t\tString lstname = getValue(name);\r\n\t\tString lstdescription = getValue(description);\r\n\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:- Link should be created with name and description\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"lnkcreatlist\"));\r\n\t\t\tclick(locator_split(\"lnkcreatlist\")); \r\n\r\n\t\t\tsleep(1000);\r\n\t\t\twaitForElement(locator_split(\"txtlistname\"));\r\n\t\t\tsendKeys(locator_split(\"txtlistname\"), lstname);\r\n\r\n\t\t\twaitForElement(locator_split(\"txtlistdesc\"));\r\n\t\t\tsendKeys(locator_split(\"txtlistdesc\"), lstdescription);\r\n\r\n\t\t\twaitForElement(locator_split(\"rdemailremainder\"));\r\n\t\t\tclick(locator_split(\"rdemailremainder\")); \r\n\r\n\t\t\twaitForElement(locator_split(\"clksavelist\"));\r\n\t\t\tclick(locator_split(\"clksavelist\")); \r\n\r\n\t\t\tSystem.out.println(\"List is created\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Favorities Link is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Favorities is not clicked \"+elementProperties.getProperty(\"lnkFavorities\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkFavorities\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\t\r\n\r\n\r\n\t}", "public void item(){\r\n\r\n\t\titemF = new JFrame(); \r\n\t\titemF.setTitle(\"MavBay\");\r\n\t\titemF.setSize(1000,800);\r\n\t\titemF.setLocation(150,150);\r\n\t\titemF.setVisible(true);\r\n\t\titemF.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t JPanel pan = new JPanel();\r\n\t pan.setLayout(new GridBagLayout());\r\n\t pan.setBackground(new Color(100,100,100));\r\n\t GridBagConstraints c = new GridBagConstraints();\r\n\t JPanel pan2 = new JPanel();\r\n\t pan2.setBackground(new Color(100,100,100));\r\n\t JPanel pan3 = new JPanel();\r\n\t pan3.setBackground(new Color(100,100,100));\r\n\t JLabel empL= new JLabel(\"Items Not Sold\");\r\n\t empL.setForeground(Color.BLUE);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 10; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 1;\t \r\n\t pan.add(empL,c);\r\n\t itemL= new JList(myEnt.convertItem(myEnt.getItems()));\r\n\t itemL.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t empS= new JScrollPane(itemL);\t \r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 80; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 2;\r\n\t pan.add(empS, c);\r\n\t JButton but;\r\n\t but = new JButton(\"Not Sold Item Details\");\r\n\t but.setForeground(Color.BLUE);\r\n\t but.setBackground(Color.GRAY);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 20; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1;\r\n\t c.gridheight= 1;\t \t\t \r\n\t c.gridx = 2;\r\n\t c.gridy = 3;\r\n\t but.addActionListener(this);\r\n\t pan.add(but, c);\r\n\t JLabel empL1= new JLabel(\"Items Sold\");\r\n\t empL1.setForeground(Color.BLUE);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 10; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 4;\t \r\n\t pan.add(empL1,c);\r\n\t unsoldItemL= new JList(myEnt.convertItem(myEnt.getItemsSold()));\r\n\t unsoldItemL.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t empS= new JScrollPane(unsoldItemL);\t \r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 80; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1; \r\n\t c.gridx = 2;\r\n\t c.gridy = 5;\r\n\t pan.add(empS, c);\r\n\t JButton but1;\r\n\t but1 = new JButton(\"Sold Item Details\");\r\n\t but1.setForeground(Color.BLUE);\r\n\t but1.setBackground(Color.GRAY);\r\n\t c.fill = GridBagConstraints.HORIZONTAL;\r\n\t c.ipady = 20; \r\n\t c.ipadx= 100;\r\n\t c.gridwidth = 1;\r\n\t c.gridheight= 1;\t \t\t \r\n\t c.gridx = 2;\r\n\t c.gridy = 6;\r\n\t but1.addActionListener(this);\r\n\t pan.add(but1, c);\r\n\t itemT= new JTextArea();\r\n\t itemT.setEditable(false);\r\n\t empS= new JScrollPane(itemT);\r\n\t c.fill=GridBagConstraints.HORIZONTAL;\r\n\t\tc.gridx=0;\r\n\t\tc.gridy=0;\r\n\t\tc.ipady=480;\r\n\t\tc.ipadx=480;\r\n\t\tc.gridwidth = 2;\r\n\t\tc.gridheight=8;\r\n\t\tpan.add(empS,c);\t \r\n\t JButton butStart = new JButton(\"Main\");\r\n\t butStart = new JButton(\"Main\");\r\n\t butStart.setForeground(Color.BLUE);\r\n\t butStart.setBackground(Color.GRAY);\r\n\t butStart.setActionCommand(\"Main\");\r\n butStart.addActionListener(this);\r\n\t pan3.add(butStart);\r\n\t JButton butOk=new JButton(\"Employees\");\r\n\t butOk.setForeground(Color.BLUE);\r\n\t butOk.setBackground(Color.GRAY);\r\n\t butOk.setActionCommand(\"Employees\");\r\n\t butOk.addActionListener(this);\r\n\t pan3.add(butOk);\r\n\t JButton butCust = new JButton(\"Customers\");\r\n\t butCust = new JButton(\"Customers\");\r\n\t butCust.setForeground(Color.BLUE);\r\n\t butCust.setBackground(Color.GRAY);\r\n\t butCust.setActionCommand(\"Customers\");\r\n\t butCust.addActionListener(this);\r\n\t pan3.add(butCust);\r\n\t JButton butItem = new JButton(\"Items\");\r\n\t butItem = new JButton(\"Items\");\r\n\t butItem.setForeground(Color.BLUE);\r\n\t butItem.setBackground(Color.GRAY);\r\n\t butItem.setActionCommand(\"Items\");\r\n\t butItem.addActionListener(this);\r\n\t pan3.add(butItem);\r\n\t itemF.add(pan,BorderLayout.CENTER);\r\n\t lockedL = new JLabel(\"Items\");\r\n\t lockedL.setFont(myF); \r\n\t lockedL.setForeground(Color.BLUE);\r\n\t lockedL.setBackground(Color.GRAY);\r\n\t pan2.add(lockedL);\r\n\t itemF.add(pan2,BorderLayout.NORTH);\r\n\t itemF.add(pan3,BorderLayout.SOUTH);\r\n\t}", "public void onCreateDialogSingleChoice(List<String> list, final String title, int pos) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n//Source of the data in the DIalog\n String[] array = list.toArray(new String[list.size()]);\n for (int i = 0; i < list.size(); i++) {\n array[i] = list.get(i);\n }\n// Set the dialog title\n builder.setTitle(title)\n\n// Specify the list array, the items to be selected by default (null for none),\n// and the listener through which to receive callbacks when items are selected\n .setSingleChoiceItems(array, pos, (dialog, which) -> {\n// TODO Auto-generated method stub\n\n\n })\n\n// Set the action buttons\n .setPositiveButton(\"Ok\", (dialog, id) -> {\n// User clicked OK, so save the result somewhere\n// or return them to the component that opened the dialog\n\n ListView lw = ((AlertDialog) dialog).getListView();\n Object checkedItem = lw.getAdapter().getItem(lw.getCheckedItemPosition());\n\n if (title.equalsIgnoreCase(\"Title\")) {\n vEdtTxtTitle.setText(checkedItem.toString());\n mSelectPosi = lw.getCheckedItemPosition();\n } else if (title.equalsIgnoreCase(\"Security Question\")) {\n vEdtTxtSecurityQsn.setText(checkedItem.toString());\n mSelectPosiSecurity = lw.getCheckedItemPosition();\n }\n\n Log.d(getLocalClassName(), \" Selected Item \" + checkedItem.toString());\n// ad.dismiss();\n dialog.dismiss();\n\n })\n .setNegativeButton(\"Cancel\", (dialog, id) -> {\n// ad.dismiss();\n dialog.dismiss();\n });\n builder.show();\n }", "private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }", "@FXML\n public void New_List(ActionEvent actionEvent) {\n\n //Here we are going to open a window to create a list.\n //Working!!\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"NewTodolist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New List\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void showPopUp() {\n ListView listViewItems = new ListView(this);\n listViewItems.setAdapter(adapter);\n listViewItems.setAdapter(adapter);\n\n // put the ListView in the pop up\n alertDialog = new AlertDialog.Builder(MainActivity.this)\n .setView(listViewItems)\n .setTitle(\"alertDialog\")\n .show();\n }", "@Override\r\n public void onClick(View view) {\n Intent intent = new Intent(context, DetailActivity.class);\r\n intent.putExtra(\"item\", itemList.get(position));\r\n context.startActivity(intent);\r\n }", "public ModifyItem() {\n initComponents();\n }", "private void updateItemScreen(long rowId) {\n \tIntent intent = new Intent(this, ItemEditor.class);\n \tintent.putExtra(INTENT_ID_KEY, rowId);\n \tstartActivity(intent);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\t\t\t\tLog.e(\"TAG\", \"clicked on\");\n\n\t\t\t\t\t\t\t\tfinal Dialog dialog = new Dialog(ViewSiteActivity.this, R.style.TopToBottomDialog);\n\t\t\t\t\t\t\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\t\t\t\t\t\tdialog.setContentView(R.layout.dropdown_working_order);\n\n\t\t\t\t\t\t\t\tListView commonListsView = (ListView) dialog.findViewById(R.id.work_order_list);\n\t\t\t\t\t\t\t\tString[] workArray = getResources().getStringArray(R.array.working_order);\n\t\t\t\t\t\t\t\tcommonList.clear();\n\n\t\t\t\t\t\t\t\tfor (int i = 0; i < workArray.length; i++) {\n\t\t\t\t\t\t\t\t\tcommonList.add(workArray[i]);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tAddCommonListAdapter addCommonListAdapter = new AddCommonListAdapter(\n\t\t\t\t\t\t\t\t\t\tViewSiteActivity.this, commonList);\n\t\t\t\t\t\t\t\tcommonListsView.setAdapter(addCommonListAdapter);\n\t\t\t\t\t\t\t\taddCommonListAdapter.notifyDataSetChanged();\n\n\t\t\t\t\t\t\t\tcommonListsView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\tString workOrder = commonList.get(position);\n\t\t\t\t\t\t\t\t\t\tLog.e(\"TAG\", \"Value for workOrder:\" + workOrder);\n\t\t\t\t\t\t\t\t\t\tdropWorkingOrder.setText(workOrder);\n\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\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\ttry {\n\t\t\t\t\t\t\t\t\tdialog.show();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "private void addElementsToPanelList(JList<String> jlist, JButton clickUpdate, JButton clickDelete,\r\n JButton clickComplete, JButton clickIncomplete,\r\n JButton clickCreate, JButton showComplete,\r\n JButton clickSave) {\r\n panelList.add(jlist);\r\n panelList.add(clickUpdate);\r\n panelList.add(clickDelete);\r\n panelList.add(clickComplete);\r\n panelList.add(clickIncomplete);\r\n panelList.add(clickCreate);\r\n panelList.add(showComplete);\r\n panelList.add(clickSave);\r\n }", "@Override\n public void onClick(View arg0) {\n ((CreateDocketActivityPart2) activity).openPopUpForSpareParts(position);\n }", "public static void fillEditWindow (int index)\n {\n EditSongWindow.songName =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getSongName();\n EditSongWindow.artistEdit =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getArtist();\n EditSongWindow.albumEdit =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getAlbum();\n EditSongWindow.genderEdit=(findGender(listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getSongName()));\n EditSongWindow.index = JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex();\n EditSongWindow.list = listSongs;\n }", "@Override\n public void onClick(View v) {\n BeritaItem beritaItem = new BeritaItem();\n\n //TODO mengambil data dari berita item\n beritaItem.setTitle(beritaList.get(i).getTitle());\n beritaItem.setUrlToImage(beritaList.get(i).getUrlToImage());\n beritaItem.setContent(beritaList.get(i).getContent());\n beritaItem.setPublishedAt(beritaList.get(i).getPublishedAt());\n\n //TODO melakukan perpindahan halaman\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(DetailActivity.EXTRA_OBJ,beritaItem);\n context.startActivity(intent);\n }", "public void add_item_button(View v){\n if(expiry_date==0){ //if no expiry date was chosen,\n if(product_name.equals(\"Milk\")){//and if the product is milk, \n expiry_date=7; //set it to the default of 7 days until expiry\n }else{//If the product is bread,\n expiry_date=3;//set it to the default of 7 days until expiry\n }\n }\n Product added_p=new Product(product_name,expiry_date); //added_p : product chosen by the user that they currently own\n added_list.add(added_p); //this product is added to the list \n text=(TextView) findViewById(R.id.added_list);\n String content=\"\";\n for(Product p:added_list){\n content=content+(p.getProduct_name()+\" \"+p.getProduct_exp()+\" days \\n\"); //then displayed to show the user \n }\n text.setText(content);\n }", "ListItem createListItem();", "@Override\n public void onClick(View paramView) {\n\n popupWindows.showAtLocation(fragment_sharedfilesd_home_all_refreshlistview,\n Gravity.BOTTOM, 0, 0);\n backgroundAlpha(0.5f);\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void buttonClick(ClickEvent event) {\n\r\n\t\t\t\t\t\t\t\tObject data = event.getButton().getData();\r\n\t\t\t\t\t\t\t\ttablePacks.select(data);\r\n\t\t\t\t\t\t\t\tItem itemClickEvent = tablePacks.getItem(data);\r\n\t\t\t\t\t\t\t\tvenEditarPacks.init(\"UPDATE\",itemClickEvent );\r\n\t\t\t\t\t\t\t\tUI.getCurrent().addWindow(venEditarPacks);\r\n\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t\t\t\t\t\t}", "public void clickAddTopping(int itemIndex, ItemCart item);", "public ShowList(String title) {\n id = title;\n initComponents();\n updateListModel();\n }", "void showItemDialog(Task task, CharSequence items[]);", "public static void main(String[] args) {\n\t\tDisplay display = new Display();\n\t\tShell shell = new Shell(display);\n\n\t\t/* Create Layout and set it as the Shell layout */\n\t\t GridLayout gridLayout = new GridLayout(2, false);\t\n\t\t shell.setLayout(gridLayout);\n\n\t\t/* Add Text widget for input of new items */\n\t\t Text textWidget = new Text(shell, SWT.BORDER);\n\n\t\t/* Create and add GridData for the Text widget */\n\t\t GridData gridData = new GridData();\n\t\t gridData.horizontalAlignment = GridData.FILL;\n\t\t gridData.grabExcessHorizontalSpace = true;\n\t\t textWidget.setLayoutData(gridData);\n\n\t\t/* \n\t\t * Add a Label next to the Text widget\n\t\t * that explains how to add items to the list\n\t\t */\n\t\t Label label = new Label(shell, SWT.NONE);\n\t\t label.setText(\"Press Enter to add the item to the list\");\n\n\t\t/* Create and add GridData for instructions Label */\n\t\t gridData = new GridData();\n\t\t gridData.horizontalAlignment = GridData.FILL;\n\t\t label.setLayoutData(gridData);\n\n\t\t/* Create the List widget to display the todo list */\n\t\t List list = new List(shell, 0);\n\t\t \n\t\t\n\t\t/* Create and add GridData for the List */\n\t\t gridData = new GridData();\n\t\t gridData.grabExcessVerticalSpace = true;\n\t\t gridData.grabExcessHorizontalSpace = true;\n\t\t gridData.horizontalAlignment = GridData.FILL;\n\t\t gridData.verticalAlignment = GridData.FILL;\n\t\t gridData.horizontalSpan = 2;\n\t\t list.setLayoutData(gridData);\n\t\t\n\t\t/* Create a Button to remove items from the List */\n\t\t Button removeButton = new Button(shell, 0);\n\t\t removeButton.setText(\"Remove Item\");\n\t\t\n\t\t/* Create and add GridData for the Button */\n\t\t gridData = new GridData();\n\t\t gridData.horizontalAlignment = GridData.FILL;\n\t\t removeButton.setLayoutData(gridData);\n\t\t\n\t\t/* Create a Label which instructs the user how to delete one or more items */\n\t\t Label removeLabel = new Label(shell, 0);\n\t\t removeLabel.setText(\"Select item and click remove to delete it\");\n\t\t\n\t\t/* Add listener(s) for the Text input widget */\n\t\t textWidget.addSelectionListener(new SelectionAdapter() {\n\t\t\t public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\t String newText = textWidget.getText();\n\t\t\t\t list.add(newText);\n\t\t\t\t textWidget.setText(\"\");\n\t\t\t }\n\t\t });\n\t\t \n\t\t/* Add listener(s) for the remove Button widget */\n\t\t removeButton.addMouseListener(MouseListener.mouseDownAdapter(e -> {\n\t\t\t int selectedIndex = list.getSelectionIndex();\n\t\t\t if (selectedIndex != -1) {\n\t\t\t\t list.remove(selectedIndex);\n\t\t\t }\n\t\t }));\n\t\t\n\t\t/* Set the Shell to an appropriate size and open it */\n\t\t shell.setSize(500, 500);\n\t\t shell.open();\n\t\t\n\t\t// Main loop\n\t\twhile (!shell.isDisposed()) {\n\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\tdisplay.sleep();\n\t\t\t}\n\t\t}\n\t\tdisplay.dispose();\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent action) {\n\t\t\t\t\tDishDetails.OpenWindow(null);\n\t\t\t\t}", "public SugarCRMCreateLead clickOnCreateList() {\n\t\tactionbot.click(By.xpath(\"//img[@alt='Create Lead']\"));\n\t\treturn new SugarCRMCreateLead(m_driver);\n\t}", "private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }", "protected void editClicked(View view){\n FragmentManager fm = getSupportFragmentManager();\n ЕditDialog editDialogFragment = new ЕditDialog(2);\n Bundle args = new Bundle();\n args.putInt(\"position\", this.position);\n args.putString(\"itemName\", this.itm.getItem(this.position).getName());\n args.putString(\"itemUrl\", this.itm.getItem(this.position).getUrl());\n editDialogFragment.setArguments(args);\n editDialogFragment.show(fm, \"edit_item\");\n }", "private void initializeToDoList() {\r\n // Get all of the notes from the database and create the item list\r\n Cursor c = mDbHelper.fetchAllNotes();\r\n listView = (ListView) findViewById(R.id.listView);\r\n final ListView lv = listView;\r\n startManagingCursor(c);\r\n String[] from = new String[] { DbAdapter.KEY_TITLE, DbAdapter.KEY_BODY, DbAdapter.KEY_REMINDER_AT };\r\n int[] to = new int[] { R.id.firstLineTitle, R.id.secondLineDesc };\r\n // Now create an array adapter and set it to display using our row\r\n SimpleCursorAdapter notes = new SimpleCursorAdapter(this, R.layout.todo_list, c, from, to, CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);\r\n lv.setAdapter(notes);\r\n lv.setOnItemClickListener(new OnItemClickListener() {\r\n @Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n if ( mActionMode == null ) {\r\n SQLiteCursor listItem = (SQLiteCursor)lv.getItemAtPosition(position);\r\n Intent intent = new Intent(MainActivity.this, CreateToDo.class);\r\n Bundle extras = intent.getExtras();\r\n intent.putExtra(DbAdapter.KEY_ID, listItem.getInt(listItem.getColumnIndex(DbAdapter.KEY_ID)));\r\n intent.putExtra(DbAdapter.KEY_TITLE, listItem.getString(listItem.getColumnIndex(DbAdapter.KEY_TITLE)));\r\n intent.putExtra(DbAdapter.KEY_BODY, listItem.getString(listItem.getColumnIndex(DbAdapter.KEY_BODY)));\r\n intent.putExtra(DbAdapter.KEY_REMINDER_AT, listItem.getString(listItem.getColumnIndex(DbAdapter.KEY_REMINDER_AT)));\r\n startActivity(intent);\r\n } else {\r\n toggleViewSelection(view, id, position);\r\n }\r\n }\r\n });\r\n\r\n\r\n lv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {\r\n @Override\r\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\r\n // Start the CAB using the ActionMode.Callback defined above\r\n mActionMode = MainActivity.this.startActionMode(MainActivity.this);\r\n toggleViewSelection(view, id, position);\r\n return true;\r\n }\r\n });\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(context, MyNoteOneCourseDetailsActivity.class);\n\t\t\t\tintent.putExtra(\"noteList\", (Serializable)list);\n\t\t\t\tintent.putExtra(\"position\", position);\n\t\t\t\tcontext.startActivity(intent);\n\t\t\t}" ]
[ "0.66331077", "0.64456856", "0.6196585", "0.6111105", "0.60586536", "0.6053763", "0.6043113", "0.5891073", "0.5848375", "0.5838567", "0.5823062", "0.5803559", "0.5783993", "0.57532215", "0.57265085", "0.5666887", "0.5665539", "0.56469184", "0.56468546", "0.564008", "0.5634227", "0.5605599", "0.5602137", "0.55990267", "0.55891794", "0.5574554", "0.5565802", "0.55642617", "0.55620855", "0.55585694", "0.5532632", "0.5529011", "0.55145514", "0.55133426", "0.55083025", "0.55045474", "0.5492128", "0.5490361", "0.54882896", "0.5486298", "0.5486249", "0.54842806", "0.54784477", "0.5476151", "0.5463025", "0.54594713", "0.5458013", "0.54376715", "0.54337", "0.54312396", "0.540925", "0.54052496", "0.54040545", "0.53983325", "0.5393561", "0.5391878", "0.5390978", "0.538291", "0.53822935", "0.53584206", "0.53572845", "0.53556556", "0.5354017", "0.5350837", "0.5334755", "0.5333482", "0.5327136", "0.5317165", "0.5315631", "0.5310491", "0.53094435", "0.5308499", "0.5305944", "0.5302259", "0.5299437", "0.52958703", "0.52956074", "0.5292136", "0.5290957", "0.5274148", "0.5272166", "0.5270947", "0.52624893", "0.52599764", "0.52597135", "0.5250189", "0.52491033", "0.52472454", "0.5246557", "0.52444935", "0.5241165", "0.52396613", "0.5238514", "0.5237607", "0.52357584", "0.5229281", "0.5224673", "0.5223241", "0.5222365", "0.522192" ]
0.5438809
47
Here when we select the corresponding Item, we are going to show the information of this item Such as status, Name, Due date, and description. Here we are going to use the ListItem class to show all this information
public void Show_Item_Information(MouseEvent mouseEvent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tItemDetails itemDetails = (ItemDetails) list.getAdapter()\n\t\t\t\t\t\t.getItem(arg2);\n\n\t\t\t\tnew AlertDialog.Builder(FindAProductActivity.this)\n\t\t\t\t\t\t.setTitle(\"Information:\")\n\t\t\t\t\t\t.setMessage(\"\" + itemDetails.getName())\n\t\t\t\t\t\t.setIcon(android.R.drawable.ic_dialog_info)\n\t\t\t\t\t\t.setNeutralButton(\"OK\", null).show();\n\n\t\t\t\t// Bundle bundle = new Bundle();\n\t\t\t\t// bundle.putSerializable(\"ItemDetails\", itemDetails);\n\t\t\t\t// i.putExtras(bundle);\n\t\t\t\t// startActivity(i);\n\t\t\t}", "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"ListItem \" + item;\n\t\t}", "@Override\n public void onItemClick(View view, int position) {\n try {\n\n getItemInfo(view, position);\n\n } catch (Exception e) {\n\n }\n// String details=menuItems.get(position).getF1();\n// if(details!= null)\n// updateItemsDetails(details,view,position);\n\n\n }", "@Override\n public Object getItem(int item) {\n return dataList.get(item);\n }", "private void getListItem(View convertView, int i, long itemIdAtPosition) {\n\t\ttry {\n\t\t\tTextView ApproTile = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.apprItemTitle);\n\t\t\tTextView req_id = (TextView) convertView.findViewById(R.id.req_txt);\n\t\t\tTextView tableId = (TextView) convertView.findViewById(R.id.tabid);\n\t\t\tTextView projeId = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.projtId);\n\n\t\t\tString recordId = req_id.getText().toString();\n\t\t\tString proj = projeId.getText().toString();\n\t\t\tString tabId = tableId.getText().toString();\n\t\t\tString Approtitle = ApproTile.getText().toString();\n\t\t\tcallWebUrlApproval(recordId, tabId, proj, Approtitle, i);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "public void displayItems(){\n\n //Prepare Item ArrayList\n ArrayList<Item> itemList = new ArrayList<Item>();\n\n Cursor results = items_db_helper.getRecords();\n\n while(results.moveToNext()){\n int _id = results.getInt(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_ID));\n String item_title = results.getString(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_TITLE));\n int quantity_in_stock = results.getInt(results.getColumnIndex(DatabaseTables.InventoryItems.QUANTITY_IN_STOCK));\n double item_price = results.getDouble(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_PRICE));\n byte[] item_thumbnail_byte = results.getBlob(results.getColumnIndex(DatabaseTables.InventoryItems.ITEM_THUMBNAIL));\n Bitmap item_thumbnail = BitmapFactory.decodeByteArray(item_thumbnail_byte, 0, item_thumbnail_byte.length);\n\n //Create an Item object and store these data here (at this moment we will only extract data relevant to list item\n Item item = new Item();\n item.setItemId(_id);\n item.setItemTitle(item_title);\n item.setItemPrice(item_price);\n item.setItemThumbnail(item_thumbnail);\n item.setQuantityInStock(quantity_in_stock);\n\n itemList.add(item);\n }\n\n final ListView listView = (ListView) findViewById(R.id.item_list);\n listView.setItemsCanFocus(false);\n listView.setEmptyView(findViewById(R.id.empty_list_text));\n ItemAdapter itemAdapter = new ItemAdapter(MainActivity.this, itemList);\n listView.setAdapter(itemAdapter);\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Item curr_item = (Item) listView.getItemAtPosition(i);\n Intent details_intent = new Intent(MainActivity.this, DetailsActivity.class);\n details_intent.putExtra(\"item_id\", curr_item.getItemId());\n startActivity(details_intent);\n }\n });\n\n }", "@Override\n public Object getItem(int index) {\n return listInfo.get(index);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Object object = mList.getItemAtPosition(position);\n String element = \"\";\n // check if list item object is really a hash map\n if (object instanceof StringStringHashMap) {\n // extract the title from the hash map\n element = ((StringStringHashMap) object).get(ITEM_TITLE);\n }\n // show selected item\n Toast.makeText(PDEListPlainIconMultiLineActivity.this, \"Selected : \" + element,\n Toast.LENGTH_SHORT).show();\n }", "ListItem createListItem();", "public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}", "private void getItemListById() throws ClassNotFoundException, SQLException, IOException {\n itemCodeCombo.removeAllItems();\n ItemControllerByChule itemController = new ItemControllerByChule();\n ArrayList<Item> allItem = itemController.getAllItems();\n itemCodeCombo.addItem(\"\");\n for (Item item : allItem) {\n itemCodeCombo.addItem(item.getItemCode());\n }\n itemListById.setSearchableCombo(itemCodeCombo, true, null);\n }", "@Override\n\t\t\tprotected void populateItem(final ListItem<ComponentData> listItem)\n\t\t\t{\n\t\t\t\tfinal ComponentData componentData = listItem.getModelObject();\n\n\t\t\t\tlistItem.add(new Label(\"row\", Long.toString(listItem.getIndex() + 1)));\n\t\t\t\tlistItem.add(new Label(\"path\", componentData.path));\n\t\t\t\tlistItem.add(new Label(\"size\", Bytes.bytes(componentData.size).toString()));\n\t\t\t\tlistItem.add(new Label(\"type\", componentData.type));\n\t\t\t\tlistItem.add(new Label(\"model\", componentData.value));\n\t\t\t\tlistItem.add(new Label(\"renderDuration\", componentData.renderDuration != null\n\t\t\t\t\t? componentData.renderDuration.toString() : \"n/a\"));\n\t\t\t}", "@Override\n public void onClick(View v) {\n //getAdapterPosition() get's an Integer based on which the position of the current\n //ViewHolder (this) in the Adapter. This is how we get the correct Data.\n ListItem listItem = listOfData.get(\n this.getAdapterPosition()\n );\n\n controller.onListItemClick(\n listItem,\n v\n );\n\n }", "private void viewListItem(int index) {\n Itinerary itinerary = itineraryList.get(index);\n // make sure this itinerary is pin in local storage\n Log.d(\"Display Itinerary\", itinerary.getTitle());\n Toast.makeText(getActivity(), \"Fetching Data..\" , Toast.LENGTH_SHORT).show();\n itinerary.pinInBackground();\n Intent intent = new Intent(getActivity(), DayListView.class);\n intent.putExtra(\"it_ID\",itinerary.getObjectId());\n getActivity().startActivity(intent);\n\n }", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n Item item = (Item) mItems.get(arg2);\n Intent intent = new Intent(this, ItemDetailActivity.class);\n intent.putExtra(\"TITLE\", item.getTitle());\n intent.putExtra(\"DESCRIPTION\", item.getDescription());\n intent.putExtra(\"DATE\", item.getDate());\n intent.putExtra(\"LINK\", item.getLink());\n startActivity(intent);\n }", "public static Items listItemDetails(final int argItemId) {\r\n Items item = dao().listItemDetails(argItemId);\r\n return item;\r\n }", "public void setItems() {\n if (partSelected instanceof OutSourced) { // determines if part is OutSourced\n outSourcedRbtn.setSelected(true);\n companyNameLbl.setText(\"Company Name\");\n OutSourced item = (OutSourced) partSelected;\n idTxt.setText(Integer.toString(item.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(item.getPartName());\n invTxt.setText(Integer.toString(item.getPartInStock()));\n costTxt.setText(Double.toString(item.getPartPrice()));\n maxTxt.setText(Integer.toString(item.getMax()));\n minTxt.setText(Integer.toString(item.getMin()));\n idTxt.setText(Integer.toString(item.getPartID()));\n companyNameTxt.setText(item.getCompanyName());\n }\n if (partSelected instanceof InHouse) { // determines if part Is InHouse\n inHouseRbtn.setSelected(true);\n companyNameLbl.setText(\"Machine ID\");\n InHouse itemA = (InHouse) partSelected;\n idTxt.setText(Integer.toString(itemA.getPartID()));\n idTxt.setEditable(false);\n nameTxt.setText(itemA.getPartName());\n invTxt.setText(Integer.toString(itemA.getPartInStock()));\n costTxt.setText(Double.toString(itemA.getPartPrice()));\n maxTxt.setText(Integer.toString(itemA.getMax()));\n minTxt.setText(Integer.toString(itemA.getMin()));\n idTxt.setText(Integer.toString(itemA.getPartID()));\n companyNameTxt.setText(Integer.toString(itemA.getMachineID()));\n\n }\n }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tListView detaillv=(ListView)findViewById(R.id.ListView01);\r\n\t\t\t\tswitch(arg2){\r\n\t\t \tcase 0:\r\n\t\t \tbl=DBUtil.getTodayDetails(tableName,dateStr);\r\n\t\t \tsetListAdapter(detaillv,bl);\r\n\t\t \tbreak;\r\n\t\t \tcase 1:\r\n\t\t \tbl=DBUtil.getMonthYearDetails(tableName, monthStr);\r\n\t\t \tsetListAdapter(detaillv,bl);\r\n\t\t \tbreak;\r\n\t\t \tcase 2:\r\n\t\t \tbl=DBUtil.getMonthYearDetails(tableName, lastmonthStr);\r\n\t\t\t setListAdapter(detaillv,bl);\r\n\t\t\t break;\r\n\t\t \tcase 3:\r\n\t\t bl=DBUtil.getLastThreeMonthDetails(tableName, lastthreemonthStr,lastmonthdayStr);\r\n\t\t\t\tsetListAdapter(detaillv,bl);\r\n\t\t\t\tbreak;\r\n\t\t \tcase 4:\r\n\t\t \tbl=DBUtil.getMonthYearDetails(tableName, yearStr);\r\n\t\t\t setListAdapter(detaillv,bl);\r\n\t\t\t break;\r\n\t\t \tcase 5:\r\n\t\t\t bl=DBUtil.getMonthYearDetails(tableName, lastyearStr);\r\n\t\t\t\tsetListAdapter(detaillv,bl);\r\n\t\t\t\tbreak;\r\n\t\t \tcase 6:\r\n\t\t \tbl=DBUtil.getAllDetails(tableName);\r\n\t\t \tsetListAdapter(detaillv,bl);\r\n\t\t \tbreak;\r\n\t\t\t}\r\n\t\t\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tListSelectionModel lsm = list.getSelectionModel();\r\n\t\t\tint selected = lsm.getMinSelectionIndex();\r\n\r\n\t\t\tItemView itemView = (ItemView) list.getModel().getElementAt(selected);\r\n\r\n\t\t\t// change item\r\n\t\t\tJOptionPane options = new JOptionPane();\r\n\t\t\tObject[] addFields = { \"Name: \", nameTextField, \"Price: \", priceTextField, \"URL: \", urlTextField, };\r\n\t\t\tint option = JOptionPane.showConfirmDialog(null, addFields, \"Edit item\", JOptionPane.OK_CANCEL_OPTION);\r\n\t\t\tif (option == JOptionPane.OK_OPTION) {\r\n\t\t\t\tString name = nameTextField.getText();\r\n\t\t\t\tString price = priceTextField.getText();\r\n\t\t\t\tString url = urlTextField.getText();\r\n\r\n\t\t\t\tdouble doublePrice = Double.parseDouble(price);\r\n\r\n\t\t\t\titemView.getItem().setName(name);\r\n\t\t\t\titemView.getItem().setCurrentPrice(doublePrice);\r\n\t\t\t\titemView.getItem().setUrl(url);\r\n\t\t\t\t// clear text fields\r\n\t\t\t\tnameTextField.setText(\"\");\r\n\t\t\t\tpriceTextField.setText(\"\");\r\n\t\t\t\turlTextField.setText(\"\");\r\n\t\t\t}\r\n\t\t}", "@Override\n public void onListItemSelected(POD_DOCS pod_docs) {\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"Pod_Docs\",pod_docs);\n loadFragment(MI_POD_DETAIL_FRAGMENT,bundle);\n }", "public ShowList(String title) {\n id = title;\n initComponents();\n updateListModel();\n }", "@Override\r\n\tpublic void render(Listitem item, Object data) throws Exception {\n final Tirspasca detilMatakuliah = (Tirspasca) data;\r\n\t\tListcell lc = new Listcell(detilMatakuliah.getMtbmtkl().getCkdmtk());\r\n\t\tlc.setParent(item);\r\n lc = new Listcell(detilMatakuliah.getMtbmtkl().getCnamamk());\r\n\t\tlc.setParent(item);\r\n lc = new Listcell(detilMatakuliah.getCkelompok());\r\n\t\tlc.setParent(item);\r\n //lc = new Listcell(\"\");\r\n\t\t//lc.setParent(item);\r\n String sks = \"\";\r\n if(detilMatakuliah.getNsks() != null) {\r\n sks = detilMatakuliah.getNsks().toString();\r\n } /*else {\r\n if(detilMatakuliah.getMtbmtkl().getNsks() != null) {\r\n sks = detilMatakuliah.getMtbmtkl().getNsks().toString();\r\n }\r\n } */\r\n lc = new Listcell(sks);\r\n\t\tlc.setParent(item);\r\n\r\n item.setAttribute(\"data\", data);\r\n\t\tComponentsCtrl.applyForward(item, \"onDoubleClick=onDetilMatakuliahItem\");\r\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tString name = ((TextView) view.findViewById(R.id.name)).getText().toString();\n\t\t\t\tString year = ((TextView) view.findViewById(R.id.year)).getText().toString();\n\t\t\t\tString trailer = ((TextView) view.findViewById(R.id.trailer)).getText().toString();\n\t\t\t\t\n\t\t\t\tIntent i = new Intent(getApplicationContext(), SingleListItem.class);\n\t\t\t\t\n\t\t\t\tBundle extras = new Bundle();\n\t\t\t\textras.putString(\"TAG_TITLE\", name);\n\t\t\t\textras.putString(\"TAG_YEAR\", year);\n\t\t\t\textras.putString(\"TAG_TRAILER\", trailer);\n\t\t\t\ti.putExtras(extras);\n\t\t\t\t\n\t\t\t\tstartActivity(i);\n\t\t\t}", "@Override\n public void onListItemClicked(int position) {\n\n }", "protected void onListItemClick(ListView l, View v, int position, long id) {\n String pName = arrName.get(position);\n String pPrice = arrPrice.get(position);\n String pUsefor = arrUsefor.get(position);\n String pHowtouse = arrHowtouse.get(position);\n String pSeriousAdverse = arrSeriousAdverse.get(position);\n String pCommonAdverse = arrCommonAdverse.get(position);\n String pRegis = arrRegis.get(position);\n\n// Class ourClass = null;\n Intent pillDetailIntent = new Intent(this, PillDetail.class);\n pillDetailIntent.putExtra(\"pName\", pName);\n pillDetailIntent.putExtra(\"pPrice\", pPrice);\n pillDetailIntent.putExtra(\"pUsefor\", pUsefor);\n pillDetailIntent.putExtra(\"pHowtouse\", pHowtouse);\n pillDetailIntent.putExtra(\"pSeriousAdverse\", pSeriousAdverse);\n pillDetailIntent.putExtra(\"pCommonAdverse\", pCommonAdverse);\n pillDetailIntent.putExtra(\"pRegis\", pRegis);\n startActivity(pillDetailIntent);\n }", "@Override protected void onListItemClick (ListView l, View v, int position, long id)\n\t{\n\t\tLog.i(\"IDManagement\", \"Listitemclick set id\" + String.format(\"%d\", id));\n\t\tselectedItem = id;\n\n\t}", "public synchronized String getItemDetails(){\n \tString s = \"\\n========================================\";\n \ts += \"\\nID: \"+ ID;\n \ts += \"\\nName: \"+ item_name;\n \ts += \"\\nStarting Price: \"+ start_price;\n \ts += \"\\nNumber Of bidders: \" + bids.size();\n \ts += \"\\n status: \" + status;\n\n \tif(status == \"open\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: No bids yet\";\n \t\t}else{\n \t\t\ts += \"\\n last_bidder: \"+ last_bidderName;\n \t\t}\n \t}else if(status == \"closed\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: Closed with No bids\";\n \t\t}else{\n \t\t\ts += \"\\n Won by: \"+ last_bidderName +\" at price of \"+ start_price;\n \t\t}\n \t}\n \ts += \"\\n========================================\";\n return s;\n }", "@Override\n public void onClick(View v) {\n BeritaItem beritaItem = new BeritaItem();\n\n //TODO mengambil data dari berita item\n beritaItem.setTitle(beritaList.get(i).getTitle());\n beritaItem.setUrlToImage(beritaList.get(i).getUrlToImage());\n beritaItem.setContent(beritaList.get(i).getContent());\n beritaItem.setPublishedAt(beritaList.get(i).getPublishedAt());\n\n //TODO melakukan perpindahan halaman\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(DetailActivity.EXTRA_OBJ,beritaItem);\n context.startActivity(intent);\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int nItem,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tPullDownListInfo pli = m_PDLI.get(nItem);\r\n\t\t\t\tif (!pli.getIsChoose()) {\r\n\t\t\t\t\tm_tvSortName.setText(pli.getText());\r\n\t\t\t\t\t//\r\n\t\t\t\t\tresetPullDownListView();\r\n\t\t\t\t\tpli.setIsChoose(true);\r\n\t\t\t\t\tm_PullDownLA.notifyDataSetChanged();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm_tvSortName\r\n\t\t\t\t\t\t.setBackgroundResource(R.drawable.common_tv_bg_pulldown_normal);\r\n\t\t\t\tm_PDLV.setVisibility(View.GONE);\r\n\r\n\t\t\t\tint nRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_NEW;\r\n\t\t\t\tswitch (nItem) {\r\n\t\t\t\tcase 1: {\r\n//\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_LIKE;\r\n//\t\t\t\t\tm_filters = getSearchHistory();\r\n\t//\r\n//\t\t\t\t\t// 友盟统计--任务--排序--猜你喜欢\r\n//\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Like\");\r\n//\t\t\t\t}\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\tcase 2: {\r\n//\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_PERIPHERY;\r\n//\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n//\t\t\t\t\tm_bIsSearch = false;\r\n\t//\r\n//\t\t\t\t\t// 友盟统计--任务--排序--周边职位\r\n//\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Reriphery\");\r\n//\t\t\t\t}\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\tcase 3: {\r\n\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_SORT;\r\n\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n\t\t\t\t\tm_bIsSearch = false;\r\n\r\n\t\t\t\t\t// 友盟统计--任务--排序--悬赏排名\r\n\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_Sort\");\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 0:\r\n\t\t\t\tdefault: {\r\n\t\t\t\t\tnRequestType = HeadhunterPublic.REWARD_REQUESTTYPE_NEW;\r\n\t\t\t\t\tm_filters = new RewardFilterCondition();\r\n\t\t\t\t\tm_bIsSearch = false;\r\n\r\n\t\t\t\t\t// 友盟统计--任务--排序--最新发布\r\n\t\t\t\t\tUmShare.UmStatistics(m_Context, \"Reward_Requesttype_New\");\r\n\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm_nListStatus = LISTVIEW_STATUS_ONREFRESH;\r\n\t\t\t\tm_lvReward.setLoading();\r\n\t\t\t\t// 获取悬赏任务列表\r\n\t\t\t\tstartGetData(HeadhunterPublic.REWARD_DIRECTIONTYPE_NEW, \"\",\r\n\t\t\t\t\t\tnRequestType);\r\n\t\t\t}", "@Override\n public String toString()\n {\n final StringBuilder sb = new StringBuilder(\"Item{\");\n sb.append(\"id=\").append(id);\n sb.append(\", userId=\").append(userId);\n sb.append(\", listId=\").append(listId);\n sb.append(\", positionIndex=\").append(positionIndex);\n sb.append(\", title='\").append(title).append('\\'');\n sb.append(\", body='\").append(body).append('\\'');\n sb.append('}');\n return sb.toString();\n }", "@Override\n protected void populateItem(final ListItem<String> item) {\n AjaxFallbackLink link = new AjaxFallbackLink(\"link\") {\n\n @Override\n public void onClick(AjaxRequestTarget target) {\n onSlidebarClick(target, item.getModelObject());\n }\n\n };\n Section section = sectionManager.getSection(item.getModelObject());\n link.add(new TransparentWebMarkupContainer(\"icon\").add(AttributeModifier.append(\"class\", \"fa-\" + section.getIcon())));\n\n String key = \"Section.\" + section.getTitle() + \".name\";\n String title = new StringResourceModel(key, null).getString();\n// link.add(new Label(\"label\", title).setRenderBodyOnly(true));\n link.add(new Label(\"label\", title));\n\n item.setOutputMarkupId(true);\n item.add(link);\n\n item.add(new AttributeAppender(\"class\", \"active\") {\n\n @Override\n public boolean isEnabled(Component component) {\n return sectionManager.getSelectedSectionId().equals(item.getModelObject());\n }\n\n }.setSeparator(\" \"));\n }", "public interface OnItemListClickListener {\n void onItemListSelected(Medicine item);\n }", "@Override\n public void onClick(View v) {\n\n if (item.getId() != 1) {\n\n name.setText(item.getName());\n\n }\n\n if (item.getId() == 2) {\n\n // name.setText(item.getName());\n\n }\n\n }", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n \tsuper.onListItemClick(l, v, position, id);\n \tLog.i(TAG, \"Position: \" + position);\n \t/*String item = (String) getListAdapter().getItem(position);\n \tnew AlertDialog.Builder(this)\n \t .setTitle(\"Test\")\n \t .setMessage(item)\n \t .setPositiveButton(\"OK\",\n \t new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int which) {}}\n \t )\n \t .show();\n \t\n Toast.makeText(this, item + \" selected\", Toast.LENGTH_LONG).show();*/\n }", "@Override\n public boolean onContextItemSelected(MenuItem item) {\n\n try {\n title = ((MyRecyclerViewAdapter) mRecyclerView.getAdapter()).getTitle();\n notes = ((MyRecyclerViewAdapter) mRecyclerView.getAdapter()).getNotes();\n position = ((MyRecyclerViewAdapter) mRecyclerView.getAdapter()).getPosition();\n Log.i(TAG, \"title: \" + title);\n Log.i(TAG, \"note: \" + notes);\n Log.i(TAG, \"position: \" + position);\n } catch (Exception e) {\n Log.d(TAG, e.getLocalizedMessage());\n return super.onContextItemSelected(item);\n }\n if (item.getTitle() == \"Edit\") {\n editItem(title, notes);\n } else if (item.getTitle() == \"Delete\") {\n removeItem(title, position);\n } else if (item.getTitle() == \"Share via\") {\n shareItem(title, notes);\n } else if (item.getTitle() == \"Share via Facebook\") {\n shareItemFacebook(title, notes);\n } else {\n item.collapseActionView();\n }\n return super.onContextItemSelected(item);\n }", "public AddItem() {\n initComponents();\n loadAllToTable();\n tblItems.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent e) {\n if (tblItems.getSelectedRow() == -1) return;\n \n String itemId= tblItems.getValueAt(tblItems.getSelectedRow(), 0).toString();\n \n String des= tblItems.getValueAt(tblItems.getSelectedRow(), 1).toString();\n String qty= tblItems.getValueAt(tblItems.getSelectedRow(), 2).toString();\n String unitPrice= tblItems.getValueAt(tblItems.getSelectedRow(), 3).toString();\n \n txtItemCode.setText(itemId);\n txtDescription.setText(des);\n \n txtQtyOnHand.setText(qty);\n txtUnitPrice.setText(unitPrice);\n \n }\n \n });\n \n \n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.putExtra(\"status\", \"2\");\n\t\t\t\tintent.putExtra(\"detail\", list.get(arg2));\n\t\t\t\tintent.setClass(MySave.this, JobDetail.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n SkillModel md = (SkillModel) l.getAdapter().getItem(position);\n //SkillModel md = ((pro_adapter)getListAdapter()).getItem(position);\n String pos = Integer.toString(position);\n Log.d(\"click\", pos);\n com.itemSelected(md.id);\n\n\n\n }", "private void setInfo() {\n\n //init data and navigation controllers\n dataController = new DataController();\n navigationController = new NavigationController();\n\n //hide fab\n ((HomeActivity)getActivity()).hideFAB();\n\n //init utils\n utils = new Utils();\n\n //position selected, saved in session\n position = Session.getInstance().getPosition();\n\n //user\n user = Session.getInstance().getUser();\n\n //users shopping lists\n shoppingLists = Session.getInstance().getUser().getShoppingLists();\n shoppingList = shoppingLists.get(position);\n\n //selected shopping list\n productList = shoppingLists.get(position).getProducts();\n\n //Create Swipe Menu\n createSwipeMenu();\n listView.setMenuCreator(creator);\n\n //Set swipe direction\n listView.setSwipeDirection(SwipeMenuListView.DIRECTION_LEFT);\n\n\n //set action bar tittle\n ((HomeActivity)getActivity()).setToolbarTitle(shoppingList.getName());\n\n totalPriceTextView.setText(utils.calculateTotalPrice(productList));\n\n adapter = new DetailedShoppingListAdapter(getActivity(), productList, false, new AppInterfaces.IEditItem() {\n @Override\n public void deleteItem(int position) {\n }\n\n @Override\n public void changeQuantity(Product product, int position) {\n changeProductQuantity(product, position);\n }\n\n @Override\n public void changePrice(Product product, int position) {\n changeProductPrice(product, position);\n }\n\n @Override\n public void changeQuantityType(Product product, int productPosition, int spinnerPosition) {\n changeProductQuantityType(product, productPosition, spinnerPosition);\n }\n }, new AppInterfaces.IPickItem() {\n @Override\n public void pickItem(int position) {\n if(productList.get(position).isPicked()) {\n productList.get(position).setPicked(false);\n\n } else {\n //set product picked\n productList.get(position).setPicked(true);\n }\n //refresh list\n adapter.notifyDataSetChanged();\n }\n });\n listView.setAdapter(adapter);\n }", "public void setItem(Item item) {\n this.item = item;\n }", "@Override\n public void onListFragmentInteraction(Book item) {\n BookDetailFragment bookDetailFragment = new BookDetailFragment();\n Bundle args = new Bundle();\n args.putSerializable(BookDetailFragment.BOOK_ITEM_SELECTED, item);\n bookDetailFragment.setArguments(args);\n\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.BookActivity_container, bookDetailFragment)\n .addToBackStack(null)\n .commit();\n }", "@Override\n\tpublic void viewItem() {\n\t\t\n\t}", "@Override\n public void onListFragmentInteraction(Model.Item item) {\n }", "void onItemSelected(int index, T item) throws RemoteException;", "public void setListAdapter() {\n\t\tm_dao = new ItemDao(this.getActivity());\n\t\t\n\t\tthis.m_adapter = new EditItemListAdapter(\n\t\t\t\tthis.getActivity(),\n\t\t\t\tR.layout.row,\n\t\t\t\tm_dao.getList());\n\n\n\n\t\tsetListAdapter(this.m_adapter);\n\n\t\tthis.m_adapter.setOnEditItemClickListener(\n\t\t\t\tnew EditItemListAdapter.OnEditItemClickListener() {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Update the item status in the DB table\n\t\t\t\t\t */\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void OnSelectItem(Item item) {\n\n\t\t\t\t\t\tif(!toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.add(item);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void OnDeselectItem(Item item) {\n\t\t\t\t\t\tif(toDelete.contains(item))\n\t\t\t\t\t\t\ttoDelete.remove(item);\n\n\t\t\t\t\t}\n\n\n\t\t\t\t});\n\n\n\t\t\n\t}", "@Override\n public void onItemClick(AdapterView<?> a, View v, int position, long id) {\n Toast.makeText(getApplicationContext(), \"Selected :\" + \" \" + listData.get(position), Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onItemClick(ZrcListView parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tIntent intent = new Intent(mainActivity, GetWeiBaList.class);\n\t\t\t\tBundle mbundle = new Bundle();\n\t\t\t\tmbundle.putString(\"logo_url\",\n\t\t\t\t\t\tlistitem.get(position).get(\"logo_url\").toString());\n\t\t\t\tmbundle.putString(\"id\", listitem.get(position).get(\"weiba_id\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tmbundle.putString(\"follower_count\",\n\t\t\t\t\t\tlistitem.get(position).get(\"follower_count\").toString());\n\t\t\t\tmbundle.putString(\"thread_count\",\n\t\t\t\t\t\tlistitem.get(position).get(\"thread_count\").toString());\n\t\t\t\tmbundle.putString(\"followstate\",\n\t\t\t\t\t\tlistitem.get(position).get(\"followstate\").toString());\n\t\t\t\tmbundle.putString(\"weiba_name\",\n\t\t\t\t\t\tlistitem.get(position).get(\"weiba_name\").toString());\n\t\t\t\tmbundle.putString(\"intro\", listitem.get(position).get(\"intro\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tintent.putExtras(mbundle);\n\t\t\t\tmainActivity.startActivity(intent);\n\t\t\t}", "public abstract String getListItem (Object obj, int i, String itemProp) \n throws SAFSException;", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\tint position, long id) {\n\t\t\t\tString itemid = data.get(position).getItemid();\r\n\t\t\t\tString itemname = data.get(position).getItemname();\r\n\t\t\t\tIntent intent = new Intent(MRPingguActivity.this,\r\n\t\t\t\t\t\tPinguUPActivity.class);\r\n\t\t\t\tintent.putExtra(\"itemid\", itemid);\r\n\t\t\t\tintent.putExtra(\"itemname\", itemname);\r\n\t\t\t\tintent.putExtra(\"date\", date);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}", "public Item(String itemName, String itemList, String itemNote, int itemNumStocks, String itemExpireDate, int itemID) {\n this.itemName = itemName;\n this.itemList = itemList;\n this.itemNote = itemNote;\n this.itemNumStocks = itemNumStocks;\n this.itemExpireDate = itemExpireDate;\n this.itemID = itemID;\n }", "@Override\n public void update(int newItemId) {\n List<Integer> list = new ArrayList<>(ItemProvider.getInstance().getAllItems().keySet());\n ItemListAdapter adapter = new ItemListAdapter(m_callback,\n android.R.layout.simple_list_item_1, android.R.id.text1, list);\n adapter.setSelectedItem(newItemId);\n m_itemList.setAdapter(adapter);\n m_itemId = newItemId;\n m_itemList.setSelection(newItemId);\n }", "@Override\n public Object getItem(int position) {\n return listInfoList.get(position);\n }", "@Override\n public void onClick(View v) { Intent intent = new Intent(v.getContext(), ItemDescriptionActivity.class);\n// intent.putExtra(\"title\", data.get(position).getItems().get(position).getTitle());\n// intent.putExtra(\"description\", data.get(position).getItems().get(position).getDescription());\n// v.getContext().startActivity(intent);\n//\n Intent intent = new Intent(v.getContext(), ItemListActivity.class);\n intent.putExtra(\"id\", data.get(position).getId());\n activityContext.startActivity(intent);\n }", "@Override\n public Object getItem(int position) {\n return itemList.get(position);\n }", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Item item = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.list_layout, parent, false);\n }\n\n // Lookup view for data population\n TextView tvName = convertView.findViewById(R.id.item_textview);\n TextView tvNum = convertView.findViewById(R.id.num_textview);\n\n // TODO\n // Set the text used by tvName and tvNum using the data object\n // This will need to updated once the entity model has been updated\n tvName.setText(item.getName());\n tvNum.setText(item.getNum());\n\n // Return the completed view to render on screen\n return convertView;\n }", "public interface ItemListView {\n\n void showItems(List<ModelItem> items);\n void onItemSelected(ModelItem item);\n\n}", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view,\n int position, long id) {\n Matter matter = adapter.getItem(position);\n // Here you can do the action you want to...\n Toast.makeText(FilterActivity.this, \"ID: \" + matter.get_projeadi() + \"\\nName: \" + matter.get_projekodu(),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n int relpos = position - 1;\n Intent intent = new Intent();\n intent.setClass(InspectTaskList.this, InspectTaskDetail.class);\n // getEntity\n if (list != null && list.size() > relpos) {\n Task task = list.get(relpos);\n String json = new Gson().toJson(task);\n intent.putExtra(AeaConstants.EXTRA_TASK, json);\n startActivityForResult(intent, REQUEST_CODE_TASK_REPORT);\n }\n selectedId = relpos;\n }", "public ItemMenu(JDealsController sysCtrl) {\n super(\"Item Menu\", sysCtrl);\n\n this.addItem(\"Add general good\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.GOODS);\n }\n });\n this.addItem(\"Restourant Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.RESTOURANT);\n }\n });\n this.addItem(\"Travel Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.TRAVEL);\n }\n });\n }", "@Override\n public Object getItem(int position) {\n return allDetail.get(position);\n }", "public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }", "@Override\n public ListViewItem getItem(int position) {\n return list.get(position);\n }", "private void selected(ListSelectionEvent e) {\n\t\tProject project = (Project) list.getSelectedValue();\n\t\tif (project != null) {\n\t\t\tinfo.setText(\"Description: \" + project.getDescription());\n\t\t} else {\n\t\t\tinfo.setText(\"Description: \");\n\t\t}\n\t}", "@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\t\t\n\t\t\n\t\tMarketIndice mi = (MarketIndice) this.getListAdapter().getItem(position); //get MarketIndice object\n\t String name = mi.getmNameIndice();\n\t String lastIndex=mi.getmLastIndex();\n\t double changeRate=mi.getmChangeRate();\n\t String idI =mi.getmId();\n\t String date = mi.getmDateRefresh();\n\t \n\t \n\t Intent intent=new Intent(this,ChoiceActivity.class);\n\t intent.putExtra(\"nName\", name);\n\t intent.putExtra(\"nLastInd\", lastIndex);\n\t intent.putExtra(\"nChangeR\", changeRate);\n\t intent.putExtra(\"nIdI\", idI);\n\t intent.putExtra(\"date\", date);\n\t startActivity(intent);\n\t}", "protected void populateItem(ListItem<T> item) {\n }", "@Override\n public void onBindViewHolder(@NonNull CustomViewHolder customViewHolder, int i) {\n ListItem listItem = listItems.get(i);\n customViewHolder.temp.setText(Double.toString(listItem.getMain().getTemp()));\n// Main main = mainList.get(i);\n// customViewHolder.temp.setText(Double.toString(main.getTemp()));\n customViewHolder.date.setText(listItem.getDtTxt());\n }", "public void handleGetItemDetailsButtonAction(ActionEvent event) {\n String itemID = updateItemItemID.getText();\n try{\n //get the details from mgr\n HashMap itemInfo = updateMgr.getItemInfo(itemID);\n //display on the fields\n updateItemTitle.setText((String)itemInfo.get(Table.BOOK_TITLE));\n updateItemAuthor.setText((String)itemInfo.get(Table.BOOK_AUTHOR));\n updateItemDescription.setText((String)itemInfo.get(Table.BOOK_DESCRIPTION));\n updateItemPublishDate.setText(formatDateString((Calendar)itemInfo.get(Table.BOOK_DATE)));\n updateItemISBN.setText((String)itemInfo.get(Table.BOOK_ISBN));\n updateItemGenre.setText((String)itemInfo.get(Table.BOOK_GENRE));\n //enable item info pane\n updateItemInfoPane.setDisable(false);\n this.tempItemID = itemID;\n }\n catch(ItemNotFoundException | SQLException | ClassNotFoundException e){\n this.displayWarning(\"Error\", e.getMessage());\n } catch (Exception ex) {\n this.displayWarning(\"Error\", ex.getMessage());\n } \n }", "private void cbo_iniNameItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_cbo_iniNameItemStateChanged\n if(listLoaded) {\n String sql = \"select * from item where iName=?\";\n \n try {\n pst = conn.prepareStatement(sql);\n pst.setString(1,cbo_iniName.getSelectedItem().toString());\n rs = pst.executeQuery();\n rs.next(); //Move resultset to the first pointer\n\n txt_iniId.setText(rs.getString(1));\n\n }catch(Exception e) {\n JOptionPane.showMessageDialog(null,\"Item details cannot be found\");\n }finally {\n try{\n rs.close();\n pst.close();\n }catch(Exception e) {}\n }\n }\n }", "public Item getItem() { \n return myItem;\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\tBaseData.item = (String[]) adapter.getItem(arg2);\n\t\t\t\tListIntentActivity.goActivity(ListActivity.this);\n\t\t\t}", "@Override\r\n public void onClick(View view) {\n Intent intent = new Intent(context, DetailActivity.class);\r\n intent.putExtra(\"item\", itemList.get(position));\r\n context.startActivity(intent);\r\n }", "public void itemClick(ItemClickEvent event) {\n \t\tAccount account = ((BeanItemContainer<Account>) accountList\n \t\t\t\t.getContainerDataSource()).getItem(event.getItemId()).getBean();\n \t\tAccountView accountView = new AccountView(account);\n \t\tgetNavigationManager().navigateTo(accountView);\n \t\t((CrmApp) getApplication()).showDetails(account);\n \t\tgetNavigationManager().addListener(new NavigationListener() {\n \t\t\tpublic void navigate(NavigationEvent event) {\n \t\t\t\t((CrmApp) getApplication()).hideDetails();\n \t\t\t}\n \t\t});\n \t}", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n itemname = parent.getItemAtPosition(position).toString();\n }", "public List<Item> getItemList();", "protected void doListEdit() {\r\n String nameInput = mEditTextForList.getText().toString();\r\n\r\n /**\r\n * Set input text to be the current list item name if it is not empty and is not the\r\n * previous name.\r\n */\r\n if (!nameInput.equals(\"\") && !nameInput.equals(mItemName)) {\r\n Firebase firebaseRef = new Firebase(Constants.FIREBASE_URL);\r\n\r\n /* Make a map for the item you are editing the name of */\r\n HashMap<String, Object> updatedItemToAddMap = new HashMap<String, Object>();\r\n\r\n /* Add the new name to the update map*/\r\n updatedItemToAddMap.put(\"/\" + Constants.FIREBASE_LOCATION_SHOPPING_LIST_ITEMS + \"/\"\r\n + mListId + \"/\" + mItemId + \"/\" + Constants.FIREBASE_PROPERTY_ITEM_NAME,\r\n nameInput);\r\n\r\n /* Make the timestamp for last changed */\r\n HashMap<String, Object> changedTimestampMap = new HashMap<>();\r\n changedTimestampMap.put(Constants.FIREBASE_PROPERTY_TIMESTAMP, ServerValue.TIMESTAMP);\r\n\r\n /* Add the updated timestamp */\r\n updatedItemToAddMap.put(\"/\" + Constants.FIREBASE_LOCATION_ACTIVE_LISTS +\r\n \"/\" + mListId + \"/\" + Constants.FIREBASE_PROPERTY_TIMESTAMP_LAST_CHANGED, changedTimestampMap);\r\n\r\n /* Do the update */\r\n firebaseRef.updateChildren(updatedItemToAddMap);\r\n\r\n }\r\n }", "private void updateOverview() {\n\t\t\n\t\t//check if anything is selected\n\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\n\t\t\tnameLabel.setText(itemBox.getName());\n\t\t\tamountLabel.setText(String.valueOf(itemBox.getAmount()) + \"x\");\n\t\t\tgtinLabel.setText(itemBox.getGtin());\n\t\t\tcategoriesLabel.setText(itemBox.getCategoriesText(\"long\"));\n\t\t\tattributesLabel.setText(itemBox.getAttributes());\n\t\t\tlog.info(\"Overview set to \" + itemBox.getName());\n\t\t}\t\n\t}", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }", "@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }", "public List<TaskItemBean> getItemList(){\n return itemList;\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(mContext, ItemDetailsActivity.class);\n\n intent.putExtra(\"name\", modellist.get(postition).getTitle());\n intent.putExtra(\"picture\", modellist.get(postition).getType() + postition);\n intent.putExtra(\"cost\", modellist.get(postition).getCost());\n intent.putExtra(\"id\", modellist.get(postition).getId());\n intent.putExtra(\"description\", modellist.get(postition).getDescription());\n intent.putExtra(\"extra\", modellist.get(postition).getExtra());\n\n mContext.startActivity(intent);\n// Toast.makeText(mContext, \"Make the user see the details of the item\", Toast.LENGTH_SHORT).show();\n }", "public void onListItemClicked(int listviewIndex){\n int id = mIndexList.get(listviewIndex);\n changeFragment(new LebensmittelDetailFragment(), id);\n }", "@Override\n\t public void onItemClick(AdapterView<?> listView, View view, int position, long id) {\n\t // Get the cursor, positioned to the corresponding row in the result set\n\t Cursor cursor = (Cursor) listView.getItemAtPosition(position);\n\t \n\t // Get the Item Number from this row in the database.\n\t String itemNumber = cursor.getString(cursor.getColumnIndexOrThrow(ItemsDbAdapter.COL_DEFINITION));\n\t \n\t // Update the parent class's TextView\n//\t itemView.setText(itemNumber);\n\t t.setText(itemNumber);\n\t Log.w(\"Quantity:\", String.valueOf(itemNumber));\n\t autoCompleteView.setText(cursor.getString(cursor.getColumnIndexOrThrow(ItemsDbAdapter.COL_WORD)));\n\t }", "@Override\r\n\t\tpublic Search_contact_listview_item getItem(int position) {\n\t\t\treturn listItems.get(position);\r\n\t\t}", "public void OnItemListFragmentInteractionListener(ItemContent item) {\n ItemDetailFragment itemDetailFragment = new ItemDetailFragment();\n Bundle args = new Bundle();\n args.putSerializable(ItemDetailFragment.ADS_ITEM_SELECTED, item);\n args.putInt(\"ID\", item.getItemID());\n\n args.putString(\"category\", item.getItemCategory());\n args.putString(\"userName\", item.getSellerUserName());\n itemDetailFragment.setArguments(args);\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment_item_container, itemDetailFragment)\n .addToBackStack(null)\n .commit();\n }", "@Override\n\t\tpublic Object getItem(int index) {\n\t\t\treturn itemList.get(index);\n\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tnew AlertDialog.Builder(List.this).setTitle(\"A\").setMessage(\"B\").setPositiveButton(\"Edit\", new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}).setNegativeButton(\"Delete\", new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}).setNeutralButton(\"Cancel\", new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}\n\t\t\t\t}).setCancelable(false).show();\n\t\t\t}", "@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView;\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.item_layout, parent, false);\n }\n // get the current object located at position\n ItemObject currentObject = getItem(position);\n // Find the TextView in the list_item.xml layout with the ID version_name\n TextView nameTextView = listItemView.findViewById(R.id.item_name);\n nameTextView.setText(currentObject.getPlanetName());\n ImageView itemImage = listItemView.findViewById(R.id.item_img);\n itemImage.setImageResource(currentObject.getImageID());\n return listItemView;\n }", "@Override\n public void onListItemSelected(String asinID,String title,String price) {\n if(UtilityFunctions.isNetworkAvailable(getActivity())) {\n Intent i = new Intent(getActivity(), ProductInformationPageActivity.class);\n i.putExtra(Tag.PIP_URL, Tag.PIP_URL + asinID);\n i.putExtra(Tag.TITLE, title);\n i.putExtra(Tag.PRICE, price);\n startActivity(i);\n }\n else\n {\n Toast.makeText(getActivity(),Tag.NO_INTERNET,Toast.LENGTH_SHORT).show();\n }\n }", "public ItemInfoDTO getItemInfo() {\n return itemInfo;\n }", "@Override\n\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\tListView listView = (ListView) parent;\n\t\t\tString item = (String) listView.getSelectedItem();\n//\t\t\tToast.makeText(SearchGroupActivity.this, \"onItemSelected = \" + item, Toast.LENGTH_LONG).show();\n\t\t}", "@Override\n public void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n\n Artist selectedArtist = artists.get(position);\n String name = selectedArtist.artistName;\n String genre = selectedArtist.artistGenre;\n String label = selectedArtist.artistLabel;\n String city = selectedArtist.artistCity;\n String state = selectedArtist.artistState;\n\n mListener.displayArtist(name, genre, label, city, state);\n\n\n\n }", "@Override\n\tpublic void sendItemListRequest() {\n\t\ttry {\n\t\t\tString xml = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\txml = server.getItems();\n\t\t\t} else {\n\t\t\t\tWebResource itemListReqService = service.path(URI_GETITEMS);\n\t\t\t\txml = itemListReqService.accept(MediaType.TEXT_XML).get(String.class);\n\t\t\t}\n\t\t\n\t\t\tArrayList<ItemObject> items = XMLParser.parseToListItemObject(xml);\n\t\t\tgui.setTableContent(items);\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClientHandlerException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!!\");\n\t\t} catch (WebServiceException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!!\");\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n\n final ListModel LM = new ListModel();\n LM.strMainAsset=\"images/custom/custom_main.png\";\n LM.strListName=((EditText)V.findViewById(R.id.edit_list_create_name)).getText().toString();\n LM.strRowThImage=\"images/custom/custom_th.png\";\n LM.strRowImage=null;\n \n// LM.strRowBGImage=\"images/custom/custom_content.png\";\n\n ListItemRowModel LIM=new ListItemRowModel(AppState.getInstance().CurrentProduct.strId);\n\n LM.items.add(LIM);\n\n //add it to my lists\n AppState.getInstance().myList.items.add(LM);\n\n //set the title\n ((TextView)V.findViewById(R.id.text_list_add_create)).setText(\"List Created!\");\n\n\n\n //show the created layout\n LinearLayout layoutCreated=(LinearLayout)V.findViewById(R.id.layout_add_list_created);\n layoutCreated.setVisibility(View.VISIBLE);\n layoutCreated.setAlpha(0f);\n layoutCreated.animate().alpha(1).setDuration(300);\n\n\n //hide the form\n V.findViewById(R.id.layout_create_form).setVisibility(View.GONE);\n\n //set the propper title\n ((TextView)V.findViewById(R.id.text_list_created)).setText(LM.strListName);\n\n //set public or not\n if(!((CheckBox)V.findViewById(R.id.checkbox_add_list_create)).isChecked())\n ((TextView) V.findViewById(R.id.text_list_created_public)).setText(\"This list is public\");\n else\n ((TextView) V.findViewById(R.id.text_list_created_public)).setText(\"This list is private\");\n\n\n V.findViewById(R.id.btn_view_created).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dismiss();\n\n AppState.getInstance().CurrentList=LM;\n ListViewFragment listViewFragment= new ListViewFragment();\n\n Bundle args = new Bundle();\n args.putInt(ListFragment.ARG_PARAM1, R.layout.layout_list);\n args.putString(ListFragment.ARG_PARAM2, \"list\");\n listViewFragment.setArguments(args);\n\n ((MainActivity)getActivity()).setFragment(listViewFragment, FragmentTransaction.TRANSIT_FRAGMENT_OPEN,false);\n }\n });\n\n\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tquyuID=list.get(arg2).getId();\n\t\t\t\tpage=1;\n\t\t\t\tmList.clear();\n\t\t\t\tloadGoodsList(typeID, quyuID, PriceID);\n\t\t\t\tmTbQuyu.setTextOff(list.get(arg2).getName());\n\t\t\t\tmTbQuyu.setTextOn(list.get(arg2).getName());\n\t\t\t\tmTbQuyu.setChecked(false);\n\t\t\t}", "@Override\n\t\tpublic void chooseItem(int index, View convertView) {\n\t\t\tgetDeliveryList(true, convertView);\n\t\t}", "private ListItem buildListItem(int menuItemId) {\n return new ListItem(ListItemType.MENU_ITEM,\n new PropertyModel.Builder(TabSelectionEditorActionProperties.MENU_ITEM_KEYS)\n .with(TabSelectionEditorActionProperties.MENU_ITEM_ID, menuItemId)\n .build());\n }", "@Override\n public void onClick(View v) {\n String item = list.get(position).toString();\n Intent intent = new Intent(holder.pname.getContext(),Add_Updatelead__bankresult_Activity.class);\n intent.putExtra(\"itemName\",item);\n intent.putExtra(\"invoice\", pveo);\n holder.pname.getContext().startActivity(intent);\n\n }", "public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}", "ICpItem getCpItem();", "public interface MeleteItemDetail\n{\n\t/**\n\t * @return The item's status.\n\t */\n\tItemAccessStatus getAccessStatus();\n\n\t/**\n\t * @return The close date.\n\t */\n\tDate getCloseDate();\n\n\t/**\n\t * @return A display title for the section's module.\n\t */\n\tString getModuleTitle();\n\n\t/**\n\t * @return The number of \"Student\" participants who have viewed this section. TODO: drop\n\t */\n\tInteger getNumViewed();\n\n\t/**\n\t * @return The open date.\n\t */\n\tDate getOpenDate();\n\n\t/**\n\t * @return The percent (0..100) of \"Student\" participants who have viewed this section.\n\t */\n\tInteger getPctViewed();\n\n\t/**\n\t * @return A display title for the section.\n\t */\n\tString getTitle();\n\n\t/**\n\t * @return The total number of \"Student\" participants who have access to this section. TODO: drop\n\t */\n\tInteger getTotal();\n}" ]
[ "0.66408247", "0.65520567", "0.6211376", "0.6209997", "0.61590296", "0.6113294", "0.6101228", "0.6081464", "0.60573226", "0.60568184", "0.6048962", "0.60411996", "0.5995978", "0.59942967", "0.5989785", "0.5947522", "0.59408337", "0.5932048", "0.5921784", "0.59155154", "0.589818", "0.58966523", "0.58960724", "0.5869648", "0.58682615", "0.5861076", "0.5860853", "0.58573616", "0.5856422", "0.58498114", "0.58422565", "0.5830989", "0.58083415", "0.5807822", "0.58031", "0.5790233", "0.57753795", "0.57657254", "0.57526386", "0.5747372", "0.57470393", "0.5746902", "0.57464916", "0.57460505", "0.5740952", "0.573846", "0.57324976", "0.5726101", "0.57250714", "0.5723339", "0.5723168", "0.5718275", "0.5715503", "0.57120097", "0.571102", "0.57095206", "0.5706218", "0.5701421", "0.56969833", "0.56963044", "0.5692971", "0.5691458", "0.56882143", "0.5678673", "0.5674956", "0.5673008", "0.5671616", "0.56586623", "0.56583625", "0.56580764", "0.5643946", "0.56421894", "0.56401014", "0.5639092", "0.56319404", "0.56298494", "0.56294715", "0.5617857", "0.5617857", "0.56175673", "0.5614446", "0.5613481", "0.56088746", "0.56074685", "0.5604436", "0.56020266", "0.5600283", "0.5597305", "0.55940354", "0.5586306", "0.5576805", "0.5574237", "0.5573511", "0.557296", "0.5560849", "0.55597353", "0.555516", "0.5553857", "0.5553146", "0.5550726", "0.55475146" ]
0.0
-1
TODO Autogenerated method stub
@Override protected Volga clone() throws CloneNotSupportedException { Volga v = (Volga) super.clone(); v.modelname = v.modelname + "-clone"; return v; }
{ "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
AgileSet Constructor with zero initial current size. Creates an empty AgileSet with a current size of zero.
public AgileSet() { currentSize = 0.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AgileSet(double initialCurrentSize) {\n currentSize = initialCurrentSize;\n }", "private EmptySet() {}", "public ArraySet() {\n\t\tthis(DEFAULT_CAPACITY);\n\t}", "public static FeatureSet empty() {\n return new FeatureSet(ImmutableSet.of(), ImmutableSet.of());\n }", "static Set createEmpty() {\n return new EmptySet();\n }", "public IntegerSet() {\n elements = new int[MAX_SIZE];\n size = 0;\n }", "public EfficientTerminalSet empty() {\n return new EfficientTerminalSet(terminals, indices, new int[data.length]);\n }", "public OpenHashSet() {\n this(DEFAULT_HIGHER_CAPACITY, DEFAULT_LOWER_CAPACITY);\n }", "public HeapSet () {\r\n\t\tsuper ();\r\n\t}", "public HeapSet (int initialCapacity) {\r\n\t\tsuper (initialCapacity);\r\n\t}", "static IntSet empty() {\n if (emptySet == null) {\n emptySet = new EmptySet();\n }\n return emptySet;\n }", "public Set(){\n setSet(new int[0]);\n }", "private EmptySortedSet() {\n }", "public IntHashSet(int initialCapacity) {\n this(initialCapacity, 0.75f);\n }", "public RandomizedSet() {\r\n\t\tbucket = new BucketItem[BUCKET_SIZE];\r\n\t}", "@Test\r\n public void sizeEmpty() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n assertEquals(0, s.size());\r\n }", "public IndexedSet(final int initialCapacity) {\n elements = new ArrayList<>(initialCapacity);\n indexByElement = new Object2IntOpenHashMap<>(initialCapacity);\n }", "public IdentificationSet(int initialCapacity) {\n map = new HashMap<>(initialCapacity);\n init();\n }", "public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }", "protected Set() {\n size = 0;\n set = new int[TEN];\n }", "public RandomizedSet() {\n }", "public MySet(int size) {\n table = (HashNode<E>[]) new HashNode[size];\n }", "public OCRSet(int initialCapacity) {\r\n this.map = new HashMap<Integer, E>(initialCapacity);\r\n }", "public PointSET() { // construct an empty set of points\n\n }", "private Set() {\n this(\"<Set>\", null, null);\n }", "public MyHashSet() {\n nodes = new Node[Max_Size];\n }", "@SuppressWarnings(\"unchecked\") // Nested sets are immutable, so a downcast is fine.\n <E> NestedSet<E> emptySet() {\n return (NestedSet<E>) emptySet;\n }", "public RandomizedSet() {\r\n set = new HashSet<>();\r\n }", "public RandomizedSet() {\n map = new HashMap<Integer, Integer>();\n set = new ArrayList<Integer>();\n int validLength = 0;\n }", "public RandomizedSet() {\n set = new HashSet<Integer>();\n }", "public HashMultiSet() {\n\t\thMap = new HashMap<T, Integer>();\n\t\tsize = 0;\n\t}", "public SetSet() {\n\t}", "public void makeEmpty(){\n for(int element = set.length - 1; element >= 0; element--){\n remove(set[element]);\n }\n }", "public LinkedHashSet() {\n this(10);\n }", "public EmployeeSet()\n\t{\n\t\tnumOfEmployees = 0;\n\t\temployeeData = new Employee[10];\n\t}", "public RandomizedSet() {\n m = new HashMap<>();\n l = new ArrayList<>();\n }", "public AbstractHashSet(int initialCapacity) {\n\t\tmap = new DelegateAbstractHashMap(initialCapacity, this);\n\t}", "public SortedSet() {\n\n }", "public ZYArraySet(int initLength){\n if(initLength<0)\n throw new IllegalArgumentException(\"The length cannot be nagative\");\n elements = (ElementType[])new Object[initLength];\n }", "public ClosedHashSet(){\r\n super();\r\n buildHashSet(capacity(), hashSet);\r\n }", "public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}", "public ArrayContainer() {\n this(DEFAULT_CAPACITY);\n }", "public ArrayIndexedCollection(int initialCapacity) {\n\t\tif (initialCapacity < 1)\n\t\t\tthrow new IllegalArgumentException(\"Kapacitet ne smije biti manji od 1!!!\");\n\n\t\tsize = 0;\n\t\tthis.elements = new Object[initialCapacity];\n\t}", "public void clear() {\n\t\tthis.set.clear();\n\t\tthis.size = 0;\n\t}", "public OccList reset()\n {\n size = 0;\n return this;\n }", "public RandomizedSet() {\n list = new ArrayList<>();\n map = new HashMap<>();\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic DesignHashSet() {\n\t\t// Array of ArrayLists.\n\t\tset = (List<Integer>[]) new ArrayList[MAX_LEN];\n\t}", "public ArrayIndexedCollection() {\n\t\tthis(DEFAULT_INITIAL_CAPACITY);\n\t}", "public MyTreeSet()\r\n {\r\n root = null;\r\n }", "public IntHashSet() {\n this(20, 0.75f);\n }", "private DisjointSet() {\n throw new UnsupportedOperationException(\"Creating an empty Disjoint Set\");\n }", "public ARGReachedSet(ReachedSet pReached) {\n mReached = checkNotNull(pReached);\n// mUnmodifiableReached = new UnmodifiableReachedSetWrapper(mReached);\n }", "public RandomizedSet() {\r\n rehash(16, null);\r\n random = new Random();\r\n }", "public RandomizedSet() {\n realSet = new HashSet<>();\n allSet = new Integer[10];\n random = new Random();\n }", "public ArrayIndexedCollection() {\n\t\tthis(defaultCapacity);\n\t}", "public DisjointSet() {}", "public RandomizedSet() {\n map = new HashMap<>();\n }", "public IntHashSet()\n/* */ {\n/* 69 */ this(0, 0.3D);\n/* */ }", "public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}", "GuppySet(int numberOfGuppies, int minAge, int maxAge,\n double minHealthCoefficient, double maxHealthCoefficient) {\n this.numberOfGuppies = numberOfGuppies;\n this.minAge = minAge;\n this.maxAge = maxAge;\n this.minHealthCoefficient = minHealthCoefficient;\n this.maxHealthCoefficient = maxHealthCoefficient;\n }", "public RandomizedSet() {\n set = new HashMap<>();\n list = new ArrayList<>();\n }", "protected Object newInitialFlow() {\n\t\treturn emptySet.clone();\n\t}", "@Override\r\n\tpublic void clear() {\n\t\tset.clear();\r\n\t}", "public StatsSet() {\n this(DSL.name(\"stats_set\"), null);\n }", "public RandomizedSet() {\n nums = new ArrayList<Integer>();\n location = new HashMap<Integer, Integer>();\n }", "void setEmpty() {\n this.lo = 1;\n this.hi = 0;\n }", "public Universe() {\n\t\tset = new HashSet<T>();\n\t}", "public HashMultiSet() {\r\n\t\tbaseMap = new HashMap<>();\r\n\t}", "public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}", "@Test \r\n\t\tpublic void testIsEmpty() {\n\t\ttestingSet= new IntegerSet();\r\n\t\tassertTrue(testingSet.isEmpty()); // empty list = true \r\n\t\tassertFalse(!testingSet.isEmpty());// !empty list = false\r\n\t\t}", "public Ch705DesignHashset() {\n data = new LinkedList[BASE];\n for (int i = 0; i < BASE; ++i) {\n data[i] = new LinkedList<Integer>();\n }\n }", "public static UserAggregate buildEmpty() {\n return new UserAggregate();\n }", "ClusterSet() {\n }", "public MyHashSet() {\n \n }", "public void zero() {\n fill(0);\n }", "Set createSet();", "public MyHashSet() {\n hset = new boolean[bucket][]; //get the second array size only if it is required : space conservation if possible\n }", "public SparseSet(int size) {\n\n\t sparse = new int[size];\n\t dense = new int[size];\n\t members = 0;\n\t \n\t // Added so value 0 can be added first.\n\t // TODO, test if that is still necessary after fixing a rare bug with addition.\n\t dense[0] = -1;\n\t}", "@Override\n\tpublic void setEmpty() {\n\t\t\n\t}", "public Set getFullSet(int iteration) {\r\n Dataset Data = getFullDataset(iteration);\r\n return new TreeSet(Data.getEntries());\r\n }", "public void makeEmpty() {\n for (int i = 0; i < buckets.length; i++) {\n buckets[i] = new SList();\n }\n size = 0;\n }", "public SetOfRanges() {\n RangeSet = new Vector();\n }", "public MyHashSet() {\n s = new ArrayList<>();\n }", "public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn set.isEmpty();\r\n\t}", "public RandomizedSet() {\n data=new ArrayList<>();\n valueIndex=new HashMap<>();\n random=new Random();\n }", "public IdentificationSet() {\n map = new HashMap<>();\n init();\n }", "public Stack() {\r\n\t\tthis(capacity);\r\n\t}", "public Guppy() {\n this(DEFAULT_GENUS, DEFAULT_SPECIES, 0, true, 0,\n DEFAULT_HEALTH_COEFFICIENT);\n }", "public EmptySea() {\r\n\t\tsuper(EmptySea.length);\r\n\t\t\r\n\t}", "public Builder clearAois() {\n if (aoisBuilder_ == null) {\n aois_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n aoisBuilder_.clear();\n }\n return this;\n }", "public OwnMap(int capacity) {\n super(capacity);\n keySet = new OwnSet();\n }", "public Dataset getEmptyDataset() {\r\n\t\treturn InitialData.emptyClone();\r\n\t}", "public RandomizedSet() {\n list = new HashSet<>();\n\n }", "@Test(expected = NullPointerException.class)\r\n\t\tpublic void testCreateSetFromNull() {\n\t\t\ttestingSet = new IntegerSet(null); \r\n\t\t}", "public void makeEmpty() {\n defTable = new DList[sizeBucket];\n for(int i=0; i<sizeBucket; i++) {\n defTable[i] = new DList();\n }\n size = 0;\n }", "public ApproximationOne(Graph g)\n\t{\n\t\tsets = new DisjointSets(g.getNumNodes());\n\t\tneighborhoodArray = new int[getSetsArray().length];\n\t}", "public IdentificationSet(int initialCapacity, float loadFactor) {\n map = new HashMap<>(initialCapacity, loadFactor);\n init();\n }", "public static <T extends Comparable> Set<T> CreateSortedSet() {\n return new TreeSet<>();\n }", "public HashSet(){\n this(17);\n }" ]
[ "0.7069702", "0.66527116", "0.66525304", "0.6511162", "0.6504192", "0.63294816", "0.6268445", "0.6158955", "0.6154344", "0.61232436", "0.60811764", "0.5964392", "0.5913819", "0.5864459", "0.5833958", "0.58223987", "0.5819767", "0.57628363", "0.57560086", "0.573225", "0.56807935", "0.56708115", "0.5662833", "0.5659737", "0.56548375", "0.56398004", "0.5597973", "0.5582537", "0.5548175", "0.5512029", "0.55073136", "0.54991627", "0.5476853", "0.54630494", "0.5460686", "0.54289573", "0.5422404", "0.5412403", "0.5411984", "0.5411133", "0.5392225", "0.5376573", "0.5367612", "0.5361639", "0.53606945", "0.53595114", "0.5346897", "0.53466904", "0.53456086", "0.53272533", "0.531543", "0.53030497", "0.5300041", "0.52950686", "0.5293889", "0.52938473", "0.5291333", "0.5279663", "0.5261249", "0.52597904", "0.52492124", "0.52290535", "0.5225262", "0.52213025", "0.52203083", "0.52124846", "0.5206629", "0.520083", "0.5199322", "0.51907235", "0.5174757", "0.51699907", "0.5169537", "0.51614517", "0.5155905", "0.5152941", "0.5151002", "0.51493126", "0.51401347", "0.5130277", "0.51269853", "0.5125738", "0.51134145", "0.51015073", "0.50993794", "0.5097791", "0.50931805", "0.50896347", "0.5087171", "0.5085027", "0.50843656", "0.50810134", "0.5078684", "0.50775653", "0.50683534", "0.5065911", "0.50560826", "0.5049846", "0.50370616", "0.50327283" ]
0.82458574
0
AgileSet Constructor with a specified initial current size. Creates an empty AgileSet with the specified current size value.
public AgileSet(double initialCurrentSize) { currentSize = initialCurrentSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AgileSet() {\n currentSize = 0.0;\n }", "public HeapSet (int initialCapacity) {\r\n\t\tsuper (initialCapacity);\r\n\t}", "public ArraySet() {\n\t\tthis(DEFAULT_CAPACITY);\n\t}", "public IntHashSet(int initialCapacity) {\n this(initialCapacity, 0.75f);\n }", "public IdentificationSet(int initialCapacity) {\n map = new HashMap<>(initialCapacity);\n init();\n }", "public MySet(int size) {\n table = (HashNode<E>[]) new HashNode[size];\n }", "public OpenHashSet() {\n this(DEFAULT_HIGHER_CAPACITY, DEFAULT_LOWER_CAPACITY);\n }", "public OCRSet(int initialCapacity) {\r\n this.map = new HashMap<Integer, E>(initialCapacity);\r\n }", "public IndexedSet(final int initialCapacity) {\n elements = new ArrayList<>(initialCapacity);\n indexByElement = new Object2IntOpenHashMap<>(initialCapacity);\n }", "public IntegerSet() {\n elements = new int[MAX_SIZE];\n size = 0;\n }", "public BoundedTreeSet(int size) {\n\t\tthis.size = size;\n\t}", "public HeapSet () {\r\n\t\tsuper ();\r\n\t}", "public LinkedHashSet() {\n this(10);\n }", "static Set createEmpty() {\n return new EmptySet();\n }", "public AbstractHashSet(int initialCapacity) {\n\t\tmap = new DelegateAbstractHashMap(initialCapacity, this);\n\t}", "private EmptySet() {}", "public RandomizedSet() {\r\n\t\tbucket = new BucketItem[BUCKET_SIZE];\r\n\t}", "public IdentificationSet(int initialCapacity, float loadFactor) {\n map = new HashMap<>(initialCapacity, loadFactor);\n init();\n }", "protected Set() {\n size = 0;\n set = new int[TEN];\n }", "public IntHashSet() {\n this(20, 0.75f);\n }", "public MyHashSet() {\n nodes = new Node[Max_Size];\n }", "public Set(){\n setSet(new int[0]);\n }", "public IntHashSet(int initialCapacity, float loadFactor) {\n super();\n if (initialCapacity < 0) {\n throw new IllegalArgumentException(\"Illegal Capacity: \" + initialCapacity);\n }\n if (loadFactor <= 0) {\n throw new IllegalArgumentException(\"Illegal Load: \" + loadFactor);\n }\n if (initialCapacity == 0) {\n initialCapacity = 1;\n }\n\n this.loadFactor = loadFactor;\n table = new Entry[initialCapacity];\n threshold = (int) (initialCapacity * loadFactor);\n }", "public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }", "public ArrayIndexedCollection(int initialCapacity) {\n\t\tif (initialCapacity < 1)\n\t\t\tthrow new IllegalArgumentException(\"Kapacitet ne smije biti manji od 1!!!\");\n\n\t\tsize = 0;\n\t\tthis.elements = new Object[initialCapacity];\n\t}", "public SparseSet(int size) {\n\n\t sparse = new int[size];\n\t dense = new int[size];\n\t members = 0;\n\t \n\t // Added so value 0 can be added first.\n\t // TODO, test if that is still necessary after fixing a rare bug with addition.\n\t dense[0] = -1;\n\t}", "public ZYArraySet(int initLength){\n if(initLength<0)\n throw new IllegalArgumentException(\"The length cannot be nagative\");\n elements = (ElementType[])new Object[initLength];\n }", "public static FeatureSet empty() {\n return new FeatureSet(ImmutableSet.of(), ImmutableSet.of());\n }", "public RandomizedSet() {\n map = new HashMap<Integer, Integer>();\n set = new ArrayList<Integer>();\n int validLength = 0;\n }", "public ClosedHashSet(){\r\n super();\r\n buildHashSet(capacity(), hashSet);\r\n }", "public RandomizedSet() {\n }", "public OCRSet(int initialCapacity, float loadFactor) {\r\n this.map = new HashMap<Integer, E>(initialCapacity, loadFactor);\r\n }", "@Test\r\n public void sizeEmpty() throws Exception {\r\n TreeSet<String> s = new TreeSet<>();\r\n assertEquals(0, s.size());\r\n }", "public ArrayContainer() {\n this(DEFAULT_CAPACITY);\n }", "GuppySet(int numberOfGuppies, int minAge, int maxAge,\n double minHealthCoefficient, double maxHealthCoefficient) {\n this.numberOfGuppies = numberOfGuppies;\n this.minAge = minAge;\n this.maxAge = maxAge;\n this.minHealthCoefficient = minHealthCoefficient;\n this.maxHealthCoefficient = maxHealthCoefficient;\n }", "public ArrayIndexedCollection(int initialCapacity) {\n\t\tif (initialCapacity < 1) {\n\t\t\tthrow new IllegalArgumentException(\"Cannot instantiate ArrayIndexedCollection with capacity less than 1.\");\n\t\t}\n\n\t\tcapacity = initialCapacity;\n\t\telements = new Object[initialCapacity];\n\t}", "public AbstractHashSet(int initialCapacity, float loadFactor) {\n\t\tmap = new DelegateAbstractHashMap(initialCapacity, loadFactor, this);\n\t}", "static IntSet empty() {\n if (emptySet == null) {\n emptySet = new EmptySet();\n }\n return emptySet;\n }", "public Population(int capacity) {\r\n Validate.positive(capacity, \"capacity\");\r\n this.capacity = capacity;\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic DesignHashSet() {\n\t\t// Array of ArrayLists.\n\t\tset = (List<Integer>[]) new ArrayList[MAX_LEN];\n\t}", "public IntHashSet()\n/* */ {\n/* 69 */ this(0, 0.3D);\n/* */ }", "public RandomizedSet() {\r\n set = new HashSet<>();\r\n }", "private Set() {\n this(\"<Set>\", null, null);\n }", "public RandomizedSet() {\n set = new HashSet<Integer>();\n }", "public HashSet(){\n this(17);\n }", "Set createSet();", "public EmployeeSet()\n\t{\n\t\tnumOfEmployees = 0;\n\t\temployeeData = new Employee[10];\n\t}", "public Heap(int initialCapacity) {\r\n\t\tthis(initialCapacity, null);\r\n\t}", "public HashMultiSet() {\n\t\thMap = new HashMap<T, Integer>();\n\t\tsize = 0;\n\t}", "public EfficientTerminalSet empty() {\n return new EfficientTerminalSet(terminals, indices, new int[data.length]);\n }", "public OwnMap(int capacity) {\n super(capacity);\n keySet = new OwnSet();\n }", "public Stack() {\r\n\t\tthis(capacity);\r\n\t}", "public RegionSet(boolean sorted) {\n this(10, sorted);\n }", "public void initialize(int size);", "public IdentificationSet(int initialCapacity, boolean allow) {\n map = new HashMap<>(initialCapacity);\n allowElementsWithoutIdentification = allow;\n init();\n }", "public Zoo(int inCapacity) {\n if (inCapacity < 1) {\n throw new IllegalArgumentException(\"Error: Invalid Capacity. Must be Int > 0.\");\n }\n zooAnimals = new Vector < Animal > (inCapacity);\n this.capacity = inCapacity;\n }", "public HeapSet (Collection<T> collection) {\r\n\t\tsuper (collection);\r\n\t\tHeapSet.heapify (this);\r\n\t}", "public RandomizedSet() {\n realSet = new HashSet<>();\n allSet = new Integer[10];\n random = new Random();\n }", "private void buildHashSet(int capacity, ClosedHashCell[] hashSet){\r\n for (int i=0; i < capacity; i++){\r\n hashSet[i] = new ClosedHashCell();\r\n }\r\n }", "public ArrayIndexedCollection() {\n\t\tthis(DEFAULT_INITIAL_CAPACITY);\n\t}", "public RandomizedSet() {\n m = new HashMap<>();\n l = new ArrayList<>();\n }", "public ArrayMap(int initialCapacity) {\n this.initialCapacity = initialCapacity;\n clear();\n }", "public RandomizedSet() {\n nums = new ArrayList<Integer>();\n location = new HashMap<Integer, Integer>();\n }", "Collection<?> create(int initialCapacity);", "public RandomizedSet() {\r\n rehash(16, null);\r\n random = new Random();\r\n }", "public ArrayList(int initialCapacity) {\n\t\tthis(initialCapacity, 75);\n\t}", "public BasicOrderedSeries( final int initialCapacity )\n\t{\n\t\tsuper( initialCapacity );\n\t}", "public PointSET() { // construct an empty set of points\n\n }", "public ArrayIndexedCollection() {\n\t\tthis(defaultCapacity);\n\t}", "public void initialize(int size) {\n setMaxSize(size);\n }", "public static IntervalSet of(int a) {\n\t\tIntervalSet s = new IntervalSet();\n\t\ts.add(a);\n\t\treturn s;\n\t}", "public BoundedTreeSet(Comparator<? super E> comparator, int size) {\n\t\tsuper(comparator);\n\t\tthis.size = size;\n\t}", "public DeterministicHashMap(int initialCapacity) {\n super(initialCapacity);\n }", "public TSPChromosome(int size) {\t\n\t\tfor(int g=0; g<size; g++){\n\t\t\tgenes.add(new Integer(-1));\n\t\t}\n\t\tinit();\n\t}", "public DTCCollection(final int initialCapacity) {\n\t\tsuper(initialCapacity);\n\t}", "public MyStack() {\r\n\t\tthis(DEFAULT_CAPACITY);\r\n\t}", "public TOrderedHashMap(final int initialCapacity) {\n\t\tsuper(initialCapacity);\n\t}", "public HashMultiSet() {\r\n\t\tbaseMap = new HashMap<>();\r\n\t}", "public RandomizedSet() {\n list = new ArrayList<>();\n map = new HashMap<>();\n }", "public Guppy() {\n this(DEFAULT_GENUS, DEFAULT_SPECIES, 0, true, 0,\n DEFAULT_HEALTH_COEFFICIENT);\n }", "public Ch705DesignHashset() {\n data = new LinkedList[BASE];\n for (int i = 0; i < BASE; ++i) {\n data[i] = new LinkedList<Integer>();\n }\n }", "public MyHashSet() {\n hset = new boolean[bucket][]; //get the second array size only if it is required : space conservation if possible\n }", "public Population(int size, ArrayList<Individual> KIS){\n this.size = size;\n this.individuals = KIS;\n }", "public RandomizedSet() {\n map = new HashMap<>();\n }", "public IdentityMap(int size) {\n maxSize = size;\n searchKey = new CacheKey(new Vector(1), null, null);\n }", "public Stack(int size) {\n stack = new Object[size];\n minStackSize = size;\n top = -1;\n }", "protected Object newInitialFlow() {\n\t\treturn emptySet.clone();\n\t}", "private EmptySortedSet() {\n }", "public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}", "public HashSet(int bucketsLength)\n {\n buckets = new Node[bucketsLength];\n currentSize = 0;\n }", "public IdentificationSet(int initialCapacity, float loadFactor, boolean allow) {\n map = new HashMap<>(initialCapacity, loadFactor);\n allowElementsWithoutIdentification = allow;\n init();\n }", "@SuppressWarnings(\"unchecked\")\n public ArrayList(int initialCap) {\n list = (E[])new Object[0];\n capacity = initialCap;\n size = 0;\n }", "public NavStack(int size) {\n super();\n maxSize = size;\n }", "public AgentBuilderDictionary(int initialCapacity) {\n\t\tsuper(initialCapacity);\n\t}", "public SetSet() {\n\t}", "public AbstractIntHashMap(int initialCapacity) {\n this(initialCapacity, DEFAULT_LOADFACTOR);\n }", "public StatsSet() {\n this(DSL.name(\"stats_set\"), null);\n }", "OCRSet(int initialCapacity, float loadFactor, boolean dummy) {\r\n this.map = new LinkedHashMap<Integer, E>(initialCapacity, loadFactor);\r\n }", "public HAMap(int initialCapacity, double loadFactor) {\n buckets = new ArrayList<>();\n for (int i = 0; i < initialCapacity; i++) {\n buckets.add(new ArrayList<>());\n }\n keySet = new HashSet<>();\n numBuckets = initialCapacity;\n numEntries = 0;\n this.loadFactor = loadFactor;\n }", "public HeapPriorityQueue(int size)\n\t{\n\t\tstorage = new Comparable[size + 1];\n\t\tcurrentSize = 0;\n\t}" ]
[ "0.80895615", "0.6677992", "0.6457227", "0.6419472", "0.62766874", "0.618224", "0.61338437", "0.61065006", "0.60773194", "0.60211086", "0.6013675", "0.6005501", "0.5728773", "0.57243", "0.5720536", "0.5709787", "0.57027626", "0.567382", "0.55639094", "0.5546745", "0.5528826", "0.54667485", "0.54375774", "0.54287237", "0.5408683", "0.54022753", "0.5371165", "0.535116", "0.5335565", "0.5287583", "0.5284866", "0.5280845", "0.527349", "0.5272804", "0.5245496", "0.52434564", "0.52376735", "0.5214876", "0.51918614", "0.51916856", "0.518947", "0.51875865", "0.51864094", "0.5176147", "0.5169079", "0.5164084", "0.5163392", "0.5162604", "0.51614386", "0.5160819", "0.51499957", "0.5144038", "0.51411295", "0.514083", "0.51316243", "0.5107914", "0.5101154", "0.5096358", "0.50960034", "0.50875133", "0.5064375", "0.5061344", "0.50525", "0.5049564", "0.50349516", "0.50319636", "0.50302887", "0.5028588", "0.5025068", "0.50141203", "0.50095433", "0.5003919", "0.50015694", "0.5000465", "0.49938482", "0.499156", "0.4991291", "0.49761322", "0.49742404", "0.49641237", "0.4960957", "0.49581084", "0.49578828", "0.4957213", "0.49568984", "0.49456516", "0.494537", "0.49414173", "0.49381202", "0.4933081", "0.49329218", "0.49279395", "0.49248415", "0.4922897", "0.49175525", "0.4915921", "0.49116975", "0.49021637", "0.49011835", "0.48993358" ]
0.8072951
1
Adds the specified AgileObject to this set if it is not already present. If the set already contains the object, the call leaves the set unchanged and returns false. Implementation Note A successful add operation results in this AgileSet's internal current size and incapacity size fields being set to a negative number. This is done in order to flag the agile size retrieval methods to recalculate the values on the next call.
public boolean add(T item) { boolean addSuccessful = items.add(item); if (addSuccessful) { currentSize = -1.0; inCapacitySize = -1.0; } return addSuccessful; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean add(Building object) {\n\t\tif (contains(object)) {\n\t\t\tsuper.remove(object);\n\t\t}\n\t\tsuper.add(object);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean add(Object obj) {\n\t\treturn util.add(obj);\n\t}", "public boolean add(E obj)\r\n {\r\n int originalSize = this.size();\r\n listIterator(originalSize).add(obj);\r\n return originalSize != this.size();\r\n }", "public boolean add(@NonNull T object) {\n final boolean added = data.add(object);\n notifyItemInserted(data.size() + 1);\n return added;\n }", "public boolean add (T obj) {\r\n\t\tboolean result = _list.add (obj);\r\n\t\tHeapSet.siftUp (this, _list.size () - 1);\r\n\t\treturn result;\r\n\t}", "boolean add(Object object) ;", "public boolean add(E o) {\r\n if (o == null)\r\n return false;\r\n if (this.map.containsKey(o.hashCode())) {\r\n return false;\r\n }\r\n return this.map.put(o.hashCode(), o) == null;\r\n }", "public boolean add(final Object obj) {\n maintain();\n\n SoftObject soft = SoftObject.create(obj, queue);\n \n return collection.add(soft);\n }", "public boolean add(ElementType element){\n if(this.contains(element)){\n return false;\n }\n else{\n if(size==capacity){\n reallocate();\n }\n elements[size]=element;\n size++;\n }\n return true;\n }", "public boolean add(Object o) {\n\t\treturn map.put(o, PRESENT) == null;\n\t}", "@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }", "public void add(Comparable object) {\r\n\r\n // Implement Insertion Sort\r\n for (int i = 0; i < size(); i++) {\r\n if (object.compareTo(get(i)) <= 0) {\r\n add(i, object);\r\n return;\r\n }\r\n }\r\n addLast(object);\r\n }", "public boolean add (Object o) {return addLast(o);}", "@Override\r\n public void add(IMObject object) {\r\n cache.add(object);\r\n }", "public boolean insert(E object){\r\n if(isFull())\r\n return false;\r\n \r\n //find index to insert object\r\n int loc = findInsertPoint(object, 0, currentSize-1);\r\n\r\n //right shift\r\n for(int i = currentSize-1; i >= loc; i--){\r\n queue[i+1] = queue[i];\r\n }\r\n\r\n queue[loc] = object; //insert object\r\n currentSize++; //accomodate for inserted object by adding to array size\r\n\r\n return true;\r\n }", "@Override\n public boolean add(E e) {\n notNull(e);\n if (size >= elementData.length) {\n int newCapacity = (elementData.length << 1);\n elementData = Arrays.copyOf(elementData, newCapacity);\n }\n elementData[size++] = e;\n return true;\n }", "public synchronized void addObject(E obj) {\n\t\twrappedSet.add((E) obj);\n\t}", "@Override\n public boolean add(E e) {\n return offer(e);\n }", "public void addObject(T object)\r\n\t{\r\n\t\tif(cache.size() == maxStorage) //if full\r\n\t\t{\r\n\t\t\tif(cache.contains(object)) //if full and already in cache\r\n\t\t\t{\r\n\t\t\t\tcache.remove(object);\r\n\t\t\t\tcache.addFirst(object);\r\n\t\t\t\thits++;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse //if full but not in cache\r\n\t\t\t{\r\n\t\t\t\tcache.removeLast();\r\n\t\t\t\tcache.addFirst(object);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse if(cache.size() < maxStorage) //if there is still room in the cache\r\n\t\t{\r\n\t\t\tif(cache.contains(object)) //if object is already in cache\r\n\t\t\t{\r\n\t\t\t\tcache.remove(object);\r\n\t\t\t\tcache.addFirst(object);\r\n\t\t\t\thits++;\r\n\t\t\t}\r\n\t\t\telse //if object is not already in cache\r\n\t\t\t{\r\n\t\t\t\tcache.addFirst(object);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean add(Object element);", "@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}", "public synchronized boolean add(T obj) throws InterruptedException {\n\t\t\tnotify();\n\t\t\tif (maxSize == queue.size()) {\n\t\t\t\tSystem.out.println(\"Queue is full, producer is waiting.\");\n\t\t\t\twait();\n\t\t\t}\n\t\t\treturn queue.add(obj);\n\t\t}", "@Override\n public boolean add(T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < array.length; i++) {\n newArray[i] = array[i];\n }\n newArray[size] = object;\n this.size++;\n this.array = newArray;\n return true;\n }", "public boolean add(Object x)\n {\n if (loadFactor() > 1)\n {\n resize(nearestPrime(2 * buckets.length - 1));\n }\n\n int h = x.hashCode();\n h = h % buckets.length;\n if (h < 0) { h = -h; }\n\n Node current = buckets[h];\n while (current != null)\n {\n if (current.data.equals(x))\n {\n return false; // Already in the set\n }\n current = current.next;\n }\n Node newNode = new Node();\n newNode.data = x;\n newNode.next = buckets[h];\n buckets[h] = newNode;\n currentSize++;\n return true;\n }", "public void add( T obj )\n {\n // Any distinct object causes creation of a new tree-set.\n // We count any such sets as we go.\n if (!contains( obj ))\n {\n nodes.put(obj, new Node(obj));\n numSets++;\n }\n }", "@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }", "public synchronized void add(Object object) {\n\n if (_queue.size() == 0) {\n // no elements then simply add it here\n _queue.addElement(object);\n } else {\n int start = 0;\n int end = _queue.size() - 1;\n\n if (_comparator.compare(object,\n _queue.firstElement()) < 0) {\n // it need to go before the first element\n _queue.insertElementAt(object, 0);\n } else if (_comparator.compare(object,\n _queue.lastElement()) > 0) {\n // add to the end of the queue\n _queue.addElement(object);\n } else {\n // somewhere in the middle\n while (true) {\n int midpoint = start + (end - start) / 2;\n if (((end - start) % 2) != 0) {\n midpoint++;\n }\n\n int result = _comparator.compare(\n object, _queue.elementAt(midpoint));\n\n if (result == 0) {\n _queue.insertElementAt(object, midpoint);\n break;\n } else if ((start + 1) == end) {\n // if the start and end are next to each other then\n // insert after at the end\n _queue.insertElementAt(object, end);\n break;\n } else {\n if (result > 0) {\n // musty be in the upper half\n start = midpoint;\n } else {\n // must be in the lower half\n end = midpoint;\n }\n }\n }\n }\n }\n }", "@Override\n\tpublic boolean add(E e) {\n\t\treturn false;\n\t}", "@Override\n public boolean add(final T element) {\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n this.data[this.size++] = element;\n return true;\n }", "public boolean add(Object value)\r\n {\r\n if (contains(value))\r\n return false;\r\n root = add(root, value);\r\n return true;\r\n }", "@Override\n\tpublic boolean add(T element) {\n\t\titemProbs_.put(element, 1d);\n\t\telementArray_ = null;\n\t\tklSize_ = 0;\n\t\treturn true;\n\t}", "public void add(Object object) {\n if(object != null) {\n results.add(object);\n }\n }", "public boolean add(T item) {\n // offer(T e) is used here simply to eliminate exceptions. add returns false only\n // if adding the item would have exceeded the capacity of a bounded queue.\n return q.offer(item);\n }", "boolean add(Object obj);", "boolean add(Object obj);", "public synchronized void add(T object) throws InterruptedException {\n\t\twhile (store.size() == capacity) {\n\t\t\tLOG.info(\"No more space\");\n\t\t\twait();\n\t\t}\n\t\tstore.add(object);\n\t\tLOG.info(\"Added product\" + store.size());\n\t\tnotify();\n\t}", "public boolean offer(Object item) {\r\n\r\n\t\tdata.add(item);\r\n\t\t// no size restriction so it should always be true\r\n\t\treturn true;\r\n\t}", "boolean addObject(E object) throws DatabaseNotAccessibleException, DatabaseLogicException;", "public boolean add(T element) {\n if (this.position >= this.container.length) {\n this.enlargeCapacity();\n }\n this.container[this.position++] = element;\n return true;\n }", "public synchronized boolean add(ContentObject obj) {\n if (null == data) {\n this.data = obj;\n return true;\n } else {\n _stats.increment(StatsEnum.ContentObjectsIgnored);\n if (Log.isLoggable(Log.FAC_NETMANAGER, Level.WARNING)) Log.warning(Log.FAC_NETMANAGER, \"{0} is not handled - data already pending\", obj.name());\n return false;\n }\n }", "@Override\n public boolean add(T e) {\n if (numElements == maxElements) {\n doubleCapacity();\n }\n\n // Add element\n elements[numElements++] = e;\n return true;\n }", "public boolean add (E item)\n {\n add(size, item); // calling public method add\n return true;\n }", "@Override\n public boolean put(CacheObject<K, V> cacheObject){\n K key = cacheObject.getKey();\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n this.cache.put(key, cacheObject);\n\n return true;\n }", "public boolean add(E obj) {\n\t\tNode<E> node = new Node<E>(obj, null, null, null);\n\t\tif (root == null) {\n\t\t\troot = node;\n\t\t\tcurrentSize++;\n\t\t\treturn true;\n\t\t} else {// (root != null)\n\t\t\tNode<E> tmp = addAfter(root, obj);\n\t\t\tcurrentSize++;\n\t\t\tcheckBalanceBottomUp(tmp);\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean addAll(ISet<E> otherSet) {\n\t\tif (otherSet == null)\n\t\t\tthrow new IllegalArgumentException(\"The given set is null.\");\n\t\tboolean result = false;\n\t\tfor (E obj: otherSet) {\n\t\t\tif (!this.contains(obj)) {\n\t\t\t\tthis.add(obj);\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public boolean add(E e) {\n if (contains(e)) {\n return false;\n }\n int i = hash(e);\n table[i] = new HashNode<E>(e, table[i]);\n size++;\n return true;\n }", "public boolean add(E anEntry){\n if (size == capacity){\n reallocate();\n }\n theData[size] = anEntry;\n size++;\n\n return true;\n }", "public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }", "public boolean add(Object o) {\r\n throw new com.chimu.jdk12.java.lang.UnsupportedOperationException(); //UnsupportedOperationException();\r\n }", "public boolean add(T x) {\n\t if(size==pq.length)\n\t return false;\n\t else {\n\t //add the element\n\t pq[size]=x;\n\t //check if the heap is maintained\n\t percolateUp(size);\n\t //increment the size\n\t size++;\n\t return true;\n\n }\n\n\n }", "@Override\n public boolean addItem(T item) {\n //Make sure the item is not already in the set\n if(!this.contains(item)){\n //create a new node with the item, and the current first node\n Node n = new Node(item, first);\n //update first node reference\n first = n;\n //increment numItems\n numItems++;\n return true;\n }\n //if item is already in the set return false\n return false;\n }", "public boolean isPossibleToadd() {\n if (capacity == storage) {\n return false;\n } else {\n return true;\n }\n }", "public void add(GeometricalObject object);", "public boolean add( Object newVal )\n {\n\t//first expand if necessary\n\tif ( _size >= _data.length )\n\t expand();\n\n\t_data[_size] = newVal;\n\t_size++;\n\n\treturn true;\n }", "public boolean add(final ValidateableAttestation attestation) {\n if (seenAggregationBits.isSuperSetOf(attestation.getAttestation().getAggregation_bits())) {\n // We've already seen these aggregation bits\n return false;\n }\n return attestationsByValidatorCount\n .computeIfAbsent(\n attestation.getAttestation().getAggregation_bits().getBitCount(),\n count -> new HashSet<>())\n .add(attestation);\n }", "@Override\n public boolean put(K key, V object){\n if ((this.maxSize > 0) && !this.cache.containsKey(key) && (this.cache.size() == this.maxSize)){\n // if add new element than exceed maximum limit\n return false;\n }\n\n CacheObject<K, V> cacheObject = new CacheObject<>(key, object);\n this.cache.put(key, cacheObject);\n\n return true;\n }", "public boolean add(E element){\n Object result = map.put(element, \"\");\n return (result == null);\n }", "@Traced\r\n\tpublic boolean addSimpleObject(SimpleObject obj){\n\t\tobjects.add(obj);\r\n\t\treturn true; // in future to handle some errors\r\n\t}", "public boolean addFacet(Facet objectFacet) {\n\t\tif (objectFacet == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tthis.facets.add(objectFacet);\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean add ( Object o ){\n\n try{\n\n String check = o.toString();\n if(!check.equals(o)){\n return false;\n }\n\n }\n\n catch(Exception e){\n return false;\n }\n\n if(o == null){\n return false;\n }\n\n else{\n\n \t try{\n String s = o.toString();\n list.add(s);\n return true;\n \t }\n \t\n \t catch (Exception e){\n \t\t return false;\n \t }\n\n }\n\n }", "public boolean add(Object[] obj) {\n\t\treturn false;\n\t}", "@Override\n public boolean add(T e) {\n if (elements.add(e)) {\n ordered.add(e);\n return true;\n } else {\n return false;\n }\n }", "@Override\n\tpublic boolean add(Object e)\n\t{\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\tmyArray[size] = e;\n\t\tsize++;\n\t\treturn false;\n\t}", "@Override\n public boolean add(X x) {\n if (!allowElementsWithoutIdentification)\n throw new IllegalArgumentException(\"It is not allowed to put Elements without Identification in this Set\");\n\n return map.put(x, placeholder) == null;\n }", "@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }", "public boolean add(E obj){\n Node<E> n = head;\n while(n.getNext()!=null){\n n=n.getNext();\n }\n n.setNext(new Node<E> (obj));\n return true;\n }", "public boolean add(IntSet add){\n\t\tif(contains(add)==-1){\n\t\t\tcontents.addElement(add);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean add(T value) {\n if (!this.validate(this.cursor)) {\n this.ensureCapacity();\n }\n this.values[this.cursor++] = value;\n return this.values[this.cursor - 1].equals(value);\n }", "public void add(final Object value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tif (this.size == this.capacity) {\n\t\t\treallocate();\n\t\t}\n\t\telements[size] = value;\n\t\tsize++;\n\t}", "public boolean add(E key)\r\n {\r\n if(this.contains(key))\r\n {\r\n return false;\r\n }\r\n\r\n else\r\n {\r\n super.add(key);\r\n }\r\n return true;\r\n }", "public abstract boolean add(Comparable element) throws IllegalArgumentException;", "public void add(Object o) {\n\t\tadd(size, o);\n\t}", "void add(GeometricalObject object);", "private boolean addFirstElement(Object obj) {\n if (size == 0) {\n start = new Node(null, null, obj);\n end = start;\n size++;\n return true;\n }\n return false;\n }", "public boolean add(Object o) {\r\n addBefore(o, header);\r\n return true;\r\n }", "public boolean add(E x) {\n\t\taddLast(x);\n\t\treturn true;\n\t}", "@Override\r\n public boolean add(Item item){\r\n if(item.stackable&&contains(item)){\r\n stream().filter(i -> i.name.endsWith(item.name)).forEach(i -> {\r\n i.quantity += item.quantity;\r\n });\r\n }else if(capacity<=size()) return false;\r\n else super.add(item);\r\n return true;\r\n }", "public void add(GameObject newObject) {\n\t\tgameObjects.addElement(newObject);\n\t}", "public boolean offer(E x) {\n\t\tadd(x);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean add(T obj, int index) {\n\t\tif (index < 0 || index > size) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (size >= array.length)\r\n\t\t\tallocate();\r\n\t\tSystem.arraycopy(array, index, array, index + 1, size - index);\r\n\t\tarray[index] = obj;\r\n\t\tsize++;\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void add(Object o) {\n\t}", "public void add(Object o);", "public void add(Object object) {\n\t\tif (nextItem == null) {\n\t\t\tnextItem = new Item(object, index + 1);\n\t\t} else {\n\t\t\tnextItem.add(object);\n\t\t}\n\t}", "public boolean add (T item){\n\t\t\t\tint index = (item.hashCode() & Integer.MAX_VALUE) % table.length;\n\t\t\t\t\n\t\t\t\t// find the item and return false if item is in the AVLTree\n\t\t\t\tif (table[index].contains((T)item))\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\tif (!table[index].add(item))\n\t\t\t\t\treturn false;\n\t\t\t\t\n\t\t\t\t// we will add item, so increment modCount\n\t\t\t\tmodCount++;\n\n\t\t\t\thashTableSize++;\n\n\t\t\t\tif (hashTableSize >= tableThreshold)\n\t\t\t\t\trehash(2 * table.length + 1);\n\n\t\t\t\treturn true;\n\t}", "@Override\n public void add(Integer element) {\n if (this.contains(element) != -1) {\n return;\n }\n // when already in use\n int index = this.getIndex(element);\n if(this.data[index] != null && this.data[index] != this.thumbstone){\n int i = index + 1;\n boolean foundFreePlace = false;\n while(!foundFreePlace && i != index){\n if(this.data[i] == null && this.data[i] == this.thumbstone){\n foundFreePlace = true;\n }else{\n if(i == this.data.length - 1){\n // start at beginning.\n i = 0;\n }else{\n i++;\n }\n }\n }\n if(foundFreePlace){\n this.data[i] = element;\n }else{\n throw new IllegalStateException(\"Data Structre Full\");\n }\n }\n }", "protected void addObject(AbstractGameObject object) {\n\t\t// add object to rendering list\n\t\tobjects.add(object);\n\t\tif (object instanceof UIi18nReload) {\n\t\t\tuis.add((UIi18nReload) object);\n\t\t}\n\t\tobjects.sort(new Comparator<GameObject>() {\n\t\t\tpublic int compare(GameObject o1, GameObject o2) {\n\t\t\t\tAbstractGameObject ago1 = (AbstractGameObject) o1;\n\t\t\t\tAbstractGameObject ago2 = (AbstractGameObject) o2;\n\t\t\t\treturn (ago1.layer > ago2.layer ? -1 : (ago1.priority > ago2.priority ? -1 : 1));\n\t\t\t};\n\t\t});\n\t\t// add object to a specific Layer.\n\t\taddObjectToLayer(object);\n\n\t\tstatistics.put(\"objectCount\", objects.size());\n\t\tlogger.debug(\"Add {} to the objects list\", object.name);\n\t}", "public void add(Object obj) { \n\t\tcollection.addElement(obj);\n\t}", "@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}", "public void addObject(Objects object)\n {\n items.put(object.getItemName(), object);\n }", "public boolean add(T x) {\n\n\n if (this.size == pq.length) {\n this.resize();\n }\n pq[this.size] = x;\n percolateUp(this.size);\n this.size++;\n System.out.println(\"size is \"+size);\n return true;\n }", "@SuppressWarnings(\"unchecked\")\n public void put(final T object) {\n data.add(object);\n }", "@Override\n\tpublic void add(Object value) {\n\t\tinsert(value, size);\n\t}", "public boolean add(E item) {\n if (item == null) { //Checks if the item is null if it is throws a new exception\n throw new IllegalArgumentException(\"Yeah Nah, No thanks null.\");\n }\n\n int index = findIndexOf(item); //For simplification\n\n if (data[index] != null) { //if the item at the index is not null\n if (data[index].equals(item))\n return false;\n }\n for (int i = count; i >= index; i--) { //iterates backward through the collection.\n\n if (i == index || i == 0) { //while iterating it checks if the value i is the same as index or 0, increments count and swaps the item.\n count++;\n ensureCapacity(); //checks capacity works, and if so adds item to and returns true.\n data[i] = item;\n return true;\n }\n data[i] = data[i - 1];\n }\n return false;\n }", "public void addAIObject(String id, AIObject aiObject) {\n if (aiObjects.containsKey(id)) {\n throw new IllegalStateException(\"AIObject already created: \" + id);\n }\n if (aiObject == null) {\n throw new NullPointerException(\"aiObject == null\");\n }\n aiObjects.put(id, aiObject);\n }", "public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }", "public int Add_Object(Objet objet) {\n /* Vérifit que l'objet est compatible avec le contenaire */\n if (!classType.isInstance(objet)) {\n return 0;\n }\n \n /* Vérification de la */\n if(Max_Size>Objets.size())\n {\n Objets.add(objet);\n objet.On_Contenaire_Add(this);\n\treturn Objets.indexOf(objet);\n }\n return 0;\n }", "@Override\n public final void addWhenEmpty(final ET object) throws ConcurrentModificationException, UnsupportedOperationException {\n concurrencyCheck();\n emptyCheck();\n final Link<ET> newLink = new Link<>(object, null, null);\n newLink.left = newLink;\n newLink.right = newLink;\n list.voidLink.left = newLink;\n list.voidLink.right = newLink;\n pos++;\n expectedModCount++;\n list.size++;\n list.modCount++;\n }", "@Override\r\n public boolean add(E o) {\r\n\r\n // Check if dupliate\r\n if (!(contains(o))) {\r\n\r\n Node<E> newNode = new Node<E>(o);\r\n Node<E> currentNode = firstNode;\r\n\r\n if (firstNode == null || o.compareTo(firstNode.element) < 0) {\r\n newNode.next = firstNode;\r\n firstNode = newNode;\r\n numElements++;\r\n return true;\r\n } else {\r\n while(currentNode.next != null && o.compareTo(currentNode.next.element) >= 0) {\r\n currentNode = currentNode.next;\r\n }\r\n newNode.next = currentNode.next;\r\n currentNode.next = newNode;\r\n numElements++;\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean add(Object added)\n {\n boolean ret = super.add(added);\n normalize();\n return(ret);\n }", "@Override // java.util.Collection, java.util.Set\r\n public boolean addAll(Collection<? extends E> collection) {\r\n b(this.f513d + collection.size());\r\n boolean added = false;\r\n Iterator<? extends E> it = collection.iterator();\r\n while (it.hasNext()) {\r\n added |= add(it.next());\r\n }\r\n return added;\r\n }" ]
[ "0.70718616", "0.6644802", "0.6530608", "0.65062034", "0.6472549", "0.63617676", "0.62886643", "0.62541354", "0.6140409", "0.61308956", "0.6123466", "0.60847294", "0.6062297", "0.59924346", "0.5990322", "0.59861106", "0.5981235", "0.59631807", "0.593232", "0.5931239", "0.5924547", "0.5915727", "0.58748215", "0.5859483", "0.58417445", "0.581553", "0.58005595", "0.5797208", "0.5794805", "0.5792088", "0.57859886", "0.5742879", "0.57373005", "0.5734188", "0.5734188", "0.5707164", "0.5699349", "0.56909966", "0.5686172", "0.56768936", "0.56750846", "0.5673553", "0.5662429", "0.5654341", "0.56384134", "0.5637612", "0.56258196", "0.5621747", "0.5606872", "0.55733514", "0.557019", "0.55558246", "0.5524021", "0.552101", "0.55152184", "0.5505146", "0.54996663", "0.5495582", "0.5486056", "0.5484321", "0.5483683", "0.5477184", "0.54716337", "0.5470884", "0.54463845", "0.54412156", "0.544062", "0.54361355", "0.54178095", "0.5385026", "0.5377871", "0.5372328", "0.5349101", "0.5343417", "0.53405285", "0.534011", "0.5329446", "0.53214484", "0.53182006", "0.5317676", "0.53155476", "0.529648", "0.5295071", "0.52929467", "0.529067", "0.52882266", "0.5281843", "0.5271442", "0.5264139", "0.5260532", "0.5260467", "0.5237867", "0.5236223", "0.52333325", "0.5232416", "0.5231207", "0.5229117", "0.5224559", "0.52214366", "0.52158505" ]
0.5882652
22
Performs the given action for each element of this AgileSet until all elements have been processed or the action throws an exception.
@Override public void forEach(Consumer<? super T> action) { items.forEach(action); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void triggerNextIteration() throws IllegalActionException {\n }", "@Override\n protected void triggerFirstIteration() throws IllegalActionException {\n }", "public abstract void completeIteration();", "public synchronized void processAll()\r\n {\r\n if (!myItems.isEmpty())\r\n {\r\n myProcessor.accept(New.list(myItems));\r\n myItems.clear();\r\n }\r\n }", "protected void realizeAll ()\r\n {\r\n for ( final String itemId : this.itemSet.keySet () )\r\n {\r\n try\r\n {\r\n realizeItem ( itemId );\r\n }\r\n catch ( final AddFailedException e )\r\n {\r\n Integer rc = e.getErrors ().get ( itemId );\r\n if ( rc == null )\r\n {\r\n rc = -1;\r\n }\r\n// logger.warn ( String.format ( \"Failed to add item: %s (%08X)\", itemId, rc ) );\r\n\r\n }\r\n catch ( final Exception e )\r\n {\r\n// logger.warn ( \"Failed to realize item: \" + itemId, e );\r\n }\r\n }\r\n }", "protected void runAfterIteration() {}", "@Override\n protected void runOneIteration() throws Exception {\n }", "default void forEach(BiConsumer<? super K, ? super V> action) {\n Objects.requireNonNull(action);\n for (Node<K, V> node : entrySet()) {\n action.accept(node.getKey(), node.getValue());\n }\n }", "default void forEachIndexed(@NotNull IndexedConsumer<? super E> action) {\n int idx = 0;\n for (E e : this) {\n action.accept(idx++, e); // implicit null check of action\n }\n }", "@Override\n public void forEachRemaining(Consumer<? super T> action){\n Objects.requireNonNull(action);\n if(count==-2){\n action.accept(first);\n count=-1;\n }\n }", "@Override\n\tpublic void forEach(Processor processor) {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tprocessor.process(elements[i]);\n\t\t}\n\t}", "private void process(ImmutableSetMultimap<TypeElement, Element> validElements) {\n for (Step step : steps) {\n ImmutableSet<TypeElement> annotationTypes = getSupportedAnnotationTypeElements(step);\n ImmutableSetMultimap<TypeElement, Element> stepElements =\n new ImmutableSetMultimap.Builder<TypeElement, Element>()\n .putAll(indexByAnnotation(elementsDeferredBySteps.get(step), annotationTypes))\n .putAll(filterKeys(validElements, Predicates.in(annotationTypes)))\n .build();\n if (stepElements.isEmpty()) {\n elementsDeferredBySteps.removeAll(step);\n } else {\n Set<? extends Element> rejectedElements =\n step.process(toClassNameKeyedMultimap(stepElements));\n elementsDeferredBySteps.replaceValues(\n step, transform(rejectedElements, ElementName::forAnnotatedElement));\n }\n }\n }", "public void execute() {\n for (CoordAction<PCEData,PCEData> pce : this) {\n pce.setRequestData(this.getRequestData());\n // Aggregators trigger the execution of its children PCE's before they are\n // executed themselves.\n pce.process();\n }\n }", "void consume(List<E> elements) throws Exception;", "public void executWaiting() {\n for (Runnable action : this.todo) {\n runAction( action );\n }\n }", "protected abstract void executeActionsIfError();", "public void advance () {\n while (currentGroup == null ||\n (!actionIter.hasNext() && groupIter.hasNext()))\n {\n currentGroup = groupIter.next();\n actionIter = actions.iterator();\n }\n // now get the next action (assuming we're in valid state)\n currentAction = (actionIter.hasNext() ? actionIter.next() : null);\n }", "@Override\n public void forEachRemaining(Consumer<? super InternalCacheEntry<K, V>> action) {\n long now = timeService.wallClockTime();\n\n while (spliterator.tryAdvance(consumer)) {\n InternalCacheEntry<K, V> currentEntry = current;\n if (currentEntry.canExpire() && currentEntry.isExpired(now) &&\n expirationManager.entryExpiredInMemoryFromIteration(currentEntry, now).join() == Boolean.TRUE) {\n continue;\n }\n action.accept(currentEntry);\n }\n }", "public void executeAll()\n {\n this.queue.clear();\n this.queue_set = false;\n this.resetComputation();\n while(executeNext()) {}\n }", "protected void runAfterIterations() {}", "public void forEach(Consumer<GeometricalObject> action);", "protected void runBeforeIteration() {}", "protected void doProcess() throws Exception {\n boolean continueProcessing = true;\n while (continueProcessing) {\n continueProcessing = processFollowUpsRecords();\n }\n commitRecords();\n }", "public void checkActions() {\n\t\tfor (BaseAction ba : this.actions) {\n\t\t\tba.checkAction();\n\t\t}\n\t}", "default <U> void forEach(TryFunction<T, U> fn) {\n if (isSuccess()) {\n try {\n fn.apply(get());\n } catch (Throwable t) {\n throw new RuntimeException(t);\n }\n }\n }", "public Iterable<M> iterateAll();", "public static void Execute ()\n\t{\n\t\tReceiveCollection (SpawnCrawler (target));\n\t\t\n\t\tList<String> initialCollection = overCollection;\n\t\t\n\t\tif ( ! initialCollection.isEmpty ())\n\t\t{\n\t\t\n\t\t\tfor (String collected : initialCollection)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif (collected.contains (\"http\"))\n\t\t\t\t\tReceiveCollection (SpawnCrawler (collected));\n\t\t\t\telse\n\t\t\t\t\tReceiveCollection (SpawnCrawler (target + collected));\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t/*\n\t\t * Several loops should commence here where the system reiteratively goes over all the newly acquired URLs\n\t\t * so it may extend itself beyond the first and second depth.\n\t\t * However this process should be halted once it reaches a certain configurable depth.\n\t\t */\n\t\tint depth = 0;\n\t\tint newFoundings = 0;\n\t\t\n\t\tdepthLoop: while (depth <= MAX_DEPTH)\n\t\t{\n\t\t\t\n\t\t\tfor (String collected : overCollection)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif (collected.contains (\"http\"))\n\t\t\t\t\tSpawnCrawler (collected);\n\t\t\t\telse\n\t\t\t\t\tSpawnCrawler (target + collected);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (newFoundings <= 0)\n\t\t\t\tbreak depthLoop;\n\t\t\t\n\t\t\tdepth++;\n\t\t\t\t\t\t\n\t\t}\n\t\t\n\t}", "protected void handleIterator(IAeXMLDBXQueryResponse aResponse, Collection aCollection)\r\n throws AeXMLDBException\r\n {\r\n while (aResponse.hasNextElement())\r\n {\r\n Element elem = aResponse.nextElement();\r\n aCollection.add(handleElement(elem));\r\n }\r\n }", "void dealException(List<E> elements, Exception e);", "private void eatPerformingStep() throws EatableObjectOnPlaceException {\r\n\t\tif(greedy) {\r\n\t\t\tAbstractObject object = eat();\r\n\t\t\tif (object != null) {\r\n\t\t\t\tthrow new EatableObjectOnPlaceException(object);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "default void processRemaining(Processor p) {\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}", "default void processRemaining(Processor p) {\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}", "protected void iteration() {\n\t\t\tmHandler.removeCallbacks(mIteration);\n\t\t\tif (mVisible) {\n\t\t\t\tmHandler.postDelayed(mIteration, 1000 / 25);\n\t\t\t}\n\t\t}", "public void executeStep() {\n\t\tvar parent = queue.poll();\n\t\tfinal var children = parent.getValidChildren(graph, probabilities, minSteps,\n\t\t\t\tinitialEdgeImportance.keySet().toArray(new ConcreteEdge[initialEdgeImportance.size()]));\n\n\t\tfor (final var child : children) {\n\t\t\tfor (var x : parent.getInitialEdgeIncrements().entrySet()) {\n\t\t\t\tinitialEdgeImportance.compute(x.getKey(), (k, v) -> v == null ? x.getValue() : (v + x.getValue()));\n\t\t\t}\n\n\t\t\tgetSuccessMatrixResult(child.getInitialAction()).max(child.getPosition(), child.getSuccessRating());\n\t\t\tgetCutOffMatrixResult(child.getInitialAction()).max(child.getPosition(), child.getCutOffRating());\n\n\t\t\tqueue.add(child);\n\t\t\tcalculatedPathsCount++;\n\t\t}\n\t}", "@Override\n public boolean tryAdvance(DoubleConsumer action){\n Objects.requireNonNull(action);\n if(count==-2){\n action.accept(first);\n count=-1;\n return true;\n }else{\n return false;\n }\n }", "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 }", "default void processRemaining(Processor<? super T> p) {\n\t\tObjects.requireNonNull(p);\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}", "private void lockAllAndThen(Runnable action) {\n lockAllAndThen(0, action);\n }", "private void lockAllAndThen(Runnable action) {\n lockAllAndThen(0, action);\n }", "@Override\r\n\tpublic void runInstincts() throws GameActionException {\n\t\t\r\n\t}", "public void action(Runnable action) {\n if (this.condition == null) {\n throw new APSValidationException( \"Cannot execute action, no condition has been provided!\" );\n }\n if (this.condition.met()) {\n runAction( action );\n }\n else {\n this.todo.add(action);\n }\n }", "protected void onClick() {\n for(Runnable action : onClick) action.run();\n }", "@Override\n\tpublic void operation() {\n\t\tfor(Object object:list) {\n\t\t\t((Component)object).operation();\n\t\t}\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "private void advanceAllDrones(Set<Drone> droneSet, float deltaTime, int nbIterations) throws InterruptedException {\n\t\t//first set the time interval for all the drones\n\t\tfor(Drone drone: droneSet){\n\t\t drone.setNbIterations(nbIterations);\n\t\t\tdrone.setDeltaTime(deltaTime);\n\t\t}\n\t\t//get the execution pool\n\t\tExecutorService droneThreads = this.getDroneThreads();\n\t\t//System.out.println(\"used ThreadPool: \" + this.getDroneThreads());\n\t\t//first invoke all the next states\n\t\tList<Future<Void>> unfinishedThreads = droneThreads.invokeAll(droneSet);\n\t\tList<Future<Void>> finishedThreads = new ArrayList<>();\n\t\t//then wait for all the futures to finish\n\t\tboolean allFinished = false;\n\t\t//keeps looping until all drones are advanced to the next state\n\t\twhile(!allFinished){\n\t\t\t//first get the first thread\n\t\t\tFuture<Void> droneFuture = unfinishedThreads.get(0);\n\n\t\t\t//wait until the first thread finishes\n\t\t\ttry {\n\t\t\t\tdroneFuture.get();\n\t\t\t\t//check if there was an exception\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tif(e.getCause() instanceof AngleOfAttackException){\n\t\t\t\t\tSystem.out.println(\"angle of attack exception\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"An error occurred: \" + e.getCause().toString());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//get all the finished elements\n\t\t\tfinishedThreads = unfinishedThreads.stream()\n\t\t\t\t\t.filter(future -> future.isDone())\n\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t//check if any of the finished threads got into trouble\n\t\t\tfor(Future<Void> finishedFuture: finishedThreads){\n\t\t\t\ttry {\n\t\t\t\t\tfinishedFuture.get();\n\t\t\t\t\t//check if there occurred an error\n\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\tif(e.getCause() instanceof AngleOfAttackException){\n\t\t\t\t\t\tthrow (AngleOfAttackException) e.getCause(); //rethrow, info for the main loop\n\t\t\t\t\t}else{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//filter out all the elements that are finished\n\t\t\tunfinishedThreads = unfinishedThreads.stream()\n\t\t\t\t\t.filter(future -> !future.isDone())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t//check if drone futures is empty ot not\n\t\t\tif(unfinishedThreads.size() == 0){\n\t\t\t\tallFinished = true;\n\t\t\t}\n\t\t}\n\t\t//we may exit, all the drones have been set to state k+1\n\t}", "@Test\n public void testProcessNextStep() {\n for (int i = 0; i < 100; i++) {\n try {\n dataHandler.processNextStep();\n } catch (Exception ex) {\n assertTrue(false);\n }\n assertTrue(true);\n }\n }", "@Override\n public void afterAlgorithmIteration(\n Algorithm alg, ReachedSet reached) {\n }", "@Override\n public boolean tryAdvance(IntConsumer action){\n Objects.requireNonNull(action);\n if(count==-2){\n action.accept(first);\n count=-1;\n return true;\n }else{\n return false;\n }\n }", "private Object loopOverTurtle(TurtleActionWithResult action) {\n\t\tObject result = null;\n\t\tfor (Turtle turtle : getActiveTurtles()) {\n\t\t\tresult = action.execute(turtle);\n\t\t}\n\t\treturn result;\n\t}", "public void dispatch(){\n if (size() == 0){\n return;\n }\n int nb = 0, ns = 0;\n for (Exp exp : this){\n if (exp.isStatement()){\n ns++;\n }\n else {\n nb++;\n }\n }\n if (ns == 0 || (ns == 1 && nb == 0)){\n return;\n }\n doDispatch();\n }", "public void trigger(E arg) {\n List<Consumer<E>> nlst;\n synchronized (this) {\n nlst = new ArrayList<>(lst);\n }\n for (Consumer<E> c : nlst) {\n try {\n c.accept(arg);\n } catch (Throwable th) {\n try {\n uncaughtExceptionHandler.uncaughtException(Thread.currentThread(), th);\n } catch (Throwable th2) {\n // do nothing\n }\n }\n }\n }", "public void processed(int i);", "public void tick() {\n Instant now = clock.instant();\n SortedMap<Instant, Set<Endpoint>> range = timeouts.headMap(now);\n\n Set<Endpoint> processed = new HashSet<>();\n for (Set<Endpoint> batch : range.values()) {\n for (Endpoint endpoint : batch) {\n if (processed.contains(endpoint)) {\n continue;\n }\n processed.add(endpoint);\n checkExpiration(now, endpoint);\n }\n }\n range.clear();\n }", "abstract protected QaIOReporter performAction(Node[] nodes);", "public void doAll() {\n for (int i = 0; i < Integer.MAX_VALUE; i++) {\n sum += sumLoop(sumLoopArray);\n sum += sumIfEvenLoop(sumLoopArray);\n sum += sumIfPredicate(sumLoopArray);\n sum += sumShifted(3, 0x7f, sumLoopArray);\n addXtoArray(i, addXArray);\n sum += sumLoop(addXArray);\n addArraysIfEven(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n addArraysIfPredicate(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n sum += sumLoop(addArraysIfEvenArrayA);\n }\n }", "public void iterateEventList();", "public void computeActions(List<Action> result, DiagramContext context);", "public void execute() {\r\n\r\n\t\t// Fetch the 10 records from DB\r\n\t\t// Iterate over them\r\n\t\t// Fetch the ImageActionObject\r\n\t\t// Get the first task to work on\r\n\t\t// Inastantiate the task by ImageActionTaskFactory.getImageActionTask\r\n\t\t// Set the ImageActionObject\r\n\t\t// Submit the task to the executor\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\r\n\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\r\n\t\tlog.info(\"*** Executing poller at : \" + dateFormat.format(new Date()));\r\n\t\tList<ImageActionObject> incompleteImageActionObjects = new ArrayList<ImageActionObject>();\r\n\t\t// Fetching the 10 records from DB\r\n\t\ttry {\r\n\t\t\tincompleteImageActionObjects = imageActionImpl\r\n\t\t\t\t\t.searchIncompleteImageAction(5);\r\n\t\t\tlog.debug(\"*** Got \" + incompleteImageActionObjects.size()\r\n\t\t\t\t\t+ \" to process\");\r\n\t\t} catch (DbException e) {\r\n\t\t\t// TODO Handle Error\r\n\t\t\tlog.error(\"searchIncompleteImageAction failed\", e);\r\n\t\t}\r\n\t\t// iterate over list of image action objects\r\n\t\tlog.debug(\"incompleteImageActionObjects::\"\r\n\t\t\t\t+ incompleteImageActionObjects);\r\n\r\n\t\tfor (ImageActionObject imageActionObj : incompleteImageActionObjects) {\r\n\t\t\tlog.info(\"ImageAction Object in poller (\" + imageActionObj.getId()\r\n\t\t\t\t\t+ \"): Number of tasks: \"\r\n\t\t\t\t\t+ imageActionObj.getActions().size());\r\n\t\t\tlog.info(\"Current status of image action object:\"\r\n\t\t\t\t\t+ imageActionObj.getCurrent_task_status());\r\n\t\t\t\r\n\t\t\tif(imageActionToRunCountMap.containsKey(imageActionObj.getId())){\r\n\t\t\t\tInteger currentCount = imageActionToRunCountMap.get(imageActionObj.getId());\r\n\t\t\t\tif(currentCount < 10){\r\n\t\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), ++currentCount);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//mark error\r\n\t\t\t\t\tlog.info(\"mark image action {} to error after 10 tries\", imageActionObj.getId());\r\n\t\t\t\t\timageIdsInProcess.remove(imageActionObj.getImage_id());\r\n\t\t\t\t\timageActionObj.setCurrent_task_status(Constants.ERROR);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpersistService.updateImageAction(imageActionObj);\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} catch (DbException e) {\r\n\t\t\t\t\t\tlog.error(\"Error in Poller\",e);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\tfinally{\r\n\t\t\t\t\t\tremoveEntryFromImageActionCountMap(imageActionObj.getId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\t\t\t\t\r\n\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (imageIdsInProcess.contains(imageActionObj.getImage_id())) {\r\n\t\t\t\tlog.info(\"Image already in process. Skipping\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\timageIdsInProcess.add(imageActionObj.getImage_id());\r\n\r\n\t\t\tif (imageActionObj.getCurrent_task_status() != null\r\n\t\t\t\t\t&& imageActionObj.getCurrent_task_status().equals(\r\n\t\t\t\t\t\t\tConstants.INCOMPLETE)) {\r\n\t\t\t\tExecuteActions task = new ExecuteActions(imageActionObj);\r\n\t\t\t\tImageActionExecutor.submitTask(task);\r\n\t\t\t\tlog.info(\"Submitted task for ExecuteActions for id: \"\r\n\t\t\t\t\t\t+ imageActionObj.getId());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "private void handleSelectedKeys() throws Exception\n {\n\n final Set<SelectionKey> selectedKeys = selector.selectedKeys();\n if (selectedKeys.isEmpty())\n {\n return;\n }\n\n final Iterator<SelectionKey> iter = selectedKeys.iterator();\n while (iter.hasNext())\n {\n final SelectionKey key = iter.next();\n if (key.isReadable())\n {\n handleReadable(key);\n iter.remove();\n }\n }\n }", "@Override public void run()\n {\n final Set<E> elements = process.elements();\n if (elements.isEmpty() || random.nextDouble() * 3 - 2/*(-2..1]*/ < 0)\n send(process.add(randomNewElement()));\n else\n send(process.remove(randomElement(elements)));\n }", "private void executeExecutables() {\n \r\n if (stunTime > 0) { // still stunned, so lower stunTime and skip all actions\r\n if (stunTime < Game.deltaTime) {\r\n stunTime = 0;\r\n } else {\r\n stunTime -= Game.deltaTime;\r\n }\r\n //System.out.println(this + \" stunned\");\r\n tryStopping();\r\n return;\r\n }\r\n final Action action = state.action;\r\n if (action instanceof Attack) {\r\n if (moveTime < action.totalTime()) {\r\n moveTime += Game.deltaTime;\r\n return;\r\n } else {\r\n state.resetTime();\r\n stop();\r\n state.resetTime(); // FIXME why two calls to this\r\n }\r\n }\r\n \r\n // just finished hitstun\r\n stunTime = 0;\r\n moveTime = 0;\r\n actionTimer = 0;\r\n acceleration.x = 0;\r\n log(this + \" checking for called executables\");\r\n boolean noMovesCalled = true;\r\n for (int i = 0; i < executables.length; i++) {\r\n final Executable executable = executables[i];\r\n executable.update();\r\n if (executable.keyBinding.isPressed(controller)) {\r\n if (executable instanceof Move) {\r\n noMovesCalled = false;\r\n }\r\n //System.out.println(this + \" pressed \" + KeyBinding.get(i) + \", calling \" + executable);\r\n state = executable.execute(this);\r\n } else {\r\n executable.reset();\r\n }\r\n }\r\n if (noMovesCalled) {\r\n tryStopping();\r\n }\r\n if (wasOnPlatform) {\r\n numMidairJumps = 1;\r\n }\r\n }", "protected void processElements(Node node, int uolId) throws\n PropertyException {\n Node child = node.getFirstChild();\n\n while (child != null) {\n\n if ( (child.getNodeType() == Node.ELEMENT_NODE) &&\n (!processElement((Element) child, uolId))) {\n //if the child node was not processed already, process it now.\n processElements(child, uolId);\n\n }\n child = child.getNextSibling();\n }\n }", "public void ExtremeValuesTraversal(NodeVisitor action){\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\twhile( ! queue.isEmpty() )\n\t\t{\n\t\t\tBinaryTree tree = (BinaryTree)queue.dequeue();\n\t\t\tif ( ! tree.isEmpty() )\n {\n \t\t\taction.visit(tree.getElement());\n \t\t\tqueue.enqueue(tree.leftTree());\n \t\t\tqueue.enqueue(tree.rightTree());\n }\n\t\t}\n\t\t\n\t}", "public void run()\r\n {\r\n for (Source oSource : this)\r\n oSource.run();\r\n }", "@Test\n public void forEach() throws Exception {\n }", "private void \n\tprocessPieceChecks() \n\t{\n\t\tif ( piece_check_result_list.size() > 0 ){\n\n\t\t\tfinal List pieces;\n\n\t\t\t// process complete piece results\n\n\t\t\ttry{\n\t\t\t\tpiece_check_result_list_mon.enter();\n\n\t\t\t\tpieces = new ArrayList( piece_check_result_list );\n\n\t\t\t\tpiece_check_result_list.clear();\n\n\t\t\t}finally{\n\n\t\t\t\tpiece_check_result_list_mon.exit();\n\t\t\t}\n\n\t\t\tfinal Iterator it = pieces.iterator();\n\n\t\t\twhile (it.hasNext()) {\n\n\t\t\t\tfinal Object[]\tdata = (Object[])it.next();\n\n\t\t\t\tprocessPieceCheckResult((DiskManagerCheckRequest)data[0],((Integer)data[1]).intValue());\n\n\t\t\t}\n\t\t}\n\t}", "public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }", "public void processAllBeings() throws Exception {\n // Call the BeingManager.getBeings() method to iterate through\n // the BeingBlockers and execute each BeingBlocker to run as\n // a ManagedBlocker in the common fork-join pool via the\n // managedBlock() method.\n\n // TODO -- you fill in here.\n \n\n // Don't continue with any processing until all Beings are\n // ready to run.\n // TODO -- You fill in here.\n \n\n // Don't continue until all Beings have finished their gazing.\n // TODO -- You fill in here.\n \n }", "protected void prepareToExecuteChildren()\n \t{\n \t\tcollectExecutableElements();\n \t}", "public void runOneIteration() {\n\t\t// Update user latent vectors\n\t\tfor (int u = 0; u < userCount; u++) {\n\t\t\tupdate_user(u);\n\t\t}\n\n\t\t// Update item latent vectors\n\t\tfor (int i = 0; i < itemCount; i++) {\n\t\t\tupdate_item(i);\n\t\t}\n\t}", "@Override\n\tpublic void all() {\n\t\t\n\t}", "public static <T> void forEach(Collection<T> parameters,\n\t\t\tfinal Operation<T> operation) {\n\n\t\t// Number of threads in executor is the number of processors\n\t\tint nThreads = Runtime.getRuntime().availableProcessors();\n\t\tExecutorService exec = Executors.newFixedThreadPool(nThreads);\n\n\t\t// Used to block until all iterations have completed\n\t\tfinal CountDownLatch latch = new CountDownLatch(parameters.size());\n\n\t\t// Run iterations on the executor\n\t\tfor (final T parameter : parameters) {\n\t\t\texec.submit(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\toperation.apply(parameter);\n\t\t\t\t\tlatch.countDown();\n\t\t\t\t}\n\n\t\t\t});\n\t\t}\n\n\t\t// Wait for the 'loop' to complete\n\t\ttry {\n\t\t\tlatch.await();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\texec.shutdown();\n\t\t}\n\t}", "private void awaitItems() throws IgniteInterruptedCheckedException {\n U.await(takeLatch);\n }", "@Override\n public void forEach(Consumer<? super CardView> action) {\n cards.forEach(action);\n }", "public boolean executeNext();", "@Override\r\n\tpublic void execute() {\n\t\tfor (int i = 0; i < command.length; i++) {\r\n\t\t\tcommand[i].execute();\r\n\t\t}\r\n\t}", "public CompletableFuture<Void> execute() {\n\t\tAsyncFence fence = new AsyncFence();\n\t\tfor (BreakpointActionItem item : this) {\n\t\t\tfence.include(item.execute());\n\t\t}\n\t\treturn fence.ready();\n\t}", "@Override\n public boolean tryAdvance(Consumer<? super SampleDescriptor> action) {\n boolean retVal;\n if (pos < samples.size()) {\n // Here we have another sample to process.\n retVal = true;\n action.accept(samples.get(pos));\n pos++;\n } else {\n // Denote we are at the end.\n retVal = false;\n }\n return retVal;\n }", "@Override\n public void act() {\n sleepCheck();\n if (!isAwake()) return;\n while (getActionTime() > 0f) {\n UAction action = nextAction();\n if (action == null) {\n this.setActionTime(0f);\n return;\n }\n if (area().closed) return;\n doAction(action);\n }\n }", "public void forEach(Processor processor) {\n\n\t}", "public void run(){\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> ordered = comparePrice(valid);\n ArrayList<ArrayList<Furniture>> orders = produceOrder();\n checkOrder(orders, false);\n }", "protected void handleEntitiesIndividually() {\n\n\t\tfinal Set<Long> originalBatch = getUidsToLoad();\n\t\tfinal Set<Long> batchOfOne = new HashSet<Long>();\n\n\t\t/**\n\t\t * We replace the batch of all the uids with our own which we'll only put one uid at a time.\n\t\t */\n\t\tsetBatch(batchOfOne);\n\n\t\tLOG.info(\"Loading \" + originalBatch.size() + \" entities individually\");\n\n\t\tfor (final Long uid : originalBatch) {\n\n\t\t\ttry {\n\n\t\t\t\tbatchOfOne.clear();\n\t\t\t\tbatchOfOne.add(uid);\n\n\t\t\t\tfinal Collection<ENTITY> loadedEntity = loadBatch();\n\t\t\t\tgetPipelinePerformance().addCount(\"loader:entities_loaded_individually\", loadedEntity.size());\n\n\t\t\t\tfor (final ENTITY entity : loadedEntity) {\n\t\t\t\t\tgetNextStage().send(entity);\n\t\t\t\t\tgetPipelinePerformance().addCount(\"loader:entities_out\", 1);\n\n\t\t\t\t}\n\t\t\t} catch (final Exception e) {\n\t\t\t\tgetPipelinePerformance().addCount(\"loader:individual_entity_loading_failures\", 1);\n\n\t\t\t\tLOG.error(\"Could not load entity with uid \" + uid + \" for indexing, this entity will not be indexed. \", e);\n\t\t\t}\n\n\t\t}\n\n\t\t/** Put the original set of uids back. */\n\t\tsetBatch(originalBatch);\n\n\t}", "public void step() {\n //Assume m exists\n Module temp = (Module) m.getNeighbor(dir);\n for (int i = 0; i < len; i++) {\n if (temp == null) {\n break;\n }\n r.disconnectModules(temp, disconnectDir);\n temp = (Module) temp.getNeighbor(dir);\n }\n reachedEnd = true;\n }", "public void action() throws Exception {\n // Cop move to another place\n move();\n\n // Search for agents nearby\n ArrayList<Position> occupiedNeighbor = this.getPosition().getOccupiedNeighborhood();\n ArrayList<Agent> arrestList = new ArrayList<>();\n for (Position neighbor : occupiedNeighbor) {\n Person person = neighbor.getOccupiedPerson();\n String className = person.getClass().getName();\n // if this is a agent and is active\n if (className.equals(Person.AGENT)) {\n if (((Agent) person).isActive()) {\n arrestList.add((Agent) person);\n }\n }\n }\n\n // If there at least one agent nearby\n if (0 != arrestList.size()) {\n // Randomly pick active agent to jail\n Random random = new Random();\n int maxIndex = arrestList.size();\n int randomIndex = random.nextInt(maxIndex);\n Agent arrestAgent = arrestList.get(randomIndex);\n int jailTerm = random.nextInt(getPersonEnvironment().getMaxJailTerm());\n arrestAgent.beArrested(jailTerm, this);\n }\n }", "@Override\n public void whenBroken(PromiseBrokenException promiseBrokenException) {\n for(DeliverablePromise<T> promise: this.promises){\n try{\n promise.breakPromise(promiseBrokenException);\n }catch (PromiseRealizedException exception){\n\n }\n }\n }", "public static void applyForAll(Optional<?>[] optionals, Runnable action) {\n final boolean isAnyAbsent = Arrays.asList(optionals).stream().filter(IS_ABSENT).findAny().isPresent();\n if (!isAnyAbsent) {\n action.run();\n }\n }", "public synchronized void run() {\n\t\twhile(true){\n\t\t\tif(!il.isEmpty()){\n\t\t\t\tint tempPrime = il.get();\n\t\t\t\tcheckPrime(tempPrime);\n\t\t\t}\n\t\t}\n\t}", "private void iterateEnemyShots() {\n\t\tfor (Shot s : enemyShotList) {\n\t\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\t\tfor(Invader a : row) {\n\t\t\t\t\ta.shouldAttack(s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public final void collect(Collection<? super T> output) {\n Node n = getHead();\n while (true) {\n Node next = (Node) n.get();\n if (next != null) {\n Object v = leaveTransform(next.value);\n if (!NotificationLite.isComplete(v) && !NotificationLite.isError(v)) {\n output.add(NotificationLite.getValue(v));\n n = next;\n } else {\n return;\n }\n } else {\n return;\n }\n }\n }", "static Exception executeAll(\r\n ExecutorService executorService, \r\n Collection<Callable<Object>> callables) \r\n throws InterruptedException\r\n {\r\n CompletionService<Object> completionService =\r\n new ExecutorCompletionService<Object>(executorService);\r\n int n = callables.size();\r\n List<Future<Object>> futures = new ArrayList<Future<Object>>(n);\r\n Exception caughtException = null;\r\n try\r\n {\r\n for (Callable<Object> callable : callables)\r\n {\r\n futures.add(completionService.submit(callable));\r\n }\r\n for (int i = 0; i < n; ++i)\r\n {\r\n try\r\n {\r\n Future<Object> future = completionService.take();\r\n future.get();\r\n } \r\n catch (ExecutionException e)\r\n {\r\n logger.fine(\"Exception during execution: \" + e);\r\n caughtException = e;\r\n break;\r\n }\r\n }\r\n } \r\n catch (RejectedExecutionException e)\r\n {\r\n // This should not happen: When the executor is shut down,\r\n // then no more executions should be scheduled\r\n logger.severe(\"Cannot schedule execution: \" + e);\r\n caughtException = e;\r\n }\r\n finally\r\n {\r\n if (caughtException != null)\r\n {\r\n logger.info(\"Canceling execution of remaining tasks\");\r\n for (Future<Object> f : futures)\r\n {\r\n f.cancel(true);\r\n }\r\n }\r\n }\r\n return caughtException;\r\n }", "public void endElement() throws Exception;", "void eachVirtualShapeDo (FunctionalParameter doThis){\r\n\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext())\r\n doThis.execute(iter.next());\r\n\r\n // more here on\r\n }\r\n\r\n\r\n }", "public void process()\n {\n try\n {\n selectNow();\n handleSelectedKeys();\n }\n catch (final Exception e)\n {\n throw new RuntimeException(e);\n }\n }", "public void fireAll() {\n\n\t\tSystem.out.println(\"Round \" + roundNo + \": BEGIN!\");\n\n\t\tfor (Move ready : niceMoves) {\n\t\t\tready.fire();\n\t\t}\n\n\t}", "@Override\n public boolean hasNext() {\n return nextElementSet || setNextElement();\n }", "public void run() throws Exception {\n for (int i = 0; i < primitiveCases.length; ++i) {\n runCase(primitiveCases[i]);\n }\n }", "public void execute() throws ActionExecutionException {\n // perform the update operation\n CompartmentExtractor extractor = this.getExtractor();\n savedValue = extractor.extractFirstAssociationEnd();\n extractor.updateFirstAssociationEnd((GraphElement) executeValue);\n\n // identify the action can be undo\n this.executionSuccess();\n }", "public static void iterate() {\n\t\tif( !threadQueue.isEmpty() ) {\n\t\t\temptyReported = false;\n\t\t\tLogger.debug(\"Threads in queue: \" + threadQueue.size(), true);\n\t\t\ttry {\n\t\t\t\tthreadQueue.remove(0).start();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse if( !emptyReported ) {\n\t\t\tLogger.debug(\"Thread queue empty.\", true);\n\t\t\temptyReported = true;\n\t\t}\n\t}", "public void execute(){\n\t\tfor(Instruction currentInstn:this.instns){\n\t\t\tcurrentInstn.execute();\n\t\t}\n\t}", "@Override\n public void step(double delta) {\n ArrayList<Actor> actorsToReap = new ArrayList<>();\n for (Actor actor : actors) {\n actor.step(delta);\n if (actor.canReap()) {\n actorsToReap.add(actor);\n actor.reapImpl();\n }\n }\n actors.removeAll(actorsToReap);\n }" ]
[ "0.6561827", "0.63294667", "0.5898589", "0.5672385", "0.5579417", "0.5576088", "0.5564752", "0.5550924", "0.5547918", "0.5539172", "0.5452261", "0.5430939", "0.5364697", "0.53382593", "0.5244929", "0.5218566", "0.52028817", "0.5201563", "0.51976395", "0.5099869", "0.5085521", "0.50835395", "0.50382096", "0.49877435", "0.49852094", "0.497407", "0.49677867", "0.4942775", "0.4912611", "0.4905995", "0.4897775", "0.4897775", "0.48884612", "0.488684", "0.4880922", "0.48648632", "0.4864732", "0.48637462", "0.48637462", "0.4853322", "0.48471484", "0.48392493", "0.4819282", "0.48129886", "0.4792188", "0.47917587", "0.47731003", "0.47710818", "0.4770738", "0.47637013", "0.47628474", "0.47528845", "0.47429007", "0.4739732", "0.47099057", "0.4706433", "0.470555", "0.46995965", "0.46767437", "0.46756497", "0.4674633", "0.4670949", "0.46500877", "0.46481457", "0.46425906", "0.46412376", "0.46332473", "0.46320292", "0.46311265", "0.46271795", "0.4626412", "0.46248445", "0.46229973", "0.46161926", "0.46081364", "0.46024534", "0.45905116", "0.45772576", "0.4567958", "0.45672187", "0.45620474", "0.45596564", "0.4557859", "0.4555879", "0.45516506", "0.45477146", "0.4539985", "0.45344934", "0.45342198", "0.45242965", "0.4515039", "0.45139658", "0.45138213", "0.45086747", "0.45045114", "0.4501387", "0.44850037", "0.44823357", "0.44768363", "0.4470378" ]
0.5787643
3
Returns true if this set contains no objects.
public boolean isEmpty() { return items.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty() {\r\n\t\treturn objectCollection.isEmpty();\r\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn set.isEmpty();\r\n\t}", "public boolean empty() {\n return objects.isEmpty();\n }", "public boolean isEmpty() {\n return pointsSet.isEmpty();\n }", "public boolean isEmpty(){\n if(set.length == 0)\n return true;\n return false;\n }", "public boolean isEmpty() {\n return collection.isEmpty();\n }", "public boolean containsNoItems() {\n\t\treturn (this.items.size() == 0);\n\t}", "public boolean isEmpty() {\n return (this.count == 0);\n }", "@Override\n public boolean isEmpty() {\n return this.count() == 0;\n }", "public boolean isEmpty() {\n return CollectionUtils.isEmpty(this.getData());\n }", "public boolean isEmpty() {\n return (count == 0);\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn this.size == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn this.size == 0;\n\t}", "public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean isEmpty() {\n\t\tif (this.size() == 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n return count == 0;\n }", "public boolean isEmpty() {\n return count == 0;\n }", "public boolean isEmpty() {\n return count == 0;\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn count == 0;\r\n\t}", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "public boolean isEmpty() {\n\t\treturn objectMappers.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size() == 0;\n\t}", "public boolean isEmpty() {\n \n return point2DSET.isEmpty();\n }", "public boolean isEmpty()\r\n\t{\r\n\t\treturn (count == 0);\r\n\t}", "public boolean isEmpty() {\n return (this.size == 0);\n }", "public final boolean isEmpty() {\r\n\t\treturn this.size == 0;\r\n\t}", "public boolean isEmpty() {\n\t return size() == 0;\n\t }", "public boolean isEmpty() {\n\t\treturn allItems.size() == 0;\n\t}", "public boolean isEmpty() {\n return mPoints.isEmpty();\n }", "public boolean isEmpty() {\n\t\treturn count==0;\n\t}", "public boolean isEmpty() {\n return (size() == 0);\n }", "public boolean isEmpty()\r\n {\r\n if (count > 0) return false;\r\n else return true;\r\n }", "public boolean isEmpty() {\n return values.isEmpty();\n }", "public boolean isEmpty() {\n return size() == 0;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn count == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn(this.size == 0);\n\t}", "public boolean isEmpty()\n {\n return this.size == 0;\n }", "public boolean isEmpty() {\n return this.extMap.isEmpty();\n }", "public boolean isEmpty() {\r\n\t\treturn this.records.isEmpty();\r\n\t}", "public boolean isEmpty() {\n return _entries != null || _entries.isEmpty();\n }", "public boolean isEmpty(){\r\n\t\treturn size() == 0;\r\n\t}", "public boolean isEmpty() {\n return this.tuples.isEmpty();\n }", "public boolean isEmpty() {\r\n\t\tif (this.size == 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isEmpty() {\r\n return treasures.isEmpty();\r\n }", "public boolean isEmpty() {\n return mValues.isEmpty();\n }", "public boolean isEmpty() {\n return doIsEmpty();\n }", "public boolean isEmpty() \r\n\t{\r\n\t\treturn size() == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn N == 0;\n\t}", "public boolean isEmpty () {\n return mPezCount == 0;\n }", "public boolean isEmpty() {\n\t\treturn (_items.size() == 0);\n\t}", "public boolean isEmpty() {\n\t\treturn treeMap.isEmpty();\n\t}", "public boolean isEmpty() {\n return points.isEmpty();\n }", "public boolean isEmpty() {\n\t\treturn count == 0? true : false;\r\n\t}", "@Override\n public boolean isEmpty() {\n return this.size == 0;\n }", "public boolean empty() {\n\t\treturn (size() <= 0);\n\t}", "public boolean isEmpty() { return count == 0; }", "public boolean isEmpty(){\n\t\treturn (howMany==0);\n\t}", "public boolean isEmpty() {\n\t\treturn elements.isEmpty();\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn size() == 0;\r\n\t}", "public boolean isEmpty()\r\n {\r\n return (size() == 0);\r\n }", "public boolean isEmpty() {\n return cnt == 0;\n }", "public static boolean isEmpty() \r\n\t{\r\n\t\treturn m_count == 0;\r\n }", "public boolean isEmpty()\n\t{\n\t\treturn m_elements.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\t\treturn properties.isEmpty();\n\t\t}", "public boolean isEmpty() {\n\t\treturn elements == 0;\n\t}", "public boolean isEmpty() {\r\n return this.map.isEmpty();\r\n }", "public boolean isEmpty() {\n\t\treturn (N == 0);\t\n\t}", "public boolean isEmpty() {\n\t\treturn person.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn size == 0;\n\t}", "public boolean isEmpty() {\n\t\treturn classCoverageLookups.isEmpty();\n\t}", "public boolean isEmpty() {\n return getBallsCount() == 0;\n }", "public boolean isEmpty() {\n\n return elements.isEmpty();\n }", "public boolean isEmpty() {\r\n return items.isEmpty();\r\n }", "public boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}", "public boolean isEmpty() {\r\n return NumItems == 0;\r\n }", "public boolean isEmpty() {\n\t\treturn size == 0;\r\n\t}", "public boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}", "public boolean isEmpty() {\n return N == 0;\n }", "public boolean isEmpty() {\n return N == 0;\n }", "public boolean isEmpty() {\n return N == 0;\n }", "public boolean isEmpty() {\n return N == 0;\n }", "public boolean\tisEmpty() {\n\t\treturn map.isEmpty();\n\t}" ]
[ "0.8306453", "0.8298845", "0.81964856", "0.8124312", "0.79998183", "0.79119575", "0.78974664", "0.7887872", "0.78644156", "0.7853018", "0.7809818", "0.7769753", "0.7752326", "0.7746518", "0.7746518", "0.7742115", "0.7741452", "0.7741452", "0.7741452", "0.7737687", "0.77239263", "0.77239263", "0.77239263", "0.77239263", "0.77239263", "0.77239263", "0.77239263", "0.77239263", "0.77239263", "0.77239263", "0.7723057", "0.77173775", "0.77173775", "0.77173775", "0.77173775", "0.7716129", "0.77135336", "0.77114254", "0.77108574", "0.7705778", "0.77053356", "0.7691499", "0.7691077", "0.76732635", "0.7673096", "0.7667722", "0.7663275", "0.7662319", "0.76593506", "0.7650681", "0.7643126", "0.76175135", "0.7616837", "0.76157856", "0.7615439", "0.76147306", "0.76130205", "0.7609031", "0.7593279", "0.7592343", "0.759234", "0.759234", "0.759234", "0.75906086", "0.7588272", "0.75858295", "0.75846004", "0.75813496", "0.75801027", "0.75788844", "0.7578155", "0.7576275", "0.7571728", "0.7567514", "0.75646234", "0.7563523", "0.75435627", "0.7534422", "0.7533339", "0.7526495", "0.75258327", "0.75243527", "0.7521387", "0.7517648", "0.7517648", "0.7517648", "0.75158405", "0.7512362", "0.7509436", "0.7508422", "0.7508298", "0.7505888", "0.75003684", "0.7499256", "0.7498783", "0.7498783", "0.7498783", "0.7498783", "0.74983585" ]
0.7499356
93
Returns an iterator over elements of type T.
@Override public Iterator<T> iterator() { return items.iterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Iterator<T> iterator();", "public T iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<Type> iterator();", "public Iterator<T> getIterator();", "Iterator<E> iterator();", "Iterator<E> iterator();", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "@Override\n Iterator<T> iterator();", "@Override\n @Nonnull Iterator<T> iterator();", "Iterator<K> iterator();", "public Iterator<T> getPageElements();", "@Override\r\n Iterator<E> iterator();", "@Override\n public <T> Iterator<Entry<T>> typedIterator(Class<T> clazz) {\n List<Entry<T>> entries = new ArrayList();\n for (Iterator<Entry> it = this.iterator(); it.hasNext(); ) {\n final Entry e = it.next();\n if (e.getKey().valueType.equals(clazz)) {\n entries.add(e);\n }\n }\n return entries.iterator();\n }", "public abstract TreeIter<T> iterator();", "@Override\n public Iterator<E> iterator() {\n return new ElementIterator();\n }", "public Iterator <T> iterator (){\n\t\t// create and return an instance of the inner class IteratorImpl\n\t\t\t\treturn new HashAVLTreeIterator();\n\t}", "@Override\n\tpublic final Iterator<T> iterator() {\n\t\treturn new IteratorImpl<>(value.get());\n\t}", "public Iterator<T> iterator()\n\t{\n\t\treturn new Iterator<T>()\n\t\t{\n\t\t\tNode<T> actual = head;\n\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn actual != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic T next() \n\t\t\t{\n\t\t\t\tif(hasNext())\n\t\t\t\t{\n\t\t\t\t\tT data = actual.getElement();\n\t\t\t\t\tactual = actual.getNext();\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t}", "@Override\n public Iterator<T> iterator() {\n return new Itr();\n }", "@Override\n public Iterator<T> iterator() {\n return new Itr();\n }", "public abstract Iterator<E> createIterator();", "public interface Iterable<T> {\n Iterator<T> getIterator();\n}", "public Iterator<E> iterator(){\r\n return new IteratorHelper();\r\n }", "public Iterator<ElementType> iterator(){\n return new InnerIterator();\n }", "public Iterator getIterator() {\n return myElements.iterator();\n }", "@Override\n public Iterator<T> iterator() {\n return new Iterator<T>() {\n int index = 0;\n\n @Override\n public boolean hasNext() {\n return index < size;\n }\n\n @Override\n public T next() {\n return genericArrayList[index++];\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n };\n }", "@Override public Iterator<MetaExample<L>> iterator();", "@Override\n public Iterator<T> iterator() {\n return forwardIterator();\n }", "public Iterator <item_t> iterator () {\n return new itor ();\n }", "public Iterator<E> iterator() {\n\t\treturn new Itr();\n\t}", "public Iterator<Type> iterator() {\n return new LinkedListIterator(first);\n }", "public PTIterator iterator() {\n if (iterator == null && isValid())\n iterator = new PTIteratorImpl(handle);\n return iterator;\n }", "public Iterator<T> iterator() {\n if (this.nrOfElements == 0) {\n return Collections.<T>emptyList().iterator();\n }\n return new Iterator<T>() {\n private Node walker = null;\n\n @Override\n public boolean hasNext() {\n return walker != last;\n }\n\n @Override\n public T next() {\n if (this.walker == null) {\n this.walker = first;\n return this.walker.getData();\n }\n\n if (this.walker.getNext() == null) {\n throw new NoSuchElementException();\n }\n\n this.walker = this.walker.getNext();\n return this.walker.getData();\n }\n };\n }", "public interface BookIterable<T> {\n\n Iterator<T> iterator();\n\n}", "public Iterator<T> iterator() {\r\n return new ArrayIterator(elements, size);\r\n }", "public Iterator<V> iterator()\n {\n return new Iterator<V>()\n {\n public boolean hasNext()\n {\n // STUB\n return false;\n } // hasNext()\n\n public V next()\n {\n // STUB\n return null;\n } // next()\n\n public void remove()\n throws UnsupportedOperationException\n {\n throw new UnsupportedOperationException();\n } // remove()\n }; // new Iterator<V>\n }", "@Override\n\tpublic Iterator<T> iterator() {\n\t\t\n\t\treturn lista.iterator();\n\t}", "public Iterator<String> iterator();", "@SuppressWarnings(\"unchecked\")\r\n public Iterator<Tuple<T>> iterator() {\n Iterator<Tuple<T>> fi = (Iterator<Tuple<T>>) new FilteredIterator<T>(resultTable.iterator(), filterOn);\r\n return fi;\r\n }", "public Iterator<T> getIterator() {\n return new Iterator(this);\n }", "public Iterator<Item> iterator() {\n Item[] temp = (Item[]) new Object[size];\n System.arraycopy(array, 0, temp, 0, size);\n return (new RandomIterator(temp));\n }", "@Override\n public Iterator<T> iterator() {\n return new MyArrayList.MyIterator();\n }", "public Iterator iterator () {\n return new MyIterator (first);\n }", "public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}", "@Override\n public Iterator<Integer> iterator() {\n return new Iterator<>() {\n int i = 0;\n\n @Override\n public boolean hasNext() {\n return i < Set.this.count;\n }\n\n @Override\n public Integer next() {\n return Set.this.arr[i++];\n }\n };\n }", "@Override\r\n\tpublic Iterator<T> iterator() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn this.iteratorInOrder();\r\n\t}", "@Override\n public Iterator<Object> iterator() {\n return new Iterator<Object>() {\n\n private int i = 0;\n\n @Override\n public boolean hasNext() {\n return i < data.length;\n }\n\n @Override\n public Object next() {\n Object result = data[i];\n i = i + 1;\n return result;\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException(\"Tuples are immutable\");\n }\n };\n }", "@Override\n public Iterator<Type> getTypeIterator() {\n // trick to convert List<TypeImpl> to List<Type> with some safety\n Iterator<Type> it = Collections.<Type> unmodifiableList(types).iterator();\n it.next();\n return it;\n }", "@Override\r\n\tpublic Iterator<E> iterator()\r\n\t{\n\t\treturn ( iterator.hasNext() ? new EntityListIterator() : iterator.reset() );\r\n\t}", "Iterable<CtElement> asIterable();", "@Override\n @ApiStatus.Experimental\n public final @NotNull Iterator<@Nullable T> iterator() {\n List<T> result = cachedExtensions;\n return result == null ? createIterator() : result.iterator();\n }", "public Iterator<Object> iterator()\r\n {\r\n return new MyTreeSetIterator(root);\r\n }", "public Iterator iterator(final String tag)\n {\n return new Iterator()\n {\n int c=0;\n Node _node;\n\n /* -------------------------------------------------- */\n public boolean hasNext()\n {\n if(_node!=null)\n return true;\n while(_list!=null&&c<_list.size())\n {\n Object o=_list.get(c);\n if(o instanceof Node)\n {\n Node n=(Node)o;\n if(tag.equals(n._tag))\n {\n _node=n;\n return true;\n }\n }\n c++;\n }\n return false;\n }\n\n /* -------------------------------------------------- */\n public Object next()\n {\n try\n {\n if(hasNext())\n return _node;\n throw new NoSuchElementException();\n }\n finally\n {\n _node=null;\n c++;\n }\n }\n\n /* -------------------------------------------------- */\n public void remove()\n {\n throw new UnsupportedOperationException(\"Not supported\");\n }\n };\n }", "public /*@ non_null @*/ JMLIterator<E> iterator() {\n return new JMLEnumerationToIterator<E>(elements());\n }", "@Override\n\tpublic Iterator<WebElement> iterator() {\n\t\treturn this.elements.iterator();\n\t}", "public Iterator<Item> iterator() {\n return new Iterator<Item>() {\n public boolean hasNext() {\n return false;\n }\n\n public Item next() {\n return null;\n }\n };\n }", "@Override\r\n public Iterator<ValueType> iterator() {\r\n // TODO\r\n return null;\r\n }", "@Override\n\t\t\tpublic Iterator<T> iterator() {\n\t\t\t\treturn convertData(data.iterator(), targetClass);\n\t\t\t}", "public Iterator<T> iterator() {\n\t\treturn list.iterator();\n\t}", "public Iterator<String> tagTypeIterator() { return tag_types.iterator(); }", "public native IterableIterator<V> values();", "public Iterator<Object[]> getIterator()\n\t{\n\t\tinit();\n\t\t\n\t\treturn new SimpleIterator();\n\t}", "@Override public java.util.Iterator<Function> iterator() {return new JavaIterator(begin(), end()); }", "@Override\n public Iterator<T> iterator() {\n return new Iterator<T>(){\n private int ci = 0;\n \n /**\n * Checks if ArrayList has next element \n * @return \n */\n public boolean hasNext(){\n return ci < size;\n }\n \n /**\n * Returns next element and moves iterator forward\n * @return \n */\n public T next(){\n return (T)data[ci++];\n }\n \n /**\n * Does nothing\n */\n public void remove(){\n \n }\n };\n }", "public Iterator<T> iterator()\n\t{\n\t\treturn new LinkedListIterator();\n\t}", "@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn this.itemList.iterator();\n\t}", "@Override\n public Iterator<Object> iterator() {\n return new MyIterator();\n }", "public Iterator<ODocument> getAllAsList(@Generic(\"T\") final Class<?> type) {\n return getAll(type);\n }", "public interface IIterator<C>\n{\t\n\t/**\n\t * Returns {@code true} if there's another element in the list to iterate over, {@code false} otherwise.\n\t * @return {@code true} if there's another element in the list to iterate over, {@code false} otherwise\n\t * @since 1.0.0\n\t */\n\tpublic boolean hasNext();\n\t\n\t/**\n\t * Returns the next template object in the list iteration.\n\t * @return the next template object in the list iteration\n\t * @since 1.0.0\n\t */\n\tpublic C getNext();\n\t\n\t/**\n\t * Returns the size of the list.\n\t * @return the size of the list\n\t * @since 1.0.0\n\t */\n\tpublic int getSize();\n\t\n\t/**\n\t * Returns the current index location. The index adds 1 every time the {@code getNext()} method is called.\n\t * @return the current index location\n\t * @since 1.0.0\n\t */\n\tpublic int getIndex();\n\t\n\t/**\n\t * Resets the iterator index back to 0, if implemented.\n\t * @since 1.0.0\n\t */\n\tpublic void reset();\n}", "public Iterator<T> iterator() {\r\n return byGenerations();\r\n }", "Iterator<Class<? extends IToken>> getTmqlTokenIterator();", "@Override\n public Iterator<E> iterator() {\n return new InsideIterator(first);\n }", "public interface ElementsGetter<T> {\n\t\n\t/**\n\t * Metoda provjerava ima li jos elemenata\n\t * u kolekciji\n\t * @return boolean true ako ima jos elemenata, false ako nema\n\t */\n\tpublic boolean hasNextElement();\n\t\n\t/**\n\t * Metoda dohvaca iduci element kolekcije i vraca ga.\n\t * @return Object koji je iduci element iz kolekcije\n\t */\n\tpublic T getNextElement();\n\t\n\t/**\n\t * Nad svim preostalim elementima kolekcije poziva \n\t * metodu procesora p process(Object value).\n\t * @param p Procesor koji hocemo pozvati nad\n\t * preostalim elementima kolekcije.\n\t * @throws NullPointerException ako je procesor p null\n\t */\n\tdefault void processRemaining(Processor<? super T> p) {\n\t\tObjects.requireNonNull(p);\n\t\twhile(hasNextElement()) {\n\t\t\tp.process(getNextElement());\n\t\t}\n\t}\n}", "@SuppressWarnings(\"unchecked\")\n private static <T> Stream<T> all(Class<T> type, Iterator<Object> i) {\n requireNonNull(type);\n requireNonNull(i);\n \n return all(i).filter(o -> type.isAssignableFrom(o.getClass()))\n .map(o -> (T) o);\n }", "public Iterator<? extends E> iterator() {\n return (Iterator<? extends E>) Arrays.asList(queue).subList(startPos, queue.length).iterator();\n }", "public Iterator<Integer> iterator() {\n\t\treturn new WrappedIntIterator(intIterator());\n\t}", "public Iterator<Item> iterator(){\n return new ArrayIterator();\n }", "Iterable<T> list();", "public Iterator iterator() {\n\t\treturn new IteratorLinkedList<T>(cabeza);\r\n\t}", "public Iterator iterator() {\n\n return new EnumerationIterator(elements.keys());\n }", "public SequenceIterator iterate(final XPathContext context) throws XPathException {\n SequenceIterator base = operand.iterate(context);\n ItemMappingFunction converter = new ItemMappingFunction() {\n public Item map(Item item) throws XPathException {\n return ((AtomicValue)item).convert(requiredPrimitiveType, context);\n }\n };\n return new ItemMappingIterator(base, converter);\n }", "@Override\n public Iterator<Pair<K, V>> iterator() {\n return new Iterator<Pair<K, V>>() {\n private int i = 0, j = -1;\n private boolean _hasNext = true;\n\n @Override\n public boolean hasNext() {\n return _hasNext;\n }\n\n @Override\n public Pair<K, V> next() {\n Pair<K, V> r = null;\n if (j >= 0) {\n List<Pair<K, V>> inl = l.get(i);\n r = inl.get(j++);\n if (j > inl.size())\n j = -1;\n }\n else {\n for (; i < l.size(); ++i) {\n List<Pair<K, V>> inl = l.get(i);\n if (inl == null)\n continue;\n r = inl.get(0);\n j = 1;\n }\n }\n if (r == null)\n _hasNext = false;\n return r;\n }\n };\n }", "public Iterator<S> iterator() {\n\t\t// ..\n\t\treturn null;\n\t}", "public synchronized Iterator<E> iterator()\n {\n return iteratorUpAll();\n }", "public <T> Iterator<T> asIterator(){\n return new NextIterator<T>() {\n @Override\n public T getNext() {\n try{\n return readObject();\n }catch(Exception eof){\n if(eof instanceof EOFException){\n finished = true ;\n }\n return null;\n }\n }\n\n @Override\n protected void close() {\n DeserializationStream.this.close();\n }\n };\n }", "@Override\n public Iterator<T> iterator() {\n return this;\n }", "@Override\n public Iterator<Value> iterator()\n {\n return values.iterator();\n }", "Iterator<TrieEntry<T, U>> trieIterator();", "public T[] next();", "@Override\n\tpublic Iterator<E> iterator() {\n\t\treturn Iterators.emptyIterator();\n\t}", "public Iterator<E> iterator()\r\n {\r\n return listIterator();\r\n }", "@Override\n public Iterator<Entity> iterator() {\n return entities.iterator();\n }", "@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn new LinkedListIterator();\n\t}", "Iterator<T> iterator(int start, int limit);" ]
[ "0.78096616", "0.7759676", "0.76986015", "0.76986015", "0.76986015", "0.76986015", "0.7555112", "0.7529757", "0.7313036", "0.7313036", "0.7112896", "0.7112896", "0.7112896", "0.71035343", "0.68920755", "0.67159927", "0.6695328", "0.66818637", "0.65989053", "0.65293336", "0.6455615", "0.63847965", "0.63772213", "0.6322149", "0.6318631", "0.6318631", "0.63103884", "0.6286308", "0.62727", "0.6256664", "0.6244217", "0.6240057", "0.62325686", "0.62253076", "0.6222131", "0.62031674", "0.6157113", "0.6150038", "0.61461467", "0.60820323", "0.60666", "0.606487", "0.6058683", "0.60486", "0.6037025", "0.60198784", "0.60194325", "0.6009454", "0.6000332", "0.5999356", "0.5988168", "0.5983532", "0.5978468", "0.59518844", "0.5939204", "0.59081036", "0.59066886", "0.5899839", "0.58981276", "0.58947736", "0.58930236", "0.58875287", "0.58796847", "0.58575994", "0.58575773", "0.5857361", "0.5856218", "0.58465385", "0.5838199", "0.58373433", "0.58290166", "0.58271146", "0.5826312", "0.5824987", "0.5822728", "0.582123", "0.58187586", "0.5818286", "0.5811907", "0.58097714", "0.58016086", "0.57965046", "0.578954", "0.57849854", "0.57799155", "0.5764642", "0.57573926", "0.5756322", "0.5741881", "0.5736745", "0.5732093", "0.5726811", "0.57239074", "0.5721224", "0.57207495", "0.57169825", "0.57144606", "0.5711476", "0.56975955", "0.5697292" ]
0.62045985
35
Returns the total number of AgileObjects in this AgileSet.
public int size() { return items.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNrOfAssociations() {\n int size = 0;\n for (PriorityCollection associations : memory.values()) {\n size += associations.size();\n }\n return size;\n }", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "public int size() {\n \tint currentSize = 0;\n \t\n \tIterator<E> iterateSet = this.iterator();\n \t\n \t// calculates number of elements in this set\n \twhile(iterateSet.hasNext()) {\n \t\titerateSet.next();\n \t\tcurrentSize++;\t\t\n \t}\n \t\n \treturn currentSize;\n \t\n }", "public final int size() {\n int size = 0;\n final Iterator iterator = this.iterator();\n while (iterator.hasNext()) {\n size++;\n iterator.next();\n }\n return size;\n }", "public int count() {\n return Query.count(iterable);\n }", "public int size() {\n\t\t\treturn gameObjects.size();\n\t\t}", "public int getSize() {\n\t\t\treturn objects.size();\n\t\t}", "public int size() {\n return set.size();\n }", "public int size() {\n resolveAll();\n return resolvedPojos.size();\n }", "public int size() {\n\t\treturn collection.size();\n\t}", "public int size() {\n return collection.size();\n }", "@Override\n\tpublic int size() {\n\t\treturn util.iterator.IteratorUtilities.size(iterator());\n\t}", "@Override\n public int size() {\n int totalSize = 0;\n // iterating over collectionList\n for (Collection<E> coll : collectionList)\n totalSize += coll.size();\n return totalSize;\n }", "public int size() {\n maintain();\n return collection.size();\n }", "public int size() {\n int size = 0;\n\n Collection<CacheableObject> values = new HashSet<CacheableObject>();\n synchronized(theLock) {\n values.addAll(valueMap.values());\n }\n\n for (CacheableObject cObj : values) {\n if (! this.isExpired(cObj)) {\n size++;\n }\n }\n\n return size;\n }", "public int size() {\n int count = terminal ? 1 : 0;\n for (Set<String> child : children)\n if (child != null) count += child.size();\n return count;\n }", "public int size()\n\t{\n\t\treturn numOfEmployees;\n\t}", "public int sizeOfAgentArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(AGENT$0);\r\n }\r\n }", "public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }", "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}", "public int size() {\n\t\treturn set.size();\n\t}", "public int size() {\r\n\t\treturn set.size();\r\n\t}", "public int size() {\n return this.collection.size();\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_CAMPUS);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "@Override\n public int size() {\n return theSet.size();\n }", "public int size() {\n return pointsSet.size();\n }", "public int size() {\n return tree.count();\n }", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "public int size() {\n return pointSet.size();\n }", "public int size() {\n return basePileup.size();\n }", "public int findAllCount() {\n\t\treturn mapper.selectCount(null);\n\t}", "public Integer entitiesCount() {\n return this.entitiesCount;\n }", "@Override\n\tpublic int numerOfItems() {\n\t\treturn usersDAO.numerOfItems();\n\t}", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_APPROVATORE);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int size() {\n return bag.size();\n }", "public int size() {\n return itemsets.size();\n }", "public final int count() {\n\t\tCountFunction function = new CountFunction();\n\t\teach(function);\n\t\treturn function.getCount();\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n\t\treturn count;\n\t}", "public int size() {\n return count;\n }", "public int size() {\n return doSize();\n }", "public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}", "public int size()\n {\n // check if the cache needs flushing\n checkFlush();\n\n return super.size();\n }", "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "public int size()\r\n {\r\n return count;\r\n }", "@Override\n public int countAll() {\n\n Query qry = this.em.createQuery(\n \"select count(assoc) \" +\n \"from WorkToSubjectEntity assoc\");\n\n return ((Long) qry.getSingleResult()).intValue();\n }", "@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}", "public int getArmyCount() {\n\n return this.totArmyCount;\n }", "public int getAoisCount() {\n if (aoisBuilder_ == null) {\n return aois_.size();\n } else {\n return aoisBuilder_.getCount();\n }\n }", "public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\n return Integer.MAX_VALUE;\r\n }\r\n return NumItems;\r\n }", "public int getTotalCount() {\n return totalCount;\n }", "@Override\r\n\tpublic int size() {\n\t\treturn set.size();\r\n\t}", "public int size() {\n // DO NOT MODIFY THIS METHOD!\n return size;\n }", "public int getTotalCount() {\r\n return root.getTotalCount();\r\n }", "@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}", "@MethodContract(\n post = @Expression(\"sum(Set s : elementExceptions) {s.size})\")\n )\n public int getSize() {\n int acc = 0;\n for (Set<PropertyException> s : $elementExceptions.values()) {\n acc += s.size();\n }\n return acc;\n }", "public int size(){\n\t\treturn howMany; \n\t}", "@Override\r\n\tpublic int getTotal() {\n\t\treturn mapper.count();\r\n\t}", "public int getNumObjects(){\n return numObjects;\n }", "public int size() {\r\n assert numElements >= 0 : numElements;\r\n assert numElements <= capacity : numElements;\r\n assert numElements >= elementsByFitness.size() : numElements;\r\n return numElements;\r\n }", "@Override\r\n\tpublic int size() {\n\t\treturn count;\r\n\t}", "public int size()\n {\n return count;\n }", "public int getLength() {\n return collection.size();\n }", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "public static int countAll() {\n\t\treturn getPersistence().countAll();\n\t}", "@Override\r\n\tpublic int countAll() {\r\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\tFINDER_ARGS_EMPTY, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_SHARE);\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\r\n\t\t\t\t\tcount);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\r\n\t\t\t\t\tFINDER_ARGS_EMPTY);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}", "public Integer countAll() {\n\t\treturn null;\n\t}", "public int size() \r\n\t{\r\n\t\treturn getCounter();\r\n\t}", "public int getExperiencesCount() {\n if (experiencesBuilder_ == null) {\n return experiences_.size();\n } else {\n return experiencesBuilder_.getCount();\n }\n }", "public final int size()\n {\n return m_count;\n }", "public int size()\n\t{\n\t\treturn creatures.size();\n\t}", "public int size() {\n return enemies.size();\n }", "public int size() {\n // DO NOT MODIFY!\n return size;\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_LINKGROUP);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int numHits() {\r\n\t\treturn hits;\r\n\t}", "public int size() {\n // TODO: Implement this method\n return size;\n }", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_PAPER);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getCardCount() {\n return cardSet.totalCount();\n }", "public int size() {\n synchronized (this.base) {\n return this.base.size();\n }\n }", "public long countAll() {\n\t\treturn super.doCountAll();\n\t}", "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}", "@Override\r\n\tpublic int size() {\r\n\t\treturn count;\r\n\t}", "public int size() {\n\t\tTree<K, V> t = this;\n\t\tint size = 1;\n\t\treturn size(t, size);\n\t}", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "public long getNbTotalItems() {\n return nbTotalItems;\n }", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}" ]
[ "0.68752104", "0.67718804", "0.6763946", "0.67530644", "0.6631598", "0.6628223", "0.6542411", "0.65374374", "0.65109116", "0.6504406", "0.6502899", "0.6499879", "0.6492113", "0.64828074", "0.64816535", "0.6478251", "0.6454932", "0.6429705", "0.64259607", "0.642295", "0.64103985", "0.6398842", "0.6391697", "0.63904834", "0.637948", "0.6374324", "0.63516164", "0.6344548", "0.63420516", "0.63420516", "0.6338774", "0.63330024", "0.6304171", "0.63018316", "0.6288112", "0.62772816", "0.62725645", "0.627157", "0.6271078", "0.62651914", "0.62651914", "0.62651914", "0.62628675", "0.6253787", "0.6242929", "0.6239391", "0.62382483", "0.6227179", "0.6224298", "0.62223476", "0.6221306", "0.6221065", "0.6220198", "0.6218386", "0.62153125", "0.62104493", "0.62061703", "0.6206034", "0.6203316", "0.6198062", "0.6196372", "0.6194018", "0.61936104", "0.61904067", "0.61769253", "0.6170109", "0.6169848", "0.616381", "0.6161373", "0.6161373", "0.6161373", "0.6161373", "0.6161373", "0.6161373", "0.6161373", "0.6161373", "0.6161373", "0.6161373", "0.61571556", "0.61510825", "0.61502004", "0.61408144", "0.61396354", "0.61353266", "0.6128794", "0.61263746", "0.6121483", "0.61183435", "0.6116135", "0.6115198", "0.6112855", "0.61104405", "0.6108", "0.61039454", "0.6103094", "0.60983264", "0.6084964", "0.60809225", "0.6076554", "0.6072359", "0.6068096" ]
0.0
-1
Creates a Spliterator over the elements described by this Iterable.
@Override public Spliterator<T> spliterator() { return items.spliterator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }", "@Override\n public Spliterator<ContentHandle> spliterator() {\n throw new UnsupportedOperationException();\n }", "public Iterator<Item> iterator() {\n Item[] temp = (Item[]) new Object[size];\n System.arraycopy(array, 0, temp, 0, size);\n return (new RandomIterator(temp));\n }", "@Override\r\n public Iterator iterator(){\n return new MyIterator(this);\r\n }", "@Override\n public Iterator<Integer> iterator() {\n return new Iterator<>() {\n int i = 0;\n\n @Override\n public boolean hasNext() {\n return i < Set.this.count;\n }\n\n @Override\n public Integer next() {\n return Set.this.arr[i++];\n }\n };\n }", "@Override\n public Iterator<E> iterator() {\n return new ElementIterator();\n }", "@Override\n public Iterator<E> iterator() {\n return new SimpleArrayListIterator<E>();\n }", "public Iterator iterator () {\n return new MyIterator (first);\n }", "public Iterator iterator()\r\n {\r\n return new IteratorImpl( this, home() );\r\n }", "public SList_Iterator<T> iterator() {\n return new iterator();\n }", "@Override\n public Iterator<T> iterator() {\n return new MyArrayList.MyIterator();\n }", "@Override\r\n Iterator<E> iterator();", "@Override\n Iterator<T> iterator();", "@Override\n public Iterator<E> iterator() {\n return new InsideIterator(first);\n }", "public final Iterator iterator() {\n return new WellsIterator(this);\n }", "public Iterator<Item> iterator() {\n return new RandomIterator(N, a);\n }", "public Iterator <item_t> iterator () {\n return new itor ();\n }", "public T iterator();", "@Override\n public Iterator<Object> iterator() {\n return new MyIterator();\n }", "@Override\n @Nonnull Iterator<T> iterator();", "Iterator<T> iterator();", "public Iterator<Item> iterator() {\n return new RandomArrayIterator();\n }", "@Override\n public Iterator<Integer> iterator() {\n return new IteratorImplementation();\n }", "@Override\n public Iterator<Pair<K, V>> iterator() {\n return new Iterator<Pair<K, V>>() {\n private int i = 0, j = -1;\n private boolean _hasNext = true;\n\n @Override\n public boolean hasNext() {\n return _hasNext;\n }\n\n @Override\n public Pair<K, V> next() {\n Pair<K, V> r = null;\n if (j >= 0) {\n List<Pair<K, V>> inl = l.get(i);\n r = inl.get(j++);\n if (j > inl.size())\n j = -1;\n }\n else {\n for (; i < l.size(); ++i) {\n List<Pair<K, V>> inl = l.get(i);\n if (inl == null)\n continue;\n r = inl.get(0);\n j = 1;\n }\n }\n if (r == null)\n _hasNext = false;\n return r;\n }\n };\n }", "public Iterator<Item> iterator() {\n return new RandomIterator();\n }", "public Iterator<E> iterator(){\r\n return new IteratorHelper();\r\n }", "@Override\n public Iterator<T> iterator() {\n return items.iterator();\n }", "public Iterator<T> iterator() {\n return new ListIterator<T>(this);\n }", "public Iterator<T> iterator() {\n return new ListIterator<T>(this);\n }", "public Iterator<Item> iterator() {\n return new RandomizedArrayIterator();\n }", "public Iterator<ElementType> iterator(){\n return new InnerIterator();\n }", "public Iterator<Item> iterator() {\n return new RandomizedIterator();\n }", "@Override\n\tpublic final Iterator<T> iterator() {\n\t\treturn new IteratorImpl<>(value.get());\n\t}", "@Override\n public Iterator<T> iterator() {\n return this;\n }", "@Override\n public Iterator<T> iterator() {\n return new Iterator<T>() {\n int index = 0;\n\n @Override\n public boolean hasNext() {\n return index < size;\n }\n\n @Override\n public T next() {\n return genericArrayList[index++];\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n };\n }", "public Iterator<Item> iterator() { return new ListIterator(); }", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "public Iterator<T> iterator();", "@Override\r\n\tpublic Iterator<Key> iterator() {\n\t\treturn new ListIterator();\r\n\t}", "public Iterator<Item> iterator() {\n return new RandomizedIterator();\n }", "public Iterator<Item> iterator() { return new RandomIterator();}", "public Iterator<Item> iterator()\r\n {\r\n return new ListIterator();\r\n }", "private static Stream<?> all(Iterator<Object> i) {\n requireNonNull(i);\n final Iterable<Object> it = () -> i;\n return StreamSupport.stream(it.spliterator(), false);\n }", "@Override\n public Iterator<T> iterator() {\n return new Itr();\n }", "@Override\n public Iterator<T> iterator() {\n return new Itr();\n }", "public abstract Iterator<E> createIterator();", "public Iterator<S> iterator() {\n\t\t// ..\n\t\treturn null;\n\t}", "public Iterator<Object[]> getIterator()\n\t{\n\t\tinit();\n\t\t\n\t\treturn new SimpleIterator();\n\t}", "public Iterator<Item> iterator() {\n return new ListIterator();\n\n }", "public Iterator<Item> iterator() {\n return new ListIterator();\n }", "public Iterator<Item> iterator() {\n return new ListIterator();\n }", "public Iterator<Item> iterator() {\n return new ListIterator();\n }", "public Iterator<Item> iterator() {\n return new ListIterator();\n }", "public Iterator<Item> iterator() {\n return new ListIterator();\n }", "public Iterator<Item> iterator() {\n return new ListIterator();\n }", "@Override\n public Iterator<Item> iterator() {\n return new ListIterator();\n }", "Iterator<E> iterator();", "Iterator<E> iterator();", "public static <T> Iterator<T> iterator(final Spliterator<? extends T> spliterator) {\n/* 667 */ Objects.requireNonNull(spliterator);\n/* */ class Adapter\n/* */ implements Iterator<T>, Consumer<T> {\n/* */ boolean valueReady = false;\n/* */ T nextElement;\n/* */ \n/* */ public void accept(T param1T) {\n/* 674 */ this.valueReady = true;\n/* 675 */ this.nextElement = param1T;\n/* */ }\n/* */ \n/* */ \n/* */ public boolean hasNext() {\n/* 680 */ if (!this.valueReady)\n/* 681 */ spliterator.tryAdvance(this); \n/* 682 */ return this.valueReady;\n/* */ }\n/* */ \n/* */ \n/* */ public T next() {\n/* 687 */ if (!this.valueReady && !hasNext()) {\n/* 688 */ throw new NoSuchElementException();\n/* */ }\n/* 690 */ this.valueReady = false;\n/* 691 */ return this.nextElement;\n/* */ }\n/* */ };\n/* */ \n/* */ \n/* 696 */ return new Adapter();\n/* */ }", "public Iterator<Item> iterator() {\n\t\treturn new ListIterator(); \n\t\t}", "public Iterable<T> iterable() {\n return new ResourceCollectionIterable<>(this);\n }", "public Iterator<Item> iterator() {\n return new AIterator();\n }", "public Iterable<MapElement> elements() {\n return new MapIterator() {\n\n @Override\n public MapElement next() {\n return findNext(true);\n }\n \n };\n }", "@Override\n\tpublic Iterator<Item> iterator() {\n\t\treturn new ListIterator();\n\t}", "@Override\n public Iterator iterator() {\n return new PairIterator();\n }", "public Iterator<Item> iterator() {\n return new ArrayIterator();\n }", "public Iterator<Item> iterator() {\n return new ArrayIterator();\n }", "public Iterator<Item> iterator() {\n return new ArrayIterator();\n }", "public Iterator<Item> iterator() {\n return new ArrayIterator();\n }", "public Iterator<E> iterator() {\n\t\treturn new Itr();\n\t}", "public Iterator<T> iterator() {\r\n \r\n return new Iteration();\r\n }", "@Override public java.util.Iterator<Function> iterator() {return new JavaIterator(begin(), end()); }", "public Iterator<Item> iterator() {\n\t\treturn new ListIterator();\n\t}", "public Iterator<E> iterator() {\n return new SortedArraySetIterator(this);\n }", "@Override\n public Iterator<T> iterator() {\n return forwardIterator();\n }", "@Override\n public Iterator<Position> iterator() {\n \t\n \t//create the child-position on calling the iterator\n \tcreateChildren();\n \t\n return new Iterator<Position> () {\n private final Iterator<Position> iter = children.iterator();\n\n @Override\n public boolean hasNext() {\n return iter.hasNext();\n }\n\n @Override\n public Position next() {\n return iter.next();\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException(\"no changes allowed\");\n }\n };\n }", "@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn this.itemList.iterator();\n\t}", "public /*@ non_null @*/ JMLIterator<E> iterator() {\n return new JMLEnumerationToIterator<E>(elements());\n }", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public Iterator<E> iterator();", "public Iterator<T> iterator() {\r\n return new ArrayIterator(elements, size);\r\n }", "public Iterator<T> iterator() {\n return new SetIterator<T>(this.head);\n }", "public Iterator<Item> iterator() {\n return new CustomIterator<Item>(head);\n }", "public Iterator<Item> iterator(){\n return new ArrayIterator();\n }", "@Override\n public Iterator<Node> iterator() {\n return this;\n }", "default Stream<E> stream() {\n return StreamSupport.stream(this.spliterator(), false);\n }", "Iterable<CtElement> asIterable();", "public final Iterable getChainingIterator() {\n\t// TODO: Implemente the chaining iterator and add generic type to Iterable. I suppose it is this class.\n\tthrow new IllegalAccessError(\"Not implemented yet\");\n }", "public Iterator<Item> iterator() {\n return new Iterator<Item>() {\n public boolean hasNext() {\n return false;\n }\n\n public Item next() {\n return null;\n }\n };\n }", "public final Iterator iterator() {\n return new SinksIterator(this);\n }", "public Iterator<T> iterator(){\r\n\t\treturn new ChainedArraysIterator();\r\n\t}", "public Iterator<Item> iterator() { \n return new ListIterator(); \n }", "public Iterator<T> iterator() {\n if (this.nrOfElements == 0) {\n return Collections.<T>emptyList().iterator();\n }\n return new Iterator<T>() {\n private Node walker = null;\n\n @Override\n public boolean hasNext() {\n return walker != last;\n }\n\n @Override\n public T next() {\n if (this.walker == null) {\n this.walker = first;\n return this.walker.getData();\n }\n\n if (this.walker.getNext() == null) {\n throw new NoSuchElementException();\n }\n\n this.walker = this.walker.getNext();\n return this.walker.getData();\n }\n };\n }", "public Iterator iterator()\n {\n return new HashSetIterator();\n }", "public interface Iterable<T> {\n Iterator<T> getIterator();\n}", "public Iterator getIterator() {\n return myElements.iterator();\n }", "public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}" ]
[ "0.6732433", "0.6677925", "0.6657529", "0.6643921", "0.6642368", "0.6638184", "0.6626016", "0.65930367", "0.6512493", "0.649521", "0.64808136", "0.6477008", "0.64766043", "0.6476369", "0.64745486", "0.6462547", "0.645736", "0.6416063", "0.6415139", "0.6406529", "0.63993675", "0.6397692", "0.6393174", "0.63928604", "0.63895166", "0.63818073", "0.6374173", "0.6345592", "0.6345592", "0.63357425", "0.63265", "0.6325946", "0.6318069", "0.63137335", "0.63016915", "0.6297129", "0.629645", "0.629645", "0.629645", "0.629645", "0.62750685", "0.62734056", "0.62639934", "0.6256144", "0.6255189", "0.6251498", "0.6251498", "0.623109", "0.6228505", "0.6224751", "0.622262", "0.6220744", "0.6220744", "0.6220744", "0.6220744", "0.6220744", "0.6220744", "0.6207325", "0.62065166", "0.62065166", "0.6206036", "0.6201712", "0.61994445", "0.61986953", "0.61970615", "0.6196736", "0.6192871", "0.61782724", "0.61782724", "0.61782724", "0.61782724", "0.61675596", "0.61622685", "0.61621773", "0.616181", "0.61581105", "0.61538905", "0.6149743", "0.6147141", "0.6145878", "0.61454886", "0.61454886", "0.61454886", "0.61378235", "0.61370975", "0.6134228", "0.6130565", "0.6128297", "0.61264443", "0.61214536", "0.6114083", "0.60981554", "0.60942894", "0.6093901", "0.60763097", "0.6073504", "0.6073407", "0.60724366", "0.60610706", "0.60521895" ]
0.7658176
0
Returns a sequential Stream with this AgileSet's collection of AgileObjects as its source.
public Stream<T> stream() { return items.stream(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default Stream<E> stream() {\n return StreamSupport.stream(this.spliterator(), false);\n }", "default Stream<E> parallelStream() {\n return StreamSupport.stream(spliterator(), true);\n }", "public static <E> Stream<E> from(final Iterable<E> sequence) {\n if ( sequence == null ) return null; /* guard against null */\n return new AbstractStream<E>() {\n final Iterable<E> underlying_seq = sequence;\n public Iterator<E> iterator() {\n return underlying_seq.iterator();\n }\n };\n }", "default Stream<GraphMorphism> projections() {\n return StreamExt.iterate(1, size(), 1).mapToObj(this::projection).map(Optional::get);\n }", "public IntStream stream() {\n\treturn StreamSupport.intStream(spliterator(), false);\n }", "public final Iterator iterator() {\n return new SinksIterator(this);\n }", "public IntStream parallelStream() {\n\treturn StreamSupport.intStream(spliterator(), true);\n }", "private static Stream<?> all(Iterator<Object> i) {\n requireNonNull(i);\n final Iterable<Object> it = () -> i;\n return StreamSupport.stream(it.spliterator(), false);\n }", "public Stream<Scene> streamAllValuesOfscene() {\n return rawStreamAllValuesOfscene(emptyArray());\n }", "WindowedStream<T> windowAll();", "public abstract Stream<E> streamBlockwise();", "public Stream<Integer> streamAllValuesOfby() {\n return rawStreamAllValuesOfby(emptyArray());\n }", "@Override\n public AbstractObjectIterator<LocalAbstractObject> provideObjects() {\n return getAllObjects();\n }", "public static Stream<StreamAnimal> generateStreamOfAnimals_methodRef() {\n Stream<StreamAnimal> resultStream = Stream.generate(\n AnimalGenerator::getNewAnimal\n );\n\n return resultStream;\n }", "public OMCollection getSource() {\r\n return IServer.associationHasSource().dr(this).range();\r\n }", "public Stream stream() {\n Preconditions.checkState(prepared);\n Preconditions.checkState(!closed);\n return new Stream();\n }", "default Stream<T> fullStream() {\n return Stream.empty();\n }", "public abstract AbstractObjectIterator<LocalAbstractObject> getAllObjects();", "public List<Stream> getStreams() {\n return streams;\n }", "public TW<E> iterator() {\n ImmutableMultiset immutableMultiset = (ImmutableMultiset) this;\n return new N5(immutableMultiset, immutableMultiset.entrySet().iterator());\n }", "public ByteArrayOutputStream drainTo(ByteArrayOutputStream stream) {\n while (hasNext()) {\n stream.write(next());\n }\n return stream;\n }", "public List<String> streams() {\n return this.streams;\n }", "public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }", "public Stream<Tuple<Instance,Document>> instanceStream() {\n\t\treturn docs.stream()\n\t\t\t\t.map((doc)->{\n\t\t\t\t\tInstance instance = asInstance(doc);\n\t\t\t\t\treturn new Tuple<>(instance,doc);\n\t\t\t\t});\n\t}", "public Iterator<Integer> fromA() {return this.fromA.iterator();}", "@Override\n public Spliterator<T> spliterator() {\n return items.spliterator();\n }", "public static Stream<StreamAnimal> generateStreamOfAnimals_lambda() {\n\n Stream<StreamAnimal> resultStream = Stream.generate(\n () -> getNewAnimal()\n );\n\n return resultStream;\n }", "public static <E> Stream<E> buffer(Iterable<E> stream) {\n if (stream == null) return null;\n \n return new AbstractStream<E>() {\n final Iterable<E> input_stream = stream;\n List<E> buffer = null;\n\n public Iterator<E> iterator() {\n if (buffer != null) return buffer.iterator();\n \n buffer = new LinkedList<E>();\n return new Iterator<E>(){\n Iterator<E> iter = input_stream.iterator();\n public void remove(){ iter.remove(); }\n public boolean hasNext() { return iter.hasNext(); }\n public E next() {\n E next_item = iter.next();\n buffer.add(next_item);\n return next_item;\n }\n };\n }\n\n };\n }", "public interface Aggregate {\n public abstract Iterator iterator();\n}", "public Iterator<T> iterator() {\n return new SetIterator<T>(this.head);\n }", "public Iterator<Item> iterator() {\n return new AIterator();\n }", "@SuppressWarnings(\"unchecked\")\n private static <T> Stream<T> all(Class<T> type, Iterator<Object> i) {\n requireNonNull(type);\n requireNonNull(i);\n \n return all(i).filter(o -> type.isAssignableFrom(o.getClass()))\n .map(o -> (T) o);\n }", "@Override\n public Iterator<Integer> iterator() {\n return new Iterator<>() {\n int i = 0;\n\n @Override\n public boolean hasNext() {\n return i < Set.this.count;\n }\n\n @Override\n public Integer next() {\n return Set.this.arr[i++];\n }\n };\n }", "@Override\n public Cursor<Event> streamEvents() {\n ensureRatingCache();\n return cache.streamEvents();\n }", "public Stream getStream(Streamable type){\n return Stream.builder().add(type).build() ;\n }", "public Iterator iterator () {\n return new MyIterator (first);\n }", "@Override\n public Iterator<NFetchMode> iterator() {\n return Arrays.asList(all).iterator();\n }", "@Override\r\n\tpublic Iterator<GIS_layer> iterator() {\n\t\treturn set.iterator();\r\n\t}", "public interface Aggregate {\n\n public abstract Iterator iterator();\n}", "Stream<BaseVertex> vertices(String datasource);", "public interface Aggregate {\n public abstract Iterator iterator();\n}", "public interface Aggregate {\n public abstract Iterator iterator();\n}", "public IntStream stream(long size) {\n\treturn StreamSupport.intStream(spliterator(size), false);\n }", "public final Iterator iterator() {\n return new WellsIterator(this);\n }", "@CheckReturnValue\n Stream<? extends Thing.Remote<SomeRemoteThing, SomeRemoteType>> instances();", "public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}", "default Stream<Sketch> components() {\n return StreamExt.iterate(1, size(), 1).mapToObj(this::component).map(Optional::get);\n }", "public Iterable<T> iterable() {\n return new ResourceCollectionIterable<>(this);\n }", "default Stream<Token<?>> stream() {\n return stream(true);\n }", "static <T> EagerFutureStream<T> eagerFutureStreamFromIterable(Iterable<T> iterable) {\n\t\treturn eagerFutureStream(iterable.iterator());\n\t}", "public Stream<String> sourceStringAsStream() {\n return Stream.of(\"beetroot\", \"apple\", \"grape\");\n }", "public ObjectCollectionWithProperties(Stream<ObjectWithProperties> objects) {\n delegate = objects.collect(Collectors.toList());\n }", "@Nonnull \r\n\tpublic static <T> CloseableIterable<T> next(\r\n\t\t\t@Nonnull final Observable<? extends T> source) {\r\n\t\treturn new Next<T>(source);\r\n\t}", "public CStream get_stream() {\r\n\t\treturn new CStream(this);\r\n\t}", "public Stream<T> stream(final Random random) {\n requireNonNull(random, \"random must not be null\");\n return StreamSupport.stream(\n Spliterators.spliteratorUnknownSize(\n new BaseIterator(random),\n IMMUTABLE | ORDERED\n ),\n false\n );\n }", "@Override\n public Iterator<T> iterator() {\n return forwardIterator();\n }", "@Override\n public Iterator<Set<E>> iterator() {\n return new DisjointSetIterator(theSet);\n }", "public Iterator<E> iterator() {\n return new SortedArraySetIterator(this);\n }", "public final Folyam<T> sequential() {\n return sequential(FolyamPlugins.defaultBufferSize());\n }", "public final InputStream returnStream()\n\t{\n\t\treturn stream;\n\t}", "public zzeiu iterator() {\n return new zzeio(this);\n }", "default EagerFutureStream<U> sync(){\n\t\treturn (EagerFutureStream<U>)FutureStream.super.sync();\n\t}", "@Override\n public Iterator<Entity> iterator() {\n return entities.iterator();\n }", "public synchronized Iterator<E> iterator()\n {\n return iteratorUpAll();\n }", "@Override\n\t\t\tpublic Iterator<T> iterator() {\n\t\t\t\treturn convertData(data.iterator(), targetClass);\n\t\t\t}", "@Override\n public Iterator<T> iterator() {\n return this;\n }", "public Iterator<T> iterator() {\r\n return byGenerations();\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Create Stream of Object\\n\");\n\t\tStream<String> stream= Stream.of(\"Saliou\",\"Fatimatou\",\"Mahdiyou\",\"Kolon\");\n\t stream.forEach(System.out::println);\n\t \n // Create Stream from Objects from Collection\n\t\tSystem.out.println(\" \\n\\nCreate Stream Object from collection\\n\");\n\t Collection<String> collection=Arrays.asList(\"Saliou\",\"Fatimatou\",\"Mahdiyou\",\"Kolon\");\n\t Stream<String> stream2=collection.stream();\n\t stream2.forEach(System.out::println);\n\t \n\t //Create Stream Object from Collection\n\t System.out.println(\"\\n\\nCreate Stream Object from List\");\n\t List<String> list= Arrays.asList(\"Modou\",\"Fatou\",\"Saliou\",\"Samba\");\n\t Stream<String> stream3=list.stream();\n\t stream3.forEach(System.out::println);\n\t \n\t //Create Stream Object from Set\n\t System.out.println(\"\\n Create Stream from Set\");\n\t Set<String> set= new HashSet<>(list);\n\t Stream<String> stream4= set.stream();\n\t stream4.forEach(System.out::println);\n\t \n\t //Create Stream Object from Arrays\n\t System.out.println(\"\\nCreate Stream Object from Arrays\");\n\t ArrayList<String> array= new ArrayList<>(list);\n\t Stream<String> stream5= array.stream();\n\t stream5.forEach(System.out::println);\n\t \n\t //Create Stream from Array of String\n\t System.out.println(\"\\n Create Stream from Array of String\");\n\t String[] strArray= {\"Saliou\",\"Fatimatou\",\"Mahdiyou\",\"Kolon\"};\n\t Stream<String> stream6=Arrays.stream(strArray);\n\t stream6.forEach(System.out::println);\n\t \n\t \n\t}", "@Override\n public Iterator<E> iterator() {\n return new InsideIterator(first);\n }", "@Nonnull \r\n\tpublic static <T> CloseableIterable<List<T>> chunkify(\r\n\t\t\t@Nonnull Observable<? extends T> source) {\r\n\t\treturn collect(\r\n\t\t\t\tsource,\r\n\t\t\t\tnew Func0<List<T>>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic List<T> invoke() {\r\n\t\t\t\t\t\treturn new ArrayList<T>();\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tnew Func2<List<T>, T, List<T>>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic List<T> invoke(List<T> param1, T param2) {\r\n\t\t\t\t\t\tparam1.add(param2);\r\n\t\t\t\t\t\treturn param1;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tnew Func1<List<T>, List<T>>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic List<T> invoke(List<T> param) {\r\n\t\t\t\t\t\treturn new ArrayList<T>();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t);\r\n\t}", "public Stream<DynamicEntity> streamAllValuesOfvehicle() {\n return rawStreamAllValuesOfvehicle(emptyArray());\n }", "public GATKSAMIterator iterator() {\n // NOTE: this iterator doesn't perform any kind of reset operation; it just returns itself.\n // can we do something better? Do we really have to provide support for the Iterable interface?\n return this;\n }", "@Override\n public Iterator<Item> iterator() {\n return new DequeIterator<Item>(first);\n }", "public Iterator iterator()\n {\n return new HashSetIterator();\n }", "public Stream<ParsedURL> urls() {\n return stream().map(req -> new ParsedURL(req.getUrl()));\n }", "@Ignore\n @Test\n public void hashSetToStream() {\n // BEGIN HASHSET_TO_STREAM\n Set<Integer> numbers = new HashSet<>(asList(4, 3, 2, 1));\n\n List<Integer> sameOrder = numbers.stream()\n .collect(toList());\n\n // This may not pass\n assertEquals(asList(4, 3, 2, 1), sameOrder);\n // END HASHSET_TO_STREAM\n }", "@NotNull\n EntityIterable getSource();", "public InputStream getStream() {\n\t\treturn new ByteArrayInputStream(os.toByteArray());\n\t}", "IStreamList<T> transform(IStreamList<T> dataset);", "public Set<Sportive> getAll(){\n Iterable<Sportive> sportives = repo.findAll();\n return StreamSupport.stream(sportives.spliterator(), false).collect(Collectors.toSet());\n }", "public Iterator<Item> iterator() {\n Item[] temp = (Item[]) new Object[size];\n System.arraycopy(array, 0, temp, 0, size);\n return (new RandomIterator(temp));\n }", "@Override\n public Iterator<Object> iterator() {\n return new MyIterator();\n }", "@Override\n public Iterator<ValidateableAttestation> iterator() {\n return new AggregatingIterator();\n }", "public FlightIterator createIterator() {\r\n\t\treturn new FlightIterator(flights);\r\n\t}", "ISequence sequence();", "@Override\n public Iterator<Long> iterator() {\n Collection<Long> c = new ArrayList<>();\n synchronized (data) {\n for (int i=0; i<data.length; i++)\n c.add(get(i));\n }\n return c.iterator();\n }", "public Iterator<S> iterator() {\n\t\t// ..\n\t\treturn null;\n\t}", "default LazyFutureStream<U> convertToLazyStream(){\n\t\treturn new LazyReact(getTaskExecutor()).withRetrier(getRetrier()).fromStream((Stream)getLastActive().stream());\n\t}", "public Stream<Path> loadAll() {\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"File Retrived\");\n\t\t\treturn Files.walk(this.path, 1).filter(path->!path.equals(this.path)).map(this.path::relativize);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File Retrived Error\");\n\t\t}\n\t\treturn null;\n\t}", "public Iterator<Item> iterator() {\n return new RandomIterator(N, a);\n }", "public Set<String> getStreamPaths() {\n\t\t// todo: instead of returning a set here, perhaps\n\t\t// we can return Iterator<String>\n\t\tSet<String> streamSet = new HashSet<String>();\n\t\tif (streams != null) {\n\t\t\tfor (ChildData child : streams.getCurrentData()) {\n\t\t\t\tstreamSet.add(child.getPath());\n\t\t\t}\n\t\t}\n\t\treturn Collections.unmodifiableSet(streamSet);\n\t}", "public ObjectOutputStream acquireStream() throws InterruptedException\n {\n StreamMutex.acquire();\n return OutputStream;\n }", "public static <T> Stream<T> streamIterate(T seed, UnaryOperator<T> unaryOperator, int limit) {\n return Stream.iterate(seed, unaryOperator).limit(limit);\n }", "public Iterator getShowings(){\n return super.iterator();\n }", "public Collection<NamedStreamSymbol> getStreams() {\r\n final Collection<NamedStreamSymbol> allStreams = new ArrayList<>();\r\n allStreams.addAll(locallyDefinedStreams.resolveLocally(NamedStreamSymbol.KIND));\r\n \r\n allStreams.addAll(this.getEnclosingScope().resolveMany(\r\n this.getFullName(), NamedStreamSymbol.KIND));\r\n return allStreams.stream()\r\n .sorted(\r\n (e1, e2) -> {\r\n int i = Integer.compare(e1.getId(), e2.getId());\r\n if (i != 0)\r\n return i;\r\n \r\n return Boolean.compare(\r\n !e1.isExpected(),\r\n !e2.isExpected());\r\n })\r\n .collect(Collectors.toList());\r\n }", "public IntStream parallelStream(long size) {\n\treturn StreamSupport.intStream(spliterator(size), true);\n }", "public final AisPacketStream immutableStream() {\n return this instanceof ImmutableAisPacketStream ? this : new ImmutableAisPacketStream(this);\n }", "public Stream<T> getRemainingStream() {\n try (CloseableStreamIterator<T> self = this) {\n Stream<T> result = toStream(this.iterator)\n .onClose(this.stream::close);\n\n this.stream = null;\n this.iterator = null;\n\n return result;\n }\n }", "public Iterator <item_t> iterator () {\n return new itor ();\n }", "public DbIterator iterator() {\n\t\tif(gbfield==-1)\n\t\t\treturn new AggregateIterator(false);\n\t\treturn new AggregateIterator(true);\n\t}" ]
[ "0.674089", "0.6395686", "0.5877286", "0.5813176", "0.5746278", "0.5735021", "0.57285994", "0.5641268", "0.55689675", "0.5484296", "0.54829955", "0.5478146", "0.5457069", "0.54222345", "0.5376588", "0.52631813", "0.52435046", "0.52402985", "0.52227753", "0.52225816", "0.51942956", "0.51419413", "0.5138325", "0.51284224", "0.51238686", "0.51046467", "0.5097586", "0.5077262", "0.5075762", "0.5065434", "0.50458276", "0.50456774", "0.5039091", "0.5020487", "0.500602", "0.50037634", "0.50027657", "0.49997678", "0.49978778", "0.4986364", "0.4980988", "0.4980988", "0.49795285", "0.49771312", "0.49758214", "0.49735445", "0.49708667", "0.49610668", "0.49604622", "0.49552983", "0.49208626", "0.49124542", "0.48899865", "0.48869082", "0.48812115", "0.4876143", "0.48759332", "0.4870821", "0.48681936", "0.4862993", "0.4856898", "0.4835481", "0.48320338", "0.48262122", "0.4819511", "0.4812995", "0.48122525", "0.48111963", "0.48019025", "0.47830063", "0.47779188", "0.47732323", "0.47728437", "0.47721803", "0.47686258", "0.47662744", "0.4750503", "0.47478157", "0.47454947", "0.47400594", "0.47291255", "0.4722893", "0.4722145", "0.47148034", "0.47139102", "0.4710467", "0.4707198", "0.47028148", "0.47016004", "0.4696553", "0.4695402", "0.46904945", "0.46883026", "0.46878913", "0.4687706", "0.4686389", "0.46847737", "0.468028", "0.46796563", "0.46791556" ]
0.63275975
2
Register a user to an activity. Updates the balance for the users. The activity and the user must exist, and the user and the creator for the activity must be friends. Also the user must not have been registered to this activity before.
public boolean registerToActivity(int id, String username) throws InvalidParameterException, DatabaseUnkownFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean addUserActivityToDB(UserActivity userActivity);", "boolean updateUserActivityInDB(UserActivity userActivity);", "public void register(User user) {\n\t\tboolean exists = false ;\n\t\tfor ( User currentUser : users )\n\t\t\tif ( currentUser.getId().equals(user.getId()) )\n\t\t\t\texists = true ;\n\t\tif ( !exists ) {\n\t\t\taddUser(user) ;\n\t\t\tSystem.out.println(\"[USER CREATED]\") ;\n\t\t\tSystem.out.println() ;\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"[INVALID ACTION] User Already Exists\") ;\n\t\t\tSystem.out.println() ;\n\t\t}\n\t}", "private void registerUser() {\n String finalFullName = fullName.getText().toString().trim();\n String finalAge = age.getText().toString().trim();\n String finalEmail = email.getText().toString().trim();\n String finalPassword = password.getText().toString().trim();\n\n if(finalFullName.isEmpty()){\n fullName.setError(\"Full name is required.\");\n fullName.requestFocus();\n return;\n }\n\n if(finalAge.isEmpty()){\n age.setError(\"Age is required.\");\n age.requestFocus();\n return;\n }\n\n if(finalEmail.isEmpty()){\n email.setError(\"Email is required.\");\n email.requestFocus();\n return;\n }\n\n if(!Patterns.EMAIL_ADDRESS.matcher(finalEmail).matches()){\n email.setError(\"Please provide valid email!.\");\n email.requestFocus();\n return;\n }\n\n if(finalPassword.length() < 6){\n password.setError(\"Min. password length is 6 characters.\");\n password.requestFocus();\n return;\n }\n\n if(finalPassword.isEmpty()){\n password.setError(\"Password is required.\");\n password.requestFocus();\n return;\n }\n\n progressBar.setVisibility(View.VISIBLE);\n\n setEmail(finalEmail);\n setAge(finalAge);\n setFullName(finalFullName);\n\n //Using Firebase libraries, create the user data and send the info to Firebase\n mAuth.createUserWithEmailAndPassword(finalEmail, finalPassword)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //Create the User object\n User user = new User(getFullName(),getEmail(),getAge());\n\n //Now send that object to the Realtime Database\n FirebaseDatabase.getInstance().getReference(\"Users\")\n //Get registered user's ID and set it the the User object\n //so that they're connected\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n //pass the user object. OnCompleteListener is used to Check if\n //the data was added to the database.\n .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n //Inside OnCompleteListener you must complete that\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if(task.isSuccessful()){\n Toast.makeText(RegistrationActivity.this, \"User has been registered successfully!\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n\n //Then redirect to login layout\n } else {\n Toast.makeText(RegistrationActivity.this,\"Failed to register. Try again.\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n }\n\n }\n });\n } else {\n Toast.makeText(RegistrationActivity.this,\"Failed to register. Try again.\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n }\n }\n });\n\n\n\n }", "UserAccount createUserAccount(User user, double amount);", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "public void addUser(String username, String password, String name, String phone, String email, String address, Date dob) throws AccountException {\n accounts.add(new Account(username, getMd5(password), name, phone, email, address, dob));\n }", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "public long registerUserProfile(User user);", "public void updateUser(int uid, String name, String phone, String email, String password, int money, int credit);", "public void addAccountToUser(User user, Account account) {\n List<Account> accountArrayList = this.map.get(user);\n accountArrayList.add(account);\n }", "@Override\n\t@Transactional\n\tpublic void updateUserWithBan(User user) {\n\t\tuserRepository.saveAndFlush(user);\n\t\tif (user.getUserRating() < User.MINIMAL_RATING_FOR_ACTIVE_USER) {\n\t\t\tmailService.sendMailToBannedUser(user.getEmail(), user.getUsername());\n\t\t}\n\t}", "void registerUser(User newUser);", "@Override\n public void registerUser(User user) {\n userDAO.createUser(user);\n }", "private void createAccountActivity() {\n // everything is converted to string\n String userName = createUserName.getText().toString().trim();\n String phoneNumber = createPhoneNumber.getText().toString().trim();\n String email = createEmail.getText().toString().trim();\n String password = createPassword.getText().toString().trim();\n\n\n // Validate that the entry should not be empty\n if (userName.isEmpty()) {\n createUserName.setError(\"It should not be empty. \");\n createUserName.requestFocus();\n return;\n }\n if (phoneNumber.isEmpty()) {\n createPhoneNumber.setError(\"It should not be empty. \");\n createPhoneNumber.requestFocus();\n return;\n }\n if (email.isEmpty()) {\n createEmail.setError(\"It should not be empty. \");\n createEmail.requestFocus();\n return;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n createEmail.setError(\"Invalid email\");\n createEmail.requestFocus();\n return;\n }\n\n if (password.isEmpty()) {\n createPassword.setError(\"It should not be empty. \");\n createPassword.requestFocus();\n return;\n }\n\n // connect to the firebase\n auth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n String userID = FirebaseAuth.getInstance().getCurrentUser().getUid();\n User user = new User(userName, phoneNumber, email, password, userID);\n // We will send everything in user to the firebase database\n FirebaseDatabase.getInstance()\n .getReference(\"User\")\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user).addOnCompleteListener(task1 -> {\n if (task1.isSuccessful()) {\n Toast.makeText(RegisterUser.this, \"The account has been created successfully. \", Toast.LENGTH_LONG).show();\n finish(); //basically same as clicking back button\n } else {\n Toast.makeText(RegisterUser.this, \"The account creation failed!\", Toast.LENGTH_LONG).show();\n }\n });\n } else {\n Toast.makeText(RegisterUser.this, \"The account creation failed!\", Toast.LENGTH_LONG).show();\n }\n });\n }", "private void updateUserAccount() {\n final UserDetails details = new UserDetails(HomeActivity.this);\n //Get Stored User Account\n final Account user_account = details.getUserAccount();\n //Read Updates from Firebase\n final Database database = new Database(HomeActivity.this);\n DatabaseReference user_ref = database.getUserReference().child(user_account.getUser().getUser_id());\n user_ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //Read Account Balance\n String account_balance = dataSnapshot.child(Database.USER_ACC_BALANCE).getValue().toString();\n //Read Expire date\n String expire_date = dataSnapshot.child(Database.USER_ACC_SUB_EXP_DATE).getValue().toString();\n //Read Bundle Type\n String bundle_type = dataSnapshot.child(Database.USER_BUNDLE_TYPE).getValue().toString();\n //Attach new Values to the Account Object\n user_account.setBalance(Double.parseDouble(account_balance));\n //Attach Expire date\n user_account.setExpire_date(expire_date);\n //Attach Bundle Type\n user_account.setBundle_type(bundle_type);\n //Update Local User Account\n details.updateUserAccount(user_account);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n //No Implementation\n }\n });\n }", "public void register(AbstractVisitor user) {\n users.add(user);\n user.setChatroom(this);\n user.receive(\"Thank you \" + user.getName() + \" for registering with this chatroom!\");\n }", "public void Register() {\n Url url = new Url();\n User user = new User(fname.getText().toString(), lname.getText().toString(), username.getText().toString(), password.getText().toString());\n Call<Void> registerUser = url.createInstanceofRetrofit().addNewUser(user);\n registerUser.enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n Toast.makeText(getActivity(), \"User Registered successfully\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n Toast.makeText(getActivity(), \"Error\" + t, Toast.LENGTH_SHORT).show();\n }\n });\n }", "private void insertUser(String name, String password, int balance) throws SQLException {\n\t\tinsertUserStatement.clearParameters();\n\t\tinsertUserStatement.setString(1, name);\n\t\tinsertUserStatement.setString(2, password);\n\t\tinsertUserStatement.setInt(3, balance);\n\t\tinsertUserStatement.executeUpdate();\n\t}", "public static void registerAccount(User user, String username, String password) {\n logMessage(LOGLEVEL_NORMAL, \"Handling account registration from \" + user.getNick() + \".\");\n // Query to check if the username already exists \n\n byte[] salt;\n byte encPassword[];\n try {\n salt = PasswordEncryptionService.generateSalt();\n encPassword = PasswordEncryptionService.getEncryptedPassword(password, salt);\n } catch (NoSuchAlgorithmException | InvalidKeySpecException ex) {\n java.util.logging.Logger.getLogger(MySQL.class.getName()).log(Level.SEVERE, null, ex);\n return;\n }\n String sender = user.getNick();\n\n String checkQuery = \"SELECT `username` FROM \" + mysql_db + \".`login` WHERE `username` = ?\";\n\n // Query to add entry to database\n String executeQuery = \"INSERT INTO \" + mysql_db + \".`login` ( `username`, `password`, `salt`, `level`, `activated`, `server_limit`, `remember_token` ) VALUES ( ?, ?, ?, 1, 1, 4, null )\";\n try (Connection con = getConnection(); PreparedStatement cs = con.prepareStatement(checkQuery); PreparedStatement xs = con.prepareStatement(executeQuery)) {\n // Query and check if see if the username exists\n cs.setString(1, username);\n ResultSet r = cs.executeQuery();\n\n // The username already exists!\n if (r.next()) {\n bot.blockingIRCMessage(sender, \"Account already exists!\");\n } else {\n // Store username, encrypted password and salt\n xs.setString(1, username);\n xs.setBytes(2, encPassword);\n xs.setBytes(3, salt);\n if (xs.executeUpdate() == 1) {\n bot.blockingIRCMessage(sender, \"Account created! Your username is \" + username + \" and your password is \" + password);\n } else {\n bot.blockingIRCMessage(sender, \"There was an error registering your account.\");\n }\n }\n } catch (SQLException e) {\n logMessage(LOGLEVEL_IMPORTANT, \"ERROR: SQL_ERROR in 'registerAccount()'\");\n\n bot.blockingIRCMessage(sender, \"There was an error registering your account.\");\n }\n }", "public void registerNewUser(final FirebaseFirestore db, final User user) {\n FirebaseUser FbUser = FirebaseAuth.getInstance().getCurrentUser();\n if (FbUser != null) {\n UserProfileChangeRequest request = new UserProfileChangeRequest.Builder()\n .setDisplayName(user.getName())\n .build();\n FbUser.updateProfile(request);\n }\n\n final DatabaseHelper localDB = new DatabaseHelper(getApplicationContext());\n db.collection(collection)\n .document(user.getEmail())\n .set(user)\n .addOnSuccessListener(avoid -> {\n Toast.makeText(getApplicationContext(), \"Registered\", Toast.LENGTH_SHORT).show();\n\n // Send to cache (local db)\n addToCache(user, localDB);\n\n // Send intent to dashboard\n Intent goToDashboard = new Intent(SignupActivity.this, Dashboard.class);\n Bundle myBundle = new Bundle();\n myBundle.putString(\"email\", user.getEmail());\n// myBundle.putString(\"name\", user.getName());\n// myBundle.putString(\"maxIncome\", String.valueOf(user.getMaxIncome()));\n myBundle.putBoolean(\"coming_from_login_signup\", true);\n goToDashboard.putExtras(myBundle);\n startActivity(goToDashboard);\n })\n .addOnFailureListener(e -> snackbar.showStatus(\"Not Registered\"));\n }", "public User register(User user) throws DuplicateUserException{\n\n //check if there's duplicate user by email\n if (user.getEmail().equalsIgnoreCase(userMapper.getEmail(user.getEmail()))){\n throw new DuplicateUserException(\"You are already registered, please proceed with your API key\");\n }else{\n //generate API key\n try {\n user.setApiKey(generateApiKey(128));\n } catch (NoSuchAlgorithmException e) {\n System.out.println(e.toString());\n }\n\n //setting user status to active\n user.setActive(true);\n\n //insert new user to DB\n userMapper.insertUser(user);\n\n //returns the latest user inserted\n return userMapper.getLatestUser();\n }\n\n }", "public synchronized void putUser(User user) {\r\n try {\r\n user.setLastMod(Tstamp.makeTimestamp());\r\n String xmlUser = this.makeUser(user);\r\n String xmlRef = this.makeUserRefString(user);\r\n this.updateCache(user, xmlUser, xmlRef);\r\n this.dbManager.storeUser(user, xmlUser, xmlRef);\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to put User\" + StackTrace.toString(e));\r\n }\r\n }", "public void activateUser(User user) {\n activeUsers.putIfAbsent(user.getUsername(), user);\n }", "public void createUser(User user) throws JsonProcessingException {\n\n userRepo.save(user);\n redis.opsForValue().set(REDIS_USER_KEY_PREFIX+user.getUserId(),user);\n\n\n JSONObject jObj = new JSONObject();\n jObj.put(\"userId\",user.getUserId());\n jObj.put(\"balance\",defaultBalance);\n\n // Produce an event for User Creation ( Would be Consumed by Wallet Creation Service)\n kafka.send(TOPIC_USER_CREATED,user.getUserId(), objectMappper.writeValueAsString(jObj));\n\n\n }", "public Account update(Account user);", "@Transactional\n\t@Override\n\tpublic void createUser(User user) {\n\t\tString token = UUID.randomUUID().toString();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.DAY_OF_YEAR, 1);\n\n\t\tuser.setExpiryDate(cal.getTime());\n\t\tuser.setToken(token);\n\t\tAccount account = user.getAccount();\n\t\tRole role = new Role(\"ROLE_CUSTOMER\");\n\t\taccount.setRole(role);\n\t\taccount.setEnabled(false);\n\t\taccountService.createAccount(account);\n\t\tuserRepository.insertUser(user);\n\t\tthis.sendRegistrationToken(user);\n\t}", "public void ajouterUser(Utilisateur user) {\n SQLiteDatabase db = this.getWritableDatabase(); // On veut écrire dans la BD\n ContentValues values = new ContentValues();\n values.put(USER_NOM, user.getNom());\n values.put(USER_AGE, user.getAge());\n values.put(USER_SEX, user.getSex());\n// Insérer le nouvel enregistrement\n long id = db.insert(TABLE_USER, null, values);\n db.close(); // Fermer la connexion\n }", "public static void addAccount(String user, String password)\r\n\t\t\tthrows IOException {\n\r\n\t\tFile file = getAccountFile();\r\n\r\n\t\tFileWriter fw = new FileWriter(file, true);\r\n\t\tBufferedWriter writer = new BufferedWriter(fw);\r\n\r\n\t\twriter.newLine();\r\n\t\twriter.write(user);\r\n\r\n\t\twriter.newLine();\r\n\t\twriter.write(password);\r\n\r\n\t\twriter.close();\r\n\t\tfw.close();\r\n\t\tfile = null;\r\n\t}", "@Override\r\n\tpublic int register(User user) {\n\t\treturn dao.addUser(user);\r\n\t}", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "private void registerUser(final String email, final String password) {\n\n progressDialog.show();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, dismiss dialog and start register activity\n progressDialog.dismiss();\n FirebaseUser user = mAuth.getCurrentUser();\n\n String email = user.getEmail();\n String uid = user.getUid();\n String username = mUserNameEdt.getText().toString().trim();\n int selectedId = radioGroup.getCheckedRadioButtonId();\n RadioButton radioSexButton = findViewById(selectedId);\n String gender = radioSexButton.getText().toString();\n\n //store the registered user info into firebase using Hashmap\n HashMap<Object, String> hashMap = new HashMap<>();\n\n hashMap.put(\"email\",email);\n hashMap.put(\"uid\",uid);\n hashMap.put(\"username\", username);\n hashMap.put(\"gender\", gender);\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference reference = database.getReference();\n\n reference.child(uid).setValue(hashMap);\n\n Toast.makeText(SignUpActivity.this, \"Registered...\\n\"+user.getEmail(), Toast.LENGTH_SHORT).show();\n startActivity(new Intent(SignUpActivity.this,UserProfileActivity.class));\n finish();\n\n } else {\n // If sign in fails, display a message to the user.\n progressDialog.dismiss();\n Toast.makeText(SignUpActivity.this, \"Authentication failed.\", Toast.LENGTH_SHORT).show();\n }\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //error, dismiss progress error, get and show the error message\n progressDialog.dismiss();\n Toast.makeText(SignUpActivity.this,\"\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@ReactMethod\n public void reportUserRegister(String accountId) {\n Tracking.setRegisterWithAccountID(accountId);\n }", "public static void registerUser(User user) {\n\n\t\tLog.d(\"QuizApp--SQLHelper\", \"Contact--Data\");\n\t\tbyte[] byteArray = null;\n\t\tif (user.imgProfilePic != null) {\n\t\t\tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\t\t\t((Bitmap) user.imgProfilePic).compress(Bitmap.CompressFormat.PNG,\n\t\t\t\t\t50, stream);\n\t\t\tbyteArray = stream.toByteArray();\n\t\t}\n\t\tContentValues insertValues = new ContentValues();\n\t\tinsertValues.put(\"name\", user.personName);\n\t\tinsertValues.put(\"email\", user.email);\n\t\tinsertValues.put(\"displayPic\", byteArray);\n\t\tdb.insert(\"User\", null, insertValues);\n\t\tLog.d(\"QuizApp--SQLHelper\", \"Contact--Data inserted\");\n\n\t}", "public void register(UserRegistration userRegistration){\n User userToSave = UserMapper.map(userRegistration);\n// metoda do szyfrowania będzie wykorzystana w aktualnej metodzie register(),\n hashPasswordWithSha256(userToSave);\n userDao.save(userToSave);\n }", "public UserRegister(String userFirstName, String userLastName, String userEmail, String userPhoneNo, String userName, String userPassword) throws Exception { \r\n\t\t//super(userName, userPassword);\r\n\t\t// add new user to database\r\n\t\ttry {\r\n\t\tString str = \"INSERT INTO tblusers (userName,userPassword, userFirstName, userLastName, userEmail, userPhoneNo, userDateJoined)\" + \r\n\t\t\t\t\"VALUES ('\" + userName + \"', '\" + userPassword + \"', '\" + userFirstName + \"', '\" + userLastName + \"',\" + \r\n\t\t\t\t\" '\" + userEmail + \"', '\" + userPhoneNo + \"', NOW() );\";\r\n\t\tDBConnect.runUpdateQuery(str);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t\t//System.out.println(e.toString());\r\n\t\t}\r\n\r\n\t}", "public void onRegisterPressed(View v) {\n String username = ((EditText) findViewById(R.id.usernameNew)).getText().toString();\n String password = ((EditText) findViewById(R.id.passwordNew)).getText().toString();\n String checkPassword = ((EditText) findViewById(R.id.passwordNew2)).getText().toString();\n Register register = new Register(username, password, checkPassword);\n TextView passwordCheck = findViewById(R.id.passwordCheck);\n TextView errorUsername = findViewById(R.id.errorUsername);\n\n if(!register.assertPassword()) {\n passwordCheck.setVisibility(View.VISIBLE);\n } else {\n passwordCheck.setVisibility(View.GONE);\n }\n if (!register.assertUsername()) {\n errorUsername.setVisibility(View.VISIBLE);\n } else {\n errorUsername.setVisibility(View.GONE);\n }\n if(register.assertUsername() && register.assertPassword()) {\n User user = new User(username, password, (UserTypes)userTypeSpinner.getSelectedItem());\n\n Toast.makeText(this, \"Account Added\", Toast.LENGTH_SHORT).show();\n\n Persistence.getInstance().write(User.SAVE_FILE, getApplicationContext(), user);\n\n Intent mainIntent = new Intent(this, MainActivity.class);\n mainIntent.putExtra(\"EXTRA_USER_TYPE\", user.getAccountType());\n startActivity(mainIntent);\n\n finish();\n }\n }", "public ActivityLog logUserActivity(User user, Activity activity, \n\t\t\tString value) throws PersuasionAPIException {\n\n\t\tActivityLog activityLog = null;\n\t\ttry {\n\t\t\t//Create the composite Activity Log object\n\t\t\tActivityLogId activityLogId = new ActivityLogId();\n\t\t\tactivityLogId.setUser(user);\n\t\t\tactivityLogId.setActivity(activity);\n\n\t\t\ttry {\n\t\t\t\tlog.debug(\"Searching for user an existing activity log entry for userId \" \n\t\t\t\t\t\t+ user.getUserId() + \" and activityName \" + activity.getActivityName());\n\t\t\t\tactivityLog = activityLogDAO.findById(activityLogId);\n\t\t\t\tlog.debug(\"Found existing user activity log entry. Incrementing the counter\");\n\t\t\t\tactivityLog.setCount(activityLog.getCount()+1); //Increment the counter\n\t\t\t} catch(PersuasionAPIException e) {\n\t\t\t\tthrow e;\n\t\t\t} catch(Exception e) {\n\t\t\t\tlog.debug(\"Existing user activity log entry not found. Creating a new entry\");\n\t\t\t\tactivityLog = new ActivityLog();\n\t\t\t\tactivityLog.setId(activityLogId);\n\t\t\t\tactivityLog.setCount(1);\n\t\t\t}\n\n\t\t\tactivityLog.setValue(value);\n\t\t\t//TODO: Modify this to use DB timestamp\n\t\t\tactivityLog.setLogTime(new Date());\n\n\t\t\t//Create or update corresponding activity log entry\n\t\t\tactivityLogDAO.merge(activityLog);\n\t\t} catch(PersuasionAPIException e) {\n\t\t\tthrow e;\n\t\t} catch(Exception e) {\n\t\t\tlog.error(\"Caught exception while logging user activity.\"\n\t\t\t\t\t+ \" User ID: \" + user.getUserId()\n\t\t\t\t\t+ \" . Activity Name: \" + activity.getActivityName()\n\t\t\t\t\t+ \" Exception type: \" + e.getClass().getName()\n\t\t\t\t\t+ \" Exception message: \" + e.getMessage());\n\t\t\tlog.debug(StringHelper.stackTraceToString(e));\n\t\t\tthrow new PersuasionAPIException(InternalErrorCodes.GENERATED_EXCEPTION, \n\t\t\t\t\t\"Failed to log the user activity\", e);\n\t\t}\n\n\t\ttry {\n\t\t\t//Post the update to the JMS Queue\n\t\t\tMap<String, String> activityLogUpdate = new HashMap<String, String>();\n\t\t\tactivityLogUpdate.put(Constants.USER_ID, user.getUserId());\n\t\t\tactivityLogUpdate.put(Constants.ACTIVITY_NAME, activity.getActivityName().toString());\n\n\t\t\tString logDate = StringHelper.dateToString(activityLog.getLogTime());\n\t\t\tactivityLogUpdate.put(Constants.TIMESTAMP, logDate);\n\n\t\t\tjmsMessageSender.sendJMSMessage(jmsQueue, activityLogUpdate);\n\t\t} catch(Exception e) {\n\t\t\tlog.error(\"Caught exception while posting user activity to JMS.\"\n\t\t\t\t\t+ \" User ID: \" + user.getUserId()\n\t\t\t\t\t+ \" . Activity Name: \" + activity.getActivityName()\n\t\t\t\t\t+ \" Exception type: \" + e.getClass().getName()\n\t\t\t\t\t+ \" Exception message: \" + e.getMessage());\n\t\t\tlog.debug(StringHelper.stackTraceToString(e));\n\t\t\tthrow new PersuasionAPIException(InternalErrorCodes.GENERATED_EXCEPTION, \n\t\t\t\t\t\"Failed to post the logged user activity to JMS\", e);\n\t\t}\n\t\treturn activityLog;\n\t}", "private void registerUser(){\n mAuth.createUserWithEmailAndPassword(correo, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //mapa de valores\n Map<String, Object> map = new HashMap<>();\n map.put(\"name\",name);\n map.put(\"email\",correo);\n map.put(\"password\",password);\n map.put(\"birthday\",cumple);\n map.put(\"genre\",genre);\n map.put(\"size\",size);\n //obtenemos el id asignado por la firebase\n String id= mAuth.getCurrentUser().getUid();\n //pasamos el mapa de valores\n mDatabase.child(\"Users\").child(id).setValue(map).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task2) {\n //validams que la tarea sea exitosa\n if(task2.isSuccessful()){\n startActivity(new Intent(DatosIniciales.this, MainActivity.class));\n //evitamos que vuelva a la pantalla con finsh cuando ya se ha registrado\n finish();\n }else{\n Toast.makeText(DatosIniciales.this, \"Algo fallo ups!!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }else{\n Toast.makeText(DatosIniciales.this, \"No pudimos completar su registro\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "private void registerUser(){\n final String email = editTextEmail.getText().toString().trim();\n final String password = editTextPassword.getText().toString().trim();\n final String name=editTextName.getText().toString().trim();\n final String joiningdate=editTextJoiningDate.getText().toString().trim();\n //final String uid=firebaseAuth.getCurrentUser().getUid();\n //checking if email and passwords are empty\n if(TextUtils.isEmpty(email)){\n Toast.makeText(this,\"Please enter email\",Toast.LENGTH_LONG).show();\n return;\n }\n\n if(TextUtils.isEmpty(password)){\n Toast.makeText(this,\"Please enter password\",Toast.LENGTH_LONG).show();\n return;\n }\n if(TextUtils.isEmpty(name)){\n Toast.makeText(this,\"Please enter Name\",Toast.LENGTH_LONG).show();\n return;\n }\n\n if(TextUtils.isEmpty(joiningdate)){\n Toast.makeText(this,\"Please enter Joining Date\",Toast.LENGTH_LONG).show();\n return;\n }\n //if the email and password are not empty\n //displaying a progress dialog\n\n progressDialog.setMessage(\"Registering Please Wait...\");\n progressDialog.show();\n\n getLocation();\n\n //creating a new user\n firebaseAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n\n\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.i(\"Hey Entered OnComplete\",\"\");\n //checking if success\n if(task.isSuccessful()){\n Log.i(\"Hey Entered issuccess\",\"\");\n User user= new User(name,joiningdate,email,loc);\n// Map map=new HashMap();\n// map.put(\"name\",name);\n// map.put(\"joining date\",joiningdate);\n// map.put(\"email\",email);\n// map.put(\"uid\",uid);\n database=FirebaseDatabase.getInstance();\n\n myRef=database.getReference(\"Users\");\n\n myRef.child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n Toast.makeText(MainActivity.this,\"Registration Successful\",Toast.LENGTH_LONG).show();\n startActivity(new Intent(getApplicationContext(),MenuActivity.class));\n }\n else{\n Toast.makeText(MainActivity.this,\"Registration Error\",Toast.LENGTH_LONG).show();\n }\n }\n });\n\n// String id=myRef.push().getKey();\n// myRef.child(id).setValue(user);\n\n\n }\n else{\n //display some message here\n Toast.makeText(MainActivity.this,\"Registration Error\",Toast.LENGTH_LONG).show();\n }\n progressDialog.dismiss();\n }\n });\n\n }", "public void addUser(final User user)\n throws UserAlreadyExistsException {\n\n if (userStore.get(user.getId()) != null) {\n throw new UserAlreadyExistsException();\n }\n\n userStore.add(user);\n\n }", "public void setUserAccount(final UserAccount.Immutable userAccount) {\n this.userAccount = userAccount;\n }", "public void registerUser(String email, String password){\n fbAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n Log.d(TAG, \"createUserWithEmail:success\");\n FirebaseUser user = fbAuth.getCurrentUser();\n updateUI(user);\n Toast.makeText(Signup.this, \"Registration success.\",\n Toast.LENGTH_SHORT).show();\n } else {\n // If sign in fails, display a message to the user.\n Log.w(TAG, \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(Signup.this, \"Registration failed.\",\n Toast.LENGTH_SHORT).show();\n }\n\n // ...\n }\n });\n }", "public static void signUp(final String email, String password, final String fullName, final String pictureUrl, final Activity activity) {\n Statics.auth.createUserWithEmailAndPassword(email, password)\n .addOnSuccessListener(new OnSuccessListener<AuthResult>() {\n @Override\n public void onSuccess(AuthResult authResult) {\n // add user to database\n Log.d(\"Test\",\"Facebook to firebase success\");\n User userToAdd = new User();\n userToAdd.setEmailAddress(email);\n String[] splited = fullName.split(\"\\\\s+\");\n userToAdd.setFirstName(splited[0]);\n userToAdd.setLastName(splited[1]);\n userToAdd.setPictureUrl(pictureUrl);\n usersTable.child(FirebaseAuth.getInstance().getCurrentUser().getUid()).setValue(userToAdd).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"Failure\",e.getMessage());\n }\n });\n Toast.makeText(activity, \"added to database \", Toast.LENGTH_LONG).show();\n }\n }).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(\"Test\",\"Facebook ato firebase success\");\n\n }\n });\n }", "private void register() {\r\n if (mName.getText().length() == 0) {\r\n mName.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mEmail.getText().length() == 0) {\r\n mEmail.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() == 0) {\r\n mPassword.setError(\"please fill this field\");\r\n return;\r\n }\r\n if (mPassword.getText().length() < 6) {\r\n mPassword.setError(\"password must have at least 6 characters\");\r\n return;\r\n }\r\n\r\n\r\n final String email = mEmail.getText().toString();\r\n final String password = mPassword.getText().toString();\r\n final String name = mName.getText().toString();\r\n\r\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n if (!task.isSuccessful()) {\r\n Snackbar.make(view.findViewById(R.id.layout), \"sign up error\", Snackbar.LENGTH_SHORT).show();\r\n } else {\r\n String uid = FirebaseAuth.getInstance().getCurrentUser().getUid();\r\n\r\n //Saves the user's info in the database\r\n Map<String, Object> mNewUserMap = new HashMap<>();\r\n mNewUserMap.put(\"email\", email);\r\n mNewUserMap.put(\"name\", name);\r\n\r\n FirebaseDatabase.getInstance().getReference().child(\"users\").child(uid).updateChildren(mNewUserMap);\r\n }\r\n }\r\n });\r\n\r\n }", "public static Call<User> register(User user){\n return ApiConfig.getService().createUser(user);\n }", "private void createActivity(Identity user) {\n ExoSocialActivity activity = new ExoSocialActivityImpl();\n activity.setTitle(\"title \" + System.currentTimeMillis());\n activity.setUserId(user.getId());\n try {\n activityManager.saveActivityNoReturn(user, activity);\n tearDownActivityList.add(activity);\n } catch (Exception e) {\n LOG.error(\"can not save activity.\", e);\n }\n }", "public void createUserAccount(UserAccount account);", "@Override\n\tpublic void register(User user) {\n\t\tuserDao.register(user);\n\t}", "private void userRegister(){\n String Email = email.getText().toString().trim();\n String Username = username.getText().toString().trim();\n String Password = password.getText().toString().trim();\n\n if(TextUtils.isEmpty(Email)){\n Toast.makeText(this,\"Please Enter Email ID\",Toast.LENGTH_SHORT).show();\n return;\n }\n if(TextUtils.isEmpty(Username)){\n Toast.makeText(this,\"Please Enter Username\",Toast.LENGTH_SHORT).show();\n return;\n }\n if(TextUtils.isEmpty(Password)){\n Toast.makeText(this,\"Please Enter Password\",Toast.LENGTH_SHORT).show();\n return;\n }\n\n progressDialog.setMessage(\"Registering User....\");\n progressDialog.show();\n\n mAuth.createUserWithEmailAndPassword(Email,Password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful())\n {\n Toast.makeText(SignUp.this,\"Registered Successfully\",Toast.LENGTH_SHORT).show();\n// startActivity(new Intent(getApplicationContext(),LogIn.class));\n// finish();\n } else{\n return;\n }\n }\n });\n\n User user = new User(mAuth.getCurrentUser().getUid(), 1, Email, Username);\n dbRef.child(\"users\")\n .child(mAuth.getCurrentUser().getUid())\n .setValue(user);\n\n UserAccountSetting settings = new UserAccountSetting(\n \"\",\n \"\",\n 0,\n 0,\n 0,\n \"\",\n Username);\n dbRef.child(\"user_account_setting\").child(mAuth.getCurrentUser().getUid()).setValue(settings);\n\n\n }", "public static void writeNewUser(User user) {\n DatabaseReference usersRef = FirebaseDatabase.getInstance().getReference();\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n usersRef.child(\"users\").child(mAuth.getUid()).setValue(user);\n }", "User update(User userToUpdate, RegisterRequest registerRequest);", "public void register(User user) {\n\n\t\ttry {\n\t\t\tcon = ConnectionUtil.getConnection();\n\t\t\tString sql = \"insert into user_info(user_name,user_password,user_email,user_address) values(?,?,?,?)\";\n\t\t\tpst = con.prepareStatement(sql);\n\t\t\tpst.setString(1, user.getName());\n\t\t\tpst.setString(2, user.getPassword());\n\t\t\tpst.setString(3, user.getEmail());\n\t\t\tpst.setString(4, user.getAddress());\n\n\t\t\tpst.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\tConnectionUtil.close(con, pst);\n\t\t}\n\t}", "public void addUser(User user) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(COLUMN_USER_NAME, user.getName());\n values.put(COLUMN_USER_EMAIL, user.getEmail());\n values.put(COLUMN_USER_IMAGE, \"\");\n values.put(COLUMN_USER_PASSWORD, user.getPassword());\n values.put(COLUMN_USER_CURRMONTH_ID, -16);\n\n // Inserting Row\n db.insert(TABLE_USER, null, values);\n db.close();\n }", "public void register (String username, String password) throws JSONException {\n view.showProgressBar();\n model.signUp(username, password);\n }", "@Override\n public void onClick (View v)\n {\n if (v == register)\n {\n // Validate matching passwords.\n if (password.getText().toString().equals(rpassword.getText().toString()))\n {\n if (!genderSelected.equals(\"Select\"))\n {\n String AUTHORITY = getResources().getString(R.string.authority);\n Bundle extras = new Bundle();\n // pack bundle with user extras\n extras.putString(\"request_type\", \"0\");\n extras.putString(\"user\", user.getText().toString());\n extras.putString(\"password\", password.getText().toString());\n extras.putString(\"birthday\",\n datePicker.getYear() + \"-\" + (datePicker.getMonth() + 1) + \"-\" +\n datePicker.getDay());\n extras.putString(\"gender\", genderSelected);\n extras.putString(\"name\", name.getText().toString());\n // Attempt to create a sync account\n Account account = FriendFinder\n .createSyncAccount(this, user.getText().toString(),\n password.getText().toString());\n // Allow synchronization.\n ContentResolver.setSyncAutomatically(account, AUTHORITY, true);\n // Attempt to synchronize.\n extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);\n extras.putBoolean(ContentResolver.SYNC_EXTRAS_FORCE, true);\n extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);\n ContentResolver.requestSync(account, AUTHORITY, extras);\n spinnerDialog.show(getFragmentManager(), \"Registering User\");\n receiver = new RegistrationReceiver();\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"registration\");\n registerReceiver(receiver, intentFilter);\n }\n else\n {\n Toast.makeText(this, \"Please select a gender.\", Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n Toast.makeText(this, \"Passwords do not match.\", Toast.LENGTH_LONG).show();\n }\n }\n else if (v == date)\n {\n // display datepicker.\n datePicker.show(getFragmentManager(), \"Date Picker\");\n }\n }", "@Override\n\tpublic void addNewUser(User user) {\n\t\tusersHashtable.put(user.getAccount(),user);\n\t}", "public SavingAccount(double balance, Date dateOfCreation, String accountId, User owner) {\n\t\tsuper(balance, dateOfCreation, accountId, owner);\n\t\tthis.interestRate = 0.1/100;\n\t}", "@Override\n\tpublic boolean registerUtente(Utente user) {\n\t\tif(!userExists(user)) {\n\t\t\tDB db = getDB();\n\t\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\t\tlong hash = (long) user.getUsername().hashCode();\n\t\t\tusers.put(hash, user);\n\t\t\tdb.commit();\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\t\n\t}", "public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;", "public void updateUser(IndividualUser u) {\n updateUser(u.getId(), u.getFirstName(), u.getLastName(), u.getFriends());\n }", "public User register(String username) {\n User new_user = User.builder().username(username)\n .isClaimedLastReward(Boolean.TRUE)\n .userProgress(UserProgress.builder()\n .coins(GAME_SETTINGS.STARTING_COIN_AMOUNT)\n .level(1)\n .build())\n .build();\n //Save user object to user repository\n updateOrCreate(new_user);\n return new_user;\n }", "private void RegisterUser(final User user) {\n AlertDialog.Builder builder;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n builder = new AlertDialog.Builder(this, android.R.style.Theme_Material_Dialog_Alert);\n } else {\n builder = new AlertDialog.Builder(this);\n }\n\n View view = LayoutInflater.from(MainActivity.this).inflate(R.layout.alert_dialog_input,null);\n\n builder.setTitle(\"Faltan informacion requerida\")\n .setMessage(\"Completa los siguentes campos\")\n .setView(view);\n\n final EditText editTxtEmailDialog = view.findViewById(R.id.editTxtEmailAlertDialog);\n final EditText editTxtNicknameDialog = view.findViewById(R.id.editTxtNicknameAlertDialog);\n final EditText editTxtPasswordDialog = view.findViewById(R.id.editTxtPasswordAlertDialog);\n\n if(user.getEmail() != null)\n editTxtEmailDialog.setVisibility(View.GONE);\n\n builder.setPositiveButton(\"Registar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String email = user.getEmail() != null ? user.getEmail() : editTxtEmailDialog.getText().toString();\n String nickname = editTxtNicknameDialog.getText().toString();\n String password = editTxtPasswordDialog.getText().toString();\n if(!isValidateRegisterProvider(email,nickname,password))\n return;\n user.setEmail(email);\n user.setNickname(nickname);\n user.setPassword(password);\n\n\n\n //User aux = new User(user.getName(), user.getLastName(),nickname,email,password,\"\", user.getProvider());\n if(!Networking.isNetworkAvailable(MainActivity.this)) {\n Toast.makeText(MainActivity.this,\"No hay internet\",Toast.LENGTH_SHORT).show();\n return;\n }\n new Networking(MainActivity.this).execute(Networking.SIGNUP_PROVIDER, user,new NetCallback() {\n @Override\n public void onWorkFinish(Object... objects) {\n\n final User user_temp = (User) objects[0];\n if(user_temp.getId() != -1) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(MainActivity.this,\"Bienvenido\",Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(MainActivity.this, InitActivity.class);\n Grua grua = new Grua(\"\",\"\", \"\");\n grua.setId(-1);\n intent.putExtra(Register.JSON_USER, user_temp.toJSON());\n intent.putExtra(Register.JSON_GRUA,grua.toJSON());\n SharedUtil.setUserNickname(MainActivity.this,user_temp.getNickname());\n SharedUtil.setUserPassword(MainActivity.this, user_temp.getPassword());\n SharedUtil.setUserProvider(MainActivity.this, user_temp.getProvider());\n startActivity(intent);\n }\n });\n }\n\n }\n\n @Override\n public void onMessageThreadMain(Object data) {\n final String message = (String) data;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(MainActivity.this, message, Toast.LENGTH_SHORT).show();\n }\n });\n\n }\n });\n\n }\n }).setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //... Remover instancia iniciar con ...\n Toast.makeText(MainActivity.this,\"Su registro se ha cancelado\", Toast.LENGTH_SHORT).show();\n }\n })\n .setIcon(android.R.drawable.ic_dialog_info)\n .show();\n\n }", "public void addUser(User user) {\n \t\tuser.setId(userCounterIdCounter);\n \t\tusers.add(user);\n \t\tuserCounterIdCounter++;\n \t}", "@Override\n\tpublic void register(User user) throws ValidationException {\n\t\tif (user.getEmail() == null) {\n\t\t\tthrow new ValidationException(\"Give your email\");\n\t\t}\n\t\tUser foundUser = userDao.findUserByEmail(user.getEmail());\n\t\tif (foundUser != null) {\n\t\t\tthrow new ValidationException(\"User with this email already exists\");\n\t\t}\n\t\tif (user.getPassword() == null) {\n\t\t\tthrow new ValidationException(\"Your password must contain at least 1 character\");\n\t\t}\n\t\tuserDao.create(user);\n\t}", "public void addUser(User user) {\n\t\tuserMapper.insert(user);\n\n\t}", "Boolean registerNewUser(User user);", "private void register(String username, String password) {\n User u = null;\n try {\n u = userDao.loadByLogin(username, password);\n } catch (Exception ignored) {}\n if (u == null) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"tmp_username\", username);\n editor.putString(\"tmp_password\", password);\n editor.commit();\n Intent intent = new Intent(LoginActivity.this, InfoActivity.class);\n startActivity(intent);\n } else {\n try {\n Toast.makeText(getApplicationContext(), \"Register Failed\", Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n Looper.prepare();\n Toast.makeText(getApplicationContext(), \"Register Failed\", Toast.LENGTH_SHORT).show();\n Looper.loop();\n }\n }\n }", "@Override\n public User register(User user) {\n if (user.getFirstName() == null || user.getFirstName().length() == 0) //first name cannot be empty\n {\n return null;\n }\n if (user.getLastName() == null || user.getLastName().length() == 0) //last name cannot be empty\n {\n return null;\n }\n if (user.getEmail().equals(\"\") && user.getTelephone().equals(\"\")) {\n return null;\n }\n if ((isEmail(user.getEmail()) == false && !user.getEmail().equals(\"\"))\n || (isNumeric(user.getTelephone()) == false && !user.getTelephone().equals(\"\")))//email and telephone need at least one\n {\n return null;\n }\n\n User newuser = new User((new DataClass().getLastUserID() + 1), user.getFirstName(), user.getLastName(),\n user.getEmail(), user.getTelephone(), 0);\n new DataClass().addUser(newuser);\n return newuser;\n }", "@Override\n\tpublic void regist(User user) {\n\t\tdao.addUser(user);\n\t}", "public static void updateAccount(@Valid User user) {\n\t\tboolean layout = false;\n\t\tString form = \"account\";\n\t\tif (request.method.equalsIgnoreCase(\"POST\")) {\n\t\t\tif (validation.hasErrors()) {\n\t\t\t\trender(\"Users/editProfile.html\",\n\t\t\t\t\t\tuser,\n\t\t\t\t\t\tUserProfileService.getUserProfileByUserId(user.id),\n\t\t\t\t\t\tlayout, form);\n\t\t\t} else {\n\n\t\t\t\tif (user.password == null) {\n\t\t\t\t\t// set the old password if user do not want to change the\n\t\t\t\t\t// password\n\t\t\t\t\tuser.password = session.get(\"edit_password\");\n\t\t\t\t} else {\n\t\t\t\t\t// encrypt the password if user added new password\n\t\t\t\t\tuser.password = CommonUtils.encryptPassword(user.password);\n\t\t\t\t}\n\n\t\t\t\t// update user account\n\t\t\t\tuser.save();\n\n\t\t\t\tflash.success(\"Account details updated successfully.\");\n\t\t\t\trender(\"Users/editProfile.html\",\n\t\t\t\t\t\tuser,\n\t\t\t\t\t\tUserProfileService.getUserProfileByUserId(user.id),\n\t\t\t\t\t\tlayout, form);\n\t\t\t}\n\t\t} else {\n\t\t\tflash.error(\"Invalid access to page.\");\n\t\t\trender(\"Application/index.html\");\n\t\t}\n\t}", "@Override\n\tpublic void addUserToTourney(String username, int tourneyId, String status) {\n\t\tString sql = \"insert into users_tournaments (user_id, tourney_id, status) \"\n\t\t\t\t+ \"values ((select user_id from users where username = ?), ?, ?)\";\n\t\t\n\t\tjdbcTemplate.update(sql, username, tourneyId, status);\n\t\t\n\t}", "public void addUser(String username, String password, String balance) throws IOException {\r\n // create a new user\r\n User user = new User(username, password, balance);\r\n // add new user to arraylist\r\n this.users.add(user);\r\n // write the new user to the text file\r\n this.userInfo.writeToFile(this.users.get(this.users.size() - 1).getUsername(), this.users.get(this.users.size() - 1).getPassword(password), this.users.get(this.users.size() - 1).getBalance());\r\n }", "@Transactional\r\n\tpublic void saveRegisteredUser(Tswacct tswacct, Users users) {\n\t\tsaveUsers(tswacct, users, users.getCustomer().getCustomerId());\r\n\t\t\r\n\t}", "public static void register(Activity activity) {\n if (activitiesList == null) {\n activitiesList = new ArrayList<Activity>();\n }\n activitiesList.add(activity);\n }", "@Override\n public void onClick(View view) {\n UpdateUserInformation();\n addUserChangeListener();\n/*\n //check for already exists\n if (TextUtils.isEmpty(userID)) {\n\n createUser(name, email, userMobile,userLatitude, userLongitude);\n Intent intent = new Intent(UserRegister.this, MapView.class);\n startActivity(intent);\n return;\n\n } else {\n //updateUser(name, email, userMobile,userLatitude, userLongitude);\n //UpdateUserInformation();\n }\n*/\n }", "public void addUser(User user) {\n\t\t\r\n\t}", "void updateUser(@Nonnull User user);", "@Override\n\tpublic boolean userRegister(User user) {\n\t\tif(userDao.insertUser(user)<=0)\n\t\t return false;\n\t\telse\n\t\t\treturn true;\n\t}", "public void register(User newUser) throws CustomerAlreadyExistException {\n\t\tif (checkIfUserExist(newUser.getEmail())) {\n\t\t\tthrow new CustomerAlreadyExistException(\"Customer already exists for this email\");\n\t\t}\n\n\t\tif (newUser.getRole() == null) {\n\t\t\tnewUser.setEnabled(true);\n\t\t\tnewUser.setRole(getCustomerRole());\n\t\t}\n\t\tnewUser.setRegistrationDate(date.getCurrentDataTime());\n\t\tencodePassword(newUser);\n\t\tsaveUser(newUser);\n\t}", "@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (isNotAlreadyAdded(dataSnapshot, user)) {\n friendRef.setValue(user);\n mActivity.finish();\n }\n }", "public void register(final String userName) {\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n sendRegisterUserRequest(userName);\n }\n });\n }", "public void addUser(User user) {\n\t\tet.begin();\n\t\tem.persist(user);\n\t\tet.commit();\n\t}", "public void addUser(TIdentifiable user) {\r\n\t // make sure that the user doesn't exists already\r\n\t if (userExists(user)) return;\r\n\t \r\n\t // check to see if we need to expand the array:\r\n\t if (m_current_users_count == m_current_max_users) expandTable(2, 1);\t \r\n\t m_users.addID(user);\r\n\t m_current_users_count++;\r\n }", "public void newUser(User user) {\n users.add(user);\n }", "public void addAccount(String user, String password);", "public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }", "public void addUser(User user) {\n\t\tuserDao.addUser(user);\r\n\r\n\t}", "UserDTO registerUser(final UserDTO userDTO);", "public void addUser(String userRoomInfo, User user){\n\t\tLog.v(\"SpaceController\", \"addUser()\");\n\t\tspace.getAllNicksnames().put(user.getNickname(), user);\n\t\tspace.getAllParticipants().put(user.getUsername(), user);\n\t\tspace.getAllOccupants().put(user.getUsername(), muc.getOccupant(userRoomInfo)); \n\t\tint x = Values.staggeredAddStart + space.getAllParticipants().size()*(Values.userIconW/5);\n\t\tint y = Values.staggeredAddStart + space.getAllParticipants().size()*(Values.userIconH/5);\n\t\tUserView uv = new UserView(view.getContext(), user, user.getImage(), space, x, y);\n\t\tspace.getAllIcons().add(uv);\n\t\t\n\t\t\n\t\t/* If you are currently in this space then refresh the \n\t\t * the spaceview ui\n\t\t */\n\t\tif(space == MainApplication.screen.getSpace()){\n\t\t\tLog.v(\"SpaceController\", \"adding user to spaceView\");\n\t\t\tview.getActivity().invalidateSpaceView();\n\t\t\t\n\t\t}\n\n\t\tif(space != Space.getMainSpace())\n\t\t\tview.getActivity().invalidatePSIconView(psiv);\n\t\tview.getActivity().launchNotificationView(user, \"adduser\");\n\t}", "@Override\n\tpublic int AddUser(UserBean userbean) {\n\t\treturn 0;\n\t}", "private void registerNewUser() {\n progressBar.setVisibility(View.VISIBLE);\n\n final String email, password, displayName;\n email = emailTV.getText().toString();\n password = passwordTV.getText().toString();\n displayName = nameTV.getText().toString();\n\n //Make sure user has entered details for all fields.\n if(TextUtils.isEmpty(displayName)){\n Toast.makeText(getApplicationContext(), \"Please enter username.\", Toast.LENGTH_LONG).show();\n return;\n }\n if (TextUtils.isEmpty(email)) {\n Toast.makeText(getApplicationContext(), \"Please enter email.\", Toast.LENGTH_LONG).show();\n return;\n }\n if (TextUtils.isEmpty(password)) {\n Toast.makeText(getApplicationContext(), \"Please enter password.\", Toast.LENGTH_LONG).show();\n return;\n }\n if(filePath == null){\n Toast.makeText(getApplicationContext(), \"Please select an image and try again.\", Toast.LENGTH_LONG).show();\n return;\n }\n //Updates Firebase to register a new user with email and password\n //also uploads image to Firebase for user account.\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n Uri userUri;\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n Toast.makeText(getApplicationContext(), \"Registration successful!\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n //Create a new user with name and email address.\n User newUser = new User(displayName, email , getLocationAddress(), loc.getLatitude(), loc.getLongitude());\n newUser.writeUser(FirebaseAuth.getInstance().getCurrentUser().getUid());\n //Update user profile on Firebase to add a display name.\n UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder().setDisplayName(displayName).build();\n mAuth.getCurrentUser().updateProfile(profileUpdates);\n\n if (filePath != null) {\n //displaying progress dialog while image is uploading\n Log.e(\"FilePath: \", filePath.toString());\n Log.e(\"Current User: \", mAuth.getCurrentUser().getEmail());\n final StorageReference sRef = mStorageReference.child(\"users/\" + mAuth.getCurrentUser().getUid());\n //Get image from users phone media.\n Bitmap bmpImage = null;\n try {\n bmpImage = MediaStore.Images.Media.getBitmap(getContentResolver(), filePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n //Compress image size.\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bmpImage.compress(Bitmap.CompressFormat.JPEG, 25, baos);\n byte[] data = baos.toByteArray();\n //adding the file to firebase reference\n sRef.putBytes(data)\n .addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n sRef.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n final Uri downloadUri = uri;\n userUri = downloadUri;\n //Upload image file to Firebase database.\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference dbRef = database.getReference().child(\"users\").child(mAuth.getCurrentUser().getUid()).child(\"photoUri\");\n Log.e(\"user download url: \", userUri.toString());\n dbRef.setValue(userUri.toString());\n //displaying success toast\n Toast.makeText(getApplicationContext(), \"File Uploaded \", Toast.LENGTH_LONG).show();\n //Add user dp url to user class in Firebase.\n UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder().setPhotoUri(downloadUri).build();\n mAuth.getCurrentUser().updateProfile(profileUpdates);\n }\n });\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n } else {\n Toast.makeText(getApplicationContext(), \"Select a picture and try again.\", Toast.LENGTH_SHORT).show();\n }\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n startActivity(intent);\n }\n else {\n Toast.makeText(getApplicationContext(), \"Registration failed! Please try again later\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n }\n }\n });\n }", "public void updateUser(User user) {\n\t\t\r\n\t}", "private void addToCache(User user, DatabaseHelper db) {\n if (db.insertUser(user)) {\n Log.d(\"Signup Activity\", \"Added to cache\");\n }\n }", "ResponseMessage updateUser(final User user);", "@Override\n\tpublic void addUser(User user) {\n\t\tiUserDao.addUser(user);\n\t}", "private void CreateNewAccount(final String phone, final String password, final String name) {\n if (TextUtils.isEmpty(phone)){\n Toast.makeText(this,\"Please enter your phone number ...\",Toast.LENGTH_SHORT).show();\n }\n else if(TextUtils.isEmpty(password)){\n Toast.makeText(this,\"Please enter your phone password ...\",Toast.LENGTH_SHORT).show();\n }\n else if(TextUtils.isEmpty(name)){\n Toast.makeText(this,\"Please enter your phone name ...\",Toast.LENGTH_SHORT).show();\n }\n else{\n //start creating account\n LoadingBar.show();\n\n final DatabaseReference mRef;\n mRef = FirebaseDatabase.getInstance().getReference();\n mRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if (!(snapshot.child(\"Users\").child(phone).exists())){\n //if user not exist then we create account in database\n HashMap<String,Object> userdata = new HashMap<>();\n userdata.put(\"phone\",phone);\n userdata.put(\"password\",password);\n userdata.put(\"name\",name);\n mRef.child(\"Users\").child(phone).updateChildren(userdata)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()){\n LoadingBar.dismiss();\n Toast.makeText(RegisterActivity.this,\"Registration Successful\",Toast.LENGTH_SHORT).show();\n }\n else{\n LoadingBar.dismiss();\n Toast.makeText(RegisterActivity.this,\"Please try again after sometime ....\",Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n else{\n LoadingBar.dismiss();\n Toast.makeText(RegisterActivity.this,\"User with this number already exist ....\",Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n\n }\n }", "public void addUser(\n\t\t\tActionRequest request, ActionResponse response) \n\t\t\tthrows Exception {\n\t\t\n\t\tString firstName = ParamUtil.getString(request, \"firstName\");\n\t\tString lastName = ParamUtil.getString(request, \"lastName\");\n\t\tString email = ParamUtil.getString(request, \"email\");\n\t\tString username = ParamUtil.getString(request, \"username\");\n\t\t\n\t\t//Determine gender\n\t\tString gender = ParamUtil.getString(request, \"male\");\n\t\tboolean male = true;\n\t\tif (gender.contains(\"Female\"))\n\t\t\tmale = false;\n\t\t\n\t\tString birthday = ParamUtil.getString(request, \"birthday\"); //update validation to account for date being a STRING now\n\t\tString password1 = ParamUtil.getString(request, \"password1\");\n\t\tString password2 = ParamUtil.getString(request, \"password2\");\n\n\t\tString homePhone = ParamUtil.getString(request, \"homePhone\");\n\t\tString mobilePhone = ParamUtil.getString(request, \"mobilePhone\");\n\t\t\n\t\tString address1 = ParamUtil.getString(request, \"address1\");\n\t\tString address2 = ParamUtil.getString(request, \"address2\");\n\t\tString city = ParamUtil.getString(request, \"city\");\n\t\tString state = ParamUtil.getString(request, \"state\");\n\t\tString zip = ParamUtil.getString(request, \"zip\");\n\t\t\n\t\tString secQuestion = ParamUtil.getString(request, \"secQuestion\");\n\t\tString secAnswer = ParamUtil.getString(request, \"secAnswer\");\n\t\t\n\t\tString terms = ParamUtil.getString(request, \"termsOfUse\");\n\t\tboolean tOU = false;\n\t\tif (terms.equals(\"accepted\")) {\n\t\t\ttOU = true;\n\t\t}\n\n\t\ttry {\n\t\t\t_userLocalService.registerUser(firstName, lastName, email, username, male, birthday, password1, password2, homePhone,\n\t\t\tmobilePhone, address1, address2, city, state, zip, secQuestion, secAnswer, tOU);\n\t\t\t\n\t\t\tSessionMessages.add(request, \"userAdded\");\n\t\t\t\n\t\t\tsendRedirect(request, response);\n\t\t}\n\t\tcatch(UserValidationException ave) {\n\t\t\tave.getErrors().forEach(key -> SessionErrors.add(request, key));\n\t\t\tresponse.setRenderParameter(\"\", \"registration/user/add\");\n\t\t}\n\t\tcatch(PortalException pe) {\n\t\t\tSessionErrors.add(request, \"serviceErrorDetails\", pe);\n\t\t\tresponse.setRenderParameter(\"\", \"registration/user/add\");\n\t\t}\n\t}", "public void friends( int user1, int user2 ) {\n\n\t//Get each user from list of all users\n FacebookUser A = users.get(user1);\n FacebookUser B = users.get(user2);\n\n //Every time a new friendship is added, circles change\n this.circlesUpToDate = false;\n\n //Add userA to userB's friends list and vice versa\n A.friendsList.add(B);\n B.friendsList.add(A);\n }", "public void addUser(User user) {\n\t\tif(!users.containsKey(user.id)) {\n\t\t\tusers.put(user.id, user);\n\t\t}\n\t}" ]
[ "0.6025413", "0.55972546", "0.54544723", "0.5418572", "0.5373043", "0.5331056", "0.53070295", "0.52736574", "0.5263821", "0.52064323", "0.51604664", "0.5153715", "0.515269", "0.51236606", "0.5119404", "0.50915784", "0.508539", "0.508145", "0.5076114", "0.50665474", "0.5065956", "0.5059491", "0.5056986", "0.5047764", "0.5037113", "0.5027365", "0.5022076", "0.50183797", "0.5013892", "0.5007652", "0.5002874", "0.50006974", "0.4996078", "0.4991129", "0.49880293", "0.49805433", "0.49627542", "0.49611402", "0.49593633", "0.49559632", "0.4944558", "0.49338603", "0.4930049", "0.4929339", "0.49248546", "0.49246317", "0.49224576", "0.49223894", "0.4920951", "0.49158633", "0.4896437", "0.48951215", "0.4890304", "0.4883544", "0.48823434", "0.48778242", "0.4875389", "0.487477", "0.48666745", "0.48548034", "0.48510766", "0.4849478", "0.48378238", "0.4835754", "0.48310754", "0.48297244", "0.48280838", "0.48202163", "0.48184687", "0.48135763", "0.48115426", "0.48068625", "0.48033237", "0.4802003", "0.48010272", "0.47930238", "0.47898728", "0.4788245", "0.47822595", "0.47754174", "0.47752056", "0.47719434", "0.47708413", "0.47682813", "0.47668117", "0.4766523", "0.4756614", "0.47533485", "0.47441068", "0.4743815", "0.47389632", "0.4732434", "0.47320276", "0.47299916", "0.4715507", "0.47135252", "0.47103116", "0.47101536", "0.47042587", "0.47022313" ]
0.5294215
7
Unregister from activity. Updates the balance for the users. The user must have been registered to this activity.
public boolean unregisterFromActivity(int id, String username) throws InvalidParameterException, DatabaseUnkownFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void deactivateAccount() {\n\t\tthis.setIsAccountLocked(true);\n\t}", "private void unregisterForBatteryStatus()\n\t{\n\t\tif(isReceiverRegistered && statusResult == null && batteryView != null && !batteryView.isShown())\n\t\t{\n\t\t\tActivity activity = RhodesActivity.safeGetInstance();\n\t\t\tif(activity != null)\n\t\t\t{\n\t\t\t\tactivity.unregisterReceiver(this);\n\t\t\t\tisReceiverRegistered = false;\n\t\t\t}\n\t\t}\n\t}", "private void declineBid(final String listUserID)\r\n {\r\n // remove the data from firebase database\r\n bidsRef.child(currentUserID).child(listUserID).removeValue().addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n //when success, deleting another users' data\r\n bidsRef.child(listUserID).child(currentUserID).removeValue().addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if(task.isSuccessful()){\r\n Toast.makeText(getApplicationContext(), \"Bid Deleted\", Toast.LENGTH_SHORT).show();\r\n\r\n }\r\n }\r\n });\r\n }\r\n\r\n }\r\n });\r\n\r\n }", "@Override\n\t@Transactional\n\tpublic void unbanUserByAdministrator(String username) {\n\t\tUser user = findOne(username);\n\t\tuser.setState(UserStatus.ACTIVE.name());\n\t\tif (user.getUserRating() <= RATING_TO_BAN_USER) {\n\t\t\tuser.setUserRating(User.MINIMAL_RATING_FOR_ACTIVE_USER);\n\t\t}\n\t\tuserRepository.saveAndFlush(user);\n\t}", "public void deactivateUser(User user) {\n activeUsers.remove(user.getUsername());\n }", "public static void removeUserWeight(Context context) {\n\n context.getSharedPreferences(FILE_NAME, 0)\n .edit()\n .remove(USER_WEIGHT_KEY)\n .apply();\n }", "public void unregister()\n\t{\n\t\tcancelPrevRegisterTask();\n\n\t\tpushRegistrar.unregisterPW(mContext);\n\t}", "@Override\r\n\tpublic boolean deopsit(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tbalance = (float) (balance + amount);\r\n\t\t\t} else {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n\t\tpublic void onUnblock(User arg0, User arg1) {\n\t\t\t\n\t\t}", "public void debit(int userAccountNumber, double amount) {\r\n getAccount(userAccountNumber).debit(amount);\r\n }", "private void onUnblockButtonClicked(ActionEvent actionEvent) {\n for (User user : builder.getBlockedUsers()) {\n if (selectedButton.getId().equals(\"user_blocked_\" + user.getId())) {\n builder.removeBlockedUser(user);\n this.blockedUsersLV.getItems().remove(user);\n ResourceManager.saveBlockedUsers(builder.getPersonalUser().getName(), user, false);\n break;\n }\n }\n }", "void unFollow(User user);", "private void updateBalance(){\n Intent toUpdateBal = new Intent(this, UpdateAccount.class);\n startActivity(toUpdateBal);\n }", "public synchronized void decreaseUsersConn() {\r\n\t\tusersConn--;\r\n\t}", "public void removeBalance(float withdraw) {\r\n\t\tthis.balance -= withdraw;\r\n\t}", "boolean unblockUser(User user);", "@Override\n\tpublic void unlockAccount(String username, Map<String, User> map) {\n\t\tUser u = map.get(username);\n\t\tu.setTries(3);\n\t\tuserdata.open();\n\t\tuserdata.updateUser(u);\n\t\tuserdata.close();\n\t}", "public void debitBankAccount() {\n\t\tint beforeDebit = this.sender.getBankAccount().getAmount();\n\t\tthis.sender.getBankAccount().setAmount(beforeDebit - this.getCost());\n\t\tSystem.out.println(this.getCost() + \" euros is debited from \" + this.sender.getName()\n\t\t\t\t+ \" account whose balance is now \" + this.sender.getBankAccount().getAmount() + \" euros\");\n\t}", "@Override\n\tpublic void DeActiveAccount(String email) {\n\n\t\tUserModel userModel = findByEmail(email);\n\t\tuserModel.setActiveSwitch(\"N\");\n\t\tsaveDtls(userModel);\n\n\t}", "@Override\r\n\tpublic void updateBalance( Integer userid, double amount) {\n\t\tif ( getBalance( userid) < amount) {\r\n\t\t\tthrow new RuntimeException( \"用户余额不足!\");\r\n\t\t}\r\n\t\tString sql = \"UPDATE buyers SET balance = balance - ? WHERE id = ?;\";\r\n\t\tjdbcTemplate.update( sql, amount, userid);\r\n\t}", "public void spread(double amount) {\r\n userJam.remove(amount);\r\n }", "private void unregister()\n {\n\tLog.d(Globals.TAG, \"UNREGISTER USERID: \" + regid);\n\tnew AsyncTask<Void, Void, String>()\n\t{\n\t @Override\n\t protected String doInBackground(Void... params)\n\t {\n\t\tString msg = \"\";\n\t\ttry\n\t\t{\n\t\t Bundle data = new Bundle();\n\t\t data.putString(\"action\", \"com.antoinecampbell.gcmdemo.UNREGISTER\");\n\t\t String id = Integer.toString(msgId.incrementAndGet());\n\t\t gcm.send(Globals.GCM_SENDER_ID + \"@gcm.googleapis.com\", id, Globals.GCM_TIME_TO_LIVE, data);\n\t\t msg = \"Sent unregistration\";\n\t\t gcm.unregister();\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t msg = \"Error :\" + ex.getMessage();\n\t\t}\n\t\treturn msg;\n\t }\n\n\t @Override\n\t protected void onPostExecute(String msg)\n\t {\n\t\tremoveRegistrationId(getApplicationContext());\n\t\tToast.makeText(context, msg, Toast.LENGTH_SHORT).show();\n\t\t((TextView)findViewById(R.id.gcm_userid_textview)).setText(regid);\n\t }\n\t}.execute();\n }", "public void decreaseMoneyForReserve(String login,BigDecimal money);", "boolean deleteUserActivityFromDB(UserActivity userActivity);", "public void unregisterUserSwitchObserver(IUserSwitchObserver observer) {\n this.mUserSwitchObservers.unregister(observer);\n }", "public static void removeUserAge(Context context) {\n\n context.getSharedPreferences(FILE_NAME, 0)\n .edit()\n .remove(USER_AGE_KEY)\n .apply();\n }", "public static void removeUserGender(Context context) {\n\n context.getSharedPreferences(FILE_NAME, 0)\n .edit()\n .remove(USER_GENDER_KEY)\n .apply();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(getActivity(), LoginActivity.class);\n startActivity(intent);\n getActivity().finish();\n }", "void clearUnactivatedAccounts(int unactivatedDays);", "public void deleteAccount() {\n final FirebaseUser currUser = FirebaseAuth.getInstance().getCurrentUser();\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference ref = database.getReference();\n ref.addListenerForSingleValueEvent( new ValueEventListener() {\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot userSnapshot : dataSnapshot.child(\"User\").getChildren()) {\n if (userSnapshot.child(\"userId\").getValue().toString().equals(currUser.getUid())) {\n //if the userId is that of the current user, check mod status\n System.out.println(\"Attempting delete calls\");\n //dataSnapshot.getRef().child(\"User\").orderByChild(\"userId\").equalTo(currUser.getUid());\n userSnapshot.getRef().removeValue();\n currUser.delete();\n //take user back to starting page\n Intent intent = new Intent(SettingsActivity.this, MainActivity.class);\n startActivity(intent);\n }\n }\n }\n public void onCancelled(DatabaseError databaseError) {\n System.out.println(\"The read failed: \" + databaseError.getCode());\n }\n });\n signOut();\n }", "public abstract void deactivation(FollowMeManager manager);", "public void deletetask(UserDto user);", "void removeMemberById(final String accountId);", "public void unregister(boolean userRequest)\n throws OperationFailedException\n {\n this.unregister();\n }", "@DeleteMapping(value = { \"/accounts/{accountId}\" })\n\tpublic void deleteAccountActiveState(ModelMap model, @PathVariable(\"accountId\") String accountId,HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\n\t\tlog.info(CLASS_NAME + \":deactivate request has been requested for gerrit user\");\n\t\tRestTemplate restTemplate = CustomRestTemplate.restTemplate(gerritUrl, 443, userName, password);\n\t\tResponseEntity<String> gerritresponse = restTemplate.exchange(gerritUrl + \"/a/accounts/\" + accountId + \"/active\",\n\t\t\t\tHttpMethod.DELETE, null, String.class);\n\t\tHttpSession session = request.getSession(false);\n\t\tUserObject user = (UserObject) session.getAttribute(Constant.SESSION.USER);\n\t\tlog.debug(CLASS_NAME + \":deactivate user has been requested for gerritt user having account id\"+accountId);\n\t\tlog.debug(gerritresponse.getBody());\n\t\t\n\t\tAuditEvent event = new AuditEvent();\n\t\tevent.setAction(EventAction.GERRIT_USER_DEACTIVATED);\n\t\tevent.setFromUser(user.getName());\n\t\tevent.setUserId(user.getId().toString());\n\t\tevent.setDescription(user.getName() + \" deactivated gerrit user - \"+ accountId);\n\t\thistoryService.logEvent(event);\n\n\t}", "public void removeCurrentUser() {\n currentUser.logout();\n currentUser = null;\n indicateUserLoginStatusChanged();\n }", "protected void desactiveBoat() {\n if (activeBoat!=null) {\n activeBoat.setActive(false);\n activeBoat.getBoatRectangle().setMouseTransparent(false);\n activeBoat.getBoatRectangle().setFill(activeBoat.getDisactiveColor());\n activeBoat=null;\n closeMsg();\n } \n }", "public void decreaseBalance(final double balance) {\n this.balance -= balance;\n }", "public void deactivate(Person user) \r\n\t{\r\n\t\tdb.user_editUser(user.getUsername(), user.getFirstName(), user.getLastName(), \r\n\t\t\t\t\t\t user.getPassword(), user.getType(), 'N');\r\n\t}", "void unblock(User user) throws RepositoryException;", "private void desAbonnement(){\r\n reference.child(\"abonnes\")\r\n .child(user.getUid())\r\n .removeValue(new DatabaseReference.CompletionListener() {\r\n @SuppressLint(\"ResourceAsColor\")\r\n @Override\r\n public void onComplete(@Nullable DatabaseError databaseError, @NonNull DatabaseReference databaseReference) {\r\n desAbonner();\r\n }\r\n });\r\n }", "public void leaveMember(Account account) {\n\t\tthis.members.remove(account);\n\t}", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\t\tdb.deleteUsers();\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(MainActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "public void Logout(){\n preferences.edit().remove(userRef).apply();\n }", "public void unregisterCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"unregisterCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(null);\n mLocalManager.getEventManager().unregisterCallback(this);\n mLocalManager.getProfileManager().removeServiceListener(this);\n }", "public void doLogout() {\n mSingleton.getCookieStore().removeUser(mUser);\n mPreferences.setUser(null);\n new ActivityTable().flush();\n\n //update variables\n mUser = null;\n mLogin = false;\n\n //reset drawer\n restartActivity();\n }", "@Override\n\tpublic void onUnblock(User source, User unblockedUser) {\n\n\t}", "public void stopReceivingUpdates(Activity mContext){\n removeSignificatArea(mContext);\n\n }", "void unsetAccountNumber();", "@VisibleForTesting\n void removeAllAccounts();", "@Override\n\tpublic void deactivate() {\n\t\tlocationManager.removeUpdates(this);\n\t\tmContext = null;\n\t\tlocationManager = null;\n\t\tlocationRequest = null;\n\t\tmChangedListener = null;\n\t}", "public static void removeUserTargetWeight(Context context) {\n\n context.getSharedPreferences(FILE_NAME, 0)\n .edit()\n .remove(USER_TARGETWEIGHT_KEY)\n .apply();\n }", "void unregister(String uuid);", "void bluetoothDeactivated();", "public void closeAccount() {}", "public void closeAccount() {}", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n finish();\n }", "private void unregisterReceivers() {\n LocalBroadcastManager.getInstance(getActivity()).unregisterReceiver(userUpdater);\n postChangeController.unregisterReceivers(getActivity());\n }", "String removeAccount(String userName);", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(Activity_Main.this, Activity_Login.class);\n startActivity(intent);\n finish();\n }", "public static void decrementActivityScore() {\n\t\tmActivityScore--;\n\t\tsaveScore();\n\t}", "private void unregister() {\n Intent regIntent = new Intent(REQUEST_UNREGISTRATION_INTENT);\n regIntent.setPackage(GSF_PACKAGE);\n regIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n setUnregisteringInProcess(true);\n context.startService(regIntent);\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(MainActivity.this, Login.class);\n startActivity(intent);\n finish();\n }", "private void logoutUser() {\n session.setLogin(false);\n\n db.deleteUsers();\n\n // Launching the login activity\n Intent intent = new Intent(EscolhaProjeto.this, LoginActivity.class);\n startActivity(intent);\n finish();\n }", "public void deleteAccountFromUser(User user, Account account) {\n List<Account> accountArrayList = this.map.get(user);\n accountArrayList.remove(account);\n }", "private void logoutUser() {\n\t\tsession.setLogin(false);\n\n\n\t\t// Launching the login activity\n\t\tIntent intent = new Intent(EnterActivity.this, LoginActivity.class);\n\t\tstartActivity(intent);\n\t\tfinish();\n\t}", "public void decrementNumberOfBoats() {\n\t\tnumOfBoats--;\n\t}", "public void unregisterForUpdates(CtxAttributeIdentifier attrId);", "void unsetAmount();", "public void withdraw(double amount) {\n this.balance -= amount;\n }", "public void removeUser(Customer user) {}", "private void cleanupAccount ()\n {\n if (account != null)\n {\n AccountManager accountManager = (AccountManager) this.getSystemService(ACCOUNT_SERVICE);\n accountManager.removeAccount(account, null, null);\n account = null;\n }\n }", "public void unLock(Long userId, CurrencyName curId, BigInteger newBalance) {\n ValueOperations<String, Object> values = redisTemplate.opsForValue();\n String lockKEy = getKey(userId, curId, true);\n String wKey = getKey(userId, curId, false);\n values.set(wKey, newBalance);\n redisTemplate.delete(lockKEy);\n\n }", "@GetMapping(path = \"api/activity/decline/{activityid}/{token}\")\n public Response declineActivity(@PathVariable long activityid, @PathVariable String token){\n return activityService.declineActivity(activityid, userService.getUserIDFromJWT(token));\n }", "public void reject(){\n ArrayList<User> u1 = new ArrayList<User>();\n u1.addAll(Application.getApplication().getNonValidatedUsers());\n u1.remove(this);\n\n Application.getApplication().setNonValidatedUsers(u1);\n }", "@Override\n\tpublic void calculateAndUpdateBalance() {\n\n\t\tbalance -= fee;\n\n\t}", "public synchronized void removeUser(String username) {\n \n if(this.capacity > 0) {\n \n /* Rimuovo utente dalla HashMap */\n usersList.remove(username);\n \n /* Utente rimosso */\n capacity--;\n \n System.out.println(\"GOSSIP System: \"+username+\" removed from Proxy \"+\n id+\"@\"+address+\":\"+port+\" [Capacity: \"+max_capacity+\n \"][Available: \"+(max_capacity-capacity)+\"]\");\n }\n }", "public void clearBalances() {\n for (HDAccount acct : mAccounts)\n acct.clearBalance();\n }", "void deductFromAmount(double amount) {\n this.currentAmount -= amount;\n }", "@Override\n public boolean onUnbind(Intent intent) {\n \tcloseBluetooth();\n return super.onUnbind(intent);\n }", "public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }", "public void removeWallet(Wallet wallet);", "@Override\r\n public void deactivate() {\n locationManager.removeUpdates(this);\r\n mContext = null;\r\n locationManager = null;\r\n locationRequest = null;\r\n mChangedListener = null;\r\n }", "public void onSignOut() {\n SharedPreferences userPrefs = PreferenceManager.getDefaultSharedPreferences(\n TBLoaderAppContext.getInstance());\n SharedPreferences.Editor editor = userPrefs.edit();\n editor.clear().apply();\n mTbSrnHelper = null;\n mUserPrograms = null;\n }", "private void revokeGplusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n updateUI(false);\n }\n });\n }\n }", "void removeUser(String uid);", "public void deleteUser(int search) {\n\t\tif (CarerAccounts.isEmpty()) {\n\t\t\timportFile();\n\t\t}\n\t\tint account = 0;\n\t\tint[] id;\n\t\tint count = 0;\n\t\tint[] newUsers = null;\n\t\tfor (int i = 0; i < CarerAccounts.size(); i++) {\n\t\t\tid = CarerAccounts.get(i).getUsers();\n\t\t\tfor (int j = 0; j < id.length; j++) {\n\t\t\t\tif (id[j] == search) {\n\t\t\t\t\taccount = i;\n\t\t\t\t\tnewUsers = new int[id.length - 1];\n\t\t\t\t\tfor (int k = 0; k < id.length; k++) {\n\t\t\t\t\t\tif (id[k] != search) {\n\t\t\t\t\t\t\tnewUsers[count] = id[k];\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCarerAccounts.get(account).setUsers(newUsers);\n\t\texportFile();\n\t}", "@Deactivate\n protected void deactivate(ComponentContext context) {\n httpService.unregister(\"/s-ramp\");\n log.debug(\"******* Governance S-Ramp bundle is deactivated ******* \");\n }", "public void deactivate() {\n\t\tactive_status = false;\n\t}", "public void decrementAmount() {\n this.amount--;\n amountSold++;\n }", "public void degrade(BankAccount lvl){\n lvl.setState(new Gold());\n }", "@Override\n\tprotected void onDetachedFromWindow() {\n\t\tsuper.onDetachedFromWindow();\n\n\t\tthis.getContext().unregisterReceiver(mBatteryInfoReceiver);\n\t}", "public void mBTClose1() {\n if (oBTServer!=null)\n oBTServer.mCloseService2(); //Disconnect a relayed device\n mDisconnect();\n if (oBTadapter != null) {\n if (oBTadapter.isEnabled()) {\n if (isOpenedByMe) //170905 only if this application opened the bluetooth\n oBTadapter.disable();\n }\n }\n if (mReceiver1!=null)\n try { //Protection from crash bugfix 171013\n mContext.unregisterReceiver(mReceiver1);\n }\n catch (final Exception exception) {\n // The receiver was not registered. There is nothing to do in that case. Everything is fine.\n }\n }", "private void unlock(UserInputDto inputDto) {\n // Deserialize treadmill status from token\n TreadmillStatus treadmillStatus = deserializeByToken(inputDto.getToken());\n\n // Treadmill is unlocked already\n if (TreadmillStatusEnum.UNLOCKED.getValue().equals(treadmillStatus.getLockStatus())) {\n throw new BizException(\"error.unlocked.already\", \"该跑步机已解锁\");\n }\n\n // Update treadmill status\n treadmillStatus.setAuthType(CommonConstants.DEFAULT_AUTH_TYPE);\n treadmillStatus.setLockStatus(TreadmillStatusEnum.UNLOCKED.getValue());\n treadmillStatus.setCurrentUsrId(CommonConstants.DEFAULT_USERID);\n // Unlock time\n treadmillStatus.setStartTime(new Date());\n treadmillStatus.setDuration(CommonConstants.DEFAULT_DURATION);\n\n // Update redis cache todo Not completed\n redisDbDao.setexBySerialize(TOKEN_PREFIX + inputDto.getToken(), CommonConstants.DEFAULT_DURATION, treadmillStatus);\n }", "public void deactivate();", "@SuppressWarnings(\"unused\")\n private void revokeGplusAccess() {\n if (mGoogleApiClient.isConnected()) {\n Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);\n Plus.AccountApi.revokeAccessAndDisconnect(mGoogleApiClient).setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status arg0) {\n Log.e(TAG, \"User access revoked!\");\n mGoogleApiClient.connect();\n updateUI(false);\n }\n });\n }\n }", "@RequiresPermission(allOf = {Manifest.permission.BLUETOOTH_ADMIN, Manifest.permission.BLUETOOTH, Manifest.permission.ACCESS_FINE_LOCATION})\n public void stopBleScan() {\n\n if (bleScanner != null) {\n bleScanner.stopScan();\n }\n }", "public static void removeUserHeight(Context context) {\n\n context.getSharedPreferences(FILE_NAME, 0)\n .edit()\n .remove(USER_HEIGHT_KEY)\n .apply();\n }", "@Override\n\tpublic void removeUserFromTourney(String username, int tourneyId) {\n\t\tString sql = \"delete from users_tournaments \"\n\t\t\t\t+ \"where user_id = (select user_id from users where username = ?) \"\n\t\t\t\t+ \"and tourney_id = ?\";\n\t\tjdbcTemplate.update(sql, username, tourneyId);\n\t\t\n\t}", "@Override\n public void onGetUser(User user) {\n stopProgressBar();\n }" ]
[ "0.6105527", "0.5683679", "0.5602292", "0.5428051", "0.54199976", "0.5404445", "0.53947866", "0.52907157", "0.5289852", "0.5282006", "0.52685714", "0.52322614", "0.5188423", "0.5175467", "0.51692736", "0.51426965", "0.51346284", "0.5132121", "0.51278114", "0.51106274", "0.51021177", "0.50988567", "0.5082231", "0.50628453", "0.5053604", "0.50427806", "0.5041627", "0.50274736", "0.502479", "0.5019977", "0.5007157", "0.50051796", "0.49849486", "0.49698976", "0.4967246", "0.4955694", "0.4950553", "0.49484068", "0.49390465", "0.49364048", "0.49301246", "0.49232993", "0.49161988", "0.4904652", "0.4884088", "0.48522756", "0.4850175", "0.48486707", "0.48452613", "0.484211", "0.48384157", "0.48360103", "0.48260483", "0.48225504", "0.48189998", "0.48189998", "0.48169294", "0.48157457", "0.48113745", "0.4807989", "0.48050958", "0.48001075", "0.47957107", "0.4779929", "0.47760507", "0.47718793", "0.4769512", "0.4761045", "0.4754841", "0.47543624", "0.47539333", "0.4750266", "0.47398967", "0.47370958", "0.47336856", "0.47319183", "0.4728882", "0.47268724", "0.47203648", "0.4718198", "0.4715497", "0.47116238", "0.4706127", "0.4694167", "0.4689785", "0.46864465", "0.46849594", "0.46843264", "0.4679759", "0.4678474", "0.46765816", "0.4672895", "0.46728814", "0.46620122", "0.4661338", "0.46605638", "0.46592945", "0.46573678", "0.4652434", "0.46510497" ]
0.5450835
3
Adds the paid service to the database.
public int addPaidService(final DBPaidService service) throws InvalidParameterException, DatabaseUnkownFailureException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addService(String serviceName, CheckBox dateOfBirth, CheckBox address, CheckBox typeOfLicense,\n CheckBox proofOfResidence, CheckBox proofOfStatus, CheckBox proofOfPhoto, double servicePrice) {\n DatabaseReference dR;\n dR = FirebaseDatabase.getInstance().getReference(\"ServiceRequests\");\n\n Service serviceRequest = new ServiceCategories(serviceName, dateOfBirth.isChecked(), address.isChecked(),\n typeOfLicense.isChecked(), proofOfResidence.isChecked(), proofOfStatus.isChecked(),\n proofOfPhoto.isChecked(), servicePrice);\n dR.child(serviceName).setValue(serviceRequest);\n\n }", "void addService(Long orderId, Long serviceId);", "public void addPayment(PaymentMethod m){\n payment.add(m);\n totalPaid += m.getAmount();\n }", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "public void insert(Service servico){\n Database.servico.add(servico);\n }", "@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service ajoutService(sn.ucad.master.assurance.bo.Service service) {\n\t\treturn serviceRepository.save(service);\r\n\t}", "void addService(ServiceInfo serviceInfo);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewCapitalPayed();", "public void addService() throws Throwable\r\n\t{\r\n\t\tselServicOpt.click();\r\n\t\tverifyService();\r\n\t\twdlib.waitForElement(getSelServiceBtn());\r\n\t\tselServiceBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ServicesPage\") , \"Services Page \");\r\n\t\tServicesPage svpage=new ServicesPage();\r\n\t\tsvpage.selectServices();\r\n\t\t\r\n\t}", "public void saveService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().info(\" addService()\");\r\n\t \t\t\tserviceList.addNewServiceToDB(editService.getDisplayServiceName(), editService.getServiceName(), editService.getUrl());\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" updateService(\" + id + \")\");\r\n\t \t\t\tserviceList.updateAlgorithmParameterToDB(editService);\r\n\t \t\t}\r\n\t \t\tthis.getServiceList().populateServiceListFromDB();\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();", "public void onAdd(final ForwardEvent event) {\r\n\t\t// Get the values and validate the data\r\n\t\tfinal Textbox txtService = (Textbox) Path.getComponent(page, \"txtService\");\r\n\t\tfinal String serviceName = txtService.getValue().trim();\r\n\t\tfinal Doublebox txtCharge = (Doublebox) Path.getComponent(page, \"txtCharge\");\r\n\t\tfinal Checkbox chkHidden = (Checkbox) Path.getComponent(page, \"chkHidden\");\r\n\t\tLOGGER.debug(\"Adding new service: \" + txtService.getValue() + \"\\t\" + txtCharge.getValue());\r\n\t\tif (serviceName.length() <= 0 || txtCharge.getValue() == null) {\r\n\t\t\ttry {\r\n\t\t\t\tMessagebox.show(\"Enter the service name and charge\", \"Error in input\", Messagebox.OK, Messagebox.ERROR);\r\n\t\t\t} catch (final Exception e) {\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfinal IPaymentDAO paymentDAO = (IPaymentDAO) SpringUtil.getBean(\"paymentDAO\");\r\n\t\tif (paymentDAO.checkService(serviceName)) {\r\n\t\t\ttry {\r\n\t\t\t\tMessagebox.show(\"Service already exists\", \"Error in input\", Messagebox.OK, Messagebox.ERROR);\r\n\t\t\t} catch (final Exception e) {\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Create new service and save it\r\n\t\tfinal MasterService service = new MasterService();\r\n\t\tservice.setServiceName(txtService.getValue().trim());\r\n\t\tservice.setCharge(txtCharge.getValue());\r\n\t\tservice.setHidden(chkHidden.isChecked());\r\n\t\tpaymentDAO.addMasterService(service);\r\n\r\n\t\t// Add this new service to listmodel and invalidate the list\r\n\t\tfinal ListModelList services = (ListModelList) page.getAttribute(\"serviceslist\");\r\n\t\tservices.add(service);\r\n\t\tpage.setAttribute(\"serviceslist\", services);\r\n\t\tfinal Listbox lstservice = (Listbox) Path.getComponent(page, \"lstservice\");\r\n\t\tlstservice.setModel(services);\r\n\t\tlstservice.invalidate();\r\n\t\tLOGGER.debug(\"added service\");\r\n\t}", "public void addServiceType(ServiceType serviceType){\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tsession.beginTransaction();\n\t\tsession.saveOrUpdate(serviceType);\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t}", "@Override\n\tpublic Integer insertServices(com.easybooking.model.BookedServices services) {\n\t\tint i = 0 ;\n\t\tSessionFactory factory = HibernateUtil.getSesssionFactory();\n\t\tSession session = factory.openSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(services);\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n\t\tfactory.close();\n\t\treturn i;\n\t}", "@Test\r\n\tpublic void addToDb() {\r\n\t\tservice.save(opinion);\r\n\t\tassertNotEquals(opinion.getId(), 0);\r\n\t\tassertTrue(service.exists(opinion.getId()));\r\n\t}", "public int addPaidTask(final DBPaidTask task)\n\t\t\tthrows DatabaseUnkownFailureException, InvalidParameterException;", "@Override\n\tpublic String addPayment(PaymentRequest paymentRequest) {\n\t\treturn \"Courier Booked successfully\";\n\t}", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "InvoiceItem addInvoiceItem(InvoiceItem invoiceItem);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewAmount();", "public boolean addPayment(Payment a) {\n\t\tSession session=sessionFactory.getCurrentSession();\r\n\t\tsession.save(a);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic ResultMessage add(PaymentOrderPO po) {\n\t\tString sql=\"insert into paymentlist(ID,date,amount,payer,bankaccount,entry,note)values(?,?,?,?,?,?,?)\";\n\t\ttry {\n\t\t\tstmt=con.prepareStatement(sql);\n\t\t\tstmt.setString(1, po.getID());\n\t\t\tstmt.setString(2, po.getDate());\n\t\t\tstmt.setDouble(3, po.getAmount());\n\t\t\tstmt.setString(4, po.getPayer());\n\t\t\tstmt.setString(5, po.getBankAccount());\n\t\t\tstmt.setString(6, po.getEntry());\n\t\t\tstmt.setString(7, po.getNote());\n\t\t\tstmt.executeUpdate();\n\t\t\treturn ResultMessage.Success;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn ResultMessage.Fail;\n\t\t}\n\t}", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, Date serviceDate,double quantity){\n\t try{\n\t\t\t\n\t\t\tSimpleDateFormat dateFormat=new SimpleDateFormat(\"yyyy-MM-dd\",Locale.UK);\n\t\t\tString strDate=dateFormat.format(serviceDate);\n\t\t\treturn addRecord(communityMemberId,serviceId,strDate,quantity);\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\t\t\n\t}", "@Override\n\tpublic int addService(Service serviceDTO) {\n\t\tcom.svecw.obtr.domain.Service serviceDomain = new com.svecw.obtr.domain.Service();\n\t\tserviceDomain.setSourceId(serviceDTO.getSourceId());\n\t\tserviceDomain.setDestinationId(serviceDTO.getDestinationId());\n\t\tserviceDomain.setNoOfSeats(serviceDTO.getNoOfSeats());\n\t\tserviceDomain.setFare(serviceDTO.getFare());\n\t\tserviceDomain.setDistance(serviceDTO.getDistance());\n\t\tserviceDomain.setJourneyDate(serviceDTO.getJourneyDate());\n\t\tserviceDomain.setArrivalTime(serviceDTO.getArrivalTime());\n\t\tserviceDomain.setDepartureTime(serviceDTO.getDepartureTime());\n\t\tserviceDomain.setStatus(serviceDTO.getStatus());\n\t\treturn iServiceDAO.addService(serviceDomain);\n\t}", "public void saveService();", "private void registerService() {\r\n DFAgentDescription desc = new DFAgentDescription();\r\n desc.setName(getAID());\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(SERVICE_TYPE);\r\n sd.setName(SERVICE_NAME);\r\n desc.addServices(sd);\r\n try {\r\n DFService.register(this, desc);\r\n } catch (FIPAException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public static void addOnePayment(Payment pagamento) throws ClassNotFoundException{\r\n\t\t\r\n\t\t//Insertion occurs in table \"metododipagamento\"\r\n \t//username:= postgres\r\n \t//password:= effe\r\n \t//Database name:=strumenti_database\r\n \t\r\n \tClass.forName(\"org.postgresql.Driver\");\r\n \t\r\n \ttry (Connection con = DriverManager.getConnection(JDBC_URL, JDBC_USERNAME, JDBC_PASSWORD)){\r\n \t\t\r\n \t\ttry (PreparedStatement pst = con.prepareStatement(\r\n \t\t\t\t\"INSERT INTO \" + NOME_TABELLA + \" \"\r\n \t\t\t\t+ \"(cliente, nomemetodo, credenziali) \"\r\n \t\t\t\t+ \"VALUES (?,?,?)\")) {\r\n \t\t\t\r\n \t\t\tpst.setString(1, pagamento.getUserMailFromPayment());\r\n \t\t\tpst.setString(2, pagamento.getNomeMetodo());\r\n \t\t\tpst.setString(3, pagamento.getCredenziali());\r\n \t\t\t\r\n \t\t\tint n = pst.executeUpdate();\r\n \t\t\tSystem.out.println(\"Inserite \" + n + \" righe in tabella \" \r\n \t\t\t\t\t\t\t\t+ NOME_TABELLA + \": \" + pagamento.getUserMailFromPayment() + \".\");\r\n \t\t\t\r\n \t\t} catch (SQLException e) {\r\n \t\t\tSystem.out.println(\"Errore durante inserimento dati: \" + e.getMessage());\r\n \t\t}\r\n \t\t\r\n \t} catch (SQLException e){\r\n \t\tSystem.out.println(\"Problema durante la connessione iniziale alla base di dati: \" + e.getMessage());\r\n \t}\r\n\t\t\r\n\t}", "private void insertServiceSQLite(ArrayList<ServiceModel> servicesModel) {\n db.execSQL(\"DELETE FROM \" + DBSQLite.TABLE_PRICE_SERVICE\n + \" WHERE \" + DBSQLite.KEY_PRICE_SERVICE_IS_OFFER + \"=0\");\n db.execSQL(\"DELETE FROM \" + DBSQLite.TABLE_SERVICE);\n\n for (ServiceModel serviceModel : servicesModel) {\n ContentValues serviceContent = new ContentValues();\n\n serviceContent.put(DBSQLite.KEY_SERVICE_ID, serviceModel.getId());\n serviceContent.put(DBSQLite.KEY_SERVICE_NAME, serviceModel.getName());\n serviceContent.put(DBSQLite.KEY_SERVICE_DESCRIPTION, serviceModel.getDescription());\n serviceContent.put(DBSQLite.KEY_SERVICE_IMAGE, serviceModel.getImage());\n serviceContent.put(DBSQLite.KEY_SERVICE_RESERVED, serviceModel.getReserved());\n serviceContent.put(DBSQLite.KEY_SERVICE_ID_TYPE, serviceModel.getIdType());\n serviceContent.put(DBSQLite.KEY_SERVICE_NAME_TYPE, serviceModel.getNameType());\n serviceContent.put(DBSQLite.KEY_SERVICE_VALUE_TYPE, serviceModel.getValueType());\n\n if (db.insert(DBSQLite.TABLE_SERVICE, null, serviceContent) == -1)\n System.out.println(\"Ocurrio un error al inserar la consulta en ServiceModel\");\n\n serviceServicePrice.insertServicePriceSQLite(serviceModel.getServicePrice());\n }\n }", "public void agregar(Provincia provincia) throws BusinessErrorHelper;", "private void payReservation(int id) throws SQLException {\n\t\tupdateReservationPaidStatement.clearParameters();\n\t\tupdateReservationPaidStatement.setInt(1, id);\n\t\tupdateReservationPaidStatement.executeUpdate();\n\t}", "public void serviceAdded(ServiceDescription service) {\n System.out.println(\"service added\");\n current = service;\n //set up channel to communicate with server\n //multiple beds -> multiple channels\n channel = ManagedChannelBuilder.forAddress(service.getAddress(), service.getPort())\n .usePlaintext(true)\n .build();\n\n //To call service methods, we first need to create a stub, \n //a blocking/synchronous stub: this means that the RPC call waits for the server to respond, \n //and will either return a response or raise an exception.\n blockingStub = ProjectorGrpc.newBlockingStub(channel);\n\n activateProjector();\n //listInputs();\n\n }", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, String serviceDate,double quanity, String scheduleDate, int type){\n\t\ttry{\n\t\t\t\t\t\t\n\t\t\tdb=getWritableDatabase();\n\t\t\tContentValues cv=new ContentValues();\n\t\t\tcv.put(CommunityMembers.COMMUNITY_MEMBER_ID, communityMemberId);\n\t\t\tcv.put(FamilyPlanningServices.SERVICE_ID,serviceId);\n\t\t\tcv.put(QUANTITY, quanity);\n\t\t\tcv.put(SERVICE_DATE, serviceDate);\n\t\t\tcv.put(SCHEDULE_DATE, scheduleDate);\n\t\t\tcv.put(SERVICE_TYPE, type);\n\t\t\tlong id=db.insert(TABLE_NAME_FAMILY_PLANNING_RECORDS, null, cv);\n\t\t\tif(id<=0){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn getServiceRecord((int)id);\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic void doService() {\n\t\tTbookingrecord booking = new Tbookingrecord();\r\n\t\tbooking.setId(Long.valueOf(31622L));\r\n\t\tbooking.setInstrumentid(2);\r\n\t\tbooking.setUserid(3);\r\n\t\tmappper.insertSelective(booking);\r\n\t\tlogger.debug(booking);\r\n\t\t//int i = 1/0;\r\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense addNewBusinessIndustryLicenses();", "public static Services addNewService(Services services) {\n services.setId(FuncValidation.getValidIdService(services,ENTER_SERVICE_ID,INVALID_SERVICE_ID));\n services.setNameOfService(FuncValidation.getValidName(ENTER_SERVICE_NAME,INVALID_NAME));\n services.setUsedArea(FuncValidation.getValidDoubleNumber(ENTER_USED_AREA, INVALID_DOUBLE_NUMBER,30.0));\n services.setRentalFee(FuncValidation.getValidDoubleNumber(ENTER_RENTAL_FEE, INVALID_RENTAL_FEE,0.0));\n services.setMaxGuest(FuncValidation.getValidIntegerNumber(ENTER_MAXIMUM_OF_GUEST,INVALID_MAX_GUEST,0,20));\n services.setRentType(FuncValidation.getValidName(ENTER_TYPE_OF_RENT,INVALID_NAME));\n return services;\n }", "int insert(PurchasePayment record);", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, String serviceDate,double quanity, String scheduleDate){\n\t\ttry{\n\t\t\t\t\t\t\n\t\t\tdb=getWritableDatabase();\n\t\t\tContentValues cv=new ContentValues();\n\t\t\tcv.put(CommunityMembers.COMMUNITY_MEMBER_ID, communityMemberId);\n\t\t\tcv.put(FamilyPlanningServices.SERVICE_ID,serviceId);\n\t\t\tcv.put(QUANTITY, quanity);\n\t\t\tcv.put(SERVICE_DATE, serviceDate);\n\t\t\tcv.put(SCHEDULE_DATE, scheduleDate);\n\t\t\tlong id=db.insert(TABLE_NAME_FAMILY_PLANNING_RECORDS, null, cv);\n\t\t\tif(id<=0){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn getServiceRecord((int)id);\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\n\t}", "@Override\r\n\tpublic void addSaleRecordByAdmin(int retailerId, int productId, double totalPrice, String submitDate, int projectId,\r\n\t\t\tint points, int amount, boolean status) {\n\t\tiImportSalesRecordDao.addSaleRecordByAdmin(retailerId, productId, totalPrice, submitDate, projectId, points, amount, status);\r\n\t}", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, Date serviceDate){\n\t\treturn addRecord(communityMemberId,serviceId,serviceDate,0);//TODO: id change\n\n\t}", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, String serviceDate){\n\t\treturn addRecord(communityMemberId,serviceId,serviceDate,0);\n\n\t}", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, String serviceDate,double quanity){\n\t\ttry{\n\t\t\t\t\t\t\n\t\t\tdb=getWritableDatabase();\n\t\t\tContentValues cv=new ContentValues();\n\t\t\tcv.put(CommunityMembers.COMMUNITY_MEMBER_ID, communityMemberId);\n\t\t\tcv.put(FamilyPlanningServices.SERVICE_ID,serviceId);\n\t\t\tcv.put(QUANTITY, quanity);\n\t\t\tcv.put(SERVICE_DATE, serviceDate);\n\t\t\tlong id=db.insert(TABLE_NAME_FAMILY_PLANNING_RECORDS, null, cv);\n\t\t\tif(id<=0){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn getServiceRecord((int)id);\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.PaymentDelay addNewPaymentDelay();", "void insert(PaymentTrade record);", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount addNewCapital();", "void addTrade(Trade trade);", "@Override\n\tpublic void save(ServiceFee entites) {\n\t\tservicefeerepo.save(entites);\n\t}", "public void addindbpayment(){\n \n \n double tot = calculateTotal();\n Payment pms = new Payment(0,getLoggedcustid(),tot);\n \n System.out.println(\"NI Payment \"+getLoggedcustid()+\" \"+pms.getPaymentid()+\" \"+pms.getTotalprice());\n session = NewHibernateUtil.getSessionFactory().openSession();\n session.beginTransaction();\n session.save(pms);\n try \n {\n session.getTransaction().commit();\n session.close();\n } catch(HibernateException e) {\n session.getTransaction().rollback();\n session.close();\n }\n clear();\n setBookcart(null);\n test.clear();\n itemdb.clear();\n \n \n try{\n FacesContext.getCurrentInstance().getExternalContext().redirect(\"/BookStorePelikSangat/faces/index.xhtml\");\n } \n catch (IOException e) {}\n \n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement addNewFinancialStatements();", "AdPartner insertAdPartner(AdPartner adPartner);", "public void addtoDB(String plate,String date,double km,ObservableList<Service> serv){\n \n plate = convertToDBForm(plate);\n \n try {\n stmt = conn.createStatement();\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n if(!checkTableExists(plate)){ \n try {\n stmt.execute(\"CREATE TABLE \" + plate + \"(DATA VARCHAR(12),QNT DOUBLE,DESC VARCHAR(50),PRICE DOUBLE,KM DOUBLE);\");\n }catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n \n for(int i=0;i<serv.size();i++){\n \n double qnt = serv.get(i).getQnt();\n String desc = serv.get(i).getDesc();\n double price = serv.get(i).getPrice();\n \n try {\n stmt.executeUpdate(\"INSERT INTO \" + plate + \" VALUES('\" + date + \"',\" + Double.toString(qnt) + \",'\" + desc + \"',\" + Double.toString(price) + \",\" + Double.toString(km) + \");\");\n }catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n \n try {\n stmt.close();\n } catch (SQLException ex) {\n Logger.getLogger(DBHandler.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\n }", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, Date serviceDate,double quantity,Date scheduleDate){\n\t try{\n\t\t\t\n\t\t\tSimpleDateFormat dateFormat=new SimpleDateFormat(\"yyyy-MM-dd\",Locale.UK);\n\t\t\tString strServiceDate=dateFormat.format(serviceDate);\n\t\t\tString strScheduleDate=dateFormat.format(scheduleDate);\n\t\t\treturn addRecord(communityMemberId,serviceId,strServiceDate,quantity,strScheduleDate);\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\t\t\n\t}", "public void addNewPassenger() throws SQLException {\n\t\tScanner input = new Scanner(System.in);\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = connUtil.getConnection();\n\t\t\t// call needed DAOs here\n\t\t\tPassengerDAO pdao = new PassengerDAO(conn);\n\t\t\tFlightDAO fdao = new FlightDAO(conn);\n\t\t\tRouteDAO rdao = new RouteDAO(conn);\n\t\t\tAirportDAO apodao = new AirportDAO(conn);\n\t\t\tAirplaneDAO apldao = new AirplaneDAO(conn);\n\n\t\t\tPassenger passenger = new Passenger();\n\t\t\tpassenger.setId(pdao.nextAvailableId());\n\t\t\tpassenger.setBookingId(1);\n\n\t\t\t// Sets passenger name\n\t\t\tSystem.out.println(\"Enter the passenger given name\");\n\t\t\tpassenger.setGivenName(input.nextLine());\n\t\t\tSystem.out.println(\"Enter the passenger family name\");\n\t\t\tpassenger.setFamilyName(input.nextLine());\n\n\t\t\t// Sets birthday\n\t\t\tSystem.out.println(\"Enter DOB (yyyy-mm-dd)\");\n\t\t\tDate date = Date.valueOf(input.nextLine());\n\t\t\tpassenger.setDob(date);\n\n\t\t\t// Sets gender\n\t\t\tSystem.out.println(\"Enter gender (male/female/other)\");\n\t\t\tpassenger.setGender(input.nextLine());\n\n\t\t\t// Sets address\n\t\t\tSystem.out.println(\"Enter the address of the passenger\");\n\t\t\tpassenger.setAddress(input.nextLine());\n\n\t\t\t// Adds passenger to passenger table\n\t\t\tpdao.addPassenger(passenger);\n\n\t\t\tconn.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tconn.rollback();\n\t\t} finally {\n\t\t\tconn.close();\n\t\t}\n\t}", "void insertCustomerDDPay(CustomerDDPay cddp);", "@PostMapping(\"/payments\")\n\tpublic Payment addPayment(@RequestBody Payment thePayment) {\n\t\t\n\t\tthePayment.setId(0);\n\t\t\n\t\tpaymentService.save(thePayment);\n\t\t\n\t\treturn thePayment;\n\t}", "@Override\r\n\tpublic void save(XftPayment xtp) {\n\t\ttry {\r\n\t\t\tlogger.info(\"save..........servicr.....:\"+JSONUtils.beanToJson(xtp));\t\r\n\t\t\txftPaymentMapper.insert(xtp);\r\n\t\t}catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"Injection to database : Oracle\");\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewCompanyBaseData();", "public Triplet add(Triplet t) throws DAOException;", "public void addPaymentRecord(Payment payment, Handler<AsyncResult<Void>> resultHandler) { \n delegate.addPaymentRecord(payment, resultHandler);\n }", "public void setPaid() {\n isPaid = true;\n }", "public abstract T addService(ServerServiceDefinition service);", "int insert(Payment record);", "public void addPayment(Payment payment){\n payments.add(payment);\n this.orderStatus = OrderStatus.Hold; // change the status of the order\n this.getAccount().setBalance(this.account.getBalance() + payment.getTotal());\n paid += payment.getTotal();\n if (paid == this.total){ // if the total amount was paid then close the order and ship it to the customer.\n this.orderStatus = OrderStatus.Closed;\n this.shipped = new Date();\n }\n }", "void addProduct(Product product);", "public void addButtonClicked(View view) {\n\n Products product = new Products(johnsInput.getText().toString());\n\n dbHandler.addProduct(product);\n printDatabase();\n }", "public boolean addBudget() {\n\t\tConnection con = null;\n\t\tboolean valid = false;\n\n\t\ttry {\n\t\t\tcon = Jdbc.createThreadConnection();\n\t\t\tcon.setAutoCommit(false);\n\t\t\tGateway budgetGateway = PersistenceFactory.createBudgetGateway();\n\t\t\tbudgetGateway.add(dto);\n\t\t\tcon.commit();\n\t\t\tvalid = true;\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tcon.rollback();\n\t\t\t\treturn valid;\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t} finally {\n\t\t\tJdbc.close(con);\n\t\t}\n\n\t\treturn valid;\n\t}", "public void addProduct(Product product);", "public void updateService(String serviceName, String newServiceName, CheckBox dateOfBirth, CheckBox address,\n CheckBox typeOfLicense, CheckBox proofOfResidence, CheckBox proofOfStatus, CheckBox proofOfPhoto, double servicePrice) {\n DatabaseReference dR;\n\n dR = FirebaseDatabase.getInstance().getReference(\"ServiceRequests\").child(serviceName);\n Service serviceRequest = new ServiceCategories(newServiceName, dateOfBirth.isChecked(), address.isChecked(),\n typeOfLicense.isChecked(), proofOfResidence.isChecked(), proofOfStatus.isChecked(),\n proofOfPhoto.isChecked(), servicePrice);\n dR.removeValue();\n dR.getParent().child(newServiceName).setValue(serviceRequest);\n }", "public FamilyPlanningRecord addRecord(int communityMemberId, int serviceId, Date serviceDate,double quantity,Date scheduleDate,int type){\n\t try{\n\t\t\t\n\t\t\tSimpleDateFormat dateFormat=new SimpleDateFormat(\"yyyy-MM-dd\",Locale.UK);\n\t\t\tString strServiceDate=dateFormat.format(serviceDate);\n\t\t\tString strScheduleDate=dateFormat.format(scheduleDate);\n\t\t\treturn addRecord(communityMemberId,serviceId,strServiceDate,quantity,strScheduleDate,type);\n\t\t}catch(Exception ex){\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}\n\t\t\t\n\t}", "public void addProduct(Product p) {\n c.addProduct(p);\n }", "public void addFreeService(String name) {\n serviceCount++;\n LayoutInflater inflater = LayoutInflater.from(getContext());\n View inflatedLayout = inflater.inflate(R.layout.freeservices_item_row, null);\n TextView servicesName = inflatedLayout.findViewById(R.id.name);\n TextView count = inflatedLayout.findViewById(R.id.count);\n count.setText(serviceCount + \"\");\n servicesName.setText(name);\n freServiceesLayoutView.addView(inflatedLayout);\n\n }", "public Integer addPaymentType(PaymentTypeObject paymentTypeObject) throws AppException;", "public static void addNewServices() {\n displayAddNewServicesMenu();\n processAddnewServicesMenu();\n }", "public void insert(int id, String name,double cost,String description){\r\n \tService service = new Service();\r\n \tservice.setId(id);\r\n \tservice.setName(name);\r\n \tservice.setCost(cost);\r\n \tservice.setDescription(description);\r\n \tsession.save(service);\r\n \tsession.beginTransaction().commit();\r\n }", "int insert(BusinessRepayment record);", "public void insert(ChargePolicy chargePolicy);", "public Task<DocumentReference> makePayment(PaymentTable paymentTable){\n return firebaseFirestore.collection(\"Payment\").add(paymentTable);\n }", "public void addSportive(Sportive sportive) throws ValidatorException{\n repo.save(sportive);\n }", "@Override\n\tpublic Lead addLead(Lead Lead) {\n\n\t\tthrow new UnsupportedOperationException(\n\t\t\t\"please use instead addLead(Lead, ServiceContext)\");\n\t}", "@Override\r\n\tpublic boolean add(ServicesDto servicesDto) {\r\n\t\ttry {\r\n\t\t\t// add the category to database table\r\n\t\t\tsessionFactory.getCurrentSession().persist(servicesDto);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public void addClicked(View v){\n android.util.Log.d(this.getClass().getSimpleName(), \"add Clicked. Adding: \" + this.nameET.getText().toString());\n try{\n PartnerDB db = new PartnerDB((Context)this);\n SQLiteDatabase plcDB = db.openDB();\n ContentValues hm = new ContentValues();\n hm.put(\"name\", this.nameET.getText().toString());\n double hours = Double.parseDouble(this.tippableHoursET.getText().toString());\n hm.put(\"tippableHours\", hours);\n double tipsPerHour = Double.parseDouble(this.tipsPerHourET.getText().toString());\n hm.put(\"tipsPerHour\", tipsPerHour);\n //double tips = Double.parseDouble(this.tipsET.getText().toString());\n //hm.put(\"tips\", tips);\n plcDB.insert(\"partner\",null, hm);\n plcDB.close();\n db.close();\n String addedName = this.nameET.getText().toString();\n setupselectSpinner1();\n this.selectedPartner = addedName;\n this.selectSpinner1.setSelection(Arrays.asList(partners).indexOf(this.selectedPartner));\n } catch (Exception ex){\n android.util.Log.w(this.getClass().getSimpleName(),\"Exception adding partner information: \"+\n ex.getMessage());\n }\n }", "public Service(int serviceID, String serviceName, double serviceFee, String serviceDescrp){\r\n\t\tthis.serviceName = serviceName;\r\n\t\tthis.serviceID = serviceID;\r\n\t\tthis.serviceFee = serviceFee;\r\n\t\tthis.serviceDescrp = serviceDescrp;\r\n\t}", "public void addProduct(Product p){\n stock.add(p);\n }", "public void addPrescription(Prescription p){\n prescriptions.add(p);\n }", "int insert(SsPaymentBillPerson record);", "public void addProduct(Product p) {\n if(products.size() != 0 && products.get(0).getPricingDetails().equals(p.getPricingDetails()))\n return;\n\n products.add(p);\n quantity++;\n price = price.add(p.getPricingDetails());\n }", "Order addOrder(String orderId, Order order) throws OrderBookOrderException;", "boolean add(InvoiceDTO invoiceDTO);", "@Override\n\tpublic void add() {\n\n\t\tSystem.out.println(\"UserServiceImpl....\");\n\t\tthis.repository.respository();\n\n\t}", "void insert(ServiceSegmentModel serviceSegment);", "public abstract T addService(BindableService bindableService);", "@Override\n\tpublic void insertarServicio(Servicio nuevoServicio) {\n\t\tservicioDao= new ServicioDaoImpl();\n\t\tservicioDao.insertarServicio(nuevoServicio);\n\t\t\n\t\t\n\t}", "public void addCostItem(CostItem item) throws CostManagerException;", "public void addButtonClicked(){\n Products products = new Products(buckysInput.getText().toString());\n dbHandler.addProduct(products);\n printDatabase();\n }", "@Override\r\n\tpublic void insertPurchase(Purchase Purchase) throws Exception {\n\t\t\r\n\t}", "public void addService() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n null,\n childrenNames());\n }", "public void addService() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"service\",\n null,\n childrenNames());\n }", "Product addNewProductInStore(Product newProduct);", "private void insertServiceRequest() {\n Random rand = new Random();\r\n service_id = rand.nextInt(Integer.MAX_VALUE);\r\n int tokenSeed = rand.nextInt(Integer.MAX_VALUE);\r\n current_token = md5(tokenSeed + \"\");\r\n\r\n Calendar cal = Calendar.getInstance();\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\r\n String fecha = sdf.format(cal.getTime());\r\n\r\n int deliver_state = 1;\r\n\r\n int costo = (int) Math.round(destinations.get(0).total_price);\r\n\r\n ArrayList<String> param = new ArrayList<>();\r\n param.add(service_id + \"\");\r\n param.add(current_token);\r\n param.add(fecha);\r\n param.add(deliver_state + \"\");\r\n param.add(id_cliente + \"\");\r\n param.add(costo + \"\");\r\n param.add(\"0\");\r\n RestClient.get().executeCommand(\"8\", param.toString(), new Callback<Response>() {\r\n @Override\r\n public void success(Response response, retrofit.client.Response response2) {\r\n\r\n insertRoutes();\r\n }\r\n\r\n @Override\r\n public void failure(RetrofitError error) {\r\n hideOverlay();\r\n showDialog(\r\n getResources().getString(\r\n R.string.msg_serverError_title),\r\n getResources().getString(\r\n R.string.msg_serverError), false, false);\r\n }\r\n });\r\n\r\n\r\n }", "public void add(Profilo profilo) {\r\n\t\tlogger.debug(\"Aggiungo un nuovo Profilo\");\r\n\t\t\t\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Salvo il Profilo\r\n\t\tsession.save(profilo);\r\n\t}" ]
[ "0.6721739", "0.63880396", "0.62573403", "0.62207", "0.6117831", "0.60894877", "0.5976751", "0.59523153", "0.59245765", "0.59229136", "0.5913342", "0.5862602", "0.5829127", "0.58007365", "0.5790729", "0.5756459", "0.5724179", "0.56936646", "0.5657362", "0.56531787", "0.56503654", "0.56437874", "0.5621974", "0.56139624", "0.5593224", "0.5556513", "0.5547839", "0.5539417", "0.5538957", "0.5532819", "0.55231714", "0.5518211", "0.55165887", "0.5510983", "0.5509694", "0.5503288", "0.550306", "0.54947716", "0.5493546", "0.5489182", "0.5485424", "0.5462981", "0.54438853", "0.54314023", "0.5414222", "0.5405736", "0.54056174", "0.54001176", "0.5378172", "0.5369604", "0.5367225", "0.53628653", "0.53550965", "0.53430295", "0.5339395", "0.5336696", "0.53345776", "0.53324896", "0.5317585", "0.53136206", "0.5308692", "0.53004134", "0.52982956", "0.52902454", "0.528073", "0.5280654", "0.52784115", "0.52752674", "0.52726233", "0.52722734", "0.5270342", "0.52678394", "0.5266786", "0.52520794", "0.52414066", "0.52405035", "0.5233259", "0.5232669", "0.52186203", "0.5217119", "0.520819", "0.5194469", "0.51929057", "0.51901907", "0.5189866", "0.5187418", "0.5183914", "0.5183103", "0.517986", "0.5174684", "0.51685816", "0.5162424", "0.5149081", "0.51445895", "0.5143914", "0.5143636", "0.5143636", "0.5126523", "0.5117783", "0.5111892" ]
0.76817554
0
Adds the paid task to the database.
public int addPaidTask(final DBPaidTask task) throws DatabaseUnkownFailureException, InvalidParameterException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void AddTaskToDB(View view){\n\t\tif (TASK_CREATED == true){\n\t\t\tString name = taskName.getText().toString();\n\t\t\tString desc = taskDescription.getText().toString();\n//\t\t\tlong millisecondsToReminder = 0;\n\t\t\tlong millisecondsToCreated = 0;\n//\t\t\tyear = taskDatePicker.getYear();\n//\t\t\tmonth = taskDatePicker.getMonth() + 1;\n//\t\t\tday = taskDatePicker.getDayOfMonth();\n//\t\t\thour = taskTimePicker.getCurrentHour();\n//\t\t\tminute = taskTimePicker.getCurrentMinute();\n\t\t\ttry {\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tDate dateCreated = cal.getTime();\n\t\t\t\tmillisecondsToCreated = dateCreated.getTime();\n//\t\t\t\tString dateToParse = day + \"-\" + month + \"-\" + year + \" \" + hour + \":\" + minute;\n//\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"d-M-yyyy hh:mm\");\n//\t\t\t\tDate date = dateFormatter.parse(dateToParse);\n//\t\t\t\tmillisecondsToReminder = date.getTime();\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} // You will need try/catch around this\n\n\t\t\tBujoDbHandler taskHandler = new BujoDbHandler(view.getContext());\n\t\t\tcurrentTask = new Task(name, desc, millisecondsToCreated);\n\t\t\ttaskHandler.addTask(currentTask);\n\t\t}\n\t}", "public void addTask(Task task){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID, task.getId());\n values.put(KEY_LABEL, task.getLabel());\n values.put(KEY_TIME, task.getTime());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }", "public static void addTask(Task taskToAdd)\n\t{\n\t\tStatement statement = dbConnect.createStatement();\n\t\t\n\t\tCalendar cal = taskToAdd.getCal();\n\t\tint year = cal.get(YEAR);\n\t\tint month = cal.get(MONTH);\n\t\tint day = cal.get(DAY_OF_MONTH);\n\t\tint hour = cal.get(HOUR_OF_DAY);\n\t\tint minute = cal.get(MINUTE);\n\t\t\n\t\tString descrip = taskToAdd.getDescription();\n\t\tboolean recur = taskToAdd.getRecurs();\n\t\tint recurI;\n\t\tif(recur) recurI = 1;\n\t\telse recurI = 0;\n\t\tint recursDays = taskToAdd.getRecurIntervalDays();\n\t\t\n\t\tstatement.executeUpdate(\"INSERT INTO tasks (Year, Month, Date, Hour, Minute, Description, Recursion, RecursionDays) VALUES(\" +year+\", \"+month+\", \"+day+\", \"+hour+\", \"+minute+\", '\"+descrip+\"', \"+recurI+\", \"+recursDays+\")\");\n\t\tstatement.close();\n\t\treturn;\n\t}", "@Override\r\n\tpublic Task addTask(Task task) {\n\t\treturn taskRepository.save(task);\r\n\t}", "public boolean addTask(Project p) {\n try {\n String update = \"INSERT INTO TASKS (PROJECT_ID,HOURS_ADDED,DESCRIPTION,HOURS) VALUES(?,?,?,?) \";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(update);\n ps.setString(1, p.getProjectId());\n ps.setString(2, p.getHoursadded());\n ps.setString(3, p.getDescription());\n ps.setString(4, p.getHours());\n\n ps.executeUpdate();\n\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "public void add(Task t)\n {\n\ttoDo.add(t);\n }", "public void saveTask() {\r\n if (validateTask(textFieldName, textFieldDescription, textFieldDueDate, comboPriority)) {\r\n if (myTask == null) {\r\n myTask = new Task(textFieldName.getText(), textFieldDescription.getText(),\r\n LocalDate.parse(textFieldDueDate.getText()),\r\n Priority.valueOf(Objects.requireNonNull(comboPriority.getSelectedItem()).toString()));\r\n } else {\r\n myTask.setName(textFieldName.getText());\r\n myTask.setDescription(textFieldDescription.getText());\r\n myTask.setDueDate(LocalDate.parse(textFieldDueDate.getText()));\r\n myTask.setPriority(Priority.valueOf(Objects.requireNonNull(\r\n comboPriority.getSelectedItem()).toString()));\r\n }\r\n myTodo.getTodo().put(myTask.getHashKey(), myTask);\r\n todoListGui();\r\n }\r\n }", "int insertDptTask(DptTaskInfo dptTaskInfo);", "@Override\n\tpublic void add(ScheduleTask st) {\n\t\tsave(st);\n\n\t}", "@Override\n\tpublic void addScheduleTask(ScheduleTask st) {\n\t\tscheduleTaskDAO.add(st);\n\t}", "public int addTask(Task task) {\n\t\treturn (Integer)getHibernateTemplate().save(task);\n\t}", "String addTask(Task task);", "long addTask(Task task) {\n SQLiteDatabase db = this.getWritableDatabase();\n double time;\n\n ContentValues values = new ContentValues();\n values.put(KEY_INFO, task.getInfo()); // task info\n if (task.calendarExists()) {\n time = task.getCalendar().getTimeInMillis();\n } else {\n time = 0;\n }\n values.put(KEY_CALENDAR, time); // Task calendar\n values.put(KEY_LATITUDE, task.getLatitude());\n values.put(KEY_LONGITUDE, task.getLongitude());\n\n // Inserting Row\n long id;\n id = db.insert(TABLE_TASKS, null, values);\n Log.d(TAG, \"ID: \" + Long.toString(id));\n db.close(); // Closing database connection\n return id;\n }", "@Transactional\n\tpublic void saveItemTask(MaintenanceRequestTask maintenanceRequestTask){\n\t\tmaintenanceRequestTaskDAO.save(maintenanceRequestTask);\n\t}", "void addSubTask(AuctionTask task);", "public void addTask(View v) {\n int taskId = Integer.parseInt(txtId.getText().toString());\n String tskName = txtTaskName.getText().toString();\n String taskDesc = txtTaskDescription.getText().toString();\n ContentValues values = new ContentValues();\n values.put(\"taskId\", taskId);\n values.put(\"taskName\", tskName);\n values.put(\"taskDescription\", taskDesc);\n try {\n taskManager.addTask(values);\n Toast.makeText(this, \"Data Inserted\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }", "public long addTask(Task task) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_TASKNAME, task.getTaskName()); // task name\n // status of task- can be 0 for not done and 1 for done\n values.put(KEY_STATUS, task.getStatus());\n values.put(KEY_DATE,task.getDateAt());\n\n // Inserting Row\n long task_id= db.insert(TABLE_TASKS, null, values);\n // insert row\n\n return task_id;\n\n }", "public void addTask(Task task) {\n\t\tSystem.out.println(\"Inside createTask()\");\n\t\t\n\t\ttoDoList.add(task);\n\t\tdisplay();\n\t}", "@Override\r\n public void save(DiagramTask task)\r\n {\r\n try\r\n {\r\n TASK_DAO.addTask(task);\r\n addMessage(\"Success!\", \"Task added correctly.\");\r\n \r\n }\r\n catch (HibernateException e)\r\n {\r\n addMessage(\"Error!\", \"Please try again.\");\r\n Logger.getLogger(DiagramTaskBean.class.getName()).log(Level.SEVERE, null, e);\r\n }\r\n\r\n }", "public void add(Task task){ this.tasks.add(task);}", "void addTask(Task task);", "void addTask(Task person) throws UniqueTaskList.DuplicateTaskException;", "int insertTask(TaskInfo taskInfo);", "@Override\r\n\tpublic void save(ExecuteTask executeTask) {\n\t\tString sql = \"INSERT INTO executetask(et_member_id,et_task_id,et_comments) VALUES(?,?,?)\";\r\n\t\tupdate(sql,executeTask.getMemberId(),executeTask.getTaskId(),executeTask.getComments());\r\n\t}", "public void creatTask(int uid,String title,String detail,int money,String type,int total_num,Timestamp end_time,String state);", "private void newTask()\n {\n \t//TODO add alarm\n \tTask task = new Task(taskName.getText().toString(), taskDetails.getText().toString());\n \tdb.createTask(task);\n \t//TODO Tie notification to an alarm\n \t//Create notification\n \tIntent notifyIntent = new Intent(this, TaskNotification.class);\n \tnotifyIntent.putExtra(\"title\", task.name); //add title name\n \tnotifyIntent.putExtra(\"id\", (int) task.id); //add id\n \tstartActivity(notifyIntent); //create the intent\n \t\n \trefreshData();\n }", "public int addTask(Item item) {\n try (Session session = this.factory.openSession()) {\n session.beginTransaction();\n session.save(item);\n session.getTransaction().commit();\n } catch (Exception e) {\n this.factory.getCurrentSession().getTransaction().rollback();\n }\n return item.getId();\n }", "public void add(View view) {\n Intent addIntent = new Intent(this, AddTask.class);\n addIntent.putExtra(\"com.example.joshua.livetogether.aptID\", mAptID);\n startActivity(addIntent);\n }", "public void makePayment()\n\t{\n\t\tif(this.inProgress())\n\t\t{\n\t\t\tthis.total += this.getPaymentDue();\n\t\t\tthis.currentTicket.setPaymentTime(this.clock.getTime());\n\t\t}\t\t\n\t}", "public void addTask(Task newTask) {\n recordedTask.add(newTask);\n updateTaskToFile();\n }", "public int addTaskToDoneGrid(InProgress inProgress) {\n try {\n return jdbcTemplate.update(\"INSERT INTO done (`task_details`, `finish_date`, `difficulty`) VALUES (?,?,?) \",\n inProgress.getTaskDetails(), inProgress.getFinishDate(),inProgress.getDifficultyLevel());\n } catch (Exception e) {\n return 0;\n }\n }", "boolean addTask(Task newTask);", "public String addBilling(Tour t,Event e){\n \n \n String result = \"0\";\n Connection con = null;\n //build the sql\n String SQLCommand = \"INSERT INTO billing(id,lineup_order,event_id,artist_id,tour_id)\" +\n \" values (seq_billing_id.NEXTVAL,?,?,?,?)\";\n \n try{\n //obtain the database connection by calling getConn() \n con = getConn();\n Billing b = t.getBills().get(0);\n \n \n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql , parameters are represented by ? in the sql\n PreparedStatement ps = con.prepareStatement(SQLCommand); \n \n //setting the parameters values\n ps.setInt(1,b.getLineupOrder());\n ps.setLong(2,e.getId());\n ps.setLong(3, b.getArtist().getId());\n ps.setLong(4, t.getId());\n \n //exceuting the insert or update operation \n ps.executeUpdate(); \n }\n catch (SQLException ex){\n ex.printStackTrace();\n result = ex.getMessage();\n }\n return result;\n }", "public void add(Task task)\n {\n this.tasks.add(task);\n }", "public static boolean insertTask(Task task){\n try{\n String query = \"INSERT INTO TASK VALUES (?,?,?,?)\"; // Setup query for task\n PreparedStatement statement = DatabaseHandler.getConnection().prepareStatement(query); // Setup statement for query\n statement.setString(1, task.getName()); // Add task's name to the statement\n statement.setString(2, task.getColor().toString()); // Add task's colour to the statement\n statement.setString(3, \"false\"); // Task completion variable will always be false when a new task is created/added.\n statement.setString(4, task.getDate().toString()); // Add task's date to the statement\n int result = statement.executeUpdate(); // send out the statement\n return (result > 0);\n } catch (SQLException e) { // If the task wasn't able to be added\n e.printStackTrace(); // Create alert for If the task was unable to be added\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setHeaderText(null);\n alert.setContentText(\"Unable to add new task.\");\n alert.showAndWait();\n }\n return false;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();", "private void addRelationShipIsBuy() {\n ParseObject story = ParseObject.createWithoutData(\"Story\", objectId);\n\n // Get current User\n ParseUser user = ParseUser.getCurrentUser();\n\n // Create relationship collumn UserLove\n ParseRelation relation = user.getRelation(\"StoryPaid\");\n\n // Add story to Relation\n relation.add(story);\n\n // user save relation\n user.saveInBackground(new SaveCallback() {\n\n @Override\n public void done(ParseException e) {\n if (e == null) {\n //Toast.makeText(StoryDetails.this, \"User Buy this story, go to Your Book to see!!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_SHORT)\n .show();\n }\n }\n\n });\n\n }", "public int addPaidService(final DBPaidService service)\n\t\t\tthrows InvalidParameterException, DatabaseUnkownFailureException;", "private void saveTask(){\n \tZadatakApp app = (ZadatakApp)getApplicationContext();\n \t\n \tTask task = new Task();\n \ttask.set(Task.Attributes.Name, nameText);\n \ttask.set(Task.Attributes.Duedate, datePicker);\n \ttask.set(Task.Attributes.Hours, lengthText);\n \ttask.set(Task.Attributes.Progress, progressBar);\n \ttask.set(Task.Attributes.Priority, priorityBox);\n \t\n \t// Save it to the database either as a new task or over an old task\n \tif (editmode) { app.dbman.editTask(id, task); }\n \telse { app.dbman.insertTask(task); }\n \t\n \t// A task has been added or changed, rescedule\n \tapp.schedule();\n \t\n \tapp.toaster(\"NEW / EDITED TASK\");\n \t\n \t// Quit the activity\n \tfinish();\n }", "int insert(Task record);", "public Triplet add(Triplet t) throws DAOException;", "public static void updatePayment(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n\r\n String sqlInsert = \"UPDATE projects SET tot_paid = ?\" +\r\n \"WHERE project_num = \" + projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setDouble(1, NewProject.tot_paid);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "public void insertTicket(Ticket t){if(!this.inProgress()){this.currentTicket = t;}}", "public String addTask(TasksModel obj)\n\t{\n\t\t\tString memo=\"\"; \n\t\t\tif(obj.getMemo()!=null)\n\t\t\t{\n\t\t\t\tmemo=obj.getMemo().replaceAll(\"'\",\"`\");\n\t\t\t}\n\t\t\tobj.setMemo(memo);\n\t\t\t\n\t\t\tString commnets=\"\"; \n\t\t\tif(obj.getComments()!=null)\n\t\t\t{\n\t\t\t\tcommnets=obj.getComments().replaceAll(\"'\",\"`\");\n\t\t\t}\n\t\t\tobj.setComments(commnets);\n\t\t\t\t\n\t\t\tString stepsToReproduce=\"\"; \n\t\t\tif(obj.getTaskStep()!=null)\n\t\t\t{\n\t\t\t\tstepsToReproduce=obj.getTaskStep().replaceAll(\"'\",\"`\");\n\t\t\t}\n\t\t\tobj.setTaskStep(stepsToReproduce);\n\t\t\t\n\t\t query=new StringBuffer();\t\t \n\t\t query.append(\" Insert into tasks (taskID,createDate,expectedDateTofinsh,toBeReminderIn,createdUser,taskNo,tasktype,taskName,steps,linkid,customerrefKey,projectrefKey,servicerefKey,assignedUser,ccemployeeKey,priorityrefKey,estTime,memo,actualTime,status,usercomments,hourOrDays,customerType,reminderDate,createdAutomaticFeedback,customerNameFeedback,feedBackKey)\");\n\t\t query.append(\" values(\"+obj.getTaskid()+\",'\"+sdf.format(obj.getCreationDate())+\"','\"+sdf.format(obj.getExpectedDatetofinish())+\"',\"+obj.getRemindIn()+\",\" + obj.getCreatedUserID()+\",'\"+obj.getTaskNumber()+\"',\"+obj.getTaskTypeId()+\",'\"+obj.getTaskName()+\"',\");\n\t\t query.append(\"'\"+obj.getTaskStep()+\"',\"+obj.getPrviousTaskLinkId()+\",\"+obj.getCustomerRefKey()+\",\"+obj.getProjectKey()+\",\"+obj.getSreviceId()+\",\"+obj.getEmployeeid()+\",\"+obj.getCcEmployeeKey()+\",\"+obj.getPriorityRefKey()+\",\");\n\t\t query.append(\"\"+obj.getEstimatatedNumber()+\",'\"+obj.getMemo()+\"',\"+obj.getActualNumber()+\",\"+obj.getStatusKey()+\",'\"+obj.getComments()+\"','\"+obj.getHoursOrDays()+\"','\"+obj.getClientType()+\"','\"+sdf.format(obj.getReminderDate())+\"','\"+obj.getCreatedAutommaticTask()+\"','\"+obj.getCustomerNamefromFeedback()+\"',\"+obj.getFeedbackKey()+\")\");\n\t\t return query.toString();\n\t}", "public static void addOnePayment(Payment pagamento) throws ClassNotFoundException{\r\n\t\t\r\n\t\t//Insertion occurs in table \"metododipagamento\"\r\n \t//username:= postgres\r\n \t//password:= effe\r\n \t//Database name:=strumenti_database\r\n \t\r\n \tClass.forName(\"org.postgresql.Driver\");\r\n \t\r\n \ttry (Connection con = DriverManager.getConnection(JDBC_URL, JDBC_USERNAME, JDBC_PASSWORD)){\r\n \t\t\r\n \t\ttry (PreparedStatement pst = con.prepareStatement(\r\n \t\t\t\t\"INSERT INTO \" + NOME_TABELLA + \" \"\r\n \t\t\t\t+ \"(cliente, nomemetodo, credenziali) \"\r\n \t\t\t\t+ \"VALUES (?,?,?)\")) {\r\n \t\t\t\r\n \t\t\tpst.setString(1, pagamento.getUserMailFromPayment());\r\n \t\t\tpst.setString(2, pagamento.getNomeMetodo());\r\n \t\t\tpst.setString(3, pagamento.getCredenziali());\r\n \t\t\t\r\n \t\t\tint n = pst.executeUpdate();\r\n \t\t\tSystem.out.println(\"Inserite \" + n + \" righe in tabella \" \r\n \t\t\t\t\t\t\t\t+ NOME_TABELLA + \": \" + pagamento.getUserMailFromPayment() + \".\");\r\n \t\t\t\r\n \t\t} catch (SQLException e) {\r\n \t\t\tSystem.out.println(\"Errore durante inserimento dati: \" + e.getMessage());\r\n \t\t}\r\n \t\t\r\n \t} catch (SQLException e){\r\n \t\tSystem.out.println(\"Problema durante la connessione iniziale alla base di dati: \" + e.getMessage());\r\n \t}\r\n\t\t\r\n\t}", "@Override\n\tpublic ResultMessage add(PaymentOrderPO po) {\n\t\tString sql=\"insert into paymentlist(ID,date,amount,payer,bankaccount,entry,note)values(?,?,?,?,?,?,?)\";\n\t\ttry {\n\t\t\tstmt=con.prepareStatement(sql);\n\t\t\tstmt.setString(1, po.getID());\n\t\t\tstmt.setString(2, po.getDate());\n\t\t\tstmt.setDouble(3, po.getAmount());\n\t\t\tstmt.setString(4, po.getPayer());\n\t\t\tstmt.setString(5, po.getBankAccount());\n\t\t\tstmt.setString(6, po.getEntry());\n\t\t\tstmt.setString(7, po.getNote());\n\t\t\tstmt.executeUpdate();\n\t\t\treturn ResultMessage.Success;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn ResultMessage.Fail;\n\t\t}\n\t}", "public int addTodo(Todo t) throws SQLException{\n \n \n String sql = \"INSERT INTO todos (task, difficulty, dueDate, status) VALUES (?, ?, ?, ?)\";\n\n PreparedStatement statement = conn.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n\n statement.setString(1, t.getTask());\n statement.setInt(2, t.getDifficulty());\n statement.setDate(3, t.getDueDate());\n statement.setString(4, t.getStatus().toString());\n\n statement.executeUpdate(); //SQLException\n\n //obtain ID of the newly inserted record if you need to\n ResultSet rs = statement.getGeneratedKeys();\n \n if(rs.next()){\n int lastInsertedId = rs.getInt(1);\n return lastInsertedId;\n }\n //return -1; // not good choice without any documentation\n throw new SQLException(\"Id after insert not found\");\n }", "public void addTask(View v) {\n EditText field = (EditText) findViewById(R.id.list_edittext);\n String task = field.getText().toString().trim();\n\n // Do not add empty tasks\n if(!task.equals(\"\")) {\n database.addTask(task);\n field.setText(\"\");\n Toast.makeText(this, String.format(getResources().getString(R.string.list_add_toast),\n task), Toast.LENGTH_LONG).show();\n }\n }", "int insert(_task record);", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public long addTask(Task taskObj, ContentData cData) throws CannotAddTaskException {\n OrganizationalEntity orgOBj = taskObj.getTaskData().getCreatedBy();\n checkAndSetTempOrgEntitySet(orgOBj);\n checkAndSetListOfOrgEntities(taskObj.getPeopleAssignments().getPotentialOwners());\n \n TaskServiceSession taskSession = null;\n try {\n taskSession = taskService.createSession();\n taskSession.addTask(taskObj, cData);\n int sessionId = taskObj.getTaskData().getProcessSessionId();\n eventSupport.fireTaskAdded(taskObj, cData);\n return taskObj.getId();\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }", "public void addQuickAddPatientPersonalfromLocal(String create_date, String prescriptionImgPath, String added_by, String status, String phnumber, String email, String referedBy, String referedTo) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n try {\n ContentValues values = new ContentValues();\n values.put(PRESCRIPTION, prescriptionImgPath);\n values.put(ADDED_ON, create_date);\n values.put(ADDED_BY, added_by);\n values.put(STATUS, status);\n values.put(PHONE_NUMBER, phnumber);\n values.put(KEY_EMAIL, email);\n values.put(REFERED_BY, referedBy);\n values.put(REFERED_TO, referedTo);\n\n // Inserting Row\n db.insert(\"prescription_queue\", null, values);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }", "@Insert\n long insert(Task task);", "@Override\n\tpublic void addTask(Teatask ta)\n\t{\n\t\tteataskMapper.addTask(ta);\n\t}", "void add(final Task task);", "public void addNewTask(String taskName) {\n\t\tCommand cmdAdd = new CmdAdd();\n\t\tcmdAdd.setParameter(CmdParameters.PARAM_NAME_TASK_NAME, taskName);\n\t\tcmdAdd.execute();\n\t}", "public void add(String name, String newToDo)\n {\n if (newToDo == null || name == null || newToDo.length() == 0 || name.length() == 0 )\n return;\n try {\n //Open a connection and create a statement and query.\n Connection con = ConnectDB();\n PreparedStatement prepStmt;\n \n //With NULL for an integer unique value, SQLite will automatically pick the next biggest integer for\n //the REFERENCE number\n String query = \"INSERT INTO TASKS VALUES(NULL, ?, ?, '0')\";\n prepStmt = con.prepareStatement(query);\n \n prepStmt.setString(1,name);\n prepStmt.setString(2, newToDo);\n \n prepStmt.executeUpdate();\n } catch (SQLException ex) {\n Logger.getLogger(SQLConnect.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void onClick(View v) {\n Task task = new Task();\n task.setTask_id(key); // Use the generated key from the database as id.\n task.setMessage(editText.getText().toString());\n String rating = spinner.getSelectedItem().toString();\n task.setPriority(rating);\n\n // we need to convert our model into a Hashmap since Firebase cannot save custom classes.\n // String/ArrayList/Integer and Hashmap are the only supported types.\n Map<String, Object> childUpdates = new HashMap<>();\n childUpdates.put( key, task.toFirebaseObject());\n\n database.child(\"users\").child(currentUserID).child(\"taskList\").updateChildren(childUpdates, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n if (databaseError == null) {\n // Return to previous activity\n finish();\n }\n }\n });\n }", "public void add(final Task task) {\n }", "int insert(PurchasePayment record);", "public void createTask(Task task) {\n ContentValues values = new ContentValues();\n values.put(SQLiteHelper.COLUMN_NAME, task.getName());\n database.insert(SQLiteHelper.TABLE_TASKS, null, values);\n }", "@Override\n public void saveTask(TaskEntity task) {\n this.save(task);\n }", "public void createTask(){\n final String name = newTaskNameField.getText().toString();\n final String description = newTaskDescriptionField.getText().toString();\n\n if (name.isEmpty()){\n newTaskNameField.setText(\"Please Enter a name\");\n newTaskNameField.requestFocus();\n newTaskNameField.selectAll();\n return;\n }\n\n if (description.isEmpty()){\n newTaskDescriptionField.setText(\"Please Enter a Description\");\n newTaskDescriptionField.requestFocus();\n newTaskDescriptionField.selectAll();\n return;\n }\n\n if(!getValidDate(newtaskDateField.getText().toString())) {\n handleInvalidDate();\n return;\n }\n\n if(newTaskAssignee == null) {\n newTaskAssigneeField.setText(\"Please assign a user\");\n newTaskAssigneeField.selectAll();\n return;\n }\n\n TaskManager.sharedInstance().CreateTask(name, description, newTaskAssignee, DueDate, false);\n newTaskDialog.dismiss();\n }", "private void addTask(ToDoList toDoList, JSONObject jsonObject) {\n String name = jsonObject.getString(\"title\");\n LocalDate dueDate = LocalDate.parse(jsonObject.getString(\"dueDate\"));\n boolean complete = jsonObject.getBoolean(\"complete\");\n boolean important = jsonObject.getBoolean(\"important\");\n Task newTask = new Task(name, dueDate);\n newTask.setComplete(complete);\n newTask.setImportant(important);\n\n toDoList.addTask(newTask);\n }", "public void savePendingRequest(PendingRequest pendingRequest);", "public void addTransaction(Transactions t){\n listOfTransactions.put(LocalDate.now(), t);\n }", "public void anualTasks(){\n List<Unit> units = unitService.getUnits();\n for(Unit unit: units){\n double amount = 10000; //@TODO calculate amount based on unit type\n Payment payment = new Payment();\n payment.setPaymentMethod(PaymentMethod.Cash);\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.MONTH, 1);\n calendar.set(Calendar.DATE, 30);\n payment.setDate(LocalDate.now());\n TimeZone tz = calendar.getTimeZone();\n ZoneId zid = tz == null ? ZoneId.systemDefault() : tz.toZoneId();\n payment.setAmount(amount);\n payment.setDueDate(LocalDateTime.ofInstant(calendar.toInstant(), zid).toLocalDate());\n payment.setClient(unit.getOwner());\n payment.setUnit(unit);\n payment.setRecurringInterval(365L);\n payment.setStatus(PaymentStatus.Pending);\n paymentService.savePayment(payment);\n }\n }", "public void addTask(Task task)\n {\n tasks.add(task);\n }", "private void updatePayments(int id, int toPay) {\n\t\tint customer_id=id;\n\t\tint payment=toPay;\n\t\ttry {\n\t\t\tPreparedStatement pstmt=con.prepareStatement(\"insert into payments(customerNumber,payments) values(?,?)\");\n\t\t\tpstmt.setInt(1, customer_id);\n\t\t\tpstmt.setInt(2, payment);\n\t\t\tint rowseffected=pstmt.executeUpdate();\n\t\t\tif(rowseffected>0) {\n\t\t\t\tSystem.out.println(\"--------------------------------ORDER PLACED--------------------------------\");\n\t\t\t\tuserTasks();\n\t\t\t}\n\t\t} catch (SQLException 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 add(Task task) {\r\n tasks.add(task);\r\n }", "public void addTask(View view) {\n // Model of the list data\n ListModel model = ListModel.getInstance();\n\n // String for the date in \"mm/dd/yyyy\" format\n String date;\n\n // Get the name of the task\n EditText text = (EditText) findViewById(R.id.taskInput);\n String taskName = text.getText().toString();\n\n // Add list to model\n model.addTask(listName, taskName);\n\n\n // Return to the single list activity\n Log.i(TAG, \"Creating intent to return to the single list activity\");\n Intent intent = new Intent(this, SingleListActivity.class);\n intent.putExtra(Extra.LIST, listName);\n Log.i(TAG, \"Intent created with extra message (list name).\");\n Log.i(TAG, \"Starting single list activity\");\n startActivity(intent);\n }", "public void addItemToList(String task, String completionDate, boolean completed)\n {\n Item.getToDoList().add(new Item(task, completionDate, completed));\n }", "public void addTask(Task task) {\n list.add(task);\n }", "private static void addTask() {\n Task task = new Task();\n System.out.println(\"Podaj tytuł zadania\");\n task.setTitle(scanner.nextLine());\n System.out.println(\"Podaj datę wykonania zadania (yyyy-mm-dd)\");\n\n while (true) {\n try {\n LocalDate parse = LocalDate.parse(scanner.nextLine(), DateTimeFormatter.ISO_LOCAL_DATE);\n task.setExecuteDate(parse);\n break;\n } catch (DateTimeParseException e) {\n System.out.println(\"Nieprawidłowy format daty. Spróbuj YYYY-MM-DD\");\n }\n }\n\n task.setCreationDate(LocalDate.now());\n\n queue.offer(task);\n System.out.println(\"tutuaj\");\n }", "InvoiceItem addInvoiceItem(InvoiceItem invoiceItem);", "public void createTask() {\n \tSystem.out.println(\"Inside createTask()\");\n \tTask task = Helper.inputTask(\"Please enter task details\");\n \t\n \ttoDoList.add(task);\n \tSystem.out.println(toDoList);\n }", "public static Result add(Long project) {\n if(Secured.isMemberOf(project)) {\n Form<Task> taskForm = form(Task.class).bindFromRequest();\n if(taskForm.hasErrors()) {\n return badRequest();\n } else {\n return ok(\n \t\t\n //item.render(Note.create(taskForm.get(), project, folder), true)\n );\n }\n } else {\n return forbidden();\n }\n }", "@RequestMapping(method = RequestMethod.POST, value = \"/add-task\",consumes = MediaType.APPLICATION_JSON_VALUE,headers = {\r\n \"content-type=application/json\" })\r\n\tpublic Task addTask(@RequestBody Task task) {\r\n\t\tinvokeNotification();\r\n\t\treturn task;\r\n\r\n\t}", "int insert(TbCrmTask record);", "public void setPaid() {\n isPaid = true;\n }", "public void addTask(Task task) {\n this.tasks.add(task);\n }", "@Override\n public int insert(PWsdTaskdataDomain pWsdTaskdataDomain) {\n return getPersistanceManager().insert(getNamespace() + \".insert\", pWsdTaskdataDomain);\n }", "public void addNewTask() {\n Intent i = new Intent(this, StartNewActivity.class);\n startActivityForResult(i, REQUEST_CODE);\n }", "private void payReservation(int id) throws SQLException {\n\t\tupdateReservationPaidStatement.clearParameters();\n\t\tupdateReservationPaidStatement.setInt(1, id);\n\t\tupdateReservationPaidStatement.executeUpdate();\n\t}", "public void onClick_AddRecord(View v, String task, int status) {\n\t\t\n\t\t// insertRow() returns a long which is the id number\n\t\tlong newId = myDb.insertRow(task, status);\n\t\tpopulateListViewFromDB();\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void save(XftPayment xtp) {\n\t\ttry {\r\n\t\t\tlogger.info(\"save..........servicr.....:\"+JSONUtils.beanToJson(xtp));\t\r\n\t\t\txftPaymentMapper.insert(xtp);\r\n\t\t}catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public BookedActivity getNewlyAddSavedTrip();", "public void addTask(Task task) {\n tasks.add(task);\n }", "public void addTask(Task task) {\n tasks.add(task);\n }", "public void addTask(Task task) {\n tasks.add(task);\n }", "void insert(PaymentTrade record);", "@Test\n public void confirmTaskAdded() {\n TaskList tasks = new TaskList(\"./test/junit.txt\");\n LocalDateTime date = LocalDateTime.parse(\"2015-10-20 1800\");\n String taskDescription = \"read a book\";\n tasks.addDeadline(taskDescription, date);\n Task addedTask = tasks.get(0);\n assertEquals(\"[D][ ] read a book by: 2015-10-20 18:00\", addedTask.toString());\n }", "public static Task<Void> addTripper(String tripId, String tripperId, String tripperEmail,\n String tripperName) {\n // add the tripper id to a map\n Map<String, Object> data = new HashMap<>();\n data.put(Const.USER_ID_KEY, tripperId);\n data.put(Const.USER_EMAIL_KEY, tripperEmail);\n data.put(Const.USER_NAME_KEY, tripperName);\n\n Log.d(Const.TAG, \"addTripper: \" + data);\n\n // add a document to the trippers sub-collection of this trip\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .collection(Const.TRIP_TRIPPERS_COLLECTION)\n .document(tripperId)\n .set(data);\n }", "private void doAddTask() {\n System.out.println(\n \"Kindly enter the time, description and date of the task you would like to add on separate lines.\");\n String time = input.nextLine();\n String description = input.nextLine();\n String date = input.nextLine();\n todoList.addTask(new Task(time,description,date));\n System.out.println(time + \" \" + description + \" \" + date + \" \" + \"has been added.\");\n }", "@Override\n\tpublic Serializable addObj(MytaskView obj) {\n\t\treturn appMytaskViewDao.save(obj);\n\t}", "void addConfirmedTransaction(int transId, String userId);", "int insert(Payment record);", "public void placeSingleTaskOrder(User user, SingleTaskOrder order);", "public void submitOrder(){\t\n\t\tSharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n\t\tint tableNumber = Integer.parseInt(sharedPref.getString(\"table_num\", \"\"));\n\t\t\n\t\tif(menu != null){\n\t\t\tParseUser user = ParseUser.getCurrentUser();\n\t\t\tParseObject order = new ParseObject(\"Order\");\n\t\t\torder.put(\"user\", user);\n\t\t\torder.put(\"paid\", false);\n\t\t\torder.put(\"tableNumber\", tableNumber); // Fix this -- currently hard coding table number\n\t\t\t\n\t\t\tParseRelation<ParseObject> items = order.getRelation(\"items\");\n\t\t\t\n\t\t\tfor(ParseObject item : selectedItems) {\n\t\t\t\titems.add(item);\n\t\t\t}\n\t\t\t\n\t\t\torder.saveInBackground(new SaveCallback(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void done(ParseException e) {\n\t\t\t\t\tif(e == null){\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Order Submitted!\", 5).show();\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Submitting Order Failed!\", 5).show();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t}", "@Test\n\tpublic void addAssignment() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tasgn.addTask(new Task(\"Task 1\", 1, 1, asgn.getID()));\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}" ]
[ "0.6312348", "0.6197643", "0.6157913", "0.6157653", "0.6078256", "0.6063576", "0.6062329", "0.60571665", "0.6043338", "0.6037238", "0.60363376", "0.5937847", "0.5908826", "0.5881553", "0.5869177", "0.5855471", "0.58143276", "0.5785525", "0.57838225", "0.5780717", "0.57599884", "0.57467884", "0.5697804", "0.5676756", "0.5673709", "0.56570727", "0.56460506", "0.56453747", "0.56211156", "0.56138486", "0.56021756", "0.5573052", "0.5570845", "0.55571735", "0.55536634", "0.55503446", "0.5539367", "0.55283624", "0.5526903", "0.55151165", "0.5512763", "0.5498922", "0.54895306", "0.5457044", "0.5430858", "0.54265976", "0.54226387", "0.5421991", "0.54210997", "0.54164755", "0.54114306", "0.5411316", "0.54094076", "0.54041094", "0.5402808", "0.53934133", "0.53825366", "0.5379563", "0.5369202", "0.5365192", "0.5346326", "0.53394294", "0.533495", "0.5320627", "0.53130054", "0.53078216", "0.5297072", "0.5291023", "0.52545935", "0.52526855", "0.5252304", "0.5251986", "0.52331126", "0.5227359", "0.522408", "0.5223951", "0.5223684", "0.52235204", "0.5209296", "0.5208432", "0.52078253", "0.520662", "0.5204508", "0.5198121", "0.51859725", "0.5182273", "0.51814175", "0.5179954", "0.5179954", "0.5179954", "0.51748693", "0.51714975", "0.5164276", "0.51569825", "0.51551586", "0.515337", "0.5151949", "0.5147121", "0.5145311", "0.5144424" ]
0.7815032
0
Adds a friendship relationship to the database. users must differ by their username. Does not validate users exist.
public void addFriendship(String username1, String username2) throws ElementAlreadyExistsException, DatabaseUnkownFailureException, InvalidParameterException, ReflexiveFriendshipException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void add() {\n\t\tperson.addRelationship(\"Friend\", friend);\n\t}", "public void addFriendship(int u1, int u2) {\n\t\tUser usr=users.get(u1);\n\t\tUser friend=users.get(u2);\n\t\tif(usr!=null &&friend!=null) {\n\t\t\tusr.addFriend(friend);\n\t\t}else {\n\t\t\tSystem.err.printf(\"user(%d) or friend(%d) doesn't exist\\n\",u1,u2);\n\t\t}\n\t}", "public void addFriendUI() throws IOException\n {\n System.out.println(\"Add friendship: id user1;id user2\");\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n Long id1 = Long.parseLong(a[0]);\n Long id2 = Long.parseLong(a[1]);\n Friendship friendship = new Friendship();\n friendship.setId(new Tuple<>(id1, id2));\n try\n {\n Friendship newFriendship = service.addFriendship(friendship);\n if(newFriendship != null)\n System.out.println(\"Friendship already exists for \" + friendship.getId().toString());\n else\n System.out.println(\"Friendship added successfully!\");\n }\n catch (ValidationException ex)\n {\n System.out.println(ex.getMessage());\n }\n catch (IllegalArgumentException ex)\n {\n System.out.println(ex.getMessage());\n }\n }", "public Future<Person> createRelationship( String personId, String friendId );", "public void addFriend(String friendName, String user, boolean online){\n try {\n statement = connection.createStatement();\n //add the friend in the database table of the user\n if (online){\n statement.executeUpdate(\"INSERT INTO \" + user + \"(friend,online) VALUES('\" + friendName +\n \"','online')\");\n }\n else {\n statement.executeUpdate(\"INSERT INTO \" + user + \"(friend,online) VALUES('\" + friendName +\n \"','offline')\");\n }\n\n statement.close();\n }catch (SQLException ex){ex.printStackTrace();}\n }", "private void addRelationShip() {\n ParseObject story = ParseObject.createWithoutData(\"Story\", objectId);\n\n // Get current User\n ParseUser user = ParseUser.getCurrentUser();\n\n // Create relationship collumn UserLove\n ParseRelation relation = user.getRelation(\"StoryLove\");\n\n // Add story to Relation\n relation.add(story);\n\n // user save relation\n user.saveInBackground(new SaveCallback() {\n\n @Override\n public void done(ParseException e) {\n if (e == null) {\n Toast.makeText(StoryDetails.this, \"User like this story, go to YourFavorite to see!!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_SHORT)\n .show();\n }\n }\n\n });\n\n\n ParseObject post = new ParseObject(\"UserStory\");\n // Create an LoveStory relationship with the current user\n\n ParseRelation<ParseUser> relation1 = post.getRelation(\"UserLove\");\n ParseRelation<ParseObject> relation2 = post.getRelation(\"StoryLove\");\n relation1.add(user);\n relation2.add(story);\n // Save the post and return\n post.saveInBackground(new SaveCallback() {\n\n @Override\n public void done(ParseException e) {\n if (e == null) {\n Toast.makeText(StoryDetails.this, \"You like this story, go to YourFavorite to see!!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_SHORT)\n .show();\n }\n }\n\n });\n\n }", "public void addFriendShip(String firstPerson, String secondPerson) {\n Integer fromIndex = this.vertexNames.get(firstPerson);\n if (fromIndex == null) {\n fromIndex = this.indexCounter;\n this.indexCounter++;\n this.vertexNames.put(firstPerson, fromIndex);\n }\n Integer toIndex = this.vertexNames.get(secondPerson);\n if (toIndex == null) {\n toIndex = this.indexCounter;\n this.indexCounter++;\n this.vertexNames.put(secondPerson, toIndex);\n }\n super.addEdge(fromIndex, toIndex, 1.0);\n }", "public void addFriend(String userId, String friendUserId, String sourceGameId, Date date){\n\n BasicDBObject obj = new BasicDBObject();\n obj.put(DBConstants.F_FRIENDID, new ObjectId(friendUserId));\n obj.put(DBConstants.F_CREATE_DATE, date);\n obj.put(DBConstants.F_TYPE, relationType);\n obj.put(DBConstants.F_MEMO, null);\n obj.put(DBConstants.F_SOURCE, sourceGameId);\n\n insertObject(userId, obj, DBConstants.F_CREATE_DATE, false, false);\n }", "public void addFriend(String friend){\n friends.add(friend);\n }", "public int Add_Friend(String username,Object friend) {\n\t\tif(friend!=null && friend instanceof valueobject.Friend){\r\n\t\t\tDAO.all_interface friendDao = DB.ObjectFactory.getFriendDao();\r\n\t\t\tUser one = DB.ObjectFactory.getUserObject();\r\n\t\t\tone.setName(username);\r\n\t\t\tint userid = this.GetKey(one);\r\n\t\t\tFriend frd = (Friend)friend;\r\n\t\t\tfrd.setUserid(userid);\r\n\t\t\tint i = friendDao.Add((Object)frd);\r\n\t\t\tif(i==friendDao.OPERATE_SUCCESS){\r\n\t\t\t\treturn this.OPERATE_OK;\r\n\t\t\t}else if(i==friendDao.OPERATE_ERROR){\r\n\t\t\t\treturn this.OPERATE_ERROR;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this.OTHER_ERROR;\r\n\t}", "private void addFriend() {\n \tif (!friend.getText().equals(\"\")) {\n\t\t\tif (currentProfile != null) {\n\t\t\t\tif (!database.containsProfile(friend.getText())) {\n\t\t\t\t\tcanvas.showMessage(friend.getText() + \" profile does not exists\");\n\t\t\t\t} else if (isfriendsBefore()) {\n\t\t\t\t\tcanvas.showMessage(friend.getText() + \" is already a friend\");\n\t\t\t\t} else {\n\t\t\t\t\tmakeTheTwoFriends();\n\t\t\t\t\tcanvas.displayProfile(currentProfile);\n\t\t\t\t\tcanvas.showMessage(friend.getText() + \" added as friend\");\n\t\t\t\t}\n\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcanvas.showMessage(\"Select a profile to add friends\");\n\t\t\t}\n\t\t}\n\t}", "Relationship createRelationship();", "public void addFriend(String friend)\n\t{\n\t\tif(m_friends.size() < 10)\n\t\t{\n\t\t\tm_friends.add(friend);\n\t\t\tm_database.query(\"INSERT INTO `pn_friends` VALUES ((SELECT id FROM `pn_members` WHERE username = '\" + MySqlManager.parseSQL(m_username)\n\t\t\t\t\t+ \"'), (SELECT id FROM `pn_members` WHERE username = '\" + MySqlManager.parseSQL(friend) + \"')) ON DUPLICATE KEY UPDATE friendId = (SELECT id FROM `pn_members` WHERE username = '\"\n\t\t\t\t\t+ MySqlManager.parseSQL(friend) + \"');\");\n\t\t\tServerMessage addFriend = new ServerMessage(ClientPacket.FRIEND_ADDED);\n\t\t\taddFriend.addString(friend);\n\t\t\tgetSession().Send(addFriend);\n\t\t}\n\t}", "void addFriendWithPhoneNumber(Friend friend, String phoneNumber);", "public void friends( int user1, int user2 ) {\n\n\t//Get each user from list of all users\n FacebookUser A = users.get(user1);\n FacebookUser B = users.get(user2);\n\n //Every time a new friendship is added, circles change\n this.circlesUpToDate = false;\n\n //Add userA to userB's friends list and vice versa\n A.friendsList.add(B);\n B.friendsList.add(A);\n }", "private boolean friendAlreadyAdded(User user, Object requestedUser) {\n List<UserContact> friendList = null;\n User friendToBe = null;\n try {\n DAO dao = new Query();\n friendList = user.getFriends(dao);\n dao.open();\n if (requestedUser instanceof String) {\n friendToBe = (User) dao.get(User.class, (String) requestedUser);\n } else if (requestedUser instanceof Request) {\n Request request = (Request) requestedUser;\n friendToBe = (User) dao.get(User.class, request.getFromId());\n }\n dao.close();\n } catch (Exception e) {\n //e.printStackTrace();\n }\n if (friendList != null && friendToBe != null) {\n if (friendList.contains(friendToBe.asContact())) {\n return true;\n }\n }\n return false;\n }", "private void appendFriendToExistingFriendsTree(DatabaseReference friendsReference) {\n int number = 818181;\n String name = \"Vicky Victoria\";\n String key = friendsReference.push().getKey();\n Friend friend = new Friend(number, name);\n friendsReference.child(key).setValue(friend);\n }", "public void addToFollowedUsers(String followedUsers);", "@RequestMapping(method = RequestMethod.POST, value = \"/friendship/{userId}/{friendId}\")\n public ResponseEntity<Friendship> newFriendship(\n @PathVariable(value = \"userId\") Long userId,\n @PathVariable(value = \"friendId\") Long friendId) {\n\n // TODO re-implement to be able to retrieve Long ID values from POST body\n\n // handle bad, malformed, and absent fields in input\n if (!isValidIdValue(userId) || !isValidIdValue(friendId)) {\n return new ResponseEntity(null, null, HttpStatus.NOT_ACCEPTABLE);\n }\n\n // TODO check that friendship does not exist already before adding a new one\n boolean isFriend = friendshipService.isFriend(userId, friendId);\n\n Friendship newFriendship = new Friendship(userId, friendId);\n Friendship createdFriend = friendshipService.newFriendship(newFriendship);\n return new ResponseEntity(createdFriend, null, HttpStatus.CREATED);\n\n }", "private void addRelationShipIsBuy() {\n ParseObject story = ParseObject.createWithoutData(\"Story\", objectId);\n\n // Get current User\n ParseUser user = ParseUser.getCurrentUser();\n\n // Create relationship collumn UserLove\n ParseRelation relation = user.getRelation(\"StoryPaid\");\n\n // Add story to Relation\n relation.add(story);\n\n // user save relation\n user.saveInBackground(new SaveCallback() {\n\n @Override\n public void done(ParseException e) {\n if (e == null) {\n //Toast.makeText(StoryDetails.this, \"User Buy this story, go to Your Book to see!!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_SHORT)\n .show();\n }\n }\n\n });\n\n }", "public FriendshipsEntityDto createFriendshipsEntity(final FriendshipsEntityDto friendshipsEntityDto, final String userName) {\n\n // get friendshipsEntity from db, if it exists.\n UserEntity foundUserEntity = userRepositoryDAO.findOneByUserName(userName);\n Long userId = foundUserEntity.getId();\n FriendshipsEntity foundFriendshipsEntity = friendshipsRepositoryDAO.findOneByUserEntityIdAndId(userId, friendshipsEntityDto.getId());\n if (friendshipsRepositoryDAO.findOneByUserEntityIdAndFriend(userId, friendshipsEntityDto.getFriend()) != null) { return friendshipsEntityDto; }; // break if friendship already exists. no duplicates.\n\n // get friend userEntity if it exists\n UserEntity friendExistsUserEntity = userRepositoryDAO.findOneByUserName(friendshipsEntityDto.getFriend());\n\n if (foundFriendshipsEntity == null && friendExistsUserEntity != null ) {\n\n // limit quantity of friendships\n if (friendshipsRepositoryDAO.countFriends( userId) > 99) { return friendshipsEntityDto; };\n\n // create a new 'raw' friendshipsEntity (1 of 2 entries) (ManyToOne twice, instead of ManyToMany)\n FriendshipsEntity newFriendshipsEntity1 = friendshipsEntityDtoTransformer.generate(friendshipsEntityDto);\n\n // add userEntity\n newFriendshipsEntity1.setUserEntity(foundUserEntity);\n\n // save completed friendshipsEntity1\n friendshipsRepositoryDAO.saveAndFlush(newFriendshipsEntity1);\n\n // create a new 'raw' friendshipsEntity (2 of 2 entries) (ManyToOne twice, instead of ManyToMany)\n FriendshipsEntityDto friendshipsEntityDto2 = friendshipsEntityDto;\n friendshipsEntityDto2.setFriend(userName);\n FriendshipsEntity newFriendshipsEntity2 = friendshipsEntityDtoTransformer.generate(friendshipsEntityDto2);\n\n // add userEntity (of friend)\n newFriendshipsEntity2.setUserEntity(friendExistsUserEntity);\n\n // save completed friendshipsEntity2\n friendshipsRepositoryDAO.saveAndFlush(newFriendshipsEntity2);\n\n // add both new friendships to their respective user's friendships Lists\n foundUserEntity.getFriendsSet().add(newFriendshipsEntity1);\n friendExistsUserEntity.getFriendsSet().add(newFriendshipsEntity2);\n\n // return only the 'main' 1st entry friendhsipsEntity\n return friendshipsEntityDtoTransformer.generate(newFriendshipsEntity1);\n }\n\n // accept an invitation\n else if (foundFriendshipsEntity.getConnectionStatus().equals(\"pending\") && !foundFriendshipsEntity.getInviter().equals(userName) && friendshipsEntityDto.getConnectionStatus().equals(\"Connected\"))\n {\n // first entry\n foundFriendshipsEntity.setConnectionStatus(friendshipsEntityDto.getConnectionStatus());\n friendshipsRepositoryDAO.save(foundFriendshipsEntity);\n\n // second entry (two-sided)\n String secondUser = foundFriendshipsEntity.getFriend();\n UserEntity secondUserEntity = userRepositoryDAO.findOneByUserName(secondUser);\n FriendshipsEntity secondFriendshipsEntity = friendshipsRepositoryDAO.findOneByUserEntityIdAndFriend(secondUserEntity.getId(), userName);\n secondFriendshipsEntity.setConnectionStatus(\"Connected\");\n friendshipsRepositoryDAO.save(secondFriendshipsEntity);\n return friendshipsEntityDtoTransformer.generate(foundFriendshipsEntity);\n }\n\n // modify single-side. From 'removed' to 'pending' or 'Connected' (depending on friend's connection status with user).\n else if (foundFriendshipsEntity.getConnectionStatus().equals(\"removed\") && friendshipsEntityDto.getConnectionStatus().equals(\"Connected\"))\n {\n String secondUser = foundFriendshipsEntity.getFriend();\n Long friendId = userRepositoryDAO.findOneByUserName(secondUser).getId();\n String friendsStatus = friendshipsRepositoryDAO.findOneByUserEntityIdAndFriend(friendId, userName).getConnectionStatus();\n\n if (friendsStatus.equals(\"pending\")) {\n foundFriendshipsEntity.setConnectionStatus(\"pending\");\n friendshipsRepositoryDAO.save(foundFriendshipsEntity);\n return friendshipsEntityDtoTransformer.generate(foundFriendshipsEntity);\n }\n else if (friendsStatus.equals(\"Connected\")){\n foundFriendshipsEntity.setConnectionStatus(\"Connected\");\n friendshipsRepositoryDAO.save(foundFriendshipsEntity);\n return friendshipsEntityDtoTransformer.generate(foundFriendshipsEntity);\n }\n else { // if friend is 'removed' then the only possibility is to make it 'pending' here.\n foundFriendshipsEntity.setConnectionStatus(\"pending\");\n friendshipsRepositoryDAO.save(foundFriendshipsEntity);\n return friendshipsEntityDtoTransformer.generate(foundFriendshipsEntity);\n }\n }\n\n // modify single-side. From 'pending' or 'Connected' to 'Decline' or 'remove'.\n else {\n foundFriendshipsEntity.setConnectionStatus(friendshipsEntityDto.getConnectionStatus());\n foundFriendshipsEntity.setConnectionType(friendshipsEntityDto.getConnectionType());\n foundFriendshipsEntity.setVisibilityPermission(friendshipsEntityDto.getVisibilityPermission());\n friendshipsRepositoryDAO.save(foundFriendshipsEntity);\n return friendshipsEntityDtoTransformer.generate(foundFriendshipsEntity);\n }\n }", "private void createMemberRelation(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getMemberOfChatrooms();\n\t\tList<User> users = chatroom.getMembers();\n\t\tList<Membership> memberships = user.getMemberships();\n\n\t\t// add the chatroom to user's list of chatrooms he is member of\n\t\tchatrooms.add(chatroom);\n\t\t// add user to chatrooms list of members\n\t\tusers.add(user);\n\t\t// create a membership relation entity for the user\n\t\tMembership membership = new Membership(user, chatroom);\n\t\tmemberships.add(membership);\n\n\t\t// save the chatroom, and its relations\n\t\tchatroomRepository.save(chatroom);\n\t\t// save the user to preserve relations\n\t\tuserRepository.save(user);\n\t}", "public void addFriend(String friendName) {\n\t if(friends.contains(friendName)) {\n\t\t return;\n\t }\n\t friends.add(friendName);\n }", "public static void addFriendToList(String username, String friend)\r\n\t{\r\n\t\tFriendsList friends = friendsLists.get(username);\r\n\t\tif(friends == null)\r\n\t\t{\r\n\t\t\t// make sure we don't have a null friends list\r\n\t\t\tfriends = new FriendsList();\r\n\t\t}\r\n\t\t\r\n\t\t// add the friend to the list\r\n\t\tfriends.add(friend);\r\n\t\t\r\n\t\t// put the friends list back into the HashMap\r\n\t\taddFriendsList(username, friends);\r\n\t}", "public static void addFriendsList(String username, FriendsList friends)\r\n\t{\r\n\t\tfriendsLists.put(username, friends);\r\n\t}", "public void addRpiUserRelation(String rpiId, String user) throws SQLException;", "public boolean addFriend(String requester, String recipientNick) {\n if (requester == null\n || recipientNick == null\n || requester.equals(recipientNick)\n ) {\n return false;\n }\n User requesterUser = this.onlineUsers.get(requester);\n if (requesterUser == null\n || !this.exists(recipientNick)\n || requesterUser.hasFriend(recipientNick)\n ) {\n return false;\n }\n requesterUser.addFriend(recipientNick);\n User recipientUser = this.loadUserOnlineInfo(recipientNick);\n recipientUser.addFriend(requester);\n List<User> updates = new ArrayList<>(2);\n // This section implements the storage updates policy\n if (this.policy == Policy.IMMEDIATELY) {\n updates.add(recipientUser);\n updates.add(requesterUser);\n } else if (Policy.ON_SESSION_CLOSE.equals(this.policy)\n && !this.isOnline(recipientNick)\n ) {\n updates.add(recipientUser);\n }\n // In general do not add anything to the collection\n if (!updates.isEmpty()) {\n this.writeLock.lock();\n try {\n JSONMapper.copyAndUpdate(\n this.onlinePath,\n updates,\n UserViews.Online.class\n );\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n } finally {\n this.writeLock.unlock();\n }\n }\n return true;\n }", "public static boolean ajouterRelation(Utilisateur u1, Utilisateur u2, Utilisateur.RELATION r) {\n if (r == Utilisateur.RELATION.Ami)\n return insertRelation(u1.getId(), u2.getId(), r.toInt()) && insertRelation(u2.getId(), u1.getId(), r.toInt());\n\n return insertRelation(u1.getId(), u2.getId(), r.toInt());\n }", "public void addFriend(String name, String friendsSchedule) {\n\n // loads the friend's schedule from the passed in friendsSchedule xml\n // stream\n // writes to the model\n Schedule temp = readWrite.loadSchedules(friendsSchedule, this);\n Log.i(TAG, \"temp is: \" + temp);\n buddies.add(temp);\n\n Log.i(TAG, \"buddies.size() - 1 is: \" + (buddies.size() - 1));\n Log.i(TAG, \"buddies.size() - 1 is: \" + buddies.get(buddies.size() - 1));\n // gets the just added friend's schedule and changes its name to\n // the passed in value\n // necessary because all schedules are sent as \"MySchedule\"\n buddies.get(buddies.size() - 1).setWhosSchedule(name);\n\n\n // update observers\n setChanged();\n notifyObservers();\n }", "public boolean insertRelationship(Relationship relationship) {\n SQLiteDatabase relationshipDatabase = relationshipDbHelper.getWritableDatabase();\n ContentValues relationshipValues = buildContentValues(relationship); // build data for insert\n\n return relationshipDatabase.insert(RelationshipEntry.TABLE_NAME, null, relationshipValues) != -1;\n }", "public boolean placeShipUser(Ship ship) {\r\n return fieldUser.addShip(ship);\r\n }", "public void CreateRelationship(Node node1, Node node2, myRelationships relation) {\r\n\t\tTransaction tx = _db.beginTx(); \r\n\t\ttry {\r\n\t\t\tnode1.createRelationshipTo(node2, relation);\r\n\t\t\ttx.success();\r\n\t\t} catch (Exception ex) {\r\n\t\t\ttx.failure();\r\n\t\t\tthrow ex;\r\n\t\t} finally {\r\n\t\t\ttx.finish();\r\n\t\t}\r\n\t\t\t\t\r\n\t}", "public void addUser(IndividualUser u) {\n try {\n PreparedStatement s = sql.prepareStatement(\"INSERT INTO Users (userName, firstName, lastName, friends) VALUES (?,?,?,?);\");\n s.setString(1, u.getId());\n s.setString(2, u.getFirstName());\n s.setString(3, u.getLastName());\n s.setString(4, u.getFriends().toString());\n s.execute();\n s.close();\n\n } catch (SQLException e) {\n sqlException(e);\n }\n }", "private void addFriend(String userId, String ownId) {\n String error = \"Adding friend failed!\";\n Map<String, Object> requested = new HashMap<>();\n requested.put(\"id\", userId);\n requested.put(\"status\", \"requested\");\n\n UserDatabase userDb = new UserDatabase(ownId);\n userDb.getChildCollection(\"friends\").document(userId).set(requested)\n .addOnSuccessListener(success -> {\n requested.clear();\n requested.put(\"id\", ownId);\n requested.put(\"status\", \"pending\");\n\n UserDatabase userDb1 = new UserDatabase(userId);\n userDb1.getChildCollection(\"friends\").document(ownId)\n .set(requested)\n .addOnSuccessListener(success1 -> userDb1.getChildCollection(\"unmessaged\")\n .document(ownId)\n .delete()\n .addOnSuccessListener(success2 -> userDb.getChildCollection(\"unmessaged\")\n .document(userId)\n .delete()\n .addOnSuccessListener(success3 -> {\n Map<String, Object> notification = new HashMap<>();\n notification.put(\"userId\", Login.getUserId());\n notification.put(\"notificationType\", \"New Friend\");\n Date mDate = new Date();\n long timeInMilliseconds = mDate.getTime();\n notification.put(\"createdAt\", timeInMilliseconds);\n\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"users\" + \"/\" + userId + \"/notifications\")\n .add(notification);\n\n buttonCancelRequest(userId, ownId);\n })\n .addOnFailureListener(fail -> handleError(error, fail)))\n .addOnFailureListener(fail -> handleError(error, fail)));\n })\n .addOnFailureListener(fail -> handleError(error, fail));\n }", "@Override\n\tpublic Boolean addfriend(Profile profile, Boolean isRelative) throws Exception {\n\t\tif (isRelative) {\n\t\t\t_friendlist.add(profile);\n\t\t\treturn true;\n\t\t}\n\n\t\t/// to maintain the age difference condition\n\t\tint agediff = Math.abs(this.getage() - profile.getage());\n\t\tif (profile.getage() < 16 && agediff < 3) {\n\t\t\t_friendlist.add(profile);\n\t\t} else {\n\t\t\tthrow new NotToBeFriendsException(\n\t\t\t\t\t\"You are not allowed to add a friend more than 3 years older than yourself\");\n\t\t}\n\t\treturn true;\n\t}", "private void addRelationship(String node1, String node2, String relation)\n {\n try (Session session = driver.session())\n {\n // Wrapping Cypher in an explicit transaction provides atomicity\n // and makes handling errors much easier.\n try (Transaction tx = session.beginTransaction())\n {\n tx.run(\"MATCH (j:Node {value: {x}})\\n\" +\n \"MATCH (k:Node {value: {y}})\\n\" +\n \"MERGE (j)-[r:\" + relation + \"]->(k)\", parameters(\"x\", node1, \"y\", node2));\n tx.success(); // Mark this write as successful.\n }\n }\n }", "public void addFriendToList(String friend)\r\n\t{\r\n\t\ttheGridView.addFriendToList(friend);\r\n\t}", "public static Task<Void> addUserFriend(String userId, String friendId) {\n // map to contain the friend id\n Map<String, Object> data = new HashMap<>();\n data.put(Const.FRIEND_ID_KEY, friendId);\n\n // add the friend to the friends sub-collection\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .collection(Const.USER_FRIENDS_COLLECTION)\n .document(friendId)\n .set(data);\n }", "void addNewFriend(String actorId, String objectId, Date eventTime);", "public void setFriendRelationship(boolean friendRelationship) {\n this.friendRelationship = friendRelationship;\n }", "public void addUser() {\n\t\tthis.users++;\n\t}", "public void addFollowings(String following) {\n\tuserFollowings.add(following);\n }", "public void addFriend(Customer c) {\n if (c == null) {\n throw new IllegalArgumentException(\"Customer can not be null\");\n }\n if (!friends.contains(c)) {\n friends.add(c);\n }\n }", "public void addFriend(Profile p)\n {\n\n friendslist.add(p);\n }", "public void addNewFriend(View v) {\n final EditText editText = (EditText) findViewById(R.id.editText);\n String friendUsername = editText.getText().toString();\n //System.out.println(\"Add friend: \" + friendUsername);\n UserProfileManager.getInstance().addFriend(friendUsername);\n }", "public void addToFollowedUsers(List<String> followedUsers);", "void addUser(Username username) throws UserAlreadyExistsException;", "public boolean add(String username, User u1, boolean forceAdd) {\n if (userData.containsKey(username) && !forceAdd)\n return false;\n\n userData.put(username, u1);\n return true;\n }", "@Deprecated\n public void addFriend(Friend fr);", "private boolean createForeignKeyRelation(String server, String database,\n\t\t\tRelationship relationship)\n\t\t\tthrows ClassNotFoundException, SQLException {\n\t\tString fromColumn = relationship.getFromColumns().get(0).getName();\n\t\tString toColumn = relationship.getToColumns().get(0).getName();\n\t\tString fromTable = getNormalisedTableName(relationship.getFromTable()\n\t\t\t\t.getName());\n\t\tString toTable = getNormalisedTableName(relationship.getToTable()\n\t\t\t\t.getName());\n\t\tString command = (\"ALTER TABLE \\\"\" + toTable + \"\\\" ADD CONSTRAINT \"\n\t\t\t\t+ relationship.getName() + \" FOREIGN KEY (\\\"\" + toColumn\n\t\t\t\t+ \"\\\") REFERENCES \\\"\" + fromTable + \"\\\" (\\\"\" + fromColumn + \"\\\") ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED; \\n\");\n\t\treturn new QueryRunner(server, database)\n\t\t\t\t.runDBQuery(command);\n\t}", "public void addUser(User user);", "public void addUser(User user){\r\n users.add(user);\r\n }", "public void addUser(User u){\n\r\n userRef.child(u.getUuid()).setValue(u);\r\n\r\n DatabaseReference zipUserReference;\r\n DatabaseReference zipNotifTokenReference;\r\n List<String> zipList = u.getZipCodes();\r\n\r\n for (String zipCode : zipList) {\r\n zipUserReference = baseRef.child(zipCode).child(ZIPCODE_USERID_REFERENCE_LIST);\r\n // Add uuid to zipcode user list\r\n zipUserReference.child(u.getUuid()).setValue(u.getUuid());\r\n\r\n // Add notifToken to list\r\n zipNotifTokenReference = baseRef.child(zipCode).child(ZIPCODE_NOTIFICATION_TOKENS_LIST);\r\n zipNotifTokenReference.child(u.getNotificationToken()).setValue(u.getNotificationToken());\r\n\r\n }\r\n }", "public boolean addFriend(Neighbor requestedTo){\n boolean isAdded=false;\n try{\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"Username\", requestedTo.getInstanceName());\n values.put(\"deviceID\", requestedTo.getDeviceAddress());\n values.put(\"IP\", requestedTo.getIpAddress().getHostAddress());\n Log.i(TAG,\"Adding.. \"+requestedTo.getDeviceAddress());\n isAdded=database.insert(\"Friend\", null, values)>0;\n dbH.close();\n\n }\n catch(SQLException e){\n e.printStackTrace();\n }\n return isAdded;\n }", "@Test\r\n\tpublic void testAddFriend() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tFriend p2 = new Friend(\"Dave\");\r\n\t\tassertTrue(p1.addFriend(p2));\r\n\t\tassertFalse(p1.addFriend(p2));\r\n\t}", "public static void acceptRequest(String userId, String userEmail, String userName,\n String friendId, String friendEmail, String friendName) {\n // add user data to a map\n Map<String, Object> thisMap = new HashMap<>();\n thisMap.put(Const.FRIEND_ID_KEY, userId);\n thisMap.put(Const.USER_EMAIL_KEY, userEmail);\n thisMap.put(Const.USER_NAME_KEY, userName);\n\n // add friend data to a map\n Map<String, Object> otherMap = new HashMap<>();\n otherMap.put(Const.FRIEND_ID_KEY, friendId);\n otherMap.put(Const.USER_EMAIL_KEY, friendEmail);\n otherMap.put(Const.USER_NAME_KEY, friendName);\n\n // get a reference to the db\n FirebaseFirestore store = FirebaseFirestore.getInstance();\n\n Log.d(Const.TAG, \"acceptFriendRequest: access db \" + Thread.currentThread().getId());\n\n // delete the friend request\n store.collection(Const.USERS_COLLECTION)\n .document(userId)\n .collection(Const.USER_F_REQUESTS_COLLECTION)\n .document(friendId)\n .delete();\n\n // add each user to the friends sub-collection of the other user\n store.collection(Const.USERS_COLLECTION)\n .document(friendId)\n .collection(Const.USER_FRIENDS_COLLECTION)\n .document(userId)\n .set(thisMap);\n store.collection(Const.USERS_COLLECTION)\n .document(userId)\n .collection(Const.USER_FRIENDS_COLLECTION)\n .document(friendId)\n .set(otherMap);\n }", "public void addFriendList(FriendList list);", "private void createAdminRelation(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getAdminOfChatrooms();\n\t\tList<User> users = chatroom.getAdministrators();\n\n\t\tchatrooms.add(chatroom);\n\t\tusers.add(user);\n\t\t// save the chatroom, and its relations\n\t\tchatroomRepository.save(chatroom);\n\t}", "public void addUser(User user) {\n\t\t\r\n\t}", "@Override\n public User addFollower(String followerName, String userToFollow) {\n int id = userDataMapper.addFollower(getUser(followerName).getId(), getUser(userToFollow).getId());\n if (id == -1)\n return null;\n return userDataMapper.getUserByID(id);\n }", "public void addFollower(String follower, String following) {\n for (User u : users) {\n System.out.println(\"iterating: \" + u.getName() + \" : \" + following);\n if (u.getName().equals(follower)) {\n for (String f : u.getFollowers()) {\n\n if (f.equals(following)) {\n System.out.println(\"ENDDDDD\");\n return;\n }\n }\n System.out.println(\"adding follower!!!!!!!!\");\n getUser(follower).addFollower(following);\n }\n }\n }", "void addRelation(IViewRelation relation);", "@Query(\"select f from FriendshipEntity f \" +\n \"where (f.userOne.username = :username or f.userTwo.username = :username) \" +\n \"and f.friendship = :friendship\")\n List<FriendshipEntity> findFriendshipEntities(@Param(\"username\") String username,\n @Param(\"friendship\") Friendship relationship,\n Pageable pageable);", "@Override\n public void onClick(View v) {\n if (isNotCurrentUser(user)) {\n DatabaseReference currentUserFriendsRef = FirebaseDatabase.getInstance()\n .getReferenceFromUrl(AppConstants.FIREBASE_URL_USER_FRIENDS).child(mEncodedEmail);\n final DatabaseReference friendRef = currentUserFriendsRef.child(user.getEmail());\n\n /* Add listener for single value event to perform a one time operation */\n friendRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n /* Add selected user to current user's friends if not in friends yet */\n if (isNotAlreadyAdded(dataSnapshot, user)) {\n friendRef.setValue(user);\n mActivity.finish();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.e(mActivity.getClass().getSimpleName(),\n mActivity.getString(R.string.log_error_the_read_failed) +\n databaseError.getMessage());\n }\n });\n }\n }", "public static boolean addFollower(String currentUser, String userToFollow) {\n return UserFactory.addFollower(currentUser, userToFollow);\n }", "void addUser(User user);", "void addUser(User user);", "public static void addMemberPermission(String username, String permission)\r\n throws ObjectNotFoundException, CreateException, DatabaseException, ForeignKeyNotFoundException {\r\n \r\n MemberXML.addMemberPermission(username, permission);\r\n }", "public void newUser(User user) {\n users.add(user);\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n String inputUsername = edittext.getText()\n .toString().trim().toLowerCase();\n\n ParseQuery userQuery = ParseUser.getQuery();\n userQuery.whereEqualTo(Keys.USERNAME_KEY, inputUsername);\n\n try {\n if (userQuery.count() > 0 && !(userQuery.getFirst().getObjectId()\n .equals(mCurrentUser.getObjectId()))) {\n ParseRelation myFriends = ParseUser.getCurrentUser()\n .getRelation(Keys.FRIENDS_KEY);\n myFriends.add(userQuery.getFirst());\n mCurrentUser.saveInBackground();\n HashMap<String, Object> params = new HashMap<String, Object>();\n\n params.put(\"friendId\", userQuery.getFirst().getObjectId());\n params.put(\"myName\", ParseUser.getCurrentUser().getUsername());\n\n ParseCloud.callFunctionInBackground\n (\"addFriend\", params, new FunctionCallback<String>() {\n @Override\n public void done(String s, ParseException e) {\n if (e == null) {\n mCurrentUser.increment\n (Keys.NUM_FRIENDS_KEY);\n mCurrentUser.saveInBackground();\n\n } else {\n AlertDialog.Builder builder = new\n AlertDialog.Builder(ActivityProfile.this);\n builder.setMessage(e.getMessage())\n .setCancelable(false)\n .setPositiveButton(\"OK\", new\n DialogInterface.OnClickListener() {\n public void onClick\n (DialogInterface dialog,\n int id) {\n dialog.cancel();\n }\n });\n builder.setTitle(\"Whoops!\");\n AlertDialog alert = builder.create();\n alert.show();\n }\n }\n });\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "public void addUser(UserModel user);", "GroupQueryBuilder addRelatedUser(User user);", "public Integer addAway(Away a, User u) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n //build relationship\n u.getAway().add(a);\n a.setUser(u);\n\n session.save(a);\n tx.commit();\n\n id = a.getAwayId();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n return id;\n }", "public void addPartnerLinkUser(IAePartnerLinkOperationUser aPartnerLinkUser) {\r\n mUsers.add(aPartnerLinkUser);\r\n }", "public void addFriend(FriendContent user) {\n\n try {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(ADD_FRIEND);\n stringBuilder.append(URLEncoder.encode(UserContent.sUserID, \"UTF-8\"));\n stringBuilder.append(\"&fid=\");\n stringBuilder.append(URLEncoder.encode(user.getFrenID(), \"UTF-8\"));\n stringBuilder.append(\"&fname=\");\n stringBuilder.append(URLEncoder.encode(user.getFrenName(), \"UTF-8\"));\n stringBuilder.append(\"&femail=\");\n stringBuilder.append(URLEncoder.encode(user.getFrenEmail()));\n\n Log.i(TAG, \"Url is \" +stringBuilder.toString());\n CreateHangoutTask addFriendAsyncTask = new CreateHangoutTask();\n addFriendAsyncTask.execute(stringBuilder.toString());\n Toast toast = Toast.makeText(this, \"Friend added!\", Toast.LENGTH_SHORT);\n toast.show();\n\n Intent splashReturn = new Intent(this, SplashActivity.class);\n splashReturn.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(splashReturn);\n }\n catch (Exception e) {\n Toast.makeText(this, \"Couldn't register, Something wrong with the URL\" + e.getMessage(),\n Toast.LENGTH_SHORT). show();\n }\n }", "GroupQueryBuilder addRelatedUser(String id);", "public void addFriend() {\n\n /* if (ageOK == true) {\n for (int i = 0; i < listRelationships.size(); i++) {\n if (firstFriend.equalsIgnoreCase(list.get(i).getFirstFriend())) {\n listRelationships.get(i).setFriends(secondFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n\n } else if (secondFriend.equalsIgnoreCase(list.get(i).getSecondFriend())) {\n listRelationships.get(i).setFriends(firstFriend);\n System.out.println(listRelationships.get(i));\n System.out.println();\n }\n }\n } */\n }", "public void addRelationship(String primaryNickName, String primaryAttribute, String secondaryNickName, String secondaryAttribute, String direction,int pixels)\n {\n AttributeType att1;\n AttributeType att2;\n\n if (primaryAttribute.equals(\"top\"))\n {\n att1=AttributeType.TOP;\n }\n else if (primaryAttribute.equals(\"bottom\"))\n {\n att1=AttributeType.BOTTOM;\n }\n else if (primaryAttribute.equals(\"left\"))\n {\n att1=AttributeType.LEFT;\n }\n else if (primaryAttribute.equals(\"right\"))\n {\n att1=AttributeType.RIGHT;\n }\n else\n {\n att1=AttributeType.TOP;\n }\n\n if (secondaryAttribute.equals(\"top\"))\n {\n att2=AttributeType.TOP;\n }\n else if (secondaryAttribute.equals(\"bottom\"))\n {\n att2=AttributeType.BOTTOM;\n }\n else if (secondaryAttribute.equals(\"left\"))\n {\n att2=AttributeType.LEFT;\n }\n else if (secondaryAttribute.equals(\"right\"))\n {\n att2=AttributeType.RIGHT;\n }\n else\n {\n att2=AttributeType.TOP;\n }\n\n if (secondaryNickName.equals(\"container\"))\n {\n secondaryNickName=DependencyManager.ROOT_NAME;\n }\n\n if (direction.equals(\"up\"))\n {\n pixels=-1*pixels;\n }\n else if (direction.equals(\"left\"))\n {\n pixels=-1*pixels;\n }\n\n addConstraint(primaryNickName, att1, new AttributeConstraint(secondaryNickName, att2, pixels));\n }", "public boolean addUsers(List<User> users);", "@Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (isNotAlreadyAdded(dataSnapshot, user)) {\n friendRef.setValue(user);\n mActivity.finish();\n }\n }", "public void addUser(String name)\r\n\t{\r\n\t\tperson= new User(name);\r\n\t\tusers.put(name, person);\r\n\t}", "ResponseMessage addUser(User user);", "public void setupRelation(String userJID, PersistentRelation relation) throws InvalidRelationException {\n\t\t// Validate the relation request\n\t\t// TODO More should be validated here\n\t\tif (!relation.hasFrom() || !relation.hasTo() || !relation.hasNature()) {\n\t\t\tthrow new InvalidRelationException(\"Relation is missing required elements\");\n\t\t}\n\n\t\t// Verify that the from or to is the user making the request\n\t\tif (!(relation.getFrom().equals(userJID) || relation.getTo().equals(userJID))) {\n\t\t\tthrow new InvalidRelationException(\"Must be part of the relation to create it\");\n\t\t}\n\n\t\t// Assign a unique ID to this new relation\n\t\trelation.setId(DefaultAtomHelper.generateId());\n\n\t\t// Set the request status\n\t\trelation.setStatus(Relation.Status.REQUEST);\n\n\t\t// We store the relation for requestor\n\t\trelation.setOwner(userJID);\n\n\t\t// Persist the relation\n\t\tfinal EntityManager em = OswPlugin.getEmFactory().createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(relation);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\n\t\t// We cleanup and notifiy the relation for the recipient\n\t\trelation.setAclRules(null);\n\t\trelation.setComment(null);\n\t\tnotify(userJID, relation);\n\t}", "@PostMapping(value = \"/customers/{phoneNo}/friends\", consumes = MediaType.APPLICATION_JSON_VALUE)\n\tpublic void saveFriend(@PathVariable Long phoneNo, @RequestBody FriendFamilyDTO friendDTO) {\n\t\tlogger.info(\"Creation request for customer {} with data {}\", phoneNo, friendDTO);\n\t\tcustService.saveFriend(phoneNo, friendDTO);\n\t}", "public void addtofriendcollection(String userNames){\n\tString [] taggedfriendsArray = userNames.split(\" \");\n\tfor(int indks=0;indks<taggedfriendsArray.length;indks++){\n\t\tIterator<User> itr = UserCollection.userlist.iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tUser element = itr.next();\n\t\t\tif(taggedfriendsArray[indks].equals(element.getUserName())){\n\t\t\t\ttaggedFriends.add(element);\n\t\t\t}\n\t\t}\n\t}\n\t\n}", "public static ExecutionResult lookupFriendship(Universe universe, Node person, Node friend) {\n ExecutionEngine engine = new ExecutionEngine(universe.getGraphDb());\n String query = \"START p=node(\" + person.getId() + \"), s=node(\" + friend.getId() + \") MATCH (p)-[r:\" + RelationshipTypes.FRIENDS_WITH + \"]->s RETURN s.name\";\n return engine.execute(query);\n }", "@Override\n\tpublic void addPerson(User pUser) {\n\t\t\n\t}", "public boolean isAlreadyAdd(Friend friend){\n List<Friend> friendList = Resources.owner.getFriendList();\n boolean isYou = Resources.owner.getUsername().equals(friend.getUsername());\n return friendList.contains(friend) || isYou;\n }", "public void add(User user) {\r\n this.UserList.add(user);\r\n }", "@Override\r\n\tpublic void add(User user) {\n\r\n\t}", "public static void addNewToDataBase(String name, String bio) {\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n String uid = mAuth.getUid();\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference();\n\n // Initialize the new user with a fridge, a list of friends, a list of allergies, and preferred units\n ref.child(\"users\").child(uid).child(\"fridge\").setValue(\"null\");\n ref.child(\"users\").child(uid).child(\"followers\").child(uid).setValue(uid);\n ref.child(\"users\").child(uid).child(\"following\").setValue(\"null\");\n ref.child(\"users\").child(uid).child(\"allergies\").setValue(\"null\");\n ref.child(\"users\").child(uid).child(\"units\").setValue(\"imperial\");\n ref.child(\"users\").child(uid).child(\"feed\").setValue(\"null\");\n ref.child(\"users\").child(uid).child(\"name\").setValue(name);\n ref.child(\"displayNames\").child(name).setValue(name);\n ref.child(\"users\").child(uid).child(\"bio\").setValue(bio);\n ref.child(\"users\").child(uid).child(\"posts\").setValue(\"null\");\n }", "public boolean isFriendRelationship() {\n return friendRelationship;\n }", "User addMember(final User user, GroupAssociation groupAssociation);", "private void createMemberInvitation(User user, Chatroom chatroom) {\n\t\tList<Chatroom> chatrooms = user.getChatroomInvites();\n\t\tList<User> users = chatroom.getMemberInvitees();\n\t\t// create the relation\n\t\tchatrooms.add(chatroom);\n\t\tusers.add(user);\n\t\t// save the chatroom, and its relations\n\t\tchatroomRepository.save(chatroom);\n\t}", "public Friend createFriend();", "public int addUser(Users users);", "public void addUser(String username) {\n\t\tusers.add(new User(username));\n\t}", "public Boolean addUser(User user) throws ApplicationException;", "public void addUser(String userName) throws Exception {\r\n try {\r\n if (users.size() < MAX_USERS) {\r\n for (int i = 0; i < users.size(); i++) {\r\n if (users.get(i).getUserName().equalsIgnoreCase(userName) && users.get(i) != null)\r\n throw new Exception(\"Error: Name Already Exist\");\r\n }\r\n users.add(new User(userName, users.size(), users.size() + 1));\r\n } else throw new Exception(\"Error: Reached Maximum User Capacity\");\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n }", "public void createAndAddUser(String fName, String lName){\n ModelPlayer user = new ModelPlayer(fName, lName);\n user.setUserID(this.generateNewId());\n userListCtrl.addUser(user);\n }" ]
[ "0.6867665", "0.67230356", "0.62930447", "0.625908", "0.6170145", "0.6079614", "0.59452087", "0.5942957", "0.5933975", "0.5896617", "0.5837859", "0.5824018", "0.58237386", "0.5822814", "0.5754344", "0.5743731", "0.56991845", "0.5679407", "0.56631184", "0.5659188", "0.5608308", "0.5597747", "0.5566573", "0.5525846", "0.5511495", "0.547533", "0.5408749", "0.54069495", "0.5404544", "0.5379644", "0.5364922", "0.53551626", "0.53498834", "0.5342729", "0.5342409", "0.5337891", "0.5329281", "0.53250027", "0.5287081", "0.5282701", "0.52728486", "0.52678525", "0.52648544", "0.52635914", "0.52571684", "0.5256517", "0.52280575", "0.52258223", "0.5223926", "0.52205276", "0.5220137", "0.5211755", "0.52053136", "0.52016926", "0.51909614", "0.5165282", "0.51472974", "0.5146825", "0.5137093", "0.51336324", "0.51110506", "0.5110078", "0.5106073", "0.5098753", "0.50857747", "0.50791854", "0.50791854", "0.50721645", "0.50706816", "0.50671375", "0.50613075", "0.50424796", "0.50416267", "0.503823", "0.5028693", "0.50187904", "0.50053394", "0.4991611", "0.49799028", "0.49676874", "0.49646774", "0.4960343", "0.4960106", "0.49595582", "0.49552265", "0.495219", "0.49394995", "0.4937321", "0.49361375", "0.49334517", "0.4924881", "0.4915905", "0.49131796", "0.49115285", "0.49019074", "0.4891709", "0.48880073", "0.48870307", "0.48844343", "0.48818988" ]
0.7239255
0
Complete the compareTriplets function below.
static List<Integer> compareTriplets(List<Integer> a, List<Integer> b) { List<Integer> result = new ArrayList<Integer>(); HashMap<String, Integer> temp = new HashMap<String, Integer>(); temp.put("a", 0); temp.put("b", 0); for(int i = 0; i < a.size(); i++){ if(a.get(i) < b.get(i)){ temp.put("b", temp.get("b") + 1); }else if(a.get(i) == b.get(i)){ continue; }else temp.put("a", temp.get("a") + 1); } result.add(temp.get("a")); result.add(temp.get("b")); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static List<Integer> compareTriplets(List<Integer> a, List<Integer> b) {\n\n List<Integer> result = new ArrayList<Integer>(2);\n result.add(0, 0);\n result.add(1, 0);\n for (int i = 0; i < a.size(); i++) {\n if (a.get(i) > b.get(i)) {\n result.set(0, result.get(0) + 1);\n } else if (a.get(i) < b.get(i)) {\n result.set(1, result.get(1) + 1);\n } else if (a.get(i) == b.get(i)) {\n result.set(0, result.get(0) + 1);\n result.set(1, result.get(1) + 1);\n }\n }\n return result;\n }", "static List<Integer> compareTriplets(List<Integer> a, List<Integer> b) {\r\n\t\tList<Integer> val = new ArrayList<>();\r\n\t\tint aScore = 0;\r\n\t\tint bScore = 0;\r\n\t\tfor (int i=0; i<3;i++) {\r\n\t\t\tfor (int j=0;j<3;j++) {\r\n\t\t\t\tif (i==j) {\r\n\t\t\t\t\tint tempA = a.get(i);\r\n\t\t\t\t\tint tempB = b.get(j);\r\n\t\t\t\t\tif (!(1<=tempA && tempA<=100 && 1<=tempB && 1<=tempB)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (tempA<tempB) {\r\n\t\t\t\t\t\tbScore += 1;\r\n\t\t\t\t\t} else if (tempA>tempB) {\r\n\t\t\t\t\t\taScore += 1;\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\t\r\n\t\tval.add(aScore);\r\n\t\tval.add(bScore);\r\n\t\treturn val;\r\n\t}", "public static void main(String[] args) throws IOException {\n\n String[] aItems = {\"17\", \"18\", \"30\"};\n\n List<Integer> a = new ArrayList<Integer>();\n\n for (int i = 0; i < 3; i++) {\n int aItem = Integer.parseInt(aItems[i]);\n a.add(aItem);\n }\n\n String[] bItems = {\"99\", \"16\", \"8\"} ;\n\n List<Integer> b = new ArrayList<Integer>();\n\n for (int i = 0; i < 3; i++) {\n int bItem = Integer.parseInt(bItems[i]);\n b.add(bItem);\n }\n\n List<Integer> result = compareTriplets(a, b);\n\n for (int i : result) {\n System.out.print(i);\n }\n }", "public static void main(String[] args){\n String[] l1 = {\"Preben\", \"Morten\", \"Rudi\", \"Mikael\", \"Marianne\", \"Cecilie\"};\n String[] l2 = {\"Preben\", \"Morten\", \"Rudi\", \"Mikael\", \"Marianne\", \"Cecilie\", \"Alfa\"};\n String[] l3 = {\"Preben\", \"Morten\", \"Rudi\", \"Mikael\", \"Marianne\", \"Cecilie\", \"Alfa\"};\n String[] l4 = {\"Preben\", \"Morten\", \"Rudi\", \"Mikael\", \"Marianne\", \"Cecilie\", \"Beta\", \"Quatro\", \"Alfa\"};\n String result = checkList(l1, l2, l3,l4);\n if (result == \"\")\n System.out.println(\"No triplet\");\n else\n System.out.println(result);\n }", "void compareDataStructures();", "@Test\n public void checkIfPassportAndIDDocumentCombinationReturnsPassport() {\n triplets.add(new Triplets<String, Integer, Double>(\"iddocument\", 1, 90.00));\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 2, 90.00));\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertEquals(\"passport\", resultTriplet.getLabel());\n Assert.assertEquals(new Integer(2), resultTriplet.getImageNumber());\n Assert.assertEquals(new Double(90.00), resultTriplet.getMatchConfidence());\n }", "public void testCompare4() throws Exception {\r\n // timelines shorter than or equal to the target\r\n ComponentCompetitionSituation situation1 = new ComponentCompetitionSituation();\r\n situation1.setPostingDate(new Date());\r\n situation1.setEndDate(new Date(situation1.getPostingDate().getTime() + 1000));\r\n\r\n // timelines longer than the target\r\n ComponentCompetitionSituation situation2 = new ComponentCompetitionSituation();\r\n situation2.setPostingDate(new Date());\r\n situation2.setEndDate(new Date(situation2.getPostingDate().getTime() + 100000));\r\n\r\n ComponentCompetitionPredictor predictor = new ComponentCompetitionPredictor();\r\n ComponentCompetitionFulfillmentPrediction prediction1 = new ComponentCompetitionFulfillmentPrediction(1.0D,\r\n situation1, predictor);\r\n ComponentCompetitionFulfillmentPrediction prediction2 = new ComponentCompetitionFulfillmentPrediction(1.0D,\r\n situation2, predictor);\r\n\r\n begin();\r\n\r\n for (int i = 0; i < TIMES; i++) {\r\n // timelines shorter than or equal to the target < timelines longer than the target\r\n int result = comparator.compare(prediction1, prediction2);\r\n // result should be < 0\r\n assertTrue(\"result of compare\", result < 0);\r\n }\r\n\r\n print(\"ComponentCompetitionFulfillmentPredictionPrizeComparator#compare\");\r\n }", "public abstract void compare();", "public void testCompare2() throws Exception {\r\n ComponentCompetitionSituation situation = new ComponentCompetitionSituation();\r\n ComponentCompetitionPredictor predictor = new ComponentCompetitionPredictor();\r\n ComponentCompetitionFulfillmentPrediction prediction1 = new ComponentCompetitionFulfillmentPrediction(1.0D,\r\n situation, predictor);\r\n ComponentCompetitionFulfillmentPrediction prediction2 = new ComponentCompetitionFulfillmentPrediction(0.6D,\r\n situation, predictor);\r\n\r\n begin();\r\n\r\n for (int i = 0; i < TIMES; i++) {\r\n // predictions in range < predictions below the range\r\n int result = comparator.compare(prediction1, prediction2);\r\n // result should be < 0\r\n assertTrue(\"result of compare\", result < 0);\r\n }\r\n\r\n print(\"ComponentCompetitionFulfillmentPredictionPrizeComparator#compare\");\r\n }", "@Test\n public void checkIfNullandPassportRecord() {\n triplets.add(null);\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 1, 90.00));\n triplets.add(new Triplets<String, Integer, Double>(\"iddocument\", 1, 90.00));\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertEquals(\"passport\", resultTriplet.getLabel());\n Assert.assertEquals(new Integer(1), resultTriplet.getImageNumber());\n Assert.assertEquals(new Double(90.0), resultTriplet.getMatchConfidence());\n }", "public static void main(String args[]) {\n\t\tint [] n = {-1,0,1,2,-2,4}; \n\t\tSystem.out.println(findTriplets(n));\n\t\t\n\t\t\n\t}", "public void testCompare1() throws Exception {\r\n ComponentCompetitionSituation situation = new ComponentCompetitionSituation();\r\n ComponentCompetitionPredictor predictor = new ComponentCompetitionPredictor();\r\n ComponentCompetitionFulfillmentPrediction prediction1 = new ComponentCompetitionFulfillmentPrediction(1.0D,\r\n situation, predictor);\r\n ComponentCompetitionFulfillmentPrediction prediction2 = new ComponentCompetitionFulfillmentPrediction(1.5D,\r\n situation, predictor);\r\n\r\n begin();\r\n\r\n for (int i = 0; i < TIMES; i++) {\r\n // predictions in range < predictions above the range\r\n int result = comparator.compare(prediction1, prediction2);\r\n // result should be < 0\r\n assertTrue(\"result of compare\", result < 0);\r\n }\r\n\r\n print(\"ComponentCompetitionFulfillmentPredictionPrizeComparator#compare\");\r\n }", "@Test\n public void checkIfPassportAndDefaultCombinationReturnsHighConfidencePassport() {\n triplets.add(new Triplets<String, Integer, Double>(\"dummy\", 1, 90.00));\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 2, 90.00));\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 3, 190.00));\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertEquals(\"passport\", resultTriplet.getLabel());\n Assert.assertEquals(new Integer(3), resultTriplet.getImageNumber());\n Assert.assertEquals(new Double(190.00), resultTriplet.getMatchConfidence());\n }", "public void testCompare6() throws Exception {\r\n ComponentCompetitionSituation situation1 = new ComponentCompetitionSituation();\r\n situation1.setPostingDate(new Date());\r\n situation1.setEndDate(new Date(situation1.getPostingDate().getTime() + 100000));\r\n situation1.setPrize(200D);\r\n\r\n ComponentCompetitionSituation situation2 = new ComponentCompetitionSituation();\r\n situation2.setPostingDate(new Date());\r\n situation2.setEndDate(new Date(situation2.getPostingDate().getTime() + 100000));\r\n situation2.setPrize(200D);\r\n\r\n ComponentCompetitionPredictor predictor = new ComponentCompetitionPredictor();\r\n ComponentCompetitionFulfillmentPrediction prediction1 = new ComponentCompetitionFulfillmentPrediction(1.0D,\r\n situation1, predictor);\r\n ComponentCompetitionFulfillmentPrediction prediction2 = new ComponentCompetitionFulfillmentPrediction(1.0D,\r\n situation2, predictor);\r\n\r\n begin();\r\n\r\n for (int i = 0; i < TIMES; i++) {\r\n int result = comparator.compare(prediction1, prediction2);\r\n // result should be == 0\r\n assertTrue(\"result of compare\", result == 0);\r\n }\r\n\r\n print(\"ComponentCompetitionFulfillmentPredictionPrizeComparator#compare\");\r\n }", "public void testCompare5() throws Exception {\r\n // smaller prizes\r\n ComponentCompetitionSituation situation1 = new ComponentCompetitionSituation();\r\n situation1.setPostingDate(new Date());\r\n situation1.setEndDate(new Date(situation1.getPostingDate().getTime() + 100000));\r\n situation1.setPrize(100D);\r\n\r\n // longer prizes\r\n ComponentCompetitionSituation situation2 = new ComponentCompetitionSituation();\r\n situation2.setPostingDate(new Date());\r\n situation2.setEndDate(new Date(situation2.getPostingDate().getTime() + 100000));\r\n situation2.setPrize(200D);\r\n\r\n ComponentCompetitionPredictor predictor = new ComponentCompetitionPredictor();\r\n ComponentCompetitionFulfillmentPrediction prediction1 = new ComponentCompetitionFulfillmentPrediction(1.0D,\r\n situation1, predictor);\r\n ComponentCompetitionFulfillmentPrediction prediction2 = new ComponentCompetitionFulfillmentPrediction(1.0D,\r\n situation2, predictor);\r\n\r\n begin();\r\n\r\n for (int i = 0; i < TIMES; i++) {\r\n // smaller prizes < longer prizes\r\n int result = comparator.compare(prediction1, prediction2);\r\n // result should be < 0\r\n assertTrue(\"result of compare\", result < 0);\r\n }\r\n\r\n print(\"ComponentCompetitionFulfillmentPredictionPrizeComparator#compare\");\r\n }", "@Test\n public void checkIfReturnsPassportWithHighConfidence() {\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 1, 90.00));\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 4, 190.00));\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertEquals(\"passport\", resultTriplet.getLabel());\n Assert.assertEquals(new Integer(4), resultTriplet.getImageNumber());\n Assert.assertEquals(new Double(190.00), resultTriplet.getMatchConfidence());\n }", "public void testCompare3() throws Exception {\r\n ComponentCompetitionSituation situation = new ComponentCompetitionSituation();\r\n ComponentCompetitionPredictor predictor = new ComponentCompetitionPredictor();\r\n ComponentCompetitionFulfillmentPrediction prediction1 = new ComponentCompetitionFulfillmentPrediction(1.5D,\r\n situation, predictor);\r\n ComponentCompetitionFulfillmentPrediction prediction2 = new ComponentCompetitionFulfillmentPrediction(0.6D,\r\n situation, predictor);\r\n\r\n begin();\r\n\r\n for (int i = 0; i < TIMES; i++) {\r\n // predictions above the range < predictions below the range\r\n int result = comparator.compare(prediction1, prediction2);\r\n // result should be < 0\r\n assertTrue(\"result of compare\", result < 0);\r\n }\r\n\r\n print(\"ComponentCompetitionFulfillmentPredictionPrizeComparator#compare\");\r\n }", "private void compareSecondPass() {\n final int arraySize = this.oldFileNoMatch.size()\r\n + this.newFileNoMatch.size();\r\n this.compareArray = new SubsetElement[arraySize][2];\r\n final Iterator<String> oldIter = this.oldFileNoMatch.keySet()\r\n .iterator();\r\n int i = 0;\r\n while (oldIter.hasNext()) {\r\n final String key = oldIter.next();\r\n final SubsetElement oldElement = this.oldFileNoMatch.get(key);\r\n SubsetElement newElement = null;\r\n if (this.newFileNoMatch.containsKey(key)) {\r\n newElement = this.newFileNoMatch.get(key);\r\n }\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n // now go through the new elements and check for any that have no match.\r\n // these will be new elements with no corresponding old element\r\n final SubsetElement oldElement = null;\r\n final Iterator<String> newIter = this.newFileNoMatch.keySet()\r\n .iterator();\r\n while (newIter.hasNext()) {\r\n final String key = newIter.next();\r\n if (!this.oldFileNoMatch.containsKey(key)) {\r\n final SubsetElement newElement = this.newFileNoMatch.get(key);\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n\r\n }\r\n\r\n }", "private void checkComparabilityOfGroundTruthAndExtractedPostBlocks() {\n for (PostVersion postVersion : this.currentPostVersionList) {\n for (PostBlockVersion postBlockVersion : postVersion.getPostBlocks()) {\n\n int postId_cs = postBlockVersion.getPostId();\n int postHistoryId_cs = postBlockVersion.getPostHistoryId();\n int localId_cs = postBlockVersion.getLocalId();\n\n boolean postBlockIsInGT = false;\n for (PostBlockLifeSpanVersion postBlockLifeSpanVersion : groundTruth_postBlockLifeSpanVersionList) {\n int postId_gt = postBlockLifeSpanVersion.getPostId();\n int postHistoryId_gt = postBlockLifeSpanVersion.getPostHistoryId();\n int localId_gt = postBlockLifeSpanVersion.getLocalId();\n\n boolean postBlockFromCSisInGT = (postId_cs == postId_gt && postHistoryId_cs == postHistoryId_gt && localId_cs == localId_gt);\n\n if (postBlockFromCSisInGT) {\n postBlockIsInGT = true;\n break;\n }\n }\n\n if (!postBlockIsInGT) {\n popUpWindowThatComputedSimilarityDiffersToGroundTruth();\n break;\n }\n }\n }\n\n\n // check whether all post blocks from ground truth are found in the extracted post blocks\n for (PostBlockLifeSpanVersion postBlockLifeSpanVersion : groundTruth_postBlockLifeSpanVersionList) {\n int postId_gt = postBlockLifeSpanVersion.getPostId();\n int postHistoryId_gt = postBlockLifeSpanVersion.getPostHistoryId();\n int localId_gt = postBlockLifeSpanVersion.getLocalId();\n\n boolean postBlockIsInCS = false;\n for (PostVersion postVersion : this.currentPostVersionList) {\n for (PostBlockVersion postBlockVersion : postVersion.getPostBlocks()) {\n\n int postId_cs = postBlockVersion.getPostId();\n int postHistoryId_cs = postBlockVersion.getPostHistoryId();\n int localId_cs = postBlockVersion.getLocalId();\n\n boolean postBlockFromCSisInGT = (postId_cs == postId_gt && postHistoryId_cs == postHistoryId_gt && localId_cs == localId_gt);\n\n if (postBlockFromCSisInGT) {\n postBlockIsInCS = true;\n break;\n }\n }\n }\n\n if (!postBlockIsInCS) {\n popUpWindowThatComputedSimilarityDiffersToGroundTruth();\n break;\n }\n }\n }", "public int compare(Dataset object1, Dataset object2){\n if(object1.getAttributeCount() != candidate.getAttributeCount() ||\n object2.getAttributeCount() != candidate.getAttributeCount()){\n return 0;\n }\n\n double dist1 = 0.0, dist2 = 0.0;\n double tmp1 = 0.0, tmp2 = 0.0;\n\n for(int i = 0; i < candidate.getAttributeCount(); i++){\n if(candidate.getOutputColumnCount() == (i+1)){\n continue;\n }\n\n Attribute ac = candidate.getAttribute(i);\n Attribute a1 = object1.getAttribute(i);\n Attribute a2 = object2.getAttribute(i);\n\n if(ac.getType() == AttributeTypes.TEXT){\n dist1 += DatasetEuklidianComparator.unlimitedCompare((String)ac.getValue(), (String)a1.getValue());\n dist2 += DatasetEuklidianComparator.unlimitedCompare((String)ac.getValue(), (String)a2.getValue());\n }else{\n /*\n double acDouble = 0.0;\n double a1Double = 0.0;\n double a2Double = 0.0;\n switch(ac.getType()){\n case INTEGER: acDouble = (double)((Integer)ac.getValue()).intValue(); break;\n case DECIMAL: acDouble = (double)ac.getValue();\n }\n switch(a1.getType()){\n case INTEGER: a1Double = (double)((Integer)a1.getValue()).intValue(); break;\n case DECIMAL: a1Double = (double)a1.getValue();\n }\n switch(a2.getType()){\n case INTEGER: a2Double = (double)((Integer)a2.getValue()).intValue(); break;\n case DECIMAL: a2Double = (double)a2.getValue();\n }*/\n double acDouble = (double)ac.getValue();\n double a1Double = (double)a1.getValue();\n double a2Double = (double)a2.getValue();\n\n tmp1 += Math.pow(a1Double-acDouble, 2);\n tmp2 += Math.pow(a2Double-acDouble, 2);\n }\n }\n\n dist1 += Math.sqrt(tmp1);\n dist2 += Math.sqrt(tmp2);\n\n if (dist1 > dist2) {\n return 1;\n }\n if (dist1 < dist2) {\n return -1;\n }\n return 0;\n }", "private boolean compareList(ArrayList<Point> solutions2, ArrayList<Point> current) {\r\n\t\treturn solutions2.toString().contentEquals(current.toString());\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tGenericPair<Integer> ob1 = new GenericPair(1,1);\n\t\tGenericPair<Integer> ob2 = new GenericPair(2,3);\n\t\tSystem.out.println(ob1.equals(ob2));\n\t\tSystem.out.println(ob1.getFirst());\n\t\tSystem.out.println(ob1.getSecond());\n\t\tSystem.out.println(ob2.getFirst());\n\t\tSystem.out.println(ob2.getSecond());\n\t\tSystem.out.println(ob1.toString());\n\t\tSystem.out.println(ob2.toString());\n\n\t}", "private static <T> int compareLists(List<? extends Comparable<T>> list1, List<T> list2) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < list1.size(); i++) {\n\t\t\tresult = list1.get(i).compareTo(list2.get(i));\n\t\t\tif (result != 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private boolean runMultiSampleCase() {\n\t\tArrayList<Candidate> candidates = collectTrioCandidates();\n\n\t\t// Then, check the candidates for all trios around affected individuals.\n\t\tfor (Candidate c : candidates)\n\t\t\tif (isCompatibleWithTriosAroundAffected(c))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "@Test\n void compareTo_Identical_AllParts()\n {\n runIsMatchTest(AnswerType.yes, AnswerType.yes, AnswerType.yes, AnswerType.yes, ContactMatchType.Identical);\n }", "@Override\r\n\tpublic int compare(Object o1, Object o2) {\r\n\t\tCTrip no1=(CTrip) o1;\r\n\t\tCTrip no2=(CTrip) o2;\r\n\t\t\r\n\t\tif (no1.isTripActive() == no2.isTripActive()) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\tif(no1.isTripActive())\r\n\t\treturn 1;\r\n\t\t\r\n\t\treturn -1;\r\n\t}", "@SuppressWarnings({ \"unchecked\", \"unused\" })\n\t@Test\n\tpublic void testCVLT() {\n\t\t\n\t\tList<Object>i = (List<Object>) ((List<Object>) flightsFromCalgary).iterator(); \n\t\twhile (((Iterator<Object>) i).hasNext()) {\n\t\tFlightDto flightDto = (FlightDto) ((Iterator<Object>) i).next(); \n\t\n\t\t\n\t\tif (flightDto.getFlightNumber().equals(\n\t\texpectedCalgaryToVan.getFlightNumber()))\n\t\t {\n\t\t FlightDto actual = flightDto;\n\t\t assertEquals(\"Flight from Calgary to Vancouver\",\n\t\t \t\texpectedCalgaryToVan,\n\t\t \t\tflightDto);\n\t\t break; \n\t\t }\n\t\t\n\t\t\t\t}\n\t}", "public boolean compare(AlphaSubset passedSubset) {\n\t\tif(passedSubset.getSubset().size() == getSubset().size()) {\r\n\t\t\tfor(int i = 0; i < getSubset().size();i++) {\r\n\t\t\t\tif(passedSubset.getSubset().get(i) != getSubset().get(i)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }", "public Obs findtrips(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY) {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\tboolean marks[] = new boolean[towers.length];\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\t\tfor (int i = 0; i < towers.length; i++) {\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tbuffer.add(towers[i]);\n\t\t\ttbuffer.add(tstamps[i]);\n\n\t\t\tif (max_distance > dist_th) {\n\n\t\t\t\ttry {\n\t\t\t\t\t/**\n\t\t\t\t\t * if the time exceeds timing threshold, then check the\n\t\t\t\t\t * distance between towers. If this distance less than the\n\t\t\t\t\t * distance threshold, then previous tower is the end of the\n\t\t\t\t\t * current trip.\n\t\t\t\t\t *\n\t\t\t\t\t */\n\t\t\t\t\tjava.util.Date sTime = formatter.parse(tbuffer.get(0));\n\t\t\t\t\tjava.util.Date eTime = formatter.parse(tbuffer.get(tbuffer.size() - 1));\n\t\t\t\t\tcal.setTime(sTime);\n\t\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\tcal.setTime(eTime);\n\t\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\n\t\t\t\t\tif (time_diff > time_th) {\n\t\t\t\t\t\tmarks[i] = true;\n\n\t\t\t\t\t}\n\t\t\t\t\t// else {\n\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t/**\n\t\t\t\t\t * Reset maximum distances\n\t\t\t\t\t */\n\t\t\t\t\tmax_distance = 0;\n\t\t\t\t\t// }\n\t\t\t\t} catch (ParseException ex) {\n\t\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\tmarks[marks.length - 1] = true;\n\t\t}\n\n\t\t/**\n\t\t * User trips buffers.\n\t\t */\n\t\tString trips = towers[0];\n\t\tString tstrips = tstamps[0];\n\n\t\tfor (int i = 1; i < marks.length; i++) {\n\t\t\tboolean mark = marks[i];\n\t\t\ttrips += CLM + towers[i];\n\t\t\ttstrips += CLM + tstamps[i];\n\n\t\t\t/**\n\t\t\t * The end of the previous trip is the start of the new trip.\n\t\t\t */\n\t\t\tif (mark && i != marks.length - 1) {\n\t\t\t\ttrips += RLM + towers[i];\n\t\t\t\ttstrips += RLM + tstamps[i];\n\t\t\t}\n\n\t\t}\n\t\treturn new Obs(trips, tstrips);\n\n\t}", "private void comparePoints(double[] firstP, double[] secondP) {\n assertEquals(firstP.length, secondP.length);\n\n for(int j=0; j<firstP.length; j++) {\n assertEquals(\"j = \"+j, firstP[j], secondP[j], TOLERANCE);\n }\n }", "public static void compare () {\r\n for (int i = 0; i < dim; i++) {\r\n for (int j = 0; j < dim; j++) {\r\n if (d[i][j] != adjacencyMatrix[i][j])// here \r\n {\r\n System.out.println(\"Comparison failed\");\r\n \r\n return;\r\n }\r\n }\r\n }\r\n System.out.println(\"Comparison succeeded\");\r\n }", "@Override\n public VectorEquality compareTo(PredicateVector vectorCmp) {\n try {\n PredicateVector vectorLarge;\n PredicateVector vectorSmall;\n VectorEquality cmpResult;\n \n if (flagged || vectorCmp.flagged) {\n return VectorEquality.UNIQUE;\n }\n \n // TODO: add size check\n \n if (this.size() > vectorCmp.size() && !this.values().iterator().next().isEmpty()) {\n vectorLarge = this;\n vectorSmall = vectorCmp;\n cmpResult = VectorEquality.SUPERSET;\n } else {\n vectorLarge = vectorCmp;\n vectorSmall = this;\n cmpResult = VectorEquality.SUBSET;\n }\n \n int largeVectorIter = 0;\n int numEq = 0;\n \n List<Integer> vectorSmallKeys = new ArrayList<Integer>(vectorSmall.keySet());\n Collections.sort(vectorSmallKeys);\n \n List<Integer> vectorLargeKeys = new ArrayList<Integer>(vectorLarge.keySet());\n Collections.sort(vectorLargeKeys);\n\n int i = 0;\n\n for (Integer smallVectorKey: vectorSmallKeys) {\n StateVector smallVectorState = vectorSmall.get(smallVectorKey);\n // Check if we have not iterated over all large vector states\n if (largeVectorIter >= vectorLargeKeys.size() && !smallVectorState.isEmpty()) {\n cmpResult = VectorEquality.UNIQUE;\n break;\n }\n \n \n for (i = largeVectorIter; i < vectorLargeKeys.size(); i++) {\n StateVector largeVectorState = vectorLarge.get(vectorLargeKeys.get(i));\n VectorEquality cmpVectorResult = smallVectorState.compareTo(largeVectorState); \n if (cmpVectorResult == VectorEquality.EQUAL) {\n numEq += 1;\n break;\n }\n \n if (cmpVectorResult == VectorEquality.SUPERSET || cmpVectorResult == VectorEquality.SUBSET) {\n cmpResult = cmpVectorResult;\n numEq += 1;\n break;\n }\n }\n \n largeVectorIter = i + 1; // TODO: double check i+1\n }\n \n if (numEq < vectorSmall.size() && !vectorSmall.values().iterator().next().isEmpty())\n cmpResult = VectorEquality.UNIQUE;\n \n return cmpResult;\n } catch (ArrayIndexOutOfBoundsException e) {\n e.printStackTrace();\n }\n \n return VectorEquality.UNIQUE;\n }", "@Override\n public int compare(TuplePathCost tpc1, TuplePathCost tpc2) {\n if (tpc1.getCost().compareTo(tpc2.getCost()) < 0) return -1;\n // else if (tpc1.getCost() < tpc2.getCost()) return - 1;\n else if (tpc1.getCost().compareTo(tpc2.getCost()) > 0) return 1;\n else return 0;\n }", "public static void main(String[] args) {\n int a[] = {12,11,10,5,6,2,30};\n // smaller greater approach with 3 passes can be used to find total number of triplet subsequences in array \n int smaller[] = new int[a.length];\n int greater[] = new int[a.length];\n \n for(int i=0;i<a.length;i++) {\n smaller[i] = greater[i] = -1;\n }\n // smaller fill up\n int min = a[0];\n for(int i=1;i<a.length;i++) {\n if (a[i] > min) {\n smaller[i] = 1;\n } else if ( a[i] < min) {\n min = a[i];\n }\n }\n \n int max = a[a.length-1];\n for(int i=a.length-2;i>=0;i--) {\n if (a[i] < max) {\n greater[i] = 1;\n } else if ( a[i] > max) {\n max = a[i];\n }\n }\n \n for(int i=1;i<a.length-1;i++) {\n if (smaller[i] == greater[i] && greater[i] == 1) {\n System.out.println(\"Triplet found, mid is at -> \" + i + \" : \" + a[i]);\n }\n }\n System.out.println(\"Do we have increasing triplet ?? \" + increasingTripletOnePass(a));\n }", "public static void main(String[] args) {\n\t\tList l=new ArrayList();\r\n\t\tl.add(12);\r\n\t\tl.add(45);\r\n\t\tl.add(15);\r\n\t\tl.add(78);\r\n\t\t\r\n\t\tList l2=new ArrayList();\r\n\t\tl2.add(12);\r\n\t\tl2.add(45);\r\n\t\tl2.add(10);\r\n\t\tl2.add(78);\r\n\t\t\r\n\t\tBoolean m=l.containsAll(l2);\r\n\t\t\r\n\t\tif(m)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Elements are same\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Not equal\");\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public abstract int compare(final T l1, final T l2);", "private List<Comparison> doCompare(VM vm, Row row, String vmType) {\r\n List<Comparison> results = new ArrayList<Comparison>();\r\n\r\n for (String param : ReadFile.parametersToCompare.stringPropertyNames()) {\r\n\r\n if (paramIndexes.get(param) != null) {\r\n String resValue = getCellValue(row.getCell(paramIndexes.get(param)));\r\n\r\n if (resValue != null && datastoreUsageValues.get(param) != null) {\r\n resValue = datastoreUsageValues.get(param);\r\n if (\"Backuptool\".equals(param) && \"vm5\".equals(vm.getVm_name())) {\r\n resValue = datastoreUsageValues.get(\"NFSBackup\");\r\n }\r\n }\r\n\r\n if (resValue == null) {\r\n continue;\r\n }\r\n String vConfValue = getVConfValue(param, vm, ReadFile.parametersToCompare.getProperty(param));\r\n Comparison comparison = new Comparison();\r\n comparison.setAttribute(param);\r\n if (\"Datastore\".equals(param)) {\r\n matchStringValues(vConfValue, resValue, comparison);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \", Resource sheet value: \" + resValue);\r\n } else if (\"Ext rep\".equals(param) && !openStack && !is3XL) {\r\n if (vmType.contains(\"Small\") || vmType.contains(\"Mainstream\")) {\r\n resValue = Double.toString(Double.parseDouble(resValue) / 2);\r\n } else {\r\n resValue = Double.toString(Double.parseDouble(resValue) / 4);\r\n }\r\n matchValues(vConfValue, resValue, comparison, param);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \" MB, Resource sheet value: \" + resValue + \" GB\");\r\n } else if (\"vCPU\".equals(param)) {\r\n matchValues(vConfValue, resValue, comparison, param);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \" GB, Resource sheet value: \" + resValue + \" GB\");\r\n } else {\r\n matchValues(vConfValue, resValue, comparison, param);\r\n comparison.setComment(\"vConf value: \" + vConfValue + \" MB, Resource sheet value: \" + resValue + \" GB\");\r\n }\r\n results.add(comparison);\r\n }\r\n }\r\n\r\n return results;\r\n }", "@Test\n\tpublic void verurteilenTest() {\n\t\tR1.verurteilen(Sc1);\n\t\tR2.verurteilen(Sc2);\n\t\tassertEquals(true, Sc1.getIstVerurteilt());\n\t\tassertEquals(false, Sc2.getIstVerurteilt());\n\n\t\tR1.verurteilen(Sc2);\n\t\tR2.verurteilen(Sc1);\n\t\tassertEquals(true, Sc2.getIstVerurteilt());\n\t\tassertEquals(false, Sc1.getIstVerurteilt());\n\n\t}", "int planDiff (ArrayList<String> planR, ArrayList<String> planH) {\n \tif (planR.equals(planH)) return -1;\n\t\tint actionNumber = 0;\n\t\tfor (int i = 0; i < (planR.size() & planH.size()); i++) {\n\t\t\tif (!planR.get(i).equals(planH.get(i))) {\n\t\t\t\tactionNumber = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n//\t\tif ((actionNumber > 0 && planR.size() == planH.size())) return -1; // for planner indp\n\t\treturn actionNumber;\n\t}", "public boolean checkEGJoin(List<String> queryTriplets) {\n\n boolean flagEG = false;\n boolean foundEG = false;\n List<List<String>> newEGpair = null;\n List<List<String>> newEGpair2 = null;\n List<String> innerDTP = null;\n List<String> outerDTP = null;\n List<String> currEG = null;\n\n if (queryTriplets.size() >= 6) {\n\n for (int key : mapTmpEGtoAllTPs.keySet()) {\n\n currEG = mapTmpEGtoAllTPs.get(key);\n int commElems = myBasUtils.candidateTPcomElems(currEG, queryTriplets);\n\n if (currEG.size() == queryTriplets.size()) {\n\n // the second condition, is used to capture Nested Loop with EG operator, made by FedX\n if (commElems == currEG.size() || commElems == currEG.size() - 1) {\n\n if (commElems == currEG.size() - 1) {\n\n mapEGtoCancel.put(key, 1);\n mapEGtoOccurs.put(currEG, 2);\n }\n\n foundEG = true;\n break;\n }\n\n }\n\n }\n\n //If it's the first time we see this EG or NLEG, we save each pairWise join as EG\n if (!foundEG) {\n\n int indEG = mapTmpEGtoAllTPs.size();\n mapTmpEGtoAllTPs.put(indEG, queryTriplets);\n mapEGtoOccurs.put(currEG, 1);\n\n for (int i = 0; i < queryTriplets.size(); i += 3) {\n\n outerDTP = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(i, i + 3)));\n for (int f = i + 3; f < queryTriplets.size(); f += 3) {\n\n flagEG = true;\n innerDTP = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(f, f + 3)));\n newEGpair = Arrays.asList(innerDTP, outerDTP);\n newEGpair2 = Arrays.asList(outerDTP, innerDTP);\n myDedUtils.setNewEGInfo(outerDTP, innerDTP, newEGpair, newEGpair2, indEG);\n }\n\n }\n }\n\n }\n\n return flagEG;\n }", "public Obs algorithm2_4(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY) {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t/**\n\t\t * Stops sets and time stamps for these stops\n\t\t */\n\t\tArrayList<String> trips = new ArrayList<>();\n\t\tArrayList<String> tstrips = new ArrayList<>();\n\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\n\t\tfor (int i = 0; i < towers.length;) {\n\t\t\tboolean flag = true;\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// buffer.add(towers[i]);\n\t\t\t// tbuffer.add(tstamps[i]);\n\t\t\tif (max_distance > dist_th) {\n\t\t\t\tjava.util.Date sTime;\n\t\t\t\tjava.util.Date eTime;\n\t\t\t\tflag = false;\n\t\t\t\ttry {\n\t\t\t\t\t/**\n\t\t\t\t\t * if the time exceeds timing threshold, then check the\n\t\t\t\t\t * distance between towers. If this distance less than the\n\t\t\t\t\t * distance threshold, then previous tower is the end of the\n\t\t\t\t\t * current trip.\n\t\t\t\t\t *\n\t\t\t\t\t */\n\t\t\t\t\tsTime = formatter.parse(tbuffer.get(0));\n\t\t\t\t\teTime = formatter.parse(tbuffer.get(tbuffer.size() - 1));\n\n\t\t\t\t\tcal.setTime(sTime);\n\n\t\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\tcal.setTime(eTime);\n\t\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\t\t\t\t} catch (ParseException parseException) {\n\t\t\t\t\tSystem.err.println(\"ParseException\\t\" + parseException.getMessage());\n\t\t\t\t}\n\n\t\t\t\tif (time_diff >= time_th) {\n\t\t\t\t\tflag = true;\n\t\t\t\t\tif (trips.isEmpty()) {\n\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttrips.add(buffer.get(0));\n\t\t\t\t\t\ttstrips.add(tbuffer.get(0));\n\t\t\t\t\t\ttrips.add(RLM);\n\t\t\t\t\t\ttstrips.add(RLM);\n\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t}\n\t\t\t\t\t/**\n\t\t\t\t\t * Reset buffers.\n\t\t\t\t\t */\n\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t/**\n\t\t\t\t\t * Reset maximum distances\n\t\t\t\t\t */\n\t\t\t\t\tmax_distance = 0;\n\n\t\t\t\t} else {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Add the first observation as the origin of the first\n\t\t\t\t\t * trips and the remaining part of the buffer as the\n\t\t\t\t\t * traveling observations, else add the complete buffer\n\t\t\t\t\t * elements as the observation seq of the traveling\n\t\t\t\t\t * observables.\n\t\t\t\t\t */\n\t\t\t\t\ttrips.add(buffer.get(0));\n\t\t\t\t\ttstrips.add(tbuffer.get(0));\n\n\t\t\t\t\tbuffer.remove(0);\n\t\t\t\t\ttbuffer.remove(0);\n\n\t\t\t\t\t// i--; // to keep a as it is.\n\n\t\t\t\t\t// buffer = new ArrayList<>();\n\t\t\t\t\t// tbuffer = new ArrayList<>();\n\t\t\t\t\tmax_distance = 0;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (flag) {\n\t\t\t\tbuffer.add(towers[i]);\n\t\t\t\ttbuffer.add(tstamps[i]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\ttrips.add(buffer.get(0));\n\t\t\ttstrips.add(tbuffer.get(0));\n\n\t\t}\n\n\t\t// System.out.println(\"stops:\\t\" + Arrays.toString(trips.toArray(new\n\t\t// String[trips.size()])).replaceAll(\" \", \"\").replaceAll(CLM + RLM +\n\t\t// CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\t\t// System.out.println(\"time stamps:\\t\" +\n\t\t// Arrays.toString(tstrips.toArray(new\n\t\t// String[tstrips.size()])).replaceAll(\" \", \"\").replaceAll(CLM + RLM +\n\t\t// CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\t\treturn new Obs(\n\t\t\t\tArrays.toString(trips.toArray(new String[trips.size()])).replaceAll(\" \", \"\")\n\t\t\t\t\t\t.replaceAll(CLM + RLM + CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"),\n\t\t\t\tArrays.toString(tstrips.toArray(new String[tstrips.size()])).replaceAll(\" \", \"\")\n\t\t\t\t\t\t.replaceAll(CLM + RLM + CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\n\t}", "public void testCompare() throws Exception {\n\n Object testData[][] = {\n { \"aaa\", \"bbb\", -1 },\n { \"aaa\", \"aaa\", 0 },\n { \"bbb\", \"aaa\", 1 },\n { \"aaa\", \"aaa_L1_bbb.lsm\", -1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L1_bbb.lsm\", 0 },\n { \"aaa_L1_bbb.lsm\", \"aaa\", 1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 },\n { \"aaa_L10_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_La_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_L2_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 }\n };\n\n LNumberComparator comparator = new LNumberComparator();\n\n for (Object[] testRow : testData) {\n String name1 = (String) testRow[0];\n String name2 = (String) testRow[1];\n File file1 = new File(name1);\n File file2 = new File(name2);\n int expectedResult = (Integer) testRow[2];\n int actualResult = comparator.compare(new FileTarget(file1),\n new FileTarget(file2));\n\n boolean isValid = ((expectedResult > 0) && (actualResult > 0)) ||\n ((expectedResult < 0) && (actualResult < 0)) ||\n ((expectedResult == 0) && (actualResult == 0));\n\n assertTrue(name1 + \" compared to \" + name2 +\n \" returned invalid result of \" + actualResult +\n \" (should have same sign as \" + expectedResult + \")\",\n isValid);\n }\n\n }", "@Test\n public void compareTo() {\n Road road1 = new Road(cityA, cityB, 0);\n Road road2 = new Road(cityA, cityC, 1);\n Road road3 = new Road(cityB, cityA, 2);\n Road road4 = new Road(cityA, cityB, 3);\n /**Test of reflexivity x = x*/\n assertEquals(0,road1.compareTo(road1)); \n \n /**Test of transitivity of < a<b & b<c => a<c*/\n assertTrue(road1.compareTo(road2) < 0);\n assertTrue(road2.compareTo(road3) < 0);\n assertTrue(road1.compareTo(road3) < 0);\n \n /**Test of transitivity of > */\n assertTrue(road3.compareTo(road2) > 0);\n assertTrue(road2.compareTo(road1) > 0);\n assertTrue(road3.compareTo(road1) > 0);\n \n /**Test of antisymmetry a<=b & b<=a => a=b*/\n assertTrue(road1.compareTo(road4) >= 0);\n assertTrue(road1.compareTo(road4) <= 0);\n assertEquals(0,road1.compareTo(road4));\n \n /**Test of symmetry a=b <=> b=a*/\n assertEquals(0,road1.compareTo(road4));\n assertEquals(0,road4.compareTo(road1));\n assertTrue(road1.compareTo(road4) == road4.compareTo(road1));\n /**Both symmetry tests fail since the length of road1 and road4\n * are unequal. As a result we should compare lengths aswell,\n * however in the current iteration of the program we do not\n * need to compare lengths for the program to run as intended*/\n }", "public void getCTPfromQuery(List<String> queryTriplets, int dedGraphId, int indxLogCleanQuery) {\n\n int indxValue = -1;\n int indxLogQueryDedGraph = mapLogClQueryToDedGraph.get(indxLogCleanQuery);\n int indxNewTPDedGraph = -1;\n List<String> tmpTripletClean = null;\n List<Integer> allIdPats = null;\n List<Integer> deducedTPnotCoveredTimestamp = new LinkedList<>();\n String strDedQueryId = Integer.toString(dedGraphId);\n boolean flagTriplePatternOutOfTimeRange = false;\n\n //For all triple patterns\n for (int f = 0; f < queryTriplets.size(); f += 3) {\n\n tmpTripletClean = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(f, f + 3)));\n\n //Check if query is an Exclusive Group\n checkTPinEG(queryTriplets, tmpTripletClean, indxLogCleanQuery);\n\n //Check if query is a Bound Join implementation or it's a single TP query\n checkSingleTPorBoundJ(queryTriplets, tmpTripletClean, indxLogCleanQuery);\n\n //[CASE A] When both subjects and objects are variables, or inverseMapping is disabled\n if (tmpTripletClean.get(0).contains(\"?\") && tmpTripletClean.get(2).contains(\"?\") || !inverseMapping) {\n\n //A_(i) It's the frist time we see this CTP\n allIdPats = myDedUtils.getIdemCTPs(DTPCandidates, tmpTripletClean.get(0), tmpTripletClean.get(1), tmpTripletClean.get(2));\n\n if (allIdPats.isEmpty()) {\n\n myDedUtils.setNewCTPInfo(tmpTripletClean, \"\", indxLogCleanQuery, indxLogQueryDedGraph, strDedQueryId, \"\");\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", DTPCandidates.size() - 1);\n } //A_(ii) It's not the first time we identify it\n else {\n\n //Then, we must be sure that it's not an existing CTP\n for (int l = allIdPats.size() - 1; l >= 0; l--) {\n\n indxNewTPDedGraph = mapCTPtoDedGraph.get(allIdPats.get(l));\n\n //First we check it belongs to the same graph with previous identified CTP\n if (indxNewTPDedGraph != indxLogQueryDedGraph) {\n\n flagTriplePatternOutOfTimeRange = true;\n myDedUtils.setNewCTPInfo(tmpTripletClean, tmpTripletClean.get(0), indxLogCleanQuery, indxLogQueryDedGraph, strDedQueryId, \"_\" + allIdPats.size());\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", DTPCandidates.size() - 1);\n deducedTPnotCoveredTimestamp.add(DTPCandidates.size() - 1);\n break;\n } //if not, it's a new CTP (we distinguish them with \"_#number\")\n //This happens when Tjoin is not big enough to merge some subqueries\n //with same characteristics\n else {\n\n myDedUtils.updateCTPInfo(tmpTripletClean, \"\", indxLogCleanQuery, indxLogQueryDedGraph, allIdPats.get(l));\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", allIdPats.get(l));\n\n if ((DTPCandidates.get(allIdPats.get(l)).get(0).contains(\"?\") && DTPCandidates.get(allIdPats.get(l)).get(0).contains(\"_\"))\n || (DTPCandidates.get(allIdPats.get(l)).get(2).contains(\"?\") && DTPCandidates.get(allIdPats.get(l)).get(2).contains(\"_\"))) {\n\n deducedTPnotCoveredTimestamp.add(allIdPats.get(l));\n }\n\n break;\n }\n\n }\n\n }\n\n } //If subject or object is a constant, we repeat the procedure depending \n //on if it is a Single TP or part of BoundJoin\n else {\n\n if (inverseMapping) {\n\n indxValue = myDedUtils.getIndxConstant(tmpTripletClean);\n }\n\n setOrUpdateCTPList(tmpTripletClean, indxValue, strDedQueryId, indxLogCleanQuery);\n }\n\n }\n\n //check for an exclusive group relation between CTP\n //It could be a EG or NLEG\n if (queryTriplets.size() >= 6 && !flagTriplePatternOutOfTimeRange && !queries.get(indxLogCleanQuery).contains(\"UNION\")) {\n\n if (checkEGJoin(queryTriplets)) {\n for (int i = 0; i < deducedTPnotCoveredTimestamp.size(); i++) {\n if (mapDTPToAnyJoin.get(deducedTPnotCoveredTimestamp.get(i)) == null) {\n\n mapDTPToDeducedID.put(DTPCandidates.get(deducedTPnotCoveredTimestamp.get(i)), deducedTPnotCoveredTimestamp.get(i));\n mapDTPToAnyJoin.put(deducedTPnotCoveredTimestamp.get(i), -1);\n }\n }\n }\n }\n\n }", "public boolean DEBUG_compare(Alphabet other) {\n System.out.println(\"now comparing the alphabets this with other:\\n\"+this+\"\\n\"+other);\n boolean sameSlexic = true;\n for (String s : other.slexic.keySet()) {\n if (!slexic.containsKey(s)) {\n sameSlexic = false;\n break;\n }\n if (!slexic.get(s).equals(other.slexic.get(s))) {\n sameSlexic = false;\n break;\n }\n slexic.remove(s);\n }\n System.out.println(\"the slexic attributes are the same : \" + sameSlexic);\n boolean sameSlexicinv = true;\n for (int i = 0, limit = other.slexicinv.size(); i < limit; i++) {\n boolean temp = false;\n for (int j = i, limit2 = slexicinv.size() + i; j < limit2; j++) {\n int k = j % slexicinv.size();\n if (other.slexicinv.get(i).equals(slexicinv.get(k))) {\n temp = true;\n break;\n }\n }\n if (!temp) {\n sameSlexicinv = false;\n break;\n }\n\n }\n boolean sameSpair = true;\n System.out.println(\"the slexicinv attributes are the same : \" + sameSlexicinv);\n for (IntegerPair p : other.spair.keySet()) {\n if(!spair.containsKey(p)) {\n //if (!containsKey(spair, p)) {\n sameSpair = false;\n break;\n }\n //if (!(get(spair, p).equals(get(a.spair, p)))) {\n if (!spair.get(p).equals(other.spair.get(p))) {\n sameSpair = false;\n break;\n }\n }\n System.out.println(\"the spair attributes are the same : \" + sameSpair);\n boolean sameSpairinv = true;\n for (int i = 0, limit = other.spairinv.size(); i < limit; i++) {\n boolean temp = false;\n for (int j = i, limit2 = spairinv.size() + i; j < limit2; j++) {\n int k = j % spairinv.size();\n if (other.spairinv.get(i).equals(spairinv.get(k))) {\n temp = true;\n break;\n }\n }\n if (!temp) {\n sameSpairinv = false;\n break;\n }\n }\n System.out.println(\"the spairinv attributes are the same : \" + sameSpairinv);\n return (sameSpairinv && sameSpair && sameSlexic && sameSlexicinv);\n }", "private static void compareForReverseArrays() {\n Integer[] reverse1 = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n Integer[] reverse2 = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n Insertion insertion = new Insertion();\n insertion.analyzeSort(reverse1);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(reverse2);\n selection.getStat().printReport();\n }", "@Override\n\tpublic List getPaperCompare(int teaId) {\n\t\treturn null;\n\t}", "private void compareFirstPass() {\n this.oldFileNoMatch = new HashMap<String, SubsetElement>();\r\n Iterator<String> iter = this.oldFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this.newFile.containsKey(key)) {\r\n final String newKey = this.oldFile.get(key).getSubsetCode()\r\n + this.oldFile.get(key).getConceptCode();\r\n this.oldFileNoMatch.put(newKey, this.oldFile.get(key));\r\n }\r\n }\r\n\r\n // Now repeat going the other way, pulling all new file no matches into\r\n // newFileNoMatch\r\n this.newFileNoMatch = new HashMap<String, SubsetElement>();\r\n iter = this.newFile.keySet().iterator();\r\n while (iter.hasNext()) {\r\n final String key = iter.next();\r\n if (!this.oldFile.containsKey(key)) {\r\n final String newKey = this.newFile.get(key).getSubsetCode()\r\n + this.newFile.get(key).getConceptCode();\r\n this.newFileNoMatch.put(newKey, this.newFile.get(key));\r\n }\r\n }\r\n\r\n // dump the initial large HashMaps to reclaim some memory\r\n this.oldFile = null;\r\n this.newFile = null;\r\n }", "public void checkTPinEG(List<String> queryTriplets, List<String> currTP, int indxLogCleanQuery) {\n\n if (queryTriplets.size() > 6 && !queries.get(indxLogCleanQuery).contains(\"UNION\") && !queries.get(indxLogCleanQuery).contains(\"_0\")) {\n\n if (!currTP.get(0).contains(\"?\") || !currTP.get(2).contains(\"?\")) {\n\n mapDTPofEGNested.put(currTP, 1);\n }\n\n }\n }", "@Override\n public int compare(final Triangle t1, final Triangle t2) {\n final Vec4 min1 = t1.getMin();\n final Vec4 min2 = t2.getMin();\n return Double.compare(min1.get(splitType), min2.get(splitType));\n }", "public ArrayList<Boolean> compareOutput() {\r\n\r\n\t\ttry {\r\n\t\t\tFile inputFile = new File(this.inOutFilesDirectory + \"entrada.txt\");\r\n\t\t\tFile outputFile = new File(this.inOutFilesDirectory + \"saida.txt\");\r\n\r\n\t\t\tArrayList<String> testSuite = readTestCasesFromFile(inputFile);\r\n\t\t\tArrayList<String> expectedOutput = readExpectedOutputsFromFile(outputFile);\r\n\t\t\tArrayList<Boolean> testVerdicts = new ArrayList<Boolean>(\r\n\t\t\t\t\ttestSuite.size());\r\n\r\n\t\t\tPrintStream stdout = System.out;\r\n\t\t\tOurOutputStream ourOutputStream = new OurOutputStream();\r\n\r\n\t\t\tSystem.setOut(new PrintStream(ourOutputStream));\r\n\r\n\t\t\tURLClassLoader cl;\r\n\t\t\tClass<?> testClass;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tTestExecutionFileFilter tv = new TestExecutionFileFilter();\r\n\t\t\t\t// Gets the names of all java files inside sourceDirectory\r\n\t\t\t\tArrayList<String> listSource = tv\r\n\t\t\t\t\t\t.visitAllDirsAndFiles(new File(sourceDirectory));\r\n\t\t\t\tif (listSource.size() != 0) {\r\n\t\t\t\t\tString pathFile = tv.findMainClass();\r\n\t\t\t\t\tString path = pathFile.substring(sourceDirectory.length(),\r\n\t\t\t\t\t\t\tpathFile.lastIndexOf(File.separator) + 1).replace(\r\n\t\t\t\t\t\t\tFile.separator, \".\");\r\n\t\t\t\t\tcl = new URLClassLoader(new URL[] { new File(\r\n\t\t\t\t\t\t\tsourceDirectory).toURI().toURL() });\r\n\t\t\t\t\ttestClass = cl.loadClass(path + Constants.mainClass);\r\n\r\n\t\t\t\t\tClass<?>[] getArg1 = { (new String[1]).getClass() };\r\n\t\t\t\t\tMethod m = testClass.getMethod(\"main\", getArg1);\r\n\r\n\t\t\t\t\tfor (int i = 0; i < testSuite.size(); i++) {\r\n\t\t\t\t\t\t// Solution Execution\r\n\t\t\t\t\t\tString[] arg1 = testSuite.get(i).split(\r\n\t\t\t\t\t\t\t\tConstants.TEST_DATA_SEPARATOR);\r\n\t\t\t\t\t\tObject[] args = { arg1 };\r\n\t\t\t\t\t\tm.invoke(null, args);\r\n\r\n\t\t\t\t\t\t// Result comparison\r\n\t\t\t\t\t\ttestVerdicts.add(\r\n\t\t\t\t\t\t\t\ti,\r\n\t\t\t\t\t\t\t\tcompareActualAndExpectedOutputs(\r\n\t\t\t\t\t\t\t\t\t\tourOutputStream.toString(),\r\n\t\t\t\t\t\t\t\t\t\texpectedOutput.get(i)));\r\n\r\n\t\t\t\t\t\t// Stream cleaning\r\n\t\t\t\t\t\tourOutputStream.flushOurStream();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.setOut(stdout);\r\n\t\t\t\t\tsetResult(\"OK!\");\r\n\t\t\t\t\treturn testVerdicts;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t\tsetResult(null);\r\n\t\t\t}\r\n\t\t} catch (EasyCorrectionException ece) {\r\n\t\t\treturn new ArrayList<Boolean>();\r\n\t\t}\r\n\t\treturn new ArrayList<Boolean>();\r\n\t}", "public void printType(){\n l1= v1.distance(v2);\r\n l2= v1.distance(v3);\r\n l3= v2.distance(v3); \r\n if(l1 == l2 && l1==l3 && l2==l3)\r\n System.out.println(\"Equilateral\");\r\n if(l1 == l2 || l1==l3 || l2==l3)\r\n System.out.println(\"Isosceles\");\r\n else \r\n System.out.println(\"Scalene\"); \r\n \r\n }", "public Obs algorithm2_2(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY) {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t/**\n\t\t * Stops sets and time stamps for these stops\n\t\t */\n\t\tArrayList<String> trips = new ArrayList<>();\n\t\tArrayList<String> tstrips = new ArrayList<>();\n\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\t\tfor (int i = 0; i < towers.length; i++) {\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tbuffer.add(towers[i]);\n\t\t\ttbuffer.add(tstamps[i]);\n\n\t\t\tif (max_distance > dist_th) {\n\n\t\t\t\ttry {\n\t\t\t\t\t/**\n\t\t\t\t\t * if the time exceeds timing threshold, then check the\n\t\t\t\t\t * distance between towers. If this distance less than the\n\t\t\t\t\t * distance threshold, then previous tower is the end of the\n\t\t\t\t\t * current trip.\n\t\t\t\t\t *\n\t\t\t\t\t */\n\t\t\t\t\tjava.util.Date sTime = formatter.parse(tbuffer.get(0));\n\t\t\t\t\tjava.util.Date eTime = formatter.parse(tbuffer.get(tbuffer.size() - 1));\n\t\t\t\t\tcal.setTime(sTime);\n\t\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\tcal.setTime(eTime);\n\t\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\n\t\t\t\t\tif (time_diff > time_th) {\n\n\t\t\t\t\t\tif (trips.isEmpty()) {\n\t\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttrips.add(buffer.get(0));\n\t\t\t\t\t\t\ttstrips.add(tbuffer.get(0));\n\t\t\t\t\t\t\ttrips.add(RLM);\n\t\t\t\t\t\t\ttstrips.add(RLM);\n\t\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Reset buffers.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Reset maximum distances\n\t\t\t\t\t\t */\n\t\t\t\t\t\tmax_distance = 0;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Add the first observation as the origin of the first\n\t\t\t\t\t\t * trips and the remaining part of the buffer as the\n\t\t\t\t\t\t * traveling observations, else add the complete buffer\n\t\t\t\t\t\t * elements as the observation seq of the traveling\n\t\t\t\t\t\t * observables.\n\t\t\t\t\t\t */\n\t\t\t\t\t\ttrips.addAll(buffer);\n\t\t\t\t\t\ttstrips.addAll(tbuffer);\n\n\t\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t\tmax_distance = 0;\n\t\t\t\t\t}\n\t\t\t\t} catch (ParseException parseException) {\n\t\t\t\t\tSystem.err.println(\"ParseException\\t\" + parseException.getMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\ttrips.add(buffer.get(0));\n\t\t\ttstrips.add(tbuffer.get(0));\n\n\t\t}\n\n\t\t// System.out.println(\"stops:\\t\" + Arrays.toString(trips.toArray(new\n\t\t// String[trips.size()])).replaceAll(\" \", \"\").replaceAll(CLM + RLM +\n\t\t// CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\t\t// System.out.println(\"time stamps:\\t\" +\n\t\t// Arrays.toString(tstrips.toArray(new\n\t\t// String[tstrips.size()])).replaceAll(\" \", \"\").replaceAll(CLM + RLM +\n\t\t// CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\t\treturn new Obs(\n\t\t\t\tArrays.toString(trips.toArray(new String[trips.size()])).replaceAll(\" \", \"\")\n\t\t\t\t\t\t.replaceAll(CLM + RLM + CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"),\n\t\t\t\tArrays.toString(tstrips.toArray(new String[tstrips.size()])).replaceAll(\" \", \"\")\n\t\t\t\t\t\t.replaceAll(CLM + RLM + CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\n\t}", "private boolean compareBookedTicketsMap(Map<Integer, BookTickets> actualBookingTicketHashMap,Map<Integer, BookTickets> expectedBookingTicketHashMap) {\t\t\n\t\tboolean compareFlag = false;\n\t\tif(!actualBookingTicketHashMap.isEmpty()) {\n\t\t\tfor (int eachEntry : actualBookingTicketHashMap.keySet()) {\n\t\t\t\tBookTickets actualBookTicketObject = actualBookingTicketHashMap.get(eachEntry);\n\t\t\t\t\n\t\t\t\tBookTickets expectedBookTicketObject = expectedBookingTicketHashMap.get(eachEntry);\n\t\t\t\t\n\t\t\t\tif(actualBookTicketObject.getRefNumber() == expectedBookTicketObject.getRefNumber() && actualBookTicketObject.getNumbOfSeats() == expectedBookTicketObject.getNumbOfSeats()) {\n\t\t\t\t\tif(actualBookTicketObject.getSeats().equals(expectedBookTicketObject.getSeats()) && actualBookTicketObject.isBookingConfirmed() == expectedBookTicketObject.isBookingConfirmed()){\n\t\t\t\t\t\tcompareFlag = true;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tcompareFlag = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcompareFlag = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\n return compareFlag; \n\t}", "public Obs algorithm2_3(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY) {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t/**\n\t\t * Stops sets and time stamps for these stops\n\t\t */\n\t\tArrayList<String> trips = new ArrayList<>();\n\t\tArrayList<String> tstrips = new ArrayList<>();\n\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\t\tfor (int i = 0; i < towers.length; i++) {\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// buffer.add(towers[i]);\n\t\t\t// tbuffer.add(tstamps[i]);\n\t\t\tif (max_distance > dist_th) {\n\n\t\t\t\ttry {\n\t\t\t\t\t/**\n\t\t\t\t\t * if the time exceeds timing threshold, then check the\n\t\t\t\t\t * distance between towers. If this distance less than the\n\t\t\t\t\t * distance threshold, then previous tower is the end of the\n\t\t\t\t\t * current trip.\n\t\t\t\t\t *\n\t\t\t\t\t */\n\t\t\t\t\tjava.util.Date sTime = formatter.parse(tbuffer.get(0));\n\t\t\t\t\tjava.util.Date eTime = formatter.parse(tstamps[i]);\n\t\t\t\t\tcal.setTime(sTime);\n\t\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\tcal.setTime(eTime);\n\t\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\n\t\t\t\t\tif (time_diff >= time_th) {\n\n\t\t\t\t\t\tif (trips.isEmpty()) {\n\t\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttrips.add(buffer.get(0));\n\t\t\t\t\t\t\ttstrips.add(tbuffer.get(0));\n\t\t\t\t\t\t\ttrips.add(RLM);\n\t\t\t\t\t\t\ttstrips.add(RLM);\n\t\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Reset buffers.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Reset maximum distances\n\t\t\t\t\t\t */\n\t\t\t\t\t\tmax_distance = 0;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Add the first observation as the origin of the first\n\t\t\t\t\t\t * trips and the remaining part of the buffer as the\n\t\t\t\t\t\t * traveling observations, else add the complete buffer\n\t\t\t\t\t\t * elements as the observation seq of the traveling\n\t\t\t\t\t\t * observables.\n\t\t\t\t\t\t */\n\t\t\t\t\t\ttrips.addAll(buffer);\n\t\t\t\t\t\ttstrips.addAll(tbuffer);\n\n\t\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t\tmax_distance = 0;\n\t\t\t\t\t}\n\t\t\t\t} catch (ParseException parseException) {\n\t\t\t\t\tSystem.err.println(\"ParseException\\t\" + parseException.getMessage());\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tbuffer.add(towers[i]);\n\t\t\ttbuffer.add(tstamps[i]);\n\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\ttrips.add(buffer.get(0));\n\t\t\ttstrips.add(tbuffer.get(0));\n\n\t\t}\n\n\t\t// System.out.println(\"stops:\\t\" + Arrays.toString(trips.toArray(new\n\t\t// String[trips.size()])).replaceAll(\" \", \"\").replaceAll(CLM + RLM +\n\t\t// CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\t\t// System.out.println(\"time stamps:\\t\" +\n\t\t// Arrays.toString(tstrips.toArray(new\n\t\t// String[tstrips.size()])).replaceAll(\" \", \"\").replaceAll(CLM + RLM +\n\t\t// CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\t\treturn new Obs(\n\t\t\t\tArrays.toString(trips.toArray(new String[trips.size()])).replaceAll(\" \", \"\")\n\t\t\t\t\t\t.replaceAll(CLM + RLM + CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"),\n\t\t\t\tArrays.toString(tstrips.toArray(new String[tstrips.size()])).replaceAll(\" \", \"\")\n\t\t\t\t\t\t.replaceAll(CLM + RLM + CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\n\t}", "public Obs algorithm2(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY) {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t/**\n\t\t * trips sets and time stamps for these stops\n\t\t */\n\t\tArrayList<String> trips = new ArrayList<>();\n\t\tArrayList<String> tstrips = new ArrayList<>();\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\t\ttry {\n\n\t\t\tdouble max_distance = 0;\n\t\t\tint time_diff = 0;\n\t\t\tfor (int i = 0; i < towers.length; i++) {\n\t\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tbuffer.add(towers[i]);\n\t\t\t\ttbuffer.add(tstamps[i]);\n\n\t\t\t\tif (max_distance > dist_th) {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * if the time exceeds timing threshold, then check the\n\t\t\t\t\t * distance between towers. If this distance less than the\n\t\t\t\t\t * distance threshold, then previous tower is the end of the\n\t\t\t\t\t * current trip.\n\t\t\t\t\t *\n\t\t\t\t\t */\n\t\t\t\t\tjava.util.Date sTime = formatter.parse(tbuffer.get(0));\n\t\t\t\t\tjava.util.Date eTime = formatter.parse(tbuffer.get(tbuffer.size() - 1));\n\t\t\t\t\tcal.setTime(sTime);\n\t\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\tcal.setTime(eTime);\n\t\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\n\t\t\t\t\tif (time_diff > time_th) {\n\n\t\t\t\t\t\tif (trips.isEmpty()) {\n\t\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t\t\ttrips.add(RLM);\n\t\t\t\t\t\t\ttstrips.add(RLM);\n\t\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Reset buffers.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Reset maximum distances\n\t\t\t\t\t\t */\n\t\t\t\t\t\tmax_distance = 0;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Add the first observation as the origin of the first\n\t\t\t\t\t\t * trips and the remaining part of the buffer as the\n\t\t\t\t\t\t * traveling observations, else add the complete buffer\n\t\t\t\t\t\t * elements as the observation seq of the traveling\n\t\t\t\t\t\t * observables.\n\t\t\t\t\t\t */\n\t\t\t\t\t\ttrips.addAll(buffer);\n\t\t\t\t\t\ttstrips.addAll(tbuffer);\n\n\t\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t\tmax_distance = 0;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (NumberFormatException numberFormatException) {\n\t\t\tSystem.err.println(\"NumberFormatException\\t\" + numberFormatException.getMessage());\n\t\t} catch (ParseException parseException) {\n\t\t\tSystem.err.println(\"ParseException\\t\" + parseException.getMessage());\n\t\t}\n\t\tif (!buffer.isEmpty()) {\n\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\n\t\t}\n\n\t\treturn new Obs(\n\t\t\t\tArrays.toString(trips.toArray(new String[trips.size()])).replaceAll(\" \", \"\")\n\t\t\t\t\t\t.replaceAll(CLM + RLM + CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"),\n\t\t\t\tArrays.toString(tstrips.toArray(new String[tstrips.size()])).replaceAll(\" \", \"\")\n\t\t\t\t\t\t.replaceAll(CLM + RLM + CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\t}", "public static void verifyGptListEquals(ImList<GuideProbeTargets> lst1, ImList<GuideProbeTargets> lst2) {\n assertEquals(lst1.size(), lst2.size());\n for (int i=0; i<lst1.size(); ++i) verifyGptEquals(lst1.get(i), lst2.get(i));\n }", "public void checkSingleTPorBoundJ(List<String> queryTriplets, List<String> currTP, int indxLogCleanQuery) {\n\n //save all RAW triple patterns participating into a bound JOIN\n if (queries.get(indxLogCleanQuery).contains(\"UNION\") && queries.get(indxLogCleanQuery).contains(\"_0\")) {\n\n mapSrcTPtoBoundJoin.put(currTP, 1);\n }\n\n if (queryTriplets.size() == 3 && !queries.get(indxLogCleanQuery).contains(\"UNION\") && !queries.get(indxLogCleanQuery).contains(\"_0\")) {\n\n if (!currTP.get(0).contains(\"?\") || !currTP.get(2).contains(\"?\")) {\n\n mapSrcTPtoSingleTPQuery.put(currTP, 1);\n }\n\n }\n }", "public Vertex[] Vertices (TrianglePair pair)\n\t{\n\t\tFace tri1 = trimesh.faces[pair.face1];\n\t\tFace tri2 = trimesh.faces[pair.face2];\n\t\tVertex[] verts1 = new Vertex[3];\n\t\tVertex[] verts2 = new Vertex[3];\n\t\tverts1[0] = trimesh.vertices[tri1.fvlist[0]];\n\t\tverts1[1] = trimesh.vertices[tri1.fvlist[1]];\n\t\tverts1[2] = trimesh.vertices[tri1.fvlist[2]];\n\t\tverts2[0] = trimesh.vertices[tri2.fvlist[0]];\n\t\tverts2[1] = trimesh.vertices[tri2.fvlist[1]];\n\t\tverts2[2] = trimesh.vertices[tri2.fvlist[2]];\n\t\tboolean[] equalVerts = new boolean[9];\n\t\tVertex[] retverts = new Vertex[4];\n\t\tequalVerts[0] = (verts1[0] == verts2[0]);\n\t\tequalVerts[1] = (verts1[0] == verts2[1]);\n\t\tequalVerts[2] = (verts1[0] == verts2[2]);\n\t\tequalVerts[3] = (verts1[1] == verts2[0]);\n\t\tequalVerts[4] = (verts1[1] == verts2[1]);\n\t\tequalVerts[5] = (verts1[1] == verts2[2]);\n\t\tequalVerts[6] = (verts1[2] == verts2[0]);\n\t\tequalVerts[7] = (verts1[2] == verts2[1]);\n\t\tequalVerts[8] = (verts1[2] == verts2[2]);\n\t\tint eqto1in1 = 0, eqto1in2 = 0, eqto2in1 = 0, eqto2in2 = 0;\n\t\tint i;\n\t\tfor (i = 0; i < 9; i++)\n\t\t{\n\t\t\tif (equalVerts[i])\n\t\t\t{\n\t\t\t\teqto1in1 = i / 3;\n\t\t\t\teqto1in2 = i % 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (i = 8; i >= 0; i--)\n\t\t{\n\t\t\tif (equalVerts[i])\n\t\t\t{\n\t\t\t\teqto2in1 = i / 3;\n\t\t\t\teqto2in2 = i % 3;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tretverts[0] = verts1[eqto1in1];\n\t\tretverts[1] = verts1[eqto2in1];\n\t\tint lone1, lone2;\n\t\tif (eqto1in1 == 0)\n\t\t{\n\t\t\tif (eqto2in1 == 1)\n\t\t\t\tlone1 = 2;\n\t\t\telse // eqto2in1 == 2\n\t\t\t\tlone1 = 1;\n\t\t}\n\t\telse if (eqto1in1 == 1)\n\t\t{\n\t\t\tif (eqto2in1 == 0)\n\t\t\t\tlone1 = 2;\n\t\t\telse // eqto2in1 == 2\n\t\t\t\tlone1 = 0;\n\t\t}\n\t\telse // eqto1in1 == 2\n\t\t{\n\t\t\tif (eqto2in1 == 0)\n\t\t\t\tlone1 = 1;\n\t\t\telse // eqto2in1 == 1\n\t\t\t\tlone1 = 0;\n\t\t}\n\t\tif (eqto1in2 == 0)\n\t\t{\n\t\t\tif (eqto2in2 == 1)\n\t\t\t\tlone2 = 2;\n\t\t\telse // eqto2in2 == 2\n\t\t\t\tlone2 = 1;\n\t\t}\n\t\telse if (eqto1in2 == 1)\n\t\t{\n\t\t\tif (eqto2in2 == 0)\n\t\t\t\tlone2 = 2;\n\t\t\telse // eqto2in2 == 2\n\t\t\t\tlone2 = 0;\n\t\t}\n\t\telse // eqto1in2 == 2\n\t\t{\n\t\t\tif (eqto2in2 == 0)\n\t\t\t\tlone2 = 1;\n\t\t\telse // eqto2in2 == 1\n\t\t\t\tlone2 = 0;\n\t\t}\n\t\tretverts[2] = verts1[lone1];\n\t\tretverts[3] = verts2[lone2];\n\t\treturn retverts;\n\t}", "@Test\r\n\tpublic void testCompareCase1() throws IOException {\r\n\t\tPerson p1 = DataUtil.readDataFromFile(\"test/data/case1/case1-person1.json\", Person.class);\r\n\t\tPerson p2 = DataUtil.readDataFromFile(\"test/data/case1/case1-person2.json\", Person.class);\r\n\r\n\t\tIContext ctx = ObjectCompare.compare(p1, p2);\r\n\t\tdebug(ctx.getDifferences());\r\n\t\tAssert.assertTrue(ctx.hasDifferences());\r\n\t\tAssert.assertEquals(4, ctx.getDifferences().size());\r\n\t}", "@Test(dataProvider=\"flightDetails\")\n\tpublic void BookFlight_for_OneWayTrip(String FromCity,String ToCity,int day,int month,int year) throws InterruptedException, IOException {\n\t\tflightSearch.SelectFlight(FromCity, ToCity, day, month, year);\n\t\tSelectFlight.clickContinue();\n\t\twaitForElement(SelectFlight.lbel_EconomyFlightFare, driver);\n\t\t\n\t\t/*\n\t\t * Below code is to get Fares of all Economy class flights displayed on page \n\t\t * and store in to array with name EconomySort[]\n\t\t * \n\t\t */\n\t\tint allEconomyFlightFare = SelectFlight.btn_EconomyFlightFare.size();\n\t\tint EconomySort[] = new int[allEconomyFlightFare-1];\n\t\tint tempFare;\n\t\tfor(int economyFlight =0;economyFlight<allEconomyFlightFare;economyFlight++) {\n\t\t\tint flightFare = Integer.parseInt(SelectFlight.findEconomyClassFlights(economyFlight+1).getText());\n\t\t\tEconomySort[economyFlight] = flightFare ;\t\n\t\t}\n\t\t/*\n\t\t * Below code is to sort the Economy class flight fares in Ascending order\n\t\t * So that in later method we will have to select the first appearing flight\n\t\t * fare as its most cheaper\n\t\t * \n\t\t */\n\t\tfor(int economyFlight =0;economyFlight<allEconomyFlightFare;economyFlight++) {\n\t\t\tfor(int economyFlightcompare =economyFlight+1;economyFlightcompare<allEconomyFlightFare;economyFlightcompare++) {\n\t\t\t\ttempFare = EconomySort[economyFlight];\n\t\t\t\tEconomySort[economyFlight] = EconomySort[economyFlightcompare];\n\t\t\t\tEconomySort[economyFlightcompare] =tempFare;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * Below code is to display the Economy class flight fares sorted in Ascending \n\t\t * order as its an one of the task in assignment given\n\t\t * \n\t\t */\n\t\tfor(int economyFlight =0;economyFlight<allEconomyFlightFare;economyFlight++) {\n\t\t\tSystem.out.println(EconomySort[economyFlight]);\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * Below code is to Get the first cheapFlight and click select it will \n\t\t * navigate to next page and control will wait till Continue button is enabled and visible \n\t\t * making sure next page is loaded completely\n\t\t * \n\t\t */\n\t\tWebElement cheapFlight = SelectFlight.findEconomyClassFlights(0);\n\t\tcheapFlight.click();\n\t\twaitForElement(SelectFlight.btn_Continue, driver);\n\t\t\n\t\t/*\n\t\t * Below code is to Get the Trip date from Trip date web page which is checkout page\n\t\t * And verify the actual trip date with expected date\n\t\t */\n\t\tWebElement TripdateFromTripDetailsPage = SelectFlight.TripDateFromTripDetailsPAge(ExpTripDate);\n\t\tString actualTrpDate = TripdateFromTripDetailsPage.getText();\n\t\tAssert.assertEquals(actualTrpDate, ExpTripDate);\n\t\t\n\t\t/*\n\t\t * Below code is to take a screen shot of the checkout page which is trip details page \n\t\t * and quit the browser as its one of the requirements of the task to be performed to \n\t\t * complete the assignment \n\t\t */\n\t\tcaptureScreen(driver, timeStamp+\"TripDetails\");\n\t\ttearDown();\n\t}", "public int compareTo(Object coffee1, Object coffee2){\r\n\r\n System.out.println(\"compareTo being called on \" + coffee1 + \" and \" + coffee2);\r\n\r\n if (coffee1.price - coffee2.price < 0){\r\n return -1;\r\n }\r\n else if (coffee1.price == coffee2.price){\r\n if (length(coffee1.company) < length(coffee2.company)){\r\n return -1\r\n }\r\n else if (coffee1.company == coffee2.company){\r\n if (length(coffee1.color)) < length(coffee2.color){\r\n return -1\r\n }\r\n else if (coffee1.color == coffee2.color){\r\n return 0\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1;\r\n }\r\n}", "protected abstract int doCompare(Object o1, Object o2);", "@Test(priority = 6)\n\tpublic void compare_Weather_Data() {\n\t\tComparator.userCompareVariation(weatherMap.get(\"Temperature\").toString(),\n\t\t\t\tweatherResponse_city.getJSONObject(\"main\").get(\"temp\").toString());\n\t}", "@Test\n public void testEquals03() {\n System.out.println(\"equals\");\n\n Set<User> users = new HashSet<>();\n users.add(new User(\"nick0\", \"[email protected]\"));\n users.add(new User(\"nick1\", \"[email protected]\"));\n users.add(new User(\"nick2\", \"[email protected]\"));\n users.add(new User(\"nick3\", \"[email protected]\"));\n users.add(new User(\"nick4\", \"[email protected]\"));\n users.add(new User(\"nick5\", \"[email protected]\"));\n users.add(new User(\"nick6\", \"[email protected]\"));\n users.add(new User(\"nick7\", \"[email protected]\"));\n users.add(new User(\"nick8\", \"[email protected]\"));\n users.add(new User(\"nick9\", \"[email protected]\"));\n\n Set<City> cities = new HashSet<>();\n cities.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n cities.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n cities.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n cities.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n cities.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n cities.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n cities.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n cities.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n cities.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n cities.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n SocialNetwork otherSN = new SocialNetwork(users, cities);\n boolean result = sn10.equals(otherSN);\n assertTrue(result);\n }", "private boolean checkComp() {\n\t\tfor (int i = 0; i < comp.length; i++) {\n\t\t\tfor (int j = 0; j < comp[i].length; j++) {\n\t\t\t\tif (comp[i][j] != answer[i][j]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public Obs algorithm2_5(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY) {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t/**\n\t\t * Stops sets and time stamps for these stops\n\t\t */\n\t\tArrayList<String> trips = new ArrayList<>();\n\t\tArrayList<String> tstrips = new ArrayList<>();\n\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\n\t\tfor (int i = 0; i < towers.length;) {\n\t\t\tboolean flag = true;\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// buffer.add(towers[i]);\n\t\t\t// tbuffer.add(tstamps[i]);\n\t\t\tif (max_distance > dist_th) {\n\t\t\t\tjava.util.Date sTime;\n\t\t\t\tjava.util.Date eTime;\n\t\t\t\tflag = false;\n\t\t\t\ttry {\n\t\t\t\t\t/**\n\t\t\t\t\t * if the time exceeds timing threshold, then check the\n\t\t\t\t\t * distance between towers. If this distance less than the\n\t\t\t\t\t * distance threshold, then previous tower is the end of the\n\t\t\t\t\t * current trip.\n\t\t\t\t\t *\n\t\t\t\t\t */\n\t\t\t\t\tsTime = formatter.parse(tbuffer.get(0));\n\t\t\t\t\teTime = formatter.parse(tstamps[i]);\n\n\t\t\t\t\tcal.setTime(sTime);\n\n\t\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\tcal.setTime(eTime);\n\t\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\t\t\t\t} catch (ParseException parseException) {\n\t\t\t\t\tSystem.err.println(\"ParseException\\t\" + parseException.getMessage());\n\t\t\t\t}\n\n\t\t\t\tif (time_diff >= time_th) {\n\t\t\t\t\tflag = true;\n\t\t\t\t\tif (trips.isEmpty()) {\n\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttrips.add(buffer.get(0));\n\t\t\t\t\t\ttstrips.add(tbuffer.get(0));\n\t\t\t\t\t\ttrips.add(RLM);\n\t\t\t\t\t\ttstrips.add(RLM);\n\t\t\t\t\t\ttrips.add(buffer.get(buffer.size() - 1));\n\t\t\t\t\t\ttstrips.add(tbuffer.get(buffer.size() - 1));\n\t\t\t\t\t}\n\t\t\t\t\t/**\n\t\t\t\t\t * Reset buffers.\n\t\t\t\t\t */\n\t\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t\t/**\n\t\t\t\t\t * Reset maximum distances\n\t\t\t\t\t */\n\t\t\t\t\tmax_distance = 0;\n\n\t\t\t\t} else {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Add the first observation as the origin of the first\n\t\t\t\t\t * trips and the remaining part of the buffer as the\n\t\t\t\t\t * traveling observations, else add the complete buffer\n\t\t\t\t\t * elements as the observation seq of the traveling\n\t\t\t\t\t * observables.\n\t\t\t\t\t */\n\t\t\t\t\ttrips.add(buffer.get(0));\n\t\t\t\t\ttstrips.add(tbuffer.get(0));\n\n\t\t\t\t\tbuffer.remove(0);\n\t\t\t\t\ttbuffer.remove(0);\n\n\t\t\t\t\t// i--; // to keep a as it is.\n\n\t\t\t\t\t// buffer = new ArrayList<>();\n\t\t\t\t\t// tbuffer = new ArrayList<>();\n\t\t\t\t\tmax_distance = 0;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (flag) {\n\t\t\t\tbuffer.add(towers[i]);\n\t\t\t\ttbuffer.add(tstamps[i]);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\ttrips.add(buffer.get(0));\n\t\t\ttstrips.add(tbuffer.get(0));\n\n\t\t}\n\n\t\t// System.out.println(\"stops:\\t\" + Arrays.toString(trips.toArray(new\n\t\t// String[trips.size()])).replaceAll(\" \", \"\").replaceAll(CLM + RLM +\n\t\t// CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\t\t// System.out.println(\"time stamps:\\t\" +\n\t\t// Arrays.toString(tstrips.toArray(new\n\t\t// String[tstrips.size()])).replaceAll(\" \", \"\").replaceAll(CLM + RLM +\n\t\t// CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\t\treturn new Obs(\n\t\t\t\tArrays.toString(trips.toArray(new String[trips.size()])).replaceAll(\" \", \"\")\n\t\t\t\t\t\t.replaceAll(CLM + RLM + CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"),\n\t\t\t\tArrays.toString(tstrips.toArray(new String[tstrips.size()])).replaceAll(\" \", \"\")\n\t\t\t\t\t\t.replaceAll(CLM + RLM + CLM, RLM).replace(\"[\", \"\").replace(\"]\", \"\"));\n\n\t}", "private static boolean compareList(List<Object> l1, List<Object> l2)\n {\n int count=0;\n for (Object o : l1)\n {\n Object temp = o;\n for (Object otemp : l2)\n {\n if (EqualsBuilder.reflectionEquals(temp, otemp))\n {\n count++;\n }\n }\n\n }\n\n if(count == l1.size()) return true;\n return false;\n\n }", "@Override\n\t\t\tpublic int compare(Set<HitVertex> arg0, Set<HitVertex> arg1) {\n\t\t\t\treturn arg1.size() - arg0.size();\n\t\t\t}", "public Obs findStops_trips(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY)\n\t\t\tthrows ParseException {\n\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t/**\n\t\t * Stops sets and time stamps for these stops\n\t\t */\n\t\tString stops = towers[0];\n\t\tString tstops = tstamps[0];\n\n\t\t/**\n\t\t * Buffers: <\\n buffer holds sequence of observations that did not meet\n\t\t * buffer clearance criterias.> <\\n tbuffer holds time stamps values\n\t\t * corresponding to those in the buffer.>\n\t\t */\n\t\tArrayList<String> buffer = new ArrayList<>();\n\t\tArrayList<String> tbuffer = new ArrayList<>();\n\n\t\tdouble max_distance = 0;\n\t\tint time_diff = 0;\n\t\tfor (int i = 0; i < towers.length; i++) {\n\t\t\tVertex a = towersXY.get(Integer.parseInt(towers[i]));\n\t\t\tfor (int j = 0; j < buffer.size(); j++) {\n\t\t\t\tVertex b = towersXY.get(Integer.parseInt(buffer.get(j)));\n\t\t\t\t// System.out.println(\"b\"+Integer.parseInt(buffer.get(j)));\n\t\t\t\tdouble tmp_distance = eculidean(a.getX(), b.getX(), a.getY(), b.getY());\n\t\t\t\tif (tmp_distance > max_distance) {\n\t\t\t\t\tmax_distance = tmp_distance;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tbuffer.add(towers[i]);\n\t\t\ttbuffer.add(tstamps[i]);\n\n\t\t\tif (max_distance > dist_th) {\n\n\t\t\t\t/**\n\t\t\t\t * if the time exceeds timing threshold, then check the distance\n\t\t\t\t * between towers. If this distance less than the distance\n\t\t\t\t * threshold, then previous tower is the end of the current\n\t\t\t\t * trip.\n\t\t\t\t *\n\t\t\t\t */\n\t\t\t\tjava.util.Date sTime = formatter.parse(tbuffer.get(0));\n\t\t\t\tjava.util.Date eTime = formatter.parse(tbuffer.get(tbuffer.size() - 1));\n\t\t\t\tcal.setTime(sTime);\n\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tcal.setTime(eTime);\n\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\ttime_diff = Math.abs((ehour - hour)) * HOUR + (eminute - minute);\n\n\t\t\t\tif (time_diff > time_th) {\n\t\t\t\t\t// if (buffer.size() >= trip_length) {\n\t\t\t\t\tif (!stops.isEmpty()) {\n\t\t\t\t\t\tstops += CLM;\n\t\t\t\t\t\ttstops += CLM;\n\t\t\t\t\t}\n\t\t\t\t\t/**\n\t\t\t\t\t * Add start and end of the trips to the stop sequences\n\t\t\t\t\t */\n\t\t\t\t\tstops += buffer.get(buffer.size() - 1);\n\t\t\t\t\ttstops += tbuffer.get(tbuffer.size() - 1);\n\n\t\t\t\t\t// }\n\t\t\t\t}\n\t\t\t\t// else {\n\t\t\t\tbuffer = new ArrayList<>();\n\t\t\t\ttbuffer = new ArrayList<>();\n\t\t\t\t/**\n\t\t\t\t * Reset maximum distances\n\t\t\t\t */\n\t\t\t\tmax_distance = 0;\n\t\t\t\t// }\n\n\t\t\t}\n\n\t\t}\n\n\t\tif (!buffer.isEmpty()) {\n\t\t\t// if (buffer.size() >= trip_length) {\n\t\t\tif (!stops.isEmpty()) {\n\t\t\t\tstops += CLM;\n\t\t\t\ttstops += CLM;\n\t\t\t}\n\t\t\t/**\n\t\t\t * Add start and end of the trips to the stop sequences\n\t\t\t */\n\t\t\tstops += buffer.get(buffer.size() - 1);\n\t\t\ttstops += tbuffer.get(tbuffer.size() - 1);\n\n\t\t\t// }\n\t\t}\n\n\t\t// System.out.println(\"stops:\\t\" + stops);\n\t\t// System.out.println(\"time stamps:\\t\" + tstops);\n\t\treturn new Obs(stops, tstops);\n\n\t}", "@Test\n public void checkIfEmptyLabelRecord() {\n triplets.add(new Triplets<String, Integer, Double>(\"\", 1, 90.00));\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertEquals(\"\", resultTriplet.getLabel());\n Assert.assertEquals(new Integer(1), resultTriplet.getImageNumber());\n Assert.assertEquals(new Double(90.0), resultTriplet.getMatchConfidence());\n }", "public static void main(String[] args) {\n Trip diving = new Trip(\"ScubaDiving\", new Money(2000.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n LocalDate.of(2021, 5, 3),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER)));\n\n // trip 2 - freediving trip\n // price per person\n Trip freeDiving = new Trip(\"FreeDiving\",\n new Money(500.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.FREEDIVING_FINS, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_MASK)),\n LocalDate.of(2021, 8, 18),\n new HashSet<Qualification>(Arrays.asList(Qualification.AIDA_2)));\n\n // Lynn person detail\n Person lynn = new Person(\"Lynn\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n new Money(2000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 5, 1), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER)));\n\n // Tao person detail\n Person tao = new Person(\"TAO\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS, Gear.FREEDIVING_MASK, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_FINS)),\n new Money(10000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 8, 18), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER, Qualification.AIDA_2, Qualification.AIDA_3)));\n\n HashSet<Person> persons = new HashSet<>();\n HashSet<Trip> trips = new HashSet<>();\n\n persons.add(lynn);\n persons.add(tao);\n trips.add(diving);\n trips.add(freeDiving);\n\n// findTrip(persons, trips);\n\n Trip tripToGo = tripWithMaxPersons(persons, trips);\n\n System.out.println(\"Trip to go: \" + tripToGo.getName());\n System.out.println(\"=================================\");\n\n\n HashMap<Trip, HashSet<Person>> tripsAndPersons = findWhoReady(persons, trips);\n for(Trip trip: tripsAndPersons.keySet()){\n System.out.println(\"Trip \" + trip.getName() + \" ready: \" );\n HashSet<Person> personPerTrip = tripsAndPersons.get(trip);\n for(Person person: personPerTrip) {\n System.out.println(person.getName());\n }\n System.out.println(\"-------------------------------\");\n\n }\n\n\n // currency EURO\n // exchange rate?\n\n\n\n }", "@Override\n public int compare( ReservaViaje r1, ReservaViaje r2 )\n {\n int diff = ( int ) (r1.darCostoTotal( )-r2.darCostoTotal( ));\n return diff==0?0:(diff>0?1:-1);\n }", "@Test\r\n\tpublic void testCompareCase4() throws IOException {\r\n\t\tPerson p1 = DataUtil.readDataFromFile(\"test/data/case4/case4-person1.json\", Person.class);\r\n\t\tPerson p2 = DataUtil.readDataFromFile(\"test/data/case4/case4-person2.json\", Person.class);\r\n\r\n\t\t// Custom context\r\n\t\tIContext ctx = ObjectCompare.compare(p1, p2);\r\n\t\tdebug(ctx.getDifferences());\r\n\t\tAssert.assertTrue(ctx.hasDifferences());\r\n\t}", "public static int compareSafetyComputations() {\n\t\tSystem.out.println(\"Distance,Duration,Exhalation,Derived,Inferred\");\n\t\tfinal boolean[] derived_results = new boolean[10];\n\t\tfinal boolean[] inferred_results = new boolean[10];\n\t\tint correctInferences = 0;\n\t\tfor(int i = 0; i < derived_results.length; i++) {\n\t\t\tfinal int randomDistance = (int) (Math.random() * (LARGE_DISTANCE * 3));\n\t\t\tfinal int randomDuration = (int) (Math.random() * (LARGE_DURATION * 3));\n\t\t\tfinal int randomExhalation = (int) (Math.random() * (LARGE_EXHALATION_LEVEL * 3));\n\t\t\tderived_results[i] = isDerivedSafe(randomDistance, randomDuration, randomExhalation);\n\t\t\tinferred_results[i] = isInferredSafe(randomDistance, randomDuration, randomExhalation);\n\t\t\tSystem.out.println(randomDistance + COMMA + randomDuration + COMMA \n\t\t\t\t\t\t\t\t+ randomExhalation + COMMA + derived_results[i] + COMMA\n\t\t\t\t\t\t\t\t+ inferred_results[i]);\n\t\t}\n\t\tfor(int j = 0; j < derived_results.length; j++) {\n\t\t\tif(derived_results[j] == inferred_results[j]) {\n\t\t\t\tcorrectInferences++;\n\t\t\t}\n\t\t}\n\t\treturn correctInferences;\n\t}", "@Override\n\t\tpublic int compare(PathfindingNode object1, PathfindingNode object2) \n\t\t{\n\t\t\treturn _totalCosts.get(object1) - _totalCosts.get(object2);\n\t\t}", "public void triplet(int[] b,int n){\r\n\t\tint count=0;\r\n\t\tfor(int i=0;i<n;i++){\r\n\t\t\tfor(int j=i+1;j<n-1;j++){\r\n\t\t\t\tfor(int k=j+1;k<n-2;k++){\r\n\t\t\t\t\tif(b[i]+b[j]+b[k]==0){\r\n\t\t\t\t\t\tSystem.out.println(b[i]+\" \"+b[j]+\" \"+b[k]);\r\n\t\t\t\t\t\tcount++;\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\tSystem.out.println(\"no of distinct triplet is:\"+count);\t\r\n\r\n\t}", "public static String compareTags(ArrayList<Token> results, ArrayList<Token> goldStandard, String key, String tagType) {\r\n\r\n if (results.size() != goldStandard.size()) {\r\n System.out.println(\"Tokens list lengths differ\");\r\n }\r\n\r\n System.out.println(\"\\n\\n\\nSTARTING COMPARISON\"\r\n + \"\\n\");\r\n\r\n int trueNegatives = 0;\r\n int falseNegatives = 0;\r\n int truePositives = 0;\r\n int falsePositives = 0;\r\n int tokenMismatches = 0;\r\n\r\n //Detect mismatches on tokens which differ between results and standard\r\n //Unless both are tagged \"other\"\r\n for (int i = 0; i < results.size(); i++) {\r\n if (!results.get(i).token.equalsIgnoreCase(goldStandard.get(i).token) // && !results.get(goldIter).tagset.equalsIgnoreCase(\"Other\")\r\n // && !goldStandard.get(goldIter).tagset.equalsIgnoreCase(\"Other\")\r\n ) {\r\n tokenMismatches++;\r\n System.out.println(\"Mismatch: \" + results.get(i).toString() + \" \\t\\t \" + goldStandard.get(i).toString());\r\n System.out.println(\"Warning: Results invalid due to \" + tokenMismatches + \" token mismatches\");\r\n }\r\n\r\n if (results.get(i).tags.get(tagType).equalsIgnoreCase(key)\r\n && goldStandard.get(i).tags.get(tagType).equalsIgnoreCase(key)) {\r\n\r\n truePositives++;\r\n\r\n } else if (goldStandard.get(i).tags.get(tagType).equalsIgnoreCase(key)\r\n && !results.get(i).tags.get(tagType).equalsIgnoreCase(key)) {\r\n\r\n falseNegatives++;\r\n\r\n } else if (results.get(i).tags.get(tagType).equalsIgnoreCase(key)\r\n && !goldStandard.get(i).tags.get(tagType).equalsIgnoreCase(key)) {\r\n falsePositives++;\r\n\r\n } else {\r\n trueNegatives++;\r\n }\r\n\r\n }\r\n\r\n assert results.size() == (trueNegatives + truePositives + falseNegatives + falsePositives);\r\n\r\n double sensitivity = (double) truePositives / (double) (falseNegatives + truePositives);\r\n double specificity = (double) trueNegatives / (double) (falsePositives + trueNegatives);\r\n\r\n String report = key;\r\n report += \"\\nSampleSize = \" + results.size();\r\n report += \"\\nTruePos = \" + truePositives;\r\n report += \"\\nFalseNeg = \" + falseNegatives;\r\n report += \"\\nFalsePos = \" + falsePositives;\r\n report += \"\\nSensitivity = \" + sensitivity;\r\n report += \"\\nSpecificity = \" + specificity;\r\n\r\n return report;\r\n\r\n }", "int compare(T t1, T t2);", "static long triplets(int[] a, int[] b, int[] c) {\n SortedSet<Integer> setA = getSet(a);\n SortedSet<Integer> setB = getSet(b);\n SortedSet<Integer> setC = getSet(c);\n\n NavigableMap<Integer, Integer> aMap = cumulated(setA);\n NavigableMap<Integer, Integer> cMap = cumulated(setC);\n\n long counter = 0;\n\n for(Integer bElement : setB){\n Map.Entry<Integer, Integer> entryA = aMap.floorEntry(bElement);\n int itemsA = entryA == null ? 0 : entryA.getValue();\n\n Map.Entry<Integer, Integer> entryC = cMap.floorEntry(bElement);\n int itemsC = entryC == null ? 0 : entryC.getValue();\n\n counter += (long)itemsA*itemsC;\n }\n return counter;\n }", "public static void main(String args[]) {\n IsIdenticalLists llist1 = new IsIdenticalLists();\n IsIdenticalLists llist2 = new IsIdenticalLists();\n\n /* The constructed linked lists are :\n llist1: 3->2->1\n llist2: 3->2->1 */\n\n llist1.push(1);\n llist1.push(2);\n llist1.push(3);\n\n llist2.push(1);\n llist2.push(2);\n llist2.push(3);\n\n if (llist1.areIdentical(llist2) == true)\n System.out.println(\"Identical \");\n else\n System.out.println(\"Not identical \");\n\n }", "public void testGetAllTrials() {\n exp = new Experiment(\"10\");\n ArrayList<Trial> toSet = this.createTrials();\n exp.setTrials(toSet);\n assertEquals(\"getAllTrials returns wrong amount\", 15, exp.getAllTrials().size());\n assertEquals(\"getAllTrials returns wrong trial\", \"0\", exp.getAllTrials().get(0).getId());\n assertEquals(\"getAllTrials returns wrong trial\", \"14\", exp.getAllTrials().get(exp.getAllTrials().size()-1).getId());\n\n }", "private int Compare(ResultsClass lhs, ResultsClass rhs) {\n if (lhs.bodyPart > rhs.bodyPart) {\n return 1;\n } else if (lhs.bodyPart > rhs.bodyPart) {\n return -1;\n } else {\n return 0;\n }\n }", "private Obs findTrips(String[] towers, String[] tstamps, Hashtable<Integer, Vertex> towersXY, int dist_th,\n\t\t\tint time_th) {\n\t\t/**\n\t\t * Marks array contain index of the towers that represent the starting\n\t\t * observation of a new trip.\n\t\t */\n\t\tboolean[] marks = new boolean[tstamps.length];\n\t\tDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\t/**\n\t\t * add 0 as the start of the first tower in this seq.\n\t\t */\n\t\t// int mIndex = 0;\n\t\t// marks[mIndex++] = 0;\n\n\t\tint current = 0;\n\t\tfor (int i = 1; i < tstamps.length; i++) {\n\t\t\ttry {\n\t\t\t\tString tstamp = tstamps[i];\n\n\t\t\t\t/**\n\t\t\t\t * if the time exceeds timing threshold, then check the distance\n\t\t\t\t * between towers. If this distance less than the distance\n\t\t\t\t * threshold, then previous tower is the end of the current\n\t\t\t\t * trip.\n\t\t\t\t *\n\t\t\t\t */\n\t\t\t\tDate sTime = formatter.parse(tstamps[current]);\n\t\t\t\tDate eTime = formatter.parse(tstamp);\n\t\t\t\tcal.setTime(sTime);\n\t\t\t\tint hour = cal.get(Calendar.HOUR);\n\t\t\t\tint minute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tcal.setTime(eTime);\n\t\t\t\tint ehour = cal.get(Calendar.HOUR);\n\t\t\t\tint eminute = cal.get(Calendar.MINUTE);\n\n\t\t\t\tint diff = (ehour - hour) * HOUR + (eminute - minute);\n\t\t\t\t/**\n\t\t\t\t * check time difference with time threshold whatever the\n\t\t\t\t * distance between the starting tower\n\t\t\t\t */\n\t\t\t\tif (diff > time_th) {\n\t\t\t\t\t/**\n\t\t\t\t\t * Check distance, if it distance less than distance\n\t\t\t\t\t * threshold mark the current tower as the start of a new\n\t\t\t\t\t * trip.\n\t\t\t\t\t */\n\t\t\t\t\tVertex sTower = towersXY.get(Integer.parseInt(towers[i - 1]));\n\t\t\t\t\tVertex tower = towersXY.get(Integer.parseInt(towers[i]));\n\n\t\t\t\t\tif (eculidean(sTower.getX(), tower.getX(), sTower.getY(), tower.getY()) < dist_th) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * Update the trip sequences\n\t\t\t\t\t\t */\n\t\t\t\t\t\tmarks[i] = true;\n\t\t\t\t\t\tcurrent = i;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t} catch (ParseException ex) {\n\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * construct observations and time stamps\n\t\t */\n\t\tString time = \"\";\n\t\tString obs = \"\";\n\t\t// time += tstamps[0];\n\t\t// obs += towers[0];\n\t\tfor (int i = 0; i < marks.length; i++) {\n\t\t\tif (marks[i]) {\n\n\t\t\t\ttime += RLM + tstamps[i];\n\t\t\t\tobs += RLM + towers[i];\n\t\t\t} else {\n\t\t\t\t// if (towers[i].equals(towers[i - 1])) {\n\t\t\t\t// System.out.println(towers[i] + \"\\t=\\t\" + towers[i - 1]);\n\t\t\t\t// continue;\n\t\t\t\t// }\n\t\t\t\t/**\n\t\t\t\t * Add comma separators\n\t\t\t\t */\n\t\t\t\tif (!time.isEmpty()) {\n\t\t\t\t\ttime += CLM;\n\t\t\t\t\tobs += CLM;\n\t\t\t\t}\n\t\t\t\ttime += tstamps[i];\n\t\t\t\tobs += towers[i];\n\t\t\t}\n\n\t\t}\n\t\treturn new Obs(obs, time);\n\t}", "public static void main(String[] args) {\n // Reflexive\n System.out.println(o.equals(o));\n System.out.println(r.equals(r));\n\n // Symmetric\n System.out.println(o.equals(p) + \" = \" + p.equals(o));\n System.out.println(r.equals(s) + \" = \" + s.equals(r));\n\n // Transitive\n System.out.println(o.equals(p) + \" = \" + p.equals(q) + \" = \" + o.equals(q));\n System.out.println(r.equals(s) + \" = \" + s.equals(t) + \" = \" + r.equals(t));\n\n // Comparing Point to ColorPoint\n System.out.println(p.equals(s.asPoint()));\n System.out.println(s.asPoint().equals(p));\n }", "public static void main(String[] args) {\n Sides t1 = new Sides(1, 2, 3);\n Sides t2 = new Sides(1, 2, 3);\n \n Triangle tr1 = new Triangle(t1);\n Triangle tr2 = new Triangle(t2);\n \n Set<Triangle> s = new HashSet<>();\n s.add(tr1);\n s.add(tr2);\n \n System.out.println(s.size());\n System.out.println(tr1.compareTo(tr2));\n }", "public List<ModelingSubmissionComparisonDTO> compareSubmissions(List<ModelingSubmission> modelingSubmissions, double minimumSimilarity, int minimumModelSize,\n int minimumScore) {\n\n Map<UMLDiagram, ModelingSubmission> models = new HashMap<>();\n ObjectMapper objectMapper = new ObjectMapper();\n\n for (var modelingSubmission : modelingSubmissions) {\n if (!modelingSubmission.isEmpty(objectMapper)) {\n try {\n log.debug(\"Build UML diagram from json\");\n UMLDiagram model = UMLModelParser.buildModelFromJSON(parseString(modelingSubmission.getModel()).getAsJsonObject(), modelingSubmission.getId());\n if (model.getAllModelElements().size() >= minimumModelSize) {\n models.put(model, modelingSubmission);\n }\n }\n catch (IOException e) {\n log.error(\"Parsing the modeling submission \" + modelingSubmission.getId() + \" did throw an exception:\", e);\n }\n }\n }\n\n log.info(\"Found \" + models.size() + \" modeling submissions with at least \" + minimumModelSize + \" elements to compare\");\n\n final List<ModelingSubmissionComparisonDTO> comparisonResults = new ArrayList<>();\n\n var nonEmptyModelsList = new ArrayList<>(models.keySet());\n\n // it is intended to use the classic for loop here, because we only want to check similarity between two different submissions once\n for (int i = 0; i < nonEmptyModelsList.size(); i++) {\n for (int j = i + 1; j < nonEmptyModelsList.size(); j++) {\n var model1 = nonEmptyModelsList.get(i);\n var model2 = nonEmptyModelsList.get(j);\n final double similarity = model1.similarity(model2);\n log.debug(\"Compare result \" + i + \" with \" + j + \": \" + similarity);\n if (similarity < minimumSimilarity) {\n // ignore comparison results with too small similarity\n continue;\n }\n\n var submission1 = models.get(model1);\n var submission2 = models.get(model2);\n if (submission1.getResult() != null && submission1.getResult().getScore() != null && submission1.getResult().getScore() < minimumScore\n && submission2.getResult() != null && submission2.getResult().getScore() != null && submission2.getResult().getScore() < minimumModelSize) {\n // ignore comparison results with too small scores\n continue;\n }\n\n log.info(\"Found similar models \" + i + \" with \" + j + \": \" + similarity);\n\n var comparisonResult = new ModelingSubmissionComparisonDTO();\n var element1 = new ModelingSubmissionComparisonElement().submissionId(submission1.getId()).size(model1.getAllModelElements().size());\n var element2 = new ModelingSubmissionComparisonElement().submissionId(submission2.getId()).size(model2.getAllModelElements().size());\n element1.studentLogin(((StudentParticipation) submission1.getParticipation()).getParticipantIdentifier());\n element2.studentLogin(((StudentParticipation) submission2.getParticipation()).getParticipantIdentifier());\n comparisonResult.setElement1(element1);\n comparisonResult.setElement2(element2);\n comparisonResult.similarity(similarity);\n if (submission1.getResult() != null) {\n comparisonResult.getElement1().score(submission1.getResult().getScore());\n }\n if (submission2.getResult() != null) {\n comparisonResult.getElement2().score(submission2.getResult().getScore());\n }\n\n comparisonResults.add(comparisonResult);\n }\n }\n\n log.info(\"Found \" + comparisonResults.size() + \" similar modeling submission combinations ( > \" + minimumSimilarity + \")\");\n\n return comparisonResults;\n }", "public void compareFeatures() {\n computeDistances();\n evaluationLogic();\n // compute recall and precision\n recall = truePositiveCount / (truePositiveCount + falseNegativeCount);\n // avoid division by zero\n float denominator = truePositiveCount + falsePositiveCount;\n precision = denominator == 0 ? 0 : truePositiveCount / denominator;\n }", "@Test\r\n\tpublic void testCompareCase5() throws IOException {\r\n\t\tPerson p1 = DataUtil.readDataFromFile(\"test/data/case5/case5-person1.json\", Person.class);\r\n\t\tPerson p2 = DataUtil.readDataFromFile(\"test/data/case5/case5-person2.json\", Person.class);\r\n\r\n\t\t// Custom context\r\n\t\tIContext ctx = ObjectCompare.compare(p1, p2);\r\n\t\tdebug(ctx.getDifferences());\r\n\t\tAssert.assertTrue(ctx.hasDifferences());\r\n\t}", "@Test(priority = 8)\n\tpublic void showAllTrips() throws Exception {\n\t\t\n\t\tdriver = DashboardPage.ViewAllTrip(driver);\n\t\t\n\t\t//ExcelUtils.setCellData(\"PASS\", 8, 1);\n\t}", "public compare(){\r\n }", "@Override\r\n public int compare(Node o1, Node o2) {\r\n\r\n ArrayList<Litteral> solution1 = o1.getValeur();\r\n ArrayList<Litteral> solution2 = o2.getValeur();\r\n int satisfaitClauseNumberS1 = satInstance.satisfaitClauseNumber(solution1);\r\n int satisfaitClauseNumberS2 = satInstance.satisfaitClauseNumber(solution2);\r\n return satisfaitClauseNumberS2 - satisfaitClauseNumberS1;\r\n\r\n }", "private void verifyFlightNumbers(SearchResultsPage searchResultsPage) throws Exception {\n\t\t// Determine the total number of flights from the Search Results page\n\t\t// Each leg of the trip can either be a non-stop or have 1 stop\n\t\tint iTotalNumberFlightsSearchResultsPage = 0;\n\t\tint[] iFlightsPerLeg = searchResultsPage.getSavedNumberFlightsPerLeg();\n\t\tfor (int i : iFlightsPerLeg) {\n\t\t\tiTotalNumberFlightsSearchResultsPage += i;\n\t\t}\n\n\t\t// determine the total number of flights from the Payments page\t\n\t\tList <WebElement> allFlightNumbersList = getElements(allFlightNumbers, \"XPATH\"); // get all flight number locators\n\t\tint iTotalNumberFlightsPaymentPage = allFlightNumbersList.size();\n\n\t\t// check that the Search Results page and the Payments page have the same number of flights\n\t\tif (iTotalNumberFlightsPaymentPage != iTotalNumberFlightsSearchResultsPage)\n\t\t\tlog.debug(\"Number of flights on the 2 pages are not equal. FlightsSearchResultsPage = \" + iTotalNumberFlightsSearchResultsPage +\n\t\t\t\t\t\" FlightsPaymentPage = \" + iTotalNumberFlightsPaymentPage);\n\n\t\t// now check that the individual flight numbers are the same\n\t\t// SRP = Search Results page PP = Payments page\n\t\tList<String> flightNumbersSRP = searchResultsPage.getSavedFlightNumbers();\n\t\tfor (int i = 0; i < iTotalNumberFlightsPaymentPage; i++) {\n\t\t\tString sFlightNumberSRP = flightNumbersSRP.get(i); // a specific SRP flight number\n\t\t\t// each element's original text looks similar to this: \" American Airlines 1234 \"\n\t\t\tString shortenedFlightNumber = allFlightNumbersList.get(i).getText().trim(); // now it looks like: \"American Airlines 1234\"\n\t\t\tint lastBlank = shortenedFlightNumber.lastIndexOf(\" \");\n\t\t\tString sFlightNumberPP = shortenedFlightNumber.substring(lastBlank + 1); // flight number begins one character after the last blank\n\t\t\tif (sFlightNumberSRP.equals(sFlightNumberPP))\n\t\t\t\tlog.debug(\"Flight number is a match\");\t\n\t\t\telse\n\t\t\t\tlog.debug(\"Flight number is NOT a match\");\n\t\t}\n\t\tlog.info(\"verifyFlightNumbers() completed\");\n\t}", "public abstract String viewTrips(List<Trip> tripList);", "private boolean validationPhase(Secret secretA, Secret secretB, int smallestSize, double[] optimalBox) {\n\n\t\t// number of all possible subsets with a size of smallestSize\n\t\tint numberSubsets; \n\t\tif((secretA.getTimes().size() / smallestSize) <= (secretB.getTimes().size() / smallestSize)) {\n\t\t\tnumberSubsets = (secretA.getTimes().size() / smallestSize);\n\t\t} else {\n\t\t\tnumberSubsets = (secretB.getTimes().size() / smallestSize);\n\t\t}\n\n\t\t// rest of the size modulo all subsets\n\t\tint restA = secretA.getTimes().size() % (numberSubsets * smallestSize);\n\t\tint restB = secretB.getTimes().size() % (numberSubsets * smallestSize);\n\n\t\tArrayList<Time> subsetA; \n\t\tArrayList<Time> subsetB;\n\n\t\tint countWrongResults = 0;\n\n\t\tArrayList<String> validateSubsetSignificantDifferent = new ArrayList<String>();\n\t\tArrayList<String> validateSubsetOverlapA = new ArrayList<String>();\n\t\tArrayList<String> validateSubsetOverlapB = new ArrayList<String>();\n\t\tArrayList<Time> prevSubsetA = new ArrayList<Time>();\n\t\tArrayList<Time> prevSubsetB = new ArrayList<Time>();\n\n\n\t\tfor (int i = 0; i < numberSubsets; ++i) {\n\n\t\t\tint countInvalid = 0;\n\t\t\t// the rest will be deducted at the beginning\n\t\t\tsubsetA = secretA.getBisectedTimes(restA + (smallestSize * i), smallestSize);\n\t\t\tsubsetB = secretB.getBisectedTimes(restB + (smallestSize * i), smallestSize);\n\n\t\t\tCollections.sort(subsetA);\n\t\t\tCollections.sort(subsetB);\n\n\t\t\tif (BoxTest.boxTestSmaller(subsetA, subsetB, optimalBox)) {\n\t\t\t\tvalidateSubsetSignificantDifferent.add(\"o\");\n\n\t\t\t} else {\n\t\t\t\tvalidateSubsetSignificantDifferent.add(\"x\");\n\t\t\t\t//logger.info(\"subset \" + i + \": wrong result\");\n\t\t\t\t++countInvalid;\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 0) {\n\t\t\t\tif (BoxTest.boxTestOverlap(prevSubsetA, subsetA, optimalBox)) {\n\t\t\t\t\tvalidateSubsetOverlapA.add(\"o\");\n\n\t\t\t\t} else {\n\t\t\t\t\tvalidateSubsetOverlapA.add(\"x\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": only significant different\");\n\t\t\t\t\t++countInvalid;\n\t\t\t\t} \n\n\t\t\t\tif (BoxTest.boxTestOverlap(prevSubsetB, subsetB, optimalBox)) {\n\t\t\t\t\tvalidateSubsetOverlapB.add(\"o\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": right result\");\n\n\t\t\t\t} else {\n\t\t\t\t\tvalidateSubsetOverlapB.add(\"x\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": only significant different, subset A overlaps\");\n\t\t\t\t\t++countInvalid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(countInvalid > 0) {\n\t\t\t\t++countWrongResults;\n\t\t\t}\n\n\t\t\tprevSubsetA = new ArrayList<Time>();\n\t\t\tprevSubsetB = new ArrayList<Time>();\n\n\t\t\tprevSubsetA = subsetA;\n\t\t\tprevSubsetB = subsetB;\n\t\t}\n\n\t\tdouble confidenceInterval = 100 - (countWrongResults * 100 / numberSubsets);\n\n\t\tthis.boxTestResults.get(this.boxTestResults.size() - 1).saveValidation(smallestSize, confidenceInterval, validateSubsetOverlapA, validateSubsetOverlapB, validateSubsetSignificantDifferent);\n\t\tlogger.finest(\"\\n\\\"o\\\" = successful box test \\n\\\"x\\\" = unsuccesful box test\\n\");\n\t\tlogger.finest(secretA.getName() + \" overlaps: \" + Folder.convertArrayListToString(validateSubsetOverlapA));\n\t\tlogger.finest(secretB.getName() + \" overlaps: \" + Folder.convertArrayListToString(validateSubsetOverlapB));\n\t\tlogger.finest(secretA.getName() + \" < \" + secretB.getName() + \": \" + Folder.convertArrayListToString(validateSubsetSignificantDifferent));\n\n\t\tlogger.info(secretA.getName() + \" < \" + secretB.getName() + \": validate smallest size \" + smallestSize + \": \" + countWrongResults + \" out of \" + numberSubsets + \" comparisons returned wrong results.\");\n\n\t\tif(countWrongResults != 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public static boolean compareListElements(ArrayList<Double> a,ArrayList<Double> b){\n\t\t\n\t\tif(a==null && b==null)\n\t\t\treturn true;\n\t\t\n\t\tif(a.size()!=b.size())\n\t\t\treturn false;\n\t\t\n\t\tint i=0,j,k;\n\t\t\n\t\twhile(i<a.size())\n\t\t{\n\t\t\tj=(int) (100*a.get(i));\n\t\t\tk=(int) (100*b.get(i));\n\t\t\t\n\t\t\tif(j!=k)\n\t\t\t\treturn false;\n\t\t\telse\n\t\t\t\ti++;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static void main(String[] args) {\n\t\tint[] nums1 = new int[] {1,2,3,4,5};\r\n\t\tint[] nums2 = new int[] {9,5,6,2,7};\r\n\t\tincreasing inc = new increasing();\r\n\t\tboolean k = inc.increasingTriplet(nums2);\r\n\t\tSystem.out.print(k);\r\n\t\t\r\n\t}", "public void checkNLBJwithFilter() throws SQLException, InstantiationException, IllegalAccessException {\n\n //maps a candidate var to CTP matched values\n HashMap<String, List<String>> mapCandVarToMatchedVals = new HashMap<>();\n //maps a candidate var to all answer values\n HashMap<String, List<String>> mapCandVarToAllAnsMaps = new HashMap<>();\n List<String> allFilterVals = null;\n HashMap<List<String>, List<String>> newDTPtoALtenativeTotalAns = new HashMap<>();\n HashMap<List<String>, List<String>> newDTPtoALtenativeInverseMap = new HashMap<>();\n List<List<String>> allNewDTPShort = null;\n\n for (List<String> keyFilterVar : mapCTPtoFILTERwithBoundJ.keySet()) {\n\n allFilterVals = mapCTPtoFILTERwithBoundJ.get(keyFilterVar);\n\n //If there is only one FILTER value of BOUND JOIN, skip matching\n if (allFilterVals.size() == 1) {\n\n continue;\n }\n\n myDedUtils.searchMatchingVars(mapCandVarToAllAnsMaps, mapCandVarToMatchedVals, allFilterVals);\n allNewDTPShort = new LinkedList<>();\n List<String> matchingValues = new LinkedList<>();\n\n for (String matchVar : mapCandVarToMatchedVals.keySet()) {\n\n // Identify particular \"?o_#value\" variable indicating a NLFO\n if (!matchVar.contains(\"o_\") && mapCandVarToMatchedVals.get(matchVar).size() > 0) {\n\n for (List<String> keyDTP : mapDTPtoAnswTotal.keySet()) {\n\n if (keyDTP.get(1).equalsIgnoreCase(keyFilterVar.get(1))) {\n\n //Case \"?o_#value\" is in the subject of the triple pattern\n if (keyDTP.get(0).equalsIgnoreCase(keyFilterVar.get(0)) && keyDTP.get(0).equalsIgnoreCase(\"?o\") && !keyDTP.get(3).equalsIgnoreCase(\"?o\")) {\n\n List<String> newDTP = Arrays.asList(\"?\" + matchVar.substring(0, matchVar.indexOf(\"_\")), keyDTP.get(1), keyDTP.get(2));\n myDedUtils.setDTPbasicInfo(newDTP);\n allNewDTPShort.add(newDTP);\n newDTP = Arrays.asList(\"?\" + matchVar.substring(0, matchVar.indexOf(\"_\")), keyDTP.get(1), keyDTP.get(2), keyDTP.get(3));\n matchingValues.addAll(mapCandVarToMatchedVals.get(matchVar));\n newDTPtoALtenativeTotalAns.put(newDTP, keyDTP);\n\n } //Case \"?o_#value\" is in the object of the triple pattern\n else if (keyDTP.get(2).equalsIgnoreCase(keyFilterVar.get(2)) && keyDTP.get(2).equalsIgnoreCase(\"?o\") && !keyDTP.get(3).equalsIgnoreCase(\"?o\")) {\n\n List<String> newDTP = Arrays.asList(keyDTP.get(0), keyDTP.get(1), \"?\" + matchVar.substring(0, matchVar.indexOf(\"_\")));\n myDedUtils.setDTPbasicInfo(newDTP);\n allNewDTPShort.add(newDTP);\n newDTP = Arrays.asList(keyDTP.get(0), keyDTP.get(1), \"?\" + matchVar.substring(0, matchVar.indexOf(\"_\")), keyDTP.get(3));\n newDTPtoALtenativeTotalAns.put(newDTP, keyDTP);\n matchingValues.addAll(mapCandVarToMatchedVals.get(matchVar));\n }\n }\n }\n\n }\n\n // Search all nestedl loop values of the new DTP, passed as FILTER options \n // to the inner queries implementing the NLFO\n for (List<String> keyDTP : mapDTPtoAnsInverseMap.keySet()) {\n\n for (List<String> newDTPfilter : allNewDTPShort) {\n\n if ((keyDTP.get(0).equalsIgnoreCase(\"?o\") && (newDTPfilter.get(2).equalsIgnoreCase(keyDTP.get(2)) && newDTPfilter.get(1).equalsIgnoreCase(keyDTP.get(1)))) || (keyDTP.get(2).equalsIgnoreCase(\"?o\") && (newDTPfilter.get(0).equalsIgnoreCase(keyDTP.get(0)) && newDTPfilter.get(1).equalsIgnoreCase(keyDTP.get(1))))) {\n\n List<String> newDTP = new LinkedList<>(newDTPfilter.subList(0, 3));\n\n if (!myBasUtils.elemInListContained(newDTP, \"?\" + matchVar.substring(0, matchVar.indexOf(\"_\")))) {\n\n continue;\n }\n\n myDedUtils.setDTPbasicInfo(newDTP);\n newDTP.add(\"?\" + matchVar.substring(0, matchVar.indexOf(\"_\")));\n newDTPtoALtenativeInverseMap.put(newDTP, keyDTP);\n }\n }\n\n }\n\n }\n\n // Fetch answer values from th NLBJ to NLFO deduced triple pattern\n for (List<String> keyTotalNEW : newDTPtoALtenativeTotalAns.keySet()) {\n\n myDedUtils.setDTPinfoToAnother(keyTotalNEW, newDTPtoALtenativeTotalAns, mapDTPtoAnswTotal.get(newDTPtoALtenativeTotalAns.get(keyTotalNEW)));\n\n }\n\n for (List<String> keyTotalInvMaps : newDTPtoALtenativeInverseMap.keySet()) {\n\n myDedUtils.setDTPinfoToAnother(keyTotalInvMaps, newDTPtoALtenativeInverseMap, matchingValues);\n }\n\n }\n\n }", "@Test\n\tvoid testEqualsObject() {\n\t\t\n\t\ttry {\n\t\t\n\t\t\t// Create a list of checkpoints\n\t\t\tList<Checkpoint> checkpointList1 = new ArrayList<>();\n\t\t\tcheckpointList1.add(new Checkpoint(3, 85, \"Okay Job.\", 1));\n\t\t\tcheckpointList1.add(new Checkpoint(3, 100, \"Excellent Job.\", 2));\n\t\t\tcheckpointList1.add(new Checkpoint(4, 90, \"Good Job.\", 3));\n\t\t\tJustInTimeEvaluator jitEval1 = new JustInTimeEvaluator(checkpointList1);\n\t\t\tResult result1 = jitEval1.evaluate();\n\t\t\t\n\t\t\t// Create a second list of checkpoints\n\t\t\tList<Checkpoint> checkpointList2 = new ArrayList<>();\n\t\t\tcheckpointList2.add(new Checkpoint(3, 85, \"Okay Job.\", 1));\n\t\t\tcheckpointList2.add(new Checkpoint(3, 100, \"Excellent Job.\", 2));\n\t\t\tcheckpointList2.add(new Checkpoint(4, 90, \"Good Job.\", 3));\n\t\t\tJustInTimeEvaluator jitEval2 = new JustInTimeEvaluator(checkpointList2);\n\t\t\tResult result2 = jitEval2.evaluate();\n\t\t\t\n\t\t\t// Assert that the evaluation of both checkpoint lists are equal\n\t\t\tassertTrue(result1.equals(result2));\n\t\t\n\t\t} catch (InvalidCheckpointException e) {\n\t\t\tfail(\"Invalid checkpoints created.\");\n\t\t}\n\t}" ]
[ "0.64544916", "0.62737054", "0.62097096", "0.58872104", "0.5738841", "0.56924766", "0.55252856", "0.5500684", "0.54776365", "0.5445787", "0.53979045", "0.5388924", "0.53257054", "0.52997434", "0.5298352", "0.5290072", "0.52801085", "0.5263691", "0.5223199", "0.5171405", "0.51182306", "0.511029", "0.50790095", "0.50769204", "0.5073468", "0.5071077", "0.5070685", "0.507005", "0.5062589", "0.5059546", "0.50591546", "0.5054154", "0.5028595", "0.5025011", "0.5013951", "0.50050735", "0.49823925", "0.4977451", "0.497193", "0.49555686", "0.49551034", "0.49492592", "0.49401116", "0.4938362", "0.49172884", "0.49149144", "0.49083364", "0.49041894", "0.49024728", "0.48997086", "0.4898973", "0.48931968", "0.4885317", "0.4885252", "0.4883694", "0.4881212", "0.4877249", "0.4863004", "0.48509288", "0.4837954", "0.4829713", "0.48296782", "0.48240697", "0.48231107", "0.4822626", "0.48202902", "0.48197752", "0.48148265", "0.4811959", "0.48081273", "0.48078626", "0.4800509", "0.47972077", "0.4794678", "0.4785271", "0.4783054", "0.47820127", "0.47714323", "0.4770258", "0.47556198", "0.4747559", "0.47456586", "0.47431037", "0.4742572", "0.47415262", "0.47371194", "0.47332406", "0.47323287", "0.4720385", "0.4717964", "0.47107655", "0.4710461", "0.4702247", "0.46908808", "0.46897292", "0.46894652", "0.46690738", "0.46574354", "0.46550262", "0.46544054" ]
0.61607945
3
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));
public static void main(String[] args) throws IOException { String[] aItems = {"17", "18", "30"}; List<Integer> a = new ArrayList<Integer>(); for (int i = 0; i < 3; i++) { int aItem = Integer.parseInt(aItems[i]); a.add(aItem); } String[] bItems = {"99", "16", "8"} ; List<Integer> b = new ArrayList<Integer>(); for (int i = 0; i < 3; i++) { int bItem = Integer.parseInt(bItems[i]); b.add(bItem); } List<Integer> result = compareTriplets(a, b); for (int i : result) { System.out.print(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(\"OUTPUT_PATH\")));\n\t\t\n\t\tbufferedWriter.write(\"Hello\");\n\n\t}", "public static void main(String[] arg) {\n\t\tBufferedReader br = new BufferedReader(\r\n\t\t new FileReader(\"input.in\"));\r\n\r\n\t\t// PrintWriter class prints formatted representations\r\n\t\t// of objects to a text-output stream.\r\n\t\tPrintWriter pw = new PrintWriter(new\r\n\t\t BufferedWriter(new FileWriter(\"output.in\")));\r\n\r\n\t\t// Your code goes Here\r\n\r\n\t\tpw.flush();\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString x = sc.nextLine();\r\n\r\n\t\tSystem.out.println(\"hello world \" + x);\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tInputStream fileInput = System.in;\n\t\tReader inputReader = new InputStreamReader(fileInput);\n\t\tBufferedReader bufferedReader = new BufferedReader(inputReader);\n\n//\t\tOutputStream outputStream = new FileOutputStream(\"text-example-test.txt\");\n\t\tOutputStream outputStream = System.out;\n\t\tWriter writer = new OutputStreamWriter(outputStream);\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(writer);\n\n\t\tString row = bufferedReader.readLine();\n\n\t\twhile (row != null && !row.isEmpty()) {\n\t\t\tbufferedWriter.write(row);\n\t\t\tbufferedWriter.newLine();\n\t\t\tbufferedWriter.flush();\n\t\t\trow = bufferedReader.readLine();\n\t\t}\n\n\t\tbufferedReader.close();\n\t\tbufferedWriter.close();\n\t}", "public void readAndWrite() {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n List<String> passedFiles = new ArrayList<>();\n copy(new File(s), true, passedFiles);\n\n }", "public static void main(String[] args) throws IOException {\n String param1, param2, param3;\n BufferedReader r1 = new BufferedReader(new InputStreamReader(System.in));\n param1 = r1.readLine();\n param2 = r1.readLine();\n param3 = r1.readLine();\n FileOutputStream fileOutputStream = new FileOutputStream(param1);\n FileInputStream fileInputStream2 = new FileInputStream(param2);\n FileInputStream fileInputStream3 = new FileInputStream(param3);\n while (fileInputStream2.available() > 0){\n int data = fileInputStream2.read();\n fileOutputStream.write(data);\n }\n while (fileInputStream3.available() > 0){\n int data = fileInputStream3.read();\n fileOutputStream.write(data);\n }\n fileInputStream2.close();\n fileInputStream3.close();\n fileOutputStream.close();\n }", "OutputStream getStdin();", "public static void main(String[] args) throws IOException {\nFileInputStream fin=new FileInputStream(\"C:\\\\\\\\Users\\\\\\\\Dell\\\\\\\\Desktop\\\\\\\\input.txt\");\nFileOutputStream fout=new FileOutputStream(\"C:\\\\\\\\\\\\\\\\Users\\\\\\\\\\\\\\\\Dell\\\\\\\\\\\\\\\\Desktop\\\\\\\\\\\\\\\\output.txt\");\nint c=0;\nwhile((c=fin.read())!=-1)\n{\n\tfout.write(c);\n}\nSystem.out.println(\"written completed\");\n\t}", "public static void main(String[] args) throws IOException {\n\n try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in))) {\n\n try (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv(\"OUTPUT_PATH\")))) {\n\n final int t = Integer.parseInt(\n bufferedReader.readLine()\n .trim());\n\n for (int i = 0; i < t; i++) {\n\n final String[] firstMultipleInput = bufferedReader.readLine()\n .replaceAll(REGEX, REPLACEMENT)\n .split(SEPARATOR);\n\n final String a = firstMultipleInput[0];\n final String b = firstMultipleInput[1];\n\n final int result = solve(a, b);\n\n bufferedWriter.write(String.valueOf(result));\n bufferedWriter.newLine();\n }\n }\n }\n }", "public static void main(String[] args){\n\t\tBufferedReader indata = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString input=null;\r\n\t\ttry {\r\n\t\t\tinput=indata.readLine();\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\tFile file = new File(\"d:/addfile.txt\"); \r\n try { \r\n file.createNewFile();\r\n } catch (IOException e) { \r\n // TODO Auto-generated catch block \r\n e.printStackTrace(); \r\n }\r\n \r\n byte writebyte[] = new byte[1024];\r\n writebyte=input.getBytes();\r\n try{\r\n \tFileOutputStream in = new FileOutputStream(file);\r\n \ttry{\r\n \t\tin.write(writebyte, 0, writebyte.length); \r\n in.close();\r\n \t} catch (IOException e) { \r\n // TODO Auto-generated catch block \r\n e.printStackTrace(); \r\n } \r\n } catch (FileNotFoundException e) { \r\n // TODO Auto-generated catch block \r\n e.printStackTrace(); \r\n }\r\n \r\n if(input.equals(\"print\")){\r\n \ttry{\r\n \t\tFileInputStream out = new FileInputStream(file); \r\n \t\tInputStreamReader outreader = new InputStreamReader(out);\r\n \t\tint ch = 0;\r\n \t\twhile((ch=outreader.read())!=-1){\r\n \t\t\tSystem.out.print((char) ch);\r\n \t\t}\r\n \t\toutreader.close();\r\n \t}catch (Exception e) { \r\n \t\t// TODO: handle exception \r\n \t} \r\n }\r\n\t}", "public CLI(BufferedReader in, Writer out) {\n\t\t_in = in;\n\t\t_out = out;\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(new\n InputStreamReader(System.in));\n BufferedWriter bufferedWriter = new BufferedWriter(new\n FileWriter(System.getenv(\"OUTPUT_PATH\")));\n\n String[] nr = bufferedReader.readLine().replaceAll(\"\\\\s+$\", \"\").split(\" \");\n\n int n = Integer.parseInt(nr[0]);\n\n long r = Long.parseLong(nr[1]);\n\n List<Long> arr = Stream.of(bufferedReader.readLine().replaceAll(\"\\\\s+$\",\n \"\").split(\" \")).map(Long::parseLong)\n .collect(toList());\n\n long ans = countTriplets(arr, r);\n\n bufferedWriter.write(String.valueOf(ans));\n bufferedWriter.newLine();\n\n bufferedReader.close();\n bufferedWriter.close();\n }", "private static void prepareOutputFile() {\n try {\n outputFileBuffer = new BufferedWriter(new FileWriter(PATH+OUTPUT_FILE_NAME));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void outputFile() {\n // Define output file name\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What do you want to call this file?\");\n String name = sc.nextLine();\n\n // Output to file\n Path outputFile = Paths.get(\"submissions/\" + name + \".java\");\n try {\n Files.write(outputFile, imports);\n if (imports.size() > 0)\n Files.write(outputFile, Collections.singletonList(\"\"), StandardOpenOption.APPEND);\n Files.write(outputFile, lines, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public static void main(String[] args) {\n BufferedReader console = new BufferedReader(\r\n new InputStreamReader(System.in));\r\n System.out.print(\"Please enter data file names: \");\r\n \r\n String params = null;\r\n try {\r\n \tparams = console.readLine();\r\n } catch (IOException e) {\r\n \tparams = null;\r\n }\r\n if (params == null) {\r\n \tSystem.out.print(\"Please enter valid file names.\");\r\n \treturn;\r\n }\r\n \r\n StringTokenizer token = new StringTokenizer(params, \",\");\r\n String[] inputParams = new String[100];\r\n int count = 0;\r\n while (token.hasMoreTokens())\r\n \tinputParams[count++] = token.nextToken().trim();\r\n \r\n String[] inputFiles = new String[count];\r\n System.arraycopy(inputParams, 0, inputFiles, 0, count);\r\n \r\n // Start program\r\n Log log = Log.getInstance();\r\n \r\n scanners = new Scanner[inputFiles.length];\r\n writers = new PrintWriter[inputFiles.length];\r\n filenames = inputFiles;\r\n \r\n for (int i = 0; i < inputFiles.length; i++) {\r\n try {\r\n scanners[i] = new Scanner(new File(inputFiles[i]));\r\n } catch (IOException e) {\r\n System.out.println(\"Could not open input file \" + inputFiles[i] + \" for reading.\");\r\n System.out.println(\"Please check if file exists! \" +\r\n \"Program will terminate after closing any opened files.\");\r\n closeScanners();\r\n return;\r\n }\r\n }\r\n \r\n for (int i = 0; i < inputFiles.length; i++) {\r\n try {\r\n writers[i] = new PrintWriter(getJson(inputFiles[i]));\r\n } catch (IOException e) {\r\n System.out.println(\"Could not open input file \" + inputFiles[i] + \" for writing.\");\r\n System.out.println(\"Program will terminate after closing any opened files.\");\r\n \r\n closeScanners();\r\n closeWriters();\r\n return;\r\n }\r\n }\r\n \r\n /*\r\n */\r\n if (!processFilesForValidation(scanners, writers)) {\r\n closeScanners();\r\n cleanWriters();\r\n return;\r\n }\r\n\r\n /*\r\n * Ask the user to enter the name of one of the created output files to display\r\n */\r\n for (int i = 0; i < 2; ++i) {\r\n System.out.print(\"Enter JSON file name: \");\r\n String file = \"\";\r\n try {\r\n file = console.readLine();\r\n } catch (IOException e) {\r\n\r\n }\r\n BufferedReader reader = null;\r\n try {\r\n reader = new BufferedReader(new FileReader(file));\r\n String line;\r\n while ((line = reader.readLine()) != null)\r\n System.out.println(line);\r\n break;\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"The file does not exist.\");\r\n } catch (IOException e) {\r\n System.out.println(\"Failed to read the file.\");\r\n } finally {\r\n try {\r\n if (reader != null)\r\n reader.close();\r\n } catch (IOException e) {\r\n }\r\n }\r\n }\r\n log.close();\r\n \r\n closeScanners();\r\n closeWriters();\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hudai\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//System.setIn(new Scanner(new File(E:\\\\hudai\\\\filetry.txt)));\r\n\t\t\tSystem.setOut(new PrintStream(new FileOutputStream( new File(\"E:\\\\hudai\\\\filetry.txt\"))) );\r\n\t\t\tSystem.out.println(\"Happy to see \");\r\n\t\t\tSystem.out.println(\"মোঃ জুবায়ের ইবনে মোস্তফা\");\r\n\t\t\tSystem.out.println(\"Nothing\");\r\n\t\t\t\r\n\t\t\tSystem.setOut( new PrintStream(new FileOutputStream(FileDescriptor.out)));\r\n\t\t\tSystem.out.println(\"Happy to see \");\r\n\t\t\tSystem.out.println(\"Nothing\");\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static void takeInput() throws IOException {\n\n System.out.println(\"Enter number 1\");\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n String number1=br.readLine();\n System.out.println(\"Enter number 2\");\n String number2=br.readLine();\n System.out.println(\"Operation\");\n String op=br.readLine();\n //WhiteHatHacker processes the input\n WhiteHatHacker hack=new WhiteHatHacker(number1,number2,op);\n hack.processInput();\n }", "public static void main(String[] args) {\n\t\tString cwd = System.getProperty(\"user.dir\");\t\t\n\t\tString targetFile = cwd + File.pathSeparator + \"target\" + File.pathSeparator + \"testfile.txt\";\n\t\ttry(FileOutputStream fout = new FileOutputStream(targetFile)){\n\t\t\tfout.write(args[0].getBytes());\n\t\t\tfout.write(System.getProperty(\"line.separator\").getBytes());\n\t\t\t//Did we write it..for real??\n\t\t\tFileReaderDemo.readFile(targetFile);\n\t\t}catch(IOException e) {\n\t\t\t\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new FileReader(\"cave.in\"));\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"cave.out\")));\n new cave(in, out);\n in.close();\n out.close();\n }", "public static void main(String[] args) throws IOException {\n\t\tFileInputStream filin = new FileInputStream(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016.txt\"));\n\t\tFileOutputStream filout = new FileOutputStream(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016_2.txt\"));\n\t\tint val;\n\t\twhile((val = filin.read()) != -1)\n\t\t{\n\t\t\tfilout.write(val);\n\t\t}\n\t\tfilin.close();\n\t\tfilout.close();\n\t\tSystem.out.println(\"Completed\");\n\t\t\n\t\t//Char\n\t\tFileReader filrd = new FileReader(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016.txt\"));\n\t\tFileWriter filwr = new FileWriter(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016_3.txt\"));\n\t\tint val1;\n\t\twhile((val1 = filrd.read()) != -1)\n\t\t{\n\t\t\tfilwr.write(val1);\n\t\t}\n\t\tfilrd.close();\n\t\tfilwr.close();\n\t\tSystem.out.println(\"Character Completed\");\n\t\t//Buffer stream\n\t\tBufferedReader buffrd = new BufferedReader(new FileReader(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016.txt\")));\n\t\tBufferedWriter buffwr = new BufferedWriter(new FileWriter(new File(\"/home/prasanna/E-Books/H-Series/JPA/Java_03072016_4.txt\")));\n\t\tString val2;\n\t\twhile((val2 = buffrd.readLine()) != null)\n\t\t{\n\t\t\tbuffwr.write(val2);\n\t\t}\n\t\tbuffrd.close();\n\t\tbuffwr.close();\n\t\tSystem.out.println(\"Buffer Completed\");\n\t}", "public static void main(String[] args) throws java.io.IOException {\n\t\tPrintWriter pw = new PrintWriter (new FileWriter(\"writefile\"));\r\n\t\tSystem.out.print(\"Please enter Phone Number: \");\r\n\t\tphoneNumber=input.next();\r\n\t\tSystem.out.print(\"Please enter Contact Name: \");\r\n\t\tcontactName=input.next();\r\n\t\tSystem.out.println(\"Name: \" + contactName + \"\\tNumber: \" + phoneNumber);\r\n\t\tSystem.out.println(\"Starting printing to text file...\");\r\n\t\tpw.println(\"Name: \" + contactName + \" <Number: \" + phoneNumber);\r\n\t\tpw.close();\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tFileWriter fw = new FileWriter(\"C:\\\\Users\\\\shami\\\\OneDrive\\\\Desktop\\\\WriteData.txt\");\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tbw.write(\"Hello I am Working\");\n\t\tbw.write(\"Hello I am Sleeping\");\n\t\tSystem.out.println(\"Hey Done\");\n\t\tbw.close();\n\t\t\n\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n BufferedOutputStream out = new BufferedOutputStream(System.out);\n StringBuilder res = new StringBuilder();\n\n while (true) {\n // skip blank lines and end when no more input\n String line = in.readLine();\n if (line == null)\n break;\n else if (line.equals(\"\"))\n continue;\n\n int b = Integer.valueOf(line);\n int p = Integer.valueOf(in.readLine());\n int m = Integer.valueOf(in.readLine());\n\n res.append(modPow(b, p, m));\n res.append('\\n');\n }\n\n out.write(res.toString().getBytes());\n\n out.close();\n in.close();\n }", "private static void env (final String outFileName) throws IOException {\r\n\t\tstdout.print (\"Recoding: set\\t\");\r\n\t\tvar env = System.getenv ();\r\n\t\tvar out = new StringBuilder ();\r\n\t\tvar path = Paths.get (DIR.toString (), outFileName);\r\n\t\tenv.forEach ((key, value) -> out.append (String.format (\"%s=%s%n\", key, value)));\r\n\t\tFiles.writeString (path, out.toString ());\r\n\t\tstdout.println (\"(Done)\");\r\n\t}", "protected void instrumentIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out();\r\n SystemIOUtilities.err();\r\n\r\n // First, make sure the original System.in gets captured, so it\r\n // can be restored later\r\n SystemIOUtilities.replaceSystemInContents(null);\r\n\r\n // The previous line actually replaced System.in, but now we'll\r\n // \"replace the replacement\" with one that uses fail() if it\r\n // has no contents.\r\n System.setIn(new MutableStringBufferInputStream((String)null)\r\n {\r\n protected void handleMissingContents()\r\n {\r\n fail(\"Attempt to access System.in before its contents \"\r\n + \"have been set\");\r\n }\r\n });\r\n }", "public MyInputStream()\n {\n in = new BufferedReader\n (new InputStreamReader(System.in));\n }", "public static void main(String []args) throws IOException {\n\tFastScanner in = new FastScanner(System.in);\n\tPrintWriter out = \n\t\tnew PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)), false); \n\tsolve(in, out);\n\tin.close();\n\tout.close();\n }", "public static void main(String[] args) throws IOException\n {\n \n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter writer = new PrintWriter(new BufferedOutputStream(System.out));\n \n String output = \"\"; //Write all output to this string\n\n //Code here\n int numLevels = Integer.parseInt(f.readLine());\n int[] nums = new int[numLevels];\n String line = f.readLine();\n StringTokenizer st = new StringTokenizer(line);\n int numLevelsX = Integer.parseInt(st.nextToken());\n for(int i = 0; i < numLevelsX; i++)\n {\n int n = Integer.parseInt(st.nextToken());\n nums[n-1]++;\n }\n line = f.readLine();\n st = new StringTokenizer(line);\n int numLevelsY = Integer.parseInt(st.nextToken());\n for(int i = 0; i < numLevelsY; i++)\n {\n int n = Integer.parseInt(st.nextToken());\n nums[n-1]++;\n }\n boolean isBeatable = true;\n for(int i = 0; i < numLevels; i++)\n {\n if(nums[i]==0)\n isBeatable = false;\n }\n output = isBeatable?\"I become the guy.\":\"Oh, my keyboard!\";\n \n \n //Code here\n\n //out.println(output);\n \n writer.println(output);\n writer.close();\n System.exit(0);\n \n }", "public static void main(String[] args) throws IOException {\n\t\tString line = new String(Files.readAllBytes(Paths.get(\"input.txt\")));\n\t\t\n\t\tFiles.write(Paths.get(\"outputh.txt\"), getOutput(line).getBytes(), StandardOpenOption.CREATE);\n\t\t\n\t}", "public static void main(String[] args) {\n try (FileOutputStream f = new FileOutputStream()) //create an object of fileoutputstream\n {\n String data = \"Hello stupid\"; //custom string input\n byte[] arr = data.getBytes(); //convert string to bytes\n stream.write(arr); //text written in file\n } catch (Exception e) { //catch block to handle exception\n System.out.println(e.getMessage());\n }\n System.out.println(\"resources are closed so byebye\");\n }", "public static void main(String[] args) throws IOException{\n BufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n String a = f.readLine();\n String b = f.readLine();\n out.println(equal(a, b) ? \"YES\" : \"NO\");\n f.close();\n out.close();\n }", "public void open(){\n try {\n output = new BufferedWriter(new FileWriter(training_path, true));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) // FileNotFoundException caught by this application\n {\n\n Scanner console = new Scanner(System.in);\n System.out.print(\"Input file: \");\n String inputFileName = console.next();\n System.out.print(\"Output file: \");\n String outputFileName = console.next();\n\n Scanner in = null;\n PrintWriter out =null;\n\n File inputFile = new File(inputFileName);\n try\n {\n in = new Scanner(inputFile);\n out = new PrintWriter(outputFileName);\n\n double total = 0;\n\n while (in.hasNextDouble())\n {\n double value = in.nextDouble();\n int x = in.nextInt();\n out.printf(\"%15.2f\\n\", value);\n total = total + value;\n }\n\n out.printf(\"Total: %8.2f\\n\", total);\n\n\n } catch (FileNotFoundException exception)\n {\n System.out.println(\"FileNotFoundException caught.\" + exception);\n exception.printStackTrace();\n }\n catch (InputMismatchException exception)\n {\n System.out.println(\"InputMismatchexception caught.\" + exception);\n }\n finally\n {\n\n in.close();\n out.close();\n }\n\n }", "public static void main(String[] args) throws IOException {\n\t\t//Scanner in = new Scanner(System.in);\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter out = new PrintWriter(System.out);\n\t\tsolve(in, out);\n\t\tout.close();\n\t\tin.close();\t\n\t}", "String readSystabReg(String topicName, String topicIndex, String itemName, String itemIndex, String dynamicSaved, String folderName) {\n // Order of parameter to write : topicName, topicIndex, itemName, itemIndex, value, dynamicSaved\n // Validation\n String [] proParameters = {FILE_EXE_READER_REG,topicName, topicIndex,itemName, itemIndex , dynamicSaved}; // The order of parameters are important for Process Builder!!\n\n if (util.validationNotNull(proParameters)) { // Validate everything -> true = no null\n\n BufferedReader br = null; // Outside of try/catch scope so it can be used in finally scope\n // Build the process\n ProcessBuilder pb = new ProcessBuilder(proParameters);\n\n pb.directory(new File(FILE_PATH_REG));\n try {\n Process p = pb.start();\n\n br = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\n StringBuilder lineText = new StringBuilder();\n String line = br.readLine();\n // Start reading in loop until there isn't any more\n while (line != null) {\n lineText.append(line);\n line = br.readLine();\n if (!br.ready()) {\n br.close(); // Maybe not ?\n break;\n }\n }\n\n String userInput = topicName + \" \" + topicIndex + \" \" + itemName + \" \" + itemIndex;\n String machineInput = lineText.toString();\n\n util.writeFile(machineInput + \" \" + topicName + \" \" + itemName,folderName, \"SystabRegular\");\n return \"User request : \" + userInput + \"\\n\"\n + \"Answer : \" + machineInput;\n\n }catch(IOException e){\n e.printStackTrace();\n System.out.println(\"Process IO Error\");\n } finally {\n if(br != null) try {\n br.close(); // if it couldn't be close at the try block because an exception\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return \"No data\";\n }\n return \"Nothing\";\n }", "private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n\n\n\n }", "public static void main(String[] args) {\n\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tbw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tString line=\"\";\n\t\ttry {\n\t\t\tline = br.readLine();\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\tint n = Integer.parseInt(line.substring(0, line.indexOf(' ')));\n\t\tint m = Integer.parseInt(line.substring(line.indexOf(' ')+1));\n\t\tint num[] = new int[m];\n\t\tfindSeq(n, 1, num, 0);\n\t\ttry {\n\t\t\tbw.flush();\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\t\t\tbr.close();\n\t\t\tbw.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}", "public static void main(String[] args) throws IOException {\n\r\n\t\t\r\n\t\tString file = \"data/example.txt\";\r\n\t\t\r\n\t\t\r\n\t\t//2. Create object of FileWrite\r\n\t\t\r\n\t\tFileWriter fw = new FileWriter (file);\r\n\t\t\r\n\t\tfw.write(\"This is my example file\");\r\n\t\t\r\n\t\t//3. you have to close the file.\r\n\t\t\r\n\t\tfw.close();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "String getUsersInput(String outForUser) throws IOException;", "public static void inputFlush() {\n int dummy;\n int bAvail;\n\n try {\n while ((System.in.available()) != 0)\n dummy = System.in.read();\n } catch (java.io.IOException e) {\n System.out.println(\"Input error\");\n }\n }", "public static void main(String[] args) throws IOException {\n\t\ttry {\n\t\t\tFileReader inReader=new FileReader(\"C:\\\\Users\\\\LavanyaKantamani\\\\Desktop\\\\Reader.txt\");\n\t\t\tFileWriter outWriter=new FileWriter(\"C:\\\\Users\\\\LavanyaKantamani\\\\Desktop\\\\HelloWorldWriter.txt\");\n\t\t\tint d;\n\t\t\twhile((d=inReader.read())!=-1) {\n\t\t\t\toutWriter.write(d);\n\t\t\t}\n\t\t}catch(FileNotFoundException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}", "String consoleInput();", "public static void main(String[] args) throws IOException {\r\n\t\t// BufferedWriter bufferedWriter = new BufferedWriter(new\r\n\t\t// FileWriter(System.getenv(\"OUTPUT_PATH\")));\r\n\r\n\t\tString s = \"aaaaabc\";\r\n\r\n\t\tString result = isValid(s);\r\n\r\n\t\tSystem.out.println(result);\r\n\t}", "public static void main(String[] args) throws IOException {\n String command, file, destination;\n Scanner in = new Scanner(System.in);\n System.out.print(\"Enter: command file destination\\n\");\n command = in.next();\n file = in.next();\n destination = in.next();\n\n Process process = new ProcessBuilder(\"EncryptionUtil\", command, file, destination).start();\n InputStream is = process.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n String line;\n\n System.out.printf(\"Output of running %s is:\", Arrays.toString(args));\n\n while ((line = br.readLine()) != null) {\n System.out.println(line);\n }\n// EncryptionUtil sec = null;\n// sec = new EncryptionUtil();\n//\n//\n// try {\n//\n// System.out.println(\"Testing file encrypting: \");\n// File input = new File(\"To Encrypt.txt\");\n// File output = new File(\"Encrypted Output.txt\");\n//\n// sec.encrypt(input, output);\n//\n// File deOut = new File(\"Decrypted Output.txt\");\n//\n// sec.decrypt(output, deOut);\n//\n//\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n }", "public static void main(String[] args) {\n Scanner scan =new Scanner(System.in);\n\n System.out.println(\"What's the path to the file?\");\n String path = scan.next();\n System.out.println(\"What text should i put there?\");\n String text = scan.next();\n System.out.println(\"How many lines of it?\");\n int lines = scan.nextInt();\n //while loop for asking number lines>0\n\n writeMoreLinesIntoFile(path, text, lines);\n }", "@Test\n public void testMain() {\n String simulatedUserInput = \"100AUD\" + System.getProperty(\"line.separator\")\n + \"1\" + System.getProperty(\"line.separator\");\n\n InputStream savedStandardInputStream = System.in;\n System.setIn(new ByteArrayInputStream(simulatedUserInput.getBytes()));\n\n mainFunction mainfunc = new mainFunction();\n\n try {\n mainfunc.start();\n } catch(Exception e) {\n System.out.println(\"Exception!\");\n }\n\n assertEquals(1,1);\n }", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "String readInput() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }", "public EnigmaFile() throws Exception\n {\n\n String path = Main.class.getClassLoader().getResource(\"filein.txt\").getPath();\n File currentDirectory=new File(path);\n finstream = new FileInputStream(currentDirectory);\n\n\n String pathToWrite = path.replaceFirst(\"filein.txt\",\"fileout.txt\");\n File outputFile = new File(pathToWrite);\n br = new BufferedReader(new InputStreamReader(finstream));\n outputFile.createNewFile();\n FileWriter fileWrite = new FileWriter(outputFile.getAbsoluteFile());\n writer = new BufferedWriter(fileWrite);\n\n\n }", "public static void main(String[] args) {\n\t\tFileReader fr=null;\r\n\t\tFileWriter fw=null;\r\n\t\ttry {\r\n\t\t\t//字节流以byte为单位,字符流以char为单位!!\r\n\t\t\tchar c[]=new char[1024];\r\n\t\t\tint n=0;//返回实际读取的长度\r\n\t\t\tfr=new FileReader(new File(\"d:/a.txt\"));\r\n\t\t\tfw=new FileWriter(new File(\"d:/b.txt\"));\r\n\t\t\twhile((n=fr.read(c))!=-1){\r\n\t\t\t\tfw.write(c, 0, n);\r\n\t\t\t}\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}finally{\r\n\t\t\ttry {\r\n\t\t\t\tfr.close();\r\n\t\t\t\tfw.close();\r\n\t\t\t} catch (IOException 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}\r\n\t}", "void perform(LineReader input, OutputStream output) throws IOException;", "public static void main(String[] args) throws Exception{\r\n\t\t\r\n\t\tString line;\r\n\t\t//Scanner scan = new Scanner(System.in);\r\n\r\n\t\tProcess process = Runtime.getRuntime ().exec(\"cmd.exe /c mvn clean install com.jaxio.celerio:bootstrap-maven-plugin:bootstrap\",null,\r\n\t\t\t\tnew File(\"C:\\\\AutoCodeGeneration\\\\ivu.apie.database\\\\ivu.apie.database\"));\r\n\t\tOutputStream stdin = process.getOutputStream ();\r\n\t\tInputStream stderr = process.getErrorStream ();\r\n\t\tInputStream stdout = process.getInputStream ();\r\n\r\n\t\tBufferedReader reader = new BufferedReader (new InputStreamReader(stdout));\r\n\t\tBufferedWriter writer = new BufferedWriter(new OutputStreamWriter(stdin));\r\n\r\n\t\tString input = \"2\";//scan.nextLine();\r\n\t\tinput += \"\\n\";\r\n\t\twriter.write(input);\r\n\t\twriter.flush();\r\n\r\n\t\tinput = \"4\";\r\n\t\tinput += \"\\n\";\r\n\t\twriter.write(input);\r\n\t\twriter.flush();\r\n\r\n\t\t/*\r\n\t\t * while ((line = reader.readLine ()) != null) { System.out.println (\"Stdout: \"\r\n\t\t * + line); }\r\n\t\t */\r\n\r\n\t\tinput = \"auto\";\r\n\t\t//input = \"vvvvvv\";\r\n\t\tinput += \"\\n\";\r\n\t\twriter.write(input);\r\n\t\twriter.flush();\r\n\t\t\r\n\t\tinput = \"com.jaxio.auto\";\r\n\t\t//input = \"package_name\";\r\n\t\tinput += \"\\n\";\r\n\t\twriter.write(input);\r\n\t\twriter.close();\r\n\r\n\t\twhile ((line = reader.readLine ()) != null) {\r\n\t\tSystem.out.println (\"Stdout: \" + line);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\ntry\r\n{\r\n\tFileWriter fw= new FileWriter(\"D:/abc.txt\");\r\n\tString s=\"india \\t is my country\";\r\n\tfw.write(s);\r\n\tfw.flush();\r\n\tfw.close();\r\n}\r\ncatch(IOException e)\r\n{\r\n\tSystem.out.println(e);\r\n}\r\n\t}", "private String getInput(String prompt) throws IOException {\n System.out.print(prompt);\n BufferedReader in = new BufferedReader(\n new InputStreamReader(System.in));\n return in.readLine();\n }", "public static void main(String[] args) throws IOException {\n InputStreamReader inputStreamReader = new InputStreamReader(new FileInputStream(args[0]), \"utf-8\");\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(new FileOutputStream(args[1]), \"windows-1251\");\n\n while (inputStreamReader.ready()) {\n outputStreamWriter.write( inputStreamReader.read() );\n }\n inputStreamReader.close();\n outputStreamWriter.close();\n }", "public static void main(String[] args) throws IOException{\n\t\tPrintWriter fw = new PrintWriter(new File(\"C:/Users/odae/workspace/app/src/day0718IOEx5_sample.txt\"));\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tSystem.out.print(\"입력 :\");\n\t\tString str = \"\";\n\t\twhile(!str.equals(\"end\")) {\n\t\t\tstr = in.readLine();\n\t\t\t//fw.write(str);\n\t\t\tfw.println(str);\n\t\t}\n\t\tfw.close();\n\t}", "public InputReader() {\n reader = new Scanner(System.in);\n }", "public static void main(String[] args) throws IOException{\n\t\tInputStreamReader asker = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(asker);\n\t\t\n\t\t/**System.out.println(\"Would you prefer to type in data or give the \"\n\t\t\t\t+ \"name of a file holding the data? (Please use either data or file as your answer)\");\n\t\t\n\t\tString input = br.readLine();\n\t\tdouble [] number = new double [input.length()];\n\t\t\n\t\tif (input.equals(\"data\")){\n\t\t\tSystem.out.println(\"Please enter a series of numbers separated by a space: \");\n\t\t\tString numberEntry = br.readLine();\n\t\t\tnumberEntry = numberEntry.replaceAll(\"\\\\s\",\"\");\n\t\t\tfor(int i = 0; i<numberEntry.length(); i++)\n\t\t\t\tnumber[i]=Double.parseDouble(numberEntry.substring(i,i+1));\n\t\t\t}\n\t\t\n\t\tif (input.equals(\"file\")){\n\t\t\tSystem.out.println(\"Please enter the name of the file to be read from: \");\n\t\t\tString fileToBeReadFrom = br.readLine();\n\t\t\tFileReader fr = new FileReader(fileToBeReadFrom);\n\t\t\tSystem.out.println(\"Please enter the name of the new file you would like to write the analysis data to:\");\n\t\t\tString newFile = br.readLine();\n\t\t\tFileOutputStream fos = new FileOutputStream(newFile);\n\t\t\tPrintWriter pw = new PrintWriter(fos, true);\n\t\t}*/\n\t\t\t\n\t\tSystem.out.println(\"Would you prefer to type in data or give the \"\n\t\t+ \"name of a file holding the data? (Please use either data or file as your answer)\");\n\n\t\tString input = br.readLine();\n\t\tString numberEntry = \"\";\n\t\tdouble [] number = new double [input.length()];\n\n\t\tif (input.equals(\"data\")){\n\t\t\tSystem.out.println(\"Please enter a series of numbers separated by a space: \");\n\t\t\tnumberEntry = br.readLine();\n\t\t\tnumberEntry = numberEntry.replaceAll(\"\\\\s\",\"\");\n\t\t\tfor(int i = 0; i<numberEntry.length(); i++)\n\t\t\t\tnumber[i]=Double.parseDouble(numberEntry.substring(i,i+1));\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < number.length; i++){\n\t\t\tSystem.out.println(number[i]);\n\t\t}\n\t\tbr.close();\n\n\t}", "public static void main(String[] args) throws IOException {\n\t\t\r\n\t\tFileWriter file = new FileWriter(\"C:\\\\Users\\\\Nikhil Sharma\\\\Desktop\\\\text1.txt\");\r\n\t\tBufferedWriter bw = new BufferedWriter(file);\r\n\t\t\r\n\t\tbw.write(\"First Test Program\");\r\n\t\t\r\n\t\tbw.write(RandomStringUtils.randomAlphanumeric(5));\r\n\t\t\r\n\t\tbw.close();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tInputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n\t\tProblemSolver problemSolver = new ProblemSolver();\n\t\tproblemSolver.solveTheProblem(in, out);\t\t\n\t\tout.close();\t\t\n\t}", "private String getClientInput() {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = null;\n try {\n input = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return input;\n }", "public void writeInputToProcess(String input, String charSet) {\n if (StringUtils.isEmpty(input)) {\n throw new IllegalArgumentException();\n }\n processDataIn_.add(new ProcessOutputData(input, charSet));\n }", "private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t/**\n\t\t * Implementation of Environment. Used for communication with user.\n\t\t * Implements Closeable because needs to close Scanner.\n\t\t * */\n\t\tclass MyEnvironment implements Environment, Closeable {\n\t\t\t\n\t\t\t/**\n\t\t\t * Used for scanning input of user.\n\t\t\t * */\n\t\t\tprivate Scanner scan;\n\t\t\t/**\n\t\t\t * Used for security check if scan closes.\n\t\t\t * */\n\t\t\tprivate boolean scanClosed;\n\t\t\t/**\n\t\t\t * multilineSymbol used for marking multilines\n\t\t\t * */\n\t\t\tprivate Character multilineSymbol;\n\t\t\t/**\n\t\t\t * promptSymbol is used for marking input line.\n\t\t\t * */\n\t\t\tprivate Character promptSymbol;\n\t\t\t/**\n\t\t\t * morelinesSymbol is used for marking more lines by user.\n\t\t\t * */\n\t\t\tprivate Character morelinesSymbol;\n\t\t\t/**\n\t\t\t * commands is used to pair commands' name with commands' object\n\t\t\t * */\n\t\t\tprivate SortedMap<String, ShellCommand> commands;\n\t\t\t/**\n\t\t\t * Contains current directory\n\t\t\t * */\n\t\t\tprivate Path currentDirectory;\n\t\t\t/**\n\t\t\t * Used for sharing data between commands\n\t\t\t * */\n\t\t\tprivate Map<String, Object> sharedData;\n\t\t\t\n\t\t\t/**\n\t\t\t * Default constructor. Sets all private variables to default.\n\t\t\t * */\n\t\t\tpublic MyEnvironment() {\n\t\t\t\tscan = new Scanner(System.in);\n\t\t\t\tscanClosed = false;\n\t\t\t\tmultilineSymbol = '|';\n\t\t\t\tpromptSymbol = '>';\n\t\t\t\tmorelinesSymbol = '\\\\';\n\t\t\t\tcommands = new TreeMap<>();\n\t\t\t\tcommands.put(\"cat\", new CatShellCommand());\n\t\t\t\tcommands.put(\"charsets\", new CharsetsShellCommand());\n\t\t\t\tcommands.put(\"copy\", new CopyShellCommand());\n\t\t\t\tcommands.put(\"exit\", new ExitShellCommand());\n\t\t\t\tcommands.put(\"hexdump\", new HexdumpShellCommand());\n\t\t\t\tcommands.put(\"ls\", new LsShellCommand());\n\t\t\t\tcommands.put(\"mkdir\", new MkdirShellCommand());\n\t\t\t\tcommands.put(\"tree\", new TreeShellCommand());\n\t\t\t\tcommands.put(\"symbol\", new SymbolShellCommand());\n\t\t\t\tcommands.put(\"help\", new HelpShellCommand());\n\t\t\t\tcommands.put(\"cd\", new CdShellCommand());\n\t\t\t\tcommands.put(\"pwd\", new PwdShellCommand());\n\t\t\t\tcommands.put(\"dropd\", new DropdShellCommand());\n\t\t\t\tcommands.put(\"pushd\", new PushdShellCommand());\n\t\t\t\tcommands.put(\"listd\", new ListdShellCommand());\n\t\t\t\tcommands.put(\"popd\", new PopdShellCommand());\n\t\t\t\tcommands.put(\"massrename\", new MassrenameShellCommand());\n\t\t\t\tcurrentDirectory = Paths.get(\".\");\n\t\t\t\tsharedData = new HashMap<>();\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Used for closing Scanner scan.\n\t\t\t * */\n\t\t\tpublic void close() {\n\t\t\t\tif(scanClosed == false) {\n\t\t\t\t\tscan.close();\n\t\t\t\t\tscanClosed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String readLine() throws ShellIOException {\n\t\t\t\tString line;\n\t\t\t\ttry {\n\t\t\t\t\tline = scan.nextLine();\n\t\t\t\t} catch (NoSuchElementException | IllegalStateException e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t\treturn line;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void write(String text) throws ShellIOException {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.print(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void writeln(String text) throws ShellIOException {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic SortedMap<String, ShellCommand> commands() {\n\t\t\t\treturn Collections.unmodifiableSortedMap(commands);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getMultilineSymbol() {\n\t\t\t\treturn multilineSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setMultilineSymbol(Character symbol) {\n\t\t\t\tmultilineSymbol = symbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getPromptSymbol() {\n\t\t\t\treturn promptSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setPromptSymbol(Character symbol) {\n\t\t\t\tpromptSymbol = symbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getMorelinesSymbol() {\n\t\t\t\treturn morelinesSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setMorelinesSymbol(Character symbol) {\n\t\t\t\tmorelinesSymbol = symbol;\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Path getCurrentDirectory() {\n\t\t\t\treturn currentDirectory.toAbsolutePath().normalize();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setCurrentDirectory(Path path) throws IOException{\n\t\t\t\tif(!path.toFile().isDirectory()) {\n\t\t\t\t\tthrow new IOException(\"No such directory.\");\n\t\t\t\t}\n\t\t\t\tcurrentDirectory = path.toAbsolutePath().normalize();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object getSharedData(String key) {\n\t\t\t\tif (key == null) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn sharedData.get(key);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setSharedData(String key, Object value) {\n\t\t\t\tif(key == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsharedData.put(key, value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\ttry(MyEnvironment env = new MyEnvironment()) {\n\t\t\tShellStatus status = ShellStatus.CONTINUE;\n\t\t\tenv.writeln(\"Welcome to MyShell v 1.0\");\n\t\t\t\n\t\t\twhile(status != ShellStatus.TERMINATE) {\n\t\t\t\tenv.write(env.getPromptSymbol() + \" \");\n\t\t\t\tString l = readLineOrLines(env);\n\t\t\t\tint boundaryIndex = l.indexOf(' ') == -1 ? l.length() : l.indexOf(' ');\n\t\t\t\tString commandName = l.substring(0, boundaryIndex);\n\t\t\t\tString arguments = l.substring(boundaryIndex);\n\t\t\t\tShellCommand command = env.commands().get(commandName);\n\t\t\t\tif(command == null) {\n\t\t\t\t\tenv.writeln(\"Wrong command. Use 'help'.\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstatus = command.executeCommand(env, arguments);\n\t\t\t} \n\t\t} catch(ShellIOException e) {\n\t\t\t// Terminates shell.\n\t\t}\n\t\t\n\t}", "public static void setIO(String inFile, String outFile)\r\n\r\n\t// Opens the input file \"inFile\" and output file \"outFile.\"\r\n\t// Sets the current input character \"current\" to the first character on the input stream.\r\n\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tinStream = new BufferedReader( new FileReader(inFile) ); //Set the BufferedReader to read from \"inFile.\"\r\n\t\t\toutStream = new PrintWriter( new FileOutputStream(outFile) ); //Set PrintWriter to write to the output file \"outFile.\"\r\n\t\t\tcurrent = inStream.read(); //Set current to the first character in the file.\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e) //Output error message if input or output files cannot be found.\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws IOException {\n PrintWriter outputFile = new PrintWriter(\"ResultFile.txt\");\n\n outputFile.println(\"Line 1\");\n outputFile.println(\"Line 2\");\n outputFile.println(\"Line 3\");\n outputFile.println(\"Line 4\");\n\n\n outputFile.close();\n\n }", "public String Get_Input()throws IOException{\r\n\t\tString input=\"\";\r\n\t\tInputStreamReader converter = new InputStreamReader(System.in);\r\n\t\tBufferedReader in = new BufferedReader(converter);\r\n\t\t\r\n\t\tinput = in.readLine();\r\n\t\t\r\n\t\treturn input;\r\n\t}", "private void exec(String inputFile, String outputPath) {\n\t\tRuntime runtime = Runtime.getRuntime();\n\t\tString[] args = {\"java\", \"-jar\",freelingpath,freelingconf, outputPath, inputFile};\n\t\ttry {\n\t\t\tProcess p = runtime.exec(args);\n\t\t\tp.waitFor();\n\t\t\t//System.out.println(p.exitValue());\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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}", "public static void main(String[] args) throws IOException {\n\n BufferedWriter bw = new BufferedWriter(new FileWriter(\"lorem4.txt\"));\n bw.write(\"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. \");\n bw.newLine();\n bw.write(\"sahuashuashuashauh aubduabd augb ua auhuh\");\n\n bw.close();\n\n }", "public static void createModifiedProgram(String testPath,\n String pythonFileName,\n String tempProgramFileName) throws FileNotFoundException, Exception {\n // Read the program \n\n try {\n TextFileReader pythonCodeFileIn = new TextFileReader(testPath + pythonFileName);\n List<String> pythonCode = pythonCodeFileIn.getText();\n\n // TODO - Jay's class needs to handle List<String>\n List<String> newText = new LinkedList<>();\n for (String text : pythonCode) {\n // text = TextReplacer.replaceAll( text, \"raw_input\", \"_test_raw_in_\" ); // if python 2\n text = TextReplacer.replaceAll(text, \"input\", \"_pytest_input_\");\n \n newText.add(text);\n }\n\n TextFileWriter pythonCodeFileOut = new TextFileWriter(testPath + tempProgramFileName);\n\n pythonCodeFileOut.writeLine(\"# *********************************\");\n pythonCodeFileOut.writeLine(\"# ** Added for automatic grading **\");\n pythonCodeFileOut.writeLine(\"def _pytest_input_( prompt = \\\"\\\" ):\");\n pythonCodeFileOut.writeLine(\" answer = input( prompt )\");\n pythonCodeFileOut.writeLine(\" print( answer )\");\n pythonCodeFileOut.writeLine(\" return answer\");\n pythonCodeFileOut.writeLine(\"# *********************************\");\n pythonCodeFileOut.writeLine(\"\");\n\n pythonCodeFileOut.writeLines(newText);\n pythonCodeFileOut.close();\n } catch (Exception ex) {\n throw ex;\n }\n }", "public static String readLine()\n\t{\n\t\tif (bJunit == true)\n\t\t{\n\t\t\tsLastLine = sJunitInput;\n\t\t\twriteLine(\"JUnit INPUT: \" + sJunitInput);\n\t\t\treturn sLastLine;\n\t\t}\n\t\n\t\ttry {\n\t\t\tsLastLine = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error reading from STDIN\");\n\t\t}\n\t\t\n\t\treturn sLastLine;\n\t\t\n\t}", "void save(String output);", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\r\n\t\tint n = Integer.parseInt(bf.readLine());\r\n\t\tList<Integer> l = new ArrayList<>();\r\n\t\t//System.out.println(bf.read());\r\n\t\t//String[] a = bf.readLine().split(\" \");\r\n\t\t\r\n\t\tfor(int i=0;i<n-1;i++) {\r\n\t\t\tint k = bf.read();\r\n\t\t\tl.add(k);\r\n\t\t\tbf.read();\r\n\t\t}\r\n\t\tl.add(bf.read());\r\n\t\tbf.readLine();\r\n\t\tint m = Integer.parseInt(bf.readLine());\r\n\t\t//String[] ar = bf.readLine().split(\" \");\r\n\t\tfor(int i=0;i<m;i++) {\r\n\t\t\tif(l.contains(bf.read())) bw.write(\"1\\n\");\r\n\t\t\telse bw.write(\"0\"+\"\\n\");\r\n\t\t\tbf.read();\r\n\t\t}\r\n\t\t\r\n\t\tbw.flush();\r\n\t\tbw.close();\r\n\t}", "public static BufferedReader generateInputReader(String[] args) \n\t\t\tthrows IOException\n\t{\n\t\tif(args.length == 0)\n\t\t{\n\t\t\tInputStream stream = Main.class.getResourceAsStream(\"input.txt\");\n\t\t\treturn new BufferedReader(new InputStreamReader(stream));\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn new BufferedReader(new FileReader(args[0]));\n\t\t}\n\t}", "public static BufferedReader generateInputReader(String[] args) \n\t\t\tthrows IOException\n\t{\n\t\tif(args.length == 0)\n\t\t{\n\t\t\tInputStream stream = Main.class.getResourceAsStream(\"input.txt\");\n\t\t\treturn new BufferedReader(new InputStreamReader(stream));\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn new BufferedReader(new FileReader(args[0]));\n\t\t}\n\t}", "public static void main(String[] args) {\nScanner sc= new Scanner(System.in);\nString name=sc.nextLine();\n\t\tSystem.out.println(\"hello\\n\"+name);\n\t\t\n\t}", "InputStream getStdout();", "private static void record (final String outFileName, final String... command) throws IOException {\r\n\t\tstdout.printf (\"Recoding: %s\\t\", String.join (\" \", command));\r\n\t\tFile out = new File (DIR, outFileName);\r\n\t\ttry {\r\n\t\t\tnew ProcessBuilder(command)\r\n\t\t\t\t.directory (DIR)\r\n\t\t\t\t.redirectErrorStream (true)\r\n\t\t\t\t.redirectOutput (out)\r\n\t\t\t\t.start()\r\n\t\t\t\t.waitFor ();\r\n\t\t} catch (InterruptedException e) { /* ignore */ }\r\n\t\tstdout.println (\"(Done)\");\r\n\t}", "@Override\r\n\tpublic int saveProgramToFile(Robot robot, String path)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tBufferedWriter out = new BufferedWriter(new java.io.FileWriter(new java.io.File(path)));\r\n\t\t\tout.write(robot.getProgram().toString());\r\n\t\t\tout.close();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\tSystem.out.println(\"The operation failed.\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = null;\n\t\tPrintWriter pw = null;\n\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(\"Input.txt\"));\n\t\t\tpw = new PrintWriter(new FileWriter(\"Output.txt\"));\n\t\t\tString str;\n\t\t\twhile ((str = br.readLine()) != null) {\n\t\t\t\t\n\t\t\t\tpw.println(str+\"|\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t} finally {\n\t\t\tbr.close();\n\t\t\tpw.close();\n\t\t}\n\t}", "private void createWriter() throws IOException {\n if (outputFile.exists()) {\n outputFile.delete();\n }\n FileWriter outFw = null;\n try {\n outFw = new FileWriter(outputFile.getAbsolutePath());\n } catch (IOException e) {\n LOG.error(\"Can not create writer for {} {}\", outputFile.getAbsolutePath(), e);\n throw e;\n }\n this.bufferedWriter = new BufferedWriter(outFw);\n writeOutputLine(\"User Agent - started\");\n }", "private static void writeOutput(String text) {\n try {\n FileWriter outputWriter = new FileWriter(\"output.txt\", true);\n outputWriter.write(text);\n outputWriter.close();\n } catch (Exception e) {\n System.out.println(\"Could not write to file output.txt\");\n }\n }", "public static void main(String[] args) {\n \t\n \t args = new String[2];\n\t args[0] = \"output.txt\";\n\t args[1] = \"1\";\n\t new BoundedBuffer().go(args);\n \t\n }", "public static void main(String[] args) throws IOException {\n // Use try-with-resources so that stream is handled correctly\n try (FileWriter writer = new FileWriter(\"file.txt\")) {\n writer.write(\"Hello world!\\n\");\n writer.write(\"I am writing to a text file :)\\n\");\n writer.flush();\n }\n\n // try-with-resources can manage multiple streams\n try (\n FileReader reader = new FileReader(\"file.txt\");\n // BufferedReader allows reading line by line\n BufferedReader bufferedReader = new BufferedReader(reader)\n ) {\n while (bufferedReader.ready()) {\n String line = bufferedReader.readLine();\n System.out.println(line);\n }\n }\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tString str=sc.next();\r\n\t\tFile f=new File(str);\r\n\t\tSystem.out.println(f.exists());\r\n\t\tSystem.out.println(f.canRead());\r\n\t\tSystem.out.println(f.canWrite());\r\n System.out.println(f.length());\r\n System.out.println(f.getClass());\r\n\t}", "static void writeToMemo(String input, String user) throws IOException {\n String fileMemo = null;\n String FileName1 = \"CashierMemos.txt\";\n String FileName2 = \"ManagerMemos.txt\";\n String FileName3 = \"ReceiverMemos.txt\";\n String FileName4 = \"ReshelverMemos.txt\";\n\n if (user.equalsIgnoreCase(\"Cashier\")) {\n fileMemo = FileName1;\n } else if (user.equalsIgnoreCase(\"Manager\")) {\n fileMemo = FileName2;\n } else if (user.equalsIgnoreCase(\"Receiver\")) {\n fileMemo = FileName3;\n } else if (user.equalsIgnoreCase(\"Reshelver\")) {\n fileMemo = FileName4;\n }\n FileWriter write = new FileWriter(fileMemo, true);\n PrintWriter print_line = new PrintWriter(write);\n textLine = todayDate + \" \" + input;\n print_line.printf(\"%n\");\n print_line.printf(textLine);\n print_line.close();\n }", "public static void RedirectOutput() {\t\n\t\ttry {\n\t\t\tPrintStream out = new PrintStream(new FileOutputStream(\"ybus.txt\"));\n\t\t\tSystem.setOut(out); //Re-assign the standard output stream to a file.\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n\t\tReader in = new InputStreamReader(System.in);\n\t\tint data = 0;\n\t\twhile((data=in.read()) != -1) {\n\t\t\tSystem.out.print((char)data);\n\t\t}\n\t\t//f가나다라마바사아자차가카\n\t}", "public static void main(String [] args){\n writeFile1(\"1234567890987654321\");\n }", "public static void main(String[] args) {\n//\t\tStringBuffer stringBuffer=new StringBuffer(\"aaaa\");\n//\t\t\n//\t\tSystem.out.println(stringBuffer);\n//\t\t\n\t\tScanner scanner=new Scanner(System.in);\n\t\t\n\t\tStringBuffer stringBuffer2=new StringBuffer();\n\t\tfor(int i=0;i<10;i++){\n\t\tString input =scanner.nextLine();\n\t\tstringBuffer2.append(input);\n\t\t}\n\t\tSystem.out.println(stringBuffer2);\n\t\t\n\t}", "public static void main(String[] args) throws IOException {\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"enter ur name\");\n\t\tString name = scanner.nextLine();\n\t\tSystem.out.println(name);\n\t\tscanner.close();\n\t}", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t}", "public static void main(String[] args) throws IOException{\n\tFile data = new File(\"src/example.dat\");\r\n\r\n\t DataOutputStream out = new DataOutputStream(\r\n\t\t\t\t\t\t\t new BufferedOutputStream(\r\n\t\t\t\t\t\t\t new FileOutputStream(data)));\r\n\t out.writeInt(5);\r\n\t out.writeChar('c');\r\n\t out.writeBoolean(true);\r\n\t out.writeUTF(\"Java\");\r\n\t out.writeChar('\\n');\r\n\t out.writeChars(\"End of file\");\r\n\t out.close();\r\n }", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"lalalalala...\");\n\t\tFile file = new File(\"C://Users//lenovo//Desktop//aa.txt\");\n\t\tFileOutputStream fo = new FileOutputStream(file);\n\t\tPrintWriter pw = new PrintWriter(fo);\n\t\tpw.write(sb.toString().toCharArray());\t\n\t\tpw.close();\n\t\tfo.close();\n\t}", "public static BufferedWriter Writer(String path) throws IOException\n\t{\n\t\treturn new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path),\"UTF-8\"));\n\t}", "public static void createFile(String path) {\n try {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter the file name :\");\n String filepath = path+\"/\"+scanner.next();\n File newFile = new File(filepath);\n newFile.createNewFile();\n System.out.println(\"File is Created Successfully\");\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public static void main(String[] args) {\n\t\tScanner keyboard = new Scanner(System.in);\n\t\t\n\t\tkeyboard.close();\n\t}", "public static void main(String[] args) throws IOException {\n\r\n\t\tString FileLoc = \"UsingPath.txt\";\r\n\t\tString content = \"Content of this file is written using Path class in Java\";\r\n\t\t\r\n\t\t//Using Path class, getting file location\r\n\t\tPath getFile = Paths.get(FileLoc);\r\n\t\t\r\n\t\t//Using Files function getting the content of file as bytes and writing to file\r\n\t\tFiles.write(getFile, content.getBytes());\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tFile file=new File(\"filename.txt\");\r\n\t\t//FileOutputStream fout=null;\r\n\t\ttry(FileOutputStream fout=new FileOutputStream(file);\r\n\t\t\t\tBufferedOutputStream bout=new BufferedOutputStream(fout);\r\n\t\t\t\tDataOutputStream dout=new DataOutputStream(bout)) {\r\n\t\t\tif(!file.exists()) \r\n\t\t\t{\r\n\t\t\t\tString value=\"This goes into the file\";\r\n\t\t\t\t//Byte[] valueToBeStored=\r\n\t\t\t\t\r\n\t\t\t\tdout.write(97);\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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\r\n\r\n\t}", "public static void main(String argv[]) throws FileNotFoundException {\n ClassLoader classLoader = MainJava.class.getClassLoader();\n\n InputStream is = new FileInputStream(classLoader.getResource(\"file/input.txt\").getFile());\n\n EngineImplementation myEngineImplementation = new EngineImplementation();\n\n //Create object of SparkDistributor\n SparkDistributor mySparkDistributor = new SparkDistributor();\n\n myDataConsumer DataConsumer = new myDataConsumer();\n\n mySparkDistributor.setDataConsumer(DataConsumer);\n\n myEngineImplementation.setModelByInputFileStream(is);\n\n myEngineImplementation.process(mySparkDistributor);\n\n }", "public static void main(String[] args) {\r\n\r\n FileReadWrite frw = new FileReadWrite(\"ReadFromFile.txt\", \"OutputFile.txt\");\r\n try {\r\n frw.readAndWriteFile();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }" ]
[ "0.68190515", "0.63314074", "0.616582", "0.6111132", "0.59032893", "0.56944215", "0.5686211", "0.5667942", "0.56595296", "0.5526065", "0.55126864", "0.5458744", "0.53445005", "0.53308034", "0.53260404", "0.5272132", "0.52668387", "0.5244044", "0.52213997", "0.5217596", "0.521702", "0.51955974", "0.5185537", "0.5182702", "0.5170995", "0.5158018", "0.5148764", "0.51150846", "0.5113924", "0.5113897", "0.50933367", "0.5078857", "0.5046994", "0.50382906", "0.50317144", "0.50254047", "0.50225145", "0.5000693", "0.49963233", "0.4991341", "0.4982202", "0.49801534", "0.49799538", "0.49711168", "0.49675205", "0.49514255", "0.49480593", "0.49408984", "0.49341774", "0.49332145", "0.49322298", "0.49265966", "0.49248868", "0.49209613", "0.4917231", "0.48876867", "0.48866752", "0.48764616", "0.48440397", "0.48179412", "0.48104668", "0.48065785", "0.47966558", "0.4794839", "0.4793954", "0.47916317", "0.47903478", "0.4786675", "0.47836056", "0.47823766", "0.47789642", "0.47777924", "0.4777165", "0.47731182", "0.47731182", "0.47675994", "0.4762922", "0.47596538", "0.47566944", "0.47478253", "0.47407025", "0.47388414", "0.4737899", "0.47356954", "0.4735155", "0.47293174", "0.47143558", "0.4709918", "0.47083387", "0.47028777", "0.4702468", "0.4701138", "0.46954605", "0.46933392", "0.46867296", "0.46818346", "0.46786115", "0.46740404", "0.46732274", "0.46710145", "0.4670805" ]
0.0
-1
Partially updates a racePlanForm.
Optional<RacePlanForm> partialUpdate(RacePlanForm racePlanForm);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateLicensePlate(LicensePlateForm form) {\n\t}", "@Override\n\tpublic Planification updatePlan(Planification planification) {\n\t\treturn dao.updatePlan(planification);\n\t}", "Update withLabPlanId(String labPlanId);", "private void butEditFeeSched_Click(Object sender, System.EventArgs e) throws Exception {\n long selectedSched = 0;\n if (listFeeSched.SelectedIndex != -1)\n {\n selectedSched = FeeSchedC.getListShort()[listFeeSched.SelectedIndex].FeeSchedNum;\n }\n \n FormFeeScheds FormF = new FormFeeScheds();\n FormF.ShowDialog();\n DataValid.setInvalid(InvalidType.FeeScheds,InvalidType.Fees,InvalidType.ProcCodes);\n //Fees.Refresh();\n //ProcedureCodes.RefreshCache();\n changed = true;\n fillFeeSchedules();\n for (int i = 0;i < FeeSchedC.getListShort().Count;i++)\n {\n if (FeeSchedC.getListShort()[i].FeeSchedNum == selectedSched)\n {\n listFeeSched.SelectedIndex = i;\n }\n \n }\n fillGrid();\n SecurityLogs.MakeLogEntry(Permissions.Setup, 0, \"Fee Schedules\");\n }", "public void update( )\n {\n FormPortletHome.getInstance( ).update( this );\n }", "private void abrirPlanParaEditar() {\n final AdaptadorTablaPlanTrabajoAcademia planSeleccionado = obtenerPlanSeleccionado();\n posicionSeleccionada = planesTabla.indexOf(planSeleccionado);\n if (planSeleccionado != null) {\n Stage escenaActual = (Stage) tableViewListaPlanes.getScene().getWindow();\n escenaActual.close();\n AdministradorEdicionPlanTrabajoAcademia administradorEdicion = AdministradorEdicionPlanTrabajoAcademia.obtenerInstancia();\n administradorEdicion.desplegarFormularioConDatosPlan(planSeleccionado.getId()); \n }\n }", "List<RacePlanForm> findAll();", "public void update(RaceSituation raceSituation);", "private void editButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editButtonActionPerformed\n try ( Connection con = DbCon.getConnection()) {\n int rowCount = flightsTable.getRowCount();\n selectedRow = flightsTable.getSelectedRow();\n //if row is chosen\n if (selectedRow >= 0) {\n\n PreparedStatement pst = con.prepareStatement(\"update Flights set departure = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 0)\n + \"', destination = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 1)\n + \"', depTime = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 2)\n + \"', arrTime = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 3)\n + \"', number = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 4)\n + \"', price = '\"\n + flightsDftTblMdl.getValueAt(selectedRow, 5)\n + \"' where number = '\" + flightsDftTblMdl.getValueAt(selectedRow, 4) + \"'\");\n\n pst.execute();\n initFlightsTable();//refresh the table after edit\n } else {\n JOptionPane.showMessageDialog(null, \"Please select row first\");\n }\n\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(CustomerRecords.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "@Override\r\n\tpublic int updateCensusForm(String status,String empClock) {\n\t\treturn exemptTeamMemberDAO.updateCensusForm(status,empClock);\r\n\t}", "@RolesAllowed({\"user if ${plan.editable}\", \"administrator if ${plan.editable}\"})\n public Resolution save() throws Exception {\n String newLocalId = plan.getInspireidLocalid();\n try {\n planManager.savePlanDraft(plan, email);\n } catch (PlanINSPIRELocalIDAlreadyExistingException e) {\n String oldLocalId = planManager.getPlanByID(plan.getUuid(), email).getInspireidLocalid();\n context.getValidationErrors().addGlobalError(new LocalizableError(\"plan.error.duplicatelocalid\", HtmlUtil.encode(newLocalId), HtmlUtil.encode(oldLocalId)));\n }\n planId = plan.getUuid();\n addGlobalInformationError();\n\n List<String> nonCompletedFields = updateCompleteness(plan, res);\n context.getMessages().add(new LocalizableMessage(\"plan.update.message\", HtmlUtil.encode(plan.getInspireidLocalid())));\n\n getMessageAboutIncompleteFields(\"plan\", nonCompletedFields);\n return new RedirectResolution(PlanActionBean.class);\n }", "public void AktualizacjaPlanszy() {\n\t\tSystem.out.println(\"AktualizacjaPlanszy\");\n\t\tPlansza.setTowarNaPlanszy(new Towar(GeneratorRandom.RandomOd1(Plansza.getXplanszy()), GeneratorRandom.RandomOd1(Plansza.getYplanszy())));\n\t\tPlansza.setTowarNaPlanszy(new Towar(GeneratorRandom.RandomOd1(Plansza.getXplanszy()), GeneratorRandom.RandomOd1(Plansza.getYplanszy())));\n\t\t\n\t\tPlansza.setNiebezpieczenstwoNaPlanszy(new GenerujNiebezpieczenstwo(GeneratorRandom.RandomOd1(Plansza.getXplanszy()), GeneratorRandom.RandomOd1(Plansza.getYplanszy())));\n\t}", "public void updateActualTime() {\n if (role.getText().equals(\"Member\")) {\n warning.setText(\"\");\n String orderNumber = orderNo.getText();\n int orderNum = 0;\n String realTime = actualTime.getText();\n int actlTime = 0;\n if (orderNumber.equals(\"\")) {\n warning.setText(emptyOrderNum);\n } else if (!Validation.isValidOrderNumber(orderNumber)) {\n warning.setText(invalidOrderNum);\n } else if (actualTime.getText().isEmpty() || !Validation.isValidActualTime(realTime)) {\n warning.setText(invalidActualTime);\n } else {\n orderNum = Integer.parseInt(orderNo.getText());\n actlTime = Integer.parseInt(actualTime.getText());\n\n UserDAO userDAO = new UserDAO();\n User user = userDAO.getUser(logname.getText());\n PlanDAO planDAO = new PlanDAO();\n int userId = user.getId();\n Plan plan = new Plan(orderNum, actlTime);\n planDAO.editActualTime(plan, userId);\n updateTableFromDB(orderNumber);\n warning.setText(\"Actual time of order \" + orderNum + \" updated successfully \");\n }\n } else {\n warning.setText(\"Please use Update button\");\n }\n }", "Optional<ProductionPlanDTO> partialUpdate(ProductionPlanDTO productionPlanDTO);", "@Override\n\tpublic void update(DhtmlxGridForm f) throws Exception {\n\t\t\n\t}", "@Override\n protected void initForm(HttpServletRequest request, ActionForm form,\n \t\tRepairPlan domain, boolean canEdit) {\n \trequest.setAttribute(\"maintenaceLevelSelect\",DataDictHelper.findDataDicts(\"BYJB\"));\n \trequest.setAttribute(\"intervalSelect\", this.repairRecordService.getIntervalSelect());\n \trequest.setAttribute(\"projectName\",this.repairRecordService.getProjectName());\n \tLong id = RequestUtils.getLongParameter(\"id\", -1);\n \tMap<String,RepairPlanRule> map = new HashMap<String, RepairPlanRule>();\n \tif(id != -1){\n \t\tRepairPlan bean = this.getService().load(id);\n \t\tif(bean != null){\n \t\t\tList<RepairPlanRule> repairPlanRules = bean.getRepairPlanRules();\n \t\t\tif(repairPlanRules != null && !repairPlanRules.isEmpty()){\n \t\t\t\tfor(RepairPlanRule rpr : repairPlanRules){\n \t\t\t\t\tif(rpr != null)\n \t\t\t\t\t\tmap.put(rpr.getMaintenaceLevel(), rpr);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \tLong equipmentId = RequestUtils.getLongParameter(\"equipmentId\", -1);\n \tboolean barShow = RequestUtils.getBooleanParameter(\"barShow\", true);\n \tboolean selShow = true;\n \tif(equipmentId != -1){\n \t\tEquipmentDetailsService equipmentDetailsService = AppContext.getServiceFactory().getService(\"equipmentDetailsService\");\n \t\tdomain.setEquipmentDetails(equipmentDetailsService.load(equipmentId));\n \t\tselShow = false;\n \t}\n \trequest.setAttribute(\"selShow\",selShow);\n \trequest.setAttribute(\"barShow\",barShow);\n \trequest.setAttribute(\"ruleMap\",map);\n }", "@Override\n\t/*public ActionResult update(PortalForm form, HttpServletRequest request) {\n\t\tActionResult result = new ActionResult();\n\t\trequest.setAttribute(\"actionForm\", \"\");\n\t\tLogin login = Login.getLogin(request);\n\t\tif (!ModelUtiility.hasModulePermission(login, MODULEID)){\n\t\t\tresult.getActionMessages().add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(\"errors.access.denied\"));\n\t\t\treturn result;\n\t\t}\n\t\tConnection conn = null;\n\t\ttry{\n\t\t\tconn = ResourceManager.getConnection();\n\t\t\tconn.setAutoCommit(false);\n\t\t\tSalaryReconciliationBean formBean = (SalaryReconciliationBean) form;\n\t\t\tSalaryReconciliationReqDao reconciliationReqDao = SalaryReconciliationReqDaoFactory.create(conn);\n\t\t\tSalaryReconciliationReq reconciliationReqArr[] = reconciliationReqDao.findByDynamicWhere(\" SR_ID=? AND ASSIGNED_TO=? AND LEVEL=(SELECT LEVEL FROM SALARY_RECONCILIATION_REQ WHERE ID=(SELECT MAX(ID) FROM SALARY_RECONCILIATION_REQ WHERE SR_ID = ?)) ORDER BY ID DESC\", new Object[] { formBean.getId(), login.getUserId(), formBean.getId() });\n\t\t\tSalaryReconciliationDao reconciliationDao = SalaryReconciliationDaoFactory.create(conn);\n\t\t\tSalaryReconciliation reconciliation = reconciliationDao.findByPrimaryKey(formBean.getId());\n\t\t\tif (reconciliationReqArr == null || reconciliationReqArr.length <= 0 || reconciliationReqArr[0] == null || reconciliation == null){\n\t\t\t\tresult.getActionMessages().add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(\"deputation.update.failed\"));\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tSalaryReconciliationReq reconciliationReq = reconciliationReqArr[0];\n\t\t\tswitch (ActionMethods.UpdateTypes.getValue(form.getuType())) {\n\t\t\t\tcase UPDATE:\n\t\t\t\t\t//updateReports(formBean, result, login);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ACCEPTED:\n\t\t\t\t\t///updateReports(formBean, result, login);\n\t\t\t\t\treconciliationReq.setComments(formBean.getComments());\n\t\t\t\t\treconciliationReq.setActionBy(login.getUserId());\n\t\t\t\t\treconciliationReq.setActionOn(new Date());\n\t\t\t\t\treconciliationReqDao.update(reconciliationReq.createPk(), reconciliationReq);\n\t\t\t\t\tProcessChain pchain = getProcessChain(conn);\n\t\t\t\t\tInteger[] notifiers = new ProcessEvaluator().notifiers(pchain.getNotification(), 1);\n\t\t\t\t\tif (reconciliationReq.getEscalatedFrom() != null && reconciliationReq.getEscalatedFrom().length() > 0 && !reconciliationReq.getEscalatedFrom().equals(\"0\")){\n\t\t\t\t\t\tJDBCUtiility.getInstance().update(\"UPDATE SALARY_RECONCILIATION_REQ SET ACTION_BY=?, ACTION_ON=NOW() WHERE ESCALATED_FROM IN ( \" + reconciliationReq.getEscalatedFrom() + \" )\", new Object[] { login.getUserId() }, conn);\n\t\t\t\t\t}\n\t\t\t\t\tif (reconciliation.getStatus() == Status.getStatusId(Status.GENERATED)){\n\t\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.SUBMITTED));\n\t\t\t\t\t} else if (reconciliation.getStatus() == Status.getStatusId(Status.REJECTED)){\n\t\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.RESUBMITTED));\n\t\t\t\t\t} else if (reconciliation.getStatus() == Status.getStatusId(Status.ACCEPTED)){\n\t\t\t\t\t\tif (isCompleteApprove && JDBCUtiility.getInstance().getRowCount(\"FROM SALARY_RECONCILIATION_REQ WHERE LEVEL=? AND SR_ID=? AND ACTION_BY=0\", new Object[] { reconciliationReq.getLevel(), reconciliationReq.getSrId() }, conn) > 0) break;\n\t\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.APPROVED));\n\t\t\t\t\t} else if (reconciliation.getStatus() == Status.getStatusId(Status.APPROVED)){\n\t\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.COMPLETED));\n\t\t\t\t\t\treconciliation.setCompletedOn(new Date());\n\t\t\t\t\t\treconciliationDao.update(reconciliation.createPk(), reconciliation);\n\t\t\t\t\t\tList<Object> ccids = JDBCUtiility.getInstance().getSingleColumn(\"SELECT ASSIGNED_TO FROM SALARY_RECONCILIATION_REQ WHERE SR_ID=?\", new Object[] { reconciliation.getId() }, conn);\n\t\t\t\t\t// updating salary in advance table\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tFinanceInfoDaoFactory.create(conn).updateSalaryInAdvance(reconciliation);\n\t\t\t\t\t\tSet<Integer> ccidsSet = new HashSet<Integer>();\n\t\t\t\t\t\tif (ccids != null && ccids.size() > 0){\n\t\t\t\t\t\t\tfor (Object ids : ccids)\n\t\t\t\t\t\t\t\tccidsSet.add((Integer) ids);\n\t\t\t\t\t\t\tfor (Integer ids : notifiers)\n\t\t\t\t\t\t\t\tccidsSet.add((Integer) ids);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ccidsSet.size() > 0){\n\t\t\t\t\t\t\tString mailSubject = \"Final Salary Reconciliation Report for \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \"ready for disbursal\";\n\t\t\t\t\t\t\tString messageBody = \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The final Salary Reconciliation Report for the period \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" is ready for disbursal. \";\n\t\t\t\t\t\t\tsendMail(mailSubject, messageBody, ccidsSet.toArray(new Integer[ccidsSet.size()]), null, reconciliation.getEsrMapId(), reconciliation.getStatusName(), conn);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tInteger[] approvers = new ProcessEvaluator().approvers(pchain.getApprovalChain(), reconciliationReq.getLevel() + 1, 1);\n\t\t\t\t\tif (approvers != null && approvers.length > 0){\n\t\t\t\t\t\tfor (int approver : approvers){\n\t\t\t\t\t\t\treconciliationReqDao.insert(new SalaryReconciliationReq(reconciliation.getId(), approver, reconciliationReq.getLevel() + 1, \"\", new Date(), \"0\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString mailSubject = \"Salary Reconciliation Report submitted for \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear();\n\t\t\t\t\t\tString messageBody = \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The Salary Report for the period \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" has been submitted and is awaiting your action. Please do the needful.\";\n\t\t\t\t\t\tsendMail(mailSubject, messageBody, approvers, notifiers, reconciliation.getEsrMapId(), reconciliation.getStatusName(), conn);\n\t\t\t\t\t} else if (reconciliation.getStatus() == Status.getStatusId(Status.SUBMITTED) || reconciliation.getStatus() == Status.getStatusId(Status.RESUBMITTED)){\n\t\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.ACCEPTED));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tInteger[] handlers = new ProcessEvaluator().handlers(pchain.getHandler(), 1);\n\t\t\t\t\t\tfor (int handler : handlers){\n\t\t\t\t\t\t\treconciliationReqDao.insert(new SalaryReconciliationReq(reconciliation.getId(), handler, reconciliationReq.getLevel() + 1, \"\", new Date(), \"0\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString mailSubject = \"Salary Reconciliation Report for \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" Accepted by Finance\";\n\t\t\t\t\t\tString messageBody = \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The Salary Report for the period \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" has been Accepted by Finance and is awaiting your action. Please do the needful.\";\n\t\t\t\t\t\tsendMail(mailSubject, messageBody, handlers, notifiers, reconciliation.getEsrMapId(), reconciliation.getStatusName(), conn);\n\t\t\t\t\t} else if (reconciliation.getStatus() == Status.getStatusId(Status.APPROVED)){\n\t\t\t\t\t\tapprovers = new ProcessEvaluator().approvers(pchain.getApprovalChain(), reconciliationReq.getLevel() - 1, 1);\n\t\t\t\t\t\tInteger[] handlers = new ProcessEvaluator().handlers(pchain.getHandler(), 1);\n\t\t\t\t\t\tStringBuffer handlersNames = new StringBuffer();\n\t\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\tfor (int id : handlers){\n\t\t\t\t\t\t\thandlersNames.append(ModelUtiility.getInstance().getEmployeeName(id));\n\t\t\t\t\t\t\tif (flag) handlersNames.append(\" & \");\n\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int approver : approvers){\n\t\t\t\t\t\t\treconciliationReqDao.insert(new SalaryReconciliationReq(reconciliation.getId(), approver, reconciliationReq.getLevel() + 1, \"\", new Date(), \"0\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString mailSubject = \"Salary Reconciliation Report for \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" Approved by \" + handlersNames.toString();\n\t\t\t\t\t\tString messageBody = \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The Salary Report for the period \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" has been approved by \" + handlersNames.toString() + \" and is awaiting your action. Please do the needful.\";\n\t\t\t\t\t\tsendMail(mailSubject, messageBody, approvers, notifiers, reconciliation.getEsrMapId(), reconciliation.getStatusName(), conn);\n\t\t\t\t\t}\n\t\t\t\t\treconciliationDao.update(reconciliation.createPk(), reconciliation);\n\t\t\t\t\tbreak;\n\t\t\t\tcase REJECTED:\n\t\t\t\t\treconciliationReq.setActionBy(login.getUserId());\n\t\t\t\t\treconciliationReq.setActionOn(new Date());\n\t\t\t\t\treconciliationReq.setComments(formBean.getComments());\n\t\t\t\t\treconciliationReqDao.update(reconciliationReq.createPk(), reconciliationReq);\n\t\t\t\t\tif (reconciliationReq.getEscalatedFrom() != null && reconciliationReq.getEscalatedFrom().length() > 0 && !reconciliationReq.getEscalatedFrom().equals(\"0\")){\n\t\t\t\t\t\tJDBCUtiility.getInstance().update(\"UPDATE SALARY_RECONCILIATION_REQ SET ACTION_BY=?, ACTION_ON=NOW() WHERE ESCALATED_FROM IN ( \" + reconciliationReq.getEscalatedFrom() + \" )\", new Object[] { login.getUserId() }, conn);\n\t\t\t\t\t}\n\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.REJECTED));\n\t\t\t\t\treconciliationDao.update(reconciliation.createPk(), reconciliation);\n\t\t\t\t\tProcessChain prchain = getProcallReceipientcCMailId.add(\"[email protected]\");essChain(conn);\n\t\t\t\t\tInteger[] reapprovers = new ProcessEvaluator().approvers(prchain.getApprovalChain(), 1, 1);\n\t\t\t\t\tif (reapprovers != null && reapprovers.length > 0){\n\t\t\t\t\t\tfor (int approver : reapprovers){\n\t\t\t\t\t\t\treconciliationReqDao.insert(new SalaryReconciliationReq(reconciliation.getId(), approver, 1, \"\", new Date(), \"0\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tInteger[] renotifiers = new ProcessEvaluator().notifiers(prchain.getNotification(), 1);\n\t\t\t\t\tString mailSubject = \"Salary Reconciliation Report rejected for \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear();\n\t\t\t\t\tString messageBody = \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The Salary Report for the period \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" has been rejected and is awaiting your action. Please do the needful.\";\n\t\t\t\t\tsendMail(mailSubject, messageBody, reapprovers, renotifiers, reconciliation.getEsrMapId(), reconciliation.getStatusName(), conn);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tconn.commit();\n\t\t} catch (Exception ex){\n\t\t\tlogger.error(\"RECONCILATION UPDATE : failed to update data\", ex);\n\t\t\tresult.getActionMessages().add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(\"deputation.update.failed\"));\n\t\t\treturn result;\n\t\t} finally{\n\t\t\tResourceManager.close(conn);\n\t\t}\n\t\treturn result;\n\t}*/\n\t\n\t\n\tpublic ActionResult update(PortalForm form, HttpServletRequest request) {\n\t\tActionResult result = new ActionResult();\n\t\trequest.setAttribute(\"actionForm\", \"\");\n\t\tLogin login = Login.getLogin(request);\n\t\tif (!ModelUtiility.hasModulePermission(login, MODULEID)){\n\t\t\tresult.getActionMessages().add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(\"errors.access.denied\"));\n\t\t\treturn result;\n\t\t}\n\t\tConnection conn = null;\n\t\ttry{\n\t\t\tconn = ResourceManager.getConnection();\n\t\t\tconn.setAutoCommit(false);\n\t\t\tSalaryReconciliationBean formBean = (SalaryReconciliationBean) form;\n\t\t\tSalaryReconciliationReqDao reconciliationReqDao = SalaryReconciliationReqDaoFactory.create(conn);\n\t\t\tSalaryReconciliationReq reconciliationReqArr[] = reconciliationReqDao.findByDynamicWhere(\" SR_ID=? AND ASSIGNED_TO=? AND LEVEL=(SELECT LEVEL FROM SALARY_RECONCILIATION_REQ WHERE ID=(SELECT MAX(ID) FROM SALARY_RECONCILIATION_REQ WHERE SR_ID = ?)) ORDER BY ID DESC\", new Object[] { formBean.getId(), login.getUserId(), formBean.getId() });\n\t\t\tSalaryReconciliationDao reconciliationDao = SalaryReconciliationDaoFactory.create(conn);\n\t\t\tSalaryReconciliation reconciliation = reconciliationDao.findByPrimaryKey(formBean.getId());\n\t\t\tif (reconciliationReqArr == null || reconciliationReqArr.length <= 0 || reconciliationReqArr[0] == null || reconciliation == null){\n\t\t\t\t\n\t\t\t\tSalaryReconciliationReportDao salaryReconciliationReportDao = SalaryReconciliationReportDaoFactory.create();\n\t\t\t\tSalaryReconciliationReport salaryReconciliationReport = new SalaryReconciliationReport();\n\t\t\t\tsalaryReconciliationReport.setReason(formBean.getReason());\n\t\t\t\tsalaryReconciliationReport.setDate(formBean.getDate());\n\t\t\t\tsalaryReconciliationReport.setSrId(formBean.getSrId());\n\t\t\t\tsalaryReconciliationReport.setUserId(formBean.getUserId());\n\t\t\t\tsalaryReconciliationReportDao.reasonForNonPay(salaryReconciliationReport.getReason(),salaryReconciliationReport.getDate(),formBean.getSrId(),salaryReconciliationReport.getUserId());\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tSalaryReconciliationReq reconciliationReq = reconciliationReqArr[0];\n\t\t\tswitch (ActionMethods.UpdateTypes.getValue(form.getuType())) {\n\t\t\t\tcase UPDATE:\n\t\t\t\t\t//updateReports(formBean, result, login);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ACCEPTED:\n\t\t\t\t\t///updateReports(formBean, result, login);\n\t\t\t\t\treconciliationReq.setComments(formBean.getComments());\n\t\t\t\t\treconciliationReq.setActionBy(login.getUserId());\n\t\t\t\t\treconciliationReq.setActionOn(new Date());\n\t\t\t\t\treconciliationReqDao.update(reconciliationReq.createPk(), reconciliationReq);\n\t\t\t\t\tProcessChain pchain = getProcessChain(conn);\n\t\t\t\t\tInteger[] notifiers = new ProcessEvaluator().notifiers(pchain.getNotification(), 1);\n\t\t\t\t\tif (reconciliationReq.getEscalatedFrom() != null && reconciliationReq.getEscalatedFrom().length() > 0 && !reconciliationReq.getEscalatedFrom().equals(\"0\")){\n\t\t\t\t\t\tJDBCUtiility.getInstance().update(\"UPDATE SALARY_RECONCILIATION_REQ SET ACTION_BY=?, ACTION_ON=NOW() WHERE ESCALATED_FROM IN ( \" + reconciliationReq.getEscalatedFrom() + \" )\", new Object[] { login.getUserId() }, conn);\n\t\t\t\t\t}\n\t\t\t\t\tif (reconciliation.getStatus() == Status.getStatusId(Status.GENERATED)){\n\t\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.SUBMITTED));\n\t\t\t\t\t} else if (reconciliation.getStatus() == Status.getStatusId(Status.REJECTED)){\n\t\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.RESUBMITTED));\n\t\t\t\t\t} else if (reconciliation.getStatus() == Status.getStatusId(Status.ACCEPTED)){\n\t\t\t\t\t\tif (isCompleteApprove && JDBCUtiility.getInstance().getRowCount(\"FROM SALARY_RECONCILIATION_REQ WHERE LEVEL=? AND SR_ID=? AND ACTION_BY=0\", new Object[] { reconciliationReq.getLevel(), reconciliationReq.getSrId() }, conn) > 0) break;\n\t\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.APPROVED));\n\t\t\t\t\t} else if (reconciliation.getStatus() == Status.getStatusId(Status.APPROVED)){\n\t\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.COMPLETED));\n\t\t\t\t\t\treconciliation.setCompletedOn(new Date());\n\t\t\t\t\t\treconciliationDao.update(reconciliation.createPk(), reconciliation);\n\t\t\t\t\t\tList<Object> ccids = JDBCUtiility.getInstance().getSingleColumn(\"SELECT ASSIGNED_TO FROM SALARY_RECONCILIATION_REQ WHERE SR_ID=?\", new Object[] { reconciliation.getId() }, conn);\n\t\t\t\t\t// updating salary in advance table\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tFinanceInfoDaoFactory.create(conn).updateSalaryInAdvance(reconciliation);\n\t\t\t\t\t\tSet<Integer> ccidsSet = new HashSet<Integer>();\n\t\t\t\t\t\tif (ccids != null && ccids.size() > 0){\n\t\t\t\t\t\t\tfor (Object ids : ccids)\n\t\t\t\t\t\t\t\tccidsSet.add((Integer) ids);\n\t\t\t\t\t\t\tfor (Integer ids : notifiers)\n\t\t\t\t\t\t\t\tccidsSet.add((Integer) ids);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ccidsSet.size() > 0){\n\t\t\t\t\t\t\tString mailSubject = \"Final Salary Reconciliation Report for \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \"ready for disbursal\";\n\t\t\t\t\t\t\tString messageBody = \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The final Salary Reconciliation Report for the period \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" is ready for disbursal. \";\n\t\t\t\t\t\t\tsendMail(mailSubject, messageBody, ccidsSet.toArray(new Integer[ccidsSet.size()]), null, reconciliation.getEsrMapId(), reconciliation.getStatusName(), conn);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsendMail(formBean);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tInteger[] approvers = new ProcessEvaluator().approvers(pchain.getApprovalChain(), reconciliationReq.getLevel() + 1, 1);\n\t\t\t\t\tif (approvers != null && approvers.length > 0){\n\t\t\t\t\t\tfor (int approver : approvers){\n\t\t\t\t\t\t\treconciliationReqDao.insert(new SalaryReconciliationReq(reconciliation.getId(), approver, reconciliationReq.getLevel() + 1, \"\", new Date(), \"0\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString mailSubject = \"Salary Reconciliation Report submitted for \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear();\n\t\t\t\t\t\tString messageBody = \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The Salary Report for the period \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" has been submitted and is awaiting your action. Please do the needful.\";\n\t\t\t\t\t\tsendMail(mailSubject, messageBody, approvers, notifiers, reconciliation.getEsrMapId(), reconciliation.getStatusName(), conn);\n\t\t\t\t\t} else if (reconciliation.getStatus() == Status.getStatusId(Status.SUBMITTED) || reconciliation.getStatus() == Status.getStatusId(Status.RESUBMITTED)){\n\t\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.ACCEPTED));\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tInteger[] handlers = new ProcessEvaluator().handlers(pchain.getHandler(), 1);\n\t\t\t\t\t\tfor (int handler : handlers){\n\t\t\t\t\t\t\treconciliationReqDao.insert(new SalaryReconciliationReq(reconciliation.getId(), handler, reconciliationReq.getLevel() + 1, \"\", new Date(), \"0\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString mailSubject = \"Salary Reconciliation Report for \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" Accepted by Finance\";\n\t\t\t\t\t\tString messageBody = \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The Salary Report for the period \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" has been Accepted by Finance and is awaiting your action. Please do the needful.\";\n\t\t\t\t\t\tsendMail(mailSubject, messageBody, handlers, notifiers, reconciliation.getEsrMapId(), reconciliation.getStatusName(), conn);\n\t\t\t\t\t} else if (reconciliation.getStatus() == Status.getStatusId(Status.APPROVED)){\n\t\t\t\t\t\tapprovers = new ProcessEvaluator().approvers(pchain.getApprovalChain(), reconciliationReq.getLevel() - 1, 1);\n\t\t\t\t\t\tInteger[] handlers = new ProcessEvaluator().handlers(pchain.getHandler(), 1);\n\t\t\t\t\t\tStringBuffer handlersNames = new StringBuffer();\n\t\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\tfor (int id : handlers){\n\t\t\t\t\t\t\thandlersNames.append(ModelUtiility.getInstance().getEmployeeName(id));\n\t\t\t\t\t\t\tif (flag) handlersNames.append(\" & \");\n\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int approver : approvers){\n\t\t\t\t\t\t\treconciliationReqDao.insert(new SalaryReconciliationReq(reconciliation.getId(), approver, reconciliationReq.getLevel() + 1, \"\", new Date(), \"0\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString mailSubject = \"Salary Reconciliation Report for \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" Approved by \" + handlersNames.toString();\n\t\t\t\t\t\tString messageBody = \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The Salary Report for the period \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" has been approved by \" + handlersNames.toString() + \" and is awaiting your action. Please do the needful.\";\n\t\t\t\t\t\tsendMail(mailSubject, messageBody, approvers, notifiers, reconciliation.getEsrMapId(), reconciliation.getStatusName(), conn);\n\t\t\t\t\t}\n\t\t\t\t\treconciliationDao.update(reconciliation.createPk(), reconciliation);\n\t\t\t\t\tbreak;\n\t\t\t\tcase REJECTED:\n\t\t\t\t\treconciliationReq.setActionBy(login.getUserId());\n\t\t\t\t\treconciliationReq.setActionOn(new Date());\n\t\t\t\t\treconciliationReq.setComments(formBean.getComments());\n\t\t\t\t\treconciliationReqDao.update(reconciliationReq.createPk(), reconciliationReq);\n\t\t\t\t\tif (reconciliationReq.getEscalatedFrom() != null && reconciliationReq.getEscalatedFrom().length() > 0 && !reconciliationReq.getEscalatedFrom().equals(\"0\")){\n\t\t\t\t\t\tJDBCUtiility.getInstance().update(\"UPDATE SALARY_RECONCILIATION_REQ SET ACTION_BY=?, ACTION_ON=NOW() WHERE ESCALATED_FROM IN ( \" + reconciliationReq.getEscalatedFrom() + \" )\", new Object[] { login.getUserId() }, conn);\n\t\t\t\t\t}\n\t\t\t\t\treconciliation.setStatus(Status.getStatusId(Status.REJECTED));\n\t\t\t\t\treconciliationDao.update(reconciliation.createPk(), reconciliation);\n\t\t\t\t\tProcessChain prchain = getProcessChain(conn);\n\t\t\t\t\tInteger[] reapprovers = new ProcessEvaluator().approvers(prchain.getApprovalChain(), 1, 1);\n\t\t\t\t\tif (reapprovers != null && reapprovers.length > 0){\n\t\t\t\t\t\tfor (int approver : reapprovers){\n\t\t\t\t\t\t\treconciliationReqDao.insert(new SalaryReconciliationReq(reconciliation.getId(), approver, 1, \"\", new Date(), \"0\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tInteger[] renotifiers = new ProcessEvaluator().notifiers(prchain.getNotification(), 1);\n\t\t\t\t\tString mailSubject = \"Salary Reconciliation Report rejected for \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear();\n\t\t\t\t\tString messageBody = \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The Salary Report for the period \" + PortalUtility.returnMonth(reconciliation.getMonth()) + \" \" + reconciliation.getYear() + \" has been rejected and is awaiting your action. Please do the needful.\";\n\t\t\t\t\tsendMail(mailSubject, messageBody, reapprovers, renotifiers, reconciliation.getEsrMapId(), reconciliation.getStatusName(), conn);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t/*case NONPAYMENT:\n\t\t\t\t\t\n\t\t\t\t\tSalaryReconciliationReportDao salaryReconciliationReportDao = SalaryReconciliationReportDaoFactory.create();\n\t\t\t\t\tSalaryReconciliationReport salaryReconciliationReport = new SalaryReconciliationReport();\n\t\t\t\t\tsalaryReconciliationReport.setReason(formBean.getReason());\n\t\t\t\t\tsalaryReconciliationReport.setDate(formBean.getDate());\n\t\t\t\t\tsalaryReconciliationReport.setSrId(formBean.getSrId());\n\t\t\t\t\tsalaryReconciliationReportDao.reasonForNonPay(salaryReconciliationReport.getReason(),salaryReconciliationReport.getDate(),formBean.getSrId());*/\n\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\t\t\tconn.commit();\n\t\t} catch (Exception ex){\n\t\t\tlogger.error(\"RECONCILATION UPDATE : failed to update data\", ex);\n\t\t\tresult.getActionMessages().add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(\"deputation.update.failed\"));\n\t\t\treturn result;\n\t\t} finally{\n\t\t\tResourceManager.close(conn);\n\t\t}\n\t\treturn result;\n\t}", "Optional<RacePlanForm> findOne(Long id);", "private void updateAssessment() {\n Converters c = new Converters();\n\n //get UI fields\n int courseId = thisCourseId;\n String title = editTextAssessmentTitle.getText().toString();\n LocalDate dueDate = c.stringToLocalDate(textViewAssessmentDueDate.getText().toString());\n String status = editTextAssessmentStatus.getText().toString();\n String note = editTextAssessmentNote.getText().toString();\n String type = editTextAssessmentType.getText().toString();\n\n if (title.trim().isEmpty() || dueDate == null || status.trim().isEmpty() || type.trim().isEmpty()) {\n Toast.makeText(this, \"Please complete all fields\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //instantiate Assessment object\n Assessment assessment = new Assessment(courseId, title, dueDate, status, note, type);\n //since we're updating, add the assessmentId to the assessment object\n assessment.setAssessmentId(thisAssessmentId);\n\n\n //add new assessment\n addEditAssessmentViewModel.update(assessment);\n finish();\n }", "private void updateNonRecurringSchedule() {\n int pos = scheduleSpinner.getSelectedItemPosition();\n PHSchedule schedule = nonRecurringSchedules.get(pos);\n\n String timerName = editTvScheduleName.getText().toString().trim();\n if (timerName.length() != 0) {\n schedule.setName(timerName);\n }\n\n if (timeToSend == null) {\n PHWizardAlertDialog.showErrorDialog(\n PHUpdateNonRecurringScheduleActivity.this, getResources()\n .getString(R.string.txt_empty_time),\n R.string.btn_ok);\n return;\n } else {\n schedule.setDate(timeToSend);\n\n }\n\n String lightIdentifier = null;\n String groupIdentifier = null;\n if (rbLightForSchedule.isChecked()) {\n int lightPos = lightSpinner.getSelectedItemPosition();\n PHLight light = lights.get(lightPos);\n lightIdentifier = light.getIdentifier();\n schedule.setLightIdentifier(lightIdentifier);\n schedule.setGroupIdentifier(null);\n\n } else if (rbGroupForSchedule.isChecked()) {\n int groupPos = groupSpinner.getSelectedItemPosition();\n PHGroup group = groups.get(groupPos);\n groupIdentifier = group.getIdentifier();\n schedule.setGroupIdentifier(groupIdentifier);\n schedule.setLightIdentifier(null);\n }\n\n if (stateToSend != null) {\n schedule.setLightState(stateToSend);\n }\n\n String timerDescription = editTvScheduleDescriptor.getText().toString()\n .trim();\n\n if (timerDescription.length() != 0) {\n schedule.setDescription(timerDescription);\n }\n\n String timerRandomTime = editTvScheduleRandomTime.getText().toString()\n .trim();\n if (timerRandomTime.length() != 0) {\n schedule.setRandomTime(Integer.parseInt(timerRandomTime));\n }\n\n final PHWizardAlertDialog dialogManager = PHWizardAlertDialog\n .getInstance();\n dialogManager.showProgressDialog(R.string.sending_progress,\n PHUpdateNonRecurringScheduleActivity.this);\n\n bridge.updateSchedule(schedule, new PHScheduleListener() {\n\n @Override\n public void onSuccess() {\n\n dialogManager.closeProgressDialog();\n PHUpdateNonRecurringScheduleActivity.this.runOnUiThread(new Runnable() {\n public void run() {\n if (isCurrentActivity()) { \n PHWizardAlertDialog.showResultDialog(PHUpdateNonRecurringScheduleActivity.this, getString(R.string.txt_timer_updated), R.string.btn_ok, R.string.txt_result);\n }\n }\n });\n \n }\n\n @Override\n public void onStateUpdate(\n Hashtable<String, String> successAttribute,\n List<PHHueError> errorAttribute) {\n // TODO Auto-generated method stub\n }\n\n @Override\n public void onError(int code, final String msg) {\n dialogManager.closeProgressDialog();\n Log.v(TAG, \"onError : \" + code + \" : \" + msg);\n PHUpdateNonRecurringScheduleActivity.this.runOnUiThread(new Runnable() {\n public void run() {\n if (isCurrentActivity()) { \n PHWizardAlertDialog.showErrorDialog(PHUpdateNonRecurringScheduleActivity.this, msg,R.string.btn_ok);\n }\n }\n });\n \n }\n });\n }", "@FXML\n void setSubmit() {\n generalTextArea.clear();\n\n RadioButton selectedRadioButton;\n String departSet;\n try{\n selectedRadioButton = (RadioButton) departmentSet.getSelectedToggle();\n departSet = selectedRadioButton.getText();\n }catch(NullPointerException e){\n generalTextArea.appendText(\"Please select a department.\");\n return;\n }\n\n String date = dateSetText.getText();\n if(!isParse(date)){\n return;\n }\n String name = nameSetText.getText();\n if(name.length() == 0){\n generalTextArea.appendText(\"The name field was left blank. Please enter a name! \\n\");\n return;\n }\n int hours = 0;\n try {\n hours = Integer.parseInt(hoursSetText.getText());\n }catch(NumberFormatException e){\n generalTextArea.appendText(\"Please enter a valid number for the hours! \\n\");\n hoursSetText.clear();\n return;\n }\n int tempPay = 0;\n if(isValidHours(hours) && isValidDate(date)){\n Profile newEmployeeProfile = profileData(name, departSet, date);\n Employee employeeHoursSet = new Parttime(newEmployeeProfile, tempPay);\n Parttime tempEmployee = (Parttime)employeeHoursSet;\n tempEmployee.setHours(hours);\n boolean wasEmployeeHoursSet = company.setHours(employeeHoursSet);\n if(wasEmployeeHoursSet){\n generalTextArea.appendText(\"Working hours set.\");\n }else if (company.getNumEmployee() == 0){\n generalTextArea.appendText(\"Employee database is empty.\");\n }else{\n generalTextArea.appendText(\"Employee does not exist.\");\n }\n\n\n }\n clearEverything();\n\n }", "@LogMethod\r\n private void editResults()\r\n {\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n waitAndClickAndWait(Locator.linkWithText(\"view results\"));\r\n DataRegionTable table = new DataRegionTable(\"Data\", getDriver());\r\n assertEquals(\"No rows should be editable\", 0, DataRegionTable.updateLinkLocator().findElements(table.getComponentElement()).size());\r\n assertElementNotPresent(Locator.button(\"Delete\"));\r\n\r\n // Edit the design to make them editable\r\n ReactAssayDesignerPage assayDesignerPage = _assayHelper.clickEditAssayDesign(true);\r\n assayDesignerPage.setEditableResults(true);\r\n assayDesignerPage.clickFinish();\r\n\r\n // Try an edit\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n DataRegionTable dataTable = new DataRegionTable(\"Data\", getDriver());\r\n assertEquals(\"Incorrect number of results shown.\", 10, table.getDataRowCount());\r\n doAndWaitForPageToLoad(() -> dataTable.updateLink(dataTable.getRowIndex(\"Specimen ID\", \"AAA07XK5-05\")).click());\r\n setFormElement(Locator.name(\"quf_SpecimenID\"), \"EditedSpecimenID\");\r\n setFormElement(Locator.name(\"quf_VisitID\"), \"601.5\");\r\n setFormElement(Locator.name(\"quf_testAssayDataProp5\"), \"notAnumber\");\r\n clickButton(\"Submit\");\r\n assertTextPresent(\"Could not convert value: \" + \"notAnumber\");\r\n setFormElement(Locator.name(\"quf_testAssayDataProp5\"), \"514801\");\r\n setFormElement(Locator.name(\"quf_Flags\"), \"This Flag Has Been Edited\");\r\n clickButton(\"Submit\");\r\n assertTextPresent(\"EditedSpecimenID\", \"601.5\", \"514801\");\r\n assertElementPresent(Locator.xpath(\"//img[@src='/labkey/Experiment/flagDefault.gif'][@title='This Flag Has Been Edited']\"), 1);\r\n assertElementPresent(Locator.xpath(\"//img[@src='/labkey/Experiment/unflagDefault.gif'][@title='Flag for review']\"), 9);\r\n\r\n // Try a delete\r\n dataTable.checkCheckbox(table.getRowIndex(\"Specimen ID\", \"EditedSpecimenID\"));\r\n doAndWaitForPageToLoad(() ->\r\n {\r\n dataTable.clickHeaderButton(\"Delete\");\r\n assertAlert(\"Are you sure you want to delete the selected row?\");\r\n });\r\n\r\n // Verify that the edit was audited\r\n goToSchemaBrowser();\r\n viewQueryData(\"auditLog\", \"ExperimentAuditEvent\");\r\n assertTextPresent(\r\n \"Data row, id \",\r\n \", edited in \" + TEST_ASSAY + \".\",\r\n \"Specimen ID changed from 'AAA07XK5-05' to 'EditedSpecimenID'\",\r\n \"Visit ID changed from '601.0' to '601.5\",\r\n \"testAssayDataProp5 changed from blank to '514801'\",\r\n \"Deleted data row.\");\r\n }", "public void updateFDRSettingsPanel() {\n\t\t// reset all the form data to the ones given by the file's FDRData\n\t\tFDRData fdrData = proteinModeller.getFDRData();\n\t\t\n\t\tformDecoyPattern = fdrData.getDecoyPattern();\n\t\tformFDRThreshold = fdrData.getFDRThreshold();\n\t\tformDecoyStrategy = fdrData.getDecoyStrategy().toString();\n\t}", "@Override\r\n\tpublic boolean updatePlan(IesPlan iesPlan) {\r\n\t\tlogger.debug(\"updatePlan() method started\");\r\n\r\n\t\ttry {\r\n\t\t\t// Loading PlanDetails Entity\r\n\t\t\tIesPlanEntity entity = iesPlnRepository.findById(iesPlan.getPlanId()).get();\r\n\r\n\t\t\t// Setting model object to Entity\r\n\t\t\tentity.setPlanName(iesPlan.getPlanName());\r\n\t\t\tentity.setPlanDesc(iesPlan.getPlanDesc());\r\n\t\t\tentity.setStartDate(iesPlan.getStartDate());\r\n\t\t\tentity.setEndDate(iesPlan.getEndDate());\r\n\r\n\t\t\t// calling save method\r\n\t\t\tiesPlnRepository.save(entity);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Exception Occured in updatePlan(): \" + e.getMessage());\r\n\t\t}\r\n\r\n\t\tlogger.debug(\"updatePlan() method ended\");\r\n\t\treturn false;\r\n\t}", "private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public void setEditplan( boolean newValue ) {\n __setCache(\"editplan\", new Boolean(newValue));\n }", "@Test\n public void updateScheduledPlanTest() throws ApiException {\n Long scheduledPlanId = null;\n ScheduledPlan body = null;\n ScheduledPlan response = api.updateScheduledPlan(scheduledPlanId, body);\n\n // TODO: test validations\n }", "@Override\n\tpublic void approveForm(Context ctx) {\n\t\t//Authentication\n\t\tUser approver = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (approver == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!approver.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\t// Implementation\n\t\tString id = ctx.pathParam(\"id\");\n\t\tForm form = fs.getForm(UUID.fromString(id));\n\t\tapprover.getAwaitingApproval().remove(form);\n\t\tus.updateUser(approver);\n\t\t// If approver is just the direct supervisor\n\t\tif (!approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tUser departmentHead = us.getUserByName(approver.getDepartmentHead());\n\t\t\tdepartmentHead.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(departmentHead);\n\t\t}\n\t\t// If the approver is a department head but not a benco\n\t\tif (approver.getType().equals(UserType.DEPARTMENT_HEAD) && !approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t}\n\t\t// if the approver is a BenCo\n\t\tif (approver.getType().equals(UserType.BENCO)) {\n\t\t\tform.setBencoApproval(true);\n\t\t\tUser formSubmitter = us.getUserByName(form.getName());\n\t\t\tif (formSubmitter.getAvailableReimbursement() >= form.getCompensation()) {\n\t\t\t\tformSubmitter.setAvailableReimbursement(formSubmitter.getAvailableReimbursement() - form.getCompensation());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tformSubmitter.setAvailableReimbursement(0.00);\n\t\t\t}\n\t\t\tformSubmitter.getAwaitingApproval().remove(form);\n\t\t\tformSubmitter.getCompletedForms().add(form);\n\t\t\tus.updateUser(formSubmitter);\n\t\t}\n\t\t\n\t\tfs.updateForm(form);\n\t\tctx.json(form);\n\t}", "private void raceActionPerform() {\n\t\tagePanel.remove(ageInput);\n\t\tagePanel.remove(ageLabel);\n\t\tagePanel.remove(ageRoll);\n\t\tagePanel.remove(intuitive);\n\t\tagePanel.remove(selfTaught);\n\t\tagePanel.remove(trained);\n\t\tagePanel.add(ageRollSelection);\n\t\tagePanel.add(ageInputSelection);\n\t\tagePanel.setPreferredSize(new Dimension(2400, 120));\n\t\theightPanel.remove(heightRoll);\n\t\theightPanel.remove(heightInput);\n\t\theightPanel.remove(heightLabel);\n\t\theightPanel.add(heightRollSelection);\n\t\theightPanel.add(heightInputSelection);\n\t\tweightPanel.remove(weightRoll);\n\t\tweightPanel.remove(weightInput);\n\t\tweightPanel.remove(weightLabel);\n\t\tweightPanel.add(weightRollSelection);\n\t\tweightPanel.add(weightInputSelection);\n\t\tsetRacialAbilityScores(isRolling, isInputting);\n\t\treference.validate();\n\t\treference.repaint();\n\n\t}", "@Override\r\n\tpublic void updatePlan(StudentProfileDetail studentProfileDetail, int planId, String paypalprofileId, String lastPaymentDate, String nextPaymentDate) throws ParseException {\r\n\t\t\r\n\t\tif(planId!=0){\r\n\t\t\t\r\n\t\t\tStudentAccountActivity studentAccountActivity=new StudentAccountActivity();\r\n\t\t\tPlanRate planRate=daoPlanRate.getPlanRateByCountryAndPlanMaster(studentProfileDetail.getCountryMaster().getCountry_Id(), planId);\r\n\t\t\tif(planRate==null){\r\n\t\t\t\tplanRate=daoPlanRate.getPlanRateByCountryIdIsNullAndPlanID(planId);\r\n\t\t\t}\r\n\t\t\tif(studentProfileDetail.getMin_Balance()!=null){\r\n\t\t\t\tint studentMinBalance=Integer.parseInt(studentProfileDetail.getMin_Balance());\r\n\t\t\t\tint planRateBalance=Integer.parseInt(planRate.getPlanMaster().getPlan_Min());\r\n\t\t\t\t//int planRateBalance=30;\r\n\t\t\t\tString totalBalance=Integer.toString(studentMinBalance+planRateBalance);\r\n\t\t\t\tstudentAccountActivity.setMin_Balance(totalBalance);\r\n\t\t\t\tstudentProfileDetail.setMin_Balance(totalBalance);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tstudentAccountActivity.setMin_Balance(planRate.getPlanMaster().getPlan_Min());\r\n\t\t\t\t//studentAccountActivity.setMin_Balance(\"30\");\r\n\t\t\t\tstudentProfileDetail.setMin_Balance(planRate.getPlanMaster().getPlan_Min());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tstudentProfileDetail.setPlanMaster(planRate.getPlanMaster());\r\n\t\t\t\r\n\t\t\tstudentAccountActivity.setActivity_Date(new Date());\r\n\t\t\tstudentAccountActivity.setActivity_Name(planRate.getPlanMaster().getPlan_Name());\r\n\t\t\tstudentAccountActivity.setActivity_Minute(planRate.getPlanMaster().getPlan_Min());\r\n\t\t\t//studentAccountActivity.setActivity_Minute(\"30\");\r\n\t\t\tstudentAccountActivity.setAmount(Integer.toString(planRate.getRate()));\r\n\t\t\t\r\n\t\t\tstudentAccountActivity.setStudentProfileDetail(studentProfileDetail);\r\n\t\t\t\r\n\t\t\tstudentProfileDetail.setPaypalProfileId(paypalprofileId);\r\n\t\t\t\r\n\t\t\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\r\n\t\t\t \r\n\t\t\t String nextDate=nextPaymentDate;\r\n\t\t\t String lastDate=lastPaymentDate;\r\n\t\t\t \r\n\t\t\t nextDate= nextDate.replaceAll(\"T\", \" \");\r\n\t\t\t nextDate=nextDate.replaceAll(\"Z\", \"\");\r\n\t\t\t \r\n\t\t\t lastDate= lastDate.replaceAll(\"T\", \" \");\r\n\t\t\t lastDate=lastDate.replaceAll(\"Z\", \"\");\r\n\t\t\t \r\n\r\n\t\t\t Date dateNext = simpleDateFormat.parse(nextDate);\r\n\t\t\t Date dateLast = simpleDateFormat.parse(lastDate);\r\n\t\t\t \r\n\t\t\t studentProfileDetail.setLastPaymentDate(dateLast);\r\n\t\t\t studentProfileDetail.setNextPaymentDate(dateNext);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tdaoStudentProfileDetail.saveOrUpdate(studentProfileDetail);\r\n\t\t\tdaoStudentAccountActivity.save(studentAccountActivity);\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void updateUpdatePatientPanel() {\n\t\tupdateNameTF.setText(getDoctor(tempDoctorId).getPatient(tempPatientId)\n\t\t\t\t.getPName());\n\t\tupdateAddressTA.setText(getDoctor(tempDoctorId).getPatient(\n\t\t\t\ttempPatientId).getPAddress());\n\t\tupdatePhoneNoTA\n\t\t\t\t.setText(\"\"\n\t\t\t\t\t\t+ getDoctor(tempDoctorId).getPatient(tempPatientId)\n\t\t\t\t\t\t\t\t.getPPhone());\n\t}", "public static void updateAFlight() {\n \n \n\n int flightOptions;\n String flightId;\n String flightDestination;\n String flightOrigin;\n String airline;\n\n Flights myFlights;\n\n myFlights = new Flights();\n\n \n flightOptions = determineNumber(\"Please enter flight option: \");\n \n myFlights = (Flights) Flights.displayFlight(flightOptions);\n\n if (myFlights == null) {\n System.out.println(\"Flight not available.\");\n updateAFlight();\n\n } else {\n flightId = enterText(\"Please enter new flightID: \");\n myFlights.setFlightId(flightId);\n\n flightDestination = enterText(\"Please enter new flight destination: \");\n myFlights.setFlightDestination(flightDestination);\n\n flightOrigin = enterText(\"Please enter new flight origin: \");\n myFlights.setFlightOrigin(flightOrigin);\n\n airline = enterText(\"Please enter new airline: \");\n myFlights.setAirline(airline);\n flightManager();\n }\n\n }", "public static void FormApproved() throws ClassNotFoundException, SQLException {\r\n try (Statement s = DBConnect.connection.createStatement()) {\r\n String upTable = \"UPDATE existing_forms \"\r\n + \"SET Status = 'Approved', Last_Updated = '\" + GtDates.tdate + \"'\"\r\n + \"WHERE Form_Name = '\" + InvAdj_Admin.frmNm + \"'\";\r\n s.execute(upTable);\r\n }\r\n }", "private void updateUi(){\n competencia = (CompetitionMin) getArguments().getSerializable(\"competencia\");\n\n edtCiudad = vista.findViewById(R.id.edt_ciudad_edit_comp);\n\n spinGenero = vista.findViewById(R.id.spinner_genero_edit);\n spinEstado = vista.findViewById(R.id.spinner_estado_edit);\n\n generos = new ArrayList<>();\n estados = new ArrayList<>();\n\n btnUpdateCompetition = vista.findViewById(R.id.btn_update_edit_comp);\n }", "private EditPlanDirectToManaged signUpAndReachEditPlan() throws Exception{\n //Initializing investment strategy object used to keep track of Glidepath investment strategy in relation to age to retirement and RTQ\n //Default User has age of 35 and 30 years to retirement\n InvestmentStrategyObject.initAllStrategies();\n //Login and create Premium Gaslamp User\n AdvisorSplashPage advisorSplashPage = new AdvisorSplashPage(getDriver());\n DetermineInvestmentStrategyPage displayPage = signupAndOnboard(advisorSplashPage,\n Constants.LastName.PREMIUM_INDIVIDUAL);\n //Enter Random RTQ Selections\n gaslamp.directToManaged.InvestmentStrategyPage investmentStrategyPage = EnterAndEditRTQ(RTQAnswerTypes.RANDOM,displayPage);\n PortfolioAnalysisPage portfolioAnalysisPage = investmentStrategyPage.navigateToPortfolioAnalysisPage();\n\n LinkedAccountsPage linkedAccountsPage = linkDAGAccount(portfolioAnalysisPage);\n portfolioAnalysisPage = linkedAccountsPage.clickOnNextButton();\n verifyPortfolioElements(portfolioAnalysisPage);\n\n //Edit the plan and re-do the RTQ\n Reporter.log(\"Editing Plan and Assumptions.\", true);\n EditPlanDirectToManaged editPlanPage = portfolioAnalysisPage.clickOnEditInPlaceTrigger();\n softAssert.assertTrue(editPlanPage.verifyEditPlanElements());\n return editPlanPage;\n }", "public Team update(TeamDTO teamForm) throws TeamNotFoundException;", "public void setGamePlan(GamePlan plan) {\n this.plan = plan;\n plan.registerObserver(this);\n this.update(plan.getCurrentRoom());\n }", "private void refreshForm(){ \r\n //tf_nroguia.setText(String.valueOf(Datos.getLog_cguias().getNumrela()));\r\n \r\n //Ejecuta el metodo que define el formulario segun el tipo de operacion que fue ejecutada\r\n setCurrentOperation();\r\n }", "private void loadForm() {\n service.getReasons(refusalReasons);\n service.getVacEligibilty(vacElig);\n service.getVacSites(vacSites);\n service.getReactions(vacReactions);\n service.getOverrides(vacOverrides);\n updateComboValues();\n \n selPrv = \"\";\n selLoc = \"\";\n \n //datGiven.setDateConstraint(new SimpleDateConstraint(SimpleDateConstraint.NO_NEGATIVE, DateUtil.addDays(patient.getBirthDate(), -1, true), null, BgoConstants.TX_BAD_DATE_DOB));\n datGiven.setDateConstraint(getConstraintDOBDate());\n datEventDate.setConstraint(getConstraintDOBDate());\n radFacility.setLabel(service.getParam(\"Caption-Facility\", \"&Facility\"));\n if (immunItem != null) {\n \n txtVaccine.setValue(immunItem.getVaccineName());\n txtVaccine.setAttribute(\"ID\", immunItem.getVaccineID());\n txtVaccine.setAttribute(\"DATA\", immunItem.getVaccineID() + U + immunItem.getVaccineName());\n setEventType(immunItem.getEventType());\n \n radRefusal.setDisabled(!radRefusal.isChecked());\n radHistorical.setDisabled(!radHistorical.isChecked());\n radCurrent.setDisabled(!radCurrent.isChecked());\n \n visitIEN = immunItem.getVisitIEN();\n if (immunItem.getProvider() != null) {\n txtProvider.setText(FhirUtil.formatName(immunItem.getProvider().getName()));\n txtProvider.setAttribute(\"ID\", immunItem.getProvider().getId().getIdPart());\n selPrv = immunItem.getProvider().getId().getIdPart() + U + U + immunItem.getProvider().getName();\n }\n switch (immunItem.getEventType()) {\n case REFUSAL:\n ListUtil.selectComboboxItem(cboReason, immunItem.getReason());\n txtComment.setText(immunItem.getComment());\n datEventDate.setValue(immunItem.getDate());\n break;\n case HISTORICAL:\n datEventDate.setValue(immunItem.getDate());\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n txtAdminNote.setText(immunItem.getAdminNotes());\n ZKUtil.disableChildren(fraDate, true);\n ZKUtil.disableChildren(fraHistorical, true);\n default:\n service.getLot(lotNumbers, getVaccineID());\n loadComboValues(cboLot, lotNumbers, comboRenderer);\n loadVaccination();\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n ListUtil.selectComboboxItem(cboLot, immunItem.getLot());\n ListUtil.selectComboboxItem(cboSite, StrUtil.piece(immunItem.getInjSite(), \"~\", 2));\n spnVolume.setText(immunItem.getVolume());\n datGiven.setDate(immunItem.getDate());\n datVIS.setValue(immunItem.isImmunization() ? immunItem.getVISDate() : null);\n ListUtil.selectComboboxItem(cboReaction, immunItem.getReaction());\n ListUtil.selectComboboxData(cboOverride, immunItem.getVacOverride());\n txtAdminNote.setText(immunItem.getAdminNotes());\n cbCounsel.setChecked(immunItem.wasCounseled());\n }\n } else {\n IUser user = UserContext.getActiveUser();\n Practitioner provider = new Practitioner();\n provider.setId(user.getLogicalId());\n provider.setName(FhirUtil.parseName(user.getFullName()));\n txtProvider.setValue(FhirUtil.formatName(provider.getName()));\n txtProvider.setAttribute(\"ID\", VistAUtil.parseIEN(provider)); //provider.getId().getIdPart());\n selPrv = txtProvider.getAttribute(\"ID\") + U + U + txtProvider.getValue();\n Location location = new Location();\n location.setName(\"\");\n location.setId(\"\");\n datGiven.setDate(getBroker().getHostTime());\n onClick$btnVaccine(null);\n \n if (txtVaccine.getValue().isEmpty()) {\n close(true);\n return;\n }\n \n Encounter encounter = EncounterContext.getActiveEncounter();\n if (!EncounterUtil.isPrepared(encounter)) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n if (isCategory(encounter, \"E\")) {\n setEventType(EventType.HISTORICAL);\n Date date = encounter == null ? null : encounter.getPeriod().getStart();\n datEventDate.setValue(DateUtil.stripTime(date == null ? getBroker().getHostTime() : date));\n radCurrent.setDisabled(true);\n txtLocation.setText(user.getSecurityDomain().getName());\n PromptDialog.showInfo(user.getSecurityDomain().getLogicalId());\n txtLocation.setAttribute(\"ID\", user.getSecurityDomain().getLogicalId());\n \n } else {\n if (isVaccineInactive()) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n setEventType(EventType.CURRENT);\n radCurrent.setDisabled(false);\n }\n }\n }\n selectItem(cboReason, NONESEL);\n }\n btnSave.setLabel(immunItem == null ? \"Add\" : \"Save\");\n btnSave.setTooltiptext(immunItem == null ? \"Add record\" : \"Save record\");\n txtVaccine.setFocus(true);\n }", "@FXML\n public void updateFields() {\n try {\n Worker currentWorker = workerAdaptor.getWorker(userIDComboBox.getValue());\n passwordTextField.setText(currentWorker.getPassword().strip());\n workerTypeComboBox.getSelectionModel().select(currentWorker.getWorkerType());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }", "public void updateSubReport(SubReportForm reportForm) throws SubReportDAOSysException\r\n {\r\n String sqlStr = \"update R_CustomSubReport_Tab set \" +\r\n \"ReportName = '\" + reportForm.getReportName() + \"',\" +\r\n \"State = '\" + reportForm.getState() + \"'\" +\r\n \"where ReportID = \" + reportForm.getReportID() +\r\n \" and MReportID = \" + reportForm.getMReportID();\r\n OperateDB operateDB = new OperateDB();\r\n try\r\n {\r\n LogUtil.debug(\"system\", \"[SubReportDAOOracle]====================the sql string is : \" + sqlStr);\r\n operateDB.exeupdate(sqlStr);\r\n\r\n }\r\n catch (ULMSSysException se)\r\n {\r\n throw new SubReportDAOSysException(\"SQLException while updateSubReport sql = \" + sqlStr + \" :\\n\" + se);\r\n }\r\n }", "public Form getUpdateForm() throws PublicationTemplateException;", "private void applyChanges() {\n mProgressBar.setVisibility(View.VISIBLE);\n\n String name = mNameBox.getText().toString().trim();\n String priceStr = mPriceBox.getText().toString().trim();\n\n if (!name.isEmpty() /* && !priceStr.isEmpty() */) {\n float price = Float.parseFloat(priceStr);\n ReformType reformType = new ReformType();\n reformType.setId(mReformTypeId);\n reformType.setName(name);\n reformType.setPrice(price);\n\n mReformTypeRepo.patchReformType(reformType).observe(this, isPatched -> {\n if (isPatched) {\n mReformType.setName(name);\n mReformType.setPrice(price);\n mReformTypeRepo.insertLocalReformType(mReformType);\n Toast.makeText(this, \"Reform type successfully updated.\", Toast.LENGTH_SHORT).show();\n } else {\n mIsError = true;\n mIsEditMode = !mIsEditMode;\n toggleSave();\n mNameBox.setText(mReformType.getName());\n mPriceBox.setText(String.valueOf(mReformType.getPrice()));\n }\n });\n }\n\n mProgressBar.setVisibility(GONE);\n }", "public static void UpdateFlight(Flight flight){\n \n //java.sql.Date sqlDate = new java.sql.Date(flight.getDatetime());\n \n try (Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM flight WHERE FlightNumber = '\" + flight.getFlightNumber() + \"'\")){\n \n resultSet.absolute(1);\n resultSet.updateString(\"FlightNumber\", flight.getFlightNumber());\n resultSet.updateString(\"DepartureAirport\", flight.getDepartureAirport());\n resultSet.updateString(\"DestinationAirport\", flight.getDestinationAirport());\n resultSet.updateDouble(\"Price\", flight.getPrice());\n\n //Ask Andrew\n// java.sql.Date sqlDate = new java.sql.Date();\n// resultSet.updateDate(\"datetime\", flight.getDatetime());\n resultSet.updateString(\"Plane\", flight.getPlane());\n resultSet.updateInt(\"SeatsTaken\", flight.getSeatsTaken());\n \n resultSet.updateRow();\n \n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n \n }", "@PutMapping\n public ResponseEntity<AccountResponse> updateAccount(\n @Validated @RequestBody AccountForm accountForm,\n @RequestParam(\"acctPid\") UUID accountPublicId) {\n\n\n AccountResponse responseDto = accountModifier.update(accountForm, accountPublicId);\n return new ResponseEntity<>(responseDto,HttpStatus.OK);\n }", "@Override\n\tpublic void updatePlanInfoById(PlanInfo planInfo) {\n\t\tplanInfoDao.updateByPrimaryKeySelective(planInfo);\n\t}", "interface WithLabPlanId {\n /**\n * Specifies the labPlanId property: The ID of the lab plan. Used during resource creation to provide\n * defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId\n * on an existing lab provides organization...\n *\n * @param labPlanId The ID of the lab plan. Used during resource creation to provide defaults and acts as a\n * permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab\n * provides organization..\n * @return the next definition stage.\n */\n Update withLabPlanId(String labPlanId);\n }", "public static void updateContractor(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n\r\n String sqlInsert = \"UPDATE projects\" +\r\n \" SET contract_name = ?, contract_tel = ?, contract_email = ?, contract_address = ?\" +\r\n \"WHERE project_num = \" +projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setString(1, NewProject.contract_name);\r\n pstmt.setString(2, NewProject.contract_tel);\r\n pstmt.setString(3, NewProject.contract_email);\r\n pstmt.setString(4, NewProject.contract_address);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "protected void updateForm() {\n //Set the number of contacts\n Long numContacts = myContactList.rowCount();\n this.textContactWorld.setText(String.valueOf(numContacts));\n numContacts = myContactList.getCountbyContinent(\"Africa\");\n this.textContactAfrica.setText(String.valueOf(numContacts));\n numContacts = myContactList.getCountbyContinent(\"Americas\");\n this.textContactAmericas.setText(String.valueOf(numContacts));\n numContacts = myContactList.getCountbyContinent(\"Asia\");\n this.textContactAsia.setText(String.valueOf(numContacts));\n numContacts = myContactList.getCountbyContinent(\"Australasia\");\n this.textContactAustralasia.setText(String.valueOf(numContacts));\n numContacts = myContactList.getCountbyContinent(\"Europe\");\n this.textContactEurope.setText(String.valueOf(numContacts));\n\n }", "@Override\n public void updateRace(Race race){\n if (getAbilityType() == 102) {\n AbilityDrawer.abilityQ(godType, getSourceID());\n }\n if(getAbilityType() == 103){\n AbilityDrawer.abilityW(godType, getSourceID(), race);\n }\n\n }", "@Override\r\n\tpublic void updatePermitted(DriverVO driverVO) {\n\t\t\r\n\t}", "private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(String.valueOf(selectedPart.getId()));\n maximumInventory.setText(String.valueOf(selectedPart.getMax()));\n minimumInventory.setText(String.valueOf(selectedPart.getMin()));\n\n if (PassableData.isOutsourced()) {\n Outsourced part = (Outsourced) selectedPart;\n variableTextField.setText(part.getCompanyName());\n outsourced.setSelected(true);\n\n } else if (!PassableData.isOutsourced()) {\n InHouse part = (InHouse) selectedPart;\n variableTextField.setText(String.valueOf(part.getMachineId()));\n inHouse.setSelected(true);\n }\n\n\n }", "@Override\n\tpublic void updateStudent(StudentForm student) {\n\t\t\n\t}", "protected void edit(HttpServletRequest request, HttpServletResponse response, EcAnonymousPaymentInfoForm _EcAnonymousPaymentInfoForm, EcAnonymousPaymentInfo _EcAnonymousPaymentInfo) throws Exception{\n\r\n _EcAnonymousPaymentInfo.setAnonymousUserId(WebParamUtil.getLongValue(_EcAnonymousPaymentInfoForm.getAnonymousUserId()));\r\n _EcAnonymousPaymentInfo.setFirstName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getFirstName()));\r\n _EcAnonymousPaymentInfo.setMiddleInitial(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getMiddleInitial()));\r\n _EcAnonymousPaymentInfo.setLastName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getLastName()));\r\n _EcAnonymousPaymentInfo.setAddress1(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress1()));\r\n _EcAnonymousPaymentInfo.setAddress2(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress2()));\r\n _EcAnonymousPaymentInfo.setCity(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCity()));\r\n _EcAnonymousPaymentInfo.setState(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getState()));\r\n _EcAnonymousPaymentInfo.setZip(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getZip()));\r\n _EcAnonymousPaymentInfo.setCountry(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCountry()));\r\n _EcAnonymousPaymentInfo.setPaymentType(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentType()));\r\n _EcAnonymousPaymentInfo.setPaymentNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentNum()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireMonth(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireMonth()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireYear(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireYear()));\r\n _EcAnonymousPaymentInfo.setPaymentExtraNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentExtraNum()));\r\n _EcAnonymousPaymentInfo.setTimeCreated(WebParamUtil.getDateValue(_EcAnonymousPaymentInfoForm.getTimeCreated()));\r\n\r\n m_actionExtent.beforeUpdate(request, response, _EcAnonymousPaymentInfo);\r\n m_ds.update(_EcAnonymousPaymentInfo);\r\n m_actionExtent.afterUpdate(request, response, _EcAnonymousPaymentInfo);\r\n }", "@Override\n\tpublic void updateBourse(Bourse brs) {\n\t\t\n\t}", "public abstract void updateOfferComponents();", "private void updateMarkForm(int project, MarkFormBean markform) throws Exception {\r\n String select = null;\r\n String insert = null;\r\n LoggerService logger = new LoggerService(sql);\r\n\r\n if (markform.getMarkID() > 0) {\r\n // do an update\r\n select = \"SELECT \" + markFields + \" FROM MARKS WHERE MARK_ID = ?\";\r\n ResultSet rs = sql.selectRSlock(select, new Object[]{\r\n markform.getMarkID()\r\n });\r\n rs.first();\r\n // logger stuff goes here\r\n if ((rs.getInt(\"MARK\") != markform.getProjectMark())) {\r\n logger.log(markform.getMarkEnteredBy(), project, markform.getMarkerCapacityDesc() + \" Project Mark - Mark\", String.valueOf(rs.getInt(\"MARK\")), String.valueOf(markform.getProjectMark()));\r\n }\r\n if (!(sql.getClobString(rs, \"GENERAL_COMMENTS\").equals(markform.getGeneralComments()))) {\r\n logger.log(markform.getMarkEnteredBy(), project, markform.getMarkerCapacityDesc() + \" Project Mark - General Comments\", sql.getClobString(rs, \"GENERAL_COMMENTS\"), markform.getGeneralComments());\r\n }\r\n if (!(sql.getClobString(rs, \"COMMENTS_FOR_EXAMINERS\").equals(markform.getExaminerComments()))) {\r\n logger.log(markform.getMarkEnteredBy(), project, markform.getMarkerCapacityDesc() + \" Project Mark - Examiner Comments\", sql.getClobString(rs, \"COMMENTS_FOR_EXAMINERS\"), markform.getExaminerComments());\r\n }\r\n // end of logger stuff\r\n\r\n rs.updateInt(\"PROJECT_ID\", project);\r\n rs.updateInt(\"MARKER_CAPACITY_ID\", markform.getMarkerCapacity());\r\n rs.updateInt(\"MARK\", markform.getProjectMark());\r\n rs.updateDate(\"MARK_DATE\", sql.dateParam(new Date()));\r\n sql.setClobString(rs, \"GENERAL_COMMENTS\", markform.getGeneralComments());\r\n sql.setClobString(rs, \"COMMENTS_FOR_EXAMINERS\", markform.getExaminerComments());\r\n rs.updateString(\"PLAGIARISM_SUSPECT\", markform.isPlagiarismSuspect() ? \"Y\" : \"N\");\r\n rs.updateInt(\"ADJUSTMENT_APPLIED\", markform.getAdjustment());\r\n\r\n rs.updateRow();\r\n rs.close();\r\n\r\n String deleteCats = \"DELETE FROM CATEGORY_MARKS WHERE MARK_ID = \" + markform.getMarkID();\r\n String deleteOpts = \"DELETE FROM OPTION_MARKS WHERE MARK_ID = \" + markform.getMarkID();\r\n String deleteNoms = \"DELETE FROM PRIZE_NOMINATIONS WHERE MARK_ID = \" + markform.getMarkID();\r\n\r\n sql.doExecute(deleteCats);\r\n sql.doExecute(deleteOpts);\r\n sql.doExecute(deleteNoms);\r\n\r\n } else {\r\n // add new mark record\r\n insert = \"INSERT INTO MARKS(\" +\r\n \"MARK_ID, GENERAL_COMMENTS, COMMENTS_FOR_EXAMINERS, GENERAL_COMMENTS_EXAMBOARD, PLAGIARISM_COMMENTS) \" +\r\n \"VALUES (?, ?, ?, EMPTY_CLOB(), EMPTY_CLOB())\";\r\n markform.setMarkID(sql.nextval(\"MARKS_1\"));\r\n sql.doExecute(insert, new Object[]{\r\n markform.getMarkID(),\r\n markform.getGeneralComments(),\r\n markform.getExaminerComments()\r\n });\r\n\r\n select = \"SELECT \" + markFields + \" FROM MARKS WHERE MARK_ID = ?\";\r\n ResultSet rs = sql.selectRSmod(select, new Object[]{\r\n markform.getMarkID()\r\n });\r\n rs.first();\r\n\r\n // logger stuff goes here\r\n logger.log(markform.getMarkEnteredBy(), project, markform.getMarkerCapacityDesc() + \" Project Mark - Mark\", \"\", String.valueOf(markform.getProjectMark()));\r\n logger.log(markform.getMarkEnteredBy(), project, markform.getMarkerCapacityDesc() + \" Project Mark - General Comments\", \"\", markform.getGeneralComments());\r\n logger.log(markform.getMarkEnteredBy(), project, markform.getMarkerCapacityDesc() + \" Project Mark - Examiner Comments\", \"\", markform.getExaminerComments());\r\n // end of logger stuff\r\n\r\n rs.updateInt(\"MARK_ID\", markform.getMarkID());\r\n rs.updateInt(\"PROJECT_ID\", project);\r\n rs.updateInt(\"MARKER_CAPACITY_ID\", markform.getMarkerCapacity());\r\n rs.updateInt(\"MARK\", markform.getProjectMark());\r\n rs.updateDate(\"MARK_DATE\", sql.dateParam(new Date()));\r\n rs.updateString(\"PLAGIARISM_SUSPECT\", markform.isPlagiarismSuspect() ? \"Y\" : \"N\");\r\n rs.updateInt(\"ADJUSTMENT_APPLIED\", markform.getAdjustment());\r\n //TODO: perhaps uncomment these and change to selectRSlock above\r\n // sql.setClobString(rs, \"GENERAL_COMMENTS\", markform.getGeneralComments());\r\n // sql.setClobString(rs, \"COMMENTS_FOR_EXAMINERS\", markform.getExaminerComments());\r\n rs.updateRow();\r\n rs.close();\r\n }\r\n\r\n // select = \"SELECT \" + categoryMarkFields + \" FROM CATEGORY_MARKS\";\r\n // ResultSet catrs = sql.selectRSmod(select);\r\n\r\n // select = \"SELECT \" + optionMarkFields + \" FROM OPTION_MARKS\";\r\n // ResultSet optrs = sql.selectRSmod(select);\r\n\r\n Iterator it = markform.getFormCategories().iterator();\r\n while (it.hasNext()) {\r\n Category cat = (Category) it.next();\r\n if (cat.getMark() > -1) {\r\n // catrs.moveToInsertRow();\r\n String catInsert = \"INSERT INTO CATEGORY_MARKS (\" +\r\n categoryMarkFields + \") VALUES (?, ?, ?, ?, ?)\";\r\n int catMarkId = sql.nextval(\"CATEGORY_MARKS_1\");\r\n sql.doExecute(catInsert, new Object[]{\r\n sql.intParam(catMarkId),\r\n sql.intParam(markform.getMarkID()),\r\n sql.intParam(cat.getCategoryID()),\r\n sql.intParam(cat.getMark()),\r\n sql.clobParam(cat.getComments())\r\n });\r\n\r\n // catrs.updateInt(\"MARK_ID\", markform.getMarkID());\r\n // catrs.updateInt(\"CAT_ID\", cat.getCategoryID());\r\n // catrs.updateInt(\"MARK\", cat.getMark());\r\n // sql.setClobString(catrs, \"CAT_COMMENT\", cat.getComments());\r\n // catrs.insertRow();\r\n\r\n int[] optionsSelected = cat.getOptionsSelected();\r\n Vector options = cat.getCategoryOptions();\r\n for (int i = 0; i < optionsSelected.length; i++) {\r\n Option opt = (Option) options.get(optionsSelected[i]);\r\n String optInsert = \"INSERT INTO OPTION_MARKS (\" +\r\n optionMarkFields + \") VALUES (?, ?, ?, ?)\";\r\n int optMarkId = sql.nextval(\"OPTION_MARKS_1\");\r\n sql.doExecute(optInsert, new Object[]{\r\n sql.intParam(optMarkId),\r\n sql.intParam(markform.getMarkID()),\r\n sql.intParam(cat.getCategoryID()),\r\n sql.intParam(opt.getOptionID())\r\n });\r\n // optrs.moveToInsertRow();\r\n //\r\n // optrs.updateInt(\"MARK_ID\", markform.getMarkID());\r\n // optrs.updateInt(\"CAT_ID\", cat.getCategoryID());\r\n // optrs.updateInt(\"CO_ID\", opt.getOptionID());\r\n //\r\n // optrs.insertRow();\r\n }\r\n }\r\n }\r\n // catrs.close();\r\n // optrs.close();\r\n\r\n it = markform.getPrizeNominations().iterator();\r\n\r\n // select = \"SELECT \" + prizeNominationFields + \" FROM PRIZE_NOMINATIONS\";\r\n // ResultSet przrs = sql.selectRSmod(select);\r\n\r\n while (it.hasNext()) {\r\n PrizeNomination nom = (PrizeNomination) it.next();\r\n String prizeInsert = \"INSERT INTO PRIZE_NOMINATIONS (\" +\r\n prizeNominationFields + \") VALUES (?, ?, ?, ?)\";\r\n int prizeId = sql.nextval(\"PRIZE_NOMINATIONS_1\");\r\n sql.doExecute(prizeInsert, new Object[]{\r\n sql.intParam(prizeId),\r\n sql.intParam(nom.getPrizeID()),\r\n sql.intParam(markform.getMarkID()),\r\n sql.clobParam(nom.getJustification())\r\n });\r\n // przrs.moveToInsertRow();\r\n // przrs.updateInt(\"PRIZE_CAT_ID\",nom.getPrizeID());\r\n // przrs.updateInt(\"MARK_ID\", markform.getMarkID());\r\n // sql.setClobString(przrs, \"SUPPORTING_COMMENTS\", nom.getJustification());\r\n // przrs.insertRow();\r\n }\r\n // przrs.close();\r\n }", "public abstract void onUpdatePatchset(TicketModel ticket);", "UpdatePlan(String key, ConcurrencyMode mode, String sql, Bindable set) {\n this.emptySetClause = (sql == null);\n this.key = key;\n this.mode = mode;\n this.sql = sql;\n this.set = set;\n this.timeCreated = System.currentTimeMillis();\n }", "public void editForm(Provider provider) {\r\n this.urlAvatar = provider.getUrl();\r\n this.loginId = provider.getProviderId();\r\n this.loginPassword = provider.getProviderPassword();\r\n this.loginName = provider.getProviderName();\r\n this.gender = provider.getProviderGender();\r\n this.accountPayment = provider.getProviderAccountPayment();\r\n this.authentication = provider.getAuthentication();\r\n this.birth = provider.getProviderBirth();\r\n this.email = provider.getProviderEmail();\r\n this.phone = provider.getProviderPhone();\r\n // this.buildingName = provider.getProviderAddress().getBuildingName();\r\n // this.districtName = provider.getProviderAddress().getDistrictName();\r\n // this.homeNumber = provider.getProviderAddress().getHomeNumber();\r\n // this.streetName = provider.getProviderAddress().getStreetName();\r\n // this.wardName = provider.getProviderAddress().getWardName();\r\n this.address = provider.getProviderAddress();\r\n this.detail = provider.getDetail();\r\n }", "private void formFiller(FormLayout fl)\n\t{\n fl.setSizeFull();\n\n\t\ttf0=new TextField(\"Name\");\n\t\ttf0.setRequired(true);\n\t\t\n sf1 = new Select (\"Customer\");\n try \n {\n\t\t\tfor(String st :db.selectAllCustomers())\n\t\t\t{\n\t\t\t\tsf1.addItem(st);\n\t\t\t}\n\t\t} \n \tcatch (UnsupportedOperationException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t UI.getCurrent().addWindow(wind);\n \t\te.printStackTrace();\n \t}\n sf1.setRequired(true);\n \n sf2 = new Select (\"Project Type\");\n sf2.addItem(\"In house\");\n sf2.addItem(\"Outsourcing\");\n df3=new DateField(\"Start Date\");\n df3.setDateFormat(\"d-M-y\");\n df3.setRequired(true);\n \n df4=new DateField(\"End Date\");\n df4.setDateFormat(\"d-M-y\");\n \n df4.setRangeStart(df3.getValue());\n \n df5=new DateField(\"Next DeadLine\");\n df5.setDateFormat(\"d-M-y\");\n df5.setRangeStart(df3.getValue());\n df5.setRangeEnd(df4.getValue());\n sf6 = new Select (\"Active\");\n sf6.addItem(\"yes\");\n sf6.addItem(\"no\");\n sf6.setRequired(true);\n \n tf7=new TextField(\"Budget(mandays)\");\n \n tf8=new TextArea(\"Description\");\n \n tf9=new TextField(\"Inserted By\");\n \n tf10=new TextField(\"Inserted At\");\n \n tf11=new TextField(\"Modified By\");\n \n tf12=new TextField(\"Modified At\");\n \n if( project.getName()!=null)tf0.setValue(project.getName());\n else tf0.setValue(\"\");\n\t\tif(!editable)tf0.setReadOnly(true);\n fl.addComponent(tf0, 0);\n \n\n if(project.getCustomerID()!=-1)\n\t\t\ttry \n \t{\n\t\t\t\tsf1.setValue(db.selectCustomerforId(project.getCustomerID()));\n\t\t\t}\n \tcatch (ReadOnlyException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t\t UI.getCurrent().addWindow(wind);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\telse sf1.setValue(\"\");\n if(!editable)sf1.setReadOnly(true);\n fl.addComponent(sf1, 1);\n \n \n if(project.getProjectType()!=null)sf2.setValue(project.getProjectType());\n else sf2.setValue(\"\");\n if(!editable)sf2.setReadOnly(true);\n fl.addComponent(sf2, 2);\n \n if(project.getStartDate()!=null) df3.setValue(project.getStartDate());\n if(!editable)df3.setReadOnly(true);\n fl.addComponent(df3, 3);\n \n if(project.getEndDate()!=null) df4.setValue(project.getEndDate());\n if(!editable)df4.setReadOnly(true);\n fl.addComponent(df4, 4);\n \n if(project.getNextDeadline()!=null)df5.setValue(project.getNextDeadline());\n if(!editable)df5.setReadOnly(true);\n fl.addComponent(df5, 5);\n \n if (project.isActive())sf6.setValue(\"yes\");\n else sf6.setValue(\"no\");\n if(!editable)sf6.setReadOnly(true);\n fl.addComponent(sf6, 6);\n \n if(project.getBudget()!=-1.0) tf7.setValue(String.valueOf(project.getBudget()));\n else tf7.setValue(\"\");\n if(!editable)tf7.setReadOnly(true);\n fl.addComponent(tf7, 7);\n \n if(project.getDescription()!=null)tf8.setValue(project.getDescription());\n else tf8.setValue(\"\");\n if(!editable)tf8.setReadOnly(true);\n fl.addComponent(tf8, 8);\n \n if(project.getInserted_by()!=null)tf9.setValue(project.getInserted_by());\n else tf9.setValue(\"\");\n tf9.setEnabled(false);\n fl.addComponent(tf9, 9);\n \n if(project.getInserted_at()!=null)tf10.setValue(project.getInserted_at().toString());\n else tf10.setValue(\"\");\n tf10.setEnabled(false);\n fl.addComponent(tf10, 10);\n \n if(project.getModified_by()!=null)tf11.setValue(project.getModified_by());\n else tf11.setValue(\"\");\n tf11.setEnabled(false);\n fl.addComponent(tf11, 11);\n \n if(project.getModified_at()!=null)tf12.setValue(project.getModified_at().toString());\n else tf12.setValue(\"\");\n tf12.setEnabled(false);\n fl.addComponent(tf12, 12);\n \n \n\t}", "@RequestMapping(\"/updatePlante\")\r\n\tpublic String updatePlante(@ModelAttribute(\"plante\") plante plante,\r\n\t@RequestParam(\"date\") String date,\r\n\t ModelMap modelMap) throws ParseException\r\n\t{\n\t SimpleDateFormat dateformat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t Date dateVente = dateformat.parse(String.valueOf(date));\r\n\t plante.setDateVente(dateVente);\r\n\r\n\t planteService.updatePlante(plante);\r\n\t List<plante> pl = planteService.getAllPlantes();\r\n\t modelMap.addAttribute(\"plantes\", pl);\r\n\treturn \"listePlantes\";\r\n\t}", "public void updateFieldsForm(String name, String group, boolean taskDone) {\n signScreen.fillForm(name, group, taskDone);\n }", "public static void updateFlight() {\n\n String flightId;\n String flightDestination;\n String flightOrigin;\n String airline;\n\n Flights myFlights = new Flights();\n\n if (myFlights == null) {\n System.out.println(\"Flight not available.\");\n updateFlight();\n\n } else {\n flightId = writeText(\"Please enter new flight ID: \");\n myFlights.setFlightId(flightId);\n\n flightDestination = writeText(\"Please enter new destination: \");\n myFlights.setFlightDestination(flightDestination);\n\n flightOrigin = writeText(\"Please enter new flight origin: \");\n myFlights.setFlightOrigin(flightOrigin);\n\n airline = writeText(\"Please enter new airline: \");\n myFlights.setAirline(airline);\n\n }\n\n }", "public static void updateDetails(Project proj) {\n System.out.print(\"Whose details do you want to update (contractor / architect / client): \");\n String type = input.nextLine();\n\n System.out.print(\"\\nContact number: \");\n String contactNo = input.nextLine();\n\n System.out.print(\"\\nEmail address : \");\n String email = input.nextLine();\n\n System.out.print(\"\\nAddress: \");\n String address = input.nextLine();\n\n if (type == \"architect\") {\n proj.architect.updateDetails(contactNo, email, address);\n } else if (type == \"contractor\") {\n proj.contractor.updateDetails(contactNo, email, address);\n } else if (type == \"client\") {\n proj.client.updateDetails(contactNo, email, address);\n }\n }", "public void setPlan( Plan plan ) {\n getUser().setPlan( plan );\n }", "public void editAirline() {\n //Tries to edit an airline and comes up with a popup if successful and exits the form\n try {\n EntryParser parser = new EntryParser();\n parser.parseAirline(airlNameEdit.getText(), airlAliasEdit.getText(), airlIATAEdit.getText(),\n airlICAOEdit.getText(), airlCallsignEdit.getText(), airlCountryEdit.getText(), airlActiveEdit.getText());\n theDataSet.editAirline(toEdit, airlNameEdit.getText(), airlAliasEdit.getText(), airlIATAEdit.getText(),\n airlICAOEdit.getText(), airlCallsignEdit.getText(), airlCountryEdit.getText(), airlActiveEdit.getText());\n\n //Saying to the user that the airline has successfully edited.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Airline Edit Successful\");\n alert.setHeaderText(\"Airline data edited!\");\n alert.setContentText(\"Your airline data has been successfully edited.\");\n alert.showAndWait();\n\n //Close the edit form.\n Stage stage = (Stage) applyButton.getScene().getWindow();\n stage.close();\n } catch (DataException e) {\n //Tells the user what and where the error is.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Airline Data Error\");\n alert.setHeaderText(\"Error editing an airline entry.\");\n alert.setContentText(e.getMessage());\n alert.showAndWait();\n }\n }", "public void setUpdateData() {\n positionFenceToUpdateinController = Controller.getPositionFenceInArrayById(this.idFenceToUpdate);\n if(positionFenceToUpdateinController >= 0) {\n Fence fence = Controller.fences.get(positionFenceToUpdateinController);\n ((MainActivity)getActivity()).getSupportActionBar().setTitle(Constant.TITLE_VIEW_UPDATE_FENCE + \": \" + fence.getName());\n this.nameFence.setText(fence.getName());\n this.addressFence.setText(fence.getAddress());\n this.cityFence.setText(fence.getCity());\n this.provinceFence.setText(fence.getProvince());\n this.numberFence.setText(fence.getNumber());\n this.textSMSFence.setText(fence.getTextSMS());\n int index = (int)Constant.SPINNER_RANGE_POSITIONS.get(fence.getRange());\n this.spinnerRange.setSelection(index);\n this.spinnerEvent.setSelection(fence.getEvent());\n }\n }", "private void updateUi() {\n this.tabDetail.setDisable(false);\n this.lblDisplayName.setText(this.currentChild.getDisplayName());\n this.lblPersonalId.setText(String.format(\"(%s)\", this.currentChild.getPersonalId()));\n this.lblPrice.setText(String.format(\"%.2f\", this.currentChild.getPrice()));\n this.lblAge.setText(String.valueOf(this.currentChild.getAge()));\n this.dtBirthDate.setValue(this.currentChild\n .getBirthDate()\n .toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate());\n this.lblWeight.setText(String.format(\"%.1f kg\", this.currentChild.getWeight()));\n this.sldWeight.setValue(this.currentChild.getWeight());\n this.checkboxTrueRace.setSelected(!this.currentChild.isRace());\n this.imgChildProfile.setImage(this.currentChild.getAvatar());\n if (this.currentChild.getGender().equals(GenderType.MALE)){\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/boy.png\"));\n this.lblSex.setText(\"Male\");\n }\n else {\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/girl.png\"));\n this.lblSex.setText(\"Female\");\n }\n if (this.currentChild.isVirginity()){\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/virgin.png\"));\n this.lblVirginity.setText(\"Virgin\");\n }\n else {\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/not-virgin.png\"));\n this.lblVirginity.setText(\"Not Virgin\");\n }\n\n // TODO [assignment2] nastavit obrazek/avatar ditete v karte detailu\n // TODO [assignment2] nastavit spravny obrazek pohlavi v karte detailu\n // TODO [assignment2] nastavit spravny obrazek virginity atribut v v karte detailu\n }", "public UpdateVehicleCharges() {\n initComponents();\n view();\n \n \n }", "@Override\n\tpublic Role update(RoleForm roleForm, long id) {\n\t\treturn null;\n\t}", "@GetMapping(value = \"/update/{id}\")\n public String updateForm(@PathVariable(\"id\") Long id, Model model) {\n log.info(\"UPDATE itinerary by ID : {}\", id);\n \n Itinerary itinerary = itineraryService.findById(id);\n \n Set<Sector> sectors = sectorService.findAll();\n \n if (Objects.isNull(itinerary)) {\n log.info(\"Any itinerary found with ID : {}\", id);\n return \"redirect:/itineraries/\";\n }\n \n model.addAttribute(\"grades\", Grade.values());\n model.addAttribute(\"itinerary\", itinerary);\n model.addAttribute(\"sectors\", sectors);\n \n return UPDATE;\n }", "public static void updatePayment(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n\r\n String sqlInsert = \"UPDATE projects SET tot_paid = ?\" +\r\n \"WHERE project_num = \" + projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setDouble(1, NewProject.tot_paid);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static syneren.qms.audit.model.AuditPlan updateAuditPlan(\n syneren.qms.audit.model.AuditPlan auditPlan)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().updateAuditPlan(auditPlan);\n }", "public void loadPlanDataInGui(LoadPlan plan, String finalDest) {\n String id = plan_num_label.getText();\n// Helper.startSession();\n// Query query = Helper.sess.createQuery(HQLHelper.GET_LOAD_PLAN_BY_ID);\n// query.setParameter(\"id\", Integer.valueOf(id));\n//\n// Helper.sess.getTransaction().commit();\n// List result = query.list();\n// LoadPlan plan = (LoadPlan) result.get(0);\n WarehouseHelper.temp_load_plan = plan;\n loadDestinationsRadioGroup(plan.getId());\n\n loadPlanDataToLabels(plan, finalDest);\n reloadPlanLinesData(Integer.valueOf(id), finalDest);\n //loadDestinations(Integer.valueOf(id));\n //Disable delete button if the plan is CLOSED\n if (WarehouseHelper.LOAD_PLAN_STATE_CLOSED.equals(plan.getPlanState())) {\n delete_plan_btn.setEnabled(false);\n close_plan_btn.setEnabled(false);\n export_to_excel_btn.setEnabled(true);\n edit_plan_btn.setEnabled(false);\n labels_control_btn.setEnabled(false);\n piles_box.setEnabled(false);\n set_packaging_pile_btn.setEnabled(false);\n } else {\n if (WarehouseHelper.warehouse_reserv_context.getUser().getAccessLevel() == GlobalVars.PROFIL_WAREHOUSE_AGENT\n || WarehouseHelper.warehouse_reserv_context.getUser().getAccessLevel() == GlobalVars.PROFIL_ADMIN) {\n close_plan_btn.setEnabled(true);\n } else {\n close_plan_btn.setEnabled(false);\n }\n if (WarehouseHelper.warehouse_reserv_context.getUser().getAccessLevel() == GlobalVars.PROFIL_ADMIN) {\n delete_plan_btn.setEnabled(true);\n } else {\n delete_plan_btn.setEnabled(false);\n }\n\n labels_control_btn.setEnabled(true);\n export_to_excel_btn.setEnabled(true);\n edit_plan_btn.setEnabled(true);\n piles_box.setEnabled(true);\n set_packaging_pile_btn.setEnabled(true);\n scan_txt.setEnabled(true);\n radio_btn_20.setEnabled(true);\n radio_btn_40.setEnabled(true);\n }\n }", "@Override\n public void editParticipant(ConnectathonParticipant cp) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"editParticipant\");\n }\n\n renderAddPanel = true;\n selectedConnectathonParticipant = entityManager.find(ConnectathonParticipant.class, cp.getId());\n }", "public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }", "private void refreshDisplayedStageplaats(){\n if (this.geselecteerdeStageplaats != null){\n if (this.geselecteerdeStageplaats.getId() != null){\n this.jLabelID.setText(this.geselecteerdeStageplaats.getId().toString());\n }\n this.jTextFieldTitel.setText(this.geselecteerdeStageplaats.getTitel());\n this.jTextAreaOmschrijving.setText(this.geselecteerdeStageplaats.getOmschrijving());\n this.jSliderAantalPlaatsen.setValue(this.geselecteerdeStageplaats.getAantalPlaatsen());\n this.jTextFieldPeriode.setText(this.geselecteerdeStageplaats.getPeriode());\n this.jTextAreaBegeleiding.setText((this.geselecteerdeStageplaats.getBegeleiding()));\n this.jTextAreaVereisteKennis.setText(this.geselecteerdeStageplaats.getExtraKennisVereist());\n this.jTextAreaVoorzieningen.setText(this.geselecteerdeStageplaats.getVoorzieningen());\n this.jComboBoxSpecialisatie.setSelectedItem(this.geselecteerdeStageplaats.getSitueertID().getSpecialisatieID());\n this.SpecialisatieSitueert = this.dbFacade.getAllSitueertOfSpecialisatieID(this.geselecteerdeStageplaats.getSitueertID().getSpecialisatieID().getId());\n this.jComboBoxSitueert.setModel(new DefaultComboBoxModel(this.SpecialisatieSitueert.toArray()));\n \n this.jComboBoxSitueert.setSelectedItem(this.geselecteerdeStageplaats.getSitueertID());\n \n // Bedrijf\n displayBedrijf();\n \n SimpleDateFormat dateformat = new SimpleDateFormat(\"dd-MM-yyyy '-' HH:mm:ss\");\n this.jLabelAanmaakdatum.setText(dateformat.format(this.geselecteerdeStageplaats.getAanmaakDatum()));\n this.jLabellaatsteWijzing.setText(dateformat.format(this.geselecteerdeStageplaats.getLaatsteWijziging()));\n }\n }", "@PutMapping(\"/{id}\")\n\tpublic ResponseEntity<PlanRole> update(@PathVariable Long id, @Valid @RequestBody PlanRole planRole) {\n\t\tPlanRole planRoleSalvo = planRoleService.update(id, planRole);\n\t\treturn ResponseEntity.ok(planRoleSalvo);\n\t}", "public void updateDisplayFields(Booking b){\n Vehicle v = b.getVehicle();\n CustomerAccount ca = v.getCustomer(); \n \n \n createCustomerName.setText(ca.getFirstName());\n createCustomerSurname.setText(ca.getLastName());\n createCustomerNumber.setText(ca.getPhoneNumber());\n createCustomerAddress1.setText(ca.getAddressLine1());\n createCustomerAddress2.setText(ca.getAddressLine2());\n createCustomerCounty.setText(ca.getCounty());\n createCustomerPostal.setText(ca.getPostCode());\n createCustomerCompany.setText(ca.getCompanyName());\n //VEHICLES\n createVehicleMake.setText(v.getMake());\n createVehicleModel.setText(v.getModel());\n createVehicleReg.setText(v.getRegistration());\n createVehicleMileage.setText(Integer.toString(v.getMileage()));\n createVehicleEngine.setText(v.getEngineSize());\n createVehicleColour.setText(v.getColour());\n createVehicleFuel.setText(v.getFuelType());\n String MOTexpire = \"\";\n if (v.getMOTExpire() == null)\n MOTexpire = \"N/A\";\n else\n MOTexpire = v.getMOTExpire().getTime().toString();\n \n createVehicleMOT.setText(MOTexpire);\n \n String ServiceDate = \"\";\n if (v.getLastService() == null)\n ServiceDate = \"N/A\";\n else\n ServiceDate = v.getLastService().getTime().toString();\n \n createVehicleService.setText(ServiceDate);\n createVehicleWarranty.setText(v.getWarrantyCompany());\n\n }", "private void release() {\n int index = claimClientNameCombobox.getSelectionModel().getSelectedIndex();\n String lastNameInput = clientName.get(index).getName();\n setSelectedJobID(clientName.get(index).getJobID());\n\n// Regular expression that splits the name into last name and first name by removing the punctuation.\n// Documentation reference: https://docs.oracle.com/javase/8/docs/api/\n String[] lastName = lastNameInput.split(\"[\\\\p{P}{1}]\");\n Double amountPaidBefore = 0.0, amountPaidCurrent = 0.0;\n\n try {\n amountPaidCurrent = Double.parseDouble(amountPaidTextfield.getText());\n\n } catch (NumberFormatException e) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setHeaderText(\"Invalid Input\");\n alert.setContentText(\"Please settle your balance first before releasing your order\");\n alert.showAndWait();\n return;\n }\n\n StringBuilder stringBuilder = new StringBuilder();\n Formatter formatter = new Formatter(stringBuilder);\n\n// use trim method to remove leading whitespace from the split method earlier\n formatter.format(\"SELECT transaction_records.amountPaid FROM transaction_records JOIN customer_records ON transaction_records.customerID = customer_records.customerID WHERE customer_records.lastname='%s' AND customer_records.firstname='%s' AND transaction_records.status='for claiming' AND transaction_records.jobID=%d\", lastName[0].trim(), lastName[1].trim(), getSelectedJobID());\n\n try {\n rs = conn.select(stringBuilder.toString());\n\n while (rs.next()) {\n amountPaidBefore = rs.getDouble(\"amountPaid\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n Double totalAmountPaid = amountPaidBefore + amountPaidCurrent;\n\n stringBuilder = new StringBuilder();\n formatter = new Formatter(stringBuilder);\n formatter.format(\"UPDATE transaction_records JOIN customer_records ON transaction_records.customerID=customer_records.customerID SET transaction_records.status='claimed', transaction_records.amountPaid=%f, transaction_records.balance = 0 WHERE customer_records.lastname='%s' AND customer_records.firstname='%s' AND transaction_records.status='for claiming' AND transaction_records.jobID=%d\", totalAmountPaid, lastName[0].trim(), lastName[1].trim(), getSelectedJobID());\n\n\n try {\n conn.update(stringBuilder.toString());\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n homeController.fillObservableList();\n\n orderInformationArea.setText(\"Job successfully released...\");\n orderInformationArea.appendText(\"\\nTransaction saved...\");\n remainingBalance = 0;\n }", "@PutMapping(\"/chart/preload-forms\")\n @Timed\n public ResponseEntity<Chart> updateWaitingChartAndPreloadForms(@RequestBody Chart chart) throws URISyntaxException {\n log.debug(\"REST request to update Chart's waiting field : {}\", chart);\n chart.setWaitingRoom(false);\n startLevelCare(chart.getId());\n chartService.preloadForms(chart);\n Chart result = chartService.save(chart);\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityUpdateAlert(\"chart\", chart.getId().toString()))\n .body(result);\n }", "public void upd2(Connection con, loginProfile prof) throws qdbException, qdbErrMessage, SQLException {\n res_id = mod_res_id;\n res_type = RES_TYPE_MOD;\n res_upd_user = prof.usr_id;\n\n super.checkTimeStamp(con);\n\n if (res_status.equalsIgnoreCase(RES_STATUS_ON) || res_status.equalsIgnoreCase(RES_STATUS_DATE)) {\n // Check if the question is ordered in 1,2,3....\n if (!checkQorder(con)) {\n //Questions are not in the correct order.\n throw new qdbErrMessage(\"MOD001\");\n }\n }\n\n //if the module is standard test or dynamic test\n //make sure that you can only turn the module online\n //if the test has question/criteria defined in it\n if (res_status.equalsIgnoreCase(RES_STATUS_ON)) {\n if (mod_type.equalsIgnoreCase(MOD_TYPE_TST)) {\n if (dbResourceContent.getResourceContentCount(con, mod_res_id) == 0) {\n res_status = RES_STATUS_OFF;\n }\n } else if (mod_type.equalsIgnoreCase(MOD_TYPE_DXT)) {\n if (dbModuleSpec.getModuleSpecCount(con, mod_res_id) == 0) {\n res_status = RES_STATUS_OFF;\n }\n }\n }\n\n super.updateStatus(con);\n\n // permission records have to be cleared no matter mod_instructor is specified or not\n dbResourcePermission.delUserRoleIsNull(con, mod_res_id);\n if (mod_instructor_ent_id_lst != null) {\n for (int i = 0; i < mod_instructor_ent_id_lst.length; i++) {\n dbResourcePermission.save(con, mod_res_id, mod_instructor_ent_id_lst[i], null, true, true, false);\n }\n }\n\n //Dennis, 2000-12-13, impl release control\n //If the new status == DATE, update the eff_start/end_datetime in Module\n //if(res_status.equalsIgnoreCase(RES_STATUS_DATE))\n //2001-01-05, all status will have eff datetime\n updateEffDatetime(con);\n }", "@Override\n\tpublic void submitForm(Context ctx) {\n\t\tUser loggedUser = ctx.sessionAttribute(\"loggedUser\");\n\t\tif (loggedUser == null) {\n\t\t\tctx.status(401);\n\t\t\treturn;\n\t\t}\n\t\tString username = ctx.pathParam(\"username\");\n\t\tif (!loggedUser.getUsername().equals(username)) {\n\t\t\tctx.status(403);\n\t\t\treturn;\n\t\t}\n\t\tForm form = ctx.bodyAsClass(Form.class);\n\t\tlog.debug(form);\n\t\tform = fs.submitForm(form);\n\t\tloggedUser.getForms().add(form);\n\t\tlog.debug(\"LoggedUser's Form: \" + loggedUser.getForms());\n\t\t// If loggedUser is a DepartmentHead, form goes straight to BenCo\n\t\tif(loggedUser.getType().equals(UserType.DEPARTMENT_HEAD)) {\n\t\t\tlog.debug(\"LoggedUser is a Department Head\");\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tform.setDepartmentApproval(true);\n\t\t\tfs.updateForm(form);\n\t\t\tUser benco = us.getUser(\"sol\");\n\t\t\tbenco.getAwaitingApproval().add(form);\n\t\t\tus.updateUser(benco);\n\t\t\tus.submitForm(loggedUser);\n\t\t\tctx.json(form);\n\t\t\treturn;\n\t\t}\n\t\t// If FormSubmitter's supervisor is a DepartmentHead, supervisor approval is automatically true\n\t\telse if(loggedUser.getDepartmentHead().equals(loggedUser.getSupervisor())) {\n\t\t\tform.setSupervisorApproval(true);\n\t\t\tfs.updateForm(form);\n\t\t}\n\t\tUser supervisor = us.getUserByName(loggedUser.getSupervisor());\n\t\tsupervisor.getAwaitingApproval().add(form);\n\t\tus.updateUser(supervisor);\n\t\tlog.debug(loggedUser);\n\t\tus.submitForm(loggedUser);\n\t\tctx.json(form);\n\t}", "public String update() {\n return this.plan.initialize(this.transportable, this.carrier, null,\n this.plan.fallback);\n }", "@Override\r\n\tpublic void update(Plant plant) throws Exception {\n\r\n\t}", "public void update( )\n {\n JasperPortletHome.getInstance( ).update( this );\n }", "private void edit() {\n mc.displayGuiScreen(new GuiEditAccount(selectedAccountIndex));\n }", "private void adjustFields( Flow f ) {\n boolean lockedByUser = isLockedByUser( f );\n\n nameField.setEnabled( lockedByUser && f.canSetNameAndElements() );\n intentChoice.setEnabled( lockedByUser && f.canSetNameAndElements() );\n askedForButtons.setEnabled( lockedByUser && f.canSetAskedFor() );\n allField.setVisible( isSend() && f.canGetAll() );\n allField.setEnabled( lockedByUser && isSend() && f.canSetAll() );\n significanceToTargetLabel.setVisible( f.canGetSignificanceToTarget() );\n significanceToTargetChoice.setEnabled(\n lockedByUser && f.canSetSignificanceToTarget() );\n channelRow.setVisible( f.canGetChannels() );\n this.timingContainer.setVisible( f.canGetMaxDelay() );\n delayPanel.enable( lockedByUser && f.canSetMaxDelay() );\n significanceToSourceContainer.setVisible( f.canGetSignificanceToSource() );\n triggersSourceContainer.setVisible( ( !isSend() || f.isAskedFor() ) && f.canGetTriggersSource() );\n triggersSourceCheckBox.setEnabled( lockedByUser && f.canSetTriggersSource() );\n terminatesSourceContainer.setVisible( f.canGetTerminatesSource() );\n terminatesSourceCheckBox.setEnabled( lockedByUser && f.canSetTerminatesSource() );\n otherChoice.setEnabled( lockedByUser );\n restrictedCheckBox.setEnabled( lockedByUser );\n flowDescription.setEnabled(\n ( isSend() && f.isNotification() || !isSend() && f.isAskedFor() ) && isLockedByUser( getFlow() ) );\n makeVisible( issuesPanel, getAnalyst().hasIssues( getQueryService(), getFlow(), false ) );\n makeVisible( ifTaskFailsContainer, canGetIfTaskFails() );\n ifTaskFailsCheckBox.setEnabled( canSetIfTaskFails() );\n makeVisible( prohibitedContainer, f.canGetProhibited() );\n prohibitedCheckBox.setEnabled( lockedByUser && f.canSetProhibited() );\n makeVisible( referencesEventPhaseContainer, f.canGetReferencesEventPhase() );\n makeVisible( canBypassIntermediateContainer, !isShowSimpleForm() && f.canGetCanBypassIntermediate() );\n makeVisible( receiptConfirmationRequestedContainer, !isShowSimpleForm() && f.canGetReceiptConfirmationRequested() );\n referencesEventPhaseCheckBox.setEnabled( lockedByUser && f.canSetReferencesEventPhase() );\n canBypassIntermediateCheckBox.setEnabled( lockedByUser && f.canSetCanBypassIntermediate() );\n receiptConfirmationRequestedCheckBox.setEnabled( lockedByUser && f.canSetReceiptConfirmationRequested() );\n }", "private void commitCompetitiveGroupFieldValues() {\r\n ((CompetitiveGroup) competitive)\r\n .setUpdateMethod((UpdateMethod) updateMethod.getSelectedItem());\r\n ((CompetitiveGroup) competitive).setLearningRate(Double\r\n .parseDouble(tfEpsilon.getText()));\r\n ((CompetitiveGroup) competitive).setWinValue(Double\r\n .parseDouble(tfWinnerValue.getText()));\r\n ((CompetitiveGroup) competitive).setLoseValue(Double\r\n .parseDouble(tfLoserValue.getText()));\r\n ((CompetitiveGroup) competitive).setSynpaseDecayPercent(Double\r\n .parseDouble(tfSynpaseDecayPercent.getText()));\r\n ((CompetitiveGroup) competitive).setLeakyLearningRate(Double\r\n .parseDouble(tfLeakyEpsilon.getText()));\r\n ((CompetitiveGroup) competitive).setUseLeakyLearning(cbUseLeakyLearning\r\n .isSelected());\r\n ((CompetitiveGroup) competitive).setNormalizeInputs(cbNormalizeInputs\r\n .isSelected());\r\n }", "@FXML\n public void startApptUpdate(Appointments appt) {\n String apptID = String.valueOf(appt.getApptID());\n modApptID.setText(apptID);\n modApptID.setEditable(false);\n modApptTitle.setText(appt.getApptTitle());\n modApptDescript.setText(appt.getApptDescript());\n modApptLocale.setText(appt.getApptLocation());\n modApptContact.setItems(Appointments.getContactNames());\n modApptContact.setValue(DBContacts.getContactName(appt.getContact()));\n modApptType.setItems(Appointments.getAllApptTypes());\n modApptType.setValue(appt.getApptType());\n modApptCustName.setItems(Appointments.getCustomerNames());\n modApptCustName.setValue(DBCustomers.getCustomerName(appt.getApptCustomerID()));\n modApptDate.setValue(appt.getApptStart().toLocalDate());\n modApptDate.setValue(appt.getApptEnd().toLocalDate());\n modApptUserID.setItems(Appointments.getUserIDs());\n modApptUserID.setValue(appt.getApptUserID());\n modStartTime.setItems(Appointments.getStartWorkHours());\n modStartTime.setValue(appt.getApptStart().toLocalTime());\n modApptEndTime.setItems(Appointments.getEndWorkHours());\n modApptEndTime.setValue(appt.getApptEnd().toLocalTime());\n\n }", "public void change(AjaxBehaviorEvent abe){\n\t\tString responseId = getRebateClaim().getResponseId();\r\n\t\ttry {\r\n\t\t\tLong id = Long.parseLong(responseId);\r\n\t\t\tResponse response = (Response) responseService.find(id);\r\n\t\t\tgetRebateClaim().setRequestName(response.getRequestName());\r\n\t\t\tgetRebateClaim().setSupplierCompany(response.getSupplierCompany());\r\n\t\t\tgetRebateClaim().setBuyerCompany(response.getBuyerCompany());\r\n\t\t\tgetRebateClaim().setBuyer(response.getBuyer());\r\n\t\t\tgetRebateClaim().setSupplier(response.getSupplier());\r\n\t\t\tgetRebateClaim().setResponse(response);\r\n\t\t\tsetSaveDisabled(false);\r\n\t\t\tRequestContext.getCurrentInstance().update(\"rebateClaimForm:supplierCompany-id\");\r\n\t\t\tRequestContext.getCurrentInstance().update(\"rebateClaimForm:saveRebateClaim\");\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tgetRebateClaim().setRequestName(\"Select Response\");\r\n\t\t\tgetRebateClaim().setSupplierCompany(\"Select Company\");\r\n\t\t\tgetRebateClaim().setBuyerCompany(\"Select Company\");\r\n\t\t\tsetSaveDisabled(true);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//RequestContext.getCurrentInstance().update(\"projectForm:projectSubTypes\");\r\n\t}", "private void prepareAndShowEditForm(TileRecord tileRecord) {\n\t\tString ownerGoogleID = tileRecord.getAttribute(\"ownerGoogleID\");\r\n\t\tString currentGoogleID = loginInfo.getGoogleID();\r\n\t\t//edit\r\n\t\tif (loginInfo.isUserAdmin() || \r\n\t\t\t\t(loginInfo.isLoggedIn() && currentGoogleID.equals(ownerGoogleID))) {\r\n\t\t\tboundSwagForm.enable();\r\n\t\t\teditButtonsLayout.show();\r\n\t\t\timFeelingLuckyButton.show();\r\n\t\t\ttabSet.setTabTitle(0,\"Edit Item\");\r\n\t\t}\r\n\t\t//view\r\n\t\telse {\r\n\t\t\tboundSwagForm.disable();\r\n\t\t\teditButtonsLayout.hide();\r\n\t\t\timFeelingLuckyButton.hide();\r\n\t\t\ttabSet.setTabTitle(0,\"View Item\");\r\n\t\t}\r\n\t\ttabSet.selectTab(0); //put it on the view/edit tab\r\n\t\titemEditTitleLabel.setIcon(\"/springmvc/showThumbnail/\" + tileRecord.getAttribute(\"imageKey\")); \r\n\t\tString itemName = tileRecord.getAttribute(\"name\");\r\n\t\tString ownerNickName = tileRecord.getAttribute(\"ownerNickName\");\r\n\t\tDate lastUpdated = tileRecord.getAttributeAsDate(\"lastUpdated\");\r\n\t\titemEditTitleLabel.setContents(\"<b>\" + itemName + \"</b> posted by: <b>\"\r\n\t\t\t\t+ ownerNickName + \"</b> (\" + dateFormatter.format(lastUpdated) + \")\");\r\n\t\tboundSwagForm.editRecord(tileRecord);\r\n\t\tcurrentSwagImage.setSrc(\"/springmvc/showImage/\" + tileRecord.getAttribute(\"imageKey\")); \r\n\t\tcurrentSwagImage.setWidth(283);\r\n\t\tcurrentSwagImage.setHeight(212);\r\n\t\t\r\n\t\t//show commentsTab if it's been removed\r\n\t\tif (tabSet.getTab(1) == null) {\r\n\t\t\ttabSet.addTab(commentsTab);\r\n\t\t}\r\n\t\t\r\n\t\tLong currentKey = Long.valueOf(tileRecord.getAttribute(\"key\"));\r\n\t\tstarClickHandler1.setSwagItemRating(new SwagItemRating(currentKey,1));\r\n\t\tstarClickHandler2.setSwagItemRating(new SwagItemRating(currentKey,2));\r\n\t\tstarClickHandler3.setSwagItemRating(new SwagItemRating(currentKey,3));\r\n\t\tstarClickHandler4.setSwagItemRating(new SwagItemRating(currentKey,4));\r\n\t\tstarClickHandler5.setSwagItemRating(new SwagItemRating(currentKey,5));\r\n\t\t\r\n\t\tupdateUserRatingStars(currentKey);\r\n\t\t\r\n\t\t//get fresh comments\r\n\t\trefreshComments(currentKey);\r\n\t\tstarHStack.show();\r\n\t\teditFormHStack.show();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel13 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel2 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n grantnolabel = new javax.swing.JLabel();\n issuedatelabel = new javax.swing.JLabel();\n Add_Grant_Grant_No = new javax.swing.JTextField();\n addgrant_grant_issue_dateChooser = new org.freixas.jcalendar.JCalendarCombo();\n jPanel7 = new javax.swing.JPanel();\n permitnolabel = new javax.swing.JLabel();\n add_grant_issuedate_label = new javax.swing.JLabel();\n add_grant_permit_no_combo = new javax.swing.JComboBox();\n addgrant_permit_issueDate = new javax.swing.JTextField();\n jPanel9 = new javax.swing.JPanel();\n add_grant_ownernameText = new javax.swing.JTextField();\n add_grantowner_telephoneText = new javax.swing.JTextField();\n jScrollPane3 = new javax.swing.JScrollPane();\n add_grantowner_addressText = new javax.swing.JTextArea();\n add_grant_owner_no_of_children_test = new javax.swing.JTextField();\n add_grant_owner_marriedStatusRButton = new javax.swing.JRadioButton();\n add_grant_owner_singleStatusRButton = new javax.swing.JRadioButton();\n jLabel35 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel36 = new javax.swing.JLabel();\n jLabel37 = new javax.swing.JLabel();\n jLabel38 = new javax.swing.JLabel();\n jLabel39 = new javax.swing.JLabel();\n jLabel40 = new javax.swing.JLabel();\n add_grant_owner_annualIncome = new javax.swing.JTextField();\n add_grantowner_DOB_test = new javax.swing.JTextField();\n jLabel41 = new javax.swing.JLabel();\n add_grant_changeOwner = new javax.swing.JButton();\n add_grant_owner_nic_text = new javax.swing.JTextField();\n jPanel11 = new javax.swing.JPanel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n add_grant_landName_text = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n add_grant_division_name_text = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel100 = new javax.swing.JLabel();\n add_grant_acres_text = new javax.swing.JTextField();\n add_grant_perches_text = new javax.swing.JTextField();\n add_grant_roods_text = new javax.swing.JTextField();\n jLabel103 = new javax.swing.JLabel();\n jLabel102 = new javax.swing.JLabel();\n jLabel101 = new javax.swing.JLabel();\n jLabel99 = new javax.swing.JLabel();\n add_grant_division_no_text = new javax.swing.JTextField();\n add_grant_plan_no_text = new javax.swing.JTextField();\n add_grant_lotno_text = new javax.swing.JTextField();\n jPanel8 = new javax.swing.JPanel();\n jLabel26 = new javax.swing.JLabel();\n jLabel42 = new javax.swing.JLabel();\n jLabel43 = new javax.swing.JLabel();\n addgrant_S_name_test = new javax.swing.JTextField();\n jLabel44 = new javax.swing.JLabel();\n addgrant_S_nic_test = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n addgrant_S_address_test = new javax.swing.JTextArea();\n addgrant_S_relationText = new javax.swing.JTextField();\n nominateSuccessorButton = new javax.swing.JButton();\n add_grant_button = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n viewAll_table = new javax.swing.JTable();\n jPanel16 = new javax.swing.JPanel();\n viewAll_load_buttun = new javax.swing.JButton();\n jPanel5 = new javax.swing.JPanel();\n jPanel10 = new javax.swing.JPanel();\n search_grantnolabel = new javax.swing.JLabel();\n search_grant_issuedatelabel = new javax.swing.JLabel();\n search_grant_issuedateText = new javax.swing.JTextField();\n search_grant_grantnoCombo = new javax.swing.JComboBox();\n jPanel12 = new javax.swing.JPanel();\n search_grant_ownernameText = new javax.swing.JTextField();\n search_grantowner_telephoneText = new javax.swing.JTextField();\n jScrollPane4 = new javax.swing.JScrollPane();\n search_grantowner_addressText = new javax.swing.JTextArea();\n search_grant_owner_no_of_children_text = new javax.swing.JTextField();\n search_grant_owner_marriedStatusRButton = new javax.swing.JRadioButton();\n search_grant_owner_singleStatusRButton = new javax.swing.JRadioButton();\n jLabel45 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel46 = new javax.swing.JLabel();\n jLabel47 = new javax.swing.JLabel();\n jLabel48 = new javax.swing.JLabel();\n jLabel49 = new javax.swing.JLabel();\n jLabel50 = new javax.swing.JLabel();\n search_grant_owner_annualIncome = new javax.swing.JTextField();\n search_grantowner_DOB_text = new javax.swing.JTextField();\n jLabel51 = new javax.swing.JLabel();\n search_grant_owner_nic_text = new javax.swing.JTextField();\n jPanel14 = new javax.swing.JPanel();\n jLabel27 = new javax.swing.JLabel();\n jLabel52 = new javax.swing.JLabel();\n jLabel53 = new javax.swing.JLabel();\n searchgrant_S_name_text = new javax.swing.JTextField();\n jLabel54 = new javax.swing.JLabel();\n searchgrant_S_nic_text = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n searchgrant_S_address_text = new javax.swing.JTextArea();\n searchgrant_S_relationText = new javax.swing.JTextField();\n jPanel15 = new javax.swing.JPanel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n search_grant_landName_text = new javax.swing.JTextField();\n jLabel30 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n search_grant_division_name_text = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel104 = new javax.swing.JLabel();\n search_grant_acres_text = new javax.swing.JTextField();\n search_grant_perches_text = new javax.swing.JTextField();\n search_grant_roods_text = new javax.swing.JTextField();\n jLabel105 = new javax.swing.JLabel();\n jLabel106 = new javax.swing.JLabel();\n jLabel107 = new javax.swing.JLabel();\n jLabel108 = new javax.swing.JLabel();\n search_grant_division_no_text = new javax.swing.JTextField();\n search_grant_plan_no_text = new javax.swing.JTextField();\n search_grant_lotno_text = new javax.swing.JTextField();\n\n jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Successor Information\"));\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 95, Short.MAX_VALUE)\n );\n\n setTitle(\"Grant\");\n\n jTabbedPane1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Grant Information\"));\n jPanel6.setPreferredSize(new java.awt.Dimension(581, 581));\n\n grantnolabel.setText(\"Grant No:\");\n\n issuedatelabel.setText(\"Issue Date:\");\n\n Add_Grant_Grant_No.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n Add_Grant_Grant_NoKeyReleased(evt);\n }\n });\n\n addgrant_grant_issue_dateChooser.setEditable(true);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(grantnolabel, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(issuedatelabel, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Add_Grant_Grant_No, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addgrant_grant_issue_dateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(296, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(grantnolabel, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Add_Grant_Grant_No, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(issuedatelabel, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addgrant_grant_issue_dateChooser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(15, Short.MAX_VALUE))\n );\n\n jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Permit Information\"));\n jPanel7.setPreferredSize(new java.awt.Dimension(581, 581));\n\n permitnolabel.setText(\"Permit No:\");\n\n add_grant_issuedate_label.setText(\"Issue Date:\");\n\n add_grant_permit_no_combo.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n add_grant_permit_no_comboItemStateChanged(evt);\n }\n });\n\n addgrant_permit_issueDate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addgrant_permit_issueDateActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(permitnolabel, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(add_grant_issuedate_label, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(add_grant_permit_no_combo, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addgrant_permit_issueDate, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(permitnolabel, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(add_grant_permit_no_combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(add_grant_issuedate_label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addgrant_permit_issueDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(12, Short.MAX_VALUE))\n );\n\n jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Owner Information\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.TOP));\n\n add_grant_ownernameText.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n add_grant_ownernameTextKeyReleased(evt);\n }\n });\n\n add_grantowner_addressText.setColumns(20);\n add_grantowner_addressText.setRows(5);\n jScrollPane3.setViewportView(add_grantowner_addressText);\n\n add_grant_owner_no_of_children_test.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n add_grant_owner_no_of_children_testActionPerformed(evt);\n }\n });\n\n add_grant_owner_marriedStatusRButton.setText(\"Married\");\n add_grant_owner_marriedStatusRButton.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n add_grant_owner_marriedStatusRButtonStateChanged(evt);\n }\n });\n\n add_grant_owner_singleStatusRButton.setText(\"Single\");\n add_grant_owner_singleStatusRButton.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n add_grant_owner_singleStatusRButtonStateChanged(evt);\n }\n });\n add_grant_owner_singleStatusRButton.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n add_grant_owner_singleStatusRButtonKeyReleased(evt);\n }\n });\n\n jLabel35.setText(\"NIC :\");\n\n jLabel20.setText(\"Name:\");\n\n jLabel36.setText(\"Phone Number:\");\n\n jLabel37.setText(\"Address:\");\n\n jLabel38.setText(\"Birthday:\");\n\n jLabel39.setText(\"Status:\");\n\n jLabel40.setText(\"Annual Income:\");\n\n jLabel41.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel41.setText(\"No. of married children:\");\n\n add_grant_changeOwner.setText(\"Change Ownership\");\n add_grant_changeOwner.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n add_grant_changeOwnerActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(126, 126, 126)\n .addComponent(add_grant_owner_annualIncome, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(jLabel41)\n .addGap(13, 13, 13)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(add_grant_changeOwner)\n .addComponent(add_grant_owner_no_of_children_test, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 47, Short.MAX_VALUE)\n .addComponent(jLabel35, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jLabel36, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel39)\n .addComponent(jLabel40))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(add_grant_ownernameText, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(add_grantowner_DOB_test, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addComponent(add_grant_owner_marriedStatusRButton)\n .addGap(18, 18, 18)\n .addComponent(add_grant_owner_singleStatusRButton))\n .addComponent(add_grantowner_telephoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(add_grant_owner_nic_text, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addContainerGap())))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(add_grant_owner_nic_text, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel35, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addComponent(jLabel37)\n .addGap(76, 76, 76))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(add_grant_ownernameText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(add_grantowner_telephoneText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel36))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(add_grantowner_DOB_test, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel38))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(add_grant_owner_marriedStatusRButton)\n .addComponent(add_grant_owner_singleStatusRButton)\n .addComponent(jLabel39))))\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(add_grant_owner_annualIncome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel40, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(add_grant_owner_no_of_children_test, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel41, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(add_grant_changeOwner)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Lot Information\"));\n\n jLabel22.setText(\"Plan Number:\");\n\n jLabel23.setText(\"Land Name:\");\n\n jLabel24.setText(\"Division Number:\");\n\n jLabel25.setText(\"Division Name:\");\n\n jLabel1.setText(\"Included Land\");\n\n jLabel2.setText(\"Included Division\");\n\n jLabel100.setText(\"Expected Extent:\");\n\n add_grant_perches_text.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n add_grant_perches_textActionPerformed(evt);\n }\n });\n\n jLabel103.setText(\"Roods\");\n\n jLabel102.setText(\"Perches\");\n\n jLabel101.setText(\"Acre / Hectare\");\n\n jLabel99.setText(\"Lot No:\");\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel99)\n .addComponent(jLabel2)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(add_grant_division_no_text, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(add_grant_lotno_text, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(add_grant_plan_no_text, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(30, 30, 30)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(add_grant_landName_text, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)\n .addComponent(add_grant_division_name_text)))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addComponent(jLabel100)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(add_grant_roods_text, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(add_grant_perches_text, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)\n .addComponent(add_grant_acres_text))\n .addGap(18, 18, 18)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel103)\n .addComponent(jLabel102)\n .addComponent(jLabel101))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(add_grant_division_no_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(add_grant_division_name_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel1)\n .addGap(12, 12, 12)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(add_grant_landName_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(add_grant_plan_no_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel99)\n .addComponent(add_grant_lotno_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel100)\n .addComponent(add_grant_acres_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel101))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(add_grant_perches_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel102))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(add_grant_roods_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel103))\n .addContainerGap(34, Short.MAX_VALUE))\n );\n\n jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Nominated Successor Information\"));\n\n jLabel26.setText(\"Name:\");\n\n jLabel42.setText(\"NIC:\");\n\n jLabel43.setText(\"Address:\");\n\n jLabel44.setText(\"Relationship:\");\n\n addgrant_S_address_test.setColumns(20);\n addgrant_S_address_test.setRows(5);\n jScrollPane1.setViewportView(addgrant_S_address_test);\n\n nominateSuccessorButton.setText(\"Nominate New Successor\");\n nominateSuccessorButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nominateSuccessorButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel44)\n .addComponent(jLabel42)\n .addComponent(jLabel43)\n .addComponent(jLabel26))\n .addGap(29, 29, 29)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nominateSuccessorButton)\n .addComponent(addgrant_S_relationText, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addgrant_S_nic_test, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(addgrant_S_name_test))\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addgrant_S_name_test, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel44)\n .addComponent(addgrant_S_relationText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel42)\n .addComponent(addgrant_S_nic_test, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel43)\n .addGap(64, 64, 64))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)\n .addComponent(nominateSuccessorButton)\n .addContainerGap())))\n );\n\n add_grant_button.setText(\"Add Grant\");\n add_grant_button.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n add_grant_buttonActionPerformed(evt);\n }\n });\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 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 555, Short.MAX_VALUE)\n .addComponent(jPanel7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 555, Short.MAX_VALUE)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(add_grant_button, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\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.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(add_grant_button, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Add Grant\", jPanel2);\n\n viewAll_table.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"GrantNumber\", \"IssueDate\", \"Clientname\", \"ClientNic\", \"DivisionalNumber\", \"PlanNumber\", \"LandName\", \"LotNumber\", \"NominateSuccesor\", \"OwnarshipPosition\"\n }\n ));\n jScrollPane5.setViewportView(viewAll_table);\n\n viewAll_load_buttun.setText(\"Load\");\n viewAll_load_buttun.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n viewAll_load_buttunActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()\n .addContainerGap(760, Short.MAX_VALUE)\n .addComponent(viewAll_load_buttun, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42))\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(viewAll_load_buttun)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 919, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 350, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(140, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"View All Grants\", jPanel4);\n\n jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Grant Information\"));\n jPanel10.setPreferredSize(new java.awt.Dimension(581, 581));\n\n search_grantnolabel.setText(\"Grant No:\");\n\n search_grant_issuedatelabel.setText(\"Issue Date:\");\n\n search_grant_issuedateText.setEditable(false);\n\n search_grant_grantnoCombo.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n search_grant_grantnoComboItemStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(search_grantnolabel, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()\n .addComponent(search_grant_issuedatelabel, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)))\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(search_grant_grantnoCombo, 0, 118, Short.MAX_VALUE)\n .addComponent(search_grant_issuedateText))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(search_grantnolabel, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grant_grantnoCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(search_grant_issuedateText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grant_issuedatelabel, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Owner Information\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.TOP));\n\n search_grant_ownernameText.setEditable(false);\n search_grant_ownernameText.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n search_grant_ownernameTextKeyReleased(evt);\n }\n });\n\n search_grantowner_telephoneText.setEditable(false);\n\n search_grantowner_addressText.setEditable(false);\n search_grantowner_addressText.setColumns(20);\n search_grantowner_addressText.setRows(5);\n jScrollPane4.setViewportView(search_grantowner_addressText);\n\n search_grant_owner_no_of_children_text.setEditable(false);\n search_grant_owner_no_of_children_text.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n search_grant_owner_no_of_children_textActionPerformed(evt);\n }\n });\n\n search_grant_owner_marriedStatusRButton.setText(\"Married\");\n\n search_grant_owner_singleStatusRButton.setText(\"Single\");\n\n jLabel45.setText(\"NIC :\");\n\n jLabel21.setText(\"Name:\");\n\n jLabel46.setText(\"Phone Number:\");\n\n jLabel47.setText(\"Address:\");\n\n jLabel48.setText(\"Birthday:\");\n\n jLabel49.setText(\"Status:\");\n\n jLabel50.setText(\"Annual Income:\");\n\n search_grant_owner_annualIncome.setEditable(false);\n\n search_grantowner_DOB_text.setEditable(false);\n\n jLabel51.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel51.setText(\"No. of married children:\");\n\n search_grant_owner_nic_text.setEditable(false);\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel47, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel45, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel46, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(search_grant_owner_nic_text, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grantowner_telephoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel51)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(search_grant_owner_annualIncome, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grant_owner_no_of_children_text, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel49)\n .addGap(60, 60, 60)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(search_grantowner_DOB_text, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(search_grant_owner_marriedStatusRButton)\n .addGap(18, 18, 18)\n .addComponent(search_grant_owner_singleStatusRButton))))\n .addComponent(jLabel48, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel50))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(48, 48, 48)\n .addComponent(search_grant_ownernameText)))\n .addContainerGap())\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel45, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grant_owner_nic_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(search_grant_ownernameText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel21))\n .addGap(18, 18, 18)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(search_grantowner_telephoneText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel46))\n .addGap(18, 18, 18)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel47)\n .addGap(13, 13, 13)))\n .addGap(20, 20, 20)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel48)\n .addComponent(search_grantowner_DOB_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(search_grant_owner_marriedStatusRButton)\n .addComponent(search_grant_owner_singleStatusRButton)\n .addComponent(jLabel49))\n .addGap(18, 18, 18)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel50, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grant_owner_annualIncome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(29, 29, 29)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(search_grant_owner_no_of_children_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel51, javax.swing.GroupLayout.PREFERRED_SIZE, 11, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Nominated Successor Information\"));\n\n jLabel27.setText(\"Name:\");\n\n jLabel52.setText(\"NIC:\");\n\n jLabel53.setText(\"Address:\");\n\n searchgrant_S_name_text.setEditable(false);\n\n jLabel54.setText(\"Relationship:\");\n\n searchgrant_S_nic_text.setEditable(false);\n\n searchgrant_S_address_text.setEditable(false);\n searchgrant_S_address_text.setColumns(20);\n searchgrant_S_address_text.setRows(5);\n jScrollPane2.setViewportView(searchgrant_S_address_text);\n\n searchgrant_S_relationText.setEditable(false);\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel54)\n .addComponent(jLabel52)\n .addComponent(jLabel53)\n .addComponent(jLabel27))\n .addGap(29, 29, 29)\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(searchgrant_S_relationText, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(searchgrant_S_nic_text, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(searchgrant_S_name_text)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(searchgrant_S_nic_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(searchgrant_S_name_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel54)\n .addComponent(searchgrant_S_relationText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jLabel52)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel53)\n .addGap(0, 41, Short.MAX_VALUE)))\n .addContainerGap())\n );\n\n jPanel15.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Lot Information\"));\n\n jLabel28.setText(\"Plan Number:\");\n\n jLabel29.setText(\"Land Name:\");\n\n search_grant_landName_text.setEditable(false);\n\n jLabel30.setText(\"Division Number:\");\n\n jLabel31.setText(\"Division Name:\");\n\n search_grant_division_name_text.setEditable(false);\n\n jLabel3.setText(\"Included Land\");\n\n jLabel4.setText(\"Included Division\");\n\n jLabel104.setText(\"Expected Extent:\");\n\n search_grant_acres_text.setEditable(false);\n\n search_grant_perches_text.setEditable(false);\n search_grant_perches_text.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n search_grant_perches_textActionPerformed(evt);\n }\n });\n\n search_grant_roods_text.setEditable(false);\n\n jLabel105.setText(\"Roods\");\n\n jLabel106.setText(\"Perches\");\n\n jLabel107.setText(\"Acre / Hectare\");\n\n jLabel108.setText(\"Lot No:\");\n\n search_grant_division_no_text.setEditable(false);\n\n search_grant_plan_no_text.setEditable(false);\n\n search_grant_lotno_text.setEditable(false);\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel108)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(search_grant_division_no_text, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(search_grant_lotno_text, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grant_plan_no_text, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(30, 30, 30)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(search_grant_landName_text, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)\n .addComponent(search_grant_division_name_text)))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addComponent(jLabel104)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(search_grant_roods_text, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(search_grant_perches_text, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)\n .addComponent(search_grant_acres_text))\n .addGap(18, 18, 18)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel105)\n .addComponent(jLabel106)\n .addComponent(jLabel107)))\n .addComponent(jLabel4)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grant_division_no_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grant_division_name_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addGap(12, 12, 12)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grant_landName_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(search_grant_plan_no_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel108)\n .addComponent(search_grant_lotno_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel104)\n .addComponent(search_grant_acres_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel107))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(search_grant_perches_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel106))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(search_grant_roods_text, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel105))\n .addContainerGap(34, Short.MAX_VALUE))\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 .addGap(21, 21, 21)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, 339, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, 551, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap(58, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Search Grant\", jPanel5);\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 .addComponent(jTabbedPane1)\n .addGap(2, 2, 2))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 604, 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.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\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\n pack();\n }", "public String updateCurriculum(CurriculumVO curriculumVO);", "private void saveForm() {\n\n if (reportWithCurrentDateExists()) {\n // Can't save this case\n return;\n }\n\n boolean isNewReport = (mRowId == null);\n\n // Get field values from the form elements\n\n // Date\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n String date = df.format(mCalendar.getTime());\n\n // Value\n Double value;\n try {\n value = Double.valueOf(mValueText.getText().toString());\n } catch (NumberFormatException e) {\n value = 0.0;\n }\n\n // Create/update report\n boolean isSaved;\n if (isNewReport) {\n mRowId = mDbHelper.getReportPeer().createReport(mTaskId, date, value);\n isSaved = (mRowId != 0);\n } else {\n isSaved = mDbHelper.getReportPeer().updateReport(mRowId, date, value);\n }\n\n // Show toast notification\n if (isSaved) {\n int toastMessageId = isNewReport ?\n R.string.message_report_created :\n R.string.message_report_updated;\n Toast toast = Toast.makeText(getApplicationContext(), toastMessageId, Toast.LENGTH_SHORT);\n toast.show();\n }\n }", "public static void updateArchitect(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n\r\n String sqlInsert = \"UPDATE projects \" +\r\n \" SET architect_name = ?, architect_tel = ?, architect_email = ?, architect_address = ?\" +\r\n \"WHERE project_num = \" +projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setString(1, NewProject.architect_name);\r\n pstmt.setString(2, NewProject.architect_tel);\r\n pstmt.setString(3, NewProject.architect_email);\r\n pstmt.setString(4, NewProject.architect_address);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void handleUpdate(){\n increaseDecrease(\"i\");\n action=\"update\";\n buttonSave.setVisible(true);\n admission.setEditable(false);\n\n }" ]
[ "0.5747732", "0.5650178", "0.55195826", "0.54138124", "0.536568", "0.5261693", "0.5209245", "0.51003927", "0.508788", "0.5067068", "0.5023786", "0.50133365", "0.49705577", "0.49574208", "0.49455282", "0.49446455", "0.4944148", "0.4921089", "0.49013323", "0.48744223", "0.485008", "0.48268825", "0.48120433", "0.48120117", "0.48112497", "0.4797921", "0.4791315", "0.4789789", "0.47858799", "0.47763497", "0.47719902", "0.4766411", "0.47635835", "0.47529072", "0.4747401", "0.4740776", "0.47405997", "0.47390926", "0.4736359", "0.47079352", "0.47059232", "0.47037658", "0.4701112", "0.46906385", "0.46893275", "0.4686477", "0.46848443", "0.46808144", "0.46715042", "0.46655783", "0.4664144", "0.46608254", "0.4652626", "0.4651824", "0.46451592", "0.46385637", "0.46385118", "0.46305227", "0.46212062", "0.46192598", "0.46148375", "0.46092916", "0.46069765", "0.45990095", "0.45975143", "0.4595767", "0.45867458", "0.4585375", "0.45844838", "0.45814955", "0.45790315", "0.4575054", "0.45726702", "0.45663872", "0.45601174", "0.4556962", "0.4556481", "0.45483303", "0.45457512", "0.45419598", "0.45343465", "0.45294842", "0.4528665", "0.4528462", "0.4528388", "0.45261514", "0.45169827", "0.45134637", "0.45098445", "0.45096675", "0.44909152", "0.4484952", "0.44845498", "0.44839498", "0.44836554", "0.44827992", "0.44779807", "0.44761845", "0.44725993", "0.44694883" ]
0.75450647
0
Get all the racePlanForms.
List<RacePlanForm> findAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<ERForm> getAllForms() {\nString sql = \"select * from project1.reimbursementInfo;\";\n\t\t\n\t\tPreparedStatement stmt;\n\t\t\n\t\tList<ERForm> allForms = new ArrayList<ERForm>();\n\t\t\n\t\ttry {\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tERForm form = new ERForm();\n\t\t\t\tform.setRID(rs.getInt(1));\n\t\t\t\tform.setUserName(rs.getString(2));\n\t\t\t\tform.setFullName(rs.getString(3));\n\t\t\t\tform.setTheDate(rs.getDate(4).toLocalDate());\n\t\t\t\tform.setEventStartDate(rs.getDate(5).toLocalDate());\n\t\t\t\tform.setTheLocation(rs.getString(6));\n\t\t\t\tform.setDescription(rs.getString(7));\n\t\t\t\tform.setTheCost(rs.getDouble(8));\n\t\t\t\tform.setGradingFormat(rs.getString(9));\n\t\t\t\tform.setPassingPercentage(rs.getString(10));\n\t\t\t\tform.setEventType(rs.getString(11));\n\t\t\t\tform.setFileName(rs.getString(12));\n\t\t\t\tform.setStatus(rs.getString(13));\n\t\t\t\tform.setReason(rs.getString(14));\n\t\t\t\tallForms.add(form);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}return allForms;\n\t}", "public abstract Collection<Pair<String,String>> getAllForms();", "@Override\n public List<FormInfo> getForms() {\n return forms;\n }", "@Override\n\t@Transactional(propagation = Propagation.SUPPORTS)\n\t@SuppressWarnings(\"unchecked\")\n\tpublic List<Form> getAll() {\n\t\treturn entityManager.createNamedQuery(\"Form.findAll\").getResultList();\n\t}", "Optional<RacePlanForm> findOne(Long id);", "@Transactional(readOnly = true)\n\t@Override\n\tpublic List<RegistrationEntity> getAllForms() {\n\t\treturn dao.getAllForms();\n\t}", "@Override\r\n\tpublic List<Plan> getAllPlans() {\n\t\treturn null;\r\n\t}", "Collection<BuildFilterForm> getBuildFilterForms(ID branchId);", "public List<UserRace> selectAllSchedule() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace WHERE mode = '\"\n\t\t\t\t+ UserRace.MODE_SCHEDULE + \"'\";\n\t\treturn getJdbcTemplate().query(sql, new UserRaceRowMapper());\n\t}", "@Override\r\n\tpublic List<Planter> viewAllPlanters() {\r\n\t\t\r\n\t\treturn planterRepo.findAll();\r\n\t}", "@Override\n\tpublic List<InstituteFormation> allFormations() {\n\t\treturn dao.allFormation();\n\t}", "public static List<String> form_list() {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<String> forms = new ArrayList<String>();\n\n\t try {\n\t PreparedStatement statement = connection.prepareStatement(\"SELECT DISTINCT form_name FROM template_fields\");\n\t ResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t String form = rs.getString(\"form_name\");\n\t forms.add(form);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException ex) {\n\t ex.printStackTrace();\n\t }\n\n\t return forms;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }", "public List<TRForm> viewFormforSupervisors(int eid);", "@GetMapping\n\tpublic Iterable<PlanRole> findByAll() {\n\t\t return planRoleRepository.findAll(2);\n\t}", "List<DeliveryOrderForm> findAll();", "@Override\n @Transactional(readOnly = true)\n public List<PerSubmit> findAll() {\n log.debug(\"Request to get all PerSubmits\");\n return perSchedulerRepository.findAll();\n }", "@Override\n\tpublic List<RegistrationForm> findAll(int start, int num) {\n\t\tlogger.info(\"select all registration form\");\n\t\treturn rfi.findAll(start, num);\n\t}", "@Override\n\tpublic AigaJointDebugTaskForm[] getAigaJointDebugTaskForm(\n\t\t\tDetachedCriteria criteria) throws Exception {\n\t\treturn aigaJointDebugDao.getAigaJointDebugTaskForm(criteria);\n\t}", "public String getForms(int i) {\n return forms[i];\n }", "public List<TRForm> viewFormforEmployee(int eid);", "@Override\n\tpublic AigaJointDebugSubTaskForm[] getAigaJointDebugSubTaskForm(\n\t\t\tDetachedCriteria criteria) throws Exception {\n\t\treturn aigaJointDebugDao.getAigaJointDebugSubTaskForm(criteria);\n\t}", "@RequestMapping(method = RequestMethod.GET, value = \"/admin/form/list\")\n public String listAllForms(HttpServletRequest request) throws ContentProviderException { List all forms with submit forms + count\n //\n List<Form> allForms = this.databaseFormHandler.getAllForms();\n\n request.setAttribute(\"markup\", this.markup);\n request.setAttribute(\"allForms\", allForms);\n\n return \"/Forms/Admin/ListForms\";\n }", "public List findEngEditForm() {\n\t\tString sql = \"SELECT FO_ID,FO_NAME FROM ENG_FORM_FORM where FO_FTYPE='editpage' \";\n\t\tjdbcTemplate.setDataSource(initDataSource);\n\t\treturn jdbcTemplate.queryForList(sql);\n\t}", "@Override\n\tpublic ERForm getSpecificForm(int RID) {\n\t\treturn null;\n\t}", "public List<HasFormAssociation> listFormAssociations();", "@Override\n\tpublic List<FinalForm> getFinalsByEmployee(String employee) {\n\t\tString query = \"Select * from finalForm where employee = ?\";\n\t\tSimpleStatement simple = new SimpleStatementBuilder(query).setConsistencyLevel(DefaultConsistencyLevel.LOCAL_QUORUM)\n\t\t\t\t.build();\n\t\tBoundStatement bound = session.prepare(simple).bind(employee);\n\t\tResultSet results = session.execute(bound);\n\t\t\n\t\tList<FinalForm> forms = new ArrayList<>();\n\t\tresults.forEach(row ->{\n\t\t\tFinalForm form = new FinalForm();\n\t\t\tform.setId(row.getUuid(\"id\"));\n\t\t\tform.setEmployee(row.getString(\"employee\"));\n\t\t\tform.setApproved(row.getBoolean(\"approved\"));\n\t\t\tform.setSubmissionDate(row.getLocalDate(\"submissionDate\"));\n\t\t\tform.setFormType(FormType.valueOf(row.getString(\"formType\")));\n\t\t\tform.setUrgent(row.getBoolean(\"urgent\"));\n\t\t\tform.setFilename(row.getString(\"filename\"));\n\t\t\t\n\t\t\tforms.add(form);\n\t\t});\n\t\t\n\t\treturn forms;\n\t\t\n\t}", "@Override\n public List<Plan> listAll() {\n List<Plan> plans = new ArrayList<>();\n planRepository.findAll().forEach(plans::add);\n return plans;\n }", "public static List<ResultsForm> getResults(String tabName) {\n\n List<ResultsForm>resultsFormList = null;\n ResultsForm resultsForm = null;\n String query = SQLConstants.GET_RESULTS.replaceAll(\"#\",tabName.toLowerCase().replaceAll(\"\\\\W\", \"\"));\n \n System.out.println(\"[INFO] Generated Query:\"+query);\n\n try {\n resultsFormList = new ArrayList<ResultsForm>();\n Connection con = JdbcConnection.getConnection();\n PreparedStatement pstmt = con.prepareStatement(query);\n\n ResultSet rs = pstmt.executeQuery();\n\n while (rs.next()) {\n resultsForm = new ResultsForm();\n resultsForm.setId(rs.getLong(\"id\"));\n resultsForm.setLeftTeamId(rs.getLong(\"leftTeamid\"));\n resultsForm.setRightTeamId(rs.getLong(\"rightTeamid\"));\n resultsForm.setLeftTeamName(getTeam(con, rs.getLong(\"leftTeamid\")).getName());\n resultsForm.setRightTeamName(getTeam(con, rs.getLong(\"rightTeamid\")).getName());\n resultsForm.setWinningTeamId(rs.getLong(\"winningteamid\"));\n resultsForm.setWinningTeamName(getTeam(con, rs.getLong(\"winningteamid\")).getName());\n resultsForm.setWonBy(rs.getString(\"wonedby\"));\n \n resultsFormList.add(resultsForm);\n \n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return resultsFormList;\n\n }", "@Override\n\tpublic List<Planification> listPlan() {\n\t\treturn dao.listPlan();\n\t}", "public List<DataSource.PlanEntry> getPlanEntries () {\n return planEntries;\n }", "public ResourcesMetadata getForm()\n\t\t{\n\t\t\treturn m_form;\n\t\t}", "public static PlanForm getPlan(int planID)\r\n {\r\n PlanForm pf = null;\r\n\r\n try\r\n {\r\n PlanDAO planDao = PlanDAOFactory.getDAO();\r\n pf = planDao.getPlan(planID);\r\n }\r\n catch (PlanDAOSysException udse)\r\n {\r\n udse.printStackTrace();\r\n }\r\n\r\n return pf;\r\n }", "@Override\n\tpublic List<Facilities_type> getAllFacilitiesType() {\n\t\treturn this.facilitiesDao.getAllFacilitiesType();\n\t}", "public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public Map<String, HasFormAssociation> fetchFormAssociations();", "private List<List<Submittable>> allSubmittablesLists(){\n List lists = Arrays.asList(analyses, assays, assayData, egaDacs, egaDacPolicies, egaDatasets, projects, samples, sampleGroups, studies);\n return (List<List<Submittable>>)lists;\n }", "public List<SubAwardForms> getSponsorTemplates() {\n return sponsorTemplates;\n }", "public static RegionAccessListForm formFromCollection(\n ArrayList accessCollection,\n RegionAccessListForm regfrm) {\n\n\t\tregfrm.setViewplan(new int[0]);\n regfrm.setEditplan(new int[0]);\n regfrm.setViewfact(new int[0]);\n regfrm.setEditfact(new int[0]);\n\t \n ArrayList tempeditfact = new ArrayList();\n ArrayList tempviewfact = new ArrayList();\n ArrayList tempeditplan = new ArrayList();\n ArrayList tempviewplan = new ArrayList();\n\n Iterator itr = accessCollection.iterator();\n while (itr.hasNext()) {\n RegionAccess sra = (RegionAccess) itr.next();\n if (sra.isEditfact()) {\n tempeditfact.add(new Integer(sra.getRegionid()));\n }\n if (sra.isViewfact()) {\n tempviewfact.add(new Integer(sra.getRegionid()));\n }\n if (sra.isEditplan()) {\n tempeditplan.add(new Integer(sra.getRegionid()));\n }\n if (sra.isViewplan()) {\n tempviewplan.add(new Integer(sra.getRegionid()));\n }\n }\n //sorting ??\n if (tempeditfact.size() > 0) {\n Object editfact[] = (Object[]) tempeditfact.toArray();\n int inteditfact[] = new int[editfact.length];\n for (int i = 0; i < editfact.length; i++) {\n inteditfact[i] = ((Integer) editfact[i]).intValue();\n }\n regfrm.setEditfact(inteditfact);\n }\n\n if (tempviewfact.size() > 0) {\n Object viewfact[] = (Object[]) tempviewfact.toArray();\n int intviewfact[] = new int[viewfact.length];\n for (int i = 0; i < viewfact.length; i++) {\n intviewfact[i] = ((Integer) viewfact[i]).intValue();\n }\n regfrm.setViewfact(intviewfact);\n }\n\n if (tempeditplan.size() > 0) {\n Object editplan[] = (Object[]) tempeditplan.toArray();\n int inteditplan[] = new int[editplan.length];\n for (int i = 0; i < editplan.length; i++) {\n inteditplan[i] = ((Integer) editplan[i]).intValue();\n }\n regfrm.setEditplan(inteditplan);\n }\n\n if (tempviewplan.size() > 0) {\n Object viewplan[] = (Object[]) tempviewplan.toArray();\n int intviewplan[] = new int[viewplan.length];\n for (int i = 0; i < viewplan.length; i++) {\n intviewplan[i] = ((Integer) viewplan[i]).intValue();\n }\n regfrm.setViewplan(intviewplan);\n }\n\n return regfrm;\n }", "public List<DataSource.IntrospectionPlan> getPlans () {\n return plans;\n }", "public List<ModelFormaPagamento> listarFormaPagamentos() {\n return entityManager.createQuery(\"FROM \" + ModelFormaPagamento.class.getName()).getResultList();\n }", "public abstract Class<?>[] getFormRegions();", "List<OpeningRequirement> selectAll();", "public List<RaceSituation> getRaceSituationByStage(Stage stage);", "@Override\n\t\tpublic List<ProgramScheduledBean> getAllScheduleProgram()\n\t\t\t\tthrows UniversityException {\n\t\t\treturn dao.getAllScheduleProgram();\n\t\t}", "public List<TRForm> viewFormforDeptHeads(int eid);", "Optional<RacePlanForm> partialUpdate(RacePlanForm racePlanForm);", "public static List<Field> field_list(String form_Name, String mode) {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<Field> fields = new ArrayList<Field>();\n\t \n\n\t try {\n\t \tPreparedStatement statement;\n\t \tif(mode == \"specific\") {\n\t\t statement = connection.prepareStatement(\"SELECT * FROM template_fields WHERE form_name = '\"+form_Name+\"'\");\n\t \t}\n\t \telse {\n\t \t\tstatement = connection.prepareStatement(\"SELECT * form_name FROM template_fields\");\n\t \t}\n\t \tResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t int fieldId = rs.getInt(\"field_id\");\n\t String fieldName = rs.getString(\"field_name\");\n\t String formName = rs.getString(\"form_name\");\n\t String fieldType = rs.getString(\"field_type\");\n\t String fieldValue = rs.getString(\"field_value\");\n\t String fieldMandatory = rs.getString(\"field_mandatory\");\n\t \t PreparedStatement fieldstmt = connection.prepareStatement(\"SELECT * FROM radio_fields WHERE field_id = '\"+fieldId+\"' AND form_name = '\"+form_Name+\"'\");\n\t ResultSet fieldrs = fieldstmt.executeQuery();\n\t List<String> itemList = new ArrayList<String>();\n\t while(fieldrs.next()) {\n\t \titemList.add(fieldrs.getString(\"radio_value\"));\n\t \tSystem.out.println(\"fieldID\" + fieldId + \": \" + fieldrs.getString(\"radio_value\"));\n\t }\n\t String[] fieldRadios = new String[itemList.size()];\n\t fieldRadios = itemList.toArray(fieldRadios);\n\t fieldstmt.close();\n\n\t \n\t Field field = new Field(formName, fieldId, fieldName, fieldType, fieldValue, fieldMandatory, fieldRadios);\n\t System.out.println(fieldRadios);\n\t System.out.println(\"MADA: \" + field.getTheMandatory());\n\t System.out.println(\"field:\" + field.getTheName());\n\t \n\t fields.add(field);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException e) {\n\t e.printStackTrace();\n\t }\n\n\t return fields;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }", "@GetMapping(\"/listAll\")\n List<WebformMetabaseVO> getListWebforms();", "@Override\n\t\tpublic List<Carrera> getAll() {\n\t\t\t\treturn null;\n\t\t}", "public AdminModel[] getAllFlights() {\n\t\tflights = adminManager.getAllFlights();\n\t\t\n\t\treturn flights;\n\t}", "public java.util.List<PlanoSaude> findAll();", "@Override\n\tpublic ArrayList<ReceiptFormPO> findAll() throws RemoteException {\n\t\treturn null;\n\t}", "public CrGrupoFormulario[] findAll() throws CrGrupoFormularioDaoException;", "@GetMapping(path = \"/realizar\")\n public ModelAndView getForm(){\n\n return new ModelAndView(ViewConstant.MANTCOMPRASMINO).addObject(\"compraMinorista\", new CompraMinorista());\n }", "public List<TRForm> viewFormforBenefitsCoord(int eid);", "@Override\r\n\tpublic List<Aircraft> getAllAircraft() {\r\n\t\treturn airCrafts;\r\n\t}", "public Form getForm() {\n return form;\n }", "@Get(PATH + \"/allByPlan\")\n\t@NoCache\n\t@Consumes\n\t@Permissioned\n\tpublic void listAllUnitsByPlan(@NotNull Long planId) {\n\t\ttry {\n\t\t\tPlanRisk plan =this.unitBS.exists(planId, PlanRisk.class);\n\t\t\t\n\t\t\tif (plan == null || plan.isDeleted()) {\n\t\t\t\tthis.fail(\"O Plano de risco não foi encontrado\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tPaginatedList<Unit> units = this.unitBS.listUnitsbyPlanRisk(plan);\n\t\t\t\n\t\t\tthis.success(units);\n\t\t} catch (Throwable ex) {\n\t\t\tLOGGER.error(\"Unexpected runtime error\", ex);\n\t\t\tthis.fail(\"Erro inesperado: \" + ex.getMessage());\n\t\t}\n\t}", "public void getAllFormFields() {\n// TODOne: Get a single scene as a Models.Scene object\n Models.Scene selectedScene = GameHelper.getInstance(this).getScene(sceneId);\n// Models.Scene selectedScene = allScenesArray[???];\n sceneTitle = selectedScene.title;\n journalText = selectedScene.journalText;\n modifiers = selectedScene.flagModifiers;\n bodyText = selectedScene.body;\n\n\n //TODO: check associated transitions, set Radio button checked based on result, update view\n setRadioButtons(sceneId);\n Models.Transition[] allTransitionsArray = GameHelper.getInstance(this).getTransitionsForScenes(sceneId);\n selectedRadioButtonId = nodeTypeRadioGroup.getCheckedRadioButtonId();\n selectedRadioButton = (RadioButton) findViewById(selectedRadioButtonId);\n if (selectedRadioButton == actionNodeRadioButton) {\n actionOneVerbs = allTransitionsArray[0].verb;\n actionOneFlags = allTransitionsArray[0].flag;\n actionOneToSceneId = allTransitionsArray[0].toSceneID;\n actionTwoVerbs = allTransitionsArray[1].verb;\n actionTwoFlags = allTransitionsArray[1].flag;\n actionTwoToSceneId = allTransitionsArray[1].toSceneID;\n actionThreeVerbs = allTransitionsArray[2].verb;\n actionThreeFlags = allTransitionsArray[2].flag;\n actionThreeToSceneId = allTransitionsArray[2].toSceneID;\n actionFourVerbs = allTransitionsArray[3].verb;\n actionFourFlags = allTransitionsArray[3].flag;\n actionFourToSceneId = allTransitionsArray[3].toSceneID;\n actionFiveVerbs = allTransitionsArray[4].verb;\n actionFiveFlags = allTransitionsArray[4].flag;\n actionFiveToSceneId = allTransitionsArray[4].toSceneID;\n }\n if (selectedRadioButton == autoNodeRadioButton) {\n autoToSceneId = allTransitionsArray[0].toSceneID;\n }\n if (selectedRadioButton == modifierNodeRadioButton) {\n modifierFlags = allTransitionsArray[0].flag;\n modifierPassToSceneId = allTransitionsArray[0].toSceneID;\n modifierFailToSceneId = allTransitionsArray[1].toSceneID;\n }\n //TODO: Check for better space for this?\n setTransitionFormFields();\n }", "public void loadForm() {\n if (!selectedTipo.equals(\"accion\")) {\n this.renderPaginaForm = true;\n } else {\n this.renderPaginaForm = false;\n }\n if (selectedTipo.equals(null) || selectedTipo.equals(\"menu\")) {\n this.renderGrupoForm = false;\n } else {\n this.renderGrupoForm = true;\n }\n populateListaObjetos();\n }", "public List<CarrierType> all() throws EasyPostException {\n String endpoint = \"carrier_types\";\n\n CarrierType[] response = Requestor.request(RequestMethod.GET, endpoint, null, CarrierType[].class, client);\n return Arrays.asList(response);\n }", "@Override\n @Transactional(readOnly = true)\n public List<ModeDTO> findAll() {\n log.debug(\"Request to get all Modes\");\n return modeRepository.findAll().stream()\n .map(modeMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "@Override\n public JSONObject viewApprisalFormByDirector() {\n\n return in_apprisialformdao.viewApprisalFormByDirector();\n }", "@Test\n public void allScheduledPlansTest() throws ApiException {\n Long userId = null;\n String fields = null;\n List<ScheduledPlan> response = api.allScheduledPlans(userId, fields);\n\n // TODO: test validations\n }", "@Override\n\t\tpublic FormTestFacade getForm() {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic FormTestFacade getForm() {\n\t\t\treturn null;\n\t\t}", "public static Map<String, String> getAvailableForms(String... varargs) {\n\t\t// setting the default values when arguments' values are omitted\n\t\tString slideRef = varargs.length > 0 ? varargs[0] : null;\n\t\tString sessionID = varargs.length > 0 ? varargs[1] : null;\n\t\t// See what forms are available to fill out, either system-wide (leave slideref\n\t\t// to None), or for a particular slide\n\t\tsessionID = sessionId(sessionID);\n\t\tString url;\n\t\tMap<String, String> forms = new HashMap<>();\n\t\tif (slideRef != null) {\n\t\t\tif (slideRef.startsWith(\"/\")) {\n\t\t\t\tslideRef = slideRef.substring(1);\n\t\t\t}\n\t\t\tString dir = FilenameUtils.getFullPath(slideRef).substring(0,\n\t\t\t\t\tFilenameUtils.getFullPath(slideRef).length() - 1);\n\t\t\turl = apiUrl(sessionID, false) + \"GetForms?sessionID=\" + PMA.pmaQ(sessionID) + \"&path=\" + PMA.pmaQ(dir);\n\t\t} else {\n\t\t\turl = apiUrl(sessionID, false) + \"GetForms?sessionID=\" + PMA.pmaQ(sessionID);\n\t\t}\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\tif (jsonString != null && jsonString.length() > 0) {\n\t\t\t\tif (PMA.isJSONObject(jsonString)) {\n\t\t\t\t\tJSONObject jsonResponse = PMA.getJSONObjectResponse(jsonString);\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\t\tif (jsonResponse.has(\"Code\")) {\n\t\t\t\t\t\tif (PMA.logger != null) {\n\t\t\t\t\t\t\tPMA.logger.severe(\"getAvailableForms on \" + slideRef + \" resulted in: \"\n\t\t\t\t\t\t\t\t\t+ jsonResponse.get(\"Message\") + \" (keep in mind that slideRef is case sensitive!)\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthrow new Exception(\"getAvailableForms on \" + slideRef + \" resulted in: \"\n\t\t\t\t\t\t\t\t+ jsonResponse.get(\"Message\") + \" (keep in mind that slideRef is case sensitive!)\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tforms = null;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJSONArray jsonResponse = PMA.getJSONArrayResponse(jsonString);\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID,\n\t\t\t\t\t\t\tpmaAmountOfDataDownloaded.get(sessionID) + jsonResponse.length());\n\t\t\t\t\tfor (int i = 0; i < jsonResponse.length(); i++) {\n\t\t\t\t\t\tforms.put(jsonResponse.optJSONObject(i).get(\"Key\").toString(),\n\t\t\t\t\t\t\t\tjsonResponse.optJSONObject(i).getString(\"Value\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tforms = null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tif (PMA.logger != null) {\n\t\t\t\tStringWriter sw = new StringWriter();\n\t\t\t\te.printStackTrace(new PrintWriter(sw));\n\t\t\t\tPMA.logger.severe(sw.toString());\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\treturn forms;\n\t}", "public List<Set<Mask>> getMinimalForms() {\n\t\treturn minimalForms;\n\t}", "@Override\n\tpublic Iterable<Flight> viewAllFlight() {\n\t\treturn flightDao.findAll();\n\t}", "public Form getStepForm(int index) throws ProcessManagerException {\r\n HistoryStep[] steps = currentProcessInstance.getHistorySteps();\r\n \r\n if (0 <= index && index < steps.length) {\r\n try {\r\n if (steps[index].getAction().equals(\"#question#\")\r\n || steps[index].getAction().equals(\"#response#\")) {\r\n return getQuestionForm(true);\r\n } else\r\n return processModel.getPresentationForm(steps[index].getAction(),\r\n currentRole, getLanguage());\r\n } catch (WorkflowException e) {\r\n SilverTrace.info(\"processManager\", \"sessionController\",\r\n \"processManager.ILL_DATA_STEP\", e);\r\n \r\n return null;\r\n }\r\n } else\r\n return null;\r\n }", "public List<UserRace> selectAll() {\n\t\tString sql = \"select \" + COLUMNS + \" FROM UserRace\";\n\t\treturn getJdbcTemplate().query(sql,\n\t\t\t\tnew UserRaceRowMapper());\n\t}", "@Transactional\n\t@Override\n\tpublic List<ApplicantModel> viewAllApplicants() {\n\t\treturn applicantRepo.findAll().stream().map(course -> parser.parse(course))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "List<ProductionPlanDTO> findAll();", "public List<ControlAcceso> findAll() {\n\t\treturn controlA.findAll();\n\t}", "@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}", "java.lang.String getRaceList();", "abstract public DialPlan[] getDialPlans();", "private void loadForm() {\n service.getReasons(refusalReasons);\n service.getVacEligibilty(vacElig);\n service.getVacSites(vacSites);\n service.getReactions(vacReactions);\n service.getOverrides(vacOverrides);\n updateComboValues();\n \n selPrv = \"\";\n selLoc = \"\";\n \n //datGiven.setDateConstraint(new SimpleDateConstraint(SimpleDateConstraint.NO_NEGATIVE, DateUtil.addDays(patient.getBirthDate(), -1, true), null, BgoConstants.TX_BAD_DATE_DOB));\n datGiven.setDateConstraint(getConstraintDOBDate());\n datEventDate.setConstraint(getConstraintDOBDate());\n radFacility.setLabel(service.getParam(\"Caption-Facility\", \"&Facility\"));\n if (immunItem != null) {\n \n txtVaccine.setValue(immunItem.getVaccineName());\n txtVaccine.setAttribute(\"ID\", immunItem.getVaccineID());\n txtVaccine.setAttribute(\"DATA\", immunItem.getVaccineID() + U + immunItem.getVaccineName());\n setEventType(immunItem.getEventType());\n \n radRefusal.setDisabled(!radRefusal.isChecked());\n radHistorical.setDisabled(!radHistorical.isChecked());\n radCurrent.setDisabled(!radCurrent.isChecked());\n \n visitIEN = immunItem.getVisitIEN();\n if (immunItem.getProvider() != null) {\n txtProvider.setText(FhirUtil.formatName(immunItem.getProvider().getName()));\n txtProvider.setAttribute(\"ID\", immunItem.getProvider().getId().getIdPart());\n selPrv = immunItem.getProvider().getId().getIdPart() + U + U + immunItem.getProvider().getName();\n }\n switch (immunItem.getEventType()) {\n case REFUSAL:\n ListUtil.selectComboboxItem(cboReason, immunItem.getReason());\n txtComment.setText(immunItem.getComment());\n datEventDate.setValue(immunItem.getDate());\n break;\n case HISTORICAL:\n datEventDate.setValue(immunItem.getDate());\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n txtAdminNote.setText(immunItem.getAdminNotes());\n ZKUtil.disableChildren(fraDate, true);\n ZKUtil.disableChildren(fraHistorical, true);\n default:\n service.getLot(lotNumbers, getVaccineID());\n loadComboValues(cboLot, lotNumbers, comboRenderer);\n loadVaccination();\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n ListUtil.selectComboboxItem(cboLot, immunItem.getLot());\n ListUtil.selectComboboxItem(cboSite, StrUtil.piece(immunItem.getInjSite(), \"~\", 2));\n spnVolume.setText(immunItem.getVolume());\n datGiven.setDate(immunItem.getDate());\n datVIS.setValue(immunItem.isImmunization() ? immunItem.getVISDate() : null);\n ListUtil.selectComboboxItem(cboReaction, immunItem.getReaction());\n ListUtil.selectComboboxData(cboOverride, immunItem.getVacOverride());\n txtAdminNote.setText(immunItem.getAdminNotes());\n cbCounsel.setChecked(immunItem.wasCounseled());\n }\n } else {\n IUser user = UserContext.getActiveUser();\n Practitioner provider = new Practitioner();\n provider.setId(user.getLogicalId());\n provider.setName(FhirUtil.parseName(user.getFullName()));\n txtProvider.setValue(FhirUtil.formatName(provider.getName()));\n txtProvider.setAttribute(\"ID\", VistAUtil.parseIEN(provider)); //provider.getId().getIdPart());\n selPrv = txtProvider.getAttribute(\"ID\") + U + U + txtProvider.getValue();\n Location location = new Location();\n location.setName(\"\");\n location.setId(\"\");\n datGiven.setDate(getBroker().getHostTime());\n onClick$btnVaccine(null);\n \n if (txtVaccine.getValue().isEmpty()) {\n close(true);\n return;\n }\n \n Encounter encounter = EncounterContext.getActiveEncounter();\n if (!EncounterUtil.isPrepared(encounter)) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n if (isCategory(encounter, \"E\")) {\n setEventType(EventType.HISTORICAL);\n Date date = encounter == null ? null : encounter.getPeriod().getStart();\n datEventDate.setValue(DateUtil.stripTime(date == null ? getBroker().getHostTime() : date));\n radCurrent.setDisabled(true);\n txtLocation.setText(user.getSecurityDomain().getName());\n PromptDialog.showInfo(user.getSecurityDomain().getLogicalId());\n txtLocation.setAttribute(\"ID\", user.getSecurityDomain().getLogicalId());\n \n } else {\n if (isVaccineInactive()) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n setEventType(EventType.CURRENT);\n radCurrent.setDisabled(false);\n }\n }\n }\n selectItem(cboReason, NONESEL);\n }\n btnSave.setLabel(immunItem == null ? \"Add\" : \"Save\");\n btnSave.setTooltiptext(immunItem == null ? \"Add record\" : \"Save record\");\n txtVaccine.setFocus(true);\n }", "public static List<FixturesForm> getSeasonAtGlance(String tabName) {\n\n List<FixturesForm>fixturesFormList = null;\n FixturesForm fixturesForm = null;\n String query = SQLConstants.GET_SEASON_AT_GLANCE.replaceAll(\"#\",tabName.toLowerCase().replaceAll(\"\\\\W\", \"\"));\n \n System.out.println(\"[INFO] Generated Query:\"+query);\n\n try {\n fixturesFormList = new ArrayList<FixturesForm>();\n Connection con = JdbcConnection.getConnection();\n PreparedStatement pstmt = con.prepareStatement(query);\n\n ResultSet rs = pstmt.executeQuery();\n\n while (rs.next()) {\n fixturesForm = new FixturesForm();\n fixturesForm.setId(rs.getLong(\"id\"));\n fixturesForm.setLeftTeamId(rs.getLong(\"leftTeamid\"));\n fixturesForm.setRightTeamId(rs.getLong(\"rightTeamid\"));\n fixturesForm.setLeftTeamName(getTeam(con, rs.getLong(\"leftTeamid\")).getName());\n fixturesForm.setRightTeamName(getTeam(con, rs.getLong(\"rightTeamid\")).getName());\n fixturesForm.setVenue(rs.getString(\"venue\"));\n fixturesForm.setDate(rs.getString(\"date\"));\n \n fixturesFormList.add(fixturesForm);\n \n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return fixturesFormList;\n\n }", "@Override\n\tpublic Pane generateForm() {\n\t\treturn painelPrincipal;\n\t}", "public static List<Form> list_form(String form_Version) {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<Form> forms = new ArrayList<Form>();\n\t \n\n\t try {\n\t \tPreparedStatement statement;\n\n\t\t statement = connection.prepareStatement(\"SELECT * FROM form WHERE form_version = '\"+form_Version+\"'\");\n\t \tResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t \tString formVersion = rs.getString(\"form_version\");\n\t String formName = rs.getString(\"form_name\");\n\t int fieldId = rs.getInt(\"field_id\");\n\t String fieldValue = rs.getString(\"field_value\");\n\t \n\t Form form = new Form(formVersion, formName, fieldId, fieldValue);\n\t \n\t forms.add(form);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException e) {\n\t e.printStackTrace();\n\t }\n\n\t return forms;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }", "@GetMapping(\"applicants\")\n public List<Applicant> readAll() {\n return applicantService.getAll();\n }", "@GetMapping\n\tpublic List<PlantingArea> findAll() {\n\t\treturn plantAreaServ.findAll();\n\t}", "@Override\n\tpublic List<Control> findAll() throws Exception {\n\t\treturn controlMapper.findAll();\n\t}", "List<FormValidator> getValidators();", "public List<FormMenuVO> selectSiteMenuFormList() {\n\t\treturn sqlSession.selectList(\"com.example.mapper.SiteMapper.selectSiteMenuFormList\");\n\t}", "@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }", "public ArrayList<DegreeCurricularPlan> getDegreeCurricularPlans() {\n\t\treturn degreeCurricularPlans;\n\t}", "@Override\n\tpublic List<Design> selectAll() {\n\t\treturn designMapper.selectAll();\n\t}", "private Collection<COREModel> getAllRealisationModels() {\n Collection<COREModel> allRealisationModels = new ArrayList<COREModel>();\n Collection<? extends COREModel> aspects = EMFModelUtil.collectElementsOfType(concern,\n CorePackage.Literals.CORE_CONCERN__MODELS, RamPackage.eINSTANCE.getAspect());\n Collection<? extends COREModel> ucms = EMFModelUtil.collectElementsOfType(concern,\n CorePackage.Literals.CORE_CONCERN__MODELS, UCMPackage.eINSTANCE.getUseCaseMap());\n allRealisationModels.addAll(aspects);\n allRealisationModels.addAll(ucms);\n return allRealisationModels;\n }", "@Override\n public ExtensionResult getForms(ExtensionRequest extensionRequest) {\n Map<String, String> output = new HashMap<>();\n FormBuilder formBuilder = new FormBuilder(appProperties.getFormIdTest());\n\n ButtonTemplate button = new ButtonTemplate();\n button.setTitle(\"Test Form\");\n button.setSubTitle(\"Subtitle is here\");\n button.setPictureLink(appProperties.getAtmUrl());\n button.setPicturePath(appProperties.getAtmUrl());\n List<EasyMap> actions = new ArrayList<>();\n EasyMap bookAction = new EasyMap();\n bookAction.setName(\"Label here\");\n bookAction.setValue(formBuilder.build());\n actions.add(bookAction);\n button.setButtonValues(actions);\n ButtonBuilder buttonBuilder = new ButtonBuilder(button);\n\n output.put(OUTPUT, buttonBuilder.build());\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }", "protected final Form getForm() {\n\t\treturn itsForm;\n\t}", "@View( value = VIEW_MULTIVIEW_FORMS, defaultView = true )\n public String getMultiviewFormsView( HttpServletRequest request )\n {\n // Retrieve the list of all filters, columns and panels if the pagination and\n // the sort are not used\n boolean bIsSessionLost = isSessionLost( );\n if ( isPaginationAndSortNotUsed( request ) || bIsSessionLost )\n {\n initFormRelatedLists( request );\n manageSelectedPanel( );\n }\n _listAuthorizedFormPanelDisplay = _listFormPanelDisplay.stream( )\n .filter( fpd -> RBACService.isAuthorized( fpd.getFormPanel( ).getFormPanelConfiguration( ), FormPanelConfigIdService.PERMISSION_VIEW,\n (User) AdminUserService.getAdminUser( request ) ) )\n .collect( Collectors.toList( ) );\n\n // Build the Column for the Panel and save their values for the active panel\n initiatePaginatorProperties( request );\n buildFormItemSortConfiguration( request );\n buildFormPanelDisplayWithData( request, getIndexStart( ), _nItemsPerPage, _formItemSortConfig );\n\n // Build the template of each form filter display\n if ( isPaginationAndSortNotUsed( request ) || bIsSessionLost )\n {\n _listFormFilterDisplay.stream( ).forEach( formFilterDisplay -> formFilterDisplay.buildTemplate( request ) );\n Collections.sort( _listFormFilterDisplay, new FormListPositionComparator( ) );\n }\n\n // Retrieve the list of all id of form response of the active FormPanelDisplay\n List<Integer> listIdFormResponse = MultiviewFormUtil.getListIdFormResponseOfFormPanel( _formPanelDisplayActive );\n\n // Build the model\n if ( _formPanelDisplayActive == null && CollectionUtils.isNotEmpty( _listAuthorizedFormPanelDisplay ) )\n {\n _formPanelDisplayActive = _listAuthorizedFormPanelDisplay.get( 0 );\n _formPanelDisplayActive.setActive( true );\n }\n Map<String, Object> model = getPaginatedListModel( request, AbstractPaginator.PARAMETER_PAGE_INDEX, listIdFormResponse, buildPaginatorUrl( ),\n _formPanelDisplayActive.getFormPanel( ).getTotalFormResponseItemCount( ) );\n\n // Get the config multiview action if the current admin user is authorized\n GlobalFormsAction multiviewConfigAction = GlobalFormsActionHome.selectGlobalFormActionByCode( FormsConstants.ACTION_FORMS_MANAGE_MULTIVIEW_CONFIG,\n FormsPlugin.getPlugin( ), request.getLocale( ) );\n\n if ( RBACService.isAuthorized( (RBACResource) multiviewConfigAction, GlobalFormsAction.PERMISSION_PERFORM_ACTION,\n (User) AdminUserService.getAdminUser( request ) ) )\n {\n model.put( FormsConstants.MARK_MULTIVIEW_CONFIG_ACTION, multiviewConfigAction );\n }\n\n GlobalFormsAction multiviewExportAction = GlobalFormsActionHome.selectGlobalFormActionByCode( FormsConstants.ACTION_FORMS_EXPORT_RESPONSES,\n FormsPlugin.getPlugin( ), request.getLocale( ) );\n\n if ( RBACService.isAuthorized( (RBACResource) multiviewExportAction, GlobalFormsAction.PERMISSION_PERFORM_ACTION,\n (User) AdminUserService.getAdminUser( request ) ) )\n {\n model.put( FormsConstants.MARK_MULTIVIEW_EXPORT_ACTION, multiviewExportAction );\n }\n\n model.put( MARK_PAGINATOR, getPaginator( ) );\n model.put( MARK_LOCALE, getLocale( ) );\n model.put( MARK_FORM_FILTER_LIST, _listFormFilterDisplay );\n\n // Add the template of column to the model\n String strSortUrl = String.format( BASE_SORT_URL_PATTERN, _strSelectedPanelTechnicalCode );\n String strRedirectionDetailsBaseUrl = buildRedirectionDetailsBaseUrl( );\n String strTableTemplate = \"\";\n if ( _formPanelDisplayActive != null )\n {\n strTableTemplate = FormListTemplateBuilder.buildTableTemplate( _listFormColumnDisplay, _formPanelDisplayActive.getFormResponseItemList( ),\n getLocale( ), strRedirectionDetailsBaseUrl, strSortUrl, getPaginator( ).getPageItems( ) );\n }\n model.put( MARK_TABLE_TEMPLATE, strTableTemplate );\n\n // Add the list of all form panel\n model.put( MARK_FORM_PANEL_LIST, _listAuthorizedFormPanelDisplay );\n model.put( MARK_CURRENT_SELECTED_PANEL, _strSelectedPanelTechnicalCode );\n model.put( MARK_LIST_FORMAT_EXPORT, ExportServiceManager.getInstance( ).getRefListFormatExport( ) );\n\n return getPage( PROPERTY_FORMS_MULTIVIEW_PAGE_TITLE, TEMPLATE_FORMS_MULTIVIEW, model );\n }", "@Override\n @HystrixCommand\n @GetMapping(\"/listAll\")\n @PreAuthorize(\"isAuthenticated()\")\n @ApiOperation(value = \"Gets a list with all the webforms\", hidden = true)\n public List<WebformMetabaseVO> getListWebforms() {\n return webformService.getListWebforms();\n }", "public java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight.Builder> \n getTransitFlightsBuilderList() {\n return getTransitFlightsFieldBuilder().getBuilderList();\n }", "public List<Plan> getPlannablePlans() {\n return getPlanManager().getPlannablePlans( getUser() );\n }", "public static ArrayList collectionFromForm(RegionAccessListForm regfrm) {\n ArrayList accessCollection = new ArrayList();\n\n ArrayList tempeditfact = new ArrayList();\n ArrayList tempeditplan = new ArrayList();\n ArrayList tempviewfact = new ArrayList();\n ArrayList tempviewplan = new ArrayList();\n\n for (int i = 0; i < regfrm.getEditfact().length; i++) {\n int regid = regfrm.getEditfact()[i];\n tempeditfact.add(new Integer(regid));\n }\n for (int i = 0; i < regfrm.getEditplan().length; i++) {\n int regid = regfrm.getEditplan()[i];\n tempeditplan.add(new Integer(regid));\n }\n for (int i = 0; i < regfrm.getViewfact().length; i++) {\n int regid = regfrm.getViewfact()[i];\n tempviewfact.add(new Integer(regid));\n }\n for (int i = 0; i < regfrm.getViewplan().length; i++) {\n int regid = regfrm.getViewplan()[i];\n tempviewplan.add(new Integer(regid));\n }\n\n ArrayList tempunited = new ArrayList();\n tempunited.removeAll(tempeditfact);\n tempunited.addAll(tempeditfact);\n tempunited.removeAll(tempeditplan);\n tempunited.addAll(tempeditplan);\n tempunited.removeAll(tempviewfact);\n tempunited.addAll(tempviewfact);\n tempunited.removeAll(tempviewplan);\n tempunited.addAll(tempviewplan);\n\n Iterator itr = tempunited.iterator();\n while (itr.hasNext()) {\n Integer i = (Integer) itr.next();\n {\n RegionAccess ra = new RegionAccess();\n ra.setRegionid(i.intValue());\n ra.setEditfact(tempeditfact.contains(i));\n ra.setEditplan(tempeditplan.contains(i));\n ra.setViewfact(tempviewfact.contains(i));\n ra.setViewplan(tempviewplan.contains(i));\n\n accessCollection.add(ra);\n }\n }\n return accessCollection;\n}", "private Set<WorkflowPlan> evaluatePlansFromScheduler(Set<WorkflowPlan> candidatePlans) {\n return candidatePlans;\n }", "public List<TextBox> getAllTextBox() {\n List<TextBox> tb = new LinkedList<>();\n tb.add(entityName);\n return tb;\n }", "public Map<String, List<TimePeriodModel>> getAllTimePeriods();" ]
[ "0.6554985", "0.6099244", "0.5840297", "0.5595518", "0.54975265", "0.5277368", "0.5225241", "0.5168832", "0.5119444", "0.50592625", "0.50468475", "0.50012827", "0.49917126", "0.4982714", "0.4973772", "0.493927", "0.4928138", "0.49235907", "0.49126452", "0.49059808", "0.48934007", "0.48900008", "0.48817116", "0.48217145", "0.48140502", "0.48035055", "0.47802716", "0.47621402", "0.47554952", "0.4743824", "0.47301123", "0.47271758", "0.4715965", "0.47087583", "0.47076598", "0.4685749", "0.46709538", "0.46403235", "0.4635474", "0.45942158", "0.45901275", "0.4587503", "0.45858806", "0.45639178", "0.45603886", "0.45499575", "0.45462602", "0.45247954", "0.45207822", "0.45206657", "0.45155588", "0.4507974", "0.4499811", "0.44649103", "0.44512862", "0.44363376", "0.4423527", "0.44193155", "0.44096333", "0.43980855", "0.43855336", "0.4381721", "0.4379708", "0.4368523", "0.43669084", "0.43669084", "0.43532366", "0.43485996", "0.4339158", "0.4335141", "0.43218422", "0.43151003", "0.43120265", "0.4307665", "0.43074533", "0.4286388", "0.42769468", "0.42705035", "0.42666805", "0.42612955", "0.4253686", "0.42524698", "0.42515463", "0.42487", "0.42480773", "0.42395395", "0.42264217", "0.42117047", "0.4209076", "0.42052585", "0.4204197", "0.4198348", "0.419354", "0.41934988", "0.4188999", "0.41689828", "0.41677022", "0.4166774", "0.4157078", "0.41428494" ]
0.77518624
0
Get the "id" racePlanForm.
Optional<RacePlanForm> findOne(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getFormId();", "public Integer getFormId() {\n return formId;\n }", "public int getFormId()\r\n \t{\r\n \t\treturn Constants.TISSUE_SPECIMEN_REVIEW_EVENT_PARAMETERS_FORM_ID;\r\n \t}", "public Integer getFormResourceId() {\n\t\treturn formResourceId;\n\t}", "protected String getFormId(FacesContext context) {\n UIComponent lookingForForm = this; \n while (lookingForForm != null) {\n if (lookingForForm instanceof UIForm){\n return lookingForForm.getClientId(context);\n }\n lookingForForm = lookingForForm.getParent(); \n }\n return null;\n }", "public static PlanForm getPlan(int planID)\r\n {\r\n PlanForm pf = null;\r\n\r\n try\r\n {\r\n PlanDAO planDao = PlanDAOFactory.getDAO();\r\n pf = planDao.getPlan(planID);\r\n }\r\n catch (PlanDAOSysException udse)\r\n {\r\n udse.printStackTrace();\r\n }\r\n\r\n return pf;\r\n }", "@Override\r\n\tpublic int getFormId()\r\n\t{\r\n\t\treturn 0;\r\n\t}", "public NoteForm getOneAsForm(Integer id);", "AbiFormsForm selectByPrimaryKey(Integer idField);", "String labPlanId();", "public String getPlanMainId() {\n return planMainId;\n }", "public int getXX_SalesBudgetForm_ID() \r\n {\r\n return get_ValueAsInt(\"XX_SalesBudgetForm_ID\");\r\n \r\n }", "com.google.protobuf.ByteString\n getFormIdBytes();", "@Override\n\tpublic ERForm getSpecificForm(int RID) {\n\t\treturn null;\n\t}", "public int getPlanner_ID() {\n\t\tInteger ii = (Integer) get_Value(\"Planner_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "String getId() {\r\n\t\treturn option.getId() + \".\" + field.getName();\r\n\t}", "@Schema(description = \"Plan associated with the purchased offer\")\n public String getPlanId() {\n return planId;\n }", "public String getEvaluationFormId() {\n return this.evaluationFormId;\n }", "private JTextField getTId() {\r\n if (tId == null) {\r\n tId = new JTextField();\r\n tId.setBounds(new Rectangle(100, 20, 100, 20));\r\n }\r\n return tId;\r\n }", "public java.lang.String getIdMedicationPlan() {\n java.lang.Object ref = idMedicationPlan_;\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 idMedicationPlan_ = s;\n return s;\n }\n }", "public String getTxtID() {\n return txtId.getText();\n }", "public static JTextField gettxtIDFormaPago() {\n return txtIDFormaPago;\n }", "public long getDietPlanId()\n {\n return _model.getDietPlanId();\n }", "public Long getChildformid() {\n return childformid;\n }", "public int askId(){\n int id = askInt(\"Id of an element:\");\n return id;\n }", "public int getId() {\n return parameter.getId();\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public java.lang.String getIdMedicationPlan() {\n java.lang.Object ref = idMedicationPlan_;\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 idMedicationPlan_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getId()\r\n {\r\n return getAttribute(\"id\");\r\n }", "@Override\n\tpublic Planification getPlan(Long idPlan) {\n\t\treturn dao.getPlan(idPlan);\n\t}", "java.lang.String getID();", "Integer getRealmId();", "Short getId();", "@Override\n\tpublic String getSubmitId() {\n\t\treturn model.getSubmitId();\n\t}", "@Override\n\tpublic FinalForm getFinalById(String employee, UUID id) {\n\t\tString query = \"Select * from finalForm where employee =? and id = ?\";\n\t\tSimpleStatement simple = new SimpleStatementBuilder(query).setConsistencyLevel(DefaultConsistencyLevel.LOCAL_QUORUM)\n\t\t\t\t.build();\n\t\tBoundStatement bound = session.prepare(simple).bind(employee, id);\n\t\tResultSet results = session.execute(bound);\n\t\tRow row = results.one();\n\t\tif (row == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tFinalForm form = new FinalForm();\n\t\tform.setId(row.getUuid(\"id\"));\n\t\tform.setEmployee(row.getString(\"employee\"));\n\t\tform.setApproved(row.getBoolean(\"approved\"));\n\t\tform.setSubmissionDate(row.getLocalDate(\"submissionDate\"));\n\t\tform.setFormType(FormType.valueOf(row.getString(\"formType\")));\n\t\tform.setUrgent(row.getBoolean(\"urgent\"));\n\t\tform.setFilename(row.getString(\"filename\"));\n\t\t\n\t\treturn form;\n\t}", "@Override\r\n\tpublic Plan getPlan(int planID) {\n\t\treturn null;\r\n\t}", "java.lang.String getParameterId();", "public JTextField getTfId() {\n\t\treturn tfId;\n\t}", "public final String getFieldId() {\n return fieldId;\n }", "@Override\r\n\tpublic String getIdFieldName() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}", "public static String id()\n {\n return _id;\n }", "public String id() {\r\n return id;\r\n }", "public com.google.protobuf.ByteString\n getIdMedicationPlanBytes() {\n java.lang.Object ref = idMedicationPlan_;\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 idMedicationPlan_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Schema(description = \"The ID of the worklog record.\")\n public String getId() {\n return id;\n }", "protected abstract String getJobSubmitId();", "public Integer getProgramId();", "long getCaptureFestivalId();", "Optional<RacePlanForm> partialUpdate(RacePlanForm racePlanForm);", "public String id()\n {\n return id;\n }", "public String getPlanUuid() {\n return planUuid;\n }", "public com.google.protobuf.ByteString\n getIdMedicationPlanBytes() {\n java.lang.Object ref = idMedicationPlan_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n idMedicationPlan_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tpublic RegistrationForm findById(String id) {\n\t\tlogger.info(\"select registrationForm by id\");\n\t\treturn rfi.findById(id);\n\t}", "String getID();", "String getID();", "String getID();", "String getID();", "public String id() {\n return id;\n }", "public String id() {\n return id;\n }", "public Long getFormversionid() {\n return formversionid;\n }", "Object getId();", "public AppForm getAppFormById(String id) {\n return (AppForm)super.doFindObjectById(id);\r\n }", "public final String getId() {\n return id;\n }", "public String getId() {\n switch (this.getType()) {\n case BGP:\n /*return this.bgpConfig.getNeighbors().get(\n this.bgpConfig.getNeighbors().firstKey()).getLocalAs().toString();*/\n case OSPF:\n return this.vrf.getName();\n case STATIC:\n return this.staticConfig.getNetwork().getStartIp().toString();\n }\n return this.vrf.getName();\n }", "String getConstraintSetId();", "public String id() {\n return this.id;\n }", "public String id() {\n return this.id;\n }", "public String id() {\n return this.id;\n }", "public String id() {\n return this.id;\n }", "public String id() {\n return this.id;\n }", "public String id() {\n return this.id;\n }", "@JsonValue\n\tpublic final String fieldId() {\n\t \treturn this.name().replace(\"_\", \".\");\n\t}", "public String getId() {\n return id;\r\n }", "private JTextField getTxtIdE() {\n\t\tif (txtIdE == null) {\n\t\t\ttxtIdE = new JTextField();\n\t\t\ttxtIdE.setBounds(new Rectangle(140, 50, 125, 16));\n\t\t}\n\t\treturn txtIdE;\n\t}", "public String getId() {\r\n \t\treturn id;\r\n \t}", "@AutoEscape\n\tpublic String getFieldId();", "public String getId() {\r\n return this.id;\r\n }", "public String getId() {\r\n return this.id;\r\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn this.id;\r\n\t}", "@Override\r\n\tpublic String getId() {\n\t\treturn this.id;\r\n\t}", "public int id() {\n return this.id;\n }" ]
[ "0.7432626", "0.63797945", "0.63544184", "0.6257198", "0.623674", "0.62209624", "0.6183685", "0.6138414", "0.6097458", "0.5992711", "0.59846354", "0.59786046", "0.5967296", "0.5838659", "0.5797489", "0.56305856", "0.561025", "0.5541324", "0.55021805", "0.5368495", "0.53538257", "0.5333813", "0.53329796", "0.5332777", "0.5308497", "0.52957183", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.5295453", "0.52649134", "0.5251027", "0.52293754", "0.52275866", "0.52021873", "0.5200326", "0.518917", "0.51776016", "0.51582295", "0.5149807", "0.5143104", "0.5118044", "0.5104246", "0.5101152", "0.50955987", "0.507994", "0.507959", "0.5074904", "0.5072004", "0.50706136", "0.50652874", "0.50593454", "0.5059071", "0.5056594", "0.50493884", "0.50461096", "0.50459766", "0.50459766", "0.50459766", "0.50459766", "0.5043015", "0.5043015", "0.50396097", "0.5039278", "0.50379866", "0.5034546", "0.5030797", "0.50249594", "0.50238", "0.50238", "0.50238", "0.50238", "0.50238", "0.50238", "0.5023151", "0.50208706", "0.5019928", "0.5015305", "0.5011888", "0.5011711", "0.5011711", "0.50115263", "0.5006854", "0.5006854", "0.50052977" ]
0.67823935
1
Delete the "id" racePlanForm.
void delete(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void delete(Long id) {\n planRepository.deleteById(id);\n\n }", "Form removeElement(String id);", "@PostMapping(\"/delete\")\r\n public String deleteForm(Model model,@RequestParam int traineeId) {\r\n try {\r\n Trainee trainee = service.findById(traineeId);\r\n model.addAttribute(\"trainee\", trainee);\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"delete\";\r\n }", "private void deleteButton4ActionPerformed(ActionEvent e) {\n // TODO add your code here\n PlanBuffer.setBuffer(\"\");\n PlanBuffer.setBuffer(this.list.get(this.page*6 + 3).getPlanID());\n String planID = PlanBuffer.getBuffer();\n PlanFunction.DeletePlanByPlanID(planID);\n this.dispose();\n PlanHomeCoach.run();\n }", "private void deleteButton1ActionPerformed(ActionEvent e) {\n // TODO add your code here\n PlanBuffer.setBuffer(\"\");\n PlanBuffer.setBuffer(this.list.get(this.page*6).getPlanID());\n String planID = PlanBuffer.getBuffer();\n PlanFunction.DeletePlanByPlanID(planID);\n this.dispose();\n PlanHomeCoach.run();\n }", "@DeleteMapping(\"/{id}\")\n\t@ResponseStatus(HttpStatus.NO_CONTENT)\n\tpublic void delete(@PathVariable Long id) {\n\t\tplanRoleRepository.deleteById(id);\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete FormaDeAgendamento : {}\", id);\n formaDeAgendamentoRepository.deleteById(id);\n formaDeAgendamentoSearchRepository.deleteById(id);\n }", "private void deleteButton2ActionPerformed(ActionEvent e) {\n // TODO add your code here\n PlanBuffer.setBuffer(\"\");\n PlanBuffer.setBuffer(this.list.get(this.page*6 + 1).getPlanID());\n String planID = PlanBuffer.getBuffer();\n PlanFunction.DeletePlanByPlanID(planID);\n this.dispose();\n PlanHomeCoach.run();\n }", "private void deleteButton6ActionPerformed(ActionEvent e) {\n // TODO add your code here\n PlanBuffer.setBuffer(\"\");\n PlanBuffer.setBuffer(this.list.get(this.page*6 + 5).getPlanID());\n String planID = PlanBuffer.getBuffer();\n PlanFunction.DeletePlanByPlanID(planID);\n this.dispose();\n PlanHomeCoach.run();\n }", "public void delete(CrGrupoFormularioPk pk) throws CrGrupoFormularioDaoException;", "private void deleteButton3ActionPerformed(ActionEvent e) {\n // TODO add your code here\n PlanBuffer.setBuffer(\"\");\n PlanBuffer.setBuffer(this.list.get(this.page*6 + 2).getPlanID());\n String planID = PlanBuffer.getBuffer();\n PlanFunction.DeletePlanByPlanID(planID);\n this.dispose();\n PlanHomeCoach.run();\n }", "private void deleteButton5ActionPerformed(ActionEvent e) {\n // TODO add your code here\n PlanBuffer.setBuffer(\"\");\n PlanBuffer.setBuffer(this.list.get(this.page*6 + 4).getPlanID());\n String planID = PlanBuffer.getBuffer();\n PlanFunction.DeletePlanByPlanID(planID);\n this.dispose();\n PlanHomeCoach.run();\n }", "public void deletar(Long cnpjOuCpf, Long idFormulario) {\n\t\tresultadoTesteRepository.deleteById(cnpjOuCpf, idFormulario);\n\t}", "void deleteChallengeById(int id);", "public void deleteReform(View view) {\n new AlertDialog.Builder(this)\n .setTitle(\"Delete reform type\")\n .setMessage(\"Are you sure that you want to proceed?\")\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setPositiveButton(android.R.string.yes, (dialog, which) -> {\n mProgressBar.setVisibility(View.VISIBLE);\n\n mReformTypeRepo.deleteReformType(mReformType).observe(\n this, isDeleted -> {\n if (isDeleted) {\n Toast.makeText(\n this,\n \"Reform type successfully deleted.\",\n Toast.LENGTH_SHORT\n ).show();\n\n Intent intent = new Intent(this, ReformTypeListActivity.class);\n startActivity(intent);\n\n finish();\n }\n });\n\n mProgressBar.setVisibility(GONE);\n }).setNegativeButton(android.R.string.no, null).show();\n }", "public PlanoSaude remove(long plano_id) throws NoSuchPlanoSaudeException;", "@RequestMapping(method = RequestMethod.DELETE, value = \"/{formularioId}\")\r\n\tpublic ResponseEntity<Object> del(@PathVariable(\"formularioId\") int formularioId) {\r\n\t\tformularioService.delete(formularioId);\r\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\r\n\t}", "public int deleteById(long formId) throws DataAccessException;", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete PerSubmit : {}\", id);\n perSchedulerRepository.deleteById(id);\n perSubmitSearchRepository.deleteById(id);\n }", "public String deleteResearcher(int id);", "@Test\n public void deleteScheduledPlanTest() throws ApiException {\n Long scheduledPlanId = null;\n String response = api.deleteScheduledPlan(scheduledPlanId);\n\n // TODO: test validations\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Radio : {}\", id);\n radioRepository.delete(id);\n }", "@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }", "public void eliminarTripulante(Long id);", "@GetMapping(\"/deletePharmacist\")\n public String pharmacistFormDelete(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"deletePharmacist\";\n }", "@GetMapping(\"/deleteTeam/{id}\")\n public String deleteTeam(@Valid @PathVariable (value = \"id\") long id) {\n this.teamService.deleteTeamById(id);\n return \"redirect:/teamPage\";\n }", "public void deleteSurvey(int sid);", "public String deleteAction(long id) {\n boolean success = quizEJB.delete(id);\n quizList = quizEJB.listQuiz();\n if (success){\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"Record deleted successfully\"));\n }\n else {\n FacesContext.getCurrentInstance().addMessage(\"successForm:errorInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Error\", \"Something went wrong. Please try again\"));\n }\n return \"quiz-list.xhtml\";\n }", "@Override\n public void remove( )\n {\n FormPortletHome.getInstance( ).remove( this );\n }", "@Override\n\tpublic ModelAndView delete(String id) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void delete(DhtmlxGridForm f) throws Exception {\n\t}", "public void deleteByVaiTroID(long vaiTroId);", "public String deleteCurriculum(int curriculumId);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Permiso : {}\", id);\n permisoRepository.delete(id);\n }", "public void delete(Long id) {\n log.debug(\"Request to delete Faculty : {}\", id);\n facultyRepository.deleteById(id);\n }", "private void deleteActionPerformed(ActionEvent evt) throws Exception {\n String teaID = this.teaIDText.getText();\n if(StringUtil.isEmpty(teaID)){\n JOptionPane.showMessageDialog(null, \"请先选择一条老师信息!\");\n return;\n }\n int confirm = JOptionPane.showConfirmDialog(null, \"确认删除?\");\n if(confirm == 0){//确认删除\n Connection con = dbUtil.getConnection();\n int delete = teacherInfo.deleteInfo(con, teaID);\n if(delete == 1){\n JOptionPane.showMessageDialog(null, \"删除成功!\");\n resetValues();\n }\n else{\n JOptionPane.showMessageDialog(null, \"删除失败!\");\n return;\n }\n initTable(new Teacher());//初始化表格\n }\n }", "@Override\n\tpublic void delete(Integer id) {\n\t\tString query = \"DELETE from fleet WHERE fleet.planeid=\" + id;\n\t\tDBManager.getInstance().deleteFromDB(query);\n\t}", "public void deleteBudgetPlan(int budgetPlanId) {\n em.remove(em.find(BudgetPlan.class, budgetPlanId));\n }", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "int deleteByExample(AbiFormsFormExample example);", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "@Override\n\tpublic Result delete(CurriculumVitae entity) {\n\t\treturn null;\n\t}", "public void delete(int klantId, int bedrijfId) {\n Connection connection = createConnection();\n try {\n PreparedStatement preparedStatement = connection.prepareStatement(\"DELETE FROM klant_has_bedrijf Where klant_id =? AND \" +\n \"bedrijf_id =?\");\n preparedStatement.setInt(1, klantId);\n preparedStatement.setInt(2, bedrijfId);\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n closeConnection(connection);\n }", "public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "void deleteVehicle(String vehicleID);", "public void deleteById(String id);", "@Transactional\r\n\tpublic void showFormForDeleteCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\r\n\t\t// Delete the object by primary key\r\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Menu where id=:mid\");\r\n\t\ttheQuery.setParameter(\"mid\", theId);\r\n\r\n\t\ttheQuery.executeUpdate();\r\n\r\n\t}", "public void removeClicked(View v){\n android.util.Log.d(this.getClass().getSimpleName(), \"remove Clicked\");\n String delete = \"delete from partner where partner.name=?;\";\n try {\n PartnerDB db = new PartnerDB((Context) this);\n SQLiteDatabase plcDB = db.openDB();\n plcDB.execSQL(delete, new String[]{this.selectedPartner});\n plcDB.close();\n db.close();\n }catch(Exception e){\n android.util.Log.w(this.getClass().getSimpleName(),\" error trying to delete partner\");\n }\n this.selectedPartner = this.setupselectSpinner1();\n this.loadFields();\n }", "public Page submitDeleteForm(HtmlPage page) \n throws Exception {\n HtmlForm submitForm = Util.getFormWithAction(page, \"doDelete\");\n if (submitForm != null) {\n return this.submit(submitForm);\n } else {\n throw new FormNotFoundException(\"Form for delete \" +\n \" could not be found on page \" + \n page);\n }\n }", "@RequestMapping(value = \"/person/delete/{id}\", method = RequestMethod.GET)\r\n\tpublic String personDeleteForm(@PathVariable int id, Model model) {\r\n\t\tPerson deletedPerson = personManager.getPersonById(id);\r\n\t\tpersonManager.deletePerson(deletedPerson);\r\n\t\t// Get all persons and render them\r\n\t\tList<Person> persons = personManager.getPersons();\r\n\t\tmodel.addAttribute(\"persons\", persons);\r\n\t\treturn \"groefnia/person/all\";\r\n\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete TypeVehicule : {}\", id);\n typeVehiculeRepository.deleteById(id);\n }", "public void delete(RutaPk pk) throws RutaDaoException;", "public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}", "public void deleteBySubject(int id, TripletType type) throws DAOException;", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete PomocniMaterijal : {}\", id);\n pomocniMaterijalRepository.deleteById(id);\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete ProjectTypeId : {}\", id);\n projectTypeIdRepository.deleteById(id);\n }", "public void deleteDoctor() {\n\n\t\tSystem.out.println(\"\\n----Remove Doctor----\");\n\t\tSystem.out.print(\"Enter Doctor Id: \");\n\t\tScanner sc = new Scanner(System.in);\n\t\tString doctor_id = sc.nextLine();\n\n\t\ttry {\n\t\t\tif (doctorDao.searchById(doctor_id).size() == 0) {\n\t\t\t\tlogger.info(\"Doctor Not Found!\");\n\t\t\t} else {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdoctorDao.delete(doctor_id);\n\t\t\t\t\tlogger.info(\"Data Deleted Successfully...\");\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.info(\"Data Deletion Unsuccessful...\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tlogger.info(e.getMessage());\n\t\t}\n\t}", "@RequestMapping(value=\"leasing/delete\", method = RequestMethod.GET)\r\n\tpublic ModelAndView delete(String idParameter) {\n\t\tConnection connection = Connection.getInstance();\r\n\t\tModelAndView response = BaseController.model();\r\n\t\tresponse = initParameter(response);\r\n\r\n\t\tLeasingDao parameterDao = new LeasingDao(connection);\r\n\t\tLeasing parameter = parameterDao.getParameterById(idParameter);\r\n\r\n\t\tif (!parameterDao.update(parameter)) {\r\n\t\t\tSystem.out.println(\"Error database\");\r\n\t\t}\r\n\r\n\t\tString page = Constant.CRITERIA_INDEX;\r\n\t\tpage = Helper.loggedCheck(page);\r\n\t\tresponse.setViewName(page);\r\n\t\treturn response;\r\n\t}", "public void deleteProject(Long projectId);", "public void deleteByComplement(int id, TripletType type) throws DAOException;", "@Override\r\n\tpublic Exam deleteExam(int id)\r\n\t{\n\t\treturn null;\r\n\t}", "@RequestMapping(value = \"/deleteFact/{factId}\", method = { RequestMethod.GET, RequestMethod.POST })\n\tpublic void deleteFact(HttpServletRequest req, HttpServletResponse resp, @PathVariable Integer factId, Model model) throws IOException, ServletException {\n\t\tFact fact = factDao.findFactById(factId);\n\t\tfactDao.deleteFact(fact);\n\t}", "void deleteDepartmentById(Long id);", "void delete( int nIdFormResponse, Plugin plugin );", "public void delete(int id);", "private void jButtonDeleteStageplaatsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeleteStageplaatsActionPerformed\n\n Stageplaats s = (Stageplaats)jListStageplaatsen.getSelectedValue();\n if (s != null){\n int index = this.jListStageplaatsen.getSelectedIndex();\n Stageplaats sFromDB = this.dbFacade.getStageplaatsByID(s.getId());\n if (sFromDB != null){\n this.dbFacade.remove(sFromDB);\n refreshDataCache();\n refreshListbox();\n if (index > 0) index--;\n this.jListStageplaatsen.setSelectedIndex(index);\n }\n }\n enableButtons();\n }", "public static void eliminarRegistros(){\n int idEliminar = Integer.parseInt(JOptionPane.showInputDialog(\"Igrese el ID a Eliminar\"));\n pd.eliminaraPersonas(idEliminar);\n }", "@Delete({\n \"delete from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);", "void deleteTrackerProjects(final Integer id);", "public void delete(Long id) {\n log.debug(\"Request to delete Exam : {}\", id);\n examRepository.deleteById(id);\n }", "@DeleteMapping(\"{id}\")\n public Lesson deleteLesson(@PathVariable long id) {\n //code\n return null;\n }", "@Override\r\n\tpublic Result delete(int id) {\n\t\treturn null;\r\n\t}", "private void remover() {\n int confirma = JOptionPane.showConfirmDialog(null, \"Tem certeza que deseja remover este cliente\", \"Atenção\", JOptionPane.YES_NO_OPTION);\n if (confirma == JOptionPane.YES_OPTION) {\n String sql = \"delete from empresa where id=?\";\n try {\n pst = conexao.prepareStatement(sql);\n pst.setString(1, txtEmpId.getText());\n int apagado = pst.executeUpdate();\n if (apagado > 0) {\n JOptionPane.showMessageDialog(null, \"Empresa removida com sucesso!\");\n txtEmpId.setText(null);\n txtEmpNome.setText(null);\n txtEmpTel.setText(null);\n txtEmpEmail.setText(null);\n txtEmpCNPJ.setText(null);\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }\n }", "public void deleteCita(int id){\n try {\n PreparedStatement preparedStatement = con.prepareStatement(\"DELETE FROM paciente WHERE id_paciente=?;\");\n preparedStatement.setInt(1,id);\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "Optional<RacePlanForm> findOne(Long id);", "@PostMapping(\"/details/{id}/delete\")\n public String deleteOneRegistrationPage(@PathVariable Long id, Model model) {\n DentistVisitDTO foundVisit = this.dentistVisitService.getVisitById(id);\n if(foundVisit != null) {\n this.dentistVisitService.deleteEntry(id);\n }\n return \"redirect:/registrationList\";\n }", "@PostMapping(\"/delete-by-id\")\r\n public String deleteById(Model model,@RequestParam int id) {\r\n try {\r\n service.delete(id);\r\n model.addAttribute(\"msg\",\"Trainee deleted successfuly!\");\r\n }catch(Exception ex) {\r\n System.out.println(\"Error \"+ex.getMessage());\r\n model.addAttribute(\"msg\",\"No record found!\");\r\n }\r\n return \"delete\";\r\n }", "void deleteQuestion(String questionId);", "public int deleteByFormId(long formId) throws DataAccessException {\n Long param = new Long(formId);\n\n return getSqlMapClientTemplate().delete(\"MS-F-COUNCIL-SUMMARY-DELETE-BY-FORM-ID\", param);\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}", "@RequestMapping(\"/pilot/delete/{id}\")\n\t\tpublic String deletePilot(Model model , @PathVariable Long id) {\n\t\t\tPilotModel pilot = pilotService.getPilotDetailById(id);\n\t\t\t\n\t\t\t\n\t\t\tpilotService.deletePilot(pilot);\n\t\t\t\n\t\t\treturn \"delete\";\n\t\t}", "@Override\n\tpublic void deleteById(int id) {\n\t\tdesignMapper.deleteById(id);\n\t}", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "@RequestMapping(method = RequestMethod.POST, value = \"/deleteReport\")\r\n public String deleteReport(String rid) {\r\n logger.info(rid);\r\n Integer id = Integer.parseInt(rid);\r\n reportsRepository.deleteById(id);\r\n return \"deleted\";\r\n }", "@RequestMapping(method = RequestMethod.DELETE, value = \"/teams/{id}\")\n public void deleteTeam(@PathVariable Integer id) {\n teamService.deleteTeam(id);\n }", "@DeleteMapping(value = \"/{id}\")\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void deleteExam(@PathVariable long id) {\n examsService.delete(examsService.findById(id));\n }", "@DeleteMapping(\"/anexlaborals/{id}\")\n @Timed\n public ResponseEntity<Void> deleteAnexlaboral(@PathVariable Integer id) {\n log.debug(\"REST request to delete Anexlaboral : {}\", id);\n anexlaboralRepository.delete(id);\n anexlaboralSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "@FXML\n public void delete() {\n try {\n workerAdaptor.deleteWorker(userIDComboBox.getValue());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n Stage stage = (Stage) cancelButton.getScene().getWindow();\n stage.close();\n }", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete() {\n\t\tJFrame j = new JFrame();\r\n\t\tj.getContentPane().setBackground(Color.GREEN);\r\n\t\tMemberDAO db = new MemberDAO();\r\n\r\n\t\tj.setSize(600, 300);\r\n\t\tj.getContentPane().setLayout(null);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"회원삭제\");\r\n\t\tlblNewLabel.setFont(new Font(\"굴림\", Font.PLAIN, 24));\r\n\t\tlblNewLabel.setBounds(242, 10, 108, 58);\r\n\t\tj.getContentPane().add(lblNewLabel);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"아이디\");\r\n\t\tlblNewLabel_1.setBounds(134, 121, 57, 15);\r\n\t\tj.getContentPane().add(lblNewLabel_1);\r\n\r\n\t\tUserID = new JTextField();\r\n\t\tUserID.setBounds(212, 114, 178, 30);\r\n\t\tj.getContentPane().add(UserID);\r\n\t\tUserID.setColumns(10);\r\n\r\n\t\tJButton btnmodify = new JButton(\"삭제하기\");\r\n\t\tbtnmodify.setBackground(Color.WHITE);\r\n\t\tbtnmodify.setBounds(242, 191, 97, 40);\r\n\t\tj.getContentPane().add(btnmodify);\r\n\r\n\t\tbtnmodify.addActionListener(new ActionListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString id = UserID.getText();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint check = db.idcheck(id);\r\n\r\n\t\t\t\t\tif (check == 1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"삭제되었습니다.\");\r\n\t\t\t\t\t\tdb.delete(id);\r\n\t\t\t\t\t\t로그인창 login = new 로그인창();\r\n\t\t\t\t\t\tlogin.loginpage();\r\n\t\t\t\t\t\tj.dispose();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(j, \"해당 아이디가 존재하지않습니다.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\tj.setVisible(true);\r\n\t}", "@Override\n\tpublic void deleteLane(Integer laneId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Lane where laneId =:theLaneId\");\n\t\t\n\t\ttheQuery.setParameter(\"theLaneId\", laneId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n public UserPlan UserPlanDelete(long planId) {\r\n session = sf.openSession();\r\n Transaction t = session.beginTransaction();\r\n UserPlan deletelist = (UserPlan) session.load(UserPlan.class, planId);\r\n if (null != deletelist) {\r\n session.delete(deletelist);\r\n }\r\n t.commit();\r\n session.close();\r\n sf.close();\r\n return deletelist;\r\n }", "public void eliminar(){\n SQLiteDatabase db = conn.getWritableDatabase();\n String[] parametros = {cajaId.getText().toString()};\n db.delete(\"personal\", \"id = ?\", parametros);\n Toast.makeText(getApplicationContext(), \"Se eliminó el personal\", Toast.LENGTH_SHORT).show();\n db.close();\n }" ]
[ "0.64651847", "0.63984334", "0.6268746", "0.6213887", "0.6206475", "0.61517143", "0.6086303", "0.60839146", "0.60747355", "0.60391927", "0.6018906", "0.5958088", "0.5904494", "0.58458674", "0.5833199", "0.5817765", "0.58144295", "0.5727316", "0.56979525", "0.56742245", "0.567195", "0.5595421", "0.5586988", "0.5585543", "0.55811685", "0.5577862", "0.55503297", "0.55397767", "0.5537038", "0.5536805", "0.5525", "0.5490387", "0.54882264", "0.5468707", "0.54669523", "0.5465402", "0.54370135", "0.54325515", "0.5419541", "0.5419541", "0.5419541", "0.5419541", "0.5419541", "0.5417767", "0.5416591", "0.54137784", "0.5383485", "0.5370512", "0.53633374", "0.5360067", "0.535836", "0.5354833", "0.5350626", "0.5347889", "0.5341531", "0.53405106", "0.53379035", "0.5333844", "0.53327584", "0.53279227", "0.5325563", "0.5320822", "0.5313635", "0.5310414", "0.53067774", "0.5305389", "0.53037417", "0.53029215", "0.53022736", "0.5299641", "0.52974534", "0.529665", "0.5294138", "0.5291929", "0.52917963", "0.52916276", "0.528925", "0.52815807", "0.52802324", "0.52751553", "0.5275008", "0.52730423", "0.5270357", "0.5270035", "0.5266948", "0.5264439", "0.52631205", "0.52593374", "0.52542734", "0.52538264", "0.5246223", "0.5244124", "0.52436763", "0.5239583", "0.5239365", "0.5239365", "0.5239365", "0.5229103", "0.5227913", "0.5225459", "0.5221823" ]
0.0
-1
NOTE: this test is identical to DemoTest.getBroswerVersionTest
@Test public void getBroswerVersionTest() { // Arrange // Act try { CDPClient.setDebug(true); CDPClient.sendMessage(MessageBuilder.buildBrowserVersionMessage(id)); responseMessage = CDPClient.getResponseMessage(id, null); // Assert result = new JSONObject(responseMessage); for (String field : Arrays.asList(new String[] { "protocolVersion", "product", "revision", "userAgent", "jsVersion" })) { assertThat(result.has(field), is(true)); } // ServiceWorker serviceWorker = CDPClient.getServiceWorker(URL, 10, // "activated"); // System.out.println(serviceWorker.toString()); // Assert.assertEquals(serviceWorker.getStatus(), "activated"); } catch (Exception e) { System.err.println("Exception (ignored): " + e.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String offerVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "java.lang.String getVersion();", "Version getVersion();", "Version getVersion();", "Version getVersion();", "Version getVersion();", "@Test\n public void checkSiteVersion() {\n actions.goToMainPage();\n Assert.assertEquals(isMobileTesting, actions.isMobileSite(), \"Inappropriate site version is open\");\n System.out.println(DriverFactory.class.getResource(\"/IEDriverServer.exe\").getPath());\n }", "private void testGetVersion() {\r\n\t\t\r\n\t\t// Get the value from the pointer\r\n\t\tPointer hEngine = this.phEngineFD.getValue();\r\n\t\tSystem.out.println(hEngine);\r\n\t\t\r\n\t\t// Get the version information from the engine\r\n\t\tAFD_FSDK_Version version = AFD_FSDK_Library.INSTANCE.AFD_FSDK_GetVersion(hEngine);\r\n\t\tSystem.out.println(version);\r\n\t}", "int getCurrentVersion();", "public abstract String getVersion();", "public abstract String getVersion();", "public abstract String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "String getVersion();", "public abstract int getVersion();", "public String getVersion();", "public String getVersion();", "public String getVersion();", "public String getVersion();", "@Test\n public void versionTest() {\n // TODO: test version\n }", "@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}", "@Test\n public void appVersionTest() {\n // TODO: test appVersion\n }", "public Version getVersion();", "public int getVersion() { return 1; }", "long getVersion();", "long getVersion();", "long getVersion();", "long getVersion();", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readVersionInfo() {\n\t\tboolean flag = oTest.readVersionInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "Integer getVersion();", "public String getProductVersion();", "@Test\n\tpublic void testVersion() {\n\t\tassertEquals(\"HTTP/1.0\", myReply.getVersion());\n\t}", "private static void findRunimeVersion(WebDriver driver) {\n Object response = executeAsyncJavascript(driver,\n \"var callback = arguments[arguments.length - 1];\" +\n \"fin.desktop.System.getVersion(function(v) { callback(v); } );\");\n System.out.println(\"OpenFin Runtime version \" + response);\n }", "public abstract HttpClient.Version version();", "public void testGetManagementSpecVersion() {\n String specVersion = mb.getManagementSpecVersion();\n assertNotNull(specVersion);\n assertTrue(specVersion.length() > 0);\n }", "public void testGetVersion() throws Exception {\n System.out.println(\"getVersion\");\n Properties properties = new Properties();\n properties.put(OntologyConstants.ONTOLOGY_MANAGER_CLASS,\n \"com.rift.coad.rdf.semantic.ontology.jena.JenaOntologyManager\");\n File testFile = new File(\"./base.xml\");\n FileInputStream in = new FileInputStream(testFile);\n byte[] buffer = new byte[(int)testFile.length()];\n in.read(buffer);\n in.close();\n properties.put(OntologyConstants.ONTOLOGY_CONTENTS, new String(buffer));\n JenaOntologyManager instance =\n (JenaOntologyManager)OntologyManagerFactory.init(properties);\n String expResult = \"1.0.1\";\n String result = instance.getVersion();\n assertEquals(expResult, result);\n }", "@CheckForNull\n String getVersion();", "public String getVersionNum();", "String buildVersion();", "@Test\n public void version() {\n String version = System.getProperty(\"java.version\");\n Assert.assertEquals(\"11\", version.split(\"\\\\.\")[0]);\n }", "public String getVersionNumber ();", "String version();", "public abstract String majorVersion();", "public String version() throws Exception {\n\t\ttry {\n\t\t\tClient c = getHttpClient();\n\t\t\tWebResource r = c.resource(url + \"/version\");\n\t\t\treturn r.get(String.class);\n\t\t} catch (UniformInterfaceException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new Exception(e.getMessage() + \" (\" + e.getResponse().getEntity(String.class) + \")\");\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t}\n\t}", "long getVersionNumber();", "public String getVersion(){\r\n return version;\r\n }", "@Test\n public void testVersions() throws Exception {\n for (String name : new String[]{\n //\"LibreOfficeBase_odb_1.3.odb\",\n \"LibreOfficeCalc_ods_1.3.ods\",\n \"LibreOfficeDraw_odg_1.3.odg\",\n \"LibreOfficeImpress_odp_1.3.odp\",\n \"LibreOfficeWriter_odt_1.3.odt\",\n }) {\n List<Metadata> metadataList = getRecursiveMetadata(\"/versions/\" + name);\n Metadata metadata = metadataList.get(0);\n assertEquals(\"1.3\", metadata.get(OpenDocumentMetaParser.ODF_VERSION_KEY), \"failed on \" + name);\n }\n }", "java.lang.String getApplicationVersion();", "@Override\n\tpublic boolean getCheckOlderVersion()\n\t{\n\t\treturn false;\n\t}", "public String getVersion()\n {\n return ver;\n }", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "boolean hasVersion();", "boolean hasVersion();", "String process_mgr_version () throws BaseException;", "public abstract double getVersionNumber();", "public String getSoftwareDriverVersion();", "@Test\r\n \tpublic void testGetBaseVersion() {\n \t\tESPrimaryVersionSpec version = localProject.getBaseVersion();\r\n \t\tassertNull(version);\r\n \t}", "Long getVersion();", "protected static native String getVersion();", "public String getVersion () {\r\n return version;\r\n }", "public String getVersionsSupported();", "@Test\n public void testVersion() {\n PowerMock.replayAll();\n assertEquals(Version.getVersion(), connector.version());\n PowerMock.verifyAll();\n }", "String getVersion() throws IOException, SoapException;", "String getEmptyVersion();", "public String getVer() {\r\n return this.ver;\r\n }", "public static String getCurrentBrowserVersion() {\r\n\t\tCapabilities c = ((RemoteWebDriver) driver).getCapabilities();\r\n\t\treturn c.getVersion();\r\n\t}", "@Test\n void testVersionSelection() throws Exception {\n for (SqlGatewayRestAPIVersion version : SqlGatewayRestAPIVersion.values()) {\n if (version != SqlGatewayRestAPIVersion.V0) {\n CompletableFuture<TestResponse> versionResponse =\n restClient.sendRequest(\n serverAddress.getHostName(),\n serverAddress.getPort(),\n headerNot0,\n EmptyMessageParameters.getInstance(),\n EmptyRequestBody.getInstance(),\n Collections.emptyList(),\n version);\n\n TestResponse testResponse =\n versionResponse.get(timeout.getSize(), timeout.getUnit());\n assertThat(testResponse.getStatus()).isEqualTo(version.name());\n }\n }\n }", "public void testGetSpecVersion() {\n assertEquals(mb.getSpecVersion(), System\n .getProperty(\"java.vm.specification.version\"));\n }", "public static void showVersion() {\r\n String apiTitle = ImdbApi.class.getPackage().getSpecificationTitle();\r\n \r\n if (StringUtils.isNotBlank(apiTitle)) {\r\n String apiVersion = ImdbApi.class.getPackage().getSpecificationVersion();\r\n String apiRevision = ImdbApi.class.getPackage().getImplementationVersion();\r\n StringBuilder sv = new StringBuilder();\r\n sv.append(apiTitle).append(\" \");\r\n sv.append(apiVersion).append(\" r\");\r\n sv.append(apiRevision);\r\n LOGGER.debug(sv.toString());\r\n } else {\r\n LOGGER.debug(\"API-IMDB version/revision information not available\");\r\n }\r\n }", "@Test\n\tpublic void testVersion_1()\n\t\tthrows Exception {\n\t\tString version = \"1\";\n\n\t\tVersion result = new Version(version);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"1\", result.toString());\n\t}", "long version();", "public CachetVersion getVersion() {\n JsonNode rootNode = get(\"version\");\n CachetVersion version = CachetVersion.parseRootNode(rootNode);\n\nSystem.out.println(\"SSDEDBUG: version = \" + version.getVersion() + \" (latest=\" + version.isLatest() + \")\");\n return version;\n }", "@Test\n public void basicHTMLUnitDriverBrowserVersion(){\n\n // changed to BrowserVersion.FIREFOX_38 from BrowserVersion.FIREFOX_24\n // when upgrading to WebDriver 2.46.0\n // changed to BrowserVersion.FIREFOX_24 from BrowserVersion.FIREFOX_3_6\n // when upgrading to WebDriver 2.42.2, if you are using a version below this\n // then change it back to FIREFOX_3_6\n WebDriver htmlunit = new HtmlUnitDriver(BrowserVersion.FIREFOX_52);\n\n htmlunit.get(\"http://www.compendiumdev.co.uk/selenium/basic_html_form.html\");\n\n assertThat(htmlunit.getTitle(), is(\"HTML Form Elements\"));\n\n htmlunit.quit();\n }", "public String getServiceVersion();", "private void assertVersion(Versioned vers)\n {\n final Version v = vers.version();\n assertFalse(\"Should find version information (got \"+v+\")\", v.isUnknownVersion());\n assertEquals(PackageVersion.VERSION, v);\n }", "public String getServerVersion();", "@java.lang.Override\n public long getVersion() {\n return version_;\n }", "@Override\r\n\tpublic String getVersion() {\r\n\t\treturn \"1.0.5\";\r\n\t}", "@Override\n public void checkVersion() {\n }", "int getPaymentDetailsVersion();", "@Test\n\tpublic void testVersion_2()\n\t\tthrows Exception {\n\t\tString version = null;\n\n\t\tVersion result = new Version(version);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(null, result.toString());\n\t}", "public Integer getVer() {\n return ver;\n }", "public byte[] Bldr_version() {return bldr_version;}", "public static final String getVersion() { return version; }" ]
[ "0.68780047", "0.6828475", "0.6828475", "0.6828475", "0.6828475", "0.6828475", "0.6828475", "0.6828475", "0.6828475", "0.67743295", "0.67743295", "0.67743295", "0.67743295", "0.67637515", "0.6759349", "0.67253155", "0.6716039", "0.6716039", "0.6716039", "0.66885436", "0.66885436", "0.66885436", "0.66885436", "0.66885436", "0.66885436", "0.66885436", "0.66885436", "0.66885436", "0.66885436", "0.66885436", "0.6616682", "0.65741694", "0.65741694", "0.65741694", "0.65741694", "0.65558124", "0.6545779", "0.6530281", "0.65278745", "0.6519512", "0.648548", "0.648548", "0.648548", "0.648548", "0.645091", "0.6433881", "0.6430264", "0.642065", "0.6415215", "0.6404115", "0.6366928", "0.63490427", "0.6334366", "0.6333133", "0.63175714", "0.62893873", "0.6280472", "0.6265684", "0.6262146", "0.6256349", "0.6255506", "0.6250947", "0.6239442", "0.623216", "0.62255776", "0.6216898", "0.62056303", "0.6195937", "0.6195937", "0.61938536", "0.619198", "0.61885715", "0.6180642", "0.6176333", "0.617591", "0.61606133", "0.61589134", "0.61516666", "0.614805", "0.6140068", "0.61267924", "0.61194056", "0.6114786", "0.61141676", "0.6107645", "0.6104093", "0.6101676", "0.60777617", "0.6067299", "0.60662496", "0.6064331", "0.6063493", "0.60628617", "0.6059543", "0.60562474", "0.605551", "0.60553515", "0.6039382", "0.6037605", "0.60370207" ]
0.82838875
0
box box1 = new box(); box box2 = new box(); box1.height=1; box2.width=2; box2=box1; double STATIC =2.5; System.out.println(STATIC); System.out.println(box2.height); int[] a = new int[4]; a[1]=1; System.out.println("The size of a is before:"+a.length); System.out.println("a [1] is before:"+a[1]); a = new int[2]; System.out.println("The size of a is:"+a.length); System.out.println("a[1] is :"+a[1]);
public static void main(String args[]) { int ans= Box_sum.m(3); System.out.println("The answer is:"+ans); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){ Rectangle box1 = new Rectangle(5,4);\n// System.out.println(box1.getArea());\n// System.out.println(box1.getPerimeter());\n//// Rectangle box2 = new Square(5);\n// System.out.println(box2.getArea());\n// System.out.println(box2.getPerimeter());\n//\n Measurable box1 = new Square(5);\n System.out.println(\"Square \" + box1.getPerimeter());\n System.out.println(\"Square \" + box1.getArea());\n box1 = new Rectangle(4,5);\n System.out.println(\"Rectangle \" + box1.getPerimeter());\n System.out.println(\"Rectangle \" + box1.getArea());\n }", "public static void main(String args[]) \n {\n Rectangle r1 = new Rectangle(); \n // r2 is variabel reference lainnya \n // r2 is di inisialisasi menggunakan r1: \n // r1 dan r2 sama2 mengreferensi objek yang sama \n // maka tidak mengduplikasi objek yang sama \n // dan tidak menggunakan memori alokasi tambahan\n Rectangle r2 = r1; \n r1.length = 10; \n r2.length = 20; \n System.out.println(\"Value of R1's Length : \" + r1.length); \n System.out.println(\"Value of R2's Length : \" + r2.length); \n }", "Box(double len){\r\n Height = Width = Depth = len;\r\n\r\n }", "Box(Box ob){ //passing object to constructor\n\t\twidth = ob.width;\n\t\theight = ob.height;\n\t\tdepth = ob.depth;\n\t\t}", "public static void main (String [] args){\n \n Box b1 = new Box(); //instantiates the first box object\n b1.setHeight(4); //sets height\n b1.setWidth(4); // sets width\n b1.setLength(6); //sets length\n \n System.out.println(b1.toString()); //displays mesurements\n \n Box b2 = new Box(3, 4, 5); // instantiates a box using the constructor method\n System.out.println(b2.toString()); // displays mesurements\n \n Box b3 = new Box(5); // instatiates a cube using the single parameter constructor\n System.out.println(b3); // displays mesurements\n \n }", "Box(Box ob)\n\t{\n\t\t//pass object to constructor\n\t\twidth = ob.width;\n\t\theight = ob.height;\n\t\tdepth = ob.depth;\n\t\t\n\t\t\n\t}", "public static void main(String[]args) { \n Box box1 = new Box();\n box1.setHeight(4);\n box1.setLength(4);\n box1.setWidth(6);\n System.out.println(box1);\n/** part 12 call method */ \n Box box2 = new Box( 3, 4, 5);\n System.out.println(box2);\n/** part 16 call method */ \n Box box3 = new Box(5);\n System.out.println(box3);\n \n }", "Box(double w, double h, double d) {\n\n widgh =w;\n height =h;\n depth =d;\n\n}", "Box(){\n System.out.println(\"constructing box\");\n width = 10;\n height = 10;\n depth = 10;\n}", "public double[] getBox() { return box; }", "Box(double len)\n\t{\n\t\t\n\t\twidth = height = depth = len;\n\t\t\n\t}", "private static void demoIndependanceOfStorage() {\n\t\t//a clone of a one-dimensional array has independent storage\n\t\tint[] numbers = {1,1,1,1};\n\t\tint[] numbersClone = (int[])numbers.clone();\n\t\t//set 0th element to 0, and compare\n\t\tnumbersClone[0] = 0;\n\t\tlog(\"Altered clone has NOT affected original:\");\n\t\tlog(\"numbersClone[0]: \" + numbersClone[0]);\n\t\tlog(\"numbers[0]: \" + numbers[0]);\n\n\t\t//the clone of a multi-dimensional array does *not* have\n\t\t//independant storage\n\t\tint[][] matrix = { {1,1}, {1,1} };\n\t\tint[][] matrixClone = (int[][])matrix.clone();\n\t\t//set 0-0th element to 0, and compare\n\t\tmatrixClone[0][0] = 0;\n\t\tlog(\"Altered clone has affected original:\");\n\t\tlog(\"matrixClone element 0-0:\" + matrixClone[0][0]);\n\t\tlog(\"matrix element 0-0: \" + matrix[0][0]);\n\n\t\t//the clone of an array of objects as well is only shallow\n\t\tDate[] dates = {new Date()};\n\t\tlog(\"Original date: \" + dates[0]);\n\t\tDate[] datesClone = (Date[])dates.clone();\n\t\tdatesClone[0].setTime(0);\n\t\tlog(\"Altered clone has affected original:\");\n\t\tlog(\"datesClone[0]:\" + datesClone[0]);\n\t\tlog(\"dates[0]: \" + dates[0]);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint vol;\n\t\t\n\t\tBoxInfo myobj = new BoxInfo();\n\t\tBoxInfo myobj1 = new BoxInfo();\n\t\t\n\t\tmyobj.height = 10;\n\t\tmyobj.length = 30;\n\t\t\n\t\tmyobj1.height = 3;\n\t\tmyobj1.length = 4;\n\t\t\n\t\t\n\t\tvol = myobj.height * myobj.length;\n\t\tSystem.out.println(\"value of area is:\"+vol);\n\t\t\n\t\tvol = myobj1.height * myobj1.length;\n\t\tSystem.out.println(\"value of area is:\"+vol);\n\t\t\n\n\t}", "Box(){\r\n Height = -1; // Used -1 to initiate an uninitialized Box. \r\n Width = -1;\r\n Depth = -1;\r\n }", "public static void main(String[] args) {\n\tSession_Two obj = new Session_Two();\n\t Session_Two obj1 = new Session_Two();\n\t Session_Two obj2 = new Session_Two();\n\t \n\t \n\t System.out.println(\"========================================\");\n\t System.out.println(obj.my_var);\n\t System.out.println(obj1.my_var);\n\t System.out.println(obj2.my_var);\n\t\n\t obj2.my_var =\"New Test\";\n\n\t System.out.println(\"========================================\");\n\t System.out.println(obj.my_var);\n\t System.out.println(obj1.my_var);\n\t System.out.println(obj2.my_var);\n\t \n\t//primitive datatypes\n\t \n\t byte a = 127;\n\t long b = 1234343423424l;\n\t float x = 10.05f;\n\t double y = 213623425356566756.77588d;\n\t \n\t float c = 10f/6f;\n\t double d = 10d/6d;\n\t \n\t/* System.out.println(c);\n\t System.out.println(d);*/\n\t \n\t double i = 10d;\n\t \n\tint ab = (int)i;\n\t \t \n\t System.out.println(i);\n\t System.out.println(ab);\n\t\n\t \n\t \n}", "public static void main(String[] args){\n BoxModify box1 = new BoxModify(20.0, 10.0, 15.0);\n BoxModify box2 = new BoxModify(box1);\n BoxModify box3 = new BoxModify(6.0);\n double volume, area;\n //double volume, area; \n // Get and display volume and surface area of box1\n volume = box1.volume();\n area = box1.surfaceArea();\n System.out.println(\"Box 1 is \" + box1);\n System.out.println(\"Box 2 is \"+box2);\n System.out.println(\"Box 3 is \"+box3);\n // Get and display volume of surface area box2\n System.out.println(\"\\nThe volume of box2 is \" + box2.volume() + \" cubic cm\");\n System.out.println(\"The surface area of box2 is \"+area+\" square cm\\n\");\n }", "void alloc() {\n\t\tother = new int[symbol.length + 2];\n\t}", "@Test\n public void runTest1() {\n rope1.length = 2;\n rope2.length = 8;\n System.out.println(rope1.length);\n }", "public static void main(String[] args) \n\t{\n\t\tBox02 b=new Box02();\t//object created at runtime\n\t\tBox02 b2=new Box02();\n\t\tdouble vol;\n\t\t\n\t\tb.depth=10;\n\t\tb.height=20;\n\t\tb.width=30;\n\t\t\n\t\tvol=b.depth*b.height*b.width;\n\t\tSystem.out.println(vol);\n\t\t\n\t\tb2.depth=10.3;\n\t\tb2.height=20.5;\n\t\tb2.width=30;\n\t\t\n\t\tvol=b2.depth*b2.height*b2.width;\n\t\tSystem.out.println(vol);\n\t}", "BoxX(BoxX ob) {\n width = ob.width;\n height = ob.height;\n depth = ob.depth;\n }", "public static void main(String args[])\n\t{\n\t\t\n\t\tBox mybox1 = new Box(10,20,15);\n\t\tBox mybox2 = new Box();\n\t\tBox mycube = new Box(7);\n\t\tBox myclone = new Box(mybox1);\n\t\t\n\t\tdouble vol;\n\t\t//get volume of first box\n\t\tvol = mybox1.volume();\n\t\tSystem.out.println(\"Volume of mybox1 is \"+vol);\n\t\t//get volume of second box\n\t\tvol = mybox2.volume();\n\t\tSystem.out.println(\"Volume of mybox2 is \"+vol);\n\t\t//get volume of cube\n\t\tvol = mycube.volume();\n\t\tSystem.out.println(\"Volume of my cube is \"+vol);\n\t\tvol = myclone.volume();\n\t\tSystem.out.println(\"Volume of myclone is \"+vol);\n\t}", "Box()\n\t{\n\t\twidth = -1; //use -1 to indicate an uninitialized box\n\t\theight = -1;\n\t\tdepth = -1;\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n Integer[] mymass= new Integer[10];\n for(int i=0;i<mymass.length;i++)\n mymass[i]=i;\n System.out.println(Arrays.toString(mymass));\n replace(mymass,3,4);\n System.out.println(Arrays.toString(mymass));\n\n ArrayList<Integer> mylist =toArrayList(mymass);\n\n Apple a1=new Apple();\n Apple a2=new Apple();\n Apple a3=new Apple();\n\n Orange o1 = new Orange();\n Orange o2= new Orange();\n\n Box<Apple> box1 = new Box<Apple>();\n Box<Orange> box2 = new Box<Orange>();\n\n box1.putbox(a1);\n box1.putbox(a2);\n box1.putbox(a3);\n\n }", "public static void main(String args[]){\n\n Box mybox1 = new Box();\n Box mybox2 = new Box();\n\n double vol;\n\n // get volume of first box\n\n vol = mybox1.volume();\n System.out.println(\"Volume of box1 is \"+vol);\n\n // get volume of second box\n\n vol = mybox2.volume();\n System.out.println(\"Volume of box2 is \"+vol);\n }", "private void addSizeArray() {\n int doubleSize = this.container.length * 2;\n Object[] newArray = new Object[doubleSize];\n System.arraycopy(this.container, 0, newArray, 0, this.container.length);\n this.container = new Object[doubleSize];\n System.arraycopy(newArray, 0, this.container, 0, doubleSize);\n }", "public int getBox(){\n\t\treturn box;\n\t}", "public static void main(String[] args) {\n\t\t\tint[] a= {30,20,10};\n\t\t\t\n\t\t\tSystem.out.println(a);\n\t\t\t\n\t\t\t\n\t\t\tString arrayContents=Arrays.toString(a);\n\t\t\t\n\t\t\tSystem.out.println(arrayContents);\n\t\t\t\n\t\t\t\n\t\t\tint[][] a2= {{10,20},{30,40}};\n\n\t\t\tSystem.out.println(Arrays.deepToString(a2));\n\t\t\t\n\t\t\tArrayList al = new ArrayList();\n\t\t\t\n\t\t\tal.add(1);\n\t\t\tal.add(2);\n\t\t\t\n\t\t\tList l = Arrays.asList(1,2,3,\"dd\");\n\t\t\t\n\t\t\tSystem.out.println(l);\n\t\t\t\n\t\t\t\n\t\t\tObject[] o = {10,20,3.5f,\"dd\"};\n\t\t\t\n\t\t\t/* copying Array Elements */\n\t\t\t\n\t\t\t//int[] copy=Arrays.copyOf(a, a.length);\n\t\t\t\n\t\t\t//int[] a= {30,20,10};\n\t\t\t\n\t\t\tint[] copy=Arrays.copyOf(a, 5);\n\t\t\tint[] c=Arrays.copyOf(a, 6);\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Length of Original Array is \" + a.length);\n\t\t\tSystem.out.println(\"Length of new Array is \" + copy.length);\n\t\t\t\n\t\t\tfor(int i=0;i<copy.length;i++)\n\t\t\t{\n\t\t\t\tSystem.out.println(copy[i]);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tint[] newcopy=Arrays.copyOf(a, 2);\n\t\t\t\n\t\t\tSystem.out.println(\"Length of Original Array is \" + a.length);\n\t\t\tSystem.out.println(\"Length of new Array is \" + newcopy.length);\n\t\t\t\n\t\t\tfor(int i=0;i<newcopy.length;i++)\n\t\t\t{\n\t\t\t\tSystem.out.println(newcopy[i]);\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}", "public Box() {\t\t\t\t\n\t\tCrayon box[] = {new Crayon(10,Color.RED),new Crayon(10,Color.ORANGE),new Crayon(10,Color.YELLOW),new Crayon(10,Color.GREEN),new Crayon(10,Color.BLUE),new Crayon(10,Color.VIOLET),new Crayon(10,Color.BROWN),new Crayon(10,Color.BLACK)};\n\t\tcrayons = box;\n\t}", "public static void main(String[] args) {\n\t\tint[] a=new int[10];\n\t\tInteger a1[]= {10,20,30};\n\t\t\n\t\t\n\t\tArrayList<Integer>a2=new ArrayList<Integer>(Arrays.asList(a1));\n\tVector <Integer> aggg4=new Vector<Integer>();\n\tSystem.out.println(aggg4.capacity());\n\t\ta2.add(80);\n\t\ta2.add(90);\n\t\ta2.add(100);\n//\t\tfor(int i=0;i<a2.size();i++)\n//\t\t{\n\t\t\tSystem.out.println(a2);\n\t\t\tInteger a3[]=new Integer[a2.size()];\n\t\t\ta2.toArray(a3);\n\t\t\tfor(int i=0;i<a3.length;i++)\n\t\t\t{\n\t\t\tSystem.out.println(a3[i]);\n\t\t\t}\n\t\t\tArrayList a4=new ArrayList<Integer>();\n\t\t\ta4.add(110);\n\t\t\ta4.add(120);\n\t\t\tObject[] i=a4.toArray();\n\t\t\tfor(Object oo:i)\n\t\t\t{\n\t\t\t\tSystem.out.println(oo);\n\t\t\t}\n\t\n\t\t\t\n\t\t\t\n\t//}\n\t}", "public static void main(String [] args){\n\r\n Box box1 = new Box(10.0, 20.0, 15.0);\r\n Box box2 = new Box();\r\n Box box3 = new Box(7);\r\n\r\n double vol = box1.Volume();\r\n System.out.println(\"The Volume of box1: \"+vol);\r\n\r\n vol = box2.Volume();\r\n System.out.println(\"The Volume of box2: \"+vol);\r\n\r\n vol = box3.Volume();\r\n System.out.println(\"The Volume of Cube: \"+vol);\r\n\r\n \r\n \r\n }", "public static void main(String[] args) {\n\n Rectangle myGarden=new Rectangle(7,8);\n System.out.println(myGarden.toString());\n\n System.out.println(myGarden.getArea());\n\n Rectangle hisGarden= new Rectangle();\n hisGarden.setLenght(12);\n hisGarden.setWidths(5);\n\n hisGarden.equals(myGarden);\n\n System.out.println(myGarden.hashCode());\n\n System.out.println(Rectangle.getArea(10, 8));\n\n TriangleFactory factory = new TriangleFactory();\n Triangle fourth = TriangleFactory.create(10,1,1);\n }", "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}", "Box(double h, double w, Double d){\r\n\r\n Height = h;\r\n Width = w;\r\n Depth = d;\r\n }", "public Box( Box alteBox ) {\n\t\tsetLaenge( alteBox.getLaenge() );\n\t\tsetBreite( alteBox.getBreite() );\n\t\tsetHoehe( alteBox.getHoehe() );\n\t}", "Rectangle(){\n height = 1;\n width = 1;\n }", "@Test\n\tpublic void copy() {\n\t\tBody b1 = new Body();\n\t\tBodyFixture b1f1 = b1.addFixture(Geometry.createCircle(0.5));\n\t\t\n\t\tCollisionItemAdapter<Body, BodyFixture> c1 = this.item.copy();\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\t\n\t\tthis.item.set(b1, b1f1);\n\t\tCollisionItemAdapter<Body, BodyFixture> c2 = this.item.copy();\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t\t\n\t\t// make sure it's a deep copy\n\t\tc1.set(null, null);\n\t\tTestCase.assertNull(c1.getBody());\n\t\tTestCase.assertNull(c1.getFixture());\n\t\tTestCase.assertEquals(b1, c2.getBody());\n\t\tTestCase.assertEquals(b1f1, c2.getFixture());\n\t}", "public static void main(String args[])\n {\n Box1 mybox1 = new Box1();\n Box1 mybox2 = new Box1();\n \n double vol;\n //get volume of first box\n vol = mybox1.volume();\n System.out.println(\"Volume is \" + vol);\n \n //get volume of second box\n vol = mybox2.volume();\n System.out.println(\"Volume is \" + vol);\n }", "public static void main(String[] args) {\n Test2 t2 = new Test2(\"Supriya\");// memory\r\n Test2 t3 = new Test2(\"Supriya\");//memory\r\n \r\n \r\n //Compares the memory allocation of objects\r\n System.out.println(t2.equals(t3));\r\n System.out.println(t2.hashCode());\r\n System.out.println(t3.hashCode());\r\n \r\n\t}", "void clear()\n\t\t{\n\t\t\tsides = 0;\n\t\t\td = new Dimension[0];\n\t\t}", "public int[] getBoxes() { return boxes; }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\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}", "protected Rectangle reallocate(Shape a) {\n Rectangle alloc = a.getBounds(); // makes a fresh rectangle instance\n \n setSize(alloc.width, alloc.height); // set new size\n \n return alloc;\n }", "public void doubleSize()\r\n\t{\r\n \t\tint newSize = Stack.length * 2;\r\n\t Stack = Arrays.copyOf(Stack, newSize);\r\n\t}", "public static void main(String[] args){\n Rectangle obj1 = new Rectangle(5, 3);\n obj1.show();\n\n // passing obj1 in obj2\n Rectangle obj2 = obj1;\n obj2.show();\n }", "public static void main(String[] args) \n {\n\n int[] a;//declaring array of integer type by name 'a'\n a=new int[5];//allocating memory to array 'a' with some size \n System.out.println(a);\n\n //Declaring array literal\n int[] c={1,2,3,4,5,6,7,8,9,10};\n System.out.println(c);\n c=new int[5];\n for(int i=0;i<c.length;i++)\n System.out.println(c[i]);\n\n char d[]={'a','b','c','d','e'};\n System.out.println(d);//prints abcde\n for(int i=0;i<d.length;i++)\n System.out.print(d[i]+\" \");//prints a b c d e\n\n String st[]={\"acv\",\"hgdh\"};\n System.out.println(st);\n\n //printing all the elements of the array\n double []list={1.2,2.5,1.4,3.7,8.5};\n for(int i=0;i<list.length;i++)\n {\n System.out.print(list[i]+\" \");//prints all values of list[]\n }\n //if given this code along with above...nothing is executed..why?\n list=new double[2];\n list[0]=2;\n list[1]=3;\n System.out.println(\"length of list\"+list.length);\n // list[2]=4;//throws out of bound exception\n for(int i=0;i<list.length;i++)\n {\n System.out.print(list[i]+\" \");\n } \n\n // String st[]=new int[5];//cannot instantiate with different datatypes\n //String st[];System.out.println(st);//array have to be initialised otherwise error when you use it\n\n\n //for each loop\n int z[]=new int[]{9,8,7,6,5};\n for(int i:z)\n {\n System.out.println(i);\n }\n\n \n\n //Array of an object can be created as follows\n Practice ar[]=new Practice[5];//'practice' is user defined class\n System.out.println(ar); \n\n //Arrays index out of bound exception case\n /* int[] arr = new int[2]; \n arr[0] = 10; \n arr[1] = 20; \n \n for (int i = 0; i <= arr.length; i++) \n System.out.println(arr[i]); */\n\n //calling method to which array is passed as parameter\n printArray(list);\n\n //takes negative values in array but not size\n int k[]=new int[]{-1,-2,3,4,5};\n for(int i=0;i<k.length;i++)\n System.out.println(k[i]);\n\n //size of small array is increased implicitly\n int n[]=new int[10];\n int m[]=new int[100];\n n=m;\n System.out.println(n.length);\n m=n;\n System.out.println(m.length);\n\n int b[];\n b=new int[5];\n\n \n \n \n }", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-2146244786), (HomeTexture) null, (-2146244786), (HomeTexture) null, (-2146244786), (-2146244786));\n homeEnvironment0.setSubpartSizeUnderLight((-2146244786));\n homeEnvironment0.clone();\n assertEquals((-2.14624474E9F), homeEnvironment0.getSubpartSizeUnderLight(), 0.01F);\n }", "public void setBox(int box) {\n this.box = box;\n }", "@Override\n\tpublic Box clone()\n\t{\n\t\treturn new Box(center.clone(), xExtent, yExtent, zExtent);\n\t}", "public static void main(String[] args) {\n\n Customer customer = new Customer(\"Collin\", 54.96);\n Customer anotherCustomer;\n anotherCustomer = customer;\n anotherCustomer.setBalance(12.18);\n\n System.out.println(\"Balance for customer \"+ customer.getName()+ customer.getBalance());\n\n // customer (1st instance) takes the value of 12.18 because they point to the same\n //location in memory\n\n\n ArrayList<Integer> intList = new ArrayList<Integer>();\n intList.add(1);\n intList.add(2);\n intList.add(3);\n\n for(int i = 0; i<intList.size(); i++){\n System.out.println(i+\": \"+ intList.get(i));\n }\n\n intList.add(1,6); //index position, storing value 2\n\n System.out.println(\"_______________\");\n\n for(int i = 0; i<intList.size(); i++){\n System.out.println(i+\": \"+ intList.get(i));\n }\n\n\n }", "private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}", "Rectangle() {\r\n\t\tlength = 1.0;\r\n\t\twidth = 1.0;\r\n\t}", "private void initWithSize(int size) {\r\n this.size = size;\r\n if (size == 0) {\r\n size = 1; //Prevents memory allocation problem on GPU\r\n }\r\n\r\n normalX = new double[size];\r\n normalY = new double[size];\r\n normalZ = new double[size];\r\n\r\n vertexAX = new double[size];\r\n vertexAY = new double[size];\r\n vertexAZ = new double[size];\r\n\r\n edgeBAX = new double[size];\r\n edgeBAY = new double[size];\r\n edgeBAZ = new double[size];\r\n\r\n edgeCAX = new double[size];\r\n edgeCAY = new double[size];\r\n edgeCAZ = new double[size];\r\n\r\n centerX = new double[size];\r\n centerY = new double[size];\r\n centerZ = new double[size];\r\n\r\n area = new double[size];\r\n }", "private void doubleSize() {\n\t\tint[] arr2 = new int[2 * arr.length];\n\t\tfor (int i = 0; i < arr.length; ++i) {\n\t\t\tarr2[i] = arr[i];\n\t\t}\n\t\tarr = arr2;\n\t}", "private void aretes_aB(){\n\t\tthis.cube[22] = this.cube[12]; \n\t\tthis.cube[12] = this.cube[48];\n\t\tthis.cube[48] = this.cube[39];\n\t\tthis.cube[39] = this.cube[3];\n\t\tthis.cube[3] = this.cube[22];\n\t}", "public static void main(String[] args) {\n\t\tB a1 =new B();\n\t\ta1.i=10;\n\t\ta1.j=\"a\";\n\t\ta1.i=10.3;\n\t\tSystem.out.println(a1.i);\n\t\tSystem.out.println(a1.j);\n\t}", "public static void main(String[] args) {\n Measurable myShape; // define data type of Measureable and variable name myShape\n\n myShape = new Square(5);\n\n// System.out.println(box1.getPerimeter()); // 18\n// System.out.println(box1.getArea()); // 20\n// System.out.println(\"\");\n// System.out.println(box2.getPerimeter()); // 20\n// System.out.println(box2.getArea()); // 25\n\n System.out.println(myShape.getArea());\n System.out.println(myShape.getPerimeter());\n\n myShape = new Rectangle(5,4);\n\n System.out.println(myShape.getPerimeter());\n System.out.println(myShape.getArea());\n\n\n }", "public void method_3847(ahb var1) {\r\n super.method_3847(var1);\r\n this.field_3401 = new double[64][3];\r\n this.field_3402 = -1;\r\n class_706[] var10001 = new class_706[7];\r\n class_706 var10005 = new class_706;\r\n String[] var2 = field_3418;\r\n var10005.method_4061(this, \"head\", 6.0F, 6.0F);\r\n var10001[0] = this.field_3404 = var10005;\r\n var10005 = new class_706;\r\n var10005.method_4061(this, \"body\", 8.0F, 8.0F);\r\n var10001[1] = this.field_3405 = var10005;\r\n var10005 = new class_706;\r\n var10005.method_4061(this, \"tail\", 4.0F, 4.0F);\r\n var10001[2] = this.field_3406 = var10005;\r\n var10005 = new class_706;\r\n var10005.method_4061(this, \"tail\", 4.0F, 4.0F);\r\n var10001[3] = this.field_3407 = var10005;\r\n var10005 = new class_706;\r\n var10005.method_4061(this, \"tail\", 4.0F, 4.0F);\r\n var10001[4] = this.field_3408 = var10005;\r\n var10005 = new class_706;\r\n var10005.method_4061(this, \"wing\", 4.0F, 4.0F);\r\n var10001[5] = this.field_3409 = var10005;\r\n var10005 = new class_706;\r\n var10005.method_4061(this, \"wing\", 4.0F, 4.0F);\r\n var10001[6] = this.field_3410 = var10005;\r\n this.field_3403 = var10001;\r\n this.method_4188(this.method_405());\r\n this.method_3852(16.0F, 8.0F);\r\n this.field_3026 = true;\r\n this.field_3035 = true;\r\n this.field_3399 = 100.0D;\r\n this.field_3046 = true;\r\n }", "public MagicBox() {\n\t\tcountSort = 0;\n\t\tcountMin = 0;\n\t}", "public void addBox()\n {\n if(Student.sittingRia==false) {\n box = new BoxRia(\"chalkboard.png\",4,2);\n addObject(box,box.myRow,box.mySeat);\n chalk = new BoxRia(\"chalk.png\",0,0);\n addObject(chalk,2,3);\n }\n }", "@Test(timeout = 4000)\n public void test043() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment(29, (HomeTexture) null, 29, (HomeTexture) null, 29, 29);\n homeEnvironment0.setSubpartSizeUnderLight(29);\n homeEnvironment0.clone();\n assertEquals(29.0F, homeEnvironment0.getSubpartSizeUnderLight(), 0.01F);\n }", "public Rectangle()\n {\n length = 1;\n width = 1;\n count++;\n }", "public void setSize(int size) {\n\t\tdist = new double[size];\n\t\tprev = new Node[size];\n\t\tready = new boolean[size];\n\t}", "@Test @Graded(description=\"testAddRectangle\", marks=12)\n\tpublic void testAddRectangle() {\n\t\tRectangle r = new Rectangle(30, 5);\n\t\tlist1.add(r);\n\t\tassertEquals(5, list1.currentSize());\n\t\tassertEquals(5, list1.currentCapacity());\n\t\tassertNotNull(list1.get(0));\n\t\tassertEquals(\"10 by 5\", list1.get(0).toString());\n\t\tassertNotNull(list1.get(1));\n\t\tassertEquals(\"70 by 10\", list1.get(1).toString());\n\t\tassertNotNull(list1.get(2));\n\t\tassertEquals(\"20 by 20\", list1.get(2).toString());\n\t\tassertNotNull(list1.get(3));\n\t\tassertEquals(\"90 by 50\", list1.get(3).toString());\n\t\tassertNotNull(list1.get(4));\n\t\tassertEquals(\"30 by 5\", list1.get(4).toString());\n\n\t\tr.width = (1);\n\t\t// we wanted to add an instance copy of the object\n\t\tassertEquals(\"30 by 5\", list1.get(4).toString());\n\n\t\t// adding 6th item should have \"grown\" the list\n\t\tr = new Rectangle(100);\n\n\t\t// add test will pass after you correctly implement grow()\n\t\tlist1.add(r);\n\t\tassertEquals(6, list1.currentSize());\n\t\tassertEquals(15, list1.currentCapacity());\n\t\tassertNotNull(list1.get(0));\n\t\tassertEquals(\"10 by 5\", list1.get(0).toString());\n\t\tassertNotNull(list1.get(1));\n\t\tassertEquals(\"70 by 10\", list1.get(1).toString());\n\t\tassertNotNull(list1.get(2));\n\t\tassertEquals(\"20 by 20\", list1.get(2).toString());\n\t\tassertNotNull(list1.get(3));\n\t\tassertEquals(\"90 by 50\", list1.get(3).toString());\n\t\tassertNotNull(list1.get(4));\n\t\tassertEquals(\"30 by 5\", list1.get(4).toString());\n\t\tassertNotNull(list1.get(5));\n\t\tassertEquals(\"100 by 100\", list1.get(5).toString());\n\n\t\tr.width = (888);\n\t\t// we wanted to add an instance copy of the object\n\t\tassertEquals(\"100 by 100\", list1.get(5).toString());\n\t\tcurrentMethodName = new Throwable().getStackTrace()[0].getMethodName();\n\n\t}", "@Test\n public void getSize() {\n // Testing for Shape Rectangle that mutates its Size and see the size matches.\n assertEquals(defaultSize1, defaultShape1.getSize());\n Size newRectangleSize = new Size(50, 50);\n defaultShape1 = new Rectangle(defaultColor1, defaultPosition1, newRectangleSize);\n assertEquals(newRectangleSize, defaultShape1.getSize());\n assertNotEquals(defaultSize1, defaultShape1.getSize());\n // Testing for OvalShape that mutates and see it matches.\n assertEquals(defaultSize2, defaultShape2.getSize());\n Size newOvalSize = new Size(15, 15);\n defaultShape2 = new Oval(defaultColor2, defaultPosition2, newOvalSize);\n assertEquals(newOvalSize, defaultShape2.getSize());\n assertNotEquals(defaultSize2, defaultShape2.getSize());\n }", "public Box() {\n \tsuper();\n \tthis.max = new Point3d( 1, 1, 1 );\n \tthis.min = new Point3d( -1, -1, -1 );\n }", "public ResizingArray() {\r\n super();\r\n this.aObjects = new Object[ResizingArray.DEFAULT_SIZE];\r\n this.aFreeElements = new int[ResizingArray.DEFAULT_SIZE];\r\n }", "public static void main(String[] args) {\n Rectangle rectangle1 = new Rectangle(4,40);\n print(rectangle1);\n \n // Create a rectangle with height set to 35.9 and width set to 3.5\n Rectangle rectangle2 = new Rectangle(3.5,35.9);\n print(rectangle2);\n\n }", "public static void main(String[] args) {\n Circle circle1 = new Circle(1);\n System.out.println(circle1.toString());\n circle1.printCircle();\n System.out.println(circle1.getArea() + \" \" + circle1.getPerimeter() );\n\n System.out.println();\n System.out.println();\n\n Rectangle rec1 = new Rectangle(2,2);\n System.out.println(rec1.toString());\n System.out.println(rec1.getHeight() + \" \" + rec1.getWidth());\n System.out.println(rec1.getPerimeter() + \" \" + rec1.getArea());\n\n\n\n\n }", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public static void main(String[] args) {\n\t\tBox box1 = new Box(10.323, 21.32, 9);\r\n\t\tBox box2 = new Box();\r\n\t\t\r\n\t\tbox2.setHeight(12.5);\r\n\t\tbox2.setWidht(10.4);\r\n\t\tbox2.setDepth(4);\r\n\t\t\r\n\t\tSystem.out.println(\"Box 1 \"+box1);\r\n\t\tSystem.out.println(\"Box 2 \"+box2);\r\n\t\t\r\n\t\tbox1.getVolume();\r\n\t\tbox2.getVolume();\r\n\t\t\r\n\t\tBox box3 = new Box();\r\n\t\tbox3.volume(box2);\r\n\t\t\r\n\t}", "void addBoxObject() {\n\t\tint boxObjectX = random.nextInt(ScreenManager.getWindowWidth());\n\t\tint boxObjectY = random.nextInt(ScreenManager.getWindowHeight());\n\t\tint boxObjectWidth = ScreenManager.getSizeFromPercentageOfWindowY((float) 24);\n\t\tint boxObjectHeight = ScreenManager.getSizeFromPercentageOfWindowY(18);\n\t\tint boxObjectHitsToDestroy = random.nextInt(9)+1;\n\t\t\n\t\tboxObjects.add(new BoxObject(boxObjectX, boxObjectY, boxObjectWidth, boxObjectHeight, boxObjectHitsToDestroy, true));\n\t}", "public static void main(String[] args) {\n Siswa s1 = new Siswa();\n //mengakses property (variable/\"punya apa?\")\n s1.nama = \"Amir\";\n s1.NIS = \"09876\";\n s1.nilai = 89.5f;\n\n System.out.println(\"Nama\\t: \"+s1.nama);\n System.out.println(\"NIS\\t: \"+s1.NIS);\n System.out.println(\"Nilai\\t: \"+s1.nilai);\n\n Siswa s2 = new Siswa();\n System.out.println(\"Nama s2\\t: \"+s2.nama);\n s2.nama=\"Wati\";\n System.out.println(\"Nama s2\\t: \"+s2.nama);\n\n Siswa s3 = s2;\n System.out.println(\"Nama s3\\t: \"+s3.nama);\n s3.nama = \"Ina\";\n System.out.println(\"Nama s2\\t: \"+s2.nama);\n\n //cloning\n Siswa s4 = new Siswa();\n s4.nama = s2.nama;\n\n float nilai_s1 = s1.cekNilai();\n System.out.println(\"Nilai s1:\"+nilai_s1);\n System.out.println(\"Nilai s2:\"+s2.cekNilai());\n System.out.println(\"Nilai s3:\"+s3.cekNilai());\n }", "private void increaseSize() {\r\n\t\tE[] biggerE = (E[]) new Object[this.capacity * 2];\r\n\t\tdouble[] biggerC = new double[this.capacity * 2];\r\n\t\tfor (int i = 0; i < this.size; i++) {\r\n\t\t\tbiggerE[i] = this.objectHeap[i];\r\n\t\t\tbiggerC[i] = this.costHeap[i];\r\n\t\t}\r\n\t\tthis.costHeap = biggerC;\r\n\t\tthis.objectHeap = biggerE;\r\n\t\tthis.capacity = this.capacity * 2;\r\n\t}", "Rectangle(double newWidth, double newHeight){\n height = newHeight;\n width = newWidth;\n }", "public void testCloning() {\n StandardXYBarPainter p1 = new StandardXYBarPainter();\n }", "public static void main(String[] args) {\n\r\n\tTv tv1 = new Tv();\r\n\tSystem.out.println(tv1.color);\r\n\tSystem.out.println(tv1.modelNumber);\r\n\tSystem.out.println(tv1.modelName);\r\n\tSystem.out.println(tv1.power);\r\n\tSystem.out.println(tv1.channel);//이것들에 이어 d시라누까지....!System.out.println(tv1.color);}\r\n\r\n\tTv tv2 = new Tv();\r\n\t\r\n\ttv2.color=\"skyblue\";\r\n\ttv2.modelNumber=\"skyblue\";\r\n\r\n\ttv2.info();\r\n\t//졸려....\r\n\r\n\tTv tv3 = new Tv();\r\n\tTv tv4 = new Tv();\r\n\ttv3 = tv4;\r\n\t\r\n\t\r\n\tSystem.out.println(\"tv3.channel : \" + tv3.channel );\r\n//nhew기ㅏ 구권ㄷ.args.clone().clone().clone().clone().clone().clone().clone().clone()\r\n\tSystem.out.println(\"tv4.channel : \" + tv4.channel);\r\n\t\r\n\r\n\t}", "TwoDShape5(double x) {\n width = height = x;\n }", "void setBox();", "public Box(Vector<?> Box) {\n\t\tsetX1((Double) Box.toArray()[0]);\n\t\tsetY1((Double) Box.toArray()[1]);\n\t\tsetX2((Double) Box.toArray()[2]);\n\t\tsetY2((Double) Box.toArray()[3]);\n\t}", "private Box(String[] arr) {\r\n name = arr[0];\r\n height = Integer.parseInt(arr[1]);\r\n width = Integer.parseInt(arr[2]);\r\n depth = Integer.parseInt(arr[3]);\r\n weight = Integer.parseInt(arr[4]);\r\n }", "@SuppressWarnings(\"unchecked\")\n private void upSize()\n {\n T[] newArray = (T[]) new Object [theArray.length * 2];\n for (int i =0; i < theArray.length; i++){\n newArray[i] = theArray[i];\n }\n theArray = newArray;\n }", "public void reallocate()\r\n\t{\r\n\t\tE[] newArray = (E[]) new Object[capacity * 2];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tnewArray[i] = innerArray[(front + i) % capacity];\r\n\t\t\tSystem.out.println((front + i) % capacity);\r\n\t\t}\r\n\t\tfront = 0;\r\n\t\trear = this.size() - 1;\r\n\t\tcapacity = capacity * 2;\r\n\t\tinnerArray = newArray;\r\n\t}", "public static void main(String[] args) {\n\t\tVector v1=new Vector(2,8);\n\t\tSystem.out.println(v1.capacity());\n\t\tv1.add(10);\n\t\tv1.add(20);\nv1.add(30);\n\tv1.add(40);\n\tv1.add(50);\n\tv1.add(60);\n\tv1.add(70);\n\tv1.add(80);\n\tv1.add(90);\n\t\tv1.add(10);\n\t\tv1.add(11);\n\t\tArrayList a1=new ArrayList(v1);\n\t\ta1.add(200);\n\t\tSystem.out.println(a1);\n\t\n\n\n\t}", "@Test\n\tpublic void test2() {\n\t\tSystem.out.println(\"--------------\");\n\t\t//Arrays.copyOf(T[] original, int newLength) 的底层实现与ArrayUtil.copyArr(T[] original, int newLength)实现是一样的\n\t\tInteger[] newIntArr2 = Arrays.copyOf(intArr, 3);\n\t\tInteger[] newIntArr3 = Arrays.copyOf(intArr, 8);\n\t\tSystem.out.println(Arrays.toString(intArr));\n\t\tSystem.out.println(Arrays.toString(newIntArr2));\n\t\tSystem.out.println(Arrays.toString(newIntArr3));\n\t}", "public void reset(){\n\n boxPositions = new HashMap<>();\n boxWeights = new ArrayList<Stack<Box>>();\n for(int i = 0; i < 16; i++) {\n boxPositions.put(i*40, i);\n }\n for ( int i = 0; i < 16; i++){\n boxWeights.add( new Stack< Box >());\n }\n boxGen = new BoxGenerator();\n\n timeCounter = 100;\n mc.resetLazarusPosition();\n\n }", "public static void main(String[] args) {\n\t\tCar a=new Car();\r\n\t\tCar b=new Car();\r\n\t\tCar c=new Car();\r\n\t\ta.mod=2015;\r\n\t\ta.wheel=4;\r\n\t\tb.mod=2020;\r\n\t\tb.wheel=6;\r\n\t\tc.mod=2568;\r\n\t\tc.wheel=8;\r\n\t\t\r\n\t\tSystem.out.println(\"Before assigning the references\");\r\n\t\tSystem.out.println(a.mod);\r\n\t\tSystem.out.println(a.wheel);\r\n\t\t\r\n\t\tSystem.out.println(b.mod);\r\n\t\tSystem.out.println(b.wheel);\r\n\t\t\r\n\t\tSystem.out.println(c.mod);\r\n\t\tSystem.out.println(c.wheel);\r\n\t\t\r\n\t\tSystem.out.println(\"After shifting the references\");\r\n\t\ta=b;\r\n\t\tb=c;\r\n\t\tc=a;\r\n\t\ta.mod=10;\r\n\t\tSystem.out.println(a.mod);//10\r\n\t\tc.mod=20;\r\n\t\tSystem.out.println(a.mod);//20\r\n\t\tSystem.out.println(c.mod);\r\n\t\t\r\n\t}", "static void set() {\n\t\tArrayList<Integer> arr1=new ArrayList<>();\n\t\tfor(int i=0;i<10;i++) arr1.add(i);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t\tSystem.out.println();\n\t\tarr1.set(3, 100);\n\t\tfor(int x:arr1) System.out.print(x+\" \");\n\t}", "public static void main(String[] args) {\n\t\tCar a=new Car(); //object creation , here a:object reference variables\n\t\tCar b =new Car();\n\t\tCar c=new Car();\n\t\t\n\t\ta.mod=2015;\n\t\ta.wheel=4;\n\t\t\n\t\tb.mod=2014;\n\t\tb.wheel=4;\n\t\t\n\t\tc.mod=2013;\n\t\tc.wheel=4;\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(a.mod);\n\tSystem.out.println(b.wheel);\n\t//shifting of object refrences\n\ta=b;\n\tb=c;\n\tc=a;\n\t\t\ta.mod=10;\n\t\t\tSystem.out.println(a.mod);\n\t\t\tc.mod=20;\n\t\t\tSystem.out.println(a.mod);\n\t}", "public static void main(String[] args) {\n Box b1 = new Box(\"Red\", 4);\n Box b2 = new Box(\"Green\", 5);\n\n // Use methods\n System.out.println(\"B1: \" + b1.getColor());\n System.out.println(\"B2: \" + b2.getColor());\n // change the color of b2\n b2.setColor(b1.getColor()); // Set b2's color to that of b1\n System.out.println(\"B2 new color: \" + b1.getColor());\n\n// String myString = \"Zoom is used today!\";\n// System.out.println(\"2 parameters: \" + myString.substring(8,18));\n// System.out.println(\"1 parameter: \" + myString.substring(5));\n\n\n }", "ScoreBoard(String name, int size) {\n this.boardname = name;\n this.size = size;\n this.numOfStudents = 0;\n this.board = new Student[size];\n //int a = 3;\n //int[] b = new int[3];\n }", "void assignSize (int size) {\n array = new int[size];\n }", "public\n\tVector3( Vector3 other )\n\t{\n\t\tdata = new double[3];\n\t\tcopy( other );\n\t}", "private void resizeBs() {\n int newSize = (buildingXs.length * 2);\n int[] newXs = new int[newSize];\n int[] newYs = new int[newSize];\n int[] newEnt = new int[newSize];\n int[] newFloors = new int[newSize];\n int[] newTypes = new int[newSize];\n int[][][] newApi = new int[newSize][][];\n System.arraycopy(buildingXs, 0, newXs, 0, buildingCount);\n System.arraycopy(buildingYs, 0, newYs, 0, buildingCount);\n System.arraycopy(buildingEntrances, 0, newEnt, 0, buildingCount);\n System.arraycopy(buildingFloors, 0, newFloors, 0, buildingCount);\n System.arraycopy(buildingTypes, 0, newTypes, 0, buildingCount);\n for (int i = 0; i < buildingCount; i++)\n newApi[i] = buildingApi[i];\n\n buildingXs = newXs;\n buildingYs = newYs;\n buildingEntrances = newEnt;\n buildingFloors = newFloors;\n buildingTypes = newTypes;\n buildingApi = newApi;\n }", "private void doubleArray()\n\t{\n\t\tT[] oldList = list;\n\t\tint oldSize = oldList.length;\n\t\t\n\t\tlist = (T[]) new Object[2 * oldSize];\n\t\t\n\t\t// copy entries from old array to new, bigger array\n\t\tfor (int index = 0; index < oldSize; index++)\n\t\t\tlist[index] = oldList[index];\n\t}", "public Size(Size toDuplicate)\r\n {\r\n assert(true);\r\n \tamount = toDuplicate.amount;\r\n type = toDuplicate.type;\r\n }", "public Box(int x, int y) {\r\n\t\tsuper(x,y);\r\n\t\tloadImage(\"box.png\");\r\n\t\tgetImageDimensions();\r\n\t}", "TwoDShape5() {\n width = height = 0.0;\n }", "public Box[][] getBoxes() {\n \treturn boxes;\n }", "private void aretes_aO(){\n\t\tthis.cube[40] = this.cube[7]; \n\t\tthis.cube[7] = this.cube[25];\n\t\tthis.cube[25] = this.cube[46];\n\t\tthis.cube[46] = this.cube[34];\n\t\tthis.cube[34] = this.cube[40];\n\t}", "BigONotation(int size) {\n\t\tarraySize = size;\n\t\ttheArray = new int[size];\n\t}" ]
[ "0.66978586", "0.65387636", "0.62143683", "0.617072", "0.6153943", "0.6062785", "0.60178524", "0.59776896", "0.5897277", "0.58122236", "0.57643265", "0.57061565", "0.5666228", "0.5645065", "0.55959857", "0.554457", "0.5496646", "0.5441777", "0.53566104", "0.5347603", "0.5320719", "0.5276908", "0.52720565", "0.52682585", "0.52589595", "0.5225624", "0.5210828", "0.5199042", "0.51924545", "0.51887566", "0.5151792", "0.51476395", "0.5146478", "0.5146084", "0.5140185", "0.5135775", "0.5130635", "0.5129692", "0.5127026", "0.512515", "0.51151735", "0.51096207", "0.50819606", "0.50796896", "0.507333", "0.5072504", "0.5064638", "0.50637364", "0.50576633", "0.5057486", "0.5055698", "0.5036326", "0.50349486", "0.50287133", "0.5028281", "0.5021183", "0.5017823", "0.5015181", "0.50031", "0.50022215", "0.50013375", "0.49954084", "0.49865395", "0.498631", "0.49826694", "0.49819136", "0.49779537", "0.49738398", "0.49708405", "0.49636817", "0.49600187", "0.4957234", "0.4945918", "0.49426115", "0.4940497", "0.49404356", "0.49383086", "0.49359578", "0.49306965", "0.49166617", "0.49101993", "0.49100944", "0.4910005", "0.49005267", "0.4892385", "0.48830473", "0.48720244", "0.4868251", "0.4865626", "0.48625067", "0.4861121", "0.48610705", "0.48520848", "0.48507097", "0.48486292", "0.48445755", "0.48422122", "0.4836478", "0.48337805", "0.48331448", "0.4831255" ]
0.0
-1
the collection of ride lines Constructor for objects of class MyWorld.
public MyWorld() { // Create a new world with 800x600 cells with a cell size of 1x1 pixels. super(800, 600, 1); //could have as many RideLines as capasity dictates rides = new RideLines[MAX_RIDES]; currentRide=0; //initially, we have 0 prisoners //Create a Load button at the top of the screen load = new LoadButton(); addObject(load, 250, 20); //Create a Merge button at the top of the screen MergeButton merge = new MergeButton(); addObject(merge, 350, 20); //Create a Sort By Name button at the top of the screen SortByName sortName = new SortByName(); addObject(sortName, 450, 20); //Create a Sort by queue length at the top of the screen SortByLength sortLength = new SortByLength(); addObject(sortLength, 600, 20); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Lines()\r\n\t{\r\n\t\tlines = new LinkedList<Line>();\r\n\t}", "public LinesDimension1() {\n \n }", "public Board(String lineMap) {\n objectsOnTheBoard = new LinkedList<GameObject>();\n }", "public CrnLineContainer() {\n }", "public Line(){\n\t\t\n\t}", "public CartLines() {\n }", "private ListStore<Line> createLines() {\n\t\tStyleInjectorHelper.ensureInjected(CommonGanttResources.resources.css(), true);\n\n\t\tLineProperties lineProps = GWT.create(LineProperties.class);\n\t\tListStore<Line> store = new ListStore<Line>(lineProps.key());\n\t\tString customCssStyle = CommonGanttResources.resources.css().todayLineMain();\n\t\tLine line = new Line(new Date(), \"Текушая дата :\" + new Date().toString(), customCssStyle);\n\t\tstore.add(line);\n\t\treturn store;\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n drawLines();\n \n for( int r = 0; r < board.length; r++ )\n {\n for( int c = 0; c < board[r].length; c++)\n {\n board[r][c] = \"\"; \n \n }\n }\n }", "public RVO_2_1() {\n super();\n orcaLines = new ArrayList<Line>();\n }", "private Polyline initializePolyLine() {\n rectOptions.add(markers.get(0).getPosition());\n return googleMap.addPolyline(rectOptions);\n }", "private Polyline initializePolyLine() {\n\t\trectOptions.add(latLngs.get(0));\n\t\treturn googleMap.addPolyline(rectOptions);\n\t}", "public void makeLine() {\n \t\tList<Pellet> last_two = new LinkedList<Pellet>();\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 2));\n \t\tlast_two.add(current_cycle.get(current_cycle.size() - 1));\n \n \t\tPrimitive line = new Primitive(GL_LINES, last_two);\n \t\tMain.geometry.add(line);\n \n \t\tActionTracker.newPolygonLine(line);\n \t}", "@Override\n public Line[] getLines(){\n Line[] arrayOfLines = new Line[]{topLine, rightLine, bottomLine, leftLine}; //stores the array of lines that form the rectangle\n return arrayOfLines;\n }", "public LineInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public BSPLine() {\n super();\n }", "public RubberLinesPanel()\n\t{\n\t\tLineListener listener = new LineListener();\n\t\tpoints = new HashMap<Point, Point>();\n\t\taddMouseListener(listener);\n\t\taddMouseMotionListener(listener);\n\t\tsetBackground(Color.black);\n\t\tsetPreferredSize(new Dimension(400, 200));\n\t}", "public List<Polyline> getAllLines() {\n return lines;\n }", "public MyWorld()\n { \n // Create a new world with 1600x1200 cells with a cell size of 1x1 pixels.\n super(1125, 1125, 1);\n //Adds the Cornucopia to the center of the Arena.\n int centerX = this.getWidth()/2;\n int centerY = this.getHeight()/2;\n this.addObject(new Cornucopia(), centerX, centerY);\n \n //The following adds the main character for the game.\n int CharacterX = 1125/2;\n int CharacterY = 770;\n this.addObject(new Character(), CharacterX, CharacterY);\n \n //The following code adds 6 \"Careers\" into the arena.\n int CareerX = 405;\n int CareerY = 328;\n this.addObject(new Careers(), CareerX, CareerY);\n this.addObject(new Careers(), CareerX+310, CareerY-5);\n this.addObject(new Careers(), CareerX+90, CareerY+430);\n this.addObject(new Careers(), CareerX+290, CareerY+405);\n this.addObject(new Careers(), CareerX+190, CareerY-60);\n \n //The following code add the remaining 17 Tributes to the arena.\n //Also, I cannot add like a normal person so there will only be twenty-three tributes. The Capitol goofed this year.\n int TribX = 660;\n int TribY = 288;\n this.addObject(new Tributes(), TribX, TribY);\n this.addObject(new Tributes(), TribX-200, TribY);\n this.addObject(new Tributes(), TribX-227, TribY+443);\n this.addObject(new Tributes(), TribX-280, TribY+400);\n this.addObject(new Tributes(), TribX-34, TribY+467);\n this.addObject(new Tributes(), TribX+86, TribY+397);\n this.addObject(new Tributes(), TribX-134, TribY-22);\n this.addObject(new Tributes(), TribX+103, TribY+82);\n this.addObject(new Tributes(), TribX+139, TribY+144);\n this.addObject(new Tributes(), TribX+150, TribY+210);\n this.addObject(new Tributes(), TribX+150, TribY+280);\n this.addObject(new Tributes(), TribX+120, TribY+342);\n this.addObject(new Tributes(), TribX-338, TribY+275);\n this.addObject(new Tributes(), TribX-319, TribY+343);\n this.addObject(new Tributes(), TribX-343, TribY+210);\n this.addObject(new Tributes(), TribX-330, TribY+150);\n this.addObject(new Tributes(), TribX-305, TribY+80);\n \n //The following code should add the forest onto the map.\n int ForX = this.getWidth()/2;\n int ForY = 900;\n this.addObject(new Forest(), ForX, ForY);\n \n //The following code should add the lake to the map.\n int LakX = 790;\n int LakY = 990;\n this.addObject(new Lake(), LakX, LakY);\n \n //The following should add the cave to the map.\n int CavX = 125;\n int CavY = 110;\n this.addObject(new Cave(), CavX, CavY);\n \n \n int actorCount = getObjects(Tributes.class).size();\n if(actorCount == 17) {\n int BeastX = 200;\n int BeastY = 200;\n this.addObject(new Beasts(), BeastX, BeastY);\n this.addObject(new Beasts(), BeastX+100, BeastY+100);\n }\n }", "public TrazoLibre() {\n this.linea = new ArrayList();\n }", "public Line() {\r\n this.line = new ArrayList < Point > ();\r\n this.clickedPoint = null;\r\n this.direction = null;\r\n }", "private Line[] makeTenRandomLines() {\n Random rand = new Random(); // create a random-number generator\n Line[] lines = new Line[NUM_LINE];\n for (int i = 0; i < NUM_LINE; ++i) {\n int x1 = rand.nextInt(400) + 1; // get integer in range 1-400\n int y1 = rand.nextInt(300) + 1; // get integer in range 1-300\n int x2 = rand.nextInt(400) + 1; // get integer in range 1-400\n int y2 = rand.nextInt(300) + 1; // get integer in range 1-300\n lines[i] = new Line(x1, y1, x2, y2);\n }\n return lines;\n }", "private void defineLinePoints(int x1, int y1,int x2,int y2){\n Line line1 = new Line(x1, y1, x2, y2);\n for(int i = 0; i < line1.points.size(); i++){\n super.points.add(line1.points.get(i));\n }\n }", "private List<List<positionTicTacToe>> initializeWinningLines()\n\t{\n\t\tList<List<positionTicTacToe>> winningLines = new ArrayList<List<positionTicTacToe>>();\n\t\t\n\t\t//48 straight winning lines\n\t\t//z axis winning lines\n\t\tfor(int i = 0; i<4; i++)\n\t\t\tfor(int j = 0; j<4;j++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,0,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,3,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//y axis winning lines\n\t\tfor(int i = 0; i<4; i++)\n\t\t\tfor(int j = 0; j<4;j++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,0,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,1,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,2,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,3,j,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//x axis winning lines\n\t\tfor(int i = 0; i<4; i++)\n\t\t\tfor(int j = 0; j<4;j++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,i,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,i,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,i,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,i,j,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t\n\t\t//12 main diagonal winning lines\n\t\t//xz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,i,0,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,i,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,i,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,i,3,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//yz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,0,0,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,1,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,2,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,3,3,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//xy plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,0,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,1,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,2,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,3,i,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t\n\t\t//12 anti diagonal winning lines\n\t\t//xz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,i,3,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,i,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,i,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,i,0,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//yz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,0,3,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,1,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,2,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,3,0,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//xy plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,3,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,2,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,1,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,0,i,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t\n\t\t//4 additional diagonal winning lines\n\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(0,0,0,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,1,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,2,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(3,3,3,-1));\n\t\twinningLines.add(oneWinCondtion);\n\t\t\n\t\toneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(0,0,3,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,1,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,2,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(3,3,0,-1));\n\t\twinningLines.add(oneWinCondtion);\n\t\t\n\t\toneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(3,0,0,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,1,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,2,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(0,3,3,-1));\n\t\twinningLines.add(oneWinCondtion);\n\t\t\n\t\toneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(0,3,0,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,2,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,1,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(3,0,3,-1));\n\t\twinningLines.add(oneWinCondtion);\t\n\t\t\n\t\treturn winningLines;\n\t\t\n\t}", "public CustMnjOntSoObinSizline_LineEOImpl() {\n }", "public OMAbstractLine() {\n super();\n }", "public MyWorld()\n { \n // Create a new world with 600x550 cells with a cell size of 1x1 pixels.\n super(600, 550, 1);\n // Set the order in which Actors are drawn on the screen in this World\n setPaintOrder ( Counter.class, HighScore.class, Fader.class);\n // Counter\n counter = new Counter (\"Score: \");\n addObject (counter, 50, 30);\n // Initialize the player\n player = new Player ();\n addObject (player, 300, 530); \n platforms = new Platform[10]; \n startingPlatform = new Platform();\n addObject (startingPlatform, 300, 550);\n // Loop through as many Meteors as there are on this level\n for (int i = 0; i < platforms.length; i++)\n {\n // Initialize a new Platform object for each spot in the array\n platforms[i] = new Platform ();\n // Add each platform at a random position anywhere on the X axis and at intervals of 15 on the Y axis\n addObject (platforms[i], Greenfoot.getRandomNumber(600), platformCounter);\n platformCounter = platformCounter - 55;\n }\n }", "public FileLines() {\r\n\t}", "public OrderLine() {\n }", "public GLineGroup() {\n\t\t// empty\n\t}", "private void redrawLines()\n {\n for(int i =0; i<currentRide;i++)\n {\n rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines\n \n }\n }", "public Polygon getLine() {\n float[] vertices;\n if (modo == 1) {\n\n vertices = new float[]{\n getX(), getY(),\n getX() + (getWidth()*0.2f), getY() + getHeight()-getHeight()*0.2f,\n getX() + getWidth(), getY() + getHeight()};\n } else if (modo == 2) {\n\n vertices = new float[]{\n getX() + getWidth()- getWidth()*0.2f , getY() + getHeight() - getHeight()*0.2f,\n getX() + getWidth(), getY(),\n getX() , getY() + getHeight(),\n\n };\n\n } else if (modo == 3) {\n vertices = new float[]{\n getX(), getY(),\n getX() + getWidth() *0.8f, getY() + getHeight() *0.2f,\n getX() + getWidth(), getY() + getHeight()\n };\n } else {\n vertices = new float[]{\n getX(), getY() + getHeight(),\n getX() + getWidth()*0.2f, getY() + getHeight()*0.2f,\n getX() + getWidth(), getY()\n };\n }\n\n polygon.setVertices(vertices);\n return polygon;\n }", "private void Create_Path() {\n lines = new Line[getPoints().size()];\n for (int i = 1; i < getLines().length; i++) {\n lines[i] = new Line(getPoints().get(way[i]).getX(), getPoints().get(way[i]).getY(), getPoints().get(way[i - 1]).getX(), getPoints().get(way[i - 1]).getY());\n }\n lines[0] = new Line(getPoints().get(way[getLines().length - 1]).getX(), getPoints().get(way[getLines().length - 1]).getY(), getPoints().get(way[0]).getX(), getPoints().get(way[0]).getY());\n\n }", "public DerivationLine()\n {\n super();\n this.clauses = new ArrayList<>();\n }", "private void createRenderables()\n {\n this.gridElements = new ArrayList<GridElement>();\n\n ArrayList<Position> positions = new ArrayList<Position>();\n double step = sector.getDeltaLatDegrees() / this.divisions;\n\n // Generate meridians with labels\n double lon = sector.getMinLongitude().degrees + (this.level == 0 ? 0 : step);\n while (lon < sector.getMaxLongitude().degrees - step / 2)\n {\n Angle longitude = Angle.fromDegrees(lon);\n // Meridian\n positions.clear();\n positions.add(new Position(this.sector.getMinLatitude(), longitude, 0));\n positions.add(new Position(this.sector.getMaxLatitude(), longitude, 0));\n\n Object polyline = createLineRenderable(positions, Polyline.LINEAR);\n Sector sector = Sector.fromDegrees(\n this.sector.getMinLatitude().degrees, this.sector.getMaxLatitude().degrees, lon, lon);\n String lineType = lon == this.sector.getMinLongitude().degrees ?\n GridElement.TYPE_LINE_WEST : GridElement.TYPE_LINE;\n GridElement ge = new GridElement(sector, polyline, lineType);\n ge.value = lon;\n this.gridElements.add(ge);\n\n // Increase longitude\n lon += step;\n }\n\n // Generate parallels\n double lat = this.sector.getMinLatitude().degrees + (this.level == 0 ? 0 : step);\n while (lat < this.sector.getMaxLatitude().degrees - step / 2)\n {\n Angle latitude = Angle.fromDegrees(lat);\n positions.clear();\n positions.add(new Position(latitude, this.sector.getMinLongitude(), 0));\n positions.add(new Position(latitude, this.sector.getMaxLongitude(), 0));\n \n Object polyline = createLineRenderable(positions, Polyline.LINEAR);\n Sector sector = Sector.fromDegrees(\n lat, lat, this.sector.getMinLongitude().degrees, this.sector.getMaxLongitude().degrees);\n String lineType = lat == this.sector.getMinLatitude().degrees ?\n GridElement.TYPE_LINE_SOUTH : GridElement.TYPE_LINE;\n GridElement ge = new GridElement(sector, polyline, lineType);\n ge.value = lat;\n this.gridElements.add(ge);\n\n // Increase latitude\n lat += step;\n }\n }", "public LineData() {\n\t\t\tallPoints = new ArrayList<>(SIZE_OF_ORIGINAL_LIST);\n\t\t}", "public GeoLine( GeoPoint start, GeoPoint end ){\n this(start,DEFAULT_COLOR,end);\n }", "public AbstractLocalisationLineaire() {\r\n\t\t\r\n\t\tthis(null, null, null, null, null, null, null);\r\n\t\t\t\t\r\n\t}", "public LineData()\n\t{\n\t}", "public Grid() {\n minorLinesPath = new Path2D.Double();\n majorLinesPath = new Path2D.Double();\n\n minorLinePositions = new double[2][];\n majorLinePositions = new double[2][];\n\n minorLinePositionsScreen = new int[2][];\n majorLinePositionsScreen = new int[2][];\n\n listeners = new LinkedList<>();\n\n stroke = new BasicStroke();\n }", "public void removeAllLines()\n {\n // get list of all ride lines and remove each\n removeObjects(getObjects(RideLines.class)); //remove RideLines\n removeObjects(getObjects(AddButton.class));//remove AddButton\n removeObjects(getObjects(ReleaseButton.class));//remove ReleaseButton\n removeObjects(getObjects(Person.class));//remove Person\n currentRide=0; // reset actual rides at zero\n }", "List<Line> getLines();", "public World(double width, double height) {\n this.width = width;\n this.height = height;\n\n\n shapes = new Shape[3]; // an array of references (change to non-zero size)\n // Create the actual Shape objects (sub types)\n // ....\n\n shapes[0] = new Line(50,100,50,50, Color.BLUE);\n shapes[1] = new Circle(75,75,30,Color.BLACK);\n shapes[2] = new Rectangle(40,50,40,40,Color.GREEN);\n\n\n }", "public OpenPolyLine(List<Point> points) \n\t{\n\t\tsuper(points);\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 600, 1);\n planets();\n stars();\n }", "public RailRoad() {}", "public MyWorld()\n { \n super(1200, 600, 1); \n prepare();\n bienvenida();\n instrucciones();\n sonido();\n }", "public ArrayList<Circle> getLineVehicles()\r\n {\r\n return this.all_line_vehicles;\r\n }", "Line createLine();", "private LineSymbolizer() {\n // Thread-local factory will be used.\n }", "public static Line CreateLine(String id) { return new MyLine(id); }", "public Cenario1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(900, 600, 1);\n adicionar();\n \n }", "public World (){\n\t\tpattern = new ShapePattern (PATTERN_SIZE);\n\t\tscroll = new ShapeScroll (SCROLL_SIZE);\n\t}", "private RadiusSector() {}", "public MyWorld()\n {\n super(600, 400, 1);\n }", "public interface Line {\r\n /** Retourne les coordonnées du mier point */\r\n public int getX1();\r\n public int getY1();\r\n /** Retourne les coordonnées du deuxième point */\r\n public int getX2();\r\n public int getY2();\r\n}", "public Maps()\n\t{\t\n\t\tsetOnMapReadyHandler( new MapReadyHandler() {\n\t\t\t@Override\n\t\t\tpublic void onMapReady(MapStatus status)\n\t\t\t{\n\t\t\t\tmodelo = new MVCModelo();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tmodelo.cargarInfo();\n\t\t\t\t\tArregloDinamico<Coordenadas> aux = modelo.sacarCoordenadasVertices();\n\t\t\t\t\tLatLng[] rta = new LatLng[aux.darTamano()];\n\t\t\t\t\tfor(int i=0; i< aux.darTamano();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tCoordenadas actual = aux.darElementoPos(i);\n\t\t\t\t\t\trta[i] = new LatLng(actual.darLatitud(), actual.darLongitud());\n\t\t\t\t\t}\n\t\t\t\t\tlocations = rta;\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tif ( status == MapStatus.MAP_STATUS_OK )\n\t\t\t\t\t{\n\t\t\t\t\t\tmap = getMap();\n\n\t\t\t\t\t\t// Configuracion de localizaciones intermedias del path (circulos)\n\t\t\t\t\t\tCircleOptions middleLocOpt= new CircleOptions(); \n\t\t\t\t\t\tmiddleLocOpt.setFillColor(\"#00FF00\"); // color de relleno\n\t\t\t\t\t\tmiddleLocOpt.setFillOpacity(0.5);\n\t\t\t\t\t\tmiddleLocOpt.setStrokeWeight(1.0);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(int i=0; i<locations.length;i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCircle middleLoc1 = new Circle(map);\n\t\t\t\t\t\t\tmiddleLoc1.setOptions(middleLocOpt);\n\t\t\t\t\t\t\tmiddleLoc1.setCenter(locations[i]); \n\t\t\t\t\t\t\tmiddleLoc1.setRadius(20); //Radio del circulo\n\t\t\t\t\t\t}\n\n\t\t\t \t //Configuracion de la linea del camino\n\t\t\t \t PolylineOptions pathOpt = new PolylineOptions();\n\t\t\t \t pathOpt.setStrokeColor(\"#FFFF00\");\t // color de linea\t\n\t\t\t \t pathOpt.setStrokeOpacity(1.75);\n\t\t\t \t pathOpt.setStrokeWeight(1.5);\n\t\t\t \t pathOpt.setGeodesic(false);\n\t\t\t \t \n\t\t\t \t Polyline path = new Polyline(map); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \t path.setOptions(pathOpt); \n\t\t\t \t path.setPath(locations);\n\t\t\t\t\t\tinitMap( map );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t);\n\n\n\t}", "public void createMoveAbles(List<String> lines){\n int regelNr = 0;\n int aantalSpelers = Integer.parseInt(lines.get(regelNr));\n while(regelNr<aantalSpelers){\n String[] crds = lines.get(regelNr+1).split(\",\");\n int xCoord = Integer.parseInt(crds[0]);\n int yCoord = Integer.parseInt(crds[1]);\n this.sp = new Speler(new Coordinaat(xCoord,yCoord),this);\n regelNr++;\n }\n\n regelNr += (2);\n int aantalDozen = Integer.parseInt(lines.get(regelNr));\n while(regelNr<(aantalSpelers+aantalDozen+2)){\n String[] crds = lines.get(regelNr+1).split(\",\");\n int xCoord = Integer.parseInt(crds[0]);\n int yCoord = Integer.parseInt(crds[1]);\n new Doos(new Coordinaat(xCoord,yCoord),this);\n regelNr++;\n }\n }", "public RoadRagePanel(final int theWidth, final int theHeight) {\n super();\n\n myVehicles = new ArrayList<Vehicle>();\n myGrid = new Terrain[0][0];\n setLightColor(Light.GREEN);\n setPreferredSize(new Dimension(theWidth * SQUARE_SIZE,\n theHeight * SQUARE_SIZE));\n setBackground(Color.GREEN);\n setFont(FONT);\n }", "public void makeRoads()\r\n\t{\r\n\t\tfor(int i=0; i<roads.length; i++)\r\n\t\t\troads[i] = new Road(i*SCREEN_HEIGHT/20,SCREEN_WIDTH,SCREEN_HEIGHT/20-10);\r\n\t}", "public Parts (double x, double y, double length)\n {\n Path2D.Double line = new Path2D.Double();\n line.moveTo(0.0, length / 2);\n line.lineTo(0.0, -length / 2);\n\n // Making the rotation random, since everything else is random\n setRotation(RANDOM.nextDouble() * 4.5);\n\n // Velocity is also random for a more real life effect\n setVelocity(RANDOM.nextDouble(), RANDOM.nextDouble() * 4.5);\n\n // Sets the \"explosion\" where the ship was destroyed\n setPosition(x, y);\n\n shape = line;\n\n new ParticipantCountdownTimer(this, 2500);\n }", "public FloorCrate(ArrayList<Item> ary, int x, int y){\r\n super(null, \"You shouldn't be reading this.\", x, y);\r\n addAll(ary);\r\n description = isEmpty() ? new Description(\"tile\", \"There is nothing interesting here.\") :\r\n get(size()-1).description;\r\n }", "public MovieNet(LinkedList<String[]> movielines) {\n\t\tmovieline = new ArrayList<String[]>(movielines);\n\t\tactor_graph = new ArrayList<Actormap>();\n\t\tfor (int i = 0; i < movieline.size(); i++) {\n\t\t\tactor_graph_setter(movieline.get(i));\n\t\t}\n\t}", "private static ImmutableList<WorldCoord> generateVertexList()\r\n {\n\t return ShapeReader.getWorldCoordsFromResource(RESOURCE);\r\n }", "public Line() {\n\t\t\n\t\tthis.point1 = null;\n\t\tthis.point2 = null;\n\t\tthis.distance = 0;\n\t}", "public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }", "public Snapped(GroundFactory groundFactory, List<String> lines) {\n\t\tsuper(groundFactory,lines);\n\t}", "public LineStroker() {\n }", "public Line[] rockLines() {\n\t\treturn outLine;\n\t}", "public lineas() {\n initComponents();\n \n }", "public LineShape() {\n sc=new ShapeComponent[4];\n sc[0]=new ShapeComponent(0,0);\n sc[1]=new ShapeComponent(0,5);\n sc[2]=new ShapeComponent(0,10);\n sc[3]=new ShapeComponent(0,15);\n size=5;\n }", "private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }", "public static void main(String[] args) {\n\n\t\tLine myLine = new Line(99, 255, 5, 5);\n\t\tString output = myLine.getLocation();\n\t\tSystem.out.println(output);\n\t\t\n\t\t\n\t\tRectangle myRect = new Rectangle(1, 1, 10, 5);\n\t\tSystem.out.println(myRect.getArea());\n\t\t\n\t\tCircle myCirc = new Circle(1, 2, 5);\n\t\tSystem.out.println(myCirc.getArea());\n\t\n\t\t\n\t\tSuperRectangle superRect = new SuperRectangle(1, 2, 4,5);\n\t}", "public GeoJsonLineString(List<LatLng> coordinates, List<Double> altitudes) {\n super(coordinates);\n\n this.mAltitudes = altitudes;\n }", "@Override\n public LineSymbolizer<R> clone() {\n final var clone = (LineSymbolizer<R>) super.clone();\n clone.selfClone();\n return clone;\n }", "void addLine(int index, Coordinate start, Coordinate end);", "public GeoJsonLineString(List<LatLng> coordinates) {\n this(coordinates, null);\n }", "private List<List<Cell>> constructFireDirectionLines(int range) {\n List<List<Cell>> directionLines = new ArrayList<>();\n for (Direction direction : Direction.values()) {\n List<Cell> directionLine = new ArrayList<>();\n for (int directionMultiplier = 1; directionMultiplier <= range; directionMultiplier++) {\n\n int coordinateX = currentWorm.position.x + (directionMultiplier * direction.x);\n int coordinateY = currentWorm.position.y + (directionMultiplier * direction.y);\n\n if (!isValidCoordinate(coordinateX, coordinateY)) {\n break;\n }\n\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, coordinateX, coordinateY) > range) {\n break;\n }\n\n Cell cell = gameState.map[coordinateY][coordinateX];\n if (cell.type != CellType.AIR) {\n break;\n }\n\n directionLine.add(cell);\n }\n directionLines.add(directionLine);\n }\n\n return directionLines;\n }", "public World(){\r\n locations = new Location[3][3];\r\n for(int r=0; r<3; r+=1){\r\n for(int c=0; c<3; c+=1){\r\n locations[r][c] = new EmptyLocation(new Position(r,c), \"Nothing here to see.\");\r\n }\r\n }\r\n home = locations[0][0];\r\n players = new ArrayList<Player>();\r\n }", "private List<LotteryTicketLine> createTicketLines(int lines, LotteryTicket ticket) {\n\t\tList<LotteryTicketLine> linesList = new ArrayList<>();\n\n\t\t// Iterate the lines\n\t\tfor (int linesItr = 1; linesItr <= lines; linesItr++) {\n\t\t\t// Generate appropriate parameters and add in list object\n\t\t\tint first = generateRandomNumber();\n\t\t\tint second = generateRandomNumber();\n\t\t\tint third = generateRandomNumber();\n\t\t\tLotteryTicketLine line = new LotteryTicketLine(first, second, third, getOutcome(first, second, third),\n\t\t\t\t\tticket);\n\t\t\tlinesList.add(line);\n\t\t}\n\t\treturn linesList;\n\t}", "public OverWorld()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(1024, 600, 1, false);\n Setup();\n }", "private Line addLine() {\n\t\t// Create a new line\n\t\tLine line = new Line(doily.settings.getPenScale(), \n\t\t\t\tdoily.settings.getPenColor(), doily.settings.isReflect());\n\t\tdoily.lines.add(line);\n\t\treturn line;\n\t}", "public static ArrayList getLines() {\n return lines;\n }", "@Override\n protected void buildWorldRepresentation() {\n java.util.List<BasicModelEntity> worldModelEntityList = spaceExplorerModel.getWorldEntityList();\n java.util.List<CSysEntity> viewWorldEntityList = new ArrayList();\n for (int i = 0; i < worldModelEntityList.size(); i++) {\n\n BasicModelEntity basicModelEntity = worldModelEntityList.get(i);\n\n CSysEntity cSysEntity = null;\n if (basicModelEntity instanceof ModelLineEntity) {\n cSysEntity = new SeCSysLineEntity(this, (ModelLineEntity) basicModelEntity);\n cSysEntity.setDrawColor(basicModelEntity.getColor());\n// addWorldEntity(cSysLineEntity);\n } else if (basicModelEntity instanceof ModelPolyLineEntity) {\n cSysEntity = new SeCSysViewPolyLineEntity(this, (ModelPolyLineEntity) basicModelEntity);\n cSysEntity.setDrawColor(basicModelEntity.getColor());\n// addWorldEntity(seCSysViewPolylineEntity);\n }\n viewWorldEntityList.add(cSysEntity);\n }\n\n createAxis(viewWorldEntityList);\n viewWorldEntityArray = viewWorldEntityList.toArray(new BasicCSysEntity[viewWorldEntityList.size()]);\n updateCSysEntList(combinedRotatingMatrix);\n }", "public Line copy() {\r\n Line l = new Line();\r\n l.line = new ArrayList < Point > (this.line);\r\n l.direction = this.direction;\r\n l.clickedPoint = this.clickedPoint;\r\n return l;\r\n }", "public static void main(String[] args) {\n\t\tinit();\n\t\tdraw();\n\t\tnew LandMine();\n\t}", "public ArrayList<BlipModel> lineOfSightMarineBlips(MarineModel marine)\r\n/* 324: */ {\r\n/* 325:373 */ ArrayList<BlipModel> models = new ArrayList();\r\n/* 326:374 */ for (AgentModel model : this.agentModels.values()) {\r\n/* 327:376 */ if ((model instanceof BlipModel))\r\n/* 328: */ {\r\n/* 329:378 */ System.out.println(\"blip\");\r\n/* 330:379 */ if (marine.fov(model.getX(), model.getY())) {\r\n/* 331:381 */ if (line(marine.getX(), marine.getY(), model.getX(), model.getY())) {\r\n/* 332:383 */ models.add((BlipModel)model);\r\n/* 333: */ }\r\n/* 334: */ }\r\n/* 335: */ }\r\n/* 336: */ }\r\n/* 337:388 */ return models;\r\n/* 338: */ }", "public Critter(){\n\tthis.x_location = (int) (Math.random()*99);\n\tthis.y_location = (int) (Math.random()*99);\n\tthis.wrap();\n\t}", "public Line copy() {\n return new Line(getWords());\n }", "@Override\n public void buildWorldObject() {\n setPoint(new Point3d());\n\n List<Point2d> pointList = new ArrayList<Point2d>();\n\n for (int i = 0; i < way.getNodesCount(); i++) {\n Node node = way.getNode(i);\n pointList.add(perspective.calcPoint(node));\n }\n\n list = pointList;\n\n roadWidth = (float) DEFAULT_ROAD_WIDTH;\n\n roadWidth = getRoadWidth();\n\n TextureData texture = getTexture();\n\n Material m = MaterialFactory.createTextureMaterial(texture.getFile());\n\n ModelFactory modelBuilder = ModelFactory.modelBuilder();\n\n int mi = modelBuilder.addMaterial(m);\n\n MeshFactory meshWalls = modelBuilder.addMesh(\"road\");\n\n meshWalls.materialID = mi;\n meshWalls.hasTexture = true;\n\n if (list.size() > 1) {\n\n FaceFactory leftBorder = meshWalls.addFace(FaceType.QUAD_STRIP);\n FaceFactory leftPart = meshWalls.addFace(FaceType.QUAD_STRIP);\n FaceFactory rightBorder = meshWalls.addFace(FaceType.QUAD_STRIP);\n FaceFactory rightPart = meshWalls.addFace(FaceType.QUAD_STRIP);\n\n Vector3d flatSurface = new Vector3d(0, 1, 0);\n\n int flatNormalI = meshWalls.addNormal(flatSurface);\n\n Point2d beginPoint = list.get(0);\n for (int i = 1; i < list.size(); i++) {\n Point2d endPoint = list.get(i);\n\n double x = endPoint.x - beginPoint.x;\n double y = endPoint.y - beginPoint.y;\n // calc lenght of road segment\n double mod = Math.sqrt(x * x + y * y);\n\n double distance = beginPoint.distance(endPoint);\n\n // calc orthogonal for road segment\n double orthX = x * cos90 + y * sin90;\n double orthY = -x * sin90 + y * cos90;\n\n // calc vector for road width;\n double normX = roadWidth / 2 * orthX / mod;\n double normY = roadWidth / 2 * orthY / mod;\n // calc vector for border width;\n double borderX = normX + 0.2 * orthX / mod;\n double borderY = normY + 0.2 * orthY / mod;\n\n double uEnd = distance / texture.getLenght();\n\n // left border\n int tcb1 = meshWalls.addTextCoord(new TextCoord(0, 0.99999d));\n // left part of road\n int tcb2 = meshWalls.addTextCoord(new TextCoord(0, 1 - 0.10d));\n // Middle part of road\n int tcb3 = meshWalls.addTextCoord(new TextCoord(0, 0.00001d));\n // right part of road\n int tcb4 = meshWalls.addTextCoord(new TextCoord(0, 1 - 0.10d));\n // right border\n int tcb5 = meshWalls.addTextCoord(new TextCoord(0, 0.99999d));\n\n // left border\n int tce1 = meshWalls.addTextCoord(new TextCoord(uEnd, 0.99999d));\n // left part of road\n int tce2 = meshWalls.addTextCoord(new TextCoord(uEnd, 1 - 0.10d));\n // Middle part of road\n int tce3 = meshWalls.addTextCoord(new TextCoord(uEnd, 0.00001d));\n // right part of road\n int tce4 = meshWalls.addTextCoord(new TextCoord(uEnd, 1 - 0.10d));\n // right border\n int tce5 = meshWalls.addTextCoord(new TextCoord(uEnd, 0.99999d));\n\n // left border\n int wbi1 = meshWalls.addVertex(new Point3d(beginPoint.x + borderX, 0.0d, -(beginPoint.y + borderY)));\n // left part of road\n int wbi2 = meshWalls.addVertex(new Point3d(beginPoint.x + normX, 0.1d, -(beginPoint.y + normY)));\n // middle part of road\n int wbi3 = meshWalls.addVertex(new Point3d(beginPoint.x, 0.15d, -beginPoint.y));\n // right part of road\n int wbi4 = meshWalls.addVertex(new Point3d(beginPoint.x - normX, 0.1d, -(beginPoint.y - normY)));\n // right border\n int wbi5 = meshWalls.addVertex(new Point3d(beginPoint.x - borderX, 0.0d, -(beginPoint.y - borderY)));\n\n // left border\n int wei1 = meshWalls.addVertex(new Point3d(endPoint.x + borderX, 0.0d, -(endPoint.y + borderY)));\n // left part of road\n int wei2 = meshWalls.addVertex(new Point3d(endPoint.x + normX, 0.1d, -(endPoint.y + normY)));\n // middle part of road\n int wei3 = meshWalls.addVertex(new Point3d(endPoint.x, 0.15d, -endPoint.y));\n // right part of road\n int wei4 = meshWalls.addVertex(new Point3d(endPoint.x - normX, 0.1d, -(endPoint.y - normY)));\n // right border\n int wei5 = meshWalls.addVertex(new Point3d(endPoint.x - borderX, 0.0d, -(endPoint.y - borderY)));\n\n leftBorder.addVert(wbi1, tcb1, flatNormalI);\n leftBorder.addVert(wbi2, tcb2, flatNormalI);\n leftBorder.addVert(wei1, tce1, flatNormalI);\n leftBorder.addVert(wei2, tce2, flatNormalI);\n\n leftPart.addVert(wbi2, tcb2, flatNormalI);\n leftPart.addVert(wbi3, tcb3, flatNormalI);\n leftPart.addVert(wei2, tce2, flatNormalI);\n leftPart.addVert(wei3, tce3, flatNormalI);\n\n rightBorder.addVert(wbi3, tcb3, flatNormalI);\n rightBorder.addVert(wbi4, tcb4, flatNormalI);\n rightBorder.addVert(wei3, tce3, flatNormalI);\n rightBorder.addVert(wei4, tce4, flatNormalI);\n\n rightPart.addVert(wbi4, tcb4, flatNormalI);\n rightPart.addVert(wbi5, tcb5, flatNormalI);\n rightPart.addVert(wei4, tce4, flatNormalI);\n rightPart.addVert(wei5, tce5, flatNormalI);\n\n beginPoint = endPoint;\n }\n }\n\n model = modelBuilder.toModel();\n model.setUseLight(true);\n model.setUseTexture(true);\n\n buildModel = true;\n }", "public List<ArticLine> getArticLines() {\n\n if (articLines == null) {\n articLines = new ArrayList<ArticLine>();\n\n List<Element> paragraphs = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"para\", omniPageXMLDocument.getDocumentElement());\n\n Integer lineCounter = 0;\n Boolean foundIntroOrAbstract = false;\n String previousAlignment = null;\n Element previousElement = null;\n if (paragraphs != null && !paragraphs.isEmpty()) {\n\n for (Element paragraphElement : paragraphs) {\n\n String alignment = getAlignment(paragraphElement);\n\n String paragraph = \"new\";\n\n List<Element> linesOfParagraph = br.ufrgs.artic.utils.FileUtils.getElementsByTagName(\"ln\", paragraphElement);\n\n if (linesOfParagraph != null && !linesOfParagraph.isEmpty()) {\n for (Element lineElement : linesOfParagraph) {\n ArticLine articLine = new ArticLine(lineCounter, lineElement, previousElement,\n averagePageFontSize, alignment, previousAlignment, topBucketSize, leftBucketSize);\n articLines.add(articLine);\n\n String textContent = articLine.getOriginalText();\n\n if (textContent != null && Pattern.compile(\"intro|abstract\", Pattern.CASE_INSENSITIVE).\n matcher(textContent).find()) {\n foundIntroOrAbstract = true;\n }\n\n if (!foundIntroOrAbstract) { //special case for headers\n articLine.setParagraph(\"header\");\n } else {\n articLine.setParagraph(paragraph);\n }\n\n paragraph = \"same\";\n previousElement = lineElement;\n previousAlignment = alignment;\n lineCounter++;\n }\n }\n }\n }\n }\n\n return articLines;\n }", "public OMAbstractLine(int rType, int lType, int dcType) {\n super(rType, lType, dcType);\n }", "public void generateLineItems(){\n for(int i=0; i<purch.getProdIdx().length; i++){\r\n \r\n prod= new Product(db.getProductDbItem(purch.getProductItem(i)));\r\n \r\n LineItem[] tempL=new LineItem[lineItem.length+1];\r\n System.arraycopy(lineItem,0,tempL,0,lineItem.length);\r\n lineItem=tempL;\r\n lineItem[lineItem.length-1]= new LineItem(prod.getProdId(),purch.getQtyAmtItm(i), \r\n prod.getProdUnitPrice(), prod.getProdDesc(), prod.getProdDiscCode()); \r\n totalPurch += (purch.getQtyAmtItm(i) * prod.getProdUnitPrice());\r\n totalDisc += lineItem[lineItem.length-1].getDiscAmt();\r\n \r\n }\r\n }", "public static List<Location> generateLocations() {\n\t\tList<Location> locations = new ArrayList<Location>();\n\t\t\n\t\tfor(AREA area : AREA.values()) {\n\t\t\tLocation l = new Location(area);\n\t\t\t\n\t\t\tswitch (area) {\n\t\t\tcase Study:\n\t\t\t\tl.neighbors.add(AREA.HW_SH);\n\t\t\t\tl.neighbors.add(AREA.HW_SL);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Hall:\n\t\t\t\tl.neighbors.add(AREA.HW_SH);\n\t\t\t\tl.neighbors.add(AREA.HW_HL);\n\t\t\t\tl.neighbors.add(AREA.HW_HB);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Lounge:\n\t\t\t\tl.neighbors.add(AREA.HW_HL);\n\t\t\t\tl.neighbors.add(AREA.HW_LD);\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Library:\n\t\t\t\tl.neighbors.add(AREA.HW_SL);\n\t\t\t\tl.neighbors.add(AREA.HW_LB);\n\t\t\t\tl.neighbors.add(AREA.HW_LC);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase BilliardRoom:\n\t\t\t\tl.neighbors.add(AREA.HW_HB);\n\t\t\t\tl.neighbors.add(AREA.HW_LB);\n\t\t\t\tl.neighbors.add(AREA.HW_BD);\n\t\t\t\tl.neighbors.add(AREA.HW_BB);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase DiningRoom:\n\t\t\t\tl.neighbors.add(AREA.HW_LD);\n\t\t\t\tl.neighbors.add(AREA.HW_BD);\n\t\t\t\tl.neighbors.add(AREA.HW_DK);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Conservatory:\n\t\t\t\tl.neighbors.add(AREA.HW_LC);\n\t\t\t\tl.neighbors.add(AREA.HW_CB);\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Ballroom:\n\t\t\t\tl.neighbors.add(AREA.HW_BB);\n\t\t\t\tl.neighbors.add(AREA.HW_CB);\n\t\t\t\tl.neighbors.add(AREA.HW_BK);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase Kitchen:\n\t\t\t\tl.neighbors.add(AREA.HW_DK);\n\t\t\t\tl.neighbors.add(AREA.HW_BK);\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.isRoom = true;\n\t\t\t\tbreak;\n\t\t\tcase HW_SH:\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tbreak;\n\t\t\tcase HW_HL:\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tbreak;\n\t\t\tcase HW_SL:\n\t\t\t\tl.neighbors.add(AREA.Study);\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tbreak;\n\t\t\tcase HW_HB:\n\t\t\t\tl.neighbors.add(AREA.Hall);\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LD:\n\t\t\t\tl.neighbors.add(AREA.Lounge);\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LB:\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_BD:\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tbreak;\n\t\t\tcase HW_LC:\n\t\t\t\tl.neighbors.add(AREA.Library);\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tbreak;\n\t\t\tcase HW_BB:\n\t\t\t\tl.neighbors.add(AREA.BilliardRoom);\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tbreak;\n\t\t\tcase HW_DK:\n\t\t\t\tl.neighbors.add(AREA.DiningRoom);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tbreak;\n\t\t\tcase HW_CB:\n\t\t\t\tl.neighbors.add(AREA.Conservatory);\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tbreak;\n\t\t\tcase HW_BK:\n\t\t\t\tl.neighbors.add(AREA.Ballroom);\n\t\t\t\tl.neighbors.add(AREA.Kitchen);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlocations.add(l);\n\t\t}\n\t\t\n\t\treturn locations;\n\t}", "public List<Polyline> getPolylines() {\n return this.polylines.obtainAll();\n }", "public GLineGroup(double... coords) {\n\t\tif (coords == null || coords.length % 2 != 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"must pass an even number of coordinates\");\n\t\t}\n\t\tfor (int i = 0; i < coords.length - 1; i += 2) {\n\t\t\tadd(coords[i], coords[i + 1]);\n\t\t}\n\t}", "public interface DominoLine {\r\n /**\r\n * Adds a Tile on the beginning of The Dominoline\r\n *\r\n * @param tile Tile to be added\r\n */\r\n public void addTileOnBeginning(Tile tile);\r\n /**\r\n * Adds a Tile at the End of the DominoLine\r\n * \r\n * @param tile , a tile\r\n */\r\n public void addTileAtTheEnd(Tile tile);\r\n /**\r\n * Checks if the given tile fits on the Beggining of the line.\r\n * It is supposed that if the line is empty, every\r\n * tile fits the line.\r\n *\r\n * * \"matches\" depends on the rules of each version of DominoGames\r\n * \r\n * @param tile Tile to be checked\r\n * @return 1:if 1st tile matches the first tile in\r\n * DominoLine (or line is empty) 2:if 2nd tile matches the first\r\n * tile in DominoLine 3:if the first tile\r\n * in DominoLine doesn't match any side of the tile\r\n */\r\n public short fitsOnBeginning(Tile tile);\r\n /**\r\n * Checks if the given tile fits at the End of the line.\r\n * \r\n * \"matches\" depends on the rules of each version of DominoGames\r\n * \r\n * @param tile Tile to be checked\r\n * @return 1:if 1st Tile matches the second tile (or line\r\n * is empty) 2:if 2nd Tile matches the second tile 3:if\r\n * the second tile doesn't match any side of the Tile\r\n */\r\n public short fitsAtTheEnd(Tile tile);\r\n /**\r\n * Checks if this DominoLine contains no elements.\r\n *\r\n * @return true if this DominoLine contains no elements\r\n */\r\n public boolean isEmpty();\r\n /**\r\n * Gets the DominoLine returned.\r\n *\r\n * @return A SetOfTiles representing the DominoLine.\r\n */\r\n public SetOfTiles getSetOfTiles();\r\n /**\r\n * Clears(removes all elements) the DominoLine so\r\n * it can be updated with the next added elements.\r\n */\r\n public void Clear();\r\n \r\n \r\n}", "public Shape3D plotLines(Point3d coords[]){\n\n Appearance app=new Appearance();\n\n // coords[0] = new Point3d(-0.5d, -0.2d, 0.1d);\n // coords[1] = new Point3d(-0.2d, 0.1d, 0.0d);\n // coords[2] = new Point3d(0.2d, -0.3d, 0.1d);\n // coords[3] = new Point3d(-0.5d, -0.2d, 0.1d);\n\n int vertexCounts[] = {4};\n\n LineStripArray lines = new LineStripArray(4,\n GeometryArray.COORDINATES, vertexCounts);\n\n lines.setCoordinates(0, coords);\n\n Shape3D shape=new Shape3D(lines , app);\n return shape;\n }", "private void initializePolyline() {\n mGoogleMap.clear();\n mPolylineOptions = new PolylineOptions();\n mPolylineOptions.color(Color.BLUE).width(10);\n mGoogleMap.addPolyline(mPolylineOptions);\n\n mMarkerOptions = new MarkerOptions();\n }", "private Road()\n\t{\n\t\t\n\t}", "public Laptops(double xCoor,double yCoor,double r){\n\t\t\n\t\tthis.xCoor=xCoor;\n\t\tthis.yCoor=yCoor;\n\t\tthis.r=r;\n\t\t\n\t}" ]
[ "0.64358926", "0.6123241", "0.606657", "0.60559255", "0.59732413", "0.58685434", "0.5791193", "0.5728722", "0.5727836", "0.5707611", "0.5692985", "0.56530076", "0.5643142", "0.5601292", "0.55773044", "0.5563981", "0.5540492", "0.5539448", "0.5513117", "0.55066514", "0.54886985", "0.5483624", "0.54784745", "0.5477799", "0.5465844", "0.5453278", "0.54119456", "0.5405344", "0.5388235", "0.5386779", "0.53842837", "0.53777206", "0.5366461", "0.5358112", "0.53542566", "0.53449106", "0.53388005", "0.5313401", "0.5289967", "0.52867645", "0.52797914", "0.527123", "0.5264962", "0.524122", "0.5239638", "0.5238211", "0.523806", "0.5235207", "0.52320987", "0.5227337", "0.52227587", "0.5218269", "0.5216362", "0.5215547", "0.5208028", "0.5207212", "0.5187324", "0.5183253", "0.5164582", "0.5164212", "0.5163375", "0.5163047", "0.51469904", "0.51397437", "0.51360875", "0.51136386", "0.5108987", "0.50988793", "0.5094404", "0.5092686", "0.5087094", "0.5080535", "0.5080158", "0.5072018", "0.50719464", "0.50674665", "0.5063486", "0.5062985", "0.5060468", "0.5058991", "0.50502515", "0.5047289", "0.50441325", "0.50382364", "0.5037667", "0.50283647", "0.5026273", "0.50253904", "0.5024606", "0.5024584", "0.5003295", "0.49996102", "0.4999606", "0.49974775", "0.49968958", "0.49944752", "0.49906638", "0.49893594", "0.49885356", "0.49855512" ]
0.6859345
0
read from file reader and create sequence of ride lines
public void loadFile() { FileDialog fd = null; //no value fd = new FileDialog(fd , "Pick up a bubble file: " , FileDialog.LOAD); //create popup menu fd.setVisible(true); // make visible manu String directory = fd.getDirectory(); // give the location of file String name = fd.getFile(); // give us what file is it String fullName = directory + name; //put together in one sting File rideNameFile = new File(fullName); //open new file with above directory and name Scanner nameReader = null; //when I try to pick up it read as scanner what I choose try { nameReader = new Scanner(rideNameFile); } catch (FileNotFoundException fnfe)//if dont find return this message below { return; // immedaitely exit from here } //if load button pressed, it remove all ride lines in the world if(load.getFound()){ removeAllLines(); } //read until is no more stings inside of file and until fullfill max rides while(nameReader.hasNextLine()&&currentRide<MAX_RIDES) { String rd= nameReader.nextLine();//hold and read string with name of ride RideLines nova =new RideLines(rd); rides[currentRide]=nova; //Create a RideLine with string given from file addObject(rides[currentRide++], 650, 20 + 40*currentRide); } //when is no more strings inside it close reader nameReader.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void incrementLinesRead();", "public String readLines() {\n\n String fileAsString;\n fileAsString = read();\n StringBuilder newString = new StringBuilder();\n if (fileAsString != null) {\n if (fromLine == toLine) {\n\n newString = new StringBuilder(fileAsString.split(\"\\n\")[fromLine - 1]);\n return newString.toString();\n } else {\n if (toLine > fileAsString.split(\"\\n\").length) {\n toLine = fileAsString.split(\"\\n\").length;\n }\n ;\n for (int i = fromLine - 1; i < toLine; i++) {\n\n newString.append(fileAsString.split(\"\\n\")[i]).append(\"\\n\");\n\n\n }\n }\n\n }\n\n\n return newString.toString();\n }", "private String readLine() throws IOException {\n/* 276 */ String line = null;\n/* */ \n/* */ \n/* 279 */ boolean isLastFilePart = (this.no == 1L);\n/* */ \n/* 281 */ int i = this.currentLastBytePos;\n/* 282 */ while (i > -1) {\n/* */ \n/* 284 */ if (!isLastFilePart && i < ReversedLinesFileReader.this.avoidNewlineSplitBufferSize) {\n/* */ \n/* */ \n/* 287 */ createLeftOver();\n/* */ \n/* */ break;\n/* */ } \n/* */ int newLineMatchByteCount;\n/* 292 */ if ((newLineMatchByteCount = getNewLineMatchByteCount(this.data, i)) > 0) {\n/* 293 */ int lineStart = i + 1;\n/* 294 */ int lineLengthBytes = this.currentLastBytePos - lineStart + 1;\n/* */ \n/* 296 */ if (lineLengthBytes < 0) {\n/* 297 */ throw new IllegalStateException(\"Unexpected negative line length=\" + lineLengthBytes);\n/* */ }\n/* 299 */ byte[] lineData = new byte[lineLengthBytes];\n/* 300 */ System.arraycopy(this.data, lineStart, lineData, 0, lineLengthBytes);\n/* */ \n/* 302 */ line = new String(lineData, ReversedLinesFileReader.this.encoding);\n/* */ \n/* 304 */ this.currentLastBytePos = i - newLineMatchByteCount;\n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* 309 */ i -= ReversedLinesFileReader.this.byteDecrement;\n/* */ \n/* */ \n/* 312 */ if (i < 0) {\n/* 313 */ createLeftOver();\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* */ \n/* 319 */ if (isLastFilePart && this.leftOver != null) {\n/* */ \n/* 321 */ line = new String(this.leftOver, ReversedLinesFileReader.this.encoding);\n/* 322 */ this.leftOver = null;\n/* */ } \n/* */ \n/* 325 */ return line;\n/* */ }", "public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }", "private String nextLine(BufferedReader reader) throws IOException {\n String ln = reader.readLine();\n if (ln != null) {\n int ci = ln.indexOf('#');\n if (ci >= 0)\n ln = ln.substring(0, ci);\n ln = ln.trim();\n }\n return ln;\n }", "public void readIn(ArrayList<String> lines, int idx){\n\t\tfor (int i=idx+1;i<lines.size();i++){\n\t\t\tString[] parts = lines.get(i).split(\" \");\n\t\t\tif (parts[0].charAt(0) != '-'){\n\t\t\t\ti = lines.size();\n\t\t\t}\n\t\t\tswitch (parts[0]){\n\t\t\t\tcase \"-TileID:\":\n\t\t\t\t\tthis.setTile(Game.getInstance().getTileContained(Integer.parseInt(parts[1])));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-Chance:\":\n\t\t\t\t\tthis.chance = Integer.parseInt(parts[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: break;\n\t\t\t}\n\t\t}\n\t}", "public void readInput(String fileName){\n\n BufferedReader reader;\n try {\n reader = new BufferedReader(new FileReader(fileName));\n String line = reader.readLine(); //read first line\n int numLine =1; //keep track the number of line\n while (line != null) {\n String[] tokens = line.trim().split(\"\\\\s+\"); //split line into token\n if(numLine==1){ //for the first line\n intersection = Integer.parseInt(tokens[0]); //set the number of intersection\n roadways = Integer.parseInt(tokens[1]); // set the number of roadways\n coor = new Coordinates[intersection];\n g = new Graph(intersection);//create a graph\n line = reader.readLine();\n numLine++;\n }\n else if(numLine>1&&numLine<intersection+2){ //for all intersection\n while(numLine>1&&numLine<intersection+2){\n tokens = line.trim().split(\"\\\\s+\");\n coor[Integer.parseInt(tokens[0])] = new Coordinates(Integer.parseInt(tokens[1]),Integer.parseInt(tokens[2])); //add into coor array to keep track the coor of intersection\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine ==intersection+2){ //skip the space line\n line = reader.readLine();\n numLine++;\n while(numLine<roadways+intersection+3){ // for all the roadways, only include the number of roadways mention in the first line\n tokens = line.trim().split(\"\\\\s+\");\n int fst = Integer.parseInt(tokens[0]);\n int snd = Integer.parseInt(tokens[1]);\n g.addEgde(fst,snd,coor[fst].distTo(coor[snd]));\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine >= roadways+intersection+3)\n break;\n }\n reader.close();\n } catch (FileNotFoundException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void getNextLine()\n\t\t\tthrows IOException, FileNotFoundException {\n String nextLine = \"\";\n if (reader == null) {\n nextLine = textLineReader.readLine();\n } else {\n nextLine = reader.readLine();\n }\n if (nextLine == null) {\n atEnd = true;\n line = new StringBuffer();\n } else {\n\t\t line = new StringBuffer (nextLine);\n }\n if (context.isTextile()) {\n textilize ();\n }\n\t\tlineLength = line.length();\n\t\tlineIndex = 0;\n\t}", "public void readFile() {\n ArrayList<Movement> onetime = new ArrayList<Movement>(); \n Movement newone = new Movement(); \n String readLine; \n\n File folder = new File(filefolder); \n File[] listOfFiles = folder.listFiles(); \n for (File file : listOfFiles) {\n if (file.isFile()&& file.getName().contains(\"200903\")) {\n try {\n onetime = new ArrayList<Movement>(); \n newone = new Movement(); \n BufferedReader br = new BufferedReader(new FileReader(filefolder+\"\\\\\"+file.getName())); \n readLine = br.readLine (); \n String[] previouline = readLine.split(\",\"); \n int previousint = Integer.parseInt(previouline[7]); \n while ( readLine != null) {\n String[] currentline = readLine.split(\",\"); \n if (Integer.parseInt(currentline[7]) == previousint)\n {\n newone.addRecord(currentline[0], currentline[1], currentline[2], currentline[4], currentline[5], currentline[6]); \n newone.ID = Integer.parseInt(currentline[7]); \n newone.filedate = file.getName();\n } else\n { \n onetime.add(newone); \n newone = new Movement(); \n newone.addRecord(currentline[0], currentline[1], currentline[2], currentline[4], currentline[5], currentline[6]);\n }\n previousint = Integer.parseInt(currentline[7]); \n readLine = br.readLine ();\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n rawdata.add(onetime);\n } \n }\n println(rawdata.size());\n}", "private static void generateSequence() throws FileNotFoundException {\n Scanner s = new Scanner(new BufferedReader(new FileReader(inputPath + filename)));\n\t\tlrcSeq = new ArrayList<Integer>();\n\t\tmeloSeq = new ArrayList<Integer>();\n\t\tdurSeq = new ArrayList<Integer>();\n\t\t\n\t\tString line = null;\n\t\tint wordStress;\n\t\tint pitch;\n\t\tint melStress;\n\t\tint stress;\n\t\tint duration;\n\t\t\n\t\twhile(s.hasNextLine()) {\n\t\t\tline = s.nextLine();\n\t\t\tString[] temp = line.split(\",\");\n\t\t\t\n\t\t\twordStress = Integer.parseInt(temp[1]);\n\t\t\tpitch = Integer.parseInt(temp[2]);\n\t\t\tmelStress = Integer.parseInt(temp[3]);\n\t\t\tduration = Integer.parseInt(temp[4]);\n\t\t\t\n\n\t\t\t//combine word level stress and sentence level stress\n\t\t\tstress = wordStress * 3 + melStress;\n\t\t\t/*if(stress < 0 || stress > 9) {\n\t\t\t\tSystem.out.println(\"Stress range error\");\n\t\t\t}*/\n\t\t\tlrcSeq.add(stress);\n\t\t\tmeloSeq.add(pitch);\n\t\t\tdurSeq.add(duration);\n\t\t}\n\t\t\n\t\t//calculate relative value\n\t\tfor(int i = 0;i < lrcSeq.size() -1;++i) {\n\t\t\tlrcSeq.set(i, lrcSeq.get(i+1)-lrcSeq.get(i));\n\t\t\tmeloSeq.set(i, meloSeq.get(i+1) - meloSeq.get(i));\n\t\t\tif(durSeq.get(i+1) / durSeq.get(i)>=1)\n\t\t\t\tdurSeq.set(i, durSeq.get(i+1) / durSeq.get(i));\n\t\t\telse \n\t\t\t\tdurSeq.set(i,durSeq.get(i) / durSeq.get(i+1) * (-1));\n\t\t}\n\t\tlrcSeq.remove(lrcSeq.size()-1);\n\t\tmeloSeq.remove(meloSeq.size()-1);\n\t\tdurSeq.remove(durSeq.size()-1);\n\t\t\n\t}", "public static List<Contract> readFromFile(String filename) {\n List<Contract> contracts = new ArrayList<>();\n\n InputStreamReader inputStreamReader = null;\n try {\n inputStreamReader = new InputStreamReader(new FileInputStream(new File(filename)),\"cp1251\");\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String [] lines = null;\n String line = null;\n try{\n while ((line = bufferedReader.readLine()) != null) {\n\n lines= line.split(\",\");\n\n\n LocalDate conc = LocalDate.parse(lines[1], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate start = LocalDate.parse(lines[2], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate end = LocalDate.parse(lines[3], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n\n Client client=new Client(ClientType.valueOf(lines[4]),lines[5],lines[6]);\n\n ArrayList<InsuredPerson>insuredPeople=new ArrayList<>();\n for(int i=7; i<lines.length; i+=4 ){\n LocalDate d=LocalDate.parse(lines[i+2],DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n InsuredPerson person = new InsuredPerson(Integer.valueOf(lines[i]),lines[i+1],d,Double.valueOf(lines[i+3]));\n insuredPeople.add(person);\n\n\n }\n Contract contract=new Contract(Integer.valueOf(lines[0]),conc,start,end,client,insuredPeople);\n contracts.add(contract);\n }\n bufferedReader.close();}\n catch (IOException e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return contracts;\n\n }", "private void readRacesFromFile(String racesFileName) {\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd.MM.yyyy\");\n\n URL url = Thread.currentThread().getContextClassLoader()\n .getResource(racesFileName);\n try (Stream<String> stream = Files.lines(Paths.get(url.getPath()))) {\n stream\n .skip(1)\n .map(s -> s.split(\";\"))\n .map(a -> new Race(Long.parseLong(a[0]), a[1], LocalDate.parse(a[2], formatter)))\n //.forEach(System.out::println);\n .forEach(em::persist);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic void readAGBVersionsWithLineNumbers() {\n\t\t\n\t\tString lineVersion1 = null;\n\t\tString lineVersion2 = null;\n\t\t\n\t\ttry \n\t\t{\n BufferedReader br1 = new BufferedReader(new FileReader(\"AGB1-SelectedVersion.txt\"));\n \n while ((lineVersion1 = br1.readLine()) != null) \n {\n \tversion1WithLineNumbers.add(lineVersion1);\n //System.out.println(line);\n }\n } \n\t\tcatch (IOException e) \n\t\t{\n e.printStackTrace();\n }\n\t\t\n\t\ttry \n\t\t{\n BufferedReader br2 = new BufferedReader(new FileReader(\"AGB2-SelectedVersion.txt\"));\n \n while ((lineVersion2 = br2.readLine()) != null) \n {\n \tversion2WithLineNumbers.add(lineVersion2);\n //System.out.println(line);\n }\n } \n\t\tcatch (IOException e) \n\t\t{\n e.printStackTrace();\n }\n\t\t\n\t\t\n\t}", "private void ReadInputFile(String filePath){\n String line;\n\n try{\n BufferedReader br = new BufferedReader(new FileReader(filePath));\n while((line = br.readLine()) != null){\n //add a return at each index\n inputFile.add(line + \"\\r\");\n }\n\n\n }catch(IOException ex){\n System.out.print(ex);\n }\n\n }", "public void createMoveAbles(List<String> lines){\n int regelNr = 0;\n int aantalSpelers = Integer.parseInt(lines.get(regelNr));\n while(regelNr<aantalSpelers){\n String[] crds = lines.get(regelNr+1).split(\",\");\n int xCoord = Integer.parseInt(crds[0]);\n int yCoord = Integer.parseInt(crds[1]);\n this.sp = new Speler(new Coordinaat(xCoord,yCoord),this);\n regelNr++;\n }\n\n regelNr += (2);\n int aantalDozen = Integer.parseInt(lines.get(regelNr));\n while(regelNr<(aantalSpelers+aantalDozen+2)){\n String[] crds = lines.get(regelNr+1).split(\",\");\n int xCoord = Integer.parseInt(crds[0]);\n int yCoord = Integer.parseInt(crds[1]);\n new Doos(new Coordinaat(xCoord,yCoord),this);\n regelNr++;\n }\n }", "@Override\n public void parseFile(String id, Reader reader) throws Exception {\n lineNr = 0;\n BufferedReader fin = null;\n if (reader instanceof BufferedReader) {\n fin = (BufferedReader) reader;\n } else {\n fin = new BufferedReader(reader);\n }\n try {\n while (fin.ready()) {\n String sStr = nextLine(fin);\n if (sStr == null) {\n return;\n }\n if (sStr.toLowerCase().matches(\"^\\\\s*begin\\\\s+data;\\\\s*$\") || sStr.toLowerCase().matches(\"^\\\\s*begin\\\\s+characters;\\\\s*$\")) {\n m_alignment = parseDataBlock(fin);\n m_alignment.setID(id);\n } else if (sStr.toLowerCase().matches(\"^\\\\s*begin\\\\s+calibration;\\\\s*$\")) {\n traitSet = parseCalibrationsBlock(fin);\n } else if (sStr.toLowerCase().matches(\"^\\\\s*begin\\\\s+assumptions;\\\\s*$\") ||\n sStr.toLowerCase().matches(\"^\\\\s*begin\\\\s+sets;\\\\s*$\") ||\n sStr.toLowerCase().matches(\"^\\\\s*begin\\\\s+mrbayes;\\\\s*$\")) {\n parseAssumptionsBlock(fin);\n } else if (sStr.toLowerCase().matches(\"^\\\\s*begin\\\\s+taxa;\\\\s*$\")) {\n parseSATaxaBlock(fin);\n } else if (sStr.toLowerCase().matches(\"^\\\\s*begin\\\\s+trees;\\\\s*$\")) {\n parseSATreesBlock(fin);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n throw new Exception(\"Around line \" + lineNr + \"\\n\" + e.getMessage());\n }\n }", "public void readPatientListFromFile()\r\n\t{\n\t\tnextPatientLocation = 0;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Makes file reader objects and passes filename\r\n\t\t\tFileReader fr = new FileReader(patientMasterfile);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\r\n\t\t\t//reads first line and makes a blank patient \r\n\t\t\tString aReadLine = br.readLine();\r\n\t\t\tPatient tempRead = new Patient();\r\n\t\t\t//loops through all lines in the file\r\n\t\t\twhile(aReadLine != null)\r\n\t\t\t{\r\n\t\t\t\t//resets patient to null\r\n\t\t\t\ttempRead = new Patient();\r\n\t\t\t\t//Splits the read in data and assigns that data to the appropriate attribute \r\n\t\t\t\tString[] splitPatientData = aReadLine.split(\"~~\");\r\n\r\n\t\t\t\ttempRead.patientID = splitPatientData[0];\r\n\t\t\t\ttempRead.forename = splitPatientData[1];\r\n\t\t\t\ttempRead.surname = splitPatientData[2];\r\n\t\t\t\ttempRead.username = splitPatientData[3];\r\n\t\t\t\ttempRead.password = splitPatientData[4];\r\n\t\t\t\ttempRead.houseNumber = splitPatientData[5];\r\n\t\t\t\ttempRead.postcode = splitPatientData[6];\r\n\t\t\t\ttempRead.telephoneNumber = splitPatientData[7];\r\n\t\t\t\ttempRead.dob = splitPatientData[8];\r\n\t\t\t\ttempRead.mode = splitPatientData[9];\r\n\t\t\t\t//adds patient to list and gets the next line\r\n\t\t\t\taddPatientToList(tempRead);\r\n\t\t\t\taReadLine = br.readLine();\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t//catches any exceptions trown by reading \r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error reading file, \");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public List<String> nextSeveralLines() throws IOException {\n if (StringUtils.isBlank(currentPath)) return null;\n List<String> lista = new ArrayList<String>();\n String sCurrentLine;\n int temp = 1;\n\n bufferReader.mark(10000000);\n while ((sCurrentLine = bufferReader.readLine()) != null) {\n temp++;\n if (temp > counterSeveralLines) {\n for (int i = 0; i < linesAfter; i++) {\n if ((sCurrentLine = bufferReader.readLine()) != null) {\n counterSeveralLines++;\n lista.add(sCurrentLine);\n }\n }\n bufferReader.reset();\n return lista;\n }\n }\n return lista;\n }", "private void createLinesArray()\n {\n //This will iterate through the lines array\n for (int i = 0; i < lines.length; i++)\n {\n //Stop at end-of-File\n if (mapScanner.hasNextLine())\n {\n //Add the current line to the lines array\n lines[i] = mapScanner.nextLine();\n }\n }\n }", "public char[] newread(String filepath) {\n\n int x;\n char ch;\n numlines = 0;\n BufferedReader br = null;\n BufferedReader cr = null;\n /*stringBuilderdisp for storing data with new lines to display and stringBuilder\n seq for ignoring newlines and getting only sequence chars*/\n StringBuilder stringBuilderdisp = new StringBuilder();\n StringBuilder stringBuilderseq = new StringBuilder();\n String ls = System.getProperty(\"line.separator\");\n\n int f = 0;\n\n try {\n\n String sCurrentLine;\n\n br = new BufferedReader(new FileReader(filepath));\n\n while ((sCurrentLine = br.readLine()) != null) {\n if (f == 0 && sCurrentLine.contains(\">\")) {\n fileinfo = sCurrentLine;\n f = 1;\n } else {\n stringBuilderdisp.append(sCurrentLine);\n numlines++;\n if (!(sCurrentLine.isEmpty())) {\n stringBuilderdisp.append(ls);\n }\n\n stringBuilderseq.append(sCurrentLine);\n\n }\n\n }\n\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"ERROR File not found\");\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (br != null) {\n br.close();\n }\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"ERROR File not found\");\n //ex.printStackTrace();\n return null;\n\n }\n }\n\n //System.out.println(\"Total lines=\" + numlines);\n\n String seqstr = stringBuilderseq.toString();\n\n sequence = new char[seqstr.length()];\n //extra charflag to indicate that sequence contains charecter other than A,G,C,T\n boolean extracharflag = false, checkindex = false;\n\n for (int i = 0; i < sequence.length; i++) {\n if (seqstr.charAt(i) != '\\n') {\n sequence[i] = seqstr.charAt(i);\n }\n if (extracharflag == false) {\n if ((sequence[i] != 'A') && (sequence[i] != 'T') && (sequence[i] != 'G') && (sequence[i] != 'C')) {//||sequence[i]!='C'||sequence[i]!='G'||sequence[i]!='T'){\n extracharflag = true;\n System.out.print(\"** \" + sequence[i]);\n }\n }\n }\n\n if (extracharflag) {\n // JOptionPane.showMessageDialog(null, \"Sequence Contains Characters other than A G C T\");\n }\n\n int index = 0, flag = 0;\n\n // JOptionPane.showMessageDialog(null, \"Read Successful\");\n //return the sequence with newline properties to display\n //return stringBuilderdisp.toString().toCharArray();\n return sequence;\n\n }", "@Override\n\tpublic String readLine() throws IOException {\n\t\tString line = super.readLine();\n\t\n\t\tif(line==null){\n\t\t\treturn null;\n\t\t}\t\n\t\tline = count+\" \"+line;\n\t\tcount++;\n\t\treturn line;\n\t}", "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}", "public LinkedList<Sequence> parseFile() \n\t{\n\t\tString currstr = null;\n\t\t\n\t\t//moves onto first line of file\n\t\ttry {\n\t\t\tcurrstr = input.readLine();\n\t\t}\n\t\tcatch(IOException ioe) {\n\t\t\tSystem.err.println(\"ERROR encountered reading in line, exiting\");\n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\t//Main read-in loop\n\t\tString tempstr = new String();\n\t\tboolean finished = false;\n\t\tString descrip = currstr.substring(1);\n\t\twhile(!finished) {\n\t\t\t//moves onto next line of input file\n\t\t\ttry {\n\t\t\t\tcurrstr = input.readLine();\n\t\t\t}\n\t\t\tcatch(IOException ioe) {\n\t\t\t\tSystem.err.println(\"ERROR encountered reading in line, exiting\");\n\t\t\t\tioe.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t\n\t\t\t//checks to see if string is empty, if so, end of file, add tempstr to sequences, break\n\t\t\tif(currstr == null) {\n\t\t\t\tSequence seq = new Sequence(tempstr,descrip);\n\t\t\t\tsequences.addLast(seq);\n\t\t\t\tfinished = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//if first character is '>', add tempstr to sequences list, wipe tempstr, then break loop\n\t\t\tif(currstr.charAt(0) == '>') {\n\t\t\t\tSequence seq = new Sequence(tempstr,descrip);\n\t\t\t\tsequences.addLast(seq);\n\t\t\t\tdescrip = currstr.substring(1);\n\t\t\t\ttempstr = new String();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//attach currstr input string to end of tempstr\n\t\t\ttempstr += removeSpace(currstr.toUpperCase()); //FA convention\n\t\t}\n\t\treturn sequences;\n\t}", "private static String readNextLine(BufferedReader reader) {\n\t\t\n\t\ttry {\n\t\t\tString line = reader.readLine();\n\t\t\treturn line;\n\t\t} catch(IOException e) {\n\t\t\tGdx.app.error(TAG, \"Failed to read the file\", e);\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch(IOException ex) {\n\t\t\t\tGdx.app.error(TAG, \"Failed to close file\");\n\t\t\t\tGdx.app.exit();\n\t\t\t}\n\t\t\tGdx.app.exit();\n\t\t\treturn null;\n\t\t}\n\t}", "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 }", "public void readEdges(){\n for ( j= 0;j<edgesNum;j++){\n lineElements = lines.get(j+2).split(\" \");\n // System.out.println(lineElements[0]+\" \"+lineElements[1]);\n int start = Integer.parseInt(lineElements[0])-1;\n int end = Integer.parseInt(lineElements[1])-1;\n vertices.get(start).addAdj(vertices.get(end));\n vertices.get(end).addAdj(vertices.get(start));\n }\n\n // Read the edges for AI agents\n\n for ( j= 0;j<edgesNum;j++){\n lineElements = lines.get(j+2).split(\" \");\n // System.out.println(lineElements[0]+\" \"+lineElements[1]);\n int start = Integer.parseInt(lineElements[0]);\n int end = Integer.parseInt(lineElements[1]);\n allSCountries.get(start).adj.add(end);\n allSCountries.get(end).adj.add(start);\n }\n }", "public void importFnaBitSequences(String filename, int start, int end) {\n\n int currentKID = -1;\n SuperString currentSeq = new SuperString();\n //String currentName = \"\";\n boolean ignore = true; //do not write empty sequence to database\n\n TimeTotals tt = new TimeTotals();\n tt.start();\n\n System.out.println(\"\\nFNA import begins \" + tt.toHMS() + \"\\n\");\n try (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\n for (String line; (line = br.readLine()) != null; ) {\n\n if (debug) {\n System.err.println(\"Single line:: \" + line);\n }\n\n // if blank line, it does not count as new sequence\n if (line.trim().length() == 0) {\n if (debug) System.err.println(\" :: blank line detected \");\n\n if (!ignore)\n if(currentKID >= start && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n } else {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n\n else if (!ignore) {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n ignore = true;\n\n // if line starts with \">\", then it is start of a new reference sequence\n } else if (line.charAt(0) == '>') {\n if (debug) System.err.println(\" :: new entry detected \" + line);\n\n // save previous iteration to database\n if (!ignore && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n } else if (!ignore) {\n sequenceLength.add(currentSeq.length());\n exceptionsArr.add(new HashMap<>());\n }\n // initialize next iteration\n if (indexOf(line.trim()) == -1) {\n //original.addAndTrim(new Kid(line.trim()));\n //addNewKidEntry(line);\n add(new Kid(line.trim()));\n if (getLast()==start || (getLast()== 1 && start == 1)){\n System.err.println(\"Found KID\\t\" + currentKID + \"\\tbit string import started\");\n }\n }\n\n currentKID = getKid(line.trim()); // original.indexOf(line.trim());\n if (currentKID == -1) {\n System.err.println(\"This sequence not found in database : \" + line);\n listEntries(0);\n exit(0);\n }\n //currentSeq = \"\";\n\n currentSeq = new SuperString();\n\n ignore = false;\n } else {\n currentSeq.addAndTrim(line.trim());\n }\n\n\n if (currentKID >= end){\n break;\n }\n } //end for\n\n //write last\n if (!ignore && currentKID >= start && currentSeq.length() > 0) {\n storeSequence(currentKID, currentSeq, tt);\n }\n// else if (!ignore) {\n// sequenceLength.add(currentSeq.length());\n// exceptionsArr.add(new HashMap<>());\n// }\n br.close();\n\n }catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n\n }", "public Collection<FastqSequence> parse(File file)throws IOException{\n\t\tCollection<FastqSequence> rtrn=new ArrayList<FastqSequence>();\n\t\tString nextLine;\n while ((nextLine = reader.readLine()) != null && (nextLine.trim().length() > 0)) {\n \tif(nextLine.startsWith(\"@\")){\n \t\tString firstLine=nextLine;\n \t\tString secondLine=reader.readLine();\n \t\tString thirdLine=reader.readLine();\n \t\tString fourthLine=reader.readLine();\n \t\t\n \t\tFastqSequence seq=new FastqSequence(firstLine, secondLine,thirdLine, fourthLine);\n \t\t\t\n \t\trtrn.add(seq);\n \t}\n \t\n \t\n }\n return rtrn;\n\t}", "public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }", "public static void Load(String filename) throws IOException {\n\t\tLineNumberReader lnr = new LineNumberReader(new FileReader(filename));\r\n\t\t linenumber = 0;\r\n\t\t while (lnr.readLine() != null){\r\n\t\t\t linenumber++;\r\n\t\t }\r\n lnr.close();\r\n \tarrr=new String[linenumber][5];\r\n\t\tarr=arrr;\r\n\t\tBufferedReader br=new BufferedReader(new FileReader(filename));\r\n\t\t Scanner sc1=new Scanner(br);\r\n\t\t String ss=sc1.nextLine();\r\n\t\t String[] str1 = ss.split(\",\") ;\r\n\t\t String r=str1[0];\r\n\t\t String t=str1[1];\r\n\t\t String[] str2 = r.split(\":\") ;\r\n\t\t round= Integer.parseInt(str2[1]);\r\n\t\t String[] str3 = t.split(\":\") ;\r\n\t\t who=Integer.parseInt(str3[1]);\r\n\t\t arr=new String[linenumber][5];\r\n\t\t int num=0;\r\n\t\t while(sc1.hasNextLine()) {\t\r\n\t\t\t int i=0;\r\n\t\t\t num++;\r\n\t\t\t String x=sc1.nextLine();\r\n\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\twhile(i<5) {\r\n\t\t\t\tarr[num][i]=str[i];\r\n\t\t\t\ti++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t int c=1;\r\n\t ch=new Character[linenumber];\r\n\r\n\t\t\twhile(c<(linenumber)) {\r\n\t\t\t\t\r\n\t\t\t\tch[c]=new Character(Integer.parseInt(arr[c][0]),Integer.parseInt(arr[c][1]),Integer.parseInt(arr[c][2]),Integer.parseInt(arr[c][3]),arr[c][4]);\t\t\t\t\t\t\t\r\n\t\t\t\tc++;\r\n\t\t\t}\t\r\n\t\t\r\n\t\t sc1.close();\r\n\t\t String file=\"Land.txt\";\r\n\t\t\tBufferedReader br2=new BufferedReader(new FileReader(file));\r\n\t\t\tland=new String[20][2];\r\n\t\t\tland2=new String[20][2];\r\n\t\t\tland=land2;\r\n\t\t\tScanner sc2=new Scanner(br2);\r\n\t\t\tString strr=sc2.nextLine();\r\n\t\t\tnum=0;\r\n\t\t\t while(sc2.hasNextLine()) {\t\r\n\t\t\t\t int i=0;\r\n\t\t\t\t num++;\r\n\t\t\t\t String x=sc2.nextLine();\t\t\t\r\n\t\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\t\twhile(i<2) {\r\n\t\t\t\t\tland[num][i]=str[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t }\t\t\t\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t String url = \"//localhost:3306/checkpoint?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT\";\r\n\t\t // String url=\"//140.127.220.220/\";\r\n\t\t // String dbname=\"CHECKPOINT\";\r\n\t\t\t Connection conn = null;\r\n\t\t try{\r\n\t\t conn = DriverManager.getConnection(protocol + url,username,passwd);\r\n\t\t Statement s = conn.createStatement();\r\n\t\t String sql = \"SELECT PLACE_NUMBER,LAND_PRICE,TOLLS FROM LAND\";\r\n\t\t rs=s.executeQuery(sql);\r\n\t\t p_number=new int[20];\r\n\t\t l_price=new int[20];\r\n\t\t tolls=new int[20];\r\n\t\t grid=0;\r\n\t\t while(rs.next()){\r\n\t\t \tgrid++;\r\n\t\t \tp_number[grid]=rs.getInt(\"PLACE_NUMBER\");\r\n\t\t \tl_price[grid]=rs.getInt(\"LAND_PRICE\");\r\n\t\t \ttolls[grid]=rs.getInt(\"TOLLS\");\t \t\t \t\r\n\t\t }\t\t \t\t \r\n\t\t rs.close();\r\n\t\t conn.close();\r\n\t\t } catch(SQLException err){\r\n\t\t System.err.println(\"SQL error.\");\r\n\t\t err.printStackTrace(System.err);\r\n\t\t System.exit(0);\r\n\t\t }\r\n\t\t\t Land=new Land[20];\r\n\t\t\t Land2=new Land[20];\r\n\t\t\t Land=Land2;\t\t\t \r\n\t\t \tfor(int i=1;i<=grid;i++) {\r\n\t\t \t\tLand[i]=new Land(p_number[i],Integer.parseInt(land[i][1]),l_price[i],tolls[i]);\t \t\t\r\n\t\t \t}\r\n\t\t\t sc2.close();\r\n\t}", "private void parse(Reader reader) throws IOException {\n/* 260 */ BufferedReader buf_reader = new BufferedReader(reader);\n/* 261 */ String line = null;\n/* 262 */ String continued = null;\n/* */ \n/* 264 */ while ((line = buf_reader.readLine()) != null) {\n/* */ \n/* */ \n/* 267 */ line = line.trim();\n/* */ \n/* */ try {\n/* 270 */ if (line.charAt(0) == '#')\n/* */ continue; \n/* 272 */ if (line.charAt(line.length() - 1) == '\\\\') {\n/* 273 */ if (continued != null) {\n/* 274 */ continued = continued + line.substring(0, line.length() - 1); continue;\n/* */ } \n/* 276 */ continued = line.substring(0, line.length() - 1); continue;\n/* 277 */ } if (continued != null) {\n/* */ \n/* 279 */ continued = continued + line;\n/* */ \n/* */ try {\n/* 282 */ parseLine(continued);\n/* 283 */ } catch (MailcapParseException e) {}\n/* */ \n/* */ \n/* 286 */ continued = null;\n/* */ \n/* */ continue;\n/* */ } \n/* */ try {\n/* 291 */ parseLine(line);\n/* */ }\n/* 293 */ catch (MailcapParseException e) {}\n/* */ \n/* */ \n/* */ }\n/* 297 */ catch (StringIndexOutOfBoundsException e) {}\n/* */ } \n/* */ }", "private String[] readNextRecord() throws IOException {\n final String nextLine = getNextLine();\n return parseLine(nextLine, true);\n }", "public static void reader() throws FileNotFoundException {\n\t\tSystem.out.println(\"Estamos calculando sua rota. Por favor aguarde...\");\n\t\tstops = GTFSReader.loadStops(\"bin/arquivos/stops.txt\");\n\t\tMap<String,Route>routes = GTFSReader.loadRoutes(\"bin/arquivos/routes.txt\");\n\t\tMap<String,Shape> shapes = GTFSReader.loadShapes(\"bin/arquivos/shapes.txt\");\n\t\tMap<String,Service> calendar = GTFSReader.loadServices(\"bin/arquivos/calendar.txt\");\n\t\ttrips = GTFSReader.loadTrips(\"bin/arquivos/trips.txt\",routes,calendar,shapes);\n\t\tGTFSReader.loadStopTimes(\"bin/arquivos/stop_times.txt\", trips, stops);\n\t\tSystem.out.println(\"Rota calculada!\\n\");\n\t}", "public void read(){\n assert(inputStream.hasNext());\n\n while(inputStream.hasNextLine()){\n String line = inputStream.nextLine();\n String[] fields = line.split(\";\");\n\n //If Line is address line\n if(fields.length >= 4){\n Address adr = new Address(fields[0], fields[1], fields[2], fields[3]);\n if(fields.length == 5){\n parseGroups(fields[4], adr);\n }\n inputAddressList.add(adr);\n }\n\n //If Line is Group Line\n else if(fields.length <=3){\n Group group = new Group(fields[0], Integer.parseInt(fields[1]));\n if(fields.length == 3){\n parseGroups(fields[2], group);\n }\n inputGroupList.add(group);\n }\n }\n compose();\n assert(invariant());\n }", "public List<String> nextOneLine() throws IOException {\n counterSeveralLines = linesAfter;\n if (StringUtils.isBlank(currentPath)) return null;\n String sCurrentLine;\n if ((sCurrentLine = bufferReader.readLine()) != null) {\n listBefore = addToArray(sCurrentLine);\n }\n return listBefore;\n }", "private void buildMovementData(File crinkleViewerFile) {\n\t\t// read from a file\n\t\tScanner sc;\n\t\ttry {\n\t\t\tsc = new Scanner(crinkleViewerFile);\n\t\t\twhile (sc.hasNextLine()) {\n\t\t\t\trecieve(sc.nextLine());\n\t\t\t}\n\t\t\tsc.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "private void init() {\n\n MyFileReader finalResultReader = null;\n\n finalResultReader = new MyFileReader(FilePath.billboardCombineResultPath);\n\n String line = \"\";\n\n while (true) {\n\n line = finalResultReader.getNextLine();\n if (line == null)\n break;\n\n String[] elements = line.split(\" \");\n if (elements.length == 1)\n continue; // skip those billboard which can not influence any route\n\n String panelID = elements[0].split(\"~\")[0]; // panelID~weeklyImpression\n int weeklyImpression = Integer.parseInt(elements[0].split(\"~\")[1]);\n\n\n List<Integer> routeIDs = new ArrayList<>();\n\n for (int i = 1; i < elements.length; i++) {\n\n int routeID = Integer.parseInt(elements[i]);\n //if (routeID < length) {\n routeIDs.add(routeID);\n //}\n }\n\n panelIDs.add(panelID);\n weeklyImpressions.add(weeklyImpression);\n routeIDsOfBillboards.add(routeIDs);\n\n }\n setUpRouteIDsAndIndexes();\n finalResultReader.close();\n }", "public VCFLine getNextLine () throws IOException {\n\t\tgoNextLine();\n\t\treturn reader.getCurrentLine();\n\t}", "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public ReversedLinesFileReader(File file, int blockSize, Charset encoding) throws IOException {\n/* 96 */ this.blockSize = blockSize;\n/* 97 */ this.encoding = encoding;\n/* */ \n/* */ \n/* 100 */ Charset charset = Charsets.toCharset(encoding);\n/* 101 */ CharsetEncoder charsetEncoder = charset.newEncoder();\n/* 102 */ float maxBytesPerChar = charsetEncoder.maxBytesPerChar();\n/* 103 */ if (maxBytesPerChar == 1.0F)\n/* */ \n/* 105 */ { this.byteDecrement = 1; }\n/* 106 */ else if (charset == Charsets.UTF_8)\n/* */ \n/* */ { \n/* 109 */ this.byteDecrement = 1; }\n/* 110 */ else if (charset == Charset.forName(\"Shift_JIS\") || charset == Charset.forName(\"windows-31j\") || charset == Charset.forName(\"x-windows-949\") || charset == Charset.forName(\"gbk\") || charset == Charset.forName(\"x-windows-950\"))\n/* */ \n/* */ { \n/* */ \n/* */ \n/* */ \n/* 116 */ this.byteDecrement = 1; }\n/* 117 */ else if (charset == Charsets.UTF_16BE || charset == Charsets.UTF_16LE)\n/* */ \n/* */ { \n/* 120 */ this.byteDecrement = 2; }\n/* 121 */ else { if (charset == Charsets.UTF_16) {\n/* 122 */ throw new UnsupportedEncodingException(\"For UTF-16, you need to specify the byte order (use UTF-16BE or UTF-16LE)\");\n/* */ }\n/* */ \n/* 125 */ throw new UnsupportedEncodingException(\"Encoding \" + encoding + \" is not supported yet (feel free to \" + \"submit a patch)\"); }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 130 */ this.newLineSequences = new byte[][] { \"\\r\\n\".getBytes(encoding), \"\\n\".getBytes(encoding), \"\\r\".getBytes(encoding) };\n/* */ \n/* 132 */ this.avoidNewlineSplitBufferSize = (this.newLineSequences[0]).length;\n/* */ \n/* */ \n/* 135 */ this.randomAccessFile = new RandomAccessFile(file, \"r\");\n/* 136 */ this.totalByteLength = this.randomAccessFile.length();\n/* 137 */ int lastBlockLength = (int)(this.totalByteLength % blockSize);\n/* 138 */ if (lastBlockLength > 0) {\n/* 139 */ this.totalBlockCount = this.totalByteLength / blockSize + 1L;\n/* */ } else {\n/* 141 */ this.totalBlockCount = this.totalByteLength / blockSize;\n/* 142 */ if (this.totalByteLength > 0L) {\n/* 143 */ lastBlockLength = blockSize;\n/* */ }\n/* */ } \n/* 146 */ this.currentFilePart = new FilePart(this.totalBlockCount, lastBlockLength, null);\n/* */ }", "public void readFromStream(Reader r) throws IOException\n\t{\n\t\tBufferedReader br=new BufferedReader(r);\n\t\tlines=new ArrayList();\n\n\t\twhile(true) {\n\t\t\tString input=br.readLine();\n\t\t\tif(input==null)\n\t\t\t\tbreak;\n\t\t\tlines.add(input);\n\t\t}\n\t}", "public void readPrescription() {\n\t\tBufferedReader br;\n\t\tString s;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(\"prescriptions.txt\"));\n\n\t\t\twhile ((s = br.readLine()) != null) {\n\t\t\t\t//stores first half of information on the line into Prescription ArrayList\n\t\t\t\tString[] fields = s.split(\", \");\n\t\t\t\t\n\t\t\t\tString iD = fields[0];\n\t\t\t\tString dateIssued = fields[1];\n\t\t\t\tString doctor = fields[2];\n\t\t\t\tPrescription prescription = new Prescription(iD, dateIssued, doctor, new ArrayList<DrugLine>());\n\t\t\t\tscripts.add(prescription);\n\n\t\t\t\t//stores second half of information on the line into DrugLine ArrayList\n\t\t\t\tString[] f2 = fields[3].split(\"/\"); //splits multiple DrugLines\n\t\t\t\tString[] f3;\n\t\t\t\tfor (int i = 0; i < f2.length; i++) {\n\t\t\t\t\tf3 = f2[i].split(\" \"); //splits elements of DrugLine\n\t\t\t\t\tprescription.getDrugLines()\n\t\t\t\t\t\t\t.add(new DrugLine(f3[0], f3[1], Integer.parseInt(f3[2]), Integer.parseInt(f3[3])));\n\t\t\t\t}\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 static ArrayList<BoardPair> readFile(String inFileName, String format) {\n ArrayList<BoardPair> boardPairs = new ArrayList<BoardPair>();\n try { \n File inFile = new File(inFileName); \n BufferedReader reader = new BufferedReader(new FileReader(inFile));\n String line = null;\n while ((line=reader.readLine()) != null) { // loop as long as there are input lines \n if(line.contains(\"id,delta\")) \n continue; // skip header\n String str = line.trim(); \n // line fields are: id, delta, start1..400, stop1..400\n String[] tokens = str.split(\",\"); \n int row_id = Integer.parseInt( tokens[0] );\n int delta = Integer.parseInt( tokens[1] );\n int[][] startBoard = new int[Consts.BOARD_SIDE][Consts.BOARD_SIDE]; \n int[][] stopBoard = new int[Consts.BOARD_SIDE][Consts.BOARD_SIDE]; \n for(int col=0; col<Consts.BOARD_SIDE; col++) { \n for(int row=0; row<Consts.BOARD_SIDE; row++) {\n if(format==\"train\") { \n // train format: id, delta, start.1-start.400, stop.1-stop.400\n // note column major order!\n int startIndex = col*Consts.BOARD_SIDE + row + 2; \n int stopIndex = startIndex + Consts.BOARD_SIDE*Consts.BOARD_SIDE;\n startBoard[row][col]= Integer.parseInt( tokens[startIndex] );\n stopBoard[ row][col]= Integer.parseInt( tokens[stopIndex ] );\n } \n if(format==\"test\") {\n // test format is: id, delta, stop.1-stop.400\n // note column major order!\n int stopIndex = col*Consts.BOARD_SIDE + row + 2; \n startBoard = null; \n stopBoard[ row][col]= Integer.parseInt( tokens[stopIndex ] );\n }\n }\n }\n boardPairs.add( new BoardPair(row_id, delta, startBoard, stopBoard) );\n } \n reader.close(); \n } catch (IOException e) {\n System.out.println(\"ERROR reading: \" + inFileName);\n }\n return boardPairs;\n }", "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 }", "public static ArrayList<String> getRenglones(FileReader file) throws IOException {\n ArrayList<String> producciones = new ArrayList<>();\n BufferedReader b = new BufferedReader(file);\n\n String readedString;\n while ((readedString = b.readLine()) != null) { //cuando b.readLine() == null significa que se ha encontrado un salto de linea (retorno de carro —\\n—)\n producciones.add(readedString);\n }\n return producciones;\n }", "private List<String> nextRecord() {\n\t\t\t\t\tList<String> record = new LinkedList<String>();\n\t\t\t\t\twhile (lines.hasNext()) {\n\t\t\t\t\t\tString line = lines.next();\n\t\t\t\t\t\tif (line.startsWith(\"---\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\trecord.add(line);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\treturn record;\n\t\t\t\t}", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private void getOriginalTimeTable (FileReader fileReader) {\n\n\t\tBufferedReader bufferedReader = null;\n\n\t\tString line = null;\n\n\t\ttry {\n\t\t\tbufferedReader = new BufferedReader (fileReader);\n\t\t\t\n\t\t\tint noOfEnteries = 0;\n\n\t\t\twhile ((line = bufferedReader.readLine ()) != null) {\n\t\t\t\t\n\t\t\t\tnoOfEnteries++;\n\t\t\t\t\n\t\t\t\tif (noOfEnteries > MAXIMUM_NUMBER_OF_ENTRIES)\n\t\t\t\t\tbreak;\n\n\t\t\t\tString service[] = line.split (\" \");\n\n\t\t\t\tString companyName = service[0];\n\n\t\t\t\tboolean isJai = true;\n\n\t\t\t\tif (companyName.equals (VEERU)) {\n\t\t\t\t\tisJai = false;\n\t\t\t\t}\n\n\t\t\t\tsetServiceDTO (service, isJai);\n\t\t\t}\n\n\t\t} catch (IOException | IllegalArgumentException e) {\n\t\t\te.printStackTrace ();\n\t\t} finally {\n\n\t\t\ttry {\n\t\t\t\tif (bufferedReader != null) {\n\t\t\t\t\tbufferedReader.close ();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace ();\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"deprecation\")\n private int readMeals(String eateryname, String filePath) {\n Dish curdish;\n Meal curmeal = null;\n Calendar curdate = Calendar.getInstance();\n curdate.set(0, 0, 0); // Initialize date to 0.\n boolean newdate = false;\n boolean nutrerror = false;\n try {\n _stream = new FileInputStream(filePath);\n\n _instream = new DataInputStream(_stream);\n _bufread = new BufferedReader(new InputStreamReader(_instream));\n\n TextParser parser = new TextParser();\n String line;\n boolean ingrediants;\n\n while (true) { //loop until we break\n nutrerror = false; //this is if the PDF leaves out necessary information in the nutrition facts section\n //initially set this to false at the start of reading each dish (each loop)\n\n //Read in the line that starts a new dish, and create a dish with the string in this line\n if ((line = _bufread.readLine()) != null) {\n //read in the dish name and create a new dish\n if (line.charAt(0) == '\f') { //check for and delete this weird character the PDF to text sometimes gives.\n line = line.substring(1);\n }\n\n //create a new dish of this name\n curdish = new Dish(line);\n curdish.setLocation(new Location(eateryname));\n } else {\n break;\n }\n\n //Read in the line under the name. It should be the ingrediants\n if ((line = _bufread.readLine()) != null) {\n ingrediants = parser.SetIngrediants(curdish, line);\n\n } else {\n break;\n }\n if (ingrediants) { //if ingrediants did not have an issue then read the empty line\n //and then read in the ingrediants header\n // otherwise you don't want to do this as there were no ingrediants\n //and the line you thought was ingrediants is really the nutrition facts header\n\n //Read in the empty line seperator\n if ((line = _bufread.readLine()) != null) { //read in an empty line\n\n } else {\n break;\n }\n //Read in the next line and make sure it is the nutrition facts header\n if ((line = _bufread.readLine()) != null) {\n if (line.compareTo(\"Nutrition Facts\") != 0) {\n //this means things are not formatted as expected\n }\n } else {\n break;\n }\n }\n //Under the nutrition facts header is the list of nutrition facts\n if ((line = _bufread.readLine()) != null) {\n nutrerror = parser.setNutritionFacts(curdish, line);\n } else {\n break;\n }\n\n //read in empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n\n //read in the location line\n if ((line = _bufread.readLine()) != null) {\n } else {\n break;\n }\n\n //read in the empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n\n //read in the line that should have the date\n //use result to check for error and set newdate\n if ((line = _bufread.readLine()) != null) { //this line should have the date\n Calendar d = parser.setDate(curdish, line, curdate);\n if (d.equals(curdate)) //if the date returned is the same date, then there was no changed\n {\n newdate = false;\n } else { //if the date returned is different, then there is a newdate and curdate should be updated\n newdate = true;\n curdate = d;\n }\n } else {\n break;\n }\n\n //read in the empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n\n //this line says Breakfast, Lunch, Dinner.... etc\n //check this line and the newdate variable to see if the dish should be added to the current meal\n //or if we need a whole new meal\n if ((line = _bufread.readLine()) != null) {\n //if this is the first dish, so there is no meal create a meal and add the dish && set the date\n if (curmeal == null) {\n curmeal = new Meal(line.toLowerCase());\n curdish.setDate(curdate);\n curdish.setMeal(curmeal);\n _dishes.add(curdish);\n } else if (curmeal.getMeal().equals(line) == false || newdate == true) {\n //this is the beginning of a new meal, add the cur meal to eatery and create a new one with the most recent date\n curmeal = new Meal(line.toLowerCase());\n curdish.setMeal(curmeal);\n curdish.setDate(curdate);\n } else { //this is just part of the current meal, add it and move on to the next one\n curdish.setMeal(curmeal);\n curdish.setDate(curdate);\n }\n } else {\n break;\n }\n\n //read in the empty line separator\n if ((line = _bufread.readLine()) != null) {\n\n } else {\n break;\n }\n _dishes.add(curdish);\n //move on to the next dish in the text file\n }\n \n } catch (FileNotFoundException e) {\n return -1;\n } catch (IOException e) {\n e.printStackTrace();\n return 0;\n } finally {\n if (_instream != null) {\n try {\n _instream.close();\n } catch (IOException e) {\n\n }\n }\n\n if (_bufread != null) {\n try {\n _bufread.close();\n } catch (IOException e) {\n\n }\n }\n\n if (_stream != null) {\n try {\n _stream.close();\n } catch (IOException e) {\n\n }\n }\n }\n return 1;\n }", "private void readNext() {\n nextLine = null;\n try {\n while (nextLine == null) {\n nextLine = reader.readNext();\n reader.consumeEmptyLines();\n if (reader.eof()) {\n break;\n }\n }\n if (nextLine != null) {\n super.recordCounter++;\n if (super.readLimit > 0 && super.recordCounter > super.readLimit) {\n nextLine = null;\n }\n }\n } catch (Exception ignore) {\n // no more lines\n }\n }", "private void readLine() throws IOException {\n line = reader.readLine(); // null at the end of the source\n currentPos = -1;\n\n if (line != null) {\n lineNum++;\n }\n\n if (line != null) {\n sendMessage(new Message(MessageType.SOURCE_LINE, new Object[]{lineNum, line}));\n }\n }", "public void inputFromStream(BufferedReader dis) throws IOException {\n String line = dis.readLine();\n setFile(line);\n int lines = Str.strToInt(dis.readLine());\n if (lines != 0) {\n lineNos = new int[lines];\n for (int i = 0; i < lineNos.length; ++i) {\n lineNos[i] = Str.strToInt(dis.readLine());\n }\n }\n }", "public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }", "public void readFromFile(){\n\t\ttry {\r\n\t\t\tFile f = new File(\"E:\\\\Study\\\\Course\\\\CSE215L\\\\Project\\\\src\\\\Railway.txt\");\r\n\t\t\tScanner s = new Scanner(f);\r\n\t\t\tpersons = new Person2 [50]; \r\n\t\t\tint i = 0;\r\n\t\t\t\r\n\t\t\twhile(s.hasNextLine()){\r\n\t\t\t\tString a = s.nextLine();\r\n\t\t\t\tString b = s.nextLine();\r\n\t\t\t\tString c = s.nextLine();\r\n\t\t\t\tString d = s.nextLine();\r\n\t\t\t\tString e = s.nextLine();\r\n\t\t\t\tString g = s.nextLine();\r\n\t\t\t\tString h = s.nextLine();\r\n\t\t\t\tString j = s.nextLine();\r\n\t\t\t\tPerson2 temp = new Person2 (a,b,c,d,e,g,h,j);\r\n\t\t\t\tpersons[i] = temp;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "public FilePartReader() {\n filePath = \"/home/cc/Desktop/OopModule/testing/filepartreader-testing-with-junit-grzechu31/text.txt\";\n fromLine = 1;\n toLine = 10;\n }", "public void readFile(File file) {\n\ttry (BufferedReader br = new BufferedReader(new FileReader(file)))\n\t{\n\n\t\tString sCurrentLine;\n\t\tString [] lineElements;\n\t\t\n\t\t// read the headlines\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumVertices = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\tnumPaths = Integer.parseInt(lineElements[1]);\n\t\tsCurrentLine = br.readLine();\n\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\ttmax = Double.parseDouble(lineElements[1]);\n\t\t\n//\t\tSystem.out.println(numVertices + \", \" + numPaths + \", \" + tmax);\n\n\t\t/* read benefits1 */\n\t\tint index = 0;\n\t\twhile ((sCurrentLine = br.readLine()) != null) {\n//\t\t\t\tSystem.out.println(sCurrentLine);\n\t\t\tlineElements = sCurrentLine.split(\"\\\\s+\");\n\t\t\tdouble x = Double.parseDouble(lineElements[0]);\n\t\t\tdouble y = Double.parseDouble(lineElements[1]);\n\t\t\tList<Double> scores = new ArrayList<Double>();\n\t\t\tfor (int i = 2; i < lineElements.length; i++) {\n\t\t\t\tdouble score = Double.parseDouble(lineElements[i]);\n\t\t\t\tscores.add(new Double(score));\n\t\t\t}\n\t\t\tPOI POI = new POI(index, x, y, scores);\n\t\t\t//POI.printMe();\n\t\t\t\n\t\t\tvertices.add(POI);\n\t\t\tindex ++;\n\t\t}\n\t\t\n\t\t// create the arcs and the graph\n\t\tfor (int i = 0; i < vertices.size(); i++) {\n\t\t\tfor (int j = 0; j < vertices.size(); j++) {\n\t\t\t\tArc arc = new Arc(vertices.get(i), vertices.get(j));\n\t\t\t\tarcs.add(arc);\n\t\t\t\tgraph.put(new Tuple2<POI, POI>(vertices.get(i), vertices.get(j)), arc);\n\t\t\t}\n\t\t}\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n}", "public void parseFile(){\n try{\n BufferedReader br = new BufferedReader(new FileReader(\"ElevatorConfig.txt\"));\n \n String fileRead;\n \n totalSimulatedTime = 1000;\n Integer.parseInt(br.readLine());\n simulatedSecondRate = 30;\n Integer.parseInt(br.readLine());\n \n for (int onFloor = 0; onFloor< 5; onFloor++){\n \n fileRead = br.readLine(); \n String[] tokenize = fileRead.split(\";\");\n for (int i = 0; i < tokenize.length; i++){\n String[] floorArrayContent = tokenize[i].split(\" \");\n \n int destinationFloor = Integer.parseInt(floorArrayContent[1]);\n int numPassengers = Integer.parseInt(floorArrayContent[0]);\n int timePeriod = Integer.parseInt(floorArrayContent[2]);\n passengerArrivals.get(onFloor).add(new PassengerArrival(numPassengers, destinationFloor, timePeriod));\n }\n }\n \n br.close();\n \n } catch(FileNotFoundException e){ \n System.out.println(e);\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n\n }", "private void read(String filename) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(filename));\n\t\t\n\t\t//a variable that will increase by one each time another element is added to the array\n\t\t//to ensure array size is correct\n\t\tint numStation = 0;\n\t\t\n\t\t//ignores first 6 lines\n\t\tfor(int i = 0; i < 3; ++i){\n\t\t\tbr.readLine();\n\t\t}\n\t\t\n\t\t//sets String equal readline\n\t\tString lineOfData = br.readLine();\n\n\t\twhile(lineOfData != null)\n\t\t{\n\t\t\tString station = new String();\n\t\t\tstation = lineOfData.substring(10,14);\n\t\t\tMesoAsciiCal asciiAverage = new MesoAsciiCal(new MesoStation(station));\n\t\t\tint asciiAvg = asciiAverage.calAverage();\t\t\n\n\t\t\tHashMap<String, Integer> asciiVal = new HashMap<String, Integer>();\n\t\t\t//put the keys and values into the hashmap\n\t\t\tasciiVal.put(station, asciiAvg);\n\t\t\t//get ascii interger avg value\n\t\t\tInteger avg = asciiVal.get(station);\n\t\t\t\n\t\t\thashmap.put(station,avg);\n\t\t\t\n\t\t\tlineOfData = br.readLine();\n\t\t\t\n\t\t}\n\t\t\n\t\tbr.close();\n\t}", "public void criaTrolls() throws FileNotFoundException, IOException{\n \n String[] vetorNomes;\n vetorNomes = new String[20];\n int i = 0;\n String endereco = System.getProperty(\"user.dir\");\n endereco = endereco + \"/nomes/Nomes.txt\";\n Scanner leitor = new Scanner(new FileReader(endereco));\n while(leitor.hasNext() && i < 20){\n \n vetorNomes[i] = leitor.next();\n ++i;\n }\n // Atribuindo nomes aos trolls.\n Random gerador = new Random();\n int qtde = gerador.nextInt(2);\n for(i = 0; i < qtde; ++i){\n \n int rd = gerador.nextInt(20);\n setNome(vetorNomes[rd], i);\n }\n setQtdeTrolls(qtde);\n }", "public List<GATKRead> makeReads() {\n if ( createdReads == null ) {\n final String baseName = \"read\";\n final LinkedList<SAMReadGroupRecord> readGroups = new LinkedList<>();\n for ( final SAMReadGroupRecord rg : header.getReadGroups()) {\n readGroups.add(rg);\n }\n\n final List<GATKRead> reads = new ArrayList<>(nReadsPerLocus*nLoci);\n for ( int locusI = 0; locusI < nLoci; locusI++) {\n final int locus = locusI * (skipNLoci + 1);\n for ( int readI = 0; readI < nReadsPerLocus; readI++ ) {\n for ( final SAMReadGroupRecord rg : readGroups ) {\n final String readName = String.format(\"%s.%d.%d.%s\", baseName, locus, readI, rg.getId());\n final GATKRead read = ArtificialReadUtils.createArtificialRead(header, readName, 0, alignmentStart + locus, readLength);\n read.setReadGroup(rg.getId());\n reads.add(read);\n }\n }\n }\n\n if ( ! additionalReads.isEmpty() ) {\n reads.addAll(additionalReads);\n Collections.sort(reads, new ReadCoordinateComparator(header));\n }\n\n createdReads = new ArrayList<>(reads);\n }\n\n return createdReads;\n }", "private void redrawLines()\n {\n for(int i =0; i<currentRide;i++)\n {\n rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines\n \n }\n }", "public String readNextLine() throws IOException {\n if (this.reader == null) {\n return null;\n }\n\n boolean openNext = false;\n String line;\n while ((line = this.reader.readLine()) == null) {\n // The current file is read at the end, ready to read next one\n this.close(this.index);\n\n if (++this.index < this.readables.size()) {\n // Open the second or subsequent readables, need\n this.reader = this.open(this.index);\n openNext = true;\n } else {\n return null;\n }\n }\n // Determine if need to skip duplicate header\n if (openNext && isDuplicateHeader(line)) {\n line = this.readNextLine();\n }\n return line;\n }", "public void readViolationList (BufferedReader reader) {\n String line = \"\";\n try {\n reader.readLine();\n reader.readLine();\n while ((line = reader.readLine()) != null) {\n addToViolationList(line);\n }\n } catch (Exception e) {\n }\n }", "public void fileReadGameHistory(String filename)\n {\n \t//ArrayList<GameObject> gameObject = new ArrayList<>();\n\t\tFileReader file = null;\n\t\ttry {\n\t\t\tfile = new FileReader(filename);\n\t\t} catch (FileNotFoundException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(filename);\n\t\tBufferedReader br = new BufferedReader(file);\n\t\tString s = \"\";\n\t\ttry\n\t\t{\n\t\t\twhile((s = br.readLine()) != null )\n\t\t\t{\n\t\t\t\tString[] prop1 = s.split(\"#\");\n\t\t\t\tSystem.out.println(prop1[0] + \" fgdfsgfds \" + prop1[1]);\n\t\t\t\tString indexOfList = prop1[0];\n\t\t\t\tString[] prop2 = prop1[1].split(\",\");\n\t\t\t\tString[] prop3;\n\t\t\t\tString[] prop4 = indexOfList.split(\";\");\n\t\t\t\t//gameObject.add(new GameObject(indexOfList));\n\t\t\t\tcount = count +1;\n\t\t\t\texistCount = existCount + 1;\n\t\t\t\tif (indexOfList.charAt(0) == 's')//when this line is data of a swimming game\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(prop4[0]);\n\t\t\t\t\tgames.add(new Swimming(prop4[1],\"Swimming\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'c')//when this line is data of a cycling game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Cycling(prop4[1],\"Cycling\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'r')//when this line is data of a running game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Running(prop4[1],\"Running\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "int getLinesRead();", "public static void ReadVehicle(String inputfile, String outputfile, String[] styleids) {\n\r\n\t\tString StyleID_0 = \"\";\r\n\t\tString ImageID_1 = \"\";\r\n\t\tString FileName_2 = \"\";\r\n\t\tString Type_3 = \"\";\r\n\t\tString Background_4 = \"\";\r\n\t\tString Size_5 = \"\";\r\n\t\tString Carryover_6 = \"\";\r\n\t\tString Year_7 = \"\";\r\n\t\tString DivisionName_8 = \"\";\r\n\t\tString ModelName_9 = \"\";\r\n\t\tString BodyType_10 = \"\";\r\n\t\tString ExactMatch_11 = \"\";\r\n\t\tString OEMTemp_12 = \"\";\r\n\t\t// Assume default encoding.\r\n\t\tFileWriter fileWriter = null;\r\n\t\ttry {\r\n\t\t\tfileWriter = new FileWriter(outputfile);\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\r\n\t\t// Always wrap FileWriter in BufferedWriter.\r\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\r\n\r\n\t\tSystem.out.println(\"Started!\");\r\n\t\tint styleLenth = styleids.length;\r\n\t\tfor (String styleid : styleids) {\r\n\r\n\t\t\ttry (BufferedReader br = new BufferedReader(new FileReader(inputfile))) {\r\n\t\t\t\tString line;\r\n\t\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\t\t// process the line.\r\n\t\t\t\t\tList<String> elephantList = Arrays.asList(line.split(\",\"));\r\n\t\t\t\t\tStyleID_0 = elephantList.get(0);\r\n\t\t\t\t\t// StyleID_0=elephantList.get(12); //\r\n\r\n\t\t\t\t\tif (StyleID_0.equalsIgnoreCase(styleid)) {\r\n\t\t\t\t\t\t// if (StyleID_0.equalsIgnoreCase(\"~Y~\")) {\r\n\t\t\t\t\t\tbufferedWriter.write(line);\r\n\t\t\t\t\t\tbufferedWriter.newLine();\r\n\r\n\t\t\t\t\t\tSystem.out.println(line);\r\n\t\t\t\t\t\t// System.out.println(elephantList);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\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} catch (IOException 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\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tbufferedWriter.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\tSystem.out.println(\"Total StyleIDs=\" + styleLenth + \". Complete!\");\r\n\r\n\t}", "public void resetLines() throws IOException {\n counterSeveralLines = linesAfter;\n if (currentPath != null) {\n bufferReader.close();\n fileReader.close();\n fileReader = new FileReader(currentPath);\n bufferReader = new BufferedReader(fileReader);\n arrayPreviousLines = new String[prevSize];\n resetDateBefore();\n }\n }", "private String rooverSetUp() throws IOException\n {\n if (fileName == null)\n {\n System.err.println(\"Please set fileName before calling runRoover\");\n return null;\n }\n \n BufferedReader r = new BufferedReader(new FileReader(fileName));\n String[] dims = r.readLine().split(\" \"); //reads the first line, which is the dimensions of our grid\n numCols = Integer.parseInt(dims[0]);\n numRows = Integer.parseInt(dims[1]);\n String[] dirtPosArr;\n String currDirtPos;\n \n //read in rooverPos\n String[] rooverPosStr = r.readLine().split(\" \");\n currXPos = Integer.parseInt(rooverPosStr[0]);\n currYPos = Integer.parseInt(rooverPosStr[1]);\n \n //validate inputs\n if (numCols <= 0 || numRows <= 0 || currXPos < 0 || currXPos > numCols - 1 \n || currYPos < 0 || currYPos > numRows - 1)\n {\n System.err.println(\"Invalid inputs for board size or starting roover position.\");\n r.close();\n return null;\n }\n \n String currLine = r.readLine();\n String nextLine = r.readLine();\n //set up the roover and dirt patches\n while (nextLine != null)\n {\n dirtPosArr = currLine.split(\" \");\n \n //validate dirt pos\n if (Integer.parseInt(dirtPosArr[0]) < 0 || Integer.parseInt(dirtPosArr[0]) > numCols - 1\n || Integer.parseInt(dirtPosArr[1]) < 0 || Integer.parseInt(dirtPosArr[1]) > numRows - 1)\n {\n System.err.println(\"Invalid dirt position.\");\n r.close();\n return null;\n }\n \n currDirtPos = dirtPosArr[0] + dirtPosArr[1];\n dirtSet.add(currDirtPos);\n currLine = nextLine;\n nextLine = r.readLine();\n }\n \n r.close();\n \n //at this point, currLine is the driving instructions\n return currLine;\n }", "public static List<Polyomino> openFile() {\n \tString basePath = new File(\"\").getAbsolutePath();\n Path path = Paths.get(basePath, \"polyominoesINF421.txt\");\n Charset charset = Charset.forName(\"UTF-8\");\n List<Polyomino> polyominos = new LinkedList<Polyomino>();\n\t\ttry {\n\t\t\tList<String> lines = Files.readAllLines(path, charset);\n\t\t\tfor (String line : lines) {\n\t\t\t\tpolyominos.add(new Polyomino(line));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n return polyominos;\n }", "public GenericLineByLineParser(InputStreamReader reader) {\n this.br = new BufferedReader(reader);\n }", "private StringBlock parseNextStringBlock() {\t\t\n\t\tif(!reader.hasNext())\n\t\t\treturn null;\n\t\t\n\t\tString num = \"-1\";\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tdo\n\t\t\t{\n\t\t\t\tnum = reader.nextLine(); //read and toss out first line of chunk (number)\n\t\t\t\tcurrentLineNum++;\n\t\t\t} while(num.isEmpty());\n\t\t\t\n\t\t\tcurrentLineNum++;\n\n\t\t\t//first line = number\n\t\t\t//since the stringBlocks are stored in order,\n\t\t\t//this line can be ignored\n\t\t\t\n\t\t\tString timeStr = reader.nextLine(); //read second line of chunk\n\t\t\tcurrentLineNum++;\n\t\t\t\n\t\t\t//second line = timestamps\n\t\t\tint startTime = CSubUtility.parseTimestamp(timeStr.substring(0, 12));\n\t\t\tint endTime = CSubUtility.parseTimestamp(timeStr.substring(17, 29));\n\t\t\t\n\t\t\tString str1 = reader.nextLine(); //read third line of chunk\n\t\t\tcurrentLineNum++;\t\t\t\n\t\t\t\n\t\t\t//if there are more than 2 lines (for the love of God, whyyyyyy would a file do this? [some actually do...])\n\t\t\t//then 2nd, 3rd, 4th, etc. lines get crammed into 2nd line to keep program from crashing.\n\t\t\tString str2 = \"\";\n\t\t\tString currentLine = \"\";\n\t\t\t\n\t\t\twhile(reader.hasNext() && !(currentLine = reader.nextLine()).isEmpty()) {\n\t\t\t\tcurrentLineNum++;\n\t\t\t\tstr2 += currentLine;\n\t\t\t}\n\t\t\t\n\t\t\tcurrentLineNum++; //didn't get incremented on the read where the loop fails\n\t\t\t\n\t\t\t//strip out any html. we ain't that fancy\n\t\t\tstr1 = str1.replaceAll(\"<\\\\w*>\", \"\").replaceAll(\"</\\\\w*>\", \"\");\n\t\t\tstr2 = str2.replaceAll(\"<\\\\w*>\", \"\").replaceAll(\"</\\\\w*>\", \"\");\t\t\t\n\t\t\t\n\t\t\treturn new StringBlock(str1, str2, startTime, endTime);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalStateException(\"Failed reading line number: \" + currentLineNum + \"\\nError: \" + e.getMessage());\t\t\n\t\t}\n\t}", "public String readLine() throws IOException {\n/* 176 */ String line = this.currentFilePart.readLine();\n/* 177 */ while (line == null) {\n/* 178 */ this.currentFilePart = this.currentFilePart.rollOver();\n/* 179 */ if (this.currentFilePart != null) {\n/* 180 */ line = this.currentFilePart.readLine();\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 188 */ if (\"\".equals(line) && !this.trailingNewlineOfFileSkipped) {\n/* 189 */ this.trailingNewlineOfFileSkipped = true;\n/* 190 */ line = readLine();\n/* */ } \n/* */ \n/* 193 */ return line;\n/* */ }", "public void readFile() {\r\n\t\tBufferedReader br = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tString currentLine;\r\n\r\n\t\t\tbr = new BufferedReader(new FileReader(fileName));\r\n\r\n\t\t\twhile ((currentLine = br.readLine()) != null) {\r\n\r\n\t\t\t\tif (!currentLine.equals(\"\")) {\r\n\t\t\t\t\tString[] paragraphs = currentLine.split(\"\\\\n\\\\n\");\r\n\r\n\t\t\t\t\tfor (String paragraphEntry : paragraphs) {\r\n\t\t\t\t\t\t//process(paragraphEntry);\r\n\t\t\t\t\t\t//System.out.println(\"Para:\"+paragraphEntry);\r\n\t\t\t\t\t\tParagraph paragraph = new Paragraph();\r\n\t\t\t\t\t\tparagraph.process(paragraphEntry);\r\n\t\t\t\t\t\tthis.paragraphs.add(paragraph);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (br != null)br.close();\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public java.lang.String readLine() {\n /*\n r7 = this;\n r0 = r7.in;\n monitor-enter(r0);\n r1 = r7.buf;\t Catch:{ all -> 0x0097 }\n if (r1 != 0) goto L_0x000f;\n L_0x0007:\n r1 = new java.io.IOException;\t Catch:{ all -> 0x0097 }\n r2 = \"LineReader is closed\";\n r1.<init>(r2);\t Catch:{ all -> 0x0097 }\n throw r1;\t Catch:{ all -> 0x0097 }\n L_0x000f:\n r1 = r7.pos;\t Catch:{ all -> 0x0097 }\n r2 = r7.end;\t Catch:{ all -> 0x0097 }\n if (r1 < r2) goto L_0x0018;\n L_0x0015:\n r7.aOB();\t Catch:{ all -> 0x0097 }\n L_0x0018:\n r1 = r7.pos;\t Catch:{ all -> 0x0097 }\n L_0x001a:\n r2 = r7.end;\t Catch:{ all -> 0x0097 }\n r3 = 10;\n if (r1 == r2) goto L_0x0051;\n L_0x0020:\n r2 = r7.buf;\t Catch:{ all -> 0x0097 }\n r2 = r2[r1];\t Catch:{ all -> 0x0097 }\n if (r2 != r3) goto L_0x004e;\n L_0x0026:\n r2 = r7.pos;\t Catch:{ all -> 0x0097 }\n if (r1 == r2) goto L_0x0035;\n L_0x002a:\n r2 = r7.buf;\t Catch:{ all -> 0x0097 }\n r3 = r1 + -1;\n r2 = r2[r3];\t Catch:{ all -> 0x0097 }\n r4 = 13;\n if (r2 != r4) goto L_0x0035;\n L_0x0034:\n goto L_0x0036;\n L_0x0035:\n r3 = r1;\n L_0x0036:\n r2 = new java.lang.String;\t Catch:{ all -> 0x0097 }\n r4 = r7.buf;\t Catch:{ all -> 0x0097 }\n r5 = r7.pos;\t Catch:{ all -> 0x0097 }\n r6 = r7.pos;\t Catch:{ all -> 0x0097 }\n r3 = r3 - r6;\n r6 = r7.charset;\t Catch:{ all -> 0x0097 }\n r6 = r6.name();\t Catch:{ all -> 0x0097 }\n r2.<init>(r4, r5, r3, r6);\t Catch:{ all -> 0x0097 }\n r1 = r1 + 1;\n r7.pos = r1;\t Catch:{ all -> 0x0097 }\n monitor-exit(r0);\t Catch:{ all -> 0x0097 }\n return r2;\n L_0x004e:\n r1 = r1 + 1;\n goto L_0x001a;\n L_0x0051:\n r1 = new com.a.a.b$1;\t Catch:{ all -> 0x0097 }\n r2 = r7.end;\t Catch:{ all -> 0x0097 }\n r4 = r7.pos;\t Catch:{ all -> 0x0097 }\n r2 = r2 - r4;\n r2 = r2 + 80;\n r1.<init>(r2);\t Catch:{ all -> 0x0097 }\n L_0x005d:\n r2 = r7.buf;\t Catch:{ all -> 0x0097 }\n r4 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r7.end;\t Catch:{ all -> 0x0097 }\n r6 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r5 - r6;\n r1.write(r2, r4, r5);\t Catch:{ all -> 0x0097 }\n r2 = -1;\n r7.end = r2;\t Catch:{ all -> 0x0097 }\n r7.aOB();\t Catch:{ all -> 0x0097 }\n r2 = r7.pos;\t Catch:{ all -> 0x0097 }\n L_0x0071:\n r4 = r7.end;\t Catch:{ all -> 0x0097 }\n if (r2 == r4) goto L_0x005d;\n L_0x0075:\n r4 = r7.buf;\t Catch:{ all -> 0x0097 }\n r4 = r4[r2];\t Catch:{ all -> 0x0097 }\n if (r4 != r3) goto L_0x0094;\n L_0x007b:\n r3 = r7.pos;\t Catch:{ all -> 0x0097 }\n if (r2 == r3) goto L_0x008a;\n L_0x007f:\n r3 = r7.buf;\t Catch:{ all -> 0x0097 }\n r4 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r7.pos;\t Catch:{ all -> 0x0097 }\n r5 = r2 - r5;\n r1.write(r3, r4, r5);\t Catch:{ all -> 0x0097 }\n L_0x008a:\n r2 = r2 + 1;\n r7.pos = r2;\t Catch:{ all -> 0x0097 }\n r1 = r1.toString();\t Catch:{ all -> 0x0097 }\n monitor-exit(r0);\t Catch:{ all -> 0x0097 }\n return r1;\n L_0x0094:\n r2 = r2 + 1;\n goto L_0x0071;\n L_0x0097:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x0097 }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.a.a.b.readLine():java.lang.String\");\n }", "@Override\n public void readTilePositions(BufferedRandomAccessFile braf) throws IOException {\n row0 = braf.leReadInt();\n col0 = braf.leReadInt();\n nRows = braf.leReadInt();\n nCols = braf.leReadInt();\n this.row1 = row0 + nRows - 1;\n this.col1 = col0 + nCols - 1;\n if (nCols == 0) {\n offsets = null;\n // no position records follow in file.\n } else {\n offsets = new long[nRows][];\n for (int i = 0; i < nRows; i++) {\n offsets[i] = new long[nCols];\n }\n for (int i = 0; i < nRows; i++) {\n for (int j = 0; j < nCols; j++) {\n offsets[i][j] = braf.leReadLong();\n }\n }\n }\n }", "public String[] buildEntries(String a) {\n try {\n File file = new File(a);\n Scanner input = new Scanner(file);\n while (input.hasNextLine()) {\n String line=input.nextLine();\n String name=line.substring(line.indexOf(\"\\t\"));\n name=name.substring(0,name.lastIndexOf(\"H\"));\n name=name.substring(0,name.lastIndexOf(\"\\t\"));\n int entries=Integer.parseInt(line.substring(line.lastIndexOf(\"\\t\")+1,line.lastIndexOf(\"E\")));\n while (entries>0) {\n entryList.add(name);\n entries--;\n System.out.println(\"Added: \"+name);\n }\n}\n return drawBE(entryList,a);\n }\n catch(FileNotFoundException b) {\n System.out.println(\"Error, no entries\"); \n String ret[] = new String[6];\n ret[0]=\"NOFILE\";\n return ret;\n }\n }", "public static ArrayList<String> parseSequenceFile(String filePath) {\n\t\tArrayList<String> sequence = new ArrayList<String>();\n\t\tFile file = new File(filePath);\n\t\tScanner scanner;\n\n\t\ttry {\n\t\t\tscanner = new Scanner(file);\n\n\t\t\twhile (scanner.hasNextLine()) {\n\t\t\t\tsequence.add(scanner.nextLine());\n\t\t\t}\n\n\t\t\tscanner.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found. Program aborted.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\treturn sequence;\n\t}", "axiom Object readLine(Object BufferedReader(FileReaderr f)) {\n\treturn f.get(0);\n }", "protected void readAhead() {\n if (! reader.hasNext()) {\n this.nextLine = null;\n } else {\n this.nextLine = reader.next();\n while (this.nextLine != null && this.nextLine.isEmpty() && reader.hasNext())\n this.nextLine = reader.next();\n }\n }", "List<String> obtenerlineas(String archivo) throws FileException;", "TraceList read(File file) throws IOException;", "public static void LeerFicheroLinea(File rutaLeer, File rutaEscribir)\n throws IOException {\n\n BufferedReader lector = new BufferedReader(new FileReader(rutaLeer));\n BufferedWriter escritor = new BufferedWriter(new FileWriter(rutaEscribir));\n\n escritor.write(\"--------------------------------------\\n\"\n + \" Cartelera de CineFBMoll\\n\"\n + \"--------------------------------------\\n\\n\");\n\n int contador = 0;\n int datosNum = 0;\n escritor.newLine();\n while (lector.ready() != false) { // eof de BufferedReader\n String lineaLeida = lector.readLine();\n\n lineaLeida = lineaLeida.replace('#', '\\n');\n lineaLeida = lineaLeida.replace('{', '\\n');\n //la lineaLeida lo paso a un array, la división lo hace por un '\\n' \n String[] texto = lineaLeida.split(\"\\n\");\n for (int i = 0; i < texto.length; i++) {\n if (datosNum <= datos.length) {\n System.out.println(texto[i]);\n }\n datosNum++;\n contador++;\n if (contador == datos.length) {\n datosNum = 0;\n }\n }\n }\n lector.close();\n escritor.close();\n }", "@Override\n protected void fixFile(final BufferedReader reader, final BufferedWriter writer) throws Exception {\n // init\n int lineCounter = 1;\n boolean lastLineWasEmpty = false;\n\n String line;\n while ((line = reader.readLine()) != null) {\n final String fixedLine = fixLine(line);\n\n if (fixedLine != null && !\"\".equals(fixedLine.trim())) {\n if (lastLineWasEmpty && lineIsNumberAboveZero(fixedLine)) {\n writer.newLine();\n lineCounter++;\n writer.write(\"\" + lineCounter);\n } else {\n lastLineWasEmpty = false;\n writer.write(fixedLine);\n }\n writer.newLine();\n } else {\n lastLineWasEmpty = true;\n }\n }\n }", "private void posRead() throws IOException {\n\t\tFile file = new File(fullFileName());\n\t\tString line;\n\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\tStringBuffer fileText = new StringBuffer();\n\t\twhile((line = reader.readLine()) != null) {\n\t\t\tStringTokenizer st = new StringTokenizer(line);\n\t\t\twhile (st.hasMoreTokens()) {\n \t\tString tokenAndPos = st.nextToken();\n \t\tint slashIndex = tokenAndPos.lastIndexOf('/');\n \t\tif (slashIndex <= 0) throw new IOException(\"invalid data\");\n \t\tString token = tokenAndPos.substring(0,slashIndex);\n \t\tString pos = tokenAndPos.substring(1+slashIndex).intern();\n \t\tint start = this.length();\n \t\tthis.append(token);\n \t\tif (st.hasMoreTokens())\n \t\t\tthis.append(\" \");\n \t\telse\n \t\t\tthis.append(\" \\n\");\n \t\tint end = this.length();\n \t\tSpan span = new Span(start,end);\n \t\tthis.annotate(\"token\", span, new FeatureSet());\n \t\tthis.annotate(\"constit\", span, new FeatureSet(\"cat\", pos));\n \t}\n\t\t}\n\t}", "private void openAndReadFile() throws IOException {\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textreader = new BufferedReader(fr);\n\t\tString line;\n\t\tString[] parsedLine;\n\t\twhile ((line = textreader.readLine()) != null) {\n\t\t\tparsedLine = pattern.split(line);\n\t\t\tif (parsedLine.length == 2) {\n\t\t\t\tfileData.put(parsedLine[0], parsedLine[1]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Couldn't read line \" + line + \" in \" + path);\n\t\t\t}\n\t\t}\n\t\ttextreader.close();\n\t\tfr.close();\n\t}", "public void readFile(String file) throws FileNotFoundException {\n\t\tsc = new Scanner(new File(file));\n\t\tString firstLine = sc.nextLine();\n\t\tString [] breakFirstLine = firstLine.split(\" \");\n\t\tvillages = Integer.parseInt(breakFirstLine[0]);\n\t\tlines = Integer.parseInt(breakFirstLine[1]);\n\t\tSystem.out.println(\"villages: \" + villages + \"\\nlines: \" + lines);\n\t\tString line = \"\"; // current line\n\t\twhile(sc.hasNextLine()) { \n\t\t\tline = sc.nextLine();\n\t\t\tSystem.out.println(line);\n\t\t\tString[] breaks = line.split(\" \");\n\t\t\tString city1 = breaks[0];\n\t\t\tString city2 = breaks[1];\n\t\t\tString col = breaks[2];\n\t\t\tcolor = color(col);\n\t\t\tString route = breaks[3];\n\t\t\ttransit = transit(route);\n\t\t\tVillage a = new Village(city1);\n\t\t\tVillage b = new Village(city2);\n\t\t\t\n\t\t\tEdge e = new Edge(a, b, transit, color);\n\t\t\ta.addEdge(e);\n\t\t\tb.addEdge(e);\n\t\t\tg.addEdge(e);\n\t\t\t\n\t\t\tvertices.add(a);\n\t\t\tlast_transit = transit;\n\t\t\tlast_color = color;\n\t\t}\n\t}", "private static void read(BufferedReader br, String field, String line, int pos, GameFile gameFile) throws IOException {\r\n\t\t\r\n\t\tGameFile f = gameFile;\r\n\t\t\r\n\t\tif(field.contains(\":\")) {\r\n\t\t\tfield = field.replace(\":\", \"\");\r\n\t\t\tf = new GameFile(field);\r\n\t\t\tgameFile.add(f);\r\n\t\t}\r\n\t\t\r\n\t\t//loops through all line in file\r\n\t\tfor(String l = (line.isEmpty())? br.readLine(): line; l != null; l = br.readLine()) {\r\n\t\t\t\r\n\t\t\tl = l.replaceAll(\"\\\\s+\",\"\"); //get rid of white spaces\r\n\t\t\t\r\n\t\t\tif(l.contains(\"{\") && l.contains(\"}\")) //if both currly brackets exist on the same line, replace end curlly bracket to prevent exiting the function premacherly\r\n\t\t\t\tl = l.replace(\"}\", \"\\\\}\");\r\n\t\t\tif(l.equals(\"}\")) //if the current line contanise only an end currly breaket then exit the function\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\treadLine(br, field, l, pos, f); //interpets the current line\r\n\t\t\t\r\n\t\t\tif(l.contains(\"}\") && !l.contains(\"\\\\}\")) //if the line containes an end currly breaket in it, exit the function\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn;\r\n\t\t\r\n\t}", "@Override\n public String readLine() throws IOException {\n checkBuffer(-1);\n this.randomAccessFile.seek(this.fileOffset + this.bufferPointer.bufferOffset);\n String line = this.randomAccessFile.readLine();\n this.fileOffset = this.randomAccessFile.getFilePointer();\n this.bufferPointer.invalidate();\n return line;\n }", "public Picture[] readFile (Scanner reader) {\n Picture[] unsortedPics = new Picture[Integer.parseInt(reader.nextLine())];\n int i = 0;\n while (reader.hasNextLine()) {\n Picture picture = new Picture(i, reader.next(), reader.next(), reader.nextLine());\n unsortedPics[i] = picture;\n i++;\n }\n return unsortedPics;\n }", "public void readRestaurantDetail (BufferedReader reader) {\n\n\n try {\n // Each line of CSV will be stored in this String\n String line = \"\";\n reader.readLine();\n int id = 0;\n while ((line = reader.readLine()) != null) {\n// count++;\n\n // line will be split by \",\", into an array of String\n String[] eachDetailsOfRestaurant = line.split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n\n // Restaurant object created with the tracking number and name.\n Restaurant restaurant = new Restaurant(eachDetailsOfRestaurant[0], eachDetailsOfRestaurant[1], id);\n\n// Log.e(\"checking..............\", count.toString() + \" \" + restaurant.getName());\n\n // Converting coordinates to double and creating Location object\n for (int i = 0; i < eachDetailsOfRestaurant.length; i++) {\n Log.e(TAG, \"\" + i + \":\" + eachDetailsOfRestaurant[i]);\n }\n Double latitude = Double.parseDouble(eachDetailsOfRestaurant[5]);\n Double longitude = Double.parseDouble(eachDetailsOfRestaurant[6]);\n Location location = new Location(eachDetailsOfRestaurant[2], eachDetailsOfRestaurant[3], latitude, longitude);\n\n // Setting Location of the restaurant and adding to the Arraylist\n restaurant.setLocation(location);\n restaurants.add(restaurant);\n id++;\n }\n Collections.sort(restaurants);\n } catch (IOException e) {\n// e.printStackTrace();\n }\n }", "public NexusReaderDistances(String filePath) throws IOException, NexusFormatException {\n\n BufferedReader bufferedReader = null;\n FileReader fileReader = null;\n try {\n fileReader = new FileReader(filePath);\n bufferedReader = new BufferedReader(fileReader);\n\n int state = 0; //0=start of file, 1=after #NEXUS. 2=inside block\n boolean commentMode = false;\n TreeMap<Integer, String> blockLines = null;\n String blockName = null;\n Matcher beginBlockMatcher = Pattern.compile(\"^(?i)BEGIN ([A-Z]+);\").matcher(\"\");\n String line = bufferedReader.readLine();\n int lineNumber = 0;\n while (line != null) {\n lineNumber++;\n line = line.trim();\n //end multiline comments\n if (commentMode) {\n int endIndex = line.indexOf(\"]\");\n if (endIndex == -1) {\n line = bufferedReader.readLine();\n continue;\n } else {\n line = line.substring(endIndex);\n commentMode = false;\n }\n }\n //remove one line comments\n line = line.replaceAll(\"\\\\[.*]\", \"\");\n //remove multi line comments\n int startIndex = line.indexOf(\"[\");\n if (startIndex != -1) {\n line = line.substring(0, startIndex);\n commentMode = true;\n }\n //skip emtpy lines\n if (line.isEmpty()) {\n line = bufferedReader.readLine();\n continue;\n }\n\n //===read lines===\n switch (state) { //0=start of file, 1=after #NEXUS. 2=inside block\n case 0:\n if (!line.equalsIgnoreCase(\"#NEXUS\")) {\n throw new NexusFormatException(\"File must start with #NEXUS. Line: \" + lineNumber);\n } else {\n state++;\n }\n break;\n case 1:\n beginBlockMatcher.reset(line);\n if (beginBlockMatcher.matches()) {\n blockLines = new TreeMap<Integer, String>();\n blockName = beginBlockMatcher.group(1);\n state++;\n } else {\n throw new NexusFormatException(\"Error parsing BEGIN statement. Line \" + lineNumber);\n }\n break;\n case 2:\n if (line.equalsIgnoreCase(\"END;\")) {\n makeBlock(blockName, blockLines);\n state--;\n } else {\n blockLines.put(lineNumber, line);\n }\n break;\n default:\n throw new RuntimeException(\"NexusReader reached illegal state: \" + state);\n }\n\n line = bufferedReader.readLine();\n }\n if (state == 2) {\n throw new NexusFormatException(\"Didn't close block at end of file.\");\n }\n if (state == 0) {\n throw new NexusFormatException(\"File seems empty.\");\n }\n\n bufferedReader.close();\n\n } catch (IOException e) {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n throw e;\n } catch (NexusFormatException e) {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n throw e;\n }\n }", "void readNutrients(String filename) throws FileNotFoundException {\n\t\t//reads the file, computes the number of unique nutrient objects\n\t\t//uses StringBuilder to append the unique Nutrient_Code\n\t\tScanner input=new Scanner(new File(filename));\n\t\tint numOfRow=0;\n\t\tStringBuilder uniqueNutrient=new StringBuilder();\n\t\twhile(input.hasNextLine()) {\n\t\t\tString row0=input.nextLine();\n\t\t\tString[] split0=row0.split(((char)34+\",\"+(char)34));\n\t\t\tif(!uniqueNutrient.toString().contains(split0[1]+\",\")) {\n\t\t\t\tuniqueNutrient=uniqueNutrient.append(split0[1]+\",\");\n\t\t\t\tnumOfRow++;\n\t\t\t}\n\t\t}\n\t\t//load the products array one by one, using constructor\n\t\t//keep only the unique nutrient objects\n\t\tnutrients=new Nutrient[numOfRow-1];\n\t\tScanner input2=new Scanner(new File(filename));\n\t\tinput2.nextLine();\n\t\tint i=0;\n\t\tStringBuilder uniqueNutrien2=new StringBuilder();\n\t\twhile(input2.hasNextLine()) {\n\t\t\tString row=input2.nextLine();\n\t\t\tString[] split1=row.split(((char)34+\",\"+(char)34));\n\t\t\tif(!uniqueNutrien2.toString().contains(split1[1]+\",\")) {\n\t\t\t\tuniqueNutrien2.append(split1[1]+\",\");\n\t\t\t\tnutrients[i++]=new Nutrient(split1[1], split1[2], split1[5]);\n\t\t\t}\n\t\t}\n\n\t\t//reads the file, computes the number of unique productNutrient objects\n\t\tScanner input3 =new Scanner(new File(filename));\n\t\tinput3.nextLine();\n\t\tint numOfRowProductNutrient=0;\n\t\twhile(input3.hasNextLine()) {\n\t\t\tnumOfRowProductNutrient++;\n\t\t\tinput3.nextLine();\n\t\t}\n\t\t//load the products array one by one, using constructor\n\t\tproductNutrients=new ProductNutrient[numOfRowProductNutrient];\n\t\tScanner input4=new Scanner(new File(filename));\n\t\tinput4.nextLine();\n\t\tint i2=0;\n\t\twhile(input4.hasNextLine()) {\n\t\t\tString row=input4.nextLine();\n\t\t\tString[] split1=row.split(((char)34+\",\"+(char)34));\n\t\t\tproductNutrients [i2++]=new ProductNutrient(split1[0].substring\n\t\t\t\t\t(1, split1[0].length()), split1[1], split1[2], \n\t\t\t\t\tFloat.parseFloat(split1[4]),split1[5].substring(0, split1[5].length()-1));\n\t\t}\n\t\t//close the input\n\t\tinput.close();\n\t\tinput2.close();\n\t\tinput3.close();\n\t\tinput4.close();\n\t}", "public void readMaze() throws FileNotFoundException, IOException {\r\n\r\n String line = null; // initialising the value of the line to null\r\n System.out.println(\"Provide name of the file\");// asking user to input the name of the maze file in question\r\n String fileName = input.next();\r\n FileReader fileReader = new FileReader(fileName+\".txt\");\r\n BufferedReader bufferedReader = new BufferedReader(fileReader);\r\n while ((line = bufferedReader.readLine()) != null) {\r\n String[] locations = line.split(\" \");\r\n graph.addTwoWayVertex(locations[0], locations[1]);// making pairwise connection between two vertices\r\n }\r\n bufferedReader.close(); // BufferedReader must be closed after reading the file is implemented.\r\n }", "public void readPairs(String fileName) {\n BufferedReader r = null;\n try {\n r = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while (true) {\n String line = null;\n try {\n line = r.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (line == null) {\n break;\n }\n assert line.length() == 11; // indatakoll, om man kör med assertions på\n String start = line.substring(0, 5);\n String goal = line.substring(6, 11);\n\n int s = words.indexOf(start);\n int v = words.indexOf(goal);\n\n shortestPathPairs(s, v);\n }\n\n }", "private void readActorData(String[] lineData)\n {\n int actorCodeIdx = 0;\n int actorFileNameIdx = 1;\n int actorIngameNameIdx = 2;\n int sprite_statusIdx = 3;\n int sensor_statusIdx = 4;\n int directionIdx = 5;\n\n Direction direction = Direction.of(lineData[directionIdx]);\n ActorData actorData = new ActorData(lineData[actorFileNameIdx], lineData[actorIngameNameIdx], lineData[sprite_statusIdx], lineData[sensor_statusIdx], direction);\n actorDataMap.put(lineData[actorCodeIdx], actorData);\n\n //Player start position is not based on tile schema\n if (actorData.actorFileName.equals(ACTOR_DIRECTORY_PATH + \"player\"))\n createPlayer(actorData);\n else\n loadedTileIdsSet.add(lineData[actorCodeIdx]);//Player is not defined by layers\n }", "public String readLine(int i) {\n\t\tString line = new String(\"\");\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tfor (int j = 0; j < i; j++) {\n\t\t\t\tif (eof) {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Line \" + i +\n\t\t\t\t\t\t\" is not found in the file \" +\n\t\t\t\t\t\tfile.getName() + \".\");\n\t\t\t\t}\n\t\t\t\tb.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tline = b.readLine();\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn line;\n\t}", "String getLine (int line);", "public List<List<String>> levelsSplitter(java.io.Reader reader) throws Exception {\r\n BufferedReader bufferedReader = (BufferedReader) reader;\r\n String line;\r\n int fourChecks = 0;\r\n List<List<String>> levels = new ArrayList<>();\r\n List<String> level = new ArrayList<>();\r\n List<String> currentBlockLayOut = new ArrayList<>();\r\n boolean levelBool = false;\r\n boolean blocksBool = false;\r\n this.blocksLayOut = new ArrayList<>();\r\n try {\r\n while ((line = bufferedReader.readLine()) != null) {\r\n if (line.startsWith(\"#\") || line.startsWith(\" \")) { // empty lines and comments\r\n continue;\r\n }\r\n if (line.equals(\"START_LEVEL\")) {\r\n levelBool = true;\r\n fourChecks++;\r\n continue;\r\n }\r\n if (levelBool) {\r\n level.add(line);\r\n }\r\n if (line.equals(\"START_BLOCKS\") && !blocksBool) {\r\n blocksBool = true;\r\n fourChecks++;\r\n continue;\r\n }\r\n if (blocksBool) {\r\n currentBlockLayOut.add(line);\r\n }\r\n if (line.equals(\"END_BLOCKS\")) {\r\n blocksBool = false;\r\n blocksLayOut.add(currentBlockLayOut);\r\n fourChecks++;\r\n }\r\n if (line.equals(\"END_LEVEL\")) {\r\n levelBool = false;\r\n fourChecks++;\r\n if (fourChecks != 4) {\r\n throw new Exception(\"levels definition format is wrong!\");\r\n }\r\n fourChecks = 0;\r\n levels.add(level);\r\n level = new ArrayList<>();\r\n currentBlockLayOut = new ArrayList<>();\r\n }\r\n }\r\n } catch (Exception e) {\r\n throw new Exception(\"problems were found during reading the levels definition file\");\r\n } finally {\r\n if (bufferedReader != null) {\r\n try {\r\n bufferedReader.close();\r\n } catch (Exception e) {\r\n throw new Exception(\"problems were found while closing the levels definition file\");\r\n }\r\n }\r\n }\r\n return levels;\r\n }", "public static void main(String[] args) {\n\n String bigString = \"photo.jpg, Warsaw, 2013-09-05 14:08:15\\n\" +\n \"john.png, London, 2015-06-20 15:13:22\\n\" +\n \"myFriends.png, Warsaw, 2013-09-05 14:07:13\\n\" +\n \"Eiffel.jpg, Paris, 2015-07-23 08:03:02\\n\" +\n \"pisatower.jpg, Paris, 2015-07-22 23:59:59\\n\" +\n \"BOB.jpg, London, 2015-08-05 00:02:03\\n\" +\n \"notredame.png, Paris, 2015-09-01 12:00:00\\n\" +\n \"me.jpg, Warsaw, 2013-09-06 15:40:22\\n\" +\n \"a.png, Warsaw, 2016-02-13 13:33:50\\n\" +\n \"b.jpg, Warsaw, 2016-01-02 15:12:22\\n\" +\n \"c.jpg, Warsaw, 2016-01-02 14:34:30\\n\" +\n \"d.jpg, Warsaw, 2016-01-02 15:15:01\\n\" +\n \"e.png, Warsaw, 2016-01-02 09:49:09\\n\" +\n \"f.png, Warsaw, 2016-01-02 10:55:32\\n\" +\n \"g.jpg, Warsaw, 2016-02-29 22:13:11\";\n bufferedReading(bigString);\n try {\n bufferedReading2(bigString);\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n readAsSkipping();\n }", "@Test\n public void testMarkReset() throws IOException {\n List<String> expected = multiLineFileInit(file, Charsets.UTF_8);\n\n int MAX_LEN = 100;\n\n PositionTracker tracker = new DurablePositionTracker(meta, file.getPath());\n ResettableInputStream in = new ResettableFileInputStream(file, tracker);\n\n String result0 = readLine(in, MAX_LEN);\n assertEquals(expected.get(0), result0);\n\n in.reset();\n\n String result0a = readLine(in, MAX_LEN);\n assertEquals(expected.get(0), result0a);\n\n in.mark();\n\n String result1 = readLine(in, MAX_LEN);\n assertEquals(expected.get(1), result1);\n\n in.reset();\n\n String result1a = readLine(in, MAX_LEN);\n assertEquals(expected.get(1), result1a);\n\n in.mark();\n in.close();\n }" ]
[ "0.63011897", "0.5800982", "0.57746", "0.57532865", "0.5716723", "0.56879115", "0.5626438", "0.56259817", "0.55296457", "0.5522316", "0.54974", "0.5482878", "0.54821575", "0.5465248", "0.5464461", "0.5438793", "0.54241335", "0.54086757", "0.5394392", "0.53854334", "0.53808385", "0.5368334", "0.5367031", "0.5359737", "0.5348762", "0.533801", "0.532817", "0.5312677", "0.52957904", "0.5265246", "0.52644724", "0.5261171", "0.5260878", "0.52572894", "0.52324164", "0.52143985", "0.52070946", "0.5198301", "0.51970947", "0.51911336", "0.5190477", "0.51709133", "0.5167795", "0.5165643", "0.51653314", "0.51651406", "0.51627284", "0.51614785", "0.5153743", "0.51508236", "0.51503307", "0.5138389", "0.5136092", "0.5135411", "0.512776", "0.512299", "0.51071864", "0.5102506", "0.5091047", "0.5081592", "0.50800943", "0.50616467", "0.50560045", "0.5048189", "0.50363034", "0.50222135", "0.5020781", "0.5018999", "0.5017459", "0.50173736", "0.501544", "0.5014236", "0.50052935", "0.5001495", "0.49979275", "0.49971688", "0.4996933", "0.4996624", "0.49885446", "0.49870265", "0.49849674", "0.49834293", "0.49690452", "0.49687266", "0.49649584", "0.49645665", "0.49638763", "0.4960286", "0.49572754", "0.49565315", "0.49523768", "0.49506813", "0.49504125", "0.49473065", "0.4947158", "0.49398512", "0.493907", "0.4936364", "0.4935515", "0.49352834" ]
0.53980255
18
removes all RideLines objects from the world.
public void removeAllLines() { // get list of all ride lines and remove each removeObjects(getObjects(RideLines.class)); //remove RideLines removeObjects(getObjects(AddButton.class));//remove AddButton removeObjects(getObjects(ReleaseButton.class));//remove ReleaseButton removeObjects(getObjects(Person.class));//remove Person currentRide=0; // reset actual rides at zero }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void erasePolylines() {\n for (Polyline line : polylines) {\n line.remove(); ////removing each lines\n\n }\n polylines.clear(); ////clearing the polylines array\n }", "@Override\n public void removePathLines() {\n for (Polyline line : mPathLines) {\n mMap.getOverlayManager().remove(line);\n }\n mPathLines = new ArrayList<>();\n }", "public void removeVehicles() {\r\n numberOfVehicles = 0;\r\n for (Lane lane : lanes) {\r\n lane.removeVehicles();\r\n }\r\n }", "protected void removeMapLineAdapters() {\r\n while (!lineAdapters.isEmpty()) {\r\n MapLineAdapter mla = (MapLineAdapter) lineAdapters.remove(0);\r\n drawer.removeMapLineAdapter(mla);\r\n }\r\n }", "static void wipeLocations(){\n\t \tfor (int i= 0; i < places.length; i++){\n\t\t\t\tfor (int j = 0; j < places[i].items.size(); j++)\n\t\t\t\t\tplaces[i].items.clear();\n\t\t\t\tfor (int k = 0; k < places[i].receptacle.size(); k++)\n\t\t\t\t\tplaces[i].receptacle.clear();\n\t \t}\n\t \tContainer.emptyContainer();\n\t }", "public void clearPartyList() {\n currentlyProcessingParties.clear();\n }", "public void removePlaces(){\n List<Place> copies = new ArrayList<>(places);\n for(Place p : copies){\n p.reset();\n }\n }", "public void clearLineVehicles(AnchorPane anchor_pane_map)\r\n {\r\n for (Circle c : all_line_vehicles)\r\n {\r\n anchor_pane_map.getChildren().remove(c);\r\n }\r\n }", "public void removeScenery(){\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].isScenery())\n\t\t\t\t\tgrid[i][j]=null;\n\t\t\t}\n\t\t}\n\t}", "public void reset() {\n\t\tVector2 gravity = new Vector2(world.getGravity() );\n\t\t\n\t\tfor(Obstacle obj : objects) {\n\t\t\tobj.deactivatePhysics(world);\n\t\t}\n\t\tobjects.clear();\n\t\taddQueue.clear();\n\t\tworld.dispose();\n\t\t\n\t\tworld = new World(gravity,false);\n\t\tsetComplete(false);\n\t\tsetFailure(false);\n\t\tpopulateLevel();\n\t}", "public void removeTiles(Renderer r) {\n\n\t\t// Return if the room has not been rendered\n\t\tif (shadowMap == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Delete the shadow map\n\t\t// r.deleteMap(shadowMap);\n\n\t\t// Delete the tiles\n\t\tfor (int i = 0; i < tiles.length; i++) {\n\t\t\tfor (int j = 0; j < tiles[0].length; j++) {\n\n\t\t\t\tTile tile = tiles[i][j];\n\n\t\t\t\t// Delete model of the tile\n\t\t\t\tif (tile.getModel() != null) {\n\t\t\t\t\tr.deleteModel(tile.getModel().getName());\n\t\t\t\t}\n\n\t\t\t\t// If there are any items delete them too\n\t\t\t\tif (tile instanceof BasicFloor) {\n\n\t\t\t\t\tBasicFloor floor = (BasicFloor) tile;\n\n\t\t\t\t\tfor (Item item : floor.getItems())\n\t\t\t\t\t\tr.deleteModel(item.getModel().getName());\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void resetWorld() {\n \t\tmyForces.clear();\n \t\t\n \t\tfor (CollidableObject obj : myObjects) {\n \t\t\tobj.detach();\n \t\t}\n \t\tmyObjects.clear();\n \t\t\n \t\taddHalfspaces();\n \t}", "public void remove(){\n Api.worldRemover(getWorld().getWorldFolder());\n }", "public static void clearWorld() {\n\t\t// Complete this method.\n\t\tfor(Critter i: population){\n\t\t\tpopulation.remove(i);\n\t\t}\n\t\tfor(Critter j: babies){\n\t\t\tbabies.remove(j);\n\t\t}\n\t\tpopulation.clear();\n\t\tbabies.clear();\n\n\n\t}", "private void clean() {\n Iterable<Long> v = vertices();\n Iterator<Long> iter = v.iterator();\n while (iter.hasNext()) {\n Long n = iter.next();\n if (world.get(n).adj.size() == 0) {\n iter.remove();\n }\n }\n }", "public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\t}\n\t}", "public void removeAll()\r\n {\r\n if (level ==2)\r\n {\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(Ladder.class));\r\n removeObjects(getObjects(SmallPlatform.class));\r\n removeObjects(getObjects(Door.class)); \r\n removeObjects(getObjects(Tomato.class)); \r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(DeadTomato.class));\r\n player.setLocation();\r\n }\r\n if (level == 3)\r\n {\r\n removeObjects(getObjects(Tomato.class));\r\n removeObject(door2);\r\n removeObjects(getObjects(Canon.class));\r\n removeObjects(getObjects(CanonBullet.class));\r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(Pedestal.class));\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(DeadTomato.class));\r\n }\r\n if (level == 4)\r\n {\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(Text.class));\r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(Ladder.class));\r\n removeObjects(getObjects(Door.class)); \r\n removeObjects(getObjects(Boss.class)); \r\n removeObjects(getObjects(Thorns.class));\r\n player.setLocation();\r\n }\r\n }", "public void removeLines() {\n int compLines = 0;\n int cont2 = 0;\n\n for(cont2=20; cont2>0; cont2--) {\n while(completeLines[compLines] == cont2) {\n cont2--; compLines++;\n }\n this.copyLine(cont2, cont2+compLines);\n }\n\n lines += compLines;\n score += 10*(level+1)*compLines;\n level = lines/20;\n if(level>9) level=9;\n\n for(cont2=1; cont2<compLines+1; cont2++) copyLine(0,cont2);\n for(cont2=0; cont2<5; cont2++) completeLines[cont2] = -1;\n }", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "void removeAllSpawn();", "void unsetRoadTerrain();", "public void removeAllInterpretedBy() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "public void removeAllPartOfSet() {\r\n\t\tBase.removeAll(this.model, this.getResource(), PARTOFSET);\r\n\t}", "public static void clearWorld() {\r\n \tbabies.clear();\r\n \tpopulation.clear();\r\n }", "private void removeTerritoriesOfPlayerFromSpecificTime(Player player,RoundHistory roundHistory) {\n List<Integer> mapsToClear = player.getTerritoriesID();\n while(!mapsToClear.isEmpty()){\n Integer territoryID = mapsToClear.get(0);\n getTerritoryFromSpecificTime(roundHistory,territoryID).eliminateThisWeakArmy();\n mapsToClear.remove(0);\n }\n }", "public void removeRobotsAndRubble() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() != PlayerType.Agent) {\n\t\t\t\tremovePosition(p.getPosition());\n\t\t\t\tremovePlayer(p.getName());\n\t\t\t}\n\t\t\telse \n\t\t\t\tp.resetRobotsFollowing();\n\t\t}\n\t}", "public void enleverTousLesObs() {\n\n\t\tobstaclesList.removeAll(obstaclesList);\n\t}", "public static void clearWinners(){winners.clear();}", "public void clearAll() {\n\n\t\t// Removing the graphics from the layer\n\t\trouteLayer.removeAll();\n\t\t// hiddenSegmentsLayer.removeAll();\n\t\tmMapViewHelper.removeAllGraphics();\n\t\tmResults = null;\n\n\t}", "public void clearLobbies() {\n\t\tlobbies.clear();\n\t}", "public void clear()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tlines.clear();\r\n\t\t}\r\n\t}", "public static void removeAllObservers() {\n compositeDisposable.clear();\n observersList.clear();\n Timber.i(\"This is the enter point: All live assets and team feed auto refresh DOs are removed\");\n }", "public void removeAllOnlyFromCanvas() {\n ArrayList<Integer> delList = new ArrayList<Integer>();\n \n for (CanvasWindow o : this) {\n delList.add(o.getID());\n }\n \n for (Integer i : delList) {\n removeObjectOnlyFromCanvas(i);\n }\n }", "private void clearRoutePolyline() {\n\t\tif (routePolyline != null) {\n\t\t\troutePolyline.remove();\n\t\t\troutePolyline = null;\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (LocalRichInfo localRichInfo : findAll()) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (InterviewSchedule interviewSchedule : findAll()) {\n\t\t\tremove(interviewSchedule);\n\t\t}\n\t}", "public void clear() {\n for (int i = collisionBodies.size() - 1; i >= 0; i--) {\n CollisionBody line = collisionBodies.get(i);\n root.getChildren().remove(line.getLine());\n collisionBodies.remove(line);\n }\n }", "public void cleanToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"CLEAN\",null));\n\t\t}\n\t}", "void unsetRaceList();", "@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }", "public void removeTurtles()\n {\n // Stop observing every turtle\n for(AbstractTurtle t : this.turtles)\n {\n t.removeObserver(this);\n }\n\n // And remove them from the vivarium\n this.turtles.clear();\n\n // Then, fire paint event\n this.repaint();\n }", "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}", "public static void clearWorld() {\n // TODO: Complete this method\n population.clear();\n babies.clear();\n }", "private void eliminatePlayers() {\n \n Iterator<Player> iter = players.iterator();\n\n while (iter.hasNext()) {\n Player player = iter.next();\n\n if (player.getList().isEmpty()) {\n iter.remove();\n if (player.getIsHuman()) {\n setGameState(GameState.HUMAN_OUT);\n }\n // need to remember that due to successive draws, the active player could run\n // out of cards\n // select a new random player if player gets eliminated\n if (!players.contains(activePlayer)) {\n selectRandomPlayer();\n }\n }\n }\n }", "private void clearAllAirfields() {\n Nation nation = determineNation();\n\n game.getHumanPlayer().getAirfields()\n .stream()\n .filter(airfield -> airfield.usedByNation(nation))\n .forEach(airfield -> view.clearAirfield(nation, airfield));\n }", "public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}", "public void exitAllRooms() {\n\t\tfor (RoomSetting roomSetting : roomSettings) {\n\t\t\troomSetting.getRoom().removeClient(this);\n\t\t}\n\t\troomSettings.clear();\n\t}", "public void reset() {\n for (int i = 0; i < numberOfRows; i++ ) {\n for (int j =0; j < numberOfColumns; j++) {\n if (grid[i][j] == LASER) {\n this.Remove(i,j);\n }\n }\n }\n }", "public void removeAllcrew() {\n\t\tif(this.crew != null)\n\t\t\tthis.crew.clear();\n\t}", "public void removeUnavailableRooms(){\n\t}", "public void clear() {\n\t\tList<CartLine> cartLines = getCartLineList();\n\t\tcartLines.clear();\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "public void clear ()\n {\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n mGrid[row][column] = new Move(row, column);\n Move.clear();\n }", "public void wipeDateFromRealm() {\n nearByPlacesDAO.deleteFromDB();\n }", "public synchronized void resetLineItems() {\n lineItems = null;\n }", "public void clearGyroCrits() {\n for (int i = 0; i < locations(); i++) {\n removeCriticals(i, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_GYRO));\n }\n }", "private void cleanWorldsAndRegions() {\n Set<PermissionRegion> usedRegions = new HashSet<>();\n Set<PermissionWorld> usedWorlds = new HashSet<>();\n\n List<PermissionEntity> entities = new ArrayList<>();\n entities.addAll(getGroups().values());\n entities.addAll(getPlayers().values());\n\n for (PermissionEntity entity : entities) {\n for (Entry entry : entity.getPermissions()) {\n if (entry.getRegion() != null)\n usedRegions.add(entry.getRegion());\n if (entry.getWorld() != null)\n usedWorlds.add(entry.getWorld());\n }\n }\n\n // Determine what needs to be deleted\n Set<PermissionRegion> regionsToDelete = new HashSet<>(getRegions().values());\n regionsToDelete.removeAll(usedRegions);\n Set<PermissionWorld> worldsToDelete = new HashSet<>(getWorlds().values());\n worldsToDelete.removeAll(usedWorlds);\n\n // Re-build lists\n getRegions().clear();\n for (PermissionRegion region : usedRegions) {\n getRegions().put(region.getName(), region);\n }\n getWorlds().clear();\n for (PermissionWorld world : usedWorlds) {\n getWorlds().put(world.getName(), world);\n }\n\n // Tell underlying DAO about deleted regions/worlds\n if (!regionsToDelete.isEmpty())\n deleteRegions(regionsToDelete);\n if (!worldsToDelete.isEmpty())\n deleteWorlds(worldsToDelete);\n }", "public void resetPlayers() {\n Player curPlayer;\n for(int i = 0; i < players.size(); i++){\n curPlayer = players.peek();\n curPlayer.resetRole();\n curPlayer.setLocation(board.getSet(\"trailer\"));\n curPlayer.setAreaData(curPlayer.getLocation().getArea());\n view.setDie(curPlayer);\n players.add(players.remove());\n }\n\n }", "public void removeFromWorld(World world);", "public static void removeAll() {\r\n\t\tfor (final Block block : new HashSet<>(instances_.keySet())) {\r\n\t\t\trevertBlock(block, Material.AIR);\r\n\t\t}\r\n\t\tfor (final TempBlock tempblock : REVERT_QUEUE) {\r\n\t\t\ttempblock.state.update(true, applyPhysics(tempblock.state.getType()));\r\n\t\t\tif (tempblock.revertTask != null) {\r\n\t\t\t\ttempblock.revertTask.run();\r\n\t\t\t}\r\n\t\t}\r\n\t\tREVERT_QUEUE.clear();\r\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (Approvatore approvatore : findAll()) {\n\t\t\tremove(approvatore);\n\t\t}\n\t}", "public void clearEnemies() {\n\t\tIterator<Entity> it = entities.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tEntity e = it.next();\n\t\t\t//Skip playerfish\n\t\t\tif (e instanceof PlayerFish) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//Kill and remove the entity\n\t\t\te.kill();\n\t\t\tit.remove();\n\t\t}\n\t\t\n\t\t//Remove all non playerfish from collidables\n\t\tcollidables.removeIf(c -> !(c instanceof PlayerFish));\n\t\tdrawables.removeIf(c -> !(c instanceof PlayerFish));\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public void clearEngineCrits() {\n for (int i = 0; i < locations(); i++) {\n removeCriticals(i, new CriticalSlot(CriticalSlot.TYPE_SYSTEM, SYSTEM_ENGINE));\n }\n }", "public static void kill() {\n Iterator<Recipe> recipes = tj.getServer().recipeIterator();\r\n Recipe recipe;\r\n\r\n while (recipes.hasNext()) {\r\n recipe = recipes.next();\r\n\r\n if (recipe != null && customItems.containsValue(recipe.getResult()))\r\n recipes.remove();\r\n }\r\n\r\n tj = null;\r\n messages = null;\r\n playerDataFolder = null;\r\n players = null;\r\n customItems = null;\r\n }", "public void clearAreaReset() {\n for(int x = 0; x < buildSize; x++) {\n for(int y = 4; y < 7; y++) {\n for(int z = 0; z < buildSize; z++) {\n myIal.removeBlock(x, y, z);\n }\n }\n }\n\n myIal.locx = 0; myIal.locy = 0; myIal.locz = 0;\n my2Ial.locx = 0; my2Ial.locy = 0; my2Ial.locz = 0;\n }", "private void redrawLines()\n {\n for(int i =0; i<currentRide;i++)\n {\n rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines\n \n }\n }", "public void removeBalls() {\r\n for (Ball ball : this.ballsList) {\r\n ball.removeFromGame(this);\r\n }\r\n this.ballsList.clear();\r\n }", "@Override\r\n\tpublic void reset() {\r\n\t\tairCrafts.clear();\r\n\t}", "void removeRide(String name, String park);", "@Override\n\tpublic void removeAll() {\n\t\tfor (Answer answer : findAll()) {\n\t\t\tremove(answer);\n\t\t}\n\t}", "private void deconstruct(){\n \t\tfinal Match match = this;\n \t\tarenaInterface.onFinish();\n \t\tinsideArena.clear();\n \t\tinsideWaitRoom.clear();\n \t\tfor (Team t: teams){\n \t\t\tTeamController.removeTeam(t, match);\n \t\t\tfor (ArenaPlayer p: t.getPlayers()){\n \t\t\t\tstopTracking(p);\n \t\t\t}\n \t\t}\n \t\tnotifyListeners(new MatchFinishedEvent(match));\n \t\tteams.clear();\n \t\tarenaListeners.clear();\n \t}", "private void removeArea() {\n \t\tthis.set.remove( this.area );\n \t\tthis.finish();\n \t}", "public void clear(){\n\t\tfor (LinkedList<Line> list : lineLists){\n\t\t\tfor (Line l : list){\n\t\t\t\tpane.getChildren().remove(l);\n\t\t\t}\n\t\t\tlist.clear();\n\t\t}\n\t\tfor (Line l : bezierCurve){\n\t\t\tpane.getChildren().remove(l);\n\t\t}\n\t\tbezierCurve.clear();\n\t\t\n\t\tlineLists.clear();\n\t\tlineLists.add(new LinkedList<Line>());\n\t}", "public void clearBalls();", "private void clearLists() {\n\t\tobjects = new ArrayList<Entity>();\n\t\tenemies.clear();\n\t\titemList.clear();\n\t}", "public void clearTerrain(){\n for (Terrain[] terrains : getTerrains()) {\n for (Terrain terrain : terrains) {\n terrain.setCharacter(null); //Clear terrain of fake characters\n }\n }\n }", "@Override\n public void onDirectionStart() {\n if (originMarkers != null) {\n for (Marker marker : originMarkers) {\n marker.remove();\n }\n }\n\n if (destinationMarkers != null) {\n for (Marker marker : destinationMarkers) {\n marker.remove();\n }\n }\n\n if (wayPointsMarkers != null) {\n for (Marker marker:wayPointsMarkers ) {\n marker.remove();\n }\n }\n\n if (polylinePaths != null) {\n for (Polyline polyline:polylinePaths ) {\n polyline.remove();\n }\n }\n\n\n }", "public void clearOverlays();", "void remove(Coordinates coords) throws IOException;", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (LMSLeaveInformation lmsLeaveInformation : findAll()) {\n\t\t\tremove(lmsLeaveInformation);\n\t\t}\n\t}", "public synchronized void removeAll() {\r\n\t\tif (trackedResources == null)\r\n\t\t\treturn;\r\n\t\tPair<IPath, IResourceChangeHandler>[] entries = (Pair<IPath, IResourceChangeHandler>[]) trackedResources.toArray(new Pair[trackedResources.size()]);\r\n\t\tfor (Pair<IPath, IResourceChangeHandler> entry : entries) {\r\n\t\t\tremoveResource(entry.first, entry.second);\r\n\t\t}\r\n\t}", "public void removeAllTime() {\r\n\t\tBase.removeAll(this.model, this.getResource(), TIME);\r\n\t}", "public void removeAllAgents()\n/* 76: */ {\n/* 77:125 */ this.mapPanel.removeAllAgents();\n/* 78: */ }", "public void enleverlaDerniereObs() {\n\n\t\tobstaclesList.remove(obstaclesList.size()-1);\n\t}", "public void trimBarrier(){\n game.setBarrierNumOfParties(game.getPlayersConnected());\n }", "public void trimRoutes(){\n Station firstStation = null;\n Station s = null;\n Link link = null;\n if (trainState instanceof TrainReady)\n s = ((TrainReady) trainState).getStation();\n if (trainState instanceof TrainArrive)\n link = ((TrainArrive) trainState).getLink();\n if (trainState instanceof TrainDepart)\n link = ((TrainDepart) trainState).getLink();\n\n if (trainState instanceof TrainReady){\n firstStation = s;\n } else if (trainState instanceof TrainArrive){\n firstStation = link.getTo();\n } else if (trainState instanceof TrainDepart){\n firstStation = link.getFrom();\n }\n\n Iterator<Route> routeIterator = routes.iterator();\n while (routeIterator.hasNext()) {\n Route route = routeIterator.next();\n Iterator<Link> iter = route.getLinkList().iterator();\n while (iter.hasNext()){\n Link track = iter.next();\n if (!track.getFrom().equals(firstStation))\n iter.remove();\n else\n break;\n }\n if (route.getLinkList().size() == 0) {\n routeIterator.remove();\n }\n }\n }", "public void removeAllFightsystems()\r\n {\n\r\n }", "public static void clearWorld() {\n\t\tpopulation.clear();\n\t}", "void removeRoadside(int i);", "public void eraseLines() {\n for (int i = 0; i < segments.size() - 1; i++) {\n paintLine((Point2D) (segments.elementAt(i)),\n (Point2D) (segments.elementAt(i + 1)));\n }\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (ESFInstructsShootingDirector esfInstructsShootingDirector : findAll()) {\n\t\t\tremove(esfInstructsShootingDirector);\n\t\t}\n\t}", "private void removeDestroyedObjects ()\n {\n Collection<Asteroid> newAsteroids = new ArrayList<>(this.game.getAsteroids().size() * 2); // Avoid reallocation and assume every asteroid spawns successors.\n this.game.getAsteroids().forEach(asteroid -> {\n if (asteroid.isDestroyed()) {\n this.increaseScore();\n newAsteroids.addAll(asteroid.getSuccessors());\n }\n });\n this.game.getAsteroids().addAll(newAsteroids);\n // Remove all asteroids that are destroyed.\n this.game.getAsteroids().removeIf(GameObject::isDestroyed);\n // Remove any bullets that are destroyed.\n this.game.getBullets().removeIf(GameObject::isDestroyed);\n }", "public void removeStalePortalLocations(long worldTime) {\n/* 410 */ if (worldTime % 100L == 0L) {\n/* */ \n/* 412 */ long i = worldTime - 300L;\n/* 413 */ ObjectIterator<PortalPosition> objectiterator = this.destinationCoordinateCache.values().iterator();\n/* */ \n/* 415 */ while (objectiterator.hasNext()) {\n/* */ \n/* 417 */ PortalPosition teleporter$portalposition = (PortalPosition)objectiterator.next();\n/* */ \n/* 419 */ if (teleporter$portalposition == null || teleporter$portalposition.lastUpdateTime < i)\n/* */ {\n/* 421 */ objectiterator.remove();\n/* */ }\n/* */ } \n/* */ } \n/* */ }", "public void clear() {\n helpers.clear();\n islandKeysCache.clear();\n setDirty();\n }", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Candidate candidate : findAll()) {\n\t\t\tremove(candidate);\n\t\t}\n\t}", "public void removeMarkers() throws CoreException {\r\n if (resource == null) {\r\n return;\r\n }\r\n IMarker[] tMarkers = null;\r\n int depth = 2;\r\n tMarkers = resource.findMarkers(LPEXTask.ID, true, depth);\r\n for (int i = tMarkers.length - 1; i >= 0; i--) {\r\n tMarkers[i].delete();\r\n }\r\n }", "public void clearTiles() {\n \tfor (int x = 0; x < (mAbsoluteTileCount.getX()); x++) {\n for (int y = 0; y < (mAbsoluteTileCount.getY()); y++) {\n setTile(0, x, y);\n }\n }\n }", "private void removeFullRowTiles(List<List<Tile>> listOfFullRows){\n for(List<Tile> tilesInRow : listOfFullRows){\n for(Tile tile : tilesInRow){\n //Remove old tile from board\n this.board.removeTile(tile);\n\n //set old tiles to null\n tile = null;\n }\n }\n }" ]
[ "0.6719602", "0.6300896", "0.62731016", "0.62537926", "0.61801046", "0.60323095", "0.60217625", "0.599743", "0.5937798", "0.5866679", "0.58558536", "0.5838494", "0.5808781", "0.5804967", "0.5801013", "0.5800415", "0.5797814", "0.5781498", "0.57800794", "0.5763387", "0.57445604", "0.57148963", "0.56462646", "0.5632084", "0.56219757", "0.5598074", "0.5584113", "0.5567583", "0.5555456", "0.55357736", "0.5534448", "0.55337775", "0.5530965", "0.5530102", "0.55267864", "0.5525543", "0.5525078", "0.55206764", "0.55121404", "0.55118203", "0.5495069", "0.54847497", "0.54845077", "0.5483157", "0.5480457", "0.54781073", "0.54740024", "0.54573417", "0.5455266", "0.5449912", "0.5431284", "0.5427105", "0.54204154", "0.54132706", "0.5396264", "0.5391648", "0.5380202", "0.5372959", "0.5369748", "0.53626806", "0.5360091", "0.5356302", "0.5354698", "0.53461516", "0.53384006", "0.5333776", "0.53192544", "0.530785", "0.5306306", "0.5304567", "0.5304554", "0.53024983", "0.53022486", "0.5301972", "0.5300632", "0.53000367", "0.5298298", "0.52982914", "0.5293671", "0.5285056", "0.52815646", "0.528143", "0.5279541", "0.5278759", "0.5277874", "0.5270344", "0.5269611", "0.5259786", "0.52561253", "0.5255043", "0.5249129", "0.52445024", "0.524218", "0.52404255", "0.5238702", "0.5234701", "0.52219707", "0.5215789", "0.521275", "0.5211493" ]
0.7822958
0
rearranges the RideLines by name.
public void sortByName() { boolean swapMade;//has a swap been made in the most recent pass? //repeat looking for swaps do { swapMade=false;//just starting this pass, so no swap yet //for each RideLines's index for(int i = 0; i<currentRide; i++) { //assume thet the smallest name is the one we start with int minIndex= i; //finding the index of the(alphabetically) lowest RideLines name, //k: the index to start searching for the lowest name for(int k= minIndex+1; k<currentRide; k++) { //if the other RideLines has a lower name, they are the low name if(rides[k].getName().compareTo(rides[minIndex].getName())<0) { // standard swap, using a temporary. swap the smallest name RideLines temp = rides[k]; rides[k]=rides[i]; rides[i]=temp; swapMade=true; //remember this pass made at least one swap } } } }while(swapMade);//until no swaps were found in the most recent past redrawLines();//redraw the image }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void redrawLines()\n {\n for(int i =0; i<currentRide;i++)\n {\n rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines\n \n }\n }", "public void sortByLength()\n {\n boolean swapMade;//has a swap been made in the most recent pass?\n \n //repeat looking for swaps\n do\n {\n swapMade=false;//just starting this pass, so no swap yet\n \n //go through entire array. looking for swaps that need to be done\n for(int i = 0; i<currentRide-1; i++)\n {\n //if the other RideLines has less people\n if(rides[i].getCurrentPeople()<rides[i+1].getCurrentPeople())\n {\n // standard swap, using a temporary. swap with less people\n RideLines temp = rides[i];\n rides[i]=rides[i+1];\n rides[i+1]=temp;\n \n swapMade=true;//remember this pass made at least one swap\n }\n \n } \n }while(swapMade);//until no swaps were found in the most recent past\n \n redrawLines();//redraw the image\n \n }", "@Override\n public void onSortByName() {\n mSorter.sortLocationsByName(mListLocations);\n mAdapter.notifyDataSetChanged();\n }", "public void createMoveAbles(List<String> lines){\n int regelNr = 0;\n int aantalSpelers = Integer.parseInt(lines.get(regelNr));\n while(regelNr<aantalSpelers){\n String[] crds = lines.get(regelNr+1).split(\",\");\n int xCoord = Integer.parseInt(crds[0]);\n int yCoord = Integer.parseInt(crds[1]);\n this.sp = new Speler(new Coordinaat(xCoord,yCoord),this);\n regelNr++;\n }\n\n regelNr += (2);\n int aantalDozen = Integer.parseInt(lines.get(regelNr));\n while(regelNr<(aantalSpelers+aantalDozen+2)){\n String[] crds = lines.get(regelNr+1).split(\",\");\n int xCoord = Integer.parseInt(crds[0]);\n int yCoord = Integer.parseInt(crds[1]);\n new Doos(new Coordinaat(xCoord,yCoord),this);\n regelNr++;\n }\n }", "private void sortOutlines() {\r\n Collections.sort(outlines, reversSizeComparator);\r\n }", "void removeRide(String name, String park);", "public void reorganizeNote() {\n note = Position.orderList(note);\n }", "public void sortEmployeeByName() {\r\n\t\tfor (int indexI = 0; indexI < emp.size() - 1; indexI++) {\r\n\t\t\t\r\n\t\t\tfor (int indexJ = 0; indexJ < emp.size() - indexI - 1; indexJ++) {\r\n\t\t\t\r\n\t\t\t\tif ((emp.get(indexJ).name).compareTo(emp.get(indexJ + 1).name) > 0) {\r\n\t\t\t\t\tEmployee temp1 = emp.get(indexJ);\r\n\t\t\t\t\tEmployee temp2 = emp.get(indexJ + 1);\r\n\t\t\t\t\temp.set(indexJ, temp2);\r\n\t\t\t\t\temp.set(indexJ + 1, temp1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void removeAllLines()\n {\n // get list of all ride lines and remove each\n removeObjects(getObjects(RideLines.class)); //remove RideLines\n removeObjects(getObjects(AddButton.class));//remove AddButton\n removeObjects(getObjects(ReleaseButton.class));//remove ReleaseButton\n removeObjects(getObjects(Person.class));//remove Person\n currentRide=0; // reset actual rides at zero\n }", "private void moveParts() {\n int counter = 0;\n\n while (counter < snake.getSize() - 1) {\n Field previous = snake.getCell(counter);\n Field next = snake.getCell(counter + 1);\n\n next.setPreviousX(next.getX());\n next.setPreviousY(next.getY());\n\n next.setX(previous.getPreviousX());\n next.setY(previous.getPreviousY());\n\n fields[previous.getY()][previous.getX()] = previous;\n fields[next.getY()][next.getX()] = next;\n\n counter++;\n\n }\n }", "public void setName(String rawLineName) {\n this.lineName = rawLineName;\n //System.out.println(this.lineName + \" \" + lineName);\n }", "private void sortTravelContactsByName() {\n Collections.sort(this.contacts, new Comparator<User>(){\n public int compare(User obj1, User obj2) {\n // ## Ascending order\n return obj1.getSortingStringName().compareToIgnoreCase(obj2.getSortingStringName());\n }\n });\n }", "@Override\n\tpublic void reorganize() {\n\n\t}", "PriorityQueue<Ride> orderRidesByPriceAscending(Map<String, Ride> rides){\n return new PriorityQueue<>(rides.values());\n }", "void moveVehicles() {\n for (int i = roads.size() - 1; i >= 0; i--) {\n roads.get(i).moveVehicles();\n checkTurns(i);\n\n\n }\n\n }", "PriorityQueue<Ride> orderRidesByPriceAscending(Set<Ride> rides){\n return new PriorityQueue<>(rides);\n }", "void sortName()\r\n\t{\r\n\t\tCollections.sort(this, this.ContactNameComparator);\r\n\t}", "public void step1(){\n\n Collections.sort(names, new Comparator<String>() {\n @Override\n public int compare(String a, String b) {\n return b.compareTo(a);\n }\n });\n }", "private void changeOrderPhase() {\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n Player tmp = playerList[0];\n playerList[0] = playerList[1];\n playerList[1] = playerList[2];\n playerList[2] = playerList[3];\n playerList[3] = tmp;\n System.out.println();\n for (int i = 0; i < 4; i++)\n System.out.print(playerList[i].getName() + \" ,\");\n System.out.println();\n }", "public NameSurferEntry(String line) {\n\t\tthis.ranksOfName = new int[NDECADES];\n\t\tArrayList<String> parts = split(line);\n\t\tthis.name = parts.get(0);\n\t\t\n\t\tfor(int i = 1; i < parts.size(); i++) {\n\t\t\tString numberString = parts.get(i);\n\t\t\tint number = Integer.parseInt(numberString); \n\t\t\tranksOfName[i - 1] = number;\n\t\t}\n\t}", "public void sort() {\r\n\t\tCollections.sort(parts);\r\n\t}", "private void orderSegments() {\n //insert numOrder for the db\n int i = 0;\n for(TransportSegmentLogic transportSegment: transportSegments){\n transportSegment.setOrder(i);\n i++;\n }\n\n\n\n /*int i = 0;\n int j = 1;\n\n\n TransportSegmentLogic swapSegment;\n\n while(j < transportSegments.size()){\n if(transportSegments.get(j).getOrigin().equals(transportSegments.get(i).getDestination())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(i +1, swapSegment);\n i = i + 1;\n j = i + 1;\n }\n j++;\n }\n\n j = transportSegments.size() -1;\n\n while(j > i){\n if(transportSegments.get(j).getDestination().equals(transportSegments.get(0).getOrigin())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(0, swapSegment);\n i = i + 1;\n j = transportSegments.size();\n }\n j--;\n } */\n }", "public Scores[] dbSorter2(int time, String name){\n DBhandler db = new DBhandler(mActivity);\n Scores s2 = new Scores(time, name); // makes the current score and name into a score object\n\n db.addScore2(s2);\n Scores[] scoreList = db.getAllScores2(); // gets score list from main activity\n scoreList = db.sortScores2(scoreList);\n Log.i(\"Scores count\", Integer.toString(db.getScoresCount2()));\n Log.i(\"Scores time\", Integer.toString(time));\n\n return scoreList;\n }", "public void orderByName() {\n Collections.sort(customers, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n return ((Customer)o1).getName().compareTo(((Customer)o2).getName());\n }\n });\n\n //avisa que a tabela foi alterada\n fireTableDataChanged();\n }", "@Override\n public void onSortByRating() {\n mSorter.sortLocationsByRating(mListLocations);\n mAdapter.notifyDataSetChanged();\n }", "void addRide(String name, String park, Date ridden);", "public void sortCompetitors(){\n\t\t}", "public void sortChart() {\n\t\tPassengerTrain temp;\n\t\tGoodsTrain temp1;\n\n\t\tfor (int index = 0; index < TrainDetails.passengerList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.passengerList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.passengerList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.passengerList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp = TrainDetails.passengerList.get(index);\n\t\t\t\t\tTrainDetails.passengerList.set(index,\n\t\t\t\t\t\t\tTrainDetails.passengerList.get(i));\n\t\t\t\t\tTrainDetails.passengerList.set(i, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int index = 0; index < TrainDetails.goodsList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.goodsList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.goodsList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.goodsList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp1 = TrainDetails.goodsList.get(index);\n\t\t\t\t\tTrainDetails.goodsList.set(index,\n\t\t\t\t\t\t\tTrainDetails.goodsList.get(i));\n\t\t\t\t\tTrainDetails.goodsList.set(i, temp1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void sortHighScores(){\n for(int i=0; i<MAX_SCORES;i++){\n long score = highScores[i];\n String name= names[i];\n int j;\n for(j = i-1; j>= 0 && highScores[j] < score; j--){\n highScores[j+1] = highScores[j];\n names[j+1] = names[j];\n }\n highScores[j+1] = score;\n names[j+1] = name;\n }\n }", "public void sortVehicles() {\n\t\tCollections.sort(vehicles);\n\t\t\n\t}", "private void reverseSortArrayList()\n {\n this.layoutManager = new LinearLayoutManager(this);\n\n List<FoodModel> foodNames = foodModelList;\n\n //Call the collection sort method on the food\n Collections.sort(foodNames, new Comparator<FoodModel>() {\n @Override\n public int compare(FoodModel f1, FoodModel f2) {\n if(f1.getName().compareTo(f2.getName()) > 0)\n {\n return -1;\n }\n else if (f1.getName().compareTo(f2.getName()) < 0)\n {\n return +1;\n }\n else\n {\n return 0;\n }\n }\n });\n//\n// //Creates the adapter\n this.adapter = new ApiFoodAdapter(foodNames, this);\n//\n// //Sets the adapter\n this.recyclerView.setAdapter(adapter);\n// //Sets the layout manager\n this.recyclerView.setLayoutManager(layoutManager);\n//\n// //Notify the adapter of change in data\n adapter.notifyDataSetChanged();\n }", "protected void sortCode() {\n for (int i = 1; i < codeCount; i++) {\n int who = i;\n for (int j = i + 1; j < codeCount; j++) {\n if (code[j].getFileName().compareTo(code[who].getFileName()) < 0) {\n who = j; // this guy is earlier in the alphabet\n }\n }\n if (who != i) { // swap with someone if changes made\n SketchCode temp = code[who];\n code[who] = code[i];\n code[i] = temp;\n }\n }\n }", "public ArrayList<String> getSortedNames() throws Exception {\n FileReader fileReader = new FileReader();\n // Tell FileReader the file path\n fileReader.setFilePath(\"src/main/java/ex41/base/exercise41_input.txt\");\n // use FileReader to get an Arraylist and store it\n ArrayList<String> names = fileReader.getStrings();\n // call sort method to sort arraylist and return that\n return sort(names);\n }", "void removeExternalOrderLine(int i);", "private void sortByLastName() { \r\n\t\tfor ( int i = 0; i < size-1; i++) {\r\n\t\t\tint minIndex = i; \r\n\t\t\tfor(int j = i + 1; j < size; j++) {\r\n\t\t\t\tif ( accounts[j].getHolder().getLname().compareTo(accounts[minIndex].getHolder().getLname()) < 0 ) { \r\n\t\t\t\t\tSystem.out.println(accounts[j].getHolder().getLname());\r\n\t\t\t\t\tminIndex = j;\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t\tAccount temp = accounts[minIndex];\r\n\t\t\taccounts[minIndex] = accounts[i];\r\n\t\t\taccounts[i] = temp;\r\n\t\t}\r\n\t\treturn;\r\n\t}", "public void f4(List<Book> a) {\r\n Collections.sort(a, new Comparator<Book>() {\r\n @Override\r\n public int compare(Book o1, Book o2) {\r\n String txt1[] = o1.getName().split(\" \");\r\n String txt2[] = o2.getName().split(\" \");\r\n String lastName1 = txt1[txt1.length - 1];\r\n String lastName2 = txt2[txt2.length - 1];\r\n return lastName1.compareToIgnoreCase(lastName2);\r\n }\r\n });\r\n\r\n }", "public void readHistory()throws Exception {\n int currentline = 0;\n File myObj = new File(\"order_history.txt\");\n Scanner myReader = new Scanner(myObj);\n outputHistoryObj = new Order[1];\n while (myReader.hasNextLine()) {\n Pizza[] list = new Pizza[1];\n String[] commentparts = null; //This is superstitious, sorry\n String[] fullparts = myReader.nextLine().split(\" // \");\n String[] pizzaparts = fullparts[1].split(\" , \");\n for(int i=0; i<=pizzaparts.length-1; i++){\n if(pizzaparts[i].contains(\" & \")){\n commentparts = pizzaparts[i].split(\" & \");\n list[i] = new Pizza(Menu.list[Integer.parseInt(commentparts[0])-1].getName(), Menu.list[Integer.parseInt(commentparts[0])-1].getIngredients(), commentparts[1], Integer.parseInt(commentparts[0]), Menu.list[Integer.parseInt(commentparts[0])-1].getPrice());\n } else {\n list[i] = new Pizza(Menu.list[Integer.parseInt(pizzaparts[i])-1].getName(), Menu.list[Integer.parseInt(pizzaparts[i])-1].getIngredients(), \"\", Integer.parseInt(pizzaparts[i]), Menu.list[Integer.parseInt(pizzaparts[i])-1].getPrice());\n }\n list = Arrays.copyOf(list, list.length + 1); //Resize name array by one more\n }\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n Date parsed = format.parse(fullparts[3]);\n java.sql.Timestamp timestamp = new java.sql.Timestamp(parsed.getTime());\n outputHistoryObj[currentline] = new Order(fullparts[0], Integer.parseInt(fullparts[2]), timestamp, list);\n outputHistoryObj = Arrays.copyOf(outputHistoryObj, outputHistoryObj.length + 1); //Resize name array by one more\n currentline++;\n }\n myReader.close();\n }", "public void RearrangeItems() {\n Collections.shuffle(images, new Random(System.currentTimeMillis()));\n Collections.shuffle(text, new Random(System.currentTimeMillis()));\n Adapter adapter = new Adapter(MainActivity.this, images, text);\n recyclerView.setAdapter(adapter);\n }", "@Override\n public List<Client> sortByNameAndID(){\n return null;\n }", "@Override\n\tpublic String updateATourneyName() {\n\t\treturn null;\n\t}", "public void reorderData(Double[] times) {\n _reordered = false;\n\t\tDouble[] longitudes;\n\t\ttry {\n\t\t\tlongitudes = getSampleLongitudes();\n\t\t} catch ( Exception ex ) {\n\t\t\tlongitudes = null;\n\t\t}\n\t\tDouble[] latitudes;\n\t\ttry {\n\t\t\tlatitudes = getSampleLatitudes();\n\t\t} catch ( Exception ex ) {\n\t\t\tlatitudes = null;\n\t\t}\n\t\tDouble[] depths;\n\t\ttry {\n\t\t\tdepths = getSampleDepths();\n\t\t} catch ( Exception ex ) {\n\t\t\tdepths = null;\n\t\t}\n\t\t\n\t\tTreeSet<DataLocation> orderedSet = new TreeSet<DataLocation>();\n\t\tfor (int rowIdx = 0; rowIdx < numSamples; rowIdx++) {\n\t\t\tDataLocation dataLoc = new DataLocation();\n\t\t\t// Assign the row index instead of the number\n\t\t\tdataLoc.setRowIndex(rowIdx);\n\t\t\tif ( longitudes != null )\n\t\t\t\tdataLoc.setLongitude(longitudes[rowIdx]);\n\t\t\tif ( latitudes != null )\n\t\t\t\tdataLoc.setLatitude(latitudes[rowIdx]);\n\t\t\tif ( depths != null )\n\t\t\t\tdataLoc.setDepth(depths[rowIdx]);\n\t\t\tif ( times != null ) {\n\t\t\t\tDouble timeValSecs = times[rowIdx];\n\t\t\t\tif ( timeValSecs != null )\n\t\t\t\t\tdataLoc.setDataDate( new Date(Math.round(timeValSecs * 1000.0)) );\n\t\t\t}\n\t\t\t// Leave dataValue as the missing value and add to the ordered set\n\t\t\tif ( ! orderedSet.add(dataLoc) )\n\t\t\t\tthrow new RuntimeException(\"Unexpected duplicate data location with row number\");\n\t\t}\n\n\t\t// Reorder the rows according to the ordering in orderedSet\n\t\t// Just assign the new order of the object arrays; no need to duplicate the objects themselves\n\t\tObject[][] orderedRows = new Object[numSamples][];\n\t\tint rowIdx = 0;\n boolean actuallyReordered = false;\n\t\tfor ( DataLocation dataLoc : orderedSet ) {\n\t\t\t// getRowNumber returns the row index assigned above\n\t\t\torderedRows[rowIdx] = stdObjects[dataLoc.getRowIndex()];\n if ( rowIdx != dataLoc.getRowIndex()) {\n actuallyReordered = true;\n }\n\t\t\trowIdx++;\n\t\t}\n if ( actuallyReordered ) {\n logger.info(\"dataset \" + this.getDatasetName() + \" was reordered by time.\");\n }\n\t\t// Update the array of array of objects to the new ordering\n\t\tstdObjects = orderedRows;\n // force refetch of sample times\n _sampleTimes = null;\n _reordered = true;\n\t}", "public void sortRegions(List<Mdr13Record> list) {\n \t\tSort sort = getConfig().getSort();\n \t\tList<SortKey<Mdr13Record>> keys = new ArrayList<SortKey<Mdr13Record>>();\n \t\tfor (Mdr13Record reg : list) {\n \t\t\tSortKey<Mdr13Record> key = sort.createSortKey(reg, reg.getName(), reg.getMapIndex());\n \t\t\tkeys.add(key);\n \t\t}\n \n \t\tCollections.sort(keys);\n \n \t\tString lastName = \"\";\n \t\tint record = 0;\n \t\tMdr28Record mdr28 = null;\n \t\tfor (SortKey<Mdr13Record> key : keys) {\n \t\t\trecord++;\n \t\t\tMdr13Record reg = key.getObject();\n \n \t\t\t// If this is new name, then create a mdr28 record for it. This\n \t\t\t// will be further filled in when the other sections are prepared.\n \t\t\tString name = reg.getName();\n \t\t\tif (!name.equals(lastName)) {\n \t\t\t\tmdr28 = new Mdr28Record();\n \t\t\t\tmdr28.setName(name);\n \t\t\t\tmdr28.setStrOffset(reg.getStrOffset());\n \t\t\t\tmdr28.setMdr14(reg.getMdr14());\n \t\t\t\tmdr28.setMdr23(record);\n\t\t\t\tlastName = name;\n \t\t\t}\n \n \t\t\tassert mdr28 != null;\n \t\t\treg.setMdr28(mdr28);\n \n\t\t\tregions.add(reg);\n \t\t}\n \t}", "public void shiftLines(List<String> lines) {\t\t\n\t\tfor (int i = 0; i < lines.size(); ++i) {\t\t//for each line in the initial input\t\n\t\t\tString line = lines.get(i);\t\t//Current line\n\t\t\tList<String> words = new LinkedList<String>(Arrays.asList(line.split(\" \")));\t//Split the line by spaces\n\t\t\t\n\t\t\tfor (int j = 0; j < words.size(); ++j) {\t\t//do circular shift\n\t\t\t\tshiftedLines.add(line);\t\t\t\t\n\t\t\t\twords.add(words.get(0));\t\t//Append first word to the end of the line\n\t\t\t\twords.remove(0);\t\t\t\t//Remove the first word from the line\n\t\t\t\tline = String.join(\" \", words);\t//Save shifted line\n\t\t\t}\n\t\t}\n\t}", "public void moveAll()\n\t{\n\t\tmoveOutput = \"\";\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] != null)\n\t\t\t{\n\t\t\t\triver[i].move(i);\n\t\t\t}\n\t\t}\n\t}", "private void sortArrayList()\n {\n this.layoutManager = new LinearLayoutManager(this);\n\n List<FoodModel> foodNames = foodModelList;\n\n //Call the collection sort method on the food\n Collections.sort(foodNames, new Comparator<FoodModel>() {\n @Override\n public int compare(FoodModel f1, FoodModel f2) {\n if(f1.getName().compareTo(f2.getName()) > 0)\n {\n return +1;\n }\n else if (f1.getName().compareTo(f2.getName()) < 0)\n {\n return -1;\n }\n else\n {\n return 0;\n }\n }\n });\n\n //Creates the adapter\n this.adapter = new ApiFoodAdapter(foodNames, this);\n\n //Sets the adapter\n this.recyclerView.setAdapter(adapter);\n //Sets the layout manager\n this.recyclerView.setLayoutManager(layoutManager);\n\n //Notify the adapter of change in data\n adapter.notifyDataSetChanged();\n }", "void reorganizeTriples(ProgressListener listener);", "public void step2(){\n\n Collections.sort(names,(String a,String b) -> {\n return a.compareTo(b);\n });\n }", "public void sortieBloc() {\n this.tableLocaleCourante = this.tableLocaleCourante.getTableLocalPere();\n }", "void parse(final String line,\n final LineReaderIterator lri) {\n // Parse one line at a time\n\n boolean first = true;\n String nextLine = line;\n\n while (nextLine != null) {\n if (nextLine.length() == 0) {\n nextLine = lri.next();\n continue;\n }\n\n if (first) {\n // First line is special - has ZONE<sp>name<sp><rule>\n\n name = Utils.untab(nextLine).get(1);\n }\n\n final List<String> splits = Utils.untab(nextLine);\n\n if (splits.size() == 0) {\n // Assume comment line\n nextLine = lri.next();\n continue;\n }\n\n final ZoneRule rule = new ZoneRule(this);\n final boolean hasUntil = rule.parse(splits, nextLine, first);\n if (!rule.gmtoff.equals(\"#\")) {\n rules.add(rule);\n }\n first = false;\n\n if (!hasUntil) {\n return;\n }\n nextLine = lri.next();\n }\n }", "public List<Place> getRoadSegments(String roadNameRequested) {\t\t\n\t\tList<Place> roadSegmentsRequested = new ArrayList<Place>();\n\t\tfor(Place p: placesByUri.values()){\n\t\t\tboolean pIsRoadSegment = p.getRoadSegment() != null;\n\t\t\t\n\t\t\tif(pIsRoadSegment){\n\t\t\t\tboolean roadNameIsEqual = true;\n\t\t\t\tif(roadNameRequested != null){\n\t\t\t\t\troadNameIsEqual = p.getRoadSegment().\n\t\t\t\t\t\t\t\t\t getRoadName().equals(roadNameRequested);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(roadNameIsEqual){\n\t\t\t\t\troadSegmentsRequested.add(p);\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn roadSegmentsRequested;\n\t}", "public void sortGivenArray_name(){\n movieList = quickSort(movieList);\n }", "private void sortByLastName() {\n //selection sort\n for (int i = 0; i < size - 1; i++) {\n int alphaSmallerIndex = i;\n for (int j = i + 1; j < size; j++)\n if (accounts[j].getHolder().getLastNameFirstName().compareTo(accounts[alphaSmallerIndex].getHolder().getLastNameFirstName()) < 0) {\n alphaSmallerIndex = j;\n }\n Account acc = accounts[alphaSmallerIndex];\n accounts[alphaSmallerIndex] = accounts[i];\n accounts[i] = acc;\n }\n }", "public void readArmies(){\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n vertices.get(Integer.parseInt(armyLine[1])-1).addArmies(Integer.parseInt(armyLine[2]));\n System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n // Read countries armies for AI agents\n\n for ( j= 0;j<countriesArmyLines.size();j++) {\n String [] armyLine = countriesArmyLines.get(j).split(\" \");\n allSCountries.get(Integer.parseInt(armyLine[1])).setNumberArmies(Integer.parseInt(armyLine[2]));\n // System.out.println(\"army \"+vertices.get(j).getNumberArmies());\n }\n NState.globalState.allCountries=allSCountries;\n }", "public static void regroupAllLetters(List<Line> lines) {\n double spacing;\n for (Line line : lines) {\n spacing = getMaximumSpacingForLine(line);\n System.out.println(\"Max spacing for line: \"+spacing);\n regroupLettersByWords(line, spacing);\n }\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\n BufferedReader br = new BufferedReader(new FileReader(\"D:\\\\name-sorter\\\\unsorted-names-list.txt\"));\n \n // Step 5: Create an ArrayList to hold the Person objects.\n ArrayList<Person> listPersonNames = new ArrayList<Person>();\n \n // Step 6 : Read every person record from input text file. For each person record, \n // create one person object and add that person object into listPersonNames.\n String line = br.readLine();\n \n while(line != null){\n String[] names = line.split(\" \");\n\n String givenNames = \"\";\n for(int a=0; a < names.length-1; a++){\n givenNames += names[a];\n givenNames += \" \";\n }\n \n String lastName = names[names.length-1];\n \n listPersonNames.add(new Person(givenNames, lastName));\n \n line = br.readLine();\n }\n \n // Step 7 : Sort the ArrayList listPersonNames using Collections.sort() method by passing \n // NamesCompare object to sort the text file.\n Collections.sort(listPersonNames, new NamesCompare());\n \n // Step 8 : Create BufferedWriter object to write the records into output text file.\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"D:\\\\name-sorter\\\\sorted-names-list.txt\"));\n \n // Step 9 : Write each listPersonNames into output text file.\n for (Person person : listPersonNames){\n writer.write(person.givenNames);\n writer.write(\" \"+person.lastName);\n writer.newLine();\n \n System.out.println(person.givenNames+\" \"+person.lastName);\n }\n \n // Step 10 : Close the resources.\n br.close();\n writer.close();\n }", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "public void changeSortOrder();", "List<Vehicle> getLineVehicles(String line);", "private void sortByLastName() { \n\t\t\n\t\tint numAccounts = size;\n\t\tString firstHolder_lname;\n\t\tString secondHolder_lname;\n\t\t\n\t\tfor (int i = 0; i < numAccounts-1; i++) {\n\t\t\t\n\t\t\t\n\t\t\tint min_idx = i;\n\t\t\t\n\t\t\t\n\t\t\tfor (int j = i+1; j < numAccounts; j++) {\n\t\t\t\t\n\t\t\t\t// Retrieve last name of two that you are comparing\n\t\t\t\tfirstHolder_lname = (accounts[j].getHolder()).get_lname();\n\t\t\t\tsecondHolder_lname = (accounts[min_idx].getHolder()).get_lname();\n\t\t\t\t\n\t\t\t\tif (firstHolder_lname.compareTo(secondHolder_lname) < 0) {\n\t\t\t\t\tmin_idx = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tAccount temp = accounts[min_idx];\n\t\t\taccounts[min_idx] = accounts[i];\n\t\t\taccounts[i] = temp;\n\n\t\t\t\n\t\t}\n\t}", "public void sortYear(){\r\n\r\n\t\t// sort magazines by year inside the items array\r\n Magazine temp; // used for swapping magazines in the array\r\n\t for(int i=0; i<items.size(); i++) {\r\n\r\n\t\t// Check to see the item is a magazine. We will only\r\n\t\t//use magazines.\r\n\t if(items.get(i).getItemType() != Item.ItemTypes.MAGAZINE)\r\n\t continue;\r\n\t\t\t\r\n\t for(int j=i+1; j<items.size(); j++) {\r\n\t\t // We consider only magazines\r\n\t if(items.get(j).getItemType() != Item.ItemTypes.MAGAZINE)\r\n\t\t continue;\r\n\t\t // Compare the years of the two magazines\r\n\t if(((Magazine)items.get(i)).getYear() < \r\n\t \t((Magazine)items.get(j)).getYear()) {\r\n\t\t // Swap the items\r\n\t\t temp = (Magazine)items.get(i);\r\n\t\t items.remove(i);\r\n\t\t items.add(i, items.get(j-1));\r\n\t\t items.remove(j);\r\n\t\t items.add(j, temp);\r\n\t }\r\n\t }\r\n\t }\r\n\t\t// Print the magazines\r\n\t\tfor(int i=0; i<items.size(); i++)\r\n\t\t\tif(items.get(i).getItemType() == Item.ItemTypes.MAGAZINE)\r\n\t\t\t\tSystem.out.println(items.get(i).toString());\r\n }", "private SortOrder(String strName) { m_strName = strName; }", "public void loadFile()\n {\n\n FileDialog fd = null; //no value\n fd = new FileDialog(fd , \"Pick up a bubble file: \" , FileDialog.LOAD); //create popup menu \n fd.setVisible(true); // make visible manu\n String directory = fd.getDirectory(); // give the location of file\n String name = fd.getFile(); // give us what file is it\n String fullName = directory + name; //put together in one sting \n \n File rideNameFile = new File(fullName); //open new file with above directory and name\n \n Scanner nameReader = null;\n //when I try to pick up it read as scanner what I choose\n try\n {\n nameReader = new Scanner(rideNameFile);\n }\n catch (FileNotFoundException fnfe)//if dont find return this message below\n {\n return; // immedaitely exit from here\n }\n \n //if load button pressed, it remove all ride lines in the world\n if(load.getFound()){\n removeAllLines();\n } \n \n //read until is no more stings inside of file and until fullfill max rides\n while(nameReader.hasNextLine()&&currentRide<MAX_RIDES)\n {\n \n String rd= nameReader.nextLine();//hold and read string with name of ride\n RideLines nova =new RideLines(rd);\n rides[currentRide]=nova;\n \n //Create a RideLine with string given from file\n addObject(rides[currentRide++], 650, 20 + 40*currentRide);\n }\n \n //when is no more strings inside it close reader\n nameReader.close();\n }", "private void splitHelper(double splitStartFraction, String name1, String name2) {\n\t\tthis.children = new Zone[2];\n\t\tthis.splitStartFraction = splitStartFraction;\n\t\tthis.children[0] = new Zone(this, name1);\n\t\tthis.children[1] = new Zone(this, name2);\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<a;i++){\n\t\t\t\t\tfor(j=0;j<a-i-1;j++){\n\t\t\t\t\t\tString name1=det[j].name;\n\t\t\t\t\t\tString name2=det[j+1].name;\n\t\t\t\t\t\tif(name1.compareToIgnoreCase(name2)>0){\n\t\t\t\t\t\t\tdetails tempo=det[j];\n\t\t\t\t\t\t\tdet[j]=det[j+1];\n\t\t\t\t\t\t\tdet[j+1]=tempo;\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\t\n\t\t\t\tfor(i=0;i<a;i++){\n\t\t\t\t\tHashMap<String,String> temp1 = new HashMap<String,String>();\n\t\t\t\t\ttemp1.put(\"name\",det[i].name);\n\t\t\t\t\ttemp1.put(\"size\",String.valueOf(det[i].size));\n\t\t\t\t\ttemp1.put(\"extn\",det[i].extn);\n\t\t\t\t\tnames.add(temp1);\n\t\t\t\t}\n\t\t\t\tDisp();\n\t\t\t}", "public void reorder(FillingStrategy strategy) {\n\n\t\tList<Content> contentsLongList = null;\n\t\tif (contentMap.size() == 0)\n\t\t\tthrow new SomethingWentWrongException(\"Empty Location\");\n \n\t\tcontentsLongList = sortContentMapByVolumeAndBarcode(contentMap);\n\t\tremoveAllContentFromLocation();\n\n\t\tswitch (strategy) {\n\t\tcase ROW_WISE:\t\t\n\t\t\tfillLocationWithItems(contentsLongList, FillingStrategy.ROW_WISE);\n\t\t\tbreak;\n\t\tcase COLUMN_WISE:\n\t\t\tfillLocationWithItems(contentsLongList, FillingStrategy.COLUMN_WISE);\n\t\t\tbreak;\n\t\t}\n\n\t}", "private void fillNamesArray() // fillNamesArray method start\n\t\t{\n\t\t\tfor (int x = 0; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tnames[x + 1] = accounts[x].getName();\n\t\t\t} // end for\n\t\t\t\n\t\t\tfor (int x = 0, y = 1; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tif (!accounts[x].getStatus())\n\t\t\t\t{\n\t\t\t\t\tdebitDecreaseNames[y] = accounts[x].getName();\n\t\t\t\t\ty++;\n\t\t\t\t} // end if\n\t\t\t} // end for\n\t\t\t\n\t\t\tfor (int x = 0, y = 1; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tif (accounts[x].getStatus())\n\t\t\t\t{\n\t\t\t\t\tdebitIncreaseNames[y] = accounts[x].getName();\n\t\t\t\t\ty++;\n\t\t\t\t} // end if\n\t\t\t} // end for \n\n\t\t}", "public void sortNames() {\n\t\t\n\t\t\n\t\tSystem.out.println( \"\\nTASK [4]> Match names with e-mails, check for duplicate e-mails: \\n\");\n\t\t\n\t\t// Adding all names / e-mails to ArrayLists, avoiding blank lines\n\t\tArrayList<String> allNames = new ArrayList<String>();\n\t\tArrayList<String> allEmails = new ArrayList<String>();\n\t\t\n\t\tfor(int col = 1; col < 3; ++col) {\n\t\t\t\n\t\t\tString[] namesCol = columns.get(col);\n\t\t\tString[] emailsCol = columns.get(col + 2);\n\t\t\t\n\t\t\t// omit the first row with col. names\n\t\t\tfor(int row = 1; row < namesCol.length; ++row) {\n\t\t\t\t\n\t\t\t\tif(!namesCol[ row ].isBlank()) {\n\t\t\t\t\tallNames.add( namesCol[ row ] );\t\t\t\t\t\n\t\t\t\t\tallEmails.add( emailsCol[ row ]);\n\t\t\t\t } \t\t\t\t\n\t\t\t}\t\t\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"Names, e-mails (both columns): \\n\");\n\t\t\n\t\t\n\t\tfor(int row = 0; row < allNames.size(); ++row) {\n\t\t\tSystem.out.print( allNames.get(row) + \" \" + allEmails.get(row) + \"\\n\");\n\t\t}\n\t\t\n\t\t\n\t\t// checking for duplicates\n\t\tString[] emails = allEmails.toArray( new String[ allEmails.size() ] );\n\t\tArrayList<String> duplEmails = this.findDuplicates( emails ); \n\t\t\n\n\t\t\n\t\tSystem.out.println(\"\\nStudents with same emails: \\n\");\n\t\t\t\t\n\t\tfor(int dupl = 0; dupl < duplEmails.size(); ++ dupl) {\n\t\t\t\n\t\t\tString duplicate_i = duplEmails.get(dupl);\n\t\t\tfor(int row = 0; row < allEmails.size(); ++ row) {\n\t\t\t\t\n\t\t\t\tif(Objects.equals(allEmails.get(row), duplicate_i ) ) {\n\t\t\t\t\tSystem.out.println(allNames.get(row) + \" : \" + duplicate_i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println( \"----------------------------------------------------\");\n\t}", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "private void fillNamesArray() // fillNamesArray method start\n\t\t{\n\t\t\tfor (int x = 0; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tnames[x + 1] = accounts[x].getName();\n\t\t\t} // end for\n\t\t\t\n\t\t\tfor (int x = 0, y = 1; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tif (!accounts[x].getStatus())\n\t\t\t\t{\n\t\t\t\t\tdebitDecreaseNames[y] = accounts[x].getName();\n\t\t\t\t\ty++;\n\t\t\t\t} // end if\n\t\t\t} // end for\n\t\t\t\n\t\t\tfor (int x = 0, y = 1; x < SIZE - 1; x++)\n\t\t\t{\n\t\t\t\tif (accounts[x].getStatus())\n\t\t\t\t{\n\t\t\t\t\tdebitIncreaseNames[y] = accounts[x].getName();\n\t\t\t\t\ty++;\n\t\t\t\t} // end if\n\t\t\t} // end for \n\t\t}", "public static void reformat(BufferedReader input) throws IOException {\n String line = input.readLine();\n\n while (line != null) {\n String[] parts = line.split(\";\", 2);\n for (String part : parts) {\n System.out.println(part);\n }\n line = input.readLine();\n }\n }", "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "public ArrayList<String> sort (ArrayList<String> names) {\n Collections.sort(names);\n // return Arraylist\n return names;\n }", "public void sortByName(String file) throws FileNotFoundException, IOException, ParseException {\n\t\tarrayList = pareseFile(file);\n\t\tFile file1 = new File(file);\n\t\t/*\n\t\t * for (int i = 0; i < arrayList.size(); i++) { JSONObject\n\t\t * person1=(JSONObject)arrayList.get(i); //person1.get(\"lastName\");\n\t\t * arrayList.sort((Person.CompareByName)person1); }\n\t\t */\n\t\t// mapper.writeValue(file1, arrayList);\n\t\tfor (int i = 0; i < arrayList.size() - 1; i++) {\n\t\t\tfor (int j = 0; j < arrayList.size() - i - 1; j++) {\n\n\t\t\t\tJSONObject person1 = (JSONObject) arrayList.get(j);\n\t\t\t\tJSONObject person2 = (JSONObject) arrayList.get(j + 1);\n\t\t\t\tif ((person1.get(\"lastName\").toString()).compareToIgnoreCase(person2.get(\"lastName\").toString()) > 0) {\n\t\t\t\t\tJSONObject temp = person1;\n\t\t\t\t\tarrayList.set(j, person2);\n\t\t\t\t\tarrayList.set(j + 1, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmapper.writeValue(file1, arrayList);\n\n\t\t}\n\t}", "@Override\n public List<Client> clientsSortedAlphabetically(){\n log.trace(\"clientsSortedAlphabetically -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).sorted(Comparator.comparing(Client::getName)).collect(Collectors.toList());\n log.trace(\"clientsSortedAlphabetically: result={}\", result);\n return result;\n\n }", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "private void convertCldrItems(String outDirname, String pathPrefix)\n throws IOException, ParseException {\n // zone and timezone items are queued for sorting first before they are\n // processed.\n\n for (JSONSection js : sections) {\n ArrayList<CldrItem> sortingItems = new ArrayList<CldrItem>();\n ArrayList<CldrItem> arrayItems = new ArrayList<CldrItem>();\n\n ArrayList<String> out = new ArrayList<String>();\n ArrayList<CldrNode> nodesForLastItem = new ArrayList<CldrNode>();\n String lastLeadingArrayItemPath = null;\n String leadingArrayItemPath = \"\";\n int valueCount = 0;\n String previousIdentityPath = null;\n List<CldrItem> theItems = sectionItems.get(js);\n if (theItems == null || theItems.size() == 0) {\n continue;\n }\n for (CldrItem item : theItems) {\n // items in the identity section of a file should only ever contain the lowest level, even if using\n // resolving source, so if we have duplicates ( caused by attributes used as a value ) then suppress\n // them here.\n if (item.getPath().contains(\"/identity/\")) {\n String[] parts = item.getPath().split(\"\\\\[\");\n if (parts[0].equals(previousIdentityPath)) {\n continue;\n } else {\n previousIdentityPath = parts[0];\n }\n }\n\n // some items need to be split to multiple item before processing. None\n // of those items need to be sorted.\n CldrItem[] items = item.split();\n if (items == null) {\n items = new CldrItem[1];\n items[0] = item;\n }\n valueCount += items.length;\n\n for (CldrItem newItem : items) {\n // alias will be dropped in conversion, don't count it.\n if (newItem.isAliasItem()) {\n valueCount--;\n }\n\n // Items like zone items need to be sorted first before write them out.\n if (newItem.needsSort()) {\n resolveArrayItems(out, nodesForLastItem, arrayItems);\n sortingItems.add(newItem);\n } else {\n Matcher matcher = LdmlConvertRules.ARRAY_ITEM_PATTERN.matcher(\n newItem.getPath());\n if (matcher.matches()) {\n resolveSortingItems(out, nodesForLastItem, sortingItems);\n leadingArrayItemPath = matcher.group(1);\n if (lastLeadingArrayItemPath != null &&\n !lastLeadingArrayItemPath.equals(leadingArrayItemPath)) {\n resolveArrayItems(out, nodesForLastItem, arrayItems);\n }\n lastLeadingArrayItemPath = leadingArrayItemPath;\n arrayItems.add(newItem);\n } else {\n resolveSortingItems(out, nodesForLastItem, sortingItems);\n resolveArrayItems(out, nodesForLastItem, arrayItems);\n outputCldrItem(out, nodesForLastItem, newItem);\n lastLeadingArrayItemPath = \"\";\n }\n }\n }\n }\n\n resolveSortingItems(out, nodesForLastItem, sortingItems);\n resolveArrayItems(out, nodesForLastItem, arrayItems);\n\n closeNodes(out, nodesForLastItem.size() - 2, 0);\n String outFilename;\n outFilename = js.section + \".json\";\n writeToFile(outDirname, outFilename, out);\n\n System.out.println(String.format(\" %s = %d values\", outFilename, valueCount));\n }\n }", "private void setVoteOrder() {\n\t\tfor (int i = 1; i < temp.size(); i++) {\n\t\t\t// deleting the comma from the name\n\t\t\tString s = temp.elementAt(i).replaceAll(\",\", \"\");\n\t\t\t// creating a vector \"tempVoteOrder\" to store the preferences of\n\t\t\t// each voter\n=======\n\t\t\tCandidats.add(candidat);\n\t\t\ttempCandidats = tempCandidats.replaceFirst(\n\t\t\t\t\ttempCandidats.substring(0, tempCandidats.indexOf(\",\") + 1),\n\t\t\t\t\t\"\");// delete the first candidat in the String\n\t\t}\n\t\tfor (int j = 0; j < Candidats.size(); j++)\n\t\t\tCandidats.elementAt(j).setVowsPerRound(Candidats.size());// fill the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// vector\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// size\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"candidats\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0's\n\t}", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "public void readRestaurantDetail (BufferedReader reader) {\n\n\n try {\n // Each line of CSV will be stored in this String\n String line = \"\";\n reader.readLine();\n int id = 0;\n while ((line = reader.readLine()) != null) {\n// count++;\n\n // line will be split by \",\", into an array of String\n String[] eachDetailsOfRestaurant = line.split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n\n // Restaurant object created with the tracking number and name.\n Restaurant restaurant = new Restaurant(eachDetailsOfRestaurant[0], eachDetailsOfRestaurant[1], id);\n\n// Log.e(\"checking..............\", count.toString() + \" \" + restaurant.getName());\n\n // Converting coordinates to double and creating Location object\n for (int i = 0; i < eachDetailsOfRestaurant.length; i++) {\n Log.e(TAG, \"\" + i + \":\" + eachDetailsOfRestaurant[i]);\n }\n Double latitude = Double.parseDouble(eachDetailsOfRestaurant[5]);\n Double longitude = Double.parseDouble(eachDetailsOfRestaurant[6]);\n Location location = new Location(eachDetailsOfRestaurant[2], eachDetailsOfRestaurant[3], latitude, longitude);\n\n // Setting Location of the restaurant and adding to the Arraylist\n restaurant.setLocation(location);\n restaurants.add(restaurant);\n id++;\n }\n Collections.sort(restaurants);\n } catch (IOException e) {\n// e.printStackTrace();\n }\n }", "public void orderPartsRecords(Integer order, List<PartRecord> parts) throws Exception {\n switch (order){\n case 1:\n parts.sort((p1, p2) -> p1.getPart().getDescription().compareTo(p2.getPart().getDescription()));\n break;\n case 2:\n parts.sort((p1, p2) -> p2.getPart().getDescription().compareTo(p1.getPart().getDescription()));\n break;\n case 3:\n parts.sort(Comparator.comparing(PartRecord::getLastModification));\n }\n }", "private String[] sortStringArray(String[] lines, Comparator<String> comparator) {\n Arrays.sort(lines, comparator);\n return lines;\n }", "public void rearrangeContents() {\n buildMethodCallGraph();\n\n LOG.debug(\"identifying setters and extracted (related) methods\");\n for (ClassContentsEntry contentsEntry : getContents()) {\n if (contentsEntry instanceof RelatableEntry) {\n ((RelatableEntry)contentsEntry).determineSettersAndMethodCalls(mySettings, getContents());\n }\n }\n LOG.debug(\"relating extracted methods\");\n for (ClassContentsEntry contentsEntry : getContents()) {\n if (contentsEntry instanceof RelatableEntry) {\n ((RelatableEntry)contentsEntry).determineExtractedMethod(mySettings.getExtractedMethodsSettings());\n }\n }\n // Remove any cycles in the related method graph.\n MethodEntry.eliminateCycles(getContents());\n // Check for overloaded extracted methods; if configured to be kept together, attach subsequent\n // methods to the first and remove them from consideration for other alignment.\n MethodEntry.handleOverloadedMethods(getContents(), mySettings);\n final GenericRearranger classContentsRearranger =\n new GenericRearranger(mySettings.getItemOrderAttributeList(),\n myContents,\n myNestingLevel,\n mySettings)\n {\n public void rearrangeRelatedItems(List<ClassContentsEntry> entries,\n List<RuleInstance> ruleInstanceList)\n {\n for (RuleInstance ruleInstance : ruleInstanceList) {\n ruleInstance.rearrangeRuleItems(entries, mySettings);\n }\n }\n };\n myResultRuleInstances = classContentsRearranger.rearrangeEntries();\n }", "public static Map<String, List<CommonName>> sortCommonNameSources(List<CommonName> names){\n \tString pattern = \"[^a-zA-Z0-9]\";\n \tCommonName prevName = null;\n \tMap<String, List<CommonName>> map = new Hashtable<String, List<CommonName>>();\n \tList<CommonName> list = new ArrayList<CommonName>();\n \t\n \t//made a copy of names, so sorting doesn't effect original list order ....\n \tList<CommonName> newArrayList = (List<CommonName>)((ArrayList<CommonName>)names).clone();\n \tCollections.sort(newArrayList, new Comparator<CommonName>(){\n \t@Override\n public int compare(CommonName o1, CommonName o2) {\n \t\tint i = -1;\n \t\ttry{\n \t\t\ti = o1.getNameString().trim().compareToIgnoreCase(o2.getNameString().trim());\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tlogger.error(e);\n \t\t}\n \t\treturn i;\n \t}\n \t});\n \tIterator<CommonName> it = newArrayList.iterator();\n \tif(it.hasNext()){\n \t\tprevName = it.next();\n \t\tlist.add(prevName);\n \t}\n \t\n \t// group the name with infosource, compare the name with alphabet & number only.\n \twhile(it.hasNext()){\n \t\tCommonName curName = it.next();\n \t\tif(prevName.getNameString().trim().replaceAll(pattern, \"\").equalsIgnoreCase(\n \t\t\t\tcurName.getNameString().trim().replaceAll(pattern, \"\"))){\n \t\t\tlist.add(curName);\n \t\t}\n \t\telse{\n \t\t\tmap.put(prevName.getNameString().trim(), list);\n \t\t\t\n \t\t\tlist = new ArrayList<CommonName>();\n \t\t\tlist.add(curName);\n \t\t\tprevName = curName;\n \t\t}\n \t}\n \tif(prevName != null){\n \t\tmap.put(prevName.getNameString().trim(), list);\n \t}\n \treturn map;\n }", "public List<Line> sortLines(List<Line> lineList) {\r\n\t\tCollections.sort(lineList,new Comparator<Line>() {\r\n\t\t\tpublic int compare(Line l1, Line l2) {\r\n\t\t\t\treturn l1.getLineScore().compareTo(l2.getLineScore());\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn lineList;\r\n\t}", "public void setVehicleName(String vehicleName) {\n this.itemName = vehicleName;\n }", "public static InventoryItem[] getSortedInventoryList(){\n InventoryItem[] originalInventoryList = \r\n VikingQuest.getCurrentGame().getItems();\r\n // Clone (make a copy) origionalList\r\n InventoryItem[] inventoryList = originalInventoryList.clone();\r\n \r\n // Using a BubbleSort to sort the list of inventoryList by name\r\n Item tempInventoryItem;\r\n for (int i=0; i<inventoryList.length-1; i++){\r\n for (int j=0; j<inventoryList.length-1-i; j++){\r\n if (inventoryList[j].getType().\r\n compareToIgnoreCase(inventoryList[j + 1].getType()) > 0){\r\n tempItem = inventoryList[j];\r\n inventoryList[j] = inventoryList[j+1];\r\n inventoryList[j+1] = tempItem;\r\n }\r\n }\r\n }\r\n return inventoryList; \r\n }", "@Override\n public void onSortByDate() {\n mSorter.sortLocationsByDate(mListLocations);\n mAdapter.notifyDataSetChanged();\n }", "public void removeLines() {\n int compLines = 0;\n int cont2 = 0;\n\n for(cont2=20; cont2>0; cont2--) {\n while(completeLines[compLines] == cont2) {\n cont2--; compLines++;\n }\n this.copyLine(cont2, cont2+compLines);\n }\n\n lines += compLines;\n score += 10*(level+1)*compLines;\n level = lines/20;\n if(level>9) level=9;\n\n for(cont2=1; cont2<compLines+1; cont2++) copyLine(0,cont2);\n for(cont2=0; cont2<5; cont2++) completeLines[cont2] = -1;\n }", "List<AirportDTO> getAirportsByName(String name);", "private void handleMoveArmies(Territory t) {\n edu.aau.se2.server.data.Territory clickedTerritory = db.getLobby().getTerritoryByID(t.getID());\n if (selectedTerritory == null) {\n if (clickedTerritory.getOccupierPlayerID() == db.getThisPlayer().getUid() &&\n clickedTerritory.getArmyCount() > 1) {\n\n selectedTerritory = t;\n if (highlightMovableTerritories(t) == 0) {\n clearTerritorySelection();\n }\n }\n }\n // move to second clicked territory if it is a neighbour of first clicked\n else if (TerritoryHelper.areNeighbouring(selectedTerritory.getID(), t.getID()) &&\n (clickedTerritory.getOccupierPlayerID() == db.getThisPlayer().getUid() ||\n clickedTerritory.isNotOccupied())) {\n\n boardListener.armyMoved(selectedTerritory.getID(), t.getID(), -1);\n clearTerritorySelection();\n }\n }", "public void orderParts(Integer order, List<Part> parts) throws Exception {\n switch (order){\n case 1:\n parts.sort(Comparator.comparing(Part::getDescription));\n break;\n case 2:\n parts.sort(Comparator.comparing(Part::getDescription).reversed());\n break;\n case 3:\n parts.sort(Comparator.comparing(Part::getLastModification));\n break;\n }\n }", "public static void setLineupInfo(View res) {\n\t\tfinal AutoCompleteTextView p1 = (AutoCompleteTextView) res\n\t\t\t\t.findViewById(R.id.player1_input);\n\t\tfinal AutoCompleteTextView p2 = (AutoCompleteTextView) res\n\t\t\t\t.findViewById(R.id.player2_input);\n\t\tfinal LinearLayout table = (LinearLayout) res\n\t\t\t\t.findViewById(R.id.table_base);\n\t\tButton submit = (Button) res.findViewById(R.id.compare_submit);\n\t\tButton clear = (Button) res.findViewById(R.id.compare_clear);\n\t\tfinal List<Map<String, String>> data = new ArrayList<Map<String, String>>();\n\t\tfor (PlayerObject player : ImportLeague.holder.players) {\n\t\t\tMap<String, String> datum = new HashMap<String, String>(2);\n\t\t\tdatum.put(\"main\", player.info.name);\n\t\t\tif (!player.info.name.contains(Constants.DST)\n\t\t\t\t\t&& player.info.position.length() >= 1\n\t\t\t\t\t&& player.info.team.length() > 2) {\n\t\t\t\tdatum.put(\"sub\", player.info.team);\n\t\t\t} else {\n\t\t\t\tdatum.put(\"sub\", \"\");\n\t\t\t}\n\t\t\tdata.add(datum);\n\t\t}\n\t\tfinal List<Map<String, String>> dataSorted = ManageInput.sortData(data);\n\t\tfinal SimpleAdapter mAdapter = new SimpleAdapter(ImportLeague.cont,\n\t\t\t\tdataSorted, android.R.layout.simple_list_item_2, new String[] {\n\t\t\t\t\t\t\"main\", \"sub\" }, new int[] { android.R.id.text1,\n\t\t\t\t\t\tandroid.R.id.text2 });\n\t\tp1.setAdapter(mAdapter);\n\t\tp2.setAdapter(mAdapter);\n\t\tp1.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tString name = (((TwoLineListItem) arg1)).getText1().getText()\n\t\t\t\t\t\t.toString();\n\t\t\t\tString team = (((TwoLineListItem) arg1)).getText2().getText()\n\t\t\t\t\t\t.toString();\n\t\t\t\tp1.setText(name + \" - \" + team);\n\t\t\t}\n\t\t});\n\t\tp1.setOnLongClickListener(new OnLongClickListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onLongClick(View v) {\n\t\t\t\tp1.setText(\"\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\tp2.setOnItemClickListener(new OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tString name = (((TwoLineListItem) arg1)).getText1().getText()\n\t\t\t\t\t\t.toString();\n\t\t\t\tString team = (((TwoLineListItem) arg1)).getText2().getText()\n\t\t\t\t\t\t.toString();\n\t\t\t\tp2.setText(name + \" - \" + team);\n\t\t\t}\n\t\t});\n\t\tp2.setOnLongClickListener(new OnLongClickListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onLongClick(View v) {\n\t\t\t\tp2.setText(\"\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\tclear.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tp1.setText(\"\");\n\t\t\t\tp2.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tsubmit.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString p1Input = p1.getText().toString();\n\t\t\t\tString[] p1Data = p1Input.split(\" - \");\n\t\t\t\tString p2Input = p2.getText().toString();\n\t\t\t\tString[] p2Data = p2Input.split(\" - \");\n\t\t\t\tboolean isFound1 = false;\n\t\t\t\tPlayerObject pl1 = null;\n\t\t\t\tboolean isFound2 = false;\n\t\t\t\tPlayerObject pl2 = null;\n\t\t\t\tfor (PlayerObject player : ImportLeague.holder.players) {\n\t\t\t\t\tString team1 = \"\";\n\t\t\t\t\tString team2 = \"\";\n\t\t\t\t\tif (p1Data.length > 1) {\n\t\t\t\t\t\tteam1 = p1Data[1];\n\t\t\t\t\t}\n\t\t\t\t\tif (p2Data.length > 1) {\n\t\t\t\t\t\tteam2 = p2Data[1];\n\t\t\t\t\t}\n\t\t\t\t\tif (player.info.name.equals(p1Data[0])\n\t\t\t\t\t\t\t&& player.info.position.equals(Constants.DST)) {\n\t\t\t\t\t\tisFound1 = true;\n\t\t\t\t\t\tpl1 = player;\n\t\t\t\t\t} else if (player.info.name.equals(p1Data[0])\n\t\t\t\t\t\t\t&& player.info.team.equals(team1)) {\n\t\t\t\t\t\tisFound1 = true;\n\t\t\t\t\t\tpl1 = player;\n\t\t\t\t\t}\n\t\t\t\t\tif (player.info.name.equals(p2Data[0])\n\t\t\t\t\t\t\t&& player.info.position.equals(Constants.DST)) {\n\t\t\t\t\t\tisFound2 = true;\n\t\t\t\t\t\tpl2 = player;\n\t\t\t\t\t} else if (player.info.name.equals(p2Data[0])\n\t\t\t\t\t\t\t&& player.info.team.equals(team2)) {\n\t\t\t\t\t\tisFound2 = true;\n\t\t\t\t\t\tpl2 = player;\n\t\t\t\t\t}\n\t\t\t\t\tif (isFound1 && isFound2) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// NOTE: this needs to not work in regular season\n\t\t\t\tif ((isFound1 && isFound2 && pl1.values.points > 0\n\t\t\t\t\t\t&& pl2.values.points > 0 && pl1.info.team.length() > 2 && pl2.info.team\n\t\t\t\t\t\t.length() > 0)) {\n\t\t\t\t\tfillTable(pl1, pl2, table, p1, p2);\n\t\t\t\t} else if (isFound1 && isFound2\n\t\t\t\t\t\t&& (pl1.values.points == 0 || pl2.values.points == 0)) {\n\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\tImportLeague.cont,\n\t\t\t\t\t\t\t\"Please enter players who are not on bye, injured, or out for any reason\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\tImportLeague.cont,\n\t\t\t\t\t\t\t\"Input is invalid. Use the dropdown to help format input.\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void restoreInfoFromFile(File file) {\n Scanner scanner = null;\n try {\n scanner = new Scanner(file);\n }catch(IOException e){\n e.getStackTrace();\n }\n HashMap<String, ArrayList<Passenger>> pasGroupList = new HashMap<>();\n ArrayList<Passenger> individualList = new ArrayList<Passenger>();\n Passenger pas;\n boolean isGrouped;\n boolean isEconomy;\n String seatPref;\n String name;\n String groupName;\n int seatCol;\n int seatRow;\n\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] info = line.split(\",\");\n name = info[0];\n isEconomy = Boolean.valueOf(info[1]);\n seatRow = Integer.valueOf(info[2]);\n seatCol = Integer.valueOf(info[3]);\n isGrouped = Boolean.valueOf(info[4]);\n if (isGrouped) {\n groupName = info[5];\n pas = new Passenger(name, isEconomy, isGrouped, groupName);\n if (!pasGroupList.containsKey(groupName)) {\n pasGroupList.put(groupName, new ArrayList<Passenger>());\n }\n pasGroupList.get(groupName).add(pas);\n } else {\n seatPref = info[5];\n pas = new Passenger(name, isEconomy, seatPref);\n individualList.add(pas);\n }\n addPasDirectlyToSeat(pas, seatRow, seatCol);\n }\n updateTrackingList(pasGroupList, individualList);\n\n scanner.close();\n }", "private void updateRanking(boolean byTime, char[] allTyreTypes)\n {\n if(byTime) // if required to sort by time\n {\n getDrivers().adjustDriversListByTime(allTyreTypes);\n }\n else // if required to sort by championship score\n {\n getDrivers().sortByScore();\n }\n for(int i = 0 ; i < getDrivers().getSize() ; i++)\n {\n getDrivers().getDriver(i).setRanking(i + 1); // update ranking\n }\n }", "@Override\n public void execute() {\n itemList.sort_names();\n }", "@Override\n public void removePathLines() {\n for (Polyline line : mPathLines) {\n mMap.getOverlayManager().remove(line);\n }\n mPathLines = new ArrayList<>();\n }", "public static ImmutableList<Coordinate> parseLines(ImmutableList<String> lines) {\r\n Pattern pattern = Pattern.compile(\"(\\\\d+), (\\\\d+)\");\r\n char name = 'a';\r\n\r\n ImmutableList.Builder<Coordinate> coordinates = ImmutableList.builder();\r\n for (String line : lines) {\r\n Matcher matcher = pattern.matcher(line);\r\n if (matcher.matches()) {\r\n coordinates.add(new Coordinate(\r\n name,\r\n Integer.parseInt(matcher.group(1)),\r\n Integer.parseInt(matcher.group(2))\r\n ));\r\n\r\n name++;\r\n if (name > 'z') {\r\n name = 'A';\r\n }\r\n }\r\n }\r\n\r\n return coordinates.build();\r\n }", "private SplitOrder checkTies (TieRelation tie)\r\n {\r\n List<Note> distantNotes = new ArrayList<>();\r\n List<Chord> distantChords = new ArrayList<>();\r\n\r\n for (TreeNode nn : getNotes()) {\r\n Note note = (Note) nn;\r\n\r\n // Use a COPY of slurs to allow concurrent deletion\r\n for (Slur slur : new ArrayList<>(note.getSlurs())) {\r\n if (tie.isRelevant(slur, note)) {\r\n Note distantNote = tie.getDistantNote(slur);\r\n\r\n if (distantNote != null) {\r\n // Safety check\r\n if (distantNote == note\r\n || distantNote.getChord() == this) {\r\n // This slur is a loop on the same note or chord!\r\n logger.info(\"Looping slur detected {}\", slur);\r\n slur.destroy();\r\n continue;\r\n }\r\n\r\n if (distantNote.getMeasure() == getMeasure()) {\r\n distantNotes.add(distantNote);\r\n distantChords.add(distantNote.getChord());\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (distantChords.size() > 1) {\r\n logger.debug(\"{} Ch#{} with multiple tied chords: {}\",\r\n getContextString(), getId(), distantChords);\r\n\r\n // Prepare the split of this chord, using the most distant note \r\n // from chord head\r\n SortedSet<Note> tiedNotes = new TreeSet<>(noteHeadComparator);\r\n\r\n for (Note distantNote : distantNotes) {\r\n for (Slur slur : distantNote.getSlurs()) {\r\n Note note = tie.getLocalNote(slur);\r\n\r\n if ((note != null) && (note.getChord() == this)) {\r\n tiedNotes.add(note);\r\n }\r\n }\r\n }\r\n\r\n logger.debug(\"Splitting from {}\", tiedNotes.last());\r\n\r\n return new SplitOrder(this, tiedNotes.last());\r\n } else {\r\n return null;\r\n }\r\n }", "public void updateDrawingOrder(){\n\n //get all actors in the objectStage\n Array<Actor> actorsList = objectStage.getActors();\n actorsList.sort(new ActorComparator());\n }" ]
[ "0.53819203", "0.5150323", "0.51295984", "0.5068203", "0.49550438", "0.49202698", "0.48621112", "0.48510617", "0.48296052", "0.48124602", "0.47641382", "0.47238016", "0.47213194", "0.46908394", "0.46783093", "0.46586525", "0.46538714", "0.4651857", "0.4611866", "0.45915288", "0.4586506", "0.4520445", "0.4508701", "0.4484481", "0.44802073", "0.44794", "0.44713178", "0.44646156", "0.44644487", "0.44590697", "0.4458609", "0.44484752", "0.44414553", "0.44412974", "0.44370058", "0.4409673", "0.44092843", "0.44083992", "0.4398834", "0.43979967", "0.4391007", "0.43869993", "0.43856007", "0.43810275", "0.4380661", "0.4374654", "0.43744722", "0.43550253", "0.4351658", "0.43407285", "0.4330282", "0.43246487", "0.43015322", "0.42990044", "0.42958474", "0.42898414", "0.42896247", "0.42857847", "0.42850673", "0.42835367", "0.42658398", "0.42615196", "0.4256285", "0.4252625", "0.4246469", "0.4238028", "0.4237132", "0.4234142", "0.42338005", "0.42327267", "0.42304903", "0.42271063", "0.4222721", "0.422266", "0.42212105", "0.42206728", "0.42198098", "0.4217563", "0.41987243", "0.41901574", "0.41898552", "0.41743007", "0.41722912", "0.4170789", "0.4159503", "0.41573858", "0.41570306", "0.4154805", "0.41530806", "0.41490632", "0.4141788", "0.41396695", "0.41359863", "0.41244903", "0.4118855", "0.41136044", "0.4107842", "0.41025406", "0.41025156", "0.41010985" ]
0.70679003
0
rearranges the RideLines by queue length.
public void sortByLength() { boolean swapMade;//has a swap been made in the most recent pass? //repeat looking for swaps do { swapMade=false;//just starting this pass, so no swap yet //go through entire array. looking for swaps that need to be done for(int i = 0; i<currentRide-1; i++) { //if the other RideLines has less people if(rides[i].getCurrentPeople()<rides[i+1].getCurrentPeople()) { // standard swap, using a temporary. swap with less people RideLines temp = rides[i]; rides[i]=rides[i+1]; rides[i+1]=temp; swapMade=true;//remember this pass made at least one swap } } }while(swapMade);//until no swaps were found in the most recent past redrawLines();//redraw the image }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resize() {\n Comparable[] temp = new Comparable[size * 2];\n for (int i = 0; i < pq.length; i++) {\n temp[i] = pq[i];\n }\n pq = temp;\n }", "private void resize() {\n Object[] newQueue = new Object[(int) (queue.length * 1.75)];\n System.arraycopy(queue, startPos, newQueue, 0, queue.length - startPos);\n\n currentPos = queue.length - startPos;\n startPos = 0;\n queue = newQueue;\n\n }", "private void sortOutlines() {\r\n Collections.sort(outlines, reversSizeComparator);\r\n }", "public void increaseSize() {\n Estimate[] newQueue = new Estimate[queue.length * 2];\n\n for (int i = 0; i < queue.length; i++) {\n newQueue[i] = queue[i];\n }\n\n queue = newQueue;\n }", "private void queueResize() {\n queue = Arrays.copyOf(queue, queue.length + 1);\n }", "private void resize() {\n if (ifFull() || ifTooEmpty()) {\n int capacity = items.length;\n if (ifFull()) {\n capacity *= 2;\n } else if (ifTooEmpty()) {\n capacity /= 2;\n }\n Item[] newArray = (Item[]) new Object[capacity];\n int lastIndex = moveBack(nextLast, 1);\n int firstIndex = moveForward(nextFirst, 1);\n System.arraycopy(items, 0, newArray, 0, lastIndex + 1);\n int numOfReminder = size - (lastIndex + 1);\n int newFirstIndex = newArray.length - numOfReminder;\n System.arraycopy(items, firstIndex, newArray, newFirstIndex, numOfReminder);\n items = newArray;\n nextFirst = moveBack(newFirstIndex, 1);\n nextLast = moveForward(lastIndex, 1);\n return;\n }\n return;\n }", "private void orderSegments() {\n //insert numOrder for the db\n int i = 0;\n for(TransportSegmentLogic transportSegment: transportSegments){\n transportSegment.setOrder(i);\n i++;\n }\n\n\n\n /*int i = 0;\n int j = 1;\n\n\n TransportSegmentLogic swapSegment;\n\n while(j < transportSegments.size()){\n if(transportSegments.get(j).getOrigin().equals(transportSegments.get(i).getDestination())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(i +1, swapSegment);\n i = i + 1;\n j = i + 1;\n }\n j++;\n }\n\n j = transportSegments.size() -1;\n\n while(j > i){\n if(transportSegments.get(j).getDestination().equals(transportSegments.get(0).getOrigin())){\n swapSegment = transportSegments.get(j);\n transportSegments.remove(swapSegment);\n transportSegments.add(0, swapSegment);\n i = i + 1;\n j = transportSegments.size();\n }\n j--;\n } */\n }", "void reorganizeTriples(ProgressListener listener);", "public void fixArray(){\n if (size == 0 || queue.length < 1){\n return;\n }\n E[] newer = ((E[])new Comparable[queue.length]);\n\n int x = 0;\n for(Object cur : queue){\n if (cur != null){\n newer[x++] = (E)cur;\n }\n }\n\n this.queue = newer;\n this.size = x;\n\n }", "public void fillPlayerQueue() {\r\n for (Player p : this.players) {\r\n if (p.getLife() > 0) {\r\n this.ordering.add(p);\r\n }\r\n }\r\n }", "private void redrawLines()\n {\n for(int i =0; i<currentRide;i++)\n {\n rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines\n \n }\n }", "private synchronized void resize() {\n tableSize = 2 * tableSize;\n tableSize = nextPrime(tableSize);\n FlightDetails[] old = HT;\n\n HT = new FlightDetails[tableSize];\n count.set(0);\n\n for (FlightDetails oldFlightDetails : old) {\n if (oldFlightDetails != null) {\n FlightDetails flightDetails = oldFlightDetails;\n put(flightDetails);\n\n while (flightDetails.getNext() != null) {\n flightDetails = flightDetails.getNext();\n put(flightDetails);\n }\n }\n }\n }", "public void move(){\n\t\tint y, z;\n\t\t\n\t\tif(queueArrayGetValue(1) == null && (queueArrayGetValue(2) == null || queueArrayGetValue(3) == null)){\n\t\t\tif(queueArrayGetValue(2) == null && queueArrayGetValue(3) != null){\n\t\t\t\tqueueArraySetKeyValue(1, queueArrayGetKey(3), queueArrayGetValue(3));\n\t\t\t\tqueueArraySetKeyValue(3, null, null);\n\t\t\t}else if(queueArrayGetValue(2) != null && queueArrayGetValue(3) == null){\n\t\t\t\tqueueArraySetKeyValue(1, queueArrayGetKey(2), queueArrayGetValue(2));\n\t\t\t\tqueueArraySetKeyValue(2, null, null);\n\t\t\t}\n\t\t}else{\n\t\t\touterloop:\n\t\t\tfor(int i = 1; i < queueArrayLength(); i++){\n\t\t\t\tif(queueArrayGetValue(i) == null){\n\t\t\t\t\ty = i * 2;\n\t\t\t\t\tz = i * 2 + 1;\n\t\t\t\t\tif(y >= queueArrayLength()){\n\t\t\t\t\t\tbreak outerloop;\n\t\t\t\t\t}else if(z >= queueArrayLength()){\n\t\t\t\t\t\tqueueArraySetKeyValue(i, queueArrayGetKey(y), queueArrayGetValue(y));\n\t\t\t\t\t\tqueueArraySetKeyValue(y, null, null);\n\t\t\t\t\t\tbreak outerloop;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(lessThan(y,z)){\n\t\t\t\t\t\t\tqueueArraySetKeyValue(i, queueArrayGetKey(y), queueArrayGetValue(y));\n\t\t\t\t\t\t\tqueueArraySetKeyValue(y, null, null);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tqueueArraySetKeyValue(i, queueArrayGetKey(z), queueArrayGetValue(z));\n\t\t\t\t\t\t\tqueueArraySetKeyValue(z, null, null);\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}", "void goOverLines() {\n\t\t//checking every vertical line if there is some number that has only one number available\n\t\t//for every number\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t//for every line\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t//for every square\n\t\t\t\tint tempCounter = 0;\n\t\t\t\tint tempK = 0;\n\t\t\t\tfor (int k = 0; k < boardSize; k++) {\n\t\t\t\t\tif (availMoves[j][k][i] == true) {\n\t\t\t\t\t\ttempCounter++;\n\t\t\t\t\t\ttempK = k;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (tempCounter == 1) {\n\t\t\t\t\tmoveQueue.add(new int[] {j, tempK, (i + 1)});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//checking every vertical line if there is some number that has only one number available\n\t\t//for every number\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t//for every line\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t//for every square\n\t\t\t\tint tempCounter = 0;\n\t\t\t\tint tempK = 0;\n\t\t\t\tfor (int k = 0; k < boardSize; k++) {\n\t\t\t\t\tif (availMoves[k][j][i] == true) {\n\t\t\t\t\t\ttempCounter++;\n\t\t\t\t\t\ttempK = k;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (tempCounter == 1) {\n\t\t\t\t\tmoveQueue.add(new int[] {tempK, j, (i + 1)});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!moveQueue.isEmpty()) {\n\t\t\tdoMove();\n\t\t}\n\t}", "public void resize()\r\n\t{\r\n\t\tif(nItems >= arraySize/2)\t\t\t\t\t\t\t\t\t\t\t\t//If array is half full, the array becomes twice as large.\r\n\t\t{\t\t\t\r\n\t\t\tItem[] tempArray = (Item[]) new Object[2*arraySize];\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < nItems; i++)\r\n\t\t\t{\r\n\t\t\t\ttempArray[i] = q[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq = tempArray;\t\t\t\t\t\t\t\t\t\t\t\t//Re-initialization of q array.\r\n\t\t\tarraySize = 2*arraySize;\t\t\t\t\t\t\t\t\t\t\t//Array size is doubled.\r\n\t\t}\r\n\t\telse if(nItems <= arraySize/4)\t\t\t\t\t\t\t\t\t\t\t//If array is a quarter full, the array size is halved.\r\n\t\t{\r\n\t\t\tItem[] tempArray = (Item[]) new Object[arraySize/2];\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < nItems; i++)\r\n\t\t\t{\r\n\t\t\t\ttempArray[i] = q[i];\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq = tempArray;\t\t\t\t\t\t\t\t\t\t\t\t//Re-initialization of q array.\r\n\t\t\tarraySize = arraySize/2;\t\t\t\t\t\t\t\t\t\t\t//Array size is halved.\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn;\r\n\t}", "public void reorganizeNote() {\n note = Position.orderList(note);\n }", "public void refactor() {\n this.maxX = SnakeGame.getxSquares();\n this.maxY = SnakeGame.getySquares();\n snakeSquares = new int[this.maxX][this.maxY];\n fillSnakeSquaresWithZeros();\n createStartSnake();\n }", "public void smallerRocks() {\n\t\t// make the asteroid smaller\n\t\t// by dividing the width by SIZE_INC\n\t\twidth = width / SIZE_INC;\n\n\t\t// set the end points with new location being the first line's start\n\t\tmakeEndPoints(width, outLine[0].getStart().getX(), outLine[0]\n\t\t\t\t.getStart().getY());\n\n\t\t// and make it a little faster\n\t\txSpeed = INC * xSpeed;\n\t\tySpeed = INC * ySpeed;\n\n\t}", "public synchronized void reSort(int t){\n Process[] newQueue = new Process[queue.length];\n Process temp;\n int k =0;\n for(int i = 0; i<queue.length; i++){\n temp =null;\n for(int j =0; j < pros.proSize(); j++){\n if(queue[j].getArrivalTime() > t){\n\n }else if(queue[j].getArrivalTime() <= t && temp == null){\n temp = new Process(queue[j]);\n }else if (queue[j].getArrivalTime() <= t && temp != null && (t-queue[j].getArrivalTime()) < (t-temp.getArrivalTime())){\n temp = queue[j];\n } else if (queue[j].getArrivalTime() <= t && queue[j].getArrivalTime() == temp.getArrivalTime() && queue[j].getId() < temp.getId()){\n temp = queue[j];\n }\n\n }\n if(temp != null){\n newQueue[k++] = temp;\n pros.remove(temp.getId());\n }\n }\n if(pros.proSize() > 0){\n for(int i=0; k<queue.length; i++){\n if(notInArray(queue[i], newQueue)){\n newQueue[k++] = queue[i];\n pros.remove(queue[i].getId());\n }\n }\n }\n //pass newly organized queue to the queue variable\n queue = newQueue;\n //re-insert processes into the arraylist\n for(int i = 0; i< queue.length; i++){\n pros.addPro(queue[i]);\n }\n }", "public int driveQueue(int speedL, int speedR, int distanceL, int distanceR);", "private void widen() {\n E[] newDequeue = (E[]) new Object[dequeue.length * 2];\n copyToBeginning(newDequeue);\n tail = size - 1;\n head = 0;\n dequeue = newDequeue;\n }", "public ResizingArrayQueueOfStrings(){\n s = (Item[]) new Object[2];\n n = 0;\n first = 0;\n last = 0;\n }", "public void removeLines() {\n int compLines = 0;\n int cont2 = 0;\n\n for(cont2=20; cont2>0; cont2--) {\n while(completeLines[compLines] == cont2) {\n cont2--; compLines++;\n }\n this.copyLine(cont2, cont2+compLines);\n }\n\n lines += compLines;\n score += 10*(level+1)*compLines;\n level = lines/20;\n if(level>9) level=9;\n\n for(cont2=1; cont2<compLines+1; cont2++) copyLine(0,cont2);\n for(cont2=0; cont2<5; cont2++) completeLines[cont2] = -1;\n }", "private void organizeTiles(){\n\t\tfor(int i = 1; i <= size * size; i++){\n\t\t\tif(i % size == 0){\n\t\t\t\tadd(tiles[i - 1]);\n\t\t\t\trow();\n\t\t\t}else{\n\t\t\t\tadd(tiles[i - 1]);\n\t\t\t}\n\t\t}\n\t}", "private synchronized void freshSort(){\n Process[] newQueue = new Process[pros.proSize()];\n for(int i = 0; i <queue.length; i++){\n if(pros.isInList(queue[i])){\n newQueue[i] = queue[i];\n }\n }\n queue = new Process[pros.proSize()];\n queue = newQueue;\n }", "private void move() {\n\n for (int z = snakeLength; z > 0; z--) {\n xLength[z] = xLength[(z - 1)];\n yLength[z] = yLength[(z - 1)];\n }\n\n if (left) {\n xLength[0] -= elementSize;\n }\n\n if (right) {\n xLength[0] += elementSize;\n }\n\n if (up) {\n yLength[0] -= elementSize;\n }\n\n if (down) {\n yLength[0] += elementSize;\n }\n }", "public List<Room> sortBySize() {\n List<Room> result = new ArrayList<>();\n for (Room o : rooms)\n result.add(o);\n for (int i = 0; i < result.size(); i++) {\n for (int j = 0; j < result.size() - 1; j++) {\n if (result.get(j).getSize() > result.get(j + 1).getSize()) {\n\n Room temp = result.get(j);\n result.set(j, result.get(j + 1));\n result.set(j + 1, temp);\n }\n\n }\n }\n return result;\n }", "public void trimBarrier(){\n game.setBarrierNumOfParties(game.getPlayersConnected());\n }", "private void moveParts() {\n int counter = 0;\n\n while (counter < snake.getSize() - 1) {\n Field previous = snake.getCell(counter);\n Field next = snake.getCell(counter + 1);\n\n next.setPreviousX(next.getX());\n next.setPreviousY(next.getY());\n\n next.setX(previous.getPreviousX());\n next.setY(previous.getPreviousY());\n\n fields[previous.getY()][previous.getX()] = previous;\n fields[next.getY()][next.getX()] = next;\n\n counter++;\n\n }\n }", "private void expand() { \n\t\tComparable[] temp = new Comparable[ _data.length * 2 ];\n\t\tfor( int i = 0; i < _data.length; i++ )\n\t \ttemp[i] = _data[i];\n\t\t_data = temp;\n }", "private void print() {\n\t\t// reorganize a wraparound queue and print\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.print(bq[(head + i) % bq.length] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t}", "protected void optimizeBushes() {\r\n\t\tfor (int i = 0; i < execBushes.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing POR Analysis on Bush Sequence %d of %d\", i + 1,\r\n\t\t\t\t\texecBushes.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execBushes.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t// is bush already redundant?\r\n\t\t\tif (redundantExecBushes.contains(sequence)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// is bush PO-reducible?\r\n\t\t\tif (isPOReducible(sequence)) {\r\n\t\t\t\t// create redundant sequence (for later checking)\r\n\t\t\t\tList<EventType> redundantSequence = new ArrayList<EventType>();\r\n\t\t\t\tredundantSequence.add(sequence.get(1));\r\n\t\t\t\tredundantSequence.add(sequence.get(0));\r\n\t\t\t\tredundantSequence.add(sequence.get(2));\r\n\t\t\t\tredundantExecBushes.add(redundantSequence);\r\n\t\t\t}\r\n\r\n\t\t\trequiredExecBushes.add(sequence);\r\n\t\t}\r\n\t}", "public PuzzleState shuffleBoard(int pathLength);", "public void resizeByLinearize(int newcapacity){\n Object []lin=new Object[newcapacity];\n int k=start;\n for(int i=0;i<size;i++){\n lin[i]=cir[k];\n k=(k+1)%cir.length;\n }\n cir=new Object[newcapacity];\n for(int i=0;i<size;i++){\n cir[i]=lin[i];\n }\n \n }", "private void resizeArray(int length) {\n Item[] newItems = (Item[]) new Object[length];\n\n for (int x=0; x<size; x++) {\n newItems[x] = items[x];\n }\n\n items = newItems;\n }", "public void sortQ(ArrayList<String> requestQ){\r\n\t\tfor(int i=0; i< (requestQ.size()-1); i++){\r\n\t\t\tint small = i;\r\n\t\t\tfor(int j = i+1; j < requestQ.size(); j++){\r\n\t\t\t\tString value1 = (String) requestQ.get(small);\r\n\t\t\t\tString[] temp1 = value1.split(\",\");\r\n\t\t\t\tString value2 = (String) requestQ.get(j);\r\n\t\t\t\tString[] temp2 = value2.split(\",\");\r\n\t\t\t\t// if timestamp is lower\r\n\t\t\t\tif(Integer.parseInt(temp1[1]) > Integer.parseInt(temp2[1])){\r\n\t\t\t\t\tsmall = j;\r\n\t\t\t\t}\r\n\t\t\t\t// if timestamp is equal\r\n\t\t\t\telse if(Integer.parseInt(temp1[1]) == Integer.parseInt(temp2[1])){\r\n\t\t\t\t\t// check for process ids\r\n\t\t\t\t\tif(Integer.parseInt(temp1[0]) > Integer.parseInt(temp2[0])){\r\n\t\t\t\t\t\tsmall = j;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}// inner for loop\r\n\t\tString swap = (String)requestQ.get(i);\r\n\t\trequestQ.set(i, requestQ.get(small));\r\n\t\trequestQ.set(small, swap);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private void handleOrders()\r\n {\r\n // only 4 orders can fit on the screen, so don't do anything if there's already 4\r\n if (orders.size() < 4)\r\n {\r\n orderTimer--;\r\n \r\n if (orderTimer <= 0)\r\n {\r\n // create a new order\r\n Order nextOrder = new Order();\r\n orders.add(nextOrder);\r\n \r\n // find the position\r\n int xPos = 170 * orders.size() + 70;\r\n addObject(nextOrder, xPos, 100);\r\n \r\n // reset the order timer to a new value (between base time - variance & base time + variance)\r\n int baseFrameDelay = calcOrderDelay();\r\n int maxDelay = baseFrameDelay + orderVariance;\r\n int minDelay = baseFrameDelay - orderVariance;\r\n orderTimer = Greenfoot.getRandomNumber(maxDelay - minDelay) + minDelay;\r\n }\r\n }\r\n }", "public static ArrayList<String> lineLengthSort(ArrayList<String> inArray)\n\t{\n\t\tboolean hasSwapped = true;\n\t\twhile (hasSwapped)\n\t\t{\n\t\t\thasSwapped = false;\n\t\t\tfor(int i = 1; i < inArray.size(); i++)\n\t\t\t{\n\t\t\t\tif(inArray.get(i - 1).length() > inArray.get(i).length())\n\t\t\t\t{\n\t\t\t\t\tString temp = inArray.get(i - 1);\n\t\t\t\t\tinArray.set(i - 1, inArray.get(i));\n\t\t\t\t\tinArray.set(i, temp);\n\t\t\t\t\thasSwapped = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn inArray;\n\t}", "private void resize() {\n int listSize = numItemInList();\n //debug\n //System.out.println(\"resize: \" + nextindex + \"/\" + list.length + \" items:\" + listSize);\n if (listSize <= list.length / 2) {\n for (int i = 0; i < listSize; i++) {\n list[i] = list[startIndex + i];\n }\n } else {\n Object[] newList = new Object[this.list.length * 2];\n\n// System.arraycopy(this.list, startIndex, newList, 0, this.list.length-startIndex);\n for (int i = 0; i < listSize; i++) {\n newList[i] = list[i + startIndex];\n }\n this.list = newList;\n //debug\n //System.out.println(\"After resize:\" + nextindex + \" / \" + list.length + \" items:\" + numItemInList());\n }\n nextindex = nextindex - startIndex;\n startIndex = 0;\n }", "private void resize() {\n contents = Arrays.copyOf(contents, top*2);\r\n }", "@Override\n\tpublic void reorganize() {\n\n\t}", "PriorityQueue<Ride> orderRidesByPriceAscending(Set<Ride> rides){\n return new PriorityQueue<>(rides);\n }", "public void sort(){\n\t\t\n\t\tif(Q.size() != 1){\n\t\t\tArrayQueue<E> tempQueue1 = Q.dequeue();\n\t\t\tArrayQueue<E> tempQueue2 = Q.dequeue();\n\t\t\tArrayQueue<E> tempQueue3 = merge(tempQueue1, tempQueue2);\n\t\t\tQ.enqueue(tempQueue3);\n\t\t\tsort();\n\t\t}\n\t\t\n\t}", "private void arrangeGUI() {\n\t\t\t\t\n\t\t//Sets the layout of the GUI to be a GridLayout with 1 Row and 2 Columns\n\t\tsetLayout(new GridLayout(1,2)); \n\t\t\n\t\tunsortedArea = new JTextArea();\n\t\t\n\t\t//This line creates a divider in the middle color black\n\t\tunsortedArea.setBorder(BorderFactory.createLineBorder(Color.black));\n\t\t\n\t\t\n\t\t//This loop adds the boxes to the text areas\n\t\tfor(int i = 0; i < boxesForGUI.size(); i++) {\n\t\t\tint volume = boxesForGUI.get(i).getLength() * boxesForGUI.get(i).getWidth() * boxesForGUI.get(i).getHeight();\n\t\t\tunsortedArea.append(boxesForGUI.get(i).toString() + \" (VOLUME: \" + volume + \")\" + \"\\n\");\n\t\t}\n\t\t\n\t\t//This line puts the unsortedArea Text Area into the first part of the GridLayout\n\t\tadd(unsortedArea);\n\t\t\n\t\t//Now sort the array for the right side of the GridLayout\n\t\tselectionSort(boxesForGUI);\n\t\t\n\t\tsortedArea = new JTextArea();\n\t\tsortedArea.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\t\t\n\t\tfor(int i = 0; i < boxesForGUI.size(); i++) {\n\t\t\tint volume = boxesForGUI.get(i).getLength() * boxesForGUI.get(i).getWidth() * boxesForGUI.get(i).getHeight();\n\t\t\tsortedArea.append(boxesForGUI.get(i).toString() + \" (VOLUME: \" + volume + \")\" + \"\\n\");\n\t\t}\n\t\tadd(sortedArea);\n\t\t\n\t\t\n\t}", "public void resizeStartUnchanged(int newcapacity){\n Object []lin=new Object[newcapacity];\n int k=start;\n for(int i=0;i<size;i++){\n lin[i]=cir[k];\n k=(k+1)%cir.length;\n }\n cir=new Object[newcapacity];\n for(int i=0;i<size;i++){\n cir[k]=lin[i];\n k=(k+1)%cir.length;\n }\n }", "private void updateOrder() {\n Arrays.sort(positions);\n }", "private void setupQueue(View view){\n LinearLayoutManager queueLayoutManager;\n mRvDrinkQueue = (RecyclerView) view.findViewById(R.id.rvDrinkQueue);\n mRvDrinkQueue.setHasFixedSize(true);\n\n queueLayoutManager = new LinearLayoutManager(getContext());\n\n mRvDrinkQueue.setLayoutManager(queueLayoutManager);\n\n mDrinkQueueAdapter = new DrinkItemAdapter(mDrinkInfos, getActivity(), this);\n mRvDrinkQueue.setAdapter(mDrinkQueueAdapter);\n }", "public static void main(String[] args) {\n\r\n int x = 0;\r\n int xLanes = 0;\r\n int nLanes = 0;\r\n\r\n int[] express; //stores time taken by each customer in express lane\r\n int[] normal; // stores time taken by each customer in normal lane\r\n\r\n LinkedQueue<Customer>[] expressLine;\r\n LinkedQueue<Customer>[] normalLine;\r\n\r\n final String filename = \"src/CustomerData_Example.txt\";\r\n final String file = \"src/CustomerData.txt\";\r\n\r\n // ============= Part A ==============\r\n\r\n List results = checkout(filename);\r\n normal = (int[]) results.get(2);\r\n express = (int[]) results.get(0);\r\n\r\n expressLine = (LinkedQueue<Customer>[]) results.get(1);\r\n normalLine = (LinkedQueue<Customer>[]) results.get(3);\r\n\r\n xLanes = ((int[]) results.get(4))[0];\r\n nLanes = ((int[]) results.get(4))[1];\r\n\r\n int maxTimeLane = normal[0];\r\n int totalCheckoutLanes = 1; //counts amount of total checkout lines for display\r\n\r\n //==== EXPRESS CHECKOUT LINES ====//\r\n for (int i = 0; i < xLanes; i++) {\r\n\r\n System.out.println(\"CheckOut(Express) # \" + (totalCheckoutLanes) + \" (Est Time = \" + express[i] + \" s) =\" + expressLine[i]);\r\n totalCheckoutLanes++;\r\n\r\n if (express[i] > maxTimeLane) {\r\n maxTimeLane = express[i];\r\n }\r\n }\r\n\r\n //==== NORMAL CHECKOUT LINES ====//\r\n for (int i = 0; i < nLanes; i++) {\r\n System.out.println(\"CheckOut (Normal) # \" + (totalCheckoutLanes) + \" (Est Time = \" + normal[i] + \" s) =\" + normalLine[i]);\r\n totalCheckoutLanes++;\r\n if (normal[i] > maxTimeLane) {\r\n maxTimeLane = normal[i];\r\n }\r\n }\r\n\r\n System.out.printf(\"Time to serve all customers = %d s\\n\\n\", maxTimeLane);\r\n\r\n\r\n try {\r\n\r\n\r\n // ============= Part B ==============\r\n\r\n Scanner fin = new Scanner(new File(file));\r\n\r\n results = checkout(file);\r\n\r\n express = new int[xLanes];\r\n normal = new int[nLanes];\r\n\r\n normal = (int[]) results.get(2);\r\n express = (int[]) results.get(0);\r\n\r\n expressLine = (LinkedQueue<Customer>[]) results.get(1);\r\n normalLine = (LinkedQueue<Customer>[]) results.get(3);\r\n\r\n xLanes = ((int[]) results.get(4))[0];\r\n nLanes = ((int[]) results.get(4))[1];\r\n maxTimeLane = normal[0];\r\n\r\n for(int i = 0; i < xLanes; i++){\r\n if(express[i] > maxTimeLane)\r\n maxTimeLane = express[i];\r\n }\r\n for(int i = 0; i < nLanes; i++)\r\n if(normal[i] > maxTimeLane)\r\n maxTimeLane = normal[i];\r\n\r\n int SIMULATION_STEP = 30;\r\n\r\n System.out.printf(\"t(s)\");\r\n for (int i = 0; i < xLanes + nLanes; i++) {\r\n System.out.printf(\" Line \" + (i + 1));\r\n }\r\n System.out.println(\"\");\r\n\r\n for (int i = 0; i < expressLine.length; i++)\r\n express[i] = expressLine[i].peek().calculateTime();\r\n\r\n\r\n for (int i = 0; i < normalLine.length; i++)\r\n normal[i] = normalLine[i].peek().calculateTime();\r\n\r\n for (int i = 0; i <= maxTimeLane; i++) {\r\n for (int j = 0; j < express.length; j++) {\r\n if (express[j] == 0) {\r\n if (!expressLine[j].isEmpty())\r\n expressLine[j].dequeue();\r\n if (!expressLine[j].isEmpty())\r\n express[j] = ((expressLine[j]).peek()).calculateTime();\r\n }\r\n }\r\n\r\n for (int j = 0; j < normal.length; j++) {\r\n if (normal[j] == 0) {\r\n if (!normalLine[j].isEmpty())\r\n normalLine[j].dequeue();\r\n if (!normalLine[j].isEmpty())\r\n normal[j] = ((normalLine[j]).peek()).calculateTime();\r\n }\r\n }\r\n\r\n if ((i % SIMULATION_STEP == 0 && i > 0) || i == maxTimeLane) {\r\n System.out.printf(\"%3d\", i);\r\n for (int j = 0; j < express.length; j++) {\r\n System.out.printf(\"%10d\", expressLine[j].size());\r\n }\r\n for (int j = 0; j < normal.length; j++)\r\n System.out.printf(\"%10d\", normalLine[j].size());\r\n System.out.println(\"\");\r\n System.out.println(\"========================================= JUST FOLLOWING SOCIAL DISTANCING RULES ==========================================\");\r\n }\r\n\r\n for (int j = 0; j < express.length; j++) {\r\n if (express[j] > 0)\r\n express[j]--;\r\n }\r\n for (int j = 0; j < normal.length; j++)\r\n if (normal[j] > 0)\r\n normal[j]--;\r\n }\r\n\r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"Error loading file. \" + ex.getMessage());\r\n }\r\n\r\n }", "private void refreshElements() {\n left = new ArrayList<>();\n right = new ArrayList<>();\n for (int i = 0; i < adapter.getCount(); i++) {\n Object itemAtPosition = adapter.getItemAtPosition(i);\n if (adapter.isItemOnLeftSide(itemAtPosition)) {\n left.add(itemAtPosition);\n } else {\n right.add(itemAtPosition);\n }\n }\n\n Collections.sort(left, new ItemYComparator());\n Collections.sort(right, new ItemYComparator());\n handler.post(new Runnable() {\n @Override\n public void run() {\n NoteImageView.this.invalidate();\n }\n });\n }", "public ResizingArrayDeque() {\n q = (Item[]) new Object[2];\n N = 0;\n first = 0;\n last = 0;\n }", "public void reFormatPieceLayer() {\r\n\t\tbody.removeAll();\r\n\t\tfor (int i = 0; i < 8 * 8; i++) {\r\n\t\t\tChessPiece tmpPiece = piece.get(order[i]);\r\n\t\t\tif (tmpPiece == null) {\r\n\t\t\t\tspacePieces[i].position = order[i];\r\n\t\t\t\tpiece.put(order[i], spacePieces[i]);\r\n\t\t\t\tbody.add(spacePieces[i]);\r\n\t\t\t} else {\r\n\t\t\t\tpiece.put(order[i], tmpPiece);\r\n\t\t\t\tbody.add(tmpPiece);\r\n\t\t\t}\r\n\t\t}\r\n\t\tbody.repaint();\r\n\t}", "private void moveRemainingMhos() {\n\t\t\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\t\t\t\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\t\t\t\n\t\t\t//Check if there is a fence 1 block away from the mho\n\t\t\tif(newMap[mhoX][mhoY+1] instanceof Fence || newMap[mhoX][mhoY-1] instanceof Fence || newMap[mhoX-1][mhoY] instanceof Fence || newMap[mhoX-1][mhoY+1] instanceof Fence || newMap[mhoX-1][mhoY-1] instanceof Fence || newMap[mhoX+1][mhoY] instanceof Fence || newMap[mhoX+1][mhoY+1] instanceof Fence || newMap[mhoX+1][mhoY-1] instanceof Fence) {\n\t\t\t\t\n\t\t\t\t//Assign the new map location as a Mho\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\t\t\t\t\n\t\t\t\t//Set the mho's move in the moveList\n\t\t\t\tmoveList[mhoX][mhoY] = Legend.SHRINK;\n\t\t\t\t\n\t\t\t\t//remove each X and Y from mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\t\t\t\t\n\t\t\t\t//Call moveRemainingMhos again, because the list failed to be checked through completely\n\t\t\t\tmoveRemainingMhos();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public void RearrangeItems() {\n Collections.shuffle(images, new Random(System.currentTimeMillis()));\n Collections.shuffle(text, new Random(System.currentTimeMillis()));\n Adapter adapter = new Adapter(MainActivity.this, images, text);\n recyclerView.setAdapter(adapter);\n }", "@Override\n\tpublic void rearrange(int width, int height)\n\t{\n\t\tfloat margin = Math.min(width, height) * marginMin;\n\t\tfloat boxX = margin,\n\t\t\t\tboxY = margin,\n\t\t\t\tboxW = width-2*margin,\n\t\t\t\tboxH = height-2*margin;\n\t\tfloat spaceY = spacingVertical * height;\n\t\tfloat spaceX = spacingCol * width;\n\t\t\n\t\t// assume 1 column\n\t\tint nColumns = 1;\n\t\tint nPerColumn = elems.size() / nColumns + (elems.size() % nColumns);\n\t\tfloat elemHeight = (boxH - spaceY*(elems.size()-1)) / nPerColumn;\n\t\tfloat elemWidth = (boxW - spaceX*(nColumns-1)) / nColumns;\n\t\t\n\t\tint i = 0;\n\t\tfloat curX = 0, curY = 0;\n\t\tfor (UIElementBase elem : elems)\n\t\t{\n\t\t\t//double y = height*marginY + i*(height*spacing + elemHeight);\n\t\t\t//elem.setFrame((int)x0, (int)y, (int)elemWidth, (int)elemHeight);\n\t\t\t\n\t\t\tfitIntoABoxCentered(elem, (int)(boxX + curX + elemWidth/2), (int)(boxY + curY + elemHeight/2), (int)elemWidth, (int)elemHeight);\n\t\t\t\n\t\t\tcurY += elemHeight + spaceY;\n\t\t\ti++;\n\t\t\tif (i % nPerColumn == 0)\n\t\t\t{\n\t\t\t\tcurX += elemWidth + spaceX;\n\t\t\t}\n\t\t}\n\t}", "private void resize(int capacity) {\r\n assert capacity > N;\r\n PuzzleBoard[] temp = new PuzzleBoard[capacity];\r\n for (int i = 1; i <= N; i++) {\r\n temp[i] = pq[i];\r\n }\r\n pq = temp;\r\n }", "private static ArrayList<String> expandRows(int size,ArrayList<String> toExpand){\n\n\t\tArrayList<String> ret= transmit(toExpand);\n\t\tint columnas=toExpand.size()/5;\n\t\tint i=0;\n\t\tint tocopy=0;\n\n\t\tfor (int k = 0; k < size-1; k++) {\n\t\t\ti =toExpand.size()-1-columnas;\n\t\t\ttocopy=i-(columnas-1);\n\t\t\tfor (int j = 0; j < columnas; j++) {\n\t\t\t\tret.add(i+1, toExpand.get(tocopy));\n\t\t\t\ti=i+1; \n\t\t\t\ttocopy++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int k = 0; k < size-1; k++) {\n\t\t\ti =(columnas-1)*2;\n\t\t\ttocopy=i-(columnas-2);\n\n\t\t\tfor (int j = 0; j < columnas; j++) {\n\t\t\t\tret.add(i+2, toExpand.get(tocopy));\n\t\t\t\ti=i+1; \n\t\t\t\ttocopy++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\t\n\t}", "private Chord split (SplitOrder order)\r\n {\r\n logger.debug(\"{}\", order);\r\n logger.debug(\"Initial notes={}\", getNotes());\r\n\r\n // Same measure & slot\r\n Chord alien = new Chord(getMeasure(), slot);\r\n\r\n // Same stem\r\n if (stem != null) {\r\n alien.stem = stem;\r\n stem.addTranslation(alien);\r\n }\r\n\r\n // Tuplet factor, if any, is copied\r\n alien.tupletFactor = tupletFactor;\r\n\r\n // Augmentation dots as well\r\n alien.dotsNumber = dotsNumber;\r\n\r\n // Beams are not copied, but flags are\r\n if (flagsNumber > 0) {\r\n alien.flagsNumber = flagsNumber;\r\n\r\n for (Glyph flag : retrieveFlags()) {\r\n flag.addTranslation(alien);\r\n }\r\n }\r\n\r\n // Notes, sorted from head\r\n Collections.sort(getNotes(), noteHeadComparator);\r\n\r\n boolean started = false;\r\n\r\n for (TreeNode tn : getChildrenCopy()) {\r\n Note note = (Note) tn;\r\n\r\n if (note == order.alienNote) {\r\n started = true;\r\n }\r\n\r\n if (started) {\r\n note.moveTo(alien);\r\n }\r\n }\r\n\r\n // Locations of the old and the new chord\r\n alien.tailLocation = this.tailLocation;\r\n alien.headLocation = getHeadLocation(order.alienNote);\r\n\r\n // Should we split the stem as well?\r\n // Use a test on length of resulting stem fragment\r\n int stemFragmentLength = Math.abs(\r\n alien.headLocation.y - this.headLocation.y);\r\n\r\n if (stemFragmentLength >= getScale().toPixels(\r\n constants.minStemFragmentLength)) {\r\n this.tailLocation = alien.headLocation;\r\n }\r\n\r\n if (logger.isDebugEnabled()) {\r\n logger.debug(\"Remaining notes={}\", getNotes());\r\n logger.debug(\"Remaining {}\", this.toLongString());\r\n logger.debug(\"Alien notes={}\", alien.getNotes());\r\n logger.debug(\"Alien {}\", alien.toLongString());\r\n }\r\n\r\n return alien;\r\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "@Test\n @SuppressWarnings({\"unchecked\"})\n public void moveUp() {\n exQ.moveUp(JobIdFactory.newId());\n Mockito.verify(queue, Mockito.times(0)).swap( Mockito.any(PrioritizableRunnable.class),Mockito.any(PrioritizableRunnable.class));\n //the first shouldent be moved\n exQ.moveUp(this.ids.get(0));\n Mockito.verify(queue, Mockito.times(0)).swap( Mockito.any(PrioritizableRunnable.class),Mockito.any(PrioritizableRunnable.class));\n //otherwise move it up\n exQ.moveUp(this.ids.get(1));\n Mockito.verify(queue, Mockito.times(1)).swap(this.runnables.get(1),this.runnables.get(0));\n }", "private void resize() {\n int newSize = (xs.length * 3) / 2;\n int[] newXs = new int[newSize];\n int[] newYs = new int[newSize];\n int[] newIn = new int[newSize];\n int[] newOut = new int[newSize];\n int[][] newRoads = new int[newSize][newSize];\n int[][] newDist = new int[newSize][newSize];\n boolean[] newVal = new boolean[newSize];\n System.arraycopy(xs, 0, newXs, 0, nodeCount);\n System.arraycopy(ys, 0, newYs, 0, nodeCount);\n System.arraycopy(inDegree, 0, newIn, 0, nodeCount);\n System.arraycopy(outDegree, 0, newOut, 0, nodeCount);\n System.arraycopy(invalid, 0, newVal, 0, nodeCount);\n for (int i = 0; i < nodeCount; i++) {\n System.arraycopy(roads[i], 0, newRoads[i], 0, nodeCount);\n System.arraycopy(distances[i], 0, newDist[i], 0, nodeCount);\n }\n xs = newXs;\n ys = newYs;\n inDegree = newIn;\n outDegree = newOut;\n roads = newRoads;\n distances = newDist;\n invalid = newVal;\n }", "void advancedAvailMovesLine(int num) {\n\t\t\n\t\t //vertically\n\t\tint counter;\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tcounter = 0;\n\t\t\tint yPos = 0;\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\tif (availMoves[i][j][num-1] == true) {\n\t\t\t\t\tcounter++;\n\t\t\t\t\tyPos = j;\n\t\t\t\t\tif (counter > 1) {\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\tif (counter == 1) {\n\t\t\t\tmoveQueue.add(new int[] {i, yPos, num});\n\t\t\t}\t\t\t\n\t\t}\n\t\t//horizontally\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tcounter = 0;\n\t\t\tint xPos = 0;\n\t\t\tfor(int j = 0; j < boardSize; j++) {\n\t\t\t\tif (availMoves[j][i][num-1] == true) {\n\t\t\t\t\tcounter++;\n\t\t\t\t\txPos = j;\n\t\t\t\t\tif (counter > 1) {\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\tif (counter == 1) {\n\t\t\t\tmoveQueue.add(new int[] {xPos, i, num});\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void move_elevator() {\n\n // Sort in descending order\n\n int temp;\n int n = passengers.size();\n\n\n\n\n\n\n }", "public void logic(){\n servers.sort(Comparator.comparing(Server::getSlotsTaken).reversed());\n servers.sort(Comparator.comparing(Server::getCapacity).reversed());\n\n slots = new Slot[rowsLength][slotsLength];\n for(int i=0;i<rowsLength;i++){\n for(int j=0;j<slotsLength;j++){\n slots[i][j] = new Slot(i, j);\n }\n }\n\n //Unavailable Slots\n for (Slot slot: unavailableSlots){\n slots[slot.getX()][slot.getY()].setAvailable(false);\n }\n\n\n //luam pe rand si verificam daca e liber randul si poolul\n nextServer:\n for (Server server: servers) {\n\n //line by line\n Map<Integer, Integer> linesPerformanceMap = new HashMap<>();\n Map<Integer, Integer> poolsPerformanceMap = new HashMap<>();\n\n //lines orderd by performance de la cel mai mic la cel mai mare\n for(int currentLine=0; currentLine<slots.length; currentLine++){\n linesPerformanceMap.put(currentLine, getServersPerformanceOfTheLine(slots[currentLine]));\n }\n linesPerformanceMap = linesPerformanceMap.entrySet().stream()\n .sorted(Map.Entry.<Integer, Integer>comparingByValue())\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue,\n (e1, e2) -> e1, LinkedHashMap::new));\n\n //pool ordered by performance\n for(Pool pool: pools){\n poolsPerformanceMap.put(pool.getId(), getPoolPerformance(pool));\n }\n poolsPerformanceMap = poolsPerformanceMap.entrySet().stream()\n .sorted(Map.Entry.<Integer, Integer>comparingByValue())\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue,\n (e1, e2) -> e1, LinkedHashMap::new));\n\n\n\n for (Map.Entry<Integer, Integer> linePerformance : linesPerformanceMap.entrySet()) {\n Integer line = linePerformance.getKey();\n\n for (int column = 0; column < slots[line].length; column++) {\n //slot available\n if (slots[line][column].isAvailable() && slots[line][column].getServer() == null) {\n //is space\n Integer slotsAvailable = getSlotsAvailable(line, column);\n if(slotsAvailable>=server.getSlotsTaken()){\n //add\n Pool pool = getPoolWithLessServersFromTheLine(poolsPerformanceMap, line);\n\n server.setSlot(slots[line][column]);\n pools.get(pool.getId()).getServers().add(server);\n server.setPool(pools.get(pool.getId()));\n slots[line][column].setOffset(true);\n for(int k=0; k<server.getSlotsTaken(); k++){\n slots[line][column+k].setAvailable(false);\n slots[line][column+k].setServer(server);\n }\n showSlots();\n\n continue nextServer;\n }\n }\n }\n }\n }\n\n\n System.out.println();\n }", "private void adjustMessierData()\n\t{\n\t\tfor(int i = 0; i < messierList.size(); i++)\n\t\t{\n\t\t\tMessier aMessier = messierList.get(i);\n\t\t\tdouble rightAsc = aMessier.getRADecimalHour();\n\t\t\tdouble hourAngle = theCalculator.findHourAngle(rightAsc, userLocalTime);\n\t\t\taMessier.setHourAngle(hourAngle);\n\t\t\tmessierList.set(i, aMessier);\n\t\t}\n\t}", "public void reallocate()\r\n\t{\r\n\t\tE[] newArray = (E[]) new Object[capacity * 2];\r\n\t\tint i = 0;\r\n\t\tfor(i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tnewArray[i] = innerArray[(front + i) % capacity];\r\n\t\t\tSystem.out.println((front + i) % capacity);\r\n\t\t}\r\n\t\tfront = 0;\r\n\t\trear = this.size() - 1;\r\n\t\tcapacity = capacity * 2;\r\n\t\tinnerArray = newArray;\r\n\t}", "private void prepareBoard(){\n gameBoard.arrangeShips();\n }", "private int clearLines() {\n\t\tint numGarbageLines = 0;\n\t\tArrayList<Integer> linesToShift = new ArrayList<Integer>();\n\t\tfor (int r = 0; r < matrixHeight; r++) {\n\t\t\tif (isLineFull(r)) {\n\t\t\t\tif (isGarbageLine(r)) {\n\t\t\t\t\tnumGarbageLines++;\n\t\t\t\t}\n\t\t\t\tlinesToShift.add(r);\n\t\t\t\tnumLinesCleared++;\n\t\t\t\tfor (int c = 0; c < matrixWidth; c++) {\n\t\t\t\t\tboardTiles[r][c] = backgroundColor;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (Integer removedRow : linesToShift) {\n\t\t\tshiftDownBoard(removedRow);\n\t\t}\n\t\tupdateView();\n\t\treturn linesToShift.size() - numGarbageLines;\n\t}", "@Test\n @SuppressWarnings({\"unchecked\"})\n public void moveDown() {\n exQ.moveUp(JobIdFactory.newId());\n //the first shouldent be moved\n exQ.moveDown(this.ids.get(3));\n Mockito.verify(queue, Mockito.times(0)).swap( Mockito.any(PrioritizableRunnable.class),Mockito.any(PrioritizableRunnable.class));\n //otherwise move it up\n exQ.moveDown(this.ids.get(2));\n Mockito.verify(queue, Mockito.times(1)).swap(this.runnables.get(2),this.runnables.get(3));\n }", "private void updateTurnsObjectQueue() {\n while(!playersTurns.isEmpty())\n playersTurns.poll();\n loadPlayersIntoQueueOfTurns();\n }", "public void sortBasedPendingJobs();", "private void growSnake() { \r\n length++;\r\n snake[length-1].row = snake[length-2].row;\r\n snake[length-1].column = snake[length-2].column;\r\n if (snake[length-2].direction == UP) snake[length-1].row++;\r\n else if (snake[length-2].direction == DOWN) snake[length-1].row--;\r\n else if (snake[length-2].direction == LEFT) snake[length-1].column++;\r\n else if (snake[length-2].direction == RIGHT) snake[length-1].column--; \r\n }", "private void resize(int cap) {\n Item[] temp = (Item[]) new Object[cap];\n for(int i = 0; i < size; i++)\n temp[i] = rqArrays[i];\n rqArrays = temp;\n }", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "private static void option3(List<Runway> runways, Queue<Plane> unclearedPlanes) {\n \n }", "public void createMoveAbles(List<String> lines){\n int regelNr = 0;\n int aantalSpelers = Integer.parseInt(lines.get(regelNr));\n while(regelNr<aantalSpelers){\n String[] crds = lines.get(regelNr+1).split(\",\");\n int xCoord = Integer.parseInt(crds[0]);\n int yCoord = Integer.parseInt(crds[1]);\n this.sp = new Speler(new Coordinaat(xCoord,yCoord),this);\n regelNr++;\n }\n\n regelNr += (2);\n int aantalDozen = Integer.parseInt(lines.get(regelNr));\n while(regelNr<(aantalSpelers+aantalDozen+2)){\n String[] crds = lines.get(regelNr+1).split(\",\");\n int xCoord = Integer.parseInt(crds[0]);\n int yCoord = Integer.parseInt(crds[1]);\n new Doos(new Coordinaat(xCoord,yCoord),this);\n regelNr++;\n }\n }", "private void resize(int capacity) {\r\n assert capacity >= n;\r\n Item[] temp = (Item[]) new Object[capacity];\r\n for (int i = 0; i < n; i++) {\r\n temp[i] = list[(first + i) % list.length];\r\n }\r\n list = temp;\r\n first = 0;prior=list.length-1;\r\n last = n-1;latter=n;}", "public void reorder(FillingStrategy strategy) {\n\n\t\tList<Content> contentsLongList = null;\n\t\tif (contentMap.size() == 0)\n\t\t\tthrow new SomethingWentWrongException(\"Empty Location\");\n \n\t\tcontentsLongList = sortContentMapByVolumeAndBarcode(contentMap);\n\t\tremoveAllContentFromLocation();\n\n\t\tswitch (strategy) {\n\t\tcase ROW_WISE:\t\t\n\t\t\tfillLocationWithItems(contentsLongList, FillingStrategy.ROW_WISE);\n\t\t\tbreak;\n\t\tcase COLUMN_WISE:\n\t\t\tfillLocationWithItems(contentsLongList, FillingStrategy.COLUMN_WISE);\n\t\t\tbreak;\n\t\t}\n\n\t}", "protected synchronized void populateQueue() throws IOException {\n\t\twhile (m_queueLength < m_queue.length) {\n\t\t\tint off = (m_queuePosition + m_queueLength) % m_queue.length;\n\t\t\tint len = Math.min(m_queue.length - m_queueLength, m_queue.length\n\t\t\t\t\t- off);\n\n\t\t\tint i = m_reader.read(m_queue, off, len);\n\t\t\tif (i == -1) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tm_queueLength += i;\n\t\t}\n\t}", "@Override\n public PaintOrder remove() {\n if (!queue.isEmpty()) {\n var temp = queue.remove();\n processedOrders ++;\n currentOrders --;\n queuedOrders --;\n return temp; \n }\n return null;\n }", "private void resize() {\r\n capacity = capacity*2;\r\n IDictionary<K, V>[] temp = chains;\r\n chains = makeArrayOfChains(capacity);\r\n for (int i = 0; i < capacity/2; i++) {\r\n if (temp[i]!=null) {\r\n IDictionary<K, V> each = temp[i];\r\n for (KVPair<K, V> element: each) {\r\n putKV(element);\r\n load--;\r\n }\r\n }\r\n }\r\n \r\n }", "public void resizeByLinearize(int newCapacity) {\r\n Object[] temp = new Object[newCapacity];\r\n int k = start;\r\n for (int i = 0; i < size; i++) {\r\n temp[i] = cir[k];\r\n k = (k + 1) % cir.length;\r\n }\r\n cir = temp;\r\n start = 0;\r\n }", "public void sortByQnNum() {\r\n\t\tfor (int j = 0; j < displayingList.size() - 1; j++) {\r\n\t\t\tfor (int i = 0; i < displayingList.size() - j - 1; i++) {\r\n\t\t\t\tif (displayingList.get(i).getQnNum() > displayingList.get(i + 1).getQnNum()) {\r\n\t\t\t\t\tswapPosition(displayingList, i, i + 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "k value.\nFor 2nd tallest group (and the rest), insert each one of them into (S) by k value. So on and so forth.\n\npublic class Solution {\n public int[][] reconstructQueue(int[][] people) {\n Arrays.sort(people,new Comparator<int[]>() {\n @Override\n public int compare(int[] o1, int[] o2){\n return o1[0] != o2[0]? -o1[0] + o2[0]: o1[1] - o2[1];\n }\n });\n\n List<int[]> res = new ArrayList<>();\n for (int[] cur : people) {\n res.add(cur[1], cur); \n }\n return res.toArray(new int[people.length][]);\n }", "public void roundsAdjustments(final int i) {\n // Remove the contracts with the consumers who have gone bankrupt\n for (Distributor dist : listOfDistributors.getList()) {\n if (dist.isBankrupt()) {\n continue;\n }\n dist.getSubscribedconsumers().removeIf(c -> c.isBankrupt());\n }\n // This list will consist of the ids of the distributors who have had at least one\n // producer changed\n ArrayList<Integer> distsLeftHanging = new ArrayList<>();\n\n // Producer changes\n if (listOfUpdates.getList().get(i).getProducerChanges().size() != 0) {\n for (ProducerChanges x : listOfUpdates.getList().get(i).getProducerChanges()) {\n listOfProducers.grabProducerbyID(x.getId()).setEnergyPerDistributor(\n x.getEnergyPerDistributor());\n listOfProducers.grabProducerbyID(x.getId()).setHasChanged(true);\n for (Integer itr : listOfProducers.grabProducerbyID(x.getId()).getDistIDs()) {\n if (!distsLeftHanging.contains(itr)) {\n distsLeftHanging.add(itr);\n }\n }\n }\n }\n\n distsLeftHanging.sort(Integer::compareTo);\n\n // We notify the observers\n for (Producer p : listOfProducers.getList()) {\n p.roundCheck();\n }\n\n // Implementing a variable that will sort the list of producers according to the strategies\n Strategy tactics = null;\n ArrayList<Producer> auxProducerList = new ArrayList<>(listOfProducers.getList());\n\n // We iterate through the previously mentioned list to remove the bonds\n for (Integer integer : distsLeftHanging) {\n Distributor dst = listOfDistributors.grabDistributorbyID(integer);\n int auxNeededPower = dst.getEnergyNeededKW();\n for (Producer prdcr : dst.getSubscribedproducers()) {\n prdcr.setCurrDistributors(prdcr.getCurrDistributors() - 1);\n prdcr.getDistIDs().remove(integer);\n prdcr.deleteObserver(dst);\n }\n dst.getSubscribedproducers().clear();\n // Afterwards, we give the distribuitors new producers according to their strategy\n if (dst.getProducerStrategy().equals(\"GREEN\")) {\n tactics = new GreenStrategy();\n } else if (dst.getProducerStrategy().equals(\"PRICE\")) {\n tactics = new PriceStrategy();\n } else if (dst.getProducerStrategy().equals(\"QUANTITY\")) {\n tactics = new QuantityStrategy();\n }\n tactics.sorter(auxProducerList);\n\n for (Producer p : auxProducerList) {\n if (!(p.getMaxDistributors() == p.getCurrDistributors())) {\n dst.addSubscribedproducer(p);\n p.addDistIDs(dst.getId());\n p.addObserver(dst);\n p.setCurrDistributors(p.getCurrDistributors() + 1);\n auxNeededPower -= p.getEnergyPerDistributor();\n if (auxNeededPower <= 0) {\n break;\n }\n }\n }\n }\n\n for (Producer prd : listOfProducers.getList()) {\n if (prd.getMonthlyStats().size() <= i) {\n MonthlyStats cleaning = new MonthlyStats();\n prd.getMonthlyStats().add(cleaning);\n }\n prd.getMonthlyStats().get(i).setMonth(i + 1);\n prd.getDistIDs().sort(Integer::compareTo);\n for (Integer itg : prd.getDistIDs()) {\n prd.getMonthlyStats().get(i).addDistId(itg);\n }\n }\n }", "RailYard(int numTrack){\r\n\t\tthis.numTrack = numTrack;\r\n\t\tcurrentTrack = 0;\r\n\t\tsortingYard = new Train[this.numTrack];\r\n\t}", "public void insertReorderBarrier() {\n\t\t\n\t}", "public BetterParkingLot( int size )\n\t{\n\t\tsuper(size);\n queue = new PriorityQueue<Integer>(size);\n\n // add all available parking slots in zero-indexed form\n for(int i=0; i <= size; i++) // this is my only problem. It HAS to be O(n) here.\n queue.add(i);\n\t}", "public void sort() {\r\n\t\tCollections.sort(parts);\r\n\t}", "private int move(int position) {\n\t\tremoveQueue(queues[position]);\n\t\tint angriness = queues[position].queue.poll();\n\t\tallQueues.add(queues[position]);\n\t\tif (queues[position].queue.size() > 0) {\n\t\t\tallHeads.add(queues[position]);\n\t\t}\n\t\treturn insert(angriness);\n\t}", "public void arrangeBoard(){\n for(int i=0;i<6;i++){\n for(int j=0;j<6;j++){\n if(i==2 && j==0){ //set the target ship.\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.gridwidth = 2;\n targetShip = new JLabel();\n targetShip.setIcon(new ImageIcon(\"design\\\\ships\\\\targetShip.png\"));\n mainPanel.add(targetShip,gbc);\n }\n else if(i==2 && j==1){\n continue;\n }\n else{ //put free spaces in the other places.\n gbc.gridx = j;\n gbc.gridy = i;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n freeSpaceButton freeSpace = new freeSpaceButton(new Point(j,i));\n mainPanel.add(freeSpace,gbc);\n }\n }\n }\n }", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "public void sortByAndser() {\r\n\t\tQuestion[][] question2DArray = new Question[displayingList.size()][];\r\n\t\tfor (int i = 0; i < displayingList.size(); i++) {\r\n\t\t\tquestion2DArray[i] = new Question[1];\r\n\t\t\tquestion2DArray[i][0] = displayingList.get(i);\r\n\t\t}\r\n\r\n\t\twhile (question2DArray.length != 1) {\r\n\t\t\tquestion2DArray = (Question[][]) merge2DArray(question2DArray);\r\n\t\t}\r\n\t\tdisplayingList.removeAll(displayingList);\r\n\t\tfor (int i = 0; i < question2DArray[0].length; i++) {\r\n\t\t\tdisplayingList.add(question2DArray[0][i]);\r\n\t\t}\r\n\t}", "void updateAvailMovesInLineInBox(int num) {\n\t\tint counter;\n\t\t//for loop through each box\n\t\t\n\t\tfor (int i = 0; i < boxSize; i++) {\n\t\t\tfor (int j = 0; j < boxSize; j++) {\n\t\t\t\t// here we count the amount/number of the inserted num inside the box\n\t\t\t\tcounter = 0;\n\t\t\t\tfor (int k = boxSize * i; k < boxSize * i + boxSize; k++) {\n\t\t\t\t\tfor (int l = boxSize * j; l < boxSize * j + boxSize; l++) {\n\t\t\t\t\t\tif (availMoves[k][l][num-1] == true) {\n\t\t\t\t\t\t\tcounter++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// next we see if there is a horizontal/vertical line that contains all of them, if it does, we can remove them from the line in the other boxes.\n\t\t\t\tif (counter > 1) {\n\t\t\t\t\tint lineCounter;\n\t\t\t\t\t// see if all the the availMoves that contain num are vertical\n\t\t\t\t\tfor (int k = boxSize * i; k < boxSize * i + boxSize; k++) {\n\t\t\t\t\t\tlineCounter = 0;\n\t\t\t\t\t\tfor (int l = boxSize * j; l < boxSize * j + boxSize; l++) {\n\t\t\t\t\t\t\tif (availMoves[k][l][num-1] == true) {\n\t\t\t\t\t\t\t\tlineCounter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (lineCounter == counter) {\n\t\t\t\t\t\t\tupdateAvailMovesInLineInBoxVertical(num, k, j);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(lineCounter > 0) {\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\t// see if all the the availMoves that contain num are horizontal\n\t\t\t\t\tfor (int l = boxSize * j; l < boxSize * j + boxSize; l++) {\n\t\t\t\t\t\tlineCounter = 0;\n\t\t\t\t\t\tfor (int k = boxSize * i; k < boxSize * i + boxSize; k++) {\n\t\t\t\t\t\t\tif (availMoves[k][l][num-1] == true) {\n\t\t\t\t\t\t\t\tlineCounter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (lineCounter == counter) {\n\t\t\t\t\t\t\tupdateAvailMovesInLineInBoxHorizontal(num, l, i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(lineCounter > 0) {\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\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void swap(){\n\t\ttempQueue = new LinkedBlockingQueue<Run>();\n\t\t\n\t\tint count = 1;\n\t\t// Loop through queue and add to the tempQueue.\n\t\twhile( !finishQueue.isEmpty() ) {\n\t\t\tRun current = finishQueue.poll();\n\t\t\tif( count == 2 ){\n\t\t\t\tsecondRunner = current;\t// Save second runner for swapping.\n\t\t\t} else {\n\t\t\t\ttempQueue.add(current);\n\t\t\t}\n\t\t\t++count;\n\t\t}\t\n\t\t\n\t\tfinishQueue.add(secondRunner);\n\t\twhile(!tempQueue.isEmpty()){\n\t\t\tRun current = tempQueue.poll();\n\t\t\tfinishQueue.add(current);\n\t\t}\n\t}", "public test346(int size) {\n \tqueue = new LinkedList<>(); \n \tcap = size;\n }", "private void updateQueueSize() {\n\t\tsims.minQS = state.queueSize < sims.minQS ? state.queueSize : sims.minQS;\n\t\tsims.maxQS = state.queueSize > sims.maxQS ? state.queueSize : sims.maxQS;\n\t}", "public void updateLaps() {\n\t\tint totSegs = (segments.size()-1)/2;\n\t\tif (oldSeg == totSegs && curSeg == 0) {\n\t\t\tif (!cheatedLap) {\n\t\t\t\tlaps++;\n\t\t\t} else cheatedLap = false;\n\t\t} else if (oldSeg == 0 && curSeg == totSegs){\n\t\t\tcheatedLap = true;\n\t\t}\n\t}", "public void sortByName()\n {\n boolean swapMade;//has a swap been made in the most recent pass?\n \n //repeat looking for swaps\n do\n {\n swapMade=false;//just starting this pass, so no swap yet\n \n //for each RideLines's index\n for(int i = 0; i<currentRide; i++)\n {\n //assume thet the smallest name is the one we start with \n int minIndex= i;\n \n //finding the index of the(alphabetically) lowest RideLines name, \n //k: the index to start searching for the lowest name\n for(int k= minIndex+1; k<currentRide; k++)\n {\n //if the other RideLines has a lower name, they are the low name\n if(rides[k].getName().compareTo(rides[minIndex].getName())<0)\n { \n // standard swap, using a temporary. swap the smallest name\n RideLines temp = rides[k];\n rides[k]=rides[i];\n rides[i]=temp;\n \n swapMade=true; //remember this pass made at least one swap\n } \n\n }\n\n } \n }while(swapMade);//until no swaps were found in the most recent past\n \n redrawLines();//redraw the image\n \n }", "private void resize(int capacity) {\n// assert capacity >= N;\n// StdOut.println(\"resize capacity:\"+ capacity);\n// StdOut.println(\"resize count:\"+ count);\n \n Item[] temp = (Item[]) new Object[capacity];\n int index = 0;\n for (int i = 0; i < N; i++) {\n if (randomizedQueue[i] != null){\n// StdOut.println(\"resize index :\"+ index);\n// StdOut.println(\"resize i :\"+ i);\n// StdOut.println(\"resize N :\"+ N);\n// StdOut.println(\"resize randomizedQueue[i] :\"+ randomizedQueue[i]);\n// StdOut.println(\"--------------------------------------------------\");\n temp[index] = randomizedQueue[i];\n index++;\n }\n }\n randomizedQueue = temp;\n }", "@Test\n public void testArmiesInAirliftCommand() {\n d_gameData.getD_playerList().get(0).getD_ownedCountries().get(0).setD_noOfArmies(5);\n d_gameData.getD_playerList().get(1).getD_ownedCountries().get(0).setD_noOfArmies(3);\n\n d_orderProcessor.processOrder(\"airlift india nepal 6\".trim(), d_gameData);\n d_gameData.getD_playerList().get(0).issue_order();\n Order l_order = d_gameData.getD_playerList().get(0).next_order();\n assertFalse(l_order.executeOrder());\n }" ]
[ "0.57610536", "0.5759538", "0.5746322", "0.54976904", "0.5367094", "0.53371257", "0.53264135", "0.52731174", "0.5218503", "0.5207763", "0.5197574", "0.5184854", "0.5141084", "0.51005805", "0.5096368", "0.5082583", "0.50695467", "0.50083303", "0.50006974", "0.49953675", "0.4991527", "0.49914947", "0.4982385", "0.49244234", "0.4873462", "0.48564637", "0.482632", "0.48183572", "0.4812073", "0.47928405", "0.47653893", "0.47601658", "0.47347265", "0.47336015", "0.4724897", "0.47016925", "0.46841794", "0.46654165", "0.4663045", "0.46608636", "0.46591422", "0.46586114", "0.46472415", "0.4644455", "0.46375045", "0.46351537", "0.463484", "0.4616002", "0.45986685", "0.459697", "0.45920375", "0.45876503", "0.45699877", "0.45653808", "0.4561432", "0.4559245", "0.45590433", "0.4557992", "0.4555949", "0.45531335", "0.45500287", "0.45454222", "0.4533098", "0.4526023", "0.451616", "0.4515309", "0.4515229", "0.45076463", "0.45047095", "0.45025474", "0.44980672", "0.44957182", "0.44952068", "0.4491845", "0.44843477", "0.44803578", "0.4476208", "0.44738364", "0.4469754", "0.44681194", "0.44657513", "0.4461521", "0.4451116", "0.4449318", "0.44476983", "0.44450626", "0.44447556", "0.4442369", "0.44396687", "0.4438855", "0.44345507", "0.44311172", "0.44206673", "0.4418023", "0.4417764", "0.44177622", "0.4417662", "0.44147238", "0.44103822", "0.44103235" ]
0.6238987
0
redraw is a private method that will rebuild the image for a RideLines
private void redrawLines() { for(int i =0; i<currentRide;i++) { rides[i].moveTogether(650,60 + 40*i);//move all elemetnts of ride lines } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void redraw()\r\n\t{\r\n\t\tif (needsCompleteRedraw)\r\n\t\t{\r\n\t\t\tcompleteRedraw();\r\n\t\t\tneedsCompleteRedraw = false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpartialRedraw();\r\n\t\t}\r\n\t}", "void reDraw();", "@Override\n\tpublic void redraw() {\n\t\t\n\t}", "public void redraw() {\n\t\tif(this.getGraphics() != null){\n\t\t\tthis.getGraphics().drawImage(imageBuffer, 0, 0, this); // Swap\n\t\t}\n\t}", "private void redraw() {\r\n for (int row = 0; row < maxRows; row++) {\r\n for (int column = 0; column < maxColumns; column++) {\r\n grid[row][column].setBackground(SQUARE_COLOR);\r\n }\r\n }\r\n grid[snake[HEAD].row][snake[HEAD].column].setBackground(\r\n SNAKE_HEAD_COLOR);\r\n for (int i = 1; i < length; i++) {\r\n grid[snake[i].row][snake[i].column].setBackground(SNAKE_BODY_COLOR);\r\n }\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }", "public void repaint (Graphics g){\r\n g.drawLine(10,10,150,150); // Draw a line from (10,10) to (150,150)\r\n \r\n g.setColor(Color.darkGray);\r\n g.fillRect( 0 , 0 , \r\n 4000 , 4000 ); \r\n \r\n g.setColor(Color.BLACK);\r\n \r\n BufferedImage image;\r\n \r\n for(int h = 0; h < 16; h++){\r\n for(int w =0; w< 16; w++){\r\n //g.drawImage(image.getSubimage(w *16, h*16, 16, 16), 0+(32*w),0 +(32*h), 32,32,this);\r\n g.drawRect(w *32, h*32, 32, 32);\r\n \r\n if(coord.xSelected >=0){\r\n g.setColor(Color.WHITE);\r\n g.drawRect(coord.xSelected *32, coord.ySelected *32, 32, 32);\r\n g.setColor(Color.BLACK);\r\n }\r\n }\r\n }\r\n \r\n \r\n }", "public void redraw() {\n\t\timgDisplay = null;\n\t\trepaint();\n\t}", "public void completeRedraw()\r\n\t{\r\n\t\tg = (Graphics2D) s.getDrawGraphics();\r\n\t}", "private void redrawLines(int k, double y, int i) {\n\t\tdouble y2 = 0;\r\n\t\tdouble x = getWidth() / NDECADES * k;\r\n\t\tdouble x2 = getWidth() / NDECADES * (k + 1);\r\n\t\tif (k != NDECADES - 1) {\r\n\t\t\tif (nse.getRank(k + 1) == 0) {\r\n\t\t\t\ty2 = getHeight() - GRAPH_MARGIN_SIZE;\r\n\t\t\t} else {\r\n\t\t\t\ty2 = (getHeight() - 2 * GRAPH_MARGIN_SIZE) * nse.getRank(k + 1) / (double) MAX_RANK + GRAPH_MARGIN_SIZE;\r\n\t\t\t}\r\n\t\tGLine line = new GLine(x, y, x2, y2);\r\n\t\tchangeTheColor(line, i);\r\n\t\tadd(line);\r\n\t\t}\r\n\t}", "public void redraw(Graphics g)\n {\n g.drawImage(img, (int)x, (int)y, this);\n }", "protected void reDraw(){\n\t\tcontentPane.revalidate();\n\t\trepaint();\n\t}", "public void refresh() {\n\t\tdrawingPanel.repaint();\n\t}", "public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void redraw() {\n if (this.canDraw())\n this.getParent().handleChildRedraw(this, \n 0, 0, this.getWidth(), this.getHeight());\n }", "private void doDraw(Canvas canvas) {\n\t\t// Draw the background image. Operations on the Canvas accumulate\n\t\t// so this is like clearing the screen.\n\t\tcanvas.drawBitmap(mBackgroundImage, 0, 0, null);\n\t\tcanvas.save();\n\n\t\t// rotate rocket so it always faces where it is headed\n\t\tcanvas.save();\n\t\t\n\t\t\n\t\t//rotates rocket in the direction it is moving based on x and y velocity\n\t\t//http://gamedev.stackexchange.com/questions/19209/rotate-entity-to-match-current-velocity\n//\t\tcanvas.rotate((int) -(Math.tan(mRocket.xVel / mRocket.yVel) * 57.2957795), mRocket.xPos,\n\t\tcanvas.rotate((int) (-270 + Math.atan2(mRocket.yVel, mRocket.xVel) * 57.2957795), mRocket.xPos,\n\t\t\t\tmRocket.yPos);\n\t\tmRocket.setBounds();\n\t\tmRocket.image.draw(canvas);\n\t\tcanvas.restore();\n\n\t\tfor (Satellite s : mLevel.satellites) {\n\t\t\ts.setBounds();\n\t\t\ts.image.draw(canvas);\n\t\t}\n\t\t\n\t\t//draw line\n\t\tif(mState == GameState.PLANNING_LVL && currXPos != Float.MIN_VALUE){\n\t\t\tPaint p = new Paint();\n\t\t\tp.setAlpha(255);\n\t\t\tp.setStrokeWidth(3);\n\t\t\tp.setColor(Color.WHITE);\n\t\t\tp.setStyle(Style.FILL_AND_STROKE);\n\t\t\tp.setPathEffect(new DashPathEffect(new float[]{15,4}, 0));\n//\t\t\tLineSegment ls = new LineSegment(new Point(mRocket.xPos, mRocket.yPos), new Point(currXPos, currYPos));\n//\t\t\tls.extendLine(mCanvasHeight/2);\n//\t\t\tcanvas.drawLine((float)ls.a.x, (float)ls.a.y, (float)ls.b.x, (float)ls.b.y, p);\n\t\t\tcanvas.drawLine(mRocket.xPos, mRocket.yPos, currXPos, currYPos, p);\t\n\t\t}\n\t}", "private void forceRedraw(){\n postInvalidate();\n }", "public void updateLinesAndGrid() {\n\t\tutilities.redrawAllLines(0, false);\n\t\ttableDisplay.setGrid(utilities.getOrderedWayPoints());\n\t}", "public void requestRedraw() {\n\n this.getParent().repaint();\n\n }", "public void reDraw() {\n if(entityManager.getPlayerVaccines() != 0){\n vaccine[entityManager.getPlayerVaccines()-1].draw();\n }\n lifeCount[entityManager.getHealth()].draw();\n\n if(entityManager.getHealth() != prevPlayerLife)\n lifeCount[prevPlayerLife].delete();\n prevPlayerLife = entityManager.getHealth();\n\n if(prevPlayerLife == 0){\n heart.draw();\n }\n\n if(entityManager.playerWithMask()){\n mask.draw();\n } else {\n mask.delete();\n }\n }", "private void dragPaint() {\n\n\t\t//buffer die image ooit\n\t\tinvalidate();\n\t\trepaint();\n\t}", "private void drawImages() {\n\t\t\r\n\t}", "public void partialRedraw()\r\n\t{\r\n\t\tg.clearRect(0,0,NumerateGame.WINDOW_X,NumerateGame.WINDOW_Y);\r\n\t}", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void redraw(int [][] board)\n\t{\n\t\tfor(int i = 0; i < 20; ++i)\n\t\t{\n\t\t\tfor( int j = 0; j < 10; ++j)\n\t\t\t{\n\t\t\t\tswitch (board[i][j])\n\t\t\t\t{\n\t\t\t\t\t//empty\n\t\t\t\t\tcase 0:\tcolors[i][j] = Color.GRAY; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//J - shape\n\t\t\t\t\tcase 1:\tcolors[i][j] = Color.BLUE; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//Z shape\n\t\t\t\t\tcase 2:\tcolors[i][j] = Color.RED; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//L shape\n\t\t\t\t\tcase 3:\tcolors[i][j] = Color.ORANGE; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//S shape\n\t\t\t\t\tcase 4:\tcolors[i][j] = new Color(102,255,102); ;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//I shape\n\t\t\t\t\tcase 5:\tcolors[i][j] = Color.CYAN; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//O shape\n\t\t\t\t\tcase 6:\tcolors[i][j] = Color.YELLOW; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//T shape\n\t\t\t\t\tcase 7:\tcolors[i][j] = Color.PINK; \n\t\t\t\t\t\tbreak;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tview.getInGamePanel().getBoardGamePanel().redraw(colors);\t\n\t}", "public void repaint(boolean repaint_navigator) {\n \t\t//TODO: this could be further optimized to repaint the bounding box of the last modified segments, i.e. the previous and next set of interpolated points of any given backbone point. This would be trivial if each segment of the Bezier curve was an object.\n \t\tRectangle box = getBoundingBox(null);\n \t\tcalculateBoundingBox(true);\n \t\tbox.add(getBoundingBox(null));\n \t\tDisplay.repaint(layer_set, this, box, 5, repaint_navigator);\n \t}", "public void redraw(Data data)\n {\n outputHelper.redraw(data);\n }", "@Override\r\n\t\tpublic void update(Rectangle2D r) {\r\n\t\t\t\r\n\t\t\tmakeDirty(r, false);\r\n\t\t\tif (_clipping != null) \r\n\t\t\t\trepaint(_clipping.getTransform().createTransformedShape(r).getBounds());\r\n\t\t}", "@Override\r\n public void repaint(Object canvas) {\r\n {\r\n }\r\n\t}", "public void update() {\r\n\t\tthis.removeAll();\r\n\t\tdrawLinesAndLabels(this.getWidth(), this.getHeight());\r\n\t\tdrawNameSurferEntries();\r\n\t}", "public void repaintGraph() {\r\n this.repaint();\r\n ((GraphBuilder) getFrameParent()).getMiniMap().repaint();\r\n }", "public void updateDrawing() {\n\n\t\tdrawingContainer.setDrawing(controller.getDrawing());\n\t\tscrollpane.setPreferredSize(new Dimension(drawingContainer\n\t\t\t\t.getPreferredSize().width + 100, drawingContainer\n\t\t\t\t.getPreferredSize().height + 100));\n\t\tpack();\n\t\trepaint();\n\t}", "private void drawGrid(){\r\n\r\n\t\tdrawHorizontalLines();\r\n\t\tdrawVerticalLines();\r\n\t}", "@Override\n\tpublic void roadChanged() {\n\t\tthis.from_x=this.from.getX();\n\t\tthis.from_y=this.from.getY();\n\t\tthis.to_x=this.to.getX();\n\t\tthis.to_y=this.to.getY();\n\t\tthis.getTopLevelAncestor().repaint();\n\t\tthis.repaint();\n//\t\tthis.getParent().repaint();\n\t}", "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 redraw() {\n\t\t// LdvInt leftButtonWidth = new LdvInt(DOM.getElementPropertyInt(_leftScrollButton.getElement(), \"offsetWidth\"));\n\t\t// LdvInt rightButtonWidth = new LdvInt(DOM.getElementPropertyInt(_rightScrollButton.getElement(), \"offsetWidth\"));\n\t\t//_scrollArea.getElement().setPropertyInt(\"left\", leftButtonWidth);\n\t\t//_scrollArea.getElement().setPropertyInt(\"right\", rightButtonWidth);\n\t\t// _mainpanel.setCellWidth(_leftScrollButton, leftButtonWidth.intToString(-1)+\"px\");\n\t\t// _mainpanel.setCellWidth(_rightScrollButton, rightButtonWidth.intToString(-1)+\"px\");\n\t}", "public void paint( java.awt.Graphics g )\n {\n super.paint( g ); // Ord gave us this\n\n canvasWidth = canvas.getWidth(); // Update original\n canvasHeight = canvas.getHeight(); // canvas dimensions\n\n double newHLineY = hLineProportion * canvas.getHeight();\n double newVLineX = vLineProportion * canvas.getWidth();\n\n hLine.setEndPoints(0, newHLineY, canvasWidth, newHLineY);\n vLine.setEndPoints(newVLineX, 0, newVLineX, canvasHeight);\n\n hLineMoved = vLineMoved = true;\n }", "public void paintRiders(Graphics g){\n Graphics2D g2D;\n g2D=(Graphics2D)pnRider1.getGraphics();\n g2D.drawImage(Rider.rider1Image,1,20,this);\n g2D=(Graphics2D)pnRider2.getGraphics();\n g2D.drawImage(Rider.rider2Image,1,20,this);\n g2D=(Graphics2D)pnRider3.getGraphics();\n g2D.drawImage(Rider.rider3Image,1,20,this);\n g2D=(Graphics2D)pnRider4.getGraphics();\n g2D.drawImage(Rider.rider4Image,1,20,this);\n g2D=(Graphics2D)pnRider5.getGraphics();\n g2D.drawImage(Rider.rider5Image,1,20,this);\n g2D=(Graphics2D)pnRider6.getGraphics();\n g2D.drawImage(Rider.rider6Image,1,20,this);\n }", "public void repaint() {\n\n\t}", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n int width = getWidth();\n int height = getHeight();\n float pieceWidth = width/5.0f-5;\n float pieceHeight = height/3.0f-20;\n Log.d(\"hello\", \"DRAWINGGGGGGG\");\n\n //this.paint.setColor(Color.WHITE);\n this.paint.setStyle(Paint.Style.FILL);\n //canvas.drawPaint(this.paint);\n canvas.drawColor(0x00000000);\n\n this.paint.setColor(Color.WHITE);\n //canvas.drawRect(0, 0, 100, 100, this.paint);\n\n\n for(int i = 0; i < 5; i++)\n for(int j = 0; j<3; j++){\n Cell cell = grid.getCellAt(i, j);\n if(cell!=null){\n //Before you can call any drawing methods, though, it's necessary to create a Paint object.\n\n this.paint.setColor(cell.getColor());\n canvas.drawRect(i*pieceWidth, j*pieceHeight, i*pieceWidth + pieceWidth, j*pieceHeight + pieceHeight, this.paint);\n\n this.paint.setColor(Color.WHITE);\n this.paint.setStrokeWidth(4);\n //Lines on window\n canvas.drawLine(i*pieceWidth, j*pieceHeight, i*pieceWidth, j*pieceHeight + pieceHeight, this.paint);\n canvas.drawLine(i*pieceWidth, j*pieceHeight, i*pieceWidth + pieceWidth, j*pieceHeight, this.paint);\n canvas.drawLine(i*pieceWidth + pieceWidth, j*pieceHeight, i*pieceWidth + pieceWidth, j*pieceHeight + pieceHeight, this.paint);\n canvas.drawLine(i*pieceWidth, j*pieceHeight + pieceHeight, i*pieceWidth + pieceWidth, j*pieceHeight + pieceHeight, this.paint);\n\n }\n }\n\n\n\n }", "public void refreshAll() {\n\t\tdrawingPanel.repaint();\n\t}", "@Override\n public void paintComponent(Graphics g) {\n Graphics2D g2 = (Graphics2D) g;\n g2.setStroke(new BasicStroke(WALL));\n int[] xs = {BORDER + WALL, BORDER, BORDER, BORDER + (width-1)*SIZE + WALL};\n int[] ys = {BORDER, BORDER, BORDER + height*SIZE, BORDER + height*SIZE};\n g2.drawPolyline(xs, ys, 4);\n int[] xs2 = {BORDER + SIZE - WALL, BORDER + width*SIZE, BORDER + width*SIZE, BORDER + width*SIZE - WALL};\n g2.drawPolyline(xs2, ys, 4);\n // code that was used to create the intermediate images\n// g2.setColor(Color.LIGHT_GRAY);\n// for(int i = 1; i < height; i++) {\n// int where = BORDER + i*SIZE;\n// g2.drawLine(BORDER + WALL, where, BORDER + width * SIZE - WALL, where);\n// }\n// for(int i = 1; i < width; i++) {\n// int where = BORDER + i*SIZE;\n// g2.drawLine(where, BORDER + WALL, where, BORDER + height * SIZE - WALL);\n// }\n g2.setColor(Color.blue);\n for(Wall wall : walls) {\n drawWall(g2, wall);\n }\n }", "@Override\r\n public void repaint() {\r\n }", "public void updateImage() {\n Graphics2D g = img.createGraphics();\n for (Circle gene : genes) {\n gene.paint(g);\n }\n g.dispose();\n }", "void repaintCanvas() {\n objCanvas.repaint();\n\n objCanvas.setImage(_img);\n ArrayList<ObjLabel> objLabels = objCanvas.getObjLabels();\n\n status(\"Parsed: \" + objLabels.size() + \" objects for \" + getFilename());\n objLabels.forEach((objLabel) -> {\n addObjLabel(objLabel);\n\n });\n }", "public void drawMap() {\n\t\tRoad[] roads = map.getRoads();\r\n\t\tfor (Road r : roads) {\r\n\t\t\tif (r.turn) {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road = true;\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_vert = true;\r\n\t\t\t} else if (r.direction == Direction.NORTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_north = true;\r\n\t\t\telse if (r.direction == Direction.SOUTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_south = true;\r\n\t\t\telse if (r.direction == Direction.WEST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_west = true;\r\n\t\t\telse if (r.direction == Direction.EAST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_east = true;\r\n\t\t\ttry {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].updateImage();\r\n\t\t\t} catch (IOException 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}\r\n\t}", "public void draw()\r\n\t\t{\r\n\t\tfor(PanelStationMeteo graph: graphList)\r\n\t\t\t{\r\n\t\t\tgraph.repaint();\r\n\t\t\t}\r\n\t\t}", "public abstract void redrawPathsafterDeserialization(FingerDrawingActivity fda);", "public void updateCoords() {\n line.setLine(parent.getFullBounds().getCenter2D(), child.getFullBounds().getCenter2D());\n Rectangle2D r = line.getBounds2D();\n // adding 1 to the width and height prevents the bounds from\n // being marked as empty and is much faster than createStrokedShape()\n setBounds(r.getX(), r.getY(), r.getWidth() + 1, r.getHeight() + 1);\n invalidatePaint();\n }", "public void paintImmediately() {\n apparatusPanel2.paintDirtyRectanglesImmediately();\n }", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\tif(rectFs == null || rectFs.isEmpty())\n\t\t return;\n\t\tcanvas.translate(originX, originY);\n\t\tdrawArcPie(canvas);\n\t\tdrawPie(canvas);\t\n\t}", "protected void onDraw(Canvas canvas) { \t\r\n\r\n \t// resets the position of the unicorn if one is killed or reaches the right edge\r\n \tif (newUnicorn || unicorn.getX() >= this.getWidth()) {\r\n \t\tunicorn.setX(-150);\r\n \t\tunicorn.setY((int)(Math.random() * 200 + 200));\r\n \t\tyChange = (int)(10 - Math.random() * 20);\r\n \t\tnewUnicorn = false;\r\n \t\tkilled = false;\r\n \t}\r\n\r\n \t// draws the unicorn at the specified point\r\n \tcanvas.drawBitmap(unicorn.getImage(killed), unicorn.getX(), unicorn.getY(), null);\r\n \t\r\n\t\t// show the exploding image when the unicorn is killed\r\n \tif (killed) {\r\n \t\tnewUnicorn = true;\r\n \t\ttry { Thread.sleep(10); } catch (Exception e) { }\r\n \t\tinvalidate();\r\n \t\treturn;\r\n \t}\r\n \t\r\n\t\t// draws the stroke\r\n \tif (stroke.countPoints() > 1) {\r\n \t\tfor (int i = 0; i < stroke.countPoints() - 1; i++) {\r\n \t\t\tint startX = stroke.getX(i);\r\n \t\t\tint stopX = stroke.getX(i + 1);\r\n \t\t\tint startY = stroke.getY(i);\r\n \t\t\tint stopY = stroke.getY(i + 1);\r\n \t\t\tPaint paint = new Paint();\r\n \t\t\tpaint.setColor(Stroke.getColor());\r\n \t\t\tpaint.setStrokeWidth(Stroke.getWidth());\r\n \t\t\tcanvas.drawLine(startX, startY, stopX, stopY, paint);\r\n \t\t}\r\n \t}\r\n \t\r\n }", "@Override\n public void redraw() {\n firePropertyChange(AVKey.LAYER, null, this);\n }", "void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2 = (Graphics2D) theGraphics;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n g2.setStroke(STROKE);\n\n // draw city map\n\n drawMap(g2);\n\n // draw vehicles\n for (final Vehicle v : myVehicles) {\n final String imageFilename = \"icons//\" + v.getImageFileName();\n //final String imageFilename = v.getImageFileName();\n ImageIcon imgIcon = new ImageIcon(imageFilename);\n\n if (imgIcon.getImageLoadStatus() != MediaTracker.COMPLETE) {\n imgIcon = new ImageIcon(getClass().getResource(imageFilename));\n }\n\n final Image img = imgIcon.getImage();\n g2.drawImage(img, v.getX() * SQUARE_SIZE, v.getY() * SQUARE_SIZE,\n SQUARE_SIZE, SQUARE_SIZE, this);\n\n if (myDebugFlag) {\n drawDebugInfo(g2, v);\n }\n }\n\n if (myDebugFlag) {\n g2.setColor(Color.WHITE);\n g2.drawString(\"Update # \" + myTimestep, DEBUG_OFFSET / 2,\n FONT.getSize() + DEBUG_OFFSET / 2);\n }\n }", "private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }", "public void drawGraph() {\n for (int x = 0; x < width; ++x) {\n for (int y = 0; y < height; ++y) {\n\n if (y == height / 2) {\n imageRaster.setPixel(x, y, lineColor);\n } else {\n imageRaster.setPixel(x, y, backgroundColor);\n }\n }\n }\n\n // lateral\n for (int x = 0; x < width; ++x) {\n float xUnit = x / (float) width;\n float slipAngle = map(xUnit, 0, 1, 0, maxSlipAngle);\n\n float lat = tireModel.calcLateralTireForce(slipAngle);\n lat = map(lat, -tireModel.getMaxLoad(), tireModel.getMaxLoad(), 0, height);\n int pixelY = (int) FastMath.clamp(lat, 0, height - 1);\n\n imageRaster.setPixel(x, pixelY, lateralColor);\n }\n\n // longitudinal\n for (int x = 0; x < width; ++x) {\n float xUnit = x / (float) width;\n float slipAngle = map(xUnit, 0, 1, 0, maxSlipAngle);\n\n float lng = tireModel.calcLongitudeTireForce(slipAngle);\n lng = map(lng, -tireModel.getMaxLoad(), tireModel.getMaxLoad(), 0, height);\n int pixelY = (int) FastMath.clamp(lng, 0, height - 1);\n\n imageRaster.setPixel(x, pixelY, longitudinalColor);\n }\n\n // align moment\n for (int x = 0; x < width; ++x) {\n float xUnit = x / (float) width;\n float slipAngle = map(xUnit, 0, 1, 0, maxSlipAngle);\n\n float mnt = tireModel.calcAlignMoment(slipAngle);\n mnt = map(mnt, -tireModel.getMaxLoad(), tireModel.getMaxLoad(), 0, height);\n int pixelY = (int) FastMath.clamp(mnt, 0, height - 1);\n\n imageRaster.setPixel(x, pixelY, momentColor);\n }\n }", "public void repaint() {}", "private void drawMe(Canvas canvas) {\n\n float halfNegative = mFullBlockSize*(1 - mDividerScale)/2;\n float borderLength = getWidth() - 2*halfNegative;\n float borderMargin = halfNegative + (1 - mBorderScale)*borderLength/2;\n\n// if(mDividerScale == 1 && mBorderScale == 1) {\n// canvas.drawPath(mBorderPath, mBorderPaint);\n// canvas.drawPath(mDividersPath, mDividerPaint);\n// } else {\n\n //left border\n canvas.drawLine(0, borderMargin, 0, mHeight - borderMargin, mBorderPaint);\n\n //right border\n canvas.drawLine(mWidth, borderMargin, mWidth, mHeight - borderMargin, mBorderPaint);\n\n //top border\n canvas.drawLine(borderMargin, 0, mWidth - borderMargin, 0, mBorderPaint);\n\n //bottom border\n canvas.drawLine(borderMargin, mHeight, mWidth - borderMargin, mHeight, mBorderPaint);\n\n\n for(int i = 0; i < mFieldSize; i++) {\n for(int j = 0; j < mFieldSize; j++) {\n if(i != 0)\n canvas.drawLine(mFullBlockSize*i, mFullBlockSize*j + halfNegative, mFullBlockSize*i, mFullBlockSize*(j + 1) - halfNegative, mDividerPaint);\n if(j != 0)\n canvas.drawLine(mFullBlockSize*i + halfNegative, mFullBlockSize*j, mFullBlockSize*(i + 1) - halfNegative, mFullBlockSize*j, mDividerPaint);\n }\n }\n// }\n\n\n float radius = (mFullBlockSize - halfNegative*2)*mTileRadiusRatio;\n for(int i = 0; i < mTiles.size(); i++) {\n Tile tile = mTiles.get(i);\n\n canvas.save();\n canvas.translate(tile.x + halfNegative, tile.y + halfNegative);\n\n if(tile.scale != 1) {\n canvas.scale(tile.scale, tile.scale, realTileSize()/2, realTileSize()/2);\n }\n\n mTilePaint.setColor(mColorMap.get(tile.number));\n mTextPaint.setColor(mColorMap.get(tile.number));\n\n canvas.save();\n if(tile.borderRotation + tile.rotation != 0 && tile.borderRotation + tile.rotation != 360) {\n canvas.rotate(tile.borderRotation + tile.rotation, realTileSize()/2, realTileSize()/2);\n }\n\n// canvas.drawPath(mBaseTilePath, mTilePaint);\n canvas.drawRoundRect(0, 0, realTileSize(), realTileSize(),\n radius, radius, mTilePaint);\n\n canvas.restore();\n\n if(tile.rotation != 0 && tile.rotation != 360) {\n canvas.rotate(tile.rotation, realTileSize()/2, realTileSize()/2);\n }\n\n String text = String.valueOf(tile.number);\n\n TextConfig config = mTextConfigs[text.length() - 1];\n\n config.paint.setColor(mColorMap.get(tile.number));\n\n float textWidth = config.paint.measureText(text);\n\n\n canvas.translate(0, config.yOffset);\n//\n canvas.drawText(text, ((float) mFullBlockSize - 2*halfNegative)/2f - textWidth/2 - 1, 0, config.paint);\n\n canvas.restore();\n\n }\n\n\n // canvas.restore();\n\n\n }", "@Override\n public void paint(Graphics g1){\n\n try{\n super.paint(g1);\n\n drawSymbols_Rel( g1 );\n drawSymbols_Att( g1 );\n /**\n //==== only for test ====\n this.setComplexRelationsCoordinates(20, 28, 33, 38);\n this.setComplexRelationsCoordinates_extraEnds(400, 404);\n */\n\n drawComplexRelationship(g1);\n drawPath(g1);\n \n \n \n }catch(Exception ex){\n }\n }", "public void paint( Graphics2D g2 ) {\n int numberOfRays = _drawLines.size();\n if ( isVisible() && numberOfRays > 0 ) {\n saveGraphicsState( g2 );\n\n g2.setRenderingHints( _hints );\n g2.setStroke( _stroke );\n g2.setPaint( RAY_COLOR );\n g2.transform( getNetTransform() );\n\n // Draw each of the ray lines.\n Line2D line;\n for ( int i = 0; i < numberOfRays; i++ ) {\n line = (Line2D) _drawLines.get( i );\n g2.drawLine( (int) line.getX1(), (int) line.getY1(), (int) line.getX2(), (int) line.getY2() );\n }\n\n restoreGraphicsState();\n }\n }", "public void draw(){\n super.repaint();\n }", "public void megarepaintImmediately() {\n paintDirtyRectanglesImmediately();\n }", "public void redraw(Mask mask);", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics;\n\n for (int i = 0; i < myDrawingArray.size(); i++) {\n final Drawing drawing = myDrawingArray.get(i);\n g2d.setPaint(drawing.getColor());\n g2d.setStroke(new BasicStroke(drawing.getWidth()));\n g2d.draw(drawing.getShape());\n }\n \n if (myCurrentShape != null) {\n g2d.setPaint(myCurrentShape.getColor());\n g2d.setStroke(new BasicStroke(myCurrentShape.getWidth()));\n g2d.draw(myCurrentShape.getShape());\n }\n \n if (myGrid) { //Paints the grid if myGrid is true.\n g2d.setStroke(new BasicStroke(1));\n g2d.setPaint(Color.GRAY);\n for (int row = 0; row < getHeight() / GRID_SPACING; row++) {\n final Line2D line = new Line2D.Float(0, GRID_SPACING + (row * GRID_SPACING),\n getWidth(), GRID_SPACING + (row * GRID_SPACING));\n g2d.draw(line);\n }\n for (int col = 0; col < getWidth() / GRID_SPACING; col++) {\n final Line2D line = new Line2D.Float(GRID_SPACING \n + (col * GRID_SPACING), 0,\n GRID_SPACING\n + (col * GRID_SPACING), getHeight());\n g2d.draw(line);\n }\n \n }\n }", "public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawBackGround();\r\n\t\tdrawGraph();\r\n\t}", "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tGraphics2D g2d = (Graphics2D) g.create();\n\t\t// checks for the buffered image\n\t\tif (icon1 != null) {\n\t\t\t// draws the floor plan at the respective x and y axis\n\t\t\tg2d.drawImage(icon1, 214, 61, null);\n\n\t\t\tg2d.setColor(Color.RED);\n\t\t\tg2d.setStroke(new BasicStroke(5));\n\n\t\t\tif (section != null) {\n\n\t\t\t\tg2d.draw(section);\n\n\t\t\t}\n\n\t\t}\n\t\t// iterates through the key set and draws the fire bell icon and\n\t\t// burglary bell icon on\n\t\t// the rooms that are configured with fire ,burglary sensors\n\t\tfor (Integer idVal : map.keySet()) {\n\t\t\t// if the id value of the room has value 1 for fire sensor then the\n\t\t\t// fire bell is drawn on the room\n\t\t\tif (map.get(idVal).isFireSensor()) {\n\n\t\t\t\tif (idVal == 1) {\n\t\t\t\t\tfetchfireBell();\n\t\t\t\t\tg2d.drawImage(fireBellScaledImg, 244, 256, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 2) {\n\t\t\t\t\tfetchfireBell();\n\t\t\t\t\tg2d.drawImage(fireBellScaledImg, 339, 473, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 3) {\n\t\t\t\t\tfetchfireBell();\n\t\t\t\t\tg2d.drawImage(fireBellScaledImg, 514, 245, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 4) {\n\t\t\t\t\tfetchfireBell();\n\t\t\t\t\tg2d.drawImage(fireBellScaledImg, 636, 551, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 5) {\n\t\t\t\t\tfetchfireBell();\n\t\t\t\t\tg2d.drawImage(fireBellScaledImg, 663, 374, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 6) {\n\t\t\t\t\tfetchfireBell();\n\t\t\t\t\tg2d.drawImage(fireBellScaledImg, 864, 372, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 7) {\n\t\t\t\t\tfetchfireBell();\n\t\t\t\t\tg2d.drawImage(fireBellScaledImg, 700, 469, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 8) {\n\t\t\t\t\tfetchfireBell();\n\t\t\t\t\tg2d.drawImage(fireBellScaledImg, 1026, 243, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 9) {\n\t\t\t\t\tfetchfireBell();\n\t\t\t\t\tg2d.drawImage(fireBellScaledImg, 1025, 551, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 10) {\n\t\t\t\t\tfetchfireBell();\n\t\t\t\t\tg2d.drawImage(fireBellScaledImg, 958, 151, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// if the id value of the room has value 1 for burglary sensor then\n\t\t\t// the burglary bell is drawn on the room\n\t\t\tif (map.get(idVal).isBurglarySensor()) {\n\n\t\t\t\tif (idVal == 1) {\n\n\t\t\t\t\tfetchBurglaryBell();\n\t\t\t\t\tg2d.drawImage(burglaryBellScaledImg, 271, 256, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 2) {\n\t\t\t\t\tfetchBurglaryBell();\n\t\t\t\t\tg2d.drawImage(burglaryBellScaledImg, 366, 473, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 3) {\n\t\t\t\t\tfetchBurglaryBell();\n\t\t\t\t\tg2d.drawImage(burglaryBellScaledImg, 487, 245, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 4) {\n\t\t\t\t\tfetchBurglaryBell();\n\t\t\t\t\tg2d.drawImage(burglaryBellScaledImg, 663, 551, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 5) {\n\t\t\t\t\tfetchBurglaryBell();\n\t\t\t\t\tg2d.drawImage(burglaryBellScaledImg, 690, 374, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 6) {\n\t\t\t\t\tfetchBurglaryBell();\n\t\t\t\t\tg2d.drawImage(burglaryBellScaledImg, 891, 372, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 7) {\n\t\t\t\t\tfetchBurglaryBell();\n\t\t\t\t\tg2d.drawImage(burglaryBellScaledImg, 727, 469, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 8) {\n\t\t\t\t\tfetchBurglaryBell();\n\t\t\t\t\tg2d.drawImage(burglaryBellScaledImg, 1053, 243, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 9) {\n\t\t\t\t\tfetchBurglaryBell();\n\t\t\t\t\tg2d.drawImage(burglaryBellScaledImg, 1052, 551, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\t\t\t\tif (idVal == 10) {\n\t\t\t\t\tfetchBurglaryBell();\n\t\t\t\t\tg2d.drawImage(burglaryBellScaledImg, 985, 151, null);\n\t\t\t\t\trepaint();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\tg2d.dispose();\n\n\t}", "void updateGlobalLines() {\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tif (i != selectedLine) // do not update Line if it is being dragged\n\t\t\t\t\t\t\t\t\t// (because dragging method already updates\n\t\t\t\t\t\t\t\t\t// it\n\t\t\t{\n\t\t\t\tline[i] = new Line(myParent, point[neighborPointsFromLine(i)[1]].position,\n\t\t\t\t\t\tpoint[neighborPointsFromLine(i)[0]].position, i, this);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void repaint(final Rectangle r) {\r\n }", "private void moveTurtleImageAndDraw(Point2D locOrig, Point2D locNew) {\n\t\tthis.updateTurtleOnView();\n\t\t\n\t\tif (this.myPenHandler.getPenStatus() == 1)\n\t\t{\n\t\t\tthis.myLineView.drawLine(locOrig, locNew);\n\t\t\t\n\t\t\t// draw line design considerations / discussion - see analysis document\n\t\t}\n\n\t}", "private void reloadCanvas() {\n reloadCanvas(1f);\n }", "private void rebuildImageIfNeeded() {\n Rectangle origRect = this.getBounds(); //g.getClipBounds();\n// System.out.println(\"origRect \" + origRect.x + \" \" + origRect.y + \" \" + origRect.width + \" \" + origRect.height);\n\n backBuffer = createImage(origRect.width, origRect.height);\n// System.out.println(\"Image w \" + backBuffer.getWidth(null) + \", h\" + backBuffer.getHeight(null));\n Graphics backGC = backBuffer.getGraphics();\n backGC.setColor(Color.BLACK);\n backGC.fillRect(0, 0, origRect.width, origRect.height);\n// updateCSysEntList(combinedRotatingMatrix);\n paintWorld(backGC);\n }", "public void paint(Graphics g){\n super.paint(g);\n Graphics2D g2d = (Graphics2D) g;\n g.setColor(Color.WHITE);\n for(int i = 0; i < ROWS; i++){\n g.drawLine(0, i * HEIGHT / ROWS - 1, \n WIDTH, i * HEIGHT / ROWS - 1);\n g.drawLine(0, i * HEIGHT / ROWS - 2, \n WIDTH, i * HEIGHT / ROWS - 2);\n }\n for (int i = 0; i <= COLS; i++) {\n g.drawLine(i * Game.getWindowWidth() / Game.getCols(), 0,\n i * Game.getWindowWidth() / Game.getCols(), HEIGHT);\n g.drawLine(i * Game.getWindowWidth() / Game.getCols() - 1, 0,\n i * Game.getWindowWidth() / Game.getCols() - 1, HEIGHT);\n }\n for (int i = 0; i < ROWS; i++) {\n for (int j = 0; j < COLS; j++) {\n grid[i][j].paintShadow(g2d);\n }\n }\n for (int i = 0; i < ROWS; i++) {\n for (int j = 0; j < COLS; j++) {\n grid[i][j].paint(g2d);\n }\n }\n \n for(Ball b : balls) {\n b.paint(g2d);\n }\n g2d.setColor(Color.BLACK);\n //segment at the top\n g2d.drawLine(0, 0, WIDTH, 0);\n g2d.drawLine(0, 1, WIDTH, 1);\n g2d.drawLine(0, 2, WIDTH, 2);\n //segment at the bottom\n g2d.drawLine(0, HEIGHT, WIDTH, HEIGHT);\n g2d.drawLine(0, HEIGHT + 1, WIDTH, HEIGHT + 1);\n g2d.drawLine(0, HEIGHT + 2, WIDTH, HEIGHT + 2);\n \n for(Point p : corners){\n g2d.drawOval(p.x, p.y, 3, 3);\n }\n\n if(aimStage){\n //draw the firing line\n g2d.setColor(lineColor);\n drawFatPath(g2d, startX, startY, endX, endY);\n g2d.setColor(arrowColor);\n drawArrow(g2d);\n }\n if(mouseHeld){\n// drawFatPath(g, Ball.restPositionX, HEIGHT - Ball.diameter, \n// getEndPoint().x, getEndPoint().y);\n }\n }", "public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }", "private void repaint() {\n\t\tclear();\n\t\tfor (PR1Model.Shape c : m.drawDataProperty()) {\n\t\t\tif(!c.getText().equals(defaultshape))\n\t\t\t\tdrawShape(c, false);\n\t\t}\n\t\tif (getSelection() != null) {\n\t\t\tdrawShape(getSelection(), true);\n\t\t}\n\t}", "private void redraw(JFrame container) \n\t{\n\t\tfor (int i = 0; i < images.length; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < images.length; j++)\n\t\t\t{\n\t\t\t\timages[i][j].setIcon(UNSET);;\n\t\t\t}\n\t\t}\t\t\n\t}", "@Override\n protected void onDraw(Canvas canvas) {\n // draw background screen\n canvas.drawBitmap(mBitmap, 0, 0, mPaintScreen);\n\n // draw line for each path\n for( Integer key : pathMap.keySet() ){\n canvas.drawPath(pathMap.get(key), mPaintLine);\n }\n }", "@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\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 }", "public void renewImage() {\r\n\t\t//myHistoryManager.clearHistory();\r\n\t\tindexes.clear();\r\n\t\tcache.clear();\r\n\t\tcolorCache.clear();\r\n\t\tstrokeSizes.clear();\r\n\t\t\r\n//\t\tfor (AbstractHistory tempHistory : newHistorys) {\r\n//\t\t\tmyHistoryManager.addHistory(tempHistory);\r\n//\t\t}\r\n\r\n\t\tsurface.clear();\r\n\t\tint start = 0;\r\n\t\tfor (start = 0; start < myHistoryManager.historys.size(); start++) {\r\n\r\n\t\t\tAbstractHistory history = myHistoryManager.historys.get(start);\r\n\t\t\tif (history.getType() == \"AddHistory\") {\r\n\r\n\t\t\t\tPoint endPos = ((AddHistory) history).endPos;\r\n\t\t\t\tMyColor pathColor = ((AddHistory) history).pathColor;\r\n\t\t\t\tstrokeSize = ((AddHistory) history).strokeSize;\r\n\t\t\t\tdouble x = endPos.getVector2().getX();\r\n\t\t\t\tdouble y = endPos.getVector2().getY();\r\n\r\n\t\t\t\tif (strokePointCount == 2) {\r\n\t\t\t\t\tcanvas_context.setStrokeStyle(pathColor.getColorCode());\r\n\t\t\t\t\tcanvas_context.setFillStyle(pathColor.getColorCode());\r\n\t\t\t\t\tcanvas_context.setLineWidth(((double) strokeSize) * 0.5);\r\n\t\t\t\t\tcanvas_context.setLineCap(LineCap.ROUND);\r\n\t\t\t\t\tcanvas_context.setLineJoin(LineJoin.ROUND);\r\n\t\t\t\t\tcanvas_context.setShadowBlur(((double) strokeSize) * 0.3);\r\n\t\t\t\t\tcanvas_context.setShadowColor(pathColor.getColorCode());\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* get the x, y */\r\n\t\t\t\t\tp3.x = x;\r\n\t\t\t\t\tp3.y = y;\r\n\t\t\t\t\tp0.x = p1.x + (p1.x - p2.x);\r\n\t\t\t\t\tp0.y = p1.y + (p1.y - p2.y);\r\n\t\t\t\t\tstrokePointCount++;\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tget_buffer(p0, p1, p2, p3, bufferCount);\r\n\t\t\t\t\tbufferCount = buffList.size();\r\n\t\t\t\t\toldx = (int) buffList.get(0).x;\r\n\t\t\t\t\toldy = (int) buffList.get(0).y;\r\n\t\t\t\t\tcanvas_context.beginPath();\r\n\t\t\t\t\tcanvas_context.moveTo(oldx, oldy);\r\n\t\t\t\t\tcache.add(new Vector2(oldx, oldy));\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * draw all interpolated points found through Hermite\r\n\t\t\t\t\t * interpolation\r\n\t\t\t\t\t */\r\n\t\t\t\t\tint i = 1;\r\n\t\t\t\t\tfor (i = 1; i < bufferCount - 2; i++) {\r\n\t\t\t\t\t\tx = buffList.get(i).x;\r\n\t\t\t\t\t\ty = buffList.get(i).y;\r\n\t\t\t\t\t\tcache.add(new Vector2(x, y));\r\n\t\t\t\t\t\tdouble nextx = buffList.get(i + 1).x;\r\n\t\t\t\t\t\tdouble nexty = buffList.get(i + 1).y;\r\n\t\t\t\t\t\tdouble c = (x + nextx) / 2;\r\n\t\t\t\t\t\tdouble d = (y + nexty) / 2;\r\n\t\t\t\t\t\tcanvas_context.quadraticCurveTo(x, y, c, d);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tx = buffList.get(i).x;\r\n\t\t\t\t\ty = buffList.get(i).y;\r\n\t\t\t\t\tcache.add(new Vector2(x, y));\r\n\t\t\t\t\tdouble nextx = buffList.get(i + 1).x;\r\n\t\t\t\t\tdouble nexty = buffList.get(i + 1).y;\r\n\t\t\t\t\tcache.add(new Vector2(nextx, nexty));\r\n\t\t\t\t\t\r\n\t\t\t\t\tcanvas_context.quadraticCurveTo(x, y, nextx, nexty);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* adaptive buffering using Hermite interpolation */\r\n\t\t\t\t\tint distance = (int) Math.sqrt(Math.pow(x - p2.x, 2)\r\n\t\t\t\t\t\t\t+ Math.pow(y - p2.y, 2));\r\n\t\t\t\t\tbufferCount = ((int) distance / 10) > 6 ? 6 : 3;\r\n\t\t\t\t\tbufferCount = bufferCount < 10 ? bufferCount : 10;\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tcolorCache.remove(colorCache.size()-1);\r\n\t\t\t\t\tcolorCache.add(pathColor);\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\t/* update the touch point list */\r\n\t\t\t\t\tp0.x = p1.x;\r\n\t\t\t\t\tp0.y = p1.y;\r\n\t\t\t\t\tp1.x = p2.x;\r\n\t\t\t\t\tp1.y = p2.y;\r\n\t\t\t\t\tp2.x = p3.x;\r\n\t\t\t\t\tp2.y = p3.y;\r\n\t\t\t\t\tp3.x = x;\r\n\t\t\t\t\tp3.y = y;\r\n\r\n\t\t\t\t\tget_buffer(p0, p1, p2, p3, bufferCount);\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * draw all interpolated points found through Hermite\r\n\t\t\t\t\t * interpolation\r\n\t\t\t\t\t */\r\n\t\t\t\t\tbufferCount = buffList.size();\r\n\t\t\t\t\tint i = 1;\r\n\t\t\t\t\tfor (i = 1; i < bufferCount - 2; i++) {\r\n\t\t\t\t\t\tx = buffList.get(i).x;\r\n\t\t\t\t\t\ty = buffList.get(i).y;\r\n\t\t\t\t\t\tcache.add(new Vector2(x, y));\r\n\t\t\t\t\t\tdouble nextx = buffList.get(i + 1).x;\r\n\t\t\t\t\t\tdouble nexty = buffList.get(i + 1).y;\r\n\t\t\t\t\t\tdouble c = (x + nextx) / 2;\r\n\t\t\t\t\t\tdouble d = (y + nexty) / 2;\r\n\t\t\t\t\t\tcanvas_context.quadraticCurveTo(x, y, c, d);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tx = buffList.get(i).x;\r\n\t\t\t\t\ty = buffList.get(i).y;\r\n\t\t\t\t\tcache.add(new Vector2(x, y));\r\n\t\t\t\t\t\r\n\t\t\t\t\tdouble nextx = buffList.get(i + 1).x;\r\n\t\t\t\t\tdouble nexty = buffList.get(i + 1).y;\r\n\t\t\t\t\tcache.add(new Vector2(nextx, nexty));\r\n\t\t\t\t\t\r\n\t\t\t\t\tcanvas_context.quadraticCurveTo(x, y, nextx, nexty);\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* adaptive buffering using Hermite interpolation */\r\n\t\t\t\t\tint distance = (int) Math.sqrt(Math.pow(x - p2.x, 2)\r\n\t\t\t\t\t\t\t+ Math.pow(y - p2.y, 2));\r\n\t\t\t\t\tbufferCount = ((int) distance / 10) > 6 ? 6 : 3;\r\n\t\t\t\t\tbufferCount = bufferCount < 10 ? bufferCount : 10;\r\n\t\t\t\t\t// logger.log(Level.SEVERE, \"bufferCount \"+\r\n\t\t\t\t\t// bufferCount);\r\n\t\t\t\t}\r\n\r\n\t\t\t} else if (history.getType() == \"PathHeadHistory\") {\r\n\t\t\t\t\r\n\t\t\t\tMyColor pathColor = ((PathHeadHistory) history).pathColor;\r\n\t\t\t\tstrokeSize = ((PathHeadHistory) history).strokeSize;\r\n\t\t\t\t\r\n\t\t\t\tPoint position = ((PathHeadHistory) history).position;\r\n\t\t\t\tdouble x = position.getVector2().getX();\r\n\t\t\t\tdouble y = position.getVector2().getY();\r\n\t\t\t\tstrokePointCount = 0;\r\n\r\n\t\t\t\t/* initialize the points */\r\n\t\t\t\tp1.x = x;\r\n\t\t\t\tp1.y = y;\r\n\t\t\t\tp2.x = x;\r\n\t\t\t\tp2.y = y;\r\n\t\t\t\tstrokePointCount++;\r\n\t\t\t\tstrokePointCount++;\r\n\t\t\t\tcanvas_context.stroke();\r\n\t\t\t\t\r\n\t\t\t\t/* add index to indexes list */\r\n\t\t\t\tindexes.add(cache.size());\r\n\t\t\t\tcache.add(new Vector2(x, y));\r\n\t\t\t\tstrokeSizes.add(strokeSize);\r\n\t\t\t\tcolorCache.add(pathColor);\r\n\t\t\t\t\r\n\t\t\t\t/* set stroke color, size, and shadow */\r\n\t\t\t\tcanvas_context.setStrokeStyle(pathColor.getColorCode());\r\n\t\t\t\tcanvas_context.setFillStyle(pathColor.getColorCode());\r\n\t\t\t\tcanvas_context.setLineWidth(((double) strokeSize) * 0.4);\r\n\t\t\t\tcanvas_context.beginPath();\r\n\t\t\t\tcanvas_context.arc(x, y, ((double) strokeSize) * 0.4, 0,\r\n\t\t\t\t\t\t2 * Math.PI);\r\n\t\t\t\tcanvas_context.fill();\r\n\t\t\t\t\r\n\t\t\t\tbufferCount = 3;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tcanvas_context.stroke();\r\n\t\tstrokePointCount = 0;\r\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 void paintItem(Graphics2D g, \n int ulx, int uly, \n int lrx, int lry) {\n if (!canPaint()) {\n return;\n }\n boolean any = true;\n int i = 0,j = 0;\n Color repcolor = colors.getColor(getLabel());\n int startindex = data.baseToIndex(getRegion().getStart());\n int endindex = data.baseToIndex(getRegion().getEnd());\n\n g.setColor(Color.BLACK);\n while (any || (j == 0)) {\n g.setColor(repcolor);\n repcolor = repcolor.darker();\n any = false;\n int lastx = -1;\n int lasty = -1;\n int lasti = -1;\n for (i = startindex; i < endindex; i++) {\n if (j >= data.getReplicates(i)) {lasti = -1; continue;}\n any = true;\n double maxratio;\n if (getProperties().MaxRatio > 0) {\n maxratio = getProperties().MaxRatio;\n } else {\n maxratio = scale.getMaxVal();\n }\n int x = getXPos(data.getPos(i),\n getRegion().getStart(), getRegion().getEnd(),\n ulx,lrx);\n int y = getYPos(data.getValue(i,j),\n 0, maxratio,\n uly,lry,props.RatiosOnLogScale);\n paintDatapointAt(g,x,y,i,j);\n// System.err.println(\"Painting (\" + i + \"=\" + data.getPos(i) + \",\" + j +\n// \")=\" + data.getValue(i,j) + \" -> (\" + x + \",\"+y+\") lastx=\" +\n// lastx +\" lasty=\" + lasty + \" lasti=\" + lasti);\n if ((lasti != -1) && \n (Math.abs(data.getPos(i) - data.getPos(lasti)) < 500)) {\n connectDatapoints(g,lastx,lasty,x,y);\n }\n lastx = x;\n lasty = y;\n lasti = i;\n }\n j++;\n }\n if (props.DrawTrackLabel) {\n g.setColor(Color.BLACK);\n g.setFont(attrib.getLargeLabelFont(lrx - ulx,lry - uly));\n g.drawString(getLabel(),ulx,uly + g.getFont().getSize() * 2);\n }\n }", "public void recalculate(){\n\t\t\n\t\tLinkedList<Line> primaryLines = lineLists.get(0);\n\t\t\n\t\tfor (int i = 0; i < controlPoints.size()-1; i++){\n\t\t\tControlPoint current = controlPoints.get(i);\n\t\t\tControlPoint next = controlPoints.get(i+1);\n\t\t\t\n\t\t\tLine line = primaryLines.get(i);\n\t\t\t\n\t\t\tline.setStartX(current.getCenterX());\n\t\t\tline.setStartY(current.getCenterY());\n\t\t\tline.setEndX(next.getCenterX());\n\t\t\tline.setEndY(next.getCenterY());\n\t\t}\n\t}", "public void paint(Graphics g )\n {\n super.paint(g); // is no super.paint(), then lines stay on screen \n \n for ( int i=0; i<allTheShapesCount; i++ )\n {\n allTheShapes[ i ] . drawMe(g);\n }\n }", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "protected void repaint() {\n if (_tile!=null)\n _tile.repaint();\n }", "protected void repaint(RMShape aShape) { if(_parent!=null) _parent.repaint(aShape); }", "public void updateGraphics() {\n\t\t// Draw the background. DO NOT REMOVE!\n\t\tthis.clear();\n\t\t\n\t\t// Draw the title\n\t\tthis.displayTitle();\n\n\t\t// Draw the board and snake\n\t\t// TODO: Add your code here :)\n\t\tfor(int i = 0; i < this.theData.getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < this.theData.getNumColumns(); j++) {\n\t\t\t\tthis.drawSquare(j * Preferences.CELL_SIZE, i * Preferences.CELL_SIZE,\n\t\t\t\t\t\tthis.theData.getCellColor(i, j));\n\t\t\t}\n\t\t}\n\t\t// The method drawSquare (below) will likely be helpful :)\n\n\t\t\n\t\t// Draw the game-over message, if appropriate.\n\t\tif (this.theData.getGameOver())\n\t\t\tthis.displayGameOver();\n\t}", "public void paint() {\n paintStrategy.paintImmediately();\n }", "public void repaint(Rectangle r){\n cmUI.repaint(r);\n }", "public void draw() {\n \n // TODO\n }", "@Override\n\tpublic void repaint() {\n\t\tsuper.repaint();\n\t}", "@Override\n\tprotected void repaintView(ViewGraphics g) {\n\t}", "public void repaint(Rectangle r) {}", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n if (task.isFinished()) {\n int y = this.getHeight() / 2;\n g.drawLine(0, y, this.getWidth(), y);\n }\n }", "public void draw() {\n final int columns = (int) (2 * Math.ceil(Math.max(-minx, maxx)));\n final int rows = (int) (2 * Math.ceil(Math.max(-miny, maxy)));\n\n final int drawColumns;\n final int drawRows;\n drawColumns = drawRows = Math.max(columns, rows);\n\n double leftOffsetPx = BORDER;\n double rightOffsetPx = BORDER;\n double topOffsetPx = BORDER;\n double bottomOffsetPx = BORDER;\n\n final double availableWidth = view.getWidth() - leftOffsetPx - rightOffsetPx;\n final double availableHeight = view.getHeight() - topOffsetPx - bottomOffsetPx;\n\n final double drawWidth;\n final double drawHeight;\n drawWidth = drawHeight = Math.min(availableWidth, availableHeight);\n\n leftOffsetPx = rightOffsetPx = (view.getWidth() - drawWidth) / 2;\n topOffsetPx = bottomOffsetPx = (view.getHeight() - drawHeight) / 2;\n\n // Adjust for aspect ratio\n columnWidth = rowHeight = drawHeight / columns;\n\n centerX = (drawColumns / 2.0) * columnWidth + leftOffsetPx;\n centerY = (drawRows / 2.0) * rowHeight + topOffsetPx;\n\n drawVerticalLine((float) centerX, topOffsetPx, bottomOffsetPx);\n drawHorizontalLine((float) centerY, leftOffsetPx, rightOffsetPx);\n\n int yTick = (int) (-drawRows / 2.0 / TICK_INTERVAL) * TICK_INTERVAL;\n while (yTick <= drawRows / 2.0) {\n if (yTick != 0) {\n final String label = yTick % (TICK_INTERVAL * 2) == 0 ? String.format(\"%d\", yTick) : null;\n drawYTick(-yTick * rowHeight + centerY, centerX, label);\n }\n yTick += TICK_INTERVAL;\n }\n\n int xTick = (int) (-drawColumns / 2.0 / TICK_INTERVAL) * TICK_INTERVAL;\n while (xTick <= drawColumns / 2.0) {\n if (xTick != 0) {\n final String label = xTick % (TICK_INTERVAL * 2) == 0 ? String.format(\"%d\", xTick) : null;\n drawXTick(xTick * columnWidth + centerX, centerY, label);\n }\n xTick += TICK_INTERVAL;\n }\n\n double adaptiveTextSize = getAdaptiveTextSize();\n\n final Paint paint = new Paint();\n final float textSize = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, (float)adaptiveTextSize, view.getResources().getDisplayMetrics());\n paint.setTextSize(textSize);\n paint.setTypeface(Typeface.create(Typeface.MONOSPACE, Typeface.NORMAL));\n for (Entry entry : data.getEntries()) {\n final double x = entry.getX();\n final double y = entry.getY();\n\n final double xDraw = x * columnWidth + centerX;\n final double yDraw = -y * rowHeight + centerY;\n\n CharSequence dispStr = entry.getStringLabel();\n if (dispStr == null) {\n dispStr = String.format(\"%.0f\", entry.getValue());\n }\n\n\n\n\n Rect bounds = getTextRectBounds(dispStr, paint);\n int textHeight = bounds.height();\n int textWidth = bounds.width();\n canvas.drawText(dispStr, 0, dispStr.length(),\n (float) xDraw - textWidth * 0.5f, (float) yDraw + textHeight * 0.5f,\n paint);\n }\n\n }", "private void handleDrawRequest(PaintEvent event) {\n \n \t\tif (fTextWidget == null) {\n \t\t\t// is already disposed\n \t\t\treturn;\n \t\t}\n \n \t\tIRegion clippingRegion= computeClippingRegion(event);\n \t\tif (clippingRegion == null)\n \t\t\treturn;\n \t\t\n \t\tint vOffset= clippingRegion.getOffset();\n \t\tint vLength= clippingRegion.getLength();\n \t\t\n \t\tfinal GC gc= event != null ? event.gc : null;\n \n \t\t// Clone decorations\n \t\tCollection decorations;\n \t\tsynchronized (fDecorationMapLock) {\n \t\t\tdecorations= new ArrayList(fDecorationsMap.size());\n \t\t\tdecorations.addAll(fDecorationsMap.entrySet());\n \t\t}\n \n \t\t/*\n \t\t * Create a new list of annotations to be drawn, since removing from decorations is more\n \t\t * expensive. One bucket per drawing layer. Use linked lists as addition is cheap here.\n \t\t */\n \t\tArrayList toBeDrawn= new ArrayList(10);\n \t\tfor (Iterator e = decorations.iterator(); e.hasNext();) {\n \t\t\tMap.Entry entry= (Map.Entry)e.next();\n \t\t\t\n \t\t\tAnnotation a= (Annotation)entry.getKey();\n \t\t\tDecoration pp = (Decoration)entry.getValue();\n \t\t\t// prune any annotation that is not drawable or does not need drawing\n \t\t\tif (!(a.isMarkedDeleted() || pp.fPainter == fgNullDrawer || pp.fPainter instanceof NullStrategy || skip(a) || !pp.fPosition.overlapsWith(vOffset, vLength))) {\n \t\t\t\t// ensure sized appropriately\n \t\t\t\tfor (int i= toBeDrawn.size(); i <= pp.fLayer; i++)\n \t\t\t\t\ttoBeDrawn.add(new LinkedList());\n \t\t\t\t((List) toBeDrawn.get(pp.fLayer)).add(entry);\n \t\t\t}\n \t\t}\n \t\t\n \t\tReusableRegion range= new ReusableRegion();\n \t\tfor (Iterator it= toBeDrawn.iterator(); it.hasNext();) {\n \t\t\tList layer= (List) it.next();\n \n \t\t\tfor (Iterator e = layer.iterator(); e.hasNext();) {\n \t\t\t\tMap.Entry entry= (Map.Entry)e.next();\n \n \t\t\t\tDecoration pp = (Decoration)entry.getValue();\n \t\t\t\tPosition p= pp.fPosition;\n \t\t\t\tIDocument document= fSourceViewer.getDocument();\n \t\t\t\ttry {\n \n \t\t\t\t\tint startLine= document.getLineOfOffset(p.getOffset());\n \t\t\t\t\tint lastInclusive= Math.max(p.getOffset(), p.getOffset() + p.getLength() - 1);\n \t\t\t\t\tint endLine= document.getLineOfOffset(lastInclusive);\n \n \t\t\t\t\tfor (int i= startLine; i <= endLine; i++) {\n \t\t\t\t\t\tint lineOffset= document.getLineOffset(i);\n \t\t\t\t\t\tint paintStart= Math.max(lineOffset, p.getOffset());\n \t\t\t\t\t\tString lineDelimiter= document.getLineDelimiter(i);\n \t\t\t\t\t\tint delimiterLength= lineDelimiter != null ? lineDelimiter.length() : 0;\n \t\t\t\t\t\tint paintLength= Math.min(lineOffset + document.getLineLength(i) - delimiterLength, p.getOffset() + p.getLength()) - paintStart;\n \t\t\t\t\t\tif (paintLength >= 0 && overlapsWith(paintStart, paintLength, vOffset, vLength)) {\n \t\t\t\t\t\t\t// otherwise inside a line delimiter\n \t\t\t\t\t\t\trange.setOffset(paintStart);\n \t\t\t\t\t\t\trange.setLength(paintLength);\n \t\t\t\t\t\t\tIRegion widgetRange= getWidgetRange(range);\n \t\t\t\t\t\t\tif (widgetRange != null) {\n \t\t\t\t\t\t\t\tAnnotation a= (Annotation)entry.getKey();\n \t\t\t\t\t\t\t\tpp.fPainter.draw(a, gc, fTextWidget, widgetRange.getOffset(), widgetRange.getLength(), pp.fColor);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t} catch (BadLocationException x) {\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "private void drawAbstract(int resourceId){\n pokemonImage.setImageResource(resourceId);\n }", "private void drawImage(){\n Integer resourceId = imageId.get(this.name);\n if (resourceId != null) {\n drawAbstract(resourceId);\n } else {\n drawNone();\n }\n }", "@Override\npublic void paint(Graphics g) {\n\tsuper.paint(g);\n\tg.drawImage(bak, 0, 0, null);\n\t\n\t//画线\n\tfor(int i=0;i<Config.ROWS;i++)\n\t{\n\t\tfor(int j=0;j<Config.COLS;j++)\n\t\t{\n\t\t\tg.setColor(new Color(137,92,44));\n\t\t\tg.drawRect(j*Config.CELL+Config.OFFSETX, i*Config.CELL+Config.OFFSETY, Config.CELL, Config.CELL);\n\t\t}\n\t}\n\t//画焦点\n\tfor(int i=0;i<Config.ROWS;i++)\n\t{\n\t\tfor(int j=0;j<Config.COLS;j++)\n\t\t{\n\t\t\tif(Config.MAP[i][j]==Config.FOCUS)\n\t\t\t{\n\t\t\t\tg.setColor(new Color(137,92,44));\n\t\t\t\tg.fillRect(j*Config.CELL+Config.OFFSETX-5, i*Config.CELL+Config.OFFSETY-5, 10, 10);\n\t\t\t}\n\t\t}\n\t}\n\t\n\t//画子\n\t\tfor(int i=0;i<Config.ROWS;i++)\n\t\t{\n\t\t\tfor(int j=0;j<Config.COLS;j++)\n\t\t\t{\n\t\t\t\tif(Config.MAP[i][j]==Config.BLACK)\n\t\t\t\t{\n\t\t\t\t g.drawImage(black, Config.CELL*j+Config.OFFSETX-20, i*Config.CELL+Config.OFFSETY-20, null);\n\t\t\t\t \n\t\t\t\t}\n\t\t\t\tif(Config.MAP[i][j]==Config.WHITE)\n\t\t\t\t{\n\t\t\t\t g.drawImage(white, Config.CELL*j+Config.OFFSETX-20, i*Config.CELL+Config.OFFSETY-20, null);\n\t\t\t\t \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n //画提拉\n\t\tg.setFont(new Font(\"微软雅黑\",Font.BOLD,24));\n\t\tg.setColor(step%2==0?Color.black:Color.white);\n\t\tg.drawString(step%2==0?\"黑子下\":\"白子下\", 640, 80);\n}" ]
[ "0.6811857", "0.66638786", "0.66450566", "0.65285677", "0.6456263", "0.6430889", "0.6407006", "0.63789874", "0.63679385", "0.6239528", "0.6230894", "0.620499", "0.6160402", "0.61206156", "0.6072615", "0.60725933", "0.60660577", "0.5977964", "0.5925051", "0.59172827", "0.5888452", "0.58746105", "0.58649963", "0.5856186", "0.58351195", "0.58227897", "0.5819383", "0.5815498", "0.57845885", "0.5771874", "0.5770342", "0.5769247", "0.5735314", "0.5707927", "0.5700136", "0.5696726", "0.56959313", "0.56930214", "0.56900615", "0.5679413", "0.5675566", "0.5671452", "0.56712085", "0.5665681", "0.5662548", "0.5659689", "0.5654816", "0.5638945", "0.5624927", "0.56239796", "0.56205887", "0.5618411", "0.5614393", "0.56101245", "0.55930483", "0.55898714", "0.55854523", "0.55840886", "0.5575427", "0.55753416", "0.5570101", "0.5566468", "0.5562015", "0.55581325", "0.5555621", "0.5550458", "0.554829", "0.55479705", "0.5543219", "0.55431944", "0.5535559", "0.553389", "0.5531341", "0.55277145", "0.55212986", "0.5515925", "0.5506331", "0.54955924", "0.54933655", "0.54929787", "0.54813915", "0.5473747", "0.5458206", "0.5457729", "0.5457729", "0.5454707", "0.54538584", "0.5445277", "0.5438924", "0.5438322", "0.54362786", "0.54292536", "0.54288715", "0.5417424", "0.5410901", "0.54101133", "0.5406432", "0.53916746", "0.53915334", "0.53906476" ]
0.82212573
0
Creates Elasticsearch configuration, shared by regular Elasticsearch and Amazon Elasticsearch, from Amazon Elasticsearch configuration.
public static ElasticsearchConf createElasticsearchConf(AmazonElasticStoragePluginConfig amazonElasticStoragePluginConfig) { List<Host> hostList = new ArrayList<>(); hostList.add(new Host(amazonElasticStoragePluginConfig.hostname, amazonElasticStoragePluginConfig.port)); ElasticsearchConf.AuthenticationType authenticationType; switch (amazonElasticStoragePluginConfig.authenticationType) { case NONE: authenticationType = ElasticsearchConf.AuthenticationType.NONE; break; case ACCESS_KEY: authenticationType = ElasticsearchConf.AuthenticationType.ACCESS_KEY; break; case EC2_METADATA: authenticationType = ElasticsearchConf.AuthenticationType.EC2_METADATA; break; default: authenticationType = ElasticsearchConf.AuthenticationType.NONE; break; } ElasticsearchConf elasticsearchConf = new ElasticsearchConf(hostList, "", "", amazonElasticStoragePluginConfig.accessKey, amazonElasticStoragePluginConfig.accessSecret, amazonElasticStoragePluginConfig.overwriteRegion ? amazonElasticStoragePluginConfig.regionName : "", authenticationType, amazonElasticStoragePluginConfig.scriptsEnabled, amazonElasticStoragePluginConfig.showHiddenIndices, true, amazonElasticStoragePluginConfig.showIdColumn, amazonElasticStoragePluginConfig.readTimeoutMillis, amazonElasticStoragePluginConfig.scrollTimeoutMillis, amazonElasticStoragePluginConfig.usePainless, true, amazonElasticStoragePluginConfig.scrollSize, amazonElasticStoragePluginConfig.allowPushdownOnNormalizedOrAnalyzedFields, amazonElasticStoragePluginConfig.warnOnRowCountMismatch, amazonElasticStoragePluginConfig.encryptionValidationMode); return elasticsearchConf; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ElasticsearchClient getRESTClient() {\n\t\tif (restClient != null) {\n\t\t\treturn restClient;\n\t\t}\n\t\tString esScheme = Para.getConfig().elasticsearchRestClientScheme();\n\t\tString esHost = Para.getConfig().elasticsearchRestClientHost();\n\t\tint esPort = Para.getConfig().elasticsearchRestClientPort();\n\t\tboolean signRequests = Para.getConfig().elasticsearchSignRequestsForAwsEnabled();\n\n\t\tHttpHost host = new HttpHost(esHost, esPort, esScheme);\n\t\tRestClientBuilder clientBuilder = RestClient.builder(host);\n\n\t\tString esPrefix = Para.getConfig().elasticsearchRestClientContextPath();\n\t\tif (StringUtils.isNotEmpty(esPrefix)) {\n\t\t\tclientBuilder.setPathPrefix(esPrefix);\n\t\t}\n\n\t\tList<RestClientBuilder.HttpClientConfigCallback> configurationCallbacks = new ArrayList<>();\n\n\t\tif (signRequests) {\n\t\t\tconfigurationCallbacks.add(getAWSRequestSigningInterceptor(host.getSchemeName() + \"://\" + host.getHostName()));\n\t\t}\n\t\tconfigurationCallbacks.add(getAuthenticationCallback());\n\n\t\t// register all customizations\n\t\tclientBuilder.setHttpClientConfigCallback(httpClientBuilder -> {\n\t\t\tconfigurationCallbacks.forEach(c -> c.customizeHttpClient(httpClientBuilder));\n\t\t\tif (esHost.startsWith(\"localhost\") || !Para.getConfig().inProduction()) {\n\t\t\t\thttpClientBuilder.setSSLHostnameVerifier((hostname, session) -> true);\n//\t\t\t\thttpClientBuilder.setSSLContext(SSLContextBuilder.create().);\n\n\t\t\t}\n\t\t\treturn httpClientBuilder;\n\t\t});\n\n\t\t// Create the transport with a Jackson mapper\n\t\tRestClientTransport transport = new RestClientTransport(clientBuilder.build(), new JacksonJsonpMapper());\n\t\trestClient = new ElasticsearchClient(transport);\n\t\trestClientAsync = new ElasticsearchAsyncClient(transport);\n\n\t\tPara.addDestroyListener(new DestroyListener() {\n\t\t\tpublic void onDestroy() {\n\t\t\t\tshutdownClient();\n\t\t\t}\n\t\t});\n\t\tif (!existsIndex(Para.getConfig().getRootAppIdentifier())) {\n\t\t\tcreateIndex(Para.getConfig().getRootAppIdentifier());\n\t\t}\n\t\treturn restClient;\n\t}", "private static Configuration getConfiguration(HIFTestOptions options) {\n Configuration conf = new Configuration();\n conf.set(ConfigurationOptions.ES_NODES, options.getServerIp());\n conf.set(ConfigurationOptions.ES_PORT, options.getServerPort().toString());\n conf.set(ConfigurationOptions.ES_NODES_WAN_ONLY, TRUE);\n // Set username and password if Elasticsearch is configured with security.\n conf.set(ConfigurationOptions.ES_NET_HTTP_AUTH_USER, options.getUserName());\n conf.set(ConfigurationOptions.ES_NET_HTTP_AUTH_PASS, options.getPassword());\n conf.set(ConfigurationOptions.ES_RESOURCE, ELASTIC_RESOURCE);\n conf.set(\"es.internal.es.version\", ELASTIC_INTERNAL_VERSION);\n conf.set(ConfigurationOptions.ES_INDEX_AUTO_CREATE, TRUE);\n conf.setClass(HadoopInputFormatIOConstants.INPUTFORMAT_CLASSNAME,\n org.elasticsearch.hadoop.mr.EsInputFormat.class, InputFormat.class);\n conf.setClass(HadoopInputFormatIOConstants.KEY_CLASS, Text.class, Object.class);\n conf.setClass(HadoopInputFormatIOConstants.VALUE_CLASS, LinkedMapWritable.class, Object.class);\n return conf;\n }", "private void ElasticIndexValidation(TransportClient client) {\n if (!client.admin().indices().prepareExists(ES_TAG_INDEX).get(\"5s\").isExists()) {\n client.admin().indices().prepareCreate(ES_TAG_INDEX).get();\n PutMappingRequestBuilder request = client.admin().indices().preparePutMapping(ES_TAG_INDEX);\n ObjectMapper mapper = new ObjectMapper();\n InputStream is = Config.class.getResourceAsStream(\"/tag_mapping.json\");\n try {\n Map<String, String> jsonMap = mapper.readValue(is, Map.class);\n request.setType(ES_TAG_TYPE).setSource(jsonMap).get(\"5s\");\n } catch (IOException e) {\n logger.log(Level.WARNING, \"Failed to create index \" + ES_TAG_INDEX, e);\n }\n }\n // Create/migrate the logbook index\n if (!client.admin().indices().prepareExists(ES_LOGBOOK_INDEX).get(\"5s\").isExists()) {\n client.admin().indices().prepareCreate(ES_LOGBOOK_INDEX).get();\n PutMappingRequestBuilder request = client.admin().indices().preparePutMapping(ES_LOGBOOK_INDEX);\n ObjectMapper mapper = new ObjectMapper();\n InputStream is = Config.class.getResourceAsStream(\"/logbook_mapping.json\");\n try {\n Map<String, String> jsonMap = mapper.readValue(is, Map.class);\n request.setType(ES_LOGBOOK_TYPE).setSource(jsonMap).get(\"5s\");\n } catch (IOException e) {\n logger.log(Level.WARNING, \"Failed to create index \" + ES_LOGBOOK_INDEX, e);\n }\n }\n\n // Create/migrate the property index\n if (!client.admin().indices().prepareExists(ES_PROPERTY_INDEX).get(\"5s\").isExists()) {\n client.admin().indices().prepareCreate(ES_PROPERTY_INDEX).get();\n PutMappingRequestBuilder request = client.admin().indices().preparePutMapping(ES_PROPERTY_INDEX);\n ObjectMapper mapper = new ObjectMapper();\n InputStream is = Config.class.getResourceAsStream(\"/property_mapping.json\");\n try {\n Map<String, String> jsonMap = mapper.readValue(is, Map.class);\n request.setType(ES_PROPERTY_TYPE).setSource(jsonMap).get(\"5s\");\n } catch (IOException e) {\n logger.log(Level.WARNING, \"Failed to create index \" + ES_PROPERTY_INDEX, e);\n }\n }\n\n // Create/migrate the sequence index\n if (!client.admin().indices().prepareExists(ES_SEQ_INDEX).get(\"5s\").isExists()) {\n client.admin().indices().prepareCreate(ES_SEQ_INDEX).setSettings(Settings.builder() \n .put(\"index.number_of_shards\", 1)\n .put(\"auto_expand_replicas\", \"0-all\")).get();\n PutMappingRequestBuilder request = client.admin().indices().preparePutMapping(ES_SEQ_INDEX);\n ObjectMapper mapper = new ObjectMapper();\n InputStream is = Config.class.getResourceAsStream(\"/seq_mapping.json\");\n try {\n Map<String, String> jsonMap = mapper.readValue(is, Map.class);\n request.setType(ES_SEQ_TYPE).setSource(jsonMap).get(\"5s\");\n } catch (IOException e) {\n logger.log(Level.WARNING, \"Failed to create index \" + ES_SEQ_INDEX, e);\n }\n }\n\n // create/migrate log template\n PutIndexTemplateRequestBuilder templateRequest = client.admin().indices().preparePutTemplate(ES_LOG_INDEX);\n templateRequest.setPatterns(Arrays.asList(ES_LOG_INDEX));\n ObjectMapper mapper = new ObjectMapper();\n InputStream is = Config.class.getResourceAsStream(\"/log_template_mapping.json\");\n try {\n Map<String, String> jsonMap = mapper.readValue(is, Map.class);\n templateRequest.addMapping(ES_LOG_TYPE, XContentFactory.jsonBuilder().map(jsonMap)).get();\n// templateRequest.setSource(jsonMap);\n// templateRequest.addMapping(ES_LOG_TYPE, jsonMap).get(\"5s\");\n } catch (IOException e) {\n logger.log(Level.WARNING, \"Failed to create index \" + ES_SEQ_INDEX, e);\n }\n }", "@Bean\n @Profile(\"fargate\")\n public EurekaInstanceConfigBean eurekaInstanceConfig(InetUtils inetUtils) {\n log.info(\"Customize EurekaInstanceConfigBean for AWS\");\n log.info(\"Docker container should have name containing \" + DOCKER_CONTAINER_NAME);\n \n EurekaInstanceConfigBean config = new EurekaInstanceConfigBean(inetUtils);\n AmazonInfo info = AmazonInfo.Builder.newBuilder().autoBuild(\"eureka\");\n config.setDataCenterInfo(info);\n \n try {\n String json = readEcsMetadata();\n EcsTaskMetadata metadata = Converter.fromJsonString(json);\n String ipAddress = findContainerPrivateIP(metadata);\n log.info(\"Override ip address to \" + ipAddress);\n config.setIpAddress(ipAddress);\n config.setNonSecurePort(getPortNumber()); \n } catch (Exception ex){\n log.info(\"Something went wrong when reading ECS metadata: \" + ex.getMessage());\n }\n return config;\n }", "public static void main(String args[]) throws IOException {\n Settings settings = Settings.builder().put(\"cluster.name\", \"elasticsearch\").build();\r\n //.put(\"xpack.security.user\", \"elastic:changeme\").build();\r\n TransportClient client = new PreBuiltTransportClient(settings)\r\n // client.addTransportAddress(new TransportAddress(InetAddress.getByName(\"localhost\"), 9300));\r\n \r\n //TransportClient client = new PreBuiltTransportClient(Settings.EMPTY)\r\n .addTransportAddress(new TransportAddress(InetAddress.getByName(\"localhost\"), 9300));\r\n //.addTransportAddress(new TransportAddress(InetAddress.getByName(\"host2\"), 9300));\r\n \r\n // client.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(\"localhost1\"), 9300));\r\n\r\n // TransportClient client = TransportClient.builder().settings(settings).build()\r\n // .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(\"localhost\"), 9300));\r\n // .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName(\"host2\"), 9300));\r\n\r\n client.prepareIndex(\"java-example\", \"_doc\", \"1\")\r\n .setSource(putJsonDocument(\"ElasticSearch: Java\",\r\n \"ElasticSeach provides Java API, thus it executes all operations \"\r\n + \"asynchronously by using client object..\",\r\n new Date(), new String[] { \"elasticsearch\" }, \"Hüseyin Akdoğan\"))\r\n .execute().actionGet();\r\n //\r\n // client.prepareIndex(\"kodcucom\", \"article\", \"2\")\r\n // .setSource(putJsonDocument(\"Java Web Application and ElasticSearch (Video)\",\r\n // \"Today, here I am for exemplifying the usage of ElasticSearch which is an open source, distributed \" +\r\n // \"and scalable full text search engine and a data analysis tool in a Java web application.\",\r\n // new Date(),\r\n // new String[]{\"elasticsearch\"},\r\n // \"Hüseyin Akdoğan\")).execute().actionGet();\r\n\r\n getDocument(client, \"java-example\", \"_doc\", \"1\");\r\n\r\n // updateDocument(client, \"java-example\", \"article\", \"1\", \"title\", \"ElasticSearch: Java API\");\r\n //getDocument(client, \"java-example\", \"_doc\", \"1\");\r\n // updateDocument(client, \"kodcucom\", \"article\", \"1\", \"tags\", new String[]{\"bigdata\"});\r\n\r\n // getDocument(client, \"kodcucom\", \"article\", \"1\");\r\n\r\n //searchDocument(client, \"cars\", \"_doc\", \"title\", \"honda is a korean company\");\r\n\r\n // deleteDocument(client, \"kodcucom\", \"article\", \"1\");\r\n\r\n client.close();\r\n }", "public Adsconfig(String alias) {\n this(alias, ADSCONFIG);\n }", "public static ElasticLoadConfig buildConfig(CommandLine cmd, String defaultLocation) {\n ElasticLoadConfig config = new ElasticLoadConfig();\n\n config.setTerminology(cmd.getOptionValue('t'));\n config.setForceDeleteIndex(cmd.hasOption('f'));\n if (cmd.hasOption('d')) {\n String location = cmd.getOptionValue('d');\n if (StringUtils.isBlank(location)) {\n logger.error(\"Location is empty!\");\n\n }\n if (!location.endsWith(\"/\")) {\n location += \"/\";\n }\n logger.info(\"location - {}\", location);\n config.setLocation(location);\n } else {\n config.setLocation(defaultLocation);\n }\n\n return config;\n }", "public void createIndex() {\n String indexName = INDEX_BASE + \"-\" +\n LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyyMMddHHmmss\"));\n\n Settings settings = Settings.builder()\n .put(\"number_of_shards\", 1)\n .put(\"number_of_replicas\", 0)\n .build();\n CreateIndexRequest request = new CreateIndexRequest(indexName, settings);\n\n String mapping = \"{\\n\" +\n \" \\\"article\\\": {\\n\" +\n \" \\\"properties\\\": {\\n\" +\n \" \\\"title\\\": {\\n\" +\n \" \\\"type\\\": \\\"text\\\"\\n\" +\n \" },\\n\" +\n \" \\\"author\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"issue\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"link\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"description\\\": {\\n\" +\n \" \\\"type\\\": \\\"text\\\"\\n\" +\n \" },\\n\" +\n \" \\\"postDate\\\": {\\n\" +\n \" \\\"type\\\": \\\"date\\\",\\n\" +\n \" \\\"format\\\": \\\"yyyy-MM-dd\\\"\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\";\n\n request.mapping(\"article\", mapping, XContentType.JSON);\n request.alias(new Alias(INDEX_BASE));\n\n try {\n CreateIndexResponse createIndexResponse = this.client.admin().indices().create(request).get();\n if (!createIndexResponse.isAcknowledged()) {\n throw new ElasticExecutionException(\"Create java_magazine index was not acknowledged\");\n }\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error while creating an index\", e);\n throw new ElasticExecutionException(\"Error when trying to create an index\");\n }\n }", "private EventProcessorBuilder baseConfig(MockEventSender es) {\n return sendEvents().eventSender(senderFactory(es));\n }", "protected IndexWriterConfig getIndexWriterConfig() throws IOException {\n\t\tAnalyzer analyzer = new StandardAnalyzer(StandardAnalyzer.STOP_WORDS_SET);\n\n\t\treturn new IndexWriterConfig(analyzer);\n\t}", "public void createIndex(Configuration configuration){\n }", "public JestElasticsearchProducer(JestElasticsearchEndPoint endpoint) {\n super(endpoint);\n this.endpoint = endpoint;\n logger.info(\"Elasticsearch Connection SET UP on \" + endpoint.getElasticSearchURL());\n }", "public void connect() {\n this.disconnect();\n\n Settings settings = ImmutableSettings.settingsBuilder()\n .put(\"cluster.name\", this.cluster)\n .put(\"client.transport.sniff\", true)\n .build();\n this.elasticClient = new TransportClient(settings).addTransportAddresses(\n new InetSocketTransportAddress(this.host, this.port)\n );\n }", "Map<String, Object> createConfig(VirtualHost vhost, String configtype, Map<String, Object> doc);", "private IndexSettings buildIndexSettings(IndexMetadata metadata) {\n return new IndexSettings(metadata, settings);\n }", "public static ElasticSearchMapper getInstance() {\n return ElasticSearchMapperHolder.instance;\n }", "public ElasticSearchWrapper(String index, String type, String serverIP, String port) {\n\t\tthis.index = index;\n\t\tthis.type = type;\n\t\tthis.subdocType = type + \"1\";\n\n\t\t// esUrl = \"http://75.101.244.195:8081/\" + index + \"/\" + type + \"/\";\n\t\tesInsertDeleteUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index\n\t\t\t\t+ \"/\" + type + \"/\";\n\t\tesInsertDeleteSubdocUrl = \"http://\" + serverIP + \":\" + port + \"/\"\n\t\t\t\t+ index + \"/\" + subdocType + \"/\";\n\t\tesSearchUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ type + \"/_search\";\n\t\tesSearchSubdocUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index\n\t\t\t\t+ \"/\" + subdocType + \"/_search\";\n\t\tesIndexUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\";\n\t\tesIndexTypeUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ type + \"/\";\n\t\tesIndexTypeSubdocUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index\n\t\t\t\t+ \"/\" + subdocType + \"/\";\n\t\tesMapping = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ type + \"/_mapping\";\n\t\tesMappingSubdoc = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ subdocType + \"/_mapping\";\n\t\tesScanUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ type + \"/_search?search_type=scan&scroll=2m&size=\";\n\t\tesScanSubdocUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index + \"/\"\n\t\t\t\t+ subdocType + \"/_search?search_type=scan&scroll=2m&size=\";\n\t\tesScrollUrl = \"http://\" + serverIP + \":\" + port\n\t\t\t\t+ \"/_search/scroll?scroll=2m&scroll_id=\";\n\t\tesRefreshIndexUrl = \"http://\" + serverIP + \":\" + port + \"/\" + index\n\t\t\t\t+ \"/_refresh\";\n\t}", "private SearchRequestBuilder createSearchBuilder(StoreURL storeURL, EsQuery esQuery) {\n SearchRequestBuilder searchBuilder = this.getClient(storeURL)\n .prepareSearch(esQuery.getGraph())\n .setQuery(RootBuilder.get(esQuery))\n .setFetchSource(true)\n .setFrom(esQuery.getPageNo())\n .setSize(esQuery.getPageSize());\n if(CollectionUtils.isNotEmpty(esQuery.getSchemas())){\n searchBuilder.setTypes(esQuery.getSchemas().toArray(new String[]{}));\n }\n this.addAggregations(esQuery, searchBuilder); // aggregation\n this.addSortFields(esQuery, searchBuilder); // sort\n this.addHighlightFields(esQuery, searchBuilder); // highlight\n return searchBuilder;\n }", "public interface ElasticSearchClientService {\n\n public void add(TodoItem todoItem);\n\n public String search(String searchString);\n\n public void update(String id, TodoItem todoItem);\n\n public void delete(String id);\n\n}", "@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }", "public interface ElasticsearchTemplate {\n\n /**\n * Logback logger.\n */\n final static Logger logger = LoggerFactory.getLogger(ElasticsearchTemplate.class);\n\n /**\n * Constant prefix.\n */\n final String PREFIX = \"_\";\n\n /**\n * Constant default doc type for default _doc.\n */\n final String DEFAULT_DOC = \"_doc\";\n\n /**\n * Constant retry on conflict for default three times.\n */\n final Integer RETRY_ON_CONFLICT = 3;\n\n /**\n * Constant elasticsearch template doc as upsert for default true.\n */\n final Boolean DOC_AS_UPSERT = true;\n\n /**\n * Constant elasticsearch template doc basic system properties.\n */\n final String [] templateProperties = {\n \"index\", \"id\", \"type\"\n };\n\n /**\n * Judge current elasticsearch template whether exists.\n * @return no exists.\n */\n default Boolean isEmpty(){\n return builder().length() == 0;\n }\n\n ThreadLocal<StringBuilder> templateBuilder = new ThreadLocal<>();\n\n /**\n * Build or Reset current elasticsearch template.\n */\n default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }\n\n /**\n * Get current elasticsearch template.\n * @return current elasticsearch template.\n */\n default StringBuilder builder() {\n return templateBuilder.get();\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param templateProperty Current elasticsearch template property.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param indexName Current elasticsearch template property.\n * @param docId Current elasticsearch template doc id.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }\n\n /**\n * Append property of Current Elasticsearch index to String builder.\n * @param propertyName property Name.\n * @param propertyValue property Value.\n */\n default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }\n\n /**\n * Append current template properties of Current Elasticsearch index to String builder.\n * @param cursor a query cursor.\n * @param templateProperties current template properties.\n */\n default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }\n\n /**\n * According query cursor and index name and template properties to created a elasticsearch template.\n * @param cursor a query cursor.\n * @param indexName Current index name.\n * @param templateProperties Current template properties.\n * @throws SQLException Throw SQL exception.\n */\n void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;\n\n}", "public AmazonCloudSearchClient() {\n this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());\n }", "SqlElasticPoolOperations.DefinitionStages.WithEdition define(String elasticPoolName);", "public void configure(Map<String, String> configuration) throws AlgebricksException;", "@Ignore \n @Test\n public void testPutMappingToIndex() {\n System.out.println(\"putMappingToIndex\");\n \n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n String indexName = \"datastore_100_1_data_event_yearmonth_000000_1\";\n String indexType = \"AAA666_type\";\n \n try\n { \n ESUtil.createIndexWithoutType(client, indexName);\n \n DataobjectType dataobjectType = Util.getDataobjectTypeByIndexTypeName(platformEm, indexType);\n\n XContentBuilder typeMapping = ESUtil.createTypeMapping(platformEm, dataobjectType, true);\n \n ESUtil.putMappingToIndex(client, indexName, indexType, typeMapping);\n }\n catch(Exception e)\n {\n System.out.print(\" failed! e=\"+e);\n }\n }", "public void configure(Configuration config) throws ConfigurationException {\n super.configure(config);\n\n if (null == JCRSourceFactory.configuredMappings) {\n // load namespace mappings\n JCRSourceFactory.configuredMappings = new HashMap<String, String>();\n\n Configuration mappings = config.getChild(\"mappings\"); //$NON-NLS-1$\n for (Configuration mapping : mappings.getChildren(\"mapping\")) { //$NON-NLS-1$\n String namespace = mapping.getAttribute(\"namespace\"); //$NON-NLS-1$\n String prefix = mapping.getAttribute(\"prefix\"); //$NON-NLS-1$\n JCRSourceFactory.configuredMappings.put(namespace, prefix);\n }\n // load index excludes\n JCRSourceFactory.iExcludes = new ArrayList<String>();\n\n Configuration index = config.getChild(\"index\"); //$NON-NLS-1$\n Configuration excludes = index.getChild(\"excludes\"); //$NON-NLS-1$\n for (Configuration exclude : excludes.getChildren(\"exclude\")) { //$NON-NLS-1$\n JCRSourceFactory.iExcludes.add(exclude.getValue());\n }\n }\n }", "private static StandardServiceRegistry configureServiceRegistry() {\n return new StandardServiceRegistryBuilder()\n .applySettings(getProperties())\n .build();\n }", "void setElasticId(@NonNull final String id);", "@Override\n public void configure(@Nonnull AbstractConfigNode node) throws ConfigurationException {\n Preconditions.checkArgument(node instanceof ConfigPathNode);\n try {\n ConfigurationAnnotationProcessor.readConfigAnnotations(getClass(), (ConfigPathNode) node, this);\n Map<String, Object> config = configuration(node);\n ClientBuilder builder = ClientBuilder.newBuilder();\n if (config != null && !config.isEmpty()) {\n for (String key : config.keySet()) {\n builder.property(key, config.get(key));\n }\n }\n builder.connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS);\n builder.readTimeout(readTimeout, TimeUnit.MILLISECONDS);\n\n if (useSSL) {\n builder.sslContext(SSLContext.getDefault());\n }\n client = builder.register(JacksonJaxbJsonProvider.class).build();\n state().setState(EConnectionState.Open);\n } catch (Exception ex) {\n state().setError(ex);\n throw new ConfigurationException(ex);\n }\n }", "public static void createIndexELServer() throws Exception {\n CloseableHttpClient httpclient = HttpClients.createDefault();\n\n // Obtain data to configure & populate the server.\n String mappingsContent = getFileAsString(EL_EXAMPLE_MAPPINGS);\n\n // Create an index mappings.\n HttpPost httpPost = new HttpPost(urlBuilder.getIndexRoot());\n StringEntity inputMappings = new StringEntity(mappingsContent);\n inputMappings.setContentType(CONTENTTYPE_JSON);\n httpPost.setEntity(inputMappings);\n CloseableHttpResponse mappingsResponse = httpclient.execute(httpPost);\n if (mappingsResponse.getStatusLine().getStatusCode() != EL_REST_RESPONSE_OK) {\n System.out.println(\"Error response body:\");\n System.out.println(responseAsString(mappingsResponse));\n }\n Assert.assertEquals(EL_REST_RESPONSE_OK, mappingsResponse.getStatusLine().getStatusCode());\n }", "@Override\r\n\tpublic void configure() throws Exception {\n\t\t\r\n\t}", "protected OeTemplateProcessorConfig getConfig() {\n final OeTemplateProcessorConfig config = OeTemplateProcessorConfig.create();\n config\n //.setPollingIntervalMillis(1000)\n //.setPollingMaxDurationSecs(5)\n //.setResultsBatchSize(100)\n .getInferenceParameterOverrides()\n .setMaxAnswerCount(MAX_ANSWERS);\n return config;\n }", "@Bean(name = \"mainEntityManagerFactory\")\n public LocalContainerEntityManagerFactoryBean mainEntityManagerFactory(EntityManagerFactoryBuilder builder) {\n Map<String, Object> props = new HashMap<>();\n props.put(\"hibernate.hbm2ddl.auto\", \"update\");\n props.put(\"hibernate.implicit_naming_strategy\", \"org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy\");\n props.put(\"hibernate.physical_naming_strategy\", \"org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy\");\n props.put(\"hibernate.search.default.indexmanager\", \"elasticsearch\");\n props.put(\"hibernate.search.default.elasticsearch.host\", esURL);\n props.put(\"hibernate.search.default.elasticsearch.required_index_status\", \"yellow\");\n return builder\n .dataSource(mainDataSource())\n .packages(BaseEntity.class)\n .persistenceUnit(\"main\")\n .properties(props)\n .build();\n }", "public void configure() throws ConfigurationException;", "@SuppressWarnings(\"unused\")\n @PostConstruct\n private void initializeAmazon() {\n AWSCredentials credentials = new BasicAWSCredentials(negaBucketAccessKey, negaBucketSecretKey);\n this.s3client =\n AmazonS3ClientBuilder.standard()\n .withCredentials(new AWSStaticCredentialsProvider(credentials))\n .withRegion(Regions.US_EAST_1)\n .build();\n }", "@InterfaceAudience.Private\npublic interface DynamoDBClientFactory extends Configurable {\n Logger LOG = LoggerFactory.getLogger(DynamoDBClientFactory.class);\n\n /**\n * Create a DynamoDB client object from configuration.\n *\n * The DynamoDB client to create does not have to relate to any S3 buckets.\n * All information needed to create a DynamoDB client is from the hadoop\n * configuration. Specially, if the region is not configured, it will use the\n * provided region parameter. If region is neither configured nor provided,\n * it will indicate an error.\n *\n * @param defaultRegion the default region of the AmazonDynamoDB client\n * @param bucket Optional bucket to use to look up per-bucket proxy secrets\n * @param credentials credentials to use for authentication.\n * @return a new DynamoDB client\n * @throws IOException if any IO error happens\n */\n AmazonDynamoDB createDynamoDBClient(final String defaultRegion,\n final String bucket,\n final AWSCredentialsProvider credentials) throws IOException;\n\n /**\n * The default implementation for creating an AmazonDynamoDB.\n */\n class DefaultDynamoDBClientFactory extends Configured\n implements DynamoDBClientFactory {\n @Override\n public AmazonDynamoDB createDynamoDBClient(String defaultRegion,\n final String bucket,\n final AWSCredentialsProvider credentials)\n throws IOException {\n Preconditions.checkNotNull(getConf(),\n \"Should have been configured before usage\");\n\n final Configuration conf = getConf();\n final ClientConfiguration awsConf = S3AUtils.createAwsConf(conf, bucket);\n\n final String region = getRegion(conf, defaultRegion);\n LOG.debug(\"Creating DynamoDB client in region {}\", region);\n\n return AmazonDynamoDBClientBuilder.standard()\n .withCredentials(credentials)\n .withClientConfiguration(awsConf)\n .withRegion(region)\n .build();\n }\n\n /**\n * Helper method to get and validate the AWS region for DynamoDBClient.\n *\n * @param conf configuration\n * @param defaultRegion the default region\n * @return configured region or else the provided default region\n * @throws IOException if the region is not valid\n */\n static String getRegion(Configuration conf, String defaultRegion)\n throws IOException {\n String region = conf.getTrimmed(S3GUARD_DDB_REGION_KEY);\n if (StringUtils.isEmpty(region)) {\n region = defaultRegion;\n }\n try {\n Regions.fromName(region);\n } catch (IllegalArgumentException | NullPointerException e) {\n throw new IOException(\"Invalid region specified: \" + region + \"; \" +\n \"Region can be configured with \" + S3GUARD_DDB_REGION_KEY + \": \" +\n validRegionsString());\n }\n return region;\n }\n\n private static String validRegionsString() {\n final String delimiter = \", \";\n Regions[] regions = Regions.values();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < regions.length; i++) {\n if (i > 0) {\n sb.append(delimiter);\n }\n sb.append(regions[i].getName());\n }\n return sb.toString();\n\n }\n }\n\n}", "DataSourceIngestModule createDataSourceIngestModule(IngestModuleIngestJobSettings settings);", "private void configuration() throws IOException {\n IndexReader reader = DirectoryReader.open(FSDirectory.open(new File(\n luceneIndexDir)));\n\n analyzer = new SimpleAnalyzer(Version.LUCENE_47);\n searcher = new IndexSearcher(reader);\n\n // Creates the directory for Storing the search results.\n File file = new File(SEARCH_RESULT_DIR);\n file.mkdir();\n\n }", "boolean indexExists(String name) throws ElasticException;", "public AmazonCloudSearchClient(AWSCredentials awsCredentials) {\n this(awsCredentials, new ClientConfiguration());\n }", "public AmazonCloudSearchClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration) {\n super(clientConfiguration);\n this.awsCredentialsProvider = new StaticCredentialsProvider(awsCredentials);\n init();\n }", "public static EscidocConfiguration getInstance() throws IOException {\r\n return instance;\r\n }", "public AmazonCloudSearchClient(AWSCredentialsProvider awsCredentialsProvider) {\n this(awsCredentialsProvider, new ClientConfiguration());\n }", "public interface Elastic\n{\n /**\n * @return The object's elastic ID.\n */\n @Nullable\n String getElasticId();\n\n /**\n * Sets the object's elastic ID.\n *\n * @param id The object's new elastic ID.\n */\n void setElasticId(@NonNull final String id);\n}", "public IIndexFactoryConfig getConfig() {\n\t\treturn getConfiguration();\n\t}", "@Test\n public void testCreateIndexMapping() throws Exception {\n String json = EsJsonUtils.generateItemMapping();\n System.out.println(json);\n elasticSearchDao.createIndexMapping(TENANT_ID+Constants.INDEX_SPLIT+ Constants.ITEM,json);\n }", "public static ShenYuEngineConfigure fromAnnotation(final ShenYuTest annotation) {\n final ShenYuTest annotationProxy = newShenYuTestProxy(annotation);\n \n ServiceConfigure[] services = annotationProxy.services();\n ServiceConfigure[] serviceProxies = new ServiceConfigure[services.length];\n for (int i = 0; i < services.length; i++) {\n serviceProxies[i] = newServiceConfigureProxy(i, services[i]);\n }\n \n ShenYuEngineConfigure configure = new ShenYuEngineConfigure();\n configure.mode = annotationProxy.mode();\n if (Mode.DOCKER == annotationProxy.mode()) {\n configure.dockerConfigure = parseDockerServiceConfigures(\n annotationProxy.dockerComposeFile(),\n serviceProxies\n );\n } else {\n configure.hostConfigure = parseHostServiceConfigures(serviceProxies);\n }\n return configure;\n }", "public AmazonCloudSearchClient(ClientConfiguration clientConfiguration) {\n this(new DefaultAWSCredentialsProviderChain(), clientConfiguration);\n }", "void configure(String name, Map<String, Object> configuration);", "EventWriterConfig getConfig();", "@Nonnull\n HashMap<String, Object> createAgentConfiguration();", "public GenAmazonS3Config() {\n }", "public void configure() throws Exception\n {\n // Do nothing by default, this method is supposed to be overridden if needed.\n }", "public Builder setIsAmazon(boolean value) {\n bitField0_ |= 0x00000004;\n isAmazon_ = value;\n onChanged();\n return this;\n }", "public abstract void configure(String[] args);", "private XContentBuilder createMappingObject() throws IOException {\n return XContentFactory.jsonBuilder()\n .startObject()\n .startObject(type)\n .startObject(ES_PROPERTIES)\n .startObject(\"externalId\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"sourceUri\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"kind\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"name\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"fields\")\n .field(ES_TYPE, ES_TYPE_NESTED)\n .startObject(ES_PROPERTIES)\n .startObject(\"name\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .startObject(\"value\")\n .field(ES_TYPE, ES_TYPE_STRING)\n .endObject()\n .endObject()\n .endObject()\n .endObject()\n .endObject()\n .endObject();\n }", "void configure(SamplerConfiguration configuration) throws UserErrorException;", "public AmazonConfig getAmazonConfig(final SessionContext ctx, final BaseStore item)\n\t{\n\t\treturn (AmazonConfig)item.getProperty( ctx, AmazoncoreConstants.Attributes.BaseStore.AMAZONCONFIG);\n\t}", "protected final void exectute(JsonObject query) throws IOException {\n\n\t\tBuilder builder;\n\t\tJestResult jr;\n\t\t//System.out.println(\"------> exist \");\n\t\tif(CLIENT==null)\n\t\t\tCLIENT = ElasticClient.getElasticClient(((SimpleJsonStringConfig) mapConfig.get(HOST)).getValue())\n\t\t\t\t\t\t\t\t\t\t.getClient();\n\t\t\n\t\tbuilder = new Search.Builder(query.toString());\n\t\t((SimpleIndexConfig) mapConfig.get(INDEX)).process(builder);\n\t\tjr = CLIENT.execute(builder.build());\n\t\t//System.out.println(jr.getJsonObject());\n\t\tif(jr.getJsonObject().has(\"error\")){\n\t\t\tSystem.out.println(\"Exception ~ syntax elastic error : verifie your query\");\n\t\t\treturn;\n\t\t}\n//\t\tSystem.out.println(\"----------------------------------------------------\");\n//\t\tSystem.out.println(jr.getJsonObject());\n//\t\tSystem.out.println(\"----------------------------------------------------\");\n\t\telasticReturn = ElasticReturn.getElasticReturn(jr.getJsonObject());\n//\t\tSystem.out.println(elasticReturn);\n//\t\tSystem.out.println(\"----------------------------------------------------\");\n\n\t}", "public abstract CONFIG build();", "public void setAmazonConfig(final BaseStore item, final AmazonConfig value)\n\t{\n\t\tsetAmazonConfig( getSession().getSessionContext(), item, value );\n\t}", "public IndicesAliasesRequest prepareAliases() {\n \treturn new IndicesAliasesRequest(this); \n }", "private void printElasticSearchInfo() {\n\n LOGGER.info(\"-- ElasticSearch Store info --\");\n\n Client client = persistenceConfig.elasticsearchTemplate().getClient();\n Map<String, String> asMap = client.settings().getAsMap();\n\n asMap.forEach((k, v) -> {\n LOGGER.info(\" \" +k + \" = \" + v);\n });\n LOGGER.info(\"-- --\");\n }", "public AmazonConfig getAmazonConfig(final BaseStore item)\n\t{\n\t\treturn getAmazonConfig( getSession().getSessionContext(), item );\n\t}", "EndpointBalancerConfig getConfig();", "public interface PaymentSettingsSearchRepository extends ElasticsearchRepository<PaymentSettings, Long> {\n}", "@Test\n public void testInterpolationOverMultipleSources()\n throws ConfigurationException\n {\n File testFile =\n ConfigurationAssert.getTestFile(\"testInterpolationBuilder.xml\");\n factory.setFile(testFile);\n CombinedConfiguration combConfig = factory.getConfiguration(true);\n assertEquals(\"Wrong value\", \"abc-product\",\n combConfig.getString(\"products.product.desc\"));\n XMLConfiguration xmlConfig =\n (XMLConfiguration) combConfig.getConfiguration(\"test\");\n assertEquals(\"Wrong value from XML config\", \"abc-product\",\n xmlConfig.getString(\"products/product/desc\"));\n SubnodeConfiguration subConfig =\n xmlConfig\n .configurationAt(\"products/product[@name='abc']\", true);\n assertEquals(\"Wrong value from sub config\", \"abc-product\",\n subConfig.getString(\"desc\"));\n }", "indexSet createindexSet();", "private void configureMerge(EObject original) {\n DSEMergeConfigurator configurator = configuratorMapping.get(original.eClass().getEPackage().getNsURI());\n if (configurator != null) {\n configureMerge(configurator);\n } else {\n logger.error(\"Missing required configuration for \" + original.eClass().getEPackage().getNsURI()); \n }\n }", "public Adsconfig() {\n this(\"AdsConfig\", null);\n }", "@Override\n public void configure() throws Exception {\n\n JacksonDataFormat jacksonDataFormat = new JacksonDataFormat(objectMapper, Event.class);\n\n\n from(\"{{application.input.endpoint}}\")\n .routeId(ROUTE_ID)\n .noMessageHistory()\n .autoStartup(true)\n .log(DEBUG, logger, \"Message headers - [${header}]\")\n .log(DEBUG, logger, \"Message headers - ${body}\")\n .unmarshal(jacksonDataFormat)\n .setHeader(\"Authorization\", simple(\"Basic \" + Base64.encodeBase64String((username + \":\" + password).getBytes())))\n .setHeader(Exchange.HTTP_METHOD, constant(\"POST\"))\n .doTry()\n .to(\"{{application.output.endpoint}}\")\n .doCatch(HttpOperationFailedException.class)\n .process(exchange -> {\n HttpOperationFailedException exception = (HttpOperationFailedException) exchange.getProperty(Exchange.EXCEPTION_CAUGHT);\n logger.error(\"Http call failed - response body is \" + exception.getResponseBody());\n logger.error(\"Http call failed - response headers are \" + exception.getResponseHeaders());\n throw exception;\n })\n .end();\n\n }", "public AmazonCloudSearchClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) {\n this(awsCredentialsProvider, clientConfiguration, null);\n }", "public void put(ElasticObject object) throws ElasticException {\n try {\n String json = mapper.writeValueAsString(marshaller.serialize(object));\n DocumentResult result = client.execute(new Index.Builder(json)\n .index(ElasticMapping.INDEX_NAME)\n .type(ElasticMapping.TABLE_NAME)\n .id(object.getElasticId())\n .build());\n\n validateResult(true, result);\n } catch (IOException e) {\n throw ElasticException.parse(e);\n }\n }", "public static void init() throws Exception {\n AWSCredentials credentials = new PropertiesCredentials(\n AwsConsoleApp.class.getResourceAsStream(\"AwsCredentials.properties\"));\n ec2 = new AmazonEC2Client(credentials);\n s3 = new AmazonS3Client(credentials);\n sdb = new AmazonSimpleDBClient(credentials);\n emr = new AmazonElasticMapReduceClient(credentials);\n }", "void initiateIndexing(HarvestResultDTO harvestResult) throws DigitalAssetStoreException;", "@Override\n\tprotected ApplicationFactory createApplicationFactory(final AppConfiguration configuration, final Environment environment) {\n\t\t\n\t\tfinal AwsApplicationFactory appFactory = new AwsApplicationFactory(configuration.getAws(), environment.getObjectMapper());\n\t\tfinal DynamoDbMapperFactory database = appFactory.database();\n\t\t\n\t\t/** Register any application repositories **/\n\t\tdatabase.registerRepo(Book.class, new BookRepository(database.getMapperRepository()));\n\t\treturn appFactory;\n\t}", "void configure();", "IndexCreated createIndex(String name, Index index) throws ElasticException;", "public Config parseConfig() throws Exception {\n DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document document = documentBuilder.parse(new File(getFile(configFile)));\n\n return parseConfig(document);\n }", "private void ensureIndexes() throws Exception {\n LOGGER.info(\"Ensuring all Indexes are created.\");\n\n QueryResult indexResult = bucket.query(\n Query.simple(select(\"indexes.*\").from(\"system:indexes\").where(i(\"keyspace_id\").eq(s(bucket.name()))))\n );\n\n\n List<String> indexesToCreate = new ArrayList<String>();\n indexesToCreate.addAll(Arrays.asList(\n \"def_sourceairport\", \"def_airportname\", \"def_type\", \"def_faa\", \"def_icao\", \"def_city\"\n ));\n\n boolean hasPrimary = false;\n List<String> foundIndexes = new ArrayList<String>();\n for (QueryRow indexRow : indexResult) {\n String name = indexRow.value().getString(\"name\");\n if (name.equals(\"#primary\")) {\n hasPrimary = true;\n } else {\n foundIndexes.add(name);\n }\n }\n indexesToCreate.removeAll(foundIndexes);\n\n if (!hasPrimary) {\n String query = \"CREATE PRIMARY INDEX def_primary ON `\" + bucket.name() + \"` WITH {\\\"defer_build\\\":true}\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully created primary index.\");\n } else {\n LOGGER.warn(\"Could not create primary index: {}\", result.errors());\n }\n }\n\n for (String name : indexesToCreate) {\n String query = \"CREATE INDEX \" + name + \" ON `\" + bucket.name() + \"` (\" + name.replace(\"def_\", \"\") + \") \"\n + \"WITH {\\\"defer_build\\\":true}\\\"\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully created index with name {}.\", name);\n } else {\n LOGGER.warn(\"Could not create index {}: {}\", name, result.errors());\n }\n }\n\n LOGGER.info(\"Waiting 5 seconds before building the indexes.\");\n\n Thread.sleep(5000);\n\n StringBuilder indexes = new StringBuilder();\n boolean first = true;\n for (String name : indexesToCreate) {\n if (first) {\n first = false;\n } else {\n indexes.append(\",\");\n }\n indexes.append(name);\n }\n\n if (!hasPrimary) {\n indexes.append(\",\").append(\"def_primary\");\n }\n\n String query = \"BUILD INDEX ON `\" + bucket.name() + \"` (\" + indexes.toString() + \")\";\n LOGGER.info(\"Executing index query: {}\", query);\n QueryResult result = bucket.query(Query.simple(query));\n if (result.finalSuccess()) {\n LOGGER.info(\"Successfully executed build index query.\");\n } else {\n LOGGER.warn(\"Could not execute build index query {}.\", result.errors());\n }\n }", "@Override\n public void configure() {\n final TCAAppConfig tcaAppConfig = getConfig();\n\n LOG.info(\"Configuring TCA Application with startup application configuration: {}\", tcaAppConfig);\n\n // Validate application configuration\n ValidationUtils.validateSettings(tcaAppConfig, new TCAAppConfigValidator());\n\n // App Setup\n setName(tcaAppConfig.getAppName());\n setDescription(tcaAppConfig.getAppDescription());\n\n // ========== Streams Setup ============== //\n // Create DMaaP MR Subscriber CDAP output stream\n final String tcaSubscriberOutputStreamName = tcaAppConfig.getTcaSubscriberOutputStreamName();\n LOG.info(\"Creating TCA VES Output Stream: {}\", tcaSubscriberOutputStreamName);\n final Stream subscriberOutputStream =\n new Stream(tcaSubscriberOutputStreamName, TCA_FIXED_SUBSCRIBER_OUTPUT_DESCRIPTION_STREAM);\n addStream(subscriberOutputStream);\n\n\n // ============ Datasets Setup ======== //\n // Create TCA Message Status Table\n final String tcaVESMessageStatusTableName = tcaAppConfig.getTcaVESMessageStatusTableName();\n final Integer messageStatusTableTTLSeconds = tcaAppConfig.getTcaVESMessageStatusTableTTLSeconds();\n LOG.info(\"Creating TCA Message Status Table: {} with TTL: {}\",\n tcaVESMessageStatusTableName, messageStatusTableTTLSeconds);\n final DatasetProperties messageStatusTableProperties =\n TCAMessageStatusPersister.getDatasetProperties(messageStatusTableTTLSeconds);\n createDataset(tcaVESMessageStatusTableName, ObjectMappedTable.class, messageStatusTableProperties);\n\n // Create TCA VES Alerts Table\n final String tcaVESAlertsTableName = tcaAppConfig.getTcaVESAlertsTableName();\n final Integer alertsTableTTLSeconds = tcaAppConfig.getTcaVESAlertsTableTTLSeconds();\n LOG.info(\"Creating TCA Alerts Table: {} with TTL: {}\",\n tcaVESAlertsTableName, alertsTableTTLSeconds);\n final DatasetProperties alertTableProperties =\n TCAVESAlertsPersister.getDatasetProperties(alertsTableTTLSeconds);\n createDataset(tcaVESAlertsTableName, ObjectMappedTable.class, alertTableProperties);\n\n // =========== Flow Setup ============= //\n addFlow(new TCAVESCollectorFlow(tcaAppConfig));\n\n // ========== Workers Setup =========== //\n LOG.info(\"Creating TCA DMaaP Subscriber Worker\");\n addWorker(new TCADMaaPSubscriberWorker(tcaAppConfig.getTcaSubscriberOutputStreamName()));\n LOG.info(\"Creating TCA DMaaP Publisher Worker\");\n addWorker(new TCADMaaPPublisherWorker(tcaAppConfig.getTcaVESAlertsTableName()));\n // TODO: Remove this before going to production\n addWorker(new TCADMaaPMockSubscriberWorker(tcaAppConfig.getTcaSubscriberOutputStreamName()));\n }", "public void addInputTransportAdaptorConfiguration(\n int tenantId, InputTransportAdaptorConfiguration transportAdaptorConfiguration)\n throws InputTransportAdaptorManagerConfigurationException {\n Map<String, InputTransportAdaptorConfiguration> transportAdaptorConfigurationMap\n = tenantSpecificTransportAdaptorConfigurationMap.get(tenantId);\n\n if (transportAdaptorConfigurationMap == null) {\n transportAdaptorConfigurationMap = new ConcurrentHashMap<String, InputTransportAdaptorConfiguration>();\n transportAdaptorConfigurationMap.put(transportAdaptorConfiguration.getName(), transportAdaptorConfiguration);\n tenantSpecificTransportAdaptorConfigurationMap.put(tenantId, transportAdaptorConfigurationMap);\n } else {\n transportAdaptorConfigurationMap.put(transportAdaptorConfiguration.getName(), transportAdaptorConfiguration);\n }\n addToTenantSpecificTransportAdaptorInfoMap(tenantId, transportAdaptorConfiguration);\n }", "protected freemarker.template.Configuration newConfiguration(TemplateLoader templateLoader) throws IOException, TemplateException {\n return enhance ? new Configuration(templateLoader) : new freemarker.template.Configuration();\n }", "public Builder clearIsAmazon() {\n bitField0_ = (bitField0_ & ~0x00000004);\n isAmazon_ = false;\n onChanged();\n return this;\n }", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "public static StreamBuilder configure() {\n return new EventStreamBuilder();\n }", "@BeforeClass(alwaysRun = true)\n public void setEnvironment() throws Exception {\n \n esbRequestHeadersMap = new HashMap<String, String>();\n \n apiRequestHeadersMap = new HashMap<String, String>();\n \n init(\"agilezen-connector-1.0.2-SNAPSHOT\");\n \n esbRequestHeadersMap.put(\"Accept\", \"application/json\");\n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n \n apiRequestHeadersMap.putAll(esbRequestHeadersMap);\n \n apiRequestHeadersMap.put(\"X-Zen-ApiKey\", connectorProperties.getProperty(\"apiKey\"));\n apiRequestUrl = connectorProperties.getProperty(\"apiUrl\") + \"/api/v1\";\n \n }", "@Repository\npublic interface ArticleRepository extends ElasticsearchRepository<Article, Integer> {\n\n}", "public SearchRequestBuilder getListSearch(ESQuery query, String index) {\n\n\t\t// Group Aggregation\n\t\tString dimField = query.getDimField();\n\t\tTermsBuilder termsBuilder = AggregationBuilders.terms(dimField).field(dimField);\n\n\t\t// Group Filter\n\t\t/*List<ESFilter> aggFilter = query.getAggFilter();\n\t\tif (null != aggFilter) {\n\t\t\ttermsBuilder.collectMode(mode);\n\t\t}*/\n\t\t\n\t\t// Group Sum Aggregation\n\t\tfor (ConfigColumn column : query.getIdxList()) {\n\t\t\tString field = column.getField();\n\t\t\ttermsBuilder.subAggregation(AggregationBuilders.sum(field).field(field));\n\t\t}\n\n\t\t// Group Order\n\t\tConfigColumn sortField = query.getSortField();\n\t\tif (sortField != null) {\n\t\t\tif (sortField.getDim() == 1) {\n\t\t\t\ttermsBuilder.order(Terms.Order.term(query.isAsc()));\n\t\t\t} else {\n\t\t\t\tString fieldName = sortField.getField();\n\t\t\t\ttermsBuilder.order(Terms.Order.aggregation(fieldName, query.isAsc()));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Set Pagination\n\t\tPagination page = query.getPage();\n\t\tif (null != page) {\n\t\t\tint from = page.getFrom();\n\t\t\tint size = page.getPageSize();\n\t\t\ttermsBuilder.size(Math.max(max, from + size));\n\t\t} else {\n\t\t\ttermsBuilder.size(max);\n\t\t}\n\t\t\n\t\t// Construct Search Builder\n\t\tSearchRequestBuilder esSearch = getClient().prepareSearch(index).setTypes(type);\n\t\tesSearch.addAggregation(termsBuilder).setQuery(query.getQueryBuilder());\n\n\t\treturn esSearch;\n\t}", "private void loadConfigValues() throws IOException {\n File propertiesFile = ConfigurationHelper.findConfigurationFile(\"ec2-service.properties\");\n if (null != propertiesFile) {\n logger.info(\"Use EC2 properties file: \" + propertiesFile.getAbsolutePath());\n Properties EC2Prop = new Properties();\n FileInputStream ec2PropFile = null;\n try {\n EC2Prop.load(new FileInputStream(propertiesFile));\n ec2PropFile = new FileInputStream(propertiesFile);\n EC2Prop.load(ec2PropFile);\n\n } catch (FileNotFoundException e) {\n logger.warn(\"Unable to open properties file: \" + propertiesFile.getAbsolutePath(), e);\n } catch (IOException e) {\n logger.warn(\"Unable to read properties file: \" + propertiesFile.getAbsolutePath(), e);\n } finally {\n IOUtils.closeQuietly(ec2PropFile);\n }\n managementServer = EC2Prop.getProperty(\"managementServer\");\n cloudAPIPort = EC2Prop.getProperty(\"cloudAPIPort\", null);\n\n try {\n if (ofDao.getOfferingCount() == 0) {\n String strValue = EC2Prop.getProperty(\"m1.small.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.small\", strValue);\n\n strValue = EC2Prop.getProperty(\"m1.large.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.large\", strValue);\n\n strValue = EC2Prop.getProperty(\"m1.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"c1.medium.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"c1.medium\", strValue);\n\n strValue = EC2Prop.getProperty(\"c1.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"c1.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.2xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.2xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.4xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.4xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"cc1.4xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"cc1.4xlarge\", strValue);\n }\n } catch (Exception e) {\n logger.error(\"Unexpected exception \", e);\n }\n } else\n logger.error(\"ec2-service.properties not found\");\n }", "private void createIndex(final String index, int numShards, int numReplicas) throws IOException {\n LOGGER.warn(\"CREATE ES INDEX {} with {} shards and {} replicas\", index, numShards, numReplicas);\n final Settings indexSettings = Settings.builder().put(\"number_of_shards\", numShards)\n .put(\"number_of_replicas\", numReplicas).build();\n CreateIndexRequest indexRequest = new CreateIndexRequest(index, indexSettings);\n getClient().admin().indices().create(indexRequest).actionGet();\n\n final String mapping = IOUtils.toString(\n this.getClass().getResourceAsStream(\"/elasticsearch/mapping/map_person_5x_snake.json\"));\n getClient().admin().indices().preparePutMapping(index)\n .setType(getConfig().getElasticsearchDocType()).setSource(mapping, XContentType.JSON).get();\n }", "public void createASGroup(String asgName, String configName, String avZone,\n\t\t\tString elbName, List<String> tgArnList) {\n\t\t// asClient.setRegion(usaRegion);\n\t\tCreateAutoScalingGroupRequest asgRequest = new CreateAutoScalingGroupRequest();\n\t\tasgRequest.setAutoScalingGroupName(asgName);\n\t\tasgRequest.setLaunchConfigurationName(configName); // as above\n\n\t\tList avZones = new ArrayList();\n\t\tavZones.add(avZone); // or whatever you need\n\t\tasgRequest.setAvailabilityZones(avZones);\n\n\t\tasgRequest.setMinSize(0); // disabling it for the moment\n\t\tasgRequest.setMaxSize(8); // disabling it for the moment\n\t\tasgRequest.setDesiredCapacity(4);\n\n\t\tList elbs = new ArrayList();\n\t\telbs.add(elbName);\n\n\t\t// List arn = new ArrayList();\n\t\t// arn.add(\"arn:aws:elasticloadbalancing:us-west-2:899396450289:targetgroup/295JavaTargetGroupA/5d2090c7e284c3be\");//attach\n\t\t// to application elb\n\t\t// asgRequest.setLoadBalancerNames(elbs); //attach to classic elb\n\t\tasgRequest.setTargetGroupARNs(tgArnList);\n\t\tasgRequest.setHealthCheckType(\"ELB\");\n\t\tasgRequest.setHealthCheckGracePeriod(300);\n\t\tasgRequest.setDefaultCooldown(600);\n\n\t\tasClient.createAutoScalingGroup(asgRequest);\n\t}", "protected void enhanceConfig(ConfigurationBuilder c) {\n }", "@Override\n public Settings indexSettings() {\n return Settings.builder()\n .put(super.indexSettings())\n .put(IndexMetadata.SETTING_NUMBER_OF_SHARDS, SHARD_COUNT)\n .put(IndexMetadata.SETTING_NUMBER_OF_REPLICAS, REPLICA_COUNT)\n .put(IndexModule.INDEX_QUERY_CACHE_ENABLED_SETTING.getKey(), false)\n .put(IndexMetadata.SETTING_REPLICATION_TYPE, ReplicationType.SEGMENT)\n .put(\"index.refresh_interval\", -1)\n .build();\n }", "public BaseSearchController(ElasticClient elasticClient){\n\t\tthis.elasticClient = elasticClient;\n\t}", "public static SolrIndexer indexerFromProperties(Properties indexingProperties, String searchPath[])\n {\n SolrIndexer indexer = new SolrIndexer();\n indexer.propertyFilePaths = searchPath;\n indexer.fillMapFromProperties(indexingProperties);\n\n return indexer;\n }", "private DataRegionConfiguration createMetastoreDataRegionConfig(DataStorageConfiguration storageCfg) {\n DataRegionConfiguration cfg = new DataRegionConfiguration();\n\n cfg.setName(METASTORE_DATA_REGION_NAME);\n cfg.setInitialSize(storageCfg.getSystemRegionInitialSize());\n cfg.setMaxSize(storageCfg.getSystemRegionMaxSize());\n cfg.setPersistenceEnabled(true);\n cfg.setLazyMemoryAllocation(false);\n\n return cfg;\n }", "@Override\n\tpublic void configure() {\n\n\t}", "public static Maestrano configure() throws MnoConfigurationException {\n\t\treturn configure(DEFAULT, \"config.properties\");\n\t}", "public IEdiscoveryRequestBuilder ediscovery() {\n return new EdiscoveryRequestBuilder(getRequestUrlWithAdditionalSegment(\"ediscovery\"), getClient(), null);\n }" ]
[ "0.55828226", "0.53812546", "0.5071528", "0.50225604", "0.48807243", "0.47656223", "0.4755082", "0.47385797", "0.47248125", "0.47189406", "0.47006327", "0.4591068", "0.45890692", "0.45557916", "0.45545575", "0.45449993", "0.45344967", "0.4509611", "0.45094797", "0.44963753", "0.4487543", "0.44842023", "0.44742262", "0.44597444", "0.44533125", "0.44352055", "0.4432483", "0.44219887", "0.4397888", "0.4385688", "0.4381387", "0.43684083", "0.4344588", "0.43417475", "0.43386954", "0.43310308", "0.4323619", "0.43032447", "0.43031862", "0.42937344", "0.42830506", "0.42698735", "0.42680526", "0.4239023", "0.4230928", "0.42277268", "0.42262876", "0.4212732", "0.42061782", "0.41969857", "0.41670617", "0.4163474", "0.41608027", "0.41470566", "0.4132504", "0.41288382", "0.41287145", "0.4125492", "0.4113661", "0.41057646", "0.41030794", "0.41021377", "0.40956527", "0.40860298", "0.40825924", "0.4080606", "0.4075774", "0.4075284", "0.40687412", "0.40616763", "0.40599677", "0.4057266", "0.40572086", "0.40458387", "0.40454856", "0.40370587", "0.4034322", "0.40333956", "0.40233278", "0.40233025", "0.40221533", "0.40193498", "0.40130875", "0.4012549", "0.40110412", "0.40043032", "0.40001932", "0.39919266", "0.39868367", "0.39844626", "0.3984051", "0.3983318", "0.3978159", "0.39723176", "0.3970208", "0.39664483", "0.3964024", "0.3960624", "0.3955311", "0.39286715" ]
0.73811454
0
/ Phone key pads) The international standard letter/number mapping found on the telephone is shown below: Write a program that prompts the user to enter a letter and displays its corresponding number.
public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter a letter: "); String s = input.nextLine(); char ch = s.charAt(0); ch = Character.toUpperCase(ch); if (s.length() != 1) { System.out.println("Invalid input"); System.exit(1); } int number = 0; if (Character.isLetter(ch)) { if ('W' <= ch) number = 9; else if ('T' <= ch) number = 8; else if ('P' <= ch) number = 7; else if ('M' <= ch) number = 6; else if ('J' <= ch) number = 5; else if ('G' <= ch) number = 4; else if ('D' <= ch) number = 3; else if ('A' <= ch) number = 2; System.out.println("The corresponding number is " + number); } else { System.out.println(ch + " invalid input!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int lookup(char letter) {\n\t\tswitch (letter) {\n\t\tcase 'A':\n\t\t\treturn 0;\n\t\tcase 'R':\n\t\t\treturn 1;\n\t\tcase 'N':\n\t\t\treturn 2;\n\t\tcase 'D':\n\t\t\treturn 3;\n\t\tcase 'C':\n\t\t\treturn 4;\n\t\tcase 'Q':\n\t\t\treturn 5;\n\t\tcase 'E':\n\t\t\treturn 6;\n\t\tcase 'G':\n\t\t\treturn 7;\n\t\tcase 'H':\n\t\t\treturn 8;\n\t\tcase 'I':\n\t\t\treturn 9;\n\t\tcase 'L':\n\t\t\treturn 10;\n\t\tcase 'K':\n\t\t\treturn 11;\n\t\tcase 'M':\n\t\t\treturn 12;\n\t\tcase 'F':\n\t\t\treturn 13;\n\t\tcase 'P':\n\t\t\treturn 14;\n\t\tcase 'S':\n\t\t\treturn 15;\n\t\tcase 'T':\n\t\t\treturn 16;\n\t\tcase 'W':\n\t\t\treturn 17;\n\t\tcase 'Y':\n\t\t\treturn 18;\n\t\tcase 'V':\n\t\t\treturn 19;\n\t\tcase 'B':\n\t\t\treturn 20;\n\t\tcase 'Z':\n\t\t\treturn 21;\n\t\tcase 'X':\n\t\t\treturn 22;\n\t\tcase '*':\n\t\t\treturn 23;\n\t\tcase '|':\n\t\t\treturn 24;\n\t\tcase '.':\n\t\t\treturn 25;\n\n\t\tdefault:\n\t\t\treturn -1;\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tScanner input= new Scanner(System.in);\n\t\tSystem.out.print(\"\tEnter a letter :\");\n\t\t\n\t\tString letter = input.nextLine();\n\t\t\n\t\t\n\t\tfor (int i=0;i<=letter.length()-1;i++) {\n\t\t\tchar le = Character.toUpperCase(letter.charAt(i));\n\t\t\t\n\t\tSystem.out.print(getNumber(le));\n\t\t}\n\t\t\n\n\t}", "private char getMappingCode(char c) {\n if (!Character.isLetter(c)) {\n return 0;\n } \n else {\n return soundexMapping[Character.toUpperCase(c) - 'A'];\n }\n }", "char getContactLetter();", "public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n char c=s.next().charAt(0);\n int k=s.nextInt();\n if(c=='c')\n {\n //char m='z';\n System.out.print(\"z \");\n return;\n }\n else if (c>='a' && c<='z')\n {\n int o=c+'a';\n o=(o-k)%26;\n c=(char)(o+'a');\n }\n else if(c>='A' && c<='Z')\n {\n int o=c+'A';\n o=(o-k)%26;\n c=(char)(o+'A');\n }\n System.out.print(c);\n }", "private int getCharNumber(Character letter) {\n\t\tint integerA = Character.getNumericValue('a');\n\t\tint integerZ = Character.getNumericValue('z');\n\t\tint integerLetter = Character.getNumericValue(letter);\n\t\tif (integerLetter >= integerA && integerLetter <= integerZ) {\n\t\t\treturn integerLetter - integerA; //a -> 0, b -> 1, c -> 2, etc\n\t\t}\n\t\treturn -1;\n\t}", "private static int getNumber(char uppercaseLetter) {\n\t\tint res=0;\n\t\tString a=\"\";\n\t\t\n\t\tif (uppercaseLetter =='A' ||uppercaseLetter =='B' ||uppercaseLetter =='C') {\n\t\t\ta=\"2\";\n\t\t}\n\t\telse if (uppercaseLetter =='D' ||uppercaseLetter =='E' ||uppercaseLetter =='F') {\n\t\t\ta=\"3\";\n\t\t}\n\t\telse if (uppercaseLetter =='G' ||uppercaseLetter =='H' ||uppercaseLetter =='I' ) {\n\t\t\ta=\"4\";\n\t\t}\n\t\telse if(uppercaseLetter =='J' ||uppercaseLetter =='K' ||uppercaseLetter =='L' ) {\n\t\t\ta=\"5\";\n\t\t}\n\t\telse if(uppercaseLetter =='M' ||uppercaseLetter =='N' ||uppercaseLetter =='O' ) {\n\t\t\ta=\"6\";\n\t\t}\n\t\telse if (uppercaseLetter =='P' ||uppercaseLetter =='Q' ||uppercaseLetter =='R'|| uppercaseLetter=='S') {\n\t\t\ta=\"7\";\n\t\t}\n\t\telse if (uppercaseLetter =='T' ||uppercaseLetter =='U' ||uppercaseLetter =='V' ) {\n\t\t\ta=\"8\";\n\t\t}\n\t\telse if(uppercaseLetter =='W' ||uppercaseLetter =='X' ||uppercaseLetter =='Y' ||uppercaseLetter=='Z') {\n\t\t\ta=\"9\";\n\t\t}\n\t\telse \n\t\t\tSystem.out.print(\"Invalid input\");\n\t\t\n\t\treturn res;\n\t}", "public static void main(String[] args) {\n String key = \"4071321\";\n String strToDecode = \"Li, ailu jw au facntll\";\n StringBuilder ES = new StringBuilder();\n long spCount = 0;\n for(int i= 0;i<strToDecode.length();i++)\n {\n int ascii = strToDecode.charAt(i);\n\n if((ascii<65 || ascii>122) || (ascii > 90 && ascii < 97))\n {\n char a = strToDecode.charAt(i);\n System.out.println(a);\n ES.append(a);\n spCount++;\n }\n else\n {\n int keyPos = (int)(i - spCount)%7;\n int subKey = Character.getNumericValue(key.charAt(keyPos));\n long strAscii = ascii - subKey;\n\n if(strAscii<65)\n {\n strAscii = 91-(65- strAscii);\n }\n\n if(ascii >=97 && strAscii< 97) {\n strAscii = 123 - (97 - strAscii);\n }\n ES.append((char)strAscii);\n }\n\n }\n System.out.println(ES);\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tLetterComboPhone obj = new LetterComboPhone();\n\t\tString digits = \"23\";\n\t\tint flag = 1;\n\t\tSystem.out.println(obj.getList(\"23\"));\n\t\tLinkedList<String> st = new LinkedList<>();\n\t\tString finalDigit[] = dict[Integer.parseInt(digits.charAt(0)+\"\")];\n\t\tString []nextDigit;\n\t\tString result[];\n\t\tfor(int k = 1; k < digits.length(); k++) {\n\t\t\t\n\t\t\tnextDigit= dict[Integer.parseInt(digits.charAt(k)+\"\")];\n\t\t\tresult = new String[finalDigit.length*nextDigit.length];\n\t\t\tint idx = 0;\n\t\t\tfor(int i = 0; i < finalDigit.length; i++) {\n\t\t\t\t\n\t\t\t\tfor(int j = 0; j< nextDigit.length; j++) {\n\t\t\t\t\tresult[idx++] = finalDigit[i] + nextDigit[j];\n\t\t\t\t\tSystem.out.println(\"debug\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t \n\t\t\t}\n\t\t\tfinalDigit = result;\n\t\t}\n\t\tSystem.out.println(Arrays.toString(finalDigit));\n\n\t}", "char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}", "public static void main(String[] args) {\n\t\t\n\t\tString s = \"asdfasdfafk asd234asda\";\n\t //Map<Character, Integer> charMap = new HashMap<Character, Integer>();\n\t \n\t Map<Character,Integer> map = new HashMap<Character,Integer>();\n\t for (int i = 0; i < s.length(); i++) {\n\t char c = s.charAt(i);\n\t System.out.println(c);\n\t //if (Character.isAlphabetic(c)) {\n\t if (map.containsKey(c)) {\n\t int cnt = map.get(c);\n\t System.out.println(cnt);\n\t map.put(c,++cnt);\n\t } else {\n\t map.put(c, 1);\n\t }\n\t \n\t }\n\t // }\n\t System.out.println(map);\n\t \n\t \n\t /* char[] arr = str.toCharArray();\n\t System.out.println(arr);\n\t \n\n\t\t\n\t\tfor (char value: arr) {\n\t\t \n\t\t if (Character.isAlphabetic(value)) { \n\t\t\t if (charMap.containsKey(value)) {\n\t\t charMap.put(value, charMap.get(value) + 1);\n\t\t \n\t\t } \n\t\t\t else { charMap.put(value, 1); \n\t\t } \n\t\t\t } \n\t\t }\n\t\t \n\t\t System.out.println(charMap);*/\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t \n \t}", "private static int letterToNumber(String str) {\n return (\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\".indexOf(str))%26+1;\n }", "private void buildCharMap() {\n\t\tcharMap = new HashMap<Character , Integer>();\n\t\tcharMap.put('a', 0);\n\t\tcharMap.put('b', 1);\n\t\tcharMap.put('c', 2);\n\t\tcharMap.put('d', 3);\n\t\tcharMap.put('e', 4);\n\t\tcharMap.put('f', 5);\n\t\tcharMap.put('g', 6);\n\t\tcharMap.put('h', 7);\n\t\tcharMap.put('i', 8);\n\t\tcharMap.put('j', 9);\n\t\tcharMap.put('k', 10);\n\t\tcharMap.put('l', 11);\n\t\tcharMap.put('m', 12);\n\t\tcharMap.put('n', 13);\n\t\tcharMap.put('o', 14);\n\t\tcharMap.put('p', 15);\n\t\tcharMap.put('q', 16);\n\t\tcharMap.put('r', 17);\n\t\tcharMap.put('s', 18);\n\t\tcharMap.put('t', 19);\n\t\tcharMap.put('u', 20);\n\t\tcharMap.put('v', 21);\n\t\tcharMap.put('w', 22);\n\t\tcharMap.put('x', 23);\n\t\tcharMap.put('y', 24);\n\t\tcharMap.put('z', 25);\t\n\t}", "public static void main(String[] args) {\n Scanner key=new Scanner(System.in);\r\n while(key.hasNext())\r\n {\r\n String s=key.next();\r\n String c=\"\";\r\n for (int i = 0; i <s.length(); i++) {\r\n if((Character)s.charAt(i)=='1'|| (Character)s.charAt(i)=='0'|| (Character)s.charAt(i)=='-')\r\n {\r\n // c=c+c.concat(String.valueOf((Character)s.charAt(i)));\r\n System.out.print((Character)s.charAt(i));\r\n }\r\n else if((Character)s.charAt(i)=='A' || (Character)s.charAt(i)=='B' || (Character)s.charAt(i)=='C')\r\n {\r\n System.out.print(2);\r\n }\r\n else if((Character)s.charAt(i)=='D' || (Character)s.charAt(i)=='E' || (Character)s.charAt(i)=='F')\r\n {\r\n System.out.print(3);\r\n }\r\n else if((Character)s.charAt(i)=='G' || (Character)s.charAt(i)=='H' || (Character)s.charAt(i)=='I')\r\n {\r\n System.out.print(4);\r\n }\r\n else if((Character)s.charAt(i)=='J' || (Character)s.charAt(i)=='K' || (Character)s.charAt(i)=='L')\r\n {\r\n System.out.print(5);\r\n }\r\n else if((Character)s.charAt(i)=='M' || (Character)s.charAt(i)=='N' || (Character)s.charAt(i)=='O')\r\n {\r\n System.out.print(6);\r\n }\r\n else if((Character)s.charAt(i)=='P' || (Character)s.charAt(i)=='Q' || (Character)s.charAt(i)=='R' || (Character)s.charAt(i)=='S')\r\n {\r\n System.out.print(7);\r\n }\r\n else if((Character)s.charAt(i)=='T' || (Character)s.charAt(i)=='U' || (Character)s.charAt(i)=='V')\r\n {\r\n System.out.print(8);\r\n }\r\n else if((Character)s.charAt(i)=='W' || (Character)s.charAt(i)=='X' || (Character)s.charAt(i)=='Y'|| (Character)s.charAt(i)=='Z')\r\n {\r\n System.out.print(9);\r\n }\r\n }\r\n System.out.println();\r\n }\r\n }", "public int letter2index(char c) { \t\n \treturn (int)(c - 'A')%26 ;\n }", "public static String calculateLetter(int dniNumber) {\n String letras = \"TRWAGMYFPDXBNJZSQVHLCKEU\";\n int indice = dniNumber % 23;\n return letras.substring(indice, indice + 1);\n }", "public static void main(String[] args) {\n HashMap<Character,Integer> hMapOutPut = new HashMap<>();\n //HashMap map = new HashMap();\n String sInput = \"india\";\n char[] strInputArray = sInput.toCharArray();\n for(char fLoop: strInputArray) {\n System.out.println(fLoop);\n if(hMapOutPut.containsKey(fLoop)) {\n int temp=hMapOutPut.get(fLoop)+1;\n hMapOutPut.put(fLoop,temp );\n }else {\n hMapOutPut.put(fLoop, 1);\n }\n }\nSystem.out.println(hMapOutPut);\n }", "public static int Main()\n\t{\n\t\tint n;\n\t\tString a = new String(new char[81]); //?????a??\n//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:\n\t\tchar * p;\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tSystem.in.read(); //?????\n\t\twhile (n-- != 0) //??n???\n\t\t{\n\t\t\ta = new Scanner(System.in).nextLine(); //??????\n\t\t\tp = a; //??????\n\t\t\tif (*p != '_' && (*p > 'z' || *p < 'a') && (*p>'Z' || *p < 'A')) //???????????\n\t\t\t{\n\t\t\t\tSystem.out.print('0');\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tcontinue; //????\n\t\t\t}\n\t\t\tfor (p = a.Substring(1); * p != '\\0';p++) //??'\\0'??\n\t\t\t{\n\t\t\t\tif (*p != '_' && (*p > 'z' || *p < 'a') && (*p>'9' || *p < '0') && (*p>'Z' || *p < 'A')) //??????????????\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print('0');\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t\tbreak; //????\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (*p == '\\0') //?????????\n\t\t\t{\n\t\t\t\tSystem.out.print('1');\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "private char translateChar(char[] mapping, char character)\n { if (character==' ') return character;\n\n int lower = lowerKeyCodeMapping.indexOf(character);\n int upper = upperKeyCodeMapping.indexOf(character);\n\n int mapValue = lower;\n if (lower<0) mapValue = upper;\n if (mapValue<0) return '\\0';\n return mapping[mapValue];\n }", "public static void main(String[] args) {\n //The letters are randomly chosen through this block of code with use of ASCII code.\n char let1 = (char) ((int)(Math.random() * 26 + 65));\n char let2 = (char) ((int)(Math.random() * 26 + 65));\n char let3 = (char) ((int)(Math.random() * 26 + 65));\n \n //This generates a number of four digits to follow the letters. \n int num = (int)(Math.random() * 9000 + 999);\n \n //The combination is now printed to the screen through this. \n System.out.println(\"The plate number is \" + let1 + let2 +let3 + num); \n }", "private void prepNumberKeys() {\r\n int numDigits = 10;\r\n for (int i = 0; i < numDigits; i++) {\r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke((char) ('0' + i)), \"key\" + i);\r\n MAIN_PANEL.getActionMap()\r\n .put(\"key\" + i, new KeyAction(String.valueOf(i)));\r\n } \r\n }", "public static void template1(Scanner input) {\n\t\tSystem.out.println(\"Enter an ASCII code (numbers 48-90)\");\r\n\t\tint Code = input.nextInt();\r\n\t\tswitch (Code % 90) {\r\n\t\tcase 65:\r\n\t\t\tSystem.out.println(\"A\");\r\n\t\t\tbreak;\r\n\t\tcase 66:\r\n\t\t\tSystem.out.println(\"B\");\r\n\t\t\tbreak;\r\n\t\tcase 67:\r\n\t\t\tSystem.out.println(\"C\");\r\n\t\t\tbreak;\r\n\t\tcase 68:\r\n\t\t\tSystem.out.println(\"D\");\r\n\t\t\tbreak;\r\n\t\tcase 69:\r\n\t\t\tSystem.out.println(\"E\");\r\n\t\t\tbreak;\r\n\t\tcase 70:\r\n\t\t\tSystem.out.println(\"F\");\r\n\t\t\tbreak;\r\n\t\tcase 71:\r\n\t\t\tSystem.out.println(\"G\");\r\n\t\t\tbreak;\r\n\t\tcase 72:\r\n\t\t\tSystem.out.println(\"H\");\r\n\t\t\tbreak;\r\n\t\tcase 73:\r\n\t\t\tSystem.out.println(\"I\");\r\n\t\t\tbreak;\r\n\t\tcase 74:\r\n\t\t\tSystem.out.println(\"J\");\r\n\t\t\tbreak;\r\n\t\tcase 75:\r\n\t\t\tSystem.out.println(\"K\");\r\n\t\t\tbreak;\r\n\t\tcase 76:\r\n\t\t\tSystem.out.println(\"L\");\r\n\t\t\tbreak;\r\n\t\tcase 77:\r\n\t\t\tSystem.out.println(\"M\");\r\n\t\t\tbreak;\r\n\t\tcase 78:\r\n\t\t\tSystem.out.println(\"N\");\r\n\t\t\tbreak;\r\n\t\tcase 79:\r\n\t\t\tSystem.out.println(\"O\");\r\n\t\t\tbreak;\r\n\t\tcase 80:\r\n\t\t\tSystem.out.println(\"P\");\r\n\t\t\tbreak;\r\n\t\tcase 81:\r\n\t\t\tSystem.out.println(\"Q\");\r\n\t\t\tbreak;\r\n\t\tcase 82:\r\n\t\t\tSystem.out.println(\"R\");\r\n\t\t\tbreak;\r\n\t\tcase 83:\r\n\t\t\tSystem.out.println(\"S\");\r\n\t\t\tbreak;\r\n\t\tcase 84:\r\n\t\t\tSystem.out.println(\"T\");\r\n\t\t\tbreak;\r\n\t\tcase 85:\r\n\t\t\tSystem.out.println(\"U\");\r\n\t\t\tbreak;\r\n\t\tcase 86:\r\n\t\t\tSystem.out.println(\"V\");\r\n\t\t\tbreak;\r\n\t\tcase 87:\r\n\t\t\tSystem.out.println(\"W\");\r\n\t\t\tbreak;\r\n\t\tcase 88:\r\n\t\t\tSystem.out.println(\"X\");\r\n\t\t\tbreak;\r\n\t\tcase 89:\r\n\t\t\tSystem.out.println(\"Y\");\r\n\t\t\tbreak;\r\n\t\tcase 90:\r\n\t\t\tSystem.out.println(\"Z\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t}", "private int char2Int(char _char){\n \tswitch(_char){\r\n \tcase 'A': case 'a': return 0; \r\n \tcase 'R': case 'r': return 1;\r\n \tcase 'N': case 'n': return 2; \t\r\n \tcase 'D': case 'd': return 3;\r\n \tcase 'C': case 'c': return 4;\r\n \tcase 'Q': case 'q': return 5;\r\n \tcase 'E': case 'e': return 6;\r\n \tcase 'G': case 'g': return 7;\r\n \tcase 'H': case 'h': return 8;\r\n \tcase 'I': case 'i': return 9;\r\n \tcase 'L': case 'l': return 10;\r\n \tcase 'K': case 'k': return 11;\r\n \tcase 'M': case 'm': return 12;\r\n \tcase 'F': case 'f': return 13;\r\n \tcase 'P': case 'p': return 14;\r\n \tcase 'S': case 's': return 15;\r\n \tcase 'T': case 't': return 16;\r\n \tcase 'W': case 'w': return 17;\r\n \tcase 'Y': case 'y': return 18;\r\n \tcase 'V': case 'v': return 19;\r\n \tcase 'B': case 'b': return 20;\r\n \tcase 'Z': case 'z': return 21;\r\n \tcase 'X': case 'x': return 22; \t\r\n \tdefault: return 23;\r\n \t}\r\n \t//\"A R N D C Q E G H I L K M F P S T W Y V B Z X *\"\r\n }", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString xStringA = scan.next() + \"111111\";\n\t\tchar[] xCharA = xStringA.toCharArray();\n\t\tString[] xAlpha = new String[26];\n\t\txAlpha[0]=\"a\";\n\t\txAlpha[1]=\"B\";\n\t\txAlpha[2]=\"C\";\n\t\txAlpha[3]=\"D\";\n\t\txAlpha[4]=\"E\";\n\t\txAlpha[5]=\"F\";\n\t\txAlpha[6]=\"G\";\n\t\txAlpha[7]=\"H\";\n\t\txAlpha[8]=\"I\";\n\t\txAlpha[9]=\"J\";\n\t\txAlpha[10]=\"K\";\n\t\txAlpha[11]=\"L\";\n\t\txAlpha[12]=\"M\";\n\t\txAlpha[13]=\"N\";\n\t\txAlpha[14]=\"O\";\n\t\txAlpha[15]=\"P\";\n\t\txAlpha[16]=\"Q\";\n\t\txAlpha[17]=\"R\";\n\t\txAlpha[18]=\"S\";\n\t\txAlpha[19]=\"T\";\n\t\txAlpha[20]=\"U\";\n\t\txAlpha[21]=\"V\";\n\t\txAlpha[22]=\"W\";\n\t\txAlpha[23]=\"X\";\n\t\txAlpha[24]=\"Y\";\n\t\txAlpha[25]=\"Z\";\n\t\t\n\t\t\n\t\tchar one = xStringA.charAt(0);\n\t\tchar two = xStringA.charAt(1);\n\t\tchar three = xStringA.charAt(2);\n\t\tchar four = xStringA.charAt(3);\n\t\tchar five = xStringA.charAt(4);\n\t\tchar six = xStringA.charAt(5);\n\n\t\tString sOne = Character.toString(one);\n\t\tString sTwo = Character.toString(two);\n\t\tString sThree = Character.toString(three);\n\t\tString sFour = Character.toString(four);\n\t\tString sFive = Character.toString(five);\n\t\tString sSix = Character.toString(six);\n\t/*\t\n\t\tSystem.out.println(sOne);\n\t\tSystem.out.println(sTwo);\n\t\tSystem.out.println(sThree);\n\t\tSystem.out.println(sFour);\n\t\tSystem.out.println(sFive);\n\t\tSystem.out.println(sSix);\n\t*/\n\t\t\n\t\tfor (int i = 0; i < 26 ; i++) {\n\t\t\tif (sOne != xAlpha[i]) {\n\t\t\t\tint oneVar = 1;\n\t\t\t\toneVar = i+1;\n\t\t\t\tSystem.out.println(\"Value is\");\n\t\t\t\tSystem.out.println(sOne + \" \" +xAlpha[i]);\n\t\t\t\tSystem.out.println(oneVar);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"no value was similar1\");\n\t\t\t}\n\t\t\t\n\t\t\tif (sTwo != xAlpha[i]) {\n\t\t\t\tint twoVar = 2;\n\t\t\t\ttwoVar = i+1;\n\t\t\t\tSystem.out.println(\"Value is\");\n\t\t\t\tSystem.out.println(sTwo + \" \" +xAlpha[i]);\n\t\t\t\tSystem.out.println(twoVar);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"no value was similar2\");\n\t\t\t}\n\t\t\t}\n\t\t}", "public static void main(String[] args) \n\t{\n\t\tString str = \"647mahesh\";\n\t\tint size = str.length();\n\t\tint i;\n\t\tfor (i = 0; i < size ; i++)\n\t\t{\n\t\t\tchar split = str.charAt(i);\n\t\t\tif ('0'<=split && split<='8')\n\t\t\tbreak;\n\t\t}\n\t\tString numeric = str.substring(0,i);\n\t\tString alphabets = str.substring(i);\n\t\tSystem.out.println(numeric);\n\t\tSystem.out.println(alphabets);\n\t}", "public static void main(String[] args) {\n\t\tString Input = \"1. It is Work from Home Not Work for Home\";\r\n\t\tint digit=0, upper=0, lower=0, space=0;\r\n\t\tchar[] c = Input.toCharArray();\r\n\t\tfor (char ch : c) {\r\n\t\tswitch(Character.getType(ch)) {\r\n\t\tcase 9:\r\n\t\t\tdigit++;\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tspace++;\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tupper++;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tlower++;\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Numbers : \"+digit);\r\n\t\tSystem.out.println(\"Uppercase : \"+upper);\r\n\t\tSystem.out.println(\"Lowercase : \"+lower);\r\n\t\tSystem.out.println(\"Space : \"+space);\t\t\t\r\n\t}", "public static void main(String[] args) {\n Map<Character, Integer> myMap = new HashMap<>();\n\n createMap(myMap); // create map based on user input\n displayMap(myMap); // display map content\n }", "public static void main(String[] args) {\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"012345678\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456789\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567890\"));\r\n\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UCYF\\nALXLAT\\nSAZUF\\nCYFALT\\nXLASAU\\nYCXH\"));\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UHTL\\nYTHCFC\\nJJZUU\\nHTLYTX\\nHCFJJT\\nAFTY\"));\r\n\t}", "private static void getPhoneNumberMnemonic(\n\t\t\tString phoneNumber,\n\t\t\tint digit,\n\t\t\tchar[] partial,\n\t\t\tList<String> mnemonics)\n\t{\n\t\tif(digit == phoneNumber.length())\n\t\t{\n\t\t\tmnemonics.add(new String(partial));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// try all possible characters for this digit\n\t\t\tfinal String s = MAPPING[phoneNumber.charAt(digit) - '0'];\n\t\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\t{\n\t\t\t\tchar c = s.charAt(i);\n\t\t\t\tpartial[digit] = c;\n\t\t\t\tgetPhoneNumberMnemonic(phoneNumber, digit + 1, partial, mnemonics);\n\t\t\t}\n\t\t}\n\t}", "private static void task41() {\n System.out.println(\"Enter character: \");\n char ch = scanStr().charAt(0);\n\n System.out.println(\"ASCII value of \" + ch + \" is \" + (int)ch);\n }", "public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }", "private static void createMap(Map<Character, Integer> map) {\n Scanner scanner = new Scanner(System.in); // create scanner\n System.out.println(\"Enter a string:\"); // prompt for user input\n String input = scanner.nextLine();\n\n char[] chars = input.replace(\" \", \"\").toCharArray();\n\n for (Character chr : chars) {\n if (map.containsKey(chr)) {\n int count = map.get(chr); // get current count\n map.put(chr, count + 1); // increment count\n } else\n map.put(chr, 1); // add new char with a count of 1 to map\n }\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Please type in a letter :\");\n\t\t\n\t\tString x = input.nextLine();\n\t\t\n\t\tSystem.out.println(\" The numerical value of \" + x + \" is \" + alphabet(x));\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString[] map = { \"0\",\"1\",\"abc\",\"def\",\"jkl\",\"mno\",\"qprs\",\"tuv\",\"wxyz\"};\n\t\tString digit = \"235\";\n\t\tArrayList<String> res = new ArrayList<String>();\n\t\tres = solve(\"\",map,0,res,digit.length(),digit);\n\t\tSystem.out.println(res);\n\n\t}", "public interface KeyCode {\n\n // Alphabet keys:\n int A_UPPER_CASE = 65;\n int B_UPPER_CASE = 66;\n int C_UPPER_CASE = 67;\n int D_UPPER_CASE = 68;\n int E_UPPER_CASE = 69;\n int F_UPPER_CASE = 70;\n int G_UPPER_CASE = 71;\n int H_UPPER_CASE = 72;\n int I_UPPER_CASE = 73;\n int J_UPPER_CASE = 74;\n int K_UPPER_CASE = 75;\n int L_UPPER_CASE = 76;\n int M_UPPER_CASE = 77;\n int N_UPPER_CASE = 78;\n int O_UPPER_CASE = 79;\n int P_UPPER_CASE = 80;\n int Q_UPPER_CASE = 81;\n int R_UPPER_CASE = 82;\n int S_UPPER_CASE = 83;\n int T_UPPER_CASE = 84;\n int U_UPPER_CASE = 85;\n int V_UPPER_CASE = 86;\n int W_UPPER_CASE = 87;\n int X_UPPER_CASE = 88;\n int Y_UPPER_CASE = 89;\n int Z_UPPER_CASE = 90;\n\n // int A_LOWER_CASE = 97;\n // int B_LOWER_CASE = 98;\n // int C_LOWER_CASE = 99;\n // int D_LOWER_CASE = 100;\n // int E_LOWER_CASE = 101;\n // int F_LOWER_CASE = 102;\n // int G_LOWER_CASE = 103;\n // int H_LOWER_CASE = 104;\n // int I_LOWER_CASE = 105;\n // int J_LOWER_CASE = 106;\n // int K_LOWER_CASE = 107;\n // int L_LOWER_CASE = 108;\n // int M_LOWER_CASE = 109;\n // int N_LOWER_CASE = 110;\n // int O_LOWER_CASE = 111;\n // int P_LOWER_CASE = 112;\n // int Q_LOWER_CASE = 113;\n // int R_LOWER_CASE = 114;\n // int S_LOWER_CASE = 115;\n // int T_LOWER_CASE = 116;\n // int U_LOWER_CASE = 117;\n // int V_LOWER_CASE = 118;\n // int W_LOWER_CASE = 119;\n // int X_LOWER_CASE = 120;\n // int Y_LOWER_CASE = 121;\n // int Z_LOWER_CASE = 122;\n\n // Numeric keys:\n int NUMPAD_0 = 96;\n int NUMPAD_1 = 97;\n int NUMPAD_2 = 98;\n int NUMPAD_3 = 99;\n int NUMPAD_4 = 100;\n int NUMPAD_5 = 101;\n int NUMPAD_6 = 102;\n int NUMPAD_7 = 103;\n int NUMPAD_8 = 104;\n int NUMPAD_9 = 105;\n\n int NUM_0 = 48;\n int NUM_1 = 49;\n int NUM_2 = 50;\n int NUM_3 = 51;\n int NUM_4 = 52;\n int NUM_5 = 53;\n int NUM_6 = 54;\n int NUM_7 = 55;\n int NUM_8 = 56;\n int NUM_9 = 57;\n\n int PERSIAN_0 = 1776;\n int PERSIAN_1 = 1777;\n int PERSIAN_2 = 1778;\n int PERSIAN_3 = 1779;\n int PERSIAN_4 = 1780;\n int PERSIAN_5 = 1781;\n int PERSIAN_6 = 1782;\n int PERSIAN_7 = 1783;\n int PERSIAN_8 = 1784;\n int PERSIAN_9 = 1785;\n\n // Function keys:\n int F1 = 112;\n int F2 = 113;\n int F3 = 114;\n int F4 = 115;\n int F5 = 116;\n int F6 = 117;\n int F7 = 118;\n int F8 = 119;\n int F9 = 120;\n int F10 = 121;\n int F11 = 122;\n int F12 = 123;\n\n // Control Keys:\n int BACKSPACE = 8;\n int TAB = 9;\n int ENTER = 13;\n int SHIFT = 16;\n int CTRL = 17;\n int ALT = 18;\n int PAUSE_BREAK = 19;\n int CAPS_LOCK = 20;\n int ESCAPE = 27;\n int PAGEUP = 33;\n int PAGEDOWN = 34;\n int END = 35;\n int HOME = 36;\n int LEFT = 37;\n int UP = 38;\n int RIGHT = 39;\n int DOWN = 40;\n int PRINT_SCREEN = 44;\n int INSERT = 45;\n int DELETE = 46;\n\n // Other Keys:\n int SPACE = 32;\n int EQUALITY = 61;\n int LEFT_WINDOW_KEY = 91;\n int RIGHT_WINDOW_KEY = 92;\n int SELECT_KEY = 93; // besides of right control key (context menu key, usually works like right click)\n int MULTIPLY = 106;\n int ADD = 107;\n int SUBTRACT = 109;\n int DECIMAL_POINT = 110;// . in numpad section\n int DIVIDE = 111;\n int NUM_LOCK = 144;\n int SCROLL_LOCK = 145;\n int SEMI_COLON = 186;// ;\n int EQUAL_SIGN = 187;// =\n int COMMA = 188;// ,\n int DASH = 189;// -\n int PERIOD = 190;// . in alphabet section\n int FORWARD_SLASH = 191;// /\n int GRAVE_ACCENT = 192; // `\n int OPEN_BRACKET = 219; // [\n int BACK_SLASH = 220; // \\\n int CLOSE_BRAKET = 221; // ]\n int SINGLE_QUOTE = 222; // '\n}", "public int letterValue(char letter){\n int val;\n\n switch(letter){\n case 'a':\n case 'e':\n case 'i':\n case 'o':\n case 'u':\n case 'l':\n case 'n':\n case 's':\n case 't':\n case 'r': val =1;\n break;\n\n case 'd':\n case 'g': val =2;\n break;\n\n case 'b':\n case 'c':\n case 'm':\n case 'p': val =3;\n break;\n\n case 'f':\n case 'h':\n case 'v':\n case 'w':\n case 'y': val =4;\n break;\n\n case 'k': val =5;\n break;\n\n case 'j':\n case 'x': val =8;\n break;\n\n case 'q':\n case 'z': val =10;\n break;\n\n default: val =0;\n }\n return val;\n }", "public static void main(String[] args) throws IOException {\n Map<String, Integer> map = new HashMap<>();\n map.put(\"A\", 9);\n map.put(\"B\", 4);\n map.put(\"C\", 8);\n map.put(\"D\", 6);\n map.put(\"E\", 5);\n map.put(\"F\", 3);\n map.put(\"G\", 7);\n map.put(\"H\", 2);\n map.put(\"I\", 1);\n map.put(\"J\", 0);\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n int[] eng = new int[count];\n for (int i = 0; i < count; i++) {\n String s = br.readLine();\n StringBuilder temp = new StringBuilder();\n for (int j = 0; j < s.length(); j++) {\n temp.append(map.get(String.valueOf(s.charAt(j))));\n }\n eng[i] = Integer.parseInt(temp.toString());\n }\n\n int result = 0;\n for (int element : eng) {\n result += element;\n }\n System.out.println(result);\n }", "public static void main(String args[]) \n {\n Scanner in=new Scanner(System.in);\n String text=in.nextLine();\n StringBuilder str=new StringBuilder(text);\n int str_len=str.length();\n int key=in.nextInt();\n for(int i=0;i<str_len;i++)\n {\n if(str.charAt(i)!=' ')\n {\n int ch=str.charAt(i)-key;\n if(str.charAt(i)>'A' && str.charAt(i)<'Z')\n {\n if(ch<'A')\n {\n ch=ch+26;\n }\n }\n else if(str.charAt(i)>'a' && str.charAt(i)<'z')\n {\n if(ch<'a')\n {\n ch=ch+26;\n }\n }\n str.setCharAt(i,(char)ch);\n }\n }\n System.out.print(str);\n }", "char getContactLetter(ContactSortOrder sortOrder);", "public static void main(String args[]){\n Scanner sc=new Scanner(System.in);\n String str=sc.nextLine();\n int len=str.length();\n int stat[]=new int[26];\n for(int i=0;i<len;i++)\n {\n if((str.charAt(i)>='a') && ( str.charAt(i)<='z'))\n {\n int offset=str.charAt(i) - 'a';\n stat[offset]++; \n }\n if((str.charAt(i)>='A') && ( str.charAt(i)<='Z'))\n {\n int offset=str.charAt(i) - 'A';\n stat[offset]++; \n }\n }\n for(int i=0;i<26;i++)\n {\n \n if( stat[i]==0)\n {\n char ch=(char)('a'+i);\n System.out.print(ch+\" \");\n \n \n \n }\n }\n}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString password;\r\n\t\tint num;\r\n\r\n\t\tpassword = scan.next();\r\n\t\tscan.close();\r\n\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tnum = password.charAt(i) + 2;\r\n\r\n\t\t\tif (num > 122) {\r\n\t\t\t\tnum -= 122;\r\n\t\t\t\tnum += 96;\r\n\t\t\t}\r\n\t\t\tSystem.out.printf(\"%c\", num);\r\n\t\t}\r\n\r\n\t}", "public void numberLookup() {\n\t\tSystem.out.print(\"Number: \");\n\t\tint entryNumber = getInputForNumber();\n\t\tphoneList\n\t\t\t.stream()\n\t\t\t.filter(n -> n.getNumber() == entryNumber)\n\t\t\t.forEach(n -> System.out.println(\"This is the number of \" + n.getName()));\n\t}", "public char convertToCharacter(int letterThatIsNumber)\n\t{\n\t\treturn characters[letterThatIsNumber];\n\t}", "abstract String convertEnglishNumber(String number);", "public static int convert(char c) {\n switch (c) {\n case 'A': return 0;\n case 'T': return 1;\n case 'G': return 2;\n case 'C': return 3;\n default: return 4;\n }\n }", "public int letterToIndex(char letter) {\r\n\t\tif (Character.toLowerCase(letter) == 'a')\r\n\t\t\treturn 0;\r\n\t\telse if (Character.toLowerCase(letter) == 'b')\r\n\t\t\treturn 1;\r\n\t\telse if (Character.toLowerCase(letter) == 'c')\r\n\t\t\treturn 2;\r\n\t\telse if (Character.toLowerCase(letter) == 'd')\r\n\t\t\treturn 3;\r\n\t\telse if (Character.toLowerCase(letter) == 'e')\r\n\t\t\treturn 4;\r\n\t\telse if (Character.toLowerCase(letter) == 'f')\r\n\t\t\treturn 5;\r\n\t\telse if (Character.toLowerCase(letter) == 'g')\r\n\t\t\treturn 6;\r\n\t\telse if (Character.toLowerCase(letter) == 'h')\r\n\t\t\treturn 7;\r\n\t\telse if (Character.toLowerCase(letter) == 'i')\r\n\t\t\treturn 8;\r\n\t\telse if (Character.toLowerCase(letter) == 'j')\r\n\t\t\treturn 9;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n HashMap<Integer, Character> hashMap = new HashMap<Integer, Character>();\n hashMap.put(0,'F');hashMap.put(1,'G');hashMap.put(2,'R');\n hashMap.put(3,'S');hashMap.put(4,'T');hashMap.put(5,'L');\n hashMap.put(6,'M');hashMap.put(7,'N');hashMap.put(8,'O');\n hashMap.put(9,'P');hashMap.put(10,'Q');hashMap.put(11,'W');\n hashMap.put(12,'X');hashMap.put(13,'Y');hashMap.put(14,'Z');\n hashMap.put(15,'U');hashMap.put(16,'A');hashMap.put(17,'G');\n hashMap.put(18,'H');hashMap.put(19,'I');hashMap.put(20,'J');\n hashMap.put(21,'K');hashMap.put(22,'B');hashMap.put(23,'C');\n hashMap.put(24,'D');hashMap.put(25,'E');hashMap.put(26,'l');\n hashMap.put(27,'m');hashMap.put(28,'n');hashMap.put(29,'o');\n hashMap.put(30,'p');hashMap.put(31,'i');hashMap.put(32,'j');\n hashMap.put(33,'k');hashMap.put(34,'f');hashMap.put(35,'g');\n hashMap.put(36,'h');hashMap.put(37,'a');hashMap.put(38,'b');\n hashMap.put(39,'c');hashMap.put(40,'d');hashMap.put(41,'e');\n hashMap.put(42,'q');hashMap.put(43,'r');hashMap.put(44,'w');\n hashMap.put(45,'x');hashMap.put(46,'y');hashMap.put(47,'z');\n hashMap.put(48,'s');hashMap.put(49,'t');hashMap.put(50,'u');\n hashMap.put(51,'v');\n while(in.hasNext()){\n String str = in.next();\n\n String[] arr = str.split(\"[#]+\");\n\n StringBuffer ss = new StringBuffer();\n\n for (int i = 0; i < arr.length; i++) {\n\n //System.out.println(arr[i]);\n\n StringBuffer sb = new StringBuffer();\n\n for (int j = 0; j < arr[i].length(); j++) {\n\n int a = arr[i].charAt(j)=='-'?0:1;\n sb.append(a);\n }\n\n long b = Long.valueOf(sb.toString(),2);\n\n if (b>51||b<0){\n ss.replace(0,ss.length(),\"\");\n ss.append(\"ERROR\");\n break;\n }else {\n ss.append(hashMap.get((int)b));\n }\n }\n System.out.println(ss);\n\n }\n }", "public static void main(String[] args) {\n\t\t TextInput input = new NumericInput();\n\t\t input.add('1');\n\t\t input.add('a');\n\t\t input.add('0');\n\t\t System.out.println(input.getValue());\n\n}", "long getLetterId();", "long getLetterId();", "Character getCode();", "void readInput() {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tString line = input.readLine();\n\t\t\tString [] numbers = line.split(\" \");\n\n\t\t\tlenA = Integer.parseInt(numbers[0]);\n\t\t\tlenB = Integer.parseInt(numbers[1]); \n\n\t\t\twordA = input.readLine().toLowerCase(); \n\t\t\twordB = input.readLine().toLowerCase();\n\n\t\t\tg = Integer.parseInt(input.readLine());\n\n\t\t\tString key; \n\t\t\tString [] chars;\n\t\t\tpenaltyMap = new HashMap<String, Integer>();\n\n\t\t\tfor(int i=0;i<676;i++) {\n\t\t\t\tline = input.readLine();\n\t\t\t\tchars = line.split(\" \");\n\t\t\t\tkey = chars[0] + \" \" + chars[1];\n\t\t\t\tpenaltyMap.put(key, Integer.parseInt(chars[2]));\n\n\t\t\t}\n\n\t\t\tinput.close();\n\n\t\t} catch (IOException io) {\n\t\t\tio.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\tScanner scan = new Scanner (System.in);\n\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Enter your area code: \");\n\t\t\tint areaCode = scan.nextInt();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter local number: \");\n\t\t\tint localNumber = scan.nextInt();\n\t\t\t//(617)-8202117\n\t\t\tString phoneNumber = \"(\" + areaCode + \")-\" + localNumber;\n\t\t\t\n\t\t\tSystem.out.println(\"Calling number \" + phoneNumber);\n\t\t\t\n\t\t\t\n\t\t}", "static int charToInt(char c) {\n if (c >= 'A' && c <= 'Z') return c - 'A';\n else if (c >= 'a' && c <= 'z') return c - 'a' + 26;\n else return -1;\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n char temp;\n for(int i=0; i < str.length(); i++) {\n temp = str.charAt(i);\n \n if(temp>=65 && temp <= 96) {\n // 대문자를 소문자로 변형\n System.out.println((char)(temp+32) +\"\");\n } else if(temp >= 97 && temp <= 122) {\n // 소문자를 대문자로 변형\n System.out.println((char)(temp-32) + \"\");\n } else {\n // 숫자가 들어갔을 때는 그냥 출력\n System.out.println(temp +\"\");\n }\n }\n // 아스키 코드 65 = 'A' ~ 90 = 'Z'\n // 97 = 'a' ~ 122 = 'z'\n }", "public static void main(String[] args) {\n\t\tHashMap<Character, Integer> map = new HashMap<>();\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString word = scanner.next();\n\t\tint cnt = 0;\n\t\tfor(int i = 0 ; i < word.length() ; i++) {\n\t\t\tchar tmp = Character.toUpperCase(word.charAt(i));\n\t\t\tif(map.containsKey(tmp) == true) { // 대문자로 바꿔 알파벳 있으면 char : value++ 해주기\n\t\t\t\tmap.put(tmp,map.get(tmp)+1 );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmap.put(tmp, 1);\n\t\t\t}\n\t\t}\n\t\tint maxValue = Collections.max(map.values());\n\t\tIterator values = map.values().iterator();\n\t\twhile(values.hasNext()) {\n\t\t\tif((int)values.next() == maxValue)\n\t\t\t\tcnt++;\n\t\t}\n\t\tif(cnt == 1) {\n\t\t\tIterator it = map.keySet().iterator();\n\t\t\twhile(it.hasNext()) {\n\t\t\t\tCharacter key = (Character) it.next();\n\t\t\t\tif(maxValue == map.get(key)) {\n\t\t\t\t\tSystem.out.println(key);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"?\");\n\t\t}\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tHashMap <Character, Integer> lhmap = new LinkedHashMap<Character, Integer>();\n\t\t\n\t\t\tString nom = \"Javier del Moral Asensio\";\n\t\t\tchar[] myName= nom.toLowerCase().toCharArray();\n\t\t\n\t\t//for loop to check characters one by one and sum it if are repeated\n\t\t\t\t\n\t\t\tfor(int c=0; c < nom.length(); c++) {\n\t\t\t\n\t\t\t\tint value=1;\n\t\t\n\t\t//if the char is new store it\n\t\t\t\t\n\t\t\t\tif(lhmap.containsKey(myName[c]) == false) {\n\t\t\t\t\tlhmap.put(myName[c], value);\n\t\t\t\t\t\n\t\t//if is not +1 to the original char\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tvalue = lhmap.get(myName[c]);\n\t\t\t\t\tlhmap.put(myName[c], value+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\tSystem.out.println(lhmap);\t\t\n\n\t}", "private static void convertAlphaToNumeric(StringBuffer buf)\n {\n byte byteLetter = 0;\n\n for (int letter = 0; letter < buf.length(); letter++)\n {\n\n // get the index value of 1 to 26 of the letter and then take the modulo of 10\n byteLetter = (byte) (buf.charAt(letter) - 96);\n byteLetter = (byte) (byteLetter % 10);\n buf.setCharAt(letter, (char) (byteLetter + 48));\n }\n }", "int toInt(char ch) {\n return _letters.indexOf(ch);\n }", "public static void main(String args[]) {\n Scanner sc=new Scanner(System.in);\n String s =sc.nextLine();\n int key =sc.nextInt();\n int len =s.length();\n for(int i=0;i<len;i++)\n {\n char ch =s.charAt(i);\n if(ch == ' ')\n System.out.print(\" \");\n else{\n\t\t if(ch >= 65 && ch<= 90){\n\t\t ch = (char)(ch -65);\n\t\t\t ch = (char)((26+ch-key)%26);\n\t\t\t ch =(char)(ch +65);\n\t\t\t System.out.print(ch);\n\t\t }\n\t\t else{\n\t\t ch = (char)(ch -97);\n\t\t\t ch = (char)((26+ch-key)%26);\n\t\t\t ch =(char)(ch +97);\n\t\t\t System.out.print(ch);\n\t\t }\n\t\t \n }\n \n }\n }", "@Test\n public void basicNumberSerializerTest() {\n int[] input = {0, 1, 2, 3};\n\n // Want to map 0 -> \"d\", 1 -> \"c\", 2 -> \"b\", 3 -> \"a\"\n char[] alphabet = {'d', 'c', 'b', 'a'};\n\n String expectedOutput = \"dcba\";\n assertEquals(expectedOutput,\n DigitsToStringConverter.convertDigitsToString(\n input, 4, alphabet));\n }", "public char askForLetter() {\n\t\tchar guessLetter;\n\t\tboolean validInput = false;\n\t\twhile (validInput == false) {\n\t\t\tSystem.out.println(\"Enter a letter: \");\n\t\t\tString guessLine = keyboard.nextLine();\n\t\t\tif (guessLine.length() == 0 || guessLine.length() >= 2) {\n\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tguessLine = guessLine.toLowerCase();\n\t\t\t\tguessLetter = guessLine.charAt(0);\n\t\t\t\tif(guessLetter >= 'a' && guessLetter <= 'z') {\n\t\t\t\t\tSystem.out.println(\"You entered: \" + guessLetter);\n\t\t\t\t\tvalidInput = true;\n\t\t\t\t\treturn(guessLetter);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn(' ');\n\t\t\n\t\t\n\t}", "protected char map(char c) {\r\n int index = findFromIndex(c);\r\n if(index < 0) return c;\r\n return toChars[index];\r\n }", "public static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\t\tchar alphabet;\n\t\tSystem.out.print(\"Input Character:\");\n\t\talphabet = input.next().charAt(0);//문자 입력받기\n\t\t\n\t\t\n\t\tif(alphabet >= 'A' && alphabet<='Z') {\n\t\t\tSystem.out.println(\"result: \" + (char)(alphabet+32));\t\t\t\n\t\t}//대문자일 경우 32를 더해 소문자로 변경한다.\n\t\t\n\t\telse if(alphabet>='a' && alphabet<='z') {\n\t\t\tSystem.out.println(\"result: \" + (char)(alphabet-32));\n\t\t}//소문자일 경우에는 32를 빼 대문자로 변경해준다. \n\t\t\n\t\telse {\n\t\t\tSystem.out.println(\"입력오류!\");\n\t\t}\n\t}", "public static int convertLetterGradeToNumber(char letter) {\n int value = -1;\n\n if (letter >= 'A' && letter <= 'D') {\n // Subtract 1 from F because there is no grade 'E'\n value = ('F' - 1) - letter;\n } else if (letter == 'F') {\n value = 0;\n }\n\n return value;\n }", "private static long convertNumber(String text, int base)\r\n\t{\r\n\t\tlong result = 0;\r\n\t\ttext = text.toLowerCase();\r\n\t\tfor (int i = 2; i < text.length(); i++)\r\n\t\t{\r\n\t\t\tint d;\r\n\t\t\tchar c = text.charAt(i);\r\n\t\t\tif (c > '9')\r\n\t\t\t\td = (int) (c - 'a') + 10;\r\n\t\t\telse\r\n\t\t\t\td = (int) (c - '0');\r\n\t\t\tresult = (result * base) + d;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner ip = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Welcome to the Katapayadi Wizard! Enter the 1st syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString F = ip.nextLine();\r\n\t\tSystem.out.println(\"Great! Now enter the 2nd syllable of the raga of your choice: \");\r\n\t\t\r\n\t\tString S = ip.nextLine();\r\n\t\t//int firstIndex; \r\n\t\t\r\n\t\tString [] [] alphabets = {{\"nya\", \"ka\", \"kha\", \"ga\", \"gha\", \"nga\", \"cha\", \"ccha\", \"ja\", \"jha\"}, \r\n\t\t\t\t\t\t\t\t {\"na\", \"ta\", \"tah\",\"da\", \"dah\", \"nna\", \"tha\", \"ttha\", \"dha\", \"ddha\"},\r\n\t\t\t\t\t\t\t\t {\"null\",\"pa\", \"pha\",\"ba\",\"bha\",\"ma\", \"null\", \"null\", \"null\", \"null\", },\r\n\t\t\t\t\t\t\t\t {\"null\",\"ya\", \"ra\", \"la\", \"va\", \"se\", \"sha\", \"sa\", \"ha\",\"null\"}};\r\n\t\t\r\n\t\tint firstNum = getFirstIndex(alphabets, F);\r\n\t\tint secondNum = getSecondIndex(alphabets, S); \r\n\t\tint finalIndex = concat(firstNum, secondNum);\r\n\t\t\r\n\t\tString swaras1= swaraSthanam1(finalIndex);\r\n\t\t//String finalanswer = The [index]th melakartha: aro [swaras1] and ava [swaras2].\r\n\t\tSystem.out.println(firstNum);\r\n\t\tSystem.out.println(secondNum);\r\n\t\t\r\n\t\tSystem.out.println(finalIndex);\r\n\t\t\r\n\t\tSystem.out.println(swaras1);\r\n\t\t\r\n\t}", "public int letterToInt(char letter){\n\t\t\treturn letters_to_num.get(letter);\n\t\t}", "@Override\n\tpublic void keyPressed(KeyEvent eee) {\n\t\tswitch (eee.getKeyCode()) {\n\t\tcase KeyEvent.VK_0:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(0);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD0:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(0);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_1:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(1);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD1:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(1);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_2:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(2);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD2:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(2);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_3:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(3);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD3:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(3);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_4:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(4);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD4:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(4);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_5:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(5);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD5:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(5);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_6:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(6);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD6:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(6);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_7:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(7);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD7:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(7);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_8:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(8);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD8:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(8);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_9:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(9);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tcase KeyEvent.VK_NUMPAD9:\n\t\t\tif (initialNumberField.toString().equals(\"0\"))\n\t\t\t\tinitialNumberField.delete(0, 1);\n\t\t\tinitialNumberField.append(9);\n\t\t\tnumbersField.setText(initialNumberField.toString());\n\t\t\teee.consume();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Unexpexted (key presses)\");\n\t\t\teee.consume();\n\t\t}\n\t}", "java.lang.String getPhonenumber();", "static int letterIslands(String s, int k) {\n /*\n * Write your code here.\n */\n\n }", "private void buildKeyMap() {\n\t\tcharMapKey = new HashMap<Character , Integer>();\n\t\tcharMapKey.put('a', 0);\n\t\tcharMapKey.put('b', 0);\n\t\tcharMapKey.put('c', 1);\n\t\tcharMapKey.put('d', 1);\n\t\tcharMapKey.put('e', 2);\n\t\tcharMapKey.put('f', 2);\n\t\tcharMapKey.put('g', 3);\n\t\tcharMapKey.put('h', 3);\n\t\tcharMapKey.put('i', 4);\n\t\tcharMapKey.put('j', 4);\n\t\tcharMapKey.put('k', 5);\n\t\tcharMapKey.put('l', 5);\n\t\tcharMapKey.put('m', 6);\n\t\tcharMapKey.put('n', 6);\n\t\tcharMapKey.put('o', 7);\n\t\tcharMapKey.put('p', 7);\n\t\tcharMapKey.put('q', 8);\n\t\tcharMapKey.put('r', 8);\n\t\tcharMapKey.put('s', 9);\n\t\tcharMapKey.put('t', 9);\n\t\tcharMapKey.put('u', 10);\n\t\tcharMapKey.put('v', 10);\n\t\tcharMapKey.put('w', 11);\n\t\tcharMapKey.put('x', 11);\n\t\tcharMapKey.put('y', 12);\n\t\tcharMapKey.put('z', 12);\n\t}", "public static void main(String[] args) {\n\t\tint a=0,b=0,cnt=0;\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\ta=in.nextInt();\r\n\t\tString str=\"\";\r\n\t\tin.close();\r\n\t\tif(a<0){\r\n\t\t\tstr=\"fu \";\r\n\t\t\ta=-a;\r\n\t\t}\r\n\t\twhile(a!=0){\r\n\t\t\tb=b*10+a%10;\r\n\t\t\tif(b==0){\r\n\t\t\t\tcnt++;\r\n\t\t\t}\r\n\t\t\ta=a/10;\r\n\t\t}\r\n\t\tdo{\r\n\t\t\tswitch(b%10)\r\n\t\t\t{\r\n\t\t\t\tcase 0:str+=\"ling\";break;\t\t\r\n\t\t\t\tcase 1:str+=\"yi\";break;\r\n\t\t\t\tcase 2:str+=\"er\";break;\r\n\t\t\t\tcase 3:str+=\"san\";break;\r\n\t\t\t\tcase 4:str+=\"si\";break;\r\n\t\t\t\tcase 5:str+=\"wu\";break;\r\n\t\t\t\tcase 6:str+=\"liu\";break;\r\n\t\t\t\tcase 7:str+=\"qi\";break;\r\n\t\t\t\tcase 8:str+=\"ba\";break;\r\n\t\t\t\tcase 9:str+=\"jiu\";break;\r\n\t\t\t}\r\n\t\t\tb/=10;\r\n\t\t\tif(b!=0){\r\n\t\t\t\tstr+=\" \";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}while(b!=0);\t\r\n\t\tfor(int i=1;i<=cnt;i++)\r\n\t\t{\r\n\t\t\tstr=str+\" ling\";\r\n\t\t}\t\r\n\t\tSystem.out.print(str);\r\n\r\n\t}", "private static int charsInNumber(int number)\n\t{\n\t\tif (number > 9999)\n\t\t{\n\t\t\t//todo: increase this limit\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Cannot handle numbers larger than 9999\");\n\t\t}\n\t\t\n\t\t// result - initialised to 0;\n\t\tint letterCount = 0;\n\t\t//DEBUG\n\t\t//String dbgStr = \"\";\n\n\t\t// iterate over powers of 10 in reverse order to reflect how numbers\n\t\t// are read - e.g. one thousand, one hundred and one\n\t\t// starts at powerOfTen = 3: thousands (see powersOfTen[])\n\t\tfor (int currentPowerOfTen = 3; number > 0 && currentPowerOfTen >= 0;\n\t\t\t\tcurrentPowerOfTen--)\n\t\t{\n\t\t\t// handle \"teen\"s specially\n\t\t\tif (number < 20 && number >= 10)\n\t\t\t{\n\t\t\t\t// 17 is stored in teens[7], etc, so subtract 10 for offset\n\t\t\t\tletterCount += teens[number - 10];\n\t\t\t\t// DEBUG\n\t\t\t\t// if(DEBUG) dbgStr += dbgTeens[number - 10];\n\t\t\t\t\n\t\t\t\t// finished - \"teen\" is always the last expression\n\t\t\t\tnumber = 0;\n\t\t\t\t// if this offends you, feel free to comment it out\n\t\t\t\t// saves a few arithmetic operations\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// get number to lookup length of word for using quotient\n\t\t\t// e.g. 4567 / 1000 = 4 using integer division\n\t\t\tint powerTenCount = (number / powersOfTen[currentPowerOfTen]);\n\t\t\t// zero this column (xyz -> 0yz) by subtracting\n\t\t\tnumber -= (powerTenCount * powersOfTen[currentPowerOfTen]);\n\t\t\t// look up word from ones array (e.g. \"one hundred\"), except for\n\t\t\t// multiples of 10 - use tens array\n\t\t\tint [] lookupArray = (currentPowerOfTen == 1) ? tens : ones;\n\t\t\t// increment letter count with the length of this word, e.g. \"six\"\n\t\t\tletterCount += lookupArray[powerTenCount];\n\t\t\t\n\t\t\tif (powerTenCount > 0)\n\t\t\t{\n\t\t\t\t// add name of the power of ten, e.g. \"thousand\"\n\t\t\t\tletterCount += powerTensWordLength[currentPowerOfTen];\n\t\t\t}\n\t\t\t\n\t\t\t//DEBUG\n\t\t\t//if(DEBUG) dbgStr += (currentPowerOfTen == 1 ? \n\t\t\t//\t\tdbgTens[powerTenCount] : dbgOnes[powerTenCount])\n\t\t\t//\t\t\t\t+ (powerTenCount > 0 ? \n\t\t\t//\t\t\t\t\t\tpowersOfTen[currentPowerOfTen] : \"\");\n\t\t\t\n\t\t\t// note: uses boolean short-circuiting to avoid out of bounds\n\t\t\t// lookup for condition when currentPowerTen == 0\n\t\t\t// (useAnd[0] is false -> powersTen[-1] is not looked up)\n\t\t\t// therefore, useAnd[0] must be false\n\t\t\tif\n\t\t\t(\n\t\t\t\t(\n\t\t\t\t\t\t// can only write \"and\" if a word is already written\n\t\t\t\t\t\t// word is only written if powerTenCount > 0\n\t\t\t\t\t\tpowerTenCount > 0\n\t\t\t\t)\n\t\t\t\t&&\n\t\t\t\t(\n\t\t\t\t\t\t// if this number uses \"and\" at all\n\t\t\t\t\t\t// e.g. \"fifty and *\" is never seen\n\t\t\t\t\t\tuseAnd[currentPowerOfTen]\n\t\t\t\t\t\t\t&&\n\t\t\t\t\t\t\t// there is a number left to stick on after it\n\t\t\t\t\t\t\t// e.g. \"one\" in \"one hundred and one\"\n\t\t\t\t\t\t\tnumber > 0\n\t\t\t\t)\n\t\t\t\t&&\n\t\t\t\t(\n\t\t\t\t\t\t// if number is less than the next lowest power of 10\n\t\t\t\t\t\t// e.g. \"one thousand and fifty\",\n\t\t\t\t\t\t// contrast \"one thousand, one hundred\"\n\t\t\t\t\t\tnumber < powersOfTen[currentPowerOfTen - 1]\n\t\t\t\t\t\t\t\t// hundreds exclusively always use \"and\"\n\t\t\t\t\t\t\t\t|| currentPowerOfTen == 2\n\t\t\t\t)\n\t\t\t)\n\t\t\t// if all of that is true\n\t\t\t{\n\t\t\t\t// stick an \"and\" on the end\n\t\t\t\t// (\"and\").length == 3\n\t\t\t\tletterCount += 3;\n\t\t\t\t\n\t\t\t\t//DEBUG\n\t\t\t\t// if(DEBUG) dbgStr += \"and\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//System.out.print(dbgStr);\n\t\treturn letterCount;\n\t}", "public static void main(String[] args) {\n\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tint kor, eng, math, avg, total;\r\n\t\tString result = \"\";\r\n\r\n\t\tint i = 1;\r\n\t\tdo {\r\n\t\t\tSystem.out.print(\"국어 점수 : \");\r\n\t\t\tkor = scan.nextInt();\r\n\t\t\tSystem.out.print(\"영어 점수 : \");\r\n\t\t\teng = scan.nextInt();\r\n\t\t\tSystem.out.print(\"수학 점수 : \");\r\n\t\t\tmath = scan.nextInt();\r\n\r\n\t\t\ttotal = kor + eng + math;\r\n\t\t\tavg = total / 3;\r\n\r\n\t\t\tchar c = 'A';\r\n\t\t\tswitch (avg / 10) {\r\n\t\t\tcase 10:\r\n\t\t\tcase 9:\r\n\t\t\t\tc = 'A';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 8:\r\n\t\t\t\tc = 'B';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 7:\r\n\t\t\t\tc = 'C';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 6:\r\n\t\t\t\tc = 'D';\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tc = 'F';\r\n\t\t\t}\r\n\t\t\tresult += kor + \" \" + eng + \" \" + math + \" \" + total + \" \" + avg + \" \" + c + \"\\n\";\r\n\t\t\ti++;\r\n\t\t} while (i <= 3);\r\n\t\t\r\n\t\tSystem.out.println(\"국어 영어 수학 총점 평균 학점\");\r\n\t\tSystem.out.println(result);\r\n\r\n\r\n\t}", "public void guessLetter()\n\t{\n\t\tSystem.out.println(\"The name is \" + length + \" letters long.\");\n\t\tSystem.out.println(\"Ok, now guess what letters are in the name.\");\n\t\t\n\t\t//This will guess the first letter.\n\t\tguessLetter1 = scan.nextLine();\n\t\tif(name.indexOf(guessLetter1) == -1)\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, that letter is not in the name, try again!\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tposition1 = name.indexOf(guessLetter1);\n\t\t\tSystem.out.println(\"You're correct, letter \" + guessLetter1 + \" is in position \" + position1);\n\t\t}\n\t\t\n\t\t//This will guess the second letter.\n\t\tguessLetter2 = scan.nextLine();\n\t\tif(name.indexOf(guessLetter2) == -1)\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, that letter is not in the name, try again!\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tposition2 = name.indexOf(guessLetter2);\n\t\t\tSystem.out.println(\"You're correct, letter \" + guessLetter2 + \" is in position \" + position2);\n\t\t}\n\t\t\n\t\t//This will guess the third letter.\n\t\tguessLetter3 = scan.nextLine();\n\t\tif(name.indexOf(guessLetter3) == -1)\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, that letter is not in the name.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tposition3 = name.indexOf(guessLetter3);\n\t\t\tSystem.out.println(\"You're correct, letter \" + guessLetter3 + \" is in position \" + position3);\n\t\t}\n\t}", "public void inputNumber(String number){\n\t\tchar[] strChar = number.toCharArray();\n\t\t\n\t\tfor(char NO: strChar){\n\t\t\tswitch (NO) {\n\t\t\tcase '1':\n\t\t\t\tscreen.click(one, \"NO 1\");\n\t\t\t\tbreak;\n\t\t\tcase '2':\n\t\t\t\tscreen.click(tow, \"NO 2\");\n\t\t\t\tbreak;\n\t\t\tcase '3':\n\t\t\t\tscreen.click(three, \"NO 3\");\n\t\t\t\tbreak;\n\t\t\tcase '4':\n\t\t\t\tscreen.click(four, \"NO 4\");\n\t\t\t\tbreak;\n\t\t\tcase '5':\n\t\t\t\tscreen.click(five, \"NO 5\");\n\t\t\t\tbreak;\n\t\t\tcase '6':\n\t\t\t\tscreen.click(six, \"NO 6\");\n\t\t\t\tbreak;\n\t\t\tcase '7':\n\t\t\t\tscreen.click(seven, \"NO 7\");\n\t\t\t\tbreak;\n\t\t\tcase '8':\n\t\t\t\tscreen.click(eight, \"NO 8\");\n\t\t\t\tbreak;\n\t\t\tcase '9':\n\t\t\t\tscreen.click(nine, \"NO 9\");\n\t\t\t\tbreak;\n\t\t\tcase '0':\n\t\t\t\tscreen.click(zero, \"NO 0\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void letterCombinations(String digits,String current,String[] mappings,int index,List<String> result){\n if(digits.length()==current.length()){\n result.add(current);\n return;\n }\n // if digit is \"2\" , mappings['2' - '0' ] will give me mappings[2] .i.e abc\n String letters = mappings[digits.charAt(index)-'0'];\n\n //for all letters in mappings[i] call recursively\n // i.e. mappings[2] => \"abc\",call for a, then b and then c\n for (int i=0;i<letters.length();i++){\n // add to current character at index i\n // increment index to simulate selection condition\n letterCombinations(digits,current+letters.charAt(i),mappings,index+1,result);\n }\n }", "public static Integer SheetLetterToCol(String letter) {\n int loc_RetVal = 0;\n int loc_Val = 0;\n\n letter = letter.toUpperCase().trim();\n\n loc_RetVal = letter.charAt(letter.length() - 1) - 65;\n\n if (letter.length() > 1) {\n\n //loc_RetVal++;\n\n //A\n //AA\n //AB\n\n for (int loc_Conta = 1; loc_Conta < letter.length(); loc_Conta++) {\n\n loc_Val = letter.charAt((letter.length() - 1) - loc_Conta) - 64;\n\n loc_RetVal += loc_Val * (26 * (letter.length() - loc_Conta));\n\n }\n\n }\n\n return loc_RetVal;\n }", "public static HashMap<Character, Integer> getCharToPrimeMap()\n {\n if (sCharToPrimeMap.isEmpty())\n {\n for (int i = 0; i < 26; i++)\n {\n sCharToPrimeMap.put((char) ('a' + i), (int) PrimeNumber.getPrime(i));\n }\n }\n return sCharToPrimeMap;\n }", "private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }", "public static String dtrmn(int number) {\n\t\t\n\t\tString letter = \"\";\n\t\t\n\t\tint cl = number / 100;\n\t\tif (cl != 9 && cl != 4) {\n\t\t\t\n\t\t\tif (cl < 4) {\n\t\t\t\t\n\t\t\t\tfor(int i = 1; i <= cl; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if (cl < 9 && cl > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"D\";\n\t\t\t\tfor (int i = 1; i <= cl - 5; i++) {\n\t\t\t\t\tletter = letter + \"C\";\n\t\t\t\t}\n\t\t\t} else if(cl == 10) { \n\t\t\t\t\n\t\t\t\tletter = letter + \"M\";\n\t\t\t}\n\t\t} else if (cl == 4) {\n\t\t\t\n\t\t\tletter = letter + \"CD\";\n\t\t\t\n\t\t} else if (cl == 9) {\n\t\t\t\n\t\t\tletter = letter + \"CM\";\n\t\t}\n\t\t\n\t\tint cl1 = (number % 100)/10;\n\t\tif (cl1 != 9 && cl1 != 4) {\n\t\t\t\n\t\t\tif (cl1 < 4) {\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t} else if (cl1 < 9 && cl1 > 4) {\n\t\t\t\tletter = letter + \"L\";\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i <= cl1 -5; i++) {\n\t\t\t\t\tletter = letter + \"X\";\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else if (cl1 == 4) {\n\t\t\tletter = letter + \"XL\";\n\t\t} else if (cl1 == 9) {\n\t\t\tletter = letter + \"XC\";\n\t\t}\n\t\t\n\t\tint cl2 = (number % 100)%10;\n\t\t\n\t\tif (cl2 != 9 && cl2 != 4) {\n\t\t\t\n\t\t\tif (cl2 < 4) {\n\t\t\t\tfor (int i = 1; i <= cl2; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t} else if (cl2 < 9 && cl2 > 4) {\n\t\t\t\t\n\t\t\t\tletter = letter + \"V\";\n\t\t\t\tfor (int i = 1; i <= cl2-5; i++) {\n\t\t\t\t\tletter = letter + \"I\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} else if (cl2 == 4) {\n\t\t\tletter = letter +\"IV\";\n\t\t} else if (cl2 == 9) {\n\t\t\tletter = letter + \"IX\";\n\t\t}\n\t\treturn letter;\n\t}", "public List<String> letterCombinations(String digits, Map<String,String> mappings) {\n List<String> result = new ArrayList<String>();\n if(digits.length()==0){\n result.add(\"\");\n return result;\n }\n\n String current_dig= digits.substring(0,1);\n List<String> combos=letterCombinations(digits.substring(1),mappings);\n for(String combo: combos){\n for(int i=0;i<=combo.length();i++){\n String front= combo.substring(0,i);\n String end= combo.substring(i,combo.length());\n String letters=mappings.get(current_dig);\n for(int j=0;j<letters.length();j++){\n String newWord= front+letters.charAt(j)+end;\n result.add(newWord);\n }\n\n }\n }\n return result;\n\n }", "private int getCharNumber(char c) {\n int myReturn = -1;\n int a = Character.getNumericValue('a');\n int z = Character.getNumericValue('z');\n int val = Character.getNumericValue(c);\n if (a <= val && val <= z) {\n myReturn = val - a;\n }\n return myReturn;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\r\n\t System.out.println(\"보고 싶은 구구단은?\");\r\n\t int num = scanner.nextInt();\r\n\t System.out.println(\"구구단 \"+num+\"단\");\r\n\t for(int i=1;i<=9;i++) {\r\n\t\t System.out.print(num+\"*\" +i+\"=\"+i*num+\"\\t\");\r\n\t }\r\n\t \r\n\t\t\r\n\t}", "public static void main(String [] args)\n {\n int keyCount;\n char getKeyChar;\n String getString, maskChar, removedKeyChar;\n \n //Gets key character and target string from the user\n getKeyChar = getKeyCharacter();\n getString = getString();\n \n //Prints the masked character string, removed character string, and key character count\n maskChar = maskChar(getString, getKeyChar);\n System.out.println(maskChar); \n removedKeyChar = removedKeyChar(getString, getKeyChar);\n System.out.println(removedKeyChar);\n keyCount = keyCount(getString, getKeyChar);\n System.out.println(keyCount);\n }", "private char getGuessLetter(Scanner sc) {\n\n\t\t// the array format of the input\n\t\tchar[] ch;\n\t\twhile (true) {\n\t\t\t// ask for the input\n\t\t\tSystem.out.println(\"Please enter one letter to guess:\");\n\t\t\tSystem.out.print(\">>>\");\n\t\t\t// reading the input\n\t\t\tString input = sc.nextLine();\n\t\t\tch = input.toCharArray();\n\t\t\t// if the input is a allowed letter\n\t\t\tif(ch.length == 1\n\t\t\t\t&&(dr.isAllowed(ch[0]) || Character.isUpperCase(ch[0]))) {\n\t\t\t\t// break the loop\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Please enter an allowed letter.\");\n\t\t\t}\n\t\t}\n\t\t//return the lower-cased version of the letter\n\t\treturn Character.toLowerCase(ch[0]);\n\t}", "public static void main (String[] args) throws IOException {\n String word=readFile(\"src/org/launchcode/java/studios/countingcharacters/Studiothingy.txt\");\n\n char[] searchArray= word.toLowerCase().toCharArray();\n\n HashMap<Character, Integer> mapOutput = new HashMap<>();\n\n for (char c : searchArray) {\n if (Character.isLetter(c)) {\n if (!mapOutput.containsKey(c)) {\n mapOutput.put(c, 1);\n } else {\n mapOutput.put(c, mapOutput.get(c)+1);\n }\n }\n }\n System.out.println(mapOutput);\n }", "public static void main(String[] args)\n\t{\n\t\tMapTester myContacts = new MapTester();\n\t\t\n\t\t// add some entries\n\t\tmyContacts.enterNumber(\"Richard Stallman\", \"1234567890\");\n\t\tmyContacts.enterNumber(\"Donald Ervin Knuth\", \"1123581321\");\n\t\t\n\t\t// lookup for the numbers\n\t\tSystem.out.println(myContacts.lookupNumber(\"Richard Stallman\"));\n\t\tSystem.out.println(myContacts.lookupNumber(\"Donald Ervin Knuth\"));\n\t\t\n\t\tif(myContacts.checkForKey(\"Richard Stallman\")){\n\t\t\tSystem.out.println(\"Yep, he's in your phonebook!\");\n\t\t} else{\n\t\t\tSystem.out.println(\"Nope, he's not in your phonebook!\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tString str = \"Better Butter\";\n\t\t// char[] chararray=s.toCharArray();\n\n\t\tHashMap<Character, Integer> map = new HashMap<>();\n\n\t\t// if(hm.containsKey(s.charAt(index)))\n\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\n\t\t\tif (map.containsKey(str.charAt(i))) {\n\n\t\t\t\tif (str.charAt(i) == '\\0') {\n\t\t\t\t\t++i;\n\t\t\t\t}\n\t\t\t\tint count = map.get(str.charAt(i));\n\t\t\t\tmap.put(str.charAt(i), ++count);\n\t\t\t\tSystem.out.println(map);\n\t\t\t} else {\n\t\t\t\tmap.put(str.charAt(i), 1);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(map);\n\t}", "public void start1()\n\t{\n\t\taddPlug('A', 'M');\n\t\taddPlug('G', 'L');\n\t\taddPlug('E', 'T');\t\t\n\t\t\n\t\taddRotor(new BasicRotor (\"I\",6), 0);\n\t\taddRotor(new BasicRotor(\"II\",12), 1);\n\t\taddRotor(new BasicRotor(\"III\",5), 2);\n\t\t\n\t\treflector = new Reflector(\"ReflectorI\");\n\t\taddReflector(reflector);\n\t\t\n\t\tString encodedMessage = \"GFWIQH\";\n\t\t\n\t\t//loops through each character from the string and decodes it\n\t\tfor (char character: encodedMessage.toCharArray())\n\t\t{\n\t\t\tcharacter = encodeLetter(character);\n\t\t\tSystem.out.print(character);\n\t\t}\n\t\n\t}", "public static int toIntValue(char ch, int defaultValue) {\n/* 240 */ if (!isAsciiNumeric(ch)) {\n/* 241 */ return defaultValue;\n/* */ }\n/* 243 */ return ch - 48;\n/* */ }", "private String number() {\n switch (this.value) {\n case 1:\n return \"A\";\n case 11:\n return \"J\";\n case 12:\n return \"Q\";\n case 13:\n return \"K\";\n default:\n return Integer.toString(getValue());\n }\n }", "private int convert(int keyCode) {\n\t\tif (keyCode >= 96 && keyCode <= 105) {\n\t\t\treturn keyCode - 48;\n\t\t} else if (keyCode == 81) { // qwertyuiop -> 0-9\n\t\t\tkeyCode = 49;\n\t\t} else if (keyCode == 87) {\n\t\t\tkeyCode = 50;\n\t\t} else if (keyCode == 69) {\n\t\t\tkeyCode = 51;\n\t\t} else if (keyCode == 82) {\n\t\t\tkeyCode = 52;\n\t\t} else if (keyCode == 84) {\n\t\t\tkeyCode = 53;\n\t\t} else if (keyCode == 89) {\n\t\t\tkeyCode = 54;\n\t\t} else if (keyCode == 85) {\n\t\t\tkeyCode = 55;\n\t\t} else if (keyCode == 37) {\n\t\t\tkeyCode = 56;\n\t\t} else if (keyCode == 79) {\n\t\t\tkeyCode = 57;\n\t\t} else if (keyCode == 80) {\n\t\t\tkeyCode = 48;\n\t\t}\n\t\treturn keyCode;\n\t}", "public static int charToInt(char ch) {\n int i;\n switch (ch) {\n case 'P':\n case 'p':\n i = PAWN;\n break;\n case 'N':\n case 'n':\n i = KNIGHT;\n break;\n case 'B':\n case 'b':\n i = BISHOP;\n break;\n case 'R':\n case 'r':\n i = ROOK; \n break;\n case 'Q':\n case 'q':\n i = QUEEN;\n break;\n case 'K':\n case 'k':\n i = KING;\n break;\n default:\n i = 0;\n }\n return i;\n }", "public static void testLetter(char ch, int correct, LetterRecord record) {\n\t\tint test = 0;\n\t\ttry {\n\t\t\ttest = record.get(ch);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"...failed for get on '\" + ch + \"'\");\n\t\t\tSystem.out.println(\" threw exception: \" + e);\n\t\t\tint line = e.getStackTrace()[0].getLineNumber();\n\t\t\tSystem.out.println(\" in LetterRecord line#\" + line);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tif (correct != test) {\n\t\t\tSystem.out.println(\"...failed for get on '\" + ch + \"'\");\n\t\t\tSystem.out.println(\" correct get = \" + correct);\n\t\t\tSystem.out.println(\" your get = \" + test);\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public static char posLetterToNumber(char POS)\n\t{\n\t\tswitch (POS)\n\t\t{\n\t\t\tcase 'n':\n\t\t\t\treturn '1';\n\t\t\tcase 'v':\n\t\t\t\treturn '2';\n\t\t\tcase 'a':\n\t\t\t\treturn '3';\n\t\t\tcase 'r':\n\t\t\t\treturn '4';\n\t\t\tcase 's':\n\t\t\t\treturn '5';\n\t\t}\n\t\tSystem.err.println(\"ERROR in WordNetUtilities.posLetterToNumber(): bad letter: \" + POS);\n\t\treturn '1';\n\t}", "void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}", "private String signalThreeLetters(){\r\n\t\tSystem.out.print(\"Enter a three letter currency code (e.g., AUD, JPY, USD, EUR): \");\r\n\t\tString userInputCode = keyboardInput.getLine();\r\n\t\tif (userInputCode.length() != 3) {\r\n\t\t\tSystem.out.println(\"\\\"\" + userInputCode + \"\\\" is not a THREE letter code. Returning to menu.\");\t\t\t\t\r\n\t\t\tSystem.out.println();\r\n\t\t return null;}\r\n\t\tSystem.out.println();\r\n\t\treturn userInputCode;\r\n\t\t}", "public static void main(String[]args){//inicio del main\r\n\r\n\tScanner in = new Scanner(System.in);// creacion del scanner\r\n\tSystem.out.println(\"Input Character\");//impresion del mensaje en consola\r\n\tchar C= in.next().charAt(0);//lectura del char\r\n\t\r\n\tSystem.out.println(\"The ASCII value of \" +C+ \" is : \"+(int) C);//casteo del caracter e impresion del resultado\r\n\t}" ]
[ "0.6468761", "0.64616084", "0.6263585", "0.61378706", "0.6135607", "0.60418177", "0.60354984", "0.60315526", "0.6020417", "0.59348285", "0.58908033", "0.58891904", "0.5831698", "0.5773722", "0.5750211", "0.5744108", "0.5726075", "0.5710063", "0.56892955", "0.5660109", "0.5659765", "0.5656901", "0.5653082", "0.5629167", "0.5620171", "0.56191826", "0.560765", "0.5598532", "0.55869985", "0.5572617", "0.55582094", "0.555613", "0.5547402", "0.5538547", "0.5534875", "0.5526653", "0.5522179", "0.55201316", "0.5493092", "0.5488754", "0.5475617", "0.54719126", "0.5451636", "0.54431486", "0.5440054", "0.5432075", "0.5426737", "0.5425906", "0.5420241", "0.5420241", "0.5418098", "0.5413582", "0.5405581", "0.5393359", "0.5390114", "0.53779185", "0.53753114", "0.5374586", "0.53720737", "0.53589463", "0.53529733", "0.53491354", "0.5346603", "0.5340726", "0.5335535", "0.5333062", "0.5329496", "0.5316642", "0.53166217", "0.5307952", "0.530671", "0.5306194", "0.53056705", "0.52995455", "0.5297999", "0.5293456", "0.52931243", "0.52840376", "0.52817404", "0.52814186", "0.5281191", "0.52795243", "0.52768576", "0.5276264", "0.5263963", "0.5248519", "0.52428806", "0.5242569", "0.5234987", "0.52338094", "0.52337855", "0.5233785", "0.5229928", "0.52262723", "0.52187073", "0.52174336", "0.52145064", "0.5211424", "0.52071863", "0.5201092" ]
0.6546277
0
Created by SBKim on 20160706.
public interface FingerprintCallback { void onAuthenticated(); void onError(int msgId); }
{ "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}", "public final void mo51373a() {\n }", "@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 func_104112_b() {\n \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}", "@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}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void init() {\n }", "public void mo38117a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n 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\tprotected void interr() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\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 init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void kk12() {\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 }", "protected boolean func_70814_o() { return true; }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void poetries() {\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}", "public void gored() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void m50366E() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tpublic void one() {\n\t\t\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\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\n public void initialize() { \n }", "private void init() {\n\n\n\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "private void strin() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n public void memoria() {\n \n }", "private void initialize() {\n\t\t\n\t}" ]
[ "0.6017019", "0.5929283", "0.5892113", "0.58514255", "0.58410156", "0.5796551", "0.5796551", "0.5777307", "0.57361746", "0.57295847", "0.5685545", "0.5685518", "0.5685518", "0.5685518", "0.5685518", "0.5685518", "0.5675675", "0.567262", "0.5653455", "0.56468123", "0.5619649", "0.56149405", "0.56116176", "0.5596677", "0.55896336", "0.55863124", "0.55792195", "0.55792195", "0.5578674", "0.55729693", "0.5568673", "0.5567665", "0.5566702", "0.5564328", "0.55578655", "0.55578655", "0.55578655", "0.555552", "0.555552", "0.555552", "0.5555014", "0.55508196", "0.55462605", "0.5544618", "0.55443746", "0.55443746", "0.55443746", "0.55443746", "0.55443746", "0.55443746", "0.5543642", "0.5543492", "0.5538022", "0.5532543", "0.5524593", "0.5524593", "0.5524593", "0.5514443", "0.5509508", "0.5509508", "0.54998195", "0.5490145", "0.5488125", "0.5484106", "0.5483514", "0.5478377", "0.5469924", "0.54693437", "0.5466059", "0.54581344", "0.5453105", "0.5429314", "0.54207957", "0.54202324", "0.54202324", "0.54202324", "0.54202324", "0.54202324", "0.54202324", "0.54202324", "0.54135746", "0.54066914", "0.5397416", "0.539458", "0.5380193", "0.5380193", "0.5377723", "0.5372714", "0.537251", "0.53662306", "0.53620565", "0.5361605", "0.5359515", "0.5354537", "0.53534865", "0.53534865", "0.5349886", "0.5349651", "0.5343189", "0.5335431", "0.5329164" ]
0.0
-1