query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
The doGet method of the servlet. This method is called when a form has its tag value method equals to get.
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String uid1=request.getParameter("uid1"); String uid2=request.getParameter("uid2"); String uidentity=request.getParameter("uidentity"); System.out.println("message:"+uid2); if(uidentity.charAt(0)=='2') { String order=request.getParameter("order"); if(order=="0") { message m=new message(); m.setMuid1(uid1); m.setMuid2(uid2); m.setMtext("邀请评价"); m.setMsituation('0'); try { new messageDAO().addMessage(m); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } else { message m=new message(); m.setMuid1(uid1); m.setMuid2(uid2); m.setMtext("申请项目"); m.setMsituation('0'); try { new messageDAO().addMessage(m); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } else { message m=new message(); m.setMuid1(uid1); m.setMuid2(uid2); m.setMtext("邀请加入"); m.setMsituation('0'); try { new messageDAO().addMessage(m); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(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}", "void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;", "@Override\r\n protected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n throws ServletException, IOException {\n this.doPost(req, resp);\r\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n throws ServletException, IOException {\r\n\r\n doPost(req, resp); // call doPost processing\r\n\r\n }", "@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\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\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 doPost(request, response);\r\n }", "@Override\n protected void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException {\n doPost( request, response );\n }", "@Override\n\tpublic void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tthis.doPost(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tdoPost(req, resp);\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n doPost(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\tthrows ServletException, IOException {\nthis.doPost(request, response);\n}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \tdoPost(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req,resp);;\n\t}", "@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\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\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}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n \n doPost(request, response);\n }", "public void doGet(\r\n HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doPost(request, response);\r\n }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response); // calling doPost method\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@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\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException\r\n\t{\n\t\tdoPost(req, resp);\r\n\t}", "@Override\r\n\t\tprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t this.doGet(request, response);\r\n\t }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t doPost(request, response);\n\t}", "@Override\r\n\tprotected void doPost( final HttpServletRequest request, final HttpServletResponse response ) throws ServletException, IOException {\r\n\t\tdoGet( request, response );\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t doPost(req, resp);\r\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}", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }", "@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}", "public synchronized void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {\r\n\t\tdoPost(request, response);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doGet(request, response);\r\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n\r\n\t\tdoPost(request, response);\r\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "protected void doGet(HttpServletRequest request, \r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\r\n\t\t// Send all get requests to doPost\r\n\t\tdoPost(request, response);\r\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}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,\n IOException\n {\n doPost(request,response);\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req,resp);\n\n\t}", "@Override\n protected void doGet( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n log( \"GET\" );\n createInputBloodDonationForm( req, resp );\n }", "protected void doGet(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\r\n\t\tdoPost(request,response);\r\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\ndoPost(request, response);\n\t\t\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\r\n\t{\r\n\t\tdoPost(request, response);\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(request, response);\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n\n doGet(request, response);\n\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\r\n\t\tdoGet(request, response);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "@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\tsuper.doPost(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n this.doPost(request, response);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}", "public void doGet(HttpServletRequest request, \n HttpServletResponse response)\n throws ServletException, IOException \n {\n response.setContentType(\"text/html\");\n\n // Writing message to the web page\n PrintWriter out = response.getWriter();\n String title = \"Using GET Method to Read Form Data\";\n String docType =\n \"<!doctype html public \\\"-//w3c//dtd html 4.0 \" + \"transitional//en\\\">\\n\";\n \n out.println(docType +\n \t \"<html>\\n\" +\n \t \"<head><title>\" + title + \"</title></head>\\n\" +\n \t \"<body bgcolor = \\\"#f0f0f0\\\">\\n\" +\n \t \"<h1 align = \\\"center\\\">\" + title + \"</h1>\\n\" +\n \t \"<ul>\\n\" +\n \t \" <li><b>Email</b>: \"\n \t + request.getParameter(\"uname\") + \"\\n\" +\n \t \" <li><b>Password</b>: \"\n \t + request.getParameter(\"psw\") + \"\\n\" +\n \t \"\t<li><b>Remember?</b>: \"\n \t + request.getParameter(\"remember\") +\n \t \"</ul>\\n\" +\n \t \"</body>\" +\n \t \"</html>\"\n \t );\n \n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request,response);\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n\t{\n\t\tthis.doPost(request, response);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\t}", "public void doGet(HttpServletRequest request,\n HttpServletResponse response) throws ServletException,\n IOException {\n doPost(request, response);\n }", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doGet(request, response);\n }" ]
[ "0.74321973", "0.7351684", "0.7254353", "0.72517896", "0.7243276", "0.72414607", "0.720676", "0.720676", "0.7205302", "0.7200583", "0.72004616", "0.71830994", "0.717302", "0.7170418", "0.7159133", "0.71552026", "0.7151952", "0.7150853", "0.71395576", "0.7138539", "0.7138539", "0.7134312", "0.7134312", "0.7134312", "0.7134148", "0.71248156", "0.71155614", "0.7108337", "0.7099834", "0.7097104", "0.7090368", "0.7090368", "0.7090368", "0.7090368", "0.7090368", "0.7086542", "0.7086542", "0.7086542", "0.7086542", "0.70863783", "0.7075513", "0.7073561", "0.7069075", "0.7068313", "0.7054004", "0.7049408", "0.7049218", "0.7049218", "0.70476806", "0.7035674", "0.7032245", "0.7008681", "0.7008681", "0.700453", "0.7004084", "0.699986", "0.6996051", "0.6996051", "0.69931346", "0.6992763", "0.69885725", "0.69856924", "0.69842976", "0.69796216", "0.69794375", "0.6978767", "0.6975543", "0.697479", "0.69697356", "0.69695395", "0.6969472", "0.69679564", "0.69654816", "0.6965044", "0.6964817", "0.69516957", "0.6935941", "0.6935941", "0.6935941", "0.69285655", "0.6924731", "0.69033", "0.69033", "0.69033", "0.69033", "0.69033", "0.69033", "0.69033", "0.69033", "0.69033", "0.69033", "0.69033", "0.69033", "0.6898089", "0.6897831", "0.68958616", "0.68958616", "0.6890818", "0.68903744", "0.68839407", "0.6881611" ]
0.0
-1
The doPost method of the servlet. This method is called when a form has its tag value method equals to post.
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request,response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "public void doPost( )\n {\n \n }", "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 request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}", "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 protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\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\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\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\t\t\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}", "@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\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\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}", "@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\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 protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@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 super.doPost(req, resp);\n }", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Override\r\n\t/**\r\n\t * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse\r\n\t * response)\r\n\t */\r\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoGet(request, response);\r\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\t\n\t\t\tdoGet(request, response);\n\t\t\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\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\n\tsuper.doPost(req, resp);\n\t\n\tSystem.out.println(\"dddd\");\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 }", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\ndoGet(request, response);\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n this.doGet(request, response);\n\t\t\n\t\t\t\n\t}", "@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\t\tdoGet(request, response);\r\n\t\t\r\n\t}", "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n \tdoGet(request, response);\n }", "protected void doPost(HttpServletRequest request, \r\n \t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tdoGet(request, response);\r\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n processRequest(request, response);\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doPost(request, response);\r\n }", "public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString string= request.getParameter(\"action\");\n\t\tif(string.equals(\"fileUpload\")) {\n\t\t\tfileUpload(request, response);\n\t\t}\n\t\telse if(string.equals(\"updateImformation\")) {\n\t\t\tupdateImformation(request, response);\n\t\t}\n\t\telse {\n\t\t\trequest.getRequestDispatcher(\"index.jsp\").forward(request, response);\n\t\t}\n\t}", "protected void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n doGet(request,response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "protected void doPost(final HttpServletRequest request,final HttpServletResponse response)\r\n throws ServletException, IOException {\r\n this.doGet(request, response);\r\n \r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.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 }", "@Override\n protected void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException {\n doPost( request, response );\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tdoGet(request, response);\n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException\r\n {\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}", "@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}", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\tthrows ServletException, IOException {\n\t\tMap<String, String> messages = new HashMap<String, String>();\n\t\treq.setAttribute(\"messages\", messages);\n\n\t\tList<MeetUps> meetups = new ArrayList<MeetUps>();\n \n\t\t// Retrieve and validate the user last name that is retrieved from the form POST submission. By default, it\n\t\t// is populated by the URL query string (in FindUsers.jsp).\n\t\tString district = req.getParameter(\"district\");\n\t\tif (district == null || district.trim().isEmpty()) {\n\t\t\tmessages.put(\"success\", \"Please enter a valid intensity value.\");\n\t\t} else {\n\t\t\t// Retrieve meetups, and store as a message.\n\t\t\ttry {\n\t\t\t\tmeetups = meetupsDao.getAllMeetUpsByDistrict(district);\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new IOException(e);\n\t\t\t}\n\t\t\tmessages.put(\"success\", \"Displaying results for meetups in the district: \" + district);\n\t\t}\n\t\treq.setAttribute(\"meetups\", meetups);\n \n\t\treq.getRequestDispatcher(\"/MeetUp.jsp\").forward(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 doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response\n )\n throws ServletException\n , IOException {\n processRequest(request, response);\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }", "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException\n {\n internalProcessRequest(request, response);\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 }", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n \tif(\"Submit Request\".equalsIgnoreCase(request.getParameter(\"action\"))){\t\t\t\r\n \t\tSite site = getLoggedOnSite(request);\r\n \t\tUser user = getLoggedOnUser(request);\r\n\r\n\t \tint itemId = Integer.parseInt(request.getParameter(\"itemId\"));\r\n\t \tint numRequested = Integer.parseInt(request.getParameter(\"numberUnits\"));\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tmakeFoodBankRequestDAO.makeFoodBankRequest(itemId, site.getId(), user.getEmail(), numRequested);\r\n\t\t\t\t\r\n\t\t\t\tresponse.getWriter().write((\"Success\"));\t\t\t\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tresponse.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.toString());\r\n\t\t\t}\r\n\t\t}\r\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 }", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}" ]
[ "0.7657621", "0.76030004", "0.75246334", "0.7469326", "0.7469255", "0.7469255", "0.7469255", "0.7469255", "0.7469255", "0.7469255", "0.7469255", "0.7469255", "0.7469255", "0.7469255", "0.7469255", "0.7428146", "0.74123853", "0.74027944", "0.7386053", "0.73711526", "0.7369957", "0.7369957", "0.7369629", "0.73480225", "0.7344606", "0.73393536", "0.7324346", "0.73199", "0.73142", "0.7308898", "0.73057765", "0.7302089", "0.7302089", "0.7302089", "0.7270521", "0.7270521", "0.7270521", "0.72684205", "0.7225536", "0.7225536", "0.7225536", "0.7225072", "0.7225072", "0.7146333", "0.7128937", "0.7116452", "0.70879704", "0.7069837", "0.705809", "0.70493346", "0.7041657", "0.7037791", "0.7035466", "0.7031167", "0.70141345", "0.69985175", "0.6987632", "0.69825727", "0.6975525", "0.6935997", "0.69332606", "0.69250375", "0.69250375", "0.69250375", "0.69250375", "0.69250375", "0.69250375", "0.69250375", "0.6918796", "0.6918796", "0.6918796", "0.6918796", "0.6918796", "0.69158715", "0.69122994", "0.69098455", "0.6908335", "0.68976665", "0.68976665", "0.68928653", "0.6889317", "0.6884108", "0.6873412", "0.6873412", "0.6873412", "0.68664145", "0.68634063", "0.6861387", "0.6857567", "0.68527204", "0.6850986", "0.6847393", "0.6844691", "0.6839359", "0.6838863", "0.6832463", "0.6828414", "0.68208545", "0.68191385", "0.68122566" ]
0.68725073
85
Initialization of the servlet.
public void init() throws ServletException { // Put your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() throws ServletException {\r\n\r\n\t}", "public void init() throws ServletException {\n }", "public void init() throws ServletException {\n\t\t\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\t\t\n\t}", "public void init() throws ServletException {\n\t\t// Put your code here\n\n\t}", "public void init() throws ServletException {\r\n\t\t\r\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "public void init() throws ServletException {\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\tSystem.out.println(\"Servlet initializing\");\n\t}", "public void init() throws ServletException\n\t{\n\t\t// Put your code here\n\t}", "public void init() throws ServletException{\n\t\tSystem.out.println(this.getServletName()+\" is INITILIAZED\");\n\t\tsuper.init();\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\tcounter = 1;\n\t\tSystem.out.println(\"Servlet Init Call\");\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init() throws ServletException {\n\t\t// Put your code here\n\t}", "public void init(ServletConfig arg0) throws ServletException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\r\n\t}", "@Override\r\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\r\n\t}", "public void init(HttpServletRequest request) throws ServletException {\n\t}", "public void init() {\n ServletContext context = getServletContext();\r\n host = context.getInitParameter(\"host\");\r\n port = context.getInitParameter(\"port\");\r\n user = context.getInitParameter(\"user\");\r\n pass = context.getInitParameter(\"pass\");\r\n }" ]
[ "0.8178207", "0.8166057", "0.81264925", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.8115332", "0.81109667", "0.80646193", "0.805903", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.80378383", "0.802835", "0.7924157", "0.7824761", "0.77752554", "0.7764671", "0.7764671", "0.7764671", "0.7742791", "0.77389", "0.76973546", "0.7680793", "0.7680793", "0.7680321", "0.76795906" ]
0.8043129
65
/////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////// Returns the date format depending upon the language
private static String _dateFormat(final Language lang) { return lang == Language.SPANISH || lang == null ? Dates.ES_DEFAULT_FORMAT : Dates.EU_DEFAULT_FORMAT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getDefaultDateFormat() {\n return getString(DATE_FORMAT_KEY, DEFAULT_DATE_FORMAT);\n }", "DateFormat getDisplayDateFormat();", "public static java.lang.String getDateFormat() {\r\n\t\treturn getDBLayer().getDateFormat();\r\n\t}", "public String getFormatDate() {\n String formatDate = servletRequest.getHeader(ConstantsCustomers.CUSTOMER_FORMAT_DATE);\n if (StringUtil.isEmpty(formatDate)) {\n formatDate = jwtTokenUtil.getFormatDateFromToken();\n }\n if (StringUtil.isEmpty(formatDate)) {\n formatDate = ConstantsCustomers.APP_DATE_FORMAT_ES;\n }\n return formatDate;\n }", "java.lang.String getLocale();", "public static void main(String[] args) {\n\t double d=123456.789;\r\n\t\tNumberFormat nf=NumberFormat.getInstance(Locale.ITALY);\r\n\t\tNumberFormat nf1=NumberFormat.getInstance(Locale.US);\r\n\t\tNumberFormat nf2=NumberFormat.getInstance(Locale.ENGLISH);\r\n\t\tSystem.out.println(\"Italy representation of \" + d + \" : \"+nf.format(d));\r\n\t\tSystem.out.println(\"US representation of \" + d + \" : \" +nf1.format(d));\r\n\t\tSystem.out.println(\"Japan representation of \" + d + \" : \" +nf2.format(d));\r\n\t\t\r\n\t //DateTimeFormat in short,long and medium with getDateTimeInstance\r\n\t\tDateFormat df=DateFormat.getDateTimeInstance(DateFormat.SHORT,DateFormat.SHORT);\r\n\t System.out.println(\"Short format of date: \"+df.format(new Date()));\r\n\t DateFormat df1=DateFormat.getDateTimeInstance(DateFormat.LONG,DateFormat.LONG);\r\n\t System.out.println(\"Long format of date: \"+df1.format(new Date()));\r\n\t DateFormat df2=DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.MEDIUM);\r\n\t System.out.println(\"Medium format of date: \"+df2.format(new Date()));\r\n\t \r\n\t //Locale date format giving countries starting letters to get time but using only getDateInstance(de-denmark)\r\n\t DateFormat df3=DateFormat.getDateInstance(DateFormat.SHORT,new Locale(\"de\",\"DE\"));\r\n\t System.out.println(\"Short format of date: \"+df3.format(new Date()));\r\n\t DateFormat df4=DateFormat.getDateInstance(DateFormat.LONG,new Locale(\"de\",\"DE\"));\r\n\t System.out.println(\"Long format of date: \"+df4.format(new Date()));\r\n\t DateFormat df5=DateFormat.getDateInstance(DateFormat.MEDIUM,new Locale(\"de\",\"DE\"));\r\n\t System.out.println(\"Medium format of date: \"+df5.format(new Date()));\r\n\t \r\n\r\n}", "public synchronized static DateFormat getDateFormat()\n\t{\n\t\treturn DATE_FORMAT;\n\t}", "private String getDateTime() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\", Locale.GERMANY);\n Date date = new Date();\n return dateFormat.format(date);\n }", "public String getStringDate(){\n String finalDate = \"\";\n Locale usersLocale = Locale.getDefault();\n DateFormatSymbols dfs = new DateFormatSymbols(usersLocale);\n String weekdays[] = dfs.getWeekdays();\n int day = date.get(Calendar.DAY_OF_WEEK);\n String nameOfDay = weekdays[day];\n\n finalDate += nameOfDay + \" \" + date.get(Calendar.DAY_OF_MONTH) + \", \";\n\n String months[] = dfs.getMonths();\n int month = date.get(Calendar.MONTH);\n String nameOfMonth = months[month];\n\n finalDate += nameOfMonth + \", \" + date.get(Calendar.YEAR);\n\n return finalDate;\n }", "public static DateFormat defaultFormat() {\n return convertFormat(Locale.getDefault(), \"dd/MM/yyyy hh:mma\");\n }", "DateFormat getSourceDateFormat();", "private String getTimeFormat() {\r\n return mData.getConfiguration(\"x-labels-time-format\", \"yyyy-MM-dd\");\r\n }", "protected abstract DateFormat getDateFormat();", "public static String convertToFrenshFormat(String date){\n Date d = null;\n if(String.valueOf(Locale.getDefault()).contains(\"en\")){\n d = changeDateFormat(date, \"MM/dd/yyyy\");\n Locale locale = Locale.FRENCH;\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, locale);\n return dateFormat.format(d);\n }\n else {\n return date;\n }\n }", "protected static SimpleDateFormat dateFormat() {\n return dateFormat(true, false);\n }", "java.lang.String getToDate();", "public String getFormatDate()\n {\n return formatDate;\n }", "public SimpleDateFormat getDateFormat(HttpServletRequest req) {\n\t\treturn new SimpleDateFormat(DateUtil.getDatePattern(getResourceBundle(req)), Constants.DEF_LOCALE_NUMBER);\n\t}", "private static SimpleDateFormat getDateFormat() {\r\n\t\tif(dateFormat == null)\r\n\t\t\tdateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\treturn dateFormat;\r\n\t}", "public final native String toLocaleDateString() /*-{\n return this.toLocaleDateString();\n }-*/;", "public String format (Date date , String dateFormat) ;", "public String getDateFormatString() {\n return this.dateFormatString;\n }", "public ProjectDateFormat getDateFormat()\r\n {\r\n return (m_dateFormat);\r\n }", "public static String defaultLocalFormat(String date){\n Locale locale = Locale.getDefault();\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.LONG, locale);\n return dateFormat.format(changeDateFormat(date, \"dd/MM/yyyy\"));\n }", "Culture createCulture();", "public static String getFormatedDate(Date date, Locale locale) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-nn-aaaa\"); \n \treturn formatter.format(date);\n }", "public String getDateFormate() {\n return mDateFormat;\n }", "public String getSQLDateFormat();", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\", Locale.getDefault());\n return dateFormat.format(dateObject);\n }", "java.lang.String getDate();", "public synchronized static DateFormat getDateTimeFormat()\n\t{\n\t\treturn DATE_TIME_FORMAT;\n\t}", "public String getDateFormats()\n {\n return dateFormats;\n }", "public String getDateTimeFormated(Context context){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\"\n , context.getResources().getConfiguration().locale);\n sdf.setTimeZone(TimeZone.getDefault());\n return sdf.format(new Date(mDateTime));\n //setting the dateformat to dd/MM/yyyy HH:mm:ss which is how the date is displayed when a dream is saved\n }", "private static java.text.SimpleDateFormat getFormatter() {\r\n\r\n\t\treturn getDBLayer().getDateFormatter();\r\n\t}", "public static String getDisplayDateFormat(Date val) {\n\n\t\tif (val != null) {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn \"\" + format.format(val);\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public static String formatterDate(Date date){\n\t\tString retour = null;\n\t\tif(date != null){\n\t\t\tretour = dfr.format(date);\n\t\t}\n\t\treturn retour;\n\t}", "public static void dateFormat() {\n }", "public DateFormat getDateFormat(){\n\treturn dateFormat;\n }", "public static String convertDateFormat(String date) {\n DateFormat originalFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n DateFormat targetFormat = new SimpleDateFormat(\"MMMM dd, yyyy\", Locale.ENGLISH);\n Date oldDate;\n try {\n oldDate = originalFormat.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n return targetFormat.format(oldDate);\n }", "public String getDateString() {\n DateFormat format = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return format.format(mDate);\n }", "private String leerFecha() {\n\t\ttry {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYY/MM/dd\");\n\t\t\treturn sdf.format(txtFecha.getDate());\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Seleccione una fecha válida\", \"Aviso\", 2);\n\t\t\treturn null;\n\t\t}\n\t}", "public static String getDateFormatForFileName() {\n final DateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HH-mm-ss\");\n return sdf.format(new Date());\n }", "public DateFormat getDateFormat() {\n\t\treturn dateFormat;\n\t}", "public static String getCurrentTime(String format,Locale localeFR) {\n\t\tString dateString = \"0000\";\n\t\ttry {\n//\t\t\tLocale localeFR = Locale.TAIWAN;\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(format,localeFR);\n\t\t\tDate d = new Date();\n\t\t\tdateString = formatter.format(d);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn dateString;\n\t}", "Locale getDefaultLocale();", "Locale getDefaultLocale();", "private static List<String> listDateFormats(){\r\n List<String> result = new ArrayList<String>();\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n result.add(\"yyyy-MM-ddZZ\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\r\n result.add(\"EEE MMM d hh:mm:ss z yyyy\");\r\n result.add(\"EEE MMM dd HH:mm:ss yyyy\");\r\n result.add(\"EEEE, dd-MMM-yy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yy HH:mm:ss z\");\r\n result.add(\"EEE, dd MMM yy HH:mm z\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss z\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss Z\");\r\n result.add(\"dd MMM yy HH:mm:ss z\");\r\n result.add(\"dd MMM yy HH:mm z\");\r\n result.add(\"'T'HH:mm:ss\");\r\n result.add(\"'T'HH:mm:ssZZ\");\r\n result.add(\"HH:mm:ss\");\r\n result.add(\"HH:mm:ssZZ\");\r\n result.add(\"yyyy-MM-dd\");\r\n result.add(\"yyyy-MM-dd hh:mm:ss\");\r\n result.add(\"yyyy-MM-dd HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy\");\r\n result.add(\"dd.MM.yyyy hh:mm:ss\");\r\n result.add(\"dd.MM.yyyy HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssz\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy hh:mm\");\r\n result.add(\"dd.MM.yyyy HH:mm\");\r\n result.add(\"dd/MM/yyyy\");\r\n result.add(\"dd/MM/yy\");\r\n result.add(\"MM/dd/yyyy\");\r\n result.add(\"MM/dd/yy\");\r\n result.add(\"MM/dd/yyyy hh:mm:ss\");\r\n result.add(\"MM/dd/yy hh:mm:ss\");\r\n return result;\r\n }", "public DateFormat getDateFormat() {\r\n return this.dateFormat;\r\n }", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\n return dateFormat.format(dateObject);\n }", "public final String obtenerFechaFormateada() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MMM/yyyy\");\n return fechaDeLaVisita.get().format(formatter);\n }", "private String formatDate(Date dateObject) {\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\r\n return dateFormat.format(dateObject);\r\n }", "java.lang.String getLanguage();", "java.lang.String getLanguage();", "public String getFormatedDate() {\n DateFormat displayFormat = new SimpleDateFormat(\"EEEE', ' dd. MMMM yyyy\", Locale.GERMAN);\n return displayFormat.format(mEvent.getTime());\n }", "public SimpleDateFormat getDateFormat(int displayType, Language language, String pattern) {\n\t\treturn null;\n\t}", "public DateFormat getDateFormat() {\n\t\treturn this.dateFormat;\n\t}", "String getDate();", "String getDate();", "private String easyDateFormat(final String format) {\n Date today = new Date();\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n String datenewformat = formatter.format(today);\n return datenewformat;\n }", "static String localDate(String date){\n Date d = changeDateFormat(date, \"dd/MM/yyyy\");\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return dateFormat.format(d);\n }", "String getCurrentLocaleString();", "private String createDate(){\n SimpleDateFormat date = new SimpleDateFormat(\"EEE, MMM d, yyyy\");\n String stringDate = date.format(new Date()); \n return stringDate;\n }", "ISimpleDateFormat createSDF(String format, String lang, String country, String tz);", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "private String getFecha() {\n\t\tLocalDateTime myDateObj = LocalDateTime.now();\n\t\tDateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n\t\tString formattedDate = myDateObj.format(myFormatObj);\n \n\t\treturn formattedDate;\n }", "public static String formatDateTime(Date date, Locale locale) {\n \t\treturn getDateTimeInstance(locale).format(date);\n \t}", "public static String getDate() {\n return getDate(DateUtils.BASE_DATE_FORMAT);\n }", "private static synchronized String getDefaultPattern() {\n\t\tULocale defaultLocale = ULocale.getDefault(Category.FORMAT);\n\t\tif (!defaultLocale.equals(cachedDefaultLocale)) {\n\t\t\tcachedDefaultLocale = defaultLocale;\n\t\t\tCalendar cal = Calendar.getInstance(cachedDefaultLocale);\n\t\t\ttry {\n\t\t\t\tCalendarData calData = new CalendarData(cachedDefaultLocale, cal.getType());\n\t\t\t\tString[] dateTimePatterns = calData.getDateTimePatterns();\n\t\t\t\tint glueIndex = 8;\n\t\t\t\tif (dateTimePatterns.length >= 13) {\n\t\t\t\t\tglueIndex += (SHORT + 1);\n\t\t\t\t}\n\t\t\t\tcachedDefaultPattern = MessageFormat.format(dateTimePatterns[glueIndex], new Object[] { dateTimePatterns[SHORT],\n\t\t\t\t\t\tdateTimePatterns[SHORT + 4] });\n\t\t\t} catch (MissingResourceException e) {\n\t\t\t\tcachedDefaultPattern = FALLBACKPATTERN;\n\t\t\t}\n\t\t}\n\t\treturn cachedDefaultPattern;\n\t}", "public String getDefaultDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMMM d, yyyy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "private String formatDate(String dateStr) {\n try {\n SimpleDateFormat fmt = new SimpleDateFormat(Properties.DATE_FORMAT_ALL);\n Date date = fmt.parse(dateStr);\n SimpleDateFormat fmtOut = new SimpleDateFormat(Properties.DATE_FORMAT);\n return fmtOut.format(date);\n } catch (ParseException e) {\n System.out.println( Properties.K_WARNING + \" \" + e.getMessage());\n }\n return \"\";\n }", "@Override\n protected SimpleDateFormat getDateFormat() {\n return dateFormat;\n }", "public static SimpleDateFormat getDayFormat() {\n return new SimpleDateFormat(\"EEE dd\");\n }", "public String getDateAsString(){\n\t\t//\tGet Date\n Date date = getDate();\n if(date != null)\n \treturn backFormat.format(date);\n\t\treturn null;\n\t}", "private String formatDate (Date date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss\", Locale.ENGLISH);\n return sdf.format(date);\n }", "public static String formatterDateUS(Date date){\n\t\tString retour = null;\n\t\tif(date != null){\n\t\t\tretour = df.format(date);\n\t\t}\n\t\treturn retour;\n\t}", "private String formatDate(String dateString) {\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"LLL dd, yyyy\");\n LocalDate localDate = LocalDate.parse(dateString.substring(0, 10));\n return dateTimeFormatter.format(localDate);\n }", "@NotNull\n public static String dateToString(Date date, String pattern, Locale locale) {\n DateFormat format = new SimpleDateFormat(pattern, locale);\n return format.format(date);\n }", "public static String getCurrentDateFormated(String dateFormat) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tint mYear = cal.get(Calendar.YEAR);\n\t\tint mMonth = cal.get(Calendar.MONTH);\n\t\tint mDay = cal.get(Calendar.DAY_OF_MONTH);\n\n\t\treturn formatDate(mYear,mMonth,mDay,DATE_FORMAT_DAYMONTHYEAR);\n\t}", "public String getDateConvert() {\n SimpleDateFormat dateFormat1 = new SimpleDateFormat(\"MMM dd yyyy - hh:mm\");\n SimpleDateFormat dateFormat2 = new SimpleDateFormat(\"a\");\n String date = dateFormat1.format(this.timePost) + dateFormat2.format(this.timePost).toLowerCase();\n return date;\n }", "private static String dateFormatLocal(Long timestamp) {\n DateFormat df = dateFormatLocal.get(); \n if (timestamp == null) {\n timestamp = System.currentTimeMillis();\n }\n \n return df.format(new Date(timestamp));\n }", "String getLanguage();", "String getLanguage();", "String getLanguage();", "public String getEntryDateString() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy MMM dd\");\n return sdf.format(entryDate.getTime());\n }", "private DateFormatsConfig getDateFormats()\r\n {\r\n ClasspathPreferencesPersistenceManager manager = new ClasspathPreferencesPersistenceManager();\r\n InternalPreferencesIF preferences = manager.load(MantleConstants.USER_DATE_FORMAT_CONFIG_FILE_TOPIC, null, false);\r\n\r\n DateFormatsConfig config = preferences.getJAXBObject(DateFormatsConfig.class, \"DateFormatConfig\", null);\r\n\r\n return config;\r\n }", "private String getFormattedDate(String date) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.received_import_date_format));\n SimpleDateFormat desiredDateFormat = new SimpleDateFormat(getString(R.string.desired_import_date_format));\n Date parsedDate;\n try {\n parsedDate = dateFormat.parse(date);\n return desiredDateFormat.format(parsedDate);\n } catch (ParseException e) {\n // Return an empty string in case of issues parsing the date string received.\n e.printStackTrace();\n return \"\";\n }\n }", "public static Date hoy_en_DATE() {\n Calendar cc = Calendar.getInstance();\n Date hoyEnDate = cc.getTime();\n return hoyEnDate;\n }", "@Override\n\tpublic String[] getFormats() {\n\t\treturn new String[] {\"yyyy-MM-dd'T'HH:mm:ss\",\"yyyy-MM-dd HH:mm:ss\",\"yyyy-MM-dd HH:mm\",\"yyyy-MM-dd'T'HH:mm\",\"yyyy-MM-dd HH\", \"yyyy-MM-dd\" };\n\t}", "public static String getDisplayFullDateFormat(Date val) {\n\n\t\tif (val != null) {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\n\t\t\t\t\t\"EEEE, MMMMM dd, yyyy\");\n\t\t\treturn \"\" + format.format(val);\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}", "public String getPrintFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }", "public String getDate()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"EE d MMM yyyy\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }", "public static void main(String[] args) {\n String s = FormatFecha.format(FormatFecha.FMT_ISO, new Date());\n System.out.println(\"Fecha: \" + s);\n //\"10/6/2010\" 2010-06-10\n }", "private String formatDueDate(Date date) {\n\t\t//TODO locale formatting via ResourceLoader\n\t\t\n\t\tif(date == null) {\n\t\t\treturn getString(\"label.studentsummary.noduedate\");\n\t\t}\n\t\t\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yy\");\n \treturn df.format(date);\n\t}", "public static synchronized String formatDate(Date d) {\n return dateFormat.format(d);\n }", "private static String getDateStr() {\n\t\tDate date = Calendar.getInstance().getTime();\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMddyyy\");\n\t\tString dateStr = dateFormat.format(date);\n\t\treturn dateStr;\n\t}", "public String formatDate (Date date){\r\n\t\tDateFormat df = new SimpleDateFormat(\"EEE, d MMM yyyy HH:mm:ss z\", Locale.ENGLISH);\r\n\t\treturn df.format(date);\r\n\t}", "public String getFileFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\"));\n }", "public String getArticleDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMM dd, yyyy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public static String getJavaDateFormat(String sDateformat)\r\n\t{\r\n\t\tString jDateFormat = null;\r\n\t\tDateFormatConfig dateFormat = null;\r\n\t\tdateFormat = getDateFormat(sDateformat);\r\n\t\tjDateFormat = dateFormat.getJavaDateFormat();\r\n\t\treturn jDateFormat;\r\n\r\n\t}", "public String getDateString(){\n return Utilities.dateToString(date);\n }" ]
[ "0.7067441", "0.7063968", "0.6919854", "0.6848742", "0.666181", "0.6660026", "0.6615121", "0.6560887", "0.6533782", "0.6514712", "0.6479731", "0.647352", "0.6441492", "0.6395259", "0.63300776", "0.6319692", "0.6288264", "0.62601477", "0.6198154", "0.61790925", "0.6175554", "0.61692166", "0.61585087", "0.61289144", "0.609601", "0.6056656", "0.60471827", "0.60419613", "0.60413444", "0.6018619", "0.59926337", "0.599184", "0.5981384", "0.5970178", "0.59695053", "0.59591067", "0.5956696", "0.59542376", "0.59512156", "0.5949423", "0.59376967", "0.5902275", "0.58954704", "0.5887816", "0.5876658", "0.5876658", "0.58743876", "0.5860106", "0.58597964", "0.58511955", "0.58473355", "0.58188355", "0.58188355", "0.5818339", "0.5818023", "0.5816937", "0.5811466", "0.5811466", "0.58053017", "0.58025235", "0.57976943", "0.57974654", "0.57963866", "0.5794592", "0.579361", "0.5792087", "0.5791636", "0.57904154", "0.5761533", "0.575666", "0.5753502", "0.5751801", "0.5751675", "0.57488084", "0.5745617", "0.57349694", "0.57078254", "0.5701082", "0.5685472", "0.5684289", "0.5681845", "0.5681845", "0.5681845", "0.567822", "0.5663766", "0.56580114", "0.56557435", "0.5642289", "0.56418407", "0.5636199", "0.56357455", "0.56235254", "0.56227887", "0.5618916", "0.5605518", "0.5605466", "0.55939955", "0.5591926", "0.55697984", "0.5562915" ]
0.7908429
0
Formats a date range
private static String _formatDateRange(final Range<Date> dateRange, final String dateFormat) { String dateRangeFormatted = null; LocalDate startLocalDate = new LocalDate(dateRange.getLowerBound()); LocalDate endLocalDate = new LocalDate(dateRange.getUpperBound()); if (startLocalDate.isEqual(endLocalDate)) { dateRangeFormatted = Strings.customized("{}", Dates.format(dateRange.getLowerBound(),dateFormat)); } else { dateRangeFormatted = Strings.customized("{} - {}", Dates.format(dateRange.getLowerBound(),dateFormat),Dates.format(dateRange.getUpperBound(),dateFormat)); } return dateRangeFormatted; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Method(selector = \"stringFromDate:toDate:\")\n public native String format(NSDate fromDate, NSDate toDate);", "public DateRange getDateRange();", "public static String format(com.google.api.client.util.DateTime start, com.google.api.client.util.DateTime end){\n DateTime startGood = new DateTime(start.getValue());\n DateTime endGood = new DateTime(end.getValue());\n return format(startGood) + \"-\" + formatTime(endGood);\n }", "void setDateRange(Date start, Date end);", "private static String dateRangeRestriction(String startDate, String endDate){\r\n String restriction = \"\";\r\n String[] startDateParts = startDate.split(\"/\");\r\n String[] endDateParts = endDate.split(\"/\");\r\n int prevYear = Integer.parseInt(endDateParts[0]) - 1; //year previus to End year\r\n int nextYear = Integer.parseInt(startDateParts[0]) + 1; //year next to End year\r\n if(prevYear-nextYear > 1){ // For intermediate years we may not care about days and months\r\n restriction += \" PubDate-Year:[\" + nextYear + \" TO \" + prevYear + \"] OR \";\r\n }\r\n if(endDateParts[0].equals(startDateParts[0])){ // Year of start and end is the same\r\n restriction += \"( +PubDate-Year:\" + endDateParts[0] \r\n + \" +PubDate-Month:[\" + startDateParts[1] + \" TO \" + endDateParts[1] \r\n + \"] +PubDate-Day:[\" + startDateParts[2] + \" TO \" + endDateParts[2] + \"])\";\r\n } else {\r\n restriction += \"( +PubDate-Year:\" + endDateParts[0] \r\n + \" +PubDate-Month:[ 01 TO \" + endDateParts[1] \r\n + \"] +PubDate-Day:[ 01 TO \" + endDateParts[2] + \"]) OR \"\r\n + \"( +PubDate-Year:\" + startDateParts[0] \r\n + \" +PubDate-Month:[ \" + startDateParts[1] + \" TO 12\" \r\n + \"] +PubDate-Day:[ \" + startDateParts[2] + \" TO 31 ])\";\r\n }\r\n restriction = \"(\" + restriction + \")\";\r\n return restriction;\r\n }", "String formatDateCondition(Date date);", "private String useRangeFormat(Unit units, int lowerBound, int upperBound) {\n return lowerBound + \" to \" + upperBound + getUnits(units, upperBound);\n }", "public static boolean validateRangeDate(String from, String to) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(DATE_FORMAT);\n if (validateDateFormat(from, DATE_FORMAT) && validateDateFormat(to, DATE_FORMAT)) {\n if (LocalDate.parse(from, formatter).isBefore(LocalDate.parse(to, formatter)) ||\n LocalDate.parse(from, formatter).isEqual(LocalDate.parse(to, formatter))) {\n return true;\n }\n }\n return false;\n }", "public String format (Date date , String dateFormat) ;", "public void formatDateTime() {\n // Check if type of parsing is for display or not. \n // If it is for display, no need to check if date has already passed.\n if (parseType != 2) {\n startDate = dtFormat.formatDate(startDate,0);\n endDate = dtFormat.formatDate(endDate,0);\n } else {\n startDate = dtFormat.formatDate(startDate,1);\n endDate = dtFormat.formatDate(endDate,1);\n }\n \n startTime = dtFormat.formatTime(startTime);\n endTime = dtFormat.formatTime(endTime);\n }", "public abstract String format(double lowerBound, double upperBound);", "@Override\n public void onDateRangeSelected(int startDay, int startMonth, int startYear, int endDay, int endMonth, int endYear) {\n DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault());\n Calendar c = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n c.set(startYear,startMonth,startDay);\n c2.set(endYear, endMonth,endDay);\n\n String dataInicio = \"Start \" + df.format(c.getTime()) + \"\\n\";\n String dataFim = \" End \" + df.format(c2.getTime()) ;\n\n txt_inform.setText(dataInicio);\n txt_inform.append(dataFim);\n\n }", "public static void main(String[] args) {\n DataFactory df = new DataFactory();\n Date minDate = df.getDate(2000, 1, 1);\n Date maxDate = new Date();\n \n for (int i = 0; i <=1400; i++) {\n Date start = df.getDateBetween(minDate, maxDate);\n Date end = df.getDateBetween(start, maxDate);\n System.out.println(\"Date range = \" + dateToString(start) + \" to \" + dateToString(end));\n }\n\n}", "public String getInDateTimeRangeToString(LocalDateTime start, LocalDateTime end) {\n List<FoodEntry> entriesInRange = FoodListManager.filterListByDate(foodEntries, start, end);\n return FoodListManager.convertListToString(entriesInRange);\n }", "public static void main(String[] args) {\n\t\t LocalDate ldt = LocalDate.of(2016,12,21);\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"yyyy-MMM-dd\");\n DateTimeFormatter format1 = DateTimeFormatter.ofPattern(\"YYYY-mmm-dd\");\n System.out.println(ldt.format(format));\n System.out.println(ldt.format(format1));\n\t}", "protected void addDateRange() {\n addFieldset(startDatePicker, \"Start Date\", \"startDate\");\n addFieldset(endDatePicker, \"End Date\", \"endDate\");\n }", "private ArticleSearchQuery.SearchCriterion parseDateRange(String dateRangeParam, LocalDate startDate, LocalDate endDate) {\n ArticleSearchQuery.SearchCriterion dateRange = ArticleSearchQuery.SolrEnumeratedDateRange.ALL_TIME;\n if (!Strings.isNullOrEmpty(dateRangeParam)) {\n dateRange = ArticleSearchQuery.SolrEnumeratedDateRange.valueOf(dateRangeParam);\n } else if (startDate != null && endDate != null) {\n dateRange = new ArticleSearchQuery.SolrExplicitDateRange(\"explicit date range\",\n startDate.toString(), endDate.toString());\n }\n return dateRange;\n }", "private static void formatDate (XmlDoc.Element date) throws Throwable {\n\t\tString in = date.value();\n\t\tString out = DateUtil.convertDateString(in, \"dd-MMM-yyyy\", \"yyyy-MM-dd\");\n\t\tdate.setValue(out);\n\t}", "private void addDateRangeFiltering(Map params, String dateProperty, Date startDate, Date endDate) {\n\n\t\t// date range filter is enabled\n\t\tif (dateProperty != null) {\n\n\t\t\tparams.put(IReportDAO.DATE_COLUMN, dateProperty);\n\t\t\tString check = (String) params.get(IReportDAO.DATE_COLUMN);\n\t\t\tif (check.equalsIgnoreCase(\"lastModifiedTime\")) {\n\t\t\t\t// from date\n\t\t\t\tparams.put(IReportDAO.FROM_DATE, null);\n\t\t\t\t// to date\n\t\t\t\tparams.put(IReportDAO.TO_DATE, null);\n\t\t\t} else {\n\t\t\t\t// from date\n\t\t\t\tparams.put(IReportDAO.FROM_DATE, startDate);\n\t\t\t\t// to date\n\t\t\t\tparams.put(IReportDAO.TO_DATE, endDate);\n\t\t\t}\n\n\t\t}\n\t}", "private void validateDateRange(String startDateStr, String endDateStr) {\n Date startDate = null;\n Date endDate = null;\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n \n try {\n if ((startDateStr != null) && (endDateStr != null)) {\n startDate = dateFormat.parse(startDateStr);\n endDate = dateFormat.parse(endDateStr);\n \n if ((startDate != null) && (endDate != null) && (startDate.after(endDate))) {\n throw new IllegalArgumentException(\n \"The date range is invalid. Start date ('\" + startDateStr + \n \"') should be less than end date ('\" + endDateStr + \"').\"); \t\n }\n }\n }\n catch (ParseException e) {\n logger.warn(\"Couldn't parse date string: \" + e.getMessage());\n }\n \n }", "public void setRange(Date lower, Date upper) {\n/* 610 */ if (lower.getTime() >= upper.getTime()) {\n/* 611 */ throw new IllegalArgumentException(\"Requires 'lower' < 'upper'.\");\n/* */ }\n/* 613 */ setRange(new DateRange(lower, upper));\n/* */ }", "@Test\n public void getBetweenDaysTest(){\n\n Date bDate = DateUtil.parse(\"2021-03-01\", DatePattern.NORM_DATE_PATTERN);//yyyy-MM-dd\n System.out.println(\"bDate = \" + bDate);\n Date eDate = DateUtil.parse(\"2021-03-15\", DatePattern.NORM_DATE_PATTERN);\n System.out.println(\"eDate = \" + eDate);\n List<DateTime> dateList = DateUtil.rangeToList(bDate, eDate, DateField.DAY_OF_YEAR);//创建日期范围生成器\n List<String> collect = dateList.stream().map(e -> e.toString(\"yyyy-MM-dd\")).collect(Collectors.toList());\n System.out.println(\"collect = \" + collect);\n\n }", "public void setRange(Range range) { setRange(range, true, true); }", "@Override\r\n public String toString() {\r\n return \"Range [\" + \"min=\" + min + \", max=\" + max + \"]\";\r\n }", "public RangeDate<Vente> getDateRange() {\n return dateRange;\n }", "@Override\n public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {\n String value = ISO8601Utils.format(date, true);\n toAppendTo.append(value);\n return toAppendTo;\n }", "private void dateRangeChanged(Context context) {\r\n\t\tClientFinanceDate todaydate = new ClientFinanceDate();\r\n\t\tString selectedOption = get(SHOWTRANSACTION_TYPE).getValue();\r\n\t\tif (selectedOption.equals(getMessages().all())) {\r\n\t\t\tstartDate = new ClientFinanceDate(0);\r\n\t\t\tendDate = new ClientFinanceDate(0);\r\n\t\t} else if (selectedOption.equals(getMessages().today())) {\r\n\t\t\tstartDate = todaydate;\r\n\t\t\tendDate = todaydate;\r\n\t\t} else if (selectedOption.equals(getMessages().last30Days())) {\r\n\t\t\tstartDate = new ClientFinanceDate(todaydate.getYear(),\r\n\t\t\t\t\ttodaydate.getMonth() - 1, todaydate.getDay());\r\n\t\t\tendDate = todaydate;\r\n\t\t} else if (selectedOption.equals(getMessages().last45Days())) {\r\n\t\t\tstartDate = new ClientFinanceDate(todaydate.getYear(),\r\n\t\t\t\t\ttodaydate.getMonth() - 2, todaydate.getDay() + 16);\r\n\t\t\tendDate = todaydate;\r\n\t\t}\r\n\t}", "private void getDateStartEnd(BudgetRecyclerView budget) {\n String viewByDate = budget.getDate();\n String[] dateArray = viewByDate.split(\"-\");\n for (int i = 0; i < dateArray.length; i++) {\n dateArray[i] = dateArray[i].trim();\n }\n startDate = CalendarSupport.convertStringToDate(dateArray[0]);\n endDate = CalendarSupport.convertStringToDate(dateArray[1]);\n }", "public String toString() { //toString method\n String startDateString2= \"\"; //Initialize\n try{\n Date date1 = new SimpleDateFormat(\"yyyyMMdd\").parse(full_Date);\n DateFormat df2 = new SimpleDateFormat(\"MMM dd, yyyy\");\n startDateString2 = df2.format(date1);\n \n return startDateString2;\n }catch(ParseException e){\n e.printStackTrace();\n }\n return startDateString2;\n \n}", "private Command createDisplayDateRangeNaturalLanguage(ArrayList<String> timeArray, List<Date> dates,\n SimpleDateFormat dateFormat) {\n Command command;\n Date fromDate = dates.get(0);\n Date toDate = dates.get(1);\n String formattedStartDate = dateFormat.format(fromDate);\n String formattedToDate = dateFormat.format(toDate);\n timeArray.add(formattedStartDate); \n timeArray.add(formattedToDate);\n command = new Command(\"display\", 3, timeArray);\n return command;\n }", "public void setRange(double lower, double upper) {\n/* 625 */ if (lower >= upper) {\n/* 626 */ throw new IllegalArgumentException(\"Requires 'lower' < 'upper'.\");\n/* */ }\n/* 628 */ setRange(new DateRange(lower, upper));\n/* */ }", "public static void main(String[] args) {\n\t\tLocalDate today=LocalDate.now();\n\t\t\n\t\tDateTimeFormatter dtf=DateTimeFormatter.ofPattern(\"YYYY/MM/DD\");\n\t\tDateTimeFormatter dtf1=DateTimeFormatter.ofPattern(\"YYYY MM DD\");\n\t\t\n\t\tDateTimeFormatter dtfull=DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL);\n\t\tDateTimeFormatter dtm=DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM);\n\t\tDateTimeFormatter dts=DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\n\t\t\n\t\t\n\t\tString afterformat=today.format(dtf);\n\t\tSystem.out.println(afterformat);\n\t\tString afterformat1=today.format(dtf1);\n\t\tSystem.out.println(afterformat1);\n\t\tString fd=today.format(dtfull);\n\t\tSystem.out.println(fd);\n\t\tString md=today.format(dtm);\n\t\tSystem.out.println(md);\n\t\tString sd=today.format(dts);\n\t\tSystem.out.println(sd);\n\t\t\n\t\t\n\n\t}", "protected static String expectedRangeString(Object minValue, boolean minInclusive, Object maxValue, boolean maxInclusive) {\n // A means for a return value\n String retVal;\n\n // Start with the proper symbol for the lower bound\n if (minInclusive) {\n retVal = \"[\";\n } else {\n retVal = \"(\";\n }\n\n // Add in the minimum and maximum values\n retVal += minValue + \" .. \" + maxValue;\n\n // End with the proper symbol for the upper bound\n if (maxInclusive) {\n retVal += \"]\";\n } else {\n retVal += \")\";\n }\n\n // Return the formatted string\n return retVal;\n }", "@Override\n public DebitReport getReport(Range<Date> range) {\n\n return DebitReport.builder()\n .debits(\n debitRepository.findByDateBetween(\n range.lowerEndpoint(),\n range.upperEndpoint())\n )\n .build();\n }", "private void setUp() {\r\n Calendar calendar1 = Calendar.getInstance();\r\n calendar1.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n calendar1.roll(Calendar.DAY_OF_YEAR, -6);\r\n \r\n Calendar calendar2 = Calendar.getInstance();\r\n calendar2.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n \r\n acceptedDatesRange[0] = calendar1.get(Calendar.DAY_OF_YEAR);\r\n acceptedDatesRange[1] = calendar2.get(Calendar.DAY_OF_YEAR); \r\n \r\n if(acceptedDatesRange[1] < 7) {\r\n acceptedDatesRange[0] = 1; \r\n }\r\n \r\n //MiscStuff.writeToLog(\"Ranges set \" + calendar1.get\r\n // (Calendar.DAY_OF_YEAR) + \" \" + calendar2.get(Calendar.DAY_OF_YEAR));\r\n }", "DateRange extractPeriod() throws InvalidDateRangeException {\r\n DateRange dr = null;\r\n int indexOfFrom = Arrays.asList(lowerParams).lastIndexOf(\"from\");\r\n int indexOfTo = Arrays.asList(lowerParams).lastIndexOf(\"to\");\r\n if (indexOfFrom >= 0 && indexOfTo >= 0) {\r\n paramsFromIndex = indexOfFrom;\r\n if (indexOfTo + 1 < lowerParams.length) {\r\n /*\r\n * Parse start date\r\n */\r\n String[] startCandidates = Arrays.copyOfRange(lowerParams,\r\n indexOfFrom + 1, indexOfTo);\r\n\r\n DateTime start = DateUtil.parse(startCandidates);\r\n\r\n if (start != null && start.getHour() == null) {\r\n start = initTimeToStartOfDay(start);\r\n }\r\n\r\n /*\r\n * Parsed end date\r\n */\r\n String[] endCandidates = Arrays.copyOfRange(lowerParams, indexOfTo + 1,\r\n lowerParams.length);\r\n DateTime end = DateUtil.parse(endCandidates);\r\n\r\n if (end != null && end.getHour() == null) {\r\n end = initTimeToEndOfDay(end);\r\n }\r\n\r\n if (start != null && end != null) {\r\n dr = new DateRange(start, end);\r\n }\r\n }\r\n }\r\n return dr;\r\n }", "void onClickDateRange();", "@Override\n\tpublic String[] getFormats() {\n\t\treturn new String[] {\"yyyy-MM-dd'T'HH:mm:ss\",\"yyyy-MM-dd HH:mm:ss\",\"yyyy-MM-dd HH:mm\",\"yyyy-MM-dd'T'HH:mm\",\"yyyy-MM-dd HH\", \"yyyy-MM-dd\" };\n\t}", "public void setDateRange(Date start, Date end)\n {\n descriptorManager.readFileDescriptors(start,end);\n }", "public boolean validDateRange() {\n\t\treturn dateEnd.compareTo(dateStart) > 0;\n\t}", "private static List<String> listDateFormats(){\r\n List<String> result = new ArrayList<String>();\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n result.add(\"yyyy-MM-ddZZ\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\r\n result.add(\"EEE MMM d hh:mm:ss z yyyy\");\r\n result.add(\"EEE MMM dd HH:mm:ss yyyy\");\r\n result.add(\"EEEE, dd-MMM-yy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss zzz\");\r\n result.add(\"EEE, dd MMM yy HH:mm:ss z\");\r\n result.add(\"EEE, dd MMM yy HH:mm z\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss z\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"EEE, dd MMM yyyy HH:mm:ss Z\");\r\n result.add(\"dd MMM yy HH:mm:ss z\");\r\n result.add(\"dd MMM yy HH:mm z\");\r\n result.add(\"'T'HH:mm:ss\");\r\n result.add(\"'T'HH:mm:ssZZ\");\r\n result.add(\"HH:mm:ss\");\r\n result.add(\"HH:mm:ssZZ\");\r\n result.add(\"yyyy-MM-dd\");\r\n result.add(\"yyyy-MM-dd hh:mm:ss\");\r\n result.add(\"yyyy-MM-dd HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssz\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n result.add(\"yyyy-MM-dd'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy\");\r\n result.add(\"dd.MM.yyyy hh:mm:ss\");\r\n result.add(\"dd.MM.yyyy HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssz\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ss\");\r\n result.add(\"dd.MM.yyyy'T'HH:mm:ssZZ\");\r\n result.add(\"dd.MM.yyyy hh:mm\");\r\n result.add(\"dd.MM.yyyy HH:mm\");\r\n result.add(\"dd/MM/yyyy\");\r\n result.add(\"dd/MM/yy\");\r\n result.add(\"MM/dd/yyyy\");\r\n result.add(\"MM/dd/yy\");\r\n result.add(\"MM/dd/yyyy hh:mm:ss\");\r\n result.add(\"MM/dd/yy hh:mm:ss\");\r\n return result;\r\n }", "private String formatDate(Date dateObject) {\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\r\n return dateFormat.format(dateObject);\r\n }", "java.lang.String getEndDateYYYY();", "@Override\n public String toString(){\n String format = \"%1$-30s %2$-20s %3$-20s %4$-12s %5$-3s %6$-12s\";\n return String.format(format, this.title, this.stream, this.type,\n this.start_date.format(DateTimeFormatter.ofPattern(data.daTiFormat)), \"-\", this.end_date.format(DateTimeFormatter.ofPattern(data.daTiFormat)));}", "public void setDefaultDateRange() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n Calendar todaysDate = Calendar.getInstance();\n toDateField.setText(dateFormat.format(todaysDate.getTime()));\n\n todaysDate.set(Calendar.DAY_OF_MONTH, 1);\n fromDateField.setText(dateFormat.format(todaysDate.getTime()));\n }", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\n return dateFormat.format(dateObject);\n }", "public void setRanges(List<Range> ranges) {\n this.ranges = ranges;\n }", "private String formatDate(String dateString) {\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"LLL dd, yyyy\");\n LocalDate localDate = LocalDate.parse(dateString.substring(0, 10));\n return dateTimeFormatter.format(localDate);\n }", "public void getRangeShowsList(JsonHttpResponseHandler handler, int page, String fromDate, String toDate) {\n RANGE_PAGE = page;\n client.get(RANGE_SHOWS_URL(fromDate, toDate), handler);\n }", "public String getDateFormats()\n {\n return dateFormats;\n }", "private static List<DateRange> transformeAdvancedCase(\n final ZonedDateTime startRange,\n final ZonedDateTime endRange,\n final List<DateRange> reservedRanges) {\n\n final List<DateRange> availabilityRanges = new ArrayList<>();\n final List<DateRange> reservedRangesExtended = new ArrayList<>(reservedRanges);\n\n // if first DateRange starts after startRange\n if (reservedRanges.get(0).getStartDate().isAfter(startRange)) {\n // add a synthetic range that ends at startRange. Its startDate is not important\n final DateRange firstSyntheticDateRange = new DateRange(startRange.minusDays(1), startRange);\n reservedRangesExtended.add(0, firstSyntheticDateRange);\n }\n\n // if last DateRange ends before endRange\n if (reservedRanges.get(reservedRanges.size() - 1).getEndDate().isBefore(endRange)) {\n // add a synthetic range that starts at endRange. Its endDate is not important\n final DateRange lastSyntheticDateRange = new DateRange(endRange, endRange.plusDays(1));\n reservedRangesExtended.add(lastSyntheticDateRange);\n }\n\n Iterator<DateRange> iterator = reservedRangesExtended.iterator();\n DateRange current = null;\n DateRange next = null;\n\n while (iterator.hasNext()) {\n\n // On the first run, take the value from iterator.next(), on consecutive runs,\n // take the value from 'next' variable\n current = (current == null) ? iterator.next() : next;\n\n final ZonedDateTime startDate = current.getEndDate();\n\n if (iterator.hasNext()) {\n next = iterator.next();\n final ZonedDateTime endDate = next.getStartDate();\n DateRange availabilityDate = new DateRange(startDate, endDate);\n availabilityRanges.add(availabilityDate);\n }\n }\n\n return availabilityRanges;\n }", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\", Locale.getDefault());\n return dateFormat.format(dateObject);\n }", "protected abstract String format();", "public void showBookingsByDates(JTextArea output, Date fromDate, Date toDate)\r\n {\r\n output.setText(\"Bookinger mellom \" \r\n + (DateFormat.getDateInstance(DateFormat.MEDIUM).format(fromDate)) \r\n + \" og \" + (DateFormat.getDateInstance(DateFormat.MEDIUM).format(toDate)) + \"\\n\\n\");\r\n \r\n Iterator<Booking> iter = bookings.iterator();\r\n \r\n while(iter.hasNext())\r\n {\r\n Booking booking = iter.next();\r\n \r\n if((booking.getToDate().compareTo(toDate) >= 0 &&\r\n booking.getFromDate().compareTo(fromDate) <= 0) ||\r\n (booking.getToDate().compareTo(toDate) <= 0) && \r\n booking.getFromDate().compareTo(fromDate) >= 0)\r\n {\r\n output.append(booking.toString() \r\n + \"\\n*******************************************************\\n\");\r\n }//End of if\r\n }// End of while\r\n }", "public static String dateBetweenParse(Date start, Date end) {\r\n String result = \"\";\r\n long temp;\r\n temp = DateUtil.between(start, end, DateUnit.DAY);\r\n result += temp + \"day\";\r\n start = DateUtil.offset(start, DateField.DAY_OF_YEAR, (int) temp);\r\n\r\n temp = DateUtil.between(start, end, DateUnit.HOUR);\r\n result += temp + \"hour\";\r\n start = DateUtil.offset(start, DateField.HOUR, (int) temp);\r\n\r\n temp = DateUtil.between(start, end, DateUnit.MINUTE);\r\n result += temp + \"minute\";\r\n start = DateUtil.offset(start, DateField.MINUTE, (int) temp);\r\n\r\n temp = DateUtil.between(start, end, DateUnit.SECOND);\r\n result += temp + \"second\";\r\n start = DateUtil.offset(start, DateField.SECOND, (int) temp);\r\n\r\n return result;\r\n }", "public String dateFormatter(String fromDate) {\n\t\tString newDateString=\"\";\n\t\ttry {\n\t\t\tfinal String oldFormat = \"yyyy/MM/dd\";\n\t\t\tfinal String newFormat = \"yyyy-MM-dd\";\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(oldFormat);\n\t\t\tDate d = sdf.parse(fromDate);\n\t\t\tsdf.applyPattern(newFormat);\n\t\t\tnewDateString = sdf.format(d);\n\t\t} catch(Exception exp) {\n\t\t\tthrow ExceptionUtil.getYFSException(ExceptionLiterals.ERRORCODE_INVALID_DATE, exp);\n\t\t}\n\t\treturn newDateString;\n\t}", "public static String formateDate(String date, String initDateFormat, String endDateFormat) throws ParseException {\n\t\t\n\t\treturn new SimpleDateFormat(endDateFormat).format( new SimpleDateFormat(initDateFormat).parse(date));\n//\t\treturn parsedDate;\n\n\t}", "public static void main(String[] args) throws ParseException {\n\n\t\tString startPattern = \"MMM yyyy\";\n\n\t\tString endPattern = \"MM-dd-yyyy\";\n\n\t\tString str = formateDate(\"mar 2019\", startPattern, endPattern);\n\t\tSystem.out.println(str);\n\n\t}", "private DateRangeFormatter calcCustomTimeFrame(int fromD, int fromM, int fromY, int toD, int toM, int toY) {\n\t\tif (reportRequest.getTimeFrame().getType() != TimeFrameType.CUSTOMIZED) return null;\n\t\t\n\t\tRange<Integer> correctDayRange = null;\n\t\tRange<Integer> days30 = new Range<Integer>(1, 30);\n\t\tRange<Integer> days31 = new Range<Integer>(1, 31);\n\t\tRange<Integer> days28 = new Range<Integer>(1, 28);\n\t\tRange<Integer> days29 = new Range<Integer>(1, 29);\n\t\tRange<Integer> months = new Range<Integer>(1, 12);\n\t\t\n\t\tLocalDate now = LocalDate.now();\n\t\tRange<Integer> years = new Range<Integer>(now.getYear() - 10, now.getYear() + 1);\n\t\t\n\t\t//check start year\n\t\tif (!years.intersects(fromY)) return null;\n\t\t\n\t\t//check start month\n\t\tif (!months.intersects(fromM)) return null;\n\t\t\n\t\t//check start day\n\t\tswitch(fromM) {\n\t\t\tcase 1: correctDayRange = days31; break;\n\t\t\tcase 2: {\n\t\t\t\t//check leap year\n\t\t\t\tif (fromY % 4 == 0) correctDayRange = days29;\n\t\t\t\telse correctDayRange = days28;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 3: correctDayRange = days31; break;\n\t\t\tcase 4: correctDayRange = days30; break;\n\t\t\tcase 5: correctDayRange = days31; break;\n\t\t\tcase 6: correctDayRange = days30; break;\n\t\t\tcase 7: correctDayRange = days31; break;\n\t\t\tcase 8: correctDayRange = days31; break;\n\t\t\tcase 9: correctDayRange = days30; break;\n\t\t\tcase 10: correctDayRange = days31; break;\n\t\t\tcase 11: correctDayRange = days30; break;\n\t\t\tcase 12: correctDayRange = days31; break;\n\t\t}\n\t\t\n\t\tif (!correctDayRange.intersects(fromD)) return null;\n\t\t\n\t\t//check end year\n\t\tif (!years.intersects(toY)) return null;\n\t\t\n\t\t//check end month\n\t\tif (!months.intersects(toM)) return null;\n\t\t\n\t\t//check end day\n\t\tswitch(toM) {\n\t\t\tcase 1: correctDayRange = days31; break;\n\t\t\tcase 2: {\n\t\t\t\t//check leap year\n\t\t\t\tif (toY % 4 == 0) correctDayRange = days29;\n\t\t\t\telse correctDayRange = days28;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 3: correctDayRange = days31; break;\n\t\t\tcase 4: correctDayRange = days30; break;\n\t\t\tcase 5: correctDayRange = days31; break;\n\t\t\tcase 6: correctDayRange = days30; break;\n\t\t\tcase 7: correctDayRange = days31; break;\n\t\t\tcase 8: correctDayRange = days31; break;\n\t\t\tcase 9: correctDayRange = days30; break;\n\t\t\tcase 10: correctDayRange = days31; break;\n\t\t\tcase 11: correctDayRange = days30; break;\n\t\t\tcase 12: correctDayRange = days31; break;\n\t\t}\n\t\t\n\t\tif (!correctDayRange.intersects(toD)) return null;\n\t\telse {\n\t\t\tLocalDate start = LocalDate.of(fromY, fromM, fromD);\n\t\t\tLocalDate end = LocalDate.of(toY, toM, toD);\n\t\t\treturn new DateRangeFormatter(start, end);\n\t\t}\n\t}", "Range createRange();", "public static DateTimeRangeHelper getDateTimeRange(String s) throws DukeException {\n try {\n String[] stringArr = s.split(\"-\");\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"d/M/yyyy HHmm\");\n LocalDateTime dateTime = LocalDateTime.parse(stringArr[0], formatter);\n DateTimeFormatter dukeFormatter = new DateTimeFormatterBuilder()\n .appendText(ChronoField.DAY_OF_MONTH, ordNo)\n .appendPattern(\" 'of' MMMM yyyy, h\")\n .toFormatter();\n\n DateTimeFormatter toFormatter = DateTimeFormatter.ofPattern(\"HHmm\");\n LocalTime toTime = LocalTime.parse(stringArr[1], toFormatter);\n DateTimeFormatter toTimeFormatter = DateTimeFormatter.ofPattern(\"ha\");\n\n String st = dateTime.format(dukeFormatter) + \"-\" + toTime.format(toTimeFormatter);\n\n return new DateTimeRangeHelper(dateTime.toLocalTime(), toTime, dateTime.toLocalDate(), st);\n\n } catch (Exception ex) {\n throw new DukeException(\"I don't think that was a valid event\");\n }\n\n }", "private String formatDate(String dateStr) {\n try {\n SimpleDateFormat fmt = new SimpleDateFormat(Properties.DATE_FORMAT_ALL);\n Date date = fmt.parse(dateStr);\n SimpleDateFormat fmtOut = new SimpleDateFormat(Properties.DATE_FORMAT);\n return fmtOut.format(date);\n } catch (ParseException e) {\n System.out.println( Properties.K_WARNING + \" \" + e.getMessage());\n }\n return \"\";\n }", "abstract public Range createRange();", "public void setDateFormats(String dateFormats)\n {\n this.dateFormats = dateFormats;\n }", "public static String formatDate(String date){\n String formatedDate = date;\n if (!date.matches(\"[0-9]{2}-[0-9]{2}-[0-9]{4}\")){\n if (date.matches(\"[0-9]{1,2}/[0-9]{1,2}/([0-9]{2}|[0-9]{4})\"))\n formatedDate = date.replace('/', '-');\n if (date.matches(\"[0-9]{1,2}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\")){\n if (formatedDate.matches(\"[0-9]{1}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = \"0\" + formatedDate;\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{1}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = formatedDate.substring(0, 3) + \"0\" + \n formatedDate.substring(3);\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{2}.[0-9]{2}\")){\n String thisYear = String.valueOf(LocalDate.now().getYear());\n String century = thisYear.substring(0,2);\n /* If the last two digits of the date are larger than the two last digits of \n * the current date, then we can suppose that the year corresponds to the last \n * century.\n */ \n if (Integer.valueOf(formatedDate.substring(6)) > Integer.valueOf(thisYear.substring(2)))\n century = String.valueOf(Integer.valueOf(century) - 1);\n formatedDate = formatedDate.substring(0, 6) + century +\n formatedDate.substring(6); \n }\n }\n }\n return formatedDate;\n }", "public void setRange(Range range, boolean turnOffAutoRange, boolean notify) {\n/* */ DateRange dateRange;\n/* 593 */ ParamChecks.nullNotPermitted(range, \"range\");\n/* */ \n/* */ \n/* 596 */ if (!(range instanceof DateRange)) {\n/* 597 */ dateRange = new DateRange(range);\n/* */ }\n/* 599 */ super.setRange(dateRange, turnOffAutoRange, notify);\n/* */ }", "private void verifyPeriod(Date start, Date end){\n List dates = logRepositoy.findAllByDateGreaterThanEqualAndDateLessThanEqual(start, end);\n if(dates.isEmpty()){\n throw new ResourceNotFoundException(\"Date range not found\");\n }\n }", "private void add_range(Question q)\n\t{\n\t\tlog.debug(\"Question \" + q.getQid() + \" is getting checked for ranges\");\n\t\tString min = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='min_num_value_n']/value\").getText();\n\t\tString max = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='max_num_value_n']/value\").getText();\n\n\t\tif (min != \"\") {\n\t\t\tq.setFloat_range_min(min);\n\t\t}\n\t\tif (max != \"\") {\n\t\t\tq.setFloat_range_max(max);\n\t\t}\n\t\tlog.debug(\"range check finished\");\n\t}", "public static ArrayList<String> datespanToList(String datePattern,String dateSpan)\n\t{\n\t\tArrayList<String> listDate = new ArrayList<String>();\n\t\tString fromDate = \"\";\n\t\tString toDate = \"\";\n\t\tint index = dateSpan.indexOf(\"-\");\n\t\tif(index!=-1)\n\t\t{\n\t\t\tfromDate = dateSpan.substring(0,index);\n//\t\t\tSystem.out.println(\"fromDate=\"+fromDate);\n\t\t\ttoDate = dateSpan.substring(index+1);\n//\t\t\tSystem.out.println(\"toDate=\"+toDate);\n\t\t\tif(fromDate.compareTo(toDate)>0)\n\t\t\t\treturn listDate;\n\t\t\tCalendar c = Calendar.getInstance();\n\t\t\tDate d;\n\t\t\ttry {\n\t\t\t\tSimpleDateFormat sf = new SimpleDateFormat(datePattern);\n\t\t\t\td = sf.parse(fromDate);\n\t\t\t\tc.setTime(d);\n//\t\t\t\tSystem.out.println(TimeOperator.timeFormatConvert(\"yyMMdd\",c.getTime()));\n\t\t\t\tString tempDate = \"\";\n\t\t\t\tfor(int i=1;i<5000;i++)//should not be more than 5000 days!\n\t\t\t\t{\n\t\t\t\t\ttempDate = TimeOperator.timeFormatConvert(datePattern,c.getTime());\n\t\t\t\t\tlistDate.add(tempDate);\n\t\t\t\t\tif(toDate.equals(tempDate))\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tc.add(Calendar.DAY_OF_MONTH, 1);\n\t\t\t\t}\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tlistDate.add(dateSpan);\n\t\treturn listDate;\n\t}", "private String formatDate(final Date date) {\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(date);\r\n\r\n\t\tfinal String dayOfMonth = formatDayOfMonth(calendar);\r\n\t\tfinal String month = formatMonth(calendar);\r\n\t\tfinal String year = String.valueOf(calendar.get(Calendar.YEAR));\r\n\r\n\t\treturn String.format(\"%s/%s/%s\", year, month, dayOfMonth);\r\n\t}", "public DateRange(@NotNull DateRange dr) {\r\n startDate = dr.startDate != null ? dr.startDate.copy() : null;\r\n endDate = dr.endDate != null ? dr.endDate.copy() : null;\r\n interval = dr.interval;\r\n }", "void setEndRange( String endRange );", "@Test\n public void testDateRangeValidDate() throws Exception {\n Map<String, String> fields = new HashMap<String, String>();\n fields.put(\"generatedTimestamp\", \"12/31/1981\");\n \n this.addSingleDayDateRange.invoke(this.lockService, fields);\n \n Assert.assertEquals(\"does not contain valid date range \" + fields.get(\"generatedTimestamp\"),\n \"12/31/1981..01/01/1982\", fields.get(\"generatedTimestamp\"));\n }", "@Override\n public BigDecimal getStatement(Range<Date> range) {\n return null;\n }", "private String generateRangeURL(Integer instanceID, Integer startRange, Integer endRange) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/range?start_range=\"\n\t\t\t\t+ Integer.toString(startRange) + \"&end_range=\" + Integer.toString(endRange);\n\t}", "protected void autoAdjustRange() {\n/* 1284 */ Plot plot = getPlot();\n/* */ \n/* 1286 */ if (plot == null) {\n/* */ return;\n/* */ }\n/* */ \n/* 1290 */ if (plot instanceof ValueAxisPlot) {\n/* 1291 */ ValueAxisPlot vap = (ValueAxisPlot)plot;\n/* */ \n/* 1293 */ DateRange dateRange = vap.getDataRange(this);\n/* 1294 */ if (dateRange == null) {\n/* 1295 */ if (this.timeline instanceof SegmentedTimeline) {\n/* */ \n/* */ \n/* */ \n/* 1299 */ DateRange dateRange1 = new DateRange(((SegmentedTimeline)this.timeline).getStartTime(), (((SegmentedTimeline)this.timeline).getStartTime() + 1L));\n/* */ }\n/* */ else {\n/* */ \n/* 1303 */ dateRange = new DateRange();\n/* */ } \n/* */ }\n/* */ \n/* 1307 */ long upper = this.timeline.toTimelineValue(\n/* 1308 */ (long)dateRange.getUpperBound());\n/* */ \n/* 1310 */ long fixedAutoRange = (long)getFixedAutoRange();\n/* 1311 */ if (fixedAutoRange > 0.0D) {\n/* 1312 */ lower = upper - fixedAutoRange;\n/* */ } else {\n/* */ \n/* 1315 */ lower = this.timeline.toTimelineValue((long)dateRange.getLowerBound());\n/* 1316 */ double range = (upper - lower);\n/* 1317 */ long minRange = (long)getAutoRangeMinimumSize();\n/* 1318 */ if (range < minRange) {\n/* 1319 */ long expand = (long)(minRange - range) / 2L;\n/* 1320 */ upper += expand;\n/* 1321 */ lower -= expand;\n/* */ } \n/* 1323 */ upper += (long)(range * getUpperMargin());\n/* 1324 */ lower -= (long)(range * getLowerMargin());\n/* */ } \n/* */ \n/* 1327 */ upper = this.timeline.toMillisecond(upper);\n/* 1328 */ long lower = this.timeline.toMillisecond(lower);\n/* 1329 */ DateRange dr = new DateRange(new Date(lower), new Date(upper));\n/* 1330 */ setRange(dr, false, false);\n/* */ } \n/* */ }", "protected abstract R toRange(D lower, D upper);", "public static String formatDate(Date date) {\n\t\tString newstring = new SimpleDateFormat(\"MM-dd-yyyy\").format(date);\n\t\treturn newstring;\n\t}", "java.lang.String getStartDateYYYY();", "Builder addTypicalAgeRange(Text value);", "public static String calFormatDateDifference(final Date start, final Date end) {\r\n\t\tlong l1 = start.getTime();\r\n\t\tlong l2 = end.getTime();\r\n\t\tlong diff = l2 - l1;\r\n\r\n\t\tlong secondInMillis = 1000;\r\n\t\tlong minuteInMillis = secondInMillis * 60;\r\n\t\tlong hourInMillis = minuteInMillis * 60;\r\n\t\tlong dayInMillis = hourInMillis * 24;\r\n\t\tlong yearInMillis = dayInMillis * 365;\r\n\r\n\t\tlong elapsedYears = diff / yearInMillis;\r\n\t\tdiff = diff % yearInMillis;\r\n\t\tlong elapsedDays = diff / dayInMillis;\r\n\t\tdiff = diff % dayInMillis;\r\n\t\tlong elapsedHours = diff / hourInMillis;\r\n\t\tdiff = diff % hourInMillis;\r\n\t\tlong elapsedMinutes = diff / minuteInMillis;\r\n\t\tdiff = diff % minuteInMillis;\r\n\t\tlong elapsedSeconds = diff / secondInMillis;\r\n\t\t\r\n\t\treturn elapsedYears + \" years, \" + elapsedDays + \" days, \" + elapsedHours + \" hrs, \" + elapsedMinutes + \" mins, \" + elapsedSeconds + \" secs\";\r\n\t}", "public String changeDateTimeFormat(String dateStr) {\n String inputPattern = \"MMM-dd-yyyy hh:mm a\";\n String outputPattern = \"MMMM dd, yyyy hh:mm a\";\n SimpleDateFormat inputFormat = new SimpleDateFormat(inputPattern);\n SimpleDateFormat outputFormat = new SimpleDateFormat(outputPattern);\n\n Date date = null;\n String str = null;\n\n try {\n date = inputFormat.parse(dateStr);\n str = outputFormat.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return str;\n\n }", "@Override\n public void visitRange( int start, int end )\n {\n if ( end <= Character.MAX_VALUE )\n {\n codePoint( output, start );\n output.append( '-' );\n codePoint( output, end );\n }\n else if ( start <= Character.MAX_VALUE )\n {\n codePoint( output, start );\n output.append( '-' );\n // truncate the range\n codePoint( output, Character.MAX_VALUE );\n }\n // just skip larger values\n }", "public static String formatDateForQuery(java.util.Date date){\n return (new SimpleDateFormat(\"yyyy-MM-dd\")).format(date);\n }", "protected String getToolTipTextForDate(JaretDate date, Range range) {\n String str;\n if (range == Range.HOUR) {\n str = date.toDisplayString();\n } else {\n str = date.toDisplayStringDate();\n }\n return str;\n }", "@Bean(name = \"dateFormatter\")\n public SimpleDateFormat dateFormatter() {\n return new SimpleDateFormat(\"dd/MM/yyyy\");\n }", "java.lang.String getStartDateYYYYMMDD();", "@Test\n void calculatePeriodRangeOver2Years() throws ParseException {\n LocalDate testDateStart = LocalDate.parse(\"2013-03-07\");\n LocalDate testDateEnd = LocalDate.parse(\"2017-12-17\");\n Map<String, String> periodMap = datesHelper.calculatePeriodRange(testDateStart, testDateEnd, false);\n assertEquals(\"57 months\", periodMap.get(PERIOD_START));\n assertEquals(\"17 December 2017\", periodMap.get(PERIOD_END));\n }", "void format();", "public static String getFormattedDate(String dateStr, String toformat)\r\n\t{\r\n\t\tString mName = \"getFormattedDate()\";\r\n\t\tIDateFormatter dateFormatter = null;\r\n\t\tDateFormatConfig dateFormat = null;\r\n\t\tString formattedDate = null;\r\n\t\tdateFormat = getDateFormat(toformat);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdateFormatter = (IDateFormatter) ResourceLoaderUtils.createInstance(dateFormat.getFormatterClass(),\r\n\t\t\t\t\t(Object[]) null);\r\n\t\t\tformattedDate = dateFormatter.formatDate(dateStr, dateFormat.getJavaDateFormat());\r\n\t\t} catch (Exception exp)\r\n\t\t{\r\n\t\t\tlogger.cterror(\"CTBAS00112\", exp, mName);\r\n\r\n\t\t}\r\n\t\treturn formattedDate;\r\n\t}", "public void zoomRange(double lowerPercent, double upperPercent) {\n/* */ long adjEnd, adjStart;\n/* 1891 */ double start = this.timeline.toTimelineValue(\n/* 1892 */ (long)getRange().getLowerBound());\n/* 1893 */ double end = this.timeline.toTimelineValue(\n/* 1894 */ (long)getRange().getUpperBound());\n/* 1895 */ double length = end - start;\n/* */ \n/* */ \n/* 1898 */ if (isInverted()) {\n/* 1899 */ adjStart = (long)(start + length * (1.0D - upperPercent));\n/* 1900 */ adjEnd = (long)(start + length * (1.0D - lowerPercent));\n/* */ } else {\n/* */ \n/* 1903 */ adjStart = (long)(start + length * lowerPercent);\n/* 1904 */ adjEnd = (long)(start + length * upperPercent);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1909 */ if (adjEnd <= adjStart) {\n/* 1910 */ adjEnd = adjStart + 1L;\n/* */ }\n/* */ \n/* 1913 */ DateRange dateRange = new DateRange(this.timeline.toMillisecond(adjStart), this.timeline.toMillisecond(adjEnd));\n/* 1914 */ setRange(dateRange);\n/* */ }", "private Filter rangeFilter(String start, String end, Object minValue, Object maxValue) {\n Filter f1 = FF.lessOrEqual(FF.property(start), FF.literal(maxValue));\n Filter f2 = FF.greaterOrEqual(FF.property(end), FF.literal(minValue));\n return FF.and(Arrays.asList(f1, f2));\n\n// Filter f1 = FF.greaterOrEqual(FF.property(start), FF.literal(minValue));\n// Filter f2 = FF.lessOrEqual(FF.property(end), FF.literal(maxValue));\n// return FF.and(Arrays.asList(f1, f2));\n }", "private static Date dateToString(Date start) {\n\t\treturn start;\n\t}", "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }", "DateFormat getSourceDateFormat();", "DbQuery setRangeFilter(int startValue, int endValue) {\n return setRangeFilter((double) startValue, (double) endValue);\n }", "public String toDatedString(LocalDateTime start, LocalDateTime end) {\n List<FoodEntry> entriesInRange = FoodListManager.filterListByDate(foodEntries, start, end);\n return FoodListManager.convertListToDatedString(entriesInRange);\n }", "public interface Format {\n public static final String PATTERN_DATE = \"yyyy-MM-dd\";\n public static final String PATTERN_DATE_YEAR = \"yyyy\";\n}", "@Test\n public void testResponseGivenARangeOfInvalidDates(){\n String startDate = \"1990-02-20\";\n String endDate = \"2030-01-09\";\n String dateParamExtension = \"&start_date=\" + startDate + \"&end_date=\" + endDate;\n try {\n response = restTemplate.getForObject(templateUrl + apiKey + dateParamExtension, String.class);\n } catch (HttpClientErrorException ex) {\n Assert.assertEquals(\"Bad request response code should be returned from server\", 400, ex.getRawStatusCode());\n }\n }", "public void setRange(String new_range) {\n\t\t_range = new_range;\n\t}" ]
[ "0.63918215", "0.6358707", "0.6072305", "0.59788495", "0.5830662", "0.574824", "0.5681422", "0.56634027", "0.5634396", "0.5577455", "0.55639213", "0.5557548", "0.5525696", "0.54854", "0.5423078", "0.5357201", "0.53429854", "0.5337522", "0.5331969", "0.5313436", "0.518972", "0.51786923", "0.51665354", "0.5153439", "0.5147299", "0.51255935", "0.5107607", "0.5102346", "0.5094991", "0.50929433", "0.5088027", "0.5066317", "0.5056815", "0.5055313", "0.50551057", "0.50247514", "0.5021553", "0.5004556", "0.49961695", "0.49936524", "0.49808255", "0.49744335", "0.49681768", "0.49669", "0.49548197", "0.49521482", "0.49470508", "0.49236476", "0.49060327", "0.49053177", "0.4903602", "0.48793566", "0.48668867", "0.48553085", "0.4852387", "0.4846173", "0.48362613", "0.48348165", "0.48341846", "0.48252153", "0.4814439", "0.48097196", "0.4809061", "0.47914517", "0.47778428", "0.4775989", "0.47722897", "0.4769629", "0.4768451", "0.47636127", "0.47609964", "0.47494417", "0.4745915", "0.4744535", "0.47341603", "0.47294715", "0.47109297", "0.4696929", "0.46966654", "0.46941617", "0.46940714", "0.46867925", "0.46852064", "0.46837708", "0.46771735", "0.46692693", "0.46673933", "0.46636868", "0.4660035", "0.4658473", "0.46571934", "0.46570095", "0.46568102", "0.46512237", "0.46484455", "0.46445176", "0.4636593", "0.4632582", "0.4625807", "0.46246824" ]
0.7700298
0
Home interface for Enterprise Bean: CfgDocument
public interface CfgDocumentHome extends javax.ejb.EJBHome { /** * Creates an instance from a key for Entity Bean: CfgDocument */ /* public com.hps.july.persistence.CfgDocument create( int document, com.hps.july.persistence.Organization argOwner, com.hps.july.persistence.StoragePlace argTo, com.hps.july.persistence.Organization argContragent, com.hps.july.persistence.StoragePlace argFrom, com.hps.july.persistence.Worker argStorageManager) throws javax.ejb.CreateException, java.rmi.RemoteException; */ /** * Finds an instance using a key for Entity Bean: CfgDocument */ public com.hps.july.persistence.CfgDocument findByPrimaryKey( com.hps.july.persistence.DocumentKey primaryKey) throws javax.ejb.FinderException, java.rmi.RemoteException; public com.hps.july.persistence.CfgDocument create( int argDocument, Integer argOwner, Integer argFrom, Integer argTo, java.sql.Date argBlankDate, int argBlankindex, String argBlankNumber, String argState, Boolean argProcessSource, Boolean argProcessDestination, int SavconfigIdOld, int SavconfigIdNew) throws javax.ejb.CreateException, java.rmi.RemoteException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CfgDocument extends com.hps.july.persistence.Document, com.ibm.ivj.ejb.runtime.CopyHelper {\n\n\n\n\t/**\n\t * Get accessor for persistent attribute: savconfigidold\n\t */\n\tpublic int getSavconfigidold() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: savconfigidold\n\t */\n\tpublic void setSavconfigidold(int newSavconfigidold)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: savconfigidnew\n\t */\n\tpublic int getSavconfigidnew() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: savconfigidnew\n\t */\n\tpublic void setSavconfigidnew(int newSavconfigidnew)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: storedem\n\t */\n\tpublic java.lang.Integer getStoredem() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: storedem\n\t */\n\tpublic void setStoredem(java.lang.Integer newStoredem)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: storebad\n\t */\n\tpublic java.lang.Integer getStorebad() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: storebad\n\t */\n\tpublic void setStorebad(java.lang.Integer newStorebad)\n\t\tthrows java.rmi.RemoteException;\n}", "cdfgFactory getcdfgFactory();", "public interface Config {\n public final String contentOfDocument=\"contentOfDoc\";\n public final String docId=\"docId\";\n public final String baseIp=\"http://irlab.daiict.ac.in/Annotation_Interface\";\n public final String sentenceFolder=\"sentences\";\n public final String savedSentenceEnd=\"savedSentenceEnd\";\n public final String savedSentenceStart=\"savedSentenceStart\";\n public final String docName=\"doc_name\";\n public final String relationFolder=\"relationsFolder\";\n public final String savedRelation=\"savedRelation\";\n public final String loginPrefs=\"loginFolder\";\n public final String isLoggedIn=\"isLoggedIn\";\n public final String userName=\"userName\";\n public final String password=\"password\";\n public final String relation=\"relation\";\n public final String checkedRelation=\"checkedRelation\";\n}", "public interface IConfiguration extends ISessionAwareObject {\n\n\tString ENV_SOPECO_HOME = \"SOPECO_HOME\";\n\n\tString CONF_LOGGER_CONFIG_FILE_NAME = \"sopeco.config.loggerConfigFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION_FILE_NAME = \"sopeco.config.measurementSpecFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION = \"sopeco.config.measurementSpecification\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_URI = \"sopeco.config.measurementControllerURI\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_CLASS_NAME = \"sopeco.config.measurementControllerClassName\";\n\n\tString CONF_APP_NAME = \"sopeco.config.applicationName\";\n\n\tString CONF_MAIN_CLASS = \"sopeco.config.mainClass\";\n\n\tString CONF_MEC_ACQUISITION_TIMEOUT = \"sopeco.config.MECAcquisitionTimeout\";\n\n\n\tString CONF_MEC_SOCKET_RECONNECT_DELAY = \"sopeco.config.mec.reconnectDelay\";\n\n\tString CONF_HTTP_PROXY_HOST = \"sopeco.config.httpProxyHost\";\n\t\n\tString CONF_HTTP_PROXY_PORT = \"sopeco.config.httpProxyPort\";\n\n\t\n\tString CONF_DEFINITION_CHANGE_HANDLING_MODE = \"sopeco.config.definitionChangeHandlingMode\";\n\tString DCHM_ARCHIVE = \"archive\";\n\tString DCHM_DISCARD = \"discard\";\n\n\tString CONF_SCENARIO_DEFINITION_PACKAGE = \"sopeco.config.xml.scenarioDefinitionPackage\";\n\t/** Holds the path to the root folder of SoPeCo. */\n\tString CONF_APP_ROOT_FOLDER = \"sopeco.config.rootFolder\";\n\tString CONF_EXPERIMENT_EXECUTION_SELECTION = \"sopeco.engine.experimentExecutionSelection\";\n\t/**\n\t * Holds the path to the plugins folder, relative to the root folder of\n\t * SoPeCo.\n\t */\n\tString CONF_PLUGINS_DIRECTORIES = \"sopeco.config.pluginsDirs\";\n\n\tString CLA_EXTENSION_ID = \"org.sopeco.config.commandlinearguments\";\n\n\t/** Folder for configuration files relative to the application root folder */\n\tString DEFAULT_CONFIG_FOLDER_NAME = \"config\";\n\n\tString DEFAULT_CONFIG_FILE_NAME = \"sopeco-defaults.conf\";\n\n\tString DIR_SEPARATOR = \":\";\n\t\n\tString EXPERIMENT_RUN_ABORT = \"org.sopeco.experiment.run.abort\";\n\n\t/**\n\t * Export the configuration as a key-value map. Both, the default ones and the ones in the\n\t * system environment are included.\n\t * \n\t * @return a key-value representation of the configuration\n\t * \n\t * @deprecated Use {@code exportConfiguration()} and {@code exportDefaultConfiguration}.\n\t */\n\t@Deprecated\n\tMap<String, Object> getProperties();\n\t\n\t/**\n\t * Exports the configuration as a key-value map. The default configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportConfiguration();\n\t\n\t/**\n\t * Exports the default configuration as a key-value map. The actual configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportDefaultConfiguration();\n\t\n\t/**\n\t * Imports the configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Imports the default configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid overwriteConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the default configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the default configuration\n\t */\n\tvoid overwriteDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Returns the configured value of the given property in SoPeCo.\n\t * \n\t * It first looks up the current SoPeCo configuration, if there is no value\n\t * defined there, looks up the system properties, if no value is defined\n\t * there, then loads it from the default values; in case of no default\n\t * value, returns null.\n\t * \n\t * @param key\n\t * property key\n\t * @return Returns the configured value of the given property in SoPeCo.\n\t */\n\tObject getProperty(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a String.\n\t * \n\t * This method calls the {@link Object#toString()} of the property value and\n\t * is for convenience only. If the given property is not set, it returns\n\t * <code>null</code>.\n\t * \n\t * @param key\n\t * property key\n\t * \n\t * @see #getProperty(String)\n\t * @return Returns the configured value of the given property as a String.\n\t */\n\tString getPropertyAsStr(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a Boolean value.\n\t * \n\t * This method uses the {@link #getPropertyAsStr(String)} and interprets\n\t * values 'yes' and 'true' (case insensitive) as a Boolean <code>true</code>\n\t * value and all other values as <code>false</code>. If the value of the\n\t * given property is <code>null</code> it returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a boolean\n\t * \n\t * @see #getProperty(String)\n\t */\n\tboolean getPropertyAsBoolean(String key, boolean defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Long value.\n\t * \n\t * This method uses the {@link Long.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a long\n\t * \n\t * @see #getProperty(String)\n\t */\n\tlong getPropertyAsLong(String key, long defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Double value.\n\t * \n\t * This method uses the {@link Double.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a double\n\t * \n\t * @see #getProperty(String)\n\t */\n\tdouble getPropertyAsDouble(String key, double defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as an Integer value.\n\t * \n\t * This method uses the {@link Integer.#parseInt(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as an int\n\t * \n\t * @see #getProperty(String)\n\t */\n\tint getPropertyAsInteger(String key, int defaultValue);\n\n\t/**\n\t * Sets the value of a property for the current run.\n\t * \n\t * @param key\n\t * property key\n\t * @param value\n\t * property value\n\t */\n\tvoid setProperty(String key, Object value);\n\n\t/**\n\t * Clears the value of the given property in all layers of configuration,\n\t * including the system property environment.\n\t * \n\t * @param key the property\n\t */\n\tvoid clearProperty(String key);\n\n\t/**\n\t * Returns the default value (ignoring the current runtime configuration)\n\t * for a given property.\n\t * \n\t * @param key\n\t * porperty key\n\t * \n\t * @return Returns the default value for a given property.\n\t */\n\tObject getDefaultValue(String key);\n\n\t/**\n\t * Processes the given command line arguments, the effects of which will\n\t * reflect in the global property values.\n\t * \n\t * @param args\n\t * command line arguments\n\t * @throws ConfigurationException\n\t * if there is any problem with command line arguments\n\t */\n\tvoid processCommandLineArguments(String[] args) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadDefaultConfiguration(ClassLoader, String)} for loading\n\t * default configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * \n\t */\n\tvoid loadDefaultConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadDefaultConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadConfiguration(ClassLoader, String)} for loading default\n\t * configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finally the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Performs any post processing of configuration settings that may be\n\t * required.\n\t * \n\t * This method can be called after manually making changes to the\n\t * configuration values. It should be called automatically after a call to\n\t * {@link IConfiguration#loadConfiguration(String)}.\n\t */\n\tvoid applyConfiguration();\n\n\t/**\n\t * Sets the value of scenario description file name.\n\t * \n\t * @param fileName\n\t * file name\n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tvoid setScenarioDescriptionFileName(String fileName);\n\n\t/**\n\t * Sets the sceanrio description as the given object. This property in\n\t * effect overrides the value of scenario description file name (\n\t * {@link IConfiguration#CONF_SCENARIO_DESCRIPTION_FILE_NAME}).\n\t * \n\t * @param sceanrioDescription\n\t * an instance of a scenario description\n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tvoid setScenarioDescription(Object sceanrioDescription);\n\n\t/**\n\t * Sets the measurement controller URI.\n\t * \n\t * @param uriStr\n\t * a URI as an String\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tvoid setMeasurementControllerURI(String uriStr) throws ConfigurationException;\n\n\t/**\n\t * Sets the measurement controller class name. This also sets the\n\t * measurement controller URI to be '<code>class://[CLASS_NAME]</code>'.\n\t * \n\t * @param className\n\t * the full name of the class\n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tvoid setMeasurementControllerClassName(String className);\n\n\t/**\n\t * Sets the application name for this executable instance.\n\t * \n\t * @param appName\n\t * an application name\n\t */\n\tvoid setApplicationName(String appName);\n\n\t/**\n\t * Sets the main class that runs this thread. This will also be used in\n\t * finding the root folder\n\t * \n\t * @param mainClass\n\t * class to be set as main class\n\t */\n\tvoid setMainClass(Class<?> mainClass);\n\n\t/**\n\t * Sets the logger configuration file name and triggers logger\n\t * configuration.\n\t * \n\t * @param fileName\n\t * a file name\n\t */\n\tvoid setLoggerConfigFileName(String fileName);\n\n\t/**\n\t * @return Returns the application root directory.\n\t */\n\tString getAppRootDirectory();\n\n\t/**\n\t * Sets the application root directory to the given folder.\n\t * \n\t * @param rootDir\n\t * path to a folder\n\t */\n\tvoid setAppRootDirectory(String rootDir);\n\n\t/**\n\t * @return Returns the application's configuration directory.\n\t */\n\tString getAppConfDirectory();\n\n\t/**\n\t * @return Returns the value of scenario description file name.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tString getScenarioDescriptionFileName();\n\n\t/**\n\t * @return returns the sceanrio description as the given object.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tObject getScenarioDescription();\n\n\t/**\n\t * @return Returns the measurement controller URI.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tURI getMeasurementControllerURI();\n\n\t/**\n\t * @return Returns the measurement controller URI as a String.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tString getMeasurementControllerURIAsStr();\n\n\t/**\n\t * @return Returns the measurement controller class name.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tString getMeasurementControllerClassName();\n\n\t/**\n\t * @return Returns the application name for this executable instance.\n\t */\n\tString getApplicationName();\n\n\t/**\n\t * @return Returns the main class that runs this thread. This value must\n\t * have been set by a call to\n\t * {@link IConfiguration#setMainClass(Class)}.\n\t */\n\tClass<?> getMainClass();\n\n\t/**\n\t * Writes the current configuration values into a file.\n\t * \n\t * @param fileName\n\t * the name of the file\n\t * @throws IOException\n\t * if exporting the configuration fails\n\t */\n\tvoid writeConfiguration(String fileName) throws IOException;\n\n\t/**\n\t * Overrides the values of this configuration with those of the given\n\t * configuration.\n\t * \n\t * @param configuration\n\t * with the new values\n\t */\n\t void overwrite(IConfiguration configuration);\n\n\t /**\n\t * Adds a new command-line extension to the configuration component. \n\t * \n\t * The same extension will not be added twice. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void addCommandLineExtension(ICommandLineArgumentsExtension extension);\n\t \n\t /**\n\t * Removes a new command-line extension from the configuration component. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void removeCommandLineExtension(ICommandLineArgumentsExtension extension);\n}", "public manageDoc() {\r\r\r\n\r\r\r\n }", "public interface EavropDocumentService {\n\t\n\n\t/**\n\t * Adds to the eavrop an externally received document, will potentially affect the start date of the eavrop assessment period \n\t *\n\t * @param aCommand\n\t */\n\tpublic boolean addReceivedExternalDocument(AddReceivedExternalDocumentsCommand aCommand);\n\n\t/**\n\t * Adds to the eavrop an internally received document \n\t *\n\t * @param aCommand\n\t */\n\tpublic void addReceivedInternalDocument(AddReceivedInternalDocumentCommand aCommand);\n\n\t/**\n\t * Adds to the eavrop a requested document\n\t * @param aCommand\n\t */\n\tpublic RequestedDocument addRequestedDocument(AddRequestedDocumentCommand aCommand);\n\n}", "public interface DocumentManager extends Manager {\n\n /* Document related properties */\n public static final String DOCUMENT_THUMBNAIL_PROPERTY = \"dell.document.thumbnail\";\n\n /**\n * Method to retrieve the the Document objects list\n *\n * @return - List of Document's\n */\n Collection<Document> getDocuments();\n\n\n /**\n * Method to retrieve the list of Document's using retailer siteID\n *\n * @param retailerSiteID\n * @return -Return the list of Document's with matching siteID\n * @see com.dell.acs.persistence.domain.RetailerSite\n */\n @Deprecated\n Collection<Document> getDocumentByRetailerSiteID(Long retailerSiteID);\n\n // Library page helper method\n @Deprecated\n Collection<Document> getLatestDocuments(Long retailerSiteID);\n\n public boolean doesDocumentExists(Document document);\n /* Document management related methods */\n\n\n /**\n * Method to persist the Document object\n *\n * @return - Return the document object\n */\n Document saveDocument(Document document) throws EntityExistsException;\n\n /**\n * Method to load the Document by ID\n *\n * @param documentID - Document ID\n * @return - Document object with ID = documentID\n */\n Document getDocument(Long documentID) throws EntityNotFoundException;\n\n /**\n * Method to delete a Document object by ID\n *\n * @param documentID - Document ID\n */\n void deleteDocument(Long documentID) throws EntityNotFoundException;\n\n /**\n * Method to get the BASECDN path for Document\n *\n * @param document\n * @return\n */\n String getBaseCDNPathForDocument(Document document);\n\n /**\n * To get the filtered documents.\n *\n * @param paramsMap\n * @return\n */\n List<Map<String, String>> getFilteredDocuments(Map<String, Object> paramsMap);\n\n\n // <======= New methods introduced in sprint 4 =======>\n\n /**\n Retrieve the published document.\n @param documentId, store the document id.\n @param type , store the document type.\n @return published document name.\n */\n @Deprecated\n String getDocumentNameByID(Long documentId,Integer type);\n\n /**\n Check the name existence , so that duplicate entry not allowed.\n It checks during ajax call.\n @param documentName , store the document name.\n @return boolean status , according to existence status.\n @throws NonUniqueResultException\n */\n @Deprecated\n boolean checkNameExistence(String documentName) throws NonUniqueResultException;\n\n /**\n * Method to load the Document by ID and type.\n *\n * @param documentID - Long - document ID\n * @return - Document object with ID = documentID\n * @throws - EntityNotFoundException - if document with given ID and type is not found.\n */\n Document getDocument(Long documentID, Integer type) throws EntityNotFoundException;\n\n /**\n * retrieve the documents on the basis of RetailerSite and source Type.\n *\n * @param retailerSiteID - Long - retailer site ID\n * @param type - Integer - Refer {@link com.dell.acs.content.EntityConstants}\n * @return Collection of {@link Document}\n */\n Collection<Document> getDocuments(Long retailerSiteID, Integer type, ServiceFilterBean filterBean);\n\n /**\n * retrieve the documents on the basis of RetailerSite Name and source Type.\n *\n * @param retailerSiteName - String - retailer site name\n * @param type - Integer - Refer {@link com.dell.acs.content.EntityConstants}\n * @return Collection of {@link}\n */\n Collection<Document> getDocuments(String retailerSiteName, Integer type, ServiceFilterBean filterBean);\n\n\n}", "public interface DocStoreUpdateContext extends DocUpdateContext {\n\n}", "public interface DocumentDefinition extends NodeDefinition {\n\n String getContentPath();\n\n String getMimeType();\n\n String getEncoding();\n}", "public abstract IOptions newDocumentOptions();", "Map<String, Object> createConfig(VirtualHost vhost, String configtype, Map<String, Object> doc);", "public interface DocbookFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tDocbookFactory eINSTANCE = ttc2019.live.docbook.impl.DocbookFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Doc Book</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Doc Book</em>'.\n\t * @generated\n\t */\n\tDocBook createDocBook();\n\n\t/**\n\t * Returns a new object of class '<em>Book</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Book</em>'.\n\t * @generated\n\t */\n\tBook createBook();\n\n\t/**\n\t * Returns a new object of class '<em>Article</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Article</em>'.\n\t * @generated\n\t */\n\tArticle createArticle();\n\n\t/**\n\t * Returns a new object of class '<em>Sect1</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Sect1</em>'.\n\t * @generated\n\t */\n\tSect1 createSect1();\n\n\t/**\n\t * Returns a new object of class '<em>Sect2</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Sect2</em>'.\n\t * @generated\n\t */\n\tSect2 createSect2();\n\n\t/**\n\t * Returns a new object of class '<em>Para</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Para</em>'.\n\t * @generated\n\t */\n\tPara createPara();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tDocbookPackage getDocbookPackage();\n\n}", "public String getDocumentEndpoint();", "public conversorDOC(){\n }", "public accionDocumentos() {\n \n }", "DocBook createDocBook();", "public interface CCRDocumentTypes extends DocumentTypes{\n\tpublic String MEDCOMMONS_AFFINITY_DOMAIN = \"MedCommons Patient Identifier\";\n\n public String CCR_CHANGE_NOTIFICATION_STATUS_PENDING = \"Pending\";\n \n public String CCR_CHANGE_NOTIFICATION_STATUS_NOTIFIED = \"Notified\";\n\n public static final String MEDCOMMONS_PATIENT_ID_TYPE = \"MedCommons Account Id\";\n\n\t\n\t/**\n\t * The URN of the namespace for CCR documents. This is the value that appears\n\t * in the XML header.\n\t */\n\tpublic static final String CCR_NAMESPACE_URN = \"urn:astm-org:CCR\";\n\n\t/**\n\t * Location of the XSD on disk\n\t */\n\tpublic static String XSD_LOCATION = \"conf/CCR_20051109.xsd\";\n\t\n\t/**\n\t * The URI of the namespace for CCR documents. This is the value that is returned by \n\t * the JDOM getNamespaceURI() method.\n\t */\n\tpublic static final String CCR_NAMESPACE_URI = \"uri:\" + CCR_NAMESPACE_URN;\n\t\n\t/**\n\t * Schema validation OFF - only unvalidated parsing performed.\n\t */\n\tpublic final static String SCHEMA_VALIDATION_OFF = \"OFF\";\n\t/**\n\t * Schema validation LENIENT - CCRs are parsed; validation errors returned as warning messages but\n\t * processing proceeds.\n\t */\n\tpublic final static String SCHEMA_VALIDATION_LENIENT = \"LENIENT\";\n\t\n\t/**\n\t * Schema validation STRICT - Any schema validation failures return an error.\n\t */\n\tpublic final static String SCHEMA_VALIDATION_STRICT = \"STRICT\";\n\n}", "public abstract ModuleDoc doc();", "public interface FreeMakerConfigurator {\r\n\r\n\t/**\r\n\t * @param servletContext the SERVLET context\r\n\t * @param configuration the FreeMaker defined configuration\r\n\t */\r\n\tvoid configure(ServletContext servletContext, Configuration configuration);\r\n}", "public void setupBaseConvenienceObjects(MaintenanceDocument document);", "public static void main(String[] args) {\n\t\tString realPath = getFileRealPath(\"config/docService.properties\");\n\t\tgetPropertiesConfigByResourceRealPath(realPath);\n\t\t\n\t}", "public interface MarkupLanguage extends Component {\n\n String ROLE = \"org.apache.cocoon.components.language.markup.MarkupLanguage\";\n /**\n * Return the input document's encoding or <code>null</code> if it is the\n * platform's default encoding.\n * This method should be called after <code>generateCode<code> method.\n *\n * @return The input document's encoding\n */\n String getEncoding();\n\n /**\n * Generate source code from the input source for the target\n * <code>ProgrammingLanguage</code>.\n *\n * @param input The input source document\n * @param filename The input document's original filename\n * @param programmingLanguage The target programming language\n * @return The generated source code\n * @exception Exception If an error occurs during code generation\n */\n String generateCode(\n InputSource input, String filename,\n ProgrammingLanguage programmingLanguage,\n SourceResolver resolver\n ) throws Exception;\n}", "public interface Configurable\t{\n\t/**\n\t *\tConfiguration files have changed.\n\t */\n\tpublic void reConfigure();\n}", "public DocumentumCoreServicesImpl() {\r\n\r\n\t\tIObjectService iObjService = null;\r\n\r\n\t\tif (this.objectService == null) {\r\n\r\n\t\t\tlogger.info(INFO_INICIANDO_EMC);\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tRepositoryIdentityConstants repositoryIdentityConstants = EMCDocumentumFactory\r\n\t\t\t\t\t\t.getConstants(RepositoryIdentityConstants.class);\r\n\r\n\t\t\t\tthis.setRepositoryIdentityConstants(repositoryIdentityConstants);\r\n\r\n\t\t\t\tContextFactory contextFactory = ContextFactory.getInstance();\r\n\r\n\t\t\t\tIServiceContext serviceContext = contextFactory.getContext();\r\n\t\t\t\tserviceContext.setRuntimeProperty(IServiceContext.USER_TRANSACTION_HINT, IServiceContext.TRANSACTION_REQUIRED);\r\n\t\t\t\tserviceContext.setRuntimeProperty(IServiceContext.PAYLOAD_PROCESSING_POLICY, \"PAYLOAD_FAIL_ON_EXCEPTION\");\r\n\r\n\t\t\t\tsetServiceContext(serviceContext);\r\n\r\n\t\t\t\tRepositoryIdentity repoId = new RepositoryIdentity();\r\n\r\n\t\t\t\trepoId.setRepositoryName(REPOSITORY_NAME);\r\n\r\n\t\t\t\trepoId.setUserName(USER_NAME);\r\n\r\n\t\t\t\trepoId.setPassword(USER_PASSWORD);\r\n\r\n\t\t\t\tgetServiceContext().addIdentity(repoId);\r\n\r\n\t\t\t\t//\t\tcontextFactory.register(getServiceContext());\r\n\r\n\t\t\t\t//iObjectService = ServiceFactory.getInstance().getRemoteService(IObjectService.class, serviceContext, MODULE_NAME, DFS_SERVICE_URL);\r\n\t\t\t\tiObjService = ServiceFactory.getInstance().getLocalService(IObjectService.class, serviceContext);\r\n\r\n\t\t\t\tlogger.info(INFO_CONEXAO_EMC);\r\n\r\n\t\t\t\tthis.objectService = iObjService;\r\n\r\n\t\t\t} catch (ServiceInvocationException e) {\r\n\r\n\t\t\t\tlogger.error(ERROR_CONEXAO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tthis.setObjectService(iObjService);\r\n\t\t}\r\n\r\n\t}", "public interface AppBottomIconCfgService {\n\n AppBottomIConCfg getAppBottomIConCfgById(int id) throws Exception;\n\n PageInfo<AppBottomIConCfg> getAppBottomIConCfgByPage(int page_number, int page_size, String search_value) throws Exception;\n\n String insert(String message, String user_id) throws Exception;\n\n String update(String message, String user_id) throws Exception;\n\n int delete(int id) throws Exception;\n\n PageInfo<AppBottomIConCfg> getAppBottomIConCfgScreen(int page_number, int page_size, Map<String, String> map) throws Exception;\n\n AppBottomIConCfg getAppBottomIConCfgByCorp(String isactive, String corp_code) throws Exception;\n\n List<AppBottomIConCfg> getListByCorp(String isactive, String corp_code) throws Exception;\n\n\n}", "public Smart_officeFactoryImpl() {\n\t\tsuper();\n\t}", "C getConfiguration();", "public void setDocumentType (String DocumentType);", "public interface CentralConfRegistryService {\n void set(String key, Object value) throws ServiceException;\n\n void set(String key, Object value, String description) throws ServiceException;\n\n Object get(String key) throws ServiceException;\n}", "public abstract String getDefinition();", "public Map<String, Object> getComponentConfiguration() {\n\t\tSystem.out.println(\"WordReader.getComponentConfiguration\");\n\t\treturn null;\n\t}", "public OpenDefinitionsDocument getDocument() { return _document; }", "public interface IDocument {\n /**\n * Returns the content of the document, in a byte array.\n */\n byte[] getByteContent() throws IOException;\n /**\n * Returns the content of the document, in a char array.\n */\n char[] getCharContent() throws IOException;\n /**\n * returns the name of the document (e.g. its path for a <code>File</code>, or its relative path\n * in the workbench for an <code>IFile</code>).\n */\n String getName();\n /**\n * returns the value of the given property, or null if this document does not have\n * such a property.\n */\n String getProperty(String property);\n /**\n * Returns an enumeration of the names of the properties the document has.\n */\n java.util.Enumeration getPropertyNames();\n /**\n * Returns the content of the document, as a String.\n */\n public String getStringContent() throws IOException;\n /**\n * Returns the type of the document.\n */\n String getType();\n /**\n * Sets the given property of the document to the given value.\n */\n void setProperty(String attribute, String value); }", "public interface DocumentProperties {\n\n /**\n * The character encoding used by the source XML document.\n */\n public interface Charset {\n public void setCharset(java.nio.charset.Charset charset);\n }\n}", "public ExternalDocumentEntry() {\n\t\tsuper(CDAFactory.eINSTANCE.createExternalDocument());\n\t\tthis.getMdht().getTemplateIds()\n\t\t\t\t.add(DatatypesFactory.eINSTANCE.createII(\"2.16.840.1.113883.10.20.1.36\"));\n\t\tthis.getMdht().setClassCode(ActClassDocument.DOC);\n\t\tthis.getMdht().setMoodCode(ActMood.EVN);\n\n\t}", "public interface ConfigService {\n\n\n /**\n * eureka配置\n *\n * @param sb\n * @param addr\n */\n void eureka(StringBuilder sb, String addr);\n\n /**\n * redis配置\n *\n * @param sb\n * @param addr\n */\n void redis(StringBuilder sb, String addr);\n\n\n /**\n * 数据源配置\n *\n * @param sb\n */\n void thymeleafAndDatasource(StringBuilder sb);\n\n\n /**\n * 关于mybatis的配置\n *\n * @param sb\n * @param packages\n */\n void mybatis(StringBuilder sb, String packages);\n\n\n /**\n * 分页插件配置\n *\n * @param sb\n */\n void pagehelper(StringBuilder sb);\n\n /**\n * 生成application.yml\n *\n * @param name\n */\n void application(String name);\n\n\n /**\n * 生成application-xxx.yml\n *\n * @param branch\n * @param packages\n */\n void applicationBranch(String branch, String packages);\n\n\n /**\n * log文件\n *\n */\n void logBack();\n}", "public CMSFormClientServices() {\n // Set up the configuration manager.\n config = new ConfigMgr(\"form.cfg\");\n }", "public void setDocumentType(String documentType);", "public interface ReferencesFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tReferencesFactory eINSTANCE = org.servicifi.gelato.language.cobol.references.impl.ReferencesFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Special Names Condition Name Reference</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Special Names Condition Name Reference</em>'.\n\t * @generated\n\t */\n\tSpecialNamesConditionNameReference createSpecialNamesConditionNameReference();\n\n\t/**\n\t * Returns a new object of class '<em>File Name Reference</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>File Name Reference</em>'.\n\t * @generated\n\t */\n\tFileNameReference createFileNameReference();\n\n\t/**\n\t * Returns a new object of class '<em>Index Name Reference</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Index Name Reference</em>'.\n\t * @generated\n\t */\n\tIndexNameReference createIndexNameReference();\n\n\t/**\n\t * Returns a new object of class '<em>Mnemonic Name Reference</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Mnemonic Name Reference</em>'.\n\t * @generated\n\t */\n\tMnemonicNameReference createMnemonicNameReference();\n\n\t/**\n\t * Returns a new object of class '<em>Alphabet Name Reference</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Alphabet Name Reference</em>'.\n\t * @generated\n\t */\n\tAlphabetNameReference createAlphabetNameReference();\n\n\t/**\n\t * Returns a new object of class '<em>Condition Name Reference</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Condition Name Reference</em>'.\n\t * @generated\n\t */\n\tConditionNameReference createConditionNameReference();\n\n\t/**\n\t * Returns a new object of class '<em>Data Name Reference</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Data Name Reference</em>'.\n\t * @generated\n\t */\n\tDataNameReference createDataNameReference();\n\n\t/**\n\t * Returns a new object of class '<em>Identifier Reference Qualifier</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Identifier Reference Qualifier</em>'.\n\t * @generated\n\t */\n\tIdentifierReferenceQualifier createIdentifierReferenceQualifier();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tReferencesPackage getReferencesPackage();\n\n}", "public interface Form {\n\n\t/**\n\t * Gets the number of documents that use this Form and have been modified since a given Java date\n\t *\n\t * @param since\n\t * Date the method should compare against\n\t * @return int number of documents using this Form modified\n\t * @since org.openntf.domino 3.0.0\n\t */\n\tpublic int getModifiedNoteCount(final java.util.Date since);\n\n\t/**\n\t * Gets the XPage that this Form is set to launch on the web as ($XPageAlt field)\n\t *\n\t * @return String XPage to Form is designed to launch with on web\n\t * @since org.openntf.domino 4.5.0\n\t */\n\tpublic String getXPageAlt();\n\n\t/**\n\t * Gets the XPage that this Form is set to launch in the client as ($XPageAltClient field, if defined, else $XPageAlt)\n\t *\n\t * @return String XPage to Form is designed to launch with on client\n\t * @since org.openntf.domino 5.0.0\n\t */\n\tpublic String getXPageAltClient();\n\n\t/**\n\t * Generates a selection formula in format:\n\t *\n\t * <code>SELECT Form = \"myFormName\" | Form = \"myFormAlias\" | Form = \"myFormSecondAlias\" etc.</code>\n\t *\n\t * <p>\n\t * Continues for as many aliases as the Form has, not including aliases if none is defined.\n\t * </p>\n\t *\n\t * <p>\n\t * NOTE: Forms view in an NSF only displays the first alias of a design element, deisng element's properties box will shows all.\n\t * </p>\n\t *\n\t * @return String selection formula to access all Documents created with that Form\n\t * @since org.openntf.domino 3.0.0\n\t */\n\tpublic String getSelectionFormula();\n\n\t/**\n\t * Returns documents associated with this form\n\t *\n\t * @return Documents as a <code>NotesCollection</code>\n\t */\n\tpublic NoteCollection getNoteCollection();\n\n\t/**\n\t * Returns a Metaversal ID consisting of a replica ID of the parent database and a universal ID of this form.\n\t */\n\tpublic String getMetaversalID();\n\n}", "@StartStep(localName=\"create-config-document-context\", after={\"xml-factory-lifecycle\"})\n public static void startCreateConfigDocumentContext() \n throws LifecycleException \n {\n Lifecycle.configDocumentContext = createConfigurationContext(XCHAIN_CONFIG);\n }", "public IIndexFactoryConfig getConfig() {\n\t\treturn getConfiguration();\n\t}", "public Gedcomx getDocument() {\n return doc;\n }", "public interface GaewebFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tGaewebFactory eINSTANCE = gaeweb.impl.GaewebFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Admin Console</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Admin Console</em>'.\n\t * @generated\n\t */\n\tAdminConsole createAdminConsole();\n\n\t/**\n\t * Returns a new object of class '<em>Admin Console Page Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Admin Console Page Type</em>'.\n\t * @generated\n\t */\n\tAdminConsolePageType createAdminConsolePageType();\n\n\t/**\n\t * Returns a new object of class '<em>Appengine Web App Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Appengine Web App Type</em>'.\n\t * @generated\n\t */\n\tAppengineWebAppType createAppengineWebAppType();\n\n\t/**\n\t * Returns a new object of class '<em>Async Session Persistence Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Async Session Persistence Type</em>'.\n\t * @generated\n\t */\n\tAsyncSessionPersistenceType createAsyncSessionPersistenceType();\n\n\t/**\n\t * Returns a new object of class '<em>Automatic Scaling Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Automatic Scaling Type</em>'.\n\t * @generated\n\t */\n\tAutomaticScalingType createAutomaticScalingType();\n\n\t/**\n\t * Returns a new object of class '<em>Basic Scaling Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Basic Scaling Type</em>'.\n\t * @generated\n\t */\n\tBasicScalingType createBasicScalingType();\n\n\t/**\n\t * Returns a new object of class '<em>Class Loader Config Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Class Loader Config Type</em>'.\n\t * @generated\n\t */\n\tClassLoaderConfigType createClassLoaderConfigType();\n\n\t/**\n\t * Returns a new object of class '<em>Cpu Utilization Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Cpu Utilization Type</em>'.\n\t * @generated\n\t */\n\tCpuUtilizationType createCpuUtilizationType();\n\n\t/**\n\t * Returns a new object of class '<em>Document Root</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Document Root</em>'.\n\t * @generated\n\t */\n\tDocumentRoot createDocumentRoot();\n\n\t/**\n\t * Returns a new object of class '<em>Env Variables Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Env Variables Type</em>'.\n\t * @generated\n\t */\n\tEnvVariablesType createEnvVariablesType();\n\n\t/**\n\t * Returns a new object of class '<em>Env Var Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Env Var Type</em>'.\n\t * @generated\n\t */\n\tEnvVarType createEnvVarType();\n\n\t/**\n\t * Returns a new object of class '<em>Exclude Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Exclude Type</em>'.\n\t * @generated\n\t */\n\tExcludeType createExcludeType();\n\n\t/**\n\t * Returns a new object of class '<em>Http Header Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Http Header Type</em>'.\n\t * @generated\n\t */\n\tHttpHeaderType createHttpHeaderType();\n\n\t/**\n\t * Returns a new object of class '<em>Inbound Services Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Inbound Services Type</em>'.\n\t * @generated\n\t */\n\tInboundServicesType createInboundServicesType();\n\n\t/**\n\t * Returns a new object of class '<em>Include Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Include Type</em>'.\n\t * @generated\n\t */\n\tIncludeType createIncludeType();\n\n\t/**\n\t * Returns a new object of class '<em>Manual Scaling Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Manual Scaling Type</em>'.\n\t * @generated\n\t */\n\tManualScalingType createManualScalingType();\n\n\t/**\n\t * Returns a new object of class '<em>Pagespeed Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Pagespeed Type</em>'.\n\t * @generated\n\t */\n\tPagespeedType createPagespeedType();\n\n\t/**\n\t * Returns a new object of class '<em>Permission Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Permission Type</em>'.\n\t * @generated\n\t */\n\tPermissionType createPermissionType();\n\n\t/**\n\t * Returns a new object of class '<em>Priority Specifier Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Priority Specifier Type</em>'.\n\t * @generated\n\t */\n\tPrioritySpecifierType createPrioritySpecifierType();\n\n\t/**\n\t * Returns a new object of class '<em>Property Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Property Type</em>'.\n\t * @generated\n\t */\n\tPropertyType createPropertyType();\n\n\t/**\n\t * Returns a new object of class '<em>Resource Files Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Resource Files Type</em>'.\n\t * @generated\n\t */\n\tResourceFilesType createResourceFilesType();\n\n\t/**\n\t * Returns a new object of class '<em>Setting Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Setting Type</em>'.\n\t * @generated\n\t */\n\tSettingType createSettingType();\n\n\t/**\n\t * Returns a new object of class '<em>Static Error Handlers</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Static Error Handlers</em>'.\n\t * @generated\n\t */\n\tStaticErrorHandlers createStaticErrorHandlers();\n\n\t/**\n\t * Returns a new object of class '<em>Static Error Handlers Handler</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Static Error Handlers Handler</em>'.\n\t * @generated\n\t */\n\tStaticErrorHandlersHandler createStaticErrorHandlersHandler();\n\n\t/**\n\t * Returns a new object of class '<em>Static Files Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Static Files Type</em>'.\n\t * @generated\n\t */\n\tStaticFilesType createStaticFilesType();\n\n\t/**\n\t * Returns a new object of class '<em>Static Include Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Static Include Type</em>'.\n\t * @generated\n\t */\n\tStaticIncludeType createStaticIncludeType();\n\n\t/**\n\t * Returns a new object of class '<em>System Properties Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>System Properties Type</em>'.\n\t * @generated\n\t */\n\tSystemPropertiesType createSystemPropertiesType();\n\n\t/**\n\t * Returns a new object of class '<em>User Permissions Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>User Permissions Type</em>'.\n\t * @generated\n\t */\n\tUserPermissionsType createUserPermissionsType();\n\n\t/**\n\t * Returns a new object of class '<em>Vm Health Check Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vm Health Check Type</em>'.\n\t * @generated\n\t */\n\tVmHealthCheckType createVmHealthCheckType();\n\n\t/**\n\t * Returns a new object of class '<em>Vm Settings Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vm Settings Type</em>'.\n\t * @generated\n\t */\n\tVmSettingsType createVmSettingsType();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tGaewebPackage getGaewebPackage();\n\n}", "public interface Configurable {\n void setConf(Configuration conf);\n Configuration getConf();\n}", "public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}", "@Override\n public void contextInitialized(ServletContextEvent sce) {\n ServletContext sc= sce.getServletContext();\n String sourceB =sc.getInitParameter(\"source\");\n // System.out.println(sourceB);\n Doc docc = new Doc(sourceB);\n sc.setAttribute(\"doccc\", docc);\n \n }", "public ConfigureDOExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public interface ApplicantDAO {\r\n\t/**\r\n\t *\r\n\t * @Method_Name addApplication\r\n\t * @Description adds Applicant\r\n\t * @Created_On Sep 15, 2012\r\n\t * @author sc804382\r\n\t * @param application\r\n\t * @throws UASException\r\n\t * \r\n\t * returns : boolean\r\n\t */\r\n\tpublic boolean addApplication(ApplicationBean application)\r\n\t\t\tthrows UASException;\r\n\r\n\t/**\r\n\t *\r\n\t * @Method_Name showStatus\r\n\t * @Description show applicant status\r\n\t * @Created_On Sep 15, 2012\r\n\t * @author sc804382\r\n\t * @param applicationId\r\n\t * @throws UASException\r\n\t * \r\n\t * returns : ApplicationBean\r\n\t */\r\n\tpublic ApplicationBean showStatus(String applicationId) throws UASException;\r\n}", "public interface ConfigurationService {\n /**\n * Get configuration by key\n *\n * @param configKey\n * @return\n */\n Configuration getConfigByKey(String configKey);\n}", "public interface CdapFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tCdapFactory eINSTANCE = org.openecomp.dcae.controller.service.cdap.impl.CdapFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Service</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Service</em>'.\n\t * @generated\n\t */\n\tCdapService createCdapService();\n\n\t/**\n\t * Returns a new object of class '<em>Service Instance</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Service Instance</em>'.\n\t * @generated\n\t */\n\tCdapServiceInstance createCdapServiceInstance();\n\n\t/**\n\t * Returns a new object of class '<em>Application</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Application</em>'.\n\t * @generated\n\t */\n\tCdapApplication createCdapApplication();\n\n\t/**\n\t * Returns a new object of class '<em>Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Artifact</em>'.\n\t * @generated\n\t */\n\tCdapArtifact createCdapArtifact();\n\n\t/**\n\t * Returns a new object of class '<em>Service Instance Configuration</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Service Instance Configuration</em>'.\n\t * @generated\n\t */\n\tCdapServiceInstanceConfiguration createCdapServiceInstanceConfiguration();\n\n\t/**\n\t * Returns a new object of class '<em>Internal Application Configuration</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Internal Application Configuration</em>'.\n\t * @generated\n\t */\n\tCdapInternalApplicationConfiguration createCdapInternalApplicationConfiguration();\n\n\t/**\n\t * Returns a new object of class '<em>Service Descriptor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Service Descriptor</em>'.\n\t * @generated\n\t */\n\tCdapServiceDescriptor createCdapServiceDescriptor();\n\n\t/**\n\t * Returns a new object of class '<em>Load Artifact Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Load Artifact Step</em>'.\n\t * @generated\n\t */\n\tCdapLoadArtifactStep createCdapLoadArtifactStep();\n\n\t/**\n\t * Returns a new object of class '<em>Load Artifact With Config Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Load Artifact With Config Step</em>'.\n\t * @generated\n\t */\n\tCdapLoadArtifactWithConfigStep createCdapLoadArtifactWithConfigStep();\n\n\t/**\n\t * Returns a new object of class '<em>Create App Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Create App Step</em>'.\n\t * @generated\n\t */\n\tCdapCreateAppStep createCdapCreateAppStep();\n\n\t/**\n\t * Returns a new object of class '<em>Create App With Config Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Create App With Config Step</em>'.\n\t * @generated\n\t */\n\tCdapCreateAppWithConfigStep createCdapCreateAppWithConfigStep();\n\n\t/**\n\t * Returns a new object of class '<em>Deploy App Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Deploy App Step</em>'.\n\t * @generated\n\t */\n\tCdapDeployAppStep createCdapDeployAppStep();\n\n\t/**\n\t * Returns a new object of class '<em>Stop Flow Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Stop Flow Step</em>'.\n\t * @generated\n\t */\n\tCdapStopFlowStep createCdapStopFlowStep();\n\n\t/**\n\t * Returns a new object of class '<em>Stop Worker Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Stop Worker Step</em>'.\n\t * @generated\n\t */\n\tCdapStopWorkerStep createCdapStopWorkerStep();\n\n\t/**\n\t * Returns a new object of class '<em>Stop Service Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Stop Service Step</em>'.\n\t * @generated\n\t */\n\tCdapStopServiceStep createCdapStopServiceStep();\n\n\t/**\n\t * Returns a new object of class '<em>Stop App Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Stop App Step</em>'.\n\t * @generated\n\t */\n\tCdapStopAppStep createCdapStopAppStep();\n\n\t/**\n\t * Returns a new object of class '<em>Start Flow Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Start Flow Step</em>'.\n\t * @generated\n\t */\n\tCdapStartFlowStep createCdapStartFlowStep();\n\n\t/**\n\t * Returns a new object of class '<em>Start Worker Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Start Worker Step</em>'.\n\t * @generated\n\t */\n\tCdapStartWorkerStep createCdapStartWorkerStep();\n\n\t/**\n\t * Returns a new object of class '<em>Start Service Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Start Service Step</em>'.\n\t * @generated\n\t */\n\tCdapStartServiceStep createCdapStartServiceStep();\n\n\t/**\n\t * Returns a new object of class '<em>Start App Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Start App Step</em>'.\n\t * @generated\n\t */\n\tCdapStartAppStep createCdapStartAppStep();\n\n\t/**\n\t * Returns a new object of class '<em>Delete App Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Delete App Step</em>'.\n\t * @generated\n\t */\n\tCdapDeleteAppStep createCdapDeleteAppStep();\n\n\t/**\n\t * Returns a new object of class '<em>Delete Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Delete Artifact</em>'.\n\t * @generated\n\t */\n\tCdapDeleteArtifact createCdapDeleteArtifact();\n\n\t/**\n\t * Returns a new object of class '<em>Suspend Schedule Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Suspend Schedule Step</em>'.\n\t * @generated\n\t */\n\tCdapSuspendScheduleStep createCdapSuspendScheduleStep();\n\n\t/**\n\t * Returns a new object of class '<em>Resume Schedule Step</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Resume Schedule Step</em>'.\n\t * @generated\n\t */\n\tCdapResumeScheduleStep createCdapResumeScheduleStep();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tCdapPackage getCdapPackage();\n\n}", "DocumentationFactory getDocumentationFactory();", "private static interface DefDocumentProcessor\n\t{\n\t\t/**\n\t\t * Called for every element found during processing of the s.t.\n\t\t * path.\n\t\t * @param documentPath an abstract pathname of the document\n\t\t * @throws XMLFormatException if document appears to be corrupted\n\t\t */\n\t\tvoid processElement(File documentPath) \n\t\t\tthrows XMLFormatException;\n\t}", "public void newDocument();", "public interface FacesConfig extends JSFConfigComponent, IdentifiableElement {\n \n /**\n * Property for &lt;managed-bean&gt; element\n */\n String MANAGED_BEAN = JSFConfigQNames.MANAGED_BEAN.getLocalName();\n /**\n * Property of &lt;navigation-rule&gt; element\n */\n String NAVIGATION_RULE = JSFConfigQNames.NAVIGATION_RULE.getLocalName();\n /**\n * Property of &lt;converter&gt; element\n */\n String CONVERTER = JSFConfigQNames.CONVERTER.getLocalName();\n \n /**\n * Property of &lt;application&gt; element\n */\n String APPLICATION = JSFConfigQNames.APPLICATION.getLocalName();\n \n /**\n * Property of &lt;ordering&gt; element\n */\n String ORDERING = JSFConfigQNames.ORDERING.getLocalName();\n \n /**\n * Property of &lt;absolute-ordering&gt; element\n */\n String ABSOLUTE_ORDERING =JSFConfigQNames.ABSOLUTE_ORDERING.getLocalName();\n \n /**\n * Property of &lt;factory&gt; element\n */\n String FACTORY =JSFConfigQNames.FACTORY.getLocalName();\n \n /**\n * Property of &lt;component&gt; element\n */\n String COMPONENT =JSFConfigQNames.FACTORY.getLocalName();\n \n /**\n * Property of &lt;name&gt; element.\n */\n String NAME = JSFConfigQNames.NAME.getLocalName();\n \n /**\n * Property of &lt;referenced-bean&gt; element.\n */\n String REFERENCED_BEAN = JSFConfigQNames.REFERENCED_BEAN.getLocalName();\n \n /**\n * Property of &lt;referenced-bean&gt; element.\n */\n String RENDER_KIT = JSFConfigQNames.RENDER_KIT.getLocalName();\n \n /**\n * Property of &lt;lifecycle&gt; element.\n */\n String LIFECYCLE= JSFConfigQNames.LIFECYCLE.getLocalName();\n \n /**\n * Property of &lt;validator&gt; element.\n */\n String VALIDATOR= JSFConfigQNames.VALIDATOR.getLocalName();\n \n /**\n * Property of &lt;faces-config-extension&gt; element.\n */\n String FACES_CONFIG_EXTENSION= JSFConfigQNames.FACES_CONFIG_EXTENSION.getLocalName();\n \n /**\n * Property of &lt;behavior&gt; element.\n */\n String BEHAVIOR= JSFConfigQNames.BEHAVIOR.getLocalName();\n \n \n /**\n * Attribute &lt;metadata-complete&gt; element.\n */\n String METADATA_COMPLETE = \"metadata-complete\"; // NOI18N\n \n /**\n * Attribute &lt;version&gt; element.\n */\n String VERSION = \"version\"; // NOI18N\n\n /**\n * Attribute &lt;faces-flow-definition&gt; element.\n */\n String FLOW_DEFINITION = JSFConfigQNames.FLOW_DEFINITION.getLocalName();\n\n /**\n * Attribute &lt;protected-views&gt; element.\n */\n String PROTECTED_VIEWS = JSFConfigQNames.PROTECTED_VIEWS.getLocalName();\n \n List<Ordering> getOrderings();\n void addOrdering(Ordering ordering);\n void removeOrdering(Ordering ordering);\n \n List<AbsoluteOrdering> getAbsoluteOrderings();\n void addAbsoluteOrdering(AbsoluteOrdering ordering);\n void removeAbsoluteOrdering(AbsoluteOrdering ordering);\n \n List<Factory> getFactories();\n void addFactories( Factory factory );\n void removeFactory( Factory factory );\n \n List<Component> getComponents();\n void addComponent( FacesComponent component );\n void removeComponent( FacesComponent component );\n \n List<Name> getNames();\n void addName( Name name );\n void removeName(Name name );\n \n List<ReferencedBean> getReferencedBeans();\n void addReferencedBean( ReferencedBean bean );\n void removeReferencedBean( ReferencedBean bean);\n \n List<RenderKit> getRenderKits();\n void addRenderKit( RenderKit kit );\n void removeRenderKit( RenderKit kit );\n \n List<Lifecycle> getLifecycles();\n void addLifecycle( Lifecycle lifecycle );\n void removeLifecycle( Lifecycle lifecycle );\n \n List<FacesValidator> getValidators();\n void addValidator( FacesValidator validator );\n void removeValidator( FacesValidator validator );\n \n List<FacesConfigExtension> getFacesConfigExtensions();\n void addFacesConfigExtension( FacesConfigExtension extension );\n void removeFacesConfigExtension( FacesConfigExtension extension );\n \n List<Converter> getConverters();\n void addConverter(Converter converter);\n void removeConverter(Converter converter);\n \n List <ManagedBean> getManagedBeans();\n void addManagedBean(ManagedBean bean);\n void removeManagedBean(ManagedBean bean);\n \n List<NavigationRule> getNavigationRules();\n void addNavigationRule(NavigationRule rule);\n void removeNavigationRule(NavigationRule rule);\n \n List<Application> getApplications();\n void addApplication(Application application);\n void removeApplication(Application application);\n \n List<FacesBehavior> getBehaviors();\n void addBehavior( FacesBehavior behavior );\n void removeBehavior( FacesBehavior behavior );\n\n List<FlowDefinition> getFlowDefinitions();\n void addFlowDefinition(FlowDefinition flowDefinition);\n void removeFlowDefinition(FlowDefinition flowDefinition);\n\n List<ProtectedViews> getProtectedViews();\n void addProtectedView(ProtectedViews protectedView);\n void removeProtectedView(ProtectedViews protectedView);\n \n void addFacesConfigElement( int index, FacesConfigElement element );\n List<FacesConfigElement> getFacesConfigElements();\n \n Boolean isMetaDataComplete();\n void setMetaDataComplete( Boolean isMetadataComplete);\n \n String getVersion();\n void setVersion(String version);\n}", "public interface ConsumerAdminOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.omg.CosEventChannelAdmin.ProxyPushSupplier obtain_push_supplier();\n\torg.omg.CosEventChannelAdmin.ProxyPullSupplier obtain_pull_supplier();\n}", "public interface DocumentService {\n /**\n * 查找\n *\n * @return\n */\n DocumentPo findOne(Long id);\n\n DocumentPo findByUuid(String uuid);\n /**\n * 查找\n *\n * @return\n */\n List<DocumentPo> findAll();\n\n /**\n * 新增/更新\n *\n * @param documentPo\n * @return\n */\n DocumentPo save(DocumentPo documentPo);\n /**\n * 删除\n *\n * @param id\n */\n void delete(Long id);\n}", "public interface Configuration {\n\n}", "ConfigurationPackage getConfigurationPackage();", "public void consulterCatalog() {\n\t\t\n\t}", "public interface IModelDocumentProvider {\r\n\t/** \r\n\t * Locate an existing document or load it. Listen for future changes\r\n\t * to the document and to the file. \r\n\t * @param file full pathed file\r\n\t * @return IDocument instance; return null only if the file does not exist. \r\n\t */\r\n\tIDocument getDocument(File file);\r\n}", "public interface INodeFileCabin {\r\n /**\r\n * Get Documents According to TransID or DataFlow\r\n * @param tIDorDataFlow String TRANS_ID or DATAFLOW_NAME\r\n * @param isTransID true if TransID, false if DataFlow\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String tIDorDataFlow, boolean isTransID);\r\n\r\n /**\r\n * Get Documents According to Names in ClsNodeDocument[]\r\n * @param searchDocs ClsNodeDocument[] Search Criteria\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (ClsNodeDocument[] searchDocs);\r\n\r\n /**\r\n * Get Documents According to TransID and DataFlow\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String transID, String dataFlow);\r\n\r\n /**\r\n * Get Documents According to TransID and DataFlow\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @param searchDocs ClsNodeDocument[] FILE_NAME\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String transID, String dataFlow, ClsNodeDocument[] searchDocs);\r\n\r\n /**\r\n * Get Documents According to TransID and DataFlow\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @param operation String OPERATION_NAME\r\n * @param searchDocs ClsNodeDocument[] FILE_NAME\r\n * @return ClsNodeDocument[] FILE_CONTENT\r\n */\r\n public ClsNodeDocument[] GetDocuments (String transID, String dataFlow,String[] operationArr, ClsNodeDocument[] searchDocs);\r\n /**\r\n * Upload Documents to the Database\r\n * @param docs Documents to be upload (required)\r\n * @param transID String TRANS_ID (optional, although strongly recommended)\r\n * @param status String STATUS (optional)\r\n * @param dataFlow String DATAFLOW_NAME (optional)\r\n * @param submitURL String SUBMIT_URL (optional)\r\n * @param token String SUBMIT_TOKEN (optional)\r\n * @param submitted Date SUBMIT_DATE (optional)\r\n * @param submittedTS Timestamp SUBMIT_DATE (optional)\r\n * @return boolean true if successful, false otherwise\r\n */\r\n public boolean UploadDocuments (ClsNodeDocument[] docs, String transID, String status, String dataFlow, String submitURL, String token, Date submitted, Timestamp submittedTS, String user);\r\n\r\n /**\r\n * Upload Documents to the Database\r\n * @param docs Documents to be upload (required)\r\n * @param transID String TRANS_ID (optional, although strongly recommended)\r\n * @param status String STATUS (optional)\r\n * @param dataFlow String DATAFLOW_NAME (optional)\r\n * @param submitURL String SUBMIT_URL (optional)\r\n * @param token String SUBMIT_TOKEN (optional)\r\n * @param submitted Date SUBMIT_DATE (optional)\r\n * @param submittedTS Timestamp SUBMIT_DATE (optional)\r\n * @return boolean true if successful, false otherwise\r\n */\r\n public boolean UploadHugeDocuments (ClsNodeDocument[] docs, String transID, String status, String dataFlow, String submitURL, String token, Date submitted, Timestamp submittedTS, String user);\r\n\t// WI 22695\r\n /**\r\n * Upload Documents to the Database without delete the temp file\r\n * @param docs Documents to be upload (required)\r\n * @param transID String TRANS_ID (optional, although strongly recommended)\r\n * @param status String STATUS (optional)\r\n * @param dataFlow String DATAFLOW_NAME (optional)\r\n * @param submitURL String SUBMIT_URL (optional)\r\n * @param token String SUBMIT_TOKEN (optional)\r\n * @param submitted Date SUBMIT_DATE (optional)\r\n * @param submittedTS Timestamp SUBMIT_DATE (optional)\r\n * @return boolean true if successful, false otherwise\r\n */\r\n public boolean UploadHugeDocumentsWithoutDelete (ClsNodeDocument[] docs, String transID, String status, String dataFlow, String submitURL, String token, Date submitted, Timestamp submittedTS, String user);\r\n /**\r\n * Query Documents\r\n * @param transID String TRANS_ID\r\n * @param dataFlow String DATAFLOW_NAME\r\n * @param names String[] Search Names\r\n * @return XmlDocument Return Result, null if no documents found\r\n */\r\n public XmlDocument QueryDocs (String transID, String dataFlow, String[] names);\r\n\r\n /**\r\n * Search Documents\r\n * @param docName String\r\n * @param transID String\r\n * @param domainName String\r\n * @param opName String\r\n * @param start Date\r\n * @param end Date\r\n * @return Document[]\r\n */\r\n public Document[] SearchDocuments (String docName, String transID, String domainName, String opName, Date start, Date end, String[] adminDomains, String version_no);\r\n\r\n /**\r\n * Get Unique Operations\r\n * @param domains String[] Domains Admin has rights to, null for all operations\r\n * @return String[]\r\n */\r\n public String[] GetOperationNames (String[] domains);\r\n\r\n /**\r\n * Get Document\r\n * @param fileID int\r\n * @return Document\r\n */\r\n public Document GetDocument (int fileID);\r\n\r\n /**\r\n * Get Document\r\n * @param fileID int\r\n * @return Document\r\n * The content of Document object is the temporary file path, not real data\r\n */\r\n public Document GetHugeDocument (int fileID);\r\n\r\n /**\r\n * Remove Documents\r\n * @param fileIDs int[]\r\n * @return boolean\r\n */\r\n public boolean RemoveDocuments (int[] fileIDs);\r\n\r\n /**\r\n * Remove Documents\r\n * @param transID String\r\n * @param names String[]\r\n * @return boolean\r\n */\r\n public boolean RemoveDocuments (String transID, String[] names);\r\n\r\n /**\r\n * Get Document Transanction ID\r\n * @param fileID int\r\n * @return Document\r\n */\r\n public String GetDocumentTransactionID (int fileID);\r\n\r\n /**\r\n * SaveDocument\r\n * @param fileID\r\n * @param transID\r\n * @param fileName\r\n * @param fileType\r\n * @param status\r\n * @param dataFlow\r\n * @param submitURL\r\n * @param submitToken\r\n * @param submitDate\r\n * @param content\r\n * @param user\r\n * @return String\r\n */\r\n public String SaveDocument (int fileID, String transID, String fileName, String fileType, String status, String dataFlow,\r\n String submitURL, String submitToken, Date submitDate, byte[] content, String user);\r\n\r\n /**\r\n * SaveDocument\r\n * @param fileID\r\n * @param documentID\r\n * @param transID\r\n * @param fileName\r\n * @param fileType\r\n * @param status\r\n * @param dataFlow\r\n * @param submitURL\r\n * @param submitToken\r\n * @param submitDate\r\n * @param content\r\n * @param user\r\n * @return String\r\n */\r\n public String SaveDocument (int fileID, String documentID,String transID, String fileName, String fileType, String status, String dataFlow,\r\n String submitURL, String submitToken, Date submitDate, byte[] content, String user);\r\n}", "public String getCorpConsitutionDoc() {\n return corpConsitutionDoc;\n }", "public interface IControllerDocBuilder {\n\n /**\n * build api docs and return as string\n *\n * @param controllerNode\n * @return\n */\n String buildDoc(ControllerNode controllerNode) throws IOException;\n\n}", "String getDefinition();", "public G2Definition getDefinition () throws G2AccessException;", "public interface ConfigService {\n\n /**\n * 获取合适条件分页属性数据\n *\n * @param proName\n * @param groupId\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigPropertyVO>> getConfigPropertyPage(String proName, long groupId, int page, int length);\n\n /**\n * 新增 or 更新属性数据\n *\n * @param propertyDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigProperty(ConfigPropertyDO propertyDO);\n\n /**\n * 删除指定id的属性数据\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigProperty(long id);\n\n /**\n * 获取合适条件分页属性组数据\n *\n * @param groupName\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigPropertyGroupDO>> getConfigPropertyGroupPage(String groupName, int page, int length);\n\n /**\n * 保存 or 更新属性组数据\n *\n * @param groupDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigPropertyGroup(ConfigPropertyGroupDO groupDO);\n\n /**\n * 删除指定id的属性组数据\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigPropertyGroup(long id);\n\n /**\n * 获取合适条件分页服务器组属性组数据\n *\n * @param groupId\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ServerGroupPropertiesVO>> getGroupPropertyPageByGroupId(long groupId, int page, int length);\n\n /**\n * 获取合适条件分页服务器组属性组数据\n *\n * @param groupId\n * @param serverId\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ServerGroupPropertiesVO>> getGroupPropertyPageByServerId(long groupId, long serverId, int page, int length);\n\n /**\n * 新增 or 更新服务器组属性组数据\n *\n * @param groupPropertiesVO\n * @return\n */\n BusinessWrapper<Boolean> saveServerPropertyGroup(ServerGroupPropertiesVO groupPropertiesVO);\n\n /**\n * 删除指定服务器组&属性组数据\n *\n * @param serverGroupPropertiesDO\n * @return\n */\n BusinessWrapper<Boolean> delServerPropertyGroup(ServerGroupPropertiesDO serverGroupPropertiesDO);\n\n /**\n * 查询指定服务器组id的属性组\n *\n * @param groupId\n * @return\n */\n List<ConfigPropertyGroupDO> getPropertyGroupByGroupId(long groupId);\n\n /**\n * 生成指定服务器组&属性组的配置文件\n *\n * @param serverGroupId\n * @param propertyGroupId\n * @return\n */\n // BusinessWrapper<String> createServerPropertyFile(long serverGroupId, long propertyGroupId);\n\n /**\n * 预览指定服务器组&属性组的配置文件\n *\n * @param serverGroupId\n * @param propertyGroupId\n * @return\n */\n List<PreviewConfig> previewServerPropertyFile(long serverGroupId, long propertyGroupId);\n\n /**\n * 加载指定服务器组&属性组的本地属性配置文件\n *\n * @param serverGroupId\n * @param propertyGroupId\n * @return\n */\n // BusinessWrapper<String> launchServerPropertyFile(long serverGroupId, long propertyGroupId);\n\n /**\n * 获取文件组\n *\n * @param groupName\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigFileGroupDO>> getConfigFileGroupPage(String groupName, int page, int length);\n\n /**\n * 保存 or 更新文件组信息\n *\n * @param configFileGroupDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigFileGroup(ConfigFileGroupDO configFileGroupDO);\n\n /**\n * 删除指定id的文件组信息\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigFileGroup(long id);\n\n /**\n * 获取文件\n *\n * @param configFileDO\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigFileVO>> getConfigFilePage(ConfigFileDO configFileDO, int page, int length);\n\n List<ConfigFileDO> getConfigFile();\n\n\n /**\n * 保存 or 更新文件信息\n *\n * @param configFileDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigFile(ConfigFileDO configFileDO);\n\n /**\n * 删除指定id的文件信息\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigFile(long id);\n\n /**\n * 创建 or 更新指定id的文件\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> createConfigFile(long id);\n\n\n /**\n * 查询不重复的文件路径\n *\n * @param fileGroupid\n * @return\n */\n List<ConfigFileDO> queryFilePath(long fileGroupid);\n\n\n /**\n * 创建 or 更新指定名称的文件\n *\n * @param fileName\n * @return\n */\n boolean createConfigFileByName(String fileName);\n\n /**\n * 创建并更新指定名称的配置文件(废弃)\n *\n * @param fileName\n * @return\n */\n void createAndInvokeConfigFile(String fileName, int envType);\n\n\n /**\n * 用户相关的配置文件自动同步和执行script\n */\n void invokeUserConfig();\n\n /**\n * 执行命令\n *\n * @param id\n * @return\n */\n BusinessWrapper<String> invokeConfigFileCmd(long id);\n\n\n /**\n * 预览本地内容\n *\n * @param id\n * @return\n */\n BusinessWrapper<String> launchConfigFile(long id);\n\n\n /**\n * 获取服务器组的属性\n *\n * @param serverGroupDO\n * @param key\n * @return\n */\n String acqConfigByServerGroupAndKey(ServerGroupDO serverGroupDO, String key);\n\n\n /**\n * 保存服务器组的属性\n *\n * @param serverGroupDO\n * @param key\n * @param value\n * @return\n */\n boolean saveConfigServerGroupValue(ServerGroupDO serverGroupDO, String key, String value);\n\n /**\n * 获取服务器属性\n *\n * @param serverDO\n * @param key\n * @return\n */\n\n\n String acqConfigByServerAndKey(ServerDO serverDO, String key);\n\n /**\n * 新增服务器的配置文件变更\n */\n void invokeServerConfig(ServerVO serverVO);\n\n /**\n * 新增服务器的配置文件变更\n *\n * @param serverGroupId\n * @param envType\n */\n void invokeServerConfig(long serverGroupId, int envType);\n\n /**\n * 删除服务器的配置文件变更\n */\n void invokeDelServerConfig(long serverGroupId, int envType);\n\n /**\n * 新增配置项的配置文件变更\n */\n void invokeConfig(long configPropertyGroupId, long serverGroupId, boolean isAddConfig);\n\n /**\n * 保存Getway主机配置文件\n *\n * @param file\n * @return\n */\n boolean saveGetwayHostFileConfigFile(String file);\n\n /**\n * 获取ansible所有主机列表文件\n *\n * @return\n */\n String getAnsibleHostsAllPath();\n\n\n BusinessWrapper<Boolean> saveFilePlaybook(ConfigFilePlaybookDO configFilePlaybookDO);\n\n List<ConfigFilePlaybookVO> getFilePlaybookPage();\n\n BusinessWrapper<Boolean> delFilePlaybook(long id);\n\n PlaybookLogVO doPlaybook(long id, int doType);\n\n PlaybookLogVO getPlaybookLog(long logId);\n\n PlaybookLogVO getPlaybookLog(PlaybookLogDO playbookLogDO);\n\n TableVO<List<PlaybookLogVO>> getPlaybookLogPage(String playbookName, String username, int page, int length);\n\n BusinessWrapper<Boolean> delPlaybookLog(long id);\n\n\n}", "public abstract Configuration configuration();", "Map<String, Object> updateConfig(VirtualHost vhost, String configtype, String id, Map<String, Object> doc);", "public interface RESTDocument {\n\n}", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public void setDocAction (String DocAction);", "public void setDocAction (String DocAction);", "@Property String getDocumentURI();", "public interface ConfigurationFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory. <!-- begin-user-doc --> <!--\n\t * end-user-doc -->\n\t * \n\t * @generated\n\t */\n\tConfigurationFactory eINSTANCE = zeugen.configuration.impl.ConfigurationFactoryImpl\n\t\t\t.init();\n\n\t/**\n\t * Returns a new object of class '<em>Schule</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Schule</em>'.\n\t * @generated\n\t */\n\tSchule createSchule();\n\n\t/**\n\t * Returns a new object of class '<em>Lehrkraft</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Lehrkraft</em>'.\n\t * @generated\n\t */\n\tLehrkraft createLehrkraft();\n\n\t/**\n\t * Returns a new object of class '<em>Notentyp</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Notentyp</em>'.\n\t * @generated\n\t */\n\tNotentyp createNotentyp();\n\n\t/**\n\t * Returns a new object of class '<em>Klassenstufe</em>'. <!--\n\t * begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Klassenstufe</em>'.\n\t * @generated\n\t */\n\tKlassenstufe createKlassenstufe();\n\n\t/**\n\t * Returns a new object of class '<em>Adresse</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Adresse</em>'.\n\t * @generated\n\t */\n\tAdresse createAdresse();\n\n\t/**\n\t * Returns a new object of class '<em>Person</em>'. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Person</em>'.\n\t * @generated\n\t */\n\tPerson createPerson();\n\n\t/**\n\t * Returns a new object of class '<em>Schulleiter</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Schulleiter</em>'.\n\t * @generated\n\t */\n\tSchulleiter createSchulleiter();\n\n\t/**\n\t * Returns a new object of class '<em>Schueler</em>'. <!-- begin-user-doc\n\t * --> <!-- end-user-doc -->\n\t * \n\t * @return a new object of class '<em>Schueler</em>'.\n\t * @generated\n\t */\n\tSchueler createSchueler();\n\n\t/**\n\t * Returns the package supported by this factory. <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * \n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tConfigurationPackage getConfigurationPackage();\n\n}", "public ConfmlEditor() {\r\n\t\tsuper();\r\n\t\tinitializeEditingDomain();\r\n\t}", "public interface ScmFxConfiguration {\n\n void save(Profile.Section section);\n void load(Profile.Section section);\n\n}", "public interface ConfigurationService\n{\n /**\n * 根据配置名称查询配置项, 名称需要唯一\n * @param configName\n * @return\n */\n Configuration selectByConfigName(String configName);\n\n}", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "public interface ContactHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: Contact\n\t */\n\tpublic com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;\n\t\n /**\n\t * Finds an instance using a key for Entity Bean: Contact\n\t */\n\tpublic com.vh.locker.ejb.Contact findByPrimaryKey(java.lang.Long primaryKey) throws javax.ejb.FinderException;\n\tpublic java.util.Collection findByUser(java.lang.Long userId) throws javax.ejb.FinderException;\n}", "org.omg.CORBA.Object _get_interface_def();", "ServiceConfig getServiceConfig();", "ServiceConfig getServiceConfig();", "public interface FMISComLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates a default instance of Session Bean: FMISBusiness\n\t */\n\tpublic FMISComLocal create() throws javax.ejb.CreateException;\n}", "protected Document() {/* intentionally empty block */}", "DocbookPackage getDocbookPackage();", "public interface IViewConfiguration {\r\n\r\n\t/** Get the filter defining how to handle conditional directives */\r\n\tIViewFilter getViewFilter();\r\n\t\r\n\t/** Get the fixed macros (macro name or name=value).\r\n\t * This array should not change after creation since this\r\n\t * configuration is stored in a view.\r\n\t */\r\n\tCollection<IDefine> getMacros();\r\n\r\n\t/**\r\n\t * Get the configuration for the parser. This may differ based\r\n\t * on SDK (i.e. different include paths or different keywords, etc.)\r\n\t */\r\n\tIViewParserConfiguration getViewParserConfiguration();\r\n}", "public String getDocumentType();", "protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> &ndash; all columns must be present in both tables</li>\\n<li><b>LEFT</b> &ndash; columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> &ndash; columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> &ndash; comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question &quot;Which column can have less columns?&quot;</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}", "public abstract List<ClinicalDocument> findAllClinicalDocuments();", "public IPSDocument getContainer();", "public interface LuceneFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tLuceneFactory eINSTANCE = de.dfki.s2m2.filter.textsim.lucene.impl.LuceneFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Memory Index</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Memory Index</em>'.\r\n\t * @generated\r\n\t */\r\n\tLuceneMemoryIndex createLuceneMemoryIndex();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tLucenePackage getLucenePackage();\r\n\r\n}", "public ComponentConfiguration getConfiguration();", "public interface DocumentDataModel extends Serializable {\n\n\t/**\n\t * Create's a view for this DocumentComponent that is suitable for\n\t * embedding directly in a frame. The view must create its own\n\t * menubar if it needs one. Standard menus that are usable as-is\n\t * are passed as parameters.\n\t *\n\t * @param selection The selection listener that keeps \"Edit\" menu updated\n\t * @param editListener The listener that keeps the Undo/Redo menu item\n\t * and undo history up to date.\n\t * @param menuKeys The listener that handles menu keys\n\t * @param fileMenu the standard file menu\n\t * @param editMenu the standard edit menu\n\t * @return the view\n\t */\n\tComponent createRootGUI(AppMain app, Frame f,\n\t\t\tSelectionListener selection, UndoableEditListener editListener,\n\t\t\tKeyListener menuKeys, JMenu fileMenu, JMenu editMenu);\n\n}", "public interface XmlConfigurable {\n\n /** Configure the object using the xml tree rooted at the supplied org.jdom.Element.\n * @param node An instance of org.jdom.Element containing the root of the object's\n * configuration information tree.\n * @throws Exception if the configuration is invalid in some way.\n */\n public void configure(Element node) throws Exception;\n\n}", "public interface IDocLibraryService {\r\n boolean add(DocLibrary doc);\r\n boolean del(String UUID);\r\n boolean set(DocLibrary doc);\r\n\r\n List<DocLibrary> getAll(String projectID);\r\n DocLibrary get(String UUID);\r\n}", "public void configureWord() {\n }", "public interface TBizProjectDocService extends BaseService<TBizProjectDoc,TBizProjectDocExample>{\n\n PageParams<TBizProjectDoc> list(PageParams<TBizProjectDoc> pageParams);\n\n List<TBizProjectDoc> listAll();\n\n TBizProjectDoc findById(@NotNull Long id);\n\n Boolean del(List<Long> ids);\n\n Boolean saveOrUpdate(TBizProjectDoc bean);\n\n\n void saveOrUpdate(Long projectId,List<Long> docIds);\n\n\n List<Long> getDocIdsByProjectId(Long projectId);\n\n}", "public String getDefinition(){\n\t\treturn definition;\n\t}" ]
[ "0.75065196", "0.60824424", "0.60294473", "0.58744645", "0.5831068", "0.5717989", "0.56901604", "0.5666071", "0.5617364", "0.5546978", "0.55319685", "0.5522068", "0.5506323", "0.55029166", "0.5492529", "0.5456948", "0.5455946", "0.5439097", "0.54125684", "0.53871214", "0.53675884", "0.5347797", "0.53398144", "0.53266567", "0.5311553", "0.52930653", "0.526233", "0.525599", "0.52504313", "0.5241993", "0.52380645", "0.52217066", "0.52111274", "0.51920044", "0.5181213", "0.5174662", "0.5162316", "0.5161722", "0.51594865", "0.5156413", "0.51513904", "0.5134414", "0.51311827", "0.51274955", "0.51266515", "0.51208794", "0.51079726", "0.5102954", "0.51010484", "0.5096729", "0.5086828", "0.5086822", "0.50829476", "0.5082358", "0.5078266", "0.50728875", "0.5070168", "0.506612", "0.50504535", "0.50486165", "0.5048554", "0.5045796", "0.5045073", "0.5044776", "0.50432515", "0.50327736", "0.5014808", "0.50129074", "0.5012099", "0.5005666", "0.5002926", "0.5002926", "0.4997643", "0.4997643", "0.49945864", "0.49836212", "0.49799412", "0.49750307", "0.49635667", "0.49595797", "0.49571717", "0.49566576", "0.49556386", "0.49556386", "0.4954245", "0.4954176", "0.49522582", "0.49489337", "0.4947419", "0.49456552", "0.49442968", "0.4944262", "0.4944185", "0.49424896", "0.4941689", "0.49384364", "0.49373347", "0.49366146", "0.4929468", "0.4928834" ]
0.7576422
0
Creates an instance from a key for Entity Bean: CfgDocument / public com.hps.july.persistence.CfgDocument create( int document, com.hps.july.persistence.Organization argOwner, com.hps.july.persistence.StoragePlace argTo, com.hps.july.persistence.Organization argContragent, com.hps.july.persistence.StoragePlace argFrom, com.hps.july.persistence.Worker argStorageManager) throws javax.ejb.CreateException, java.rmi.RemoteException; Finds an instance using a key for Entity Bean: CfgDocument
public com.hps.july.persistence.CfgDocument findByPrimaryKey( com.hps.july.persistence.DocumentKey primaryKey) throws javax.ejb.FinderException, java.rmi.RemoteException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CfgDocumentHome extends javax.ejb.EJBHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: CfgDocument\n\t */\n\t/*\n\tpublic com.hps.july.persistence.CfgDocument create(\n\t\tint document,\n\t\tcom.hps.july.persistence.Organization argOwner,\n\t\tcom.hps.july.persistence.StoragePlace argTo,\n\t\tcom.hps.july.persistence.Organization argContragent,\n\t\tcom.hps.july.persistence.StoragePlace argFrom,\n\t\tcom.hps.july.persistence.Worker argStorageManager)\n\t\tthrows javax.ejb.CreateException, java.rmi.RemoteException;\n\t*/\n\t/**\n\t * Finds an instance using a key for Entity Bean: CfgDocument\n\t */\n\tpublic com.hps.july.persistence.CfgDocument findByPrimaryKey(\n\t\tcom.hps.july.persistence.DocumentKey primaryKey)\n\t\tthrows javax.ejb.FinderException, java.rmi.RemoteException;\n\t\t\n\tpublic com.hps.july.persistence.CfgDocument create(\n\t\tint argDocument,\n\t\tInteger argOwner,\n\t\tInteger argFrom,\n\t\tInteger argTo,\n\t\tjava.sql.Date argBlankDate,\n\t\tint argBlankindex,\n\t\tString argBlankNumber,\n\t\tString argState,\n\t\tBoolean argProcessSource,\n\t\tBoolean argProcessDestination,\n\t\tint SavconfigIdOld,\n\t\tint SavconfigIdNew)\n\t\tthrows javax.ejb.CreateException, java.rmi.RemoteException;\n}", "public com.hps.july.persistence.LeaseDocumentKey ejbCreate(int leaseDocument) throws javax.ejb.CreateException, java.rmi.RemoteException {\n\t\t_initLinks();\n\t\tthis.leaseDocument = leaseDocument;\n\t\treturn null;\n\t}", "public void ejbCreate(int argLeaseDocument, java.sql.Date argDocDate, String argDocNumber ) throws javax.ejb.CreateException, java.rmi.RemoteException {\n\t_initLinks();\n\t// All CMP fields should be initialized here.\n\tleaseDocument = argLeaseDocument;\n\tdocumentDate = argDocDate;\n\tdocumentNumber = argDocNumber;\n\toperator = null;\n\tmodified = null;\n\tmodifiedby = null;\n\tcreated = null;\n\tcreatedby = null;\n\tregionid = 1;\n\tsetOperator();\n}", "public interface CfgDocument extends com.hps.july.persistence.Document, com.ibm.ivj.ejb.runtime.CopyHelper {\n\n\n\n\t/**\n\t * Get accessor for persistent attribute: savconfigidold\n\t */\n\tpublic int getSavconfigidold() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: savconfigidold\n\t */\n\tpublic void setSavconfigidold(int newSavconfigidold)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: savconfigidnew\n\t */\n\tpublic int getSavconfigidnew() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: savconfigidnew\n\t */\n\tpublic void setSavconfigidnew(int newSavconfigidnew)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: storedem\n\t */\n\tpublic java.lang.Integer getStoredem() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: storedem\n\t */\n\tpublic void setStoredem(java.lang.Integer newStoredem)\n\t\tthrows java.rmi.RemoteException;\n\t/**\n\t * Get accessor for persistent attribute: storebad\n\t */\n\tpublic java.lang.Integer getStorebad() throws java.rmi.RemoteException;\n\t/**\n\t * Set accessor for persistent attribute: storebad\n\t */\n\tpublic void setStorebad(java.lang.Integer newStorebad)\n\t\tthrows java.rmi.RemoteException;\n}", "Document saveDocument(Document document) throws EntityExistsException;", "Documento createDocumento();", "@Override\n public DocumentServiceEntry createDocument(String title, String contents) throws DocumentServiceException {\n DocsService svc = getDocsService();\n DocumentEntry newDocument = new DocumentEntry();\n newDocument.setTitle(new PlainTextConstruct(title));\n DocumentEntry entry;\n try {\n MediaByteArraySource source = new MediaByteArraySource(contents.getBytes(\"UTF8\"), \"text/plain\");\n newDocument.setMediaSource(source);\n entry = svc.insert(new URL(DOCS_SCOPE + \"default/private/full\"), newDocument);\n } catch (Exception e) {\n e.printStackTrace();\n throw new DocumentServiceException(e.getMessage());\n }\n return getDocumentReference(entry);\n }", "public void ejbCreate(int argLogid, java.sql.Timestamp argRecdate, short argObjtype, int argObjid, \n\t\tString argEventtype, int argMan) throws javax.ejb.CreateException, java.rmi.RemoteException {\n\t_initLinks();\n\t// All CMP fields should be initialized here.\n\tlogid = argLogid;\n\trecdate = argRecdate;\n\tobjtype = argObjtype;\n\tobjid = argObjid;\n\teventtype = argEventtype;\n\tpeople_man = new Integer(argMan);\n}", "@Override\n\tpublic RigoDocumento create(RigoDocumentoPK rigoDocumentoPK) {\n\t\tRigoDocumento rigoDocumento = new RigoDocumentoImpl();\n\n\t\trigoDocumento.setNew(true);\n\t\trigoDocumento.setPrimaryKey(rigoDocumentoPK);\n\n\t\treturn rigoDocumento;\n\t}", "public void addInDocument(com.hps.july.persistence.Document arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().addInDocument(arg0);\n }", "@Override\n\tpublic boolean create(Document obj) {\n\t\tSystem.out.println(obj);\n\t\tString sql = \"INSERT INTO public.documents( nom, etape_id, process_id)\\r\\n\"\n\t\t\t\t+ \"\tVALUES ('\" + obj.getNom() + \"', \" + obj.getId_etape()+ \" , \"+obj.getId_process()+\");\";\n\t\ttry {\n\t\t\tSystem.out.println(sql);\n\t\t\tPreparedStatement statement = this.connect.prepareStatement(sql);\n\t\t\tstatement.execute();\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "public FMISComLocal create() throws javax.ejb.CreateException;", "@PostMapping(\"/document-entities\")\n public ResponseEntity<DocumentEntityDTO> createDocumentEntity(@Valid @RequestBody DocumentEntityDTO documentEntityDTO) throws URISyntaxException {\n log.debug(\"REST request to save DocumentEntity : {}\", documentEntityDTO);\n if (documentEntityDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new documentEntity cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DocumentEntityDTO result = documentEntityService.save(documentEntityDTO);\n return ResponseEntity.created(new URI(\"/api/document-entities/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public Document addDocument(Document arg0) throws ContestManagementException {\r\n return null;\r\n }", "public I13nDateSavingKey(DocumentKey argI13nAct, StorageCardKey argStorageCard) {\n\tprivateSetI13nActKey(argI13nAct);\n\tprivateSetStorageCardKey(argStorageCard);\n}", "public Document addDocument(Document document) throws ContestManagementException {\r\n return null;\r\n }", "@Override\n public DocumentServiceEntry saveDocument(String documentId, String etag, String title,\n String contents) throws DocumentServiceException {\n if (documentId == null || documentId.equals(\"\")) {\n return createDocument(title, contents);\n } else {\n return setDocumentContents(documentId, etag, contents);\n }\n }", "E create(E entity);", "E create(E entity);", "void create(E entity);", "public com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;", "void validateCreate(ClaudiaData claudiaData, EnvironmentDto environmentDto, String vdc) throws \r\n AlreadyExistEntityException, InvalidEntityException;", "public abstract void factory(Dictionary dictionary, Suggester suggester, IndexFacade aprioriIndex, String aprioriIndexField, Analyzer aprioriAnalyzer, IndexWriter.MaxFieldLength mfl) throws IOException, QueryException;", "BeanPedido crearPedido(BeanCrearPedido pedido);", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "public co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.soltec\n\t\t.datos_publicacion\n\t\t.ejb\n\t\t.sb\n\t\t.DatosPublicacionSTLocal create()\n\t\tthrows javax.ejb.CreateException;", "Documentable createDocumentable();", "@Override\n\tpublic Map<String, Object> create(StoreBase entity) {\n\t\treturn null;\n\t}", "public OpticalHopAccessBean(int arg0) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException {\n ejbRef = ejbHome().create(arg0);\n }", "interface Factory {\n KeyExtractor create(Class<?> entity);\n }", "@Override\n public DocumentServiceEntry getNewDocument() {\n UserService userService = UserServiceFactory.getUserService();\n DocumentServiceEntry doc = new DocumentServiceEntry();\n doc.setTitle(\"Untitled Document\");\n doc.setIdentifier(doc.getTitle().replaceAll(\"[^a-zA-Z0-9_\\\\-\\\\.]\", \"\"));\n doc.setAuthor(userService.getCurrentUser().getEmail());\n doc.setEditor(userService.getCurrentUser().getNickname());\n return doc;\n }", "public void testDuplicateOfficeActionCreation(Map<String, String> offActnParam) {\n\n ClientResponse response = createDocument(offActnParam);\n assertEquals(409, response.getStatus());\n }", "Entity createEntity();", "public SuperRegionAccessBean(int arg0, java.lang.String arg1) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException {\n ejbRef = ejbHome().create(arg0, arg1);\n }", "private Document createMapping() {\n return getIndexOperations().createMapping();\n }", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();", "@ApiOperation(value=\"creates a document\", notes = \"The DocumentContent is a string but must be in HEX Digits, et \\\"AFFE\\\" is valid, but \\\"Hello\\\" isnt.\")\n @RequestMapping(\n value = \"/document\",\n method = {RequestMethod.PUT},\n consumes = {APPLICATION_JSON}\n )\n public void storeDocument(@RequestHeader(\"userid\") String userid,\n @RequestHeader(\"password\") String password,\n @RequestBody DSDocument dsDocument) {\n UserIDAuth userIDAuth = new UserIDAuth(new UserID(userid), new ReadKeyPassword(password));\n service.storeDocument(userIDAuth, dsDocument);\n }", "protected boolean criarPastaDocumento(Map<Object, Object> document,\r\n\t\t\tList<String> folders, Map<Object, Object> metadatas, String ext)\r\n\t\t\t\t\tthrows Exception {\r\n\r\n\t\tboolean error = false;\r\n\t\tObjectIdentity objIdentity = new ObjectIdentity(REPOSITORY_NAME);\r\n\r\n\t\tDataPackage dataPackage = new DataPackage();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tStringBuilder sPath = new StringBuilder();\r\n\r\n\t\t\tsPath.append(BAR_FOLDER);\r\n\r\n\t\t\tsPath.append(CABINET);\r\n\r\n\t\t\t// sPath.append(BAR_FOLDER);\r\n\r\n\t\t\t// sPath.append(FOLDER_LEVEL_2);\r\n\r\n\t\t\tString path = sPath.toString();\r\n\r\n\t\t\tDataObject folderObject = null;\r\n\r\n\t\t\tfor (String folder : folders) {\r\n\r\n\t\t\t\tpath = path.concat(BAR_FOLDER + folder);\r\n\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\t\t\tsb.append(String.format(DQL_SELECT_FOLDER, path));\r\n\r\n\t\t\t\tString dqlSelectFolder = sb.toString();\r\n\r\n\t\t\t\tList<DataObject> dataObjectFolder = getDataObjectsByDql(dqlSelectFolder);\r\n\r\n\t\t\t\tif (dataObjectFolder.size() == 0) {\r\n\r\n\t\t\t\t\tString containnerPath = path;\r\n\r\n\t\t\t\t\tcontainnerPath = containnerPath.replace(\r\n\t\t\t\t\t\t\tBAR_FOLDER + folder, EMPTY);\r\n\r\n\t\t\t\t\tString dqlCreateFolder = String.format(DQL_CREATE_FOLDER,\r\n\t\t\t\t\t\t\tfolder, containnerPath);\r\n\r\n\t\t\t\t\tInteger returnCreateFolder = executeQuery(dqlCreateFolder);\r\n\r\n\t\t\t\t\tif (returnCreateFolder == 1) {\r\n\r\n\t\t\t\t\t\tdataObjectFolder = getDataObjectsByDql(dqlSelectFolder);\r\n\r\n\t\t\t\t\t\tfolderObject = dataObjectFolder.get(0);\r\n\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tthrow new Exception(String.format(ERROR_CREATE_FOLDER,\r\n\t\t\t\t\t\t\t\tfolder, containnerPath));\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tfolderObject = dataObjectFolder.get(0);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tDataObject docDataObj = null;\r\n\r\n\t\t\tif (document.containsKey(CHAVE_TIPO_DOCUMENTAL)) {\r\n\r\n\t\t\t\tdocDataObj = new DataObject(objIdentity,\r\n\t\t\t\t\t\tString.valueOf(document.get(CHAVE_TIPO_DOCUMENTAL)));\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tthrow new Exception(String.format(ERROR_MISSING_KEY_MAP,\r\n\t\t\t\t\t\tCHAVE_TIPO_DOCUMENTAL));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tPropertySet properties = new PropertySet();\r\n\r\n\t\t\tif (document.containsKey(CHAVE_ARQUIVO)) {\r\n\r\n\t\t\t\tproperties.set(TITLE,\r\n\t\t\t\t\t\t((File) document.get(CHAVE_ARQUIVO)).getName());\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tthrow new Exception(String.format(ERROR_MISSING_KEY_MAP,\r\n\t\t\t\t\t\tCHAVE_ARQUIVO));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// properties.set(A_CONTENT_TYPE, ext);\r\n\r\n\t\t\tif (null != metadatas && metadatas.size() > 0) {\r\n\r\n\t\t\t\tfor (Entry<Object, Object> metadata : metadatas.entrySet()) {\r\n\r\n\t\t\t\t\tlogger.info(INFO_CREATE_METADATA\r\n\t\t\t\t\t\t\t.concat(String.valueOf(metadata.getKey()))\r\n\t\t\t\t\t\t\t.concat(SPACE).concat(UNDERSCORE).concat(SPACE)\r\n\t\t\t\t\t\t\t.concat(String.valueOf(metadata.getValue())));\r\n\r\n\t\t\t\t\tproperties.set(String.valueOf(metadata.getKey()),\r\n\t\t\t\t\t\t\tmetadata.getValue());\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tdocDataObj.setProperties(properties);\r\n\r\n\t\t\tdocDataObj.getContents().add(\r\n\t\t\t\t\tnew FileContent(((File) document.get(CHAVE_ARQUIVO))\r\n\t\t\t\t\t\t\t.getAbsolutePath(), PDF));\r\n\r\n\t\t\tObjectRelationship objRelationship = new ObjectRelationship();\r\n\r\n\t\t\tobjRelationship.setTarget(folderObject);\r\n\r\n\t\t\tobjRelationship.setName(Relationship.RELATIONSHIP_FOLDER);\r\n\r\n\t\t\tobjRelationship.setTargetRole(Relationship.ROLE_PARENT);\r\n\r\n\t\t\tdocDataObj.getRelationships().add(\r\n\t\t\t\t\tnew ObjectRelationship(objRelationship));\r\n\r\n\t\t\tdataPackage.addDataObject(docDataObj);\r\n\r\n\t\t\tRelationshipProfile relationProfile = new RelationshipProfile();\r\n\r\n\t\t\trelationProfile.setResultDataMode(ResultDataMode.REFERENCE);\r\n\r\n\t\t\trelationProfile.setTargetRoleFilter(TargetRoleFilter.ANY);\r\n\r\n\t\t\trelationProfile.setNameFilter(RelationshipNameFilter.ANY);\r\n\r\n\t\t\trelationProfile.setDepthFilter(DepthFilter.SPECIFIED);\r\n\r\n\t\t\trelationProfile.setDepth(2);\r\n\r\n\t\t\tOperationOptions operationOptions = new OperationOptions();\r\n\r\n\t\t\toperationOptions.setRelationshipProfile(relationProfile);\r\n\r\n\t\t\tString fileName = null;\r\n\r\n\t\t\tif (document.containsKey(CHAVE_NOME_ARQUIVO)) {\r\n\r\n\t\t\t\tfileName = (String) document.get(CHAVE_NOME_ARQUIVO);\r\n\r\n\t\t\t\tproperties.set(OBJECT_NAME, fileName);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\terror = true;\r\n\t\t\t\tthrow new Exception(String.format(ERROR_MISSING_KEY_MAP,\r\n\t\t\t\t\t\tCHAVE_NOME_ARQUIVO));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(INFO_INICIACAO_OPERACAO);\r\n\r\n\t\t\tdataPackage = this.objectService.create(dataPackage,\r\n\t\t\t\t\toperationOptions);\r\n\r\n\t\t\tlogger.info(INFO_CREATED_FILE_EMC.concat(fileName));\r\n\r\n\t\t} catch (CoreServiceException e) {\r\n\r\n\t\t\terror = true;\r\n\t\t\tlogger.error(ERROR_REPOSITORIO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t} catch (ServiceException e) {\r\n\r\n\t\t\terror = true;\r\n\t\t\tlogger.error(ERROR_SERVICO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t}\r\n\r\n\t\treturn error;\r\n\t}", "private Document createDocumentForTest() {\r\n\r\n EntityManager em = com.topcoder.service.studio.contest.bean.MockEntityManager.EMF.createEntityManager();\r\n em.getTransaction().begin();\r\n\r\n FilePath path = new FilePath();\r\n path.setModifyDate(new Date());\r\n path.setPath(\"path\");\r\n\r\n StudioFileType studioFileType = new StudioFileType();\r\n studioFileType.setDescription(\"description\");\r\n studioFileType.setExtension(\"extension\");\r\n studioFileType.setImageFile(true);\r\n studioFileType.setSort(1);\r\n em.persist(studioFileType);\r\n\r\n MimeType mimeType = new MimeType();\r\n mimeType.setDescription(\"description\");\r\n mimeType.setStudioFileType(studioFileType);\r\n mimeType.setMimeTypeId(1L);\r\n em.persist(mimeType);\r\n\r\n DocumentType type = new DocumentType();\r\n type.setDescription(\"description\");\r\n type.setDocumentTypeId(1L);\r\n em.persist(type);\r\n\r\n em.getTransaction().commit();\r\n em.close();\r\n\r\n Document document = new Document();\r\n document.setOriginalFileName(\"originalFileName\");\r\n document.setSystemFileName(\"systemFileName\");\r\n document.setPath(path);\r\n document.setMimeType(mimeType);\r\n document.setType(type);\r\n document.setCreateDate(new Date());\r\n\r\n return document;\r\n }", "public Mapping createInstance(Document xbrlDocument) {\n List<Document> docList = new ArrayList<>();\n docList.add(xbrlDocument);\n return createInstance(docList);\n }", "public RequestedDocument addRequestedDocument(AddRequestedDocumentCommand aCommand);", "public CarAccessBean(int arg0, java.lang.Boolean arg1, java.lang.String arg2, java.lang.String arg3) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException {\n ejbRef = ejbHome().create(arg0, arg1, arg2, arg3);\n }", "protected abstract ENTITY createEntity();", "Definition createDefinition();", "public EquipmentSetAccessBean(int arg0) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException {\n ejbRef = ejbHome().create(arg0);\n }", "public void ejbCreate()\n throws RemoteException, CreateException {\n }", "Dimension_hauteur createDimension_hauteur();", "private static void createIndexEntry(Document document, int menuId, String filename, String path) throws Exception {\r\n Indexer index = (Indexer) Context.getInstance().getBean(Indexer.class);\r\n index.deleteFile(String.valueOf(menuId), document.getLanguage());\r\n index.addDirectory(new File(path + filename), document);\r\n }", "default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }", "public EntityBundleCreate() {}", "Document getDocument(Long documentID) throws EntityNotFoundException;", "@Override\n public DocumentModel createDocument(CoreSession session, Blob content, DocumentModel mainDoc, DocumentModel folder)\n throws IOException {\n\n return createDocument(session, content, mainDoc, folder, false);\n }", "OperacionColeccion createOperacionColeccion();", "public interface DocbookFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tDocbookFactory eINSTANCE = ttc2019.live.docbook.impl.DocbookFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Doc Book</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Doc Book</em>'.\n\t * @generated\n\t */\n\tDocBook createDocBook();\n\n\t/**\n\t * Returns a new object of class '<em>Book</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Book</em>'.\n\t * @generated\n\t */\n\tBook createBook();\n\n\t/**\n\t * Returns a new object of class '<em>Article</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Article</em>'.\n\t * @generated\n\t */\n\tArticle createArticle();\n\n\t/**\n\t * Returns a new object of class '<em>Sect1</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Sect1</em>'.\n\t * @generated\n\t */\n\tSect1 createSect1();\n\n\t/**\n\t * Returns a new object of class '<em>Sect2</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Sect2</em>'.\n\t * @generated\n\t */\n\tSect2 createSect2();\n\n\t/**\n\t * Returns a new object of class '<em>Para</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Para</em>'.\n\t * @generated\n\t */\n\tPara createPara();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tDocbookPackage getDocbookPackage();\n\n}", "PrimaryKey createPrimaryKey();", "ShippingDocument createShippingDocument();", "@Override\n\tprotected Entity createNewEntity(final Object baseObject) {\n\t\tProductAssociation productAssociation = getBean(ContextIdNames.PRODUCT_ASSOCIATION);\n\t\tproductAssociation.setGuid(new RandomGuidImpl().toString());\n\t\tproductAssociation.setCatalog(this.getImportJob().getCatalog());\n\t\treturn productAssociation;\n\t}", "PK create(T newInstance);", "public VcmsArticleType create(\n\t\tvn.gov.hoabinh.service.persistence.VcmsArticleTypePK vcmsArticleTypePK);", "public DBRecordKey<gDBR> createKey() // <? extends DBRecord<?>>\n throws DBException\n {\n if (this.keyClass != null) {\n try {\n // this creates an empty key with no key fields\n Constructor<? extends DBRecordKey<gDBR>> kc = this.keyClass.getConstructor(new Class<?>[0]);\n return kc.newInstance(new Object[0]); // \"unchecked cast\"\n } catch (Throwable t) { // NoSuchMethodException, ...\n // Implementation error (should never occur)\n throw new DBException(\"Key Creation\", t);\n }\n }\n return null;\n }", "public abstract Object create(ElementMapping elementMapping, ReadContext context);", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key insertNewKey(int i);", "@Override\n\tpublic void create(Owner owner) {\n\n\t}", "Article createArticle();", "public static Document create(Document passport,Map<String, Object> data) throws Exception {\n\t\tList<String> errors=new LinkedList<String>();\n\t\tBookmark obj= new Bookmark();\n\t\tupdateFromMap(obj, data,errors);\n\t\tobj.setCreatedBy(passport.getString(\"loginName\"));\n\t\tobj.setCreatedDate(new Date());\n\t\tobj.setLastUpdatedBy(obj.getCreatedBy());\n\t\tobj.setLastUpdatedDate(obj.getCreatedDate());\n\t\tACLManager.isAuthorize(passport,ACL_MODE, ACLManager.ACTION_CREATE, null, toDocument(obj));\n\t\tobj.setStatus(StatusService.getInstance().getByTypeandCode(\"Bookmark\", \"new\"));\n\t\tobj.setOwner(UserService.getInstance().get(passport.getLong(\"userId\")));\n\t\tcheckValidity(obj, errors);\n\t\tif(!errors.isEmpty()) throw new Exception(listToString(errors));\n\t\tBookmarkService.getInstance().add(obj);\n\t\treturn toDocument(obj);\n\t}", "For createFor();", "public void secondaryAddInDocument(com.hps.july.persistence.Document arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondaryAddInDocument(arg0);\n }", "@Override\r\n\tpublic JSONObject createDocumentClass(JSONObject jsonObject) throws EDRMException {\r\n\t\tFnAuthDataProviderImpl connectionImpl = new FnAuthDataProviderImpl();\r\n\t\tObjectStore objStore = connectionImpl.getObjectStore();\r\n\t\tDocumentServicesUtil documentServicesUtil = new DocumentServicesUtil();\r\n\t\tJSONObject resultObject = null;\r\n\t\tString responseCode = null;\r\n\t\tString responseMessage = null;\r\n\t\ttry {\r\n\t\t\t//requesting parameters information from JSON object\r\n\t\t\tJSONObject requestDetailsJsonObject = (JSONObject) jsonObject.get(EDRMServiceConstants.REQUEST_DETAILS);\r\n\t\t\tJSONObject documentClassJsonObject = (JSONObject) requestDetailsJsonObject\r\n\t\t\t\t\t.get(EDRMServiceConstants.DOCUMENT_CLASS);\r\n\t\t\tString documentDisplayName = (String) documentClassJsonObject\r\n\t\t\t\t\t.get(EDRMServiceConstants.DOCUMENT_DISPLAY_NAME);\r\n\t\t\tString documentSymbolicName = (String) documentClassJsonObject\r\n\t\t\t\t\t.get(EDRMServiceConstants.DOCUMENT_SYMBOLIC_NAME);\r\n\t\t\tString documentParentClass = (String) documentClassJsonObject\r\n\t\t\t\t\t.get(EDRMServiceConstants.DOCUMENT_PARENT_CLASS);\r\n\t\t\tString documentCreator = (String) documentClassJsonObject.get(EDRMServiceConstants.CREATOR);\r\n\t\t\tString documentDateCreated = (String) documentClassJsonObject\r\n\t\t\t\t\t.get(EDRMServiceConstants.DATE_CREATED);\r\n\t\t\tString activeDirectory = EDRMServiceConstants.ACTIVE_DIRECTORY;\r\n\t\t\t//creating of document classes\r\n\t\t\tresultObject = documentServicesUtil.createDocumentClass(objStore, documentSymbolicName, documentDisplayName,\r\n\t\t\t\t\tdocumentParentClass, documentCreator+activeDirectory, documentDateCreated);\r\n\t\t\tresponseCode = resultObject.getString(EDRMServiceConstants.RESPONSE_CODE);\r\n\t\t\tresponseMessage = resultObject.getString(EDRMServiceConstants.RESPONSE_MESSAGE);\r\n\t\t\t//success response from FileNet\r\n\t\t\treturn new CommonServicesUtil().generateSuccessResponse(responseCode, responseMessage, null, null, \r\n\t\t\t\t\tresultObject.getString(EDRMServiceConstants.DOCUMENT_ID));\r\n\t\t} catch (EngineRuntimeException engineRuntimeException) {\r\n\t\t\tif (resultObject != null)\r\n\t\t\t\treturn new EDRMException().generateExceptionDetails(responseCode,\r\n\t\t\t\t\t\tEDRMServiceConstants.DOCUMENT_CLASS_CREATED_SECURITY_FAILED,\r\n\t\t\t\t\t\tengineRuntimeException.getExceptionCode().getErrorId(), engineRuntimeException.getMessage());\r\n\t\t\telse\r\n\t\t\t\treturn new EDRMException().generateExceptionDetails(\r\n\t\t\t\t\t\tEDRMServiceConstants.INTERNAL_SERVER_ERROR_STATUS_CODE,\r\n\t\t\t\t\t\tEDRMServiceConstants.ENGINE_RUNTIME_EXCEPTION,\r\n\t\t\t\t\t\tengineRuntimeException.getExceptionCode().getErrorId(), engineRuntimeException.getMessage());\r\n\t\t} catch (JSONException jsonException) {\r\n\t\t\treturn new EDRMException().generateExceptionDetails(EDRMServiceConstants.STATUS_CODE_NO_CONTENT,\r\n\t\t\t\t\tEDRMServiceConstants.JSON_EXCEPTION, EDRMServiceConstants.INTERNAL_SERVER_ERROR_STATUS_CODE,\r\n\t\t\t\t\tjsonException.getMessage());\r\n\t\t} catch (Exception jsonException) {\r\n\t\t\treturn new EDRMException().generateExceptionDetails(EDRMServiceConstants.STATUS_CODE_NO_CONTENT,\r\n\t\t\t\t\tEDRMServiceConstants.GENERAL_EXCEPTION, EDRMServiceConstants.INTERNAL_SERVER_ERROR_STATUS_CODE,\r\n\t\t\t\t\tjsonException.getMessage());\r\n\t\t} finally {\r\n\t\t\tconnectionImpl.doSignOff();\r\n\t\t}\r\n\t}", "public CreateDocumentController() {\n }", "private Object createObject(ObjectFactory objectFactory, String objectKey, Class<?> type)\r\n throws CockpitConfigurationException {\r\n try {\r\n Object obj = objectFactory.createObject(objectKey);\r\n\r\n if (!type.isInstance(obj)) {\r\n throw new CockpitConfigurationException(\"The configured object for key [\" + objectKey\r\n + \"] is not an instance of \" + type.getName());\r\n }\r\n\r\n return obj;\r\n } catch (InvalidClassSpecificationException e) {\r\n throw new CockpitConfigurationException(\r\n \"InvalidClassSpecificationException occurs while creating object with key [\" + objectKey\r\n + \"] using object factory\", e);\r\n }\r\n }", "public SuperRegionAccessBean(int arg0, java.lang.String arg1, int arg2) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException {\n ejbRef = ejbHome().create(arg0, arg1, arg2);\n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "Document getDocument(Long documentID, Integer type) throws EntityNotFoundException;", "@Override\n public void createGoodsIssuedDocumentDetail(Long grdId, Long stockId, Long quantity) {\n goodsIssuedDocumentDetail = new GoodsIssuedDocumentDetail();\n goodsIssuedDocument = getGoodsIssuedDocument(grdId);\n stock = (Stock) em.find(Stock.class, stockId);\n goodsIssuedDocumentDetail.setGoodsIssuedDocument(goodsIssuedDocument);\n goodsIssuedDocumentDetail.setStock(stock);\n goodsIssuedDocumentDetail.setQuantity(quantity);\n goodsIssuedDocument.getGoodsIssuedDocumentDetails().add(goodsIssuedDocumentDetail);\n em.persist(goodsIssuedDocumentDetail);\n em.merge(goodsIssuedDocument);\n em.flush();\n }", "@Override\n void create(Cliente cliente);", "T createEntity();", "public Object create(String key_letters) throws XtumlException;", "public AccountingDocumentConfirmation addAccountingDocument(RetailscmUserContext userContext, String accountingDocumentConfirmationId, String name, Date accountingDocumentDate, String accountingPeriodId, String documentTypeId , String [] tokensExpr) throws Exception;", "public EquipmentSetAccessBean(int arg0, java.lang.Integer arg1, java.lang.String arg2, java.lang.String arg3) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException {\n ejbRef = ejbHome().create(arg0, arg1, arg2, arg3);\n }", "public interface DocumentDAO extends UniqueNamedEntityCrudDAO<Document> {\n\n Document createIfNotExists(String documentName, String documentUrl);\n}", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public void newFileCreated(OpenDefinitionsDocument doc) { }", "public static Key createEntity(EntityManager em) {\n Key key = new Key()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n return key;\n }", "public void addDocumentToContest(long arg0, long arg1) throws ContestManagementException {\r\n }", "public ServiceJob(Document document) {\n\t\tsuper();\n\t\tthis.setDocument(document);\n\t}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public void ejbCreate() throws jakarta.ejb.CreateException {\n testAllowedOperations(\"ejbCreate\");\n }", "alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore();", "public static void createDocument(String[] attributes) {\n\t\tattributes[2] = attributes[2].toUpperCase();\n\t\tint orgID = OrganizationService.getOrgByUsername(attributes[2]).getId();\n\t\ttry {\n\t\t\t\n\t\t\tDocument docu = DocumentService.getDocumentByTitleAndOrg(attributes[5], orgID);\n\t\t\t//System.out.println(orgID);\n\t\t\tif(docu == null) {\n\t\t\t\t//create document\n\t\t\t\tDocument document = new Document();\n\t\t\t\t//System.out.println(attributes[2]);\n\t\t\t\t\n\t\t\t\tdocument.setOrgID(orgID);\n\t\t\t\tdocument.setTitle(attributes[5]);\n\t\t\t\tdocument.setTerm(attributes[1]);\n\t\t\t\t\n\t\t\t\tDocumentService.addDocument(document);\n\n\t\t\t} \n\t\t\tcreateActivity(attributes, docu.getId(), orgID);\n\t\t} catch(Exception e){\n\t\t\tSystem.out.println(\"Error\");\n\t\t}\n\t\t/*else if(attributes.length >= 20) {\n\t\t\tif (attributes[19].equals(\"In Case of Change\")\n\t\t\t\t || attributes[19].equals(\"Activity Not in GOSM\")) {\n\t\t\t\tcreateActivity(attributes);\n\t\t\t} else {\n\t\t\t\tcreateSubmission(attributes);\n\t\t\t}\n\t\t} else {\n\t\t\tcreateSubmission(attributes);\n\t\t}*/\n\t\t\n\t}", "public EntityType getCreateEntity(DtoType dto) throws ClassNotFoundException, InstantiationException, IllegalAccessException;", "public void newDocument();", "@StartStep(localName=\"create-config-document-context\", after={\"xml-factory-lifecycle\"})\n public static void startCreateConfigDocumentContext() \n throws LifecycleException \n {\n Lifecycle.configDocumentContext = createConfigurationContext(XCHAIN_CONFIG);\n }", "alluxio.proto.journal.KeyValue.CreateStoreEntryOrBuilder getCreateStoreOrBuilder();", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "@SuppressWarnings(\"unchecked\")\n @Override\n protected void buildPdfDocument(Map<String, Object> model, Document document, PdfWriter writer,\n HttpServletRequest request, HttpServletResponse response) throws Exception {\n createNewPdfByTemplate(model,document,writer,request,response);\n\n }", "@PostMapping(\"/docentes\")\n public ResponseEntity<DocenteDTO> createDocente(@Valid @RequestBody DocenteDTO docenteDTO) throws URISyntaxException {\n log.debug(\"REST request to save Docente : {}\", docenteDTO);\n if (docenteDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new docente cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DocenteDTO result = docenteService.save(docenteDTO);\n return ResponseEntity.created(new URI(\"/api/docentes/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@POST\r\n public DocumentoDTO crearDocumento(DocumentoDTO documento){\r\n return new DocumentoDTO(logic.crearDocumento(documento.toEntity()));\r\n }", "Foco createFoco();", "protected abstract T createNewEntry(PersistentEntity persistentEntity);", "protected DataPackage createFolderAndDocument(Map<Object, Object> document,\tList<String> folders, Map<Object, Object> metadatas, String ext)\r\n\t\t\tthrows Exception {\r\n\r\n\t\tObjectIdentity objIdentity = new ObjectIdentity(REPOSITORY_NAME);\r\n\r\n\t\tDataPackage dataPackage = new DataPackage();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tStringBuilder sPath = new StringBuilder();\r\n\r\n\t\t\tsPath.append(BAR_FOLDER);\r\n\r\n\t\t\tsPath.append(CABINET);\r\n\r\n\t\t\t// sPath.append(BAR_FOLDER);\r\n\r\n\t\t\t// sPath.append(FOLDER_LEVEL_2);\r\n\r\n\t\t\tString path = sPath.toString();\r\n\r\n\t\t\tDataObject folderObject = null;\r\n\r\n\t\t\tfor (String folder : folders) {\r\n\r\n\t\t\t\tpath = path.concat(BAR_FOLDER + folder);\r\n\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\t\t\tsb.append(String.format(DQL_SELECT_FOLDER, path));\r\n\r\n\t\t\t\tString dqlSelectFolder = sb.toString();\r\n\r\n\t\t\t\tList<DataObject> dataObjectFolder = getDataObjectsByDql(dqlSelectFolder);\r\n\r\n\t\t\t\tif (dataObjectFolder.size() == 0) {\r\n\r\n\t\t\t\t\tString containnerPath = path;\r\n\r\n\t\t\t\t\tcontainnerPath = containnerPath.replace(\r\n\t\t\t\t\t\t\tBAR_FOLDER + folder, EMPTY);\r\n\r\n\t\t\t\t\tString dqlCreateFolder = String.format(DQL_CREATE_FOLDER,\r\n\t\t\t\t\t\t\tfolder, containnerPath);\r\n\r\n\t\t\t\t\tInteger returnCreateFolder = executeQuery(dqlCreateFolder);\r\n\r\n\t\t\t\t\tif (returnCreateFolder == 1) {\r\n\r\n\t\t\t\t\t\tdataObjectFolder = getDataObjectsByDql(dqlSelectFolder);\r\n\r\n\t\t\t\t\t\tfolderObject = dataObjectFolder.get(0);\r\n\r\n\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\tthrow new Exception(String.format(ERROR_CREATE_FOLDER,\r\n\t\t\t\t\t\t\t\tfolder, containnerPath));\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tfolderObject = dataObjectFolder.get(0);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tDataObject docDataObj = null;\r\n\r\n\t\t\tif (document.containsKey(CHAVE_TIPO_DOCUMENTAL)) {\r\n\r\n\t\t\t\tdocDataObj = new DataObject(objIdentity,\r\n\t\t\t\t\t\tString.valueOf(document.get(CHAVE_TIPO_DOCUMENTAL)));\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tthrow new Exception(String.format(ERROR_MISSING_KEY_MAP,\r\n\t\t\t\t\t\tCHAVE_TIPO_DOCUMENTAL));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tPropertySet properties = new PropertySet();\r\n\r\n\t\t\tif (document.containsKey(CHAVE_ARQUIVO)) {\r\n\r\n\t\t\t\tproperties.set(TITLE,\r\n\t\t\t\t\t\t((File) document.get(CHAVE_ARQUIVO)).getName());\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tthrow new Exception(String.format(ERROR_MISSING_KEY_MAP,\r\n\t\t\t\t\t\tCHAVE_ARQUIVO));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// properties.set(A_CONTENT_TYPE, ext);\r\n\r\n\t\t\tif (null != metadatas && metadatas.size() > 0) {\r\n\r\n\t\t\t\tfor (Entry<Object, Object> metadata : metadatas.entrySet()) {\r\n\r\n\t\t\t\t\tlogger.info(INFO_CREATE_METADATA\r\n\t\t\t\t\t\t\t.concat(String.valueOf(metadata.getKey()))\r\n\t\t\t\t\t\t\t.concat(SPACE).concat(UNDERSCORE).concat(SPACE)\r\n\t\t\t\t\t\t\t.concat(String.valueOf(metadata.getValue())));\r\n\r\n\t\t\t\t\tproperties.set(String.valueOf(metadata.getKey()),\r\n\t\t\t\t\t\t\tmetadata.getValue());\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tdocDataObj.setProperties(properties);\r\n\r\n\t\t\tdocDataObj.getContents().add(\r\n\t\t\t\t\tnew FileContent(((File) document.get(CHAVE_ARQUIVO))\r\n\t\t\t\t\t\t\t.getAbsolutePath(), PDF));\r\n\r\n\t\t\tObjectRelationship objRelationship = new ObjectRelationship();\r\n\r\n\t\t\tobjRelationship.setTarget(folderObject);\r\n\r\n\t\t\tobjRelationship.setName(Relationship.RELATIONSHIP_FOLDER);\r\n\r\n\t\t\tobjRelationship.setTargetRole(Relationship.ROLE_PARENT);\r\n\r\n\t\t\tdocDataObj.getRelationships().add(\r\n\t\t\t\t\tnew ObjectRelationship(objRelationship));\r\n\r\n\t\t\tdataPackage.addDataObject(docDataObj);\r\n\r\n\t\t\tRelationshipProfile relationProfile = new RelationshipProfile();\r\n\r\n\t\t\trelationProfile.setResultDataMode(ResultDataMode.REFERENCE);\r\n\r\n\t\t\trelationProfile.setTargetRoleFilter(TargetRoleFilter.ANY);\r\n\r\n\t\t\trelationProfile.setNameFilter(RelationshipNameFilter.ANY);\r\n\r\n\t\t\trelationProfile.setDepthFilter(DepthFilter.SPECIFIED);\r\n\r\n\t\t\trelationProfile.setDepth(2);\r\n\r\n\t\t\tOperationOptions operationOptions = new OperationOptions();\r\n\r\n\t\t\toperationOptions.setRelationshipProfile(relationProfile);\r\n\r\n\t\t\tString fileName = null;\r\n\r\n\t\t\tif (document.containsKey(CHAVE_NOME_ARQUIVO)) {\r\n\r\n\t\t\t\tfileName = (String) document.get(CHAVE_NOME_ARQUIVO);\r\n\r\n\t\t\t\tproperties.set(OBJECT_NAME, fileName);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tthrow new Exception(String.format(ERROR_MISSING_KEY_MAP,\r\n\t\t\t\t\t\tCHAVE_NOME_ARQUIVO));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(INFO_INICIACAO_OPERACAO);\r\n\r\n\t\t\tdataPackage = this.objectService.create(dataPackage,\r\n\t\t\t\t\toperationOptions);\r\n\r\n\t\t\tlogger.info(INFO_CREATED_FILE_EMC.concat(fileName));\r\n\r\n\t\t} catch (CoreServiceException e) {\r\n\r\n\t\t\tlogger.error(ERROR_REPOSITORIO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t} catch (ServiceException e) {\r\n\r\n\t\t\tlogger.error(ERROR_SERVICO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t}\r\n\r\n\t\treturn dataPackage;\r\n\t}" ]
[ "0.64601755", "0.63041663", "0.62849045", "0.5728411", "0.5595048", "0.53134304", "0.52860224", "0.525177", "0.5184702", "0.51642376", "0.50393206", "0.4989261", "0.49150172", "0.49141285", "0.4907472", "0.48994136", "0.484834", "0.48466218", "0.48466218", "0.48337063", "0.48077357", "0.47871995", "0.47824615", "0.4781119", "0.47638503", "0.47629753", "0.47330236", "0.4732733", "0.47274584", "0.47207803", "0.47149864", "0.46725693", "0.46483594", "0.4631852", "0.4629413", "0.4626858", "0.45998815", "0.45939216", "0.45910802", "0.45907205", "0.45904306", "0.4583956", "0.45769963", "0.45645514", "0.45615742", "0.45584452", "0.45567092", "0.455461", "0.45407957", "0.453658", "0.45345718", "0.4531988", "0.45291084", "0.45271978", "0.4524181", "0.45219693", "0.45124123", "0.45118082", "0.45105845", "0.4508765", "0.4504791", "0.4504368", "0.44892934", "0.44878125", "0.4487393", "0.44858998", "0.44838077", "0.44818476", "0.4478883", "0.44786406", "0.44780934", "0.44686836", "0.44678608", "0.4460836", "0.4459632", "0.44551754", "0.44537157", "0.44515958", "0.44478428", "0.4447038", "0.44469208", "0.44469208", "0.44464764", "0.44423768", "0.44402474", "0.4434441", "0.44278398", "0.44261286", "0.44216785", "0.4420605", "0.44186363", "0.44116107", "0.44048566", "0.43958768", "0.43919522", "0.43898502", "0.43846664", "0.43806282", "0.43694896", "0.43652782" ]
0.458045
42
Binds a preference's summary to its value. More specifically, when the preference's value is changed, its summary (line of text below the preference title) is updated to reflect the value. The summary is also immediately updated upon calling this method. The exact display format is dependent on the type of preference.
private static void bindPreferenceSummaryToValue(Preference preference) { // Set the listener to watch for value changes. preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener); // Trigger the listener immediately with the preference's // current value. sBindPreferenceSummaryToValueListener.onPreferenceChange(preference, PreferenceManager.getDefaultSharedPreferences(preference.getContext()) .getString(preference.getKey(), "")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void bindPreferenceSummaryToValue(Preference preference);", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(this);\n // We also read the current value of the preference stored in the SharedPreferences on the device,\n // and display that in the preference summary (so that the user can see the current value of the preference):\n SharedPreferences preferences =\n PreferenceManager.getDefaultSharedPreferences(preference.getContext());\n String preferenceString = preferences.getString(preference.getKey(), \"\");\n onPreferenceChange(preference, preferenceString);\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n // The code in this method takes care of updating the displayed preference summary after it has been changed\n String stringValue = value.toString();\n //preference.setSummary(stringValue);\n if (preference instanceof ListPreference) {\n ListPreference listPreference = (ListPreference) preference;\n int prefIndex = listPreference.findIndexOfValue(stringValue);\n if (prefIndex >= 0) {\n CharSequence[] labels = listPreference.getEntries();\n preference.setSummary(labels[prefIndex]);\n }\n }\n else {\n preference.setSummary(stringValue);\n }\n return true;\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n // The code in this method takes care of updating the displayed preference summary after it has been changed\n String stringValue = value.toString();\n if (preference instanceof ListPreference) {\n ListPreference listPreference = (ListPreference) preference;\n int prefIndex = listPreference.findIndexOfValue(stringValue);\n if (prefIndex >= 0) {\n CharSequence[] labels = listPreference.getEntries();\n preference.setSummary(labels[prefIndex]);\n }\n } else {\n preference.setSummary(stringValue);\n }\n return true;\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(this);\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(preference.getContext());\n String preferenceString = preferences.getString(preference.getKey(), \"\");\n onPreferenceChange(preference, preferenceString);\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference\n .setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager.getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(this);\n // Trigger the listener immediately with the preference's current value.\n onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger listener with preference's current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(this);\n\n // Trigger the listener immediately with the preference's\n // current value.\n onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference, PreferenceManager.getDefaultSharedPreferences(preference.getContext()).getString(preference.getKey(), \"\"));\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n\t\tpreference.setOnPreferenceChangeListener(this);\n\t\tonPreferenceChange(preference, PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(preference.getContext())\n\t\t\t\t.getString(preference.getKey(), \"\"));\n\t}", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // SetSlot the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\r\n // Set the listener to watch for value changes.\r\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\r\n\r\n // Trigger the listener immediately with the preference's\r\n // current value.\r\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\r\n PreferenceManager\r\n .getDefaultSharedPreferences(preference.getContext())\r\n .getString(preference.getKey(), \"\")\r\n );\r\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n // Set the listener to watch for value changes.\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "private static void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener);\n\n // Trigger the listener immediately with the preference's\n // current value.\n sBindPreferenceSummaryToValueListener.onPreferenceChange(preference,\n PreferenceManager\n .getDefaultSharedPreferences(preference.getContext())\n .getString(preference.getKey(), \"\"));\n }", "public void setSummary(Preference pref) {\n }", "@Override\n\t\t\tpublic boolean onPreferenceChange(Preference preference, Object newValue) {\n\t\t\t\t\n\t\t\t\tprefName.setSummary((CharSequence) newValue);\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n setPreferenceSummary(preference, value);\n Log.i(LOG_TAG, \"onPreferenceChange: \" + value.toString());\n return true;\n }", "private void setValueSummary(String preference, String property) {\n try {\n findPreference(preference).setSummary(SystemProperties.get(property, getString(R.string.device_info_default)));\n } catch (RuntimeException e) {\n // No recovery\n }\n }", "@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n Preference preference = findPreference(key);\n if (preference instanceof ListPreference) { // if the preference is a ListPreference\n ListPreference listPreference = (ListPreference) preference; // cast it to a ListPreference\n int prefIndex = listPreference.findIndexOfValue(sharedPreferences.getString(key, \"\")); // The index of the key that changed\n // now update the changed value's summary\n preference.setSummary(prefIndex >= 0\n ? listPreference.getEntries()[prefIndex]\n : null);\n } else { // Not a ListPreference, update the summary directly\n preference.setSummary(sharedPreferences.getString(key, \"\"));\n }\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n String difficultySummary = \"Current difficulty: \" + newValue;\n difficultyLevelPref.setSummary(difficultySummary);\n // Since we are handling the pref, we must save it\n SharedPreferences.Editor ed = sharedPrefs.edit();\n ed.putString(\"difficulty_level\", newValue.toString());\n ed.apply();\n setDifficultyLevel(newValue.toString());\n return true;\n }", "protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }", "@Override\n public boolean onPreferenceChange(final Preference preference, final Object newValue) {\n if(preference == mPrefMinistry && mPrefMinistry != null) {\n // we need to manually set the preference before updating summary to allow summary to be updated based on correct state\n mPrefMinistry.setValue(newValue != null ? newValue.toString() : null);\n\n // update summary as necessary\n updateMinistryPrefSummary();\n\n // we already updated the value, no need to update it again\n return false;\n }\n\n // this should probably never happen, but if it does we want to let the Preference update normally\n return true;\n }", "public interface PreferenceListener {\n public void bindPreferenceSummaryToValue(Preference preference);\n}", "@Override\n public void onPositive(MaterialDialog materialDialog) {\n sharedPrefs.edit()\n .remove(pref.key)\n .putString(pref.key, \"\" + values[numberPicker.getValue()])\n .apply();\n pref.pref.setSummary(values[numberPicker.getValue()]);\n materialDialog.dismiss();\n }", "@Override\r\n\tpublic void onSharedPreferenceChanged(SharedPreferences sharedPreferences,\r\n\t\t\tString key) {\n\t\tupdatePrefSummary(findPreference(key));\r\n\r\n\t}", "void setSummary(java.lang.String summary);", "private void updateSummary() {\n Bitmap cardBack;\n\n int selectedBackground = prefs.getSavedCardBackground();\n int selectedBackgroundColor = prefs.getSavedCardBackgroundColor();\n\n cardBack = bitmaps.getCardBack(selectedBackground, selectedBackgroundColor);\n\n image.setImageBitmap(cardBack);\n setSummary(String.format(Locale.getDefault(), \"%s %s\",\n context.getString(R.string.settings_background), selectedBackground + 1));\n }", "IParser setSummaryMode(boolean theSummaryMode);", "public void setSummary(java.lang.String summary)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SUMMARY$18);\n }\n target.setStringValue(summary);\n }\n }", "private void setTextValue(boolean update) {\r\n\t\t\tString s = \"\";\r\n\t\t\tString updateS = \"\";\r\n\r\n\t\t\tif (update)\r\n\t\t\t\tupdateS = \" (update)\";\r\n\t\t\ts = prefDescriptor + updateS + \": \" + AttendanceReport.preferences.getProperty(pref);\r\n\t\t\tthis.setText(s);\r\n\t\t}", "public String getSummary() {\r\n return summary;\r\n }", "public String getSummary() {\n return summary;\n }", "public void showPreference(View v){\n String prefvalue = settings.getString(\"key1\",\"Not Found\");\n cHelpers.show_toast(this,\"key1 was \"+prefvalue);\n }", "public void recordUsedSettingAndValue(String settingName, Object value, String description);", "@Override\r\n\t\t\t\tpublic boolean onPreferenceChange(Preference preference,\r\n\t\t\t\t\t\tObject value) {\n\t\t\t\t\tif(!\"pref_key_allow_typedefine_commond\".equals(preference.getKey())){\r\n\t\t\t\t\t\tString valueStr=(String) value;\r\n\t\t\t\t\t\tPattern pattern=Pattern.compile(regEx);\r\n\t\t\t\t\t\tMatcher m=pattern.matcher(valueStr);\r\n\t\t\t\t\t\tif(m.matches()){\r\n\t\t\t\t\t\t\tpreference.setSummary(valueStr);\r\n\t\t\t\t\t\t\tToast.makeText(getActivity(), \"设置成功!\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tToast.makeText(getActivity(), \"格式不正确,请重新输入\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}", "@Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n if(updateAddress(newValue.toString()) == true) {\n Log.d(TAG, \"Updated preference.\");\n EditTextPreference editedUrl = (EditTextPreference) findPreference(\"url\");\n editedUrl.setSummary(newValue.toString());\n return true;\n }\n else\n return false;\n }", "public java.lang.String getSummary(){\r\n return this.summary;\r\n }", "public String getDisplayValue() {\n return displayValue;\n }", "public String getFormattedValue() {\n if (labelFormatter != null) {\n return labelFormatter.getText();\n } else {\n return \"\" + getValue();\n }\n }", "public String getSummary() {\n\t\treturn summary;\n\t}", "public String getSummary() {\n\t\treturn summary;\n\t}", "public String toString() {\n StringBuilder sb = new StringBuilder();\n return sb.append(summary).append(\" is \").append(getValueDescription()).toString();\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object newValue) {\n String difficultySummary = \"Username: \" + newValue;\n usernamePref.setSummary(difficultySummary);\n // Since we are handling the pref, we must save it\n SharedPreferences.Editor ed = sharedPrefs.edit();\n name = newValue.toString();\n ed.putString(\"user_id\", newValue.toString());\n ed.apply();\n return true;\n }", "public void setSummary(String summary) {\n this.summary = summary;\n }", "java.lang.String getSummary();", "private void showPreferenceSettings() {\n \tfor(PrefKeysE k: PrefKeysE.values()) {\n \t\tString key = k.getKey();\n \t\tboolean isFound = Tt.isPreferencePresent(key);\n \t\tint prtFlags = 0; //don't print from getPreference()\n// \t\tboolean valB;\n// \t\tint valI;\n// \t\tdouble valD;\n \t\tString valFoundStr = \"\";\n \t\tString prefix = String.format(\"%-40s: %-7s: found? %s, default \", key, k.getType().name(), (isFound ? \"Y\" : \"N\"));\n \t\tswitch(k.getType()) {\n \t\tcase BOOLEAN:\n \t\t\tboolean dfltB = k.getDefaultBoolean();\n \t\t\tvalFoundStr += dfltB;\n \t\t\tif(isFound) {\n \t\t\t\tboolean val = Tt.getPreference(k, dfltB, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase INT:\n \t\t\tint dfltI = k.getDefaultInt();\n \t\t\tvalFoundStr += dfltI;\n \t\t\tif(isFound) {\n \t\t\t\tint val = Tt.getPreference(k, dfltI, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase DOUBLE:\n \t\t\tdouble dfltD = k.getDefaultDouble();\n \t\t\tvalFoundStr = String.format(\"% 1.4f\", dfltD);\n \t\t\tif(isFound) {\n \t\t\t\tdouble val = Tt.getPreference(k, dfltD, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += String.format(\", current % 1.4f\", val);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase STRING:\n \t\t\tString dfltS = k.getDefaultString();\n\t\t\t\tvalFoundStr += \"'\" + dfltS + \"'\";\n \t\t\tif(isFound) {\n \t\t\t\tString val = Tt.getPreference(k, dfltS, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current '\" + val + \"'\";\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n\t\t\tP.println(prefix + valFoundStr);\n\n// \t\tif(k.getType().equals(PrefTypeE.BOOLEAN)) \n \t}\n }", "public String getSummary();", "public void setSummary() {\n\t\tString dataset = datasetInfo.getSelectedFile().getAbsolutePath();\n\t\tdatasetLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + dataset + \"</font></center></html>\");\n\t\t\n\t\tfloat putNumber = privacyInfo.getPUTNumber();\n\t\tString privacyExceptions = privacyInfo.getPrivacyExceptions().toString();\n\t\tif(privacyExceptions == null || privacyExceptions.trim().length() == 0 || privacyExceptions.equals(\"[]\"))\n\t\t\tprivacyExceptions = \"<b><i>None</i></b>\";\n\t\telse\n\t\t\tprivacyExceptions = \"{\" + privacyExceptions.substring(1, privacyExceptions.length()-1) + \"}\";\n\t\tString utilityExceptions = privacyInfo.getUtilityExceptions().toString();\n\t\tif(utilityExceptions == null || utilityExceptions.trim().length() == 0 || utilityExceptions.equals(\"[]\"))\n\t\t\tutilityExceptions = \"<b><i>None</i></b>\";\n\t\telse\n\t\t\tutilityExceptions = \"{\" + utilityExceptions.substring(1, utilityExceptions.length()-1) + \"}\";\n\t\t\n\t\tputLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + putNumber + \"</font></center></html>\");\n\t\tprivacyExceptionsLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + privacyExceptions + \"</font></center></html>\");\n\t\tutilityExceptionsLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + utilityExceptions + \"</font></center></html>\");\n\t\t\n\t\tfloat vExpense = expenseInfo.getVerticalExpense();\n\t\tfloat hExpense = expenseInfo.getHorizontalExpense();\n\t\t\n\t\tverticalExpenseLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + vExpense + \"</font></center></html>\");\n\t\thorizontalExpenseLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + hExpense + \"</font></center></html>\");\n\t\t\n\t\tString classifier = classifierInfo.getClassifier();\n\t\tString classifierOptions = classifierInfo.getCustomOptions();\n\t\tif(classifierOptions == null || classifierOptions.trim().length() == 0 || classifierOptions.equals(\"{}\"))\n\t\t\tclassifierOptions = \"<b><i>None</i></b>\";\n\t\t\n\t\tclassifierLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + classifier + \"</font></center></html>\");\n\t\tclassifierOptionsLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + classifierOptions + \"</font></center></html>\");\n\t}", "public native final Calendar summary(String val) /*-{\n\t\tthis[\"summary\"] = val;\n\t\treturn this;\n\t}-*/;", "public void setSummary(String summary) {\n this.summary = summary;\n }", "private void updateActualAndDisplayedResult() {\n\t\tresultTipValue = calculateTip( amountValue, percentValue, splitValue);\n\t\ttvResult.setText( \"Tip: $\" + String.format(\"%.2f\", resultTipValue) + \" per person.\" );\t\n\t}", "public java.lang.String getSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "protected void onPref(String name, String value){}", "public void setSummary(String summary) {\n\t\tthis.summary = summary;\n\t}", "public void updateTotalSpentLabel() {\n totalSpentLabel.setText(\"Total: $\" + duke.expenseList.getTotalAmount());\n }", "interface SettingsContract {\r\n\r\n interface View extends BaseView<SettingsContract.Presenter> {\r\n\r\n /**\r\n * Returns the context.\r\n *\r\n * @return context.\r\n */\r\n Context getContext();\r\n\r\n /**\r\n * Shows loading message.\r\n */\r\n void showLoadingMsg();\r\n\r\n /**\r\n * Shows data generated successfully message.\r\n */\r\n void showDataGeneratedMsg();\r\n\r\n /**\r\n * Shows data deleted successfully message.\r\n */\r\n void showDataDeletedMsg();\r\n }\r\n\r\n\r\n interface Presenter extends BasePresenter {\r\n\r\n /**\r\n * Attaches a listener that performs the specified action when the preference is clicked.\r\n *\r\n * @param preference preference to attach.\r\n */\r\n void bindPreferenceClickListener(Preference preference);\r\n\r\n /**\r\n * Attaches a listener so the summary is always updated with the preference value.\r\n * Also fires the listener once, to initialize the summary (so it shows up before the value\r\n * is changed).\r\n *\r\n * @param preference preference to attach.\r\n */\r\n void bindPreferenceSummaryToValue(Preference preference);\r\n\r\n }\r\n}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tprefMgr = getPreferenceManager();\n\t\t\n\t\taddPreferencesFromResource(R.xml.layout_pref);\n\t\t\n\t\tprefName = (EditTextPreference) prefMgr.findPreference(\"name\");\n\t\tprefName.setSummary(prefName.getText());\n\t\t\n\t\tprefName.setOnPreferenceChangeListener(new OnPreferenceChangeListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean onPreferenceChange(Preference preference, Object newValue) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tprefName.setSummary((CharSequence) newValue);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t}", "private String formatDisplay(final String value) {\n String formattedValue = value;\n \n String formatPattern = this.metricDisplayFormat;\n \n if (StringUtil.notNullOrEmpty(this.metricDisplayFormatMetric)\n && this.baseAreaUnits.getUnits() == Units.Metric) {\n formatPattern = this.metricDisplayFormatMetric;\n }\n \n if (StringUtil.notNullOrEmpty(formatPattern)) {\n formattedValue = MessageFormat.format(formatPattern, value);\n }\n \n return formattedValue;\n }", "private void printSummary()\n {\n List<DataTypeInfo> dtiList = myDataTypesSupplier.get();\n if (!dtiList.isEmpty())\n {\n List<DataTypeInfoDisplayNameProxy> proxyList = dtiList.stream().map(s -> new DataTypeInfoDisplayNameProxy(s))\n .collect(Collectors.toList());\n Collections.sort(proxyList, (o1, o2) -> o1.toString().compareTo(o2.toString()));\n\n Object selected = JOptionPane.showInputDialog(null, CHOOSE_DATA_TYPE, CHOOSE_DATA_TYPE, JOptionPane.QUESTION_MESSAGE,\n null, proxyList.toArray(), proxyList.get(0));\n\n if (selected != null)\n {\n final DataTypeInfoDisplayNameProxy fStyle = (DataTypeInfoDisplayNameProxy)selected;\n\n TextViewDialog dvd = new TextViewDialog(myToolbox.getUIRegistry().getMainFrameProvider().get(),\n \"DataTypeInfo Summary: \" + fStyle.toString(), fStyle.getItem().toString(), false,\n myToolbox.getPreferencesRegistry());\n dvd.setLocationRelativeTo(myToolbox.getUIRegistry().getMainFrameProvider().get());\n dvd.setVisible(true);\n }\n }\n }", "public ElementDefinitionDt setIsSummary(BooleanDt theValue) {\n\t\tmyIsSummary = theValue;\n\t\treturn this;\n\t}", "@NonNull\n public Optional<String> getSummary() {\n return Optional.ofNullable(this.summary);\n }", "@JsonProperty(\"summary\")\n public String getSummary() {\n return summary;\n }", "public void setSummary(boolean summary) {\n\n this.summary = summary;\n }", "public void appendInputValue(String value, boolean opFlag) {\n\t\tif( opFlag == true || calcDisplay.getText().equals(DEFAULT_VALUE) ) {\n\t\t\tcalcDisplay.setText(value);\n\t\t}\n\t\telse {\n\t\t\tcalcDisplay.setText( calcDisplay.getText() + value );\n\t\t}\n\t}", "void xsetSummary(org.apache.xmlbeans.XmlString summary);", "String getSettingDescriptionAndState() {\n return String.format(Locale.getDefault(), \"%s : %s\", context.getString(settingDescription), context.getString(allStates[currentIdx]));\n }", "public abstract CharSequence getSummary();", "public native final String summary() /*-{\n\t\treturn this[\"summary\"];\n\t}-*/;", "private void loadTipPercentage()\n {\n\t\tSharedPreferences preferences = this.getSharedPreferences(\"AppPreferences\", MODE_PRIVATE);\n\t\tString tipPctString = preferences.getString(\"tipPercentage\", \"15\");\n tipPctView.setText(String.format(\"%s%%\", tipPctString));\n\t\ttipPercentage = Double.parseDouble(tipPctString) / 100;\n\t}", "public void setSummary(java.lang.Boolean summary) {\n this.summary = summary;\n }", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}", "protected void doStore()\n\t{\n\t\tText text = getTextControl();\n\t\tif ( text != null )\n\t\t{\n\t\t\tDouble d = new Double( text.getText() );\n\t\t\tgetPreferenceStore().setValue( getPreferenceName(), d.doubleValue() );\n\t\t}\n\t}", "private void updateDisplayText(double change) { updateDisplayText(change, null); }", "public void setSummary(String summary) {\r\n this.summary = summary == null ? null : summary.trim();\r\n }", "public void setSummary(String summary) {\n this.summary = summary == null ? null : summary.trim();\n }", "protected void redisplay() {\n\t\tdisplay.setText(\"\" + calc.getDisplayValue());\n\t}", "private void update() {\n if (mSuggestionsPref != null) {\n mSuggestionsPref.setShouldDisableView(mSnippetsBridge == null);\n boolean suggestionsEnabled =\n mSnippetsBridge != null && mSnippetsBridge.areRemoteSuggestionsEnabled();\n mSuggestionsPref.setChecked(suggestionsEnabled\n && PrefServiceBridge.getInstance().getBoolean(\n Pref.CONTENT_SUGGESTIONS_NOTIFICATIONS_ENABLED));\n mSuggestionsPref.setEnabled(suggestionsEnabled);\n mSuggestionsPref.setSummary(suggestionsEnabled\n ? R.string.notifications_content_suggestions_summary\n : R.string.notifications_content_suggestions_summary_disabled);\n }\n\n mFromWebsitesPref.setSummary(ContentSettingsResources.getCategorySummary(\n ContentSettingsType.CONTENT_SETTINGS_TYPE_NOTIFICATIONS,\n PrefServiceBridge.getInstance().isCategoryEnabled(\n ContentSettingsType.CONTENT_SETTINGS_TYPE_NOTIFICATIONS)));\n }", "public void xsetSummary(org.apache.xmlbeans.XmlString summary)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(SUMMARY$18);\n }\n target.set(summary);\n }\n }", "@Override\n protected String formatValue(Object value) {\n String formatted = \"float\".equals(format) ? formatWithDigits(value, this.digits) : String.valueOf(value);\n return formatted + \" \" + this.unitText;\n }", "public java.lang.Boolean getSummary() {\n return summary;\n }", "@Override\r\n\tpublic String getSummary() {\n\t\treturn null;\r\n\t}", "@Override\n public void onSettingChanged(ListPreference pref) {\n }", "public void updatePlayerHealthUI() {\n CharSequence text = String.format(\"Score: %d\", getscore());\n scoreLabel.setText(text);\n }", "String displayValue();", "public void setPreference(View v){\n SharedPreferences.Editor editor = settings.edit();\n String prefValue = cHelpers.getText(this, R.id.editText);\n editor.putString(\"key1\",prefValue);\n editor.commit();\n cHelpers.show_toast(this, \"Preference Saved\");\n }", "private void refreshDetails() {\r\n\t\tdetailsLabel.setText( getSummary() );\r\n\t\tdetailsLabel.repaint();\r\n\t}", "@JsonProperty(\"summary\")\n public void setSummary(String summary) {\n this.summary = summary;\n }", "public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.SUMMARY,\n jname = \"summary\",\n adderName = \"summary\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setSummaries(final Set<BwString> val) {\n summaries = val;\n }", "private void showUserPreferences() {\r\n MyAccount ma = state.getMyAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n mOriginName.setEnabled(!ma.isPersistent());\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary = new StringBuilder(this.getText(R.string.summary_preference_username));\r\n if (ma.getUsername().length() > 0) {\r\n summary.append(\": \" + ma.getUsername());\r\n } else {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(ma.canSetUsername());\r\n\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(ma.canChangeOAuth());\r\n\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(ma.getConnection().isPasswordNeeded());\r\n\r\n int titleResId;\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (ma.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n mVerifyCredentials.setTitle(titleResId);\r\n mVerifyCredentials.setSummary(summary);\r\n mVerifyCredentials.setEnabled(ma.isOAuth() || ma.getCredentialsPresent());\r\n }", "private void initSummary() {\n entry = databaseHandler.getExperimentInfo(experimentNumber);\n\n // set transmission settings summary\n TextView transmissionSettingsText = findViewById(R.id.transmission_settings);\n String transmissionSettingsOverview = \"Number of messages: \" + entry.get(DatabaseHandler.NUMBER_OF_MESSAGES) +\n \"\\nTime between messages: \" + entry.get(DatabaseHandler.TIME_BETWEEN_MSGS) +\n \"\\nMessage length: \" + entry.get(DatabaseHandler.MSG_LENGTH) +\n \"\\nAuto increment: \" + entry.get(DatabaseHandler.AUTO_INCREMENT);\n transmissionSettingsText.setText(transmissionSettingsOverview);\n\n multipliers[5] = Integer.parseInt(entry.get(DatabaseHandler.NUMBER_OF_MESSAGES));\n multipliers[6] = Integer.parseInt(entry.get(DatabaseHandler.TIME_BETWEEN_MSGS));\n\n // set environment settings summary\n TextView environmentSettingsText = findViewById(R.id.environment_settings);\n String environmentSettingsOverview = \"Description: \" + entry.get(DatabaseHandler.DESCRIPTION) +\n \"\\nTarget Distance: \" + entry.get(DatabaseHandler.TARGET_DISTANCE) + \" m\" +\n \"\\nHeight of Sender: \" + entry.get(DatabaseHandler.SENDER_HEIGHT) + \" m\" +\n \"\\nHeight of Receiver: \" + entry.get(DatabaseHandler.RECEIVER_HEIGHT) + \" m\" +\n \"\\nEnvironment: \" + entry.get(DatabaseHandler.ENVIRONMENT);\n environmentSettingsText.setText(environmentSettingsOverview);\n\n // set LoRa settings summary\n TextView loraSettingsText = findViewById(R.id.lora_settings);\n arrayResourceIds = new int[]{R.array.frequency_array, R.array.bandwidth_array, R.array.SF_array, R.array.CR_array, R.array.power_array};\n String loraSettingsOverview = \"Frequencies: \" + decodeConfigByte(0, Byte.parseByte(entry.get(DatabaseHandler.FREQUENCIES))) +\n \"\\nBandwidths: \" + decodeConfigByte(1, Byte.parseByte(entry.get(DatabaseHandler.BANDWIDTHS))) +\n \"\\nSpreading factors: \" + decodeConfigByte(2, Byte.parseByte(entry.get(DatabaseHandler.SPREADING_FACTORS))) +\n \"\\nCoding rates: \" + decodeConfigByte(3, Byte.parseByte(entry.get(DatabaseHandler.CODING_RATES))) +\n \"\\nPowers: \" + decodeConfigByte(4, Byte.parseByte(entry.get(DatabaseHandler.POWERS)));\n loraSettingsText.setText(loraSettingsOverview);\n\n // set experiment duration information\n TextView experimentText = findViewById(R.id.exp);\n int totalMsgs = 1;\n duration = 1;\n iterations = 1;\n\n for (int i = 0; i < multipliers.length; i++) {\n if (i == multipliers.length - 1) {\n duration = totalMsgs * multipliers[i];\n break;\n }\n if (i < 5)\n iterations *= multipliers[i];\n totalMsgs *= multipliers[i];\n }\n duration += 5 * iterations; // add the 8 seconds between experiment iterations (hardcoded on boards)\n databaseHandler.setValueInExpInfo(Integer.toString(iterations), \"number_of_iterations\", experimentNumber);\n databaseHandler.setValueInExpInfo(Integer.toString(duration), \"duration\", experimentNumber);\n\n String experiment = \"Total messages: \" + totalMsgs +\n \"\\nIterations: \" + iterations +\n \"\\nDuration: \" + duration + \" s\";\n experimentText.setText(experiment);\n\n // initialize other stuff\n hoursEdit = findViewById(R.id.hours_edit);\n minutesEdit = findViewById(R.id.minutes_edit);\n secondsEdit = findViewById(R.id.seconds_edit);\n }", "public void updateTipAmount(Double value) {\n\t\tString formattedValue = currencyFormat.format(value).toString();\n\t\t// Set the tip amount\n\t\ttvTipAmount.setText(formattedValue);\n\t}", "@Override\n\tpublic String getSummary() {\n\t\treturn null;\n\t}", "private void displaySatistics()\r\n {\r\n DecimalFormat df = new DecimalFormat(\"#.##\");\r\n df.setRoundingMode(RoundingMode.FLOOR);\r\n double goodVal = ((double)this.good / (double)this.attemps) * 100;\r\n double reachVal = ((double)this.reachable / (double)this.attemps) * 100;\r\n double unreachVal = ((double)this.unreachable / (double)this.attemps) * 100;\r\n \r\n this.goodLabel.setText(df.format(goodVal)+ \" %\");\r\n this.reachableLabel.setText(df.format(reachVal) + \" %\");\r\n this.unreachableLabel.setText(df.format(unreachVal) + \" %\");\r\n \r\n }", "private void formatsetting() {\n SharedPreferences sharedPreferences =this.getSharedPreferences(Settings.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n //Fetching thepatient_mobile_Number value form sharedpreferences\n String FormattedString = sharedPreferences.getString(Settings.Format_Selected_SHARED_PREF,\"Thousands separator\");\n String DecimalplaceString= sharedPreferences.getString(Settings.Decimal_Place_Selected_SHARED_PREF,\"2\");\n Settings settings=new Settings(FormattedString,DecimalplaceString);\n formatter= settings.setting();\n }", "private void formatsetting() {\n SharedPreferences sharedPreferences =this.getSharedPreferences(Settings.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n //Fetching thepatient_mobile_Number value form sharedpreferences\n String FormattedString = sharedPreferences.getString(Settings.Format_Selected_SHARED_PREF,\"Thousands separator\");\n String DecimalplaceString= sharedPreferences.getString(Settings.Decimal_Place_Selected_SHARED_PREF,\"2\");\n Settings settings=new Settings(FormattedString,DecimalplaceString);\n formatter= settings.setting();\n }" ]
[ "0.7896386", "0.7734421", "0.77067864", "0.7546164", "0.7520276", "0.7503773", "0.7462089", "0.74431145", "0.74366075", "0.73669535", "0.73642135", "0.7340225", "0.7338544", "0.7334707", "0.7334707", "0.7334707", "0.73144734", "0.7299641", "0.7240732", "0.7062147", "0.6821389", "0.6545837", "0.62970144", "0.62362254", "0.60740954", "0.5888707", "0.5830848", "0.57406276", "0.56896615", "0.5684646", "0.5681095", "0.5453359", "0.5391958", "0.5347505", "0.5339515", "0.53216743", "0.5307127", "0.5299573", "0.5275819", "0.5244127", "0.5243707", "0.524056", "0.523775", "0.5230332", "0.5230332", "0.52127075", "0.5205566", "0.51732546", "0.51647246", "0.51519835", "0.51372635", "0.51232857", "0.5109577", "0.50852907", "0.5081853", "0.5081654", "0.5078756", "0.5001172", "0.49871027", "0.49828607", "0.4932197", "0.4922129", "0.49179587", "0.4912826", "0.49094814", "0.49045357", "0.4901458", "0.4897575", "0.4892496", "0.48895073", "0.4883075", "0.48809612", "0.4872428", "0.48655143", "0.48607126", "0.4846319", "0.48423207", "0.48304647", "0.48290926", "0.4823614", "0.48188955", "0.48126334", "0.4812252", "0.48077303", "0.4798561", "0.47921222", "0.47911927", "0.47870532", "0.47853357", "0.47774777", "0.47579348", "0.4754757", "0.47520906", "0.47497737", "0.47456068", "0.4745499", "0.47447848", "0.4726508", "0.47136736", "0.47136736" ]
0.7374575
9
perform basic initialization task
public InfoLiveTollsStepDefinition() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void init() {\n this.log.pri1(LoggingInterface.INIT_START, \"\");\n // Any task initialization code goes here.\n this.log.pri1(LoggingInterface.INIT_END, \"\");\n }", "public void initialize() {\n\n getStartUp();\n }", "public void init() {}", "public void init() {}", "public static void init() {}", "private void initialize() {\n }", "public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "protected void initialize() {}", "protected void initialize() {}", "private void initialize() {\n\t}", "protected abstract void initialize();", "public void initialize() {\n // TODO\n }", "public void init() {\n log.info(\"initialization\");\n }", "public void initialize() {\n // empty for now\n }", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "@PostConstruct\n\tpublic void init()\n\t{\n\t\tlogModule.info(TaskGenerator.class, \"初始化 Task generator...\");\n\t}", "public abstract void initialize();", "public abstract void initialize();", "public abstract void initialize();", "private void initialize() {\n\t\t\n\t}", "public void initialize() {\r\n }", "public void initialize() {\n }", "public void initialize() {\n\t}", "public void initialize() {\n\t}", "protected void initialize() {\n \t\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "public static void init() {\n }", "public static void init() {\n }", "private void init(){\n if(!initializing) {\n Initializer init = new Initializer();\n InitializationDetails initializationDetails = new InitializationDetails(url, download, reset, deviceID, this);\n init.execute(initializationDetails);\n initializing = true;\n }\n }", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public void initialize();", "public void initialize();", "public void initialize();", "public void initialize();", "public void initialize();", "public void initialize();", "public static void init() {\n\t\t\n\t}", "public void initialize() {\n }", "public static void init() {\n\n }", "public void init(){}", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "protected void _init(){}", "public static void initialize() {\n \tinitialize(new Configuration().configure());\n }", "public void init() {\n // These data structures are initialized here because other\n // module's startUp() might be called before ours\n this.systemStartTime = System.currentTimeMillis();\n }", "public void init() {\r\n\r\n\t}", "static void init() {}", "public void initialize () {\n }", "public void autonomousInit() {\n \n }", "@Override\n\tpublic void init() {\n\t\t// Nothing to do in this example\n\t}", "private void _init() {\n }", "protected void initialize() {\n\t\t\n\t}", "protected void initialize() {\n\t\t\n\t}", "public void init() { }", "public void init() { }", "protected void initialize()\n\t{\n\t}", "private void init() {\n\n\t}", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "public void init() {\n\t\n\t}", "abstract void initialize();" ]
[ "0.7886057", "0.78438365", "0.7611649", "0.7611649", "0.7605633", "0.7591794", "0.7579315", "0.75756264", "0.75756264", "0.7557773", "0.7543295", "0.7541091", "0.75236464", "0.75011396", "0.74952286", "0.7484972", "0.7479504", "0.7479504", "0.7479504", "0.7455268", "0.7451756", "0.7442636", "0.74424267", "0.74424267", "0.7433593", "0.74109346", "0.74109346", "0.74109346", "0.74109346", "0.74063355", "0.7402346", "0.7402346", "0.73934567", "0.7384572", "0.7384572", "0.7384572", "0.7384572", "0.7384572", "0.7384572", "0.7384572", "0.7384572", "0.7384572", "0.7384572", "0.7384572", "0.735983", "0.735983", "0.735983", "0.735983", "0.735983", "0.735983", "0.735983", "0.735983", "0.735983", "0.735983", "0.7352537", "0.7352537", "0.7352537", "0.7352537", "0.7352537", "0.7352537", "0.73471874", "0.7345034", "0.73404235", "0.73293865", "0.73219436", "0.73219436", "0.7321401", "0.7321036", "0.73180056", "0.73076713", "0.7307077", "0.7305974", "0.72939175", "0.7287966", "0.72853315", "0.7285259", "0.7285259", "0.728321", "0.728321", "0.72756857", "0.7271246", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7271134", "0.7265344", "0.7262888" ]
0.0
-1
Click on tolls button
@Then("^User clicks Tolls button on Live panel$") public void user_clicks_Tolls_button_on_Live_panel() throws Throwable { CommonStepDefinitions.homePage.clickLiveTollsButton(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public final void testClickButton() {\n spysizedialog.getStartButton().doClick();\n }", "@When(\"^I click on quiz button$\")\n public void i_click_on_quiz_button() throws Throwable {\n }", "public void clickFirstQviewbutton(){\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:- Qview First Buy button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\t/*List<WebElement> eles=driver.findElements((locator_split(\"btnQview\")));\r\n\t\t\tSystem.out.println(eles.size());\r\n\t\t\teles.get(0).click();*/\r\n\r\n\t\t\tclick(locator_split(\"btnQview\"));\t\t\t\t\r\n\t\t\tSystem.out.println(\"Clicked on the First Buy button\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- First Buy Button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Qview First Buy button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnQview\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void clickSubmitInkAndTonnerSearchButton(){\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:- Ink and Tonner Search Button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"btnInkSeacrh\"));\r\n\t\t\tclick(locator_split(\"btnInkSeacrh\"));\r\n\t\t\twaitForPageToLoad(10);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Ink and Tonner Search Button is clicked\");\r\n\t\t\tSystem.out.println(\"Ink and Tonner Search icon is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Ink and Tonner Search Button is not clicked \"+elementProperties.getProperty(\"btnSearchSubmit\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnInkSeacrh\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void Click_Done()\r\n\t{\r\n\t\tExplicitWait(Specialdone);\r\n\t\tif (Specialdone.isDisplayed()) \r\n\t\t{\r\n\t\t\tJavascriptexecutor(Specialdone);\r\n\t\t\tExplicitWait(Checkavailability);\r\n\t\t\t//System.out.println(\"Clicked on Special Rate plan done button \");\r\n\t\t\tlogger.info(\"Clicked on Special Rate plan done button\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Special Rate plan done button\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"Special Rate plan done button not found\");\r\n\t\t\tlogger.error(\"Special Rate plan done button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Special Rate plan done button not found\");\r\n\r\n\t\t}\r\n\t}", "public void testCheckButtons() {\n onView(withId(R.id.quiz_button)).perform(click());\n pressBack();\n onView(withId(R.id.flash_button)).perform(click());\n pressBack();\n onView(withId(R.id.quiz_button)).perform(click());\n onView(withId(R.id.quiz_make)).perform(click());\n pressBack();\n onView(withId(R.id.quiz_take)).perform(click());\n onView(withId(R.id.quiz_all)).perform(click());\n onView(withId(R.id.homeButton)).perform(click());\n\n\n }", "@Test\n public void testifyBtn() throws InterruptedException {\n onView(withId(R.id.SaveButton)).check(matches(isDisplayed()));\n\n }", "public void clickYes ();", "@Test\n public void onLbsRBTNClicked(){\n onView(withId(R.id.lbsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.kgsRBTN)).check(matches(isNotChecked()));\n }", "public void clickNoFee() {\n rbNoFee.click();\n }", "@Test(priority =1)\r\n\tpublic void button() {\r\n button = driver.findElement(By.cssSelector(\"button.black\"));\r\n assertFalse(button.isDisplayed());\r\n //sf.assertFalse(button.isDisplayed());\r\n System.out.println(\"Print this\");\r\n\t}", "public void clickOnAddVehicleButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary\"), SHORTWAIT);\r\n\t}", "public void ButtonStatusToOneWay() throws InterruptedException {\n\n Thread.sleep(10000);\n //action=new Actions(this.driver);\n if (oneWayButton.isSelected()) {\n System.out.println(\"One way Button is already selected\");\n } else {\n wait.until(ExpectedConditions.elementSelectionStateToBe(oneWayButton,false));\n oneWayButton.click();\n System.out.println(\"one way button is clicked\");\n }\n\n\n }", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "@Test\n public void onKgsRBTNClicked(){\n onView(withId(R.id.kgsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.lbsRBTN)).check(matches(isNotChecked()));\n }", "public static void checkAndClickQuitButtonResultsPage() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[2]\", \"\\\"Quit\\\" button of results page\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[2]\", \"\\\"Quit\\\" button of results page\");\r\n\t}", "@Override\n public void onClick(View view) {\n Button trykket = null;\n for (int i = 0; i < 30 ; i++) {\n if (view==buttons.get(i)){\n trykket=buttons.get(i);\n }\n }\n assert trykket != null;\n gæt(trykket);\n\n //vi afslutter spiller hvis det er slut eller vundet.\n if(logik.erSpilletSlut()){\n if(logik.erSpilletTabt()){\n // die.start();\n slutspilllet(false);\n }\n if(logik.erSpilletVundet()) slutspilllet(true);\n }\n\n }", "public static void checkAndClickTryAgainButton() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\", \"\\\"Try again\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"markpage\\\"]/center/button[1]\", \"\\\"Try again\\\" button\");\r\n\t}", "@When(\"usert clicks on continue\")\r\n\tpublic void usert_clicks_on_continue() {\n\tdriver.findElement(By.id(\"btn\")).click();\r\n\t\r\n}", "public void clickSearchButton(){\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:- SearchButton should be clicked\");\r\n\t\ttry{\r\n\t\t\tsleep(3000);\r\n\t\t\twaitforElementVisible(locator_split(\"BybtnSearch\"));\r\n\t\t\tclick(locator_split(\"BybtnSearch\"));\r\n\t\t\twaitForPageToLoad(100);\r\n\t\t\tSystem.out.println(\"SearchButton is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- SearchButton is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- SearchButton is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"BybtnSearch\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void clickSalvar (){driver.findElement(botaoSalvar).click();}", "@Before\n public void openNewStockPage() {\n onView(withId(R.id.button3)).perform(click());\n }", "public void clickOnVINButton() {\n if(VINButton.isDisplayed()) {\n\t\twaitAndClick(VINButton);\n\t }\n }", "@And (\"^I click on \\\"([^\\\"]*)\\\"$\")\n\tpublic void click_on(String object){\n\t\tString result = selenium.clickButton(object);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t}", "@Override\n public void run() {\n activityTestRule.getActivity().findViewById(R.id.sell_button).performClick();\n }", "public void ClickChecoutSubmitbutton(){\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:- Checkout Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btncheckoutregistrationsubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutregistrationsubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testIsButtonConfirmarClicked() {\n }", "public void clickSubmitSearchButton(){\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:- Search Button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"btnSearchSubmit\"));\r\n\t\t\tclick(locator_split(\"btnSearchSubmit\"));\r\n\t\t\twaitForPageToLoad(10);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Search Button is clicked\");\r\n\t\t\tSystem.out.println(\"Sarch icon is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Search Button is not clicked \"+elementProperties.getProperty(\"btnSearchSubmit\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnSearchSubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void clickCheckoutButton(){\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:- CheckOut button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"btnCheckout\"));\r\n\t\t\tclick(locator_split(\"btnCheckout\")); \r\n\t\t\tsleep(1000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- CheckOut button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- CheckOut button is not clicked \"+elementProperties.getProperty(\"btnCheckout\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnCheckout\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t\tReporter.log(\"Clicked on Checkout button\");\r\n\t}", "void clickSomewhereElse();", "public void clickOnVSPNButton() {\n if(VSPNButton.isDisplayed()) {\n\t\twaitAndClick(VSPNButton);\n\t}\n }", "@Test\n public void TEST_FR_SELECTDIFFICULTY_UI() {\n GameData.gameDifficulty = \"unchanged\";\n ChooseDifficultyUI testUI = new ChooseDifficultyUI();\n clickButton(testUI, 1, \"easy\");\n clickButton(testUI, 2, \"medium\");\n clickButton(testUI, 3, \"hard\");\n }", "@Test\n public void testSetButtonConfirmarClicked() {\n }", "private void clickButton(ChooseDifficultyUI testUI, int buttonNumber, String newDifficulty){\n assertNotEquals(newDifficulty, GameData.gameDifficulty);\n //Create a click position at a point within the button's area (in this case, exactly central).\n Vector2 clickPosition = new Vector2(buttonNumber * SCREEN_WIDTH/4, BUTTON_Y + BUTTON_HEIGHT/2);\n testUI.getInput(SCREEN_WIDTH, clickPosition);\n //test that clickPosition is within area\n assertTrue(clickPosition.x < buttonNumber * SCREEN_WIDTH / 4 - BUTTON_WIDTH / 2 + BUTTON_WIDTH);\n assertTrue(clickPosition.x > buttonNumber * SCREEN_WIDTH / 4 - BUTTON_WIDTH / 2);\n assertTrue(clickPosition.y < BUTTON_Y + BUTTON_HEIGHT);\n assertTrue(clickPosition.y > BUTTON_Y);\n //Test that the difficulty has been correctly changed.\n assertEquals(newDifficulty, GameData.gameDifficulty);\n }", "@Test\n public void checkButtonClickToast1() {\n onView(withText(\"Nutella Pie\")).perform(click());\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }", "@Test\n public void ShowMoreIncomeButton() {\n onView(withId(R.id.showMoreIncome)).check(matches(isDisplayed())); // Find button\n onView(withId(R.id.showMoreIncome)).check(matches(isClickable())); // Check if clickable\n onView(withId(R.id.showMoreIncome)).perform(click()); // Perform click\n intended(hasComponent(showMoreIncome.class.getName())); // Opens more income page\n }", "public void clickOnSearchButton() {\n elementControl.clickElement(searchButton);\n }", "public void clickbtnReject() {\n\t\twaitForElementClickable(10,btnReject);\n\t\tdriver.findElement(btnReject).click();\n\t\tsleep(1);\n\t}", "public void clickOnEditButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary.ant-btn-circle\"), SHORTWAIT);\r\n\t}", "@When(\"click on create exam button1\")\r\n\tpublic void click_on_create_exam_button1() throws Exception {\t\r\n\t\t\r\n\t}", "@When(\"User clicks on Find Details button\")\r\n\tpublic void user_clicks_on_find_details_button() \r\n\t{\n\t driver.findElement(By.xpath(\"//input[@type='submit']\")).click();\r\n\t}", "@Test\n public void testGreenButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"DateAvailable\").selectItem(1);\n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"greenButton4\").requireVisible();\n }", "public void clickOnSaveChangesButton() {\r\n\t\tprint(\"Click on Save Changes Button\");\r\n\t\tlocator = Locator.MyTrader.Save_Changes_Button.value;\r\n\t\tclickOn(locator);\r\n\t}", "@When(\"^I click on Book button$\")\n\tpublic void i_click_on_Book_button() throws Throwable {\n\t\tfs.selectBookOption();\n\t}", "public void click_CheckavailabitlityButton()\r\n\t{\r\n\t\r\n\r\n\t\tSystem.out.println(\"Inside of the checkavailabitlity\");\r\n\t\t\r\n\t\t/*\r\n\t\tExplicitWait(Checkavailability);\r\n\r\n\r\n\t\tJavascriptexecutor(Checkavailability);\r\n\t\t//System.out.println(\"clicked on Checkavailability\");\r\n\t\tSeleniumRepo.waitForPageLoaded();\r\n\t\tlogger.info(\"clicked on Checkavailability\");\r\n\t\ttest.log(Status.INFO, \"clicked on Checkavailability\");\r\n\t\t\r\n\t\t */\r\n\t\r\n\t\tExplicitWait(Checkavailability);\r\n\r\n\t\tif (Checkavailability.isDisplayed() ) \r\n\t\t{\r\n\t\t\t\r\n\t\t\t//Checkavailability.click();\r\n\t\t\tJavascriptexecutor(Checkavailability);\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"clicked on Checkavailability\");\r\n\t\t\t\r\n\t\t\tSeleniumRepo.waitForPageLoaded();\r\n\t\t\tExplicitWait(Checkavailability);\r\n\r\n\t\t\tlogger.info(\"clicked on Checkavailability\");\r\n\t\t\ttest.log(Status.INFO, \"clicked on Checkavailability\");\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\t//System.out.println(\"BookNow button not found\");\r\n\t\t\tlogger.error(\"Check Availability button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Check Availability button not found\");\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "@When(\"^click the submit button$\")\n public void click_the_submit_button() throws Throwable {\n \tSystem.out.println(\"click the button\");\n //throw new PendingException();\n }", "@Test\n public void testUusipeli() {\n \n testi.Uusipeli.doClick();\n assertEquals(true, true);\n }", "@And(\"^I Should see Continue shopping button$\")\n public void iShouldSeeCountinueButton()throws Throwable{\n Assert.assertTrue(\"Continue shopping button is not present\", Elements.elementPresent(\"checkout.rc_test_element\"));\n Clicks.click(\"checkout.rc_test_element\");\n getWebDriver().navigate().back();\n }", "private void clickContinueButton() {\n clickElement(continueButtonLocator);\n }", "@Test(priority =4)\n\t public void unitbutton() throws InterruptedException \n\t {\n\t\tdriver.findElement(By.xpath(\"//*[@href='unit_test.php']\")).click();\n\t\tThread.sleep(1000);\n\t\t\n\t }", "@Test\n public void checkButtonClickToast4() {\n onView(withText(\"Cheesecake\")).perform(click());\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }", "@Test\n public void test_call_Ambulance_Button_launches_Dialog() {\n onView(withText(\"I understand\")).perform(click());\n //Find the views and perform the action\n onView(withId(R.id.redFlag_call_ambulance)).perform(click());\n //Check if action returns desired outcome\n onView(withText(\"CALL AMBULANCE?\")).check(matches(isDisplayed()));\n\n }", "public void singleClick() throws Exception {\n }", "public void singleClick() throws Exception {\n }", "public void clickOnSuccessOkBtn() throws Exception {\r\n\t\r\n\t\t\tclickOnButton(btnOKSuccess);\r\n\t\t\tlog(\"clicked on OK button and object is:-\" + btnOKSuccess.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t}", "public void clickConfirmDeleteButton() {\n // GeneralUtilities.waitSomeSeconds(1);\n // validateElementText(titleConfirmDeleteToDo, \"Delete To-Do?\");\n // validateElementText(titleConfirmDeleteToDoDescription, \"Are you sure you'd like to delete these To-Dos? Once deleted, you will not be able to retrieve any documents uploaded on the comments in the selected To-Dos.\");\n // waitForCssValueChanged(divConfirmDeleteToDo, \"Div Confirm Delete ToDo\", \"display\", \"block\");\n //\n // hoverElement(buttonConfirmDeleteToDo, \"Button Confirm Delete ToDo\");\n waitForAnimation(divConfirmDeleteToDoAnimate, \"Div Confirm Delete ToDo Animation\");\n clickElement(buttonConfirmDeleteToDo, \"Button Confirm Delete ToDo\");\n waitForCssValueChanged(divConfirmDeleteToDo, \"Div Confirm Delete ToDo\", \"display\", \"none\");\n }", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "public void clickloginbutton(){\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:- Login Button should be clicked\");\r\n\t\ttry{\r\n\t\t\tclick(locator_split(\"btnLogin\"));\r\n\t\t\tsleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Login Button is clicked\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Login button is not clicked with WebElement \"+elementProperties.getProperty(\"btnLogin\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnLogin\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void clickViewCartButton(){\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:- Viewcart button should be clicked\");\r\n\t\ttry{\r\n\t\t\t//waitForElement(btnViewCart);\r\n\t\t\twaitForElement(locator_split(\"btnViewCartBtn\"));\r\n\t\t\t//click(btnViewCart);\r\n\t\t\tclick(locator_split(\"btnViewCartBtn\"));\r\n\t\t\twaitForPageToLoad(20);\r\n\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Viewcart button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- View button is not clicked \"+elementProperties.getProperty(\"btnViewCartBtn\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnViewCartBtn\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "@And(\"^user clicks New button$\")\n\tpublic void user_clicks_New_button() throws Throwable {\n\t\ttry {\n\t\tSeleniumOperations.switchTo(\"actionid\");\n\t\t SeleniumOperations.clickButton(\"//a[@onclick='newItem()']\");\n\t\t HTMLReportGenerator.StepDetails(\"pass\", \"user clicks New button\", \"Expected:User should able to click New button,Actual:User clicked New button successfully \");\n\t\t// String op1=\"Expected:User should able to click New button:\"+\",Actual:User clicked New button Successfully,Exception:NA\";\n\t \t//System.out.println(op1);\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\tHTMLReportGenerator.StepDetails(\"Fail\", \"user clicks New button\", \"Expected:User should able to click New button,Actual:Failed to clicked New button \");\n\t\t\t//String op1=\"Expected:User should able to click Manage Company:\"+\",Actual:Falied to click New button ,Exception:\"+ex.getMessage();\n\t \t//System.out.println(op1);\n\t\t \n\t\t}\n\t}", "public void ClickExcVAT()\r\n\t{\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:- The Vat Exclude button with WebElement \"+elementProperties.getProperty(\"Vatinclusion\")+\" should be clicked\");\r\n\r\n\t\ttry{\r\n\t\t\tString countrygroup_pressel_germany=\"PresselGermany\";\r\n\t\t\tString countrygroup_Bernard_belgium=\"BernardBelgium\";\r\n\r\n\t\t\tif((countrygroup).contains(countries.get(countrycount))){\r\n\t\t\t\tList<WebElement> ele = listofelements(locator_split(\"Vatinclusion\"));\r\n\t\t\t\tclick(ele.get(1)); \r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:-The Vat Exclude button with WebElement \"+elementProperties.getProperty(\"Vatinclusion\")+\" is clicked\");\r\n\t\t\t}\r\n\t\t\telse if((countrygroup_pressel_germany).contains(countries.get(countrycount)))\r\n\t\t\t{\r\n\t\t\t\tclickPresselGermany();\r\n\t\t\t}\r\n\r\n\t\t\telse if((countrygroup_Bernard_belgium).contains(countries.get(countrycount)))\r\n\t\t\t{\r\n\t\t\t\tclickNederlands();\r\n\t\t\t}\r\n\r\n\t\t\telse\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:-The Vat Exclude button with WebElement \"+elementProperties.getProperty(\"Vatinclusion\")+\" is not present\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- The Vat Exclude button with WebElement \"+elementProperties.getProperty(\"Vatinclusion\")+\" is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Vatinclusion\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public static void checkAndClickBackButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnback\", \"\\\"Back\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnback\", \"\\\"Back\\\" button in trivia mode\");\r\n\t}", "@And(\"^I click on \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void i_click_On_Button(String actkey) throws Throwable {\n\t\tThread.sleep(5000);\r\n\t\t//loginPage.getDriver().findElement(By.xpath(\".//*[contains(@value,'Edit')]\")).click();\r\n\t\tenduser.Qos_screen_edit_and_save(actkey);\r\n\t\t\r\n\t}", "@Test\n public void checkButtonClickToast2() {\n onView(withText(\"Brownies\")).perform(click());\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }", "@Test\n public void testHandleBtnAlterar() throws Exception {\n }", "public void ClickMyAccountSubmitbutton(){\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:- My Account Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnMyAccountSubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnMyAccountSubmit\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "@Test\n\tpublic void checking_thirdalertbtn_withcancel()throws IOException, InterruptedException\n\t{\n\t\tgetlogin();\n\t\tSwitchtoPage sp=new SwitchtoPage(driver);\n\t\tsp.getswitchtolink().click();\n\t\tsp.getAlertlink().click();\n\t\tsp.getalTextbox().click();\n\t\tsp.getPrompt().click();\n \t Alert al=driver.switchTo().alert();\n \t al.dismiss();\n\t}", "public void clickIfExists() {\n try {\n\n waitTillElementVisible(5000);\n mouse.click(driver, locator);\n\n } catch (Exception e) {\n log.error(\"exception :\", e);\n }\n }", "public static void checkAndClickPlayButton() {\r\n\t\tcheckNoSuchElementExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\", \"\\\"Play\\\" button\");\r\n\t\tcheckElementNotInteractableExceptionByXPath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\", \"\\\"Play\\\" button\");\r\n\t}", "public void clickTravellersButton() {\n\t\ttry {\n\t\t\tWebElement travellerButton = driver\n\t\t\t\t\t.findElement(By.xpath(\"//button[@data-testid='travelers-field-trigger']\"));\n\t\t\ttravellerButton.click();\n\t\t} catch (NoSuchElementException e) {\n\t\t\tWebElement alternativeTravellerButton = driver.findElement(By.xpath(\"//a[@data-testid='travelers-field']\"));\n\t\t\talternativeTravellerButton.click();\n\t\t}\n\t}", "@Test\n public void turboVotesButton_onClick_redirectsToTurboVotes() {\n driver.get(\"http://localhost:9876\");\n\n Assert.assertEquals(1, driver.getWindowHandles().size());\n\n WebElement turboVotesButton = driver.findElement(By.id(\"turbo-vote-button\"));\n turboVotesButton.click();\n\n Assert.assertEquals(MAX_NUM_TABS, driver.getWindowHandles().size());\n\n String currentWindow = driver.getWindowHandle();\n for (String windowHandle : driver.getWindowHandles()) {\n if (!currentWindow.contentEquals(windowHandle)) {\n driver.switchTo().window(windowHandle);\n break;\n }\n }\n\n Assert.assertEquals(\"TurboVote\", driver.getTitle());\n }", "public void ClickQviewAddtoCartbutton(){\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:- Qview Add to cart button should be clicked\");\r\n\t\ttry{\r\n\t\t\tclick(locator_split(\"btnQviewAddtoCart\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Qview Add to cart button is clicked\");\r\n\t\t\tSystem.out.println(\"Clicked the Add to Cart in QView\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Qview Add to cart button is not clicked or Not Available\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnQviewAddtoCart\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}", "public void clickOnNotNowBtn() throws Exception {\n\t\tgetHomepagenotnowbtn().waitForVisible();\n\t\tJavascriptExecutor executor = (JavascriptExecutor) driver;\n\t\texecutor.executeScript(\"arguments[0].click()\",homepagenotnowbtn);\n\t\tSystem.out.println(\"alert is closed\" + homepagenotnowbtn);\n\t\twaitForPageToLoad();\n\t}", "@Override\r\npublic void afterClickOn(WebElement arg0, WebDriver arg1) {\n\tSystem.out.println(\"as\");\r\n}", "@Test\r\n\tpublic void testButtonPressedSafety() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tvend.enableSafety();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}", "public final void click() {\n getUnderlyingElement().click();\n }", "@When(\"user clicks on checkoutbutton\")\r\n\tpublic void usert_clicks_on_checkoutbutton() {\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"cart\\\"]/tfoot/tr[2]/td[5]/a\")).click();\r\n\t}", "@Test\n public void testHandleBtnExcluir() throws Exception {\n }", "@Test\r\n public void TestCancelButton(){\r\n solo.clickOnView(solo.getView(R.id.nav_view).findViewById(R.id.navigation_notifications));\r\n solo.waitForFragmentById(R.id.navigation_notifications);\r\n solo.clickOnView(solo.getView(R.id.addFollowing));\r\n solo.sleep(5000);\r\n solo.waitForActivity(AddFollowingActivity.class, 2000);\r\n solo.clickOnView(solo.getView(R.id.cancel2));\r\n solo.waitForFragmentById(R.id.navigation_notifications);\r\n\r\n }", "public void clickOnCEDemo() {\n if(CEDEmo.isDisplayed()) {\n\t waitAndClick(CEDEmo);\n }\t\n }", "public void clickOnDeleteButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-danger.ant-btn-circle\"), MEDIUMWAIT);\r\n\t}", "public boolean ButtonStatusToRoundTrip(){\n\n wait.until(ExpectedConditions.elementSelectionStateToBe(roundTripButton,false));\n roundTripButton.click();\n System.out.println(\"Round Trip button is clicked\");\n do {\n return true;\n }\n while (roundTripButton.isSelected());\n\n\n }", "@Test\n public void checkButtonClickToast3() {\n onView(withText(\"Yellow Cake\")).perform(click());\n onView(withText(\"Ensure data connectivity\")).inRoot(new ToastMatcher())\n .check(matches(isDisplayed()));\n }", "@Test\n public void test1() {\n FirefoxBinary binary =\n new FirefoxBinary(new File(FIREFOX_PATH));\n driver = TestBench.createDriver(\n new FirefoxDriver(binary, new FirefoxProfile()));\n setDriver(driver);\n getDriver().get(URL);\n ButtonElement button = $(ButtonElement.class).first();\n button.click();\n LabelElement label = $(LabelElement.class).id(\"result\");\n\n Assert.assertEquals(\"Thanks , it works!\",label.getText());\n driver.quit();\n }", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}", "public void clickOnCancelButtonInMarkAsCompletePopup() {\n getLogger().info(\"Click on cancel button in mark as complete button\");\n try {\n waitForClickableOfElement(eleCancelBtn, \"Wait for click on cancel button\");\n clickElement(eleCancelBtn, \"Click on cancel button\");\n NXGReports.addStep(\"Verify click on cancel button in mark as complete popup successful \", LogAs.PASSED, null);\n } catch (Exception ex) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify click on cancel button in mark as complete popup fail\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "public void clickOnProceedToCheckoutButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnProceedToCheckoutButton.click();\n\n \t}", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "@Test(enabled = true)\n public void searchForFlight() throws InterruptedException {\n driver.findElement(By.xpath(\"//*[@id='uitk-tabs-button-container']/li[2]\")).click();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.findElement(By.xpath(\"//button[contains(@aria-label,'Going to')]\")).sendKeys(Keys.ARROW_DOWN);\n Thread.sleep(15000);\n\n //d1-btn\n\n }", "@Test\r\n public void testConceptsButton() {\r\n WicketTester tester = new WicketTester(new GreenometerApplication());\r\n tester.startPage(StopLightPage.class);\r\n tester.assertRenderedPage(StopLightPage.class);\r\n\r\n tester.clickLink(\"ConceptsPageButton\", false);\r\n tester.assertRenderedPage(ConceptsPage.class);\r\n }", "@Test(priority = 0)\n public void cickOnSignInButton()\n {\n apdOBJ.clickOnSignInButton();\n }", "public void clickOnYesButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Yes\"));\r\n\t}", "public static void checkAndClickNextButtonTriviaMode() {\r\n\t\tcheckNoSuchElementExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t\tcheckElementNotInteractableExceptionByID(\"btnnext\", \"\\\"Next\\\" button in trivia mode\");\r\n\t}", "@Test(priority = 8)\n @Parameters(\"browser\")\n public void TC08_VERIFY_BUTTON_TIEPTHEO(String browser) throws IOException {\n String excel_BtnTiepTheo = null;\n excel_BtnTiepTheo = global.Read_Data_From_Excel(excelPath,\"ELEMENTS\",7,2);\n if(excel_BtnTiepTheo == null){\n System.out.println(\"ERROR - Cell or Row No. is wrong.\");\n exTest.log(LogStatus.ERROR, \"ERROR - Cell or Row No. is wrong.\" );\n }\n // Locate element by Xpath\n WebElement ele_BtnTiepTheo = null;\n ele_BtnTiepTheo = global.Find_Element_By_XPath(driver, excel_BtnTiepTheo);\n if(ele_BtnTiepTheo == null){\n exTest.log(LogStatus.FAIL,\"::[\" + browser + \"]:: TC08 - Button Tiep theo is not displayed.\");\n } else {\n exTest.log(LogStatus.PASS,\"::[\" + browser + \"]:: TC08 - Button Tiep theo is displayed.\");\n }\n // Get text from Element.\n String textBtnTieptheo = \"Tiếp theo\";\n String textGetFromEle_BtnTieptheo = ele_BtnTiepTheo.getText();\n System.out.println(\"DEBUG --- \" + textGetFromEle_BtnTieptheo);\n if(textGetFromEle_BtnTieptheo != null && textGetFromEle_BtnTieptheo.equals(textBtnTieptheo)){\n exTest.log(LogStatus.PASS,\"::[\" + browser + \"]:: TC08.1 - Button Tiep theo is correct.\");\n } else {\n exTest.log(LogStatus.FAIL,\"::[\" + browser + \"]:: TC08.1 - Link Tao Tai Khoan is not correct.\");\n }\n }", "@DisplayName(\"Teste ao vivo\")\n @Test\n void execute() throws Exception {\n driver.manage().timeouts().implicitlyWait(15000, TimeUnit.MILLISECONDS);\n By by;\n boolean booleanResult;\n\n // 1. Navigate to '{{ApplicationURL}}'\n // Navigates the specified URL (Auto-generated)\n driver.navigate().to(ApplicationURL);\n\n // 2. Click 'q1'\n by = By.cssSelector(\"#search\");\n driver.findElement(by).click();\n\n // 3. Type 'Ração' in 'q1'\n by = By.cssSelector(\"#search\");\n driver.findElement(by).sendKeys(\"Ração\");\n\n // 4. Click '1'\n by = By.xpath(\"//button[. = '\\n\t\t\t\t\t\t\t\\n\t\t\t\t\t\t']\");\n driver.findElement(by).click();\n\n // 5. Click 'Ra&ccedil;&atilde;o Royal Canin Maxi ...'\n by = By.xpath(\"//h3[. = 'Ração Royal Canin Maxi - Cães Adultos - 15kg']\");\n driver.findElement(by).click();\n\n // 6. Click 'Adicionar ao carrinho1'\n by = By.cssSelector(\"#adicionarAoCarrinho\");\n driver.findElement(by).click();\n\n // 7. Click 'SPAN'\n by = By.xpath(\"//button[2]/span\");\n driver.findElement(by).click();\n\n // 8. Click 'SPAN1'\n by = By.xpath(\"//button[2]/span\");\n driver.findElement(by).click();\n\n // 9. Click 'SPAN'\n by = By.xpath(\"//button[2]/span\");\n driver.findElement(by).click();\n\n // 10. Click 'insira seu cupom/vale'\n by = By.cssSelector(\"#botaoCupom\");\n driver.findElement(by).click();\n\n // 11. Click 'cupomDesconto'\n by = By.cssSelector(\"#cupomDesconto\");\n driver.findElement(by).click();\n\n // 12. Type '1212' in 'cupomDesconto'\n by = By.cssSelector(\"#cupomDesconto\");\n driver.findElement(by).sendKeys(\"1212\");\n\n // 13. Click 'Aplicar'\n by = By.cssSelector(\"#aplicaCupom\");\n driver.findElement(by).click();\n\n // 14. Click 'Entendi'\n by = By.xpath(\"//a[. = 'Entendi']\");\n driver.findElement(by).click();\n\n }", "@Test (groups = {\"Regression\",\"Smoke\"})\n public void verifyClickOnServicesBtn() {\n homePage.clickOnServicesBtn();\n }", "public void clickCookieOKButton(WebDriver driver)\n\t\t {\n\t\t\t \n\t\t\t try\n\t\t\t {\n\t\t\t\tList<WebElement> allbutton = driver.findElements(By.tagName(\"button\"));\n\t\t\t\t\n\t\t\t\tfor(WebElement btn:allbutton)\n\t\t\t\t{\n\t\t\t\t\tString strbtnText = btn.getText();\n\t\t\t\t\tif(strbtnText.equals(\"OK\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tbtn.click();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t }\n\t\t\t catch(Exception e)\n\t\t\t {\n\t\t\t\t System.out.println(\"\");\n\t\t\t }\n\t\t }", "@Test\n public void testHandleBtnFiltrar() {\n }", "@Override\r\n public void afterClickOn(final WebElement arg0, final WebDriver arg1) {\n\r\n }" ]
[ "0.6927116", "0.6904134", "0.68923706", "0.68820834", "0.68439054", "0.6835962", "0.6769175", "0.67664695", "0.66420096", "0.6594733", "0.657557", "0.6569924", "0.65513855", "0.65397966", "0.6534044", "0.65221465", "0.65182656", "0.64971656", "0.6496695", "0.64958185", "0.64831156", "0.6471632", "0.646469", "0.64585644", "0.6457327", "0.64445513", "0.64383125", "0.64324695", "0.64163977", "0.6405656", "0.6404232", "0.640022", "0.6389946", "0.6378267", "0.6375048", "0.6374732", "0.6370798", "0.63693094", "0.63508624", "0.63505775", "0.634982", "0.6345262", "0.6342856", "0.63368195", "0.6335406", "0.6329283", "0.632847", "0.6316593", "0.63118297", "0.6311248", "0.63089734", "0.63084257", "0.6305756", "0.6305756", "0.630019", "0.62982875", "0.6296452", "0.62924314", "0.6283545", "0.62810737", "0.6276035", "0.62733245", "0.62545437", "0.6241805", "0.62316126", "0.6226641", "0.6226374", "0.6220587", "0.62146854", "0.62106204", "0.62051", "0.62042534", "0.61993927", "0.61946267", "0.6188883", "0.6179905", "0.61760783", "0.61754525", "0.6171169", "0.61701006", "0.6169343", "0.616872", "0.6168025", "0.6162895", "0.6159697", "0.6151435", "0.6149921", "0.61477065", "0.6146793", "0.61338234", "0.6128531", "0.6125663", "0.61249435", "0.61230505", "0.6116664", "0.6108042", "0.6107026", "0.6106354", "0.6100745", "0.6099728" ]
0.62955225
57
Click on toll name specified on configuration file
@Then("^User clicks on a toll$") public void user_clicks_on_a_toll() throws Throwable { CommonStepDefinitions.homePage.selectToll("Anson Road"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Admin_Configuration()\n\t{\n\t\tAdmin_Configuration.click();\n\t}", "public void clickOnFile(String file) {\n clickOnFile(file, 1);\n }", "public void clickOnAccountSettingLink() {\r\n\t\tprint(\"Click on Account Setting Link\");\r\n\t\tlocator = Locator.MyTrader.Account_Setting.value;\r\n\t\tclickOn(locator);\r\n\t}", "void onConfigureClick(long id);", "public void ClickAccount() {\n if (lnkAccount.isDisplayed()) {\n lnkAccount.click();\n }\n else{System.out.println(\"Account link is not displayed\");}\n }", "public void clickOnVehicleNameDropdownButton() {\r\n\t\tsafeClick(vehicleLinkPath.replace(\"ant-card-head-title\", \"ant-select ant-select-enabled\"), MEDIUMWAIT);\r\n\t}", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\tMyFrame.teampanel.showOne(name2.getText());\r\n\t\t}", "public void Open() {\r\n\t click();\r\n\t }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString url = \"Aide.html\";\r\n\t\t\t\tFile htmlFile = new File(url);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\r\n\t\t\t\t} catch (IOException 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}", "@Command\t\n\tpublic void menuClicked(@BindingParam(\"pagename\") String pagename)\n\t{\n\t\t\n\t\tVlayout vl=(Vlayout)Path.getComponent(\"/mainlayout\");\n\t\t//Scrollview s=(Scrollview)vl.getFellow(\"scvCenter\");\n\t\t//Executions.createComponents(pagename, s, null);\n\t\t\t\n\t}", "public void doClickOnConfigProfilingRBtn() {\n\t\tconfigProfilingCondSetRBtn.doClick();\n\t}", "public void goToPrinterSection(){\n click(By.name(printerTab));\n }", "public void AdminLink(){\n\t\tAdminLink.click();\n\t}", "public void iterateAndClickParticularProgram(final String programeName);", "public void onFileEditButtonPressed(View v) {\n RobotConfigFile file = getFile(v);\n robotConfigFileManager.setActiveConfig(remoteConfigure, file);\n Intent intent = makeEditConfigIntent(FtcConfigurationActivity.class, file);\n startActivityForResult(intent, FtcConfigurationActivity.requestCode.value);\n }", "public PDUsPage clickLinkNameforPDUs(String linkName){\n\t\tif(clickLink(linkName, false))\n\t\t\tReporter.reportStep(\"The Value: \"+ linkName +\" under Configuration Item is clicked successfully\", \"SUCCESS\");\n\t\telse\t\n\t\t\tReporter.reportStep(\"The Value: \"+ linkName +\" under Configuration Item could not be clicked\", \"FAILURE\");\n\n\t\treturn new PDUsPage(driver);\n\t}", "public void clickEdit() {\r\n\t\tEdit.click();\r\n\t}", "public static void contextMenuClickOnFeature(WebDriver driver, String name) {\n\t\tString xpath = \"//*[local-name() = 'g' and @class='pieFeature']\" +\n\t\t\t\t\"/*[local-name() = 'path']/*[local-name() = 'title'][contains(text(),' - \"+name+\": ')]/parent::*\";\t\t\n\t\tActions builder = new Actions(driver); \n\t\tbuilder.contextClick(SelUtil.findElement(driver, By.xpath(xpath)));\n\t\tbuilder.perform();\n\t}", "@When(\"^I choose \\\"([^\\\"]*)\\\" option from settings page$\")\n public void i_choose_option_from_settings_page(String arg1) throws Throwable {\n settings.clickOption(arg1);\n }", "public void Click_defineSetupPage_Alert() {\r\n\t\tclickOn(SensorConfiguration_Btn);\r\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n\t\tcomboBox.setEnabled(true);\n\t\tcomboBox.setVisible(true);\n\t\tlblTest.setVisible(false);\n\t\t//choose the correct combobox entry for the file we currently use.\n }", "@Then(\"click on Settings\")\n public void clickOnSettings() {\n getDriver().findElement(By.xpath(\"//button[@ui-sref='settings.groups']\")).click();\n }", "public void clickOnWithNotificationTemplate() {\r\n\r\n\t\treportStep(\"About to click on With Notification Template\", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(withTemplateNotification)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the With Notification template \", \"PASS\");\r\n\r\n\t\t}else {\r\n\t\t\treportStep(\"Failed to click on the With Notification template \", \"FAIL\");\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}", "@And(\"^I click on \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void i_click_On_Button(String actkey) throws Throwable {\n\t\tThread.sleep(5000);\r\n\t\t//loginPage.getDriver().findElement(By.xpath(\".//*[contains(@value,'Edit')]\")).click();\r\n\t\tenduser.Qos_screen_edit_and_save(actkey);\r\n\t\t\r\n\t}", "void clickAmFromMenu();", "@Given(\"click tab {string}\")\n public void clickEarlyAccessTab(String string) {\n $(page_objects.AdminPage.EarlyAccessTab).click();\n }", "public void clickOnText(String text);", "public void I_Should_click_My_Account_link(){\n\t MyAccountLink.click();\n\t \n}", "@When(\"^Click on Contactus Option$\")\r\n\tpublic void click_on_Contactus_Option() {\n\t\tnop.click(\"//*[@id=\\\"contact-link\\\"]/a\"); //clicking contact us option\r\n\t\t\r\n\t}", "void clickFmFromMenu();", "public void clickEditLink() {\r\n\t\tbtn_EditLink.click();\r\n\t}", "public void ClickOption(WebElement e) {\n\t\te.click();\n\n\t}", "public void clickDemandSideManagement();", "public String clickOnPresenternameLink() {\n String linkName=presenterNameLink.getText().substring(0, 21);\n waitAndClick(presenterNameLink);\n return linkName;\n\t}", "@And(\"^I clicked on \\\"([^\\\"]*)\\\" tab$\")\r\n\tpublic void clickonTab(String Acttab) throws Exception {\r\n\t\tenduser.click_Tab(Acttab);\r\n\t\tSystem.out.println(Acttab);\r\n\t \r\n\t}", "@Override\r\n public void doHelpAction() {\n BIReportService.getInstance().traceHelpClick(project.getBasePath(), ConversionHelpEnum.PATH_SETTING);\r\n\r\n ApplicationManager.getApplication().invokeLater(() -> {\r\n BrowserUtil.browse(allianceDomain + HmsConvertorBundle.message(\"directory_url\"));\r\n }, ModalityState.any());\r\n }", "public void clickOnGroupNameDropdownButton() {\r\n\t\tsafeClick(vehicleLinkPath.replace(\"ant-card-head-title\", \"ant-select ant-select-enabled\"), MEDIUMWAIT);\r\n\t}", "HtmlPage clickSiteName();", "public void clickChannelsAdminLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Channels Admin\",GlobalVariables.configuration.getAttrSearchList(), \"Channels Admin\");\r\n\t\tUIActions.click(fileName,\"Channels Admin\",GlobalVariables.configuration.getAttrSearchList(), \"Channels Admin\");\r\n\t\t\r\n\t\t// Assertion : Check Title of Page\r\n \tString title=dataController.getPageDataElements(fileName, \"Admin Page Title\", \"Title\");\r\n \tUIActions.waitForTitle(title,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}", "public void clickOnLaceBootsLink(){\n Reporter.log(\"clicking on boots \"+ bootsLink+\"<br>\");\n clickOnElement(bootsLink);\n }", "public void openTopic(String name) {\n\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\".//h3[text()='\" + name + \"']\")));\n\t\tscroller.scrollTo(\".//h3[text()='\" + name + \"']\");\n\t\tdriver.findElement(By.xpath(\".//h3[text()='\" + name + \"']\")).click();\n\t}", "public void clickCourse() {\r\n\t\tthis.clickcourse.click();\r\n\r\n\t}", "public void click() {\n\t\tSystem.out.println(\"LinuxButton Click\");\r\n\t}", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tsuper.mouseClicked(e);\n\t\t\t\t\tYamlWriter yamlW = new YamlWriter(new FileWriter(\"config.yml\"));\n\t\t\t\t\tHashMap<String, Object> newMap = new HashMap<String, Object>();\n\t\t\t\t\tList<String> commands = new ArrayList<String>();\n\t\t\t\t\tString newToken = ConfigUI.getTextFromField(tokenPanel);\n\t\t\t\t\tnewMap.put(\"token\", newToken);\n\t\t\t\t\tString newPrefix = ConfigUI.getTextFromField(prefixPanel);\n\t\t\t\t\tnewMap.put(\"prefix\", newPrefix);\n\t\t\t\t\tString newMusic = ConfigUI.getTextFromField(musicPanel);\n\t\t\t\t\tnewMap.put(\"music-channel\", newMusic);\n\t\t\t\t\tString newTOS = ConfigUI.getTextFromField(tosPanel);\n\t\t\t\t\tnewMap.put(\"mg-channel\", newTOS);\n\t\t\t\t\tJRadioButton profButt = new JRadioButton();\n\t\t\t\t\tfor (Component comp : profPanel.getComponents()) {\n\t\t\t\t\t\tif (comp instanceof JRadioButton) {\n\t\t\t\t\t\t\tprofButt = (JRadioButton) comp;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tString newProf = profButt.isSelected() + \"\";\n\t\t\t\t\tnewMap.put(\"profanity-filter\", newProf);\n\t\t\t\t\tfor (JPanel custom : commandEntries) {\n\t\t\t\t\t\tString key = null;\n\t\t\t\t\t\tString value = null;\n\t\t\t\t\t\tComponent[] comps = custom.getComponents();\n\t\t\t\t\t\tfor (Component c : comps) {\n\t\t\t\t\t\t\tboolean cont = true;\n\t\t\t\t\t\t\tif (c instanceof JTextField) {\n\t\t\t\t\t\t\t\tString text = ((JTextField) c).getText();\n\t\t\t\t\t\t\t\tif (text.equals(\"\")) {\n\t\t\t\t\t\t\t\t\tcont = false;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tkey = ((JTextField) c).getText();\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (c instanceof JScrollPane && cont) {\n\t\t\t\t\t\t\t\tvalue = ConfigUI.getTextFromArea((JScrollPane) c);\n\t\t\t\t\t\t\t\tnewMap.put(key, value);\n\t\t\t\t\t\t\t\tcommands.add(key);\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\tnewMap.put(\"commands02779\", commands);\n\t\t\t\t\tyamlW.write(newMap);\n\t\t\t\t\tyamlW.close();\n\t\t\t\t\tVariables.setPrefix(newPrefix);\n\t\t\t\t\tVariables.setMusicChannel(newMusic);\n\t\t\t\t\tVariables.setMinigameChannel(newTOS);\n\t\t\t\t\tVariables.setProfanityEnabled(newProf);\n\t\t\t\t\t\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\t\n\t\t\t\t\tJFrame startingFrame = ConfigUI.openStartingFrame();\n\t\t\t\t\tstartingFrame.pack();\n\n\t\t\t\t\tnew Thread(new Runnable() {\n\n @Override\n public void run() {\n try {\n Thread.sleep(2100);\n } catch (InterruptedException ex) {\n }\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n \tboolean ableToLogin = runBot(newToken);\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tstartingFrame.dispose();\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tJFrame newFrame = ConfigUI.openRunningFrame(ableToLogin);\n \t\t\t\t\t\t\tnewFrame.pack();\n }\n });\n }\n }).start();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch (IOException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public boolean clicklnkClickonLinkafterSettingValue() throws InterruptedException\n\t{\n\t\t\tThread.sleep(2000);\n\t\t\t// utils.PressEnter(this.lnkClickonLinkafterSettingValue, \"Member Composite\", \"Text Box Add Task Options\");\n\t\t\treturn utils.clickAnelemnt(this.lnkClickonLinkafterSettingValue, \"Member Composite\", \"Text Box Add Task Options\");\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void clickById(String id) {\n\n\n driver.findElementById(id).click();\n\n\n }", "void setClickURL(java.lang.String clickURL);", "public void clickChangeButtonInPictureTab(){\r\n\t\t\t\r\n\t\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-panel-noborder') and not(contains(@class,'x-hide-display'))]//div[contains(@class,'x-panel-bbar')]//button[contains(text(),'Change...')]\").click();\r\n\t\t\t\r\n\t\t\tReporter.log(\"Clicked on Change button in Picture Tab\", true);\r\n\t\t}", "public void setMenuConfigure() {\n menuConfigure.click();\n }", "@Override\n public void mouseClicked(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n System.out.println(\" Mouse: Click \" + boton ); \n }", "@Given(\"click menu button {string}\")\n public void clickMenuButton(String string) {\n $(MenuButtons.ProfileMenuButton).click();\n $(MenuButtons.AdminPopupItem).click();\n }", "public void clickCollaborationPlanLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Collaboration Plan\",GlobalVariables.configuration.getAttrSearchList(), \"Collaboration Plan link\");\r\n\t\tUIActions.click(fileName,\"Collaboration Plan\",GlobalVariables.configuration.getAttrSearchList(), \"Collaboration Plan link\");\r\n\t\t\t\t\r\n\t\t/*// Assertion : Check Title of Page\r\n \tString title=dataController.getPageDataElements(fileName, \"Collaboration Plans Page Title\", \"Title\");\r\n \tUIActions.waitForTitle(title,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));*/\r\n\t\tUIActions.getText(fileName, \"CollaborationPlansPageTitle\", GlobalVariables.configuration.getAttrSearchList(), \"Collaboration Plans Page Title\");\r\n\t}", "public void clickMyPasswordTab() throws UIAutomationException{\r\n\t\r\n\t\telementController.requireElementSmart(fileName,\"My Password In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"My Password In Social Panel\");\r\n\t\tUIActions.click(fileName,\"My Password In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"My Password In Social Panel\");\r\n\r\n\t\tString TextInPage=UIActions.getText(fileName,\"My Password In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"My Password In Social Panel\");\r\n\t\tString TextInXML=dataController.getPageDataElements(fileName,\"My Password Tab Text\" , \"Name\");\r\n\t\tif(!TextInPage.contains(TextInXML)){\r\n\t\t\tthrow new UIAutomationException( \"'\"+TextInXML +\"' not found\");\r\n\t\t}\r\n\t}", "@Given(\"click tab {string}\")\n public void clickTab(String string) {\n $(page_objects.AdminPage.EarlyAccessTab).click();\n }", "public void clickSalvar (){driver.findElement(botaoSalvar).click();}", "public void clickCaseIcon(){\n getUiInstance().getElement(locators.linkCase, Constant.DEFAULT_TIMEOUT).click();\n reporter.info(\"Clicking case icon\");\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void ClickMyAccount( ){\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:- My Account Link clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"LoginLogout\"));\r\n\t\t\tclick(locator_split(\"LoginLogout\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Link clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Link is not clicked \"+elementProperties.getProperty(\"LoginLogout\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "public void clica(String id) {\n getDriver().findElement(By.id(id)).click();\n }", "public void click(String className){\n seleniumDriver.findElement(By.className(className)).click();\n }", "@Test\n\t@TestProperties(name = \"Click element ${by}:${locator}\", paramsInclude = { \"by\", \"locator\" })\n\tpublic void clickElement() {\n\t\tfindElement(by, locator).click();\n\t}", "public void clickByName(String elementByName) {\n getDriver().findElementByName(elementByName).click();\n }", "public void clickAutoInsurance() {\n\t\tselectAutoInsurance.click();\n\t}", "@Then(\"user clicks on edit consignment\")\r\n\tpublic void user_clicks_on_edit_consignment() {\n\t\tWebElement element = Browser.session.findElement(By.xpath(\"//*[@id='consignments-rows']//button[1]\"));\r\n\t\telement.click();\r\n\t\telement = Browser.session.findElement(By.xpath(\"//a[text()='Edit consignment info']\"));\r\n\t\telement.click();\r\n\t}", "private void openPermissions(){\n WebDriverHelper.clickElement(seePermissionLvlButton);\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Test\n @When(\"I navigate to Market\")\n public void s04_MarketOpen(){\n WebElement marketLink = driver.findElementByLinkText(\"Маркет\");\n marketLink.click();\n System.out.println(\"Step04 PASSED\");\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "private void labelEdit2MouseClicked(MouseEvent e) {\n }", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void clickDomainPlanEditor() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Domain Plan Editor\",GlobalVariables.configuration.getAttrSearchList(), \"Domain Plan Editor link\");\r\n\t\tUIActions.click(fileName,\"Domain Plan Editor\",GlobalVariables.configuration.getAttrSearchList(), \"Domain Plan Editor link\");\r\n\t\t\t\t\r\n\t\t// Assertion : Check Title of Page\r\n \tString title=dataController.getPageDataElements(fileName, \"Domain Plan Editor Page Title\", \"Title\");\r\n \tUIActions.waitForTitle(title,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));\r\n\t}", "public void clickOnFile(int index, int clickCount) {\n getQueueTool().waitEmpty();\n output.printTrace(\"Click \" + Integer.toString(clickCount)\n + \" times on \" + Integer.toString(index)\n + \"`th file in JFileChooser\\n : \"\n + toStringSource());\n waitPainted(index);\n Component list = getFileList();\n if(list instanceof JList) {\n JListOperator listOper = new JListOperator((JList) list);\n listOper.copyEnvironment(this);\n listOper.setOutput(output.createErrorOutput());\n listOper.clickOnItem(index, clickCount);\n } else if(list instanceof JTable) {\n JTableOperator tableOper = new JTableOperator((JTable) list);\n tableOper.copyEnvironment(this);\n tableOper.setOutput(output.createErrorOutput());\n tableOper.clickOnCell(index, 0, clickCount);\n } else\n throw new IllegalStateException(\"Wrong component type\");\n }", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "public void testGUI(){\n \tFile xml = new File(testData,\"html/htmlsidekick.html\");\n \t\n \tTestUtils.openFile(xml.getPath());\n\t\t\n \t// wait for end of parsing\n \tdoInBetween(new Runnable(){\n \t\t\tpublic void run(){\n \t\t\t\taction(\"sidekick-parse\",1);\n \t\t}}, \n \t\tmessageOfClassCondition(sidekick.SideKickUpdate.class),\n \t\t10000);\n\t\t\n \tTestUtils.view().getTextArea().scrollTo(3319,false);\n\t\tfinal java.awt.Point hrefP = TestUtils.view().getTextArea().offsetToXY(3319);\n\t\threfP.translate(30, 10);\n\t\tfinal JEditTextAreaFixture tf = new JEditTextAreaFixture(TestUtils.robot(),TestUtils.view().getTextArea()); \n\n\t\t// doesn't work: the hyperlink is not triggered...\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\ttf.robot.pressModifiers(InputEvent.CTRL_DOWN_MASK);\n\t\tPause.pause(2000);\n\t\threfP.translate(10,4);\n\t\ttf.robot.moveMouse(tf.target,hrefP);\n\t\tPause.pause(4000);\n\t\ttf.robot.click(tf.target, MouseButton.LEFT_BUTTON);\n\t\ttf.robot.releaseModifiers(InputEvent.CTRL_DOWN_MASK);\n\t}", "@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\t}", "public void clickDashboardLink() {\n this.action.click(this.dashboardLink);\n }" ]
[ "0.6632283", "0.6441828", "0.64001787", "0.6346152", "0.58794963", "0.5843137", "0.58219737", "0.5787543", "0.5786847", "0.578086", "0.57627386", "0.57112235", "0.57033736", "0.56896365", "0.5688826", "0.5659082", "0.56417024", "0.560729", "0.5604973", "0.56046575", "0.5598582", "0.5597901", "0.55885834", "0.5572912", "0.55648196", "0.5559236", "0.5541753", "0.5540171", "0.55321395", "0.5530399", "0.5520111", "0.55019486", "0.54996634", "0.5497186", "0.5495606", "0.548918", "0.54585046", "0.5455303", "0.54518354", "0.54367626", "0.54366475", "0.54331744", "0.54234177", "0.54080427", "0.5401199", "0.54003555", "0.53940755", "0.5380831", "0.5380831", "0.537354", "0.5365804", "0.5365017", "0.53637105", "0.5360988", "0.53458905", "0.5341348", "0.5337103", "0.5334335", "0.5333996", "0.5333989", "0.5331553", "0.5329726", "0.53239405", "0.5322883", "0.5321937", "0.53212357", "0.5316795", "0.5314671", "0.5313178", "0.53116286", "0.5310399", "0.531017", "0.531017", "0.531017", "0.531017", "0.531017", "0.531017", "0.531017", "0.5309473", "0.530594", "0.530594", "0.5304425", "0.5304425", "0.5304425", "0.5304425", "0.5304425", "0.5304425", "0.5304425", "0.5304425", "0.5304425", "0.5304425", "0.5304425", "0.52996415", "0.5286996", "0.5283895", "0.52684003", "0.52684003", "0.52661216", "0.5258326", "0.5256015" ]
0.5353914
54
Verify whether toll pop up displayed with correct toll name
@Then("^Display toll popup with correct toll name$") public void display_toll_popup_with_correct_toll_name() throws Throwable { Assert.assertTrue(CommonStepDefinitions.homePage.validateLiveTolls(prop.getProperty("desktop.selected.toll"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verifyPresenterNameMatchedOnCourseInfoPage(String name) {\n \t Assert.assertEquals(presenterLabel.getText(),name);\n }", "@Test\n public void testWrongOpenHoursCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openHoursFalseLbl\").requireVisible();\n }", "@Test\n public void GIncorrectNameFormat () {\n onView(withId(R.id.username)).check(matches(isDisplayed()));\n //change name to wrong format\n onView(withId(R.id.username)).perform(replaceText(\"34&\"));\n //click the button\n onView(withId(R.id.save)).perform(click());\n // check toast visibility\n onView(withText(R.string.NotCorrectName))\n .inRoot(new ToastMatcher())\n .check(matches(withText(R.string.NotCorrectName)));\n //check activity still shown\n assertFalse(activityTestRule.getActivity().isFinishing());\n }", "public void testGetPresentationName() {\n assertTrue(\"The presentation name should be correct.\",\n action.getPresentationName().equals(\"Cut Subsystem\"));\n }", "public void verifyForgotLinkModalWindow() {\n modalWindow.assertState().enabled();\n modalWindow.assertContains().text(\"warningLeaving the PECOS Website\");\n }", "boolean isPopUpOpened();", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyNoofAcctsinViewname() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the functionalities of Close link and Previous and next if more than 10 accounts in that overlay \");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.ViewAcctsOverlay(userProfile);\n\t}", "public void testGetPresentationName() {\n assertEquals(\"Incorrect name!\", \"Cut Comment Action\", this.action.getPresentationName());\n }", "@Then(\"^User clicks on a toll$\")\n\tpublic void user_clicks_on_a_toll() throws Throwable {\n\t\tCommonStepDefinitions.homePage.selectToll(\"Anson Road\");\n\t}", "public void setTitlePopup(String t) {\n/* 147 */ getCOSObject().setString(COSName.T, t);\n/* */ }", "private void bust() {\n //Dialog box pop-up\n JOptionPane.showMessageDialog(this, this.getPlayerName() + \" busted with a value of: \" + this.getValue(), \"BUSTED!\", JOptionPane.INFORMATION_MESSAGE);\n busted = true; //Hand busted\n }", "public void appearsConfirmationPopup(String operation) {\n\t\tassertTrue(true);\n\t\t//assertTrue(browser.currentPage().div(\"jqi_state_\" + operation).exists());\n\t\t//assertTrue(div(\"jqi_state_\" + operation).exists());\t\n\t}", "boolean hasPokemonDisplay();", "@Test\n public void testFailedStoreCreationCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"00:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"00:00\"); \n window.button(\"addStoreBtn\").click();\n window.optionPane().requireInformationMessage().requireMessage(\"Store Creation Failed\\n\");\n }", "@Test\n public void testNoOpenDaysCheck() {\n window.textBox(\"storeNameTFld\").setText(\"store1\");\n window.textBox(\"numOfSeatsTFld\").setText(\"155\");\n window.textBox(\"storeAddressTFld\").setText(\"address\");\n window.textBox(\"storeCityTFld\").setText(\"city\");\n window.textBox(\"storePhoneTFld\").setText(\"123123\");\n window.textBox(\"emailTFld\").setText(\"hlias.karasyahoo.gr\");\n window.textBox(\"fromOpenHoursTFld\").setText(\"18:00\");\n window.textBox(\"toOpenHoursTFld\").setText(\"23:00\");\n window.button(\"addStoreBtn\").click();\n window.optionPane().okButton().click();\n window.label(\"openDaysFalseLbl\").requireVisible();\n }", "public void showToast(Boolean usernameTaken) {\n String action = \"\";\n if (usernameTaken) {\n action = \"Username is already taken\";\n } else {\n action = \"An error has occurred. Please try again.\";\n }\n Toast t = Toast.makeText(this, action,\n Toast.LENGTH_SHORT);\n t.setGravity(Gravity.TOP, Gravity.CENTER, 150);\n t.show();\n }", "public static void verifyToolTipDisplayedText(WebDriver driver, int cardNumber) {\n String expectedText = \"Displays message on TV connected to this equipment.\";\n String text = FindElement.waitForElementXpath(driver, \"(//spectrum-icon[@aria-label = 'Show Nickname Tooltip']//ancestor::div//div[@class = 'kite-tooltip-wrapper'])[\" + cardNumber + \"]\", \"TV device tooltip\").getText();\n if (text.equals(expectedText)){\n ExtentManager.stepReport(Status.PASS, \"Expected text of '\"+expectedText+\"' matches actual text of '\"+text+\"'\");\n } else{\n ExtentManager.stepReport(Status.FAIL, \"Expected text of '\"+expectedText+\"' does not match actual text of '\"+text+\"'\");\n }\n }", "@Test\n public void testRedButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"ilias\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"redButton4\").requireVisible();\n }", "public boolean verifyRetirementTile(String tileName) {\n log(\"Verifying the \" + tileName + \" is displayed...\");\n return (isElementDisplayed(retirementTile, tileName));\n }", "public void assertMsgCheck() {\r\n\t\tassertEquals(successMsg.getText().substring(0,36), \"Success: You have modified products!\");\r\n\t\tSystem.out.println(\"Asserted that the msg has been displayed: \"+ successMsg.getText().substring(0,36));\r\n\t}", "private static boolean showTrinket(Trinket t, OutputType outputType) {\n\t\tswitch (outputType) {\n\t\t\tcase POSSESS:\n\t\t\t\tif (t.count > 0) { return true; }\n\t\t\t\tbreak;\n\t\t\tcase POSSESS_WITH_DUPLICATES:\n\t\t\t\tif (t.count >= MINIMUM_DUPLICATE_NUMBER) { return true; }\n\t\t\t\tbreak;\n\t\t\tcase DO_NOT_POSSESS:\n\t\t\t\tif (t.count == 0) { return true; }\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\treturn false;\n\t}", "private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }", "private void showLoserDialog() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"You Have Been Defeated \" + player1.getName() + \",Computer Wins!!\", new ButtonType(\"Close\", ButtonBar.ButtonData.NO), new ButtonType(\"Try Again?\", ButtonBar.ButtonData.YES));\n alert.setGraphic(new ImageView(new Image(this.getClass().getResourceAsStream(\"/Images/bronze.png\"))));\n alert.setHeaderText(null);\n alert.setTitle(\"Computer Wins\");\n alert.showAndWait();\n if (alert.getResult().getButtonData() == ButtonBar.ButtonData.YES) {\n onReset();\n }\n }", "@Test\n public void signinvalidation() {\n\t SalesApplicationPage spg = new SalesApplicationPage(driver);\n if(spg.getPopUpSize()>0)\n\t {\n\t\t spg.getPopUp().click();\n\t }\n System.out.println(driver.getTitle());\n Assert.assertTrue(driver.getTitle().equals(\"Home | Salesforrrce\"));\n }", "public void notifyTurn(String name) {\n if(name.equals(username) && !(client.getPlayer() instanceof ComputerPlayer)) {\n JOptionPane.showMessageDialog(frame, \"It's your turn!\");\n } else if(!(client.getPlayer() instanceof ComputerPlayer)) {\n JOptionPane.showMessageDialog(frame, \"It's \" + name + \"'s turn!\");\n }\n inventoryArea.append(\"\\n\\nIt's \" + name + \"'s turn\");\n }", "public Boolean verifyIfTheMainTextExist() {\n\t\tSystem.out.println(\"Starting to verify if the main text label exist correctly.\");\n\t\twaitSleepingTheTread(3000);\n\t\treturn verifyIfisDisplayedX2(body_label_your_shopping_cart);\n\t}", "public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "@Test\n public void testGreenButton4Vissible() {\n window.textBox(\"usernameText\").setText(\"karona\"); \n window.textBox(\"StoresNameTxt\").setText(\"store1\"); \n window.textBox(\"openHoursTxt\").setText(\"18:00-20:00\");\n window.textBox(\"CustomerNameTxt\").setText(\"\");\n window.textBox(\"NumberOfSeatsTxt\").enterText(\"1\"); \n window.comboBox(\"DateAvailable\").selectItem(1);\n window.comboBox(\"HoursAvailable\").selectItem(1);\n window.button(\"makeReservation\").click();\n window.optionPane().okButton().click();\n window.button(\"greenButton4\").requireVisible();\n }", "private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}", "private void cs5() {\n\t\t\tif(ctx.widgets.widget(519).component(1).text().contains(\"You get some\")){\n\t\t\t\tctx.widgets.widget(519).component(2).click();\n\t\t\t}\n\t\t\tif(ctx.inventory.selectedItem().valid()){\n\t\t\t\tMethod.interactInventory(2511, \"Use\", \"Logs\");\n\t\t\t}else Method.interactInventory(590, \"Use\", \"Tinder box\");\n\t\t\t\n\t\t}", "public boolean display(Display disp)\r\n\t{\r\n\t\tEditTradeoff ar = new EditTradeoff(disp, this, false);\r\n\t\tString msg = \"Edited tradeoff \" + this.getName() + \" \" + ar.getCanceled();\r\n\t\tDataLog d = DataLog.getHandle();\r\n\t\td.writeData(msg);\r\n\t\treturn ar.getCanceled(); //can I do this?\r\n\t\t\r\n\t}", "@Test\n public void testifyName() throws InterruptedException {\n onView(withId(R.id.name)).check(matches(isDisplayed()));\n }", "private void showWon( String mark ) {\n\tJOptionPane.showMessageDialog( null, mark + \" won!\" );\t\n }", "public void showDuplicatePlayerNameMessage() {\n Optional<SelectGameScreen> maybeSelectGameScreen = getSelectGameScreenIfActive();\n if (maybeSelectGameScreen.isPresent()) {\n maybeSelectGameScreen.get().showDuplicatePlayerNameMessage();\n } else {\n showError(\"Player name already exists.\");\n }\n }", "@Test(suiteName = \"NowPlaying\", testName = \"DMCA Restricted\", description = \"Now Playing - Live - DMCA Restricted - Show name & PDT\", enabled = true, groups = {\n\t\t\t\"MOBANDEVER-224\" })\n\tpublic void verifydmcaRestrictedShownamePDT() {\n\t\tCommon common = new Common(driver);\n\t\tCommon.log(\"verify dmca Restricted Showname & PDT MOBANDEVER-224\");\n\t\ttry {\n\t\t\tgetPageFactory().getEvehome().clickonMusic();\n\t\t\tcommon.scrollUntilTextExists(\"Dance/Electronic\");\n\t\t\tgetPageFactory().getEvehome().clickMucisSubRock();\n\t\t\tgetPageFactory().getEvehome().popChannel1();\n\t\t\tgetPageFactory().getCategory().nplShowName();\n\t\t\tgetPageFactory().getCategory().nplPDT();\n\t\t\tgetPageFactory().getEvehome().clickminimize();\n\t\t} catch (AndriodException ex) {\n\t\t\tCommon.errorlog(\"Exception occured in : \" + this.getClass().getSimpleName() + \" : \" + ex.getMessage());\n\t\t\tAssert.fail(\"Exception occured in : \" + this.getClass().getSimpleName() + \" : \" + ex.getMessage());\n\t\t}\n\t}", "@Then(\"^I should see Price reminder$\")\n\tpublic void i_should_see_Price_reminder() throws Throwable {\n\t\tString msg=BrowserFactory.driver.findElement(By.xpath(\".//*[@class='cart-item-help-mod contextError']/div[@class='cart-item-error-text']\")).getText();\n\t\tassertTrue(\"price reminder is not displayed\", msg.equals(\"Please fill out the Vehicle Price field.\"));\n\t\t\n\t\t\n\t}", "public void verifyDashboardTitle() {\n app.azzert().titleEquals(\"PECOS\");\n }", "private void popupModify2te() {\n\t\tRolle rolle = (Rolle) this;\n\t\taufzugschacht.mainFrameShowOptionsFrame(rolle.getRolle2teUmschlingung(), true);\n\t}", "@Override\n public void showLorenzoActionPopUp(String string) {\n\n }", "private void displayDuplicateInputError(){\n\t\tAlert alert = new Alert(Alert.AlertType.INFORMATION);\n\t\talert.setTitle(\"Duplicate Letter Dialog\");\n\t\talert.setHeaderText(\"Pay Attention!\");\n\t\talert.setContentText(\"You have already tried that letter, please try again\");\n\t\talert.showAndWait();\n\t}", "static void cuddle(String petType) {\n\thappinessLevel = happinessLevel+2;\n\tJOptionPane.showMessageDialog(null,\"You cuddled your \"+petType+\"\\nPet Happiness Level:\"+happinessLevel);\n}", "@Test\n public void hasToner(){\n assertEquals(5000, printer.getTonerLevel());\n }", "@Then(\"The user should see the success message\")\n\tpublic void the_user_should_see_the_success_message() {\n\t\tAddTariffPlanPage details = new AddTariffPlanPage();\n\t\tString actual = details.getSucessmsg().getText();\n\t\tAssert.assertEquals(\"Congratulation you add Tariff Plan\", actual);\n\n\t}", "public void verifyTheTileIsPresent(String tileName) {\n\t for(WebElement tile:tileNames) {\n\t\t if(tile.getText().equalsIgnoreCase(tileName)) {\n\t\t\t Assert.assertTrue(true);\n\t\t }\n\t }\n\t \t\tAssert.assertFalse(true);\n }", "private void checkPage() {\n Assert.assertTrue(\"Electric cars button not displayed.\",electricCars.isDisplayed());\n }", "public void popup(String a){\n pop.setLayout(null);\n ControlAction c = new ControlAction();\n pop.setBounds(420, 320, 460, 160);\n pop.setBorder(new LineBorder(Color.BLACK, 2));\n //condition for showing popup message\n if(a.startsWith(\"1\")){\n mas.setText(\"Selamat Anda Telah Melakukan Peminjaman\");\n nolocker.setText(\"No. Locker Anda Yaitu 17\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(true);\n }else if(a.equals(WARN1)){\n mas.setText(\"Maaf Anda Telah Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.equals(WARN2)){\n mas.setText(\"Maaf Anda Belum Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.contains(\"BUKA\")){\n mas.setText(\"Anda Ingin Mengakhiri Peminjaman ?\");\n yes.setVisible(true);\n String key = a.substring(4);\n yes.setActionCommand(\"YES\"+key);\n no.setVisible(true);\n nolocker.setVisible(false);\n }else if(a.equals(NO)){\n mas.setText(\"Loker Anda Telah Terbuka\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n } \n mas.setFont(new Font(\"arial\", Font.BOLD, 20));\n mas.setOpaque(false);\n mas.setForeground(Color.BLACK);\n Dimension si1 = mas.getPreferredSize();\n mas.setBounds(10, 40, si1.width, si1.height);\n nolocker.setFont(new Font(\"arial\", Font.BOLD, 20));\n nolocker.setOpaque(false);\n nolocker.setForeground(Color.BLACK);\n Dimension si3 = nolocker.getPreferredSize();\n nolocker.setBounds(10, 70, si3.width, si3.height);\n //close button handling\n close.addActionListener(c);\n close.setActionCommand(EXIT);\n Dimension si2 = close.getPreferredSize();\n close.setBounds(420, 10, si2.width, si2.height);\n close.setBorder(BorderFactory.createEmptyBorder());\n close.setContentAreaFilled(false);\n //yes button handling\n yes.addActionListener(c);\n Dimension si4 = yes.getPreferredSize();\n yes.setBounds(100, 100, si4.width, si4.height);\n yes.setBorder(BorderFactory.createEmptyBorder());\n yes.setContentAreaFilled(false);\n //no button handling\n no.addActionListener(c);\n no.setActionCommand(NO);\n Dimension si5 = no.getPreferredSize();\n no.setBounds(250, 100, si5.width, si5.height);\n no.setBorder(BorderFactory.createEmptyBorder());\n no.setContentAreaFilled(false);\n //add to card3 top most layer\n card3.add(pop,6,0);\n }", "public boolean ComputerNameText()\n\t{\n\t\t//Click on Add a new Computer on Home Page to Navigate to Creation of Computer Page\n\t\tAddComputer.click();\n\t\t\n\t\t//Wait Time after each transaction\n\t\tWebDriverWait wait = new WebDriverWait(driver,2);\n\t\t\n\t\tboolean Computernametext = CompNameText.isEnabled(); \n\t\treturn Computernametext;\n\t}", "public void assertMyTraderPage() {\r\n\t\tprint(\"Welcome to My Trader text on My Trader page\");\r\n\t\twaitForElementPresentInDom(3);\r\n\t\tlocator = Locator.MyTrader.MyTrader_Message.value;\r\n\t\tAssert.assertTrue(isTextPresent(locator, \"Welcome to MyTrader\"), \"Element Locator :\" + locator + \" Not found\");\r\n\t}", "public String checkSystem() {\r\n\t\tif(currentSheeps > totalSheeps || currentSheeps < 0) {\r\n\t\t\treturn \"inconsistent!\";\r\n\t\t}\r\n\t\telse if(currentSheeps < totalSheeps) {\r\n\t\t\treturn \"incomplete!\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn \"complete!\";\r\n\t\t}\r\n\t}", "public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }", "private void pleaseCheck() {\n\t\tPrimeFaces.current().executeScript(\"new PNotify({\\r\\n\" + \n\t\t\t\t\"\t\t\ttitle: 'Check this ',\\r\\n\" + \n\t\t\t\t\"\t\t\ttext: 'Please Make sure that the Passwords are the same and not empty!',\\r\\n\" + \n\t\t\t\t\"\t\t\tleft:\\\"2%\\\"\\r\\n\" + \n\t\t\t\t\"\t\t});\");\n\t\t\n\t}", "private boolean verifyStudyName() {\n\t\t\n\t\tif (subjectNameTF.getText().isEmpty()) { \n\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Subject Name\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\tsubjectNameTF.setBackground(Color.LIGHT_GRAY);\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean isDisplayed_txt_Pick_Up_Text(){\r\n\t\tif(txt_Pick_Up_Text.isDisplayed()) { return true; } else { return false;} \r\n\t}", "public void checkWin(){\n boolean result = false;\n if(game.getTurn() > 3){\n Player currentPlayer = game.getPlayerTurn();\n int playernumber = currentPlayer.getPlayericon();\n result = game.winChecker(game.getBored(),playernumber);\n if(result == true) {\n setWinMsgBox(currentPlayer.getPlayerName() + \" Is victorious :)\",\"WIN\");\n }else if(game.getTurn() == 8 && result == false){\n setWinMsgBox(\"Too bad it is a draw, No one out smarted the other -_-\",\"DRAW\");\n }else{}\n }else{\n result = false;\n }\n }", "@Test\r\n\tpublic void testShowStandings1() {\n\t\tassertTrue(\"Error displaying standings\", false);\r\n\t}", "@Test (priority = 7)\n\tpublic void testThanksPeople() throws Throwable {\n\t\ttimerPage.clickPeople();\n\t\ttimerPage.clickThanksPeopleBtn();\t\n\t\ttimerPage.clickExitThanksPeople();\n\t\ttimerPage.verifyCount();\n\t\ttimerPage.verifySupplement();\n\t}", "boolean hasHangmogName();", "protected boolean showCantUndo ()\n {\n return showConfirm(\"m.cant_undo\", \"t.cant_undo\");\n }", "@Test(enabled = true)\n public void verifyFlightTab() {\n driver.findElement(By.xpath(\"//ul[@id='uitk-tabs-button-container']//span[contains(.,'Flights')]\")).click();\n String expectedTabText = \"Roundtrip\";\n String actualTabText = driver.findElement(By.xpath(\"//span[contains(text(),'Roundtrip')]\")).getText();\n Assert.assertEquals(actualTabText, expectedTabText, \"Test Failed. Default TAB is not Roundtrip.\");\n\n }", "public void verifyPopupShouldNotDisplayAfterPublishingTheAd() throws Exception {\n\t\t\tCreateStockTradusProPage createStockObj= new CreateStockTradusProPage(driver);\n\t\t\tAllStockTradusPROPage AllStockPage= new AllStockTradusPROPage(driver);\n\t\t\tOverviewTradusPROPage overviewObj=new OverviewTradusPROPage(driver);\n\t\t\twaitTill(2000);\n\t\t\tLoginTradusPROPage loginPage = new LoginTradusPROPage(driver);\n\t\t\tloginPage.setAccountEmailAndPassword(\"[email protected]\", \"sunfra123\");\n\t\t\tjsClick(driver, loginPage.LoginButton);\n\t\t\twaitTill(5000);\n\t\t\tif(!verifyElementPresent(overviewObj.PostYourAdButtonOnWelcomePopup))\n\t\t\t{\n\t\t\t\tdriver.navigate().refresh();\n\t\t\t}\n\t\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.TradusWelcomeBox);\n\t\t\tjsClick(driver, overviewObj.PostYourAdButtonOnWelcomePopup);\n\t\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.createStockPageVerificationElement);\n\t\t\tcreateStockObj.uploadImageButtonInPostingForm.sendKeys(System.getProperty(\"user.dir\") + \"\\\\Tire.jpeg\");\n\t\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.successToastInPostingForm);\n\t\t\twaitTill(1000);\n\t\t\tscrollToElement(driver, createStockObj.priceSectionInPostingForm);\n\t\t\twaitTill(3000);\n\t\t\tclick(createStockObj.priceTypeFieldPostingForm);\n\t\t\twaitTill(1000);\n\t\t\tactionClick(driver, createStockObj.priceTypeasFixed);\n\t\t\twaitTill(1000);\n\t\t\tif (!getText(createStockObj.currencyFieldAutofillValue).equalsIgnoreCase(\"EUR\")) {\n\t\t\t\tclick(createStockObj.currencyTypeFieldPostingForm);\n\t\t\t\twaitTill(1000);\n\t\t\t\tactionClick(driver, createStockObj.currencyTypeasEuro);\n\t\t\t}\n\t\t\tsendKeys(createStockObj.netPriceFieldPostingForm, \"10000\");\n\t\t\twaitTill(1000);\n\t\t\tscrollToElement(driver, createStockObj.yourVehicleSectionInPostingForm);\n\t\t\twaitTill(2000);\n\t\t\tclick(createStockObj.vehicleTypeFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleTypeasSpareParts);\n\t\t\twaitTill(3000);\n\t\t\tclick(createStockObj.vehicleCategoryFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleCategoryasTires);\n\t\t\twaitTill(2000);\n\t\t\tclick(createStockObj.vehicleMakeFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleMakeasVolvo);\n\t\t\twaitTill(3000);\n\t\t\tclick(createStockObj.vehicleModelFieldPostingForm);\n\t\t\tactionClick(driver, createStockObj.vehicleModelas8700);\n\t\t\twaitTill(4000);\n\t\t\tsendKeys(createStockObj.descriptionAreainPostingForm, \"Ad\");\n\t\t\tjsClick(driver, createStockObj.postYourAdButton);\n\t\t\texplicitWaitFortheElementTobeVisible(driver, AllStockPage.MyStockText);\n\t\t\tjsClick(driver, overviewObj.overviewOptioninSiderBar);\n\t\t\texplicitWaitFortheElementTobeVisible(driver,overviewObj.overviewPageVerificationElement);\n\t\t\twaitTill(5000);\n\t\t\tAssert.assertFalse(verifyElementPresent(overviewObj.TradusWelcomeBox),\n\t\t\t\t\t\"Welcome popup displaying even after clicking cross icon\");\n\t\t}", "private boolean checkDesignCMT() {\n // check null\n if (jTFChungMinhThu.getText().trim().isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nhập CMT và nhấn Enter để tìm kiếm\\nHoặc nhấn nút \\\"SHOW INFO\\\" để chọn nhân khẩu.\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return false;\n }\n // check dinh dang so chung minh thu\n try {\n long d = Long.parseLong(jTFChungMinhThu.getText());\n } catch (Exception e) {\n JOptionPane.showMessageDialog(rootPane, \"Số CMT không thể chứa các ký tự chữ cái\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return false;\n }\n // kiem tra do dai cmt\n if (jTFChungMinhThu.getText().length() != 9 && jTFChungMinhThu.getText().length() != 12) {\n JOptionPane.showMessageDialog(rootPane, \"Số CMT có 9 hoặc 12 số\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return false;\n }\n return true;\n }", "public void ValidateDuplicateMessage() {\n\t\tAssert.assertEquals(NEVERMIND_OPTION.getText(), \"Nevermind\", \"Wrong page!!!\");\n\n\t}", "public void check(int ticketNumber, String nameOnID) {\n\t\tString registeredName = allowedPassengers.get(ticketNumber);\n\t\tif (registeredName == null) {\n\t\t\tSystem.out.println(\"ERROR: \"+ticketNumber+\" not recognized\");\n\t\t} else if (registeredName.equals(nameOnID)) {\n\t\t\tSystem.out.println(nameOnID+\" okay\");\n\t\t} else {\n\t\t\tSystem.out.println(\"ERROR: \"+nameOnID+\" denied\");\n\t\t}\n\t}", "public void win()\r\n {\r\n Alert inputConfirmation = new Alert(Alert.AlertType.INFORMATION);\r\n inputConfirmation.setTitle(\"Congratulations!\");\r\n inputConfirmation.setHeaderText(\"Congratulations! You Win!\");\r\n inputConfirmation.setGraphic(null);\r\n\r\n String contentText = (\"You took \" + scoreBoard.timeText.getText() + \" seconds\");\r\n inputConfirmation.setContentText(contentText);\r\n scoreBoard.gameTimer.gameTime.cancel();\r\n\r\n inputConfirmation.showAndWait();\r\n }", "public boolean checkTip(String tip) {\n\t\tboolean head = false;\n\t\tboolean retVal = false;\n\t\tdouble random = Math.random();\n\t\tif (random < 0.5) {\n\t\t\thead = true;\n\t\t\tSystem.out.println(\"************\");\n\t\t\tSystem.out.println(\"****Head****\");\n\t\t\tSystem.out.println(\"************\");\n\t\t\tSystem.out.println();\n\t\t} else {\n\t\t\tSystem.out.println(\"************\");\n\t\t\tSystem.out.println(\"****Tail****\");\n\t\t\tSystem.out.println(\"************\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\tif (head == true && tip.equals(\"head\")) {\n\n\t\t\tSystem.out.println(\"$$$$$$$$$$$$\");\n\t\t\tSystem.out.println(\"$ You win! $\");\n\t\t\tSystem.out.println(\"$$$$$$$$$$$$\");\n\t\t\tSystem.out.println();\n\t\t\tretVal = true;\n\t\t}\n\n\t\telse if (head == false && tip.equals(\"tail\")) {\n\n\t\t\tSystem.out.println(\"$$$$$$$$$$$$\");\n\t\t\tSystem.out.println(\"$ You win! $\");\n\t\t\tSystem.out.println(\"$$$$$$$$$$$$\");\n\t\t\tSystem.out.println();\n\t\t\tretVal = true;\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"%%%%%%%%%%%%%\");\n\t\t\tSystem.out.println(\"% You lose. %\");\n\t\t\tSystem.out.println(\"%%%%%%%%%%%%%\");\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\treturn retVal;\n\t}", "public void checkUsername(ActionEvent actionEvent) {\n String temp= ClientAPI.getForgetPassword(username.getText());\n if(temp==null){\n userExist.setVisible(true);\n } else{\n userExist.setVisible(false);\n question.setText(temp.substring(0, temp.indexOf(\"|\")));\n help=temp.substring(temp.indexOf(\"|\")+1, temp.lastIndexOf(\"|\"));\n password.setText(temp.substring(temp.lastIndexOf(\"|\")+1));\n question.setVisible(true);\n }\n }", "@Test\n\tpublic void testInfobox() {\t\n\t\tTextArea info = (TextArea) s.lookup(\"#T6_infobox_TextArea\");\n\t\tTextArea compInfo = (TextArea) s.lookup(\"#T6_composite_infobox_TextArea\");\n\t\tTextArea parmInfo = (TextArea) s.lookup(\"#T6_parm_infobox_TextArea\");\n\t\tTextArea pasrmInfo = (TextArea) s.lookup(\"#T6_pasrm_infobox_TextArea\");\n\t\tTextArea ldInfo = (TextArea) s.lookup(\"#T6_ld_infobox_TextArea\");\n\t\tclickOn(\"#Main_compatibility_Button\");\n\t\tmoveTo(\"#T6_more_info_Text\");\n\t\tif (!info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(1);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_composite_Text\");\n\t\tif (info.isVisible()||!compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(2);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_parm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||!parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(3);\n\t\t\tassertTrue(false);\n\t\t\t\n\t\t}\n\t\tmoveTo(\"#T6_pasrm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||!pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_ld_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||!ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_generate_Button\");\n\t\t// if any infobox is shown fail test case\n\t\tassertFalse(info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible());\n\t\t\n\t}", "public boolean isPopupShowing() {\n/* 476 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void addVehicleToolTip() {\r\n\t\tString expectedTooltip = \"Add Vehicle\";\r\n\t\tWebElement editTooltip = driver.findElement(By.cssSelector(\".ant-btn.ant-btn-primary\"));\r\n\t\tActions actions = new Actions(driver);\r\n\t\tactions.moveToElement(editTooltip).perform();\r\n\t\tWebElement toolTipElement = driver.findElement(By.cssSelector(\"div[role='tooltip']\"));\r\n\t\tneedToWait(2);\r\n\t\tString actualTooltip = toolTipElement.getText();\r\n\t\tSystem.out.println(\"Actual Title of Tool Tip +++++++++\" + actualTooltip);\r\n\t\tAssert.assertEquals(actualTooltip, expectedTooltip);\r\n\t}", "@Test\n @Then(\"Search made and name verified\")\n public void s15_CheckFoundItem(){\n searchByNameHP.submit();\n foundNameHP = driver.findElementByClassName(\"n-product-title\").findElement(By.tagName(\"H1\")).getText();\n if (checkFirstHP.equals(foundNameHP)) {\n System.out.println(\"Step15 PASSED, names are equal\");\n }\n else\n {\n System.out.println(\"Step15 FAILED, names are not equal\");\n }\n }", "@Then(\"^User clicks Tolls button on Live panel$\")\n\tpublic void user_clicks_Tolls_button_on_Live_panel() throws Throwable {\n\t\tCommonStepDefinitions.homePage.clickLiveTollsButton();\n\t}", "public void VerifyShowOnlyInkAndTonerLink(String text){\r\n\t\tString Text = getValue(text);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+Text);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Show Only Ink And Toner Link - '\"+Text+\"' should be displayed\");\r\n\t\ttry{\r\n\t\t\tif(getText(locator_split(\"lnkShowOnlyInkAndToner\")).equalsIgnoreCase(Text)){\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Show Only Ink And Toner Link - '\"+Text+\"' is displayed\");\r\n\t\t\t\tSystem.out.println(\"Verified the Text -\"+Text);\r\n\t\t\t}else {\r\n\t\t\t\tReporter.log(\"FAIL_MESSAGE:- Show Only Ink And Toner Link - '\"+Text+\"' is not displayed\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Show Only Ink And Toner Link - '\"+Text+\"' is not displayed\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkShowOnlyInkAndToner\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void alertName(){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error al ingresar nombre\");\n alert.setHeaderText(\"Se encontró un error en el nombre,\"\n + \"tiene mas de 12 caracteres o está repetido. Debe ingresar el nombre nuevamente.\");\n alert.showAndWait();\n }", "public static void checkResult() {\n\t\tint sum = PlayerBean.PLAYERONE - PlayerBean.PLAYERTWO;\n\n\t\tif (sum == 1 || sum == -2) {\n\t\t\tScoreBean.addWin();\n\t\t\tresult = \"player one wins\";\n\t\t} else {\n\t\t\tScoreBean.addLoss();\n\t\t\tresult = \"player two wins\";\n\t\t}\n\t}", "private void showInformationAboutWrongFile(Shell shell) {\n\t\tMessageDialog\n \t.openInformation(\n \t\t shell, \n \t\t \"Info\",\n \t\t \"Please select a *.\" + TestCasePersister.FILE_EXTENSION + \" file\");\n\t}", "@Test(priority = 1)\r\n\tpublic void verify_ProdDetailCaption() throws InterruptedException {\r\n\t\t//System.out.println(\"Caption\" + DetailPage.getProduct_Caption());\r\n\t\tAssert.assertEquals(DetailPage.getProduct_Caption(), DetailPage.strName, \"This is not Product Detail page\");\r\n\t}", "@Test\r\n\tpublic void testShowStandings2() {\n\t\tassertTrue(\"Error displaying standings\", false);\r\n\t}", "public void tpoCheck() {\r\n if (tpo.getText().isEmpty()) {\r\n tpo.selectAll();\r\n tpo.requestFocus();\r\n } else System.out.println(\"------------------\\nTPO: \"+tpo.getText());\r\n }", "private void gameOverDialog() {\n Toast makeText;\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.game_over), Toast.LENGTH_LONG);\n makeText.show();\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.final_score) + score, Toast.LENGTH_LONG);\n makeText.show();\n }", "private void popUpWin(String whoWon) {\r\n\t\tJOptionPane.showMessageDialog(gameView, \"Congrats \" + whoWon + \" WINS! Go to the Options Pane to start a New Game!\", \"WIN!\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t}", "@Override\n public boolean test() {\n return parentName.equals(themesComboBox.target().getSelectedItem().toString());\n }", "private void checkWin() {\n // Check if a dialog is already displayed\n if (!this.gameOverDisplayed) {\n // Check left paddle\n if (Objects.equals(this.scoreL.currentScore, this.winCount) && (this.scoreL.currentScore != 0)) {\n if (twoUser) {\n gameOver(GeneralFunctions.TWO_1_WIN);\n } else {\n gameOver(GeneralFunctions.ONE_LOSE);\n }\n // Right paddle\n } else if (Objects.equals(this.scoreR.currentScore, this.winCount) && (this.scoreR.currentScore != 0)) {\n if (twoUser) {\n gameOver(GeneralFunctions.TWO_2_WIN);\n } else {\n gameOver(GeneralFunctions.ONE_WIN);\n }\n }\n }\n }", "@Then(\"^o aplicativo carrega a tela Faturas$\")\n\tpublic void verificaSeTelaFaturas() throws Throwable {\n\t\tAssert.assertTrue(menu.verificaTextoNaTela(\"Faturas\"));\n\n\t}", "@Test(priority = 2)\r\n\tpublic void verify_ProductName() throws InterruptedException {\r\n\t\tAssert.assertEquals(DetailPage.getProduct_name(), DetailPage.strName, \"Product name is different selected one\");\r\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 }", "boolean hasTargetPlayerName();", "private void checkGame() {\n if (game.checkWin()) {\n rollButton.setDisable(true);\n undoButton.setDisable(true);\n this.dialogFlag = true;\n if (game.isDraw()) {\n showDrawDialog();\n return;\n }\n if (game.getWinner().getName().equals(\"Computer\")) {\n showLoserDialog();\n return;\n }\n showWinnerDialog(player1);\n }\n }", "@Then(\"^User should see a predefined alert box$\")\r\n\tpublic void user_should_see_a_predefined_alert_box() throws Throwable {\n\t\tSystem.out.println(\"Alert message pop-ups on the screen\");\r\n\t}", "public boolean isFailed() {\n return candyName.equals(\"\") && pokemonHP == 10 && pokemonCP == 10;\r\n }", "static String getNameFromUser( Frame owner )\n\t{\n\t\treturn JOptionPane.showInputDialog( owner,\n\t\t\t\t \"You are a high scorer! Please enter your name.\",\n\t\t\t\t \"Congratulations!\",\n\t\t\t\t JOptionPane.QUESTION_MESSAGE );\n\t}", "public void checkAlert() {\n try {\n wait(1000);\n driver.switchTo().alert();\n driver.findElement(By.xpath(\"//*[@title='No, thanks']\")).click();\n } catch (Exception e) {\n // Do nothing\n }\n }", "public void verify_WelcomePopupandclick(){\n\t\tif(isDisplayedWithoutException(welcomePopup)){\n\t\t\tclick(welcomePopup);\n\t\t\tSystem.out.println(\"the Welcome popup is visible on the page and clicked done\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"The Welcome popup is not present on the page\");\n\t\t}\n\t}", "private String showWeaponAccusations() {\n\t\tButtonGroup weaponButtons = new ButtonGroup();\n\t\tList<JRadioButton> btns = setupWeaponButtons();\n\t \n\t\t// set up the dialog box\n\t JPanel weaponPanel = new JPanel(new GridLayout(0, 1));\n\t\tJLabel lbl = new JLabel(\"Select the weapon that you suspect.\");\n\t\tweaponPanel.add(lbl);\n\t // add the buttons to the panel\n\t for(JRadioButton b : btns){\n\t \tweaponButtons.add(b);\n\t \tweaponPanel.add(b);\n\t }\n\t \n\t\t// display the dialog box\n\t JOptionPane.showMessageDialog(frame, weaponPanel);\n\t // decide which button was selected\n\t for(JRadioButton b : btns){\n\t \tif(b.isSelected()){\n\t \t\treturn b.getText();\n\t \t}\n\t }\n\t return null;\n\t}", "public static int CheckHunger(String name, int hunger){\n\t\tSystem.out.println(\"On a Scale of 1-10,Alien Leader \"+name+\"`s hunger rate is \"+hunger); // It will check the pet`s hunger level.\n\t\t\n\t\tif( hunger<4){\n\t\t\tSystem.out.println(\"Calm\"); \n\t\t}else if(hunger<6){\n\t\t\tSystem.out.println(\"Tetchy\");\n\t\t}else if(hunger<=10){\n\t\t\tSystem.out.println(name+\" is looking dangerous...GET OUTA THERE NOW!!!\");\n\t\t}\n\t\treturn hunger;\n\t}", "public void showWarningPopup() {\n\t\ttv_popupTitle.setText(\"Power Warning\");\n\t\ttv_popupInfo.setText(R.string.warning);\n\t\t\n\t\t// The code below assumes that the root container has an id called 'main'\n\t\t popup.showAtLocation(findViewById(R.id.anchor), Gravity.CENTER, 0, 0);\n\t}", "protected Boolean hasToolTipText(Object value) {\n\t\treturn false;\n }", "@Override\n public void onSureClick(String value) {\n tenPayPopWindow.dismiss();\n checkPresenterImpl.addTenPayPayment(cashierResult.bill.unpaid, value);\n }", "public void verifyVINCERegistrationPageInNewWindow() {\n\t\tAssert.assertTrue(notAUserText.isDisplayed());\n\t\t_normalWait(3000);\n\t}", "public void CheckScore(){\n \tif(killed > highScore) {\n \t\tname = JOptionPane.showInputDialog(\"You set a HighScore!\\n What is your Name?\");\n \t\thighScore = killed;\n \t}\n }" ]
[ "0.6206638", "0.6029092", "0.59953636", "0.5822256", "0.5716721", "0.5713859", "0.5686331", "0.56670344", "0.5667033", "0.5664601", "0.56512314", "0.56436944", "0.56100374", "0.5584827", "0.5572161", "0.55629134", "0.55415004", "0.55398715", "0.5512817", "0.5510826", "0.549911", "0.5493453", "0.5466201", "0.5456175", "0.5447533", "0.5421315", "0.54177386", "0.54121476", "0.54117215", "0.5409796", "0.5381628", "0.53807807", "0.5380395", "0.5377317", "0.53766954", "0.53594667", "0.5349282", "0.5344849", "0.53230053", "0.5318842", "0.5317701", "0.5316252", "0.53097457", "0.52896005", "0.5288277", "0.5284445", "0.5282749", "0.5282115", "0.5282025", "0.527862", "0.52759105", "0.52722394", "0.5269104", "0.52637947", "0.52609485", "0.5259678", "0.5257082", "0.5256409", "0.5251959", "0.5247917", "0.52410454", "0.5235993", "0.5234245", "0.52313936", "0.52260244", "0.5225719", "0.522514", "0.521917", "0.52163565", "0.5212416", "0.5212204", "0.5208769", "0.5200492", "0.51987714", "0.51928055", "0.5192514", "0.5192032", "0.51920027", "0.51912266", "0.5190074", "0.5189876", "0.5187911", "0.5186118", "0.51849043", "0.51841426", "0.51826036", "0.51815695", "0.518024", "0.51778424", "0.51775527", "0.5176071", "0.51754314", "0.5170673", "0.51677483", "0.5165729", "0.5159891", "0.5158782", "0.5154149", "0.5153833", "0.515377" ]
0.820629
0
La subred => 198.160.2
public void getNetworkIPs(String subRed) { //ArrayList<String> disponibles = new ArrayList<String>(); //InetAddress servidor = null; for (int i = 1; i < 255; i++) { final int j = i; new Thread(() -> { try { String ser = subRed + "." + j; //System.out.println("Entre en el servidor: " + ser); InetAddress servidor = InetAddress.getByName(subRed + "." + j); if(servidor.isReachable(2000)) { //System.out.println("PPPPADDDDAAAAAAAAAAA"); if(this.isReachable(ser, 9020)) { System.out.println("Disponible: " + ser); this.conectados.add(servidor); } } else System.out.println("No disponible " + ser); } catch (IOException e) { System.out.println("Error buscando ips"); } }).start(); } //return disponibles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String LightConversion() {\n\n int exponent = ((raw[19] & 0xC0) >> 6) + ((raw[20] & 0x03) << 2);\n int mantissa = ((raw[20] & 0xFC) >> 2) + ((raw[21] & 0x03) << 6);\n double value = (Math.pow(2.0, exponent)) * mantissa * 0.025;\n\n return Double.valueOf(threeDForm.format(value)) + \"\";\n\n }", "private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "int getLatE6();", "int getLatE6();", "private String lightConversion() {\n int reading = ((record[16] & 255) + ((record[21] & 0xC0) << 2));\n //return reading + \"\";\n return formatter.format(((reading * reading) * (-.0009)) + (2.099 * reading));\n }", "private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "static double convert(double in) {\n return (in * 0.254);\n }", "float mo56157b();", "public static double convertkgTOlb (double kg) {\n\tdouble lb=kg*2.2046;\n\treturn lb;\n}", "float getMonatl_kosten();", "public String CaToHa(double ca) {\n // ha = ca/10000\n double ha = ca/10000;\n return check_after_decimal_point(ha);\n }", "public static void main(String[] args) {\n\t\t double value=12.19823;\r\n\t System.out.printf(\"%.2f\", value);\r\n\r\n\t}", "public String AToHa(double a) {\n // ha = a/100\n double ha = a/100;\n return check_after_decimal_point(ha);\n }", "public static void main(String[] args) {\n\t\tdouble d = 302.200;\n\t\tdouble c = 302.700;\n\t\tSystem.out.println(Math.round(d));//retorna 302\n\t\tSystem.out.println(Math.round(c));//retorna 303\n\t}", "public String HaToCa(double ha) {\n // ca = 10000*ha\n double ca = ha*10000;\n return check_after_decimal_point(ca);\n }", "double getLuong();", "private static double[] extractRainfallInformation(String[] line){\n int index = line.length - 2;\n double[] out = new double[ index ]; // Without the first two elements(City & Country)\n\n for(int i = 0; i < index ;i++){\n out[i] = Double.parseDouble(line[i + 2]);// \"3.55\" => 3.55\n }\n\n return out;\n }", "int getLngE6();", "int getLngE6();", "private double convertCoord(double val) {\n return val - 50;\n }", "public static double exercise04(){\n double belarusSquare = 207.595;\n double ukraineSquare = 603.628;\n\n double relation = belarusSquare / ukraineSquare;\n System.out.println(\"Sootnowenie plowadi dvuh stran \\t \" + relation);\n return belarusSquare;\n }", "public double berechneVolumen() {\n\t\treturn laenge * breite * hoehe;\n\t}", "double redPercentage();", "static String double2String (Double a){\n String s = \"\"+a;\n String[] arr = s.split(\"\\\\.\");\n if (arr[1].length()==1) s+=\"0\";\n return s;\n }", "float mo106363e();", "public String HaToA(double ha) {\n // a = 100*ha\n double a = ha*100;\n return check_after_decimal_point(a);\n }", "public String AToCa(double a) {\n // ca = 100*a\n double ca = a*100;\n return check_after_decimal_point(ca);\n }", "public String DaToHa(double da) {\n // ha = da/1000\n double ha = da/1000;\n return check_after_decimal_point(ha);\n }", "public static String priceVNFormat(float price) {\r\n\t\tString prices = String.valueOf(new Float(price).intValue());\r\n\t\tString temp = \"\";\r\n\t\tint i;\r\n\t\tfor (i = prices.length(); i >= 3; i -= 3) {\r\n\t\t\ttemp = prices.substring(i - 3, i) + \".\" + temp;\r\n\r\n\t\t}\r\n\t\tif (i != 0) {\r\n\t\t\ttemp = prices.substring(0, i) + \".\" + temp;\r\n\r\n\t\t}\r\n\t\treturn temp.substring(0, temp.length() - 1);\r\n\t}", "float getLte();", "double getLabel();", "public String CaToDaa(double ca) {\n // daa = ca/1000\n double daa = ca/1000;\n return check_after_decimal_point(daa);\n }", "String getPrecio();", "String getCADENA_TRAMA();", "public static void main(String[] args) {\n\t\tdouble S = 6;\t\t// 6 영국 신발 사이즈 -> 255mm\n\t\tdouble P = 0.75;\t// 75% 히트할 확률\n\t\tdouble L = 200;\t\t// 200파운드 -> 1,787원 / 1파운드\n\t\tdouble T = 0;\t\t// 0년(올해 유행) 1년 전 유행\n\t\tdouble A = 1;\t\t// 음주량 0잔 -> 8.83cm 1잔 -> 4.42cm\n\t\tdouble Y = 2;\t\t// 착용년도\n\t\tdouble ups1 = P * L * (Y + 9);\n\t\tdouble downs = (T + 1) * (A + 1) * (Y + 10) * (L + 20);\n\t\tdouble ups2 = 12 + 3 * S / 8.0;\n\t\tdouble high = ups1 / downs * ups2; // 밝혀낸 식\n\t\tSystem.out.printf(\"적당한 하이힐 높이는 %1$.2fcm입니다.\", high);\n\t}", "private double formatDoubleWithTwoDeci(double value) {\r\n \treturn Math.floor(value*1e2)/1e2;\r\n }", "public abstract float mo70722e(String str);", "public String DaaToHa(double daa) {\n // ha = daa/10\n double ha = daa/10;\n return check_after_decimal_point(ha);\n }", "public static void main(String[] args) {\n\n\n\n double numberOfgallons = 5;\n\n double gallonstolitter = numberOfgallons*3.785;\n\n\n String result = numberOfgallons + \" gallons equal to: \"+gallonstolitter+ \" liters\";\n System.out.println(result);\n\n //=============================================\n /* 2. write a java program that converts litters to gallons\n 1 gallon = 3.785 liters\n 1 litter = 1/3.785\n*/\n\n /*double litter1 = 1/3.785;\n double l =10;\n double gallon1 = l*litter1;\n\n System.out.println(gallon1);\n //======================================================\n*/\n /*\n 3. manually calculate the following code fragements:\n\t\t\t\t1. int a = 200;\n\t\t\t\t\tint b = -a++ + - --a * a-- % 2\n\t\t\t\t\tb = ?\n\n */\n\n\n double numberOfLiters = 100;\n\n double LiterstoGallons = numberOfLiters/3.785;\n\n String result2 = numberOfLiters+\" liters equal to \"+LiterstoGallons+\" galons\";\n\n System.out.println(result2);\n\n\n\n\n\n\n\n\n\n\n\n\n\n int a = 200;\n int b = -a++ + - --a * a-- % 2;\n // b = -200 + - 200* 200%2 = -200;\n\n int x = 300;\n int y = 400;\n int z = x+y-x*y+x/y;\n // z= 300+400-300*400+300/400=700-120000+0(cunki int kimi qebul edir)= -119300;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "@Override\n float luas() {\n float luas = (float) (Math.PI * r * r);\n System.out.println(\"Luas lingkaran adalah \" + luas);\n return luas;\n }", "public void toonFiguur() {\n System.out.format(\"kleur: %-5s oppervlakte: %5.3f inhoud: %5.3f\\n\",\n kleur, oppervlakte(), inhoud());\n }", "private String convertFahrenheitToCelsius(double f) {\n double c = (f - 32.0) * (5.0 / 9.0);\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(c);\n }", "private void stage1_2() {\n\n\t\tString s = \"E $:( 3E0 , 3E0 ) ( $:( 3E0 , 3E0 ) \";\n\n//\t s = SymbolicString.makeConcolicString(s);\n\t\tStringReader sr = new StringReader(s);\n\t\tSystem.out.println(s);\n\t\tFormula formula = new Formula(s);\n\t\tMap<String, Decimal> actual = formula.getVariableValues();\n\t}", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }", "public String MaToHa(double ma) {\n // ha = ma/100000\n double ha = ma/100000;\n return check_after_decimal_point(ha);\n }", "public String CaToA(double ca) {\n // a = ca/100\n double a = ca/100;\n return check_after_decimal_point(a);\n }", "private String tempConversion() {\n int reading = ((record[17] & 255) + ((record[21] & 0x30) << 4));\n\n double voltage = (reading * 3.3) / 1024;\n return formatter.format((voltage - .6) / .01);\n\n }", "double kalkuliereZeit();", "int mo9702b(String str, String str2, float f);", "public void extractPolyPyInfo() { \n\t\tfinal int bpsEnd = this.intron.lastIndexOf( getBPS() ) + getBPS().length(); \n\t\tthis.BPSThreeSSDistance = (this.intron.length() - ( bpsEnd ));\n\t\tthis.polyPyGCContent = getGCFraction( intron.substring( bpsEnd ) ); \n\t}", "Double getAnchorageSlip();", "public String getBSCA_PrintPrice2();", "public double getAKA104() {\n return AKA104;\n }", "private String m9962a(double d) {\n d += m9971g();\n if (d < 0.0d) {\n d = 0.0d;\n } else if (d >= this.f8228c) {\n d = this.f8228c;\n }\n d = new BigDecimal(Math.max(d, 2.0d)).setScale(1, 2.0E-323d);\n return String.format(Locale.getDefault(), \"%.1fx\", new Object[]{Double.valueOf(d.doubleValue())});\n }", "public int storrelse();", "double defendre();", "@Test\n public void testPulkovo19953DegreeGKCM126E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM126E());\n }", "private String altitudeConversion() {\n int reading = ((record[9] & 255) << 8) + (record[8] & 255);\n if (reading == 60000) {\n return \" \";\n } else {\n return reading + \"\";\n }\n }", "public String KaToHa(double ka) {\n // ha = 10*ka\n double ha = 10*ka;\n return check_after_decimal_point(ha);\n }", "@Test\n public void testPulkovo19953DegreeGKCM147E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM147E());\n }", "public static void main (String[] args)\r\n {\n Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795),\r\n\t\t\t 481742, 4770800, 700, (byte)29, true);\r\n //System.out.println(\"lon=\"+utm.getLon()+\" lat=\"+utm.getLat());\r\n //System.out.println(utm.getGrados(utm.getLon())+\"¦ \"+utm.getMinutos(utm.getLon())+\"' \"+utm.getSegundos(utm.getLon())+\"\\\" \"+utm.getGrados(utm.getLat())+\"¦ \"+utm.getMinutos(utm.getLat())+\"' \"+utm.getSegundos(utm.getLat())+\"\\\"\");\r\n @SuppressWarnings(\"unused\")\r\n Coordenada res;\r\n res = utm.CambioDeDatum(new Datum(6378137D, 6356752.31424518));\r\n\r\n //System.out.println(\"Coordenadas en Datum destino: X=\"+res.X+\" Y=\"+res.Y);\r\n //System.out.println(\"lon=\"+res.getLon()+\" lat=\"+res.getLat());\r\n //System.out.println(res.getGrados(res.getLon())+\"¦ \"+res.getMinutos(res.getLon())+\"' \"+res.getSegundos(res.getLon())+\"\\\" \"+res.getGrados(res.getLat())+\"¦ \"+res.getMinutos(res.getLat())+\"' \"+res.getSegundos(res.getLat())+\"\\\"\");\r\n\t\t\t\t \r\n }", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "public abstract double getPreis();", "@Test\n public void testPulkovo19953DegreeGKCM165E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM165E());\n }", "private static int cprNLFunction(double lat) {\n\t\tif (lat < 0)\n\t\t\tlat = -lat; // Table is symmetric about the equator\n\t\tif (lat < 10.47047130)\n\t\t\treturn 59;\n\t\tif (lat < 14.82817437)\n\t\t\treturn 58;\n\t\tif (lat < 18.18626357)\n\t\t\treturn 57;\n\t\tif (lat < 21.02939493)\n\t\t\treturn 56;\n\t\tif (lat < 23.54504487)\n\t\t\treturn 55;\n\t\tif (lat < 25.82924707)\n\t\t\treturn 54;\n\t\tif (lat < 27.93898710)\n\t\t\treturn 53;\n\t\tif (lat < 29.91135686)\n\t\t\treturn 52;\n\t\tif (lat < 31.77209708)\n\t\t\treturn 51;\n\t\tif (lat < 33.53993436)\n\t\t\treturn 50;\n\t\tif (lat < 35.22899598)\n\t\t\treturn 49;\n\t\tif (lat < 36.85025108)\n\t\t\treturn 48;\n\t\tif (lat < 38.41241892)\n\t\t\treturn 47;\n\t\tif (lat < 39.92256684)\n\t\t\treturn 46;\n\t\tif (lat < 41.38651832)\n\t\t\treturn 45;\n\t\tif (lat < 42.80914012)\n\t\t\treturn 44;\n\t\tif (lat < 44.19454951)\n\t\t\treturn 43;\n\t\tif (lat < 45.54626723)\n\t\t\treturn 42;\n\t\tif (lat < 46.86733252)\n\t\t\treturn 41;\n\t\tif (lat < 48.16039128)\n\t\t\treturn 40;\n\t\tif (lat < 49.42776439)\n\t\t\treturn 39;\n\t\tif (lat < 50.67150166)\n\t\t\treturn 38;\n\t\tif (lat < 51.89342469)\n\t\t\treturn 37;\n\t\tif (lat < 53.09516153)\n\t\t\treturn 36;\n\t\tif (lat < 54.27817472)\n\t\t\treturn 35;\n\t\tif (lat < 55.44378444)\n\t\t\treturn 34;\n\t\tif (lat < 56.59318756)\n\t\t\treturn 33;\n\t\tif (lat < 57.72747354)\n\t\t\treturn 32;\n\t\tif (lat < 58.84763776)\n\t\t\treturn 31;\n\t\tif (lat < 59.95459277)\n\t\t\treturn 30;\n\t\tif (lat < 61.04917774)\n\t\t\treturn 29;\n\t\tif (lat < 62.13216659)\n\t\t\treturn 28;\n\t\tif (lat < 63.20427479)\n\t\t\treturn 27;\n\t\tif (lat < 64.26616523)\n\t\t\treturn 26;\n\t\tif (lat < 65.31845310)\n\t\t\treturn 25;\n\t\tif (lat < 66.36171008)\n\t\t\treturn 24;\n\t\tif (lat < 67.39646774)\n\t\t\treturn 23;\n\t\tif (lat < 68.42322022)\n\t\t\treturn 22;\n\t\tif (lat < 69.44242631)\n\t\t\treturn 21;\n\t\tif (lat < 70.45451075)\n\t\t\treturn 20;\n\t\tif (lat < 71.45986473)\n\t\t\treturn 19;\n\t\tif (lat < 72.45884545)\n\t\t\treturn 18;\n\t\tif (lat < 73.45177442)\n\t\t\treturn 17;\n\t\tif (lat < 74.43893416)\n\t\t\treturn 16;\n\t\tif (lat < 75.42056257)\n\t\t\treturn 15;\n\t\tif (lat < 76.39684391)\n\t\t\treturn 14;\n\t\tif (lat < 77.36789461)\n\t\t\treturn 13;\n\t\tif (lat < 78.33374083)\n\t\t\treturn 12;\n\t\tif (lat < 79.29428225)\n\t\t\treturn 11;\n\t\tif (lat < 80.24923213)\n\t\t\treturn 10;\n\t\tif (lat < 81.19801349)\n\t\t\treturn 9;\n\t\tif (lat < 82.13956981)\n\t\t\treturn 8;\n\t\tif (lat < 83.07199445)\n\t\t\treturn 7;\n\t\tif (lat < 83.99173563)\n\t\t\treturn 6;\n\t\tif (lat < 84.89166191)\n\t\t\treturn 5;\n\t\tif (lat < 85.75541621)\n\t\t\treturn 4;\n\t\tif (lat < 86.53536998)\n\t\t\treturn 3;\n\t\tif (lat < 87.00000000)\n\t\t\treturn 2;\n\t\telse\n\t\t\treturn 1;\n\t}", "public static String extract_measurement(byte[] bytes) {\n\t\tint weight = Integer.parseInt(String.format(\"%x\", bytes[2]));\n\t\tint frac = Integer.parseInt(String.format(\"%x\", bytes[3]));\n\t\t\n\t\tif (weightsArrayPosition > 8 || weightsArrayPosition == -1)\n\t\t\tweightsArrayPosition = 0;\n\t\telse\n\t\t\tweightsArrayPosition++;\n\t\t\n\t\tweights[weightsArrayPosition] = weight;\n\t\tfracs[weightsArrayPosition] = frac;\n\t\t\n\t\t/* weight data is added to weights array, and \n\t\t * we return current value for screen updating etc. */\n\t\treturn String.format(\"%x\", bytes[2])+\",\"+String.format(\"%x\", bytes[3]);\n\t}", "private String fixBattery(double voltage) {\n String volt = \"\" + voltage;\n String[] volts = volt.split(\"\\\\.\");\n String first = volts[0];\n String last = volts[1];\n if (volts[0].length() < 2) {\n first = \"0\" + volts[0];\n }\n if (volts[1].length() < 2) {\n last = volts[1] + \"0\";\n }\n return first + \".\" + last;\n }", "private static Double grabPriceText(String s_input, String s_label) {\n Pattern dollabillsyall = Pattern.compile(\"[0-9]{1,4}[.][0-9]{0,4}\");\n Matcher matcher = dollabillsyall.matcher(s_input);\n\n if (matcher.find())\n System.out.println(\"=== \" + s_label + \": \" + matcher.group(0));\n else\n System.out.println(\"=== \" + s_label + \": \" + \"no match\");\n\n return Double.parseDouble(matcher.group(0));\n }", "public String getLBR_SubSerie();", "public double dlugoscOkregu() {\n\t\treturn 2 * Math.PI * promien;\n\t}", "private String AccelYConversion() {\n int reading = (((raw[17] & 0xFC) >> 2) + ((raw[18] & 0x0F) << 6));\n\n\n int y[] = fixBinaryString(Integer.toBinaryString(reading));\n return myUnsignedToSigned(y) + \"\";\n\n //System.out.println(\"Y \" + unsignedToSigned(reading ,10) * 0.1533);\n //return (reading * 0.1533) + \"\";\n }", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "public double getAKA068() {\n return AKA068;\n }", "float getKeliling() {\n\t\treturn super.sisi * 3;\n\t}", "public static void convert(double number)\n {\n\nlong bits = Double.doubleToLongBits(number);\n\nlong sign = bits >>> 63;\nlong exponent = ((bits >>> 52) ^ (sign << 11)) - 1023;\nlong fraction = bits << 12; // bits are \"reversed\" but that's not a problem\n\nlong a = 1L;\nlong b = 1L;\n\nfor (int i = 63; i >= 12; i--) {\n a = a * 2 + ((fraction >>> i) & 1);\n b *= 2;\n}\n\nif (exponent > 0)\n a *= 1 << exponent;\nelse\n b *= 1 << -exponent;\n\nif (sign == 1)\n a *= -1;\n\n// Here you have to simplify the fraction\n\nSystem.out.println(\"Resultat : \"+simplifier(a,b));\n }", "public static void main(String[] args) {\n\t\tdouble x = 19923.3288;\n\t\tNumberFormat nf = NumberFormat.getNumberInstance();\n\t\tnf.setMinimumFractionDigits(2);\n\t\tnf.setMaximumFractionDigits(2);\n\t\tSystem.out.println(nf.format(x));\n\t\t\n\t\tdouble grade = .92;\n\t\tNumberFormat pf = NumberFormat.getPercentInstance();\n\t\tSystem.out.println(pf.format(grade));\n\n\t}", "public Float getSecondGprsSucc() {\r\n return secondGprsSucc;\r\n }", "@Test\n public void testPulkovo19953DegreeGKCM162E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM162E());\n }", "public String HaToDaa(double ha) {\n // daa = 10*ha\n double daa = ha*10;\n return check_after_decimal_point(daa);\n }", "public String get_fraction_part();", "public String CaToDa(double ca) {\n // da = ca/10\n double da = ca/10;\n return check_after_decimal_point(da);\n }", "@Test\n public void testPulkovo19953DegreeGKCM141E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM141E());\n }", "@Test\n public void testPulkovo19953DegreeGKCM108E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM108E());\n }", "public void subDif() {\n this.polySubSolve();\n int dd2 = 0, dd3 = 0;\n String d1 = \"\", d2 = \"\", d3 = \"\";\n this.das = 3 * this.asub;\n this.dbs = 2 * this.bsub;\n this.dcs = this.csub;\n if (this.subdegree == 3) {\n d1 = \"dy/dx = \" + this.das + \"x^2 \";\n if (this.bsub == 0) {\n dd2 = 1;\n } else {\n if (this.dbs > 0) {\n d2 = \"+ \" + this.dbs + \"x \";\n } else {\n d2 = \"- \" + -this.dbs + \"x \";\n }\n }\n if (this.csub == 0) {\n dd3 = 1;\n } else {\n if (this.dcs > 0) {\n d3 = \"+ \" + this.dcs;\n } else {\n d3 = \"- \" + -this.dcs;\n }\n }\n if (dd2 == 0 && dd3 == 0) {\n this.subdiff = d1 + d2 + d3;\n }\n if (dd2 == 0 && dd3 == 1) {\n this.subdiff = d1 + d2;\n }\n if (dd2 == 1 && dd3 == 1) {\n this.subdiff = d1;\n }\n if (dd2 == 1 && dd3 == 0) {\n this.subdiff = d1 + d3;\n }\n\n }\n if (this.subdegree == 2) {\n d1 = \"dy/dx = \" + this.dbs + \"x \";\n if (this.dcs == 0) {\n this.subdiff = d1;\n } else {\n if (this.dcs > 0) {\n this.subdiff = d1 + \"+\" + this.dcs;\n } else {\n this.subdiff = d1 + \"-\" + -this.dcs;\n }\n }\n }\n if (this.subdegree == 1) {\n this.subdiff = \"dy/dx = \" + this.csub;\n }\n if (this.subdegree == 0) {\n this.subdiff = \"dy/dx = \" + 0;\n }\n\n }", "private static double FToC(double f) {\n\t\treturn (f-32)*5/9;\n\t}", "public static double convertFahtoKel(double temp){\r\n return ((temp - 32) * 5) / 9 + 273;\r\n }", "public float getThirdSSN(){\n\t\t return ThirdSSN;\n\t\t }", "@Test\n public void testPulkovo19953DegreeGKCM123E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM123E());\n }", "public abstract double mo9740e();", "@Test\n public void testPulkovo19953DegreeGKCM24E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM24E());\n }", "@Test\n public void testPulkovo19953DegreeGKCM132E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM132E());\n }", "@Test\n public void testPulkovo19953DegreeGKCM72E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM72E());\n }", "public static void main(String[] args){\n Double a = -1d;\n String as = a.toString();\n String result = \"\";\n if (as.replace(\"-\", \"\").length()>=14){\n result = as.substring(0,14);\n }else {\n while (as.replace(\"-\", \"\").length()<14){\n as+='0';\n }\n result= as;\n }\n System.out.print(result);\n }", "private double getBolsa() {\n\t\treturn bolsa;\n\t}", "@Test\n public void testPulkovo19953DegreeGKCM120E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM120E());\n }", "static public String toStringLat(double val, boolean includeDecimal)\r\n {\r\n _workingHolder.setData(val, true);\r\n\r\n java.text.DecimalFormat secFormat = null;\r\n if (includeDecimal)\r\n secFormat = df;\r\n else\r\n secFormat = df2;\r\n\r\n String res = \" \" + df2.format(_workingHolder.deg) + DEGREE_SYMBOL +\r\n df2.format(_workingHolder.min) + \"\\'\" +\r\n secFormat.format(_workingHolder.sec) + \"\\\"\";\r\n\r\n // just check we're not at origin\r\n if(val != 0)\r\n \t res += _workingHolder.hem + \"\";\r\n\r\n // hack: when the degs symbol appears in the third character of the string, when\r\n // we write to Metafile the following (4th) character is swapped for a y.\r\n\r\n // when the degs symbol appears as the 4th character, however, the string\r\n // writes perfectly to metafile\r\n\r\n // consequently we insert a space at the front of the string to artificially\r\n // put the deg symbol in the 4th character.\r\n\r\n return res;\r\n }", "private String externalConversion() {\n int reading = ((record[19] & 255) + ((record[21] & 0x03) << 8));\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = externalConversion.eval(variables);\n\n String x = result + \"\";\n\n if(this.counter){\n x = Integer.parseInt(x) * (60/rate) + \"\";\n }\n\n return x;\n }", "@Test\n public void testPulkovo19953DegreeGKCM174E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM174E());\n }", "C1803l mo7382b(C2778au auVar);", "static public double m2yard(double m){\n\t\treturn m*1.0936;\n\t}", "@Test\n public void testPulkovo19953DegreeGKCM159E() {\n testToWGS84AndBack(PROJ.getPulkovo19953DegreeGKCM159E());\n }" ]
[ "0.59948665", "0.58404243", "0.5602957", "0.5602957", "0.55565476", "0.55413014", "0.54533917", "0.5432967", "0.53995496", "0.53968066", "0.53850996", "0.53387696", "0.5294919", "0.5294124", "0.52636105", "0.52565014", "0.5225282", "0.51905465", "0.51905465", "0.5181381", "0.5144757", "0.51296407", "0.51179725", "0.5109166", "0.5101532", "0.50987583", "0.50935376", "0.5079717", "0.50733066", "0.5056265", "0.5042409", "0.5019428", "0.5015287", "0.49966392", "0.49954233", "0.4992798", "0.4983989", "0.49814168", "0.49738365", "0.49686843", "0.49676648", "0.4963892", "0.49636996", "0.49469933", "0.49432752", "0.4942438", "0.49390453", "0.49366447", "0.49345118", "0.4927649", "0.49174803", "0.49119887", "0.49097168", "0.49005827", "0.48998237", "0.48962075", "0.4895838", "0.48955044", "0.48938724", "0.4892484", "0.48874006", "0.4886384", "0.4886285", "0.4885905", "0.48853153", "0.4881644", "0.48797977", "0.4873332", "0.48716456", "0.48686108", "0.48667178", "0.48659688", "0.48658055", "0.48579627", "0.48573208", "0.48568133", "0.48560822", "0.48541754", "0.48537666", "0.48524353", "0.48513874", "0.48512152", "0.4851204", "0.48497063", "0.48452258", "0.48433927", "0.48428577", "0.48420322", "0.48403543", "0.48396203", "0.48389673", "0.48371744", "0.48363996", "0.48358965", "0.4833673", "0.48299468", "0.48282808", "0.48269975", "0.48265263", "0.4826335", "0.48238334" ]
0.0
-1
Any Open port on other machine openPort = 22 ssh, 80 or 443 webserver, 25 mailserver etc.
private boolean isReachable(String addr, int openPort) { try { ClienteUDP cliente = new ClienteUDP(addr); cliente.enviar("hola,df,df"); String rpta = cliente.recibir(); if(rpta.equals("hola")) return true; }catch(Exception e) { return false; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openport(String ipaddress, int portnumber) {\n\n try {\n this.socket = new Socket(ipaddress, portnumber);\n this.InStream = this.socket.getInputStream();\n this.OutStream = this.socket.getOutputStream();\n } catch (Exception var4) {\n ;\n }\n\n }", "private native int open0(String host,\n int msid, int port) throws IOException;", "int localPort();", "public static int openSocket() throws IOException {\n serverSocket = new ServerSocket(0, 10, InetAddress.getLocalHost());\n return serverSocket.getLocalPort();\n }", "private int determineFreePort() throws IOException\n {\n final Socket sock = new Socket();\n sock.bind(null);\n final int port = sock.getLocalPort();\n sock.close();\n return port;\n }", "public int getPort();", "public int getPort();", "public int getPort();", "private static int getHerokuAssignedPort() {\n return 4567;\n }", "default int getPort()\n {\n return getInt(\"port\", 80);\n }", "public static int findRandomOpenPort() {\n while (true) {\n try (final ServerSocket socket = new ServerSocket(1 + (int)(Math.random() * 65535))) {\n return socket.getLocalPort();\n }\n catch (final IOException ignored) {\n }\n }\n }", "default int getPort() {\n return getServer().getPort();\n }", "private static SocketChannel openConnection(int port)\n {\n SocketChannel socketChannel;\n InetSocketAddress address = new InetSocketAddress(Utils.ADDRESS, port);\n try\n {\n socketChannel = SocketChannel.open();\n socketChannel.connect(address);\n\n //aspetto che termini la connessione\n while (!socketChannel.finishConnect())\n {continue;}\n }\n catch(IOException ioe)\n {\n System.err.println(\"Error in opening socket\");\n ioe.printStackTrace();\n return null;\n }\n\n return socketChannel;\n }", "void open(String nameNport) {\n\tString[] token=nameNport.split(\":\");\n\tString host=token[0];\n\tint port=Integer.parseInt(token[1]);\n\tint proceedFlag=1;\n\tIterator<Socket> iterator=Connection.connections.iterator();\n\tif(host.equalsIgnoreCase(\"localhost\") || host.equals(\"127.0.0.1\"))\n\t\thost=simpella.infoSocket.getLocalAddress().getHostAddress();\n\tif((host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getHostAddress())||host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getCanonicalHostName()))&&(simpella.serverPortNo==port || simpella.downloadPortNo==port)){\n\t\tproceedFlag=0;\n\t\tSystem.out.println(\"Client: Self Connect not allowed\");\n\t\t}\n\twhile(iterator.hasNext() && proceedFlag==1)\n\t{\n\t\tSocket sock=(Socket)iterator.next();\n\t\t\n\t\tif((host.equalsIgnoreCase(sock.getInetAddress().getHostAddress()) || host.equalsIgnoreCase(sock.getInetAddress().getCanonicalHostName())) && port==sock.getPort()){\n\t\t\tproceedFlag=0; \n\t\t\tSystem.out.println(\"Client: Duplicate connection to same IP/port not allowed\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}\n\tif(proceedFlag==1)\n\t\t{\n\t\n\t\n\tbyte type=04;\n\tMessage msg=new Message(type);\n\ttry {\n\t\tConnection.outgoingConnPackRecv[noOfConn]=0;\n\t\tConnection.outgoingConnPackSent[noOfConn]=0;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]=0;\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]=0;\n\t\t\n\t\tclientSideSocket[noOfConn]=new Socket(host,port);\n\t\tSystem.out.println(\"Client:TCP Connection established...Begin handshake\");\n\t\toutToServer[noOfConn]=new ObjectOutputStream(clientSideSocket[noOfConn].getOutputStream());\n\t\tinFromServer[noOfConn]=new ObjectInputStream(clientSideSocket[noOfConn].getInputStream());\n\t\tString strToServer=\"SIMPELLA CONNECT/0.6\\r\\n\";\n\t\tbyte[] byteArray= strToServer.getBytes(\"UTF-16LE\");\n\t\tmsg.setPayload(byteArray);\n \t\n\t\tSystem.out.println(\"Client:\"+new String(byteArray));\n\t\t//outToServer.writeUTF(\"SIMPELLA CONNECT/0.6\\r\\n\");\n\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray.length+23;\n\t\toutToServer[noOfConn].writeObject((Object)msg);\n\t\tConnection.outgoingConnPackRecv[noOfConn]++;\n\t\t\n\t\tMessage msg1=(Message) inFromServer[noOfConn].readObject();\n\t\tbyte[] fromServer=msg1.getPayload();\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]+=fromServer.length+23;\n\t\tString strFromServer=new String(fromServer);\n\t\tSystem.out.println(\"Server:\"+strFromServer);\n\t\tif(msg1.getMessage_type()==05)\n\t\t\t{\n\t\t\tstrToServer=\"SIMPELLA/0.6 200 thank you for accepting me\\r\\n\";\n\t\t\tbyte[] byteArray1= strToServer.getBytes(\"UTF-16LE\");\n\t\t\tMessage m=new Message((byte)05);\n\t\t\tm.setPayload(byteArray1);\n\t\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray1.length+23;\n\t\t\toutToServer[noOfConn].writeObject((Object)m);\n\t\t\t\n\t\t\tConnection.connections.add(clientSideSocket[client.noOfConn]);\n\t\t\tConnection.outgoingConnection[client.noOfConn]=clientSideSocket[client.noOfConn];\n\t\t\tConnection.clientOutStream[client.noOfConn]=outToServer[client.noOfConn];\n\t\t\tnew clientSocketListen(clientSideSocket[noOfConn],outToServer[noOfConn],inFromServer[noOfConn]);\n\t\t\tupdate();\n\t\t\tnoOfConn++;\n\t\t\t//System.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"<open>:Cannot open connection to \"+host+\" at this time\");\n\t\t\t\tclientSideSocket[noOfConn].close();\n\t\t\t\tinFromServer[noOfConn].close();\n\t\t\t\toutToServer[noOfConn].close();\n//\t\t\t\tSystem.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\t\n\t\t\n\t} catch (UnknownHostException e) {\n\t\tSystem.out.println(\"Unknown Host: Destination host unreachable\");\n\t\t//e.printStackTrace();\n\t} catch (Exception e) {\n\t\tSystem.out.println(\"Connection Refused/Destination host unreachable\");\n\t}\n\t\t}\n\t}", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "public boolean openConnection(String address) {\n\t\t\ttry {\n\t\t\t\t// the following line wont work because server already occupies that port\n\t\t\t\t// socket = new DatagramSocket(port);\n\t\t\t\t// now we will bind to any port that is available\n\t\t\t\t// however this way server needs to know the port we are sending from\n\t\t\t\t// UDP protocoll: we dont have to connect to serverto begin with\n\t\t\t\tsocket = new DatagramSocket();\n\t\t\t} catch (SocketException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tip = InetAddress.getByName(address);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t}", "public SshPortForward(Context context) {\n\t\tInputStream privateStream = null;\n\t\tInputStream publicStream = null;\n\n\t\ttry {\n\t\t\tsession = jsch.getSession(USERNAME, HOSTNAME, SSH_PORT);\n\t\t\tsession.setTimeout(30000);\n\t\t\tsession.setPortForwardingL(HTTP_LOCAL_PORT, \"localhost\", HTTP_REMOTE_PORT);\n\t\t\tsession.setConfig(\"StrictHostKeyChecking\",\"no\");\n\n\t\t\t// These resources need to be added.\n\t\t\t// TODO these should be stored in the Android Keystore\n\t\t\tprivateStream = context.getResources().openRawResource(R.raw.id_rsa);\n\t\t\tpublicStream = context.getResources().openRawResource(R.raw.id_rsa_pub);\n\n\t\t\tbyte[] privateKey = IOUtils.toByteArray(privateStream);\n\t\t\tbyte[] publicKey = IOUtils.toByteArray(publicStream);\n\t\t\tjsch.addIdentity(PUBLIC_KEY_IDENTITY, privateKey, publicKey, PASSWORD.getBytes(Charset.defaultCharset()));\n\t\t\tsession.connect();\n\n\t\t}\n\t\tcatch (Exception e) {}\n\t\tfinally {\n\t\t\tIOUtils.closeQuietly(publicStream);\n\t\t\tIOUtils.closeQuietly(privateStream);\n\t\t}\n\t}", "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "Integer listeningPort();", "public boolean openPort() {\n comPort.openPort();\r\n return comPort.isOpen();\r\n }", "void port(int port);", "void port(int port);", "public static int getServerPort() { return Integer.parseInt(tfJoinPort.getText()); }", "public void openServer() {\n try {\n this.serverSocket = new ServerSocket(this.portNumber);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }", "String getPort();", "private void openUri() {\n try {\n Desktop.getDesktop().browse(new URI(\"http://localhost:\" + Constants.DEFAULT_PORT));\n } catch (URISyntaxException | IOException e) {\n logger.error(\"MainService error [openUri]: \" + e);\n }\n }", "int serverPort ();", "public int getPort() { return port; }", "private static void openServerSocket(int port) {\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(port);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Server Error\");\n\t\t}\n\t}", "public void join(String host, int port);", "private void openSocket(String host, int port) throws IOException {\n \t\t// Debug - attempting connection\n \n \t\tclientSocket = new Socket(InetAddress.getByName(host), port);\n \n \t\toutput = new BufferedWriter(new OutputStreamWriter(\n \t\t\t\tclientSocket.getOutputStream()));\n \t\toutput.flush();\n \n \t\tfileOutput = new BufferedOutputStream(clientSocket.getOutputStream());\n \n \t\tinput = new BufferedReader(new InputStreamReader(\n \t\t\t\tclientSocket.getInputStream()));\n \n \t\t// Debug - done\n \t}", "public int getPort()\n {\n\t\treturn url.getPort();\n }", "@Override\n\t\tpublic int getRemotePort() {\n\t\t\treturn 0;\n\t\t}", "protected void bind(InetAddress host, int port) throws IOException {\n localport = port;\n }", "Builder port(int port);", "public static void print_my_host_port( int portno )\nthrows UnknownHostException\n{\n InetAddress ia = java.net.InetAddress.getLocalHost();\n String hostname = ia.getHostName();\n stdout.printf(\"run telnet %s %d\\n\", hostname, portno );\n}", "@Override\n\tpublic int getRemotePort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getRemotePort() {\n\t\treturn 0;\n\t}", "protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }", "public ChatRoomServer(int portNumber){\n this.ClientPort = portNumber;\n }", "public int getLocalPort () {\n return schan.socket().getLocalPort ();\n }", "public void start(int port);", "HostPort hostPort();", "public void newConnection(String hostname, int port) throws Exception;", "int getServicePort();", "public void setPort(int port);", "public void setPort(int port);", "@VisibleForTesting\n protected int findFreePort() {\n ServerSocket server;\n try {\n server = new ServerSocket(0);\n }\n catch (IOException e) {\n throw Throwables.propagate(e);\n }\n\n Integer portNumber = server.getLocalPort();\n try {\n server.close();\n }\n catch (IOException e) {\n throw new RuntimeException(\"Unable to release port \" + portNumber, e);\n }\n return portNumber;\n }", "private void openConnection () {\n String[] labels = {\"Host :\", \"Port :\"};\n String[] initialValues = {\"localhost\", \"1111\"};\n StandardDialogClient openHandler = new StandardDialogClient () {\n\t@Override\n\tpublic void dialogDismissed (StandardDialog d, int code) {\n\t try {\n\t InputDialog inputD = (InputDialog)d;\n\t if (inputD.wasCancelled ()) return;\n\t String[] results = inputD.getResults ();\n\t String host = results[0];\n\t String port = results[1];\n\t TwGateway connection =\n\t (TwGateway)TwGateway.openConnection (host, port);\n\t // The following call will fail if the G2 is secure.\n\t connection.login();\n\t setConnection (connection);\n\t } catch (Exception e) {\n\t new WarningDialog (null, \"Error During Connect\", true, e.toString (), null).setVisible (true);\n\t }\n\t}\n };\t \n\n new ConnectionInputDialog (getCurrentFrame (), \"Open Connection\",\n\t\t\t\t true, labels, initialValues,\n\t\t\t\t (StandardDialogClient) openHandler).setVisible (true);\n }", "java.lang.String getPort();", "java.lang.String getPort();", "public int getViaPort() {\n return this.myPort;\n }", "public int getViaPort() {\n return this.myPort;\n }", "public static int choosePort() {\n try (ServerSocket s = new ServerSocket(0)) {\n return s.getLocalPort();\n } catch (IOException ex) {\n throw new DeltaException(\"Failed to find a port\");\n }\n }", "Port getPort2();", "abstract protected int PortToRunOn();", "int getPort()\n {\n return port;\n }", "default Object port() {\n return metadata().get(\"server-port\");\n }", "@Override\n public int getPort() {\n final ServiceTracker<HttpService, HttpService> serviceTracker = new ServiceTracker<>(context, HttpService.class, null);\n serviceTracker.open();\n final ServiceReference<HttpService> serviceReference = serviceTracker.getServiceReference();\n serviceTracker.close();\n return ofNullable(serviceReference)\n .map(it -> it.getProperty(\"org.osgi.service.http.port\"))\n .map(String::valueOf)\n .map(Integer::parseInt)\n .orElse(80);\n }", "public int getPort()\n {\n return port;\n }", "public int getHttpdPort() {\r\n int toReturn = 0;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"httpd_port\",\r\n SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (isSuccessful(response)) {\r\n toReturn = Tools.parseInt(response.getValue(\"port\"));\r\n } else {\r\n wrapError(\"APIL_0206\", \"couldn't get httpd port number\");\r\n }\r\n\r\n return toReturn;\r\n }", "public interface OnOpenPortListener {\n void onOpenPort(boolean openSuccess);\n}", "public int getServerPort(){\n\t\treturn serverPort; \n\t}", "private void cmdNet() {\n int port = 1777;\n try {\n Log.verbose(\"waiting for connection on port \" + port + \"...\");\n ServerSocket socket = new ServerSocket(port);\n Socket client = socket.accept();\n InetAddress clientAddr = client.getInetAddress();\n Log.verbose(\"connected to \" + clientAddr.getHostName() + \"/\"\n + client.getPort());\n Readline readline = new SocketReadline(client, true, \"net>\");\n fReadlineStack.push(readline);\n } catch (IOException ex) {\n Log.error(\"Can't bind or listen on port \" + port + \".\");\n }\n }", "@Override\n\tpublic int getLocalPort() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getLocalPort() {\n\t\treturn 0;\n\t}", "public static int getServerPort(){\n return thisServer.getPort();\n }", "SR(String host, int targetPort, int ownPort) throws UnknownHostException {\n this.ownPort = ownPort;\n this.host = InetAddress.getByName(host);\n this.targetPort = targetPort;\n }", "@Override\n\t\tpublic int getLocalPort() {\n\t\t\treturn 0;\n\t\t}", "public int getPort(){\n\treturn port;\n }", "public static Socket openSocket(String server, int port2) throws Exception {\n try {\n SocketAddress socketAddress = new InetSocketAddress(InetAddress.getByName(server), port2);\n Socket socket = new Socket();\n socket.connect(socketAddress, 10000);\n return socket;\n } catch (SocketTimeoutException ste) {\n System.err.println(\"Timed out waiting for the socket.\");\n ste.printStackTrace();\n throw ste;\n }\n }", "public int getPort(Env env) {\n return client.getPort();\n }", "int getIntegPort();", "Port createPort();", "Port createPort();", "private void handlePort(String args) {\n // Extract IP address and port number from arguments\n String[] stringSplit = args.split(\",\");\n String hostName = stringSplit[0] + \".\" + stringSplit[1] + \".\" + stringSplit[2] + \".\" + stringSplit[3];\n\n int p = Integer.parseInt(stringSplit[4]) * 256 + Integer.parseInt(stringSplit[5]);\n\n // Initiate data connection to client\n openDataConnectionActive(hostName, p);\n sendMsgToClient(\"200 Command OK\");\n }", "public boolean isOpen(int port)\n {\n try(DatagramSocket connection = new DatagramSocket(port, getInetAddress()))\n {\n addOpenPort(port);\n return true;\n }\n catch(IOException ioe)\n {\n return false;\n }\n }", "static int getHerokuAssignedPort() {\n ProcessBuilder processBuilder = new ProcessBuilder();\n if (processBuilder.environment().get(\"PORT\") != null) {\n return Integer.parseInt(processBuilder.environment().get(\"PORT\"));\n }\n return 7000; //Retorna el puerto por defecto en caso de no estar en Heroku.\n }", "private void open() throws ConnectException, IOException {\n if (!opened) {\n if ((host == null) || \"\".equals(host.trim())) throw new ConnectException(\"You must specify the host name\");\n else if (port <= 0) throw new ConnectException(\"You must specify the port number\");\n socket = new Socket();\n InetSocketAddress addr = new InetSocketAddress(host, port);\n socket.setReceiveBufferSize(Utils.SOCKET_BUFFER_SIZE);\n socket.setSendBufferSize(Utils.SOCKET_BUFFER_SIZE);\n socket.setTcpNoDelay(Utils.SOCKET_TCP_NODELAY);\n socket.setKeepAlive(Utils.SOCKET_KEEPALIVE);\n socket.connect(addr);\n initStreams();\n opened = true;\n if (log.isDebugEnabled()) log.debug(\"getReceiveBufferSize() = \" + socket.getReceiveBufferSize());\n }\n }", "public void startNetwork(int port);", "static Wrapper connect(HostPort hostPort) throws IOException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tSocket socket = new Socket(hostPort.host, hostPort.port);\n\t\ttry {\n\t\t\treturn wrap(socket);\n\t\t} catch (RuntimeException | IOException e) {\n\t\t\tsocket.close();\n\t\t\tthrow e;\n\t\t}\n\t}", "public void setLocalPort(int localPort) {\n this.localPort = localPort;\n }", "public boolean open() {\n boolean success = true;\n SocketAddress serverAddress = new InetSocketAddress(serverHostName, serverHostPort);\n\n try {\n commSocket = new Socket();\n commSocket.connect(serverAddress);\n } catch(UnknownHostException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - the target server is an unknown host: \" + serverHostName + \"!\");\n e.printStackTrace();\n System.exit(1);\n } catch(NoRouteToHostException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - the target server is unreachable: \" + serverHostName + \"!\");\n e.printStackTrace();\n System.exit(1);\n } catch(ConnectException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - the server did not respond at: \" + serverHostName + \".\" + serverHostPort + \"!\");\n if (e.getMessage().equals(\"Connection refused\"))\n success = false;\n else {\n GenericIO.writelnString(e.getMessage() + \"!\");\n e.printStackTrace();\n System.exit(1);\n }\n } catch(SocketTimeoutException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - connection timed out while attempting to reach: \"\n + serverHostName + \".\" + serverHostPort + \"!\");\n success = false;\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - unidentified error while connecting to: \" + serverHostName + \".\" + serverHostPort + \"!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n if(!success) return (success);\n\n try {\n outputStream = new ObjectOutputStream(commSocket.getOutputStream ());\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not open the socket's output stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n try {\n inputStream = new ObjectInputStream(commSocket.getInputStream ());\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread ().getName ()\n + \" - could not open the socket's input stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n return (success);\n }", "int getPort() {\n return port;\n }", "public int getPort() {\n final int port = getPortIfSpecified();\n if (port == UNSPECIFIED_PORT) {\n String prot = getProtocol();\n if (HTTPConstants.PROTOCOL_HTTPS.equalsIgnoreCase(prot)) {\n return HTTPConstants.DEFAULT_HTTPS_PORT;\n }\n if (!HTTPConstants.PROTOCOL_HTTP.equalsIgnoreCase(prot)) {\n log.warn(\"Unexpected protocol: \"+prot);\n // TODO - should this return something else?\n }\n return HTTPConstants.DEFAULT_HTTP_PORT;\n }\n return port;\n }", "public void port (int port) {\n this.port = port;\n }", "public int getPort()\n {\n return port;\n }", "public native int getRemotePort() throws IOException,IllegalArgumentException;" ]
[ "0.628264", "0.62408566", "0.623582", "0.6153494", "0.61505276", "0.6148704", "0.6148704", "0.6148704", "0.61227685", "0.6094173", "0.6091545", "0.608308", "0.60749614", "0.6032988", "0.602406", "0.602406", "0.602406", "0.602406", "0.602406", "0.602406", "0.602406", "0.602406", "0.602406", "0.602406", "0.602406", "0.602406", "0.602406", "0.59886575", "0.59883", "0.5978209", "0.5978209", "0.5975754", "0.59640497", "0.5945612", "0.5945612", "0.5943384", "0.59419435", "0.59334546", "0.59276074", "0.5924422", "0.5912867", "0.59092385", "0.5896303", "0.5877223", "0.58346224", "0.5817788", "0.5813832", "0.58137625", "0.581293", "0.5805478", "0.5805478", "0.5801077", "0.5800377", "0.57693154", "0.57620215", "0.57592475", "0.5753524", "0.57374704", "0.5727346", "0.5727346", "0.5715332", "0.57111627", "0.57038665", "0.57038665", "0.5700243", "0.5700243", "0.5686263", "0.5673526", "0.5667506", "0.5656948", "0.5656107", "0.5653107", "0.56412446", "0.5634364", "0.5630977", "0.563033", "0.56300664", "0.5627892", "0.5627892", "0.5618269", "0.56165457", "0.56101185", "0.5602543", "0.560116", "0.56001306", "0.5599834", "0.5596349", "0.5596349", "0.55883485", "0.5587985", "0.55845237", "0.5572057", "0.5571286", "0.5570665", "0.5570253", "0.55668855", "0.5556504", "0.55505633", "0.55433774", "0.5541688", "0.55395865" ]
0.0
-1
default vertical alignment Creates a celleditor from a FormFieldComponent.
public FormFieldComponentCellEditor(FormFieldComponent editorComponent) { setEditorComponent(editorComponent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Component getTableCellEditorComponent(JTable table,\r\n Object value,\r\n boolean isSelected,\r\n int row,\r\n int column) { \r\n return jtextfield;\r\n }", "public FormFieldComponentCellEditor() {\n this(new StringFormField());\n }", "@Override\n public Component getTableCellEditorComponent(JTable table,\n Object value, boolean isSelected, int row, int column) {\n textField.setBorder(black);\n return super.getTableCellEditorComponent(\n table, value, isSelected, row, column);\n }", "public void setEditorComponent (FormFieldComponent editor) {\n super.setEditorComponent(editor);\n defaultFormat = editor.getFormat();\n defaultHorizontalAlignment = editor.getHorizontalAlignment();\n defaultVerticalAlignment = JLabel.CENTER;\n if (editor instanceof FormTextArea) {\n // using a FormTextArea as an editor in nearly all cases implies the following settings\n setAutoRowHeight(true);\n ((FormTextArea)editor).setLineWrap(true);\n ((FormTextArea)editor).setWrapStyleWord(true);\n }\n }", "protected AccountingLineTableCell createCellForField(AccountingLineViewField field) {\n AccountingLineTableCell cell = new AccountingLineTableCell();\n cell.addRenderableElement(field);\n return cell;\n }", "protected JComponent createEditor() {\n/* 84 */ JComponent editor = super.createEditor();\n/* 85 */ if (editor instanceof JSpinner.DefaultEditor) {\n/* */ \n/* 87 */ JSpinner.DefaultEditor de = (JSpinner.DefaultEditor)editor;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 92 */ de.getTextField().setBorder(new EmptyBorder(0, 0, 0, 0));\n/* */ \n/* 94 */ Dimension prefSize = de.getPreferredSize();\n/* 95 */ int compHeight = prefSize.height;\n/* */ \n/* 97 */ int height = LiquidSpinnerButtonUI.getSkin(1).getVsize() + LiquidSpinnerButtonUI.getSkin(5).getVsize();\n/* 98 */ int diff = height - compHeight;\n/* */ \n/* 100 */ if (diff > 0) {\n/* */ \n/* 102 */ int half = diff / 2;\n/* 103 */ de.getTextField().setBorder(new EmptyBorder(half, 0, diff - half, 0));\n/* */ } \n/* */ } \n/* 106 */ return editor;\n/* */ }", "public Component \t\n getTableCellEditorComponent\n (\n JTable table, \n Object value, \n boolean isSelected, \n int row, \n int column\n )\n {\n pField.setPlugin((BaseEditor) value);\n \n return pField;\n }", "@Override\n\tprotected Control createContents(Composite parent) {\n\t\tfieldEditorParent = new Composite(parent, SWT.NULL);\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 1;\n\t\tlayout.marginHeight = 0;\n\t\tlayout.marginWidth = 0;\n\t\tfieldEditorParent.setLayout(layout);\n\t\tfieldEditorParent.setFont(parent.getFont());\n\n\t\tcreateFieldEditors();\n\n\t\tif (style == GRID) {\n\t\t\tadjustGridLayout();\n\t\t}\n\n\t\tinitialize();\n\t\tcheckState();\n\t\treturn fieldEditorParent;\n\t}", "public PositiveIntegerCellEditor(JTextField textField) {\n super(textField);\n this.textField = textField;\n this.textField.setHorizontalAlignment(JTextField.RIGHT);\n }", "public PropertyEditor getCellEditor() {\n Icon[] iconArray = new Icon[LineStyle.getIconSet().values().size()];\n\t\tint i = 0;\n for ( Icon newIcon : LineStyle.getIconSet().values()) {\n ((VisualPropertyIcon)newIcon).setIconHeight(16);\n ((VisualPropertyIcon)newIcon).setIconWidth(16);\n iconArray[i++] = newIcon;\n\t\t}\n\n\t\tlineCellEditor.setAvailableValues(LineStyle.getIconSet().keySet().toArray());\n lineCellEditor.setAvailableIcons(iconArray);\n\t\treturn lineCellEditor;\n }", "public Component getTableCellRendererComponent(JTable table,\r\n Object value, boolean isSelected, boolean hasFocus, int row,\r\n int column) {\r\n// JPanel pnl = new JPanel(new BorderLayout());\r\n Box box = new Box(BoxLayout.Y_AXIS);\r\n ncsa.gui.RotatedLabel rot = new ncsa.gui.RotatedLabel( (String) value);\r\n box.add(box.createVerticalGlue());\r\n box.add(rot);\r\n box.add(box.createVerticalGlue());\r\n rot.setBackground(Color.white);\r\n// pnl.add(rot, BorderLayout.CENTER);\r\n// return pnl;\r\n return box;\r\n }", "@Override\n public FormFieldComponent getEditorComponent() {\n return (FormFieldComponent)editor;\n }", "public final Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int rowIndex, int vColIndex) {\n ((JTextField) component).setText(value.toString());\n\n // Return the configured component\n return component;\n }", "@Override\n public TreeCellEditor getCellEditor() {\n final TreeCellEditor ed = super.getCellEditor();\n if (ed == null) {\n return null;\n }\n if (wrapper == null) {\n wrapper = new RendererEditorWrapper();\n }\n wrapper.ed = ed;\n return wrapper;\n }", "@Override\n protected void createFieldEditors() {\n /* ------------------------ CLI setup ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsCLIFieldEditors();\n\n /* -------------------------------------------------------------- */\n /* ------------------------ Log action ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsWaitForLogsInSeconds(getFieldEditorParent());\n /* -------------------------------------------------------------- */\n /* ------------------------ ERROR LEVEL ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsLinterErrorLevelComboBox(getFieldEditorParent());\n\n /* -------------------------------------------------------------- */\n /* ------------------------ APPEARANCE -------------------------- */\n /* -------------------------------------------------------------- */\n GridData appearanceLayoutData = new GridData();\n appearanceLayoutData.horizontalAlignment = GridData.FILL;\n appearanceLayoutData.verticalAlignment = GridData.BEGINNING;\n appearanceLayoutData.grabExcessHorizontalSpace = true;\n appearanceLayoutData.grabExcessVerticalSpace = false;\n appearanceLayoutData.verticalSpan = 2;\n appearanceLayoutData.horizontalSpan = 3;\n\n Composite appearanceComposite = new Composite(getFieldEditorParent(), SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.numColumns = 2;\n appearanceComposite.setLayout(layout);\n appearanceComposite.setLayoutData(appearanceLayoutData);\n\n createOtherFieldEditors(appearanceComposite);\n\n createBracketsFieldEditors(appearanceComposite);\n }", "private void designComponents() \n\t{\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tsetBorder(BorderFactory.createLineBorder(Color.gray));\n\t}", "public JComponent getWrappedComponent()\n {\n return field;\n }", "int getVerticalAlignValue();", "public JComponent createFieldsCont() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \",\n \t\t\t\"Tribe Name: \"\n \t};\n \t\n \tcLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldC = new JTextField();\n \tfirstFieldC.setColumns(20);\n \tfields[fieldNum++] = firstFieldC;\n \t\n \tlastFieldC = new JTextField();\n \tlastFieldC.setColumns(20);\n \tfields[fieldNum++] = lastFieldC;\n \t\n \ttribeField = new JTextField();\n \ttribeField.setColumns(31);\n \tfields[fieldNum++] = tribeField;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tcLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tcLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(cLabels[i]);\n \t\tnamePanel.add(fields[i]); \t\t\n \t}\n \t\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }", "TableSectionBuilder vAlign(String vAlign);", "public Component getTableCellEditorComponent(JTable table, final Object value,\r\n boolean isSelected, int rowIndex, int vColIndex) {\r\n // 'value' is value contained in the cell located at (rowIndex, vColIndex)\r\n component.setText(value.toString());\r\n if (isSelected) {\r\n \tcomponent.selectAll();\r\n }\r\n // Configure the component with the specified value\r\n component.addFocusListener(new FocusAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void focusGained(FocusEvent e) {\r\n\t\t\t\t\tJTextField f = (JTextField) e.getComponent();\r\n\t\t\t\t\tf.selectAll();\r\n\t\t\t\t}\r\n\t\t\t});\r\n return component;\r\n }", "public Component getTableCellEditorComponent(JTable table,\n\t Object value, boolean isSelected,\n\t int row, int column) {\n\t JFormattedTextField ftf =\n\t (JFormattedTextField)super.getTableCellEditorComponent(\n\t table, value, isSelected, row, column);\n\t ftf.setValue(value);\n\t return ftf;\n\t }", "public Component getTableCellEditorComponent(JTable table,\r\n\t\t\t\t\t\t\tObject value, boolean isSelected, int row,\r\n\t\t\t\t\t\t\tint column) {\n\t\t\t\t\t\tif (isSelected) {\r\n\r\n\t\t\t\t\t\t\tSystem.out.print(\"123123\");\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t// return JLabel(value.toString());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tObject[] ov = (Object[]) value;\r\n\t\t\t\t\t\tJTextFieldU jf = new JTextFieldU(ov[0].toString());\r\n\t\t\t\t\t\tjf.setuuid(ov[1].toString());\r\n\r\n\t\t\t\t\t\tjf.addFocusListener(new FocusListener() {\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void focusLost(FocusEvent arg0) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tSystem.out.print(((JTextField) arg0\r\n\t\t\t\t\t\t\t\t\t\t.getComponent()).getText().toString());\r\n\t\t\t\t\t\t\t\tDBfactory.getDBfactory().updateSampleValue(\r\n\t\t\t\t\t\t\t\t\t\t((JTextFieldU) arg0.getComponent())\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getUUid(),\r\n\t\t\t\t\t\t\t\t\t\t((JTextField) arg0.getComponent())\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getText().toString());\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\treturn jf;\r\n\r\n\t\t\t\t\t}", "public JPanel createPanel(List<AbstractFieldEditor> editorList,int cols) {\n\r\n JPanel panel=new JPanel();\r\n\r\n panel.setLayout(new GridBagLayout());\r\n \r\n int row = 0;\r\n\r\n int col = 0;\r\n\r\n for (int i = 0; i < editorList.size(); i++) {\r\n\r\n AbstractFieldEditor comp = editorList.get(i);\r\n\r\n if (comp.isVisible()) {\r\n\r\n if (comp instanceof NewLineFieldEditor) {\r\n row++;\r\n col = 0;\r\n continue;\r\n } else if (comp instanceof TextAreaFieldEditor) {\r\n // 转到新的一行\r\n row++;\r\n col = 0;\r\n JLabel label = new JLabel(getLabelText(comp));\r\n if (comp.getMaxContentSize() != 9999) {\r\n label.setText(comp.getName() + \"(\"+ comp.getMaxContentSize() + \"字内)\" + \"*\");\r\n }\r\n comp.setPreferredSize(new Dimension(150, comp.getOccRow() * 26));\r\n \r\n panel.add(label, new GridBagConstraints(col,row, 1, 1, 1.0, 1.0, GridBagConstraints.EAST,GridBagConstraints.NONE, new Insets(4, 0, 4, 4), 0,0));\r\n\r\n panel.add(comp, new GridBagConstraints(col + 1,row, comp.getOccCol(), comp.getOccRow(), 1.0, 1.0,GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL, new Insets(4, 0, 4,4), 0, 0));\r\n\r\n // 将当前所占的行空间偏移量计算上\r\n row += comp.getOccRow();\r\n col = 0;\r\n\r\n continue;\r\n }\r\n\r\n JLabel label = new JLabel(comp.getName());\r\n\r\n comp.setPreferredSize(new Dimension(200, 23));\r\n\r\n panel.add(label, new GridBagConstraints(col, row, 1,1, 1.0, 1.0, GridBagConstraints.EAST,GridBagConstraints.NONE, new Insets(5, 0, 5, 5), 0, 0));\r\n\r\n panel.add(comp, new GridBagConstraints(col + 1, row,1, 1, 1.0, 1.0, GridBagConstraints.WEST,GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5),0, 0));\r\n\r\n if (col == cols * 2 - 2) {\r\n row++;\r\n col = 0;\r\n } else {\r\n col += 2;\r\n }\r\n }\r\n\r\n }\r\n return panel;\r\n }", "Component getTableCellRendererComponent(JTable table, Object value,\n\t\t\t\t\t boolean isSelected, boolean hasFocus, \n\t\t\t\t\t int row, int column);", "public VerticalTableHeaderCellRenderer() {\n\t\tsetHorizontalAlignment(LEFT);\n\t\tsetHorizontalTextPosition(CENTER);\n\t\tsetVerticalAlignment(CENTER);\n\t\tsetVerticalTextPosition(TOP);\n\t\tsetUI(new VerticalLabelUI(false));\n\t}", "public Component getTableCellEditorComponent(JTable table,\r\n Object value, boolean isSelected, int row,\r\n int column) {\r\n val = value;\r\n return (Component) val;\r\n }", "public VerticalLayout() {\n setWidth(\"100%\");\n setSpacing(true);\n setMargin(true);\n }", "public VerticalLayout() {\r\n this(5, CENTER, TOP);\r\n }", "public Component getTableCellEditorComponent(JTable table, Object value,\n boolean hasFocus, int row, int column) {\n \n currentColor = (Color)value;\n lastRow = row;\n return colorEditButton;\n }", "@Override\r\n\tpublic CellEditor createPropertyEditor(Composite parent) {\n\t\tMenuCellEditor editor = new MenuCellEditor(parent);\r\n\t\teditor.setListenerModel(flistenermodel);\r\n if (getValidator() != null) {\r\n\t\t\teditor.setValidator(getValidator());\r\n\t\t}\t\t\r\n\t\t return editor;\r\n\t}", "private JTextField getCenterDescTextField() {\r\n if (this.centerDescTextArea == null) {\r\n this.centerDescTextArea = new JTextField();\r\n this.centerDescTextArea.setColumns(10);\r\n }\r\n return this.centerDescTextArea;\r\n }", "@Override\r\n\tpublic TableCellEditor getCellEditor(int row, int column) {\n \treturn new MyTableCellEditor();\r\n\t}", "public FieldView(int height, int width, Model model)\n {\n// super(model);\n \tgridHeight = height;\n gridWidth = width;\n size = new Dimension(0, 0);\n }", "private JComponent createInfoTable() {\r\n\t\tm_model = new JETATableModel();\r\n\r\n\t\tString[] names = new String[2];\r\n\t\tnames[0] = I18N.getLocalizedMessage(\"Property\");\r\n\t\tnames[1] = I18N.getLocalizedMessage(\"Value\");\r\n\t\tm_model.setColumnNames(names);\r\n\r\n\t\tClass[] coltypes = new Class[2];\r\n\t\tcoltypes[0] = String.class;\r\n\t\tcoltypes[1] = String.class;\r\n\t\tm_model.setColumnTypes(coltypes);\r\n\r\n\t\treturn new javax.swing.JScrollPane(TableUtils.createBasicTablePanel(m_model, true));\r\n\t}", "public TestTableCellAttribute() {\n\t\tsuper(\"Mixed Example\");\n\n\t\tMyVerticalHeaderModel ml = new MyVerticalHeaderModel(20, 5) {\n\t\t\t/**\n\t\t\t * UID.\n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic Object getValueAt(int row, int col) {\n\t\t\t\treturn \"\" + row + \",\" + col;\n\t\t\t}\n\t\t};\n\t\tMyCellAttribute cellAtt = ml.getCellAttribute();\n\t\tMyVerticalHeaderTabel table = new MyVerticalHeaderTabel(ml);\n\t\ttable.setCellSelectionEnabled(true);\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\ttable.setDefaultRenderer(Object.class, new MyVerticalCellRenderer());\n\t\tJScrollPane scroll = new JScrollPane(table);\n\n\t\t// color pane\n\t\tColorPanel colorPanel = new ColorPanel(table, (MyCellColor) cellAtt);\n\t\t// font pane\n\t\tFontPanel fontPanel = new FontPanel(table, (MyCellFont) cellAtt);\n\t\t// split pane.\n\t\tSpanPanel spanPanel = new SpanPanel(table, (MyCellSpan) cellAtt);\n\n\t\tBox boxAtt = new Box(BoxLayout.Y_AXIS);\n\t\tboxAtt.add(colorPanel);\n\t\tboxAtt.add(fontPanel);\n\t\tboxAtt.add(spanPanel);\n\n\t\tBox box = new Box(BoxLayout.X_AXIS);\n\t\tbox.add(scroll);\n\t\tbox.add(new JSeparator(SwingConstants.HORIZONTAL));\n\t\tbox.add(boxAtt);\n\t\tgetContentPane().add(box);\n\t\tsetSize(800, 600);\n\t\tsetVisible(true);\n\t}", "public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n table.setRowSelectionAllowed(true);\n // table.setAutoResizeMode(table.AUTO_RESIZE_OFF);\n JTextArea lbl = new JTextArea() {\n // methode a redefinir pour modifier l aspect de la cellule\n\n public void paint(Graphics g) {\n super.paint(g);\n\n }\n };\n\n // lbl.setHorizontalAlignment( JLabel.CENTER );\n lbl.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0, 0, 0)));\n Font font = table.getFont();\n //lbl.setOpaque( true );\n font = new Font(font.getName(), Font.BOLD, font.getSize() + 1);\n lbl.setMinimumSize(new Dimension(75, 30));\n lbl.setPreferredSize(new Dimension(75, 50));\n lbl.setFont(font);\n lbl.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n // lbl.setBackground(new Color(255, 204, 204));\n lbl.setBackground(new Color(255, 255, 204));\n lbl.setLineWrap(true);\n lbl.setWrapStyleWord(true);\n lbl.setText((String) value);\n\n return lbl;\n }", "public static Component vertical() {\n return Box.createRigidArea(new Dimension(0, gap));\n }", "public InputFieldEditingSupport(TableViewer viewer) {\n\t\tsuper(viewer);\n\t\tthis.viewer = viewer;\n\t\t//cellEditor = new TextCellEditor(viewer.getTable(), SWT.MULTI | SWT.WRAP | SWT.BORDER);\n\t\tcellEditor = new TextCellEditor(viewer.getTable());\n\t\t\n\t\tfinal Text aaa = (Text)cellEditor.getControl();\n\t}", "public Form(){\r\n\t\t\tString[] labelStrings = {\r\n\t\t\t\t\t\"Name: \",\r\n\t\t\t\t\t\"Description: \",\r\n\t\t\t\t\t\"Directions: \",\r\n\t\t\t\t\t\"Ingredients: \"\r\n\t\t\t};\r\n\r\n\t\t\tlabels = new JLabel[labelStrings.length];\r\n\t\t\tfields = new JComponent[labelStrings.length];\r\n\r\n\r\n\t\t\tfor(int i=0; i<4; i++) {\r\n\t\t\t\tlabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\r\n\t\t\t\t// labels[i].setBorder(BorderFactory.createEmptyBorder(0,-20,0,0));\r\n\t\t\t}\r\n\r\n\t\t\tnameField = new JTextField(30);\r\n\r\n\t\t\tfields[fieldNum++] = nameField;\r\n\r\n\t\t\tdescriptionField = new JTextField(30);\r\n\t\t\tfields[fieldNum++] = descriptionField;\r\n\r\n\t\t\t// directionsField = new JTextField(30);\r\n\t\t\tdirectionsField = new JTextArea(15,25);\r\n\t\t\tdirectionsField.setLineWrap(true);\r\n\t\t\tdirectionsField.setBorder(new JTextField().getBorder());\r\n\t\t\t\r\n\t\t\t// pressing TAB or SHIFT-TAB in directionsField will move\r\n\t\t\t// the cursor to another component\r\n\t\t\tdirectionsField.addKeyListener(new KeyAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void keyPressed(KeyEvent e) {\r\n\t\t\t\t\tif (e.getKeyCode() == KeyEvent.VK_TAB) {\r\n\t\t\t\t\t\tif (e.getModifiers() > 0) {\r\n\t\t\t\t\t\t\tdirectionsField.transferFocusBackward();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdirectionsField.transferFocus();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\te.consume();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t// fields[fieldNum++] = directionsField;\r\n\r\n\t\t\tdirectionsScrollPane = new JScrollPane(directionsField);\r\n\t\t\tfields[fieldNum++] = directionsScrollPane;\r\n\r\n\t\t\tfields[fieldNum++] = ingredientFields.get(0);\r\n\r\n\t\t\tsetLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS)); \r\n\t\t\tsetBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));\r\n\r\n\t\t\taddComponents();\r\n\r\n\t\t}", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}", "public Widget asWidget() {\n this.keyLayout = new VerticalPanel();\n\n this.keyLayout.setStyleName(\"fill-layout-width\");\n\n addActions(this.keyLayout);\n addTable(this.keyLayout);\n\n return keyLayout;\n }", "protected TreeCellEditor createTreeCellEditor() {\n\tBorder aBorder = UIManager.getBorder(\"Tree.editorBorder\");\n\tDefaultCellEditor editor = new DefaultCellEditor\n\t (new DefaultTextField(aBorder)) {\n\t public boolean shouldSelectCell(EventObject event) {\n\t\tboolean retValue = super.shouldSelectCell(event);\n\t\tgetComponent().requestFocus();\n\t\treturn retValue;\n\t }\n\t};\n\n\t// One click to edit.\n\teditor.setClickCountToStart(1);\n\treturn editor;\n }", "public OSDarkLAFComboBoxEditor()\r\n {\r\n super();\r\n editor.setBorder(OSDarkLAFBorders.getComboEditorBorder());\r\n }", "@Override\n\tprotected Control createControl(Composite parent) {\n\t\tthis.parent = parent;\n\t\t//return cellEditor.getControl();\n\t\treturn null; \n\t}", "private JPanel initFields() {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new MigLayout());\n\n\t\tJLabel usernameLabel = new JLabel(\"UserName\");\n\t\tusernameLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 26));\n\t\tpanel.add(usernameLabel, \"align label\");\n\t\tuserNameField.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tpanel.add(userNameField, \"wrap\");\n\n\t\tJLabel passwordLabel = new JLabel(\"Password\");\n\t\tpasswordLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tpanel.add(passwordLabel, \"align label\");\n\t\tpasswordField.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tpanel.add(passwordField, \"wrap\");\n\t\treturn panel;\n\t}", "com.ctrip.ferriswheel.proto.v1.Placement getVerticalAlign();", "public java.awt.Component getCustomEditor() {\n return new FormCustomEditor (this);\n }", "public final ObjectProperty<VPos> rowValignmentProperty() {\n if (rowValignment == null) {\n rowValignment = new StyleableObjectProperty<VPos>(VPos.CENTER) {\n @Override\n public void invalidated() {\n requestLayout();\n }\n\n @Override\n public CssMetaData<HangingFlowPane, VPos> getCssMetaData() {\n return StyleableProperties.ROW_VALIGNMENT;\n }\n\n @Override\n public Object getBean() {\n return HangingFlowPane.this;\n }\n\n @Override\n public String getName() {\n return \"rowValignment\";\n }\n };\n }\n return rowValignment;\n }", "private CellPanel defineUI()\n\t{\n\t\t//TODO define all UI Stuff here - not needed if GWT Designer is used as it will do the work for us.\n\n\t\tcellPanelContainer = new VerticalPanel();\t\t\n\t cellPanelContainer.setSize(\"598px\", \"530px\");\n\t\treturn cellPanelContainer;\n\t}", "@Override\r\n protected void buildEditingFields() {\r\n LanguageCodeComboBox languageCodeComboBox = new LanguageCodeComboBox();\r\n languageCodeComboBox.setAllowBlank(false);\r\n languageCodeComboBox.setToolTip(\"The translation language's code is required. It can not be null. Please select one or delete the row.\");\r\n BoundedTextField tf = new BoundedTextField();\r\n tf.setMaxLength(256);\r\n tf.setToolTip(\"This is the translation corresponding to the selected language. This field is required. It can not be null.\");\r\n tf.setAllowBlank(false);\r\n addColumnEditorConfig(languageCodeColumnConfig, languageCodeComboBox);\r\n addColumnEditorConfig(titleColumnConfig, tf);\r\n }", "@Override\n public Component getTableCellRendererComponent (final JTable table, final Object value,\n\t\t final boolean isSelected, final boolean hasFocus, final int row, final int column) {\n\t setBackground (isSelected ? selectionBackground : table.getBackground());\n\t setValue (value);\n\t final TableModel tableModel = table.getModel ();\n\t if (tableModel instanceof MatrixTableModel) {\n\t\t final MatrixTableModel mtm = (MatrixTableModel)tableModel;\n\t\t Set<Edge> edgeSet = null;\n\t\t if (table instanceof JRowHeader) {\n\t\t\t final Object rowObj = mtm.getRowObject (table.convertRowIndexToModel (row));\n\t\t\t edgeSet = mtm.getRowData (rowObj);\t \n\t\t\t orientHoriz = true;\n\t\t }\n\t\t else if (table instanceof JColumnHeader) {\n\t\t\t final Object colObj = mtm.getColumnObject (table.convertColumnIndexToModel (column));\n\t\t\t edgeSet = mtm.getColumnData (colObj);\n\t\t\t orientHoriz = false;\n\t\t }\n\t\t edgeSetSize = (edgeSet == null ? 0 : edgeSet.size());\n\t }\n\t return this;\n }", "@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static <S, T> javafx.scene.control.cell.TextFieldTableCellBuilder<S, T, ?> create() {\n return new javafx.scene.control.cell.TextFieldTableCellBuilder();\n }", "public Component getTableCellRendererComponent(JTable table,\r\n Object value, boolean isSelected, boolean hasFocus, int row,\r\n int column) {\r\n return (Component) value;\r\n }", "@AutoGenerated\r\n\tprivate VerticalLayout buildVerticalLayout_4() {\n\t\tverticalLayout_4 = new VerticalLayout();\r\n\t\tverticalLayout_4.setImmediate(false);\r\n\t\tverticalLayout_4.setWidth(\"-1px\");\r\n\t\tverticalLayout_4.setHeight(\"-1px\");\r\n\t\tverticalLayout_4.setMargin(false);\r\n\t\t\r\n\t\t// lblMensaje03\r\n\t\tlblMensaje03 = new Label();\r\n\t\tlblMensaje03.setImmediate(false);\r\n\t\tlblMensaje03.setWidth(\"200px\");\r\n\t\tlblMensaje03.setHeight(\"-1px\");\r\n\t\tlblMensaje03.setValue(\"© Ministerio del Interior 2013 \");\r\n\t\tverticalLayout_4.addComponent(lblMensaje03);\r\n\t\tverticalLayout_4.setComponentAlignment(lblMensaje03, new Alignment(6));\r\n\t\t\r\n\t\treturn verticalLayout_4;\r\n\t}", "protected AccountingLineTableCell createPaddingCell() {\n AccountingLineTableCell cell = new AccountingLineTableCell();\n cell.setColSpan(2);\n cell.setNeverEmpty(true);\n return cell;\n }", "public TextCellEditor() {\n \t this(false);\n \t}", "public short getVerticalAlignment()\n {\n return valign;\n }", "@Override\n\tpublic Component getTableCellEditorComponent(JTable table, Object value,\n\t\t\tboolean isSelected, int row, int column) {\n\t\tthis.btn_detail.setText(value == null ? \"\" : String.valueOf(value).split(\";\")[0]); \n\t\tthis.btn_delete.setText(value == null ? \"\" : String.valueOf(value).split(\";\")[1]); \n\t\treturn this.panel; \n\t}", "public JComponent createContentPanel() {\n\t\tFormLayout layout = new FormLayout(\"p,3dlu,p,3dlu\", // cols //$NON-NLS-1$\n\t\t\t\t\"p,10dlu,p,10dlu\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\n\t\tCellConstraints cc = new CellConstraints();\n\t\tJEditorPane l=new JEditorPane(\"text/html\",Messages.getString(\"LicenseDialog.Email\"));\n\t\tl.setEditable(false);\n\t\tl.setOpaque(false);\n\t\tl.setFont(l.getFont().deriveFont(Font.PLAIN));\n\t\tJLabel emailLabel=new JLabel(Messages.getString(\"LicenseDialog.EmailLabel\")+\":\");\n\t\t//emailLabel.setFont(emailLabel.getFont().deriveFont(Font.PLAIN));\n\t\tbuilder.add(l,cc.xyw(1,1, 4));\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(emailLabel,email);\n\t\tbuilder.nextLine(2);\n\n\t\tJComponent result = builder.getPanel();\n\t\treturn result;\n\t}", "private JTextField makeJTextField(int columnNumber, int x, int y, int width, int height) {\r\n JTextField textField = new JTextField(columnNumber);\r\n textField.setBounds(x, y, width, height);\r\n return textField;\r\n }", "@Override\n public DisplayColumn createRenderer(ColumnInfo colInfo)\n {\n assert colInfo.getJdbcType() == JdbcType.DOUBLE;\n return new DisplayColumnDecorator(_factory.createRenderer(colInfo))\n {\n {\n _textAlign = \"right\";\n }\n\n @Override\n public void renderGridCellContents(RenderContext ctx, Writer out) throws IOException\n {\n Object o = getValue(ctx);\n\n if (null == o)\n {\n super.renderGridCellContents(ctx, out);\n }\n else\n {\n String formatted = ModuleContext.formatVersion((double)o);\n out.write(formatted);\n }\n }\n };\n }", "public JFormattedTextField getEditComponent() {\r\n\t\tif(m_editComponent==null) {\r\n\t\t\t// create\r\n\t\t\tm_editComponent = createDefaultComponent(true,m_documentListener);\r\n\t\t\t//m_editComponent.getDocument().addDocumentListener(m_documentListener);\r\n\t\t}\r\n\t\treturn m_editComponent;\r\n\t}", "public Component getTableCellEditorComponent(JTable table,\n Object value, boolean isSelected, int rowIndex,\n int vColIndex) {\n JComboBox box = (JComboBox) getComponent();\n GuiUtils.setListData(box, samplingLabels);\n box.setSelectedItem(value);\n return box;\n }", "protected abstract void createFieldEditors();", "public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected,\n\t\t\tboolean hasFocus, int row, int column) {\n\t\tJTextField editor = new JTextField();\n\t\teditor.setFont(new Font(\"Segoe UI Semibold\", Font.BOLD, 12));\n\t\tif (value != null){\n\t\t\teditor.setText(value.toString());\n\t\t}\n\t\t\n\t\tif (value == null){\n\t\t\teditor.setBackground(Color.WHITE);\n\t\t} else {\n\t\t\tif (correctList.contains(row)){\n\t\t\t\teditor.setBackground(Color.green);\n\t\t\t\teditor.setForeground(Color.black);\n\t\t\t} else {\n\t\t\t\teditor.setBackground(Color.red);\n\t\t\t\teditor.setForeground(Color.white);\n\t\t\t}\n\t\t\t//editor.setBackground(correctList.contains(row) ? Color.green : lightRed);\n\t\t}\n\t\treturn editor;\n\t}", "private void createIntervalInputTextField(GridBagConstraints gridBagConstraint) {\r\n intervalInputTextField = new NumberTextField(\"\" + topModel.getInterval(), true);\r\n intervalInputTextField.setBackground(Color.decode(\"#616266\"));\r\n intervalInputTextField.setBorder(null);\r\n intervalInputTextField.setColumns(3);\r\n intervalInputTextField.setHorizontalAlignment(SwingConstants.CENTER);\r\n gridBagConstraint.fill = GridBagConstraints.HORIZONTAL;\r\n gridBagConstraint.weightx = 0.5;\r\n gridBagConstraint.gridx = 1;\r\n gridBagConstraint.gridy = 0;\r\n gridBagConstraint.ipady = 20;\r\n gridBagConstraint.insets = new Insets(0, 20, 0, 20);\r\n add(intervalInputTextField, gridBagConstraint);\r\n }", "public EvenimenteForm() {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Windows\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(formPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n initComponents();\n setLocation(300, 100);\n DefaultTableCellRenderer centerRenderer = new DefaultTableCellRenderer() {\n @Override\n public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n final Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n if (row != faultIndex && row != eventIndex && row != overSpeedIndex) {\n c.setBackground(row % 2 == 0 ? Color.LIGHT_GRAY : Color.WHITE);\n }else{\n c.setBackground(Color.RED);\n }\n\n return c;\n }\n };\n centerRenderer.setHorizontalAlignment(javax.swing.JLabel.CENTER);\n \n //jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n jTable1.setDefaultRenderer(Object.class, centerRenderer);\n\n }", "private javax.swing.JTextField getTotalAbonadosVendidosTF() {\n\t\tif(totalAbonadosVendidosTF == null) {\n\t\t\ttotalAbonadosVendidosTF = new javax.swing.JTextField();\n\t\t\ttotalAbonadosVendidosTF.setPreferredSize(new java.awt.Dimension(110,20));\n\t\t\ttotalAbonadosVendidosTF.setEditable(false);\n\t\t\ttotalAbonadosVendidosTF.setBackground(new java.awt.Color(242,242,238));\n\t\t\ttotalAbonadosVendidosTF.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,0,0,0));\n\t\t\ttotalAbonadosVendidosTF.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\ttotalAbonadosVendidosTF.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n\t\t\ttotalAbonadosVendidosTF.setFocusable(false);\n\n\t\t}\n\t\treturn totalAbonadosVendidosTF;\n\t}", "public AadharBarcodeFieldsPanel() {\n initComponents();\n }", "@Override\n\tpublic Object getCellEditorValue() {\n\t\tlog.info(\"|------表格单元格编辑模型------|\\t\"+\"getCellEditorValue\\t\"+\n\t\t\t\ttable.getEditingRow()+\",\"+table.getEditingColumn());\n\t\treturn comboBox.getSelectedItem().toString();\n\t}", "public void tableChanged(TableModelEvent evt) {\n setRowHeight(ROW_HEIGHT);\n\n PropertyEditor editor;\n Component comp;\n Dimension prefSize;\n\n for (int i = 0; i < getRowCount(); i++) {\n editor = tableModel.getPropertyEditor(i);\n if (editor != null) {\n comp = editor.getCustomEditor();\n if (comp != null) {\n prefSize = comp.getPreferredSize();\n if (prefSize.height > ROW_HEIGHT) {\n setRowHeight(i, prefSize.height);\n }\n }\n }\n }\n }", "@Override\n\tprotected CellEditor getCellEditor(Object element){\n\t\tComboBoxCellEditor result = new ComboBoxCellEditor(((TableViewer) viewer).getTable(), new String[]{\"In Only\",\"In and Out\",\"Out only\",\"Return\",\"Exception\"});\n\t\treturn result;\n\t}", "public Object \n getCellEditorValue() \n {\n BaseEditor editor = null;\n if(pField.getPluginName() != null) {\n try {\n\tPluginMgrClient pclient = PluginMgrClient.getInstance();\n\teditor = pclient.newEditor(pField.getPluginName(), \n\t\t\t\t pField.getPluginVersionID(), \n\t\t\t\t pField.getPluginVendor());\n }\n catch(PipelineException ex) {\n }\n }\n \n return editor; \n }", "@Override\n public Field<?> createField(Container container, Object itemId,\n Object propertyId, Component uiContext) {\n Field<?> field = super.createField(container, itemId,\n propertyId, uiContext);\n\n // ...and just set them as immediate\n ((AbstractField<?>) field).setImmediate(true);\n\n // Also modify the width of TextFields\n if (field instanceof TextField)\n field.setWidth(\"100%\");\n field.setRequired(true);\n ((TextField) field).setInputPrompt(\"Введите назначение\");\n field.addStyleName(ValoTheme.LAYOUT_HORIZONTAL_WRAPPING);\n field.focus();\n\n return field;\n }", "protected Composite getFieldEditorParent() {\n\t\tif (style == FLAT) {\n\t\t\t// Create a new parent for each field editor\n\t\t\tComposite parent = new Composite(fieldEditorParent, SWT.NULL);\n\t\t\tparent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\t\t\treturn parent;\n\t\t}\n\t\t// Just return the parent\n\t\treturn fieldEditorParent;\n\t}", "public CMARichTableCell() {\n super(\"table-cell\");\n }", "@Override\r\n\tpublic Object getCellEditorValue() {\n\t\treturn null;\r\n\t}", "public GridBagPanel fillVertical()\n {\n myGBC.fill = GridBagConstraints.VERTICAL;\n myGBC.weightx = 0.0;\n myGBC.weighty = 1.0;\n return this;\n }", "public interface UseAsRenderer\r\n {\r\n \tpublic TableCellEditor useAsRenderer();\r\n }", "public CompletionRenderer() {\n\t\t\tsuper();\n\t\t\tthis.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t}", "protected JComponent createEditor() {\n return spinner.getEditor(); }", "protected void createJenkinsCLIFieldEditors() {\n /* ------------------------ JENKINS CLI ------------------------- */\n /* -------------------------------------------------------------- */\n Group jenkinsCLIComposite = new Group(getFieldEditorParent(), SWT.NONE);\n jenkinsCLIComposite.setText(\"Jenkins CLI setup\");\n GridLayout jenkinsCLICompositeLayout = new GridLayout(3, true);\n jenkinsCLICompositeLayout.marginWidth = 10;\n jenkinsCLICompositeLayout.marginHeight = 0;\n jenkinsCLICompositeLayout.marginLeft = 20;\n jenkinsCLIComposite.setLayout(jenkinsCLICompositeLayout);\n\n GridData jenkinsCLICompositeLayoutData = new GridData();\n jenkinsCLICompositeLayoutData.horizontalAlignment = GridData.FILL;\n jenkinsCLICompositeLayoutData.verticalAlignment = GridData.BEGINNING;\n jenkinsCLICompositeLayoutData.grabExcessHorizontalSpace = true;\n jenkinsCLICompositeLayoutData.grabExcessVerticalSpace = false;\n // jenkinsCLICompositeLayoutData.verticalSpan = 2;\n jenkinsCLICompositeLayoutData.horizontalSpan = 3;\n\n jenkinsCLIComposite.setLayoutData(jenkinsCLICompositeLayoutData);\n\n jenkinsUrl = new StringFieldEditor(P_JENKINS_URL.getId(), \"Jenkins URL (optional)\", jenkinsCLIComposite);\n jenkinsUrl.getLabelControl(jenkinsCLIComposite).setToolTipText(\"Set jenkins URL - when empty default value will be used\");\n jenkinsUrl.setEmptyStringAllowed(true);\n addField(jenkinsUrl);\n\n Text jenkinsDefaultURLtext = SWTFactory.createText(jenkinsCLIComposite, SWT.NONE, SWT.FILL);\n jenkinsDefaultURLtext.setFont(JFaceResources.getFontRegistry().getItalic(JFaceResources.DEFAULT_FONT));\n jenkinsDefaultURLtext.setEditable(false);\n jenkinsDefaultURLtext.setText(\"(\" + jenkinsDefaultURLProvider.createDefaultURLDescription() + \")\");\n\n // disable certificate check\n certificateCheckDisabled = new BooleanFieldEditor(P_CERTIFICATE_CHECK_DISABLED.getId(), \"Disable certificate check\", jenkinsCLIComposite);\n addField(certificateCheckDisabled);\n\n BooleanFieldEditor useEclipseProxySettingsEnabled = new BooleanFieldEditor(P_USE_ECLIPSE_PROXY_SETTINGS_ENABLED.getId(), \"Use eclipse proxy settings\", jenkinsCLIComposite);\n addField(useEclipseProxySettingsEnabled);\n\n String name = JenkinsEditorPreferenceConstants.JENKINS_AUTH_MODE.getId();\n String labelText = \"Authentication done by\";\n\n /* @formatter:off */\n String[][] entryNamesAndValues = \n new String[][] { \n getLabelAndValue(AuthMode.API_TOKEN),\n getLabelAndValue(AuthMode.SSH)\n };\n /* @formatter:on */\n ComboFieldEditor comboFieldEditor = new ComboFieldEditor(name, labelText, entryNamesAndValues, jenkinsCLIComposite);\n addField(comboFieldEditor);\n\n jarFileLocation = new FileFieldEditor(P_PATH_TO_JENKINS_CLI_JAR.getId(), \"Path to jenkins-cli.jar (optional)\", jenkinsCLIComposite);\n jarFileLocation.setFileExtensions(new String[] { \"*.jar\" });\n jarFileLocation.getLabelControl(jenkinsCLIComposite).setToolTipText(\"You can set here the location of another jenkins-cli.jar which you can download by your running Jenkins instance.\");\n addField(jarFileLocation);\n\n Label passwordLabel = new Label(jenkinsCLIComposite, SWT.LEFT);\n passwordLabel.setText(\"User credentials : \");\n\n Text passwordField = new Text(jenkinsCLIComposite, SWT.SINGLE | SWT.PASSWORD);\n GridData data = new GridData(GridData.FILL_HORIZONTAL);\n passwordField.setLayoutData(data);\n if (temporaryCredentials == null) {\n ISecurePreferences preferences = SecurePreferencesFactory.getDefault();\n ISecurePreferences node = preferences.node(ID_SECURED_CREDENTIALS);\n temporaryCredentials = new UserCredentials();\n try {\n temporaryCredentials.username = node.get(ID_SECURED_USER_KEY, \"\");\n temporaryCredentials.secret = node.get(ID_SECURED_API_KEY, \"\");\n } catch (StorageException e1) {\n temporaryCredentials.username = \"\";\n temporaryCredentials.secret = \"\";\n }\n }\n passwordField.setText(temporaryCredentials.secret);\n\n Button credentialsButton = new Button(jenkinsCLIComposite, SWT.PUSH);\n credentialsButton.setText(\"Credentials ...\");\n credentialsButton.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n temporaryCredentials = JenkinsEditorMessageDialogSupport.INSTANCE.showUsernamePassword(\"API Key\", temporaryCredentials);\n }\n });\n credentialsButton.setLayoutData(data);\n\n Button connectionTestButton = new Button(jenkinsCLIComposite, SWT.PUSH);\n connectionTestButton.setText(\"Test connection\");\n connectionTestButton.setImage(EclipseUtil.getImage(\"icons/jenkinseditor/preferences/check.png\", JenkinsEditorActivator.getDefault()));\n connectionTestButton.setToolTipText(\"Tries to connect to Jenkins via current configuration\");\n connectionTestButton.addSelectionListener(new JenkinsTestCommandExecutionListener(this, new JenkinsLinterCLICommand(), null));\n\n Button createAPITokenButton = new Button(jenkinsCLIComposite, SWT.PUSH);\n createAPITokenButton.setText(\"Create new API token\");\n createAPITokenButton.setImage(EclipseUtil.getImage(\"icons/jenkinseditor/preferences/add_apitoken.png\", JenkinsEditorActivator.getDefault()));\n createAPITokenButton.setToolTipText(\"Opens the jenkins user configuration of the configured user in Browser. Here a new API token can be added\");\n createAPITokenButton.addSelectionListener(new JenkinsOpenLinkInBrowserListener(new URIFetcher() {\n\n @Override\n public URI getURI() {\n StringBuilder sb = createStringBuilderWithConfiguredJenkinsBaseURL();\n if (!StringUtils.isEmpty(temporaryCredentials.username)) {\n sb.append(\"/user/\");\n sb.append(temporaryCredentials.username);\n sb.append(\"/configure\");\n }\n\n return URI.create(sb.toString());\n }\n\n }));\n\n Button downloadCLIButton = new Button(jenkinsCLIComposite, SWT.PUSH);\n downloadCLIButton.setText(\"Download CLI.jar\");\n downloadCLIButton.setImage(EclipseUtil.getImage(\"icons/jenkinseditor/preferences/download.png\", JenkinsEditorActivator.getDefault()));\n downloadCLIButton.setToolTipText(\"Downloads new jenkins CLI jar via browser. Uses the current configuration to determine Jenkins URL\");\n downloadCLIButton.addSelectionListener(new JenkinsOpenLinkInBrowserListener(new URIFetcher() {\n\n @Override\n public URI getURI() {\n StringBuilder sb = createStringBuilderWithConfiguredJenkinsBaseURL();\n if (!StringUtils.isEmpty(temporaryCredentials.username)) {\n sb.append(\"/jnlpJars/jenkins-cli.jar\");\n }\n\n return URI.create(sb.toString());\n }\n\n }));\n\n if (EclipseDevelopmentSettings.DEBUG_ADD_SPECIAL_MENUS) {\n Button showCommandsTestButton = new Button(jenkinsCLIComposite, SWT.PUSH);\n JenkinsTestCommandExecutionListener listener = new JenkinsTestCommandExecutionListener(this, new JenkinsHelpCommand(), new HelpCommandResultHandler());\n listener.setErrorMessage(\"Was not able to fetch commands\");\n listener.setStartMessage(\"Try to fetch commands from server\");\n listener.setSuccessmessage(\"Fetched commands from server look at console\");\n showCommandsTestButton.setText(\"Show commands\");\n showCommandsTestButton.addSelectionListener(listener);\n }\n\n }", "@Override\n public int getCol() {\n return getLayout().getCol();\n }", "private JTextField getTBuscar() {\r\n if (tBuscar == null) {\r\n tBuscar = new JTextField();\r\n tBuscar.setBounds(new Rectangle(260, 20, 80, 20)); \r\n }\r\n return tBuscar;\r\n }", "public CadastroCompra() {\n initComponents();\n txtDescProduto.setEditable(false);\n txtValor.setEditable(false);\n txtQtdItens.setEditable(false);\n txtPrecoTotal.setEditable(false);\n txtFornecedor.setEditable(false);\n }", "private JComponent addField(FactoryViewPanel panel, ViewModel<?> model)\r\n {\r\n JComponent component = createComponent(model);\r\n panel.addLabelComponent(ControllerFactory.createLabel(model, component), component);\r\n return component;\r\n }", "public DivisionDataEdit asEditable() {\n return new DivisionDataEdit(this);\n }", "public Object getCellEditorValue() {\r\n return jtextfield.getText();\r\n }", "protected final JTextComponent getComponent() {\n return editor;\n }", "public Component getTableCellRendererComponent(JTable table, \n Object value, \n boolean isSelected, \n boolean hasFocus,\n int row, int column\n ) \n {\n if (value instanceof JProgressBar)\n return (JProgressBar)value;\n \n else if (value instanceof JTextArea)\n return (JTextArea)value;\n \n else if (value instanceof JComponent)\n return (JComponent) value;\n \n else\n return null;\n }", "private void initComponents() {\n\t\tlblFechaInicio = new JLabel();\r\n\t\tlblFechaFin = new JLabel();\r\n\t\tcmbFechaFin = new DateComboBox();\r\n\t\tcmbFechaInicio = new DateComboBox();\r\n\t\tlblCuentaBancaria = new JLabel();\r\n\t\tcmbCuentaBancaria = new JComboBox();\r\n\t\ttxtBanco = new JTextField();\r\n\t\tlblEstado = new JLabel();\r\n\t\tcmbEstado = new JComboBox();\r\n\t\tbtnSeleccionarTodos = new JButton();\r\n\t\tbtnConsultar = new JButton();\r\n\t\tlblFechaCobro = new JLabel();\r\n\t\tcmbFechaCobro = new DateComboBox();\r\n\t\tbtnFechaCobro = new JButton();\r\n\t\tspTblChequesEmitidos = new JScrollPane();\r\n\t\ttblChequesEmitidos = new JTable();\r\n\t\tCellConstraints cc = new CellConstraints();\r\n\r\n\t\t//======== this ========\r\n\t\tsetName(\"Cheques Emitidos\");\r\n\t\tsetLayout(new FormLayout(\r\n\t\t\tnew ColumnSpec[] {\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(10)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(95)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(12)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(95)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(50)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(12)),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_COLSPEC,\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),\r\n\t\t\t\tFormFactory.LABEL_COMPONENT_GAP_COLSPEC,\r\n\t\t\t\tnew ColumnSpec(Sizes.dluX(10))\r\n\t\t\t},\r\n\t\t\tnew RowSpec[] {\r\n\t\t\t\tnew RowSpec(Sizes.dluY(10)),\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tnew RowSpec(RowSpec.TOP, Sizes.DLUY8, FormSpec.NO_GROW),\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tFormFactory.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tnew RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),\r\n\t\t\t\tFormFactory.LINE_GAP_ROWSPEC,\r\n\t\t\t\tnew RowSpec(Sizes.dluY(10))\r\n\t\t\t}));\r\n\r\n\t\t//---- lblFechaInicio ----\r\n\t\tlblFechaInicio.setText(\"Fecha Inicio:\");\r\n\t\tadd(lblFechaInicio, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));\r\n\r\n\t\t//---- lblFechaFin ----\r\n\t\tlblFechaFin.setText(\"Fecha Fin:\");\r\n\t\tadd(lblFechaFin, cc.xywh(9, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.FILL));\r\n\t\tadd(cmbFechaFin, cc.xywh(11, 3, 1, 1, CellConstraints.FILL, CellConstraints.FILL));\r\n\t\tadd(cmbFechaInicio, cc.xywh(5, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\r\n\r\n\t\t//---- lblCuentaBancaria ----\r\n\t\tlblCuentaBancaria.setText(\"Cuenta Bancaria:\");\r\n\t\tadd(lblCuentaBancaria, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\t\tadd(cmbCuentaBancaria, cc.xywh(5, 5, 5, 1));\r\n\t\tadd(txtBanco, cc.xy(11, 5));\r\n\r\n\t\t//---- lblEstado ----\r\n\t\tlblEstado.setText(\"Estado:\");\r\n\t\tadd(lblEstado, cc.xy(15, 5));\r\n\r\n\t\t//---- cmbEstado ----\r\n\t\tcmbEstado.setModel(new DefaultComboBoxModel(new String[] {\r\n\t\t\t\"TODOS\",\r\n\t\t\t\"EMITIDO\",\r\n\t\t\t\"COBRADO\",\r\n\t\t\t\"ANULADO\"\r\n\t\t}));\r\n\t\tadd(cmbEstado, cc.xy(17, 5));\r\n\r\n\t\t//---- btnSeleccionarTodos ----\r\n\t\tbtnSeleccionarTodos.setText(\"Seleccionar Todos\");\r\n\t\tadd(btnSeleccionarTodos, cc.xywh(3, 7, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));\r\n\r\n\t\t//---- btnConsultar ----\r\n\t\tbtnConsultar.setText(\"Consultar\");\r\n\t\tadd(btnConsultar, cc.xy(21, 5));\r\n\r\n\t\t//---- lblFechaCobro ----\r\n\t\tlblFechaCobro.setText(\"Fecha Cobro:\");\r\n\t\tadd(lblFechaCobro, cc.xywh(9, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));\r\n\t\tadd(cmbFechaCobro, cc.xy(11, 7));\r\n\t\tadd(btnFechaCobro, cc.xywh(13, 7, 1, 1, CellConstraints.FILL, CellConstraints.FILL));\r\n\r\n\t\t//======== spTblChequesEmitidos ========\r\n\t\t{\r\n\t\t\t\r\n\t\t\t//---- tblChequesEmitidos ----\r\n\t\t\ttblChequesEmitidos.setModel(new DefaultTableModel(\r\n\t\t\t\tnew Object[][] {\r\n\t\t\t\t\t{null, null, null, null, null, null, null, null, null, null, Boolean.FALSE},\r\n\t\t\t\t},\r\n\t\t\t\tnew String[] {\r\n\t\t\t\t\t\"Cobrado\", \"Fecha Emisi\\u00f3n\", \"Cuenta Bancaria\", \"N\\u00famero\", \"Valor\", \"Estado\", \"Fecha Cobro\", \"Beneficiario\", \"Detalle\", \"Origen\", \"Emitido\"\r\n\t\t\t\t}\r\n\t\t\t) {\r\n\t\t\t\tClass[] columnTypes = new Class[] {\r\n\t\t\t\t\tBoolean.class, Object.class, Object.class, Object.class, Object.class, Object.class, Object.class, Object.class, Object.class, Object.class, Boolean.class\r\n\t\t\t\t};\r\n\t\t\t\tboolean[] columnEditable = new boolean[] {\r\n\t\t\t\t\ttrue, false, false, false, false, false, false, false, false, false, true\r\n\t\t\t\t};\r\n\t\t\t\tpublic Class getColumnClass(int columnIndex) {\r\n\t\t\t\t\treturn columnTypes[columnIndex];\r\n\t\t\t\t}\r\n\t\t\t\tpublic boolean isCellEditable(int rowIndex, int columnIndex) {\r\n\t\t\t\t\treturn columnEditable[columnIndex];\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tspTblChequesEmitidos.setViewportView(tblChequesEmitidos);\r\n\t\t}\r\n\t\tadd(spTblChequesEmitidos, cc.xywh(3, 9, 21, 3));\r\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\r\n\t}", "private void createEditor() {\n TableLayout table = (TableLayout) findViewById(R.id.ll_table_config);\n\n // Clear all\n while (table.getChildCount() > 1) {\n table.removeViewAt(table.getChildCount() - 1);\n }\n\n TableRow row;\n\n // First row\n row = createRow();\n\n // Lower\n row.addView(createTextView(0, \"0\"));\n\n // Upper\n row.addView(createTextView(1000, String.valueOf(mLevels[0] - 1)));\n\n // Screen\n row.addView(createButton(3000, String.valueOf(mLcdValues[0])));\n\n // Buttons\n row.addView(createButton(4000, String.valueOf(mBtnValues[0])));\n\n // Keyboard\n if (mHasKeyboard) {\n row.addView(createButton(5000, String.valueOf(mKbValues[0])));\n }\n\n table.addView(row, table.getChildCount());\n\n for (int i = 0; i < mLevels.length - 1; i++) {\n row = createRow();\n\n // Lower\n row.addView(createButton(2000 + i, String.valueOf(mLevels[i])));\n\n // Upper\n row.addView(createTextView(1000 + i + 1,\n String.valueOf(Math.max(0, mLevels[i + 1] - 1))));\n\n // Screen\n row.addView(createButton(3000 + i + 1, String.valueOf(mLcdValues[i + 1])));\n\n // Buttons\n row.addView(createButton(4000 + i + 1, String.valueOf(mBtnValues[i + 1])));\n\n // Keyboard\n if (mHasKeyboard) {\n row.addView(createButton(5000 + i + 1, String.valueOf(mKbValues[i + 1])));\n }\n\n table.addView(row, table.getChildCount());\n }\n\n row = createRow();\n\n // Lower\n row.addView(createButton(2000 + mLevels.length - 1,\n String.valueOf(mLevels[mLevels.length - 1])));\n\n // Upper\n row.addView(createTextView((int) 1e10, String.valueOf((char) '\\u221e')));\n\n // Screen\n row.addView(createButton(3000 + mLevels.length, String.valueOf(mLcdValues[mLevels.length])));\n\n // Buttons\n row.addView(createButton(4000 + mLevels.length, String.valueOf(mBtnValues[mLevels.length])));\n\n // Keyboard\n if (mHasKeyboard) {\n row.addView(createButton(5000 + mLevels.length,\n String.valueOf(mKbValues[mLevels.length])));\n }\n\n table.addView(row, table.getChildCount());\n\n table.setColumnStretchable(0, true);\n table.setColumnStretchable(2, true);\n table.setColumnStretchable(3, true);\n if (mHasKeyboard) {\n table.setColumnStretchable(4, true);\n }\n }", "private javax.swing.JTextField getPorcentajeVendidosTF() {\n\t\tif(porcentajeVendidosTF == null) {\n\t\t\tporcentajeVendidosTF = new javax.swing.JTextField();\n\t\t\tporcentajeVendidosTF.setPreferredSize(new java.awt.Dimension(50,20));\n\t\t\tporcentajeVendidosTF.setEditable(false);\n\t\t\tporcentajeVendidosTF.setBackground(new java.awt.Color(242,242,238));\n\t\t\tporcentajeVendidosTF.setBorder(javax.swing.BorderFactory.createEmptyBorder(0,0,0,0));\n\t\t\tporcentajeVendidosTF.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\t\t\tporcentajeVendidosTF.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12));\n\t\t\tporcentajeVendidosTF.setFocusable(false);\n\t\t}\n\t\treturn porcentajeVendidosTF;\n\t}", "protected JPanel createCsvSchemaConfigPanel() {\n\t\tJLabel lblSkip = new JLabel(RunnerMessages.getInstance().GenericInputSchemaEditDlg_lbl_SkipRecords + \" : \");\n\t\tSpinnerNumberModel model = new SpinnerNumberModel(0, MIN_SKIP_RECORDS, MAX_SKIP_RECORDS, 1);\n\t\t_spinSkipRecords = new JSpinner(model);\n\t\t\n\t\t// create desc textbox\n\t\tJLabel lblDesc = new JLabel(RunnerMessages.getInstance().GenericFilterEditDlg_name_Desc + \" : \");\n\t\t_txtDesc = new JTextField();\n\t\t\n\t\t// create buttons\n\t\t_btnComposeByFile = new JButton(RunnerMessages.getInstance().GenericInputSchemaEditDlg_btn_ComposeByCsv);\n\t\t_btnFieldAdd = CommonResources.createIconButton(CommonResources.ICON_ADD, RunnerMessages.getInstance().GenericInputSchemaEditDlg_btn_AddField);\n\t\t_btnFieldDelete = CommonResources.createIconButton(CommonResources.ICON_DELETE, CommonMessages.getInstance().Button_Delete);\n\t\t_btnFieldMoveLeft = CommonResources.createIconButton(CommonResources.ICON_ARROW_LEFT, CommonMessages.getInstance().Button_Left);\n\t\t_btnFieldMoveRight = CommonResources.createIconButton(CommonResources.ICON_ARROW_RIGHT, CommonMessages.getInstance().Button_Right);\n\t\t\n\t\t// create box\n\t\tBox box = Box.createHorizontalBox();\n\t\tbox.add(Box.createGlue());\n\t\tbox.add(Box.createHorizontalStrut(5));\n\t\tbox.add(_btnComposeByFile);\n\t\tbox.add(Box.createHorizontalStrut(5));\n\t\tbox.add(_btnFieldAdd);\n\t\tbox.add(Box.createHorizontalStrut(2));\n\t\tbox.add(_btnFieldDelete);\n\t\tbox.add(Box.createHorizontalStrut(2));\n\t\tbox.add(_btnFieldMoveLeft);\n\t\tbox.add(Box.createHorizontalStrut(2));\n\t\tbox.add(_btnFieldMoveRight);\n\t\t\n\t\t// cretae panel\n\t\tJPanel pnl = new JPanel(new GridBagLayout());\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\tgbc.gridwidth = 1;\n\t\tgbc.gridheight = 1;\n\t\tgbc.weightx = 0;\n\t\tgbc.weighty = 0;\n\t\tgbc.anchor = GridBagConstraints.EAST;\n\t\tgbc.fill = GridBagConstraints.NONE;\n\t\tgbc.gridx = 0;\n\t\tgbc.gridy = 0;\n\t\tgbc.insets = new Insets(0, 0, 5, 0);\n\t\t//--- txtbox\n\t\tpnl.add(lblDesc, gbc);\n\t\tgbc.gridx++;\n\t\tgbc.gridwidth = 2;\n\t\tgbc.weightx = 1;\n\t\tgbc.fill = GridBagConstraints.HORIZONTAL;\n\t\tpnl.add(_txtDesc, gbc);\n\t\tgbc.weightx = 0;\n\t\tgbc.fill = GridBagConstraints.NONE;\n\t\tgbc.gridwidth = 1;\n\t\tgbc.gridy++;\n\t\tgbc.gridx = 0;\n\t\tgbc.insets = new Insets(0, 0, 0, 0);\n\t\t//--- spin\n\t\tpnl.add(lblSkip, gbc);\n\t\tgbc.gridx++;\n\t\tpnl.add(_spinSkipRecords, gbc);\n\t\tgbc.gridx++;\n\t\t//--- buttons\n\t\tgbc.weightx = 1;\n\t\tgbc.fill = GridBagConstraints.HORIZONTAL;\n\t\tpnl.add(box, gbc);\n\t\t\n\t\treturn pnl;\n\t}", "private VBox vboxFormat() {\n VBox vbox = new VBox();\n // vbox.setAlignment(Pos.BASELINE_CENTER);\n vbox.setSpacing(10);\n vbox.setPadding(new Insets(20, 20, 20, 20));\n return vbox;\n }", "@SuppressWarnings(\"unchecked\")\n public TCS defaultEdging() {\n cellStyle_p.setBorderBottom(BORDER_THIN);\n cellStyle_p.setBottomBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderLeft(BORDER_THIN);\n cellStyle_p.setLeftBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderRight(BORDER_THIN);\n cellStyle_p.setRightBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderTop(BORDER_THIN);\n cellStyle_p.setTopBorderColor(BLACK.getIndex());\n\n return (TCS) this;\n }", "private void continuarInicializandoComponentes() {\n javax.swing.table.TableColumn columna1 = tablaDetalle.getColumn(\"Id\");\n columna1.setPreferredWidth(10); \n javax.swing.table.TableColumn columna2 = tablaDetalle.getColumn(\"Tipo\");\n columna2.setPreferredWidth(250); \n javax.swing.table.TableColumn columna3 = tablaDetalle.getColumn(\"Número\");\n columna3.setPreferredWidth(50); \n DefaultTableCellRenderer tcrr = new DefaultTableCellRenderer();\n tcrr.setHorizontalAlignment(SwingConstants.RIGHT);\n DefaultTableCellRenderer tcrc = new DefaultTableCellRenderer();\n tcrc.setHorizontalAlignment(SwingConstants.CENTER);\n tablaDetalle.getColumnModel().getColumn(0).setCellRenderer(tcrc);\n tablaDetalle.getColumnModel().getColumn(2).setCellRenderer(tcrr);\n tablaDetalle.getColumnModel().getColumn(3).setCellRenderer(tcrr);\n tablaDetalle.getColumnModel().getColumn(4).setCellRenderer(tcrr);\n }", "private void createFieldsComp() {\n Composite fieldComp = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(2, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n fieldComp.setLayout(gl);\n fieldComp.setLayoutData(gd);\n\n Label nameLbl = new Label(fieldComp, SWT.LEFT);\n nameLbl.setText(\"Name: \");\n\n caseNameText = new Text(fieldComp, SWT.SINGLE);\n gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n gd.minimumWidth = 200;\n caseNameText.setLayoutData(gd);\n caseNameText.addKeyListener(new KeyAdapter() {\n\n @Override\n public void keyReleased(KeyEvent e) {\n super.keyReleased(e);\n if (e.character == SWT.CR || e.character == SWT.KEYPAD_CR) {\n if (verifySelection()) {\n close();\n }\n }\n }\n });\n }", "@AutoGenerated\r\n\tprivate VerticalLayout buildVerticalLayout_5() {\n\t\tverticalLayout_5 = new VerticalLayout();\r\n\t\tverticalLayout_5.setImmediate(false);\r\n\t\tverticalLayout_5.setWidth(\"-1px\");\r\n\t\tverticalLayout_5.setHeight(\"-1px\");\r\n\t\tverticalLayout_5.setMargin(false);\r\n\t\t\r\n\t\t// horizontalLayout_3\r\n\t\thorizontalLayout_3 = buildHorizontalLayout_3();\r\n\t\tverticalLayout_5.addComponent(horizontalLayout_3);\r\n\t\tverticalLayout_5.setComponentAlignment(horizontalLayout_3,\r\n\t\t\t\tnew Alignment(48));\r\n\t\t\r\n\t\treturn verticalLayout_5;\r\n\t}" ]
[ "0.5779509", "0.5726742", "0.5684896", "0.547547", "0.5436216", "0.5352508", "0.53412664", "0.53306013", "0.5308889", "0.52515733", "0.5224087", "0.5213991", "0.51749605", "0.51694226", "0.51147205", "0.50617415", "0.5029998", "0.5009967", "0.49675035", "0.49581298", "0.49413204", "0.49376473", "0.4932013", "0.49224335", "0.49174", "0.48982176", "0.48922378", "0.48895386", "0.4880379", "0.4878902", "0.4876192", "0.48378408", "0.4826422", "0.4763961", "0.47564182", "0.47488502", "0.4743486", "0.47387445", "0.4708973", "0.47068423", "0.47050163", "0.46821538", "0.46699455", "0.46678054", "0.4659793", "0.46586", "0.4645621", "0.46246263", "0.46219388", "0.46201038", "0.46166456", "0.46126875", "0.46093816", "0.46022564", "0.4593392", "0.45922008", "0.4586696", "0.45854175", "0.45809108", "0.4572213", "0.45708036", "0.45601064", "0.45530057", "0.45522687", "0.4547727", "0.4544445", "0.4536375", "0.4532382", "0.45305067", "0.453036", "0.45269507", "0.45151147", "0.45134872", "0.45091528", "0.45014367", "0.4501198", "0.44885418", "0.44839782", "0.44837755", "0.44819164", "0.4477742", "0.4472949", "0.44657916", "0.44621", "0.44509766", "0.44508845", "0.4443757", "0.44402456", "0.44377622", "0.44376266", "0.44359526", "0.44281146", "0.44267124", "0.44213986", "0.44165275", "0.44158942", "0.44142768", "0.44108507", "0.44100648", "0.44099674" ]
0.5006596
18
Creates a celleditor with a default editing component.
public FormFieldComponentCellEditor() { this(new StringFormField()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected TreeCellEditor createTreeCellEditor() {\n\tBorder aBorder = UIManager.getBorder(\"Tree.editorBorder\");\n\tDefaultCellEditor editor = new DefaultCellEditor\n\t (new DefaultTextField(aBorder)) {\n\t public boolean shouldSelectCell(EventObject event) {\n\t\tboolean retValue = super.shouldSelectCell(event);\n\t\tgetComponent().requestFocus();\n\t\treturn retValue;\n\t }\n\t};\n\n\t// One click to edit.\n\teditor.setClickCountToStart(1);\n\treturn editor;\n }", "@Override\r\n\tpublic TableCellEditor getCellEditor(int row, int column) {\n \treturn new MyTableCellEditor();\r\n\t}", "@Override\n public TreeCellEditor getCellEditor() {\n final TreeCellEditor ed = super.getCellEditor();\n if (ed == null) {\n return null;\n }\n if (wrapper == null) {\n wrapper = new RendererEditorWrapper();\n }\n wrapper.ed = ed;\n return wrapper;\n }", "public TextCellEditor() {\n \t this(false);\n \t}", "protected JComponent createEditor() {\n return spinner.getEditor(); }", "public Component getTableCellEditorComponent(JTable table,\r\n Object value,\r\n boolean isSelected,\r\n int row,\r\n int column) { \r\n return jtextfield;\r\n }", "@Override\n\tprotected CellEditor getCellEditor(Object element){\n\t\tComboBoxCellEditor result = new ComboBoxCellEditor(((TableViewer) viewer).getTable(), new String[]{\"In Only\",\"In and Out\",\"Out only\",\"Return\",\"Exception\"});\n\t\treturn result;\n\t}", "@Override\n\tprotected Control createControl(Composite parent) {\n\t\tthis.parent = parent;\n\t\t//return cellEditor.getControl();\n\t\treturn null; \n\t}", "public DivisionDataEdit asEditable() {\n return new DivisionDataEdit(this);\n }", "public CadastroCompra() {\n initComponents();\n txtDescProduto.setEditable(false);\n txtValor.setEditable(false);\n txtQtdItens.setEditable(false);\n txtPrecoTotal.setEditable(false);\n txtFornecedor.setEditable(false);\n }", "public Edit() {\n initComponents();\n }", "public NullStringEditor () {\n super();\n editable = true;\n }", "public EditorPanel() throws Exception {\n initComponents();\n \n //Gör Id kolumnem i min JTable osynlig men jag behöver id-numret sparat någonstans för att kunna referera till editors id-nummer när man tar \n //bort någon eller ändrar en editor.\n //Anledningen till att jag gör det osynligt för att jag tycker det är onödigt för en användare att få se den informationen.\n editorTable.getColumnModel().getColumn(0).setMinWidth(0);\n editorTable.getColumnModel().getColumn(0).setMaxWidth(0);\n \n //Sätter färgen på min Jtable\n JTableHeader headerSearch = editorTable.getTableHeader();\n headerSearch.setBackground( new Color(190, 227, 219) );\n headerSearch.setForeground( new Color(85, 91, 110) );\n \n addComboBox();\n addComboBoxTable();\n }", "public InputFieldEditingSupport(TableViewer viewer) {\n\t\tsuper(viewer);\n\t\tthis.viewer = viewer;\n\t\t//cellEditor = new TextCellEditor(viewer.getTable(), SWT.MULTI | SWT.WRAP | SWT.BORDER);\n\t\tcellEditor = new TextCellEditor(viewer.getTable());\n\t\t\n\t\tfinal Text aaa = (Text)cellEditor.getControl();\n\t}", "protected JTextComponent createDefaultEditor() {\n JTextComponent textComponent = new JTextPane() {\n private static final long serialVersionUID = 6954176332471863456L;\n\n /**\n * Set some rendering hints - if we don't then the rendering can be inconsistent. Also, Swing doesn't work correctly with fractional metrics.\n */\n public void paint(Graphics g) {\n Graphics2D g2 = (Graphics2D) g;\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n g2.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_OFF);\n\n super.paint(g);\n }\n\n /**\n * If the standard scroll rect to visible is on, then you can get weird behaviors if the canvas is put in a scroll pane.\n */\n @SuppressWarnings(\"unused\")\n public void scrollRectToVisible() {\n }\n };\n textComponent.setBorder(new CompoundBorder(new LineBorder(Color.black), new EmptyBorder(3, 3, 3, 3)));\n\n Font newFont = textComponent.getFont().deriveFont(Font.PLAIN, fontSize);\n textComponent.setFont(newFont);\n return textComponent;\n }", "public TableEditor openTableEditor(){\n this.save();\n\t\treturn new TableEditor(this.getTitle());\n\t}", "@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static <S, T> javafx.scene.control.cell.TextFieldTableCellBuilder<S, T, ?> create() {\n return new javafx.scene.control.cell.TextFieldTableCellBuilder();\n }", "public edit() {\n initComponents();\n }", "public TriStateCellEditor() {\n\t\tsetStyle(defaultStyle);\n\t}", "@Override\n\tprotected Control createContents(Composite parent) {\n\t\tfieldEditorParent = new Composite(parent, SWT.NULL);\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 1;\n\t\tlayout.marginHeight = 0;\n\t\tlayout.marginWidth = 0;\n\t\tfieldEditorParent.setLayout(layout);\n\t\tfieldEditorParent.setFont(parent.getFont());\n\n\t\tcreateFieldEditors();\n\n\t\tif (style == GRID) {\n\t\t\tadjustGridLayout();\n\t\t}\n\n\t\tinitialize();\n\t\tcheckState();\n\t\treturn fieldEditorParent;\n\t}", "public FormFieldComponentCellEditor(FormFieldComponent editorComponent) {\n setEditorComponent(editorComponent);\n }", "protected JComponent createEditor() {\n/* 84 */ JComponent editor = super.createEditor();\n/* 85 */ if (editor instanceof JSpinner.DefaultEditor) {\n/* */ \n/* 87 */ JSpinner.DefaultEditor de = (JSpinner.DefaultEditor)editor;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 92 */ de.getTextField().setBorder(new EmptyBorder(0, 0, 0, 0));\n/* */ \n/* 94 */ Dimension prefSize = de.getPreferredSize();\n/* 95 */ int compHeight = prefSize.height;\n/* */ \n/* 97 */ int height = LiquidSpinnerButtonUI.getSkin(1).getVsize() + LiquidSpinnerButtonUI.getSkin(5).getVsize();\n/* 98 */ int diff = height - compHeight;\n/* */ \n/* 100 */ if (diff > 0) {\n/* */ \n/* 102 */ int half = diff / 2;\n/* 103 */ de.getTextField().setBorder(new EmptyBorder(half, 0, diff - half, 0));\n/* */ } \n/* */ } \n/* 106 */ return editor;\n/* */ }", "public KTableCellEditor getCellEditor() {\n\t\treturn null;\r\n\t}", "public java.awt.Component getCustomEditor() {\n return new FormCustomEditor (this);\n }", "protected abstract void createFieldEditors();", "public void createFieldEditors()\n\t{\n\t}", "public OSDarkLAFComboBoxEditor()\r\n {\r\n super();\r\n editor.setBorder(OSDarkLAFBorders.getComboEditorBorder());\r\n }", "public JFormattedTextField getEditComponent() {\r\n\t\tif(m_editComponent==null) {\r\n\t\t\t// create\r\n\t\t\tm_editComponent = createDefaultComponent(true,m_documentListener);\r\n\t\t\t//m_editComponent.getDocument().addDocumentListener(m_documentListener);\r\n\t\t}\r\n\t\treturn m_editComponent;\r\n\t}", "public NotebookCell() {}", "public Component getTableCellEditorComponent(JTable table, Object o, boolean b, int i, int i1) {\n Component comp = null;\n\n try { // prova ad eseguire il codice\n comp = super.getTableCellEditorComponent(table, o, b, i, i1);\n comp.setEnabled(false);\n int a = 87;\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return comp;\n }", "public XjcTextController createEditable(ControllerCore genCode) {\n\t\teditableTXT = new XjcTextController(\"editable\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(editable$1LBL);\n\t\t\t\tsetProperty(\"editable\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn editableTXT;\n\t}", "public EditorTxt() {\n initComponents();\n }", "@Override\r\n\tpublic Component getTableCellEditorComponent(JTable table, Object value,\r\n\t\t\tboolean isSelected, int row, int column) {\n\t\tif(isSelected){\r\n\t\t\t System.out.println(\"MyTextEditor----单元格被选中\");\r\n setForeground(table.getForeground()); \r\n super.setBackground(table.getBackground());\r\n table.editCellAt(row, column);\r\n\t }else{\r\n setForeground(table.getForeground());\r\n setBackground(table.getBackground());\r\n\t }\r\n\t\t setText((value == null) ? \"\" : value.toString());\r\n\t\t setFocusable(true);\r\n\t\t setEditable(true);\r\n\t\t setEnabled(true);\r\n\t\t setVisible(true);\r\n\t\treturn this;\r\n\t}", "public TableComboBox() {}", "public CellEditorProyectGit(){}", "private JTable getJTable() {\n\t\tif (jTable == null) {\n\t\t\tjTable = new JTable() {\n\t\t\t\tprotected boolean processKeyBinding(KeyStroke ks, KeyEvent e,\n\t\t\t\t\t\tint condition, boolean pressed) {\n\t\t\t\t\tboolean value = super.processKeyBinding(ks, e, condition,\n\t\t\t\t\t\t\tpressed);\n\n\t\t\t\t\t// Make sure that the editor component has focus.\n\t\t\t\t\tif (isEditing()) {\n\t\t\t\t\t\tgetEditorComponent().requestFocus();\n\t\t\t\t\t}\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\treturn jTable;\n\t}", "public StringEditor() {\n\t\tsuper();\n\t\tmEditor = new JTextField();\n\t\t\n\t}", "@Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {//C.P.M le decimos que no seran editables los componetnes\r\n return false;\r\n }", "@Override\r\n\tpublic CellEditor createPropertyEditor(Composite parent) {\n\t\tMenuCellEditor editor = new MenuCellEditor(parent);\r\n\t\teditor.setListenerModel(flistenermodel);\r\n if (getValidator() != null) {\r\n\t\t\teditor.setValidator(getValidator());\r\n\t\t}\t\t\r\n\t\t return editor;\r\n\t}", "public DefaultTableColumnModelExt() {\r\n super();\r\n }", "void startEditing(Object cell) {\n\n\t}", "protected final JTextComponent getComponent() {\n return editor;\n }", "public EditingTable() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public ConfmlEditor() {\r\n\t\tsuper();\r\n\t\tinitializeEditingDomain();\r\n\t}", "public Component getTableCellEditorComponent(JTable table, Object value,\n boolean hasFocus, int row, int column) {\n \n currentColor = (Color)value;\n lastRow = row;\n return colorEditButton;\n }", "public PropertyEditor getCellEditor() {\n Icon[] iconArray = new Icon[LineStyle.getIconSet().values().size()];\n\t\tint i = 0;\n for ( Icon newIcon : LineStyle.getIconSet().values()) {\n ((VisualPropertyIcon)newIcon).setIconHeight(16);\n ((VisualPropertyIcon)newIcon).setIconWidth(16);\n iconArray[i++] = newIcon;\n\t\t}\n\n\t\tlineCellEditor.setAvailableValues(LineStyle.getIconSet().keySet().toArray());\n lineCellEditor.setAvailableIcons(iconArray);\n\t\treturn lineCellEditor;\n }", "public Editar_Encargado() {\n \n initComponents();\n //Mandamos a llamar el metodo que carga el Grid;\n CargarTabla();\n\n }", "private TaskEditor getTaskEditor(EditableTask editable) {\n \t\tif (editable.getEditor() == null) {\n // Create a new editor using the extension point data\n \t\t\tTaskEditor editor = TaskEditorManager.getInstance().getEditor(editable.getKind());\n \t\t\tif (editor != null) {\n \t\t\t\tComposite editorPanel = new Composite(taskEditorContainer, SWT.NULL);\n \t\t\t\tGridLayout layout = new GridLayout();\n \t\t\t\tlayout.marginWidth = 0;\n \t\t\t\tlayout.marginHeight = 0;\n \t\t\t\teditorPanel.setLayout(layout);\n \t\t\t\tmform.getToolkit().adapt(editorPanel);\n \t\t\t\teditor.createControl(editorPanel, mform.getToolkit());\n \t\t\t\teditable.setEditor(editor);\n \t\t\t\tGridData gridData = new GridData(GridData.FILL_BOTH);\n \t\t\t\teditor.getControl().setLayoutData(gridData);\n \t\t\t} \n \t\t}\n \t\treturn editable.getEditor();\t\n \t}", "public Component \t\n getTableCellEditorComponent\n (\n JTable table, \n Object value, \n boolean isSelected, \n int row, \n int column\n )\n {\n pField.setPlugin((BaseEditor) value);\n \n return pField;\n }", "public CustomDialogCellEditor(final Composite parent) {\r\n super(parent);\r\n }", "private void initEditorComponent () {\n // Overriding the 'setJawbDocument' method to handle logging too.\n final AnnotationPopupListener popupListener =\n new AnnotationPopupListener(this);\n \n JTabbedPane tp = new DetachableTabsJawbComponent (task.getName()) {\n public void setJawbDocument (JawbDocument doc) {\n\t JawbDocument old = getJawbDocument();\n super.setJawbDocument (doc); // this is a must!!!\n\t if (old != null) \n\t old.getAnnotationMouseModel().\n\t removeAnnotationMouseListener(popupListener);\n\t if (doc != null)\n\t doc.getAnnotationMouseModel().\n\t addAnnotationMouseListener(popupListener);\n }\n };\n\n // add a simple editor for each\n Iterator iter = task.getMaiaScheme().iteratorOverAnnotationTypes();\n while (iter.hasNext()) {\n AnnotationType type = (AnnotationType) iter.next();\n Component editor = new SimpleAnnotEditor(this, type);\n tp.add (type.getName(), editor);\n }\n\n editorComponent = (JawbComponent)tp;\n }", "protected abstract BaseDualControlDataEditor<PK, DATA> instantiateEditorPanel () ;", "public Editor createEditor(String instanceId, Object model) {\n\t\tCompanyListEditor e = editorProvider.get();\r\n\t\te.setInstanceId(instanceId);\r\n\t\te.setTitle(\"企业注册\");\r\n\t\te.setModel(model);\r\n\t\treturn e;\r\n\t}", "public interface UseAsRenderer\r\n {\r\n \tpublic TableCellEditor useAsRenderer();\r\n }", "@Override\n public TreeCellRenderer getCellRenderer() {\n final TreeCellRenderer ren = super.getCellRenderer();\n if (ren == null) {\n return null;\n }\n if (wrapper == null) {\n wrapper = new RendererEditorWrapper();\n }\n wrapper.ren = ren;\n return wrapper;\n }", "public final Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int rowIndex, int vColIndex) {\n ((JTextField) component).setText(value.toString());\n\n // Return the configured component\n return component;\n }", "@Override\r\n protected void buildEditingFields() {\r\n LanguageCodeComboBox languageCodeComboBox = new LanguageCodeComboBox();\r\n languageCodeComboBox.setAllowBlank(false);\r\n languageCodeComboBox.setToolTip(\"The translation language's code is required. It can not be null. Please select one or delete the row.\");\r\n BoundedTextField tf = new BoundedTextField();\r\n tf.setMaxLength(256);\r\n tf.setToolTip(\"This is the translation corresponding to the selected language. This field is required. It can not be null.\");\r\n tf.setAllowBlank(false);\r\n addColumnEditorConfig(languageCodeColumnConfig, languageCodeComboBox);\r\n addColumnEditorConfig(titleColumnConfig, tf);\r\n }", "@Override\n protected void createFieldEditors() {\n /* ------------------------ CLI setup ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsCLIFieldEditors();\n\n /* -------------------------------------------------------------- */\n /* ------------------------ Log action ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsWaitForLogsInSeconds(getFieldEditorParent());\n /* -------------------------------------------------------------- */\n /* ------------------------ ERROR LEVEL ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsLinterErrorLevelComboBox(getFieldEditorParent());\n\n /* -------------------------------------------------------------- */\n /* ------------------------ APPEARANCE -------------------------- */\n /* -------------------------------------------------------------- */\n GridData appearanceLayoutData = new GridData();\n appearanceLayoutData.horizontalAlignment = GridData.FILL;\n appearanceLayoutData.verticalAlignment = GridData.BEGINNING;\n appearanceLayoutData.grabExcessHorizontalSpace = true;\n appearanceLayoutData.grabExcessVerticalSpace = false;\n appearanceLayoutData.verticalSpan = 2;\n appearanceLayoutData.horizontalSpan = 3;\n\n Composite appearanceComposite = new Composite(getFieldEditorParent(), SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.numColumns = 2;\n appearanceComposite.setLayout(layout);\n appearanceComposite.setLayoutData(appearanceLayoutData);\n\n createOtherFieldEditors(appearanceComposite);\n\n createBracketsFieldEditors(appearanceComposite);\n }", "@Override\n public EditHistory createFromParcel(Parcel in) {\n return new EditHistory(in);\n }", "@Override\n public void startEditing(final Cell.Context context,\n final Element parent,\n final C value) {\n textBox.setValue((value == null ? \"\" : convertToString(value)));\n }", "public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n editorSearchButton = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n editorTable = new javax.swing.JTable();\n editorSearchField = new javax.swing.JTextField();\n editorClearFields = new javax.swing.JButton();\n editorEditList = new javax.swing.JButton();\n editorPanelAddButton = new javax.swing.JButton();\n showFullListButton = new javax.swing.JButton();\n txtName = new javax.swing.JTextField();\n txtContact = new javax.swing.JTextField();\n txtInterestedIn = new javax.swing.JTextField();\n txtPublisherName = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jComboBoxAdd = new javax.swing.JComboBox<>();\n\n setBackground(new java.awt.Color(190, 227, 219));\n setPreferredSize(new java.awt.Dimension(714, 543));\n\n editorSearchButton.setFont(new java.awt.Font(\"Verdana\", 0, 13)); // NOI18N\n editorSearchButton.setText(\"Search\");\n editorSearchButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editorSearchButtonActionPerformed(evt);\n }\n });\n\n editorTable.setFont(new java.awt.Font(\"Verdana\", 0, 13)); // NOI18N\n editorTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"\", \"Editor Name\", \"Editor Contact\", \"Editor Interested In\", \"Publisher Name\"\n }\n ));\n editorTable.setRowHeight(40);\n editorTable.setSelectionForeground(new java.awt.Color(255, 102, 102));\n jScrollPane1.setViewportView(editorTable);\n if (editorTable.getColumnModel().getColumnCount() > 0) {\n editorTable.getColumnModel().getColumn(1).setPreferredWidth(20);\n }\n\n editorSearchField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n editorSearchFieldKeyPressed(evt);\n }\n });\n\n editorClearFields.setFont(new java.awt.Font(\"Verdana\", 0, 13)); // NOI18N\n editorClearFields.setText(\"Clear list\");\n editorClearFields.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editorClearFieldsActionPerformed(evt);\n }\n });\n\n editorEditList.setFont(new java.awt.Font(\"Verdana\", 0, 13)); // NOI18N\n editorEditList.setText(\"Edit list\");\n editorEditList.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editorEditListActionPerformed(evt);\n }\n });\n\n editorPanelAddButton.setFont(new java.awt.Font(\"Verdana\", 0, 13)); // NOI18N\n editorPanelAddButton.setText(\"Add to list\");\n editorPanelAddButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editorPanelAddButtonActionPerformed(evt);\n }\n });\n\n showFullListButton.setFont(new java.awt.Font(\"Verdana\", 0, 13)); // NOI18N\n showFullListButton.setText(\"Show full list\");\n showFullListButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n showFullListButtonActionPerformed(evt);\n }\n });\n\n txtPublisherName.setText(\"New Publisher\");\n txtPublisherName.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtPublisherNameActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Verdana\", 0, 13)); // NOI18N\n jLabel1.setText(\"Editor Name:\");\n\n jLabel2.setFont(new java.awt.Font(\"Verdana\", 0, 13)); // NOI18N\n jLabel2.setText(\"Editor Contact:\");\n\n jLabel3.setFont(new java.awt.Font(\"Verdana\", 0, 13)); // NOI18N\n jLabel3.setText(\"Editor Interested In:\");\n\n jLabel4.setFont(new java.awt.Font(\"Verdana\", 0, 13)); // NOI18N\n jLabel4.setText(\"Publisher Name:\");\n\n jLabel5.setFont(new java.awt.Font(\"Verdana\", 0, 36)); // NOI18N\n jLabel5.setText(\"Editors\");\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 .addGap(12, 12, 12)\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(jLabel2)\n .addComponent(jLabel1))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addComponent(jComboBoxAdd, javax.swing.GroupLayout.PREFERRED_SIZE, 309, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtPublisherName, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtContact, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(editorPanelAddButton, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(82, 82, 82))))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtInterestedIn, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addGroup(layout.createSequentialGroup()\n .addComponent(editorSearchField, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(editorSearchButton, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(showFullListButton, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(editorClearFields, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(editorEditList, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 683, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 19, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(66, 66, 66)\n .addComponent(jLabel5)\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(editorSearchField)\n .addComponent(editorSearchButton)\n .addComponent(showFullListButton)\n .addComponent(editorClearFields)\n .addComponent(editorEditList))\n .addGap(26, 26, 26)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(48, 48, 48)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addGap(8, 8, 8)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtInterestedIn, 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(jLabel4)\n .addComponent(jComboBoxAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPublisherName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10))\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtContact, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(editorPanelAddButton, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(62, 62, 62))))\n );\n }", "public UseTableCellEditorAsTableCellRenderer(TableCellEditor tableCellEditor) \r\n\t{\r\n\t\tsuper();\r\n\t\tsetTableCellEditor(tableCellEditor);\r\n\t\tconstruct();\r\n\t}", "public add_edit() {\n initComponents();\n \n this.setLocationRelativeTo(null);\n }", "public EditorFactoryImpl() {\n\t\tsuper();\n\t}", "protected Caret createCaret() {\n return new BasicCaret();\n }", "@Override\n public Component getTableCellEditorComponent(JTable table,\n Object value, boolean isSelected, int row, int column) {\n textField.setBorder(black);\n return super.getTableCellEditorComponent(\n table, value, isSelected, row, column);\n }", "public EditInfo() {\n initComponents();\n }", "@Override\n public FormFieldComponent getEditorComponent() {\n return (FormFieldComponent)editor;\n }", "public void createFieldEditors() {\n\t\taddField(\n\t\t\tnew BooleanFieldEditor(\n\t\t\t\tPreferenceConstants.PRETTY_CML,\n\t\t\t\t\"&Pretty print CML\",\n\t\t\t\tgetFieldEditorParent()));\n\t\tbioclipseLogging = new BooleanFieldEditor(\n\t\t\tPreferenceConstants.BIOCLIPSE_LOGGING,\n\t\t\t\"&Use Bioclipse Logging\",\n\t\t\tgetFieldEditorParent());\n\t\taddField(bioclipseLogging);\n\t}", "protected void initializeEditors() {\n\t}", "private TextField initHBoxTextField(GridPane container, int size, String initText, boolean editable, int col, int row, int colSpan, int rowSpan) {\n TextField tf = new TextField();\n tf.setPrefColumnCount(size);\n tf.setText(initText);\n tf.setEditable(editable);\n container.add(tf, col, row, colSpan, rowSpan);\n return tf;\n }", "public default boolean isEditable(){ return false; }", "protected Control createContents(Composite cell) {\n \t\tsetText(new Text(cell, getStyle()));\n \n \t\t// Add a key listener to the text widget\n \t\ttext.addKeyListener(new KeyAdapter() {\n \n \t\t\t// On key pressed, check the menu item enablement\n \t\t\tpublic void keyPressed(KeyEvent e) {\n \t\t\t\tkeyReleaseOccured(e);\n \t\t\t\tif ((getControl() == null) || getControl().isDisposed())\n \t\t\t\t\treturn;\n \t\t\t\tcheckSelection();\n \t\t\t\tcheckDeleteable();\n \t\t\t\tcheckSelectable();\n \t\t\t}\n \t\t});\n \n \t\t// Add a traverse listener to the text widget\n \t\ttext.addTraverseListener(new TraverseListener() {\n \n \t\t\t// On key traversed, disable the escape and return operations\n \t\t\tpublic void keyTraversed(TraverseEvent e) {\n \t\t\t\tif (e.detail == SWT.TRAVERSE_ESCAPE\n \t\t\t\t\t|| e.detail == SWT.TRAVERSE_RETURN) {\n \t\t\t\t\te.doit = false;\n \t\t\t\t}\n \t\t\t}\n \t\t});\n \n \t\t// Add a mouse listener to the text widget\n \t\ttext.addMouseListener(new MouseAdapter() {\n \n \t\t\t// On mouse up, check the menu item enablement\n \t\t\tpublic void mouseUp(MouseEvent e) {\n \t\t\t\tcheckSelection();\n \t\t\t\tcheckDeleteable();\n \t\t\t\tcheckSelectable();\n \t\t\t}\n \t\t});\n \n \t\ttext.setFont(cell.getFont());\n \t\ttext.setBackground(cell.getBackground());\n \t\ttext.setText(StringStatics.BLANK);\n \t\ttext.addModifyListener(getModifyListener());\n \n \t\treturn getText();\n \t}", "public GUIFactura() {\n initComponents();\n txtColor.setEditable(false);\n txtEdadComprador.setEditable(false);\n txtFecha1.setEditable(false);\n txtNombreComprador.setEditable(false);\n txtPrecio.setEditable(false);\n txtPrecioFinal.setEditable(false);\n txtApellidoComprador.setEditable(false);\n txtApelliidoVendedor.setEditable(false);\n txtCodigoVendedor.setEditable(false);\n txtMarcaVehiculo.setEditable(false);\n txtNombreVendedor.setEditable(false);\n txtCIComprador.setEditable(false);\n \n txtColor.setEnabled(false);\n txtEdadComprador.setEnabled(false);\n txtFecha1.setEnabled(false);\n txtNombreComprador.setEnabled(false);\n txtPrecio.setEnabled(false);\n txtPrecioFinal.setEnabled(false);\n txtApellidoComprador.setEnabled(false);\n txtApelliidoVendedor.setEnabled(false);\n txtCodigoVendedor.setEnabled(false);\n txtMarcaVehiculo.setEnabled(false);\n txtNombreVendedor.setEnabled(false);\n txtCIComprador.setEnabled(false);\n \n txtNumFactura.setEnabled(false);\n }", "public JawbComponent getEditorComponent () {\n if (editorComponent == null)\n initEditorComponent ();\n return editorComponent;\n }", "private void makeModifiable() {\n final TableEditor editor = new TableEditor(providers);\n editor.horizontalAlignment = SWT.LEFT;\n editor.grabHorizontal = true;\n editor.minimumWidth = 50;\n\n // editing the fourth column\n final int editable = 4;\n\n providers.addSelectionListener(new SelectionListener() {\n \n @Override\n public void widgetSelected(SelectionEvent exc) {\n\n TableItem item = (TableItem) exc.item;\n\n //Column should only be editable if arguments are allowed for the provider.\n if (item.getText(3).toString().equals(\"false\") || item == null) {\n return;\n }\n\n Control oldEditor = editor.getEditor();\n\n if (oldEditor != null) {\n oldEditor.dispose();\n }\n\n \n Text newEditor = new Text(providers, SWT.NONE);\n newEditor.setText(item.getText(editable));\n newEditor.addModifyListener(new ModifyListener() {\n\n \n @Override\n public void modifyText(ModifyEvent exc) {\n Text text = (Text) editor.getEditor();\n editor.getItem().setText(editable, text.getText());\n }\n });\n \n newEditor.selectAll();\n newEditor.setFocus();\n editor.setEditor(newEditor, item, editable); \n }\n\n @Override\n public void widgetDefaultSelected(SelectionEvent exc) {\n // TODO Auto-generated method stub\n }\n });\n \n for (int i = 0; i < TITLES.length; i++) {\n providers.getColumn(i).pack();\n }\n }", "public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}", "@Override\n\tpublic SimpleBeanEditorDriver<Product, ?> createEditorDriver() {\n\t\tDriver driver = GWT.create(Driver.class);\n\t\tdriver.initialize(this);\n\n\t\treturn driver;\n\t}", "public void createFieldEditors() {\n\t\tString[][] namespaceComboData = getSynapseNamespaceComboData();\n\t\taddField(new ComboFieldEditor(PreferenceConstants.PREF_NAMESPACE,\n\t\t \"Default namespace\",namespaceComboData,\n\t\t getFieldEditorParent()));\n\t}", "public Component getCustomEditor() {\n\t\treturn mEditor;\n\t}", "public static EditCommandFactory getEditCommandFactory() {\n\t\treturn EditCommandFactory.getInstance();\n\t}", "@Override\r\n\t\t\t\t\tpublic boolean isCellEditable(EventObject arg0) {\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}", "private void initComponent() {\n\t\t// Create Table Model (rows, columns...)\n\t\ttableur = new DefaultTableModel();\n\t\t// Add title column\n\t\ttableur.addColumn(fileNumber);\n\t\ttableur.addColumn(fileName);\n\t\ttableur.addColumn(\"\");\n\t\t// Add line of Action History with NodeStructureDTO\n\t\twhile(rootNode != null){\n\t\t\ttableur.addRow(new Object[] {rootNode.getId() , rootNode.getCompletePath()});\n\t\t\trootNode = rootNode.getNextNode();\n\t\t}\n\t\t//Create JTable \n\t\ttableHistory = new JTable(tableur);\n\t\t//Change the renderer of third cells whith grey font \n\t\ttableHistory.getColumn(\"\").setCellRenderer(new ButtonRenderer());\n\t\t//Make a CheckBox in this cell\n\t\ttableHistory.getColumn(\"\").setCellEditor(new ButtonEditor(new JCheckBox()));\n\t\t//Block reordering\n\t\ttableHistory.getTableHeader().setReorderingAllowed(false);\n\t\ttableHistory.setPreferredScrollableViewportSize(new Dimension(600 , 400));\n\t\tadd(new JScrollPane(tableHistory) , BorderLayout.CENTER);\n\t}", "public CMARichTableCell() {\n super(\"table-cell\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n table = new org.jdesktop.swingx.JXTable();\n\n table.setModel(createModel());\n table.setEditable(false);\n configureTable(table);\n setViewportView(table);\n }", "protected Text createEditorControl(final Composite parent, int style) {\n \t\t//create the Text control based on the specified style\n \t\tfinal Text textControl = new Text(parent, style);\n \t\t\n \t\t//set style information configured in the associated cell style\n \t\ttextControl.setBackground(this.cellStyle.getAttributeValue(CellStyleAttributes.BACKGROUND_COLOR));\n \t\ttextControl.setForeground(this.cellStyle.getAttributeValue(CellStyleAttributes.FOREGROUND_COLOR));\n \t\ttextControl.setFont(this.cellStyle.getAttributeValue(CellStyleAttributes.FONT));\n \t\t\n \t\ttextControl.setCursor(new Cursor(Display.getDefault(), SWT.CURSOR_IBEAM));\n \t\t\n \t\t//add a key listener that will commit or close the editor for special key strokes\n \t\t//and executes conversion/validation on input to the editor\n \t\ttextControl.addKeyListener(new KeyAdapter() {\n \n \t\t\t@Override\n \t\t\tpublic void keyPressed(KeyEvent event) {\n \t\t\t\tif (commitOnEnter && \n \t\t\t\t\t\t(event.keyCode == SWT.CR\n \t\t\t\t\t\t\t|| event.keyCode == SWT.KEYPAD_CR)) {\n \t\t\t\t\t\n \t\t\t\t\tboolean commit = (event.stateMask == SWT.ALT) ? false : true;\n \t\t\t\t\tMoveDirectionEnum move = MoveDirectionEnum.NONE;\n \t\t\t\t\tif (moveSelectionOnEnter && editMode == EditModeEnum.INLINE) {\n \t\t\t\t\t\tif (event.stateMask == 0) {\n \t\t\t\t\t\t\tmove = MoveDirectionEnum.DOWN;\n \t\t\t\t\t\t} else if (event.stateMask == SWT.SHIFT) {\n \t\t\t\t\t\t\tmove = MoveDirectionEnum.UP;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tif (commit)\n \t\t\t\t\t\tcommit(move);\n \t\t\t\t\t\n \t\t\t\t\tif (editMode == EditModeEnum.DIALOG) {\n \t\t\t\t\t\tparent.forceFocus();\n \t\t\t\t\t}\n \t\t\t\t} \n \t\t\t\telse if (event.keyCode == SWT.ESC && event.stateMask == 0){\n \t\t\t\t\tclose();\n \t\t\t\t}\n \t\t\t\telse if (commitOnUpDown && editMode == EditModeEnum.INLINE) {\n if (event.keyCode == SWT.ARROW_UP) {\n commit(MoveDirectionEnum.UP);\n } else if (event.keyCode == SWT.ARROW_DOWN) {\n commit(MoveDirectionEnum.DOWN);\n }\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t@Override\n \t\t\tpublic void keyReleased(KeyEvent e) {\n \t\t\t\ttry {\n \t\t\t\t\t//always do the conversion\n \t\t\t\t\tObject canonicalValue = getCanonicalValue(inputConversionErrorHandler); \n \t\t\t\t\t//and always do the validation\n \t\t\t\t\t//even if for commiting the validation should be skipped, on editing\n \t\t\t\t\t//a validation failure should be made visible\n \t\t\t\t\t//otherwise there would be no need for validation!\n \t\t\t\t\tvalidateCanonicalValue(canonicalValue, inputValidationErrorHandler);\n \t\t\t\t}\n \t\t\t\tcatch (Exception ex) {\n \t\t\t\t\t//do nothing as exceptions caused by conversion or validation are handled already\n \t\t\t\t\t//we just need this catch block for stopping the process if conversion failed with\n \t\t\t\t\t//an exception\n \t\t\t\t}\n \t\t\t}\n \t\t});\n \t\t\n \t\treturn textControl;\n \t}", "public CellEditor getEditor(String bookmark, Object fieldId) {\n\t\t\treturn null;\n\t\t}", "public Object \n getCellEditorValue() \n {\n BaseEditor editor = null;\n if(pField.getPluginName() != null) {\n try {\n\tPluginMgrClient pclient = PluginMgrClient.getInstance();\n\teditor = pclient.newEditor(pField.getPluginName(), \n\t\t\t\t pField.getPluginVersionID(), \n\t\t\t\t pField.getPluginVendor());\n }\n catch(PipelineException ex) {\n }\n }\n \n return editor; \n }", "Builder addEditor(String value);", "private void initTable(){\n TableCellEditor nonSelEditor = new TableCellEditor() {\n @Override\n public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {\n return null;\n }\n @Override\n public Object getCellEditorValue() {return null; }\n\n @Override\n public boolean isCellEditable(EventObject anEvent) {return false;}\n\n @Override\n public boolean shouldSelectCell(EventObject anEvent) {return false;}\n\n @Override\n public boolean stopCellEditing() {return false;}\n\n @Override\n public void cancelCellEditing() {/*NOP*/}\n\n @Override\n public void addCellEditorListener(CellEditorListener l) {/*NOP*/}\n\n @Override\n public void removeCellEditorListener(CellEditorListener l) {/*NOP*/}\n };\n\n tableModelArrays = new DefaultTableModel();\n\n String[] columns = {\"N\", \"Data type\", \"Length\", \"State\",\"Kit\"};\n for(String s : columns){\n tableModelArrays.addColumn(s);\n }\n\n /*\n * Add information about have generated structures to the table model\n */\n if(dataList != null){\n for(int i = 0; i<dataList.getLength(); i++){\n tableModelArrays.addRow(new String[]{\n Integer.toString(i + 1),\n dataList.getData(i).getType(),\n Integer.toString(dataList.getData(i).getLength(0)),\n dataList.getData(i).getState()\n });\n }\n }\n\n /*\n * Create table from table model\n */\n final JTable tableArrays = new JTable(tableModelArrays);\n\n /*\n * Runs popup menu for edition notices which contain in table.\n */\n tableArrays.addMouseListener(new PopupMenu(popupMenu){\n @Override\n public void maybeShowPopup(MouseEvent e) {\n if (e.isPopupTrigger()) {\n popupMenu.show(e.getComponent(),\n e.getX(), e.getY());\n if (e.getButton() == MouseEvent.BUTTON3) {\n Point point = e.getPoint();\n int column = tableArrays.columnAtPoint(point);\n int row = tableArrays.rowAtPoint(point);\n tableArrays.setColumnSelectionInterval(column, column);\n tableArrays.setRowSelectionInterval(row, row);\n selectedRow = tableArrays.getSelectedRow();\n }\n }\n }\n });\n\n tableArrays.setRowHeight(20);\n tableArrays.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n /*\n * Changes width all the columns in the table\n */\n tableArrays.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n tableArrays.getColumnModel().getColumn(0).setPreferredWidth(23);\n tableArrays.getColumnModel().getColumn(1).setPreferredWidth(67);\n tableArrays.getColumnModel().getColumn(2).setPreferredWidth(70);\n tableArrays.getColumnModel().getColumn(3).setPreferredWidth(65);\n tableArrays.getColumnModel().getColumn(4).setPreferredWidth(27);\n\n /*\n * Each notice sets as manually no editable\n */\n for (int i = 0; i<tableArrays.getColumnCount(); i++ ){\n tableArrays.getColumnModel().getColumn(i).setCellEditor(nonSelEditor);\n }\n\n /*\n * Add scroll controls to table\n */\n JScrollPane scrollTable = new JScrollPane(tableArrays);\n scrollTable.setSize(TABLE_WIDTH,getHeight()-FIELD_HEIGHT-150);\n scrollTable.setLocation(getWidth()-scrollTable.getWidth()-15, FIELD_HEIGHT+60);\n\n /*\n * Add table to frame\n */\n add(scrollTable);\n\n }", "public MotifCellFactoryObservable() {\r\n\t\tsuper();\r\n\t}", "public Component getTableCellEditorComponent(JTable table, final Object value,\r\n boolean isSelected, int rowIndex, int vColIndex) {\r\n // 'value' is value contained in the cell located at (rowIndex, vColIndex)\r\n component.setText(value.toString());\r\n if (isSelected) {\r\n \tcomponent.selectAll();\r\n }\r\n // Configure the component with the specified value\r\n component.addFocusListener(new FocusAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void focusGained(FocusEvent e) {\r\n\t\t\t\t\tJTextField f = (JTextField) e.getComponent();\r\n\t\t\t\t\tf.selectAll();\r\n\t\t\t\t}\r\n\t\t\t});\r\n return component;\r\n }", "public EgresoUI() {\n initComponents();\n egresoJpaController = new EgresoJpaController();\n lotesEgresadosTableModel = new LoteEgresadoTableModel();\n tablaLotesEgresados.setModel(lotesEgresadosTableModel);\n }", "public RegistrarCompra() {\n initComponents();\n tabelaFornecedor.setModel(modelFornecedor);\n\n }", "public ABMTiposDesvios() {\n super(new TiposDesviosT());\n initComponents();\n btnBorrar.setEnabled(false);\n HashMap parametros = new HashMap();\n List<TiposDesviosT> nuevo = DesktopApp.getApplication().getTiposDesviosT(parametros);\n setListDto((ArrayList<TiposDesviosT>) nuevo);\n\n tableModel = new TiposDesviosTableModel(columnNames, this.getListDto());\n tableModel.addTableModelListener(new CustomTableModelListener());\n tiposDesviosTable.setModel(tableModel);\n\n sorter = new TableRowSorter<TableModel>(tableModel) {\n\n @Override\n public void toggleSortOrder(int column) {\n RowFilter<? super TableModel, ? super Integer> f = getRowFilter();\n setRowFilter(null);\n super.toggleSortOrder(column);\n setRowFilter(f);\n }\n };\n tiposDesviosTable.setRowSorter(sorter);\n\n setModificado(false);\n setNuevo(false);\n txtMotivo.setEnabled(false);\n\n if (getPadre() == null) {\n btnSeleccionar.setEnabled(false);\n }\n\n parametros = new HashMap();\n\n tiposDesviosTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n }", "private void createEditor() {\n TableLayout table = (TableLayout) findViewById(R.id.ll_table_config);\n\n // Clear all\n while (table.getChildCount() > 1) {\n table.removeViewAt(table.getChildCount() - 1);\n }\n\n TableRow row;\n\n // First row\n row = createRow();\n\n // Lower\n row.addView(createTextView(0, \"0\"));\n\n // Upper\n row.addView(createTextView(1000, String.valueOf(mLevels[0] - 1)));\n\n // Screen\n row.addView(createButton(3000, String.valueOf(mLcdValues[0])));\n\n // Buttons\n row.addView(createButton(4000, String.valueOf(mBtnValues[0])));\n\n // Keyboard\n if (mHasKeyboard) {\n row.addView(createButton(5000, String.valueOf(mKbValues[0])));\n }\n\n table.addView(row, table.getChildCount());\n\n for (int i = 0; i < mLevels.length - 1; i++) {\n row = createRow();\n\n // Lower\n row.addView(createButton(2000 + i, String.valueOf(mLevels[i])));\n\n // Upper\n row.addView(createTextView(1000 + i + 1,\n String.valueOf(Math.max(0, mLevels[i + 1] - 1))));\n\n // Screen\n row.addView(createButton(3000 + i + 1, String.valueOf(mLcdValues[i + 1])));\n\n // Buttons\n row.addView(createButton(4000 + i + 1, String.valueOf(mBtnValues[i + 1])));\n\n // Keyboard\n if (mHasKeyboard) {\n row.addView(createButton(5000 + i + 1, String.valueOf(mKbValues[i + 1])));\n }\n\n table.addView(row, table.getChildCount());\n }\n\n row = createRow();\n\n // Lower\n row.addView(createButton(2000 + mLevels.length - 1,\n String.valueOf(mLevels[mLevels.length - 1])));\n\n // Upper\n row.addView(createTextView((int) 1e10, String.valueOf((char) '\\u221e')));\n\n // Screen\n row.addView(createButton(3000 + mLevels.length, String.valueOf(mLcdValues[mLevels.length])));\n\n // Buttons\n row.addView(createButton(4000 + mLevels.length, String.valueOf(mBtnValues[mLevels.length])));\n\n // Keyboard\n if (mHasKeyboard) {\n row.addView(createButton(5000 + mLevels.length,\n String.valueOf(mKbValues[mLevels.length])));\n }\n\n table.addView(row, table.getChildCount());\n\n table.setColumnStretchable(0, true);\n table.setColumnStretchable(2, true);\n table.setColumnStretchable(3, true);\n if (mHasKeyboard) {\n table.setColumnStretchable(4, true);\n }\n }", "abstract GridPane createEditDashBoard(String primaryKeyValue);", "public InserirCelularGui(CelularTableModel mtb) {\n initComponents();\n model = mtb;\n \n }", "protected ListCellRenderer createRenderer()\n {\n return new BEComboBoxRenderer.UIResource(this);\n }" ]
[ "0.63913405", "0.6182216", "0.60790735", "0.6051993", "0.6003717", "0.5897226", "0.5887033", "0.5874065", "0.58550787", "0.5793271", "0.5780534", "0.5749021", "0.5747774", "0.5703304", "0.5684259", "0.5671821", "0.5649315", "0.5595361", "0.55700946", "0.55536616", "0.55404085", "0.55243236", "0.550386", "0.5476264", "0.54684144", "0.5453588", "0.5441467", "0.5431712", "0.5425285", "0.5424328", "0.54223496", "0.54128873", "0.5400386", "0.53995544", "0.5395079", "0.5388464", "0.538841", "0.5345342", "0.5336237", "0.53356665", "0.53264195", "0.5313126", "0.53111887", "0.530932", "0.5305251", "0.5285039", "0.52727723", "0.5272133", "0.5270035", "0.52569187", "0.52534324", "0.5234781", "0.5232478", "0.52300173", "0.5224086", "0.5216362", "0.5213777", "0.5208279", "0.5199199", "0.5195074", "0.519179", "0.51842254", "0.5178758", "0.5174793", "0.5156281", "0.5147135", "0.5146848", "0.5131564", "0.5127865", "0.51224875", "0.512181", "0.51182145", "0.51114476", "0.5104787", "0.510107", "0.50986624", "0.5093906", "0.50836855", "0.50816196", "0.50756514", "0.50630647", "0.5038259", "0.5033544", "0.50263745", "0.50254506", "0.50205404", "0.5016514", "0.5013526", "0.5005712", "0.49988887", "0.49984336", "0.49961782", "0.49946928", "0.49908918", "0.4980228", "0.4976453", "0.49601132", "0.4959542", "0.49565884", "0.49560925" ]
0.63329786
1
Sets the editor FormFieldComponent.
public void setEditorComponent (FormFieldComponent editor) { super.setEditorComponent(editor); defaultFormat = editor.getFormat(); defaultHorizontalAlignment = editor.getHorizontalAlignment(); defaultVerticalAlignment = JLabel.CENTER; if (editor instanceof FormTextArea) { // using a FormTextArea as an editor in nearly all cases implies the following settings setAutoRowHeight(true); ((FormTextArea)editor).setLineWrap(true); ((FormTextArea)editor).setWrapStyleWord(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public FormFieldComponent getEditorComponent() {\n return (FormFieldComponent)editor;\n }", "public FormFieldComponentCellEditor(FormFieldComponent editorComponent) {\n setEditorComponent(editorComponent);\n }", "public void setEditor(Editor editor)\n {\n this.editor = editor;\n }", "public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }", "public void setEditor(Editor editor) {\n this.currentEditor = editor;\n refreshView();\n }", "public FormFieldComponentCellEditor() {\n this(new StringFormField());\n }", "public Component getCustomEditor() {\n\t\treturn mEditor;\n\t}", "public void setEditor(String value) {\n setAttributeInternal(EDITOR, value);\n }", "public void setEditor(String value) {\n setAttributeInternal(EDITOR, value);\n }", "public JawbComponent getEditorComponent () {\n if (editorComponent == null)\n initEditorComponent ();\n return editorComponent;\n }", "public void configureEditor() {\n\t\tsuper.configureEditor();\n\t}", "public java.awt.Component getCustomEditor() {\n return new FormCustomEditor (this);\n }", "protected final JTextComponent getComponent() {\n return editor;\n }", "public Component \t\n getTableCellEditorComponent\n (\n JTable table, \n Object value, \n boolean isSelected, \n int row, \n int column\n )\n {\n pField.setPlugin((BaseEditor) value);\n \n return pField;\n }", "void setEditorController(EditorViewController gameEditorViewController);", "public void set(Object requestor, String field, JComponent comp);", "public Editor getEditor() { return editor; }", "public void setEditorDialog(EditorDialog editorDialog) {\n assert editorDialog != null;\n mEditorDialog = editorDialog;\n mContext = mEditorDialog.getContext();\n }", "public void createFieldEditors()\n\t{\n\t}", "public String setField(ColorFieldEditor field, Composite parent)\n {\n\n String level = field.getPreferencesLevel();\n\n // If the level is \"project\" and project == null then just set\n // the field here (as a special case).\n // Note: without some project selected the field should not be\n // editable. Field will have to be set back to editable when\n // (and probably where) a project is selected. We might take\n // care of this elsewhere but, until that is verified, keep\n // doing it here.\n // Note also: loadWithInheritance (which calls setField(..))\n // won't know that project == null and will try to set the field\n // from some higher level\n if (IPreferencesService.PROJECT_LEVEL.equals(level) && service.getProject() == null)\n {\n if (parent == null) {\n System.err.println(\"PreferencesUtilities.setField(): parent is null\");\n } \n if (parent.isDisposed()) {\n System.err.println(\"PreferencesUtilities.setField(): parent is disposed\");\n } \n field.setFieldValueFromOutside(null);\n if (!parent.isDisposed()) {\n field.getColorSelector().setEnabled(false);\n // TODO RMF 1/10/2009 - The change control probably isn't the control whose color we ought to change...\n field.getLabelControl(parent).setBackground(colorBluish);\n }\n // Pretend that this was set at the project level?\n // (It was certainly cleared at that level)\n return IPreferencesService.PROJECT_LEVEL;\n }\n\n // Otherwise, we have a legitimate level, so set normally\n String levelFromWhichSet = field.loadWithInheritance();\n\n // Note: You can evidently load a field even when its control\n // is disposed. In that case (evidently) you can change the\n // text in the field but not the background color. \n\n if (parent != null && !parent.isDisposed()) {\n // TODO RMF 1/10/2009 - The change control probably isn't the control whose color we ought to change...\n if (level != null && level.equals(levelFromWhichSet)) {\n field.getLabelControl(parent).setBackground(colorWhite);\n } else if (level != null && field.getLabelControl(parent).getEnabled()) {\n field.getLabelControl(parent).setBackground(colorBluish);\n }\n } else {\n // If composite.isDisposed(), then both field.getTextControl(composite)\n // and field.getTextControl() will return null; if needed, a text control\n // must be obtained from somewhere else--but I have no idea where that\n // might be. Not sure why composite.isDisposed() here in the first place,\n // especially considering that the field can be set\n }\n\n return levelFromWhichSet;\n }", "public void setBoardEditor(BoardEditor boardEditor) {\n this.boardEditor = boardEditor;\n }", "protected ITextEditor getEditor() {\n return editor;\n }", "public String setField(FontFieldEditor field, Composite parent) {\n\n String level = field.getPreferencesLevel();\n\n // If the level is \"project\" and project == null then just set\n // the field here (as a special case).\n // Note: without some project selected the field should not be\n // editable. Field will have to be set back to editable when\n // (and probably where) a project is selected. We might take\n // care of this elsewhere but, until that is verified, keep\n // doing it here.\n // Note also: loadWithInheritance (which calls setField(..))\n // won't know that project == null and will try to set the field\n // from some higher level\n if (IPreferencesService.PROJECT_LEVEL.equals(level) &&\n service.getProject() == null)\n {\n if (parent == null) {\n System.err.println(\"PreferencesUtilities.setField(): parent is null\");\n } \n if (parent.isDisposed()) {\n System.err.println(\"PreferencesUtilities.setField(): parent is disposed\");\n } \n field.setFieldValueFromOutside(null);\n if (!parent.isDisposed()) {\n field.getChangeControl().setEnabled(false);\n // TODO RMF 1/10/2009 - The change control probably isn't the control whose color we ought to change...\n field.getChangeControl().setBackground(colorBluish);\n }\n // Pretend that this was set at the project level?\n // (It was certainly cleared at that level)\n return IPreferencesService.PROJECT_LEVEL;\n }\n\n // Otherwise, we have a legitimate level, so set normally\n String levelFromWhichSet = field.loadWithInheritance();\n\n // Note: You can evidently load a field even when its control\n // is disposed. In that case (evidently) you can change the\n // text in the field but not the background color. \n\n if (parent != null && !parent.isDisposed()) {\n // TODO RMF 1/10/2009 - The change control probably isn't the control whose color we ought to change...\n if (level != null && level.equals(levelFromWhichSet)) {\n field.getChangeControl().setBackground(colorWhite);\n } else if (level != null && field.getChangeControl().getEnabled()) {\n field.getChangeControl().setBackground(colorBluish);\n }\n } else {\n // If composite.isDisposed(), then both field.getTextControl(composite)\n // and field.getTextControl() will return null; if needed, a text control\n // must be obtained from somewhere else--but I have no idea where that\n // might be. Not sure why composite.isDisposed() here in the first place,\n // especially considering that the field can be set\n }\n\n return levelFromWhichSet;\n }", "void setKeyFrameEditor(KeyFrameEditorPanel keyFrameEditor) {\n this.keyFrameEditor = keyFrameEditor;\n }", "public Container getContainer() {\n return editor;\n }", "protected abstract void createFieldEditors();", "public void setEditorValue(Object value) {\r\n\t \tif(value == null)\r\n\t \t{\r\n\t \t this.setText(\"\");\r\n\t \t return;\r\n\t \t}\r\n\t\tthis.setText(value.toString());\r\n\t}", "public String setField(BooleanFieldEditor field, Composite parent) {\n\n String level = field.getPreferencesLevel();\n\t\t\n // If the level is \"project\" and project == null then just set\n // the field here (as a special case).\n // Note: without some project selected the field should not be\n // editable. Field will have to be set back to editable when\n // (and probably where) a project is selected. We might take\n // care of this elsewhere but, until that is verified, keep\n // doing it here.\n // Note also: loadWithInheritance (which calls setField(..))\n // won't know that project == null and will try to set the field\n // from some higher level\n if (IPreferencesService.PROJECT_LEVEL.equals(level) && service.getProject() == null) {\n if (parent == null) {\n System.err.println(\"PreferencesUtilities.setField(): parent is null\");\n }\t\n if (parent.isDisposed()) {\n System.err.println(\"PreferencesUtilities.setField(): parent is disposed\");\n }\n // Don't have a null boolean value to set field to,\n // but would like to show it as \"cleared\" somehow\n // (presumably \"false\" shows as empty\n field.setFieldValueFromOutside(false);\n if (!parent.isDisposed()) {\n field.getChangeControl().setEnabled(false);\n field.getChangeControl().setBackground(colorBluish);\n }\n // Pretend that this was set at the project level?\n // (It was certainly cleared at that level)\n return IPreferencesService.PROJECT_LEVEL;\n }\n\n // Otherwise, we have a legitimate level, so set normally\n String levelFromWhichSet = field.loadWithInheritance();\n\n // Note: You can evidently load a field even when its control\n // is disposed. In that case (evidently) you can change the\n // text in the field but not the background color.\t\n\n if (parent != null && !parent.isDisposed()) {\n if (level != null && level.equals(levelFromWhichSet)) {\n field.getChangeControl().setBackground(colorWhite);\n } else if (level != null && field.getChangeControl().getEnabled()) {\n field.getChangeControl().setBackground(colorBluish);\n }\n } else {\n // If composite.isDisposed(), then both field.getTextControl(composite)\n // and field.getTextControl() will return null; if needed, a text control\n // must be obtained from somewhere else--but I have no idea where that\n // might be. Not sure why composite.isDisposed() here in the first place,\n // especially considering that the field can be set\n }\n\n return levelFromWhichSet;\n }", "public BaseEditorPanel getEditorPanel ()\n {\n return _epanel;\n }", "public JFormattedTextField getEditComponent() {\r\n\t\tif(m_editComponent==null) {\r\n\t\t\t// create\r\n\t\t\tm_editComponent = createDefaultComponent(true,m_documentListener);\r\n\t\t\t//m_editComponent.getDocument().addDocumentListener(m_documentListener);\r\n\t\t}\r\n\t\treturn m_editComponent;\r\n\t}", "public java.awt.Component getInPlaceCustomEditor () {\n if (modifiedEditor instanceof EnhancedPropertyEditor) {\n return ((EnhancedPropertyEditor)modifiedEditor).getInPlaceCustomEditor ();\n } else {\n return null;\n }\n }", "public ReplaceNamespacedComponent fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }", "public void setModalComponent( final Component value ) {\r\n this.modalComponent = value;\r\n }", "public CustomModuleEditor getPropertyEditor() {\n\t return new SetErrorFunction();\n }", "public void setChiefEditor(String value) {\n setAttributeInternal(CHIEFEDITOR, value);\n }", "public FieldModifierPropertyEditor() {\n super(Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE | Modifier.STATIC |\n Modifier.FINAL | Modifier.TRANSIENT | Modifier.VOLATILE);\n }", "protected void addField(InstanceContainer container, Form form, MetaProperty metaProperty, boolean isReadonly) {\n MetaClass metaClass = container.getEntityMetaClass();\n Range range = metaProperty.getRange();\n\n boolean isRequired = isRequired(metaProperty);\n\n UiEntityAttributeContext attributeContext = new UiEntityAttributeContext(metaClass, metaProperty.getName());\n accessManager.applyRegisteredConstraints(attributeContext);\n\n if (!attributeContext.canView())\n return;\n\n if (range.isClass()) {\n UiEntityContext entityContext = new UiEntityContext(range.asClass());\n accessManager.applyRegisteredConstraints(entityContext);\n if (!entityContext.isViewPermitted()) {\n return;\n }\n }\n\n ValueSource valueSource = new ContainerValueSource<>(container, metaProperty.getName());\n\n ComponentGenerationContext componentContext =\n new ComponentGenerationContext(metaClass, metaProperty.getName());\n componentContext.setValueSource(valueSource);\n\n Field field = (Field) uiComponentsGenerator.generate(componentContext);\n\n if (requireTextArea(metaProperty, getItem(), MAX_TEXTFIELD_STRING_LENGTH)) {\n field = uiComponents.create(TextArea.NAME);\n }\n\n if (isBoolean(metaProperty)) {\n field = createBooleanField();\n }\n\n if (range.isClass()) {\n EntityPicker pickerField = uiComponents.create(EntityPicker.class);\n\n EntityLookupAction lookupAction = actions.create(EntityLookupAction.class);\n lookupAction.setScreenClass(EntityInspectorBrowser.class);\n lookupAction.setScreenOptionsSupplier(() -> new MapScreenOptions(\n ParamsMap.of(\"entity\", metaProperty.getRange().asClass().getName())));\n lookupAction.setOpenMode(OpenMode.THIS_TAB);\n\n pickerField.addAction(lookupAction);\n pickerField.addAction(actions.create(EntityClearAction.class));\n\n field = pickerField;\n }\n\n field.setValueSource(valueSource);\n field.setCaption(getPropertyCaption(metaClass, metaProperty));\n field.setRequired(isRequired);\n\n isReadonly = isReadonly || (disabledProperties != null && disabledProperties.contains(metaProperty.getName()));\n if (range.isClass() && !metadataTools.isEmbedded(metaProperty)) {\n field.setEditable(metadataTools.isOwningSide(metaProperty) && !isReadonly);\n } else {\n field.setEditable(!isReadonly);\n }\n\n field.setWidth(fieldWidth);\n\n if (isRequired) {\n field.setRequiredMessage(messageTools.getDefaultRequiredMessage(metaClass, metaProperty.getName()));\n }\n form.add(field);\n }", "public void setEditor(TreeTableCellEditor treeTableCellEditor) {\n checkAccessThread();\n \n // ensure we can find the view column index of the hierarchical column\n final int viewColumnIndex = table.convertColumnIndexToView(hierarchyColumnModelIndex);\n if (viewColumnIndex == -1)\n throw new IllegalArgumentException(\"Unable to locate a view index for the given model index: \" + hierarchyColumnModelIndex);\n \n // look up the hierarchical TableColumn\n final TableColumn viewColumn = table.getColumnModel().getColumn(viewColumnIndex);\n \n // dispose the old editor\n this.treeTableCellEditor.dispose();\n \n // install the new editor\n this.treeTableCellEditor = treeTableCellEditor;\n treeTableCellEditor.setShowExpanderForEmptyParent(showExpanderForEmptyParent);\n viewColumn.setCellEditor(treeTableCellEditor);\n }", "public void setupEditor(MapUIController controller, GUIEditorGrid editor) {\n editor.addLabel(\"Type\", getType().name());\n editor.addLabel(\"Vertices\", Arrays.toString(getVertices()));\n }", "public void setModalComponent( final Component value ) {\n this.modalComponent = value;\n }", "private void setField( String fieldName, String value )\n {\n JTextField field =\n ( JTextField ) fields.get(fieldName);\n\n field.setText(value);\n }", "public StringEditor() {\n\t\tsuper();\n\t\tmEditor = new JTextField();\n\t\t\n\t}", "public void setMapEditor(MapEditor m)\n\t{\n\t\tremove(mapEditor);\n\t\tthis.mapEditor = m;\n\t\tadd(mapEditor, BorderLayout.CENTER);\n\t}", "public void setComponentEditPart(Object componentEditPart) {\n\t\tthis.componentEditPart = componentEditPart;\n\t}", "public ReplaceBuild fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }", "public void set(Object requestor, String field, JDialog comp);", "private void editTextEditorButton(){\n TextEditorTextfield.setText(textEditorPref);\n TextEditorDialog.setVisible(true);\n }", "protected void initializeEditors() {\n\t}", "public CreateNamespacedComponent fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }", "public abstract void addEditorForm();", "public String setField(ComboFieldEditor field, Composite parent) {\n\n String level = field.getPreferencesLevel();\n\t\t\n // If the level is \"project\" and project == null then just set\n // the field here (as a special case).\n if (IPreferencesService.PROJECT_LEVEL.equals(level) && service.getProject() == null) {\n if (parent.isDisposed()) {\n System.err.println(\"PreferencesUtilities.setField(): composite is disposed\");\n }\n // Updating a radio field with a null value should\n // cause the first button to be selected\n field.setFieldValueFromOutside(null);\n if (!parent.isDisposed()) {\n // Assume that editability on the project level is set\n // appropriately by a project-selection listener\n //field.getTextControl(composite).setEditable(false);\n field.getComboBoxControl().setBackground(colorWhite);\n Control[] children = field.getComboBoxControl().getChildren();\n if (children != null) {\n for (int i = 0; i < children.length; i++) {\n Button button = (Button) children[i];\n button.setBackground(PreferencesUtilities.colorWhite);\t\n }\n }\n }\n // Pretend that this was set at the project level?\n // (It was certainly cleared at that level)\n return IPreferencesService.PROJECT_LEVEL;\n }\n\n // Otherwise, we have a legitimate level, so set normally\n String levelFromWhichSet = field.loadWithInheritance();\n\n // Note: You can evidently load a field even when it's control\n // is disposed. In that case you can (evidently) change the\n // text in the field but not the background color.\t\n\n if (!parent.isDisposed()) {\n // Needed if color is set in loadWithInheritance()?\n // (Should the color be set in loadWithInheritance()?\n// if (field.isInherited()) {\n// field.getComboBoxControl(composite).setBackground(colorBluish);\n// } else {\n// field.getComboBoxControl(composite).setBackground(colorWhite);\n// }\n } else {\n // If composite.isDisposed(), then both field.getTextControl(composite)\n // and field.getTextControl() will return null; if needed, a text control\n // must be obtained from somewhere else--but I have no idea where that\n // might be. Not sure why composite.isDisposed() here in the first place,\n // especially considering that the field can be set\n }\n\n return levelFromWhichSet;\n }", "public ConfmlEditor() {\r\n\t\tsuper();\r\n\t\tinitializeEditingDomain();\r\n\t}", "Builder addEditor(String value);", "public void createFieldEditors() {\n\t\tString[][] namespaceComboData = getSynapseNamespaceComboData();\n\t\taddField(new ComboFieldEditor(PreferenceConstants.PREF_NAMESPACE,\n\t\t \"Default namespace\",namespaceComboData,\n\t\t getFieldEditorParent()));\n\t}", "public void setValue(Object value) {\n\t\tthis.present = isRequired() || value != null;\t\t\n\t\teditorBinder.setBackingObject(value);\n\t\teditorBinder.initEditors();\n\t}", "public FieldInstruction setField(BCField field) {\n if (field == null)\n return setFieldIndex(0);\n return setField(field.getDeclarer().getName(), field.getName(),\n field.getTypeName());\n }", "public JComponent getWrappedComponent()\n {\n return field;\n }", "public ReplaceProject fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }", "public void setField(String value) {\n JsoHelper.setAttribute(jsObj, \"field\", value);\n }", "@Override\n protected void createFieldEditors() {\n /* ------------------------ CLI setup ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsCLIFieldEditors();\n\n /* -------------------------------------------------------------- */\n /* ------------------------ Log action ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsWaitForLogsInSeconds(getFieldEditorParent());\n /* -------------------------------------------------------------- */\n /* ------------------------ ERROR LEVEL ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsLinterErrorLevelComboBox(getFieldEditorParent());\n\n /* -------------------------------------------------------------- */\n /* ------------------------ APPEARANCE -------------------------- */\n /* -------------------------------------------------------------- */\n GridData appearanceLayoutData = new GridData();\n appearanceLayoutData.horizontalAlignment = GridData.FILL;\n appearanceLayoutData.verticalAlignment = GridData.BEGINNING;\n appearanceLayoutData.grabExcessHorizontalSpace = true;\n appearanceLayoutData.grabExcessVerticalSpace = false;\n appearanceLayoutData.verticalSpan = 2;\n appearanceLayoutData.horizontalSpan = 3;\n\n Composite appearanceComposite = new Composite(getFieldEditorParent(), SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.numColumns = 2;\n appearanceComposite.setLayout(layout);\n appearanceComposite.setLayoutData(appearanceLayoutData);\n\n createOtherFieldEditors(appearanceComposite);\n\n createBracketsFieldEditors(appearanceComposite);\n }", "public EditorTxt() {\n initComponents();\n }", "protected void addField(FieldEditor editor) {\n\t\tif (fields == null) {\n\t\t\tfields = new ArrayList<FieldEditor>();\n\t\t}\n\t\t// Set the actual preference name based on the current selection\n\t\t// in the Kie Navigator tree view. The preference name is constructed\n\t\t// from the path to the selected tree node by getPreferenceName().\n\t\tString name = editor.getPreferenceName();\n\t\teditor.setPreferenceName(getPreferenceName(name));\n\t\tfields.add(editor);\n\t}", "public void set(Object requestor, String field, JFrame comp);", "public void set(Object requestor, String field, JMenu comp);", "public ReplaceInfrastructure fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }", "public MyTextPane getEditor() {\n\t\treturn editor;\n\t}", "public void createFieldEditors() {\n\t\t\n\t\taddField(new IntegerFieldEditor(PreferenceConstants.SPACES_PER_TAB, \"Spaces per tab (Re-open editor to take effect.)\", getFieldEditorParent(), 2 ) );\n\t\taddField(new IntegerFieldEditor(PreferenceConstants.SECONDS_TO_REEVALUATE, \"Seconds between syntax reevaluation\", getFieldEditorParent(), 3 ) );\n\t\t\n\t\taddField(new IntegerFieldEditor(PreferenceConstants.OUTLINE_SCALAR_MAX_LENGTH, \"Maximum display length of scalar\", getFieldEditorParent(), 4 ) );\n\t\taddField(new BooleanFieldEditor(PreferenceConstants.OUTLINE_SHOW_TAGS, \"Show tags in outline view\", getFieldEditorParent() ) );\n\n addField(new BooleanFieldEditor(PreferenceConstants.SYMFONY_COMPATIBILITY_MODE, \"Symfony compatibility mode\", getFieldEditorParent() ) );\t\t\n\t\n addField(new BooleanFieldEditor(PreferenceConstants.AUTO_EXPAND_OUTLINE, \"Expand outline on open\", getFieldEditorParent() ) );\n \n String[][] validationValues = new String[][] {\n \t\t{\"Error\", PreferenceConstants.SYNTAX_VALIDATION_ERROR}, \n \t\t{\"Warning\", PreferenceConstants.SYNTAX_VALIDATION_WARNING}, \n \t\t{\"Ignore\", PreferenceConstants.SYNTAX_VALIDATION_IGNORE}\n };\n addField(new ComboFieldEditor(PreferenceConstants.VALIDATION, \"Syntax validation severity\", validationValues, getFieldEditorParent()));\n\t\n\t}", "public EditorView getEditorView() {\n\t\treturn this.editorView;\n\t}", "@Override\r\n protected void buildEditingFields() {\r\n LanguageCodeComboBox languageCodeComboBox = new LanguageCodeComboBox();\r\n languageCodeComboBox.setAllowBlank(false);\r\n languageCodeComboBox.setToolTip(\"The translation language's code is required. It can not be null. Please select one or delete the row.\");\r\n BoundedTextField tf = new BoundedTextField();\r\n tf.setMaxLength(256);\r\n tf.setToolTip(\"This is the translation corresponding to the selected language. This field is required. It can not be null.\");\r\n tf.setAllowBlank(false);\r\n addColumnEditorConfig(languageCodeColumnConfig, languageCodeComboBox);\r\n addColumnEditorConfig(titleColumnConfig, tf);\r\n }", "public Object \n getCellEditorValue() \n {\n BaseEditor editor = null;\n if(pField.getPluginName() != null) {\n try {\n\tPluginMgrClient pclient = PluginMgrClient.getInstance();\n\teditor = pclient.newEditor(pField.getPluginName(), \n\t\t\t\t pField.getPluginVersionID(), \n\t\t\t\t pField.getPluginVendor());\n }\n catch(PipelineException ex) {\n }\n }\n \n return editor; \n }", "public ImageEditor() {\r\n initComponents(); \r\n }", "public OSDarkLAFComboBoxEditor()\r\n {\r\n super();\r\n editor.setBorder(OSDarkLAFBorders.getComboEditorBorder());\r\n }", "public EditorContainer() {\n\t setLayout(null);\n\t}", "@Override\n \tpublic void createFieldEditors() {\n\t\t\n\t\t\n\t\tGraphics3DRegistry.resetDescriptors();\n\t\tList<Graphics3DDescriptor> descr = Graphics3DRegistry.getRenderersForType(Graphics3DType.SCREEN);\n\t\tString[][] renderers = new String[descr.size()][2];\n\t\tfor (int i=0; i<descr.size(); i++) {\n\t\t\trenderers[i][0] = descr.get(i).getName();\n\t\t\trenderers[i][1] = descr.get(i).getRendererID();\n\t\t}\n\t\t\n\t\tComboFieldEditor rendererCombo = new ComboFieldEditor(PrefNames.DEFAULT_SCREEN_RENDERER, \"Default screen renderer\", \n\t\t\trenderers, getFieldEditorParent());\n\t\taddField(rendererCombo);\n\t\t\n\t\t// TODO enable\n\t\trendererCombo.setEnabled(false, getFieldEditorParent());\n\t\t\n \n \t\tString[][] cameraTypes =\n \t\t\tnew String[][] {\n \t\t\t\t{ \"Default first person camera\",\n \t\t\t\t\tFirstPersonCamera.class.getName() },\n \t\t\t\t{ \"Restricted first person camera\",\n \t\t\t\t\tRestrictedFirstPersonCamera.class.getName() } };\n \n \t\taddField(new RadioGroupFieldEditor(PrefNames.LWS_CAMERA_TYPE,\n \t\t\t\"Camera type:\", 1, cameraTypes, getFieldEditorParent()));\n \n \t\taddField(new ColorFieldEditor(PrefNames.LWS_BACKGROUND,\n \t\t\t\"Background color\", getFieldEditorParent()));\n \n \t\taddField(new BooleanFieldEditor(PrefNames.LWS_DRAW_AXES, \"Draw axes\",\n \t\t\tgetFieldEditorParent()));\n \n \t\taddField(new BooleanFieldEditor(PrefNames.LWS_DEBUG, \"Debug\",\n \t\t\tgetFieldEditorParent()));\n \n \t\tString[][] fontOptions =\n \t\t\tnew String[][] {\n \t\t\t\tnew String[] { \"Editor setting\", PrefNames.FONT_AA_EDITOR },\n \t\t\t\tnew String[] { \"Always on (ignore editor setting)\",\n \t\t\t\t\tPrefNames.FONT_AA_ON },\n \t\t\t\tnew String[] { \"Always off (ignore editor setting)\",\n \t\t\t\t\tPrefNames.FONT_AA_OFF } };\n \t\taddField(new ComboFieldEditor(PrefNames.LWS_FONT_AA,\n \t\t\t\"Font antialiasing\", fontOptions, getFieldEditorParent()));\n \t}", "public JTextField getTextField()\n {\n return field;\n }", "public void setConfig(FCKEditorConfig value)\n {\n config = value;\n }", "public Component getTableCellEditorComponent(JTable table,\r\n Object value,\r\n boolean isSelected,\r\n int row,\r\n int column) { \r\n return jtextfield;\r\n }", "public void setField(DatabaseField field) {\n this.field = field;\n }", "public EditorPanel() {\n encodingModel = new DefaultComboBoxModel(); \n for (String charSet : Charset.availableCharsets().keySet()) {\n encodingModel.addElement(charSet);\n }\n initComponents();\n }", "public CurveEditorPanel(RavenEditor editor)\n {\n this.editor = editor;\n initComponents();\n\n coordToDeviceXform.setToScale(1, -1);\n\n selection.addSelectionListener(this);\n ToolTipManager.sharedInstance().registerComponent(this);\n }", "public void setUIComponent(Component c) {}", "public ReplaceConsole fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }", "public ReplaceBuildStatus fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "public void setFieldValue(String value){\r\n\t\ttextBox.setValue(value);\r\n\t}", "public PatchNamespacedComponent fieldManager(String fieldManager) {\n put(\"fieldManager\", fieldManager);\n return this;\n }", "public void setEditorGenerator(\n\t\t\tIPanelGenerator<BaseDualControlDataEditor<PK, DATA>> editorGenerator) {\n\t\tthis.editorGenerator = editorGenerator;\n\t}", "public EditorPanel() throws Exception {\n initComponents();\n \n //Gör Id kolumnem i min JTable osynlig men jag behöver id-numret sparat någonstans för att kunna referera till editors id-nummer när man tar \n //bort någon eller ändrar en editor.\n //Anledningen till att jag gör det osynligt för att jag tycker det är onödigt för en användare att få se den informationen.\n editorTable.getColumnModel().getColumn(0).setMinWidth(0);\n editorTable.getColumnModel().getColumn(0).setMaxWidth(0);\n \n //Sätter färgen på min Jtable\n JTableHeader headerSearch = editorTable.getTableHeader();\n headerSearch.setBackground( new Color(190, 227, 219) );\n headerSearch.setForeground( new Color(85, 91, 110) );\n \n addComboBox();\n addComboBoxTable();\n }", "public DatosTextFieldPanel() {\n initComponents();\n }", "public void set(Object requestor, String field, JLabel comp);", "private void initEditorPanel() {\n\t\t\n\t\t//Remove all components from panel\n\t\tthis.editor.removeAll();\n\t\t\n\t\t//Redraw which feature\n\t\tthis.whichFeature.validate();\n\t\tthis.whichFeature.repaint();\n\t\t\n\t\t//Setting icon values\n\t\tpartL.setIcon(myParent.editor.profileImage);\n\t\tendTypeLTL.setIcon(myParent.editor.ltImage);\n\t\tendTypeRBL.setIcon(myParent.editor.rbImage);\n\t\tpfFormLL.setIcon(myParent.profileshapeImage);\n\t\tsetGo.setIcon(myParent.setImage);\n\t\tcancel.setIcon(myParent.cancelImage);\n\t\t\n\t\t//Setting values visibility\n\t\tpart.setVisible(false);\n\t\tpartL.setVisible(false);\n\t\tparts.setVisible(false);\n\t\t\n\t\tendTypeLT.setVisible(false);\n\t\tendTypeLTL.setVisible(false);\n\t\tlCut.setVisible(false);\n\t\tendTypeRB.setVisible(false);\n\t\tendTypeRBL.setVisible(false);\n\t\trCut.setVisible(false);\n\t\tpfFormL.setVisible(false);\n\t\tpfFormLL.setVisible(false);\n\t\tpfCombo.setVisible(false);\n\t\t\n\t\toffsetL.setVisible(false);\n\t\toffsetR.setVisible(false);\n\t\toffsetLT.setVisible(false);\n\t\toffsetRB.setVisible(false);\n\t\t\n\t\tbL.setVisible(false);\n\t\tbR.setVisible(false);\n\t\tdeltaL.setVisible(false);\n\t\tdeltaR.setVisible(false);\n\t\t\n\t\tsetGo.setVisible(false);\n\t\tcancel.setVisible(false);\n\t\t\n\t\tmyParent.dim.masterSelected.setEnabled(false);\n\t\tmyParent.dim.slaveSelected.setEnabled(false);\n\t\tmyParent.dim.masterSelected.setVisible(false);\n\t\tmyParent.dim.slaveSelected.setVisible(false);\n\t\tmyParent.dim.doAlign.setVisible(false);\n\t\tmyParent.dim.changeAlign.setVisible(false);\n\t\tmyParent.dim.cancelAlign.setVisible(false);\n\t\tmyParent.dim.doAlign.setEnabled(false);\n\t\tmyParent.dim.changeAlign.setEnabled(false);\n\t\t\n\t\tmyParent.alignSeq = 0;\n\t\t\n\t\t//Adding components to editor panel\n\t\teditor.add(part, new XYConstraints(1, 1, 20, 19));\n\t\teditor.add(partL, new XYConstraints(22, 1, 20, 19));\n\t\teditor.add(parts, new XYConstraints(42, 1, 140, 19));\n\t\t\n\t\teditor.add(endTypeLT, new XYConstraints(1, 23, 20, 19));\n\t\teditor.add(endTypeLTL, new XYConstraints(22, 23, 20, 19));\n\t\teditor.add(lCut, new XYConstraints(81, 23, 100, 19));\n\t\t\n\t\teditor.add(endTypeRB, new XYConstraints(1, 44, 20, 19));\n\t\teditor.add(endTypeRBL, new XYConstraints(22, 44, 20, 19));\n\t\teditor.add(rCut, new XYConstraints(81, 44, 100, 19));\n\t\t\n\t\teditor.add(pfFormL, new XYConstraints(1, 65, 20, 19));\n\t\teditor.add(pfFormLL, new XYConstraints(22, 65, 20, 19));\n\t\teditor.add(pfCombo, new XYConstraints(81, 65, 100, 19));\n\t\t\n\t\teditor.add(offsetL, new XYConstraints(1, 86, 50, 19));\n\t\teditor.add(offsetR, new XYConstraints(1, 107, 50, 19));\n\t\teditor.add(bL, new XYConstraints(1, 128, 50, 19));\n\t\teditor.add(bR, new XYConstraints(1, 149, 50, 19));\n\t\t\n\t\teditor.add(offsetLT, new XYConstraints(60, 86, 118, 19));\n\t\teditor.add(offsetRB, new XYConstraints(60, 107, 118, 19));\n\t\t\n\t\teditor.add(deltaL, new XYConstraints(60, 127, 118, 19));\n\t\teditor.add(deltaR, new XYConstraints(60, 147, 118, 19));\n\t\t\n\t\teditor.add(setGo, new XYConstraints(56, 168, 60, 19));\n\t\teditor.add(cancel, new XYConstraints(118, 168, 60, 19));\n\t\t\n\t\teditor.add(myParent.dim.masterSelected, new XYConstraints(1, 3, 120, 19));\n\t\teditor.add(myParent.dim.slaveSelected, new XYConstraints(1, 24,120, 19));\n\t\t\n\t\teditor.add(myParent.dim.doAlign, new XYConstraints(1, 50, 59, 19));\n\t\teditor.add(myParent.dim.changeAlign, new XYConstraints(61, 50, 59, 19));\n\t\teditor.add(myParent.dim.cancelAlign, new XYConstraints(121, 50, 59, 19));\n\t}", "public Edit() {\n initComponents();\n }", "public void createFieldEditors() {\n\t\taddField(\n\t\t\tnew BooleanFieldEditor(\n\t\t\t\tPreferenceConstants.PRETTY_CML,\n\t\t\t\t\"&Pretty print CML\",\n\t\t\t\tgetFieldEditorParent()));\n\t\tbioclipseLogging = new BooleanFieldEditor(\n\t\t\tPreferenceConstants.BIOCLIPSE_LOGGING,\n\t\t\t\"&Use Bioclipse Logging\",\n\t\t\tgetFieldEditorParent());\n\t\taddField(bioclipseLogging);\n\t}", "public InitialValueEditor getInitEditor() {\n return initEditor;\n }", "Builder setComponent(String component);", "public PropertyCustomEditorPanel(Component client, JDialog dialog)\n {\n initComponents();\n\n this.dialog = dialog;\n\n panel_clientArea.add(client, BorderLayout.CENTER);\n }", "private ch.softenvironment.view.SimpleEditorPanel getPnlEditor() {\n\tif (ivjPnlEditor == null) {\n\t\ttry {\n\t\t\tivjPnlEditor = new ch.softenvironment.view.SimpleEditorPanel();\n\t\t\tivjPnlEditor.setName(\"PnlEditor\");\n\t\t\tivjPnlEditor.setLayout(new javax.swing.BoxLayout(getPnlEditor(), javax.swing.BoxLayout.X_AXIS));\n\t\t\tivjPnlEditor.setEnabled(true);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjPnlEditor;\n}", "public SrtEditorPanel_txtFieldOut()\n {\n initComponents();\n }", "protected void setComponent(Component newComponent) {\n\tcomponent = newComponent;\n}", "public void setControlPanelComponent(Component c) {\n this.controlPanelComponent = c;\n }" ]
[ "0.7296328", "0.69877803", "0.6417136", "0.63893247", "0.607599", "0.5959906", "0.59586847", "0.5854546", "0.5854546", "0.58511", "0.5795062", "0.5792093", "0.5772374", "0.57203716", "0.56771225", "0.55546117", "0.55387074", "0.5534631", "0.54549944", "0.5383722", "0.53716385", "0.53517324", "0.5342161", "0.53200257", "0.53141475", "0.5311083", "0.5303934", "0.52766955", "0.5252318", "0.52263683", "0.52202153", "0.5212696", "0.51952565", "0.516261", "0.51618123", "0.5156879", "0.51522064", "0.5148843", "0.5148034", "0.5143887", "0.51259196", "0.5125138", "0.5110852", "0.5071109", "0.5065922", "0.50655913", "0.50542843", "0.50494665", "0.50325686", "0.5028248", "0.5020981", "0.50090927", "0.5009044", "0.500841", "0.50077623", "0.5003275", "0.49943453", "0.49825776", "0.4980078", "0.49687022", "0.49663514", "0.4916425", "0.49151844", "0.49151284", "0.49082094", "0.49040085", "0.48986456", "0.489053", "0.48899502", "0.48849484", "0.48836058", "0.4882304", "0.48759246", "0.48609975", "0.48590997", "0.48576784", "0.48561528", "0.4853185", "0.48507792", "0.48286742", "0.48284048", "0.4817586", "0.4805748", "0.47991982", "0.47955793", "0.47902197", "0.47844326", "0.47822475", "0.47820988", "0.4770761", "0.47705722", "0.4760584", "0.47601262", "0.4755124", "0.4754319", "0.47531918", "0.47430822", "0.47428486", "0.4735244", "0.4733106" ]
0.67360145
2
Gets the current editor component.
@Override public FormFieldComponent getEditorComponent() { return (FormFieldComponent)editor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JawbComponent getEditorComponent () {\n if (editorComponent == null)\n initEditorComponent ();\n return editorComponent;\n }", "public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }", "protected final JTextComponent getComponent() {\n return editor;\n }", "public Component getCustomEditor() {\n\t\treturn mEditor;\n\t}", "public Editor getEditor() {\n if (currentEditor == null) {\n getTopEditor(); // this will trigger creation of a new top editor if it doesn't exist and currentEditor will be assigned with that one as well\n }\n return currentEditor;\n }", "public Editor getEditor() { return editor; }", "protected ITextEditor getEditor() {\n return editor;\n }", "public static IEditorPart getActiveEditor(){\r\n\t\tIWorkbench workbench = PlatformUI.getWorkbench();\r\n\t\tIWorkbenchWindow window = workbench.getActiveWorkbenchWindow();\r\n\t\tIWorkbenchPage page = window.getActivePage();\r\n\t\tIEditorPart editorPart = page.getActiveEditor();\r\n\t\treturn editorPart;\r\n\t}", "public synchronized IEditorPart getActiveEditor() {\n return activeEditorMap.get(currentWindow);\n }", "public java.awt.Component getInPlaceCustomEditor () {\n if (modifiedEditor instanceof EnhancedPropertyEditor) {\n return ((EnhancedPropertyEditor)modifiedEditor).getInPlaceCustomEditor ();\n } else {\n return null;\n }\n }", "public Container getContainer() {\n return editor;\n }", "public MyTextPane getEditor() {\n\t\treturn editor;\n\t}", "@Nullable\n public JComponent getPreferredFocusedComponent() {\n return myEditor;\n }", "protected MigrationEditorOperation getEditor() {\n IEditorPart editorPart = PluginUtil.getActiveEditor();\n if (editorPart instanceof MigrationEditorOperation) {\n return (MigrationEditorOperation) editorPart;\n }\n return null;\n }", "public String getComponent() {\r\n\t\treturn component;\r\n\t}", "public BaseEditorPanel getEditorPanel ()\n {\n return _epanel;\n }", "public JComponent getComponent() {\n return getGradleUI().getComponent();\n }", "public EditorView getEditorView() {\n\t\treturn this.editorView;\n\t}", "public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }", "public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }", "public Object getComponentEditPart() {\n\t\treturn componentEditPart;\n\t}", "public Component getComponent() {\n return component;\n }", "public String getComponent() {\n return this.component;\n }", "public Entity getComponent() {\n return component;\n }", "public JComponent getComponent() {\n return itsComp;\n }", "protected final Component getComponent()\n\t{\n\t\treturn component;\n\t}", "public JFormattedTextField getEditComponent() {\r\n\t\tif(m_editComponent==null) {\r\n\t\t\t// create\r\n\t\t\tm_editComponent = createDefaultComponent(true,m_documentListener);\r\n\t\t\t//m_editComponent.getDocument().addDocumentListener(m_documentListener);\r\n\t\t}\r\n\t\treturn m_editComponent;\r\n\t}", "public Object \n getCellEditorValue() \n {\n BaseEditor editor = null;\n if(pField.getPluginName() != null) {\n try {\n\tPluginMgrClient pclient = PluginMgrClient.getInstance();\n\teditor = pclient.newEditor(pField.getPluginName(), \n\t\t\t\t pField.getPluginVersionID(), \n\t\t\t\t pField.getPluginVendor());\n }\n catch(PipelineException ex) {\n }\n }\n \n return editor; \n }", "public java.awt.Component getCustomEditor() {\n return new FormCustomEditor (this);\n }", "public JComponent getWidget() {\n return itsComp;\n }", "public Component getComponent() {\n\treturn component;\n}", "protected String getCurrentCode() {\n IDocument doc = EditorUtilities.getDocument(editor);\n if (doc != null) {\n return doc.get();\n }\n return null;\n }", "public PluginComponent getPluginComponent()\n {\n return (PluginComponent) getSource();\n }", "public Document getDocument() {\n return editor.getDocument();\n }", "public Component getComponent() {\n if (getUserObject() instanceof Component)\n return (Component)getUserObject();\n return null;\n }", "public EMAComponentSymbol getComponent() {\n return (EMAComponentSymbol) this.getEnclosingScope().getSpanningSymbol().get();\n }", "public final MWC.GUI.Editable.EditorType getInfo()\r\n\t{\r\n\t\tif (_myEditor == null)\r\n\t\t\t_myEditor = new FieldInfo(this, this.getName());\r\n\r\n\t\treturn _myEditor;\r\n\t}", "private ch.softenvironment.view.SimpleEditorPanel getPnlEditor() {\n\tif (ivjPnlEditor == null) {\n\t\ttry {\n\t\t\tivjPnlEditor = new ch.softenvironment.view.SimpleEditorPanel();\n\t\t\tivjPnlEditor.setName(\"PnlEditor\");\n\t\t\tivjPnlEditor.setLayout(new javax.swing.BoxLayout(getPnlEditor(), javax.swing.BoxLayout.X_AXIS));\n\t\t\tivjPnlEditor.setEnabled(true);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjPnlEditor;\n}", "public GComponent getFocusedComponent()\n {\n return this.focusedComponent;\n }", "protected Node getComponentNode() {\n return componentNode;\n }", "public PetalEditor getEditor() {\n return petal_editor;\n }", "public JComponent getComponent();", "@Override\n\tpublic Component getComponent() {\n\t\treturn this;\n\t}", "public TopEntityEditor getTopEditor() {\n if (topEditor == null) {\n try {\n if (entity == null) {\n entity = createEntity();\n }\n if (entity == null) {\n return null;\n }\n topEditor = new TopEntityEditor(entity, getEditorDao());\n currentEditor = topEditor;\n } catch (InvalidEntityBeanPropertyException iepex) {\n throw new RuntimeException(\"Failed to instantiate EntityEditorManager topEditor - invalid entity bean property exception thrown while creating TopEntityEditor\", iepex);\n } catch (Exception ex) {\n throw new RuntimeException(\"Exception while creating a new entity in EntityEditorManager.createEntity()\", ex);\n }\n }\n return topEditor;\n }", "public synchronized IEditorPart getActiveEditor(IWorkbenchWindow window) {\n return activeEditorMap.get(window);\n }", "public ProcessProvider getComponent() {\n return component;\n }", "public Object getItem ()\r\n {\r\n return editor.getText ();\r\n }", "public Element getElement() {\n if (view != null) {\n return view.getElement();\n }\n return editor.getDocument().getDefaultRootElement();\n }", "public JTextComponent getTextComponent() {\n\t\treturn panelVirtualKeyboard.getTextComponent();\n\t}", "@Override\n\tpublic Component getComponent() {\n\t\treturn toolbox;\n\t}", "public JComponent getContentComponent() {\r\n return this;\r\n }", "public AppComponent component(){\n return mComponent;\n }", "public NetworkEditor getNetworkEditor() {\n return panel.getNetworkEditor();\n }", "@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}", "JComponent getImpl();", "public static ApplicationComponent component() {\n return instance().applicationComponent;\n }", "protected ComponentModel getComponentModel()\n {\n return componentModel;\n }", "public Component getViewerComponent() {\n\t\treturn null;\n\t}", "@Override\n\tpublic java.lang.String getEditorType() {\n\t\treturn _scienceApp.getEditorType();\n\t}", "public String getCurrentPanel() {\n return this.currentPanel;\n }", "public FrameEditorInteraction getInteraction()\n {\n return interaction;\n }", "public MultiViewDescription getActiveDescription() {\n \treturn currentEditor;\n }", "@Override\n public SelectCurriculumVisualPanel getComponent() {\n if (component == null) {\n component = new SelectCurriculumVisualPanel();\n component.manager.addPropertyChangeListener(this);\n }\n return component;\n }", "public Optional<ComponentSymbol> getComponent() {\r\n if (!this.getEnclosingScope().getSpanningSymbol().isPresent()) {\r\n return Optional.empty();\r\n }\r\n if (!(this.getEnclosingScope().getSpanningSymbol().get() instanceof ComponentSymbol)) {\r\n return Optional.empty();\r\n }\r\n return Optional.of((ComponentSymbol) this.getEnclosingScope().getSpanningSymbol().get());\r\n }", "protected InteractionDrawingEditor getViewEditor()\n {\n return view.getEditor();\n }", "public Component getPopupComponent() {\r\n return _component;\r\n }", "public static EditorUI getEditorUI(JTextComponent target) {\n TextUI ui = target.getUI();\n return (ui instanceof BaseTextUI) \n ? ((BaseTextUI)ui).getEditorUI()\n : null;\n }", "@SuppressWarnings(\"unchecked\")\n public <T extends Component> T getComponent() {\n try {\n return (T) component;\n } catch (ClassCastException ex) {\n getLogger().log(Level.SEVERE,\n \"Component code/design type mismatch\", ex);\n }\n return null;\n }", "private JPanel getEkitCoreEditorHTMLPanel() {\r\n\r\n\t\tString toolbar = EkitCore.TOOLBAR_DEFAULT_SINGLE;\r\n\t\tif (ekitCoreEditorHTMLPanel == null) {\r\n\t\t\tekitCoreEditorHTMLPanel =\r\n\t\t\t\tnew EkitCore(null, null, updateComment, null, null, true,\r\n\t\t\t\t\tfalse, true, true, null, null, false, false, true, false,\r\n\t\t\t\t\ttoolbar);\r\n\t\t\tekitCoreEditorHTMLPanel.setBounds(new Rectangle(2, 34, 619, 189));\r\n\t\t\tekitCoreEditorHTMLPanel.setVisible(true);\r\n\t\t}\r\n\t\treturn ekitCoreEditorHTMLPanel;\r\n\t}", "public JComponent getWrappedComponent()\n {\n return field;\n }", "@Override\n public GeneralOrthoMclSettingsVisualPanel getComponent() {\n if (component == null) {\n component = new GeneralOrthoMclSettingsVisualPanel();\n\n }\n return component;\n }", "protected IDescriptor getActiveDescriptor() {\n if (editor != null) {\n return editor.getActiveDisplayPane().getDescriptor();\n }\n return null;\n }", "public Optional<ExpandedComponentInstanceSymbol> getComponentInstance() {\r\n if (!this.getEnclosingScope().getSpanningSymbol().isPresent()) {\r\n return Optional.empty();\r\n }\r\n if (!(this.getEnclosingScope().getSpanningSymbol()\r\n .get() instanceof ExpandedComponentInstanceSymbol)) {\r\n return Optional.empty();\r\n }\r\n return Optional\r\n .of((ExpandedComponentInstanceSymbol) this.getEnclosingScope().getSpanningSymbol().get());\r\n }", "public IWorkbenchPart getWorkbenchPart() {\n\t\treturn part;\n\t}", "public org.apache.axis.types.Token getComponentID() {\n return componentID;\n }", "public MWC.GUI.Editable.EditorType getInfo()\n\t{\n\t\tif (_myEditor == null)\n\t\t\t_myEditor = new InvestigateInfo(this);\n\n\t\treturn _myEditor;\n\t}", "protected JPanel getPanel() {\n\t\treturn (JPanel) window.getContentPane();\n\t}", "public MapEditor getMapEditor() {\n\t\treturn mapEditor;\n\t}", "public JPanel getPanel() {\n RepositoryPanel repositoryPanel = (RepositoryPanel) repositoryStep.getComponent();\n return repositoryPanel;\n }", "public Component getComponent()\n {\n if(null == _sqlPanel)\n {\n _sqlPanel = createSqlPanel();\n }\n return _sqlPanel;\n }", "public EditPanel getEditPanel() { return ep; }", "public InitialValueEditor getInitEditor() {\n return initEditor;\n }", "@Override\n public TreeCellEditor getCellEditor() {\n final TreeCellEditor ed = super.getCellEditor();\n if (ed == null) {\n return null;\n }\n if (wrapper == null) {\n wrapper = new RendererEditorWrapper();\n }\n wrapper.ed = ed;\n return wrapper;\n }", "public static IProject getCurrentProject() {\n\t\tIProject activeProject = null;\n\t\tIWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tIEditorPart editorPart = window.getActivePage().getActiveEditor();\n\t\tif (editorPart != null) {\n\t\t\tIEditorInput input = editorPart.getEditorInput();\n\t\t\tif (input instanceof IFileEditorInput) {\n\t\t\t\tIFile file = ((IFileEditorInput) input).getFile();\n\t\t\t\tactiveProject = file.getProject();\n\t\t\t}\n\t\t}\n\t\treturn activeProject;\n\t}", "private JTextArea getSelectedTextArea() {\r\n\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\tif (index == -1) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tJScrollPane sp = (JScrollPane) tabbedPane.getComponent(index);\r\n\t\tJTextArea editor = (JTextArea) sp.getViewport().getView();\r\n\t\t\r\n\t\treturn editor;\r\n\t}", "public IPrivateTestCompView.IContextElement currentContextElement() {\r\n return (IPrivateTestCompView.IContextElement) getCurrentElement();\r\n }", "@Override\r\n\tpublic IWorkbenchPart getPart() {\n\t\treturn super.getPart();\r\n\t}", "public JComponent getComponent() { return _panel; }", "Component getComponent() {\n/* 224 */ return this.component;\n/* */ }", "public ChatPanel getCurrentChat()\n {\n if(getChatTabCount() > 0)\n return (ChatPanel) chatTabbedPane.getSelectedComponent();\n else\n {\n int componentCount = mainPanel.getComponentCount();\n\n for (int i = 0; i < componentCount; i ++)\n {\n Component c = mainPanel.getComponent(i);\n\n if(c instanceof ChatPanel)\n return (ChatPanel) c;\n }\n }\n return null;\n }", "public Class<?> currentClass() {\n\t\treturn JetArgument.getCurrent().getElementClass();\n\t}", "@Override\n public Component getUiComponent() {\n return this;\n }", "public final AbstractControlComponent getController() {\n\t\treturn this.controller;\n\t}", "public String getChiefEditor() {\n return (String)getAttributeInternal(CHIEFEDITOR);\n }", "public DelegatingCredentialRequestEditor getEditor() {\n return editor;\n }", "private AddressEditorPanel getCenterAddressEditorPanel() {\r\n if (this.centerAddressEditorPanel == null) {\r\n this.centerAddressEditorPanel = new AddressEditorPanel();\r\n }\r\n return this.centerAddressEditorPanel;\r\n }", "public TextField getComponentNode() {\n return commandPromptTextArea;\n }", "public Object getCellEditorValue() {\r\n return component.getText();\r\n }", "public JComponent getMainComponent() {\n\t return mainPanel;\n\t}", "public ComponentConnector getDragSource() {\n return component;\n }" ]
[ "0.87984455", "0.8723224", "0.81440884", "0.7717952", "0.7517486", "0.74506146", "0.73953986", "0.7387162", "0.7385587", "0.7376131", "0.7352081", "0.72547257", "0.7157163", "0.7143282", "0.70814097", "0.70452106", "0.699219", "0.6956345", "0.6940736", "0.6940736", "0.686668", "0.6841037", "0.67999375", "0.67846584", "0.67627805", "0.6723367", "0.6691622", "0.66841835", "0.6606844", "0.66051704", "0.66008943", "0.659073", "0.6581467", "0.657465", "0.6542408", "0.64724207", "0.6438654", "0.64348006", "0.63806003", "0.6345059", "0.63156027", "0.62665963", "0.6263964", "0.6258148", "0.6239641", "0.6228833", "0.62198883", "0.61979777", "0.61913", "0.61899453", "0.6180152", "0.61702317", "0.61628354", "0.61521876", "0.6148507", "0.614533", "0.61316776", "0.6127324", "0.61172926", "0.61154366", "0.61081463", "0.6099487", "0.6097976", "0.60899734", "0.6078576", "0.6074181", "0.6047517", "0.60396504", "0.6028423", "0.6025573", "0.60030574", "0.59657913", "0.5965583", "0.59595263", "0.59529", "0.59294903", "0.59017855", "0.58913225", "0.5887252", "0.5883107", "0.5877244", "0.58742404", "0.58657265", "0.5856676", "0.5854002", "0.58502233", "0.5848359", "0.58345234", "0.5826648", "0.58098274", "0.5801416", "0.57632387", "0.5758099", "0.5757894", "0.57544297", "0.57537407", "0.5751381", "0.5749489", "0.5741281", "0.57390565" ]
0.7157917
12
literals (pref, end, operators), variables (stems, operators, macros)
public MorphRule(String morphRuleStr) { this.morphrule = morphRuleStr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String processShorthand() {\n line = line.replace(\" \",\"\");\n StringBuilder result = new StringBuilder();\n StringBuilder variable = new StringBuilder();\n StringBuilder value = new StringBuilder();\n //This is to get the shorthand operator used.\n boolean equalToCrossed = false;\n StringBuilder operate = new StringBuilder();\n for(int i=0; i<line.length(); i++) {\n char ch = line.charAt(i);\n //If the character ch is not a letter nor a digit,\n //and equal-to has not been crossed yet, then ch\n //is part of the operator.\n if(!Character.isLetterOrDigit(ch) && !equalToCrossed)\n operate.append(ch);\n //If the character is not part of the operator\n //and equal-to has not been crossed yet, then this\n //is part of the variable name.\n else if(!equalToCrossed)\n variable.append(ch);\n //Else, the character is part of value\n else\n value.append(ch);\n if(ch=='=')\n equalToCrossed = true;\n }\n String operator = operate.toString();\n result.append(variable);\n switch(operator) {\n case \"+=\" : result.append(\" is added with \"); break;\n case \"-=\" : result.append(\" is decreased by \"); break;\n case \"*=\" : result.append(\" is multiplied with \"); break;\n case \"/=\" : result.append(\" is divided by \"); break;\n case \"^=\" : result.append(\" is XOR'ed with \"); break;\n case \"|=\" : result.append(\" is OR'ed with \"); break;\n case \"&=\" : result.append(\" is AND'ed with \"); break;\n case \"<<=\" : result.append(\" is signed left-bit-shifted by \"); break;\n case \">>=\" : result.append(\" is signed right-bit-shifted by \"); break;\n case \">>>=\" : result.append(\" is unsigned right-bit-shifted by \"); break;\n default : result.append(\" \").append(operator).append(\" \"); break;\n }\n if(hasArrayAsMajorValue(value.toString())) {\n value = new StringBuilder(processArrayValue(value.toString()));\n }\n result.append(\"the value given by \").append(value);\n return result.toString();\n }", "String getLiteral();", "String getLiteral();", "@Test\r\n public void deriveFromAndAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M&=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH&=9\", \"(long,km^2/h)\");\r\n }", "private void jetBinopExprStr(){\n\t\tBinopExpr binopExpr = (BinopExpr) rExpr;\n\t\tValue op1 = binopExpr.getOp1();\n\t\tValue op2 = binopExpr.getOp2();\n\t\tZ3Type op1Z3Type = Z3MiscFunctions.v().z3Type(op1.getType());\n\t\tZ3Type op2Z3Type = Z3MiscFunctions.v().z3Type(op2.getType());\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tBinopExprType binopType = Z3MiscFunctions.v().getBinopExprType(binopExpr);\n\t\tswitch(binopType){\n\t\t//[start]ADD\n\t\tcase ADD:\n\t\t\t//add_expr = immediate \"+\" immediate;\n\t\t\t//immediate = constant | local;\n\t\t\t//only Int, Real, String can ADD\n\t\t\t//Exceptional Cases: \"084\" + 42; we exclude them\n\t\t\tassert((op1Z3Type == Z3Type.Z3String && op2Z3Type == Z3Type.Z3String) ||\n\t\t\t\t\t(op1Z3Type != Z3Type.Z3String && op2Z3Type != Z3Type.Z3String));\n\t\t\tif(op1Z3Type == Z3Type.Z3String ){\n\t\t\t\t//( Concat \"te\" y1 )\n\t\t\t\tsb.append(\"( Concat \");\n\t\t\t}else{\n\t\t\t\t//(+ 2 i2)\n\t\t\t\tsb.append(\"(+ \");\n\t\t\t}\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\" )\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end]ADD\n\t\tcase AND:\n\t\t\t//and_expr = immediate \"&\" immediate;\n\t\t\t//TODO\n\t\t\t//assert(false) : \"AND Expr\";\n\t\t\tbreak;\n\t\t//[start] DIV\n\t\tcase DIV:\n\t\t\t//div_expr = immediate \"/\" immediate;\n\t\t\t//(div a b) integer division\n\t\t\t//(/ a b) float division\n\t\t\tif(op1Z3Type == Z3Type.Z3Real || op2Z3Type == Z3Type.Z3Real){\n\t\t\t\tsb.append(\"(/ \");\n\t\t\t}else{\n\t\t\t\tsb.append(\"(div \");\n\t\t\t}\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] DIV\n\t\t//[start] EQ\n\t\tcase EQ:\n\t\t\t//eq_expr = immediate \"==\" immediate;\n\t\t\t//b = r1 == r2\n\t\t\t//(assert (= b (= r1 r2)))\n\t\t\tsb.append(\"(= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] EQ\n\t\t//[start] GE\n\t\tcase GE:\n\t\t\t//ge_expr = immediate \">=\" immediate;\n\t\t\t//b = r1 >= r2\n\t\t\t//(assert (= b (>= r1 r2)))\n\t\t\tsb.append(\"(>= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] GE\n\t\t//[start] GT\n\t\tcase GT:\n\t\t\t//gt_expr = immediate \">\" immediate;\n\t\t\t//b = r1 > r2\n\t\t\t//(assert (= b (> r1 r2)))\n\t\t\tsb.append(\"(> \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] GT\n\t\t//[start] LE\n\t\tcase LE:\n\t\t\t//le_expr = immediate \"<=\" immediate;\n\t\t\t//b = r1 <= r2\n\t\t\t//(assert (= b (<= r1 r2)))\n\t\t\tsb.append(\"(<= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] LE\n\t\t//[start] LT\n\t\tcase LT:\n\t\t\t//lt_expr = immediate \"<\" immediate;\n\t\t\t//b = r1 < r2\n\t\t\t//(assert (= b (< r1 r2)))\n\t\t\tsb.append(\"(< \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] LT\n\t\t//[start] MUL\n\t\tcase MUL:\n\t\t\t//mul_expr = immediate \"*\" immediate;\n\t\t\t//(* op1 op2)\n\t\t\tsb.append(\"(* \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] MUL\n\t\t//[start] NE\n\t\tcase NE:\n\t\t\t//ne_expr = immediate \"!=\" immediate;\n\t\t\t//(not (= op1 op2))\n\t\t\tsb.append(\"(not (= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\"))\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] NE\n\t\tcase OR:\n\t\t\t//or_expr = immediate \"|\" immediate;\n\t\t\t//TODO\n\t\t\tassert(false) : \"OR Expr\";\n\t\t\tbreak;\n\t\t//[start] REM\n\t\tcase REM:\n\t\t\t//rem_expr = immediate \"%\" immediate;\n\t\t\t//(rem op1 op2)\n\t\t\tsb.append(\"(rem \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] REM\n\t\t//[start] SUB\n\t\tcase SUB:\n\t\t\t//sub_expr = immediate \"-\" immediate;\n\t\t\t//(- op1 op2)\n\t\t\tsb.append(\"(- \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] SUB\n\t\t}\n\t}", "public interface AssignmentConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int AND = 1;\n /** RegularExpression Id. */\n int OR = 2;\n /** RegularExpression Id. */\n int IMPLIES = 3;\n /** RegularExpression Id. */\n int EQUIVALENT = 4;\n /** RegularExpression Id. */\n int PREDICATE = 5;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<AND>\",\n \"<OR>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<PREDICATE>\",\n };\n\n}", "VariableExp createVariableExp();", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "public interface ForteLangConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMPARATOR_OP = 1;\n /** RegularExpression Id. */\n int BOOLEAN_OP = 2;\n /** RegularExpression Id. */\n int SET_OP = 3;\n /** RegularExpression Id. */\n int OP = 4;\n /** RegularExpression Id. */\n int CONCAT = 5;\n /** RegularExpression Id. */\n int SELECT = 6;\n /** RegularExpression Id. */\n int CONTAINS = 7;\n /** RegularExpression Id. */\n int NUMBER = 8;\n /** RegularExpression Id. */\n int FLOATING_POINT_NUMBER = 9;\n /** RegularExpression Id. */\n int BOOLEAN = 10;\n /** RegularExpression Id. */\n int STRING = 11;\n /** RegularExpression Id. */\n int REGEX_STRING = 12;\n /** RegularExpression Id. */\n int INCLUDE = 13;\n /** RegularExpression Id. */\n int IN = 14;\n /** RegularExpression Id. */\n int MATCH = 15;\n /** RegularExpression Id. */\n int OPENBRACKET = 16;\n /** RegularExpression Id. */\n int CLOSEBRACKET = 17;\n /** RegularExpression Id. */\n int OPENSBRACKET = 18;\n /** RegularExpression Id. */\n int CLOSESBRACKET = 19;\n /** RegularExpression Id. */\n int COMMA = 20;\n /** RegularExpression Id. */\n int EQUALS = 21;\n /** RegularExpression Id. */\n int SEMICOLON = 22;\n /** RegularExpression Id. */\n int OPENCBRACKET = 23;\n /** RegularExpression Id. */\n int CLOSECBRACKET = 24;\n /** RegularExpression Id. */\n int NUM = 25;\n /** RegularExpression Id. */\n int LST = 26;\n /** RegularExpression Id. */\n int SET = 27;\n /** RegularExpression Id. */\n int FUN = 28;\n /** RegularExpression Id. */\n int BOO = 29;\n /** RegularExpression Id. */\n int STR = 30;\n /** RegularExpression Id. */\n int COLON = 31;\n /** RegularExpression Id. */\n int VAR_NAME = 32;\n /** RegularExpression Id. */\n int FUNCTION_ARROW = 33;\n /** RegularExpression Id. */\n int GUARD_START = 34;\n /** RegularExpression Id. */\n int GUARD = 35;\n /** RegularExpression Id. */\n int GUARD_ARROW = 36;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int BlockComment = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<COMPARATOR_OP>\",\n \"<BOOLEAN_OP>\",\n \"<SET_OP>\",\n \"<OP>\",\n \"\\\"++\\\"\",\n \"\\\".\\\"\",\n \"\\\"?\\\"\",\n \"<NUMBER>\",\n \"<FLOATING_POINT_NUMBER>\",\n \"<BOOLEAN>\",\n \"<STRING>\",\n \"<REGEX_STRING>\",\n \"\\\"include\\\"\",\n \"\\\"in\\\"\",\n \"\\\"match\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\",\\\"\",\n \"\\\"=\\\"\",\n \"\\\";\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"num\\\"\",\n \"\\\"list\\\"\",\n \"\\\"set\\\"\",\n \"\\\"func\\\"\",\n \"\\\"bool\\\"\",\n \"\\\"str\\\"\",\n \"\\\":\\\"\",\n \"<VAR_NAME>\",\n \"\\\"->\\\"\",\n \"\\\"|>\\\"\",\n \"\\\"|\\\"\",\n \"\\\"->>\\\"\",\n \"<token of kind 37>\",\n \"<token of kind 38>\",\n \"\\\"#[\\\"\",\n \"\\\"#[\\\"\",\n \"<token of kind 41>\",\n \"\\\"]#\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n };\n\n}", "public static void main(String[] args)\n {\n int i = 1 + 1;\n \n //Concat String\n String s = \"My\" + \" \" + \"String\";\n \n int r = 4;\n int ff = 4;\n System.out.println(\"String\" + r + ff);\n System.out.println(\"String\" + ( r + ff ));\n //If the left or the rigth operator is a String, + will be a String concatenation\n //If both operands are numeric, + will be an addition operator\n \n /*************************************/\n /** Operator = */\n /*************************************/\n //Assign a primitive value to a variable\n int ii = 4;\n \n //Assign a value to an object reference variable\n Object o = new Object();\n \n /*************************************/\n /** Compound assignment operators */\n /*************************************/\n //+=,-=,*=,/=\n// int x *= 2+5;//forbidden, compound assignment operators\n int x = 1;\n \n x *= 2+5;\n //equals to\n x = x * (2+5);\n\n /*************************************/\n /** Relational operators */\n /*************************************/\n //>,>=,<,<=,==,!=\n boolean b = false;\n if(b = false){System.out.println(\"false\");}\n //The result of any assignment is the value of the variable after assignment !\n \n /** == with enum values **/\n //It's the same than equals()\n \n /*************************************/\n /** Arithmetic operators */\n /*************************************/ \n //+,-,/,*,%\n \n /*************************************/\n /** Inc and Decrement operators */\n /*************************************/\n int azerty = 4;\n //pre incr and decrementation\n System.out.println(++azerty);//incr first, print after\n System.out.println(--azerty);//desc first, print after\n \n //post incr and decrementation\n azerty = 4;\n System.out.println(azerty++);//print first, inc after\n System.out.println(azerty--);//print first, desc after\n \n /*************************************/\n /** Logical operator */\n /*************************************/\n //|| OR\n if(theTruth() || theTruth()){\n //Do something\n }\n //if the first operator is true, the second will not be evaluated\n \n //| OR\n if(theTruth() | theTruth()){\n //Do something\n }\n //The two operators are evalued\n \n //XOR ^\n System.out.println(true ^ true);//false\n System.out.println(true ^ false);//true\n System.out.println(false ^ true);//true\n System.out.println(false ^ false);//false\n //The two operators are evalued\n \n //logical operator !\n if(false && false || true){\n System.out.println(\"?\");\n }\n if( (false && false) || true){\n System.out.println(\"??\");\n }\n if(false && false | true){\n System.out.println(\"???\");\n }\n if( (false && false) | true){\n System.out.println(\"????\");\n }\n //| operator is evaluated first!!!\n }", "@Override String opStr() { return \"var\"; }", "public static void main(String[] args){\r\n\r\n IStmt lab2ex1 = new CompStmt(new AssignStmt(\"v\", new ConstExp(2)), new PrintStmt(new VarExp(\"v\")));\r\n\r\n /*\r\n * lab2ex2\r\n * a = 2 + 3 * 5;\r\n * b = a + 1;\r\n * print(b)\r\n *\r\n * */\r\n\r\n IStmt lab2ex2 = new CompStmt(new AssignStmt(\"a\", new ArithExp('+', new ConstExp(2), new ArithExp('*', new ConstExp(3), new ConstExp(5)))), new CompStmt(new AssignStmt(\"b\", new ArithExp('+', new VarExp(\"a\"), new ConstExp(1))), new PrintStmt(new VarExp(\"b\"))));\r\n\r\n /*\r\n * lab2ex3\r\n * a = 2 - 2;\r\n * if a then v = 2 else v = 3\r\n * print(v)\r\n *\r\n * */\r\n\r\n IStmt lab2ex3 = new CompStmt(new AssignStmt(\"a\", new ArithExp('-', new ConstExp(2), new ConstExp(2))), new CompStmt(new IfStmt(new VarExp(\"a\"), new AssignStmt(\"v\", new ConstExp(2)), new AssignStmt(\"v\", new ConstExp(3))), new PrintStmt(new VarExp(\"v\"))));\r\n\r\n /*\r\n * lab3ex1\r\n * openRFile(var_f, \"test.in\");\r\n * readFile(var_f, var_c); print(var_c);\r\n * if var_c then readFile(var_f, var_c); print(var_c)\r\n * else print(0)\r\n * closeRFile(var_f)\r\n *\r\n * */\r\n\r\n IStmt lab3ex1 = new CompStmt(new OpenRFileStmt(\"var_f\", \"test1.in\"),\r\n new CompStmt(\r\n new ReadFileStmt(new VarExp(\"var_f\"), \"var_c\"),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"var_c\")),\r\n new CompStmt(\r\n new IfStmt(\r\n new VarExp(\"var_c\"),\r\n new CompStmt(\r\n new ReadFileStmt(new VarExp(\"var_f\"), \"var_c\"),\r\n new PrintStmt(new VarExp(\"var_c\"))\r\n ),\r\n new PrintStmt(new ConstExp(0))\r\n ),\r\n new CloseRFileStmt(new VarExp(\"var_f\"))\r\n )\r\n )\r\n )\r\n );\r\n\r\n /**\r\n * lab3ex2\r\n * openRFile(var_f + 2, var_c); print(var_c);\r\n * (if var_c then readFile(var_f, var_c); print(var_c)\r\n * else print(0));\r\n * closeRFile(var_f)\r\n *\r\n */\r\n\r\n IStmt lab3ex2 = new CompStmt(new OpenRFileStmt(\"var_f\", \"test.in\"),\r\n new CompStmt(\r\n new ReadFileStmt(new ArithExp('+', new VarExp(\"var_f\"), new ConstExp(2)), \"var_c\"),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"var_c\")),\r\n new CompStmt(\r\n new IfStmt(\r\n new VarExp(\"var_c\"),\r\n new CompStmt(\r\n new ReadFileStmt(new VarExp(\"var_f\"), \"var_c\"),\r\n new PrintStmt(new VarExp(\"var_c\"))\r\n ),\r\n new PrintStmt(new ConstExp(0))\r\n ),\r\n new CloseRFileStmt(new VarExp(\"var_f\"))\r\n )\r\n )\r\n )\r\n );\r\n\r\n\r\n /*\r\n * v = 10; new(v, 20); new(a, 22); wH(a, 30); print(a); print(rH(a)); a = 0;\r\n *\r\n * */\r\n\r\n IStmt lab4ex1 = new CompStmt(new AssignStmt(\"v\", new ConstExp(10)),\r\n new CompStmt(\r\n new NewStmt(\"v\", new ConstExp(20)),\r\n new CompStmt(\r\n new NewStmt(\"a\", new ConstExp(22)),\r\n new CompStmt(\r\n new WriteHeapStmt(\"a\", new ConstExp(30)),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"a\")),\r\n new CompStmt(\r\n new PrintStmt(new ReadHeapExp(\"a\")),\r\n new AssignStmt(\"a\", new ConstExp(0))\r\n )\r\n )\r\n )\r\n )\r\n )\r\n );\r\n\r\n\r\n /**\r\n *\r\n * Lab5ex1: 10 + (2 < 6) = 11\r\n *\r\n * */\r\n\r\n\r\n IStmt lab5ex1 = new CompStmt(new AssignStmt(\"P\", new ArithExp('+', new ConstExp(10),\r\n new BooleanExp(new ConstExp(2), new ConstExp(6), \"<\"))),\r\n new PrintStmt(new VarExp(\"P\")));\r\n\r\n\r\n /*\r\n *\r\n * Lab5ex2: (10 + 2) < 6\r\n *\r\n * **/\r\n\r\n IStmt lab5ex2 = new CompStmt(new AssignStmt(\"Q\", new BooleanExp(new ArithExp('+',\r\n new ConstExp(10), new ConstExp(2)), new ConstExp(6), \"<\")),\r\n new PrintStmt(new VarExp(\"Q\")));\r\n\r\n\r\n /*\r\n *\r\n * v = 6;\r\n * (while (v - 4) print(v); v = v - 1)\r\n * print(v)\r\n *\r\n ***/\r\n\r\n AssignStmt as = new AssignStmt(\"v\", new ConstExp(6));\r\n IStmt auxlab5ex3 = new CompStmt(new WhileStmt(new BooleanExp(new VarExp(\"v\"),\r\n new ConstExp(4), \">=\"), new CompStmt(new PrintStmt(new VarExp(\"v\")),\r\n new AssignStmt(\"v\", new ArithExp('-', new VarExp(\"v\"), new ConstExp(1))))),\r\n new PrintStmt(new VarExp(\"v\")));\r\n\r\n IStmt lab5ex3 = new CompStmt(as, auxlab5ex3);\r\n\r\n\r\n /**\r\n *\r\n * la6ex1\r\n * v = 10; new(a, 22);\r\n * fork(wH(a, 30); v = 32; print(v); print(rH(a)));\r\n * print(v); print(rH(a))\r\n *\r\n * */\r\n\r\n IStmt lab6ex1 = new CompStmt(\r\n new CompStmt(\r\n new AssignStmt(\"v\", new ConstExp(10)),\r\n new NewStmt(\"a\", new ConstExp(22))\r\n ),\r\n new CompStmt(\r\n new ForkStmt(\r\n new CompStmt(\r\n new WriteHeapStmt(\"a\", new ConstExp(30)),\r\n new CompStmt(\r\n new AssignStmt(\"v\", new ConstExp(32)),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"v\")),\r\n new PrintStmt(new ReadHeapExp(\"a\"))\r\n )\r\n )\r\n )\r\n ),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"v\")),\r\n new PrintStmt(new ReadHeapExp(\"a\"))\r\n )\r\n )\r\n );\r\n\r\n IStmt lab6ex2 = new CompStmt(\r\n new CompStmt(\r\n new AssignStmt(\"v\", new ConstExp(10)),\r\n new NewStmt(\"a\", new ConstExp(22))\r\n ),\r\n new CompStmt(\r\n new ForkStmt(\r\n new CompStmt(\r\n new WriteHeapStmt(\"a\", new ConstExp(30)),\r\n new CompStmt(\r\n new AssignStmt(\"v\", new ConstExp(32)),\r\n new CompStmt(\r\n new PrintStmt(new VarExp(\"v\")),\r\n new PrintStmt(new ReadHeapExp(\"a\"))\r\n )\r\n )\r\n )\r\n ),\r\n new ForkStmt(new CompStmt(\r\n new PrintStmt(new VarExp(\"v\")),\r\n new PrintStmt(new ReadHeapExp(\"a\")))\r\n )\r\n )\r\n );\r\n\r\n\r\n\r\n TextMenu menu = new TextMenu(new MyDictionary<String, Command>(new HashMap<String, Command>()));\r\n menu.addCommand(new ExitCommand(\"0\", \"Exit\"));\r\n menu.addCommand(new RunExample(\"1\", lab2ex1.toString(), getNewController(lab2ex1)));\r\n menu.addCommand(new RunExample(\"2\", lab2ex2.toString(), getNewController(lab2ex2)));\r\n menu.addCommand(new RunExample(\"3\", lab2ex3.toString(), getNewController(lab2ex3)));\r\n menu.addCommand(new RunExample(\"4\", lab3ex1.toString(), getNewController(lab3ex1)));\r\n menu.addCommand(new RunExample(\"5\", lab3ex2.toString(), getNewController(lab3ex2)));\r\n menu.addCommand(new RunExample(\"6\", lab4ex1.toString(), getNewController(lab4ex1)));\r\n menu.addCommand(new RunExample(\"7\", lab5ex1.toString(), getNewController(lab5ex1)));\r\n menu.addCommand(new RunExample(\"8\", lab5ex2.toString(), getNewController(lab5ex2)));\r\n menu.addCommand(new RunExample(\"9\", lab5ex3.toString(), getNewController(lab5ex3)));\r\n menu.addCommand(new RunExample(\"10\", lab6ex1.toString(), getNewController(lab6ex1)));\r\n menu.addCommand(new RunExample(\"11\", lab6ex2.toString(), getNewController(lab6ex2)));\r\n\r\n menu.show();\r\n }", "StringLiteralExp createStringLiteralExp();", "@Test\r\n public void deriveFromDoubleLeftAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M<<=9\", \"(int,m)\");\r\n //example with int m - char\r\n check(\"varI_M<<=\\'c\\'\", \"(int,m)\");\r\n }", "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int IMPLIES = 1;\n /** RegularExpression Id. */\n int EQUIVALENT = 2;\n /** RegularExpression Id. */\n int AND = 3;\n /** RegularExpression Id. */\n int OR = 4;\n /** RegularExpression Id. */\n int LBRACKET = 5;\n /** RegularExpression Id. */\n int RBRACKET = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int EQUALS = 8;\n /** RegularExpression Id. */\n int FORALL = 9;\n /** RegularExpression Id. */\n int THEREEXISTS = 10;\n /** RegularExpression Id. */\n int VARIABLE = 11;\n /** RegularExpression Id. */\n int PREDICATE = 12;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<AND>\",\n \"<OR>\",\n \"<LBRACKET>\",\n \"<RBRACKET>\",\n \"<NOT>\",\n \"<EQUALS>\",\n \"<FORALL>\",\n \"<THEREEXISTS>\",\n \"<VARIABLE>\",\n \"<PREDICATE>\",\n };\n\n}", "@Test\n public void testComponentExecutionWithConcatExpressionAndAssignmentOperator() throws ParseException\n {\n ExpressionEvaluator evaluator = new ExpressionEvaluator(\"message = concat(\\\"Good \\\", period)\");\n Map<String, Object> map = new HashMap<>();\n map.put(VARIABLE_PERIOD, MORNING);\n evaluator.evaluate(map, true);\n assertEquals(2, map.size());\n assertEquals(GOOD_MORNING, map.get(\"message\"));\n }", "@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }", "public LiteralExpression (String str){\n _value = str;\n }", "Rule Literal() {\n // Push 1 LiteralNode onto the value stack\n return Sequence(\n FirstOf(\n SingleQuotedLiteral(),\n DoubleQuotedLiteral()),\n actions.pushLiteralNode());\n }", "@Test\r\n public void deriveFromOrAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M|=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH|=9\", \"(long,km^2/h)\");\r\n }", "public interface VariableExpander {\n /**\n * Return the input string with any variables replaced by their\n * corresponding value. If there are no variables in the string,\n * then the input parameter is returned unaltered.\n */\n public String expand(String param);\n }", "public static void main(String[] args) {\n int static2 = 22;\n int _static = 22;\n int $tatic = 45;\n int staticVar = 23;\n\n int salary$ = 55;\n // int 1stMonthSalary = 55; --- ERROR, cannot start with number\n int $ = 10;\n int _ = 3;\n System.out.println(\"salary $ = \" + $); // these variable work....but not recommended\n System.out.println(\"weekly _ = \" + _);// these variable work....but not recommended\n // int number-of-friends = 400; --- cannot use dashes ----> ERROR\n\n //int number_of_friends = 500; ---- NOT CONVENTION\n int numberOfFriends = 500; // use this camel case\n\n\n\n\n\n\n\n\n\n }", "String getVariableDefinition();", "public interface GoConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int integer_literal = 8;\n /** RegularExpression Id. */\n int floating_literal = 9;\n /** RegularExpression Id. */\n int boolean_literal = 10;\n /** RegularExpression Id. */\n int string_literal = 11;\n /** RegularExpression Id. */\n int numbers = 12;\n /** RegularExpression Id. */\n int valid_characters = 13;\n /** RegularExpression Id. */\n int double_quotes_in_string = 14;\n /** RegularExpression Id. */\n int back_slash = 15;\n /** RegularExpression Id. */\n int tabulations = 16;\n /** RegularExpression Id. */\n int addition = 17;\n /** RegularExpression Id. */\n int subtraction = 18;\n /** RegularExpression Id. */\n int multiplication = 19;\n /** RegularExpression Id. */\n int division = 20;\n /** RegularExpression Id. */\n int remainder = 21;\n /** RegularExpression Id. */\n int increment = 22;\n /** RegularExpression Id. */\n int decrement = 23;\n /** RegularExpression Id. */\n int equal = 24;\n /** RegularExpression Id. */\n int not_equal = 25;\n /** RegularExpression Id. */\n int greater_than = 26;\n /** RegularExpression Id. */\n int less_than = 27;\n /** RegularExpression Id. */\n int greater_than_or_equal = 28;\n /** RegularExpression Id. */\n int less_than_or_equal = 29;\n /** RegularExpression Id. */\n int bitwise_and = 30;\n /** RegularExpression Id. */\n int bitwise_inclusive_or = 31;\n /** RegularExpression Id. */\n int bitwise_exclusive_or = 32;\n /** RegularExpression Id. */\n int left_shift = 33;\n /** RegularExpression Id. */\n int right_shift = 34;\n /** RegularExpression Id. */\n int and = 35;\n /** RegularExpression Id. */\n int or = 36;\n /** RegularExpression Id. */\n int not = 37;\n /** RegularExpression Id. */\n int assignment = 38;\n /** RegularExpression Id. */\n int dynamic_assignment = 39;\n /** RegularExpression Id. */\n int addition_assignment = 40;\n /** RegularExpression Id. */\n int subtraction_assignment = 41;\n /** RegularExpression Id. */\n int multiplication_assignment = 42;\n /** RegularExpression Id. */\n int division_assignment = 43;\n /** RegularExpression Id. */\n int remainder_assignment = 44;\n /** RegularExpression Id. */\n int bitwise_and_assignment = 45;\n /** RegularExpression Id. */\n int bitwise_inclusive_or_assignment = 46;\n /** RegularExpression Id. */\n int bitwise_exclusive_or_assignment = 47;\n /** RegularExpression Id. */\n int left_shift_assignment = 48;\n /** RegularExpression Id. */\n int right_shift_assignment = 49;\n /** RegularExpression Id. */\n int opening_round_brackets = 50;\n /** RegularExpression Id. */\n int closing_round_brackets = 51;\n /** RegularExpression Id. */\n int opening_curly_brackets = 52;\n /** RegularExpression Id. */\n int closing_curly_brackets = 53;\n /** RegularExpression Id. */\n int opening_square_brackets = 54;\n /** RegularExpression Id. */\n int closing_square_brackets = 55;\n /** RegularExpression Id. */\n int semicolon = 56;\n /** RegularExpression Id. */\n int colon = 57;\n /** RegularExpression Id. */\n int dot = 58;\n /** RegularExpression Id. */\n int comma = 59;\n /** RegularExpression Id. */\n int double_quotes = 60;\n /** RegularExpression Id. */\n int quotes = 61;\n /** RegularExpression Id. */\n int rw_break = 62;\n /** RegularExpression Id. */\n int rw_default = 63;\n /** RegularExpression Id. */\n int rw_func = 64;\n /** RegularExpression Id. */\n int rw_interface = 65;\n /** RegularExpression Id. */\n int rw_select = 66;\n /** RegularExpression Id. */\n int rw_case = 67;\n /** RegularExpression Id. */\n int rw_defer = 68;\n /** RegularExpression Id. */\n int rw_go = 69;\n /** RegularExpression Id. */\n int rw_map = 70;\n /** RegularExpression Id. */\n int rw_struct = 71;\n /** RegularExpression Id. */\n int rw_chan = 72;\n /** RegularExpression Id. */\n int rw_else = 73;\n /** RegularExpression Id. */\n int rw_goto = 74;\n /** RegularExpression Id. */\n int rw_package = 75;\n /** RegularExpression Id. */\n int rw_switch = 76;\n /** RegularExpression Id. */\n int rw_const = 77;\n /** RegularExpression Id. */\n int rw_fallthrough = 78;\n /** RegularExpression Id. */\n int rw_if = 79;\n /** RegularExpression Id. */\n int rw_range = 80;\n /** RegularExpression Id. */\n int rw_type = 81;\n /** RegularExpression Id. */\n int rw_continue = 82;\n /** RegularExpression Id. */\n int rw_for = 83;\n /** RegularExpression Id. */\n int rw_import = 84;\n /** RegularExpression Id. */\n int rw_return = 85;\n /** RegularExpression Id. */\n int rw_var = 86;\n /** RegularExpression Id. */\n int dt_uint8 = 87;\n /** RegularExpression Id. */\n int dt_uint16 = 88;\n /** RegularExpression Id. */\n int dt_uint32 = 89;\n /** RegularExpression Id. */\n int dt_uint64 = 90;\n /** RegularExpression Id. */\n int dt_int8 = 91;\n /** RegularExpression Id. */\n int dt_int16 = 92;\n /** RegularExpression Id. */\n int dt_int32 = 93;\n /** RegularExpression Id. */\n int dt_int64 = 94;\n /** RegularExpression Id. */\n int dt_float32 = 95;\n /** RegularExpression Id. */\n int dt_float64 = 96;\n /** RegularExpression Id. */\n int dt_complex64 = 97;\n /** RegularExpression Id. */\n int dt_complex128 = 98;\n /** RegularExpression Id. */\n int dt_byte = 99;\n /** RegularExpression Id. */\n int dt_rune = 100;\n /** RegularExpression Id. */\n int dt_uint = 101;\n /** RegularExpression Id. */\n int dt_int = 102;\n /** RegularExpression Id. */\n int dt_uintptr = 103;\n /** RegularExpression Id. */\n int dt_string = 104;\n /** RegularExpression Id. */\n int dt_bool = 105;\n /** RegularExpression Id. */\n int main = 106;\n /** RegularExpression Id. */\n int library_fmt = 107;\n /** RegularExpression Id. */\n int rw_printf = 108;\n /** RegularExpression Id. */\n int rw_scanf = 109;\n /** RegularExpression Id. */\n int id = 110;\n /** RegularExpression Id. */\n int invalid_string = 111;\n /** RegularExpression Id. */\n int invalid_string_import = 112;\n /** RegularExpression Id. */\n int invalid_string_import_1 = 113;\n /** RegularExpression Id. */\n int invalid_string_import_2 = 114;\n /** RegularExpression Id. */\n int is_not_id = 115;\n /** RegularExpression Id. */\n int invalid_character = 116;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\r\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"<integer_literal>\",\n \"<floating_literal>\",\n \"<boolean_literal>\",\n \"<string_literal>\",\n \"<numbers>\",\n \"<valid_characters>\",\n \"\\\"\\\\\\\\\\\\\\\"\\\"\",\n \"\\\"\\\\\\\\\\\"\",\n \"<tabulations>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"&\\\"\",\n \"\\\"|\\\"\",\n \"\\\"^\\\"\",\n \"\\\"<<\\\"\",\n \"\\\">>\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"||\\\"\",\n \"\\\"!\\\"\",\n \"\\\"=\\\"\",\n \"\\\":=\\\"\",\n \"\\\"+=\\\"\",\n \"\\\"-=\\\"\",\n \"\\\"*=\\\"\",\n \"\\\"/=\\\"\",\n \"\\\"%=\\\"\",\n \"\\\"&=\\\"\",\n \"\\\"|=\\\"\",\n \"\\\"^=\\\"\",\n \"\\\"<<=\\\"\",\n \"\\\">>=\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\":\\\"\",\n \"\\\".\\\"\",\n \"\\\",\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"break\\\"\",\n \"\\\"default\\\"\",\n \"\\\"func\\\"\",\n \"\\\"interface\\\"\",\n \"\\\"select\\\"\",\n \"\\\"case\\\"\",\n \"\\\"defer\\\"\",\n \"\\\"go\\\"\",\n \"\\\"map\\\"\",\n \"\\\"struct\\\"\",\n \"\\\"chan\\\"\",\n \"\\\"else\\\"\",\n \"\\\"goto\\\"\",\n \"\\\"package\\\"\",\n \"\\\"switch\\\"\",\n \"\\\"const\\\"\",\n \"\\\"fallthrough\\\"\",\n \"\\\"if\\\"\",\n \"\\\"range\\\"\",\n \"\\\"type\\\"\",\n \"\\\"continue\\\"\",\n \"\\\"for\\\"\",\n \"\\\"import\\\"\",\n \"\\\"return\\\"\",\n \"\\\"var\\\"\",\n \"\\\"uint8\\\"\",\n \"\\\"uint16\\\"\",\n \"\\\"uint32\\\"\",\n \"\\\"uint64\\\"\",\n \"\\\"int8\\\"\",\n \"\\\"int16\\\"\",\n \"\\\"int32\\\"\",\n \"\\\"int64\\\"\",\n \"\\\"float32\\\"\",\n \"\\\"float64\\\"\",\n \"\\\"complex64\\\"\",\n \"\\\"complex128\\\"\",\n \"\\\"byte\\\"\",\n \"\\\"rune\\\"\",\n \"\\\"uint\\\"\",\n \"\\\"int\\\"\",\n \"\\\"uintptr\\\"\",\n \"\\\"string\\\"\",\n \"\\\"bool\\\"\",\n \"\\\"main\\\"\",\n \"\\\"fmt\\\"\",\n \"\\\"Printf\\\"\",\n \"\\\"Scanf\\\"\",\n \"<id>\",\n \"<invalid_string>\",\n \"<invalid_string_import>\",\n \"<invalid_string_import_1>\",\n \"<invalid_string_import_2>\",\n \"<is_not_id>\",\n \"<invalid_character>\",\n };\n\n}", "public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}", "Literal createLiteral();", "Literal createLiteral();", "private void initOperators(Set<String> s) {\n\t\ts.add(\"=\");\n\t\ts.add(\"+\");\n\t\ts.add(\"-\");\n\t\ts.add(\"*\");\n\t\ts.add(\"/\");\n\t\ts.add(\"(\");\n\t\ts.add(\")\");\n\t\ts.add(\";\");\n }", "private boolean literals() {\r\n return OPT(GO() && literal() && literals());\r\n }", "private String literal(String str) {\n StringBuffer buffer = new StringBuffer();\n \n buffer.append(\"'\");\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case '\\'':\n buffer.append(\"''\");\n break;\n default:\n buffer.append(str.charAt(i));\n break;\n }\n }\n buffer.append(\"'\");\n return buffer.toString();\n }", "public interface LTLParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int KAS = 9;\n /** RegularExpression Id. */\n int KATE = 10;\n /** RegularExpression Id. */\n int KDATE = 11;\n /** RegularExpression Id. */\n int KEXISTS = 12;\n /** RegularExpression Id. */\n int KFORALL = 13;\n /** RegularExpression Id. */\n int KFORMULA = 14;\n /** RegularExpression Id. */\n int KIN = 15;\n /** RegularExpression Id. */\n int KNUMBER = 16;\n /** RegularExpression Id. */\n int KPI = 17;\n /** RegularExpression Id. */\n int KRENAME = 18;\n /** RegularExpression Id. */\n int KSET = 19;\n /** RegularExpression Id. */\n int KSTRING = 20;\n /** RegularExpression Id. */\n int KSUBFORMULA = 21;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 22;\n /** RegularExpression Id. */\n int REAL_LITERAL = 23;\n /** RegularExpression Id. */\n int EXPONENT = 24;\n /** RegularExpression Id. */\n int STRING_LITERAL = 25;\n /** RegularExpression Id. */\n int DESC_LITERAL = 26;\n /** RegularExpression Id. */\n int PIID = 27;\n /** RegularExpression Id. */\n int ATEID = 28;\n /** RegularExpression Id. */\n int ID = 29;\n /** RegularExpression Id. */\n int IDENTIFIER = 30;\n /** RegularExpression Id. */\n int STARTLETTER = 31;\n /** RegularExpression Id. */\n int LETTER = 32;\n /** RegularExpression Id. */\n int DIGIT = 33;\n /** RegularExpression Id. */\n int LPAREN = 34;\n /** RegularExpression Id. */\n int RPAREN = 35;\n /** RegularExpression Id. */\n int LBRACE = 36;\n /** RegularExpression Id. */\n int RBRACE = 37;\n /** RegularExpression Id. */\n int LBRACKET = 38;\n /** RegularExpression Id. */\n int RBRACKET = 39;\n /** RegularExpression Id. */\n int BAR = 40;\n /** RegularExpression Id. */\n int SEMICOLON = 41;\n /** RegularExpression Id. */\n int COMMA = 42;\n /** RegularExpression Id. */\n int DOT = 43;\n /** RegularExpression Id. */\n int COLON = 44;\n /** RegularExpression Id. */\n int ASSIGN = 45;\n /** RegularExpression Id. */\n int GT = 46;\n /** RegularExpression Id. */\n int LT = 47;\n /** RegularExpression Id. */\n int PNOT = 48;\n /** RegularExpression Id. */\n int SLASH = 49;\n /** RegularExpression Id. */\n int PLUS = 50;\n /** RegularExpression Id. */\n int MINUS = 51;\n /** RegularExpression Id. */\n int STAR = 52;\n /** RegularExpression Id. */\n int EQ = 53;\n /** RegularExpression Id. */\n int LE = 54;\n /** RegularExpression Id. */\n int GE = 55;\n /** RegularExpression Id. */\n int NE = 56;\n /** RegularExpression Id. */\n int REQ = 57;\n /** RegularExpression Id. */\n int POR = 58;\n /** RegularExpression Id. */\n int PAND = 59;\n /** RegularExpression Id. */\n int PIMPLIES = 60;\n /** RegularExpression Id. */\n int PBIIMPLIES = 61;\n /** RegularExpression Id. */\n int LALWAYS = 62;\n /** RegularExpression Id. */\n int LEVENTUALLY = 63;\n /** RegularExpression Id. */\n int LNEXTTIME = 64;\n /** RegularExpression Id. */\n int LUNTIL = 65;\n /** RegularExpression Id. */\n int URI = 66;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_SINGLE_LINE_COMMENT = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"#\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"<token of kind 8>\",\n \"\\\"as\\\"\",\n \"\\\"ate\\\"\",\n \"\\\"date\\\"\",\n \"\\\"exists\\\"\",\n \"\\\"forall\\\"\",\n \"\\\"formula\\\"\",\n \"\\\"in\\\"\",\n \"\\\"number\\\"\",\n \"\\\"pi\\\"\",\n \"\\\"rename\\\"\",\n \"\\\"set\\\"\",\n \"\\\"string\\\"\",\n \"\\\"subformula\\\"\",\n \"<INTEGER_LITERAL>\",\n \"<REAL_LITERAL>\",\n \"<EXPONENT>\",\n \"<STRING_LITERAL>\",\n \"<DESC_LITERAL>\",\n \"<PIID>\",\n \"<ATEID>\",\n \"<ID>\",\n \"<IDENTIFIER>\",\n \"<STARTLETTER>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"|\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\":\\\"\",\n \"\\\":=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\"!\\\"\",\n \"\\\"/\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"~=\\\"\",\n \"\\\"\\\\\\\\/\\\"\",\n \"\\\"/\\\\\\\\\\\"\",\n \"\\\"->\\\"\",\n \"\\\"<->\\\"\",\n \"\\\"[]\\\"\",\n \"\\\"<>\\\"\",\n \"\\\"_O\\\"\",\n \"\\\"_U\\\"\",\n \"<URI>\",\n };\n\n}", "private String groundVars(String s, HashMap<String,String> vars, Call c)\n {\n String assignments = \"\";\n boolean first = true;\n for (HashMap.Entry<String, String> entry : vars.entrySet()) \n {\n String key = entry.getKey();\n Object value = entry.getValue();\n if(!first)\n {\n assignments = assignments + \",\";\n } else first = false;\n assignments = assignments + key + \"=\" + value;\n }\n return s.replace(c.callString,assignments);\n }", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "@Test\r\n public void deriveFromBinaryXorAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M^=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH^=9\", \"(long,km^2/h)\");\r\n }", "@Test\n\tpublic void keywordEvaluationOrder()\n\t{\n\t\tTemplate t1 = T(\"<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(1), y=makevar(2))?>\");\n\t\tString output1 = t1.renders(V(\"makevar\", new MakeVar()));\n\t\tassertEquals(\"1;3\", output1);\n\n\t\tTemplate t2 = T(\"<?def t?><?print x?>;<?print y?><?end def?><?render t(x=makevar(2), y=makevar(1))?>\");\n\t\tString output2 = t2.renders(V(\"makevar\", new MakeVar()));\n\t\tassertEquals(\"2;3\", output2);\n\t}", "public interface SimpleGrParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int NumberLit = 6;\n /** RegularExpression Id. */\n int BooleanLit = 7;\n /** RegularExpression Id. */\n int StringLit = 8;\n /** RegularExpression Id. */\n int Null = 9;\n /** RegularExpression Id. */\n int And = 10;\n /** RegularExpression Id. */\n int Or = 11;\n /** RegularExpression Id. */\n int Not = 12;\n /** RegularExpression Id. */\n int Identifier = 13;\n /** RegularExpression Id. */\n int Equal = 14;\n /** RegularExpression Id. */\n int NotEqual = 15;\n /** RegularExpression Id. */\n int LessThan = 16;\n /** RegularExpression Id. */\n int LessEqualThan = 17;\n /** RegularExpression Id. */\n int GreaterThan = 18;\n /** RegularExpression Id. */\n int GreaterEqualThan = 19;\n /** RegularExpression Id. */\n int Plus = 20;\n /** RegularExpression Id. */\n int Minus = 21;\n /** RegularExpression Id. */\n int Div = 22;\n /** RegularExpression Id. */\n int Mult = 23;\n /** RegularExpression Id. */\n int Open = 24;\n /** RegularExpression Id. */\n int Close = 25;\n /** RegularExpression Id. */\n int Comma = 26;\n /** RegularExpression Id. */\n int Letter = 27;\n /** RegularExpression Id. */\n int Digit = 28;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"<NumberLit>\",\n \"<BooleanLit>\",\n \"<StringLit>\",\n \"\\\"NULL\\\"\",\n \"\\\"AND\\\"\",\n \"\\\"OR\\\"\",\n \"\\\"NOT\\\"\",\n \"<Identifier>\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"/\\\"\",\n \"\\\"*\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\",\\\"\",\n \"<Letter>\",\n \"<Digit>\",\n };\n\n}", "VariableDeclarationWithInitCS getResultVariable();", "public void construct(String s, String p, String o) {\n\tvariables.append(\" \").append(s != null ? s : \"?s\").append(\" \")\n\t\t.append(p != null ? p : \"?p\").append(\" \")\n\t\t.append(o != null ? o : \"?o\").append(\" . \");\n }", "public static void main (String[]args) {\n\t\tdouble money = 10.35;\r\n\t//Define a variable type with value of 5*/\t\r\n\t\tbyte number = 5;\r\n\t//Define a variable type with a value of 3*/\t\r\n\t\tint age = 3; \r\n\t\t//Declare 3 String variables\r\n\t\r\n\tString greeting;\r\n\tString goodbye;\r\n\tString saying; \r\n\t//Assign values to those previously created variables\r\n\tgreeting = \"Hi\";\r\n\tgoodbye = \"Take care\";\r\n\tsaying = \"To each their own\";\r\n\tSystem.out.println(greeting);\r\n\tSystem.out.println(greeting+saying);//Expected : HiTo each their own\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tString out = \"\";\n\t\tfor (Literal s : literals) {\n\t\t\tout = out + \" (\"+ s.getLiteral()+\" \"+((s.getArithmetic_value()==null)?s.isLiteral_positivity():s.getArithmetic_value())+\") \";\n\t\t}\n\t\treturn out;\n\t}", "@Test\n public void testExpandBasic() {\n doBasicExpansionTestImpl(testVariableForExpansion, testPropValue);\n\n // Variable trails a prefix\n String prefix = \"prefix\";\n doBasicExpansionTestImpl(prefix + testVariableForExpansion, prefix + testPropValue);\n\n // Variable precedes a suffix\n String suffix = \"suffix\";\n doBasicExpansionTestImpl(testVariableForExpansion + suffix, testPropValue + suffix);\n\n // Variable is between prefix and suffix\n doBasicExpansionTestImpl(prefix + testVariableForExpansion + suffix, prefix + testPropValue + suffix);\n }", "public Variable(int power, char notation){\n\t\tthis.power = power;\n\t\tthis.notation = notation;\n\t}", "public Literal getLiteral();", "public Literal getLiteral();", "VarAssignment createVarAssignment();", "private void dataToJS() {\n\t\tStringBuilder code = new StringBuilder();\n\t\tfor (int i = 0; i < tokens.size(); i++) {\n\t\t\tswitch (tokens.get(i)) {\n\t\t\tcase INPUT:\n\t\t\t\tboolean hasRead = false;\n\t\t\t\twhile (tokens.get(i+1) == VARIABLE_NAME || tokens.get(i+1) == COMMA) {\n\t\t\t\t\thasRead = true;\n\t\t\t\t\tif (tokens.get(i+1) == COMMA) {\n\t\t\t\t\t\ti++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (isReferenced(metadata.get(i+1))) {\n\t\t\t\t\t\tcode.append(metadata.get(i+1)+\" = Number.parseInt(prompt());\\n\");\n\t\t\t\t\t\ti++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcode.append(\"var \"+metadata.get(i+1)+\" = Number.parseInt(prompt());\\n\");\n\t\t\t\t\t\tvarReferences.add(metadata.get(i+1));\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!hasRead) outputAndThrow(new RuntimeException(\"Error: Expected variable identifier.\\n\"));\n\t\t\t\tbreak;\n\t\t\tcase OUTPUT:\n\t\t\t\ti++;\n\t\t\t\tif (tokens.get(i).isOutputable()) {\n\t\t\t\t\twhile (tokens.get(i).isOutputable()) {\n\t\t\t\t\t\tif (tokens.get(i) == COMMA) {\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\tif (i >= tokens.size()) break;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcode.append(\"alert(\");\n\t\t\t\t\t\ti = appendUntil(code, i, COMMA);\n\t\t\t\t\t\tcode.append(\");\\n\");\n\t\t\t\t\t\tif (i >= tokens.size()) break;\n\t\t\t\t\t}\n\t\t\t\t} else outputAndThrow(new RuntimeException(\"Error: Can only output variables, constants or expressions.\\n\"));\n\t\t\t\ti--;\n\t\t\t\tbreak;\n\t\t\tcase VARIABLE_NAME:\n\t\t\t\tif (i+1 >= tokens.size()) break;\n\t\t\t\tif (tokens.get(i+1) == ASSIGNMENT) {\n\t\t\t\t\tif (!varReferences.contains(metadata.get(i))) {\n\t\t\t\t\t\tcode.append(\"var \");\n\t\t\t\t\t\tvarReferences.add(metadata.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tcode.append(metadata.get(i)+\" = \");\n\t\t\t\t\ti += 2;\n\t\t\t\t\ti = appendUntil(code, i, LINE);\n\t\t\t\t\tcode.append(\";\\n\");\n\t\t\t\t} else outputAndThrow(new RuntimeException(\"Error: Expected assignment.\\n\"));\n\t\t\t\tbreak;\n\t\t\tcase IF:\n\t\t\t\tcode.append(\"if (\");\n\t\t\t\ti++;\n\t\t\t\ti = appendUntil(code, i, THEN);\n\t\t\t\tcode.append(\") {\\n\");\n\t\t\t\tbreak;\n\t\t\tcase ELSE:\n\t\t\t\tcode.append(\"} else {\\n\");\n\t\t\t\tbreak;\n\t\t\tcase FOR:\n\t\t\t\tcode.append(\"for (\");\n\t\t\t\tif (tokens.get(i+1) != VARIABLE_NAME && tokens.get(i+2) != ASSIGNMENT) outputAndThrow(new RuntimeException(\"Error: Expected iterator declartion.\\n\"));\n\t\t\t\tString itName = metadata.get(i+1);\n\t\t\t\tif (!varReferences.contains(itName)) varReferences.add(itName);\n\t\t\t\tcode.append(\"var \" + itName + \" = \");\n\t\t\t\ti += 3;\n\t\t\t\ti = appendUntil(code, i, COMMA);\n\t\t\t\ti++;\n\t\t\t\tcode.append(\"; \" + itName);\n\t\t\t\tStringBuilder tmp = new StringBuilder();\n\t\t\t\ti = appendUntil(tmp, i, COMMA);\n\t\t\t\ti++;\n\t\t\t\tStringBuilder perItOp = new StringBuilder();\n\t\t\t\ti = appendUntil(perItOp, i, EXECUTE);\n\t\t\t\tint num;\n\t\t\t\ttry {num = Integer.parseInt(perItOp.toString());}\n\t\t\t\tcatch (NumberFormatException e) {num = -1;}\n\t\t\t\tif (num >= 0) code.append(\" <= \" + tmp.toString() + \"; \" + itName + \"++\");\n\t\t\t\telse code.append(\" > \" + tmp.toString() + \"; \" + itName + \"--\");\n\t\t\t\tcode.append(\") {\\n\");\n\t\t\t\tbreak;\n\t\t\tcase DO:\n\t\t\t\tcode.append(\"do {\\n\");\n\t\t\t\tbreak;\n\t\t\tcase UNTIL:\n\t\t\t\tcode.append(\"} while (!(\");\n\t\t\t\ti++;\n\t\t\t\ti = appendUntil(code, i, LINE);\n\t\t\t\tcode.append(\"));\");\n\t\t\t\tbreak;\n\t\t\tcase WHILE:\n\t\t\t\tcode.append(\"while (\");\n\t\t\t\ti++;\n\t\t\t\ti = appendUntil(code, i, EXECUTE);\n\t\t\t\tcode.append(\") {\\n\");\n\t\t\t\tbreak;\n\t\t\tcase END:\n\t\t\t\tcode.append(\"}\\n\");\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\toutput = code.toString();\n\t}", "public static void main(String[] args) {\n System.out.println(\"H\"+\"E\"+\"L\"+\"L\"+\"O\"+\"!\");\n System.out.println(\"Hello\"+\" \"+\"World\");\n\n //string and boolean\n System.out.println(\"This is\" + false);\n System.out.println(\"This is line 18: value\" + true);\n\n //string and integer\n System.out.println(\"The number is :\" + 10);\n System.out.println(\"The number is :\" +10+25);\n\n //string and double\n System.out.println(\"This number has a decimal:\" + 1.09);\n\n //string and characters\n System.out.println(\"This is concatenation with the character\" + '$');\n\n }", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "private void jetExprStr(){\n\t\texprType = Z3MiscFunctions.v().getExprType(rExpr);\n\t\tswitch(exprType){\n\t\t\tcase BINOP:\n\t\t\t\tjetBinopExprStr();\n\t\t\t\tbreak;\n\t\t\tcase CAST:\n\t\t\t\tjetCastExprStr();\n\t\t\t\tbreak;\n\t\t\tcase INVOKE:\n\t\t\t\tjetInvokeExpr();\n\t\t\t\tbreak;\n\t\t\tcase NEWARRAY:\n\t\t\t\tjetNewArrayExpr();\n\t\t\t\tbreak;\n\t\t\tcase NEWEXPR:\n\t\t\t\tjetNewExpr();\n\t\t\t\tbreak;\n\t\t\tcase UNOP:\n\t\t\t\tjetUnopExpr();\n\t\t\t\tbreak;\n\t\t\tcase INSTANCEOF:\n\t\t\t\t//TODO\n\t\t\t\tassert(false);\n\t\t\t\tbreak;\n\t\t\tcase NEWMULIARRAY:\n\t\t\t\t//TODO\n\t\t\t\tassert(false);\n\t\t\t\tbreak;\n\t\t}\n\t}", "Hojas eval();", "public interface TypeScriptParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int DIGIT = 6;\n /** RegularExpression Id. */\n int ONE_TO_NINE = 7;\n /** RegularExpression Id. */\n int LETTER = 8;\n /** RegularExpression Id. */\n int SPACE = 9;\n /** RegularExpression Id. */\n int VAR = 10;\n /** RegularExpression Id. */\n int IF = 11;\n /** RegularExpression Id. */\n int ELSE_IF = 12;\n /** RegularExpression Id. */\n int ELSE = 13;\n /** RegularExpression Id. */\n int FUNCTION = 14;\n /** RegularExpression Id. */\n int BOOLEAN = 15;\n /** RegularExpression Id. */\n int NUMBER = 16;\n /** RegularExpression Id. */\n int STRING = 17;\n /** RegularExpression Id. */\n int ENUM = 18;\n /** RegularExpression Id. */\n int INTERFACE = 19;\n /** RegularExpression Id. */\n int RETURN = 20;\n /** RegularExpression Id. */\n int VOID = 21;\n /** RegularExpression Id. */\n int WHILE = 22;\n /** RegularExpression Id. */\n int PRINTLN = 23;\n /** RegularExpression Id. */\n int TRUE = 24;\n /** RegularExpression Id. */\n int FALSE = 25;\n /** RegularExpression Id. */\n int NOT = 26;\n /** RegularExpression Id. */\n int AMPRSAND = 27;\n /** RegularExpression Id. */\n int MUL = 28;\n /** RegularExpression Id. */\n int MINUS = 29;\n /** RegularExpression Id. */\n int PLUS = 30;\n /** RegularExpression Id. */\n int EQ = 31;\n /** RegularExpression Id. */\n int BAR = 32;\n /** RegularExpression Id. */\n int DIV = 33;\n /** RegularExpression Id. */\n int COLON = 34;\n /** RegularExpression Id. */\n int SEMICOLON = 35;\n /** RegularExpression Id. */\n int QM = 36;\n /** RegularExpression Id. */\n int COMMA = 37;\n /** RegularExpression Id. */\n int DOT = 38;\n /** RegularExpression Id. */\n int SINGLE_QUOTE = 39;\n /** RegularExpression Id. */\n int QUOTE = 40;\n /** RegularExpression Id. */\n int LEFT_PARAN = 41;\n /** RegularExpression Id. */\n int RIGHT_PARAN = 42;\n /** RegularExpression Id. */\n int LEFT_BRAKET = 43;\n /** RegularExpression Id. */\n int RIGHT_BRAKET = 44;\n /** RegularExpression Id. */\n int LEFT_BRACE = 45;\n /** RegularExpression Id. */\n int RIGHT_BRACE = 46;\n /** RegularExpression Id. */\n int UNDER_SCORE = 47;\n /** RegularExpression Id. */\n int LT = 48;\n /** RegularExpression Id. */\n int GT = 49;\n /** RegularExpression Id. */\n int LE = 50;\n /** RegularExpression Id. */\n int GE = 51;\n /** RegularExpression Id. */\n int DOUBLE_EQ = 52;\n /** RegularExpression Id. */\n int OR = 53;\n /** RegularExpression Id. */\n int AND = 54;\n /** RegularExpression Id. */\n int NOT_EQ = 55;\n /** RegularExpression Id. */\n int MATH_OP = 56;\n /** RegularExpression Id. */\n int STRING_LITERAL = 57;\n /** RegularExpression Id. */\n int IDENTIFIER = 58;\n /** RegularExpression Id. */\n int NUM = 59;\n /** RegularExpression Id. */\n int INTEGER = 60;\n /** RegularExpression Id. */\n int REAL = 61;\n /** RegularExpression Id. */\n int SIGN = 62;\n /** RegularExpression Id. */\n int ERROR = 63;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"<DIGIT>\",\n \"<ONE_TO_NINE>\",\n \"<LETTER>\",\n \"<SPACE>\",\n \"\\\"var\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"function\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"number\\\"\",\n \"\\\"char\\\"\",\n \"\\\"enum\\\"\",\n \"\\\"interface\\\"\",\n \"\\\"return\\\"\",\n \"\\\"void\\\"\",\n \"\\\"while\\\"\",\n \"\\\"println\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"!\\\"\",\n \"\\\"&\\\"\",\n \"\\\"*\\\"\",\n \"\\\"-\\\"\",\n \"\\\"+\\\"\",\n \"\\\"=\\\"\",\n \"\\\"|\\\"\",\n \"\\\"/\\\"\",\n \"\\\":\\\"\",\n \"\\\";\\\"\",\n \"\\\"?\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"_\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"||\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"!=\\\"\",\n \"<MATH_OP>\",\n \"<STRING_LITERAL>\",\n \"<IDENTIFIER>\",\n \"<NUM>\",\n \"<INTEGER>\",\n \"<REAL>\",\n \"\\\"\\\"\",\n \"<ERROR>\",\n };\n\n}", "RealLiteralExp createRealLiteralExp();", "private String syntax(ArrayList<String> tokens){\r\n String tkn=\"Done\";\r\n boolean VarDeclFlag = true;\r\n boolean exitFlag = false;\r\n ArrayList<String> temp = new ArrayList<>();\r\n //TODO return error\r\n //TODO return error method\r\n for(int i=0; i<tokens.size(); i++){\r\n if(VarDeclFlag){ \r\n if(isId(tokens.get(i))){\r\n tokensDef.add(\"Var\");\r\n i++;\r\n if(isLeftParen(tokens.get(i))){\r\n VarDeclFlag=false;\r\n tokensDef.add(\"LeftParen\");\r\n i++;\r\n while(!isRightParen(tokens.get(i)) && exitFlag){\r\n if(exitFlag && !isRightParen(tokens.get(i))){\r\n return \"error\";\r\n }\r\n if(tokens.get(i).endsWith(\",\")){\r\n\t\t\t\t\t\t\t\t\t\r\n if(isId(removeLast(tokens.get(i)))){\r\n tokensDef.add(\"Var\");\r\n i++;\r\n }\r\n }\r\n else{\r\n if(isId(tokens.get(i))){\r\n exitFlag = true;\r\n tokensDef.add(\"Var\");\r\n i++; \r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n\t\tif(isId(tokens.get(i))){\r\n tokensDef.add(\"Var\");\r\n i++;\r\n if(isLeftParen(tokens.get(i))){\r\n VarDeclFlag=false;\r\n\t\t\ttokensDef.add(\"LeftParen\");\r\n i++;\r\n if(!isRightParen(tokens.get(i))){\r\n while(!isRightParen(tokens.get(i))){\r\n if(exitFlag && !isRightParen(tokens.get(i))){\r\n return \"error\";\r\n }\r\n if(tokens.get(i).endsWith(\",\")){\r\n if(isId(removeLast(tokens.get(i)))){\r\n tokensDef.add(\"Var\");\r\n i++;\r\n if(isRightParen(tokens.get(i))){\r\n return \"error\";\r\n }\r\n }\r\n else \r\n return \"error\";\r\n }\r\n else{\r\n if(isId(tokens.get(i))){\r\n tokensDef.add(\"Var\");\r\n i++;\r\n if(isRightParen(tokens.get(i))){\r\n tokensDef.add(\"RightParen\");\r\n i++;\r\n }\r\n else\r\n return \"error\";\r\n }\r\n }\r\n \r\n }\r\n }\r\n else{\r\n tokensDef.add(\"RightParen\");\r\n i++;\r\n } \r\n }\r\n }\r\n }\r\n }\r\n\t\t\r\n return tkn;\r\n \r\n }", "public static String literal(String literal, int occurrences) {\n\t\treturn \"\\t\\t\\t\\t<lit cntt=\\\"\" + literal + \"\\\" count=\\\"\" + occurrences +\"\\\"/>\" + \"\\n\";\n\t}", "private String processStatement() {\n StringBuilder result = new StringBuilder();\n //If the line is an instantiation or assignment statement\n if(line.contains(\"=\")) {\n //We get the parts of string before and after the '=' sign.\n String[] parts = line.split(\"=\");\n //Now we get the first and second part in separate strings.\n String firstPart = parts[0].trim();\n String secondPart = parts[1].trim();\n //Remove unnecessary spaces from the first part of the line.\n firstPart = removeUnnecessarySpaces(firstPart);\n //Split the parts further into single words.\n String[] firstPartWords = firstPart.split(\"\\\\s+\");\n\n //Now, process the first part of the line\n for(int i=0; i<firstPartWords.length; i++) {\n String word = firstPartWords[i];\n //Boolean value to check if this word is the last word\n boolean isLast = i==firstPartWords.length-1;\n //Now process each word\n processWordInFirstPart(word, result, isLast);\n }\n\n //Boolean value to check if this statement has anything to\n //do with objects. If secondPart contains 'new'.\n boolean relatedWithObject = secondPart.contains(\"new \");\n //Now adjust the value of secondPart for assigning.\n secondPart = secondPart.replace(\"new\", \"\");\n secondPart = secondPart.trim();\n\n //Now we have the result after processing the first part of\n //this statement.\n //If there are no spaces in the firstPart string, then this\n //is an assignment statement.\n if(firstPart.indexOf(' ')==-1) {\n if(relatedWithObject) {\n //If the second part of the string contains square and not round\n //brackets, this is not an object but an array.\n if(!secondPart.contains(\"(\") && secondPart.contains(\"[\"))\n result.insert(0,\"The array \").append(\" is initialized to value \").\n append(secondPart);\n //Else, this is obviously an object.\n else\n result.insert(0, \"The object \").append(\" is initialized to value \").\n append(secondPart);\n }\n else {\n //Now, we format the assignment statement.\n //Since there can be more than one assignments in the same\n //line, we add all the parts.\n //Here, \\u2190 is the left arrow in UTF-8.\n char arrow = '\\u2190';\n parts = line.split(\"\\\\s+\");\n result = new StringBuilder();\n for(String part : parts) {\n if(part.equals(\"=\")) {\n result.append(arrow).append(\" \");\n }\n else {\n result.append(part).append(\" \");\n }\n }\n }\n }\n //If this statement is not an assignment statement, then this\n //is an initialization statement.\n else {\n if(relatedWithObject) {\n result.append(\" is created with value \").append(secondPart).append(\".\");\n }\n //If the second part (the value) has something to do\n //with arrays, and not objects.\n else if(hasArrayAsMajorValue(secondPart)) {\n //Then process the second part according to array values.\n result.append(\" is instantiated to value in \").append(processArrayValue(secondPart));\n }\n else {\n result.append(\" is instantiated to value \").append(secondPart).append(\".\");\n }\n }\n }\n //If line does not contain \"=\" sign.\n else {\n //Incrementing statement.\n if(line.contains(\"++\")) {\n int index = line.indexOf('+');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Incremented.\");\n }\n //Decrementing statement.\n else if(line.contains(\"--\")) {\n int index = line.indexOf('-');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Decremented.\");\n }\n //If line has a dot operator, it means this line calls a function.\n else if(line.contains(\".\")) {\n String[] parts = line.split(\"\\\\.\");\n String object = parts[0].trim();\n String method = parts[1].trim();\n result.append(\"The function \").append(method).append(\" from object \").\n append(object).append(\" is called.\");\n if(parts.length>2) {\n result = new StringBuilder();\n result.append(removeUnnecessarySpaces(line)).append(\" is performed respectively.\");\n }\n }\n //If the line contains a bracket, it is calling a member method.\n else if(line.contains(\"(\")) {\n result.append(\"The member method \").append(line).append(\" is called.\");\n }\n else {\n String[] words = line.split(\"\\\\s+\");\n for(int i=0; i<words.length; i++) {\n String word = words[i];\n boolean isLast = i==words.length-1;\n processWordInFirstPart(word, result, isLast);\n }\n result.append(\" is declared.\");\n }\n }\n return result.toString();\n }", "@Override\n\tpublic String visitAssignment(AssignmentContext ctx) {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\treturn \"LOAD \"+ ctx.getChild(0)+\" \"+ visitExpr(ctx.expr());\n\t\t\n\t\t\t\n\t\t\n\t}", "public interface PerlTokenSets extends PerlElementTypes, MooseElementTypes {\n TokenSet OPERATORS_TOKENSET = TokenSet.create(\n OPERATOR_CMP_NUMERIC,\n OPERATOR_LT_NUMERIC,\n OPERATOR_GT_NUMERIC,\n\n OPERATOR_CMP_STR,\n OPERATOR_LE_STR,\n OPERATOR_GE_STR,\n OPERATOR_EQ_STR,\n OPERATOR_NE_STR,\n OPERATOR_LT_STR,\n OPERATOR_GT_STR,\n\n OPERATOR_HELLIP,\n OPERATOR_FLIP_FLOP,\n OPERATOR_CONCAT,\n\n OPERATOR_PLUS_PLUS,\n OPERATOR_MINUS_MINUS,\n OPERATOR_POW,\n\n OPERATOR_RE,\n OPERATOR_NOT_RE,\n\n //\t\t\tOPERATOR_HEREDOC, // this is an artificial operator, not the real one; fixme uncommenting breaks parsing of print $of <<EOM\n OPERATOR_SHIFT_LEFT,\n OPERATOR_SHIFT_RIGHT,\n\n OPERATOR_AND,\n OPERATOR_OR,\n OPERATOR_OR_DEFINED,\n OPERATOR_NOT,\n\n OPERATOR_ASSIGN,\n\n QUESTION,\n COLON,\n\n OPERATOR_REFERENCE,\n\n OPERATOR_DIV,\n OPERATOR_MUL,\n OPERATOR_MOD,\n OPERATOR_PLUS,\n OPERATOR_MINUS,\n\n OPERATOR_BITWISE_NOT,\n OPERATOR_BITWISE_AND,\n OPERATOR_BITWISE_OR,\n OPERATOR_BITWISE_XOR,\n\n OPERATOR_AND_LP,\n OPERATOR_OR_LP,\n OPERATOR_XOR_LP,\n OPERATOR_NOT_LP,\n\n COMMA,\n FAT_COMMA,\n\n OPERATOR_DEREFERENCE,\n\n OPERATOR_X,\n OPERATOR_FILETEST,\n\n // syntax operators\n OPERATOR_POW_ASSIGN,\n OPERATOR_PLUS_ASSIGN,\n OPERATOR_MINUS_ASSIGN,\n OPERATOR_MUL_ASSIGN,\n OPERATOR_DIV_ASSIGN,\n OPERATOR_MOD_ASSIGN,\n OPERATOR_CONCAT_ASSIGN,\n OPERATOR_X_ASSIGN,\n OPERATOR_BITWISE_AND_ASSIGN,\n OPERATOR_BITWISE_OR_ASSIGN,\n OPERATOR_BITWISE_XOR_ASSIGN,\n OPERATOR_SHIFT_LEFT_ASSIGN,\n OPERATOR_SHIFT_RIGHT_ASSIGN,\n OPERATOR_AND_ASSIGN,\n OPERATOR_OR_ASSIGN,\n OPERATOR_OR_DEFINED_ASSIGN,\n\n OPERATOR_GE_NUMERIC,\n OPERATOR_LE_NUMERIC,\n OPERATOR_EQ_NUMERIC,\n OPERATOR_NE_NUMERIC,\n OPERATOR_SMARTMATCH\n );\n\n TokenSet DEFAULT_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_MY,\n RESERVED_OUR,\n RESERVED_STATE,\n RESERVED_LOCAL,\n RESERVED_ELSIF,\n RESERVED_ELSE,\n RESERVED_GIVEN,\n RESERVED_DEFAULT,\n RESERVED_CONTINUE,\n RESERVED_FORMAT,\n RESERVED_SUB,\n RESERVED_PACKAGE,\n RESERVED_USE,\n RESERVED_NO,\n RESERVED_REQUIRE,\n RESERVED_UNDEF,\n RESERVED_PRINT,\n RESERVED_PRINTF,\n RESERVED_SAY,\n RESERVED_GREP,\n RESERVED_MAP,\n RESERVED_SORT,\n RESERVED_DO,\n RESERVED_EVAL,\n RESERVED_GOTO,\n RESERVED_REDO,\n RESERVED_NEXT,\n RESERVED_LAST,\n RESERVED_RETURN,\n\n RESERVED_Y,\n RESERVED_TR,\n RESERVED_Q,\n RESERVED_S,\n RESERVED_M,\n RESERVED_QW,\n RESERVED_QQ,\n RESERVED_QR,\n RESERVED_QX,\n\n RESERVED_IF,\n RESERVED_UNTIL,\n RESERVED_UNLESS,\n RESERVED_FOR,\n RESERVED_FOREACH,\n RESERVED_WHEN,\n RESERVED_WHILE\n );\n\n TokenSet TRY_CATCH_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_TRY,\n RESERVED_CATCH,\n RESERVED_FINALLY,\n RESERVED_CATCH_WITH,\n RESERVED_EXCEPT,\n RESERVED_OTHERWISE,\n RESERVED_CONTINUATION\n );\n\n TokenSet METHOD_SIGNATURES_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_METHOD,\n RESERVED_FUNC\n );\n\n TokenSet KEYWORDS_TOKENSET = TokenSet.orSet(\n DEFAULT_KEYWORDS_TOKENSET,\n MOOSE_RESERVED_TOKENSET,\n METHOD_SIGNATURES_KEYWORDS_TOKENSET,\n TRY_CATCH_KEYWORDS_TOKENSET\n );\n\n TokenSet ANNOTATIONS_KEYS = TokenSet.create(\n ANNOTATION_DEPRECATED_KEY,\n ANNOTATION_RETURNS_KEY,\n ANNOTATION_OVERRIDE_KEY,\n ANNOTATION_METHOD_KEY,\n ANNOTATION_ABSTRACT_KEY,\n ANNOTATION_INJECT_KEY,\n ANNOTATION_NOINSPECTION_KEY,\n ANNOTATION_TYPE_KEY\n\n );\n\n TokenSet STRING_CONTENT_TOKENSET = TokenSet.create(\n STRING_CONTENT,\n STRING_CONTENT_XQ,\n STRING_CONTENT_QQ\n );\n\n TokenSet HEREDOC_BODIES_TOKENSET = TokenSet.create(\n HEREDOC,\n HEREDOC_QQ,\n HEREDOC_QX\n );\n\n\n TokenSet QUOTE_MIDDLE = TokenSet.create(REGEX_QUOTE, REGEX_QUOTE_E);\n\n TokenSet QUOTE_OPEN_ANY = TokenSet.orSet(\n TokenSet.create(REGEX_QUOTE_OPEN, REGEX_QUOTE_OPEN_E),\n PerlParserUtil.OPEN_QUOTES,\n QUOTE_MIDDLE\n );\n\n TokenSet QUOTE_CLOSE_FIRST_ANY = TokenSet.orSet(\n TokenSet.create(REGEX_QUOTE_CLOSE),\n QUOTE_MIDDLE,\n CLOSE_QUOTES\n );\n\n TokenSet QUOTE_CLOSE_PAIRED = TokenSet.orSet(\n CLOSE_QUOTES,\n TokenSet.create(REGEX_QUOTE_CLOSE)\n );\n\n TokenSet SIGILS = TokenSet.create(\n SIGIL_SCALAR, SIGIL_ARRAY, SIGIL_HASH, SIGIL_GLOB, SIGIL_CODE, SIGIL_SCALAR_INDEX\n );\n\n TokenSet STATEMENTS = TokenSet.create(\n STATEMENT, USE_STATEMENT, NO_STATEMENT\n );\n\n TokenSet LAZY_CODE_BLOCKS = TokenSet.create(LP_CODE_BLOCK, LP_CODE_BLOCK_WITH_TRYCATCH);\n\n TokenSet LAZY_PARSABLE_REGEXPS = TokenSet.create(\n LP_REGEX_REPLACEMENT,\n LP_REGEX,\n LP_REGEX_X,\n LP_REGEX_XX\n );\n\n TokenSet HEREDOC_ENDS = TokenSet.create(HEREDOC_END, HEREDOC_END_INDENTABLE);\n /**\n * Quote openers with three or four quotes\n */\n TokenSet COMPLEX_QUOTE_OPENERS = TokenSet.create(\n RESERVED_S,\n RESERVED_TR,\n RESERVED_Y\n );\n TokenSet SIMPLE_QUOTE_OPENERS = TokenSet.create(\n RESERVED_Q,\n RESERVED_QQ,\n RESERVED_QX,\n RESERVED_QW,\n RESERVED_QR,\n RESERVED_M\n );\n}", "@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}", "public Literal getLiteralString(String literalData);", "public void construct(String con) {\n\tvariables.append(\" \").append(con).append(\" \");\n }", "public void testLiterals(SATSolver solver) {\n\t\tString[] resultStr = {\"false\", \"unknown\", \"true\"};\n\t\tint maxVar = 0;\n\t\tfor (int[] clause : solver.clauses)\n\t\t\tfor (int literal : clause)\n\t\t\t\tmaxVar = Math.max(maxVar, Math.abs(literal));\n\t\tfor (int var = 1; var <= maxVar; var++) {\n\t\t\tint result = solver.testLiteral(var);\n\t\t\tSystem.out.printf(\"%d: %s\\n\", var, resultStr[result + 1]);\n\t\t}\n\t}", "@Test\n public void stringsWork()\n {\n assertEquals( \"<%= bwah %>lol\", StringStatement1.render() );\n assertEquals( \"<%@ directive syntax %><% statement syntax %>\", StringStatement2.render() );\n assertEquals( \"<%-- comment syntax --%>\", StringStatement3.render() );\n }", "<C> StringLiteralExp<C> createStringLiteralExp();", "public static void main(String[] args) {\n\n int X = 20;\n X +=10;\n System.out.println(X);\n X +=60;\n System.out.println(X);\n\n String schoolname = \"CyberTek\";\n schoolname += 12345;\n System.out.println(schoolname);\n\n char ch1 = 'a'; //result will not be numbers\n ch1 += 'b';\n System.out.println(ch1);\n\n\n int num = 'z';\n num +='x';\n System.out.println(num);\n\n System.out.println(\"=============================================\");\n////////////////////////////////////////////////////////////////////////////////\n //multi warm up for shorthand Operators\nint a = 2;\na *=3;\n System.out.println(a);\n\n int b = a *= 10;\n // b = a = a * 10 = 60\n System.out.println(a);\n System.out.println(b);\n\n\n int a1 = 100;\n int b1 = ( a1*= 2) + ++a1;\n // b1 = 200 + 201\n System.out.println(b1);\n\n\n int x1 = 10;\n int y1 = x1 += 10*2;\n System.out.println(y1);\n\n\n int q = 20;\n int p = q *= 20*3;\n System.out.println(p);\n System.out.println(\"==========================================================\");\n//////////////////////////////////////////////////////////////////////////////\n\n// warmup: subtraction - shorthand operators:\n\n int num1 = 300;\n num1 /=2;\n System.out.println(num1);\n\n int num2 = 400;\n num2 /= 20 +10;\n System.out.println(num2);\n ///////////////////////////////////////////////////////////////////////\n\n//remainder for shorthand operators\n\n int num3 = 300;\n num3 %= 10 + 20;\n System.out.println(num3);\n \n\n\n\n }", "public String eval(String p1 ) {\n\t}", "@Test\r\n public void partialAndExactMatching() {\n\r\n eval( \"f <- function(fumble, fooey) { fumble ^ fooey } \");\r\n assertThat( eval( \"f(f = 3, fooey = 4)\"), equalTo( c(81) ) );\r\n }", "private Term parseAssign(final boolean required) throws ParseException {\n Term t1 = parseConditional(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '=') {\n Term t2 = parseAssign(true);\n if (t1 instanceof Term.Ref && ((Term.Ref) t1).getVariable() != null) {\n t1 = new Term.Assign(t1, t2);\n } else {\n reportError(\"Variable expected on the left side of assignment '='.\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "Variables createVariables();", "@Test\n\tpublic void testMakeSureVarVariablesCanShadowLetVariables()\n\t{\n\t\tString[] code = {\n\t\t\t\"let a = 1;\",\n\t\t \"let b = 2;\",\n\t\t \"var c = 3;\",\n\n\t\t \"function sup(a) {\",\n\t\t \"var b = 4;\",\n\t\t \"let c = 5;\",\n\t\t \"let d = 6;\",\n\t\t \"if (false) {\",\n\t\t \"var d = 7;\",\n\t\t \"}\",\n\t\t \"return b + c + a + d;\",\n\t\t \"}\",\n\n\t\t \"sup();\"\n\t\t};\n\t\t\n\t\tth.addError(1, 5, \"'a' is defined but never used.\");\n\t th.addError(2, 5, \"'b' is defined but never used.\");\n\t th.addError(3, 5, \"'c' is defined but never used.\");\n\t th.addError(9, 5, \"'d' has already been declared.\");\n\t\tth.test(code, new LinterOptions().set(\"esnext\", true).set(\"unused\", true).set(\"undef\", true).set(\"funcscope\", true));\n\t}", "String getSourceVariablePart();", "public String toString(){return \"(X\" + variable + \" (\"+ zero + \")\" + \" (\" + one +\"))\";}", "static void lookUp(){\r\n\r\n if (lexeme.equals(\"(\"))\r\n token = \"LEFT_PAREN\";\r\n else if (lexeme.equals(\")\"))\r\n token = \"RIGHT_PAREN\";\r\n else if (lexeme.equals(\"true\"))\r\n token = \"TRUE\";\r\n else if (lexeme.equals(\"false\"))\r\n token = \"FALSE\";\r\n else if (lexeme.equals(\"-\"))\r\n token = \"MINUS\";\r\n else if (lexeme.equals(\"+\"))\r\n token = \"PLUS\";\r\n else if (lexeme.equals(\"*\"))\r\n token = \"STAR\";\r\n else if (lexeme.equals(\"/\"))\r\n token = \"DIVOP\";\r\n else if (lexeme.equals(\"%\"))\r\n token = \"MOD\";\r\n else if (lexeme.equals(\">\"))\r\n token = \"GREATER_THAN\";\r\n else if (lexeme .equals(\"<\"))\r\n token = \"LESS_THAN\";\r\n else if (lexeme.equals(\"=\"))\r\n token = \"EQUALS\";\r\n else if (lexeme.equals(\"<=\"))\r\n token = \"LESS_OR_EQUAL\";\r\n else if (lexeme.equals(\">=\"))\r\n token = \"GREATER_OR_EQUAL\";\r\n else if (lexeme.equals(\"!=\"))\r\n token = \"NOT_EQUAL\";\r\n else\r\n token = \"ILLEGAL\";\r\n }", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "public void testSmartVarResolver()\r\n {\n System.setProperty( \"A\", \"Setski\" );\r\n assertEquals( 1,\r\n SmartVarResolver.INSTANCE.resolveVar( VarContext.of( \"A\", 1 ), \"A\" ) );\r\n\r\n //verify we can get System Properties\r\n System.setProperty( \"A\", \"Setski\" );\r\n assertEquals( \"Setski\",\r\n SmartVarResolver.INSTANCE.resolveVar( VarContext.of(), \"A\" ) );\r\n\r\n //we can get values that are set in expressions\r\n Template d = BindML.compile( \"{+A+}\" );\r\n assertEquals( \"Setski\", Author.toString( d ) ); //verify I can resolve a variable that is set as expression\r\n\r\n d = BindML.compile( \"{+A+}\" );\r\n TreeSet<Integer> ts = new TreeSet<Integer>();\r\n ts.add( 1 );\r\n ts.add( 2 );\r\n ts.add( 3 );\r\n ts.add( 4 );\r\n assertEquals( \"1, 2, 3, 4\", Author.toString( d, \"A\", ts ) );\r\n\r\n /*\r\n //I need a Better way of printing Maps \r\n // right now = {A=1, B=2, C=3}\r\n // should be A=1; B=2; C=3;\r\n Map<String, Integer> m = new HashMap<String, Integer>();\r\n m.put( \"A\", 1 );\r\n m.put( \"B\", 2 );\r\n m.put( \"C\", 3 );\r\n System.out.println( Author.toString( d, \"A\", m ) );\r\n\r\n d = BindML.compile( \"{+A+}\" );\r\n assertEquals( \"1, 2, 3, 4\", Author.toString( d ) ); //verify I can resolve a variable that is set as expression\r\n*/\r\n\r\n }", "public static void main(String[] args) {\n String exclamation1 = \"Ouch!\";\n String exclamation2 = \"Hoorah!\";\n String exclamation3 = \"Amazing!\";\n String adverb1 = \"stupidly\";\n String adverb2 = \"happily\";\n String adverb3 = \"shamefully\";\n String noun1 = \"car\";\n String noun2 = \"book\";\n String noun3 = \"bird\";\n String adjective1 = \"tall\";\n String adjective2 = \"smart\";\n String adjective3 = \"funny\";\n System.out.println( exclamation1+ \" he said \" + adverb1 +\n \" as he jumped into his convertible \" + noun1 +\n \" and drove off with his \" + adjective1 + \" wife.\");\n\n\n\n\n }", "public void showAssignments(){\n\t\tIterator it = this.clauses.iterator();\n\t\tint numVar = this.getVocabulary().getMaxVariableId();\n\t\tint[] assign = new int[numVar*2+1]; \n\n\t\twhile (it.hasNext()) {\n\t\t\tSystem.out.println(\"___________________________\");\n IClause cl = (IClause) it.next();\n Iterator litIterator = cl.literalIterator();\n while (litIterator.hasNext()){\n \tILiteral lit = (ILiteral) litIterator.next();\n \tint idx = lit.getId();\n \tif (idx<0) \n \t\tidx = numVar - idx;\n \tassign[idx] = lit.value();\n }\n }\n\t\t\n\t\tfor (int i=1;i<assign.length;i++){\n\t\t\tint k = i;\n\t\t\tif (i>numVar)\n\t\t\t\tk = numVar - i;\n\t\t\tSystem.out.print(k + \"|\" + assign[i] + \";\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "private void init_builtins() {\n\n variables.put(\"nil\", List.nil);\n\n variables.put(\"show\", new Function(\"show\", 0) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables))\n return List.nil;\n\n System.out.println(\" show special 0 builtin\");\n System.out.println(\" cons non-special 2 builtin\");\n System.out.println(\" car non-special 1 builtin\");\n System.out.println(\" cdr non-special 1 builtin\");\n System.out.println(\" quote special 1 builtin\");\n System.out.println(\" list non-special -1 builtin\");\n System.out.println(\" append non-special -1 builtin\");\n System.out.println(\" length non-special 1 builtin\");\n System.out.println(\" + non-special 2 builtin\");\n System.out.println(\" - non-special 2 builtin\");\n System.out.println(\" * non-special 2 builtin\");\n System.out.println(\" / non-special 2 builtin\");\n System.out.println(\" = non-special 2 builtin\");\n System.out.println(\" /= non-special 2 builtin\");\n System.out.println(\" < non-special 2 builtin\");\n System.out.println(\" > non-special 2 builtin\");\n System.out.println(\" <= non-special 2 builtin\");\n System.out.println(\" >= non-special 2 builtin\");\n System.out.println(\" null non-special 1 builtin\");\n System.out.println(\" atom non-special 1 builtin\");\n System.out.println(\" listp non-special 1 builtin\");\n System.out.println(\" integerp non-special 1 builtin\");\n System.out.println(\" cond special -1 builtin\");\n return List.nil;\n }\n });\n\n\n variables.put(\"quote\", new Function(\"quote\", 1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables))\n return List.nil;\n return list.getCar();\n }\n });\n\n variables.put(\"list\", new Function(\"list\", -1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null)\n return List.nil;\n return list.evaluate_elements(variables);\n }\n });\n\n variables.put(\"null\", new Function(\"null\", 1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables))\n return List.nil;\n if (list.getCar() == List.nil)\n return Number.t;\n else\n return List.nil;\n }\n });\n\n variables.put(\"atom\", new Function(\"atom\", 1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables))\n return List.nil;\n if (list.getCar() == List.nil)\n return Number.t;\n if (list.length() == 1)\n if (list.getCar().evaluate(variables) instanceof Atom)\n return Number.t;\n return List.nil;\n }\n });\n\n variables.put(\"listp\", new Function(\"listp\", 1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables))\n return List.nil;\n if (list.length() == 1)\n if(list.getCar().evaluate(variables) instanceof List)\n return Number.t;\n return List.nil;\n }\n });\n\n variables.put(\"integerp\", new Function(\"integerp\", 1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables))\n return List.nil;\n if (list.length() == 1) {\n Expression test = list.getCar().evaluate(variables);\n if (test instanceof Number)\n return Number.t;\n }\n return List.nil;\n }\n });\n\n variables.put(\"cons\", new Function(\"cons\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables))\n return List.nil;\n\n Expression cdr = list.getCdr().getCar().evaluate(variables);\n if (cdr instanceof List) {\n List consed = new List(list.getCar().evaluate(variables));\n if (cdr != List.nil)\n consed.append((List) cdr);\n return consed;\n }\n System.out.println(\"cons's 2nd argument is non-list\");\n return List.nil;\n }\n });\n\n variables.put(\"car\", new Function(\"car\", 1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (list == List.nil)\n return List.nil;\n if (!checkArity(list, variables))\n return List.nil;\n\n Expression car = list.getCar().evaluate(variables);\n if (car instanceof List)\n return ((List) car).getCar();\n return List.nil;\n }\n });\n\n variables.put(\"cdr\", new Function(\"cdr\", 1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (list == List.nil)\n return List.nil;\n if (!checkArity(list, variables))\n return List.nil;\n\n Expression car = list.getCar().evaluate(variables);\n if (car instanceof List)\n return ((List) car).getCdr();\n return List.nil;\n }\n });\n\n variables.put(\"length\", new Function(\"length\", 1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables))\n return List.nil;\n\n Expression car = list.getCar().evaluate(variables);\n if (!(car instanceof List)) {\n System.out.println(\"length given a non-list or an impure list (dotted pair at end of list)\");\n return List.nil;\n }\n return new Number(((List) car).length());\n }\n });\n\n variables.put(\"append\", new Function(\"append\", -1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n\n try {\n return List.chain_append(list);\n }\n catch (List.AppendGivenNonListException e) {\n return List.nil;\n }\n }\n });\n\n variables.put(\"+\", new Function(\"+\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n try {\n return ((Number) list.getCar()).add((Number) list.getCdr().getCar());\n } catch (ClassCastException e) {\n System.out.println(\"builtin arithmetic rel op given non-number\");\n return List.nil;\n }\n }\n });\n\n variables.put(\"-\", new Function(\"-\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n try {\n return ((Number) list.getCar()).subtract((Number) list.getCdr().getCar());\n } catch (ClassCastException e) {\n System.out.println(\"builtin arithmetic rel op given non-number\");\n return List.nil;\n }\n }\n });\n\n variables.put(\"*\", new Function(\"*\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n try {\n return ((Number) list.getCar()).mult((Number) list.getCdr().getCar());\n } catch (ClassCastException e) {\n System.out.println(\"builtin arithmetic rel op given non-number\");\n return List.nil;\n }\n }\n });\n\n variables.put(\"/\", new Function(\"/\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n try {\n return ((Number) list.getCar()).div((Number) list.getCdr().getCar());\n } catch (ClassCastException e) {\n System.out.println(\"builtin arithmetic rel op given non-number\");\n return List.nil;\n }\n }\n });\n\n variables.put(\"=\", new Function(\"=\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n try {\n return ((Number) list.getCar()).equal((Number) list.getCdr().getCar());\n } catch (ClassCastException e) {\n System.out.println(\"builtin arithmetic rel op given non-number\");\n return List.nil;\n }\n }\n });\n\n variables.put(\"/=\", new Function(\"/=\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n try {\n return ((Number) list.getCar()).notEqual((Number) list.getCdr().getCar());\n } catch (ClassCastException e) {\n System.out.println(\"builtin arithmetic rel op given non-number\");\n return List.nil;\n }\n }\n });\n\n variables.put(\"<\", new Function(\"<\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n try {\n return ((Number) list.getCar()).lessThan((Number) list.getCdr().getCar());\n } catch (ClassCastException e) {\n System.out.println(\"builtin arithmetic rel op given non-number\");\n return List.nil;\n }\n }\n });\n\n variables.put(\">\", new Function(\">\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n try {\n return ((Number) list.getCar()).greaterThan((Number) list.getCdr().getCar());\n } catch (ClassCastException e) {\n System.out.println(\"builtin arithmetic rel op given non-number\");\n return List.nil;\n }\n }\n });\n\n variables.put(\"<=\", new Function(\"<=\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n try {\n return ((Number) list.getCar()).lessThanOrEqual((Number) list.getCdr().getCar());\n } catch (ClassCastException e) {\n System.out.println(\"builtin arithmetic rel op given non-number\");\n return List.nil;\n }\n }\n });\n\n variables.put(\">=\", new Function(\">=\", 2) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (!checkArity(list, variables) || list == null || list == List.nil)\n return List.nil;\n list = list.evaluate_elements(variables);\n try {\n return ((Number) list.getCar()).greaterThanOrEqual((Number) list.getCdr().getCar());\n } catch (ClassCastException e) {\n System.out.println(\"builtin arithmetic rel op given non-number\");\n return List.nil;\n }\n }\n });\n\n variables.put(\"cond\", new Function(\"cond\", -1) {\n public Expression call(List list, Map<String,Expression> variables) {\n if (list == List.nil || list == null)\n return List.nil;\n if (list.getCar() == List.nil)\n return List.nil;\n \n return Function.chain_cond(list, variables);\n }\n });\n }", "public String toString () {\n return \"(set \" + varName + \" \" + expr + \")\";\n }", "String getString_lit();", "static void translate() {\n if(!token.equals(\"IF\")) {\r\n stack.add(lexeme);\r\n index++;\r\n\r\n // Add assignment operator to the intermediate stack\r\n lex();\r\n stack.add(lexeme);\r\n index++;\r\n\r\n lex();\r\n while (!token.equals(\"END\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\")) {\r\n stack.add(index, lexeme);\r\n index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n index++;\r\n }\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n index++;\r\n break;\r\n }\r\n\r\n if (token.equals(\"IF\")) {\r\n index++;\r\n break;\r\n }\r\n }\r\n\r\n // Beginning the execution and evaluation of the translated code.\r\n index = 0;\r\n\r\n while (!stack.get(index).equals(\"=\") && !stack.get(index).equals(\"+\") && !stack.get(index).equals(\"-\") &&\r\n !stack.get(index).equals(\"*\") && !stack.get(index).equals(\"/\") && !stack.get(index).equals(\"%\")) {\r\n index ++;\r\n }\r\n\r\n int value = 0;\r\n int operand1 = 0;\r\n int operand2 = 0;\r\n String operator = stack.get(index);\r\n stack.remove(index);\r\n index--;\r\n\r\n if (operator.equals(\"=\")) {\r\n\r\n try {\r\n value = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n value = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n\r\n stack.remove(index);\r\n index--;\r\n\r\n String id = stack.get(index);\r\n stack.remove(index);\r\n\r\n //System.out.println(\"\\n\" + id + \" is equal to \" + value);\r\n\r\n if (search(id) == -1) {\r\n varList.add(id);\r\n varList.add(Integer.toString(value));\r\n } else {\r\n varList.set(search(id) + 1, Integer.toString(value));\r\n }\r\n }\r\n\r\n else {\r\n try {\r\n operand2 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand2 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n index--;\r\n\r\n try {\r\n operand1 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand1 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n\r\n execute(evaluate(operand1, operand2, operator));\r\n }\r\n\r\n if (!token.equals(\"END\")) {\r\n translate();\r\n }\r\n }\r\n\r\n // IF STATEMENTS\r\n else {\r\n if(translateIF())\r\n translate();\r\n else\r\n skipStatement();\r\n }\r\n }", "public static void main(String args[]){\n int integer = 10;\r\n \r\n // doubles store decimals\r\n double decimal = 3.14;\r\n \r\n // Booleans are either true or false\r\n boolean bool = true;\r\n \r\n // char store one character\r\n char letter;\r\n \r\n //Strings hole words and phrases\r\n String name = \"Giraffes are cool.\";\r\n \r\n //\r\n System.out.println(\"the int named integer = \" + integer );\r\n System.out.println(\"the double named decimal = \"+ decimal);\r\n System.out.println(\"the boolean named bool is \"+ bool);\r\n System.out.println(\"The string called name says '\"+ name+\"'\");\r\n\r\n}", "public interface Symbols {\n /* terminals */\n public static final int BAG = 68;\n public static final int RETRIEVE = 93;\n public static final int AS = 34;\n public static final int TIMES = 13;\n public static final int LCURLY = 54;\n public static final int TYPE = 58;\n public static final int LEAVESBY = 91;\n public static final int LOWEREQUALS = 33;\n public static final int LAZY_FAILURE = 97;\n public static final int CLOSEUNIQUEBY = 90;\n public static final int NAME = 7;\n public static final int ENUM = 70;\n public static final int FORSOME = 41;\n public static final int CATCH = 114;\n public static final int DATEPREC = 109;\n public static final int COMMA = 29;\n public static final int VIRTUAL = 99;\n public static final int RANDOM = 110;\n public static final int DOUBLE_LITERAL = 4;\n public static final int SUM = 48;\n public static final int THROW = 116;\n public static final int JOIN = 28;\n public static final int RPAREN = 19;\n public static final int ON_NAVIGATE = 106;\n public static final int STRUCT = 69;\n public static final int NOT_MATCH_STRING = 23;\n public static final int LPAREN = 18;\n public static final int NOW = 108;\n public static final int INTEGER_LITERAL = 2;\n public static final int NOT = 24;\n public static final int VIEW = 98;\n public static final int INSTANCE = 73;\n public static final int DIFFERENT = 21;\n public static final int DATE_LITERAL = 6;\n public static final int MIN = 43;\n public static final int THEN = 65;\n public static final int EXTERNAL = 67;\n public static final int RECORD = 57;\n public static final int SEROID = 120;\n public static final int REVERSE = 107;\n public static final int ON_UPDATE = 103;\n public static final int LOWER = 31;\n public static final int INSERTCOPY = 83;\n public static final int BOOLEAN_LITERAL = 5;\n public static final int TEMPORAL = 80;\n public static final int CLASS = 71;\n public static final int SEED = 101;\n public static final int IMPLEMENT = 95;\n public static final int MODULO = 17;\n public static final int UNIQUEREF = 47;\n public static final int PLUS = 10;\n public static final int FORALL = 42;\n public static final int DIVIDE = 14;\n public static final int EXISTS = 49;\n public static final int GREATEREQUALS = 32;\n public static final int WHILE = 84;\n public static final int UNION = 16;\n public static final int DELETE = 77;\n public static final int EXTENDS = 72;\n public static final int MODULE = 53;\n public static final int INTERFACE = 117;\n public static final int ASSIGN = 61;\n public static final int RSQUARE = 52;\n public static final int FOR = 86;\n public static final int DO = 85;\n public static final int SCHEMADEF = 96;\n public static final int MATCH_STRING = 22;\n public static final int GREATER = 30;\n public static final int RANGEAS = 119;\n public static final int MAX = 44;\n public static final int RETURN = 60;\n public static final int TRY = 113;\n public static final int ELSE = 66;\n public static final int DOTDOT = 50;\n public static final int BREAK = 87;\n public static final int DOT = 26;\n public static final int PERMANENT = 79;\n public static final int AVG = 45;\n public static final int TRANSACTION_ABORT = 112;\n public static final int STRING_LITERAL = 3;\n public static final int EOF = 0;\n public static final int SEMICOLON = 8;\n public static final int INTERSECT = 15;\n public static final int LSQUARE = 51;\n public static final int WHERE = 27;\n public static final int COUNT = 25;\n public static final int LOCAL = 81;\n public static final int IMPORT = 56;\n public static final int IS = 59;\n public static final int UNIQUE = 46;\n public static final int IN = 36;\n public static final int OR = 39;\n public static final int error = 1;\n public static final int HYPHEN = 11;\n public static final int LEAVESUNIQUEBY = 92;\n public static final int FINALLY = 115;\n public static final int CONTINUE = 88;\n public static final int INSTANCEOF = 74;\n public static final int IF = 64;\n public static final int CONTAINS = 37;\n public static final int COLON = 9;\n public static final int SUBTRACT = 12;\n public static final int CREATE = 78;\n public static final int DEREF = 62;\n public static final int FOREACH = 63;\n public static final int REF = 75;\n public static final int ON_DELETE = 104;\n public static final int DESEROID = 121;\n public static final int CLOSEBY = 89;\n public static final int RENAME = 122;\n public static final int UPDATE = 94;\n public static final int INSERT = 82;\n public static final int OBJECTS = 100;\n public static final int AND = 40;\n public static final int SESSION = 76;\n public static final int ON_RETRIEVE = 102;\n public static final int GROUPAS = 35;\n public static final int ON_NEW = 105;\n public static final int ORDERBY = 38;\n public static final int DISTINCT = 118;\n public static final int RCURLY = 55;\n public static final int EQUALS = 20;\n public static final int TRANSACTION_CAPABLE = 111;\n}", "public interface ParserMASConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int SINGLE_LINE_COMMENT = 9;\r\n /** RegularExpression Id. */\r\n int FORMAL_COMMENT = 10;\r\n /** RegularExpression Id. */\r\n int MULTI_LINE_COMMENT = 11;\r\n /** RegularExpression Id. */\r\n int COLON = 13;\r\n /** RegularExpression Id. */\r\n int AT = 14;\r\n /** RegularExpression Id. */\r\n int COMMA = 15;\r\n /** RegularExpression Id. */\r\n int NRAGENTS = 16;\r\n /** RegularExpression Id. */\r\n int IDENTIFIER = 17;\r\n /** RegularExpression Id. */\r\n int FILENAME = 18;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n /** Lexical state. */\r\n int IN_SINGLE_LINE_COMMENT = 1;\r\n /** Lexical state. */\r\n int IN_FORMAL_COMMENT = 2;\r\n /** Lexical state. */\r\n int IN_MULTI_LINE_COMMENT = 3;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"%\\\"\",\r\n \"\\\"//\\\"\",\r\n \"<token of kind 7>\",\r\n \"\\\"/*\\\"\",\r\n \"<SINGLE_LINE_COMMENT>\",\r\n \"\\\"*/\\\"\",\r\n \"\\\"*/\\\"\",\r\n \"<token of kind 12>\",\r\n \"\\\":\\\"\",\r\n \"\\\"@\\\"\",\r\n \"\\\",\\\"\",\r\n \"<NRAGENTS>\",\r\n \"<IDENTIFIER>\",\r\n \"<FILENAME>\",\r\n };\r\n\r\n}", "private boolean isVariable(String refWord){\n\t\tif(refWord.charAt(0) == 'i' && Character.isDigit(refWord.charAt(1)))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@Test\r\n public void basicArithmeticTest() {\n SSAgen out = new SSAgen();\r\n out.add_block(0); // Only one basic block - linear flow of execution\r\n // var x = 3, var y = 5;\r\n out.addConstant(new Result(Result.kind.Constant, 3));\r\n out.addConstant(new Result(Result.kind.Constant, 5));\r\n // assign variables x and y to prior constant - job of parser, but emulated here\r\n Result x = new Result(Result.kind.Variable, 0);\r\n Result y = new Result(Result.kind.Variable, 1);\r\n // addition, sub, mul, div\r\n out.add_instruction(0, x, y);\r\n out.add_instruction(1, x, y);\r\n out.add_instruction(2, x, y);\r\n out.add_instruction(3, x, y);\r\n\r\n Instruction curInst;\r\n String [] correct = {\"const #3\\n\", \"const #5\\n\", \"add (0) (1)\\n\", \"sub (0) (1)\\n\", \"mul (0) (1)\\n\", \"div (0) (1)\\n\"};\r\n for (int i = 0; i < 6; ++i) {\r\n curInst = out.current_block.getInstruction(i);\r\n assertEquals(curInst.getInstrString(), correct[i]);\r\n }\r\n }", "@Test\r\n\t\tpublic void testTokenizeVariable() {\r\n\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"variable1 = 5\\nb = 6\\nc = variable1 + (b * 4)\");;\r\n\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.name(\"commit\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"variable1\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "public String toString()\n {\n return \"LiteralOPToken(\" + getValue() + \")\";\n }", "private ProgrammingLanguage(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public VariableToken(String text) {\n super(text);\n }", "String getVariable();", "String getHeadLiteral();", "public interface langBConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int BREAK = 12;\n /** RegularExpression Id. */\n int CLASS = 13;\n /** RegularExpression Id. */\n int CONSTRUCTOR = 14;\n /** RegularExpression Id. */\n int ELSE = 15;\n /** RegularExpression Id. */\n int EXTENDS = 16;\n /** RegularExpression Id. */\n int FOR = 17;\n /** RegularExpression Id. */\n int IF = 18;\n /** RegularExpression Id. */\n int THEN = 19;\n /** RegularExpression Id. */\n int INT = 20;\n /** RegularExpression Id. */\n int NEW = 21;\n /** RegularExpression Id. */\n int PRINT = 22;\n /** RegularExpression Id. */\n int READ = 23;\n /** RegularExpression Id. */\n int RETURN = 24;\n /** RegularExpression Id. */\n int STRING = 25;\n /** RegularExpression Id. */\n int SUPER = 26;\n /** RegularExpression Id. */\n int BOOLEAN = 27;\n /** RegularExpression Id. */\n int TRUE = 28;\n /** RegularExpression Id. */\n int FALSE = 29;\n /** RegularExpression Id. */\n int WHILE = 30;\n /** RegularExpression Id. */\n int SWITCH = 31;\n /** RegularExpression Id. */\n int CASE = 32;\n /** RegularExpression Id. */\n int int_constant = 33;\n /** RegularExpression Id. */\n int string_constant = 34;\n /** RegularExpression Id. */\n int null_constant = 35;\n /** RegularExpression Id. */\n int IDENT = 36;\n /** RegularExpression Id. */\n int LETTER = 37;\n /** RegularExpression Id. */\n int DIGIT = 38;\n /** RegularExpression Id. */\n int UNDERSCORE = 39;\n /** RegularExpression Id. */\n int LPAREN = 40;\n /** RegularExpression Id. */\n int RPAREN = 41;\n /** RegularExpression Id. */\n int LBRACE = 42;\n /** RegularExpression Id. */\n int RBRACE = 43;\n /** RegularExpression Id. */\n int LBRACKET = 44;\n /** RegularExpression Id. */\n int RBRACKET = 45;\n /** RegularExpression Id. */\n int SEMICOLON = 46;\n /** RegularExpression Id. */\n int COMMA = 47;\n /** RegularExpression Id. */\n int DOT = 48;\n /** RegularExpression Id. */\n int DDOT = 49;\n /** RegularExpression Id. */\n int QUESTIONMARK = 50;\n /** RegularExpression Id. */\n int ASSIGN = 51;\n /** RegularExpression Id. */\n int GT = 52;\n /** RegularExpression Id. */\n int LT = 53;\n /** RegularExpression Id. */\n int EQ = 54;\n /** RegularExpression Id. */\n int LE = 55;\n /** RegularExpression Id. */\n int GE = 56;\n /** RegularExpression Id. */\n int NEQ = 57;\n /** RegularExpression Id. */\n int PLUS = 58;\n /** RegularExpression Id. */\n int MINUS = 59;\n /** RegularExpression Id. */\n int STAR = 60;\n /** RegularExpression Id. */\n int SLASH = 61;\n /** RegularExpression Id. */\n int REM = 62;\n /** RegularExpression Id. */\n int OR = 63;\n /** RegularExpression Id. */\n int AND = 64;\n /** RegularExpression Id. */\n int INVALID_LEXICAL = 65;\n /** RegularExpression Id. */\n int INVALID_CONST = 66;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int multilinecomment = 1;\n /** Lexical state. */\n int singlelinecomment = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"/*\\\"\",\n \"\\\"//\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 9>\",\n \"<token of kind 10>\",\n \"<token of kind 11>\",\n \"\\\"parar\\\"\",\n \"\\\"classe\\\"\",\n \"\\\"construtor\\\"\",\n \"\\\"senao\\\"\",\n \"\\\"herda\\\"\",\n \"\\\"para\\\"\",\n \"\\\"se\\\"\",\n \"\\\"entao\\\"\",\n \"\\\"inteiro\\\"\",\n \"\\\"novo\\\"\",\n \"\\\"imprimir\\\"\",\n \"\\\"ler\\\"\",\n \"\\\"retornar\\\"\",\n \"\\\"texto\\\"\",\n \"\\\"super\\\"\",\n \"\\\"cara_coroa\\\"\",\n \"\\\"cara\\\"\",\n \"\\\"coroa\\\"\",\n \"\\\"enquanto\\\"\",\n \"\\\"trocar\\\"\",\n \"\\\"caso\\\"\",\n \"<int_constant>\",\n \"<string_constant>\",\n \"\\\"nulo\\\"\",\n \"<IDENT>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"<UNDERSCORE>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\":\\\"\",\n \"\\\"?\\\"\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"<INVALID_LEXICAL>\",\n \"<INVALID_CONST>\",\n };\n\n}", "public Literal setLiteralString(String literalData);", "@Test\n\tpublic void testLetBlockAndLetExpression()\n\t{\n\t\tString[] code = {\n\t\t\t\"let (x=1, y=2, z=3)\",\n\t\t \"{\",\n\t\t \" let(t=4) print(x, y, z, t);\",\n\t\t \" print(let(u=4) u,x);\",\n\t\t \"}\",\n\t\t \"for (; ; let (x = 1) x) {}\"\n\t\t};\n\t\t\n\t\tth.test(code, new LinterOptions().set(\"moz\", true).set(\"unused\", true).set(\"undef\", true).setPredefineds(\"print\"));\n\t}", "public static void main(String[] args) {\n System.out.println(\"Need to count following expression\\n4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11))\\n\");\n System.out.println(\"First way - just make math in System.out.println\");\n System.out.println(\"4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11))=\" + (4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11))));\n System.out.println();\n System.out.println(\"Second way - create variables and put the expressions in () variables\\nThen make math in System.out.println using that variables\");\n double a = 4.0;\n double b = 1;\n double c = 1.0/3;\n double d = 1.0/5;\n double e = 1.0/7;\n double f = 1.0/9;\n double g = 1.0/11;\n System.out.print(\"4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11))=\");\n System.out.println(a * (b - c + d - e + f - g));\n System.out.println();\n System.out.println(\"One more way - add one more variable, count the result in that variable and print it\");\n double i = a * (b - c + d - e + f - g);\n String j = \"4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11))=\";\n System.out.println((j) + (i));\n\n\n\n }", "SimpleLiteral createSimpleLiteral();", "private ELOperandToken readVarToken() {\r\n \t\tfState = STATE_VAR;\r\n \t\tint endOfToken = index;\r\n \t\tint ch;\r\n \t\tint type = ELOperandToken.EL_PROPERTY_NAME_TOKEN;\r\n \t\twhile((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isJavaIdentifierPart(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t\t\t}\r\n \t\t}\r\n \t\treleaseChar();\r\n \t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t}", "public String toString() {\r\n\t\tString result = null;\r\n\t\tif (varname != null){\r\n\t\t\tif (isFormal())\r\n\t\t\t\tresult = \"(?)\" + varname;\r\n\t\t\telse\r\n\t\t\t\tresult = \"($)\"+ varname;\t\r\n\t\t} \r\n\t\telse\r\n\t\t\tresult = super.toString();\r\n\t\t\t\r\n\t\treturn result;\r\n\t}", "public String getVariable();", "public interface PreprocessorConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PEDAGOGICALMARKUP2 = 1;\n /** RegularExpression Id. */\n int PEDAGOGICALMARKUP3 = 2;\n /** RegularExpression Id. */\n int PEDAGOGICALMARKUP4 = 3;\n /** RegularExpression Id. */\n int PEDAGOGICALMARKUP_INVISIBLE_ALL = 4;\n /** RegularExpression Id. */\n int KEEP_SPACE = 9;\n /** RegularExpression Id. */\n int CSTYLECOMMENTSTART = 10;\n /** RegularExpression Id. */\n int NEWLINE = 11;\n /** RegularExpression Id. */\n int LINECOMMENTSTART = 12;\n /** RegularExpression Id. */\n int STARTDIRECTIVE = 13;\n /** RegularExpression Id. */\n int PPINCLUDE = 19;\n /** RegularExpression Id. */\n int PPIF = 20;\n /** RegularExpression Id. */\n int PPIFDEF = 21;\n /** RegularExpression Id. */\n int PPIFNDEF = 22;\n /** RegularExpression Id. */\n int PPELIF = 23;\n /** RegularExpression Id. */\n int PPELSE = 24;\n /** RegularExpression Id. */\n int PPENDIF = 25;\n /** RegularExpression Id. */\n int PPDEFINE = 26;\n /** RegularExpression Id. */\n int PPUNDEF = 27;\n /** RegularExpression Id. */\n int PPLINE = 28;\n /** RegularExpression Id. */\n int PPERROR = 29;\n /** RegularExpression Id. */\n int PPPRAGMA = 30;\n /** RegularExpression Id. */\n int UNEXPECTED = 31;\n /** RegularExpression Id. */\n int DQFILENAME = 32;\n /** RegularExpression Id. */\n int AQFILENAME = 33;\n /** RegularExpression Id. */\n int KEEP_KEYWORD = 34;\n /** RegularExpression Id. */\n int KEEP_NCONST = 35;\n /** RegularExpression Id. */\n int INT = 36;\n /** RegularExpression Id. */\n int INTSUFFIX = 37;\n /** RegularExpression Id. */\n int FLOATCONST = 38;\n /** RegularExpression Id. */\n int LOCAL_FLOATCONST = 39;\n /** RegularExpression Id. */\n int DIGITS = 40;\n /** RegularExpression Id. */\n int EXPPART = 41;\n /** RegularExpression Id. */\n int KEEP_ACONST = 42;\n /** RegularExpression Id. */\n int CHARACTER = 43;\n /** RegularExpression Id. */\n int STRING = 44;\n /** RegularExpression Id. */\n int SIMPLEESCAPESEQ = 45;\n /** RegularExpression Id. */\n int OCTALESCAPESEQ = 46;\n /** RegularExpression Id. */\n int HEXESCAPESEQ = 47;\n /** RegularExpression Id. */\n int UCODENAME = 48;\n /** RegularExpression Id. */\n int HEXQUAD = 49;\n /** RegularExpression Id. */\n int HEXDIG = 50;\n /** RegularExpression Id. */\n int KEEP_ID = 51;\n /** RegularExpression Id. */\n int KEEP_REST = 52;\n\n /** Lexical state. */\n int AFTERINCLUDE = 0;\n /** Lexical state. */\n int DIRECTIVE0 = 1;\n /** Lexical state. */\n int IN_C_COMMENT = 2;\n /** Lexical state. */\n int IN_LINE_COMMENT = 3;\n /** Lexical state. */\n int IN_PEDAGOGICAL_COMMENT = 4;\n /** Lexical state. */\n int MIDLINE = 5;\n /** Lexical state. */\n int DEFAULT = 6;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<PEDAGOGICALMARKUP2>\",\n \"<PEDAGOGICALMARKUP3>\",\n \"\\\"/*#\\\"\",\n \"\\\"/*#I\\\"\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 8>\",\n \"<KEEP_SPACE>\",\n \"\\\"/*\\\"\",\n \"<NEWLINE>\",\n \"\\\"//\\\"\",\n \"\\\"#\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 15>\",\n \"\\\"*/\\\"\",\n \"<token of kind 17>\",\n \"<token of kind 18>\",\n \"\\\"include\\\"\",\n \"\\\"if\\\"\",\n \"\\\"ifdef\\\"\",\n \"\\\"ifndef\\\"\",\n \"\\\"elif\\\"\",\n \"\\\"else\\\"\",\n \"\\\"endif\\\"\",\n \"\\\"define\\\"\",\n \"\\\"undef\\\"\",\n \"\\\"line\\\"\",\n \"\\\"error\\\"\",\n \"\\\"pragma\\\"\",\n \"<UNEXPECTED>\",\n \"<DQFILENAME>\",\n \"<AQFILENAME>\",\n \"<KEEP_KEYWORD>\",\n \"<KEEP_NCONST>\",\n \"<INT>\",\n \"<INTSUFFIX>\",\n \"<FLOATCONST>\",\n \"<LOCAL_FLOATCONST>\",\n \"<DIGITS>\",\n \"<EXPPART>\",\n \"<KEEP_ACONST>\",\n \"<CHARACTER>\",\n \"<STRING>\",\n \"<SIMPLEESCAPESEQ>\",\n \"<OCTALESCAPESEQ>\",\n \"<HEXESCAPESEQ>\",\n \"<UCODENAME>\",\n \"<HEXQUAD>\",\n \"<HEXDIG>\",\n \"<KEEP_ID>\",\n \"<KEEP_REST>\",\n };\n\n}" ]
[ "0.59805554", "0.5959672", "0.5959672", "0.5958913", "0.59210575", "0.591461", "0.5901314", "0.58975863", "0.5878692", "0.5829799", "0.58232784", "0.5804326", "0.5759074", "0.5698334", "0.5684242", "0.567672", "0.566835", "0.5661575", "0.5640531", "0.5629224", "0.5627988", "0.5605828", "0.5599934", "0.5597832", "0.55879766", "0.5562093", "0.5562093", "0.5552863", "0.5550835", "0.55248743", "0.5513449", "0.5512546", "0.5504316", "0.5504107", "0.54815197", "0.5466292", "0.5418673", "0.54057896", "0.54026127", "0.5394999", "0.53931636", "0.53613603", "0.5337769", "0.5337769", "0.53335935", "0.53293526", "0.5327969", "0.53197056", "0.5318793", "0.53175884", "0.53098345", "0.53071856", "0.5291387", "0.5283625", "0.52830845", "0.5275265", "0.52667975", "0.5262897", "0.5260145", "0.5258543", "0.5258074", "0.52515286", "0.52487767", "0.52487665", "0.52457803", "0.5242437", "0.52235717", "0.5221016", "0.52194947", "0.5216723", "0.52153355", "0.52121586", "0.5204986", "0.5200932", "0.5194482", "0.51866513", "0.5182393", "0.51772565", "0.51738685", "0.5161345", "0.51565397", "0.5154325", "0.51534826", "0.51526433", "0.5152515", "0.51511544", "0.5148145", "0.5140933", "0.51369977", "0.5134166", "0.5134003", "0.51333946", "0.512282", "0.5120777", "0.51195526", "0.5117828", "0.51172644", "0.5112036", "0.511072", "0.5100637", "0.50972086" ]
0.0
-1
Marker interface for L1Nodes with quoted content. The sematics are: This node contains only quoted chars, they must not be interpreted as special chars whereever they could be special. Of course, there is a exception: the slash ("/") is allways a slash in pattern matching, there is no way to quote a slash in pathnames. (And therefore there is no pattern to match a filename containing a slash). The method appendUnquoted(StringBuilder) could be moved to this interface, since on not quoted nodes it returns the same as getImage(). As of 20150123 there are three quoted L1Node classes: BackslashQuotedL1Node DQuotedL1Node SQuotedL1Node
public interface QuotedL1Node { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void quote() {\n text.append(\"\\'\");\n }", "private String doubleQuote( String raw ) { return '\"' + raw + '\"'; }", "Rule DoubleQuotedLiteral() {\n return Sequence(\n \"\\\"\",\n ZeroOrMore(NoneOf(\"\\\"\")),\n \"\\\"\");\n }", "private String prepareSeparator(String quoted) {\n String result = quoted;\n int len = quoted.length();\n if (len >= 2 && (quoted.startsWith(\"\\\"\") || quoted.startsWith(\"\\'\"))) {\n if (quoted.charAt(0) == quoted.charAt(len - 1)) {\n result = quoted.substring(1, len - 1);\n }\n }\n return result\n .replaceAll(\"\\\\\\\\n\", \"\\n\")\n .replaceAll(\"\\\\\\\\r\", \"\\r\")\n .replaceAll(\"\\\\\\\\t\", \"\\t\")\n .replaceAll(\"\\\\\\\\\\\\\\\\\", \"\\\\\")\n ;\n }", "@Test\n public void testStringLiteralEscapedTick4() throws Exception {\n String sql = \"SELECT \\\" \\\"\\\" \\\" FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \" \\\" \");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }", "public void doubleQuote() {\n text.append(\"\\\"\");\n }", "private static boolean QuotStringLiteral_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"QuotStringLiteral_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, PREDEFINEDENTITYREF);\n if (!r) r = consumeToken(b, CHARREF);\n if (!r) r = EscapeQuot(b, l + 1);\n if (!r) r = consumeToken(b, STRINGCHAR);\n exit_section_(b, m, null, r);\n return r;\n }", "protected String getQuote() {\n return \"\\\"\";\n }", "default Escaper escapeDoubleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }", "private static String quote(String identifierPart, char quotingChar) {\n if (identifierPart == null) {\n return null;\n }\n\n if (identifierPart.isEmpty()) {\n return new StringBuilder().append(quotingChar).append(quotingChar).toString();\n }\n\n if (identifierPart.charAt(0) != quotingChar && identifierPart.charAt(identifierPart.length() - 1) != quotingChar) {\n identifierPart = identifierPart.replace(quotingChar + \"\", repeat(quotingChar));\n identifierPart = quotingChar + identifierPart + quotingChar;\n }\n\n return identifierPart;\n }", "protected int scanQuotedString () throws HTMLParseException {\r\n int endindex = -1;\r\n int startindex = index - 1;\r\n byte start = pagepart[startindex];\r\n while (index < length) {\r\n if (pagepart[index++] == start) {\r\n endindex = index;\r\n break;\r\n }\r\n }\r\n if (endindex == -1) {\r\n block.setRest (lastTagStart);\r\n return END;\r\n }\r\n int l = (endindex < length ? endindex : length) - startindex;\r\n try {\r\n// stringValue = new String (pagepart, startindex, l, \"ISO-8859-1\");\r\n // Tag Value 값을 저장할때 한글이 깨지기 때문에 String 을 생성 할때 UTF-8 로 생성\r\n stringValue = new String (pagepart, startindex, l, UTF8_ENCODE);\r\n } catch (Exception e) {\r\n throw new HTMLParseException (\"doh: \" + e);\r\n }\r\n switch (start) {\r\n case (int)'\\'':\r\n return SQSTRING;\r\n case (int)'\"':\r\n return DQSTRING;\r\n default:\r\n return UNKNOWN;\r\n }\r\n }", "@Test\n public void testStringLiteralEscapedTick2() throws Exception {\n String sql = \"SELECT '''abc''' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"'abc'\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }", "private static boolean QuotStringLiteral_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"QuotStringLiteral_1\")) return false;\n int c = current_position_(b);\n while (true) {\n if (!QuotStringLiteral_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"QuotStringLiteral_1\", c)) break;\n c = current_position_(b);\n }\n return true;\n }", "default Escaper escapeSingleQuotes() {\n return and((char c) -> {\n if (c == '\"') {\n return \"\\\\\\\"\";\n }\n return null;\n });\n }", "final public IASTLiteralTextNode LanguageVariantsQuotedStringArgument() throws ParseException {\r\n IASTLiteralTextNode node = null;\r\n Token token = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case AMPERSAND:\r\n jj_consume_token(AMPERSAND);\r\n break;\r\n default:\r\n jj_la1[19] = jj_gen;\r\n ;\r\n }\r\n token = jj_consume_token(STRING);\r\n node = getRawLiteralTextNodeSpanning(token, token);\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }", "public String nextString(char quote) throws JSONException {\n char c;\n StringBuilder sb = new StringBuilder();\n\n for(;;) {\n c = this.next();\n switch (c) {\n case 0:\n case '\\n':\n case '\\r':\n throw this.syntaxError(\"Unterminated string\");\n case '\\\\':\n c = this.next();\n switch (c) {\n case 'b':\n sb.append('\\b');\n break;\n case 't':\n sb.append('\\t');\n break;\n case 'n':\n sb.append('\\n');\n break;\n case '\\f':\n sb.append('\\f');\n break;\n case 'r':\n sb.append('\\r');\n break;\n case 'u':\n try {\n sb.append(Integer.parseInt(this.next(4), 16));\n } catch (NumberFormatException e) {\n throw this.syntaxError(\"Illegal escape.\", e);\n }\n break;\n case '\"':\n case '\\'':\n case '\\\\':\n case '/':\n sb.append(c);\n break;\n default:\n throw this.syntaxError(\"Illegal escape.\");\n }\n break;\n default:\n if(c == quote) {\n return sb.toString();\n }\n sb.append(c);\n }\n }\n }", "public Quotes() { }", "public String unvisitedString(Vector<Parser> visited) {\n\treturn \"QuotedString\";\n}", "Rule SingleQuotedLiteral() {\n return Sequence(\n \"'\",\n ZeroOrMore(NoneOf(\"'\")),\n \"'\");\n }", "public final AstValidator.comment_return comment() throws RecognitionException {\n AstValidator.comment_return retval = new AstValidator.comment_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree QUOTEDSTRING176=null;\n\n CommonTree QUOTEDSTRING176_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:386:9: ( QUOTEDSTRING )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:386:11: QUOTEDSTRING\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n QUOTEDSTRING176=(CommonTree)match(input,QUOTEDSTRING,FOLLOW_QUOTEDSTRING_in_comment1705); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n QUOTEDSTRING176_tree = (CommonTree)adaptor.dupNode(QUOTEDSTRING176);\n\n\n adaptor.addChild(root_0, QUOTEDSTRING176_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "String applyQuote(String name);", "public DoubleNode(){\r\n this( null, '\\0', null );\r\n }", "public final AstValidator.path_list_return path_list() throws RecognitionException {\n AstValidator.path_list_return retval = new AstValidator.path_list_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree QUOTEDSTRING59=null;\n\n CommonTree QUOTEDSTRING59_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:207:11: ( ( QUOTEDSTRING )+ )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:207:13: ( QUOTEDSTRING )+\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:207:13: ( QUOTEDSTRING )+\n int cnt10=0;\n loop10:\n do {\n int alt10=2;\n int LA10_0 = input.LA(1);\n\n if ( (LA10_0==QUOTEDSTRING) ) {\n alt10=1;\n }\n\n\n switch (alt10) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:207:13: QUOTEDSTRING\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t QUOTEDSTRING59=(CommonTree)match(input,QUOTEDSTRING,FOLLOW_QUOTEDSTRING_in_path_list757); if (state.failed) return retval;\n \t if ( state.backtracking==0 ) {\n \t QUOTEDSTRING59_tree = (CommonTree)adaptor.dupNode(QUOTEDSTRING59);\n\n\n \t adaptor.addChild(root_0, QUOTEDSTRING59_tree);\n \t }\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt10 >= 1 ) break loop10;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(10, input);\n throw eee;\n }\n cnt10++;\n } while (true);\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@AutoEscape\n\tpublic String getNode_1();", "@Test\n public void testPartlyQuotedGroup() throws Exception {\n String sql = \"SELECT a from db.\\\"g\\\" where a = 5\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node criteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n verifyElementSymbol(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, \"a\");\n verifyConstant(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, 5);\n \n verifySql(\"SELECT a FROM db.g WHERE a = 5\", fileNode);\n }", "public String getQuote();", "public String generateNewick() \n { \n \n String newick = new String();\n\n if (type.equals(\"internal\")){\n newick = \"(\";\n }\n \n if (!name.equals(\"\")){\n newick = newick + name;\n }\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n newick = newick + child.generateNewick();\n if(it.hasNext()){\n newick = newick + \",\";\n }\n }\n }\n if (type.equals(\"internal\")){\n newick = newick + \")\";\n }\n if (length >0){\n newick = newick + \":\" + length;\n }\n \n return newick;\n }", "public String getNewick() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String newick = new String();\n newick = newick + generateNewick();\n newick = newick + \";\";\n return newick;\n }", "@Test\n public void testStringLiteralEscapedTick3() throws Exception {\n String sql = \"SELECT 'a''b''c' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"a'b'c\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }", "private String stripQuotes( String quoted ) { return quoted.substring( 1, quoted.length() - 1 ); }", "private boolean nodquotes() {\r\n return OPT(GO() && NOT(GO() && CHAR('\"')) && literal() && nodquotes());\r\n }", "String getImaginary_lit();", "@Test\n public void testStringLiteralEscapedTick() throws Exception {\n String sql = \"SELECT 'O''Leary' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node constantNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, Constant.ID);\n verifyProperty(constantNode, Constant.VALUE_PROP_NAME, \"O'Leary\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"a.g1\");\n \n verifySql(sql, fileNode);\n }", "private static String unquote(String raw) {\r\n String result;\r\n if (null == raw) {\r\n result = null;\r\n } else {\r\n if (raw.length() >= 2 && raw.startsWith(\"\\\"\") && raw.endsWith(\"\\\"\")) {\r\n result = raw.substring(1, raw.length() - 1);\r\n } else {\r\n if (raw.equals(\"null\")) {\r\n result = null;\r\n } else {\r\n result = raw;\r\n }\r\n }\r\n }\r\n return result;\r\n }", "void createItem(StreamTokenizer st) throws DataFormatException, IOException {\n\t\tboolean debug = false;\n\t\tboolean inComment = false;\n\t\tStringBuffer treebuf = new StringBuffer();\n\t\twhile (true) {\n\t\t\tswitch (st.nextToken()) {\n\t\t\tcase StreamTokenizer.TT_WORD:\n\t\t\t\t// inside a comment. Ignore it.\n\t\t\t\tif (inComment)\n\t\t\t\t\tbreak;\n\t\t\t\t// reached a valid piece. add it.\n\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to add token \"+st.sval);\n\t\t\t\ttreebuf.append(st.sval);\n\t\t\t\tbreak;\n\t\t\tcase '\"':\n\t\t\t\t// inside a comment. Ignore it.\n\t\t\t\tif (inComment)\n\t\t\t\t\tbreak;\n\t\t\t\t// reached a valid piece. add it.\n\t\t\t\t// check for length 0 and triple quote\n\t\t\t\tif (st.sval.length() == 0) {\n\t\t\t\t\tst.ordinaryChar('\"');\n\t\t\t\t\tif (st.nextToken() == '\"') {\n\t\t\t\t\t\tif (debug) Debug.debug(debug, \"Found triple quote\");\n\t\t\t\t\t\ttreebuf.append(\"\\\"\\\"\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tst.pushBack();\n\t\t\t\t\t\tif (debug) Debug.debug(debug, \"Found empty double quote\");\n\t\t\t\t\t\ttreebuf.append(\"\\\"\\\"\");\n\t\t\t\t\t}\n\t\t\t\t\tst.quoteChar('\"');\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to add quoted token \"+st.sval);\n\t\t\t\t\ttreebuf.append(\"\\\"\"+st.sval+\"\\\"\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase '@':\n\t\t\tcase '#':\n\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: pushing symbol back\");\n\t\t\t\tst.pushBack();\n\t\t\tcase StreamTokenizer.TT_EOL:\n\t\t\tcase StreamTokenizer.TT_EOF:\n\n\t\t\t\t// in a newline. Reset any inComment aspect\n\t\t\t\tinComment = false;\n\t\t\t\tif (treebuf.length() > 0) {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"TreeItem: About to process item \"+treebuf.toString());\n\t\t\t\t\tTreeItem t = new TreeItem(treebuf);\n\t\t\t\t\tchildren = t.children;\n\t\t\t\t\tnumChildren = t.numChildren;\n\t\t\t\t\tnumNodes = t.numNodes;\n\t\t\t\t\ttruncated = t.truncated;\n\t\t\t\t\tlabel = t.label;\n\t\t\t\t\tweight = t.weight;\n\t\t\t\t\tisEmptyString = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (debug) Debug.debug(debug, \"Skipping empty line\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// can't reach here, so no break\n\t\t\tcase COMMENT:\n\t\t\t\t// in a comment. Set inComment flag\n\t\t\t\tinComment = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new DataFormatException(\" Expected word, but read \"+st.ttype+\" which is \"+(char)st.ttype);\n\n\t\t\t}\n\t\t}\n\t}", "public Quotes() {\n\t\tthis(\"quotes\", null);\n\t}", "public final void mQUOTED_STRING() throws RecognitionException {\n try {\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:390:23: ( QUOTE_SINGLE (~ QUOTE_SINGLE )* QUOTE_SINGLE )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:390:25: QUOTE_SINGLE (~ QUOTE_SINGLE )* QUOTE_SINGLE\n {\n mQUOTE_SINGLE(); \n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:390:38: (~ QUOTE_SINGLE )*\n loop5:\n do {\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( ((LA5_0>='\\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='\\uFFFF')) ) {\n alt5=1;\n }\n\n\n switch (alt5) {\n \tcase 1 :\n \t // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:390:39: ~ QUOTE_SINGLE\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='$')||(input.LA(1)>='&' && input.LA(1)<='\\uFFFF') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop5;\n }\n } while (true);\n\n mQUOTE_SINGLE(); \n\n }\n\n }\n finally {\n }\n }", "@AutoEscape\n\tpublic String getNode_2();", "private void createStringConcat( AOpExpr node){\n\t\til.append(fi.createNew(\"java.lang.StringBuilder\"));\n \til.append(InstructionConstants.DUP);\n \tnode.getLeft().apply(this); //Load the left string.\n \til.append(fi.createInvoke(\"java.lang.StringBuilder\", \"<init>\", org.apache.bcel.generic.Type.VOID, new org.apache.bcel.generic.Type[] { org.apache.bcel.generic.Type.STRING }, Constants.INVOKESPECIAL));\n \tnode.getRight().apply(this); \n \til.append(fi.createInvoke(\"java.lang.StringBuilder\", \"append\", new org.apache.bcel.generic.ObjectType(\"java.lang.StringBuilder\"), new org.apache.bcel.generic.Type[] { org.apache.bcel.generic.Type.STRING }, Constants.INVOKEVIRTUAL));\n \til.append(fi.createInvoke(\"java.lang.StringBuilder\", \"toString\", org.apache.bcel.generic.Type.STRING, org.apache.bcel.generic.Type.NO_ARGS, Constants.INVOKEVIRTUAL));\n\t}", "void stringifyPair(boolean quoted, StringBuffer buf) {\n\t\tString special = null;\n\t\tif ((rest instanceof Pair) && rest(rest) == null)\n\t\t\tspecial = (first == \"quote\") ? \"'\" : (first == \"quasiquote\") ? \"`\"\n\t\t\t\t: (first == \"unquote\") ? \",\" : (first == \"unquote-splicing\") ? \",@\"\n\t\t\t\t: null;\n\n\t\tif (special != null) {\n\t\t\tbuf.append(special); stringify(second(this), quoted, buf);\n\t\t} else {\n\t\t\tbuf.append('(');\n\t\t\tstringify(first, quoted, buf);\n\t\t\tObject tail = rest;\n\t\t\twhile (tail instanceof Pair) {\n\t\t\t\tbuf.append(' ');\n\t\t\t\tstringify(((Pair)tail).first, quoted, buf);\n\t\t\t\ttail = ((Pair)tail).rest;\n\t\t\t}\n\t\t\tif (tail != null) {\n\t\t\t\tbuf.append(\" . \");\n\t\t\t\tstringify(tail, quoted, buf);\n\t\t\t}\n\t\t\tbuf.append(')');\n\t\t}\n\t}", "public String parse(JFlexLexer lexer, String raw, Object... args) throws ParserException {\r\n \t\tif (lexer.getMode() <= JFlexParser.MODE_PREPROCESS) {\r\n \t\t\t// parse as a link if not doing a full parse\r\n \t\t\treturn lexer.parse(JFlexLexer.TAG_TYPE_WIKI_LINK, raw);\r\n \t\t}\r\n \t\tWikiLink wikiLink = JFlexParserUtil.parseWikiLink(lexer.getParserInput(), raw);\r\n \t\tif (StringUtils.isBlank(wikiLink.getDestination()) && StringUtils.isBlank(wikiLink.getSection())) {\r\n \t\t\t// no destination or section\r\n \t\t\treturn raw;\r\n \t\t}\r\n \t\tif (wikiLink.getColon() || !wikiLink.getNamespace().getId().equals(Namespace.FILE_ID)) {\r\n \t\t\t// parse as a link\r\n \t\t\treturn lexer.parse(JFlexLexer.TAG_TYPE_WIKI_LINK, raw);\r\n \t\t}\r\n \t\ttry {\r\n\t\t\tString result = this.parseImageLink(lexer.getParserInput(), lexer.getMode(), wikiLink);\r\n\t\t\t// depending on image alignment/border the image may be contained within a div. If that's the\r\n\t\t\t// case, close any open paragraph tags prior to pushing the image onto the stack\r\n\t\t\tif (result.startsWith(\"<div\") && lexer.peekTag().getTagType().equals(\"p\")) {\r\n\t\t\t\tlexer.popTag(\"p\");\r\n\t\t\t\tStringBuilder tagContent = lexer.peekTag().getTagContent();\r\n\t\t\t\tString trimmedTagContent = tagContent.toString().trim();\r\n\t\t\t\tif (tagContent.length() != trimmedTagContent.length()) {\r\n\t\t\t\t\t// trim trailing whitespace\r\n\t\t\t\t\ttagContent.replace(0, tagContent.length() - 1, trimmedTagContent);\r\n\t\t\t\t}\r\n\t\t\t\ttagContent.append(result);\r\n\t\t\t\tlexer.pushTag(\"p\", null);\r\n\t\t\t\treturn \"\";\r\n\t\t\t} else {\r\n\t\t\t\t// otherwise just return the image HTML\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n \t\t} catch (DataAccessException e) {\r\n \t\t\tlogger.severe(\"Failure while parsing link \" + raw, e);\r\n \t\t\treturn \"\";\r\n \t\t} catch (ParserException e) {\r\n \t\t\tlogger.severe(\"Failure while parsing link \" + raw, e);\r\n \t\t\treturn \"\";\r\n \t\t}\r\n \t}", "@Override\n public String doQuote(String identifier) {\n return \"\\\"\" + identifier + \"\\\"\";\n }", "static boolean QuotStringLiteral(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"QuotStringLiteral\")) return false;\n if (!nextTokenIs(b, OPENINGQUOT)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, OPENINGQUOT);\n r = r && QuotStringLiteral_1(b, l + 1);\n r = r && consumeToken(b, CLOSINGQUOT);\n exit_section_(b, m, null, r);\n return r;\n }", "public final void mQUOTE_SINGLE() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = QUOTE_SINGLE;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:424:13: ( '\\\\'' )\n\t\t\t// /Users/Sarah/Projects/ontop/obdalib-core/src/main/java/it/unibz/krdb/obda/parser/Datalog.g:424:16: '\\\\''\n\t\t\t{\n\t\t\tmatch('\\''); \n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}", "private void eatTripleQuote() {\n position += 3;\n while (position < length) {\n if (data.charAt(position) == '\\'' && isTripleQuoteAtPosition()) {\n tokenStart += 3;\n tokenEnd = position;\n isEscaped = true;\n position += 3;\n return;\n }\n\n position++;\n }\n\n tokenEnd = position;\n }", "@Override\n\tpublic String toString() {\n\t\treturn text.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\").replaceAll(\"[{]\\\\$\", \"\\\\\\\\{\\\\$\");\n\t}", "private void textilizeNonBlankLine () {\n StringBuffer blockMod = new StringBuffer();\n int startPosition = 0;\n int textPosition = 0;\n leftParenPartOfURL = false;\n attributeType = 0;\n klass = new StringBuffer();\n id = new StringBuffer();\n style = new StringBuffer();\n language = new StringBuffer();\n String imageTitle = \"\";\n String imageURL = \"\";\n int endOfImageURL = -1;\n boolean doublePeriod = false;\n int periodPosition = line.indexOf (\".\");\n if (periodPosition >= 0) {\n textPosition = periodPosition + 1;\n if (textPosition < line.length()) {\n if (line.charAt (textPosition) == '.') {\n doublePeriod = true;\n textPosition++;\n }\n if (textPosition < line.length()\n && line.charAt (textPosition) == ' ') {\n textPosition++;\n textIndex = 0;\n while (textIndex < periodPosition\n && (Character.isLetterOrDigit (textChar()))) {\n blockMod.append (textChar());\n textIndex++;\n } // end while more letters and digits\n if (blockMod.toString().equals (\"p\")\n || blockMod.toString().equals (\"bq\")\n || blockMod.toString().equals (\"h1\")\n || blockMod.toString().equals (\"h2\")\n || blockMod.toString().equals (\"h3\")\n || blockMod.toString().equals (\"h4\")\n || blockMod.toString().equals (\"h5\")\n || blockMod.toString().equals (\"h6\")) {\n // look for attributes\n collectAttributes (periodPosition);\n } else {\n blockMod = new StringBuffer();\n textPosition = 0;\n }\n } // end if space follows period(s)\n } // end if not end of line following first period\n } // end if period found\n\n // Start processing at the beginning of the line\n textIndex = 0;\n\n // If we have a block modifier, then generate appropriate HTML\n if (blockMod.length() > 0) {\n lineDelete (textPosition);\n closeOpenBlockQuote();\n closeOpenBlock();\n doLists();\n if (blockMod.toString().equals (\"bq\")) {\n lineInsert (\"<blockquote><p\");\n context.blockQuoting = true;\n } else {\n lineInsert (\"<\" + blockMod.toString());\n }\n if (klass.length() > 0) {\n lineInsert (\" class=\\\"\" + klass.toString() + \"\\\"\");\n }\n lineInsert (\">\");\n if (doublePeriod) {\n context.nextBlock = blockMod.toString();\n } else {\n context.nextBlock = \"p\";\n }\n }\n\n // See if line starts with one or more list characters\n if (blockMod.length() <= 0) {\n while (textIndex < line.length()\n && (textChar() == '*'\n || textChar() == '#'\n || textChar() == ';')) {\n listChars.append (textChar());\n textIndex++;\n }\n if (listChars.length() > 0\n && (textIndex >= line.length()\n || ((! Character.isWhitespace (textChar()))\n && (textChar() != '(')))) {\n listChars = new StringBuffer();\n textIndex = 0;\n }\n int firstSpace = line.indexOf (\" \", textIndex);\n if (listChars.length() > 0) {\n collectAttributes (firstSpace);\n }\n }\n int endDelete = textIndex;\n if (endDelete < line.length()\n && Character.isWhitespace (line.charAt (endDelete))) {\n endDelete++;\n }\n\n if (listChars.length() > 0) {\n lineDelete (0, endDelete);\n }\n doLists();\n if (listChars.length() > 0\n && listChars.charAt(listChars.length() - 1) == ';') {\n lastDefChar = ';';\n } else {\n lastDefChar = ' ';\n }\n\n // See if this line contains a link alias\n if ((blockMod.length() <= 0)\n && ((line.length() - textIndex) >= 4)\n && (textChar() == '[')) {\n int rightBracketIndex = line.indexOf (\"]\", textIndex);\n if (rightBracketIndex > (textIndex + 1)) {\n linkAlias = true;\n String alias = line.substring (textIndex + 1, rightBracketIndex);\n String url = line.substring (rightBracketIndex + 1);\n lineDelete (line.length() - textIndex);\n lineInsert (\"<a alias=\\\"\" + alias + \"\\\" href=\\\"\" + url + \"\\\"> </a>\");\n }\n }\n\n // If no other instructions, use default start for a new line\n if (blockMod.length() <= 0 \n && listChars.length() <= 0\n & (! linkAlias)) {\n // This non-blank line does not start with a block modifier or a list char\n if (context.lastLineBlank) {\n if (context.nextBlock.equals (\"bq\")) {\n lineInsert (\"<p>\");\n } else {\n closeOpenBlockQuote();\n lineInsert (\"<\" + context.nextBlock + \">\");\n }\n } else {\n lineInsert (\"<br />\");\n }\n }\n\n // Now examine the rest of the line\n char last = ' ';\n char c = ' ';\n char next = ' ';\n leftParenPartOfURL = false;\n resetLineIndexArray();\n while (textIndex <= line.length()) {\n // Get current character, last character and next character\n last = c;\n if (textIndex < line.length()) {\n c = textChar();\n } else {\n c = ' ';\n }\n if ((textIndex + 1) < line.length()) {\n next = line.charAt (textIndex + 1);\n } else {\n next = ' ';\n }\n \n // ?? means a citation\n if (c == '?' && last == '?') {\n if (ix [CITATION] >= 0) {\n replaceWithHTML (CITATION, 2);\n } else {\n ix [CITATION] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // __ means italics\n if (c == '_' && last == '_' && ix [QUOTE_COLON] < 0) {\n if (ix [ITALICS] >= 0) {\n replaceWithHTML (ITALICS, 2);\n } else {\n ix [ITALICS] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // ** means bold\n if (c == '*' && last == '*') {\n if (ix [BOLD] >= 0) {\n replaceWithHTML (BOLD, 2);\n } else {\n ix [BOLD] = textIndex - 1;\n textIndex++;\n }\n }\n else\n // _ means emphasis\n if (c == '_' && next != '_' && ix [QUOTE_COLON] < 0) {\n if (ix [EMPHASIS] >= 0) {\n replaceWithHTML (EMPHASIS, 1);\n } else {\n ix [EMPHASIS] = textIndex;\n textIndex++;\n }\n }\n else\n // * means strong\n if (c == '*' && next != '*') {\n if (ix [STRONG] >= 0) {\n replaceWithHTML (STRONG, 1);\n } else {\n ix [STRONG] = textIndex;\n textIndex++;\n }\n }\n else\n // Exclamation points surround image urls\n if (c == '!' && Character.isLetter(next)\n && ix [QUOTE_COLON] < 0 && ix [EXCLAMATION] < 0) {\n // First exclamation point : store its location and move on\n ix [EXCLAMATION] = textIndex;\n textIndex++;\n }\n else\n // Second exclamation point\n if (c == '!'\n && ix [QUOTE_COLON] < 0 && ix [EXCLAMATION] >= 0) {\n // Second exclamation point\n imageTitle = \"\";\n endOfImageURL = textIndex;\n if (last == ')' && ix [EXCLAMATION_LEFT_PAREN] > 0) {\n ix [EXCLAMATION_RIGHT_PAREN] = textIndex - 1;\n endOfImageURL = ix [EXCLAMATION_LEFT_PAREN];\n imageTitle = line.substring\n (ix [EXCLAMATION_LEFT_PAREN] + 1, ix [EXCLAMATION_RIGHT_PAREN]);\n }\n imageURL = line.substring (ix [EXCLAMATION] + 1, endOfImageURL);\n // Delete the image url, title and parentheses,\n // but leave exclamation points for now.\n lineDelete (ix [EXCLAMATION] + 1, textIndex - ix [EXCLAMATION] - 1);\n String titleString = \"\";\n if (imageTitle.length() > 0) {\n titleString = \" title=\\\"\" + imageTitle + \"\\\" alt=\\\"\" + imageTitle + \"\\\"\";\n }\n lineInsert (ix [EXCLAMATION] + 1,\n \"<img src=\\\"\" + imageURL + \"\\\"\" + titleString + \" />\");\n if (next == ':') {\n // Second exclamation followed by a colon -- look for url for link\n ix [QUOTE_COLON] = textIndex;\n ix [LAST_QUOTE] = ix [EXCLAMATION];\n } else {\n lineDelete (ix [EXCLAMATION], 1);\n lineDelete (textIndex, 1);\n }\n ix [EXCLAMATION] = -1;\n ix [EXCLAMATION_LEFT_PAREN] = -1;\n ix [EXCLAMATION_RIGHT_PAREN] = -1;\n textIndex++;\n } // end if second exclamation point\n else\n // Parentheses within exclamation points enclose the image title\n if (c == '(' && ix [EXCLAMATION] > 0 ) {\n ix [EXCLAMATION_LEFT_PAREN] = textIndex;\n textIndex++;\n }\n else\n // Double quotation marks surround linked text\n if (c == '\"' && ix [QUOTE_COLON] < 0) {\n if (next == ':'\n && ix [LAST_QUOTE] >= 0\n && textIndex > (ix [LAST_QUOTE] + 1)) {\n ix [QUOTE_COLON] = textIndex;\n } else {\n ix [LAST_QUOTE] = textIndex;\n }\n textIndex++;\n }\n else\n // Flag a left paren inside of a url\n if (c == '(' && ix [QUOTE_COLON] > 0) {\n leftParenPartOfURL = true;\n textIndex++;\n }\n else\n // Space may indicate end of url\n if (Character.isWhitespace (c)\n && ix [QUOTE_COLON] > 0\n && ix [LAST_QUOTE] >= 0\n && textIndex > (ix [QUOTE_COLON] + 2)) {\n int endOfURL = textIndex - 1;\n // end of url is last character of url\n // do not include any trailing punctuation at end of url\n int backup = 0;\n while ((endOfURL > (ix [QUOTE_COLON] + 2))\n && (! Character.isLetterOrDigit (line.charAt(endOfURL)))\n && (! ((line.charAt(endOfURL) == ')') && (leftParenPartOfURL)))\n && (! (line.charAt(endOfURL) == '/'))) {\n endOfURL--;\n backup++;\n }\n String url = line.substring (ix [QUOTE_COLON] + 2, endOfURL + 1);\n // insert the closing anchor tag\n lineInsert (endOfURL + 1, \"</a>\");\n // Delete the quote, colon and url from the line\n lineDelete (ix [QUOTE_COLON], endOfURL + 1 - ix [QUOTE_COLON]);\n // insert the beginning of the anchor tag\n lineDelete (ix [LAST_QUOTE], 1);\n lineInsert (ix [LAST_QUOTE], \"<a href=\\\"\" + url + \"\\\">\");\n // Reset the pointers\n ix [QUOTE_COLON] = -1;\n ix [LAST_QUOTE] = -1;\n leftParenPartOfURL = false;\n // Increment the index to the next character\n if (backup > 0) {\n textIndex = textIndex - backup;\n } else {\n textIndex++;\n }\n }\n else\n // Look for start of definition\n if ((c == ':' || c == ';')\n && Character.isWhitespace(last)\n && Character.isWhitespace(next)\n && listChars.length() > 0\n && (lastDefChar == ';' || lastDefChar == ':')) {\n lineDelete (textIndex - 1, 3);\n lineInsert (closeDefinitionTag (lastDefChar)\n + openDefinitionTag (c));\n lastDefChar = c;\n }\n /* else\n // -- means an em dash\n if (c == '-' && last == '-') {\n textIndex--;\n lineDelete (2);\n lineInsert (\"&#8212;\");\n } */ else {\n textIndex++;\n }\n }// end while more characters to examine\n\n context.lastLineBlank = false;\n\n }", "public String toString() {\n StringBuffer result = new StringBuffer(this.m_content.length() + 2);\n result.append('\"');\n if (this.m_content != null) result.append(escape(this.m_content));\n result.append('\"');\n return result.toString();\n }", "@AutoEscape\n\tpublic String getNode_4();", "@Override\r\n\tpublic DTextArea addRaw(final String value) throws DOMException {\r\n\t\tsuper.addRaw(value) ;\r\n\t\treturn this ;\r\n\t}", "public String toString() {\n return (\"\\\"\" + contents + \"\\\"\");\n }", "private ArrowRelationSerializerTeX() {\n }", "public final AntlrDatatypeRuleToken ruleURI() throws RecognitionException {\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\n\n Token this_SINGLE_QUOTED_STRING_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalMyDsl.g:10179:2: (this_SINGLE_QUOTED_STRING_0= RULE_SINGLE_QUOTED_STRING )\n // InternalMyDsl.g:10180:2: this_SINGLE_QUOTED_STRING_0= RULE_SINGLE_QUOTED_STRING\n {\n this_SINGLE_QUOTED_STRING_0=(Token)match(input,RULE_SINGLE_QUOTED_STRING,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\tcurrent.merge(this_SINGLE_QUOTED_STRING_0);\n \t\n }\n if ( state.backtracking==0 ) {\n\n \t\tnewLeafNode(this_SINGLE_QUOTED_STRING_0, grammarAccess.getURIAccess().getSINGLE_QUOTED_STRINGTerminalRuleCall());\n \t\n }\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "private boolean nobquotes() {\r\n return OPT(GO() && NOT(GO() && CHAR('`')) && literal() && nobquotes());\r\n }", "public static void maybeQuote (int version, StringBuffer buf,\n String value)\n {\n // special case - a \\n or \\r shouldn't happen in any case\n if (isToken(value)) {\n buf.append(value);\n } else {\n buf.append('\"');\n buf.append(escapeDoubleQuotes(value));\n buf.append('\"');\n }\n }", "private void createString() {\n\n\t\tString value = String.valueOf(data[currentIndex++]);\n\t\twhile (currentIndex < data.length && data[currentIndex] != '\"') {\n\t\t\tif (data[currentIndex] == '\\\\') {\n\t\t\t\tcurrentIndex++;\n\t\t\t\tif (currentIndex >= data.length) {\n\t\t\t\t\tthrow new LexerException(\n\t\t\t\t\t\t\t\"Invalid escaping in STRING token.\");\n\t\t\t\t}\n\n\t\t\t\tswitch (data[currentIndex]) {\n\t\t\t\tcase '\"':\n\t\t\t\tcase '\\\\':\n\t\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'n':\n\t\t\t\t\tvalue += '\\n';\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'r':\n\t\t\t\t\tvalue += '\\r';\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 't':\n\t\t\t\t\tvalue += '\\t';\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new LexerException(\n\t\t\t\t\t\t\t\"Invalid escaping in STRING token.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t}\n\t\t}\n\n\t\tif (currentIndex < data.length) {\n\t\t\tvalue += data[currentIndex++];\n\t\t} else {\n\t\t\tthrow new LexerException(\"Missing end: \\\".\");\n\t\t}\n\n\t\ttoken = new Token(TokenType.STRING, value);\n\t}", "@AutoEscape\n\tpublic String getNode_5();", "@Nonnull\n public static String getXPathString(@Nonnull String str) {\n // if the value contains only single or double quotes, construct\n // an XPath literal\n if (!str.contains(\"'\")) {\n return \"'\" + str + \"'\";\n }\n if (!str.contains(\"\\\"\")) {\n return \"\\\"\" + str + \"\\\"\";\n }\n\n // if the value contains both single and double quotes, construct an\n // expression that concatenates all non-double-quote substrings with\n // the quotes, e.g.:\n //\n // concat(\"foo\", '\"', \"bar\")\n\n int singleCount = StringUtils.countMatches(str, \"'\");\n int doubleCount = StringUtils.countMatches(str, \"\\\"\");\n\n // the quote that gets split on\n String quote;\n // an inverse-quoted quote to represent the quote that was a split point\n String quotedQuote;\n // a pattern that splits on the designated split quote\n Pattern splitPattern;\n\n // use either single or double quote depending on which one is used less\n if (singleCount > doubleCount) {\n quote = \"\\\"\";\n quotedQuote = \"'\\\"'\";\n splitPattern = XPATH_DOUBLE_QUOTE_SPLIT_PATTERN;\n } else {\n quote = \"'\";\n quotedQuote = \"\\\"'\\\"\";\n splitPattern = XPATH_SINGLE_QUOTE_SPLIT_PATTERN;\n }\n\n List<String> xpathConcatList = new ArrayList<String>();\n\n // regex perhaps isn't the most efficient but its split behavior (with -1) is correct\n String[] substrings = splitPattern.split(str, -1);\n\n for (int i = 0; i < substrings.length; i++) {\n String chunk = substrings[i];\n\n // if this isn't just the space between subsequent quotes, include the chunk\n if (!chunk.equals(\"\")) {\n xpathConcatList.add(quote + chunk + quote);\n }\n\n // if this isn't the last item, include a literal to represent the quote that was split on\n if (i < substrings.length - 1) {\n xpathConcatList.add(quotedQuote);\n }\n }\n\n return \"concat(\" + StringUtils.join(xpathConcatList, \", \") + \")\";\n }", "protected token readQuotedReservedWord() throws IOException, DasmError {\n charBuf.reset();\n for (;;) {\n readNextChar();\n if (isSeparator(nextChar))\n throw new DasmError(\"Unterminated ''-enclosed name\");\n if (nextChar == '\\'') {\n if (charBuf.size() == 0)\n throw new DasmError(\"Empty ''-enclosed name\");\n readNextChar(); // skip close quote\n if (!isSeparator(nextChar))\n throw new DasmError(\n \"Missed separator after ''-enclosed name\");\n return new str_token(sym.Word, charBuf.toString());\n }\n char chval = (char) nextChar;\n if (nextChar == '\\\\') chval = nameEscape();\n charBuf.add(chval);\n }\n }", "public String toString()\r\n\t\t{\n\t\t\treturn MessageFormat.format(\"<{1}{0}>\", tagName, isEnding? \"/\" : \"\" );\r\n\t\t}", "public final AstValidator.join_type_return join_type() throws RecognitionException {\n AstValidator.join_type_return retval = new AstValidator.join_type_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree QUOTEDSTRING328=null;\n\n CommonTree QUOTEDSTRING328_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:520:11: ( QUOTEDSTRING )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:520:13: QUOTEDSTRING\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n QUOTEDSTRING328=(CommonTree)match(input,QUOTEDSTRING,FOLLOW_QUOTEDSTRING_in_join_type2755); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n QUOTEDSTRING328_tree = (CommonTree)adaptor.dupNode(QUOTEDSTRING328);\n\n\n adaptor.addChild(root_0, QUOTEDSTRING328_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public String generateNewickExtra(ArrayList<ExtraData> data, String sfextra) \n { \n \n String newick = new String();\n\n if (type.equals(\"internal\")){\n newick = \"(\";\n }\n \n if (!name.equals(\"\")){\n String fullname = name;\n String ncbi = \"\";\n //Roll through extra data and find this one\n \n int n = data.size();\n for(int i = 0; i < n ; i++){\n //If the newickname is the same as this nodes newick name, and the full name isn't just null, \n //get this full name and make it the name\n if (data.get(i).getNewickName().equals(name) && !data.get(i).getNewickName().equals(null)){\n fullname = data.get(i).getFullName();\n ncbi = data.get(i).getNCBI();\n }\n }\n if (sfextra == \"names\"){\n fullname = fullname.replaceAll(\"[^a-zA-Z0-9]\", \"\"); //strip non alphanumeric\n newick = newick + fullname;\n \n }\n if (sfextra == \"ncbi\"){\n newick = newick + ncbi;\n }\n }\n \n if (!children.isEmpty()){ //if there are children in this node's arraylist\n Iterator it = children.iterator();\n while(it.hasNext()){\n Node child = (Node) it.next();\n newick = newick + child.generateNewickExtra(data,sfextra);\n if(it.hasNext()){\n newick = newick + \",\";\n }\n }\n }\n if (type.equals(\"internal\")){\n newick = newick + \")\";\n }\n if (length >0){\n newick = newick + \":\" + length;\n }\n \n return newick;\n }", "@AutoEscape\n\tpublic String getNode_3();", "@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n dump(builder, 0, '\\'');\n return builder.toString();\n }", "public final AstValidator.filename_return filename() throws RecognitionException {\n AstValidator.filename_return retval = new AstValidator.filename_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree QUOTEDSTRING79=null;\n\n CommonTree QUOTEDSTRING79_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:230:10: ( QUOTEDSTRING )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:230:12: QUOTEDSTRING\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n QUOTEDSTRING79=(CommonTree)match(input,QUOTEDSTRING,FOLLOW_QUOTEDSTRING_in_filename919); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n QUOTEDSTRING79_tree = (CommonTree)adaptor.dupNode(QUOTEDSTRING79);\n\n\n adaptor.addChild(root_0, QUOTEDSTRING79_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public String getNewickExtra(ArrayList<ExtraData> data, String sfextra) //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String newick = new String();\n newick = newick + generateNewickExtra(data, sfextra);\n newick = newick + \";\";\n return newick;\n }", "public Tags (boolean slashToSeparate) {\n this.slashToSeparate = slashToSeparate;\n }", "@Override\n\tprotected void testForOpenDoubleQuotes() {\n\t}", "public java.lang.String toString() {\n /*\n r4 = this;\n int r0 = r4.f2605a\n r1 = -1\n if (r0 != r1) goto L_0x000c\n java.lang.Object r0 = r4.f2606b\n java.lang.String r0 = java.lang.String.valueOf(r0)\n return r0\n L_0x000c:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n java.lang.String r1 = \"Icon(typ=\"\n r0.<init>(r1)\n int r1 = r4.f2605a\n java.lang.String r1 = m2631a(r1)\n r0.append(r1)\n int r1 = r4.f2605a\n r2 = 1\n if (r1 == r2) goto L_0x007a\n r3 = 2\n if (r1 == r3) goto L_0x0052\n r2 = 3\n if (r1 == r2) goto L_0x0039\n r2 = 4\n if (r1 == r2) goto L_0x002e\n r2 = 5\n if (r1 == r2) goto L_0x007a\n goto L_0x009a\n L_0x002e:\n java.lang.String r1 = \" uri=\"\n r0.append(r1)\n java.lang.Object r1 = r4.f2606b\n r0.append(r1)\n goto L_0x009a\n L_0x0039:\n java.lang.String r1 = \" len=\"\n r0.append(r1)\n int r1 = r4.f2609e\n r0.append(r1)\n int r1 = r4.f2610f\n if (r1 == 0) goto L_0x009a\n java.lang.String r1 = \" off=\"\n r0.append(r1)\n int r1 = r4.f2610f\n r0.append(r1)\n goto L_0x009a\n L_0x0052:\n java.lang.String r1 = \" pkg=\"\n r0.append(r1)\n java.lang.String r1 = r4.mo3107b()\n r0.append(r1)\n java.lang.String r1 = \" id=\"\n r0.append(r1)\n java.lang.Object[] r1 = new java.lang.Object[r2]\n r2 = 0\n int r3 = r4.mo3103a()\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n r1[r2] = r3\n java.lang.String r2 = \"0x%08x\"\n java.lang.String r1 = java.lang.String.format(r2, r1)\n r0.append(r1)\n goto L_0x009a\n L_0x007a:\n java.lang.String r1 = \" size=\"\n r0.append(r1)\n java.lang.Object r1 = r4.f2606b\n android.graphics.Bitmap r1 = (android.graphics.Bitmap) r1\n int r1 = r1.getWidth()\n r0.append(r1)\n java.lang.String r1 = \"x\"\n r0.append(r1)\n java.lang.Object r1 = r4.f2606b\n android.graphics.Bitmap r1 = (android.graphics.Bitmap) r1\n int r1 = r1.getHeight()\n r0.append(r1)\n L_0x009a:\n android.content.res.ColorStateList r1 = r4.f2611g\n if (r1 == 0) goto L_0x00a8\n java.lang.String r1 = \" tint=\"\n r0.append(r1)\n android.content.res.ColorStateList r1 = r4.f2611g\n r0.append(r1)\n L_0x00a8:\n android.graphics.PorterDuff$Mode r1 = r4.f2612h\n android.graphics.PorterDuff$Mode r2 = f2604j\n if (r1 == r2) goto L_0x00b8\n java.lang.String r1 = \" mode=\"\n r0.append(r1)\n android.graphics.PorterDuff$Mode r1 = r4.f2612h\n r0.append(r1)\n L_0x00b8:\n java.lang.String r1 = \")\"\n r0.append(r1)\n java.lang.String r0 = r0.toString()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.graphics.drawable.IconCompat.toString():java.lang.String\");\n }", "private void doctypePublicIdentifierDoubleQuotedState()\n throws SAXException, IOException {\n for (;;) {\n /*\n * Consume the next input character:\n */\n char c = read();\n switch (c) {\n case '\"':\n /*\n * U+0022 QUOTATION MARK (\") Switch to the after DOCTYPE\n * public identifier state.\n */\n publicIdentifier = longStrBufToString();\n afterDoctypePublicIdentifierState();\n return;\n case '\\u0000':\n /* EOF Parse error. */\n err(\"End of file inside public identifier.\");\n /*\n * Set the DOCTYPE token's correctness flag to incorrect.\n * Emit that DOCTYPE token.\n */\n tokenHandler.doctype(doctypeName, longStrBufToString(),\n null, false);\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n default:\n /*\n * Anything else Append the current input character to the\n * current DOCTYPE token's public identifier.\n */\n appendLongStrBuf(c);\n /*\n * Stay in the DOCTYPE public identifier (double-quoted)\n * state.\n */\n continue;\n }\n }\n }", "@Test\n public void fieldQuote() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Insert a QUOTE field, which will display the value of its Text property.\n FieldQuote field = (FieldQuote) builder.insertField(FieldType.FIELD_QUOTE, true);\n field.setText(\"\\\"Quoted text\\\"\");\n\n Assert.assertEquals(\" QUOTE \\\"\\\\\\\"Quoted text\\\\\\\"\\\"\", field.getFieldCode());\n\n // Insert a QUOTE field and nest a DATE field inside it.\n // DATE fields update their value to the current date every time we open the document using Microsoft Word.\n // Nesting the DATE field inside the QUOTE field like this will freeze its value\n // to the date when we created the document.\n builder.write(\"\\nDocument creation date: \");\n field = (FieldQuote) builder.insertField(FieldType.FIELD_QUOTE, true);\n builder.moveTo(field.getSeparator());\n builder.insertField(FieldType.FIELD_DATE, true);\n\n Assert.assertEquals(\" QUOTE \\u0013 DATE \\u0014\" + LocalDate.now().format(DateTimeFormatter.ofPattern(\"M/d/YYYY\")) + \"\\u0015\", field.getFieldCode());\n\n // Update all the fields to display their correct results.\n doc.updateFields();\n\n Assert.assertEquals(\"\\\"Quoted text\\\"\", doc.getRange().getFields().get(0).getResult());\n\n doc.save(getArtifactsDir() + \"Field.QUOTE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.QUOTE.docx\");\n\n TestUtil.verifyField(FieldType.FIELD_QUOTE, \" QUOTE \\\"\\\\\\\"Quoted text\\\\\\\"\\\"\", \"\\\"Quoted text\\\"\", doc.getRange().getFields().get(0));\n\n TestUtil.verifyField(FieldType.FIELD_QUOTE, \" QUOTE \\u0013 DATE \\u0014\" + LocalDate.now().format(DateTimeFormatter.ofPattern(\"M/d/YYYY\")) + \"\\u0015\",\n LocalDate.now().format(DateTimeFormatter.ofPattern(\"M/d/YYYY\")), doc.getRange().getFields().get(1));\n\n }", "public String quotate(String content){\n\n return \"'\"+content+\"'\";\n }", "String escapeFlatStorageColumn(String column);", "public final void mQUOTE() throws RecognitionException {\r\n try {\r\n int _type = QUOTE;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:288:7: ( '\\\"' )\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:288:9: '\\\"'\r\n {\r\n match('\\\"'); \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "private void writeQuotedAndEscaped(CharSequence string) {\n if (string != null && string.length() != 0) {\n int len = string.length();\n writer.write('\\\"');\n\n for (int i = 0; i < len; ++i) {\n char cp = string.charAt(i);\n if ((cp < 0x7f &&\n cp >= 0x20 &&\n cp != '\\\"' &&\n cp != '\\\\') ||\n (cp > 0x7f &&\n isConsolePrintable(cp) &&\n !isSurrogate(cp))) {\n // quick bypass for direct printable chars.\n writer.write(cp);\n } else {\n switch (cp) {\n case '\\b':\n writer.write(\"\\\\b\");\n break;\n case '\\t':\n writer.write(\"\\\\t\");\n break;\n case '\\n':\n writer.write(\"\\\\n\");\n break;\n case '\\f':\n writer.write(\"\\\\f\");\n break;\n case '\\r':\n writer.write(\"\\\\r\");\n break;\n case '\\\"':\n case '\\\\':\n writer.write('\\\\');\n writer.write(cp);\n break;\n default:\n if (isSurrogate(cp) && (i + 1) < len) {\n char c2 = string.charAt(i + 1);\n writer.format(\"\\\\u%04x\", (int) cp);\n writer.format(\"\\\\u%04x\", (int) c2);\n ++i;\n } else {\n writer.format(\"\\\\u%04x\", (int) cp);\n }\n break;\n }\n }\n }\n\n writer.write('\\\"');\n } else {\n writer.write(\"\\\"\\\"\");\n }\n }", "public static String iconify(final String raw) {\n int priorTemplateEnd = 0;\n int currentTemplateStart = raw.indexOf(TEMPLATE_START);\n\n final StringBuilder builder = new StringBuilder();\n\n while (currentTemplateStart != -1) {\n builder.append(raw.substring(priorTemplateEnd, currentTemplateStart));\n\n priorTemplateEnd = raw.indexOf(TEMPLATE_END, currentTemplateStart + TEMPLATE_START_LENGTH);\n\n if (priorTemplateEnd != -1) {\n builder.append(\n iconifyIndividual(raw.substring(currentTemplateStart + TEMPLATE_START_LENGTH, priorTemplateEnd)));\n }\n\n priorTemplateEnd += TEMPLATE_END_LENGTH;\n currentTemplateStart = raw.indexOf(TEMPLATE_START, priorTemplateEnd);\n }\n\n builder.append(raw.substring(priorTemplateEnd));\n\n return builder.toString();\n }", "public final void mQUOTE_TRIPLE() throws RecognitionException {\n try {\n int _type = QUOTE_TRIPLE;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:39:14: ( '\\\\'\\\\'\\\\'' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:39:16: '\\\\'\\\\'\\\\''\n {\n match(\"'''\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private static void initialize() {\n\n addToken(\"COMMENT1\", \"\\\\/\\\\/.*\");\n addToken(\"COMMENT2\", \"\\\\/\\\\*((?!\\\\*\\\\/)[\\\\w\\\\W])*\\\\*\\\\/\");\n\n // In case of unmatched comment key characters.\n addToken(\"COMMENT_L\", \"\\\\/\\\\*\");\n addToken(\"COMMENT_R\", \"\\\\*\\\\/\");\n\n // addToken(\"EOL\", \"\\\\n\");\n\n // Arithmetic operators.\n addToken(\"PLUS\", \"\\\\+\");\n addToken(\"MINUS\", \"-\");\n addToken(\"MULTIPLY\", \"\\\\*\");\n addToken(\"DIVIDE\", \"\\\\/\");\n\n addToken(\"EQUAL\", \"=\");\n\n addToken(\"LESS_THAN\", \"<\");\n addToken(\"GREATER_THAN\", \"<\");\n\n addToken(\"IF\", \"\\\\bif\\\\b\");\n addToken(\"ELSE\", \"\\\\belse\\\\b\");\n addToken(\"WHILE\", \"\\\\bwhile\\\\b\");\n\n addToken(\"RETURN\", \"\\\\breturn\\\\b\");\n\n addToken(\"THIS\", \"\\\\bthis\\\\b\");\n\n addToken(\"CLASS\", \"\\\\bclass\\\\b\");\n\n addToken(\"PUBLIC\", \"\\\\bpublic\\\\b\");\n addToken(\"PRIVATE\", \"\\\\bprivate\\\\b\");\n\n addToken(\"LENGTH\", \"\\\\blength\\\\b\");\n\n addToken(\"EXTENDS\", \"\\\\bextends\\\\b\");\n\n addToken(\"SYSTEM.OUT.PRINTLN\", \"\\\\bSystem\\\\.out\\\\.println\\\\b\");\n\n addToken(\"STATIC\", \"\\\\bstatic\\\\b\");\n\n addToken(\"NEW\", \"\\\\bnew\\\\b\");\n\n addToken(\"FLOAT\", \"\\\\bfloat\\\\b\");\n addToken(\"INT\", \"\\\\bint\\\\b\");\n addToken(\"CHARACTER\", \"\\\\bchar\\\\b\");\n addToken(\"BOOLEAN\", \"\\\\bboolean\\\\b\");\n addToken(\"String\", \"\\\\bString\\\\b\");\n addToken(\"VOID\", \"\\\\bvoid\\\\b\");\n\n addToken(\"TRUE\", \"\\\\btrue\\\\b\");\n addToken(\"FALSE\", \"\\\\bfalse\\\\b\");\n\n // Brackets.\n addToken(\"LEFT_CURLY_BRACKET\", \"\\\\{\");\n addToken(\"RIGHT_CURLY_BRACKET\", \"\\\\}\");\n addToken(\"LEFT_SQUARE_BRACKET\", \"\\\\[\");\n addToken(\"RIGHT_SQUARE_BRACKET\", \"\\\\]\");\n addToken(\"LEFT_ROUND_BRACKET\", \"\\\\(\");\n addToken(\"RIGHT_ROUND_BRACKET\", \"\\\\)\");\n\n addToken(\"COMMA\", \",\");\n addToken(\"SEMICOLON\", \";\");\n addToken(\"DOT\", \"\\\\.\");\n addToken(\"NOT\", \"\\\\!\");\n\n addToken(\"AND\", \"&&\");\n\n // Literals.\n addToken(\"FLOAT_LITERAL\", \"\\\\b[0-9]*\\\\.[0-9]*\\\\b\");\n addToken(\"INTEGRAL_LITERAL\", \"\\\\b[0-9]+\\\\b\");\n addToken(\"CHARACTER_LITERAL\", \"'.'\");\n addToken(\"STRING_LITERAL\", \"\\\".*\\\"\");\n\n addToken(\"Identifier\", \"\\\\b[a-zA-Z]+\\\\w*\\\\b\");\n\n addToken(\"SINGLE_QUOTE\", \"'\");\n addToken(\"DOUBLE_QUOTE\", \"\\\"\");\n }", "public interface EscapeMarker {}", "public void disableQuoteChar() {\n this.quoteChar = NO_QUOTING;\n }", "private static Path parsePathExpression(Iterator<Token> expression,\n ConfigOrigin origin, String originalText) {\n // each builder in \"buf\" is an element in the path.\n List<Element> buf = new ArrayList<Element>();\n buf.add(new Element(\"\", false));\n\n if (!expression.hasNext()) {\n throw new ConfigException.BadPath(origin, originalText,\n \"Expecting a field name or path here, but got nothing\");\n }\n\n while (expression.hasNext()) {\n Token t = expression.next();\n if (Tokens.isValueWithType(t, ConfigValueType.STRING)) {\n AbstractConfigValue v = Tokens.getValue(t);\n // this is a quoted string; so any periods\n // in here don't count as path separators\n String s = v.transformToString();\n\n addPathText(buf, true, s);\n } else if (t == Tokens.END) {\n // ignore this; when parsing a file, it should not happen\n // since we're parsing a token list rather than the main\n // token iterator, and when parsing a path expression from the\n // API, it's expected to have an END.\n } else {\n // any periods outside of a quoted string count as\n // separators\n String text;\n if (Tokens.isValue(t)) {\n // appending a number here may add\n // a period, but we _do_ count those as path\n // separators, because we basically want\n // \"foo 3.0bar\" to parse as a string even\n // though there's a number in it. The fact that\n // we tokenize non-string values is largely an\n // implementation detail.\n AbstractConfigValue v = Tokens.getValue(t);\n text = v.transformToString();\n } else if (Tokens.isUnquotedText(t)) {\n text = Tokens.getUnquotedText(t);\n } else {\n throw new ConfigException.BadPath(\n origin,\n originalText,\n \"Token not allowed in path expression: \"\n + t\n + \" (you can double-quote this token if you really want it here)\");\n }\n\n addPathText(buf, false, text);\n }\n }\n\n PathBuilder pb = new PathBuilder();\n for (Element e : buf) {\n if (e.sb.length() == 0 && !e.canBeEmpty) {\n throw new ConfigException.BadPath(\n origin,\n originalText,\n \"path has a leading, trailing, or two adjacent period '.' (use quoted \\\"\\\" empty string if you want an empty element)\");\n } else {\n pb.appendKey(e.sb.toString());\n }\n }\n\n return pb.result();\n }", "public final void mQUOTE_SINGLE() throws RecognitionException {\n try {\n int _type = QUOTE_SINGLE;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:40:14: ( '\\\\'' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:40:16: '\\\\''\n {\n match('\\''); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public String getUnquotedName() {\n\t\treturn unqoteObjectName(getName());\n\t}", "private void setNextTokenWithEscaping() {\n\t\t\n\t\tif (token != null && token.getType() == TokenType.EOF)\n\t\t\tthrow new ShellLexerException(\"There is no more tokens\");\n\n\t\tskipWhitespaces();\n\t\t\n\t\tif (currentIndex >= data.length) {\n\t\t\ttoken = new Token(TokenType.EOF, null);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//if it's input given in double quotes\n\t\tList<Integer> indexes = new LinkedList<>();\n\t\tif (data[currentIndex] == '\\\"') {\n\t\t\tindexes.add(currentIndex);\n\t\t\tcurrentIndex++;\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tif (currentIndex >= data.length)\n\t\t\t\t\tthrow new ShellLexerException(\"Wrong input. Missing one double quote.\");\n\t\t\t\t\n\t\t\t\tif (data[currentIndex] == '\\\"') \n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif (data[currentIndex] == '\\\\') {\n\t\t\t\t\tindexes.add(currentIndex);\n\t\t\t\t\tcurrentIndex++;\n\t\t\t\t}\n\t\t\t\tcurrentIndex++;\n\t\t\t}\n\t\t\tindexes.add(currentIndex);\n\t\t\t\n\t\t\tString input = \"\";\n\t\t\tfor (int i = 0, n = indexes.size(); i < n - 1; i++) {\n\t\t\t\tint firstIndex = indexes.get(i) + 1;\n\t\t\t\tint secondIndex = indexes.get(i + 1);\n\t\t\t\tString partOfInput = new String(data, firstIndex, secondIndex - firstIndex);\n\t\t\t\tinput = input.concat(partOfInput);\n\t\t\t}\n\t\t\t\n\t\t\ttoken = new Token(TokenType.TEXT, input);\n\t\t\tcurrentIndex++;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// input without double quotes\n\t\tint beginningIndex = currentIndex;\n\t\twhile(currentIndex < data.length && !isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\t\n\t\t}\n\t\t\n\t\tString input = new String(data, beginningIndex, currentIndex - beginningIndex);\n\t\ttoken = new Token(TokenType.TEXT, input);\n\t\tcurrentIndex++;\n\t}", "public ATObject meta_quote(ATContext ctx) throws InterpreterException {\n\t\treturn unqExp_.meta_eval(ctx);\n\t}", "public final AstValidator.group_type_return group_type() throws RecognitionException {\n AstValidator.group_type_return retval = new AstValidator.group_type_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree QUOTEDSTRING151=null;\n\n CommonTree QUOTEDSTRING151_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:353:12: ( QUOTEDSTRING )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:353:14: QUOTEDSTRING\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n QUOTEDSTRING151=(CommonTree)match(input,QUOTEDSTRING,FOLLOW_QUOTEDSTRING_in_group_type1540); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n QUOTEDSTRING151_tree = (CommonTree)adaptor.dupNode(QUOTEDSTRING151);\n\n\n adaptor.addChild(root_0, QUOTEDSTRING151_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "private String literal(String str) {\n StringBuffer buffer = new StringBuffer();\n \n buffer.append(\"'\");\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case '\\'':\n buffer.append(\"''\");\n break;\n default:\n buffer.append(str.charAt(i));\n break;\n }\n }\n buffer.append(\"'\");\n return buffer.toString();\n }", "@Override\n\tpublic String extendCode(String initialSvgString, Label label) {\n\n\t\t//comment\n\t\tString commentString = createComment(label);\n\n\t\t//label image\n\t\tString imageSvgString = createImageSvgStringFromLabel(label);\n\n\t\t//text\n\t\tString text = label.getText();\n\n\t\t//background color\n\t\tString backgroundFill = determineBackgroundFill(label);\n\t\tboolean hasBackground = backgroundFill != null;\n\n\t\t//x & y\n\t\tList<Node> childNodes = label.getChildrenUnmodifiable();\n\t\tText textNode = null;\n\t\tfor (Node childNode : childNodes) {\n\t\t\tboolean isText = childNode instanceof Text;\n\t\t\tif (isText) {\n\t\t\t\ttextNode = (Text) childNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObjects.requireNonNull(textNode, \"Could not retrive Text node from Label.\");\n\n\t\tBounds bounds = label.getBoundsInParent();\n\t\tDouble xl = bounds.getMinX();\n\t\tDouble yl = bounds.getMinY();\n\n\t\tBounds textBounds = textNode.getBoundsInParent();\n\t\tDouble xt = textBounds.getMinX();\n\t\tDouble yt = textBounds.getMinY();\n\n\t\tDouble x = xl + xt;\n\t\tDouble yField = yl + yt;\n\n\t\t//Bounds bounds = label.getBoundsInParent();\n\t\t//Double x = bounds.getMinX();\n\t\tboolean hasImage = !imageSvgString.isEmpty();\n\t\tif (hasImage) {\n\t\t\tNode image = label.getGraphic();\n\t\t\tDouble xOffset = image.getBoundsInParent().getMaxX();\n\t\t\tx = x + xOffset;\n\t\t}\n\t\tDouble baseLineOffset = label.getBaselineOffset();\n\t\tDouble y = yField + baseLineOffset;\n\n\t\t//font\n\t\tFont font = label.getFont();\n\t\tString fontFamily = font.getFamily();\n\t\tDouble fontSize = font.getSize();\n\n\t\t//font color\n\t\tPaint textFill = label.getTextFill();\n\t\tString fill = paintToColorString(textFill);\n\n\t\t//text anchor (horizontal alignment)\n\t\tSvgTextAnchor textAnchor = determineTextAnchor(label);\n\n\t\t//comment\n\t\tString svgString = commentString;\n\n\t\t//<rect> start\n\t\tboolean wrapInRect = hasImage || hasBackground;\n\t\tif (wrapInRect) {\n\t\t\tsvgString = includeRectStartTag(svgString, imageSvgString, backgroundFill, hasBackground, textBounds);\n\t\t}\n\n\t\t//<text> start\n\t\tsvgString = includeTextStartTag(svgString, x, y, fontFamily, fontSize, fill, textAnchor);\n\n\t\t//<text> content\n\t\tsvgString = svgString + text;\n\n\t\t//<text> end\n\t\tsvgString = svgString + \"</text>\\n\\n\";\n\n\t\t//<rect> end\n\t\tif (wrapInRect) {\n\t\t\tdecreaseIndentation();\n\t\t\tsvgString = includeRectEndTag(svgString);\n\t\t}\n\n\t\treturn svgString;\n\n\t}", "QuoteTerm createQuoteTerm();", "public Quotes(String alias) {\n\t\tthis(alias, QUOTES);\n\t}", "public Literal setDeepLiteralString(XDI3Segment contextNodeXri, String literalData);", "QuoteAttribute createQuoteAttribute();", "@Override\n\tpublic Object visit(ASTQuotString node, Object data)\n\t{\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tsemantics.setInfo(FormulaSemanticsUtilities.SEM_FORMAT,\n\t\t\tnew FormulaFormat(STRING_CLASS));\n\t\treturn semantics;\n\t}", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n Node node0 = simpleNode0.parent;\n simpleNode0.setIdentifier(\"{\");\n StringWriter stringWriter0 = new StringWriter(73);\n simpleNode0.dump(\"{nt@W\\bYpd9U=VG\", stringWriter0);\n simpleNode0.setIdentifier(\"NameList\");\n simpleNode0.setIdentifier(\"^eRGLNy;\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"C\");\n StringReader stringReader0 = new StringReader(\"zp@:cn>UP\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"NameList\");\n SimpleNode simpleNode1 = new SimpleNode(68);\n Node[] nodeArray0 = new Node[0];\n simpleNode1.children = nodeArray0;\n Node[] nodeArray1 = new Node[1];\n nodeArray1[0] = null;\n simpleNode1.children = nodeArray1;\n simpleNode1.toString(\"LT\\\"PgE')tE0cI%&Dl\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n simpleNode1.dump(\"NameList\", stringWriter0);\n simpleNode0.toString();\n simpleNode0.toString(\">=\");\n simpleNode0.dump(\"<SkoVR *\", stringWriter0);\n assertEquals(\"<Block>\\n</Block>\\n<AllocationExpression></AllocationExpression>\\n<Block>\\n <identifier>NameList</identifier>\\n <identifier>^eRGLNy;</identifier>\\n <identifier>C</identifier>\\n <identifier>AllocationExpression</identifier>\\n <identifier>NameList</identifier>\\n <identifier>AllocationExpression</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "public void caseAStringBasic(AStringBasic node)\n {\n String str = node.getString().getText();\n str = str.substring(1, str.length() - 1);\n\n // split the string on double quotes and individually\n // quote each piece to avoid quoting issues\n for (String chk : str.split(\"\\\"\"))\n buffer.append('\"').append(chk).append('\"');\n }", "@Override\r\n\tpublic void insertString(int offs, String str, AttributeSet a)\r\n\t\t\tthrows BadLocationException {\n\t\tStyleConstants.setForeground((MutableAttributeSet) a, Color.BLACK);\r\n\t\tStyleConstants.setItalic((MutableAttributeSet) a, false);\r\n\t\t\r\n\t\t// trim line breaks, spaces and tab characters from inserted string\r\n\t\tString line = str.trim();\r\n\t\t// check for keywords\r\n\t\t// TODO: maybe move context detection to separate method\r\n\t\tif (line.startsWith(\"[BEFORE_HEX]\")) {\r\n\t\t\tthis.branchContext = BranchContext.BEFORE_HEX;\r\n\t\t} else if (line.startsWith(\"[AFTER_HEX]\")) {\r\n\t\t\tthis.branchContext = BranchContext.AFTER_HEX;\r\n\t\t} else if (line.startsWith(\"[HEADER]\")) {\r\n\t\t\tthis.branchContext = BranchContext.HEX_HEADER;\r\n\t\t} else if (line.startsWith(\"[CODE]\")) {\r\n\t\t\tthis.branchContext = BranchContext.HEX_CODE;\r\n\t\t} else if (line.startsWith(\"//\")) {\r\n\t\t\t// TODO: get style data from context enum\r\n\t\t\tStyleConstants.setForeground((MutableAttributeSet) a, new Color(63, 127, 95));\r\n\t\t}\r\n\t\t\r\n\t\tif (this.leafContext == LeafContext.ATTRIBUTE_VALUE) {\r\n\t\t\tStyleConstants.setForeground((MutableAttributeSet) a, new Color(0, 0, 192));\r\n\t\t\tStyleConstants.setItalic((MutableAttributeSet) a, true);\r\n\t\t}\r\n\t\tthis.leafContext = LeafContext.OTHER;\r\n\t\t\r\n\t\t// check for comments\r\n\t\tint commentOffset = line.indexOf(\"//\");\r\n\t\tif (commentOffset > 0) {\r\n\t\t\t// split at '//' if comment is after other content\r\n\t\t\tString pre = str.substring(0, commentOffset + 1);\r\n\t\t\tString post = str.substring(commentOffset + 1);\r\n\t\t\t\r\n\t\t\tthis.insertString(offs, pre, a);\r\n\t\t\tthis.insertString(offs + pre.length(), post, a);\r\n\t\t} else {\r\n\t\t\t// check for attribute values\r\n\t\t\tint equalsOffset = str.indexOf(\"=\");\r\n\t\t\tif ((equalsOffset > 0) && (commentOffset < 0)) {\r\n\t\t\t\t// split at '=' if attribute/value pair is outside of comment\r\n\t\t\t\tString pre = str.substring(0, equalsOffset);\r\n\t\t\t\tString post = str.substring(equalsOffset + 1);\r\n\t\t\t\t\r\n\t\t\t\tthis.leafContext = LeafContext.ATTRIBUTE_NAME;\r\n\t\t\t\tthis.insertString(offs, pre, a);\r\n\t\t\t\tthis.leafContext = LeafContext.OTHER;\r\n\t\t\t\tthis.insertString(offs + pre.length(), \"=\", a);\r\n\t\t\t\tthis.leafContext = LeafContext.ATTRIBUTE_VALUE;\r\n\t\t\t\tthis.insertString(offs + pre.length() + 1, post, a);\r\n\t\t\t} else {\r\n\t\t\t\t// fall-back for default behavior\r\n\t\t\t\tsuper.insertString(offs, str, a);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public interface SimpleRenderer {\n /**\n * Properly escape the string for display in HTML.\n *\n * @param input the input string\n * @return the string prepared for display in HTML\n */\n default String escapeString(final String input) {\n return noQuestion(GedRenderer.escapeString(input)).trim();\n }\n\n /**\n * Separate the provided strings with spaces, drop empty tokens.\n *\n * @param args the strings to separate\n * @return either a space or an empty string\n */\n default String separate(final String... args) {\n final List<String> argList = new ArrayList<>();\n for (final String arg : args) {\n if (!arg.isEmpty()) {\n argList.add(arg);\n }\n }\n return String.join(\" \", argList);\n }\n\n /**\n * Eliminate question marks that result from the more normal rendering\n * processes.\n *\n * @param input the input string\n * @return either and empty string or the input string\n */\n default String noQuestion(final String input) {\n if (\"?\".equals(input)) {\n return \"\";\n }\n return input;\n }\n}", "private void emitComment() throws SAXException {\n if (wantsComments) {\n if (longStrBufPending != '\\u0000') {\n appendLongStrBuf(longStrBufPending);\n }\n }\n tokenHandler.comment(longStrBuf, longStrBufLen);\n }", "private boolean noquote() {\r\n return NOT(GO() && CHAR('\\'')) && literal();\r\n }", "public String nextToken() throws JSONException {\n var3_1 = new StringBuffer();\n while (Character.isWhitespace(var2_2 = this.next())) {\n }\n if (var2_2 == '\\\"') ** GOTO lbl7\n var1_3 = var2_2;\n if (var2_2 != '\\'') ** GOTO lbl16\nlbl7: // 2 sources:\n do {\n if ((var1_3 = this.next()) < ' ') {\n throw this.syntaxError(\"Unterminated string.\");\n }\n if (var1_3 == var2_2) {\n return var3_1.toString();\n }\n var3_1.append(var1_3);\n } while (true);\nlbl-1000: // 1 sources:\n {\n var3_1.append(var1_3);\n var1_3 = this.next();\nlbl16: // 2 sources:\n if (var1_3 == '\\u0000') return var3_1.toString();\n ** while (!Character.isWhitespace((char)var1_3))\n }\nlbl18: // 1 sources:\n return var3_1.toString();\n }" ]
[ "0.5090182", "0.5065827", "0.5045099", "0.5004481", "0.50039256", "0.49936187", "0.49907482", "0.4918722", "0.4889858", "0.48599917", "0.48310375", "0.48267403", "0.48211044", "0.482086", "0.47868472", "0.47867885", "0.47320047", "0.4707991", "0.46388534", "0.4623326", "0.4608535", "0.4576733", "0.4539018", "0.45339864", "0.4529696", "0.45285776", "0.45133364", "0.4506835", "0.45044374", "0.4500094", "0.44856322", "0.44818598", "0.4467603", "0.4466893", "0.44656515", "0.44579127", "0.4456504", "0.44456586", "0.4429011", "0.44116405", "0.4384145", "0.43824452", "0.4369047", "0.43686903", "0.43557143", "0.43522677", "0.43497586", "0.43032888", "0.4301661", "0.42984897", "0.42952472", "0.42888987", "0.42884746", "0.42653543", "0.42601648", "0.42576563", "0.42434546", "0.42416832", "0.42348602", "0.42245877", "0.4224069", "0.42238256", "0.42032176", "0.419351", "0.41840494", "0.41824934", "0.41805848", "0.41777492", "0.4177165", "0.4175002", "0.41721916", "0.41711098", "0.41565546", "0.41523275", "0.41433668", "0.41347352", "0.41232356", "0.4115666", "0.41099986", "0.41088888", "0.41014808", "0.41007057", "0.40939325", "0.4086315", "0.4086029", "0.4074215", "0.4073755", "0.40732628", "0.40703034", "0.40624917", "0.40624171", "0.40586516", "0.40550536", "0.4054669", "0.40510526", "0.40499583", "0.40499055", "0.40351003", "0.4023531", "0.40185115" ]
0.6321564
0
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Lin2006)) { return false; } Lin2006 other = (Lin2006) object; if ((this.lin2006PK == null && other.lin2006PK != null) || (this.lin2006PK != null && !this.lin2006PK.equals(other.lin2006PK))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getID() {return id;}", "public int getID() {return id;}", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getId()\n {\n return id;\n }", "public int getID(){\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6897049", "0.6839498", "0.67057544", "0.66417086", "0.66417086", "0.6592169", "0.6579292", "0.6579292", "0.6575263", "0.6575263", "0.6575263", "0.6575263", "0.6575263", "0.6575263", "0.656245", "0.656245", "0.65447694", "0.65251684", "0.6516205", "0.6487982", "0.6477638", "0.6428175", "0.64196116", "0.6418121", "0.64022696", "0.6367566", "0.6355691", "0.6352598", "0.6348783", "0.6325491", "0.63200915", "0.63026214", "0.62942576", "0.62942576", "0.62838596", "0.62720686", "0.6267314", "0.62664306", "0.62634486", "0.626002", "0.6256922", "0.6251961", "0.6248661", "0.6248661", "0.6245221", "0.62398785", "0.62398785", "0.62326866", "0.62245816", "0.6220949", "0.6220645", "0.6212643", "0.6210262", "0.62027115", "0.62024575", "0.6193926", "0.61905754", "0.61905754", "0.61905754", "0.6190146", "0.6190146", "0.618559", "0.61844486", "0.61750674", "0.61745095", "0.6168598", "0.6167194", "0.6161174", "0.61578095", "0.61578095", "0.61578095", "0.61578095", "0.61578095", "0.61578095", "0.61578095", "0.6156709", "0.6156709", "0.6143479", "0.6135095", "0.6129762", "0.6129127", "0.61063343", "0.61055714", "0.61055714", "0.6104239", "0.61037016", "0.6102918", "0.61012363", "0.6100267", "0.6094533", "0.60939157", "0.60936975", "0.60936975", "0.60916936", "0.60904694", "0.6077306", "0.6073186", "0.60725886", "0.60711926", "0.60707015", "0.6070076" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.id
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getId_number() {\n return id_number;\n }", "@Override\n\tpublic long getEmpId() {\n\t\treturn _employee.getEmpId();\n\t}", "public String getIdNo() {\n return idNo;\n }", "public String getIdNo() {\n return idNo;\n }", "public int getM_Product_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Product_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getM_Product_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Product_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public int getM_Product_ID() {\n\t\tInteger ii = (Integer) get_Value(\"M_Product_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public java.lang.String getID_NO() {\r\n return ID_NO;\r\n }", "public IntColumn getModelId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"model_id\", IntColumn::new) :\n getBinaryColumn(\"model_id\"));\n }", "String getIdNumber();", "public String getMiNo() {\r\n return miNo;\r\n }", "public int getM_Splitting_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Splitting_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public int getNumMP(){\n\t\treturn numMP;\n\t}", "public String getIdNumber() {\n return idNumber;\n }", "public Integer getPknum() {\n return pknum;\n }", "public int id() {\n return _num;\n }", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(name = \"pepe_sq_id\")\n\tpublic Long getId() {\n\t\treturn super.getId();\n\t}", "public Integer getId()\r\n\t\t{ return mapping.getId(); }", "public int getMp() \n\t{\n\t\treturn mp;\n\t}", "public int getidnumber() {\r\n return idnumber;\r\n }", "public YangString getPlmnIdValue() throws JNCException {\n return (YangString)getValue(\"plmn-id\");\n }", "public static String get_mpdp_id(){\r\n\t\t_mp_dp_id ++;\r\n\t\t\r\n\t\treturn \"mpdp\" + _mp_dp_id;\r\n\t}", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "String getID(String pid) {\n try {\n Cursor cursor = selectTable(makeMax(TableColumn.ChecklistTable.CID), makeCondition(TableColumn.ChecklistTable.PID, pid));\n cursor.moveToFirst();\n String id = cursor.getString(0);\n cursor.close();\n return id;\n } catch (SQLiteException sql_ex) {\n Log.e(\"SQL\", sql_ex.toString());\n } catch (CursorIndexOutOfBoundsException cur_ex) {\n Log.e(\"SQL\", cur_ex.toString());\n }\n return null;\n }", "public int getNumID() {\n return numID;\n }", "private long getIDnumber() {\n\t\treturn IDnumber;\n\t}", "public Number getID();", "private Integer getSequence() {\r\n\t\t\tInteger seq;\r\n\t\t\tString sql = \"select MAX(vendorid)from vendorTable\";\r\n\t\t\tseq = template.queryForObject(sql, new Object[] {}, Integer.class);\r\n\t\t\treturn seq;\r\n\t\t}", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public int getM_Production_ID();", "public int getM_InOut_ID();", "private int getEmployeeId() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint employeeId1 = 0;\r\n\t\tString sql = \"SELECT Patient_Id_Sequence.NEXTVAL FROM DUAL\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tResultSet res = pstmt.executeQuery();\r\n\t\t\tif (res.next()) {\r\n\t\t\t\temployeeId1 = res.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error while fetching data from database\");\r\n\t\t}\r\n\t\treturn employeeId1;\r\n\r\n\t}", "public double getPk()\n {\n return this.pk;\n }", "public java.lang.String getMnpId() {\n java.lang.Object ref = mnpId_;\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 mnpId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.Long _pk()\n {\n return (java.lang.Long)i_pk();\n }", "public java.lang.String getMnpId() {\n java.lang.Object ref = mnpId_;\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 mnpId_ = s;\n return s;\n }\n }", "@Query(value = \"select last_insert_id() from orden limit 1;\",nativeQuery = true)\n\tpublic Integer getLastId();", "public IntColumn getPdbxDatabaseIdPubMed() {\n return delegate.getColumn(\"pdbx_database_id_PubMed\", DelegatingIntColumn::new);\n }", "public String getMtId() {\n return mtId;\n }", "public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }", "public String getColumnID()\n\t{\n\t\treturn this.columnID;\n\t}", "public int getProductId(){\n connect();\n int id = 0;\n String sql = \"SELECT MAX(id_producto) FROM productos\";\n ResultSet result = null;\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n result = ps.executeQuery();\n //result = getQuery(sql);\n if(result != null){\n while(result.next()){\n id = result.getInt(1);\n }\n }\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n }\n return id; \n }", "int getIdNum();", "public int getM_Product_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Product_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "@Override\n\tpublic Number getId() {\n\t\treturn this.id;\n\t}", "public com.google.protobuf.ByteString\n getMnpIdBytes() {\n java.lang.Object ref = mnpId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n mnpId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected String getDatabasePkColumnName() {\n return this.pkColumn == null ? getPlan().getDocIdField() : this.pkColumn;\n }", "@Override\r\n\tpublic int getID() {\n\t\treturn jID()*100+ID();\r\n\t}", "public int getPrimaryKey() {\n\t\treturn _dmHistoryMaritime.getPrimaryKey();\n\t}", "public int getImportedMaxId();", "public com.google.protobuf.ByteString\n getMnpIdBytes() {\n java.lang.Object ref = mnpId_;\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 mnpId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private int save_InsertGetInsertId() {\n\t\t\n\t\tfinal String INSERT_SQL = \"INSERT INTO project__insert_id_tbl ( ) VALUES ( )\";\n\t\t\n\t\t// Use Spring JdbcTemplate so Transactions work properly\n\t\t\n\t\t// How to get the auto-increment primary key for the inserted record\n\t\t\n\t\ttry {\n\t\t\tKeyHolder keyHolder = new GeneratedKeyHolder();\n\t\t\tint rowsUpdated = this.getJdbcTemplate().update(\n\t\t\t\t\tnew PreparedStatementCreator() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n\n\t\t\t\t\t\t\tPreparedStatement pstmt =\n\t\t\t\t\t\t\t\t\tconnection.prepareStatement( INSERT_SQL, Statement.RETURN_GENERATED_KEYS );\n\n\t\t\t\t\t\t\treturn pstmt;\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tkeyHolder);\n\n\t\t\tNumber insertedKey = keyHolder.getKey();\n\t\t\t\n\t\t\tlong insertedKeyLong = insertedKey.longValue();\n\t\t\t\n\t\t\tif ( insertedKeyLong > Integer.MAX_VALUE ) {\n\t\t\t\tString msg = \"Inserted key is too large, is > Integer.MAX_VALUE. insertedKey: \" + insertedKey;\n\t\t\t\tlog.error( msg );\n\t\t\t\tthrow new LimelightInternalErrorException( msg );\n\t\t\t}\n\t\t\t\n\t\t\tint insertedKeyInt = (int) insertedKeyLong; // Inserted auto-increment primary key for the inserted record\n\t\t\t\n\t\t\treturn insertedKeyInt;\n\t\t\t\n\t\t} catch ( RuntimeException e ) {\n\t\t\tString msg = \"SQL: \" + INSERT_SQL;\n\t\t\tlog.error( msg, e );\n\t\t\tthrow e;\n\t\t}\n\t}", "public static int getIdNumber() {\n return idNumber;\n }", "public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }", "public IntColumn getDatabaseIdMedline() {\n return delegate.getColumn(\"database_id_Medline\", DelegatingIntColumn::new);\n }", "private static Integer getSeq()throws SQLException{\r\n String selectSql = \"SELECT max(idArt) from Artigo\";\r\n Statement statement = dbConnection.createStatement();\r\n ResultSet rs = statement.executeQuery(selectSql);\r\n int seqIdPe = -1;\r\n if(rs.next()){\r\n seqIdPe = rs.getInt(1);\r\n }\r\n return seqIdPe + 1; \r\n }", "public String getPropertyID()\n {\n String v = (String)this.getFieldValue(FLD_propertyID);\n return StringTools.trim(v);\n }", "public java.lang.Long getId_tecnico();", "public final String getNum_emp() {\n return getString(getNum_empAttribute(getMtDatabase()));\n }", "public long getMappedValue() {\n\t\treturn this.value;\n\t}", "@Override\n public Long getLastInsertId() {\n Long lastId = 0L;\n Map<String, Object> paramMap = new HashMap<>();\n paramMap.put(\"lastID\", lastId);\n jdbc.query(SELECT_LAST_INSERT_ID, paramMap, rowMapper);\n return lastId;\n }", "public long getId() {\n return ctTableColumn.getId();\n }", "public java.lang.Long getId();", "@Override\n\tpublic String getPkVal() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getMobileNum() {\n\t\treturn get.getMobileNum();\n\t}", "public int getM_Product_ID();", "public int getM_Product_ID();", "@Override\n\tpublic long getColumnId() {\n\t\treturn _expandoColumn.getColumnId();\n\t}", "public Integer getpId() {\n return pId;\n }", "public BigDecimal getLstId() {\n return lstId;\n }", "@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}", "@Override\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name = \"bmRmCodeId\")\n\tpublic Long getId()\n\t{\n\t\treturn super.getId();\n\t}", "private int getIDFromDb(String codeItemID) {\n\n\t\t// StringBuffer buffer = new StringBuffer();\n\t\tcodeItemID = codeItemID.toUpperCase();\n\t\tString sql = \"SELECT max_sequence FROM do_code_maxsequence WHERE upper(code_ItemUid)=? for update\";\n\n\t\tStringBuffer insertSql = new StringBuffer(\n\t\t\t\t\"insert into do_code_maxsequence(OBJUID,SEQUENCE_NAME,CODE_ITEMUID,PROPERTYUID,PROPERTYVALUE,YEARSEQ,MAX_SEQUENCE) values(\")\n\t\t\t\t.append(\"?,?,?,null,?,?,?)\");\n\n\t\tStringBuffer sqlUpdate = new StringBuffer(\n\t\t\t\t\"update do_code_maxsequence SET max_sequence=max_sequence+1\")\n\t\t\t\t.append(\" WHERE upper(code_ItemUid)=?\");\n\t\tConnection con = null;\n\t\tPreparedStatement stmt = null;\n\t\tDOBO bo = DOBO.getDOBOByName(\"do_authorization\");\n\t\tDODataSource dss = bo.getDataBase();\n\n\t\ttry {\n\t\t\t// query\n\t\t\tcon = dss.getConnection();\n\t\t\tcon.setAutoCommit(false);\n\t\t\tstmt = con.prepareStatement(sql, ResultSet.TYPE_SCROLL_INSENSITIVE,\n\t\t\t\t\tResultSet.CONCUR_READ_ONLY);\n\t\t\tint retId = 1;\n\n\t\t\tstmt.setString(1, codeItemID);\n\t\t\tResultSet rs = stmt.executeQuery();\n\n\t\t\tSystem.out.println(\"The SQL\" + sql);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tretId = rs.getInt(\"max_sequence\") + 1;\n\t\t\t\t// update\n\t\t\t\t// //update\n\t\t\t\tstmt = con.prepareStatement(sqlUpdate.toString());\n\t\t\t\tstmt.setString(1, codeItemID);\n\t\t\t\tstmt.execute();\n\t\t\t} else {\n\t\t\t\t// //////////////insert\n\t\t\t\tstmt = con.prepareStatement(insertSql.toString());\n\t\t\t\tstmt.setString(1, UUIDHex.getInstance().generate());\n\t\t\t\tstmt.setString(2, null);\n\t\t\t\tstmt.setString(3, codeItemID);\n\t\t\t\tstmt.setString(4, null);\n\t\t\t\tstmt.setInt(5, 0);\n\t\t\t\tstmt.setLong(6, retId);\n\t\t\t\tstmt.execute();\n\t\t\t}\n\t\t\t// stmt.close();\n\t\t\t//\n\n\t\t\tcon.commit();\n\t\t\treturn retId;\n\n\t\t} catch (SQLException ex) {\n\t\t\ttry {\n\t\t\t\tcon.rollback();\n\t\t\t} catch (SQLException e) {\n\n\t\t\t}\n\t\t\tex.printStackTrace();\n\t\t\treturn 0;\n\t\t} finally {// Close Connection\n\t\t\ttry {\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\tstmt.close();\n\t\t\t\t}\n\t\t\t con.close();\n\t\t\t} catch (Exception ex1) {\n\t\t\t\tex1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public IntColumn getSeqNum() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"seq_num\", IntColumn::new) :\n getBinaryColumn(\"seq_num\"));\n }", "public static String getRedemptionPromotionId(Connection conn, String redemptionCode) throws SQLException {\n\t\tString promoId = null;\n\t\t//TODO later the select query need to be changed to return ID column instead of Code. \n\t\tPreparedStatement ps = conn.prepareStatement(\"SELECT code FROM CUST.PROMOTION_NEW where UPPER(redemption_code) = UPPER(?) and status \"+getStatusReplacementString()+\" order by expiration_date desc\");\n\t\tps.setString(1, redemptionCode);\n\t\tResultSet rs = ps.executeQuery();\n\n\t\tif (rs.next()) {\n\t\t\tpromoId = rs.getString(\"CODE\");\n\t\t}\n\n\t\trs.close();\n\t\tps.close();\n\n\t\treturn promoId;\n\t}", "public long getId() {\n\t\treturn getTo(true).getId();\n\t}", "public int getHC_ManagerTo_ID();", "@Override\n\tpublic Long getNextPjpeNo(Long pjId) {\n\t\tSession session = sessionAnnotationFactory.getCurrentSession();\t\t\n\t\tQuery query =session.createQuery( \"select max(pstJobPayExt.id.pjpeNo) from PstJobPayExt pstJobPayExt where pstJobPayExt.id.pjId=\"+pjId);\n\t\tObject obj=query.uniqueResult();\n\t\tif(obj!=null){\n\t\t\treturn ((Long)obj)+1;\n\t\t}\n\t\treturn 1l;\n\t}", "public int getID() {\r\n\t\treturn idNumber;\r\n\t}", "public int getEmpId() {\n\t\treturn 0;\n\t}", "String mo10312id();", "public IntColumn getId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"id\", IntColumn::new) :\n getBinaryColumn(\"id\"));\n }", "public IntColumn getId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"id\", IntColumn::new) :\n getBinaryColumn(\"id\"));\n }", "public Long getId() {\n return this.id.get();\n }", "public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }", "public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }", "public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }", "public int getNumber() {\n return field.getNumber();\n }", "public Class<Long> getIdType() {\n return Long.class;\n }", "@JsonIgnore\n\t@Id\n\tpublic Long getId() {\n\t\treturn Long.valueOf(String.format(\"%d%02d\", sale.getSaleYear(), this.num));\n\t}", "public int obtId() {\r\n\t\treturn id;\r\n\t}", "public Long getId() {\n\t\treturn null;\n\t}", "public long mo23307l() {\n return ((Long) this.f13965a.mo23249a(C7196pb.f13890uc)).longValue();\n }", "public java.lang.String getIDNumber() {\n return IDNumber;\n }", "public int getId() {\n return parameter.getId();\n }", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _expandoColumn.getPrimaryKey();\n\t}", "public Number getManagerIdFk() {\r\n return (Number) getAttributeInternal(MANAGERIDFK);\r\n }", "@Id\n @GeneratedValue(strategy = GenerationType.IDENTITY)\n @Column(name = \"N_ID\")\n public Integer getId() {\n return id;\n }", "public int charNum() {\n return myId.charNum();\n }", "String getValueId();" ]
[ "0.60946685", "0.59125894", "0.58685845", "0.58685845", "0.5867823", "0.5867823", "0.5867823", "0.58332324", "0.58276016", "0.5818861", "0.57969147", "0.5777846", "0.5767743", "0.5763979", "0.5747412", "0.5738141", "0.57328075", "0.57327557", "0.5731548", "0.5726024", "0.5721263", "0.5711264", "0.5695555", "0.5695555", "0.564924", "0.56300235", "0.5621971", "0.56187695", "0.56172675", "0.560336", "0.5601931", "0.5597259", "0.5587579", "0.55763483", "0.55629647", "0.5552975", "0.5549588", "0.5548246", "0.5547123", "0.55440897", "0.55431604", "0.55402917", "0.55257636", "0.5509353", "0.5500868", "0.5500736", "0.5488513", "0.5472275", "0.54705375", "0.546277", "0.5456582", "0.5454814", "0.5446173", "0.54443437", "0.54312027", "0.5426245", "0.5425789", "0.54253453", "0.542124", "0.54174733", "0.5413755", "0.5410597", "0.5409865", "0.54093164", "0.54086703", "0.53998494", "0.5397133", "0.5397133", "0.5388236", "0.53850913", "0.53824794", "0.5380326", "0.53726405", "0.53543794", "0.5345549", "0.5340484", "0.5336429", "0.53357536", "0.53307796", "0.53191304", "0.5312923", "0.5307196", "0.5304134", "0.5304134", "0.5301434", "0.5297246", "0.5297246", "0.5297246", "0.5294537", "0.52932787", "0.52920854", "0.5286199", "0.52840793", "0.52834094", "0.52831423", "0.52803713", "0.5278651", "0.5277106", "0.52736217", "0.5271018", "0.5263182" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.id
public void setId(Long id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setID(Number numID);", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Production_ID (int M_Production_ID);", "public void setId_number(String id_number) {\n this.id_number = id_number;\n }", "public void setM_Splitting_ID (int M_Splitting_ID)\n{\nset_ValueNoCheck (\"M_Splitting_ID\", new Integer(M_Splitting_ID));\n}", "public void setidnumber(int id) {\r\n idnumber = id;\r\n }", "public void setPknum(Integer pknum) {\n this.pknum = pknum;\n }", "void setIdNumber(String idNumber);", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setIdNumber(String idNumber) {\n this.idNumber = idNumber;\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(Long value) {\r\n this.id = value;\r\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setM_InOut_ID (int M_InOut_ID);", "public final void setNum_emp(String val) {\n setString(getNum_empAttribute(getMtDatabase()), val);\n }", "public void setId(long param) {\n localIdTracker = param != java.lang.Long.MIN_VALUE;\r\n\r\n this.localId = param;\r\n }", "public void setId(Long pid) {\n this.pid = pid;\n }", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public void autoID(){\n try {\n \n System.out.println(\"trying connection\");\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n con=DriverManager.getConnection (\"jdbc:mysql://localhost:3306/airlines\",\"root\",\"root\");\n Statement s=con.createStatement();\n System.out.println(\"connection sucessful\");\n ResultSet rs=s.executeQuery(\"select MAX(ID)from customer\");\n rs.next();\n rs.getString(\"MAX(ID)\");\n if(rs.getString(\"MAX(ID)\")==null)\n {\n txtcustid.setText(\"CS001\");\n }\n else\n {\n long id=Long.parseLong(rs.getString(\"MAX(ID)\").substring(2,rs.getString(\"MAX(ID)\").length()));\n id++;\n txtcustid.setText(\"CS\"+String.format(\"%03d\", id));\n }\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(searchCustomer.class.getName()).log(Level.SEVERE, null, ex);\n \n } catch (SQLException ex) {\n Logger.getLogger(searchCustomer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void setId(int id)\r\n {\r\n this.mId = id;\r\n }", "public void setM_MovementConfirm_ID (int M_MovementConfirm_ID);", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "@Override\n public final void setItsId(final Long pId) {\n //stub\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(Long value) {\n this.id = value;\n }", "public Builder setMnpId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mnpId_ = value;\n onChanged();\n return this;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(long id) {\n id_ = id;\n }", "private MAID(int maID){\n\t\t\n\t\t\n\t\tthis.id = maID;\n\t}", "public void setID(long id);", "public void setMarkaAutomobilaID(long value) {\r\n this.markaAutomobilaID = value;\r\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "final public void setId(int idp) {\n\t\tid = idp;\n\t\tidSet = true;\n\t}", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }", "public void setEmpId(int parseInt) {\n\t\t\n\n\n\t\t\n\t}", "public void setPLeadMrktId(Number value) {\n\t\tsetNumber(P_LEAD_MRKT_ID, value);\n\t}", "public void setPlmnIdValue(String plmnIdValue) throws JNCException {\n setPlmnIdValue(new YangString(plmnIdValue));\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public void setTipMjenjacaID(long value) {\r\n this.tipMjenjacaID = value;\r\n }", "public void setMobile_phone(Long mobile_phone);", "private void setId(int value) {\n \n id_ = value;\n }", "public void setKlasaAutomobilaID(long value) {\r\n this.klasaAutomobilaID = value;\r\n }", "public abstract void setCompteId(Integer pCompteId);", "public void setSpId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpIdTracker = true;\r\n } else {\r\n localSpIdTracker = false;\r\n \r\n }\r\n \r\n this.localSpId=param;\r\n \r\n\r\n }", "public void setUidPk(final long uidPk) {\n\t\tthis.uidPk = uidPk;\n\t}", "public void setUidPk(final long uidPk) {\n\t\tthis.uidPk = uidPk;\n\t}", "public void setMemArtId(Number value) {\n setAttributeInternal(MEMARTID, value);\n }", "public void setId(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localIdTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localId=param;\r\n \r\n\r\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(int tmp) {\n this.id = tmp;\n }", "public void setId(int tmp) {\n this.id = tmp;\n }", "public void setSalesRep_ID (int SalesRep_ID);", "public void setSalesRep_ID (int SalesRep_ID);", "@Override\n public void setPrimaryKey(java.lang.Object key) {\n\n mnDbmsType = ((int[]) key)[0];\n mnPkYearId = ((int[]) key)[1];\n mnPkTypeCostObjectId = ((int[]) key)[2];\n mnPkRefCompanyBranchId = ((int[]) key)[3];\n mnPkRefReferenceId = ((int[]) key)[4];\n mnPkRefEntityId = ((int[]) key)[5];\n mnPkBizPartnerId = ((int[]) key)[6];\n mtDbmsDateStart = ((java.util.Date[]) key)[7];\n mtDbmsDateEnd = ((java.util.Date[]) key)[8];\n }", "public void setMailId(int v) \n {\n \n if (this.mailId != v)\n {\n this.mailId = v;\n setModified(true);\n }\n \n \n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public void setMprice(int value) {\r\n this.mprice = value;\r\n }", "public void setID(long value) {\n this.id = value;\n }", "public void setQuestionId(int tmp) {\n this.questionId = tmp;\n }", "public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setPk(double pk)\n {\n this.pk = pk;\n }", "public void setId(int aMonthId) {\r\n\t\tid = aMonthId;\r\n\t}", "public void setID(java.lang.Integer value);", "public void setNum(int num) {\r\n this.num = num;\r\n }", "public abstract void setEspe_id(java.lang.Integer newEspe_id);", "public void setMlNid(BigDecimal mlNid) {\n this.mlNid = mlNid;\n }", "public void setM_PriceList_Version_ID (int M_PriceList_Version_ID);", "public static String get_mpdp_id(){\r\n\t\t_mp_dp_id ++;\r\n\t\t\r\n\t\treturn \"mpdp\" + _mp_dp_id;\r\n\t}", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public static void setColumnNumber(Configuration conf, int columnNum) {\n\t\tassert columnNum > 0;\n\t\tconf.setInt(RCFile.COLUMN_NUMBER_CONF_STR, columnNum);\n\t}", "public int getNumMP(){\n\t\treturn numMP;\n\t}", "private void setPoId(Long id) {\r\n this.poId = id;\r\n }", "void setID(int id){\n\t\tthis.qID = id;\n\t}", "public void setId(java.lang.Long value) {\r\n\t\tthis.id = value;\r\n\t}", "public void setId(long id){\n\t\tthis.id = id;\n\t}", "public void setId(int value) {\r\n this.id = value;\r\n }", "public void seti_ordertrx_temp_ID (int i_ordertrx_temp_ID);", "public void setPeti_numero(java.lang.Long newPeti_numero);", "public void setPeti_numero(java.lang.Long newPeti_numero);" ]
[ "0.59670585", "0.5900585", "0.586083", "0.586083", "0.5856912", "0.57444435", "0.5713776", "0.567243", "0.56487375", "0.5643983", "0.5611246", "0.55613923", "0.5535575", "0.5535575", "0.5533423", "0.5523904", "0.54994905", "0.54952484", "0.54757744", "0.5467935", "0.54576606", "0.54343307", "0.5433888", "0.54291433", "0.54270965", "0.5420166", "0.5419174", "0.5419174", "0.5419174", "0.5419174", "0.5419174", "0.5419174", "0.5419174", "0.54141897", "0.5394823", "0.539161", "0.5373361", "0.53564644", "0.5341811", "0.5339825", "0.5325262", "0.53230906", "0.5315102", "0.52982837", "0.5294132", "0.5289742", "0.52667123", "0.52661175", "0.52540773", "0.524922", "0.52466166", "0.524085", "0.5237836", "0.52261037", "0.5215638", "0.51948583", "0.51948583", "0.5194762", "0.519131", "0.5179154", "0.5179154", "0.51791525", "0.51791525", "0.5174244", "0.5174244", "0.5174115", "0.5173846", "0.5170041", "0.5169658", "0.5169658", "0.5168037", "0.5164657", "0.51630586", "0.5160559", "0.5159735", "0.5159735", "0.51583815", "0.5151714", "0.5144753", "0.5137372", "0.5136408", "0.51330566", "0.5131664", "0.5130967", "0.5128842", "0.5128842", "0.5128842", "0.5128842", "0.5128842", "0.5128842", "0.5128842", "0.5119524", "0.51194257", "0.511595", "0.5115493", "0.51139057", "0.51123023", "0.51121956", "0.5105319", "0.51030064", "0.51030064" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.merType
public String getMertype() { return mertype; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getMotType() {\n\t\treturn motType;\n\t}", "public Integer getMaterial_type() {\n return material_type;\n }", "public String getMptType() {\n return mptType;\n }", "public String getMiNo() {\r\n return miNo;\r\n }", "TypeAssociationEXT getEstPourTypeMateriel();", "com.demo.springprotobuff.Demoproto.Student.PhoneType getType();", "@Override\n\tpublic String getDmTypeCode() {\n\t\treturn null;\n\t}", "fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();", "public int getTipoSql() {\n return tipoSql;\n }", "@Override\n\tpublic String getMobileNum() {\n\t\treturn get.getMobileNum();\n\t}", "public T getMerchandise(){\n\t\treturn merchandise;\n\t}", "public Integer getLastDealPersonType() {\n return lastDealPersonType;\n }", "public String getPrmTypeCode() {\n return (String)getAttributeInternal(PRMTYPECODE);\n }", "public com.flexnet.opsembedded.webservices.DeviceMachineTypeQueryType getMachineType() {\n return machineType;\n }", "public String getSuptypeNo() {\n return suptypeNo;\n }", "public int getSqlType() { return _type; }", "public String getrType() {\n return rType;\n }", "public String getMapTyp() {\n\t\treturn this.mapTyp;\n\t}", "@JsProperty(name = \"msType\")\n public native String getMsType();", "public String getMerReserved() {\n\t\treturn merReserved;\n\t}", "public int getMpen(){\n\t\treturn mpen;\n\t}", "public String getMotd() {\n return this.motd;\n }", "public java.lang.String getLocTypCd() {\n return locTypCd;\n }", "public String getSqlType() {\n\t\treturn this.sqlType;\n\t}", "public int getColumnType() {\n return (this.option >> 6) & 3;\n }", "public int getMp() \n\t{\n\t\treturn mp;\n\t}", "public String getTjm() {\n return tjm;\n }", "java.lang.String getField1401();", "int getPhoneTypeValue();", "@Override\n public Long findMAX() {\n\n StringBuffer sql = new StringBuffer(\"select max(magoithau) from goithau\");\n Query query = entityManager.createNativeQuery(sql.toString());\n return Long.parseLong(query.getSingleResult().toString()) ;\n }", "public String get(int typeCode) throws MappingException {\n\t\tfinal String result = defaults.get(typeCode);\n\t\tif (result == null) {\n\t\t\tthrow new MappingException(\"No Dialect mapping for JDBC type: \" + typeCode);\n\t\t}\n\t\treturn result;\n\t}", "public short getCustIdTypCd() {\n return custIdTypCd;\n }", "public void setMerkki(char merkki){\r\n this.merkki = merkki; \r\n }", "public Integer getJuserType() {\n return juserType;\n }", "public Typetelecommande rechercheTypeTelecommande(String Num) {\n\t\tint Numero = Integer.parseInt(Num);\n\t\tTypetelecommande T = em.find(Typetelecommande.class, Numero);\n\t\treturn T;\n\t}", "public String obtenirType() {\n\t\treturn this.type;\n\t}", "public String getMtId() {\n return mtId;\n }", "public String getModel_type_name() {\r\n\t\treturn model_type_name;\r\n\t}", "public java.lang.String getMID() {\r\n return MID;\r\n }", "public java.lang.String getDeterminerCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DETERMINERCODE$32);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(DETERMINERCODE$32);\n }\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getMobileNo() {\n return (String)getAttributeInternal(MOBILENO);\n }", "public String getLocTypCd()\n\t{\n\t\treturn mLocTypCd;\n\t}", "public com.felania.msldb.MsgSummonOuterClass.MsgSummon.SummonType getType() {\n com.felania.msldb.MsgSummonOuterClass.MsgSummon.SummonType result = com.felania.msldb.MsgSummonOuterClass.MsgSummon.SummonType.valueOf(type_);\n return result == null ? com.felania.msldb.MsgSummonOuterClass.MsgSummon.SummonType.UNRECOGNIZED : result;\n }", "public Monomer getMonomer(String polymerType, String alternateId) {\r\n\tMap<String, Monomer> map1 = monomerDB.get(polymerType);\r\n\t//alternateId = alternateId.toUpperCase();\r\n return monomerDB.get(polymerType).get(alternateId);\r\n }", "public int getMM() {\n\t\treturn MM;\n\t}", "public Integer getMerchandiseid() {\n return merchandiseid;\n }", "public int getNumMP(){\n\t\treturn numMP;\n\t}", "public String getCmkType() {\n return this.cmkType;\n }", "public int getMtu();", "@Override\r\n\tpublic int getMM() {\n\t\treturn MM;\r\n\t}", "public com.felania.msldb.MsgSummonOuterClass.MsgSummon.SummonType getType() {\n com.felania.msldb.MsgSummonOuterClass.MsgSummon.SummonType result = com.felania.msldb.MsgSummonOuterClass.MsgSummon.SummonType.valueOf(type_);\n return result == null ? com.felania.msldb.MsgSummonOuterClass.MsgSummon.SummonType.UNRECOGNIZED : result;\n }", "public Integer getTypeCode() {\n return typeCode;\n }", "public String mo43865f() {\n String subtype = (String) mo43858c().get(C13822a.Subtype);\n return subtype != null ? subtype : \"\";\n }", "public java.lang.String getFieldDBType() {\n return fieldDBType;\n }", "public String getColType() {\r\n\t\treturn colType;\r\n\t}", "public Long getDeptType() {\n return deptType;\n }", "public java.lang.String getMaritimeCode() {\n\t\treturn _dmHistoryMaritime.getMaritimeCode();\n\t}", "public String getMatriculationNumber() {\n return matriculationNumber;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "com.felania.msldb.MsgSummonOuterClass.MsgSummon.SummonType getType();", "private RoomType RoomTypeComboBoxValue()\r\n\t{\r\n\t\tRoomType o1 = (RoomType) rtComboBox.getSelectedItem();\r\n\t\treturn o1;\r\n\t}", "java.lang.String getMachineType();", "public String getEntityType() {\r\n return \"Material\";\r\n }", "public String getpymttype() {\n return (String) getAttributeInternal(PYMTTYPE);\n }", "public MsqType getType()\n {\n return this.type;\n }", "public Long getMobile_phone();", "protected String getStrainType()\n{\n\treturn \"Met E\";\n}", "public java.lang.String calculationType()\n\t{\n\t\treturn _strCalculationType;\n\t}", "public java.lang.String maturityType()\n\t{\n\t\treturn _strMaturityType;\n\t}", "public short getJursdTypCd() {\n return jursdTypCd;\n }", "public int getSomme() {\r\n\t\treturn somme;\r\n\t}", "public int getSomme() {\r\n\t\treturn somme;\r\n\t}", "public String getType() {\n if(iType == null){\n ArrayList<Identification_to_quantitation> lLinkers = this.getQuantitationLinker();\n for (int j = 0; j < lLinkers.size(); j++) {\n if (lLinkers.get(j).getL_identificationid() == this.getIdentificationid()) {\n this.setType(lLinkers.get(j).getType());\n }\n }\n }\n return iType;\n }", "public Integer getJtype() {\n return jtype;\n }", "public java.lang.String getMWNType() {\n return MWNType;\n }", "public String getMallCode() {\n return mallCode;\n }", "public String getpMenor() {\r\n return pMenor;\r\n }", "public String getMobileNum() {\n return mobileNum;\n }", "public String getMemberType() {\n return (String) get(3);\n }", "public com.demo.springprotobuff.Demoproto.Student.PhoneType getType() {\n\t\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\t\tcom.demo.springprotobuff.Demoproto.Student.PhoneType result = com.demo.springprotobuff.Demoproto.Student.PhoneType\n\t\t\t\t\t\t\t.valueOf(type_);\n\t\t\t\t\treturn result == null ? com.demo.springprotobuff.Demoproto.Student.PhoneType.UNRECOGNIZED : result;\n\t\t\t\t}", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type getType();", "public java.lang.String getMpCustom() {\r\n return mpCustom;\r\n }", "public short getCustIdTypCd()\n\t{\n\t\treturn mCustIdTypCd;\n\t}", "public String getMaori() {\n\t\treturn _maoriNumber;\n\t}", "public void setMotType(Integer motType) {\n\t\tif (motType == null) {\n\t\t\tthis.motType = null;\n\t\t} else {\n\t\t\tthis.motType = motType;\n\t\t}\n\t}", "public String getRoomtype() {\r\n\t\treturn roomtype;\r\n\t}", "public String getBookType() {\n return bookType;\n }", "public int getM () {\n\t\treturn M;\n\t}", "public String getLBR_MDFeDocType();", "public int GetM()\r\n\t{\r\n\t\treturn M;\r\n\t}", "public String getnom ()\n {\n return nom_et;\n }", "public Integer getUsertype() {\n return usertype;\n }", "public Column.Type getType();", "public String getJustificacionVerTipo() {\n\t\treturn justificacionVerTipo;\n\t}", "public int getPhoneTypeValue() {\n return phoneType_;\n }", "@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }", "public String getMobileCode() {\n return mobileCode;\n }" ]
[ "0.5738208", "0.54363024", "0.5400017", "0.52423847", "0.5191768", "0.5162191", "0.5156442", "0.50609934", "0.5055393", "0.50259715", "0.5011505", "0.5009359", "0.50035197", "0.49979243", "0.49480584", "0.49301186", "0.49258634", "0.49051312", "0.48986235", "0.48560777", "0.48252645", "0.4812931", "0.48119572", "0.47958052", "0.47928408", "0.47838423", "0.4779862", "0.47775385", "0.47721225", "0.4769386", "0.476769", "0.4766966", "0.47498682", "0.47482616", "0.47385663", "0.47374195", "0.47312102", "0.47107023", "0.47060886", "0.46997133", "0.4698161", "0.46959442", "0.46941555", "0.46842945", "0.46827692", "0.46719405", "0.4671869", "0.46714485", "0.46668094", "0.46638724", "0.46616215", "0.46607438", "0.4658489", "0.46514243", "0.46457434", "0.46423388", "0.4637601", "0.4637157", "0.4636679", "0.4636679", "0.4636679", "0.4636679", "0.46332532", "0.46303782", "0.46296248", "0.4628741", "0.4626561", "0.46249294", "0.4622605", "0.46172315", "0.4617121", "0.46145087", "0.46143994", "0.45991582", "0.45991582", "0.45885202", "0.45875296", "0.45835087", "0.4582967", "0.45826602", "0.45789123", "0.4576599", "0.45752588", "0.45717764", "0.45714286", "0.45699996", "0.4567999", "0.4567865", "0.45671389", "0.45655248", "0.45633286", "0.45627972", "0.4558317", "0.4556508", "0.45553598", "0.4545687", "0.45348775", "0.45338428", "0.45297328", "0.45289436" ]
0.58383447
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.merType
public void setMertype(String mertype) { this.mertype = mertype == null ? null : mertype.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMerkki(char merkki){\r\n this.merkki = merkki; \r\n }", "public void setMotType(Integer motType) {\n\t\tif (motType == null) {\n\t\t\tthis.motType = null;\n\t\t} else {\n\t\t\tthis.motType = motType;\n\t\t}\n\t}", "public void setMerReserved(String merReserved) {\n\t\tthis.merReserved = merReserved == null ? null : merReserved.trim();\n\t}", "public String getMertype() {\n return mertype;\n }", "public void setGegenkontoNummer(String kontonummer) throws RemoteException;", "public void setMerchandiseid(Integer merchandiseid) {\n this.merchandiseid = merchandiseid;\n }", "public Integer getMotType() {\n\t\treturn motType;\n\t}", "public void setNummer(int n) {\n\t\tint alteNummer = this.nummer; //this-Ref nicht unbedingt nötig!\n\t\tthis.nummer = n;\n\t\tif (!validateNummer()) { // wenn neue Nummer ist nicht gueltig\n\t\t\tthis.nummer = alteNummer;\n\t\t}\n\t}", "@Override\r\n\tpublic void updateMenmberMode(MenmberMode menmberMode) {\n\t\tMenmberMode m = getMenmberModeById(menmberMode.getM_id());\r\n\t\tm.setCombinationSet(menmberMode.getCombinationSet());\r\n\t\tm.setM_description(menmberMode.getM_description());\r\n\t\tm.setM_id(menmberMode.getM_id());\r\n\t\tm.setM_isOverlay(menmberMode.getM_isOverlay());\r\n\t\tm.setM_name(menmberMode.getM_name());\r\n\t\tm.setMemberSet(menmberMode.getMemberSet());\r\n\t\tgetHibernateTemplate().update(m);\r\n\t}", "public void setExaminationType(ExaminationType_type1 param){\n \n this.localExaminationType=param;\n \n\n }", "private void setMM(int MM) {\n\t\tCMN.MM = MM;\n\t}", "@JsProperty(name = \"msType\")\n public native void setMsType(String value);", "public void setpMenor(String pMenor) {\r\n this.pMenor = pMenor;\r\n }", "public void setGender(Gender_Tp gender) { this.gender = gender; }", "public void setDeterminerCode(java.lang.String determinerCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DETERMINERCODE$32);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DETERMINERCODE$32);\n }\n target.setStringValue(determinerCode);\n }\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setUnidadMterreno(Valor unidadMterreno) {\n this.unidadMterreno = unidadMterreno;\n }", "public void setMobile_phone(Long mobile_phone);", "public String getMptType() {\n return mptType;\n }", "public void setMobile(int number) {\n\t\t\tthis.Mobile = number;\r\n\t\t}", "public void setMptType(String mptType) {\n this.mptType = mptType;\n }", "public void setMerchandisecid(Integer merchandisecid) {\n this.merchandisecid = merchandisecid;\n }", "public void setMerchandisename(String merchandisename) {\n this.merchandisename = merchandisename == null ? null : merchandisename.trim();\n }", "@Override\n\tpublic String getDmTypeCode() {\n\t\treturn null;\n\t}", "public void setM_Splitting_ID (int M_Splitting_ID)\n{\nset_ValueNoCheck (\"M_Splitting_ID\", new Integer(M_Splitting_ID));\n}", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setSomme(int somme) {\r\n\t\tthis.somme = somme;\r\n\t}", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public void setRoomTypeId(String rm_typ_id) {\n this.room_type_id = rm_typ_id;\n }", "public void setMachineType(com.flexnet.opsembedded.webservices.DeviceMachineTypeQueryType machineType) {\n this.machineType = machineType;\n }", "public void setNumeroMur(int numeroMur) {\n\t\tthis.numeroMur = numeroMur;\n\t}", "public void setColType(String colType) {\r\n\t\tthis.colType = colType == null ? null : colType.trim();\r\n\t}", "public Integer getMaterial_type() {\n return material_type;\n }", "public String getMiNo() {\r\n return miNo;\r\n }", "public void setPrmTypeCode(String value) {\n setAttributeInternal(PRMTYPECODE, value);\n }", "public void setNomorRekamMedis(String nomorRekamMedis) {\r\n //pengecekan panjang karakter variabel nomorRekamMedis harus sama dengan 16\r\n //if (nomorRekamMedis.length() == 16) {\r\n //nilai variabel nomorRekamMedis sama dengan NIK\r\n this.nomorRekamMedis = nomorRekamMedis;\r\n // } else {\r\n //pesan jika bernilai false\r\n // throw new Exception(\"Nomor Rekam Medis terdiri dari 16 karakter \");\r\n // }\r\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setMaterial_type(Integer material_type) {\n this.material_type = material_type;\n }", "public void setNom(String p_onom);", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "public void setMID(java.lang.String MID) {\r\n this.MID = MID;\r\n }", "public void setRoomTypeDescription(String rm_typ) {\n this.room_type_description=rm_typ;\n }", "public String getMerReserved() {\n\t\treturn merReserved;\n\t}", "public void setPLeadMrktId(Number value) {\n\t\tsetNumber(P_LEAD_MRKT_ID, value);\n\t}", "public void setMoTa(String moTa);", "public void setMonModele(ModeleTable monModele) {\r\n\t\tthis.monModele = monModele;\r\n\t}", "public void setMerchandiseab(String merchandiseab) {\n this.merchandiseab = merchandiseab == null ? null : merchandiseab.trim();\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "private void setMobileNum(String mobileNum) {\n this.mobileNum = StringExtension.nullFilter(mobileNum);\n }", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "public abstract void setCrcdReimbTypeCd(String crcdReimbTypeCd);", "public T getMerchandise(){\n\t\treturn merchandise;\n\t}", "public void setMelhorMili(int melhorMili) {\n this.melhorMili = melhorMili;\n }", "public void setPersonType(PersonType_Tp type) { this.personType = type; }", "void setType(gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type type);", "public final void setNum_emp(String val) {\n setString(getNum_empAttribute(getMtDatabase()), val);\n }", "public final void setRiippumatonMuuttuja(final int muuttuja) {\r\n this.riippumatonMuuttuja = muuttuja;\r\n }", "public void xsetDeterminerCode(com.walgreens.rxit.ch.cda.EntityDeterminer determinerCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.EntityDeterminer target = null;\n target = (com.walgreens.rxit.ch.cda.EntityDeterminer)get_store().find_attribute_user(DETERMINERCODE$32);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.EntityDeterminer)get_store().add_attribute_user(DETERMINERCODE$32);\n }\n target.set(determinerCode);\n }\n }", "public void setMep(String mep) {\n this.mep = mep;\n }", "public int getMpen(){\n\t\treturn mpen;\n\t}", "public void setMailType(int v) \n {\n \n if (this.mailType != v)\n {\n this.mailType = v;\n setModified(true);\n }\n \n \n }", "public void setBookJurisdiction(typekey.Jurisdiction value);", "@Override\n\tpublic void setEditorType(java.lang.String editorType) {\n\t\t_scienceApp.setEditorType(editorType);\n\t}", "public void setMarca(String marcaParametru)\n {\n this.marca = marcaParametru;\n }", "public void setPeti_numero(java.lang.Long newPeti_numero);", "public void setPeti_numero(java.lang.Long newPeti_numero);", "public void setMaritimeCode(java.lang.String maritimeCode) {\n\t\t_dmHistoryMaritime.setMaritimeCode(maritimeCode);\n\t}", "TypeAssociationEXT getEstPourTypeMateriel();", "public Builder setField1401(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1401_ = value;\n onChanged();\n return this;\n }", "public void setMarkaAutomobilaID(long value) {\r\n this.markaAutomobilaID = value;\r\n }", "public void setNumeroChampMag(int numeroChampMag) {\n\t\tthis.numeroChampMag = numeroChampMag;\n\t}", "public void setResultSetType(Class<? extends ResultSet> resultSetType)\r\n/* 40: */ {\r\n/* 41: 92 */ this.resultSetType = resultSetType;\r\n/* 42: */ }", "public void setApellidoMaterno(String apellidoMaterno);", "public void setMobileNo(String value) {\n setAttributeInternal(MOBILENO, value);\n }", "public void setPuntoEmision(String puntoEmision)\r\n/* 129: */ {\r\n/* 130:217 */ this.puntoEmision = puntoEmision;\r\n/* 131: */ }", "public void setEmphcolumn(String emphColumnIn)\n {\n emphColumn = emphColumnIn;\n }", "public void setMarca(Long marca) {\n\t\tMarca = marca;\n\t}", "public final void setmot_test_number(String mot_test_number)\n\t{\n\t\tsetmot_test_number(getContext(), mot_test_number);\n\t}", "public void setType(int pType) {\n mType = pType;\n }", "public void setType(long type) {\r\n this.type = type;\r\n }", "public SelectType (int _selectType) {\n selectType = _selectType;\n }", "public void setModifyMan(Integer modifyMan) {\n this.modifyMan = modifyMan;\n }", "public void setMsisdn(java.lang.String param){\n localMsisdnTracker = true;\n \n this.localMsisdn=param;\n \n\n }", "public void setMiNo(String miNo) {\r\n this.miNo = miNo == null ? null : miNo.trim();\r\n }", "public void setMPR(Boolean MPR) {\n this.MPR = MPR;\n }", "public Integer getMerchandiseid() {\n return merchandiseid;\n }", "public void setMes(int mes);", "public final void setmot_test_number(com.mendix.systemwideinterfaces.core.IContext context, String mot_test_number)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.mot_test_number.toString(), mot_test_number);\n\t}", "public abstract void setCod_dpto(java.lang.String newCod_dpto);", "public void setM_InOut_ID (int M_InOut_ID);", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public void setSeqNo (int SeqNo);", "public void setSeqNo (int SeqNo);", "public void setMinerId(int i){\n this.minerId = i;\n }", "public Builder setPhoneTypeValue(int value) {\n phoneType_ = value;\n onChanged();\n return this;\n }", "public void setPromType(Boolean promType) {\n this.promType = promType;\n }", "@Override\n public void updateModemColumn(String modemTypeName, String DeviceSerial) {\n \n }", "public void setRegisNo(String regisNo)\n {\n // put your code here\n this.regisNo = regisNo;\n }", "public void setJamMulai(java.lang.Long value) {\n this.jam_mulai = value;\n }" ]
[ "0.55711496", "0.5303986", "0.50698966", "0.50199586", "0.48623177", "0.48216838", "0.47958973", "0.4794181", "0.47628537", "0.4714822", "0.4693759", "0.46499732", "0.46455193", "0.46418253", "0.46399832", "0.46172005", "0.46139824", "0.45711502", "0.45705277", "0.45579618", "0.45301452", "0.4525964", "0.45211798", "0.45207524", "0.4508097", "0.45066902", "0.44968826", "0.44907695", "0.44853333", "0.44844526", "0.44580096", "0.445187", "0.44462517", "0.442651", "0.43991068", "0.43873665", "0.43666127", "0.43662384", "0.43628895", "0.43588012", "0.43471897", "0.43471637", "0.43459618", "0.43453026", "0.4345208", "0.43428937", "0.43397722", "0.433816", "0.43298987", "0.43290582", "0.4326513", "0.43244642", "0.43234453", "0.43059084", "0.429304", "0.42872754", "0.42851457", "0.42845353", "0.42804277", "0.4279991", "0.42722157", "0.4266883", "0.42585516", "0.4257773", "0.4250532", "0.42468715", "0.42468715", "0.42421725", "0.42367217", "0.4232385", "0.42282206", "0.42257053", "0.42232695", "0.4221328", "0.4220567", "0.42178908", "0.4217411", "0.42165953", "0.42111063", "0.42103666", "0.42046756", "0.42029542", "0.41995206", "0.41965598", "0.41950193", "0.4194679", "0.41935396", "0.41923392", "0.41888046", "0.4188193", "0.41858482", "0.4184417", "0.4183049", "0.4183049", "0.41818267", "0.4179538", "0.41795346", "0.41773826", "0.4177253", "0.4167348" ]
0.47962186
6
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.num
public String getNum() { return num; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumMP(){\n\t\treturn numMP;\n\t}", "public String getMiNo() {\r\n return miNo;\r\n }", "public int getMp() \n\t{\n\t\treturn mp;\n\t}", "public String getNumber() {\n\t\treturn getValue(\"number\");\n\t}", "java.lang.String getNumber();", "java.lang.String getNumber();", "java.lang.String getNumber();", "public String getNumber() {\n return this.mNumber;\n }", "public String getNum() {\r\n return num;\r\n }", "public String getNumber() {\n return (String) get(\"number\");\n }", "public final String getNum_emp() {\n return getString(getNum_empAttribute(getMtDatabase()));\n }", "public String getNumber() {\r\n\t\treturn number;\r\n\t}", "public String getNumber() \n\t{\n\t\treturn this.number;\n\t}", "public long getnNum() {\n return nNum;\n }", "public int getNumber() {\n return field.getNumber();\n }", "public int getNum()\n {\n return num;\n }", "public int getNum()\n {\n return num;\n }", "public int getNum() {\n return this.num;\n }", "public String number() {\n return number;\n }", "public Integer getNum() {\n return num;\n }", "public Integer getNum() {\n return num;\n }", "public int getNum() {\r\n return num;\r\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "public String getNumber() {\n return number;\n }", "@Override\n\tpublic String getMobileNum() {\n\t\treturn get.getMobileNum();\n\t}", "public java.lang.String getNumber() {\n return number;\n }", "public BigDecimal getMlNnum() {\n return mlNnum;\n }", "@Override\r\n\tpublic int maxNum() throws Exception {\n\t\treturn session.selectOne(\"com.mapper.cook.maxNum\");\r\n\t}", "public long gettNum() {\n return tNum;\n }", "public String getprop_no() {\n return (String)getNamedWhereClauseParam(\"prop_no\");\n }", "public long getNumber(){\n return number;\r\n }", "public long mo133109m() {\n return this.f113321t;\n }", "long getNumericField();", "public long getaNum() {\n return aNum;\n }", "public int getNumberValue() {\r\n return number;\r\n }", "public int getNum() {\n\t\treturn num;\n\t}", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}", "@Column(name = \"C_NUMBER_AUT\", nullable = false)\n public String getNumAut() {\n return this.numAut;\n }", "public long getNumerator();", "public int getNumber()\n\t{\n\t\treturn myNumber;\n\t}", "public IntegerDt getNumber() { \n\t\tif (myNumber == null) {\n\t\t\tmyNumber = new IntegerDt();\n\t\t}\n\t\treturn myNumber;\n\t}", "public IntegerDt getNumber() { \n\t\tif (myNumber == null) {\n\t\t\tmyNumber = new IntegerDt();\n\t\t}\n\t\treturn myNumber;\n\t}", "public Integer getNumber() {\n\t\treturn number;\n\t}", "@Column(name = \"CELL_PH_NUM\", length = 10)\n public String getCellPhoneNumber() {\n return cellPhoneNumber;\n }", "public String getNumber(){\r\n return number;\r\n }", "public java.lang.Integer getNum () {\r\n\t\treturn num;\r\n\t}", "public String getMlsNumber() {\n\t\treturn mlsNumber;\n\t}", "public java.lang.String getFromNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FROMNUMBER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public int getNumber(){\n\t\treturn number;\n\t}", "public int getNumber() {\r\n\t\treturn number;\r\n\t}", "public Integer getNumberValue()\n\t{\n\t\treturn (number == null) ? null : number.value;\n\t}", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public Integer getNumber() {\r\n return number;\r\n }", "int getMPValue();", "@Override\n public Long findMAX() {\n\n StringBuffer sql = new StringBuffer(\"select max(magoithau) from goithau\");\n Query query = entityManager.createNativeQuery(sql.toString());\n return Long.parseLong(query.getSingleResult().toString()) ;\n }", "public int getNum() { return Num;}", "public String getNumberString() {\n return numberString;\n }", "public int getNumber() {\n\t\t\n\t\treturn number;\n\t}", "public int getValue(){\n return number;\n }", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\n\t\treturn number;\n\t}", "public int getNumber() {\r\n return number;\r\n }", "public Integer getNumber() {\n return number;\n }", "public int getNumber() {\r\n return Number;\r\n }", "public int getCurMP() {\n return curMP_;\n }", "public int getCurMP() {\n return curMP_;\n }", "public int getCurMP() {\n return curMP_;\n }", "public int getCurMP() {\n return curMP_;\n }", "public int getCurMP() {\n return curMP_;\n }", "public int getCurMP() {\n return curMP_;\n }", "public long mo23260B() {\n return ((Long) this.f13965a.mo23249a(C7196pb.f13678Cd)).longValue();\n }", "public long mo23307l() {\n return ((Long) this.f13965a.mo23249a(C7196pb.f13890uc)).longValue();\n }", "public int getNumber(){\r\n return num;\r\n }", "public java.lang.String getNumber() {\n\t\t\t\t\tjava.lang.Object ref = number_;\n\t\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\t\tnumber_ = s;\n\t\t\t\t\t\treturn s;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t\t}\n\t\t\t\t}", "public Optional<UInt> getNumber() {\n\t\treturn Optional.ofNullable(_number);\n\t}", "public long getMappedValue() {\n\t\treturn this.value;\n\t}", "public int getNumber(){\n\treturn number;\n }", "public Long cniAsNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().cniAsNumber();\n }", "public String getPtoNo() {\n return ptoNo;\n }", "public String getEmpNum() {\n return empNum;\n }", "public Number number() {\n return number;\n }", "public java.lang.String getNumber() {\n\t\t\t\tjava.lang.Object ref = number_;\n\t\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t} else {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tnumber_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t}\n\t\t\t}", "public int getNum() {\n\treturn this.n;\n }", "public int getNumer()\n\t{\n\t\treturn numer;\n\t}", "public java.lang.Long getPeti_numero();", "public java.lang.Long getPeti_numero();", "public IntColumn getSeqNum() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"seq_num\", IntColumn::new) :\n getBinaryColumn(\"seq_num\"));\n }", "public IntegerDt getNumberElement() { \n\t\tif (myNumber == null) {\n\t\t\tmyNumber = new IntegerDt();\n\t\t}\n\t\treturn myNumber;\n\t}", "public IntegerDt getNumberElement() { \n\t\tif (myNumber == null) {\n\t\t\tmyNumber = new IntegerDt();\n\t\t}\n\t\treturn myNumber;\n\t}", "public int getNumber()\n {\n return this.number;\n }", "public String getSelectedNumber() {\n\t\treturn uNumber;\n\t}", "public int getNumber() {\n return number;\n }", "public String getPoNumber() {\n return this.poNumber;\n }", "public int getMpen(){\n\t\treturn mpen;\n\t}" ]
[ "0.6602746", "0.6229399", "0.60524994", "0.6018422", "0.6010142", "0.6010142", "0.6010142", "0.5971874", "0.59384865", "0.5932117", "0.5891665", "0.5848714", "0.58337134", "0.57910883", "0.57626617", "0.5749802", "0.5749802", "0.5749432", "0.57308984", "0.57251257", "0.57251257", "0.5700053", "0.5668288", "0.5668288", "0.5668288", "0.5668288", "0.5666829", "0.5658508", "0.56567395", "0.5654531", "0.56376773", "0.5635101", "0.5628192", "0.5613064", "0.559398", "0.5588711", "0.5588471", "0.5576383", "0.5540538", "0.5540538", "0.55221266", "0.551898", "0.5517947", "0.5514924", "0.5514924", "0.5496429", "0.5488682", "0.54783237", "0.5466049", "0.5462474", "0.54507387", "0.5445211", "0.54403543", "0.5435726", "0.54312515", "0.54309446", "0.54304516", "0.54276747", "0.541947", "0.5399981", "0.5397395", "0.5381111", "0.5375249", "0.5375249", "0.5375249", "0.5375249", "0.5366771", "0.53609324", "0.53600085", "0.53567153", "0.53567153", "0.5356235", "0.5356235", "0.5355617", "0.5355617", "0.535483", "0.5353981", "0.5350985", "0.5347321", "0.53469527", "0.53462744", "0.5346027", "0.5340963", "0.53310627", "0.5331028", "0.53308445", "0.5330175", "0.5329588", "0.5325317", "0.53252506", "0.53252506", "0.5323166", "0.53123635", "0.53123635", "0.5305773", "0.5299189", "0.52961403", "0.5290716", "0.52831125" ]
0.591893
11
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.num
public void setNum(String num) { this.num = num == null ? null : num.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNum(int num) {\r\n this.num = num;\r\n }", "public void setNum(int num) {\n\t\tthis.num = num;\n\t}", "public void setNum (java.lang.Integer num) {\r\n\t\tthis.num = num;\r\n\t}", "public void setNum(Integer num) {\n this.num = num;\n }", "public void setNum(Integer num) {\n this.num = num;\n }", "public final void setNum_emp(String val) {\n setString(getNum_empAttribute(getMtDatabase()), val);\n }", "void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}", "public static void setColumnNumber(Configuration conf, int columnNum) {\n\t\tassert columnNum > 0;\n\t\tconf.setInt(RCFile.COLUMN_NUMBER_CONF_STR, columnNum);\n\t}", "public void setNum(String num) {\r\n this.num = num == null ? null : num.trim();\r\n }", "public int getNumMP(){\n\t\treturn numMP;\n\t}", "public void setNumber(int number) {\r\n\t\tthis.num = number;\r\n\t}", "public void setMlNnum(BigDecimal mlNnum) {\n this.mlNnum = mlNnum;\n }", "public void setMprice(int value) {\r\n this.mprice = value;\r\n }", "public void setNumPsms(Integer numPsms) {\n\t\n\t\tthis.numPsms = numPsms;\n\t}", "public void setPknum(Integer pknum) {\n this.pknum = pknum;\n }", "public void setNumber(String newValue);", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public void setNumber(int number)\n {\n Number = number;\n }", "public void setNUM_DB(int NUM_DB) \r\n {\r\n if(NUM_DB > 0)\r\n this.NUM_DB = NUM_DB;\r\n }", "public void setNumToProcess(long aNumToProcess) {\n numToProcess = aNumToProcess;\n }", "public void setM_Splitting_ID (int M_Splitting_ID)\n{\nset_ValueNoCheck (\"M_Splitting_ID\", new Integer(M_Splitting_ID));\n}", "public String getMiNo() {\r\n return miNo;\r\n }", "public void setMinNoEmp(Integer minNoEmp) {\n this.minNoEmp = minNoEmp;\n }", "public int getMp() \n\t{\n\t\treturn mp;\n\t}", "public void setComNumber(long value) {\r\n this.comNumber = value;\r\n }", "private void setMM(int MM) {\n\t\tCMN.MM = MM;\n\t}", "private void setMobileNum(String mobileNum) {\n this.mobileNum = StringExtension.nullFilter(mobileNum);\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "@Override\n\tpublic void setMinnum(long minnum) {\n\t\t_esfTournament.setMinnum(minnum);\n\t}", "public void setID(Number numID);", "public void setNumber(int number)\n {\n this.number = number;\n }", "public void setMobile(int number) {\n\t\t\tthis.Mobile = number;\r\n\t\t}", "public void setMobile_phone(Long mobile_phone);", "public void setNUM_PROV(int NUM_PROV) \r\n {\r\n if(NUM_PROV > 0)\r\n this.NUM_PROV = NUM_PROV;\r\n }", "public void setNumber(Integer number) {\r\n this.number = number;\r\n }", "public void setPositionnum(Integer positionnum) {\n\t\tthis.positionnum = positionnum;\n\t}", "public void setMiNo(String miNo) {\r\n this.miNo = miNo == null ? null : miNo.trim();\r\n }", "public void setNumber(String number) {\n this.number = number;\n }", "public void setPeti_numero(java.lang.Long newPeti_numero);", "public void setPeti_numero(java.lang.Long newPeti_numero);", "public void setNumber(int number) {\n this.number = number;\n }", "public void setNumber(int number) {\r\n\t\tthis.number = number;\r\n\t}", "public void setNumber(String number) {\r\n\t\tthis.number = number;\r\n\t}", "public void setNumer(int numer)\n\t{\n\t\tthis.numer = numer;\n\t}", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Production_ID (int M_Production_ID);", "public void setMobileNum(String mobileNum) {\r\n\t\tthis.mobileNum = mobileNum;\r\n\t}", "public void setMappingNum (int mappingNum) {\n this.mappingNum = mappingNum;\n myHDF5.setIntAttribute(GBSHDF5Constants.ROOT, GBSHDF5Constants.MAXMAPPING, mappingNum);\n this.renameMapNames();\n System.out.println(\"TOPM maxMapping attibute was set to \" + String.valueOf(mappingNum));\n }", "public void setCellNum(Integer cellNum) {\n this.cellNum = cellNum;\n }", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public void setNumber(Integer number) {\n this.number = number;\n }", "private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }", "public void setmobileNum(String mobileNum) {\n\t\t_mobileNum = mobileNum;\n\t}", "public void setNumber(int number) {\n\t\tthis.number = number;\n\t}", "public void setNumber(int number) {\n\t\tthis.number = number;\n\t}", "public void setNumber(int number) {\n\t\tthis.number = number;\n\t}", "public void setMobileNum(String mobileNum) {\n\t\tthis.mobileNum = mobileNum;\n\t}", "public void setOpNum(java.lang.String param) {\r\n localOpNumTracker = param != null;\r\n\r\n this.localOpNum = param;\r\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setHome_phone(Long home_phone);", "public void setNumer(float newNumer){\n\t\tnumer = newNumer;\n\t}", "public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }", "protected static void addFormNumberColumnToTable(SQLiteDatabase db) {\n db.execSQL(DbUtil.addColumnToTable(\n FormRecord.STORAGE_KEY,\n FormRecord.META_SUBMISSION_ORDERING_NUMBER,\n \"TEXT\"));\n }", "public void setSpNumber(Integer spNumber) {\r\n this.spNumber = spNumber;\r\n }", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public void setAnswerNum(BigDecimal answerNum) {\n this.answerNum = answerNum;\n }", "public void setNumero(int numero) { this.numero = numero; }", "public NumberSequence(HsqlName name, long value, long increment,\n Type type) {\n\n this(name, type);\n\n setStartValue(value);\n setIncrement(increment);\n }", "public static void convertAndSetParameter(PreparedStatement p, int number, Column column, Object value)\n throws SQLException\n {\n StringFormatter formatter;\n int type;\n Object o;\n\n // Get the column's type.\n\n type = column.getType();\n\n // Set the parameter to null if the value is null.\n\n if (value == null)\n {\n p.setNull(number, type);\n return;\n }\n\n // Convert the object to the correct type.\n\n try\n {\n formatter = column.getFormatter();\n if (value instanceof String)\n {\n o = formatter.parse((String)value, type);\n }\n else\n {\n o = ConvertObject.convertObject(value, type, formatter);\n }\n }\n catch (XMLMiddlewareException e)\n {\n throw new SQLException(\"[XML-DBMS] \" + e.getMessage());\n }\n\n // Call setParameter to actually set the parameter\n\n setParameter(p, number, column, o);\n }", "public void setCodigo() throws SQLException {\n try (PreparedStatement query = Herramientas.getConexion().prepareStatement(\"SELECT MAX(codigo_ticket) FROM ticket\"); \n ResultSet resultado = query.executeQuery()) {\n resultado.next();\n this.codigo = (resultado.getInt(1))+1;\n }\n \n }", "protected void setStudentNumber(Integer studentNum)\n {\n studentNumber = studentNum;\n }", "public final void removeNum_emp() {\n removeValue(getNum_empAttribute(getMtDatabase()));\n }", "public void setNUMARGEO(int value) {\n this.numargeo = value;\n }", "public final void setmot_test_number(com.mendix.systemwideinterfaces.core.IContext context, String mot_test_number)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.mot_test_number.toString(), mot_test_number);\n\t}", "public void setNumDigits(int digits) {\r\n \r\n //Set Value\r\n numDigits = digits;\r\n \r\n }", "public synchronized void setTbApWtEntryNumber(Integer value){\n\t\t// Fill up with necessary processing\n\n\t\ttbApWtEntryNumber = value;\n\t}", "@Override\n\t\t\tpublic void changeSelectItem(int selectNum) {\n\t\t\t\tholder.num = selectNum;\n\t\t\t\tLogUtils.burtLog(\"selectNum==\"+selectNum);\n\t\t\t\tholder.tv_store.setText(\"-\"+selectNum*item.data.zsmdwypxhjfs+\" 剩余\"\n\t\t\t\t\t\t+(item.data1.num_syjf-selectNum*item.data.zsmdwypxhjfs));\n\t\t\t}", "public void setCantidadFaltanteAnunciado(java.math.BigInteger param){\n \n this.localCantidadFaltanteAnunciado=param;\n \n\n }", "void setNumber(int row, int col, int num){\n board[row][col].setNumber(num);\n }", "public final native void setOrdnum(int ordnum) /*-{\n\t\tthis.ordnum = ordnum;\n\t}-*/;", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "@Override\n\tpublic void setMaxnum(long maxnum) {\n\t\t_esfTournament.setMaxnum(maxnum);\n\t}", "public void setMatricNum(String matricNum) {\r\n\t\tthis.matricNum = matricNum;\r\n\t}", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "public String getNumber() {\n return this.mNumber;\n }", "public long getNumber(){\n return number;\r\n }", "public String getMlsNumber() {\n\t\treturn mlsNumber;\n\t}", "public void updatedNumber(String key, Number val) {}", "void set_num(ThreadContext tc, RakudoObject classHandle, double Value);", "public void setInputNum(Integer inputNum) {\r\n this.inputNum = inputNum;\r\n }", "public void setMlNid(BigDecimal mlNid) {\n this.mlNid = mlNid;\n }", "@Override\n\tpublic void setEmpno(Integer empno) {\n\t\tsuper.setEmpno(empno);\n\t}", "public void setItemNo(Integer itemNo) {\n\t\tif (itemNo == 0) {\n\t\t\tthis.itemNo = null;\n\t\t} else {\n\t\t\tthis.itemNo = itemNo;\n\t\t}\n\t}", "public void SetImportedNumbet(String pNumber) {\r\n if (editTextCounter == txtAddFnFBl.getId()) {\r\n txtAddFnFBl.setText(pNumber);\r\n btnAddFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtAddSFnFBl.getId()) {\r\n txtAddSFnFBl.setText(pNumber);\r\n btnAddSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtDeleteFnfBl.getId()) {\r\n txtDeleteFnfBl.setText(pNumber);\r\n btnDeleteFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeFnfOldBl.getId()) {\r\n txtChangeFnfOldBl.setText(pNumber);\r\n btnChangeFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeFnfNewBl.getId()) {\r\n txtChangeFnfNewBl.setText(pNumber);\r\n btnChangeFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeSFnfOldBl.getId()) {\r\n txtChangeSFnfOldBl.setText(pNumber);\r\n btnChangeSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n } else if (editTextCounter == txtChangeSFnfNewBl.getId()) {\r\n txtChangeSFnfNewBl.setText(pNumber);\r\n btnChangeSFnfSendBl.setEnabled(true);\r\n editTextCounter = 0;\r\n }\r\n }", "public String getNumber() {\r\n\t\treturn number;\r\n\t}", "public long getnNum() {\n return nNum;\n }", "public void setBnft_pin_num(final java.lang.String bnft_pin_num) {\n\t\tthis.bnft_pin_num = bnft_pin_num;\n\t}", "public void setNumeroInicial(int numeroInicial)\r\n/* 185: */ {\r\n/* 186:198 */ this.numeroInicial = numeroInicial;\r\n/* 187: */ }" ]
[ "0.6298667", "0.6222119", "0.6127516", "0.61058354", "0.61058354", "0.610248", "0.5913477", "0.58518386", "0.58501273", "0.58246905", "0.5790368", "0.5764769", "0.56376266", "0.5635374", "0.5585142", "0.5545568", "0.5530495", "0.5522852", "0.54858136", "0.54157764", "0.5396705", "0.53846735", "0.53455704", "0.53450537", "0.5340867", "0.5318355", "0.5310275", "0.5306738", "0.53054136", "0.5299622", "0.5297597", "0.5291411", "0.528581", "0.5277989", "0.5273797", "0.52559376", "0.5252943", "0.52506113", "0.52368844", "0.52368844", "0.52359223", "0.52328515", "0.52303123", "0.522483", "0.5218066", "0.5218066", "0.52154875", "0.5205531", "0.5196146", "0.517393", "0.5169364", "0.5164759", "0.5148786", "0.51333696", "0.51219916", "0.51219916", "0.51219916", "0.51194584", "0.5117883", "0.5116876", "0.51097023", "0.51068306", "0.51022345", "0.5089496", "0.5085331", "0.5076019", "0.5071908", "0.50686175", "0.50597507", "0.5054252", "0.50495845", "0.50344574", "0.5034373", "0.503081", "0.5028498", "0.5021828", "0.5019753", "0.5018884", "0.5018339", "0.5016122", "0.50103694", "0.50064963", "0.49816215", "0.49762964", "0.4974737", "0.49697244", "0.49687678", "0.49651152", "0.49567986", "0.4950952", "0.4949673", "0.49481592", "0.49437293", "0.49336216", "0.49331895", "0.49319994", "0.49289227", "0.49218613", "0.49182096" ]
0.583394
10
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.validTime
public String getValidtime() { return validtime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Date getValidTime() {\r\n return validTime;\r\n }", "public java.lang.Long getValidToMillis() {\n return validToMillis;\n }", "public java.lang.Long getValidToMillis() {\n return validToMillis;\n }", "public Long getChecktime() {\n return checktime;\n }", "public java.lang.Long getValidFromMillis() {\n return validFromMillis;\n }", "public java.lang.Long getValidFromMillis() {\n return validFromMillis;\n }", "public int getMatchTime() {\n return getIntegerProperty(\"Time\");\n }", "public void setValidTime(java.util.Date validTime) {\r\n this.validTime = validTime;\r\n }", "@Column(name = \"D_MTIME\", nullable = false)\n public Date getMtime() {\n return this.mtime;\n }", "public Date getRequiredTime() {\n return requiredTime;\n }", "public boolean hasValidToMillis() {\n return fieldSetFlags()[5];\n }", "@javax.annotation.Nullable\n public Long getTime() {\n return time;\n }", "public boolean hasValidFromMillis() {\n return fieldSetFlags()[4];\n }", "public int getTimeOut()\r\n\t{\r\n\t\tString time = JOptionPane.showInputDialog(null, \"Please enter the timeout amount in milliseconds: \", \"Set Timeout\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t//Check to see if the entry was invalid\r\n\t\twhile(!isNumber(time))\r\n\t\t\ttime = JOptionPane.showInputDialog(null, \"You must enter a NUMBER. Please re-enter the timeout time in milliseconds: \", \"Set Timeout\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\r\n\t\treturn Integer.parseInt(time);\r\n\t}", "public int getEleMinTimeOut(){\r\n\t\t String temp=rb.getProperty(\"eleMinTimeOut\");\r\n\t\t return Integer.parseInt(temp);\r\n\t}", "private void gettime(){\n\t\t String depart_time = view.shpmTable.getSelection()[0].getAttribute(\"DEPART_TIME\");\n\t\t String unload_time = view.panel.getValue(\"UNLOAD_TIME\").toString();\n\t\t if(!DateUtil.isAfter(unload_time, depart_time)){\n\t\t\t\tdoConfirm(view.panel.getValue(\"UNLOAD_TIME\").toString());\n\t\t\t}else {\n\t\t\t\tMSGUtil.sayWarning(\"到货签收时间不能小于实际发货时间!\");\n\t\t\t}\n\t\t /*Util.db_async.getSingleRecord(\"MAX(DEPART_TIME)\", \"V_SHIPMENT_HEADER\", \" WHERE LOAD_NO='\"+load_no+\"'\", null, new AsyncCallback<HashMap<String,String>>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSuccess(HashMap<String, String> result) {\n\t\t\t\tString depart_time = result.get(\"MAX(DEPART_TIME)\");\n\t\t\t\tString unload_time = view.panel.getValue(\"UNLOAD_TIME\").toString();\n//\t\t\t\tboolean x =DateUtil.isAfter(unload_time, depart_time);\n\t\t\t\tif(!DateUtil.isAfter(unload_time, depart_time)){\n\t\t\t\t\tdoConfirm(view.panel.getValue(\"UNLOAD_TIME\").toString());\n\t\t\t\t}else {\n\t\t\t\t\tMSGUtil.sayWarning(\"到货签收时间不能小于实际发货时间!\");\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 onFailure(Throwable caught) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});*/\n\t}", "public Date getValidTill() {\n\t\treturn validTill;\n\t}", "public void setValidtime(String validtime) {\n this.validtime = validtime == null ? null : validtime.trim();\n }", "public Timestamp getStatusTime() {\n\t\treturn null;\n\t}", "private int getMinute() {\n\t\tString time = getPersistedString(this.defaultValue);\n\t\tif (time == null || !time.matches(VALIDATION_EXPRESSION)) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn Integer.valueOf(time.split(\":|/\")[1]);\n\t}", "public int getBlockchainValidTimer() {\r\n return blockchainValidTimer;\r\n }", "public int getTime() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getTime();\n } else {\n // @todo Replace with real Builder object if possible\n return convertNullToNOT_SET(childBuilderElement.getAttributeValue(\"time\"));\n }\n }", "private LocalTime get_TIME(int column) {\n // Time column is always 8 chars long\n String timeString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 8, charset_[column - 1]).toString();\n return LocalTime.parse(timeString, DRDAConstants.DB2_TIME_FORMAT);\n// return DateTime.timeBytesToTime(dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1]);\n }", "public Timestamp getValidTo();", "public Long getTime() {\n return time;\n }", "public java.sql.Time getREQ_END_TIME()\n {\n \n return __REQ_END_TIME;\n }", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "long getValidFrom();", "public Long consultarTiempoMaximo() {\n return timeFi;\n }", "public void getTimeMilli(String columnName, NullableTimeMilliHolder holder) {\n TimeMilliVector vector = (TimeMilliVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }", "public int getTimeMilli(int columnIndex) {\n TimeMilliVector vector = (TimeMilliVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "private long getTime(LogModel logModel) throws FieldNotFoundException, ParseException {\n try {\n String timeStr = logModel.getProcedureEndTime();\n long time = Long.parseLong(timeStr);\n if (logModel.getProcedureEndTime().startsWith(\"20\") && timeStr.length() == 14) {\n time = TimeConvertor.convertTime(logModel.getProcedureEndTime(), \"yyyyMMddHHmmss\");\n return time;\n }\n if (time > 4000000000L) {\n // ms\n return time / 1000;\n }\n return time;\n } catch (NumberFormatException e) {\n try {\n long time = TimeConvertor.convertTime(logModel.getProcedureEndTime());\n return time;\n } catch (ParseException ex) {\n throw ex;\n }\n }\n }", "public void setValidToMillis(java.lang.Long value) {\n this.validToMillis = value;\n }", "public Integer getMinTime() {\n return minTime;\n }", "public Boolean getTimeStatus()\n {\n return timeStatus;\n }", "public Integer getTestTime() {\n return testTime;\n }", "public Date getOptTime() {\n\t\treturn optTime;\n\t}", "public int getMinutes(){\r\n return Minutes;\r\n }", "com.google.protobuf.Timestamp getErrorTime();", "public long getTime() {\r\n \treturn time;\r\n }", "public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }", "public double GetTimeError(){\n\t\treturn this.timeError;\n\t}", "int getEvalTm();", "public long getPlayerTime ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTime ( ) );\n\t}", "public int getLTime() {\n return lTime;\n }", "public void getTimeMilli(int columnIndex, NullableTimeMilliHolder holder) {\n TimeMilliVector vector = (TimeMilliVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }", "public Long getTmId() {\n return tmId;\n }", "public int getC_UOM_Time_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_UOM_Time_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public long getLastCheckTimeMillis() {\n return this.lastCheckTimeMillis;\n }", "public JTextField getTimeTextField() {\n\t\treturn this.txtTime;\n\t}", "public boolean checkTime() {\n boolean result = false;\n long currentTime = System.currentTimeMillis();\n while (currentTime == timeFlag + 1000) {\n this.timeFlag = currentTime;\n result = true;\n return result;\n }\n return result;\n }", "public static boolean validateTime(String validTill) {\n\t\treturn true;\n\t}", "public long getTime(){\n return this.time;\n }", "public int getwaitTime(){\r\n\t\t String temp=rb.getProperty(\"waitTime\");\r\n\t\t return Integer.parseInt(temp);\r\n\t}", "public Timestamp getRecordStatusTime() {\n\t\treturn null;\n\t}", "public ID getValidation() { \r\n\t\tID retVal = this.getTypedField(47, 0);\r\n\t\treturn retVal;\r\n }", "public Date getValidDate() {\r\n return validDate;\r\n }", "public java.lang.Integer getTime() {\n return time;\n }", "public java.lang.Integer getTime() {\n return time;\n }", "public int getTT()\n {\n return toTime;\n }", "@Override\n\tpublic String getEligibleTime() {\n\t\treturn model.getEligibleTime();\n\t}", "public String getTime() {\n return this.time;\n }", "@Schema(required = true, description = \"Signature validity in milliseconds\")\n public Long getSignatureValidForMillis() {\n return signatureValidForMillis;\n }", "public int getValid() {\n return valid;\n }", "public String getInserttime() {\n\t\treturn inserttime;\n\t}", "public Long getWaiting_query_secs() {\n return waiting_query_secs;\n }", "public long getTime() {\n return _time;\n }", "public java.sql.Time getTime(int columnIndex) throws SQLException\n {\n return m_rs.getTime(columnIndex);\n }", "@Override\r\n\tpublic long getTime() {\n\t\treturn this.time;\r\n\t}", "boolean isValidExpTime();", "public long getTime() {\n return time;\n }", "public FormValidation doCheckLaunchTimeout(@QueryParameter String launchTimeout) {\n try {\n Integer num = Integer.valueOf(launchTimeout);\n if (num >= 0) {\n return FormValidation.ok();\n }\n } catch (Exception e) {\n return FormValidation.error(\"Timeout should be a valid number \");\n }\n return FormValidation.ok();\n }", "public long getTime() {\r\n\t\treturn time;\r\n\t}", "@Override\r\n\tpublic List<Integer> findValidNumber() {\n\t\treturn sqlSessionTemplate.selectList(typeNameSpace + \".findValidNumber\");\r\n\t}", "public BigInteger getTime() {\n\t\treturn time;\n\t}", "public Timestamp getValidFrom();", "public Long getCreatetime() {\n return createtime;\n }", "public long getPlayerTimeOffset ( ) {\n\t\treturn extract ( handle -> handle.getPlayerTimeOffset ( ) );\n\t}", "public int getFieldValueAfterTime(int row, String colName) {\r\n try {\r\n if (getFieldValue(row, colName) == null || getFieldValueString(row, colName).equalsIgnoreCase(\"\")) {\r\n return 0;\r\n } else {\r\n return Integer.parseInt(getFieldValueString(row, colName));\r\n }\r\n } catch (NumberFormatException e) {\r\n return 0;\r\n }\r\n }", "private Time getTimeValueFromRecordBean(RecordBean recordBean){\n DateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n Time timeValue = null;\n try {\n timeValue = new Time(formatter.parse((String)recordBean.getValues().get(\"_timestamp\")).getTime());\n\n if (timeValue == null) {\n List<String> items = Arrays.asList(((String)recordBean.getValues().get(\"_message\")).split(\"\\\\s*,\\\\s*\"));\n timeValue = new Time(formatter.parse(items.get(0)).getTime());\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return timeValue;\n }", "@JsonIgnore\n public Date getValidTo()\n {\n return validTo;\n }", "protected long getLastMsTime() {\r\n return lastMsTime;\r\n }", "StatusTimeType getStatusTime();", "public String getExtTime() {\n\t\treturn extTime.getText();\n\t}", "public long getReceiveTimeL() {\n\t\treturn Long.parseLong(receiveTime);\n\t}", "public long getMappedValue() {\n\t\treturn this.value;\n\t}", "public long mo133109m() {\n return this.f113321t;\n }", "public java.sql.Time getREQ_START_TIME()\n {\n \n return __REQ_START_TIME;\n }", "public Time getTime(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getTime\", columnIndex);\n return get(columnIndex).getTime();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public java.lang.String getTime () {\n\t\treturn time;\n\t}", "public Date getInsertTime() {\r\n return insertTime;\r\n }", "@GetMapping(\"/table/checkAvailability\")\n\tpublic WaitingTime getAvailability() throws ParseException\n\t{\n\n\t\t\tTableRestaurant availableTime = tableRepo.checkTableAvailability();\n\t\t\t\n\t\t\tlogger.info(\"waiting time ---> {}\", availableTime.getWaitingTime());\n\t\t\tif(availableTime.equals(null))\n\t\t\t{\n\t\t\t\tthrow new UniquoNotFoundException(\"The waiting time cannot be calculated\");\n\t\t\t}\n\t\t\tint tableNumber = availableTime.getId();\n\t\t\tlogger.info(\"{}\", tableNumber);\n\t\t\tint waiting_Time = availableTime.getWaitingTime();\n\t\t\tlogger.info(\"{}\", waiting_Time);\n\t\t\tWaitingTime waitingTime = new WaitingTime(tableNumber, waiting_Time);\n\t\t\t\n\t\t\treturn waitingTime;\n\t}", "public String getValidflag() {\n\t\treturn validflag;\n\t}", "public int getMaxTime() { return _maxTime; }", "public String getTime() {\r\n\t\treturn time;\r\n\t}", "public int getTime() {\r\n return time;\r\n }", "public Long getTime() {\n if (timeEnd == null) {\n return null;\n }\n return timeEnd - timeStart;\n }", "public boolean usesTime() {\n return expressionUsesTime;\n }", "public java.lang.String getNotifTime() {\n return notifTime;\n }", "public boolean validateTime(){\n if(startSpinner.getValue().isAfter(endSpinner.getValue())){\n showError(true, \"The start time can not be greater than the end time.\");\n return false;\n }\n if(startSpinner.getValue().equals(endSpinner.getValue())){\n showError(true, \"The start time can not be the same as the end time.\");\n return false;\n }\n startLDT = convertToTimeObject(startSpinner.getValue());\n endLDT = convertToTimeObject(endSpinner.getValue());\n startZDT = convertToSystemZonedDateTime(startLDT);\n endZDT = convertToSystemZonedDateTime(endLDT);\n\n if (!validateZonedDateTimeBusiness(startZDT)){\n return false;\n }\n if (!validateZonedDateTimeBusiness(endZDT)){\n return false;\n };\n return true;\n }" ]
[ "0.6474274", "0.60376173", "0.6029475", "0.5902972", "0.5840427", "0.5823002", "0.58028525", "0.55717045", "0.5540612", "0.55016625", "0.53859884", "0.5382644", "0.5267086", "0.5216481", "0.5198704", "0.51905274", "0.51792663", "0.5171899", "0.5156652", "0.5155262", "0.5147179", "0.5135851", "0.5123438", "0.5113344", "0.50637275", "0.5062765", "0.5059859", "0.5034322", "0.5030351", "0.50163645", "0.50162506", "0.50120866", "0.5008883", "0.5008632", "0.5006095", "0.500521", "0.499573", "0.49844915", "0.49799684", "0.4954312", "0.4940959", "0.49358654", "0.49315435", "0.49252847", "0.49231672", "0.49049982", "0.4903643", "0.48969275", "0.48969233", "0.48901635", "0.48883176", "0.48818392", "0.48804972", "0.48803273", "0.487889", "0.48786846", "0.4864241", "0.48621017", "0.48578525", "0.48576918", "0.48570088", "0.48516518", "0.48498276", "0.48495904", "0.4842434", "0.48419678", "0.48335755", "0.4831448", "0.48309976", "0.48255283", "0.48254728", "0.4821417", "0.48167738", "0.4812296", "0.481083", "0.4808217", "0.4807459", "0.48051316", "0.48010767", "0.4794815", "0.47875", "0.4782846", "0.47694433", "0.47671926", "0.47654402", "0.47650832", "0.4762193", "0.47599778", "0.475895", "0.47575706", "0.47569725", "0.4755939", "0.47548303", "0.4753875", "0.47515386", "0.47481582", "0.4747946", "0.47465745", "0.47429112", "0.47426584" ]
0.6963816
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.validTime
public void setValidtime(String validtime) { this.validtime = validtime == null ? null : validtime.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValidTime(java.util.Date validTime) {\r\n this.validTime = validTime;\r\n }", "public String getValidtime() {\n return validtime;\n }", "public void setTime(){\n \tDatabaseManager.getDBM().setLockedTime(cal); \n }", "public java.util.Date getValidTime() {\r\n return validTime;\r\n }", "public void setValidToMillis(java.lang.Long value) {\n this.validToMillis = value;\n }", "public void setValidTo (Timestamp ValidTo);", "public void setValidFrom (Timestamp ValidFrom);", "public void setValidTill(Date validTill) {\n\t\tthis.validTill = validTill;\n\t}", "protected void setLastMsTime(long lastMsTime) {\r\n TaskTimeElementDB.lastMsTime = lastMsTime;\r\n }", "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 }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "public void setREQ_END_TIME(java.sql.Time value)\n {\n if ((__REQ_END_TIME == null) != (value == null) || (value != null && ! value.equals(__REQ_END_TIME)))\n {\n _isDirty = true;\n }\n __REQ_END_TIME = value;\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setValidToMillis(long value) {\n validate(fields()[5], value);\n this.validToMillis = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public void setValid(int valid) {\n this.valid = valid;\n }", "public void setValidFromMillis(java.lang.Long value) {\n this.validFromMillis = value;\n }", "public void setREQ_START_TIME(java.sql.Time value)\n {\n if ((__REQ_START_TIME == null) != (value == null) || (value != null && ! value.equals(__REQ_START_TIME)))\n {\n _isDirty = true;\n }\n __REQ_START_TIME = value;\n }", "public void setValidDate(Date validDate) {\r\n this.validDate = validDate;\r\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "public java.lang.Long getValidToMillis() {\n return validToMillis;\n }", "public java.lang.Long getValidToMillis() {\n return validToMillis;\n }", "public boolean hasValidToMillis() {\n return fieldSetFlags()[5];\n }", "private void setTimeLimit() {\n\t\t// Set the minimum time for \"Departing Time\" spinner\n\t\t// based on current selected combo box item\n\t\tview.setModifyTimeLimit(model.getDepartTime(view\n\t\t\t\t.getModifyStationIndex()));\n\t}", "public void setValidTo(Date validTo)\n {\n this.validTo = validTo;\n }", "public void set(final long timeValue) {\n stamp = timeValue;\n }", "public void testCmdUpdate_time_field() {\n\t\t// Initialize test variables\n\t\tCommandAction expectedCA;\n\t\tTask expectedTask;\n\t\tList<Task> expectedTaskList;\n\n\t\t/*\n\t\t * Test 3: Testing time field (all ID are valid)\n\t\t */\n\t\tctf.initialize();\n\t\texpectedTaskList = null;\n\t\taddNewTask(TASK_NAME_1);\n\n\t\t// Test 3a: start time and end time are both null\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", TASK_NAME_1, null, null, null);\n\t\texpectedCA = new CommandAction(MSG_TASKNOUPDATE, false, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\n\t\t// Test 3b: valid start time without end time\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", TASK_NAME_1, VALID_START_TIME + \"\", null, null);\n\t\texpectedCA = new CommandAction(MSG_INVALIDTIME, false, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\n\t\t// Test 3c: start time after end time\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", TASK_NAME_1, INVALID_START_TIME + \"\", VALID_END_TIME + \"\", null);\n\t\texpectedCA = new CommandAction(MSG_INVALIDTIME, false, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\n\t\texpectedTaskList = new ArrayList<Task>();\n\t\t// Test 3d: start time before end time\n\t\t_testCmdUpdate = new CmdUpdate();\n\t\tsetParameters(VALID_TASKID + \"\", TASK_NAME_1, VALID_START_TIME + \"\", VALID_END_TIME + \"\", null);\n\t\texpectedTask = ctf.createExpectedTask(TASK_NAME_1, VALID_START_TIME, VALID_END_TIME, PRIORITY_TYPE.NORMAL);\n\t\texpectedTaskList.add(expectedTask);\n\t\texpectedCA = new CommandAction(String.format(MSG_TASKUPDATED, VALID_TASKID), true, expectedTaskList);\n\t\tctf.assertCommandAction(expectedCA, _testCmdUpdate.execute());\n\t}", "void setTime(int index, Time value, Calendar cal)\n throws SQLException;", "public void setOptTime(Date optTime) {\n\t\tthis.optTime = optTime;\n\t}", "void setTime(int index, Time value) throws SQLException;", "private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }", "public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder setValidFromMillis(long value) {\n validate(fields()[4], value);\n this.validFromMillis = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "private void setEditedTime(int value) {\n \n editedTime_ = value;\n }", "public boolean hasValidFromMillis() {\n return fieldSetFlags()[4];\n }", "public void setTimeStatus(Boolean timeStatus)\n {\n this.timeStatus = timeStatus;\n }", "public void setTestTime(Integer testTime) {\n this.testTime = testTime;\n }", "public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {\n currentPreparedStatement.setTime(parameterIndex, x, cal);\n\n }", "public void setValid(boolean newValid) {\n \t\tvalid = newValid;\n \t}", "public java.lang.Long getValidFromMillis() {\n return validFromMillis;\n }", "public void setSupEntValid(Date supEntValid) {\n this.supEntValid = supEntValid;\n }", "public Long getChecktime() {\n return checktime;\n }", "public void setStartTime (long x)\r\n {\r\n startTime = x;\r\n }", "public void setExpiryTime(java.util.Calendar param){\n localExpiryTimeTracker = true;\n \n this.localExpiryTime=param;\n \n\n }", "@Column(name = \"D_MTIME\", nullable = false)\n public Date getMtime() {\n return this.mtime;\n }", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }", "public void setStartTime(long value) {\r\n this.startTime = value;\r\n }", "public java.lang.Long getValidFromMillis() {\n return validFromMillis;\n }", "public static boolean validateTime(String validTill) {\n\t\treturn true;\n\t}", "public void setTime(long time)\n {\n this.time = time;\n\n }", "public void setARRIVAL_AT_LOC_TIME(java.sql.Time value)\n {\n if ((__ARRIVAL_AT_LOC_TIME == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_TIME)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_TIME = value;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public void setChecktime(Long checktime) {\n this.checktime = checktime;\n }", "public Builder setSendTime(long value) {\n \n sendTime_ = value;\n onChanged();\n return this;\n }", "public Builder setTime(long value) {\n\n time_ = value;\n onChanged();\n return this;\n }", "public void setValid(boolean valid) {\n this.valid = valid;\n }", "public Date getRequiredTime() {\n return requiredTime;\n }", "public void xsetStartTime(org.landxml.schema.landXML11.GPSTime startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.GPSTime target = null;\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.landxml.schema.landXML11.GPSTime)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.set(startTime);\r\n }\r\n }", "@Override\r\n public void setTimeRange(long parseLong, long parseLong2) throws IOException {\n\r\n }", "public void setEndTime(long value) {\r\n this.endTime = value;\r\n }", "@Override\n\t\tpublic void setValid(final boolean valid) {\n\t\t}", "public void setStatusTime(Timestamp statusTime) {\n\t\t\n\t}", "public static void setTime( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, TIME, value);\r\n\t}", "public M csmiAddTimeNull(){if(this.get(\"csmiAddTimeNot\")==null)this.put(\"csmiAddTimeNot\", \"\");this.put(\"csmiAddTime\", null);return this;}", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public Builder setTime(long value) {\n copyOnWrite();\n instance.setTime(value);\n return this;\n }", "public void setC_UOM_Time_ID(int C_UOM_Time_ID) {\n\t\tif (C_UOM_Time_ID <= 0)\n\t\t\tset_Value(\"C_UOM_Time_ID\", null);\n\t\telse\n\t\t\tset_Value(\"C_UOM_Time_ID\", new Integer(C_UOM_Time_ID));\n\t}", "public void setTime(long time) {\r\n this.time = time;\r\n }", "void setRetrievedTime(long retrievedTime);", "public void setInsertTime(Date insertTime) {\r\n this.insertTime = insertTime;\r\n }", "public void setValid(boolean valid) {\n\t\tthis.valid = valid;\n\t}", "void setTime(final int time);", "public void setStartTime(java.lang.Long value) {\n this.start_time = value;\n }", "Builder addTimeRequired(String value);", "public void setValid(Boolean valid) {\n\t\tthis.valid = valid;\n\t}", "public void getTimeMilli(int columnIndex, NullableTimeMilliHolder holder) {\n TimeMilliVector vector = (TimeMilliVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }", "public void setStartTime(double startTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STARTTIME$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTTIME$22);\r\n }\r\n target.setDoubleValue(startTime);\r\n }\r\n }", "@DSSafe(DSCat.UTIL_FUNCTION)\n \n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:11.275 -0500\", hash_original_method = \"58DD96CFC8DDA00016DEC24CC6519017\", hash_generated_method = \"1F810C618BA62488684578EB05C3C6A1\")\n \n@Override\n public void setTime(long theTime) {\n /*\n * Store the Date based on the supplied time after removing any time\n * elements finer than the day based on zero GMT\n */\n super.setTime(normalizeTime(theTime));\n }", "public void setTime(long time) {\n this.time = time;\n }", "public void setTime(long time) {\r\n this.time.setTime(time);\r\n }", "public void setValidFrom(Date validFrom);", "public void checkInTime() {\n Date recentDate = new Date();\n PreparedStatement stmt;\n\n SimpleDateFormat dateStamp = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat timeStamp = new SimpleDateFormat(\"h:mm:ss a\");\n String dateuser = dateStamp.format(recentDate);\n String timeuser = timeStamp.format(recentDate);\n\n String id = txtUsername.getText();\n\n try {\n String querysql = \"update employee set time_in='\" + timeuser + \"',date='\" + dateuser + \"'\" + \", parking_spot = '\" + parking + \"' where id_no='\" + id + \"' \";\n stmt = conn.prepareStatement(querysql);\n stmt.execute();\n\n conn.close();\n\n } catch (SQLException e) {\n\n System.out.println(\"Failed to update\");\n\n }\n\n }", "@Model\r\n\tprotected void setModificationTime() {\r\n modificationTime = new Date();\r\n }", "public void setTime(String time) {\n }", "public void getTimeMilli(String columnName, NullableTimeMilliHolder holder) {\n TimeMilliVector vector = (TimeMilliVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }", "public void setTime(java.lang.Integer value) {\n this.time = value;\n }", "public void setValidUser(boolean valid) {\n\t\t_isValid = valid;\n\t}", "public void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}", "public void setCompletionTime(double aTime)\n\t{\n\t\tif(aTime<0) //invalid\n\t\t\tthis.completionTime = 0.0;\n\t\telse \n\t\t\tthis.completionTime=aTime;\n\t}", "public void setTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}", "public boolean validateTime(){\n if(startSpinner.getValue().isAfter(endSpinner.getValue())){\n showError(true, \"The start time can not be greater than the end time.\");\n return false;\n }\n if(startSpinner.getValue().equals(endSpinner.getValue())){\n showError(true, \"The start time can not be the same as the end time.\");\n return false;\n }\n startLDT = convertToTimeObject(startSpinner.getValue());\n endLDT = convertToTimeObject(endSpinner.getValue());\n startZDT = convertToSystemZonedDateTime(startLDT);\n endZDT = convertToSystemZonedDateTime(endLDT);\n\n if (!validateZonedDateTimeBusiness(startZDT)){\n return false;\n }\n if (!validateZonedDateTimeBusiness(endZDT)){\n return false;\n };\n return true;\n }", "public void setDEPARTURE_FROM_LOC_TIME(java.sql.Time value)\n {\n if ((__DEPARTURE_FROM_LOC_TIME == null) != (value == null) || (value != null && ! value.equals(__DEPARTURE_FROM_LOC_TIME)))\n {\n _isDirty = true;\n }\n __DEPARTURE_FROM_LOC_TIME = value;\n }", "public void setTime(Long time) {\n this.time = time;\n }" ]
[ "0.66046923", "0.5983328", "0.5845092", "0.572153", "0.5637941", "0.5582725", "0.5495182", "0.5479817", "0.54606915", "0.5404571", "0.5367408", "0.5367408", "0.5367408", "0.53505886", "0.5303649", "0.52670366", "0.5256985", "0.520029", "0.5151856", "0.5147368", "0.5147368", "0.5147368", "0.5147368", "0.5127076", "0.50943893", "0.50815535", "0.50778556", "0.50449616", "0.50370604", "0.49816385", "0.49779147", "0.4970694", "0.4962452", "0.49271518", "0.49203166", "0.49195218", "0.4909642", "0.4885177", "0.48800173", "0.48791847", "0.4878961", "0.4877564", "0.48770693", "0.48769575", "0.48668942", "0.4862299", "0.4861091", "0.48469102", "0.48416924", "0.48387185", "0.4836163", "0.48352247", "0.48100364", "0.48091188", "0.48070455", "0.48070455", "0.48070455", "0.4802128", "0.48007497", "0.47996807", "0.4798703", "0.47953054", "0.4791511", "0.47891515", "0.47857946", "0.47844103", "0.4774628", "0.47739792", "0.47665116", "0.47644514", "0.47644514", "0.47644514", "0.47644514", "0.4757372", "0.47559017", "0.47513485", "0.4741294", "0.47294348", "0.47289094", "0.47252503", "0.4724863", "0.4721188", "0.47152147", "0.4708055", "0.4706686", "0.47066295", "0.47051752", "0.47029734", "0.47017547", "0.4700532", "0.46982062", "0.46969104", "0.46966654", "0.46926284", "0.46912006", "0.46886823", "0.46852106", "0.4675662", "0.46752438", "0.46726912" ]
0.60927975
1
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.oneMerchant
public Long getOnemerchant() { return onemerchant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMerchantNo();", "public Long getMerchantId()\n {\n return merchantId;\n }", "public Long getMerchantId() {\n return merchantId;\n }", "public java.lang.Long getMerchantId () {\r\n\t\treturn merchantId;\r\n\t}", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public java.lang.String getMerchantTransNo () {\r\n\t\treturn merchantTransNo;\r\n\t}", "public String getMerchant() {\n return _merchant;\n }", "public java.lang.String getMerchantCode () {\r\n\t\treturn merchantCode;\r\n\t}", "public String getMerchantName() {\n return merchantName;\n }", "@JsonProperty(\"MerchantId\")\n public String getMerchantId() {\n return merchantId;\n }", "@Override\r\n\tpublic Member getPayment(int no) {\n\t\treturn session.selectOne(\"payments.selectOneMember\", no);\r\n\t}", "public String getJP_BankDataCustomerCode1();", "@Transient\n\tpublic String getMerchantName() \t{ \n\t\treturn mMerchantName; \n\t}", "@ApiModelProperty(value = \"This is a number that uniquely identifies the originator when they sign up to send Push Payment Gateway transactions. On enrollment, an originator will get a single pseudo-value that is assigned by Visa. The other networks will assign their own unique values for the originator.<br><br><b>Note:</b><br>Supported only in US for domestic transactions involving Push Payments Gateway Service.\")\n public String getMerchantPseudoAbaNumber() {\n return merchantPseudoAbaNumber;\n }", "public String getJP_BankDataCustomerCode2();", "public String getMerchantAccountCode() {\n return merchantAccountCode;\n }", "public String getMerchantReference() {\n return this.merchantReference;\n }", "public String getMerchantName() {\n\t\treturn merchantName;\n\t}", "public String getCardIdInfo(String pCardNumber){\n \n TypedQuery<Long> getCardIdQuery = em.createQuery(\"SELECT c.cardId FROM Cards c WHERE c.cardNumber = :vCardNumber \", Long.class);\n getCardIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // Long cardId = getCardIdQuery.getSingleResult();\n Long cardId = 0l;\n List<Long> results = getCardIdQuery.getResultList();\n if(!results.isEmpty()){\n \n cardId = results.get(0);\n }\n TypedQuery<BigInteger> getCustomerIdQuery = em.createQuery(\"SELECT c.customerId FROM Cards c WHERE c.cardNumber = :vCardNumber \", BigInteger.class);\n getCustomerIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // BigInteger customerId = getCustomerIdQuery.getSingleResult();\n BigInteger customerId = BigInteger.valueOf(0);\n List<BigInteger> results1 = getCustomerIdQuery.getResultList();\n if(!results1.isEmpty()){\n \n customerId = results1.get(0);\n }\n \n String cardIdInfo = cardId + \"/\" + customerId;\n \n return cardIdInfo;\n }", "public String getMerchantReference() {\n return merchantReference;\n }", "public Long getTwomerchant() {\n return twomerchant;\n }", "public Merchant findMerchantById(Integer merchantId) {\n\t\treturn dao.findById(merchantId).get();\r\n\t}", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public String retrieveMerchant() {\n // Check if there's a valid merchant name.\n String merchant = _merchantET.getText().toString();\n if (merchant == null || merchant.equals(\"\")) {\n Toast.makeText(AddActivity.this, \"Please enter a merchant.\", Toast.LENGTH_LONG).show();\n return \"\";\n }\n return merchant;\n }", "public String getMerchantTag() {\n return this.merchantTag;\n }", "public void setMerchantId(Long merchantId) {\n this.merchantId = merchantId;\n }", "DangerMerchant selectByPrimaryKey(Integer id);", "public int getC_Payment_ID();", "public Long getThreemerchant() {\n return threemerchant;\n }", "public Long getBillNo() {\n return billNo;\n }", "@ApiModelProperty(required = true, value = \"merchant resource for the store\")\n @JsonProperty(\"merchant\")\n public EntityInfo getMerchant() {\n return merchant;\n }", "public void setMerchantId (java.lang.Long merchantId) {\r\n\t\tthis.merchantId = merchantId;\r\n\t}", "public void setMerchantTransNo (java.lang.String merchantTransNo) {\r\n\t\tthis.merchantTransNo = merchantTransNo;\r\n\t}", "public void setMerchantNum(String merchantNum) {\n this.merchantNum = FileUtils.hexStringFromatByF(10, \"\");\n }", "public static String aPaymentId() {\n return \"123456\";\n }", "public Long getMobile_phone();", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"lsk23532djljff3\", value = \"The unique merchant transaction ID from the request, if supplied.\")\n\n public String getMerchantTransactionId() {\n return merchantTransactionId;\n }", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "public void setOnemerchant(Long onemerchant) {\n this.onemerchant = onemerchant;\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId;\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId;\n }", "public int getM_Warehouse_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Warehouse_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public Integer getSettlementno() {\n return settlementno;\n }", "public int getPaymentNum() {\n \treturn this.paymentNum;\n }", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public String getMerchantOrderReference() {\n return merchantOrderReference;\n }", "public int getMemberId1() {\n return memberId1_;\n }", "public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}", "@Override\r\n\tpublic MemberVO getMemberId(String memberCode) {\n\t\treturn sqlSession.selectOne(namespace + \".getMemberId\", memberCode);\r\n\t}", "public void setMerchantName(String merchantName) {\n this.merchantName = merchantName;\n }", "public String getColumnone() {\n return columnone;\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId == null ? null : merchantId.trim();\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId == null ? null : merchantId.trim();\n }", "public BigDecimal getSMART_OPTION1() {\r\n return SMART_OPTION1;\r\n }", "public BigDecimal getSMART_OPTION1() {\r\n return SMART_OPTION1;\r\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getMerchantData() {\n return merchantData_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getMerchantData() {\n return merchantData_;\n }", "public String getJP_BankData_ReferenceNo();", "public int getMemberId1() {\n return memberId1_;\n }", "public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }", "public Integer getBuy_num() {\n return buy_num;\n }", "public String getMobile_number() {\n return mobile_number;\n }", "@Query(value = \"SELECT IF(count(transaction_details.transferred_Amt)>0, \" +\n \"(select sum(transaction_details.transferred_Amt) \" +\n \"FROM transaction_details where transaction_details.sender_Acct_No=?1), 0) \\n\" +\n \"FROM transaction_details where transaction_details.sender_Acct_No=?1\", nativeQuery = true)\n double getTransferredAmtBySender(Integer senderAcctNo);", "public String getCustomerMobile() {\n return customerMobile;\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "java.lang.String getBankNo();", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }", "java.lang.String getCouponVendor();", "public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}", "public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}", "public int getMerchantPoints() {\n\n return this.merchantPoints;\n }", "public String getBillCode() {\r\n return billCode;\r\n }", "@ApiModelProperty(value = \"If provided, then the value overrides the one present in onboarding data. If the merchantCategoryCode value is not populated in onboarding data then this field is mandatory.<br><br><b>Note:</b> required if not provided during onboarding\")\n public Integer getMerchantCategoryCode() {\n return merchantCategoryCode;\n }", "public Merchant findById(int merchantId) {\n\t\treturn merchantRepository.findOne(merchantId);\n\t}", "public Merchant findByMerchantId(Integer merchantId) {\n\t\treturn merchantRepository.findOne(merchantId);\n\t}", "public int getC_Payment_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_Payment_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@Override\n\tpublic String getMobileNum() {\n\t\treturn get.getMobileNum();\n\t}", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public String getMiNo() {\r\n return miNo;\r\n }", "public Long getSettlementmoney() {\n return settlementmoney;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getMerchantData() {\n return instance.getMerchantData();\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getMerchantData() {\n return instance.getMerchantData();\n }", "public int getOverdueBill() {\n int customer_id = 0;\n try {\n ResultSet resultset = overdueBills.executeQuery();\n while (resultset.next()) {\n customer_id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + customer_id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Try Again!\");\n }\n return customer_id;\n }", "public Long getPayamount() {\n return payamount;\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public int getCustId(){\n return this.custId;\r\n }", "public int getM_Product_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Product_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public final String getVendorId(){\n return peripheralVendorId;\n }", "public BigDecimal getLstCustManagerId() {\n return lstCustManagerId;\n }", "public Long getHome_phone();", "@Test\n public void merchantidTest() {\n assertEquals(Integer.valueOf(12345), authResponse.getMerchantid());\n }", "public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "public java.lang.String getBillNo () {\n\t\treturn billNo;\n\t}", "@Override\n public java.lang.String getDealerId() {\n return _entityCustomer.getDealerId();\n }", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}" ]
[ "0.6733171", "0.64096653", "0.630618", "0.613921", "0.6067672", "0.6067672", "0.6067672", "0.6067672", "0.60635847", "0.59224105", "0.5766007", "0.5681632", "0.565376", "0.56533366", "0.5646959", "0.5641026", "0.55306536", "0.55295724", "0.5505478", "0.54996437", "0.5449151", "0.54336554", "0.54269546", "0.54200107", "0.54090977", "0.5396923", "0.53800535", "0.5366601", "0.53641456", "0.53087175", "0.52820754", "0.52780044", "0.52641886", "0.5223696", "0.51794565", "0.5174804", "0.5172123", "0.50765306", "0.50591105", "0.5054424", "0.50488144", "0.50319", "0.5023834", "0.5023807", "0.5023807", "0.50012845", "0.49920464", "0.4988978", "0.49722257", "0.49722257", "0.49706084", "0.49691695", "0.49604607", "0.4948589", "0.49440017", "0.49417233", "0.4940328", "0.4940328", "0.493582", "0.493582", "0.49250758", "0.49250758", "0.49243292", "0.49162123", "0.49049127", "0.49045095", "0.49001876", "0.48980135", "0.4881428", "0.48701066", "0.4851958", "0.48511392", "0.48509628", "0.48499173", "0.48476988", "0.4838972", "0.48227984", "0.48226202", "0.48178676", "0.48157012", "0.481455", "0.48135167", "0.48124534", "0.4809843", "0.4806067", "0.48040625", "0.48040625", "0.48009455", "0.4797784", "0.4782001", "0.4779901", "0.47798988", "0.4779439", "0.47768357", "0.4769563", "0.47642264", "0.4747645", "0.47458455", "0.47432944", "0.47424164" ]
0.60923785
4
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.oneMerchant
public void setOnemerchant(Long onemerchant) { this.onemerchant = onemerchant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMerchantNum(String merchantNum) {\n this.merchantNum = FileUtils.hexStringFromatByF(10, \"\");\n }", "public void setMerchantId(Long merchantId) {\n this.merchantId = merchantId;\n }", "public Long getMerchantId()\n {\n return merchantId;\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setMerchantId (java.lang.Long merchantId) {\r\n\t\tthis.merchantId = merchantId;\r\n\t}", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId == null ? null : merchantId.trim();\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId == null ? null : merchantId.trim();\n }", "public Long getMerchantId() {\n return merchantId;\n }", "public void setMerchantTransNo (java.lang.String merchantTransNo) {\r\n\t\tthis.merchantTransNo = merchantTransNo;\r\n\t}", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId;\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId;\n }", "public String getMerchantNo();", "public java.lang.Long getMerchantId () {\r\n\t\treturn merchantId;\r\n\t}", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public void setMerchantName(String merchantName) {\n this.merchantName = merchantName;\n }", "public void setTwomerchant(Long twomerchant) {\n this.twomerchant = twomerchant;\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public void setMerchantCode (java.lang.String merchantCode) {\r\n\t\tthis.merchantCode = merchantCode;\r\n\t}", "public String getMerchant() {\n return _merchant;\n }", "public void setMerchantName(String merchantName) {\n\t\tthis.merchantName = merchantName;\n\t}", "public void updateMerchant(Merchant merchantObject) {\n\t\tif (dao.existsByEmailId(merchantObject.getEmailid()) != null) {\r\n\t\t\tdao.save(merchantObject);\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\tthrow new ApplicationException(\"Merchant Not Found for update operation\");\r\n\r\n\t\t}\r\n\t}", "public Long getOnemerchant() {\n return onemerchant;\n }", "@ApiModelProperty(value = \"This is a number that uniquely identifies the originator when they sign up to send Push Payment Gateway transactions. On enrollment, an originator will get a single pseudo-value that is assigned by Visa. The other networks will assign their own unique values for the originator.<br><br><b>Note:</b><br>Supported only in US for domestic transactions involving Push Payments Gateway Service.\")\n public String getMerchantPseudoAbaNumber() {\n return merchantPseudoAbaNumber;\n }", "public void setC_Payment_ID (int C_Payment_ID);", "@JsonProperty(\"MerchantId\")\n public String getMerchantId() {\n return merchantId;\n }", "public void selectedMerchantChanged( String merchantName ) ;", "@Override\n public void onChanged(@Nullable Merchant merchant) {\n }", "private void setMerchantData(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000001;\n merchantData_ = value;\n }", "private void setMerchantData(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000020;\n merchantData_ = value;\n }", "public java.lang.String getMerchantTransNo () {\r\n\t\treturn merchantTransNo;\r\n\t}", "public String getMerchantName() {\n return merchantName;\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public java.lang.String getMerchantCode () {\r\n\t\treturn merchantCode;\r\n\t}", "public void setThreemerchant(Long threemerchant) {\n this.threemerchant = threemerchant;\n }", "@Transient\n\tpublic String getMerchantName() \t{ \n\t\treturn mMerchantName; \n\t}", "public String getMerchantReference() {\n return this.merchantReference;\n }", "public String getMerchantAccountCode() {\n return merchantAccountCode;\n }", "public void actualizarNumSeqMerchant() throws BaseDeDatosExcepcion, ConexionExcepcion {\n MediadorBD.actualizarNumSeqMerchantCaja(this.numSeqMerchant);\n }", "public void setMsisdn(java.lang.String param){\n localMsisdnTracker = true;\n \n this.localMsisdn=param;\n \n\n }", "public void setCardNo(int cardNumber);", "public String getMerchantReference() {\n return merchantReference;\n }", "@ApiModelProperty(value = \"If provided, then the value overrides the one present in onboarding data. If the merchantCategoryCode value is not populated in onboarding data then this field is mandatory.<br><br><b>Note:</b> required if not provided during onboarding\")\n public Integer getMerchantCategoryCode() {\n return merchantCategoryCode;\n }", "public void setMobile_phone(Long mobile_phone);", "public void setSMART_OPTION1(BigDecimal SMART_OPTION1) {\r\n this.SMART_OPTION1 = SMART_OPTION1;\r\n }", "public void setSMART_OPTION1(BigDecimal SMART_OPTION1) {\r\n this.SMART_OPTION1 = SMART_OPTION1;\r\n }", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public String getMerchantName() {\n\t\treturn merchantName;\n\t}", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public SiloCreateMerchantGenerator()\n {\n m_pciMerchant = new SiloConfigPCIMerchant();\n }", "@Override\r\npublic int defaultPaymentInfo(int no) {\n\treturn session.insert(\"payments.defaultPayment\",no);\r\n}", "@ApiModelProperty(required = true, value = \"merchant resource for the store\")\n @JsonProperty(\"merchant\")\n public EntityInfo getMerchant() {\n return merchant;\n }", "public String getMerchantTag() {\n return this.merchantTag;\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public void setSettlementno(Integer settlementno) {\n this.settlementno = settlementno;\n }", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "public Merchant findMerchantById(Integer merchantId) {\n\t\treturn dao.findById(merchantId).get();\r\n\t}", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }", "public void setBillNo(Long billNo) {\n this.billNo = billNo;\n }", "public void setPrepayment_option(int prepayment_option) {\n this.prepayment_option = prepayment_option;\n }", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }", "public void setAD_Column_ID (int AD_Column_ID);", "public void setSettlementmoney(Long settlementmoney) {\n this.settlementmoney = settlementmoney;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"lsk23532djljff3\", value = \"The unique merchant transaction ID from the request, if supplied.\")\n\n public String getMerchantTransactionId() {\n return merchantTransactionId;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Merchant)) {\r\n return false;\r\n }\r\n Merchant other = (Merchant) object;\r\n if ((this.merchantID == null && other.merchantID != null) || (this.merchantID != null && !this.merchantID.equals(other.merchantID))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "DangerMerchant selectByPrimaryKey(Integer id);", "@Override\r\n public void setsaleId(int saleid) {\n this.saleId = saleid;\r\n }", "public Builder setMerchantData(com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setMerchantData(value);\n return this;\n }", "public Builder setMerchantData(com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setMerchantData(value);\n return this;\n }", "public void setSilos(SiloConfigPCIMerchant merchant)\n {\n m_pciMerchant = merchant;\n }", "private void setMobileNum(String mobileNum) {\n this.mobileNum = StringExtension.nullFilter(mobileNum);\n }", "public void setBuy_num(Integer buy_num) {\n this.buy_num = buy_num;\n }", "public void setPaymentRefNo(java.lang.String paymentRefNo)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYMENTREFNO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYMENTREFNO$0);\n }\n target.setStringValue(paymentRefNo);\n }\n }", "public void setJP_BankData_ID (int JP_BankData_ID);", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setC_Currency_ID (int C_Currency_ID);", "public void set_phone(String Phone)\n {\n phone =Phone;\n }", "Transfer updateTransactionNumber(Long id, String transactionNumber);", "public void setMobile(int number) {\n\t\t\tthis.Mobile = number;\r\n\t\t}", "public Merchant findbyPosId(String merchantId) {\n\t\tMerchant merchant = merchantRepository.findByPosMerchantId(merchantId);\n\t\tif (merchant != null && merchant.getTimeZone() == null) {\n\t\t\tList<Address> addresses = addressRepository\n\t\t\t\t\t.findByMerchantId(merchant.getId());\n\t\t\tif (addresses != null && addresses.size() > 0) {\n\t\t\t\tAddress address = addresses.get(0);\n\t\t\t\taddress.setMerchant(merchant);\n\t\t\t\tif (address != null && address.getZip() != null) {\n\t\t\t\t\tString timeZoneCode = DateUtil.getTimeZone(address);\n\t\t\t\t\tif (timeZoneCode != null) {\n\t\t\t\t\t\tTimeZone timeZone = timeZoneRepository\n\t\t\t\t\t\t\t\t.findByTimeZoneCode(timeZoneCode);\n\t\t\t\t\t\tmerchant.setTimeZone(timeZone);\n\t\t\t\t\t\tmerchantRepository.save(merchant);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn merchant;\n\t}", "public void setMobliephone(String mobliephone) {\n this.mobliephone = mobliephone;\n }", "public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID)\n{\nset_ValueNoCheck (\"C_Subscription_Delivery_ID\", new Integer(C_Subscription_Delivery_ID));\n}", "int updateByPrimaryKey(DangerMerchant record);", "public void setBALLOON_PAYMENT(BigDecimal BALLOON_PAYMENT) {\r\n this.BALLOON_PAYMENT = BALLOON_PAYMENT;\r\n }", "public void setCurrency( String phone )\r\n {\r\n currency = phone;\r\n }", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "public Builder clearMerchantData() {\n copyOnWrite();\n instance.clearMerchantData();\n return this;\n }", "public Builder clearMerchantData() {\n copyOnWrite();\n instance.clearMerchantData();\n return this;\n }", "public void setOPTION1_SMART_DEFAULT(BigDecimal OPTION1_SMART_DEFAULT) {\r\n this.OPTION1_SMART_DEFAULT = OPTION1_SMART_DEFAULT;\r\n }", "public void setOPTION1_SMART_DEFAULT(BigDecimal OPTION1_SMART_DEFAULT) {\r\n this.OPTION1_SMART_DEFAULT = OPTION1_SMART_DEFAULT;\r\n }", "public Long getTwomerchant() {\n return twomerchant;\n }", "protected void setPaymentCardNumber(int[] paymentCardNumber) {\n\t\tthis.paymentCardNumber = paymentCardNumber;\n\t}", "public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }" ]
[ "0.64300424", "0.6113805", "0.6019851", "0.6003249", "0.59822613", "0.59498894", "0.59498894", "0.59074974", "0.5833107", "0.5824657", "0.5824657", "0.5726773", "0.57207835", "0.5676078", "0.5676078", "0.5676078", "0.5676078", "0.5626262", "0.56137997", "0.5582946", "0.5490283", "0.5441062", "0.53622377", "0.532879", "0.52984595", "0.52868706", "0.52703184", "0.52344716", "0.5216693", "0.5194042", "0.5190856", "0.5176772", "0.5174503", "0.51469696", "0.5109926", "0.50861496", "0.5071815", "0.5063351", "0.5051919", "0.5031059", "0.5028999", "0.50197047", "0.50177443", "0.5009738", "0.49616134", "0.4956395", "0.49507448", "0.49507448", "0.49486408", "0.4923601", "0.4900689", "0.48966387", "0.48936725", "0.48828495", "0.48818722", "0.48779353", "0.48484623", "0.48436856", "0.48420343", "0.4830971", "0.48018986", "0.4795359", "0.47828108", "0.47765544", "0.4766923", "0.47644717", "0.47591338", "0.4749917", "0.4736644", "0.47295365", "0.4724901", "0.47219127", "0.47094396", "0.46991378", "0.46991378", "0.4690887", "0.46899205", "0.46797594", "0.46783653", "0.4674694", "0.4670456", "0.46637836", "0.46632475", "0.46623448", "0.4658831", "0.46455464", "0.46416807", "0.4641273", "0.46403193", "0.46390644", "0.46377358", "0.46354157", "0.46317056", "0.46310166", "0.46310166", "0.4628468", "0.4628468", "0.46251398", "0.46244317", "0.4605022" ]
0.5866983
8
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.twoMerchant
public Long getTwomerchant() { return twomerchant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMerchantNo();", "public String getJP_BankDataCustomerCode2();", "public Long getMerchantId()\n {\n return merchantId;\n }", "public java.lang.String getMerchantTransNo () {\r\n\t\treturn merchantTransNo;\r\n\t}", "public int getProperty2() {\n return property2_;\n }", "public int getProperty2() {\n return property2_;\n }", "public Long getOnemerchant() {\n return onemerchant;\n }", "public Long getMerchantId() {\n return merchantId;\n }", "public BigDecimal getSMART_OPTION2() {\r\n return SMART_OPTION2;\r\n }", "public BigDecimal getSMART_OPTION2() {\r\n return SMART_OPTION2;\r\n }", "public int getMemberId2() {\n return memberId2_;\n }", "public java.lang.Long getMerchantId () {\r\n\t\treturn merchantId;\r\n\t}", "public String getJP_BankDataCustomerCode1();", "public java.lang.String getZTEL_NUMBER2()\n {\n \n return __ZTEL_NUMBER2;\n }", "public int getMemberId2() {\n return memberId2_;\n }", "public Long getThreemerchant() {\n return threemerchant;\n }", "public String getCol2value() {\n return col2value;\n }", "public String getMerchant() {\n return _merchant;\n }", "public int getNum2() {\r\n\t\t\t\treturn num2_;\r\n\t\t\t}", "public int getNum2() {\r\n\t\t\treturn num2_;\r\n\t\t}", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public Long getKinkenriyou02() {\r\n return kinkenriyou02;\r\n }", "public Long getTwoagent() {\n return twoagent;\n }", "public int getBalance(String mobileNo)\n {\n \t\tResultSet rs;\n \t Context ctx;\n \t int balance=0;\n\t\ttry {\n\t\t\tctx = new InitialContext();\n\t\t\n\t\t\n\t\t DataSource ds=(DataSource)ctx.lookup(\"java:OracleDS\");\n\t\t\tConnection con=ds.getConnection();\n\t\t\tStatement stmt=con.createStatement();\n\t\t\t\n\t\t\trs=stmt.executeQuery(\"select Balance from mobile where mobileno=\"+mobileNo);\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t balance=rs.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\treturn balance;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in connection with Database :\"+e.getMessage());\n\t\t\treturn 0;\n\t\t}\n\t\t\n \t \n }", "public String getCardIdInfo(String pCardNumber){\n \n TypedQuery<Long> getCardIdQuery = em.createQuery(\"SELECT c.cardId FROM Cards c WHERE c.cardNumber = :vCardNumber \", Long.class);\n getCardIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // Long cardId = getCardIdQuery.getSingleResult();\n Long cardId = 0l;\n List<Long> results = getCardIdQuery.getResultList();\n if(!results.isEmpty()){\n \n cardId = results.get(0);\n }\n TypedQuery<BigInteger> getCustomerIdQuery = em.createQuery(\"SELECT c.customerId FROM Cards c WHERE c.cardNumber = :vCardNumber \", BigInteger.class);\n getCustomerIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // BigInteger customerId = getCustomerIdQuery.getSingleResult();\n BigInteger customerId = BigInteger.valueOf(0);\n List<BigInteger> results1 = getCustomerIdQuery.getResultList();\n if(!results1.isEmpty()){\n \n customerId = results1.get(0);\n }\n \n String cardIdInfo = cardId + \"/\" + customerId;\n \n return cardIdInfo;\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public int getUser2_ID() {\n\t\tInteger ii = (Integer) get_Value(\"User2_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@Override\r\n\tpublic Member getPayment(int no) {\n\t\treturn session.selectOne(\"payments.selectOneMember\", no);\r\n\t}", "public void setTwomerchant(Long twomerchant) {\n this.twomerchant = twomerchant;\n }", "public String getContactPhone2() {\n return contactPhone2;\n }", "public Long getBillNo() {\n return billNo;\n }", "public BigDecimal getSMART_OPTION_TEXT2() {\r\n return SMART_OPTION_TEXT2;\r\n }", "public BigDecimal getSMART_OPTION_TEXT2() {\r\n return SMART_OPTION_TEXT2;\r\n }", "private org.gwtbootstrap3.client.ui.Column get_f_Column2() {\n return build_f_Column2();\n }", "public String getId2() {\n return id2;\n }", "public java.lang.String getValue2() {\n return this.value2;\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "public double getAmount2() // getAmount2 method start\n\t\t{\n\t\t\treturn Double.parseDouble(amountField2.getText());\n\t\t}", "public double getAmount2() // getAmount2 method start\n\t\t{\n\t\t\treturn Double.parseDouble(amountField2.getText());\n\t\t}", "public int getAccount2() // getAccount2 method start\n\t\t{\n\t\t\tif (accounts[debitBox1.getSelectedIndex() - 1].getStatus())\n\t\t\t{\n\t\t\t\treturn convertIncreasingName(debitBox2.getSelectedIndex());\n\t\t\t} // end if\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn convertDecreasingName(debitBox2.getSelectedIndex());\n\t\t\t} // end else\n\t\t\t\n\t\t}", "public java.lang.String getMerchantCode () {\r\n\t\treturn merchantCode;\r\n\t}", "public BigDecimal getCurrency2() {\n\treturn currency2;\n}", "public String getADD_NUMBER2_MAND() {\r\n return ADD_NUMBER2_MAND;\r\n }", "public String getADD_NUMBER2_MAND() {\r\n return ADD_NUMBER2_MAND;\r\n }", "public ResultSet returnAccount(Long demataccountNo)throws Exception {\n\trs=DbConnect.getStatement().executeQuery(\"select BANK_ACC_NO from CUSTOMER_DETAILS where DEMAT_ACC_NO=\"+demataccountNo+\"\");\r\n\treturn rs;\r\n}", "public int getAccount2() // getAccount2 method start\n\t\t{\n\t\t\tif (increasing)\n\t\t\t{\n\t\t\t\treturn convertIncreasingName(creditBox2.getSelectedIndex());\n\t\t\t} // end if\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn convertDecreasingName(creditBox2.getSelectedIndex());\n\t\t\t} // end else\n\t\t}", "public void setSMART_OPTION2(BigDecimal SMART_OPTION2) {\r\n this.SMART_OPTION2 = SMART_OPTION2;\r\n }", "public void setSMART_OPTION2(BigDecimal SMART_OPTION2) {\r\n this.SMART_OPTION2 = SMART_OPTION2;\r\n }", "public String getBuild2Number() {\n\t\treturn \"\"+nb_build2;\n\t}", "public void setMerchantTransNo (java.lang.String merchantTransNo) {\r\n\t\tthis.merchantTransNo = merchantTransNo;\r\n\t}", "public String getMerchantAccountCode() {\n return merchantAccountCode;\n }", "public Long getMobile_phone();", "public String getColumntwo() {\n return columntwo;\n }", "public int getRecord2(){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext()); return prefs.getInt(\"record2\", -1);\n }", "public java.math.BigDecimal getOtherPayoutAmount() {\r\n return otherPayoutAmount;\r\n }", "public String getOther2() {\n return other2;\n }", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public String getBakCode2() {\n return bakCode2;\n }", "public Long getTesuryo02() {\r\n return tesuryo02;\r\n }", "public String getColumnNameTwo(){\n return columnNameTwoLbl.getText();\n }", "public char getUInt2(String columnName) {\n UInt2Vector vector = (UInt2Vector) table.getVector(columnName);\n return vector.get(rowNumber);\n }", "@JsonProperty(\"MerchantId\")\n public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantTag() {\n return this.merchantTag;\n }", "public String getEntityTwoGUID()\n {\n return entityTwoGUID;\n }", "public Integer getSellNumber() {\n return sellNumber;\n }", "public java.lang.String getSecondary2() {\n return secondary2;\n }", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public byte getP2() {\n return this.apdu_buffer[P2];\n }", "java.lang.String getBankNo();", "public BigDecimal getSupBynum2() {\n return supBynum2;\n }", "public String getLoyaltyNumber() {\n if (compositePOSTransaction.getLoyaltyCard() != null)\n return compositePOSTransaction.getLoyaltyCard().getLoyaltyNumber();\n else\n return null;\n }", "public int getDownPayment() {\n return downPayment;\n }", "public java.lang.String getZEXT_NUM2()\n {\n \n return __ZEXT_NUM2;\n }", "@Override\n\tpublic boolean getField2() {\n\t\treturn _second.getField2();\n\t}", "public Object getCol2check() {\n return col2check;\n }", "@Transient\n\tpublic String getMerchantName() \t{ \n\t\treturn mMerchantName; \n\t}", "public String getBENEF_ADDRESS_2() {\r\n return BENEF_ADDRESS_2;\r\n }", "public String getExtra2() {\n return extra2;\n }", "public String getMerchantReference() {\n return this.merchantReference;\n }", "public String getMerchantName() {\n return merchantName;\n }", "public String getAddress2() {\n\t\treturn address2;\n\t}", "public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }", "@Override\n\tpublic MerchantsBean getMerchantsDetail(MerchantsBean merchantsBean) {\n\t\tMerchantsBean merchantsBean2= merchantsDao.getMerchantsDetail(merchantsBean);\n\t\tif(merchantsBean2 != null){\n\t\t\tList<GoodsMarketingBean> goodsMarketingBeans = goodsDaoC.getGoodsMarketings(new GoodsMarketingBean()\n\t\t\t\t\t.setMerchants_id(merchantsBean2.getMerchants_id()+\"\").setMarketing_type(\"2\"));\n\t\t\tmerchantsBean2.setGoodsMarketingBeans(goodsMarketingBeans);\n\t\t}\n\t\treturn merchantsBean2;\n\t}", "public String getConstProperty2() {\n return this.constProperty2;\n }", "public Integer getSale_num() {\n return sale_num;\n }", "public Integer getWishPosTypeid2() {\n return wishPosTypeid2;\n }", "@ApiModelProperty(required = true, value = \"merchant resource for the store\")\n @JsonProperty(\"merchant\")\n public EntityInfo getMerchant() {\n return merchant;\n }", "public Long getOrdermoney() {\n return ordermoney;\n }", "public int getJack() {\n return this.JackMoney;\n }", "public String getAddress2() {\r\n return address2;\r\n }", "public String getMerchantReference() {\n return merchantReference;\n }", "public String getJP_BankData_ReferenceNo();", "public int getC_Payment_ID();", "public Long getPayamount() {\n return payamount;\n }", "public String getMobile_number() {\n return mobile_number;\n }", "public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}", "@Override\n\tpublic boolean getField2() {\n\t\treturn _employee.getField2();\n\t}" ]
[ "0.61377513", "0.57546604", "0.5603113", "0.55720276", "0.55499643", "0.55488145", "0.553884", "0.5479143", "0.5465626", "0.5465626", "0.5400951", "0.5396982", "0.53754044", "0.5354439", "0.5332357", "0.52906185", "0.5285692", "0.5266205", "0.5245513", "0.5225794", "0.5220536", "0.5220536", "0.5220536", "0.5220536", "0.5211072", "0.5195861", "0.5186731", "0.5147027", "0.5126352", "0.51141685", "0.50965416", "0.5092086", "0.50741565", "0.5062572", "0.5057028", "0.5057028", "0.50492615", "0.5048165", "0.503986", "0.5035122", "0.50116456", "0.50116456", "0.5001208", "0.49987787", "0.49980167", "0.49966046", "0.49966046", "0.49892712", "0.49770135", "0.4945622", "0.4945622", "0.49434525", "0.49429756", "0.49325606", "0.49310333", "0.49290645", "0.49240327", "0.4922913", "0.49149552", "0.49142265", "0.49100083", "0.4907811", "0.49065313", "0.48948255", "0.48876718", "0.4885113", "0.48768768", "0.48703712", "0.48701957", "0.48701096", "0.48668325", "0.48571882", "0.48347813", "0.4831027", "0.48242462", "0.48198462", "0.4819252", "0.48170307", "0.48052576", "0.48007077", "0.47890055", "0.47803092", "0.47777992", "0.477489", "0.47653282", "0.47652462", "0.4760657", "0.4754951", "0.47409496", "0.47293237", "0.47197843", "0.4718849", "0.47117096", "0.47062832", "0.47047022", "0.4703091", "0.470203", "0.46897492", "0.46809208", "0.46798143" ]
0.5608601
2
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.twoMerchant
public void setTwomerchant(Long twomerchant) { this.twomerchant = twomerchant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public void setMerchantNum(String merchantNum) {\n this.merchantNum = FileUtils.hexStringFromatByF(10, \"\");\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setMerchantTransNo (java.lang.String merchantTransNo) {\r\n\t\tthis.merchantTransNo = merchantTransNo;\r\n\t}", "public void setMerchantId(Long merchantId) {\n this.merchantId = merchantId;\n }", "public void setMerchantId (java.lang.Long merchantId) {\r\n\t\tthis.merchantId = merchantId;\r\n\t}", "public void setSMART_OPTION2(BigDecimal SMART_OPTION2) {\r\n this.SMART_OPTION2 = SMART_OPTION2;\r\n }", "public void setSMART_OPTION2(BigDecimal SMART_OPTION2) {\r\n this.SMART_OPTION2 = SMART_OPTION2;\r\n }", "public void setOnemerchant(Long onemerchant) {\n this.onemerchant = onemerchant;\n }", "public Long getMerchantId()\n {\n return merchantId;\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId == null ? null : merchantId.trim();\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId == null ? null : merchantId.trim();\n }", "public void setThreemerchant(Long threemerchant) {\n this.threemerchant = threemerchant;\n }", "public Long getMerchantId() {\n return merchantId;\n }", "public String getMerchantNo();", "public void setTaxNumber2(\n @Nullable\n final String taxNumber2) {\n rememberChangedField(\"TaxNumber2\", this.taxNumber2);\n this.taxNumber2 = taxNumber2;\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId;\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId;\n }", "public Builder setMemberId2(int value) {\n \n memberId2_ = value;\n onChanged();\n return this;\n }", "public void setB2(int b2)\n {\n this.b2 = b2;\n }", "public java.lang.Long getMerchantId () {\r\n\t\treturn merchantId;\r\n\t}", "public void setZTEL_NUMBER2(java.lang.String value)\n {\n if ((__ZTEL_NUMBER2 == null) != (value == null) || (value != null && ! value.equals(__ZTEL_NUMBER2)))\n {\n _isDirty = true;\n }\n __ZTEL_NUMBER2 = value;\n }", "public void setMobile_phone(Long mobile_phone);", "public void setCurrency2(BigDecimal newCurrency2) {\n\tcurrency2 = newCurrency2;\n}", "public void setUser2_ID(int User2_ID) {\n\t\tif (User2_ID <= 0)\n\t\t\tset_Value(\"User2_ID\", null);\n\t\telse\n\t\t\tset_Value(\"User2_ID\", new Integer(User2_ID));\n\t}", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setMerchantCode (java.lang.String merchantCode) {\r\n\t\tthis.merchantCode = merchantCode;\r\n\t}", "public void setTwoagent(Long twoagent) {\n this.twoagent = twoagent;\n }", "public void setMsisdn(java.lang.String param){\n localMsisdnTracker = true;\n \n this.localMsisdn=param;\n \n\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public void setC_Payment_ID (int C_Payment_ID);", "public void setBillNo(Long billNo) {\n this.billNo = billNo;\n }", "public String getMerchant() {\n return _merchant;\n }", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "@Override\n\tpublic void setField2(boolean field2) {\n\t\t_employee.setField2(field2);\n\t}", "@Override\n public void onChanged(@Nullable Merchant merchant) {\n }", "public Long getOnemerchant() {\n return onemerchant;\n }", "public Long getTwomerchant() {\n return twomerchant;\n }", "public void setOPTION2_SMART_DEFAULT(BigDecimal OPTION2_SMART_DEFAULT) {\r\n this.OPTION2_SMART_DEFAULT = OPTION2_SMART_DEFAULT;\r\n }", "public void setOPTION2_SMART_DEFAULT(BigDecimal OPTION2_SMART_DEFAULT) {\r\n this.OPTION2_SMART_DEFAULT = OPTION2_SMART_DEFAULT;\r\n }", "@Override\n\tpublic void setField2(boolean field2) {\n\t\t_second.setField2(field2);\n\t}", "public void setKinkenriyou02(Long kinkenriyou02) {\r\n this.kinkenriyou02 = kinkenriyou02;\r\n }", "@Override\n\tpublic void setStreet2(java.lang.String street2) {\n\t\t_candidate.setStreet2(street2);\n\t}", "public Builder setProperty2(int value) {\n bitField0_ |= 0x00000010;\n property2_ = value;\n \n return this;\n }", "public void setCardNo(int cardNumber);", "public void updateMerchant(Merchant merchantObject) {\n\t\tif (dao.existsByEmailId(merchantObject.getEmailid()) != null) {\r\n\t\t\tdao.save(merchantObject);\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\tthrow new ApplicationException(\"Merchant Not Found for update operation\");\r\n\r\n\t\t}\r\n\t}", "private void setMerchantData(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000001;\n merchantData_ = value;\n }", "public void setZEXT_NUM2(java.lang.String value)\n {\n if ((__ZEXT_NUM2 == null) != (value == null) || (value != null && ! value.equals(__ZEXT_NUM2)))\n {\n _isDirty = true;\n }\n __ZEXT_NUM2 = value;\n }", "private void setMerchantData(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000020;\n merchantData_ = value;\n }", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public java.lang.String getMerchantTransNo () {\r\n\t\treturn merchantTransNo;\r\n\t}", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public void setMerchantName(String merchantName) {\n this.merchantName = merchantName;\n }", "public void setSellNumber(Integer sellNumber) {\n this.sellNumber = sellNumber;\n }", "public void setBSCA_PrintPrice2 (String BSCA_PrintPrice2);", "public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }", "public void setSMART_OPTION_TEXT2(BigDecimal SMART_OPTION_TEXT2) {\r\n this.SMART_OPTION_TEXT2 = SMART_OPTION_TEXT2;\r\n }", "public void setSMART_OPTION_TEXT2(BigDecimal SMART_OPTION_TEXT2) {\r\n this.SMART_OPTION_TEXT2 = SMART_OPTION_TEXT2;\r\n }", "public void setSale_num(Integer sale_num) {\n this.sale_num = sale_num;\n }", "public void setSettlementmoney(Long settlementmoney) {\n this.settlementmoney = settlementmoney;\n }", "public void actualizarNumSeqMerchant() throws BaseDeDatosExcepcion, ConexionExcepcion {\n MediadorBD.actualizarNumSeqMerchantCaja(this.numSeqMerchant);\n }", "public void setContactPhone2(String contactPhone2) {\n this.contactPhone2 = contactPhone2;\n }", "public void setZweck2(String zweck2) throws RemoteException;", "public void setMobliephone(String mobliephone) {\n this.mobliephone = mobliephone;\n }", "private void setMobileNum(String mobileNum) {\n this.mobileNum = StringExtension.nullFilter(mobileNum);\n }", "public void setCol2value(String col2value) {\n this.col2value = col2value == null ? null : col2value.trim();\n }", "public void setPaymentRefNo(java.lang.String paymentRefNo)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PAYMENTREFNO$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PAYMENTREFNO$0);\n }\n target.setStringValue(paymentRefNo);\n }\n }", "public void setOtherUnit (jkt.hms.masters.business.MasUnit otherUnit) {\n\t\tthis.otherUnit = otherUnit;\n\t}", "public void setM_Production_ID (int M_Production_ID);", "protected void setPaymentCardNumber(int[] paymentCardNumber) {\n\t\tthis.paymentCardNumber = paymentCardNumber;\n\t}", "public void setMobile(int number) {\n\t\t\tthis.Mobile = number;\r\n\t\t}", "public void setMobile_number(String mobile_number) {\n this.mobile_number = mobile_number;\n }", "public BigDecimal getSMART_OPTION2() {\r\n return SMART_OPTION2;\r\n }", "public BigDecimal getSMART_OPTION2() {\r\n return SMART_OPTION2;\r\n }", "void setP2p(int p2p);", "public void setMobileNumber(String mobileNumber) {\n this.mobileNumber = mobileNumber;\n }", "public int getMemberId2() {\n return memberId2_;\n }", "@JsonProperty(\"MerchantId\")\n public String getMerchantId() {\n return merchantId;\n }", "public void setCustomerMobile(String customerMobile) {\n this.customerMobile = customerMobile;\n }", "public String getMerchantAccountCode() {\n return merchantAccountCode;\n }", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public String getJP_BankDataCustomerCode2();", "public void setId2(int value) {\n this.id2 = value;\n }", "@Override\n public void setSecondLastName(java.lang.String secondLastName) {\n _entityCustomer.setSecondLastName(secondLastName);\n }", "public Builder clearMemberId2() {\n \n memberId2_ = 0;\n onChanged();\n return this;\n }", "public void setIndustryCode2(\n @Nullable\n final String industryCode2) {\n rememberChangedField(\"IndustryCode2\", this.industryCode2);\n this.industryCode2 = industryCode2;\n }", "public void setCol2check(Object col2check) {\n this.col2check = col2check;\n }", "public void setSettlementno(Integer settlementno) {\n this.settlementno = settlementno;\n }", "public Builder setNum2(int value) {\r\n\t\t\t\tbitField0_ |= 0x00000004;\r\n\t\t\t\tnum2_ = value;\r\n\t\t\t\tonChanged();\r\n\t\t\t\treturn this;\r\n\t\t\t}", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public void setX2(int x2) {\n\t\tthis.x2 = x2;\n\t\tfireListenerSignal();\n\t}", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setNumpad2(boolean numpad2) {\n\tthis.numpad2 = numpad2;\n }", "public void setEntityTwoGUID(String entityTwoGUID)\n {\n this.entityTwoGUID = entityTwoGUID;\n }", "public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID)\n{\nset_ValueNoCheck (\"C_Subscription_Delivery_ID\", new Integer(C_Subscription_Delivery_ID));\n}", "public int getMemberId2() {\n return memberId2_;\n }" ]
[ "0.63480365", "0.5898815", "0.57974195", "0.57307345", "0.56119287", "0.55252486", "0.5464291", "0.5464291", "0.5452505", "0.53874815", "0.53132725", "0.53132725", "0.5277599", "0.5256164", "0.5243542", "0.5231169", "0.52218574", "0.52218574", "0.5186691", "0.51849794", "0.5137757", "0.51093656", "0.5074141", "0.5058469", "0.5026093", "0.5011839", "0.5004121", "0.5000325", "0.4995427", "0.49907935", "0.49907935", "0.49907935", "0.49907935", "0.49483794", "0.49441195", "0.49314573", "0.4910563", "0.49018586", "0.48954043", "0.48949257", "0.48907098", "0.48650506", "0.4852378", "0.4852378", "0.48495844", "0.4846684", "0.48374963", "0.4834325", "0.48341954", "0.48292053", "0.48279932", "0.48248035", "0.4823423", "0.48104542", "0.4810184", "0.4807167", "0.4796054", "0.4790013", "0.47852182", "0.4781024", "0.47683585", "0.47683585", "0.47575384", "0.4751339", "0.4728181", "0.4727148", "0.47270995", "0.47250006", "0.47122124", "0.4691098", "0.46748757", "0.46682048", "0.46668082", "0.46563748", "0.46537858", "0.46374467", "0.46355554", "0.46355554", "0.4634276", "0.4634238", "0.46270996", "0.46175313", "0.46144047", "0.4613019", "0.460748", "0.4607001", "0.46050447", "0.46027693", "0.46020126", "0.45971823", "0.45961428", "0.45903578", "0.4589384", "0.4587358", "0.45862493", "0.45801777", "0.4576412", "0.45746398", "0.45607615", "0.45601717" ]
0.61074495
1
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.ThreeMerchant
public Long getThreemerchant() { return threemerchant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMerchantNo();", "public String getThirdNumber() {\n return thirdNumber;\n }", "public String getCol3value() {\n return col3value;\n }", "public java.lang.String getMerchantTransNo () {\r\n\t\treturn merchantTransNo;\r\n\t}", "@Override\n\tpublic int getField3() {\n\t\treturn _employee.getField3();\n\t}", "public BigDecimal getSMART_OPTION3() {\r\n return SMART_OPTION3;\r\n }", "public BigDecimal getSMART_OPTION3() {\r\n return SMART_OPTION3;\r\n }", "public java.lang.Long getC3()\n {\n return this.c3;\n }", "public Long getMerchantId()\n {\n return merchantId;\n }", "public Long getMerchantId() {\n return merchantId;\n }", "@Override\n\tpublic int getField3() {\n\t\treturn _second.getField3();\n\t}", "public String getJP_BankDataCustomerCode2();", "public Long getOnemerchant() {\n return onemerchant;\n }", "public String getJP_BankDataCustomerCode1();", "public java.lang.Long getMerchantId () {\r\n\t\treturn merchantId;\r\n\t}", "public java.lang.Number getComponent3AsNumber() {\n\t\treturn SwiftFormatUtils.getNumber(getComponent(3));\n\t}", "public double getField3() {\n return field3_;\n }", "public int getXX_MaterialTransferOrder_ID() \r\n {\r\n return get_ValueAsInt(\"XX_MaterialTransferOrder_ID\");\r\n \r\n }", "public double getField3() {\n return field3_;\n }", "public String getMerchantAccountCode() {\n return merchantAccountCode;\n }", "public String getValue3() { return this.value3; }", "public BigDecimal getSMART_OPTION_TEXT3() {\r\n return SMART_OPTION_TEXT3;\r\n }", "public BigDecimal getSMART_OPTION_TEXT3() {\r\n return SMART_OPTION_TEXT3;\r\n }", "public int getRecord3(){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext()); return prefs.getInt(\"record3\", -1);\n }", "public String getColumnNameThree(){\n return columnNameThreeLbl.getText();\n }", "public Long getTwomerchant() {\n return twomerchant;\n }", "public String getSpareCol3() {\n return spareCol3;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public Long getMobile_phone();", "public java.lang.String getMerchantCode () {\r\n\t\treturn merchantCode;\r\n\t}", "public int mo15797hn() {\n return this.f3883JI;\n }", "public String getADD_NUMBER3_MAND() {\r\n return ADD_NUMBER3_MAND;\r\n }", "public String getADD_NUMBER3_MAND() {\r\n return ADD_NUMBER3_MAND;\r\n }", "public String getMerchant() {\n return _merchant;\n }", "public int getValue() {\n\t\treturn 3;\n\t}", "public String getOther3() {\n return other3;\n }", "public String getBuild3Number() {\n\t\treturn \"\"+nb_build3;\n\t}", "public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}", "public int getM_Warehouse_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Warehouse_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public int mo3368j() {\n return this.f2803b;\n }", "@java.lang.Override public int getMove3Value() {\n return move3_;\n }", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public float mo9744i() {\n return Float.intBitsToFloat(mo9783v());\n }", "public String getExtra3() {\n return extra3;\n }", "@java.lang.Override public int getMove3Value() {\n return move3_;\n }", "public java.math.BigDecimal getQtyPeriod3() \r\n {\r\n return get_ValueAsBigDecimal(\"QtyPeriod3\");\r\n \r\n }", "public String getJP_BankData_ReferenceNo();", "public java.lang.String getSecondary3() {\n return secondary3;\n }", "public Integer getBuy_num() {\n return buy_num;\n }", "public String getIntAttribute3() {\n return (String) getAttributeInternal(INTATTRIBUTE3);\n }", "public Integer getWishPosTypeid3() {\n return wishPosTypeid3;\n }", "public BigDecimal getOPTION3_SMART_DEFAULT() {\r\n return OPTION3_SMART_DEFAULT;\r\n }", "public BigDecimal getOPTION3_SMART_DEFAULT() {\r\n return OPTION3_SMART_DEFAULT;\r\n }", "public Long getOrdermoney() {\n return ordermoney;\n }", "public int mo23323u() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13722Lc)).intValue();\n }", "public int getC_Payment_ID();", "public void setSMART_OPTION3(BigDecimal SMART_OPTION3) {\r\n this.SMART_OPTION3 = SMART_OPTION3;\r\n }", "public void setSMART_OPTION3(BigDecimal SMART_OPTION3) {\r\n this.SMART_OPTION3 = SMART_OPTION3;\r\n }", "public int getMerchantPoints() {\n\n return this.merchantPoints;\n }", "public void setThirdNumber(String thirdNumber) {\n this.thirdNumber = thirdNumber == null ? null : thirdNumber.trim();\n }", "public Integer getSettlementno() {\n return settlementno;\n }", "public int getStateValue3() {\n return stateValue3_;\n }", "@Override\n\tpublic java.lang.String getStreet3() {\n\t\treturn _candidate.getStreet3();\n\t}", "@JsonProperty(\"MerchantId\")\n public String getMerchantId() {\n return merchantId;\n }", "public String getFreeuse3() {\n return freeuse3;\n }", "public String getMobile_number() {\n return mobile_number;\n }", "public int getStateValue3() {\n return stateValue3_;\n }", "public String getCardIdInfo(String pCardNumber){\n \n TypedQuery<Long> getCardIdQuery = em.createQuery(\"SELECT c.cardId FROM Cards c WHERE c.cardNumber = :vCardNumber \", Long.class);\n getCardIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // Long cardId = getCardIdQuery.getSingleResult();\n Long cardId = 0l;\n List<Long> results = getCardIdQuery.getResultList();\n if(!results.isEmpty()){\n \n cardId = results.get(0);\n }\n TypedQuery<BigInteger> getCustomerIdQuery = em.createQuery(\"SELECT c.customerId FROM Cards c WHERE c.cardNumber = :vCardNumber \", BigInteger.class);\n getCustomerIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // BigInteger customerId = getCustomerIdQuery.getSingleResult();\n BigInteger customerId = BigInteger.valueOf(0);\n List<BigInteger> results1 = getCustomerIdQuery.getResultList();\n if(!results1.isEmpty()){\n \n customerId = results1.get(0);\n }\n \n String cardIdInfo = cardId + \"/\" + customerId;\n \n return cardIdInfo;\n }", "public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }", "@Transient\n\tpublic String getMerchantName() \t{ \n\t\treturn mMerchantName; \n\t}", "public FloatColumn getVolume3() {\n return (FloatColumn) (isText ? textFields.computeIfAbsent(\"volume3\", FloatColumn::new) :\n getBinaryColumn(\"volume3\"));\n }", "public int getM_Product_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Product_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}", "public double getMon603a3() {\r\n\t\treturn mon603a3;\r\n\t}", "public BigDecimal getSupBynum3() {\n return supBynum3;\n }", "public String getMerchantReference() {\n return this.merchantReference;\n }", "public String getAttribute3() {\n return attribute3;\n }", "private String getCampo3() {\r\n String campo = this.campoLivre.substring(15);\r\n return boleto.getDigitoCampo(campo);\r\n }", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }", "public abstract String getPhone3();", "public int getBalance(String mobileNo)\n {\n \t\tResultSet rs;\n \t Context ctx;\n \t int balance=0;\n\t\ttry {\n\t\t\tctx = new InitialContext();\n\t\t\n\t\t\n\t\t DataSource ds=(DataSource)ctx.lookup(\"java:OracleDS\");\n\t\t\tConnection con=ds.getConnection();\n\t\t\tStatement stmt=con.createStatement();\n\t\t\t\n\t\t\trs=stmt.executeQuery(\"select Balance from mobile where mobileno=\"+mobileNo);\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t balance=rs.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\treturn balance;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in connection with Database :\"+e.getMessage());\n\t\t\treturn 0;\n\t\t}\n\t\t\n \t \n }", "public String getUSECIF_NUMBER3() {\r\n return USECIF_NUMBER3;\r\n }", "public String getUSECIF_NUMBER3() {\r\n return USECIF_NUMBER3;\r\n }", "public float mo9744i() {\n return Float.intBitsToFloat(mo9772v());\n }", "public Long getKinkenriyou03() {\r\n return kinkenriyou03;\r\n }", "public String getParameter3() {\n return parameter3;\n }", "public String getMerchantReference() {\n return merchantReference;\n }", "@Override\r\n\tpublic Float countmomey(int prpaycode) {\n\t\treturn this.session.selectOne(\"com.icss.dao.PayRecordMapper.countmomey\",prpaycode);\r\n\t}", "public String getCustomerMobile() {\n return customerMobile;\n }", "@Override\r\n\tpublic Integer getCombinationMaxNumber() {\n\t\tString hql = \"select max(c.combination_number) from Combination c\";\r\n\t\treturn (Integer) HibernateUtil.getSession().createQuery(hql).uniqueResult();\r\n\t}", "public int getPaymentNum() {\n \treturn this.paymentNum;\n }", "public int getC_UOM_ID() \n{\nInteger ii = (Integer)get_Value(\"C_UOM_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public double getMon603r3() {\r\n\t\treturn mon603r3;\r\n\t}", "public String getprop_no() {\n return (String)getNamedWhereClauseParam(\"prop_no\");\n }", "public Long getHome_phone();", "@Override\r\n\tpublic Member getPayment(int no) {\n\t\treturn session.selectOne(\"payments.selectOneMember\", no);\r\n\t}" ]
[ "0.58702505", "0.58076614", "0.5764264", "0.55039734", "0.5451649", "0.54129064", "0.54129064", "0.53944635", "0.53298277", "0.52698475", "0.5263792", "0.52530694", "0.5227366", "0.5226155", "0.521574", "0.5203305", "0.51962817", "0.51947266", "0.5191813", "0.509307", "0.5084572", "0.50740266", "0.50740266", "0.50387377", "0.50140774", "0.49907732", "0.49831086", "0.49812847", "0.49812847", "0.49812847", "0.49812847", "0.49657035", "0.49649426", "0.49571887", "0.4944737", "0.4944737", "0.4941132", "0.4938099", "0.49373814", "0.4926087", "0.49238664", "0.4893571", "0.48935032", "0.4886018", "0.48842487", "0.48841673", "0.4881863", "0.48669884", "0.485866", "0.4827772", "0.48253137", "0.4816138", "0.4799486", "0.47969338", "0.47929356", "0.47926524", "0.47926524", "0.47631955", "0.47626743", "0.47596487", "0.47553226", "0.47553226", "0.47547343", "0.47351715", "0.47277772", "0.47251043", "0.47248128", "0.47223008", "0.4720584", "0.47180253", "0.4708094", "0.4706961", "0.46977958", "0.46969917", "0.46931797", "0.46842656", "0.46837863", "0.4683581", "0.46833813", "0.46820676", "0.4681197", "0.46806926", "0.4680019", "0.4672579", "0.46685445", "0.4665635", "0.4665635", "0.4664814", "0.46644965", "0.46619782", "0.4659746", "0.46498504", "0.46449345", "0.46425006", "0.46382517", "0.46379995", "0.46337414", "0.4631139", "0.46278143", "0.4623439" ]
0.5059752
23
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.ThreeMerchant
public void setThreemerchant(Long threemerchant) { this.threemerchant = threemerchant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMerchantNum(String merchantNum) {\n this.merchantNum = FileUtils.hexStringFromatByF(10, \"\");\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "@Override\n\tpublic void setField3(int field3) {\n\t\t_employee.setField3(field3);\n\t}", "@Override\n\tpublic void setField3(int field3) {\n\t\t_second.setField3(field3);\n\t}", "public void setTaxNumber3(\n @Nullable\n final String taxNumber3) {\n rememberChangedField(\"TaxNumber3\", this.taxNumber3);\n this.taxNumber3 = taxNumber3;\n }", "public void setMerchantTransNo (java.lang.String merchantTransNo) {\r\n\t\tthis.merchantTransNo = merchantTransNo;\r\n\t}", "public void setSMART_OPTION3(BigDecimal SMART_OPTION3) {\r\n this.SMART_OPTION3 = SMART_OPTION3;\r\n }", "public void setSMART_OPTION3(BigDecimal SMART_OPTION3) {\r\n this.SMART_OPTION3 = SMART_OPTION3;\r\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setC3(java.lang.Long c3)\n {\n this.c3 = c3;\n }", "public void setThirdNumber(String thirdNumber) {\n this.thirdNumber = thirdNumber == null ? null : thirdNumber.trim();\n }", "public void setTwomerchant(Long twomerchant) {\n this.twomerchant = twomerchant;\n }", "public abstract void setPhone3(String sValue);", "public void setC_Payment_ID (int C_Payment_ID);", "public void setOnemerchant(Long onemerchant) {\n this.onemerchant = onemerchant;\n }", "public void setMerchantId(Long merchantId) {\n this.merchantId = merchantId;\n }", "public Long getMerchantId()\n {\n return merchantId;\n }", "public void setMobile_phone(Long mobile_phone);", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public void setValue3(String value3) { this.value3 = value3; }", "public Long getMerchantId() {\n return merchantId;\n }", "private void setMerchantData(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000001;\n merchantData_ = value;\n }", "private void setMerchantData(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000020;\n merchantData_ = value;\n }", "@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testSetDatabaseProperty_3()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tProperty[] aArguments = new Property[] {};\n\n\t\tfixture.setDatabaseProperty(aArguments);\n\n\t\t// add additional test code here\n\t}", "public void setMerchantId (java.lang.Long merchantId) {\r\n\t\tthis.merchantId = merchantId;\r\n\t}", "public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }", "public void setIndustryCode3(\n @Nullable\n final String industryCode3) {\n rememberChangedField(\"IndustryCode3\", this.industryCode3);\n this.industryCode3 = industryCode3;\n }", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public java.lang.Long getMerchantId () {\r\n\t\treturn merchantId;\r\n\t}", "@Override\n\tpublic void setStreet3(java.lang.String street3) {\n\t\t_candidate.setStreet3(street3);\n\t}", "public String getMerchantNo();", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId == null ? null : merchantId.trim();\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId == null ? null : merchantId.trim();\n }", "public void setOPTION3_SMART_DEFAULT(BigDecimal OPTION3_SMART_DEFAULT) {\r\n this.OPTION3_SMART_DEFAULT = OPTION3_SMART_DEFAULT;\r\n }", "public void setOPTION3_SMART_DEFAULT(BigDecimal OPTION3_SMART_DEFAULT) {\r\n this.OPTION3_SMART_DEFAULT = OPTION3_SMART_DEFAULT;\r\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "public void setCol3value(String col3value) {\n this.col3value = col3value == null ? null : col3value.trim();\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setThirdSSN(float num3){\n\t\t ThirdSSN = ((num3>0 && num3<=9999)?num3:0);\n\t\t }", "public void actualizarNumSeqMerchant() throws BaseDeDatosExcepcion, ConexionExcepcion {\n MediadorBD.actualizarNumSeqMerchantCaja(this.numSeqMerchant);\n }", "public void setMobile(int number) {\n\t\t\tthis.Mobile = number;\r\n\t\t}", "public void setC_BPartner_ID (int C_BPartner_ID);", "public void setSMART_OPTION_TEXT3(BigDecimal SMART_OPTION_TEXT3) {\r\n this.SMART_OPTION_TEXT3 = SMART_OPTION_TEXT3;\r\n }", "public void setSMART_OPTION_TEXT3(BigDecimal SMART_OPTION_TEXT3) {\r\n this.SMART_OPTION_TEXT3 = SMART_OPTION_TEXT3;\r\n }", "public void setC_Currency_ID (int C_Currency_ID);", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId;\n }", "public void setMerchantId(String merchantId) {\n this.merchantId = merchantId;\n }", "private void setP3( Point p3 ){\n this.p3=p3;\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public String getMerchantId() {\n return merchantId;\n }", "public void setCardNo(int cardNumber);", "private void setMobileNum(String mobileNum) {\n this.mobileNum = StringExtension.nullFilter(mobileNum);\n }", "public void setParameter3(String parameter3) {\n this.parameter3 = parameter3 == null ? null : parameter3.trim();\n }", "public void setJP_BankData_ID (int JP_BankData_ID);", "public String getMerchantAccountCode() {\n return merchantAccountCode;\n }", "public void setQtyPeriod3 (java.math.BigDecimal QtyPeriod3)\r\n {\r\n set_Value (\"QtyPeriod3\", QtyPeriod3);\r\n \r\n }", "public java.lang.String getMerchantTransNo () {\r\n\t\treturn merchantTransNo;\r\n\t}", "public void setMerchantCode (java.lang.String merchantCode) {\r\n\t\tthis.merchantCode = merchantCode;\r\n\t}", "public void setNode_3(String node_3);", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Product_ID (int M_Product_ID);", "public void setCurrency( String phone )\r\n {\r\n currency = phone;\r\n }", "public void setRecord3(int value){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext());\n SharedPreferences.Editor editor = prefs.edit(); editor.putInt(\"record3\", value);\n editor.commit();\n }", "public void setBuy_num(Integer buy_num) {\n this.buy_num = buy_num;\n }", "public void setConvertedProductQty (BigDecimal ConvertedProductQty)\n{\nset_Value (\"ConvertedProductQty\", ConvertedProductQty);\n}", "public void setHome_phone(Long home_phone);", "public void setCustomerMobile(String customerMobile) {\n this.customerMobile = customerMobile;\n }", "public String getMerchant() {\n return _merchant;\n }", "@ApiModelProperty(value = \"If provided, then the value overrides the one present in onboarding data. If the merchantCategoryCode value is not populated in onboarding data then this field is mandatory.<br><br><b>Note:</b> required if not provided during onboarding\")\n public Integer getMerchantCategoryCode() {\n return merchantCategoryCode;\n }", "public void setSettlementmoney(Long settlementmoney) {\n this.settlementmoney = settlementmoney;\n }", "public void setAD_Column_ID (int AD_Column_ID);", "public void setMobile_number(String mobile_number) {\n this.mobile_number = mobile_number;\n }", "public void setMon603a3(double mon603a3) {\r\n\t\tthis.mon603a3 = mon603a3;\r\n\t}", "public Long getOnemerchant() {\n return onemerchant;\n }", "public void setSettlementno(Integer settlementno) {\n this.settlementno = settlementno;\n }", "public void setMon603r3(double mon603r3) {\r\n\t\tthis.mon603r3 = mon603r3;\r\n\t}", "public String getCol3value() {\n return col3value;\n }", "public String getThirdNumber() {\n return thirdNumber;\n }", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "public void setMobileNum(String mobileNum) {\r\n\t\tthis.mobileNum = mobileNum;\r\n\t}", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "public void setNumpad3(boolean numpad3) {\n\tthis.numpad3 = numpad3;\n }", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }", "public void setPhoneNumber(String phone_number){\n this.phone_number = phone_number;\n }", "public BigDecimal getSMART_OPTION3() {\r\n return SMART_OPTION3;\r\n }", "public BigDecimal getSMART_OPTION3() {\r\n return SMART_OPTION3;\r\n }", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public void setBuyNum(Integer buyNum) {\n this.buyNum = buyNum;\n }", "public void setmobileNum(String mobileNum) {\n\t\t_mobileNum = mobileNum;\n\t}", "public static void setColumnNumber(Configuration conf, int columnNum) {\n\t\tassert columnNum > 0;\n\t\tconf.setInt(RCFile.COLUMN_NUMBER_CONF_STR, columnNum);\n\t}", "public void setC_Subscription_Delivery_ID (int C_Subscription_Delivery_ID)\n{\nset_ValueNoCheck (\"C_Subscription_Delivery_ID\", new Integer(C_Subscription_Delivery_ID));\n}", "public String getMerchantAccount() {\n return merchantAccount;\n }", "public void setMprice(int value) {\r\n this.mprice = value;\r\n }", "public static void setDropdownAmountOption(int option){\n DriverManager.driver.findElement(Constans.AMOUNT_LOCATOR).click();\n setDropdownOption(option);\n }", "public void selectedMerchantChanged( String merchantName ) ;" ]
[ "0.60044724", "0.5632943", "0.5417169", "0.5390416", "0.536188", "0.5305445", "0.52918625", "0.5287107", "0.5287107", "0.52756864", "0.5164459", "0.51341605", "0.5133608", "0.5123341", "0.51113313", "0.5097215", "0.5063969", "0.5062127", "0.5016571", "0.50114083", "0.49917057", "0.49864733", "0.49600735", "0.49600366", "0.4937054", "0.4934022", "0.492744", "0.4921444", "0.4905774", "0.48948422", "0.48942176", "0.4890853", "0.4864992", "0.4864992", "0.48611787", "0.48611787", "0.48536524", "0.48415372", "0.48109522", "0.4808242", "0.47790423", "0.47674215", "0.47544146", "0.47488758", "0.47153512", "0.47153512", "0.47145906", "0.47125453", "0.47125453", "0.47028518", "0.4697215", "0.46934202", "0.46934202", "0.46934202", "0.46934202", "0.46931466", "0.46704617", "0.46692955", "0.46654138", "0.4662353", "0.46612763", "0.46607018", "0.46525905", "0.4652096", "0.46400502", "0.46400502", "0.46337727", "0.46092293", "0.46074334", "0.45932323", "0.45906246", "0.45884413", "0.4564587", "0.4555555", "0.4554622", "0.4552766", "0.45504695", "0.45448887", "0.45424423", "0.45408437", "0.45388734", "0.45373607", "0.4535329", "0.453507", "0.45276618", "0.4522022", "0.45186877", "0.45155004", "0.451502", "0.45139152", "0.45139152", "0.45078206", "0.4484774", "0.448423", "0.4479097", "0.44773316", "0.44758826", "0.44756162", "0.4471239", "0.44584078" ]
0.4827412
38
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.oneAgent
public Long getOneagent() { return oneagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOneagent(Long oneagent) {\n this.oneagent = oneagent;\n }", "public java.lang.String getAgentNumber() {\r\n return agentNumber;\r\n }", "public String getAgentId() {\n return this.agentId;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "public String getAgentId() {\n return agentId;\n }", "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public int getAdjusterAgent(int agent_id) {\n int id = 0;\n try {\n agentAdjuster.setInt(1, agent_id);\n ResultSet resultset = agentAdjuster.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"adjuster_id\");\n System.out.println(\"Adjuster ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "public Long getTwoagent() {\n return twoagent;\n }", "public EntityID getAssignedAgentID();", "public int getAgentID(int agent_id) {\n int id = 0;\n try {\n checkAgentID.setInt(1, agent_id);\n ResultSet resultset = checkAgentID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"agent_id\");\n System.out.println(\"Agent ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"agent ID Invalid! No Agent Exists With That ID.\"); \n }\n return id;\n }", "public final AgentIdentifier getAgent() {\n\t\treturn (this.__agent==null) ? null : this.__agent.get().getId();\n\t}", "public String findAgentNameByAgentId(String agentId);", "public String getAgent() {\n return this.agent;\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public String getColumnone() {\n return columnone;\n }", "public String getAgent() {\n return agent;\n }", "private void getAgentName() {\n DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();\n DatabaseReference agentRef = rootRef.child(\"Properties\").child(globals.chosenProp).child(\"agent\");\n\n agentRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n agentName = dataSnapshot.getValue().toString();\n }\n getAgentEmail();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) { }\n });\n }", "public String getAgencyNum() {\n return agencyNum;\n }", "public java.lang.String getAgentCheckNumber() {\r\n return agentCheckNumber;\r\n }", "public String getAgentContactPhone() {\n return agentContactPhone;\n }", "public String getAgentName() {\n return agentName;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "@Length(max = NAME_MAX_LENGTH, message = \"length.MoneyGremAgentId\")\n @Pattern(regexp = \"[0-9^-]+\", message = \"pattern.MoneyGremAgentId\")\n public String getMoneyGramAgentID() {\n\n return moneyGramAgentID;\n }", "public Long getProvinceagent() {\n return provinceagent;\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public String getColumnNameOne(){\n return columnNameOneLbl.getText();\n }", "@JsonGetter(\"agent\")\n public Object getAgent ( ) { \n return this.agent;\n }", "public Long getCityagent() {\n return cityagent;\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "public java.lang.String getAgentName() {\r\n return agentName;\r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "private com.google.protobuf.SingleFieldBuilderV3<\n org.beangle.security.session.protobuf.Model.Agent, org.beangle.security.session.protobuf.Model.Agent.Builder, org.beangle.security.session.protobuf.Model.AgentOrBuilder>\n getAgentFieldBuilder() {\n if (agentBuilder_ == null) {\n agentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.beangle.security.session.protobuf.Model.Agent, org.beangle.security.session.protobuf.Model.Agent.Builder, org.beangle.security.session.protobuf.Model.AgentOrBuilder>(\n getAgent(),\n getParentForChildren(),\n isClean());\n agent_ = null;\n }\n return agentBuilder_;\n }", "java.lang.String getAgentName();", "public final Probe getAgentProbe() {\n\t\tSituatedAgent<?,?,?,?> ag = (this.__agent==null) ? null : this.__agent.get();\n\t\tif (ag!=null) {\n\t\t\treturn ag.getProbe();\n\t\t}\n\t\treturn null;\n\t}", "public int getProperty1() {\n return property1_;\n }", "public void setTwoagent(Long twoagent) {\n this.twoagent = twoagent;\n }", "public Agent findAgentByTempOrOrginalId(String agentId);", "public Agent findAgentByAgentId(String agentId);", "public int getProperty1() {\n return property1_;\n }", "public int getAgentCustomers(int agent_id) {\n int id = 0;\n try {\n checkAgentCustomers.setInt(1, agent_id);\n ResultSet resultset = checkAgentCustomers.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID is: \" + id + \"\\n\");\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Agent Doesn't Manage Any Customers Yet!\");\n }\n return id;\n }", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public void setAgentNumber(java.lang.String agentNumber) {\r\n this.agentNumber = agentNumber;\r\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public Long getCountyagent() {\n return countyagent;\n }", "public BigDecimal getAgentMoney() {\n return agentMoney;\n }", "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}", "public String getAgentName() {\n return (String)getAttributeInternal(AGENTNAME);\n }", "public String getTopagent() {\n return topagent;\n }", "@Override\n\tpublic java.lang.String getField1() {\n\t\treturn _employee.getField1();\n\t}", "public Agents findAgentByNumber(String number) {\n Agents agent = null;\n String hql = \"From Agents a where a.number=:number\";\n Query query = HibernateUtil.getSession().createQuery(hql).setParameter(\"number\", number);\n agent = findOne(query);\n return agent;\n }", "public DBSequence getPromoBonusId() {\n return (DBSequence)getAttributeInternal(PROMOBONUSID);\n }", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public String getAgentPort() {\n return (String)getAttributeInternal(AGENTPORT);\n }", "@Override\n\tpublic Object selectOne() {\n\t\t\n\t\tInteger pt_idx = session.selectOne(\"party.recently_insert\");\n\t\t\n\t\t\n\t\treturn pt_idx;\n\t}", "public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "private String getAgentLista() {\n return agentLista;\n }", "public String getCol1() {\n\t\treturn col1;\n\t}", "public int getHC_ManagerTo_ID();", "public String getAgentidcard() {\r\n\t\treturn agentidcard;\r\n\t}", "private int getEmployeeId() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint employeeId1 = 0;\r\n\t\tString sql = \"SELECT Patient_Id_Sequence.NEXTVAL FROM DUAL\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tResultSet res = pstmt.executeQuery();\r\n\t\t\tif (res.next()) {\r\n\t\t\t\temployeeId1 = res.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error while fetching data from database\");\r\n\t\t}\r\n\t\treturn employeeId1;\r\n\r\n\t}", "public String getManagerEmpId() {\n return _managerEmpId;\n }", "public int getAgencyId() {\n return agencyId;\n }", "public String getAgency() {\r\n return agency;\r\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public int getMemberId1() {\n return memberId1_;\n }", "public String getOndaP1() {\r\n return ondaP1;\r\n }", "public void setAgentId(String agentId) {\n this.mAgentId = agentId;\n }", "public java.lang.String getNameOfShipAgent() {\n\t\treturn _tempNoTiceShipMessage.getNameOfShipAgent();\n\t}", "public String getAgencyNm() {\n\t\treturn agencyNm;\n\t}", "public Long getHome_phone();", "public String getBuild1Number() {\n\t\treturn \"\"+nb_build1;\n\t}", "public String getEntityOneGUID()\n {\n return entityOneGUID;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "public int getMemberId1() {\n return memberId1_;\n }", "public final String getNum_emp() {\n return getString(getNum_empAttribute(getMtDatabase()));\n }", "@RequestMapping(\"/{id}\")\n \tpublic String getOne(@PathVariable Long id, ModelMap model) {\n \t\tmodel.addAttribute(\"agent\", agentManagerService.getOne(id));\n \t\treturn \"agent/detail\";\n \t}", "@Override\n\tpublic long getMinnum() {\n\t\treturn _esfTournament.getMinnum();\n\t}", "public Agent getAgent(String agentId) {\n return agentMap.get(agentId);\n }", "public Jogador getJogador1() {\r\n return jogador1;\r\n }", "@Override\n\tpublic String getMobileNum() {\n\t\treturn get.getMobileNum();\n\t}", "public long getField1() {\n return field1_;\n }", "public String getMiNo() {\r\n return miNo;\r\n }", "public java.math.BigDecimal getAgentCheckAmount() {\r\n return agentCheckAmount;\r\n }", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "public long getField1() {\n return field1_;\n }", "private void getAgentEmail() {\n DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();\n DatabaseReference emailRef = rootRef.child(\"Users\").child(\"agent\").child(agentName).child(\"email\");\n\n emailRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n agentEmail = dataSnapshot.getValue().toString();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) { }\n });\n }", "@Override\n public Long findMAX() {\n\n StringBuffer sql = new StringBuffer(\"select max(magoithau) from goithau\");\n Query query = entityManager.createNativeQuery(sql.toString());\n return Long.parseLong(query.getSingleResult().toString()) ;\n }", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "@Nullable\n public Agent getAgentById(String agentId) {\n return agents.get(agentId.replaceAll(\"/\", \"\").trim());\n }", "public AgentType findAgentTypeById(long id);", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.agent.v1.Agent getAgentReq(Agent agent){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.agent.v1.Agent agentReq = \n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.agent.v1.Agent();\n\t\t\n\t\tagentReq.setAgentNo( agent.getAgentNo() );\n\t\tagentReq.setFirstName( agent.getFirstName() );\n\t\tagentReq.setLastName( agent.getLastName() );\n\t\tagentReq.setFullName( agent.getFullName() );\n\t\tagentReq.setEmailId( agent.getEmailId() );\n\t\tagentReq.setRoyaltyNo( agent.getRoyaltyNo() );\n\t\tagentReq.setPrint( agent.getPrint() );\n\t\tagentReq.setFaxInput( agent.getFaxInput() );\n\t\t\n\t\treturn agentReq;\n\t}", "public String getIntAttribute1() {\n return (String) getAttributeInternal(INTATTRIBUTE1);\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public String getAssignedDepotForVehicleId(AgencyAndId vehicle);", "public void setProvinceagent(Long provinceagent) {\n this.provinceagent = provinceagent;\n }", "public int getNum1() {\r\n\t\t\t\treturn num1_;\r\n\t\t\t}", "public String getAgentAlias() {\n return (String)getAttributeInternal(AGENTALIAS);\n }" ]
[ "0.6104749", "0.61038446", "0.59569263", "0.59422904", "0.5893177", "0.58748704", "0.5869909", "0.5787809", "0.5776391", "0.56782156", "0.56457335", "0.54086936", "0.53882027", "0.5382781", "0.5346251", "0.53223884", "0.530866", "0.52871495", "0.52712476", "0.52587664", "0.52517766", "0.5243386", "0.5190142", "0.5177153", "0.5144426", "0.5127805", "0.5102252", "0.5087073", "0.5079644", "0.5055186", "0.50533444", "0.5046299", "0.5013122", "0.5008581", "0.50062287", "0.4979318", "0.49633673", "0.49589574", "0.49505487", "0.49502364", "0.49342543", "0.49275327", "0.4912414", "0.49100277", "0.49049044", "0.48927915", "0.48721522", "0.48700768", "0.48552582", "0.4850025", "0.48399574", "0.48392442", "0.4835953", "0.4791143", "0.47865784", "0.47661716", "0.47573167", "0.475159", "0.47477666", "0.47400033", "0.47372872", "0.47293976", "0.47288108", "0.47155747", "0.4701324", "0.4685934", "0.46816263", "0.4681032", "0.46738914", "0.46629456", "0.4659809", "0.46594855", "0.46520776", "0.46503207", "0.46430543", "0.46421638", "0.46410722", "0.46237737", "0.46161962", "0.46109414", "0.46007022", "0.45997763", "0.4598859", "0.45959935", "0.45954937", "0.45945317", "0.45922711", "0.45852458", "0.4569277", "0.45656294", "0.45647734", "0.45608565", "0.45581734", "0.45514643", "0.4550905", "0.4550905", "0.45504382", "0.45482898", "0.45464608", "0.4545387" ]
0.66920024
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.oneAgent
public void setOneagent(Long oneagent) { this.oneagent = oneagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public Long getOneagent() {\n return oneagent;\n }", "public void setAgentNumber(java.lang.String agentNumber) {\r\n this.agentNumber = agentNumber;\r\n }", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "public void setTwoagent(Long twoagent) {\n this.twoagent = twoagent;\n }", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void setAgentId(String agentId) {\n this.mAgentId = agentId;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public void setAgentIdJSON(String agentIdJSON) {\n try {\n JSONObject agentJSON = new JSONObject(agentIdJSON);\n if (agentJSON != null) {\n String agentID = agentJSON.getString(AGENT_ID_KEY);\n if (!TextUtils.isEmpty(agentID)) {\n mAgentId = agentID;\n }\n }\n } catch (JSONException e) {\n Utility.showToastNotification(e.toString());\n }\n }", "public String getAgentId() {\n return this.agentId;\n }", "public void selectAgent(int selected) {\n this.selected = selected;\n }", "public String getAgentId() {\n return agentId;\n }", "public java.lang.String getAgentNumber() {\r\n return agentNumber;\r\n }", "public void setProvinceagent(Long provinceagent) {\n this.provinceagent = provinceagent;\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public synchronized void setAgentCoordinate() {\n agentCoordinate = getCoordinate(agentState);\n }", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "public Integer getAgent() {\r\n return agent;\r\n }", "public void setAgentNoFk(Number value) {\r\n setAttributeInternal(AGENTNOFK, value);\r\n }", "public void setAgentName(String agentName) {\n this.agentName = agentName == null ? null : agentName.trim();\n }", "public void setAgentMoney(BigDecimal agentMoney) {\n this.agentMoney = agentMoney;\n }", "public void setCountyagent(Long countyagent) {\n this.countyagent = countyagent;\n }", "public void setCityagent(Long cityagent) {\n this.cityagent = cityagent;\n }", "public EntityID getAssignedAgentID();", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public void setMoneyGramAgentID(String moneyGramAgentID) {\n\n this.moneyGramAgentID = moneyGramAgentID;\n }", "public void setAgentContactPhone(String agentContactPhone) {\n this.agentContactPhone = agentContactPhone == null ? null : agentContactPhone.trim();\n }", "public void setAgencyNum(String agencyNum) {\n this.agencyNum = agencyNum;\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setAgencyId(int value) {\n this.agencyId = value;\n }", "public void setAgentName(java.lang.String agentName) {\r\n this.agentName = agentName;\r\n }", "public void setAuctioneer(AID agentAID) {\n this.AuctioneerAID = agentAID;\n }", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public Long getTwoagent() {\n return twoagent;\n }", "public void setNameOfShipAgent(java.lang.String nameOfShipAgent) {\n\t\t_tempNoTiceShipMessage.setNameOfShipAgent(nameOfShipAgent);\n\t}", "public void editTransactionAgent(Agent agent);", "T setJavaAgents(List<JavaAgent> javaAgents);", "public int getAdjusterAgent(int agent_id) {\n int id = 0;\n try {\n agentAdjuster.setInt(1, agent_id);\n ResultSet resultset = agentAdjuster.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"adjuster_id\");\n System.out.println(\"Adjuster ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "public void setManagerID(int managerID) { this.managerID = managerID; }", "public void setAgentContactor(String agentContactor) {\n this.agentContactor = agentContactor == null ? null : agentContactor.trim();\n }", "public void setHome_phone(Long home_phone);", "void setOwner(Agent agent) {\n\t\tsuper.setOwner(agent);\n\t\tthis.referencesFromCapacityMap.set(0);\n\t}", "public void setAgentCheckNumber(java.lang.String agentCheckNumber) {\r\n this.agentCheckNumber = agentCheckNumber;\r\n }", "public void ajouterAgent(int x,int y, int numAgent)\n {\n this.grille[x][y] = \"1\";\n }", "public void setAgentPort(String value) {\n setAttributeInternal(AGENTPORT, value);\n }", "public void setManagerPhone(String managerPhone) {\n this.managerPhone = managerPhone == null ? null : managerPhone.trim();\n }", "public final AgentIdentifier getAgent() {\n\t\treturn (this.__agent==null) ? null : this.__agent.get().getId();\n\t}", "public void setAgency(String agency) {\r\n this.agency = agency == null ? null : agency.trim();\r\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void updateAgentDeliveryNoSeq(String agentId, String inventoryDeliveryNo);", "public void setM_Production_ID (int M_Production_ID);", "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public void prepareAgent(Agent agent) {\n\t\t\t\tRole userRole = new Role();\n\t\t\t\tuserRole.role = Roles.AGENT;\n\t\t\t\tuserRole.user = agent.user;\n\t\t\t\tagent.user.roles.add(userRole);\n\t\t\t\tEbean.save(userRole);\n\t\t\t\tLOG.info(\"Adding role as an agent\");\n\t\t\t\tuserDao.save(agent.user);\n\t\t\t\tagent.form.status = FormStatus.PAID;\n\t\t}", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public String getAgentName ()\n {\n return agentName;\n\n }", "public String getAgent() {\n return this.agent;\n }", "@Override\n\tpublic void setMeetinExperienceFlagFromPH(int appointmentId, int meetingExpFromPH) {\n\t\ttry{\n\t\t\tjdbcTemplate.update(UPDATE_HASMEETINGEXPERIENCE_FROM_PH, (ps)->{\n\t\t\t\tps.setInt(1, meetingExpFromPH);\n\t\t\t\tps.setInt(2, appointmentId);\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public final void mT__134() throws RecognitionException {\r\n try {\r\n int _type = T__134;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:135:8: ( 'agent-id=' )\r\n // InternalSpringConfigDsl.g:135:10: 'agent-id='\r\n {\r\n match(\"agent-id=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);", "public void editAgentProfile(Agent agent);", "public void setEntityOneGUID(String entityOneGUID)\n {\n this.entityOneGUID = entityOneGUID;\n }", "public String getAgent() {\n return agent;\n }", "public void setExaminationType(ExaminationType_type1 param){\n \n this.localExaminationType=param;\n \n\n }", "@Override\n\tpublic int saveNewAgency(AgencyMaster newAgency) {\n\t\tlogger.debug(\"=====START AdminDAOImpl saveNewAgency======\");\n\t\tSession session = null;\n\t\ttry {\n\t\tsession = sessionFactory.openSession();\t\n\t\t\tTransaction tx = session.beginTransaction();\n\t\t\tsession.save(newAgency);\n\t\t tx.commit();\n\t\t} catch (HibernateException he) {\n\t\t\tlogger.error(\"Exception occured while inserting agency:\"\n\t\t\t\t\t+ he.getMessage());\n\t\t\tthrow new ERPException(\n\t\t\t\t\t\"Exception occured while inserting agency:\"\n\t\t\t\t\t\t\t+ he.getMessage());\n\t\t} catch (ERPException erp) {\n\t\t\tlogger.error(\"Exception occured while inserting agency:\"\n\t\t\t\t\t+ erp.getMessage());\n\t\t\tthrow new ERPException(\"Error while inserting agency\");\n\t\t} catch (Exception e) {\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\tlogger.debug(\"=====END AdminDAOImpl saveNewAgency======\");\n\t\t return 1;\n\t}", "public void setSeqNo (int SeqNo);", "public void setSeqNo (int SeqNo);", "public void setMobile_phone(Long mobile_phone);", "public int getAgentID(int agent_id) {\n int id = 0;\n try {\n checkAgentID.setInt(1, agent_id);\n ResultSet resultset = checkAgentID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"agent_id\");\n System.out.println(\"Agent ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"agent ID Invalid! No Agent Exists With That ID.\"); \n }\n return id;\n }", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "public void setColumnone(String columnone) {\n this.columnone = columnone == null ? null : columnone.trim();\n }", "public void setAgentArray(org.biocatalogue.x2009.xml.rest.Agent[] agentArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(agentArray, AGENT$0);\r\n }\r\n }", "public String getAgentContactPhone() {\n return agentContactPhone;\n }", "public Object setID(int iD)\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setId : \" + \"Agent\");\r\n/* 51 */ \tthis.myID = iD;\r\n/* 52 */ \treturn this;\r\n/* */ }", "public String getAgentName() {\n return agentName;\n }", "public String getAgencyNum() {\n return agencyNum;\n }", "@Override\n\tpublic void setField1(java.lang.String field1) {\n\t\t_employee.setField1(field1);\n\t}", "public void setAgentEventListener(AgentEventListener ael) {\r\n agentEventListener = ael;\r\n }", "public void setA1(int a1)\n {\n this.a1 = a1;\n }", "public void setAgentName(String value) {\n setAttributeInternal(AGENTNAME, value);\n }", "@Override\n\tpublic void setMinnum(long minnum) {\n\t\t_esfTournament.setMinnum(minnum);\n\t}", "public void setM_MovementConfirm_ID (int M_MovementConfirm_ID);", "public void updateAgentOrderNoSeq(String agentId, String inventoryOrderNo);", "@Override\n\tpublic void setStreet1(java.lang.String street1) {\n\t\t_candidate.setStreet1(street1);\n\t}", "public void setNumeroAnterior(int numeroAnterior)\r\n/* 205: */ {\r\n/* 206:214 */ this.numeroAnterior = numeroAnterior;\r\n/* 207: */ }", "@Length(max = NAME_MAX_LENGTH, message = \"length.MoneyGremAgentId\")\n @Pattern(regexp = \"[0-9^-]+\", message = \"pattern.MoneyGremAgentId\")\n public String getMoneyGramAgentID() {\n\n return moneyGramAgentID;\n }", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setTopagent(String topagent) {\n this.topagent = topagent == null ? null : topagent.trim();\n }", "public Long getProvinceagent() {\n return provinceagent;\n }", "public void xsetGPSAntennaDetailsID(org.apache.xmlbeans.XmlIDREF gpsAntennaDetailsID)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlIDREF target = null;\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().find_attribute_user(GPSANTENNADETAILSID$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlIDREF)get_store().add_attribute_user(GPSANTENNADETAILSID$14);\r\n }\r\n target.set(gpsAntennaDetailsID);\r\n }\r\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n org.beangle.security.session.protobuf.Model.Agent, org.beangle.security.session.protobuf.Model.Agent.Builder, org.beangle.security.session.protobuf.Model.AgentOrBuilder>\n getAgentFieldBuilder() {\n if (agentBuilder_ == null) {\n agentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n org.beangle.security.session.protobuf.Model.Agent, org.beangle.security.session.protobuf.Model.Agent.Builder, org.beangle.security.session.protobuf.Model.AgentOrBuilder>(\n getAgent(),\n getParentForChildren(),\n isClean());\n agent_ = null;\n }\n return agentBuilder_;\n }", "public void addAgent(String name)\r\n {\n \r\n }", "@PostMapping(value=\"/assignAgentToIntervention/{idManager}\", consumes = MediaType.APPLICATION_JSON_VALUE ,produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic AssignDTO post(@PathVariable(\"idManager\") int idManager ,@RequestParam(\"idAgent\") int idAgent, @RequestParam(\"idIntervention\") int idIntervention) throws AgentExeption, ManagerExeption, InterventionExeption{\n\t\t\n\t\tManagerDTO managerDTO = this.managerService.convertToDTO(this.managerService.getById(idManager));\n\t\tAgentDTO agentDTO = this.agentService.convertToDTO(this.agentService.getAgentById(idAgent));\n\t\tInterventionDTO interventionDTO = this.interventionService.convertToDTO(this.interventionService.getById(idIntervention));\n\t\tAssignDTO assignDTO = new AssignDTO();\n\t\tassignDTO.setManager(managerDTO);\n\t\tassignDTO.setAgent(agentDTO);\n\t\tinterventionDTO.setStatus(\"assigned\");\n\t\tassignDTO.setIntervention(interventionDTO);\n\t\tassignDTO.setStartValidate(new Date());\n\t\tassignDTO.setConfirm(false);\n\t\tassignDTO.setHasWritten(false);\n\t\tAssign assign = this.assignService.convertToEntity(assignDTO);\n\t\t//update intervention status & start date\n\t\tthis.interventionService.updateIntervention(this.interventionService.convertToEntity(interventionDTO));\n\t\t\n\t\t\n\t\treturn this.assignService.convertToDTO(this.assignService.assignAgentToIntervention(assign));\n\t\t\n\t}", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);" ]
[ "0.63639575", "0.5865114", "0.577655", "0.5775388", "0.57455903", "0.56586456", "0.56516105", "0.56437546", "0.56437546", "0.55946463", "0.54746866", "0.54506063", "0.5425559", "0.5381447", "0.53747743", "0.5362624", "0.5309026", "0.52663726", "0.5262275", "0.5262275", "0.5244018", "0.5220292", "0.52002317", "0.51996404", "0.51872826", "0.51632166", "0.5144669", "0.51366705", "0.5106597", "0.5095582", "0.5094191", "0.50929636", "0.5062436", "0.5057751", "0.5054449", "0.5018081", "0.5002723", "0.49921632", "0.49778932", "0.495868", "0.49579006", "0.4935473", "0.49259683", "0.48950824", "0.4879428", "0.48278472", "0.48200068", "0.48120013", "0.47910985", "0.4780787", "0.4771349", "0.47649094", "0.47597268", "0.47568855", "0.47534248", "0.47173363", "0.47150278", "0.47115746", "0.4703463", "0.4703422", "0.470162", "0.47015247", "0.4697145", "0.46956828", "0.4692474", "0.46749234", "0.46641523", "0.4638649", "0.46382177", "0.46354845", "0.4634827", "0.46343654", "0.46343654", "0.4630461", "0.46253756", "0.46230164", "0.46224144", "0.4605266", "0.4604533", "0.457689", "0.45690623", "0.45651826", "0.45639408", "0.4557847", "0.45576903", "0.45406654", "0.45313466", "0.45255303", "0.45185006", "0.45104802", "0.4510266", "0.450503", "0.4504571", "0.44931713", "0.44847134", "0.44787747", "0.44752103", "0.44695804", "0.44647595", "0.44644266" ]
0.6979044
0
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.twoAgent
public Long getTwoagent() { return twoagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTwoagent(Long twoagent) {\n this.twoagent = twoagent;\n }", "public int getProperty2() {\n return property2_;\n }", "public int getProperty2() {\n return property2_;\n }", "public String getColumnNameTwo(){\n return columnNameTwoLbl.getText();\n }", "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public java.lang.String getAgentNumber() {\r\n return agentNumber;\r\n }", "public java.lang.String getSecondary2() {\n return secondary2;\n }", "public int getNum2() {\r\n\t\t\t\treturn num2_;\r\n\t\t\t}", "public Long getOneagent() {\n return oneagent;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "public int getNum2() {\r\n\t\t\treturn num2_;\r\n\t\t}", "public String getOther2() {\n return other2;\n }", "public String getBuild2Number() {\n\t\treturn \"\"+nb_build2;\n\t}", "public String getIntAttribute2() {\n return (String) getAttributeInternal(INTATTRIBUTE2);\n }", "public String getEntityTwoGUID()\n {\n return entityTwoGUID;\n }", "public String getAgentId() {\n return this.agentId;\n }", "public SoccerTeam getTeamTwo() {\n return teamTwo;\n }", "public String getCol2value() {\n return col2value;\n }", "public java.lang.String getZTEL_NUMBER2()\n {\n \n return __ZTEL_NUMBER2;\n }", "public String getAgentId() {\n return agentId;\n }", "public java.lang.String getHOUSE_NUM2()\n {\n \n return __HOUSE_NUM2;\n }", "public java.lang.String getValue2() {\n return this.value2;\n }", "public String getColumntwo() {\n return columntwo;\n }", "public int getScoreTeamTwo() throws ByeMatchException\r\n\t{\r\n\t\tif (isByeMatch)\r\n\t\t{\r\n\t\t\tthrow new ByeMatchException();\r\n\t\t}\r\n\t\treturn score2;\r\n\t}", "public EntityID getAssignedAgentID();", "public Object getCol2check() {\n return col2check;\n }", "public int getMemberId2() {\n return memberId2_;\n }", "public java.lang.String getAgentCheckNumber() {\r\n return agentCheckNumber;\r\n }", "public String getAttribute2() {\n return attribute2;\n }", "@Override\n\tpublic boolean getField2() {\n\t\treturn _second.getField2();\n\t}", "@Override\n\tpublic boolean getField2() {\n\t\treturn _employee.getField2();\n\t}", "public int getMemberId2() {\n return memberId2_;\n }", "public String getTrait2_j() {\n \t\treturn trait2;\n \t}", "@Length(max = NAME_MAX_LENGTH, message = \"length.MoneyGremAgentId\")\n @Pattern(regexp = \"[0-9^-]+\", message = \"pattern.MoneyGremAgentId\")\n public String getMoneyGramAgentID() {\n\n return moneyGramAgentID;\n }", "@TableElement(index = 3, name = \"Other Component\")\n public @Nullable Formula getOtherComponent() {\n return otherComponent;\n }", "public java.lang.String getSecondary1() {\n return secondary1;\n }", "public final AgentIdentifier getAgent() {\n\t\treturn (this.__agent==null) ? null : this.__agent.get().getId();\n\t}", "public java.lang.Integer getPRTNO2() {\n return PRTNO2;\n }", "public String secondary() {\n return this.secondary;\n }", "public String getId2() {\n return id2;\n }", "public int getAgentID(int agent_id) {\n int id = 0;\n try {\n checkAgentID.setInt(1, agent_id);\n ResultSet resultset = checkAgentID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"agent_id\");\n System.out.println(\"Agent ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"agent ID Invalid! No Agent Exists With That ID.\"); \n }\n return id;\n }", "public String getAttribute2()\n {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAgent() {\n return this.agent;\n }", "public String getOndaP2() {\r\n return ondaP2;\r\n }", "public int getUser2_ID() {\n\t\tInteger ii = (Integer) get_Value(\"User2_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "public java.lang.String getField1162() {\n java.lang.Object ref = field1162_;\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 field1162_ = s;\n return s;\n }\n }", "public Long getTesuryo02() {\r\n return tesuryo02;\r\n }", "public String getConstProperty2() {\n return this.constProperty2;\n }", "public Long getCityagent() {\n return cityagent;\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "public String getAttr2() {\n return attr2;\n }", "public String getAttr2() {\n return attr2;\n }", "public String getAttribute2() {\n return (String) getAttributeInternal(ATTRIBUTE2);\n }", "public java.lang.Integer getVar222() {\n return var222;\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "public java.lang.String getField1162() {\n java.lang.Object ref = field1162_;\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 field1162_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "public String getAttribute2() {\n return (String)getAttributeInternal(ATTRIBUTE2);\n }", "@Override\n\tpublic int getPlayerTwoScore() {\n\t\treturn super.getPlayerTwoScore();\n\t}", "public String getContactPhone2() {\n return contactPhone2;\n }", "@Override\n\tpublic java.lang.String getStreet2() {\n\t\treturn _candidate.getStreet2();\n\t}", "public String findAgentNameByAgentId(String agentId);", "public java.lang.Integer getVar222() {\n return var222;\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Long getProvinceagent() {\n return provinceagent;\n }", "public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public boolean getPlayerTwo()\n\t{\n\t\treturn playerTwo;\n\t}", "public int getTeamNo() {\r\n\t\treturn teamNo;\r\n\t}", "public int getRelationship(int otherASN) {\n\n for (AS tAS : this.providers) {\n if (tAS.getASN() == otherASN) {\n return AS.CUSTOMER_CODE;\n }\n }\n for (AS tAS : this.peers) {\n if (tAS.getASN() == otherASN) {\n return AS.PEER_CODE;\n }\n }\n for (AS tAS : this.customers) {\n if (tAS.getASN() == otherASN) {\n return AS.PROVIDER_CODE;\n }\n }\n\n if (otherASN == this.asn) {\n return 2;\n }\n\n throw new IllegalArgumentException(\"asked for relation on non-adj/non-self asn, depending on sim \"\n + \"this might be expected, if you're not, you should prob restart this sim...!\");\n }", "public String getAgent() {\n return agent;\n }", "public Long getKinkenriyou02() {\r\n return kinkenriyou02;\r\n }", "public int getOtherId() {\n return instance.getOtherId();\n }", "public java.lang.String getUserDefined02() {\n return userDefined02;\n }", "public BigDecimal getAgentMoney() {\n return agentMoney;\n }", "public int getAdjusterAgent(int agent_id) {\n int id = 0;\n try {\n agentAdjuster.setInt(1, agent_id);\n ResultSet resultset = agentAdjuster.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"adjuster_id\");\n System.out.println(\"Adjuster ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "public java.lang.String getField1102() {\n java.lang.Object ref = field1102_;\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 field1102_ = s;\n return s;\n }\n }", "private org.gwtbootstrap3.client.ui.Column get_f_Column2() {\n return build_f_Column2();\n }", "public java.lang.String getReference02() {\n return reference02;\n }", "public java.lang.String getField1102() {\n java.lang.Object ref = field1102_;\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 field1102_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getAccount2() // getAccount2 method start\n\t\t{\n\t\t\tif (accounts[debitBox1.getSelectedIndex() - 1].getStatus())\n\t\t\t{\n\t\t\t\treturn convertIncreasingName(debitBox2.getSelectedIndex());\n\t\t\t} // end if\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn convertDecreasingName(debitBox2.getSelectedIndex());\n\t\t\t} // end else\n\t\t\t\n\t\t}", "public java.lang.String getField1302() {\n java.lang.Object ref = field1302_;\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 field1302_ = s;\n return s;\n }\n }", "public java.lang.String getField1302() {\n java.lang.Object ref = field1302_;\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 field1302_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTopagent() {\n return topagent;\n }", "public String getAwayTeam();", "public String getAgentPort() {\n return (String)getAttributeInternal(AGENTPORT);\n }", "public Long getCountyagent() {\n return countyagent;\n }", "public String getADD_NUMBER2_MAND() {\r\n return ADD_NUMBER2_MAND;\r\n }", "public String getADD_NUMBER2_MAND() {\r\n return ADD_NUMBER2_MAND;\r\n }", "public java.lang.String getReceiverLastName2() {\r\n return receiverLastName2;\r\n }", "public java.lang.String getField1122() {\n java.lang.Object ref = field1122_;\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 field1122_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Integer getgOtherId() {\n return gOtherId;\n }", "public java.lang.String getPmRuleValue2() {\r\n return pmRuleValue2;\r\n }", "public Long getOtherLockNum() {\n return otherLockNum;\n }", "public java.lang.String getField1122() {\n java.lang.Object ref = field1122_;\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 field1122_ = s;\n return s;\n }\n }", "public String getBENEF_ADDRESS_2() {\r\n return BENEF_ADDRESS_2;\r\n }" ]
[ "0.66200304", "0.5821781", "0.57855415", "0.56868106", "0.56575143", "0.5595248", "0.54404575", "0.5415659", "0.5408638", "0.54064983", "0.539419", "0.5332674", "0.52958405", "0.52872235", "0.526595", "0.5258429", "0.5257282", "0.52492315", "0.5213436", "0.52006906", "0.5164756", "0.50972736", "0.5041212", "0.50147176", "0.4995608", "0.49757132", "0.49687073", "0.49687028", "0.4962748", "0.49447253", "0.4929919", "0.49154326", "0.49128243", "0.49088928", "0.49030286", "0.49008173", "0.48658773", "0.4861579", "0.48604292", "0.4853128", "0.48483512", "0.48348483", "0.48344958", "0.4830807", "0.48287287", "0.48125774", "0.48002023", "0.47990635", "0.47959477", "0.47952068", "0.4794753", "0.4794753", "0.47886476", "0.4785521", "0.47844303", "0.4783493", "0.4778243", "0.4778243", "0.4778243", "0.4778243", "0.4778243", "0.47731984", "0.4770851", "0.4763029", "0.4761281", "0.47588792", "0.47573474", "0.47470248", "0.4745517", "0.47448176", "0.47436428", "0.47427508", "0.47423053", "0.47338873", "0.4725383", "0.47243395", "0.47241408", "0.47226244", "0.47179016", "0.47098583", "0.47070876", "0.47016945", "0.47011235", "0.469482", "0.4690204", "0.4688454", "0.46857876", "0.4684662", "0.46814057", "0.46811372", "0.4678013", "0.46746475", "0.46746475", "0.46737695", "0.46681124", "0.4666703", "0.46613523", "0.46575046", "0.4652316", "0.46430665" ]
0.71512127
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.twoAgent
public void setTwoagent(Long twoagent) { this.twoagent = twoagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getTwoagent() {\n return twoagent;\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public void setOneagent(Long oneagent) {\n this.oneagent = oneagent;\n }", "public void setAgentNumber(java.lang.String agentNumber) {\r\n this.agentNumber = agentNumber;\r\n }", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "public void setEntityTwoGUID(String entityTwoGUID)\n {\n this.entityTwoGUID = entityTwoGUID;\n }", "public void setCountyagent(Long countyagent) {\n this.countyagent = countyagent;\n }", "public void setProvinceagent(Long provinceagent) {\n this.provinceagent = provinceagent;\n }", "public void setCityagent(Long cityagent) {\n this.cityagent = cityagent;\n }", "public void setAgentMoney(BigDecimal agentMoney) {\n this.agentMoney = agentMoney;\n }", "public void setA2(int a2)\n {\n this.a2 = a2;\n }", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public void setAgentNoFk(Number value) {\r\n setAttributeInternal(AGENTNOFK, value);\r\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setB2(int b2)\n {\n this.b2 = b2;\n }", "@Override\n\tpublic void setField2(boolean field2) {\n\t\t_employee.setField2(field2);\n\t}", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void setAgentId(String agentId) {\n this.mAgentId = agentId;\n }", "@Override\n\tpublic void setPlayerTwoScore(int playerTwoScore) {\n\t\tsuper.setPlayerTwoScore(playerTwoScore);\n\t}", "@Override\n\tpublic void setField2(boolean field2) {\n\t\t_second.setField2(field2);\n\t}", "public static void setEnemyTwo(boolean state)\r\n\t{\r\n\t\tenemyTwo = state;\r\n\t}", "public java.lang.String getAgentNumber() {\r\n return agentNumber;\r\n }", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "public void setOtherLockNum(Long otherLockNum) {\n this.otherLockNum = otherLockNum;\n }", "public synchronized void setAgentCoordinate() {\n agentCoordinate = getCoordinate(agentState);\n }", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "@Override\n\tpublic void setStreet2(java.lang.String street2) {\n\t\t_candidate.setStreet2(street2);\n\t}", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public void setUser2_ID(int User2_ID) {\n\t\tif (User2_ID <= 0)\n\t\t\tset_Value(\"User2_ID\", null);\n\t\telse\n\t\t\tset_Value(\"User2_ID\", new Integer(User2_ID));\n\t}", "public void setMoneyGramAgentID(String moneyGramAgentID) {\n\n this.moneyGramAgentID = moneyGramAgentID;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public void setSecondary2(java.lang.String secondary2) {\n this.secondary2 = secondary2;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "public String getAgentId() {\n return this.agentId;\n }", "public String getAgentId() {\n return agentId;\n }", "public void setTeamNo(int teamNo) {\r\n\t\tthis.teamNo = teamNo;\r\n\t}", "public Long getOneagent() {\n return oneagent;\n }", "public void setX2(int x2) {\n\t\tthis.x2 = x2;\n\t\tfireListenerSignal();\n\t}", "public void secondarySetOperator(com.hps.july.persistence.Operator arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOperator(arg0);\n }", "public void setAgentCheckNumber(java.lang.String agentCheckNumber) {\r\n this.agentCheckNumber = agentCheckNumber;\r\n }", "public boolean setScoreTeamTwo(int score)\r\n\t{\r\n\t\tif (!editableMatch)\r\n\t\t\treturn false;\r\n\t\tscore2 = score;\r\n\t\treturn true;\r\n\t}", "public Builder setProperty2(int value) {\n bitField0_ |= 0x00000010;\n property2_ = value;\n \n return this;\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public void setOther(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other other)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other)get_store().find_element_user(OTHER$18, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Other)get_store().add_element_user(OTHER$18);\r\n }\r\n target.set(other);\r\n }\r\n }", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setOtherUnit (jkt.hms.masters.business.MasUnit otherUnit) {\n\t\tthis.otherUnit = otherUnit;\n\t}", "public void setZTEL_NUMBER2(java.lang.String value)\n {\n if ((__ZTEL_NUMBER2 == null) != (value == null) || (value != null && ! value.equals(__ZTEL_NUMBER2)))\n {\n _isDirty = true;\n }\n __ZTEL_NUMBER2 = value;\n }", "public void setAgentPort(String value) {\n setAttributeInternal(AGENTPORT, value);\n }", "public void setMobile_phone(Long mobile_phone);", "public void ajouterAgent(int x,int y, int numAgent)\n {\n this.grille[x][y] = \"1\";\n }", "public void selectAgent(int selected) {\n this.selected = selected;\n }", "public void setOther2(String other2) {\n this.other2 = other2 == null ? null : other2.trim();\n }", "public void setGiro(int giro2){\n\t\t//hacer lo esto con giro set y get\n\t\tthis.giro=giro2;\n\t}", "public void setHOUSE_NUM2(java.lang.String value)\n {\n if ((__HOUSE_NUM2 == null) != (value == null) || (value != null && ! value.equals(__HOUSE_NUM2)))\n {\n _isDirty = true;\n }\n __HOUSE_NUM2 = value;\n }", "public void setCol2check(Object col2check) {\n this.col2check = col2check;\n }", "public int getProperty2() {\n return property2_;\n }", "public void setObj2 (String value) {\r\n Obj2 = value;\r\n }", "public void editTransactionAgent(Agent agent);", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public int getProperty2() {\n return property2_;\n }", "public void setHome_phone(Long home_phone);", "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public void setUserDefined02(java.lang.String userDefined02) {\n this.userDefined02 = userDefined02;\n }", "public void setEndTwoElement(ElementStub endTwoElement)\n {\n this.endTwoElement = endTwoElement;\n }", "public void setKinkenriyou02(Long kinkenriyou02) {\r\n this.kinkenriyou02 = kinkenriyou02;\r\n }", "void setP2p(int p2p);", "public void setM_Production_ID (int M_Production_ID);", "public void setTaxNumber2(\n @Nullable\n final String taxNumber2) {\n rememberChangedField(\"TaxNumber2\", this.taxNumber2);\n this.taxNumber2 = taxNumber2;\n }", "public SoccerTeam getTeamTwo() {\n return teamTwo;\n }", "public void setHC_Org2_ID (int HC_Org2_ID);", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public void setAddr2(String addr2) {\r\n this.addr2 = addr2;\r\n }", "public Reflector mo27134a(Object obj, Object obj2) throws C3885b {\n mo27140a(obj, this.f17271d, \"Field\");\n try {\n this.f17271d.set(obj, obj2);\n return this;\n } catch (Throwable th) {\n throw new C3885b(\"Oops!\", th);\n }\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setNode_2(java.lang.String node_2) {\n\t\t_dictData.setNode_2(node_2);\n\t}", "public void setAgentContactPhone(String agentContactPhone) {\n this.agentContactPhone = agentContactPhone == null ? null : agentContactPhone.trim();\n }", "public void setTopagent(String topagent) {\n this.topagent = topagent == null ? null : topagent.trim();\n }", "private void setVoterID(String[] voterID2)\n\t{\n\t\tthis.voterID = voterID2;\n\t}", "public void setNumpad2(boolean numpad2) {\n\tthis.numpad2 = numpad2;\n }", "public void setAgentIdJSON(String agentIdJSON) {\n try {\n JSONObject agentJSON = new JSONObject(agentIdJSON);\n if (agentJSON != null) {\n String agentID = agentJSON.getString(AGENT_ID_KEY);\n if (!TextUtils.isEmpty(agentID)) {\n mAgentId = agentID;\n }\n }\n } catch (JSONException e) {\n Utility.showToastNotification(e.toString());\n }\n }", "public void setInt (int number1, int number2) {\n this.number1 = number1;\n this.number2 = number2;\n }", "public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }", "public void setAttr2(String attr2) {\n this.attr2 = attr2;\n }", "public Enemy2(long nextEnemy2) {\n\t\tsuper();\n\t\tthis.nextEnemy2 = nextEnemy2 + 2000;\n\t}", "public void set(String arg0, int arg1, Object arg2) {\n\t\tthis.bdb.set(arg0,arg1,arg2);\n\t}", "public void editAgentProfile(Agent agent);", "public void setValue2(Object value2) { this.value2 = value2; }", "public void setColumntwo(String columntwo) {\n this.columntwo = columntwo == null ? null : columntwo.trim();\n }", "public void setNode_2(String node_2);", "public void setPRTNO2(java.lang.Integer PRTNO2) {\n this.PRTNO2 = PRTNO2;\n }", "public void setId2(int value) {\n this.id2 = value;\n }", "public void setAgentName(String agentName) {\n this.agentName = agentName == null ? null : agentName.trim();\n }", "@Override\n\tpublic void setMeetinExperienceFlagFromPH(int appointmentId, int meetingExpFromPH) {\n\t\ttry{\n\t\t\tjdbcTemplate.update(UPDATE_HASMEETINGEXPERIENCE_FROM_PH, (ps)->{\n\t\t\t\tps.setInt(1, meetingExpFromPH);\n\t\t\t\tps.setInt(2, appointmentId);\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public EntityID getAssignedAgentID();" ]
[ "0.62625617", "0.5819807", "0.55734926", "0.5457337", "0.5257064", "0.5231685", "0.5163021", "0.51296484", "0.51179016", "0.511128", "0.51071703", "0.50991356", "0.50892043", "0.5078423", "0.50740534", "0.50740534", "0.5073474", "0.5072953", "0.5019847", "0.5018603", "0.50032073", "0.49485528", "0.4927575", "0.49236107", "0.48804125", "0.4879784", "0.48667115", "0.48640776", "0.48530498", "0.48522338", "0.48398164", "0.48377094", "0.4833764", "0.4829437", "0.48031035", "0.47933367", "0.47933367", "0.47862902", "0.478073", "0.4775443", "0.4762449", "0.47541413", "0.4753421", "0.4728151", "0.47273272", "0.47159508", "0.47103742", "0.4709748", "0.4709686", "0.47092617", "0.4705667", "0.46931303", "0.4678498", "0.4674624", "0.46743307", "0.4662406", "0.46459836", "0.46457362", "0.46320927", "0.46298277", "0.46243036", "0.4624252", "0.45991343", "0.45971397", "0.45855066", "0.45826912", "0.45797202", "0.45762917", "0.45665643", "0.45661795", "0.45659155", "0.4557155", "0.45559597", "0.4546515", "0.45458084", "0.45395502", "0.45348996", "0.45313224", "0.45299312", "0.45208898", "0.4502604", "0.4496978", "0.44946575", "0.448752", "0.44872293", "0.44810665", "0.4477098", "0.44756845", "0.44756845", "0.44714025", "0.44663113", "0.44620392", "0.44611907", "0.44588408", "0.4454514", "0.44542834", "0.44497395", "0.4449061", "0.44487697", "0.44474965" ]
0.7365973
0
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.countyAgent
public Long getCountyagent() { return countyagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCountyagent(Long countyagent) {\n this.countyagent = countyagent;\n }", "public Long getCityagent() {\n return cityagent;\n }", "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public void setCityagent(Long cityagent) {\n this.cityagent = cityagent;\n }", "public Integer getCountyid() {\n return countyid;\n }", "public String getCounty()\n {\n \treturn county;\n }", "public String findAgentNameByAgentId(String agentId);", "public Integer getAgent() {\r\n return agent;\r\n }", "public String getCounty() {\r\n return county;\r\n }", "public String getCounty() {\n return county;\n }", "public Long getProvinceagent() {\n return provinceagent;\n }", "public java.lang.String getAgentNumber() {\r\n return agentNumber;\r\n }", "public String getCounty() {\n return mCounty;\n }", "public String getCountyFeature() {\n\n return (String) this.getAdditionalTagValue(\n GeographicErrorTest.MAPPED_FEATURE_TAG_ID, BGConcepts.COUNTY);\n }", "public String getAgentId() {\n return this.agentId;\n }", "public String getCounty_id() {\n return county_id;\n }", "public String getAgentId() {\n return agentId;\n }", "public String getCountyname() {\n return countyname;\n }", "public String getAgencyNum() {\n return agencyNum;\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "public int getAgentID(int agent_id) {\n int id = 0;\n try {\n checkAgentID.setInt(1, agent_id);\n ResultSet resultset = checkAgentID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"agent_id\");\n System.out.println(\"Agent ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"agent ID Invalid! No Agent Exists With That ID.\"); \n }\n return id;\n }", "public Long getTwoagent() {\n return twoagent;\n }", "public String getCountyCd() {\n\t\treturn countyCd;\n\t}", "public String getAgency() {\r\n return agency;\r\n }", "public Long getOneagent() {\n return oneagent;\n }", "public BigDecimal getBENEF_CITY() {\r\n return BENEF_CITY;\r\n }", "public String getAgent() {\n return this.agent;\n }", "public final AgentIdentifier getAgent() {\n\t\treturn (this.__agent==null) ? null : this.__agent.get().getId();\n\t}", "@Override\n public String toString() {\n return getCounty();\n }", "public EntityID getAssignedAgentID();", "public void setProvinceagent(Long provinceagent) {\n this.provinceagent = provinceagent;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public String getAgencyNm() {\n\t\treturn agencyNm;\n\t}", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "java.lang.String getAgentName();", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "@JsonGetter(\"agent\")\n public Object getAgent ( ) { \n return this.agent;\n }", "public String getAgent() {\n return agent;\n }", "private void getAgentName() {\n DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();\n DatabaseReference agentRef = rootRef.child(\"Properties\").child(globals.chosenProp).child(\"agent\");\n\n agentRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n agentName = dataSnapshot.getValue().toString();\n }\n getAgentEmail();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) { }\n });\n }", "public String getAgentName() {\n return agentName;\n }", "public String getCityno() {\n return cityno;\n }", "public String getTopagent() {\n return topagent;\n }", "public int getAgentCustomers(int agent_id) {\n int id = 0;\n try {\n checkAgentCustomers.setInt(1, agent_id);\n ResultSet resultset = checkAgentCustomers.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID is: \" + id + \"\\n\");\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Agent Doesn't Manage Any Customers Yet!\");\n }\n return id;\n }", "public BigDecimal getAgentMoney() {\n return agentMoney;\n }", "public int getAdjusterAgent(int agent_id) {\n int id = 0;\n try {\n agentAdjuster.setInt(1, agent_id);\n ResultSet resultset = agentAdjuster.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"adjuster_id\");\n System.out.println(\"Adjuster ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "public StrColumn getBookPublisherCity() {\n return delegate.getColumn(\"book_publisher_city\", DelegatingStrColumn::new);\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "@ApiModelProperty(value = \"所在-区\")\n public String getCounty() {\n return county;\n }", "public int getAgencyId() {\n return agencyId;\n }", "public String getCityCode() {\n return (String)getAttributeInternal(CITYCODE);\n }", "public String getAgentName() {\n return (String)getAttributeInternal(AGENTNAME);\n }", "public Long getCitiesCityCode() {\n return citiesCityCode;\n }", "public Agent findAgentByAgentId(String agentId);", "public int getEstimatedRevenue(int agent_id) {\n int total_revenue = 0;\n try {\n estimatedRevenue.setInt(1, agent_id);\n ResultSet resultset = estimatedRevenue.executeQuery();\n while (resultset.next()) {\n total_revenue += resultset.getInt(\"cost\");\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Customer_id invalid! No customer exists!!\");\n }\n return total_revenue;\n }", "public java.lang.String getAgentCheckNumber() {\r\n return agentCheckNumber;\r\n }", "public java.lang.String getAgentName() {\r\n return agentName;\r\n }", "public int getAgentsQty();", "public String getAgentsName()\n {\n return this.agentsName;\n }", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public String getCouname() {\n return couname;\n }", "public String getJobCity() {\r\n return jobCity;\r\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "public java.lang.String getShipAgencyCode() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyCode();\n\t}", "java.lang.String getRegisteredOfficeCity();", "public java.lang.String getNameOfShipAgent() {\n\t\treturn _tempNoTiceShipMessage.getNameOfShipAgent();\n\t}", "@Override\n\tpublic int updateAgencyValue(int strId, String agencyname, String city, String state) {\n\t\tlogger.debug(\"=====START AdminDAOImpl updateAgencyValue======\");\n\t\tSession session = null;\n\t\tint result=0;\n\t\ttry {\n\t\tsession = sessionFactory.openSession();\t\n\t\tQuery query=session.createQuery(\"UPDATE AgencyMaster as a SET a.statename=:newstate,a.cityname=:newcity where a.id=:newId\");\n\t\tquery.setParameter(\"newstate\", state);\n\t\tquery.setParameter(\"newcity\", city);\n\t\tquery.setParameter(\"newId\", strId);\n\t\tresult=query.executeUpdate();\n\t\t} catch (HibernateException he) {\n\t\t\tlogger.error(\"Exception occured while updating agency:\"\n\t\t\t\t\t+ he.getMessage());\n\t\t\tthrow new ERPException(\n\t\t\t\t\t\"Exception occured while updating agency:\"\n\t\t\t\t\t\t\t+ he.getMessage());\n\t\t} catch (ERPException erp) {\n\t\t\tlogger.error(\"Exception occured while updating agency:\"\n\t\t\t\t\t+ erp.getMessage());\n\t\t\tthrow new ERPException(\"Error while updating agency\");\n\t\t} catch (Exception e) {\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\tlogger.debug(\"=====END AdminDAOImpl updateAgencyValue======\");\n\t\treturn result;\n\t}", "public String getAreaCityCode() {\n return areaCityCode;\n }", "public String getPhnAreaCityCd()\n\t{\n\t\treturn mPhnAreaCityCd;\n\t}", "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public String getAgentPort() {\n return (String)getAttributeInternal(AGENTPORT);\n }", "public String getAgentContactPhone() {\n return agentContactPhone;\n }", "public int getCollegeNum() {\r\n\t\treturn collegeNum;\r\n\t}", "@Override\r\n\tpublic String getBind_house_ind() {\n\t\treturn super.getBind_house_ind();\r\n\t}", "public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "public String getAgentContactor() {\n return agentContactor;\n }", "public Agent findAgentByTempOrOrginalId(String agentId);", "public String getUs1120incomeStmt() {\n\n return this.us1120incomeStmt;\n }", "public void setCounty(String county) {\r\n this.county = county;\r\n }", "public java.lang.String getReceiveAgentAbbreviation() {\r\n return receiveAgentAbbreviation;\r\n }", "public String toStr() {\n\t\treturn getCollege();\n\t}", "public String getprop_no() {\n return (String)getNamedWhereClauseParam(\"prop_no\");\n }", "java.lang.String getArrivalAirportCity();", "public void setCounty(String county) {\n this.county = county;\n }", "public int getAgentsCount() {\n if (agentsBuilder_ == null) {\n return agents_.size();\n } else {\n return agentsBuilder_.getCount();\n }\n }", "public String getAgencyName() {\r\n return agencyName;\r\n }", "public java.math.BigDecimal getAgentCheckAmount() {\r\n return agentCheckAmount;\r\n }", "public void setAgencyNum(String agencyNum) {\n this.agencyNum = agencyNum;\n }", "public int getHouse_number() {\n return house_number;\n }", "int getIndividualStamina();", "public int getNOficina ()\r\n {\r\n return this.nOficina;\r\n }", "public String getCity()\r\n\t{\r\n\t\treturn city.getModelObjectAsString();\r\n\t}", "public void setAgentId(String agentId) {\n this.mAgentId = agentId;\n }", "private int getMaxOccupancy() throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\tint maxOccupancy = 0;\n\t\ttry {\n\t\t\tconn = JavaDatabaseConnection.getConnection();\n\t\t\tps = conn.prepareStatement(\"SELECT occupancy FROM room\");\n\t\t\tfinal ResultSet results = ps.executeQuery();\n\t\t\t\n\t\t\twhile(results.next()) {\n\t\t\t\tmaxOccupancy += results.getInt(\"occupancy\");\n\t\t\t}\n\t\t\treturn maxOccupancy;\n\t\t} finally {\n\t\t\tDBUtil.closeConnection(conn, ps);\n\t\t}\n\t}", "public String getCompanyCity() {\n return companyCity;\n }", "public String getAgentStipend() {\r\n return (String) getAttributeInternal(AGENTSTIPEND);\r\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public Long getDestinationCityId() {\n return destination.getCityId();\n }", "@java.lang.Override\n public int getIndividualStamina() {\n return individualStamina_;\n }" ]
[ "0.6546524", "0.6116691", "0.55294716", "0.54924685", "0.5485768", "0.5481962", "0.547271", "0.546395", "0.5389522", "0.53533125", "0.5353064", "0.5345692", "0.52859575", "0.5279653", "0.5217674", "0.52131784", "0.5145228", "0.51403534", "0.50992376", "0.50535786", "0.5038684", "0.5027231", "0.49782202", "0.49675462", "0.4957284", "0.49249583", "0.49194348", "0.49193525", "0.49150935", "0.48956257", "0.48565003", "0.48556834", "0.48504156", "0.48448616", "0.48265016", "0.48224673", "0.47936735", "0.4790941", "0.47908896", "0.47857258", "0.47710836", "0.47467214", "0.4732051", "0.47274363", "0.47251844", "0.47046083", "0.46951562", "0.46941432", "0.46845412", "0.4675626", "0.46743459", "0.46618998", "0.46571445", "0.46533686", "0.46520138", "0.46489307", "0.4634702", "0.46106273", "0.46100563", "0.4589609", "0.45654103", "0.45651582", "0.45630047", "0.4561116", "0.45290592", "0.4517049", "0.4508331", "0.45038298", "0.45032772", "0.44999534", "0.44987145", "0.44913137", "0.44903257", "0.44899893", "0.44795305", "0.44626442", "0.4447502", "0.44420773", "0.44415972", "0.44374174", "0.4436881", "0.4432268", "0.4419044", "0.44178212", "0.4411915", "0.4408322", "0.44078672", "0.4402245", "0.43945342", "0.4387067", "0.43819723", "0.43746352", "0.43730894", "0.4365388", "0.43591258", "0.43546498", "0.43366146", "0.43366146", "0.43357968", "0.43344903" ]
0.70557445
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.countyAgent
public void setCountyagent(Long countyagent) { this.countyagent = countyagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCountyagent() {\n return countyagent;\n }", "public void setCityagent(Long cityagent) {\n this.cityagent = cityagent;\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public void setProvinceagent(Long provinceagent) {\n this.provinceagent = provinceagent;\n }", "public Long getCityagent() {\n return cityagent;\n }", "public synchronized void setAgentCoordinate() {\n agentCoordinate = getCoordinate(agentState);\n }", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "public void setCounty(String county) {\r\n this.county = county;\r\n }", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "public void setCounty(String county) {\n this.county = county;\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "@Override\n\tpublic int updateAgencyValue(int strId, String agencyname, String city, String state) {\n\t\tlogger.debug(\"=====START AdminDAOImpl updateAgencyValue======\");\n\t\tSession session = null;\n\t\tint result=0;\n\t\ttry {\n\t\tsession = sessionFactory.openSession();\t\n\t\tQuery query=session.createQuery(\"UPDATE AgencyMaster as a SET a.statename=:newstate,a.cityname=:newcity where a.id=:newId\");\n\t\tquery.setParameter(\"newstate\", state);\n\t\tquery.setParameter(\"newcity\", city);\n\t\tquery.setParameter(\"newId\", strId);\n\t\tresult=query.executeUpdate();\n\t\t} catch (HibernateException he) {\n\t\t\tlogger.error(\"Exception occured while updating agency:\"\n\t\t\t\t\t+ he.getMessage());\n\t\t\tthrow new ERPException(\n\t\t\t\t\t\"Exception occured while updating agency:\"\n\t\t\t\t\t\t\t+ he.getMessage());\n\t\t} catch (ERPException erp) {\n\t\t\tlogger.error(\"Exception occured while updating agency:\"\n\t\t\t\t\t+ erp.getMessage());\n\t\t\tthrow new ERPException(\"Error while updating agency\");\n\t\t} catch (Exception e) {\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\tlogger.debug(\"=====END AdminDAOImpl updateAgencyValue======\");\n\t\treturn result;\n\t}", "public void setAgentId(String agentId) {\n this.mAgentId = agentId;\n }", "public void setAgentNumber(java.lang.String agentNumber) {\r\n this.agentNumber = agentNumber;\r\n }", "public void setTwoagent(Long twoagent) {\n this.twoagent = twoagent;\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public void setOneagent(Long oneagent) {\n this.oneagent = oneagent;\n }", "public void setAgencyNum(String agencyNum) {\n this.agencyNum = agencyNum;\n }", "public void setCountyid(Integer countyid) {\n this.countyid = countyid;\n }", "public void setAgentMoney(BigDecimal agentMoney) {\n this.agentMoney = agentMoney;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "public void setCounty(String county) {\n this.county = county == null ? null : county.trim();\n }", "public void setAgencyId(int value) {\n this.agencyId = value;\n }", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public void setCounty_id(String county_id) {\n this.county_id = county_id;\n }", "void setOwner(Agent agent) {\n\t\tsuper.setOwner(agent);\n\t\tthis.referencesFromCapacityMap.set(0);\n\t}", "public void setCountyname(String countyname) {\n this.countyname = countyname;\n }", "public void setUWCompany(entity.UWCompany value);", "public Integer getCountyid() {\n return countyid;\n }", "public void setAgency(String agency) {\r\n this.agency = agency == null ? null : agency.trim();\r\n }", "public void setCounselingField( String counselingField ) {\n this.counselingField = counselingField;\n }", "private void fillCountyManager(CountyManager cmr,CountyManagerForm countyManager) {\n\t\tCounty county = countyDao.findUniqueBy(\"countyId\", countyManager.getCountyId());\n\t\tcmr.setCounty(county);\n\t}", "public Long getProvinceagent() {\n return provinceagent;\n }", "public void setAgentContactor(String agentContactor) {\n this.agentContactor = agentContactor == null ? null : agentContactor.trim();\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "public void setNameOfShipAgent(java.lang.String nameOfShipAgent) {\n\t\t_tempNoTiceShipMessage.setNameOfShipAgent(nameOfShipAgent);\n\t}", "public void setAgentNoFk(Number value) {\r\n setAttributeInternal(AGENTNOFK, value);\r\n }", "public void selectAgent(int selected) {\n this.selected = selected;\n }", "T setJavaAgents(List<JavaAgent> javaAgents);", "public void setNY(int ny){\n newY=ny;\n }", "public String getAgentId() {\n return this.agentId;\n }", "public void setAddressCity(String addressCity) {\n this.addressCity = addressCity;\n }", "public String getAgentId() {\n return agentId;\n }", "public String getCounty_id() {\n return county_id;\n }", "public void setAuctioneer(AID agentAID) {\n this.AuctioneerAID = agentAID;\n }", "public void setAgentIdJSON(String agentIdJSON) {\n try {\n JSONObject agentJSON = new JSONObject(agentIdJSON);\n if (agentJSON != null) {\n String agentID = agentJSON.getString(AGENT_ID_KEY);\n if (!TextUtils.isEmpty(agentID)) {\n mAgentId = agentID;\n }\n }\n } catch (JSONException e) {\n Utility.showToastNotification(e.toString());\n }\n }", "public void setAgentName(java.lang.String agentName) {\r\n this.agentName = agentName;\r\n }", "public void prepareAgent(Agent agent) {\n\t\t\t\tRole userRole = new Role();\n\t\t\t\tuserRole.role = Roles.AGENT;\n\t\t\t\tuserRole.user = agent.user;\n\t\t\t\tagent.user.roles.add(userRole);\n\t\t\t\tEbean.save(userRole);\n\t\t\t\tLOG.info(\"Adding role as an agent\");\n\t\t\t\tuserDao.save(agent.user);\n\t\t\t\tagent.form.status = FormStatus.PAID;\n\t\t}", "public java.lang.String getAgentNumber() {\r\n return agentNumber;\r\n }", "public String getCounty() {\r\n return county;\r\n }", "public void setAgentName(String agentName) {\n this.agentName = agentName == null ? null : agentName.trim();\n }", "public void editAgentProfile(Agent agent);", "public int\t\t\t\t\t\t\tgetAgentsCount()\t\t\t\t\t\t\t{ return this.agents; }", "public String getCounty()\n {\n \treturn county;\n }", "public void setCity(String city);", "public String getCounty() {\n return county;\n }", "public void setTopagent(String topagent) {\n this.topagent = topagent == null ? null : topagent.trim();\n }", "@Override\n\tpublic int saveNewAgency(AgencyMaster newAgency) {\n\t\tlogger.debug(\"=====START AdminDAOImpl saveNewAgency======\");\n\t\tSession session = null;\n\t\ttry {\n\t\tsession = sessionFactory.openSession();\t\n\t\t\tTransaction tx = session.beginTransaction();\n\t\t\tsession.save(newAgency);\n\t\t tx.commit();\n\t\t} catch (HibernateException he) {\n\t\t\tlogger.error(\"Exception occured while inserting agency:\"\n\t\t\t\t\t+ he.getMessage());\n\t\t\tthrow new ERPException(\n\t\t\t\t\t\"Exception occured while inserting agency:\"\n\t\t\t\t\t\t\t+ he.getMessage());\n\t\t} catch (ERPException erp) {\n\t\t\tlogger.error(\"Exception occured while inserting agency:\"\n\t\t\t\t\t+ erp.getMessage());\n\t\t\tthrow new ERPException(\"Error while inserting agency\");\n\t\t} catch (Exception e) {\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\tlogger.debug(\"=====END AdminDAOImpl saveNewAgency======\");\n\t\t return 1;\n\t}", "public void setBENEF_CITY(BigDecimal BENEF_CITY) {\r\n this.BENEF_CITY = BENEF_CITY;\r\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public void editTransactionAgent(Agent agent);", "public void setJobCity(String jobCity) {\r\n this.jobCity = jobCity;\r\n }", "public void setArrivalCity(String arrivalcity) {\n\t\tSelect s1 = new Select(MyDriver.driver.findElement(By.id(HomePageIDs.ARRIVAL_TO_CITY_ID)));\n\t\ts1.selectByValue(arrivalcity);\n\t}", "public abstract void setCity(String sValue);", "@ConfDisplayName(\"Agent types\")\r\n\t@ConfXMLTag(\"AgentTypeCount\")\r\n\tpublic void setAgentTypes(int count) {\r\n\t\tthis.agentTypeCount = count;\r\n\t\tagentCountChanged();\r\n\t}", "@Override\n protected void set(org.tair.db.locusdetail.ILocusDetail dto) {\n locusLocus = dto;\n }", "public void setEAIndividual(AbstractEAIndividual indy) {\n this.m_Indy = indy;\n }", "public String getAgencyNum() {\n return agencyNum;\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "public void setShipAgencyAddress(java.lang.String shipAgencyAddress) {\n\t\t_tempNoTiceShipMessage.setShipAgencyAddress(shipAgencyAddress);\n\t}", "int updateByPrimaryKeySelective(County record);", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setAgentContactPhone(String agentContactPhone) {\n this.agentContactPhone = agentContactPhone == null ? null : agentContactPhone.trim();\n }", "public void setAgentCheckAmount(java.math.BigDecimal agentCheckAmount) {\r\n this.agentCheckAmount = agentCheckAmount;\r\n }", "public void setAgentCheckNumber(java.lang.String agentCheckNumber) {\r\n this.agentCheckNumber = agentCheckNumber;\r\n }", "public void setCityCount(int cityCount) {\n\t\tthis.cityCount = cityCount;\n\t}", "void slide_numAgents_stateChanged(ChangeEvent e) {\n lbl_agentCount.setText( Integer.toString( slide_numAgents.getValue() ) );\n }", "public EntityID getAssignedAgentID();", "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public void addAgentDf(AgentDefinition agentDf) {\n\t\tthis.agentDf = agentDf;\n\t}", "public void setRoadwayRef(java.lang.String roadwayRef)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ROADWAYREF$16);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ROADWAYREF$16);\r\n }\r\n target.setStringValue(roadwayRef);\r\n }\r\n }", "public String getCountyname() {\n return countyname;\n }", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setNOficina (Integer pNOficina)\r\n {\r\n this.nOficina=pNOficina;\r\n }", "public void setAgentContext(String value) {\n setAttributeInternal(AGENTCONTEXT, value);\n }", "public void ajouterAgent(int x,int y, int numAgent)\n {\n this.grille[x][y] = \"1\";\n }", "public void setAgentArray(int i, org.biocatalogue.x2009.xml.rest.Agent agent)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.Agent target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.Agent)get_store().find_element_user(AGENT$0, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(agent);\r\n }\r\n }", "private void countAgents(){\r\n\t\t\tfor(Agent agent : agents){\r\n\t\t\t\tif(agent.isActive()) activeAgent ++;\r\n\t\t\t\telse if(agent.getJailTerm() > 0) jailedAgent ++;\r\n\t\t\t\telse quietAgent ++;\r\n\t\t\t}\r\n\t\t}", "public String getCounty() {\n return mCounty;\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setCity(String s) {\r\n\t\tstate = s;\t\t\r\n\t}", "public Long getOneagent() {\n return oneagent;\n }", "public void setAgentName(String value) {\n setAttributeInternal(AGENTNAME, value);\n }" ]
[ "0.62952995", "0.61941576", "0.5915021", "0.56107765", "0.5462223", "0.5445213", "0.5400472", "0.5371523", "0.5335997", "0.53164077", "0.5305936", "0.5305936", "0.52962416", "0.52707934", "0.5237122", "0.5188564", "0.51577", "0.5075161", "0.50750965", "0.50439936", "0.50439936", "0.5033786", "0.50188446", "0.49911472", "0.4979763", "0.4950902", "0.4919479", "0.4913906", "0.48467538", "0.48308665", "0.48178205", "0.47886428", "0.47680226", "0.47428113", "0.47386494", "0.47312567", "0.47210425", "0.4715447", "0.470999", "0.47029936", "0.46923995", "0.46865585", "0.46800694", "0.46728343", "0.4663252", "0.46271318", "0.4617473", "0.4607517", "0.46063736", "0.4605932", "0.45713535", "0.45562568", "0.45521045", "0.45245954", "0.4523463", "0.4511558", "0.45109144", "0.45062277", "0.44747198", "0.44734806", "0.44652617", "0.44471842", "0.4443433", "0.44416207", "0.44187796", "0.44186813", "0.44015196", "0.43801272", "0.43799424", "0.43724915", "0.43702003", "0.43692055", "0.43672547", "0.43612546", "0.43584624", "0.4358366", "0.43565544", "0.4347679", "0.43328214", "0.43293476", "0.4326399", "0.43230966", "0.43213028", "0.4319203", "0.43158773", "0.43069667", "0.42924684", "0.4287965", "0.42822707", "0.42822707", "0.4282207", "0.42655066", "0.42650586", "0.42647263", "0.4262128", "0.42579395", "0.4254741", "0.4253568", "0.42487332", "0.42474282" ]
0.7331369
0
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.cityAgent
public Long getCityagent() { return cityagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCityagent(Long cityagent) {\n this.cityagent = cityagent;\n }", "public String getCityno() {\n return cityno;\n }", "public Long getCitiesCityCode() {\n return citiesCityCode;\n }", "public Long getCountyagent() {\n return countyagent;\n }", "public Integer getCityid() {\n return cityid;\n }", "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}", "public String getCity_id() {\n return city_id;\n }", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCity() {\n return city;\n }", "public Integer getCity() {\n return city;\n }", "public Long getCityId() {\n return cityId;\n }", "public String getCityCode() {\n return (String)getAttributeInternal(CITYCODE);\n }", "public String getCityCode() {\n return cityCode;\n }", "public String getCityCode() {\n return cityCode;\n }", "public String getAdmCity() {\n return admCity;\n }", "public String getJobCity() {\r\n return jobCity;\r\n }", "public String getCityId() {\r\n return cityId;\r\n }", "public String getCityId() {\n return cityId;\n }", "public String getCity()\r\n\t{\r\n\t\treturn city.getModelObjectAsString();\r\n\t}", "public Long getCityId() {\n\t\treturn cityId;\n\t}", "public String getArrivalCity() {\n\t\treturn arrivalCityElement.getAttribute(\"value\");\n\t}", "@SuppressWarnings(\"unused\")\n public Integer getCityID() { return cityID; }", "public Long getDestinationCityId() {\n return destination.getCityId();\n }", "public String getCity() {\r\n\t\treturn city;\t\t\r\n\t}", "public String getCompanyCity() {\n return companyCity;\n }", "public String getCity() {\r\n\t\treturn city;\r\n\t}", "public String getCity() {\r\n\t\treturn city;\r\n\t}", "public String getCity() {\n return (String) get(\"city\");\n }", "public String getCity() {\n\t\treturn this.city;\n\t}", "public java.lang.String getCitycode() {\n\t\treturn _dmHistoryMaritime.getCitycode();\n\t}", "public String getCity()\n {\n \treturn city;\n }", "public String getContactCity() {\n return contactCity;\n }", "public String getCity()\n\t{\n\t\treturn City;\n\t\t\n\t}", "public String getCity()\n\t{\n\t\treturn city;\n\t}", "public StrColumn getBookPublisherCity() {\n return delegate.getColumn(\"book_publisher_city\", DelegatingStrColumn::new);\n }", "public String getPhnAreaCityCd()\n\t{\n\t\treturn mPhnAreaCityCd;\n\t}", "public String getCity() \n\t{\n\t\treturn city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getdDestinationcityid() {\n return dDestinationcityid;\n }", "public String getCity() {\n return (String)getAttributeInternal(CITY);\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return City;\n }", "public Short getCityId() {\r\n return cityId;\r\n }", "public Long getProvinceagent() {\n return provinceagent;\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public String getdArrivedcityid() {\n return dArrivedcityid;\n }", "public String getCity() {\n return city;\n }", "public String getDepartCity() {\n\t\treturn departCityElement.getAttribute(\"value\");\n\t}", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getdArrivedcity() {\n return dArrivedcity;\n }", "public java.lang.String getCity () {\n\t\treturn city;\n\t}", "public String getdDestinationcity() {\n return dDestinationcity;\n }", "public String getAreaCityCode() {\n return areaCityCode;\n }", "@Override\n\tpublic String getCity() {\n\t\treturn this.city;\n\t}", "public String getLocationCity() {\n return locationCity;\n }", "public java.lang.String getCity() {\r\n return city;\r\n }", "public String getCreatecity() {\n return createcity;\n }", "@AutoEscape\n\tpublic String getCity();", "java.lang.String getArrivalAirportCity();", "public java.lang.String getCity() {\n return City;\n }", "public Long getOriginCityId() {\n return origin.getCityId();\n }", "public java.lang.String getCity() {\n return city;\n }", "public java.lang.String getCity() {\n return city;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "@Override\n\tpublic java.lang.String getCity() {\n\t\treturn _candidate.getCity();\n\t}", "public String getReceiverCity() {\n return receiverCity;\n }", "@Override\n public String getCity() {\n return this.city;\n }", "public java.lang.String getSenderCity() {\r\n return senderCity;\r\n }", "public String getCityFieldName() {\n return getStringProperty(CITY_FIELD_NAME_KEY);\n }", "public void setCountyagent(Long countyagent) {\n this.countyagent = countyagent;\n }", "public java.lang.String getReceiverCity() {\r\n return receiverCity;\r\n }", "public BigDecimal getBENEF_CITY() {\r\n return BENEF_CITY;\r\n }", "public String getaAtcity() {\n return aAtcity;\n }", "public void setJobCity(String jobCity) {\r\n this.jobCity = jobCity;\r\n }", "public String getCorpCity() {\n return corpCity;\n }", "public String getCity(){\n return city;\n }", "public String getCity(){\n return city;\n }", "java.lang.String getDepartureAirportCity();", "public String getHospitalCity() {\n return hospitalCity;\n }", "public String getSrcCity() {\r\n return (String) getAttributeInternal(SRCCITY);\r\n }", "public String getAgentId() {\n return this.agentId;\n }", "public java.lang.String getArrivalAirportCity() {\n java.lang.Object ref = arrivalAirportCity_;\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 arrivalAirportCity_ = s;\n return s;\n }\n }" ]
[ "0.6584327", "0.61328423", "0.6022569", "0.60209346", "0.59617233", "0.5947774", "0.5935447", "0.5901055", "0.5901055", "0.5898084", "0.5898084", "0.58865887", "0.58794653", "0.5870358", "0.5870358", "0.5869066", "0.5838182", "0.58326584", "0.58056283", "0.5804711", "0.57959133", "0.5777819", "0.5773315", "0.5747124", "0.5730441", "0.57041776", "0.56957495", "0.56957495", "0.56899226", "0.56836885", "0.5669767", "0.566702", "0.5651635", "0.56490815", "0.5644852", "0.5638081", "0.56354225", "0.5633319", "0.56294656", "0.56294656", "0.56294656", "0.56294656", "0.5618777", "0.5618777", "0.5618777", "0.55981314", "0.55857307", "0.55779976", "0.55740803", "0.5556615", "0.5554971", "0.55486786", "0.55486786", "0.55486786", "0.5535435", "0.5529416", "0.5511784", "0.55065745", "0.55065745", "0.55065745", "0.55065745", "0.55065745", "0.55065745", "0.55065745", "0.55065745", "0.55065745", "0.55065745", "0.549942", "0.54989165", "0.5491767", "0.54895", "0.54737145", "0.5472897", "0.5471412", "0.54369736", "0.5435249", "0.54227525", "0.54224914", "0.5415098", "0.54113245", "0.54113245", "0.53996456", "0.53711325", "0.53603625", "0.5342395", "0.53358006", "0.5328877", "0.5319147", "0.5313115", "0.5312101", "0.53107613", "0.5291446", "0.5272283", "0.52524906", "0.52524906", "0.5250236", "0.5236514", "0.5229261", "0.5229109", "0.5215243" ]
0.7127523
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.cityAgent
public void setCityagent(Long cityagent) { this.cityagent = cityagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCityagent() {\n return cityagent;\n }", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCountyagent(Long countyagent) {\n this.countyagent = countyagent;\n }", "public void setJobCity(String jobCity) {\r\n this.jobCity = jobCity;\r\n }", "public void setAddressCity(String addressCity) {\n this.addressCity = addressCity;\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public void setCity(String city);", "public void setCity (String city) {\n\t\tthis.city=city;\n\t}", "public void setCity(City city) {\n this.city = city;\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city)\n\t{\n\t\tCity = city;\n\t}", "public void setCity(String city){\n\t\tthis.city = city;\n\t}", "public void setCity(String city){\n this.city = city;\n }", "public void setLocationCity(String locationCity) {\n this.locationCity = locationCity;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(City city) {\n\t\tthis.city = city;\n\t}", "public void setAdmCity(String admCity) {\n this.admCity = admCity == null ? null : admCity.trim();\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setContactCity(String contactCity) {\n this.contactCity = contactCity;\n }", "public void setProvinceagent(Long provinceagent) {\n this.provinceagent = provinceagent;\n }", "public void setCityid(Integer cityid) {\n this.cityid = cityid;\n }", "public void setArrivalCity(String arrivalcity) {\n\t\tSelect s1 = new Select(MyDriver.driver.findElement(By.id(HomePageIDs.ARRIVAL_TO_CITY_ID)));\n\t\ts1.selectByValue(arrivalcity);\n\t}", "public void setCity(int tourPosition, City city) {\n tour.set(tourPosition, city);\n // If the tours been altered we need to reset the fitness and distance\n fitness = 0;\n distance = 0;\n }", "public void setCity(java.lang.String city) {\r\n this.city = city;\r\n }", "public void setCity(java.lang.String City) {\n this.City = City;\n }", "public void setCity_id(String city_id) {\n this.city_id = city_id;\n }", "public void setCityId(Integer cityId) {\n this.cityId = cityId;\n }", "public void setCityId(Long cityId) {\n this.cityId = cityId;\n }", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "@Override\n\tpublic void setCity(java.lang.String city) {\n\t\t_candidate.setCity(city);\n\t}", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public boolean setCity(String someCity) {\n if (VMSPro.checkString(someCity)) {\n this.city = someCity;\n return true;\n }\n return false;\n }", "public void setCityKey( Long cityKey ) {\n this.cityKey = cityKey;\n }", "public void setCityId(String cityId) {\n this.cityId = cityId;\n }", "public void setCityId(String cityId) {\r\n this.cityId = cityId;\r\n }", "public void setCityCode(String cityCode) {\n this.cityCode = cityCode == null ? null : cityCode.trim();\n }", "public void setCity (java.lang.String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String value) {\n setAttributeInternal(CITY, value);\n }", "public String getCity_id() {\n return city_id;\n }", "public void setSenderCity(java.lang.String senderCity) {\r\n this.senderCity = senderCity;\r\n }", "public void setAgentContactor(String agentContactor) {\n this.agentContactor = agentContactor == null ? null : agentContactor.trim();\n }", "public void setCityCode(String value) {\n setAttributeInternal(CITYCODE, value);\n }", "@Override\n public void setCity(String a) {\n this.city = a;\n }", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "public void setCityno(String cityno) {\n this.cityno = cityno == null ? null : cityno.trim();\n }", "public void setCity(String city) {\n this.city = city == null ? null : city.trim();\n }", "public void setCity(String city) {\n this.city = city == null ? null : city.trim();\n }", "public void setCity(String city) {\n this.city = city == null ? null : city.trim();\n }", "public void setCity(String city) {\n this.city = city == null ? null : city.trim();\n }", "public void setCity(String city) {\n this.city = city == null ? null : city.trim();\n }", "public String getCityId() {\r\n return cityId;\r\n }", "public void setSrcCity(String value) {\r\n setAttributeInternal(SRCCITY, value);\r\n }", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public Long getCityId() {\n return cityId;\n }", "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "public String getCityno() {\n return cityno;\n }", "public Integer getCityid() {\n return cityid;\n }", "@Override\n\tpublic void setCityId(int CityId) {\n\t\t_locMstLocation.setCityId(CityId);\n\t}", "public void setAgentMoney(BigDecimal agentMoney) {\n this.agentMoney = agentMoney;\n }", "public String getCityId() {\n return cityId;\n }", "public abstract void setCity(String sValue);", "public Long getCityId() {\n\t\treturn cityId;\n\t}", "public void setCitiesCityCode(Long citiesCityCode) {\n this.citiesCityCode = citiesCityCode;\n }", "public void setReceiverCity(String receiverCity) {\n this.receiverCity = receiverCity;\n }", "public void setAgentContactPhone(String agentContactPhone) {\n this.agentContactPhone = agentContactPhone == null ? null : agentContactPhone.trim();\n }", "public void setArrivalCity(String arrivalCity) throws Exception {\n\t\tarrivalCityElement.click();\n\t\tarrivalCityElement.sendKeys(arrivalCity);\n\t\t\n\t\twaitForElementToAppear(airportListArrival);\n\t \tdriver.switchTo();\n\t \t\n\t \tList<WebElement> airPorts = airportListArrival.findElements(By.id(\"air-city-arrival-menu-item\"));\n\t \tfor (WebElement e: airPorts) {\n\t \t if (e.getText().contains(arrivalCity))\n\t \t \te.click();\n\t \t \tbreak;\n\t \t }\n\t}", "@Override\n\t@XmlElement\n\tpublic void setCityCode(String cityCode) {\n\t\t\n\t}", "public void setCorpCity(String corpCity) {\n this.corpCity = corpCity;\n }", "public void setCity( EAIMMCtxtIfc theCtxt, java.lang.String theCity) throws EAIException;", "public synchronized void setAgentCoordinate() {\n agentCoordinate = getCoordinate(agentState);\n }", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "@SuppressWarnings(\"unused\")\n public Integer getCityID() { return cityID; }", "public void setReceiverCity(java.lang.String receiverCity) {\r\n this.receiverCity = receiverCity;\r\n }", "public String getCityCode() {\n return cityCode;\n }", "public String getCityCode() {\n return cityCode;\n }", "@Override\n\tpublic int updateAgencyValue(int strId, String agencyname, String city, String state) {\n\t\tlogger.debug(\"=====START AdminDAOImpl updateAgencyValue======\");\n\t\tSession session = null;\n\t\tint result=0;\n\t\ttry {\n\t\tsession = sessionFactory.openSession();\t\n\t\tQuery query=session.createQuery(\"UPDATE AgencyMaster as a SET a.statename=:newstate,a.cityname=:newcity where a.id=:newId\");\n\t\tquery.setParameter(\"newstate\", state);\n\t\tquery.setParameter(\"newcity\", city);\n\t\tquery.setParameter(\"newId\", strId);\n\t\tresult=query.executeUpdate();\n\t\t} catch (HibernateException he) {\n\t\t\tlogger.error(\"Exception occured while updating agency:\"\n\t\t\t\t\t+ he.getMessage());\n\t\t\tthrow new ERPException(\n\t\t\t\t\t\"Exception occured while updating agency:\"\n\t\t\t\t\t\t\t+ he.getMessage());\n\t\t} catch (ERPException erp) {\n\t\t\tlogger.error(\"Exception occured while updating agency:\"\n\t\t\t\t\t+ erp.getMessage());\n\t\t\tthrow new ERPException(\"Error while updating agency\");\n\t\t} catch (Exception e) {\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t\tlogger.debug(\"=====END AdminDAOImpl updateAgencyValue======\");\n\t\treturn result;\n\t}", "public void setCityCount(int cityCount) {\n\t\tthis.cityCount = cityCount;\n\t}", "public Long getCountyagent() {\n return countyagent;\n }", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "public void setPhnAreaCityCd(String phnAreaCityCd) throws CustomerWebServiceException\n\t{\n\t\tvalidateParameter(VAL_MAX_LEN, PARM_NM_AREA_CD, \n\t\t\tphnAreaCityCd, MAX_PARM_LEN_AREA_CD, EXC_CD_AREA_CD);\n\n\t\tvalidateParameter(VAL_MIN_LEN, PARM_NM_AREA_CD, \n\t\t\tphnAreaCityCd, MIN_PARM_LEN_AREA_CD, EXC_CD_AREA_CD);\n\n\t\tmPhnAreaCityCd = phnAreaCityCd;\n\t}", "public String getAdmCity() {\n return admCity;\n }", "public void setCurrentCity(City newCity) {\n\t\tcurrentCity = newCity;\n\t\tchange();\n\t}", "public void setAgentId(String agentId) {\n this.mAgentId = agentId;\n }" ]
[ "0.63638246", "0.61217886", "0.61217886", "0.60287434", "0.60151225", "0.5920781", "0.58818686", "0.58662874", "0.5864168", "0.58508766", "0.5827198", "0.5827198", "0.5804004", "0.57992405", "0.57923156", "0.5784736", "0.57700205", "0.57522565", "0.5739305", "0.57349265", "0.57349265", "0.57349265", "0.57349265", "0.57349265", "0.57349265", "0.5731529", "0.5731529", "0.5715178", "0.5712346", "0.5712097", "0.5710307", "0.570372", "0.5677293", "0.56731147", "0.56651205", "0.5655327", "0.56515014", "0.56446713", "0.56446713", "0.56446713", "0.56446713", "0.5629886", "0.560081", "0.560081", "0.5570267", "0.5554927", "0.5535041", "0.5522009", "0.55209863", "0.55115485", "0.55070966", "0.55062944", "0.5472368", "0.5462435", "0.54449993", "0.5443649", "0.5442488", "0.54314524", "0.54201627", "0.54201627", "0.54201627", "0.54201627", "0.54201627", "0.5416337", "0.5411817", "0.54093385", "0.53898317", "0.53898317", "0.53781116", "0.5373578", "0.5371867", "0.5371867", "0.5361908", "0.5358151", "0.5352895", "0.53491855", "0.5348102", "0.5346722", "0.5345692", "0.5336844", "0.5334932", "0.5322858", "0.53102726", "0.53075916", "0.53050137", "0.53011084", "0.52909255", "0.52837896", "0.5277302", "0.52718186", "0.5265358", "0.5265358", "0.52552366", "0.5250302", "0.52084434", "0.52020264", "0.5196521", "0.5191948", "0.5191499", "0.518502" ]
0.71986747
0
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.provinceAgent
public Long getProvinceagent() { return provinceagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProvinceagent(Long provinceagent) {\n this.provinceagent = provinceagent;\n }", "public Integer getProvinceid() {\n return provinceid;\n }", "public Integer getProvinceid() {\n return provinceid;\n }", "public Integer getProvince() {\n return province;\n }", "public Integer getProvince() {\n return province;\n }", "public Integer getProvinceId() {\n return provinceId;\n }", "public Integer getProvinceId() {\n return provinceId;\n }", "public String getProvince() {\r\n return province;\r\n }", "public String getProvince() {\r\n return province;\r\n }", "public String getProvince() {\r\n return province;\r\n }", "public String getProvinceCode() {\n return provinceCode;\n }", "public String getProvinceCode() {\n return provinceCode;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getProvince() {\n return province;\n }", "public String getAgentId() {\n return this.agentId;\n }", "public Long getCityagent() {\n return cityagent;\n }", "@java.lang.Override\n public com.google.protobuf.StringValue getProvince() {\n return province_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : province_;\n }", "public String getAgentId() {\n return agentId;\n }", "public String getCorpProvince() {\n return corpProvince;\n }", "public com.google.protobuf.StringValue getProvince() {\n if (provinceBuilder_ == null) {\n return province_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : province_;\n } else {\n return provinceBuilder_.getMessage();\n }\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "public String findAgentNameByAgentId(String agentId);", "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public java.lang.String getAgentNumber() {\r\n return agentNumber;\r\n }", "public String getReceiverProvince() {\n return receiverProvince;\n }", "public EntityID getAssignedAgentID();", "public Long getProvinceCitiesCode() {\n return provinceCitiesCode;\n }", "public void setCityagent(Long cityagent) {\n this.cityagent = cityagent;\n }", "public Long getCountyagent() {\n return countyagent;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public String getAgentPort() {\n return (String)getAttributeInternal(AGENTPORT);\n }", "public String getProvinceName() {\n return provinceName;\n }", "@ApiModelProperty(value = \"所在-省\")\n public String getProvince() {\n return province;\n }", "public String getHospitalProvince() {\n return hospitalProvince;\n }", "public String getAgent() {\n return this.agent;\n }", "public String getStateProvinceFeature() {\n\n return (String) this.getAdditionalTagValue(\n GeographicErrorTest.MAPPED_FEATURE_TAG_ID, BGConcepts.STATE_PROVINCE);\n }", "public Long getProvinceCodeReside() {\n return provinceCodeReside;\n }", "public final AgentIdentifier getAgent() {\n\t\treturn (this.__agent==null) ? null : this.__agent.get().getId();\n\t}", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public int getAdjusterAgent(int agent_id) {\n int id = 0;\n try {\n agentAdjuster.setInt(1, agent_id);\n ResultSet resultset = agentAdjuster.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"adjuster_id\");\n System.out.println(\"Adjuster ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public String getAgencyNum() {\n return agencyNum;\n }", "public String getLocationProvince() {\n return locationProvince;\n }", "public String getAgentName ()\n {\n return agentName;\n\n }", "public String getAgentName() {\n return (String)getAttributeInternal(AGENTNAME);\n }", "public String getAgent() {\n return agent;\n }", "public String getAgency() {\r\n return agency;\r\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public int getAgentID(int agent_id) {\n int id = 0;\n try {\n checkAgentID.setInt(1, agent_id);\n ResultSet resultset = checkAgentID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"agent_id\");\n System.out.println(\"Agent ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"agent ID Invalid! No Agent Exists With That ID.\"); \n }\n return id;\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@Id\n\t@Column(name = \"SERV_PROV_CODE\")\n\t@AccelaGenerator(env = Context.AGENCY_CODE)\n\tpublic String getServiceProviderCode()\n\t{\n\t\treturn serviceProviderCode;\n\t}", "public com.google.protobuf.StringValueOrBuilder getProvinceOrBuilder() {\n if (provinceBuilder_ != null) {\n return provinceBuilder_.getMessageOrBuilder();\n } else {\n return province_ == null ?\n com.google.protobuf.StringValue.getDefaultInstance() : province_;\n }\n }", "public Integer getBankProvinceId() {\r\n return bankProvinceId;\r\n }", "public String getAgentName() {\n return agentName;\n }", "@Override\n\tpublic String getProvincia() {\n\t\treturn model.getProvincia();\n\t}", "public Province getLivingProvince() {\n return livingProvince;\n }", "public Agent findAgentByAgentId(String agentId);", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "@Length(max = NAME_MAX_LENGTH, message = \"length.MoneyGremAgentId\")\n @Pattern(regexp = \"[0-9^-]+\", message = \"pattern.MoneyGremAgentId\")\n public String getMoneyGramAgentID() {\n\n return moneyGramAgentID;\n }", "public BigDecimal getAgentMoney() {\n return agentMoney;\n }", "public String getRegisterProvince() {\n return registerProvince;\n }", "public Long getOneagent() {\n return oneagent;\n }", "public String getLargestCityOf(String province){\n\n if (null == province || province.equals(\"\")) {\n throw new IllegalArgumentException(\"Invalid Province Name\");\n }\n\n for(int i = 0; i < provinces.length; i++) {\n\n if(provinces[i] != null &&\n provinces[i][NAME_OF_PROVINCE] != null &&\n provinces[i][NAME_OF_PROVINCE].equalsIgnoreCase(province)) {\n return provinces[i][NAME_OF_BIGGEST_CITY]; \n }\n\n }\n\n return null;\n }", "public void setProvinceId(Integer provinceId) {\n this.provinceId = provinceId;\n }", "public String getAssignedDepotForVehicleId(AgencyAndId vehicle);", "public String getBankProvince() {\r\n return bankProvince;\r\n }", "public Integer getAgcProGender() {\n\t\treturn agcProGender;\n\t}", "private void getAgentName() {\n DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();\n DatabaseReference agentRef = rootRef.child(\"Properties\").child(globals.chosenProp).child(\"agent\");\n\n agentRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n agentName = dataSnapshot.getValue().toString();\n }\n getAgentEmail();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) { }\n });\n }", "private String getAgentLista() {\n return agentLista;\n }", "java.lang.String getAgentName();", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public Long getTwoagent() {\n return twoagent;\n }", "public String getCapitalCityOf(String province) {\n\n if (null == province || province.equals(\"\")) {\n throw new IllegalArgumentException(\"Invalid Province Name\");\n }\n\n for(int i = 0; i < provinces.length; i++) {\n\n if(provinces[i] != null && \n provinces[i][NAME_OF_PROVINCE] != null &&\n provinces[i][NAME_OF_PROVINCE].equalsIgnoreCase(province)) {\n return provinces[i][NAME_OF_CAPITAL_CITY];\n }\n\n }\n return null;\n }", "@JsonGetter(\"agent\")\n public Object getAgent ( ) { \n return this.agent;\n }", "public java.lang.String getReceiveAgentAbbreviation() {\r\n return receiveAgentAbbreviation;\r\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public int getAgencyId() {\n return agencyId;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public String getDepartmentCode(final SessionContext ctx)\r\n\t{\r\n\t\treturn (String)getProperty( ctx, DEPARTMENTCODE);\r\n\t}", "public void setCountyagent(Long countyagent) {\n this.countyagent = countyagent;\n }", "public String getAgentContactor() {\n return agentContactor;\n }", "@AutoEscape\n\tpublic String getCodProvincia();", "public java.lang.Integer getDepartmentcode() {\n\treturn departmentcode;\n}", "public String getProvinceno() {\n return provinceno;\n }", "public void setProvinceCitiesCode(Long provinceCitiesCode) {\n this.provinceCitiesCode = provinceCitiesCode;\n }", "public void setAgentMoney(BigDecimal agentMoney) {\n this.agentMoney = agentMoney;\n }", "@java.lang.Override\n public com.google.protobuf.StringValueOrBuilder getProvinceOrBuilder() {\n return getProvince();\n }", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public java.lang.String getAgentName() {\r\n return agentName;\r\n }" ]
[ "0.6780136", "0.56256366", "0.56256366", "0.5604644", "0.5604644", "0.5517641", "0.5517641", "0.54281396", "0.54281396", "0.54281396", "0.5354953", "0.5354953", "0.53505754", "0.53505754", "0.53505754", "0.53505754", "0.53505754", "0.53505754", "0.53505754", "0.5307064", "0.5301106", "0.52233326", "0.5200462", "0.51924574", "0.5188756", "0.5175418", "0.51151174", "0.51039916", "0.50830644", "0.5069106", "0.5004597", "0.49929264", "0.4986462", "0.495444", "0.49413702", "0.49413702", "0.49413425", "0.49398708", "0.49368888", "0.4932455", "0.49108654", "0.4901475", "0.4828715", "0.48280066", "0.4818451", "0.48112002", "0.48106116", "0.48106116", "0.47938007", "0.4790829", "0.47875738", "0.47802284", "0.47636858", "0.47500554", "0.47403687", "0.47403687", "0.47403687", "0.47377926", "0.47260362", "0.4717409", "0.47154215", "0.46888858", "0.46654293", "0.46634912", "0.46628913", "0.46528822", "0.46443662", "0.46443662", "0.46431577", "0.4621131", "0.46062696", "0.459924", "0.4597768", "0.45895177", "0.45825496", "0.4580383", "0.45769474", "0.456836", "0.45454833", "0.4539822", "0.45357984", "0.45319223", "0.4531405", "0.4524728", "0.452258", "0.45218396", "0.45125753", "0.45100185", "0.45014876", "0.4500679", "0.44973084", "0.44792315", "0.44559893", "0.44553462", "0.44466767", "0.44421452", "0.44308195", "0.44281262", "0.44238877", "0.44124672" ]
0.72236377
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.provinceAgent
public void setProvinceagent(Long provinceagent) { this.provinceagent = provinceagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getProvinceagent() {\n return provinceagent;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(Integer province) {\n this.province = province;\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public void setProvince(String province) {\r\n this.province = province;\r\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setProvince(String province) {\n this.province = province;\n }", "public void setCityagent(Long cityagent) {\n this.cityagent = cityagent;\n }", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "public void setProvinceid(Integer provinceid) {\n this.provinceid = provinceid;\n }", "public void setAgentMoney(BigDecimal agentMoney) {\n this.agentMoney = agentMoney;\n }", "public void setLivingProvince(Province livingProvince) {\n this.livingProvince = livingProvince;\n }", "public void setProvinceId(Integer provinceId) {\n this.provinceId = provinceId;\n }", "public void setProvince(String province) {\r\n this.province = province == null ? null : province.trim();\r\n }", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setProvince(String province) {\n this.province = province == null ? null : province.trim();\n }", "public void setProvince(String province) {\n this.province = province == null ? null : province.trim();\n }", "public void setProvince(String province) {\n this.province = province == null ? null : province.trim();\n }", "public void setProvince(String province) {\n this.province = province == null ? null : province.trim();\n }", "public void setProvince(String province) {\n this.province = province == null ? null : province.trim();\n }", "public void setCountyagent(Long countyagent) {\n this.countyagent = countyagent;\n }", "public void setCorpProvince(String corpProvince) {\n this.corpProvince = corpProvince;\n }", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public void setProvinceCode(String provinceCode) {\n this.provinceCode = provinceCode == null ? null : provinceCode.trim();\n }", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "public void setLocationProvince(String locationProvince) {\n this.locationProvince = locationProvince;\n }", "public void setRegisterProvince(String registerProvince) {\n this.registerProvince = registerProvince;\n }", "public void setProvinceCitiesCode(Long provinceCitiesCode) {\n this.provinceCitiesCode = provinceCitiesCode;\n }", "public void setAgentId(String agentId) {\n this.mAgentId = agentId;\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setReceiverProvince(String receiverProvince) {\n this.receiverProvince = receiverProvince;\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "public void setCodProvincia(String codProvincia);", "public void setAgency(String agency) {\r\n this.agency = agency == null ? null : agency.trim();\r\n }", "public void setAgencyNum(String agencyNum) {\n this.agencyNum = agencyNum;\n }", "public Integer getProvinceid() {\n return provinceid;\n }", "public Integer getProvinceid() {\n return provinceid;\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public void setAgentNumber(java.lang.String agentNumber) {\r\n this.agentNumber = agentNumber;\r\n }", "public void setAgencyId(int value) {\n this.agencyId = value;\n }", "public void setProvinceCodeReside(Long provinceCodeReside) {\n this.provinceCodeReside = provinceCodeReside;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "@Override\n\tpublic void setProvincia(String provincia) {\n\t\tmodel.setProvincia(provincia);\n\t}", "public Integer getProvinceId() {\n return provinceId;\n }", "public Integer getProvinceId() {\n return provinceId;\n }", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public void setOneagent(Long oneagent) {\n this.oneagent = oneagent;\n }", "public void setAgentContactor(String agentContactor) {\n this.agentContactor = agentContactor == null ? null : agentContactor.trim();\n }", "public void setProvinceName(String provinceName) {\n this.provinceName = provinceName == null ? null : provinceName.trim();\n }", "public synchronized void setAgentCoordinate() {\n agentCoordinate = getCoordinate(agentState);\n }", "public String getAgentId() {\n return this.agentId;\n }", "public void setMoneyGramAgentID(String moneyGramAgentID) {\n\n this.moneyGramAgentID = moneyGramAgentID;\n }", "public void selectAgent(int selected) {\n this.selected = selected;\n }", "public void setAgentName(String agentName) {\n this.agentName = agentName == null ? null : agentName.trim();\n }", "public Long getCityagent() {\n return cityagent;\n }", "void setProvincia(String provincia);", "public String getAgentId() {\n return agentId;\n }", "public void setTwoagent(Long twoagent) {\n this.twoagent = twoagent;\n }", "public void prepareAgent(Agent agent) {\n\t\t\t\tRole userRole = new Role();\n\t\t\t\tuserRole.role = Roles.AGENT;\n\t\t\t\tuserRole.user = agent.user;\n\t\t\t\tagent.user.roles.add(userRole);\n\t\t\t\tEbean.save(userRole);\n\t\t\t\tLOG.info(\"Adding role as an agent\");\n\t\t\t\tuserDao.save(agent.user);\n\t\t\t\tagent.form.status = FormStatus.PAID;\n\t\t}", "public Integer getProvince() {\n return province;\n }", "public Integer getProvince() {\n return province;\n }", "public void setAgcProGender(Integer agcProGender) {\n\t\tthis.agcProGender = agcProGender;\n\t}", "public void setAgentPort(String value) {\n setAttributeInternal(AGENTPORT, value);\n }", "public void editAgentProfile(Agent agent);", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public void editTransactionAgent(Agent agent);", "public void setAgentContactPhone(String agentContactPhone) {\n this.agentContactPhone = agentContactPhone == null ? null : agentContactPhone.trim();\n }", "public void setAddressCity(String addressCity) {\n this.addressCity = addressCity;\n }", "public String getProvinceCode() {\n return provinceCode;\n }", "public String getProvinceCode() {\n return provinceCode;\n }", "public void setAgentIdJSON(String agentIdJSON) {\n try {\n JSONObject agentJSON = new JSONObject(agentIdJSON);\n if (agentJSON != null) {\n String agentID = agentJSON.getString(AGENT_ID_KEY);\n if (!TextUtils.isEmpty(agentID)) {\n mAgentId = agentID;\n }\n }\n } catch (JSONException e) {\n Utility.showToastNotification(e.toString());\n }\n }", "public void setAdministrativeGenderCode(com.walgreens.rxit.ch.cda.CE administrativeGenderCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CE target = null;\n target = (com.walgreens.rxit.ch.cda.CE)get_store().find_element_user(ADMINISTRATIVEGENDERCODE$10, 0);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.CE)get_store().add_element_user(ADMINISTRATIVEGENDERCODE$10);\n }\n target.set(administrativeGenderCode);\n }\n }", "public void setNomProvincia(String nomProvincia);", "public void setC_Region_ID (int C_Region_ID);", "public void setDepartmentcode(java.lang.Integer newDepartment) {\n\tdepartmentcode = newDepartment;\n}", "public void insertSelective(HProvinceFb record) {\r\n getSqlMapClientTemplate().insert(\"H_PROVINCE_FB.ibatorgenerated_insertSelective\", record);\r\n }", "public void selectProvince(String Province){\r\n\r\n\t\tString Province1 = getValue(Province);\r\n\t\tString countrygroup_province =\"Italy\";\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+Province1);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:-\"+Province1+\" link should be selected\");\r\n\t\ttry{\r\n\t\t\tif((countrygroup_province).contains(countries.get(countrycount))){\r\n\t\t\t\twaitforElementVisible(locator_split(\"checkoutProvince\"));\r\n\t\t\t\tselectList(locator_split(\"checkoutProvince\"),Province1);\r\n\t\t\t\twaitForPageToLoad(20);\r\n\t\t\t\tsleep(1000);\r\n\t\t\t\tThread.sleep(2000);\r\n\t\t\t\tSystem.out.println(locator_split(\"checkoutProvince\")+\" link selected\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:-\"+Province1+\" is entered \");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Province is not applicable to this country \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+Province1+\" unable to enter\");\r\n\r\n\t\t}\r\n\t}", "public void setLBR_ProtestCode (String LBR_ProtestCode);", "public int updateByPrimaryKeySelective(HProvinceFb record) {\r\n int rows = getSqlMapClientTemplate().update(\"H_PROVINCE_FB.ibatorgenerated_updateByPrimaryKeySelective\", record);\r\n return rows;\r\n }", "public void setAgentNoFk(Number value) {\r\n setAttributeInternal(AGENTNOFK, value);\r\n }", "public String getProvince() {\r\n return province;\r\n }", "public String getProvince() {\r\n return province;\r\n }", "public String getProvince() {\r\n return province;\r\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "public void setHospitalProvince(String hospitalProvince) {\n this.hospitalProvince = hospitalProvince == null ? null : hospitalProvince.trim();\n }", "public void setAdmCity(String admCity) {\n this.admCity = admCity == null ? null : admCity.trim();\n }", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public void setBankProvinceId(Integer bankProvinceId) {\r\n this.bankProvinceId = bankProvinceId;\r\n }", "public void updateAgentDeliveryNoSeq(String agentId, String inventoryDeliveryNo);", "public EntityID getAssignedAgentID();", "protected void setMemberStatusCode(OptionMemberPmb pmb, String value) {\r\n Field field = DfReflectionUtil.getWholeField(pmb.getClass(), \"_memberStatusCode\");\r\n field.setAccessible(true);\r\n DfReflectionUtil.setValue(field, pmb, value);\r\n }", "public void setAgentName(java.lang.String agentName) {\r\n this.agentName = agentName;\r\n }", "public String getCorpProvince() {\n return corpProvince;\n }", "public void setProvinceName(Place somePlace) {\n /* don't need it. */\n if (somePlace.getAdmin1Name() != null) {\n return;\n }\n /* can't get it. no code */\n if (somePlace.getAdmin1() == null) {\n return;\n }\n\n Place adm1 = countries.getProvince(somePlace.getCountryCode(), somePlace.getAdmin1());\n if (adm1 != null) {\n somePlace.setAdmin1Name(adm1.getPlaceName());\n somePlace.setAdminName(adm1.getPlaceName());\n }\n }" ]
[ "0.64654815", "0.5944819", "0.5944819", "0.5754577", "0.5754577", "0.5650735", "0.5637837", "0.5637837", "0.5637837", "0.5636056", "0.5388166", "0.5388166", "0.5366051", "0.53529054", "0.532534", "0.52976054", "0.528157", "0.5252492", "0.5252492", "0.5245404", "0.5245404", "0.5245404", "0.5245404", "0.5245404", "0.524471", "0.52419", "0.52341026", "0.520192", "0.5168058", "0.5064831", "0.5041475", "0.4995036", "0.49793702", "0.4977434", "0.49704602", "0.49078503", "0.48989528", "0.48649725", "0.4842196", "0.48391253", "0.48378208", "0.48378208", "0.4824529", "0.4824529", "0.48143607", "0.48109517", "0.4810887", "0.47955614", "0.47812694", "0.47779754", "0.47779754", "0.476859", "0.4762944", "0.47564927", "0.47395352", "0.46841618", "0.4659742", "0.46597323", "0.46519557", "0.46269456", "0.46125197", "0.46090972", "0.46076077", "0.45762074", "0.45660228", "0.45505285", "0.45505285", "0.4540496", "0.4530526", "0.4522991", "0.45226854", "0.45115584", "0.44943142", "0.44939238", "0.44938573", "0.44938573", "0.44795385", "0.4467307", "0.44528514", "0.44405398", "0.4429746", "0.44231176", "0.44121575", "0.44086006", "0.4403333", "0.4398481", "0.43814194", "0.43814194", "0.43814194", "0.43732136", "0.43721202", "0.43669334", "0.43621817", "0.43586248", "0.43547893", "0.4349055", "0.43429902", "0.43426755", "0.4334258", "0.43156135" ]
0.74615
0
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.institution
public Long getInstitution() { return institution; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getInstitution_id() {\n return institution_id;\n }", "public String getInstitution() {\n return this.institution;\n }", "public String getInstitution()\n\t{\n\t\treturn this.institution;\n\t}", "public void setInstitution(Long institution) {\n this.institution = institution;\n }", "public String getInstitutionCode() {\n\t\treturn institutionCode;\n\t}", "public String getInstitutionCode() {\n return normalizedBic.substring(INSTITUTION_CODE_INDEX, INSTITUTION_CODE_INDEX + INSTITUTION_CODE_LENGTH);\n }", "public String getInstitution() {\n return userItem.getInstitution();\n }", "public String getInstitutionName() {\n return institutionName;\n }", "public void setInstitution_id(Long institution_id) {\n this.institution_id = institution_id;\n }", "public void setInstitution(String institution1) {\n this.institution = institution1;\n }", "public UUID getIdInstitution() {\n return idInstitution;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Plaid Institution ID associated with the Item.\")\n\n public String getInstitutionId() {\n return institutionId;\n }", "@Override\n\tpublic Record findByInsititutionName(String institution) {\n\t\treturn Db.findFirst(\"select *from institution_info where institution_name = '\"+institution+\"'\");\n\t}", "public InstitutionBean getInstitutionBean(InstitutionBean pObject) throws SQLException\n {\n InstitutionBean other = InstitutionManager.getInstance().createInstitutionBean();\n other.setInstitutionid(pObject.getParentid());\n return InstitutionManager.getInstance().loadUniqueUsingTemplate(other);\n }", "public void setInstitutionCode(String institutionCode) {\n\t\tthis.institutionCode = institutionCode;\n\t}", "public String getInstitutionCountry() {\n return institutionCountry;\n }", "public void setInstitution( final String institution )\n\t{\n\t\tthis.institution = institution;\n\t}", "public String getInstitute() {\n return institute;\n }", "public void setInstitutionName(String institutionName) {\n this.institutionName = institutionName;\n }", "public int countUsingTemplate(InstitutionBean pObject) throws SQLException\n {\n StringBuffer where = new StringBuffer(\"\");\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer _sql = null;\n StringBuffer _sqlWhere = null;\n \n try\n {\n _sql = new StringBuffer(\"SELECT count(*) as MCOUNT from institution WHERE \");\n _sqlWhere = new StringBuffer(\"\");\n int _dirtyCount = 0;\n \n if (pObject.isInstitutionidModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"institutionid= ?\");\n }\n \n if (pObject.isNameModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"name= ?\");\n }\n \n if (pObject.isAddressModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"address= ?\");\n }\n \n if (pObject.isCodeModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"code= ?\");\n }\n \n if (pObject.isProviderModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"provider= ?\");\n }\n \n if (pObject.isHeaderlogoModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"headerlogo= ?\");\n }\n \n if (pObject.isIsoModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"iso= ?\");\n }\n \n if (pObject.isFullnameModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"fullname= ?\");\n }\n \n if (pObject.isPhoneModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"phone= ?\");\n }\n \n if (pObject.isUrlModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"url= ?\");\n }\n \n if (pObject.isParentidModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"parentid= ?\");\n }\n \n if (pObject.isCompanyidModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"companyid= ?\");\n }\n \n if (_dirtyCount == 0)\n throw new SQLException (\"The pObject to look is unvalid : not initialized !\");\n \n _sql.append(_sqlWhere);\n c = getConnection();\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n \n _dirtyCount = 0;\n \n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n \n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n \n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n \n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n \n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n \n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n \n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n \n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n \n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n \n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n return countByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "@RequestMapping(value = \"getMatrix\", method = RequestMethod.GET, produces = \"application/json\")\n public DTAMatrixinstitution doGet(@RequestParam(value = \"institution\", required = true) String institution) {\n \t\n \tlog.info(\"[RESTAdmin][getMatrix]\");\n \t\n \tDTAMatrixinstitution data = new DTAMatrixinstitution(dao.findAdminMatrix(institution));\n \t// ¿como entro aquí y por donde?\n \t//dao's\n \t//return estructura_del_dao\n \n return data;\n }", "public InstitutionBean decodeRow(ResultSet rs) throws SQLException\n {\n InstitutionBean pObject = createInstitutionBean();\n pObject.setInstitutionid(Manager.getInteger(rs, 1));\n pObject.setName(rs.getString(2));\n pObject.setAddress(rs.getString(3));\n pObject.setCode(rs.getString(4));\n pObject.setProvider(Manager.getBoolean(rs, 5));\n pObject.setHeaderlogo(rs.getString(6));\n pObject.setIso(rs.getString(7));\n pObject.setFullname(rs.getString(8));\n pObject.setPhone(rs.getString(9));\n pObject.setUrl(rs.getString(10));\n pObject.setParentid(Manager.getInteger(rs, 11));\n pObject.setCompanyid(Manager.getInteger(rs, 12));\n\n pObject.isNew(false);\n pObject.resetIsModified();\n\n return pObject;\n }", "public String getInumber()\n\t{\n\t\treturn getInumber( getSession().getSessionContext() );\n\t}", "public String getJP_BankAccount_Value();", "public Integer getInstNo() {\n\t\treturn instNo;\n\t}", "public String getJP_BankData_ReferenceNo();", "public InstitutionBean decodeRow(ResultSet rs, int[] fieldList) throws SQLException\n {\n InstitutionBean pObject = createInstitutionBean();\n int pos = 0;\n for(int i = 0; i < fieldList.length; i++)\n {\n switch(fieldList[i]) {\n case ID_INSTITUTIONID:\n ++pos;\n pObject.setInstitutionid(Manager.getInteger(rs, pos));\n break;\n case ID_NAME:\n ++pos;\n pObject.setName(rs.getString(pos));\n break;\n case ID_ADDRESS:\n ++pos;\n pObject.setAddress(rs.getString(pos));\n break;\n case ID_CODE:\n ++pos;\n pObject.setCode(rs.getString(pos));\n break;\n case ID_PROVIDER:\n ++pos;\n pObject.setProvider(Manager.getBoolean(rs, pos));\n break;\n case ID_HEADERLOGO:\n ++pos;\n pObject.setHeaderlogo(rs.getString(pos));\n break;\n case ID_ISO:\n ++pos;\n pObject.setIso(rs.getString(pos));\n break;\n case ID_FULLNAME:\n ++pos;\n pObject.setFullname(rs.getString(pos));\n break;\n case ID_PHONE:\n ++pos;\n pObject.setPhone(rs.getString(pos));\n break;\n case ID_URL:\n ++pos;\n pObject.setUrl(rs.getString(pos));\n break;\n case ID_PARENTID:\n ++pos;\n pObject.setParentid(Manager.getInteger(rs, pos));\n break;\n case ID_COMPANYID:\n ++pos;\n pObject.setCompanyid(Manager.getInteger(rs, pos));\n break;\n }\n }\n pObject.isNew(false);\n pObject.resetIsModified();\n\n return pObject;\n }", "public String getJP_AcctMonth();", "public InstitutionBean save(InstitutionBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer _sql = null;\n\n try\n {\n c = getConnection();\n if (pObject.isNew())\n { // SAVE \n if (!pObject.isInstitutionidModified())\n {\n ps = c.prepareStatement(\"SELECT nextval('institutionid_seq')\");\n ResultSet rs = null;\n try\n {\n rs = ps.executeQuery();\n if(rs.next())\n pObject.setInstitutionid(Manager.getInteger(rs, 1));\n else\n getManager().log(\"ATTENTION: Could not retrieve generated key!\");\n }\n finally\n {\n getManager().close(ps, rs);\n ps=null;\n }\n }\n beforeInsert(pObject); // listener callback\n int _dirtyCount = 0;\n _sql = new StringBuffer(\"INSERT into institution (\");\n \n if (pObject.isInstitutionidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"institutionid\");\n _dirtyCount++;\n }\n\n if (pObject.isNameModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"name\");\n _dirtyCount++;\n }\n\n if (pObject.isAddressModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"address\");\n _dirtyCount++;\n }\n\n if (pObject.isCodeModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"code\");\n _dirtyCount++;\n }\n\n if (pObject.isProviderModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"provider\");\n _dirtyCount++;\n }\n\n if (pObject.isHeaderlogoModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"headerlogo\");\n _dirtyCount++;\n }\n\n if (pObject.isIsoModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"iso\");\n _dirtyCount++;\n }\n\n if (pObject.isFullnameModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"fullname\");\n _dirtyCount++;\n }\n\n if (pObject.isPhoneModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"phone\");\n _dirtyCount++;\n }\n\n if (pObject.isUrlModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"url\");\n _dirtyCount++;\n }\n\n if (pObject.isParentidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"parentid\");\n _dirtyCount++;\n }\n\n if (pObject.isCompanyidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"companyid\");\n _dirtyCount++;\n }\n\n _sql.append(\") values (\");\n if(_dirtyCount > 0) {\n _sql.append(\"?\");\n for(int i = 1; i < _dirtyCount; i++) {\n _sql.append(\",?\");\n }\n }\n _sql.append(\")\");\n\n ps = c.prepareStatement(_sql.toString(), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n _dirtyCount = 0;\n\n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n \n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n \n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n \n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n \n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n \n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n \n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n \n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n \n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n \n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n ps.executeUpdate();\n \n pObject.isNew(false);\n pObject.resetIsModified();\n afterInsert(pObject); // listener callback\n }\n else \n { // UPDATE \n beforeUpdate(pObject); // listener callback\n _sql = new StringBuffer(\"UPDATE institution SET \");\n boolean useComma=false;\n\n if (pObject.isInstitutionidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"institutionid\").append(\"=?\");\n }\n\n if (pObject.isNameModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"name\").append(\"=?\");\n }\n\n if (pObject.isAddressModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"address\").append(\"=?\");\n }\n\n if (pObject.isCodeModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"code\").append(\"=?\");\n }\n\n if (pObject.isProviderModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"provider\").append(\"=?\");\n }\n\n if (pObject.isHeaderlogoModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"headerlogo\").append(\"=?\");\n }\n\n if (pObject.isIsoModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"iso\").append(\"=?\");\n }\n\n if (pObject.isFullnameModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"fullname\").append(\"=?\");\n }\n\n if (pObject.isPhoneModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"phone\").append(\"=?\");\n }\n\n if (pObject.isUrlModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"url\").append(\"=?\");\n }\n\n if (pObject.isParentidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"parentid\").append(\"=?\");\n }\n\n if (pObject.isCompanyidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"companyid\").append(\"=?\");\n }\n _sql.append(\" WHERE \");\n _sql.append(\"institution.institutionid=?\");\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n int _dirtyCount = 0;\n\n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n\n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n\n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n\n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n\n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n\n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n\n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n\n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n\n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n\n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n\n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n\n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n if (_dirtyCount == 0) {\n return pObject;\n }\n \n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n ps.executeUpdate();\n pObject.resetIsModified();\n afterUpdate(pObject); // listener callback\n }\n \n return pObject;\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "@Optional\n @ImportColumn(\"AUSSTATTUNG\")\n Property<Integer> ausstattung();", "public InstitutionBean createInstitutionBean()\n {\n return new InstitutionBean();\n }", "public void setInstitutionCountry(String institutionCountry) {\n this.institutionCountry = institutionCountry;\n }", "@Override\n @Restrict(\"#{s:hasPermission('InstitutionManager', 'viewInstitution', null)}\")\n public String viewInstitutionForTM() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"viewInstitutionForTM\");\n }\n String jsfPage;\n\n choosenInstitutionForAdmin = (Institution) Component.getInstance(\"choosenInstitutionForAdmin\");\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager()) {\n jsfPage = viewInstitutionForTM(choosenInstitutionForAdmin);\n } else {\n jsfPage = viewInstitutionForTM(Institution.getLoggedInInstitution());\n }\n\n return jsfPage;\n }", "public String getInstusrid() {\r\n return instusrid;\r\n }", "public InstitutionBean loadByPrimaryKey(Integer institutionid) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n try \n {\n c = getConnection();\n ps = c.prepareStatement(\"SELECT \" + ALL_FIELDS + \" FROM institution WHERE institution.institutionid=?\",ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n Manager.setInteger(ps, 1, institutionid);\n InstitutionBean pReturn[] = loadByPreparedStatement(ps);\n if (pReturn.length < 1)\n return null;\n else\n return pReturn[0];\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public InstitutionBean loadUniqueUsingTemplate(InstitutionBean pObject) throws SQLException\n {\n InstitutionBean[] pReturn = loadUsingTemplate(pObject);\n if (pReturn.length == 0)\n return null;\n if (pReturn.length > 1)\n throw new SQLException(\"More than one element !!\");\n return pReturn[0];\n }", "public String getSupEntRegunit() {\n return supEntRegunit;\n }", "public YangString getPlmnIdValue() throws JNCException {\n return (YangString)getValue(\"plmn-id\");\n }", "public int getJP_BankData_ID();", "public Institution() {\n this.name = \"Institution\";\n }", "public LabtestBean[] loadLabtestViaLabtestinstitution(InstitutionBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n String strSQL = \" SELECT \"\n + \" *\"\n + \" FROM \"\n + \" labtest,labtestinstitution\"\n + \" WHERE \" \n + \" labtestinstitution.institutionid = ?\"\n + \" AND labtestinstitution.labtestid = labtest.labtestid\";\n try\n {\n c = getConnection();\n ps = c.prepareStatement(strSQL,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n Manager.setInteger(ps, 1, pObject.getInstitutionid());\n return LabtestManager.getInstance().loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public String getJP_BankDataCustomerCode1();", "public final long getUIN() {\n\t return icqUIN;\n }", "public final String getNum_emp() {\n return getString(getNum_empAttribute(getMtDatabase()));\n }", "public String getJP_BankDataCustomerCode2();", "public String getAccountInst() {\n return accountInst;\n }", "public final int getRiippumatonMuuttuja() {\r\n return riippumatonMuuttuja;\r\n }", "public String getJP_SalesRep_Value();", "@Override\n @SuppressWarnings(\"unchecked\")\n @Restrict(\"#{s:hasPermission('InstitutionManager', 'viewInstitution', null)}\")\n public String viewInstitutionForTM(final Institution inSelectedInstitution) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"viewInstitutionForTM\");\n }\n if (inSelectedInstitution == null) {\n return null;\n }\n selectedInstitution = entityManager.find(Institution.class, inSelectedInstitution.getId());\n Query query = entityManager\n .createQuery(\"select p from Person p join p.personFunction function, Institution i where p.institution = i and p.institution = \" +\n \":inInstitution and function = :inFunction\");\n query.setParameter(\"inFunction\", PersonFunction.getBillingFunction(entityManager));\n query.setParameter(\"inInstitution\", selectedInstitution);\n\n List<Person> foundContacts = query.getResultList();\n\n if (foundContacts.size() > 1) {\n LOG.error(\"-----------------------------------------------------------------------------\");\n LOG.error(\"Institution = Id(\" + selectedInstitution.getId() + \") \" + selectedInstitution.getName());\n LOG.error(\"Several FINANCIAL contacts found for that institution ! ONE IS REQUIRED ! FATAL Error ! FOUND = \"\n + foundContacts.size());\n\n for (int l = 0; l < foundContacts.size(); l++) {\n LOG.error(l + \" - FINANCIAL contact = Id(\" + foundContacts.get(l).getId() + \") \"\n + foundContacts.get(l).getLastname() + \" \" + foundContacts.get(l).getFirstname());\n\n }\n LOG.error(\"-----------------------------------------------------------------------------\");\n selectedContact = foundContacts.get(0);\n\n } else if (foundContacts.size() == 0) {\n\n selectedContact = new Person();\n\n } else if (foundContacts.size() == 1) {\n selectedContact = foundContacts.get(0);\n }\n\n checkInvoiceIntanciation(selectedInstitution);\n\n return \"/users/institution/showInstitution.seam\";\n }", "public String getOwningInstitutionBibId() {\n return owningInstitutionBibId;\n }", "public java.lang.String getIban()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IBAN$6, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }", "public InstitutionBean[] loadInstitutionViaContractanalysis(SampletypeBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n String strSQL = \" SELECT \"\n + \" *\"\n + \" FROM \"\n + \" institution,contractanalysis\"\n + \" WHERE \" \n + \" contractanalysis.sampletypeid = ?\"\n + \" AND contractanalysis.institutionid = institution.institutionid\";\n try\n {\n c = getConnection();\n ps = c.prepareStatement(strSQL,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n Manager.setInteger(ps, 1, pObject.getSampletypeid());\n return InstitutionManager.getInstance().loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public String getInstCode() {\n return instCode;\n }", "public Muniv getMuniv() {\r\n // STORED IN THE module's MainController\r\n return getMunivMainCtrl().getSelectedMuniv();\r\n }", "@Transient\n\t/**\n\t * @return the idInstituicao\n\t */\n\tpublic Integer getIdInstituicao() {\n\t\treturn idInstituicao;\n\t}", "public java.lang.String getImmunizationInj () {\n\t\treturn immunizationInj;\n\t}", "public String getInstId() {\r\n return instId;\r\n }", "public String getJP_BankAccountType();", "@Override\n public String manageCompany(Institution inInstitution) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"manageCompany\");\n }\n\n renderAddPanel = false;\n choosenInstitutionForAdmin = entityManager.find(Institution.class, inInstitution.getId());\n Contexts.getSessionContext().set(CHOOSEN_INSTITUTION_FOR_ADMIN, selectedInstitution);\n\n return \"/users/connectathon/listParticipants.seam\";\n }", "public int getNimpr() {\n return nimpr;\n }", "public String university() {\n return faker.fakeValuesService().resolve(\"educator.name\", this, faker) \n + \" \" \n + faker.fakeValuesService().resolve(\"educator.tertiary.type\", this, faker);\n }", "public String getIncompleteRequestingInstitution() {\n return incompleteRequestingInstitution;\n }", "public int getEnJeu(){\n\t\treturn MusiqueFiducial.enJeu;\n\t}", "public String getUniversityName(int uniId)\n {\n String universityName = null;\n PreparedStatement ps;\n try {\n if (con != null) {\n String sql = \"SELECT name from university where university.id = (?)\";\n ps = con.prepareStatement(sql);\n ps.setLong(1, uniId);\n\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n universityName = rs.getString(1);\n }\n }\n } catch (SQLException sqle) {\n System.out.println(\"Kann mich nicht verbinden\");\n sqle.printStackTrace();\n }\n return universityName;\n }", "public java.lang.String getRndManagingInstituteName() {\n return rndManagingInstituteName;\n }", "public String getInumber(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, INUMBER);\n\t}", "Integer getDomainTemplateColumn();", "public boolean isSetInstitutionID() {\n return this.institutionID != null;\n }", "public long getIdTutorIndustrial() {\n return this.idTutorIndustrial;\n }", "public Integer getUnitid() {\n return unitid;\n }", "public int intValue()\n {\n return this.month;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public int getUnitNum(){\n\t\treturn Integer.parseInt(unitNumLbl.getText());\n\t}", "public String getMiNo() {\r\n return miNo;\r\n }", "public String getSupMobil() {\n return supMobil;\n }", "public Integer getU_ID()\n {\n return this.U_ID;\n }", "public java.lang.String getRndSpecialInstituteName() {\n return rndSpecialInstituteName;\n }", "public int getM_Warehouse_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Warehouse_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public String getImsi() {\r\n return imsi;\r\n }", "public IntColumn getPdbxDatabaseIdPubMed() {\n return delegate.getColumn(\"pdbx_database_id_PubMed\", DelegatingIntColumn::new);\n }", "public InstitutionBean[] loadUsingTemplate(InstitutionBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer where = new StringBuffer(\"\");\n StringBuffer _sql = new StringBuffer(\"SELECT \" + ALL_FIELDS + \" from institution WHERE \");\n StringBuffer _sqlWhere = new StringBuffer(\"\");\n try\n {\n int _dirtyCount = 0;\n \n if (pObject.isInstitutionidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"institutionid= ?\");\n }\n \n if (pObject.isNameModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"name= ?\");\n }\n \n if (pObject.isAddressModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"address= ?\");\n }\n \n if (pObject.isCodeModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"code= ?\");\n }\n \n if (pObject.isProviderModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"provider= ?\");\n }\n \n if (pObject.isHeaderlogoModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"headerlogo= ?\");\n }\n \n if (pObject.isIsoModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"iso= ?\");\n }\n \n if (pObject.isFullnameModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"fullname= ?\");\n }\n \n if (pObject.isPhoneModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"phone= ?\");\n }\n \n if (pObject.isUrlModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"url= ?\");\n }\n \n if (pObject.isParentidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"parentid= ?\");\n }\n \n if (pObject.isCompanyidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"companyid= ?\");\n }\n \n if (_dirtyCount == 0) {\n throw new SQLException (\"The pObject to look for is invalid : not initialized !\");\n }\n _sql.append(_sqlWhere);\n c = getConnection();\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n _dirtyCount = 0;\n \n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n \n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n \n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n \n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n \n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n \n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n \n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n \n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n \n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n \n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n ps.executeQuery();\n return loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public int getM_Production_ID();", "public Integer getInsid() {\n return insid;\n }", "public java.lang.String getLocalAccountNr()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCALACCOUNTNR$4, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@javax.persistence.Column(name = \"unit\", precision = 5)\n\tpublic java.lang.String getUnit() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);\n\t}", "public int getC_UOM_ID() \n{\nInteger ii = (Integer)get_Value(\"C_UOM_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public String getTypeAccountInNumber() {\n return typeAccountInNumber;\n }", "public String getSupNo() {\n return supNo;\n }", "public NMonthSupplyReport getnMonthSupplyReport() {\r\n\t\treturn nMonthSupplyReport;\r\n\t}", "public String getInstprgid() {\r\n return instprgid;\r\n }", "@Override\n\tpublic String getJdbcTypeName() {\n\t\tString text = JdbcTypesManager.getJdbcTypes().getTextForCode( getJdbcTypeCode() );\n\t\treturn text != null ? text : \"???\" ;\n\t}", "java.lang.String getBankNo();", "public ArrayList<Institution> getFinalBank() {\n\t\treturn Bank;\n\t}", "public Integer getINTERNAL_ID() {\n return INTERNAL_ID;\n }", "public InstitutionalProposal getInstitutionalProposal() {\n return institutionalProposal;\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public String viewInstitutionDetailsFromDatatable(String institutionKeyword) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"viewInstitutionDetailsFromDatatable\");\n }\n\n if ((institutionKeyword == null) || (institutionKeyword.length() == 0)) {\n LOG.error(\"Cannot display company details - institutionKeyword given as paramer is null\");\n return \"/error.seam\";\n }\n\n List<Institution> list = null;\n Session session = (Session) entityManager.getDelegate();\n Criteria c = session.createCriteria(Institution.class);\n c.add(Restrictions.eq(\"keyword\", institutionKeyword));\n\n list = c.list();\n if (list.size() == 0) {\n StatusMessages.instance().addFromResourceBundle(StatusMessage.Severity.ERROR,\n \"gazelle.users.institution.CannotRenderThisPageCauseThisSystemBelongToSeveralCompany\");\n return \"/systems/listSystems.xhtml\";\n } else {\n selectedInstitution = list.get(0);\n return \"/users/institution/showInstitution.seam\";\n }\n }", "public int getM_Splitting_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Splitting_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public String getUsn() {\n return usn;\n }", "public String getAccountNo();" ]
[ "0.6881057", "0.6717317", "0.66834533", "0.6407007", "0.640365", "0.61705846", "0.61026704", "0.60722023", "0.6056451", "0.57710797", "0.57624465", "0.57260716", "0.5705066", "0.56911576", "0.56220543", "0.5555804", "0.55174196", "0.5498171", "0.5326378", "0.52943975", "0.5259281", "0.5128247", "0.5116874", "0.5106926", "0.50698847", "0.5050213", "0.5038044", "0.5011736", "0.4987661", "0.49466065", "0.4915621", "0.4900383", "0.48905638", "0.488891", "0.48458612", "0.48424566", "0.4831223", "0.4816931", "0.47931695", "0.47850522", "0.47291827", "0.47145215", "0.47131523", "0.4712355", "0.47111663", "0.47079703", "0.4706326", "0.4684542", "0.46731216", "0.46628177", "0.46620694", "0.46517488", "0.46319038", "0.46257046", "0.4608931", "0.46013072", "0.45892078", "0.45874646", "0.45774934", "0.4577128", "0.45676866", "0.45619604", "0.4556321", "0.4553376", "0.45519665", "0.45510995", "0.45023873", "0.44961962", "0.44940135", "0.4489544", "0.44858545", "0.44825405", "0.44820997", "0.44726375", "0.44665074", "0.44602713", "0.4459601", "0.44591263", "0.4453159", "0.4449903", "0.44471505", "0.44470075", "0.44459638", "0.44407177", "0.4436389", "0.4435673", "0.44321528", "0.44315732", "0.44271836", "0.4426701", "0.44205576", "0.44132254", "0.44088182", "0.440604", "0.4399524", "0.439695", "0.43946597", "0.43749738", "0.43745825", "0.4365556" ]
0.71396357
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.institution
public void setInstitution(Long institution) { this.institution = institution; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInstitution(String institution1) {\n this.institution = institution1;\n }", "public void setInstitution_id(Long institution_id) {\n this.institution_id = institution_id;\n }", "public void setInstitution( final String institution )\n\t{\n\t\tthis.institution = institution;\n\t}", "public Long getInstitution() {\n return institution;\n }", "public Long getInstitution_id() {\n return institution_id;\n }", "public void setInstitutionCode(String institutionCode) {\n\t\tthis.institutionCode = institutionCode;\n\t}", "public String getInstitution() {\n return this.institution;\n }", "public String getInstitution()\n\t{\n\t\treturn this.institution;\n\t}", "public void setInstitutionName(String institutionName) {\n this.institutionName = institutionName;\n }", "public String getInstitutionCode() {\n\t\treturn institutionCode;\n\t}", "public void setInstitutionCountry(String institutionCountry) {\n this.institutionCountry = institutionCountry;\n }", "public void setIdInstitution(String idInstitution) {\n this.idInstitution = UUID.fromString(idInstitution);\n }", "public InstitutionBean save(InstitutionBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer _sql = null;\n\n try\n {\n c = getConnection();\n if (pObject.isNew())\n { // SAVE \n if (!pObject.isInstitutionidModified())\n {\n ps = c.prepareStatement(\"SELECT nextval('institutionid_seq')\");\n ResultSet rs = null;\n try\n {\n rs = ps.executeQuery();\n if(rs.next())\n pObject.setInstitutionid(Manager.getInteger(rs, 1));\n else\n getManager().log(\"ATTENTION: Could not retrieve generated key!\");\n }\n finally\n {\n getManager().close(ps, rs);\n ps=null;\n }\n }\n beforeInsert(pObject); // listener callback\n int _dirtyCount = 0;\n _sql = new StringBuffer(\"INSERT into institution (\");\n \n if (pObject.isInstitutionidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"institutionid\");\n _dirtyCount++;\n }\n\n if (pObject.isNameModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"name\");\n _dirtyCount++;\n }\n\n if (pObject.isAddressModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"address\");\n _dirtyCount++;\n }\n\n if (pObject.isCodeModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"code\");\n _dirtyCount++;\n }\n\n if (pObject.isProviderModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"provider\");\n _dirtyCount++;\n }\n\n if (pObject.isHeaderlogoModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"headerlogo\");\n _dirtyCount++;\n }\n\n if (pObject.isIsoModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"iso\");\n _dirtyCount++;\n }\n\n if (pObject.isFullnameModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"fullname\");\n _dirtyCount++;\n }\n\n if (pObject.isPhoneModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"phone\");\n _dirtyCount++;\n }\n\n if (pObject.isUrlModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"url\");\n _dirtyCount++;\n }\n\n if (pObject.isParentidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"parentid\");\n _dirtyCount++;\n }\n\n if (pObject.isCompanyidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"companyid\");\n _dirtyCount++;\n }\n\n _sql.append(\") values (\");\n if(_dirtyCount > 0) {\n _sql.append(\"?\");\n for(int i = 1; i < _dirtyCount; i++) {\n _sql.append(\",?\");\n }\n }\n _sql.append(\")\");\n\n ps = c.prepareStatement(_sql.toString(), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n _dirtyCount = 0;\n\n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n \n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n \n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n \n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n \n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n \n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n \n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n \n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n \n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n \n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n ps.executeUpdate();\n \n pObject.isNew(false);\n pObject.resetIsModified();\n afterInsert(pObject); // listener callback\n }\n else \n { // UPDATE \n beforeUpdate(pObject); // listener callback\n _sql = new StringBuffer(\"UPDATE institution SET \");\n boolean useComma=false;\n\n if (pObject.isInstitutionidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"institutionid\").append(\"=?\");\n }\n\n if (pObject.isNameModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"name\").append(\"=?\");\n }\n\n if (pObject.isAddressModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"address\").append(\"=?\");\n }\n\n if (pObject.isCodeModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"code\").append(\"=?\");\n }\n\n if (pObject.isProviderModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"provider\").append(\"=?\");\n }\n\n if (pObject.isHeaderlogoModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"headerlogo\").append(\"=?\");\n }\n\n if (pObject.isIsoModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"iso\").append(\"=?\");\n }\n\n if (pObject.isFullnameModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"fullname\").append(\"=?\");\n }\n\n if (pObject.isPhoneModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"phone\").append(\"=?\");\n }\n\n if (pObject.isUrlModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"url\").append(\"=?\");\n }\n\n if (pObject.isParentidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"parentid\").append(\"=?\");\n }\n\n if (pObject.isCompanyidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"companyid\").append(\"=?\");\n }\n _sql.append(\" WHERE \");\n _sql.append(\"institution.institutionid=?\");\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n int _dirtyCount = 0;\n\n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n\n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n\n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n\n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n\n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n\n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n\n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n\n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n\n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n\n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n\n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n\n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n if (_dirtyCount == 0) {\n return pObject;\n }\n \n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n ps.executeUpdate();\n pObject.resetIsModified();\n afterUpdate(pObject); // listener callback\n }\n \n return pObject;\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public String getInstitutionName() {\n return institutionName;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Plaid Institution ID associated with the Item.\")\n\n public String getInstitutionId() {\n return institutionId;\n }", "public InstitutionBean setInstitutionBean(InstitutionBean pObject,InstitutionBean pObjectToBeSet)\n {\n pObject.setParentid(pObjectToBeSet.getInstitutionid());\n return pObject;\n }", "public UUID getIdInstitution() {\n return idInstitution;\n }", "public void setInstNo(Integer instNo) {\n\t\tthis.instNo = instNo;\n\t}", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public String getInstitutionCountry() {\n return institutionCountry;\n }", "public int countUsingTemplate(InstitutionBean pObject) throws SQLException\n {\n StringBuffer where = new StringBuffer(\"\");\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer _sql = null;\n StringBuffer _sqlWhere = null;\n \n try\n {\n _sql = new StringBuffer(\"SELECT count(*) as MCOUNT from institution WHERE \");\n _sqlWhere = new StringBuffer(\"\");\n int _dirtyCount = 0;\n \n if (pObject.isInstitutionidModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"institutionid= ?\");\n }\n \n if (pObject.isNameModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"name= ?\");\n }\n \n if (pObject.isAddressModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"address= ?\");\n }\n \n if (pObject.isCodeModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"code= ?\");\n }\n \n if (pObject.isProviderModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"provider= ?\");\n }\n \n if (pObject.isHeaderlogoModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"headerlogo= ?\");\n }\n \n if (pObject.isIsoModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"iso= ?\");\n }\n \n if (pObject.isFullnameModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"fullname= ?\");\n }\n \n if (pObject.isPhoneModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"phone= ?\");\n }\n \n if (pObject.isUrlModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"url= ?\");\n }\n \n if (pObject.isParentidModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"parentid= ?\");\n }\n \n if (pObject.isCompanyidModified()) {\n _dirtyCount++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"companyid= ?\");\n }\n \n if (_dirtyCount == 0)\n throw new SQLException (\"The pObject to look is unvalid : not initialized !\");\n \n _sql.append(_sqlWhere);\n c = getConnection();\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n \n _dirtyCount = 0;\n \n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n \n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n \n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n \n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n \n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n \n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n \n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n \n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n \n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n \n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n return countByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);", "public void setInstitute(String institute) {\n this.institute = institute;\n }", "public void setImmunizationInj (java.lang.String immunizationInj) {\n\t\tthis.immunizationInj = immunizationInj;\n\t}", "public String getInstitutionCode() {\n return normalizedBic.substring(INSTITUTION_CODE_INDEX, INSTITUTION_CODE_INDEX + INSTITUTION_CODE_LENGTH);\n }", "public void setJP_AcctMonth (String JP_AcctMonth);", "@Override\n public String manageCompany(Institution inInstitution) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"manageCompany\");\n }\n\n renderAddPanel = false;\n choosenInstitutionForAdmin = entityManager.find(Institution.class, inInstitution.getId());\n Contexts.getSessionContext().set(CHOOSEN_INSTITUTION_FOR_ADMIN, selectedInstitution);\n\n return \"/users/connectathon/listParticipants.seam\";\n }", "public InstitutionBean getInstitutionBean(InstitutionBean pObject) throws SQLException\n {\n InstitutionBean other = InstitutionManager.getInstance().createInstitutionBean();\n other.setInstitutionid(pObject.getParentid());\n return InstitutionManager.getInstance().loadUniqueUsingTemplate(other);\n }", "public void setJP_BankData_ID (int JP_BankData_ID);", "public Institution() {\n this.name = \"Institution\";\n }", "@Override\n\tpublic Record findByInsititutionName(String institution) {\n\t\treturn Db.findFirst(\"select *from institution_info where institution_name = '\"+institution+\"'\");\n\t}", "void afterInsert(InstitutionBean pObject) throws SQLException {\n if (listener != null)\n listener.afterInsert(pObject);\n }", "@Override\n @Restrict(\"#{s:hasPermission('InstitutionManager', 'updateInstitution', null)}\")\n public String updateInstitutionForTM(final int inSelectedInstitutionId) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"updateInstitutionForTM\");\n }\n\n selectedInstitution = entityManager.find(Institution.class, inSelectedInstitutionId);\n\n Contexts.getSessionContext().set(\"selectedInstitution\", selectedInstitution);\n // Initialization for Address\n\n checkInvoiceIntanciation(selectedInstitution);\n\n List<Person> foundContacts = Person.listAllBillingContacts(entityManager, selectedInstitution);\n\n if ((foundContacts == null) || (foundContacts.size() == 0)) {\n\n selectedContact = new Person();\n selectedContact.setInstitution(selectedInstitution);\n\n List<PersonFunction> functions = new ArrayList<PersonFunction>();\n functions.add(PersonFunction.getBillingFunction(entityManager));\n selectedContact.setPersonFunction(functions);\n\n } else if (foundContacts.size() > 1) {\n LOG.error(\"-----------------------------------------------------------------------------\");\n LOG.error(\"Institution = Id(\" + selectedInstitution.getId() + \") \" + selectedInstitution.getName());\n LOG.error(\"Several FINANCIAL contacts found for that institution ! ONE IS REQUIRED ! FATAL Error ! FOUND = \"\n + foundContacts.size());\n\n for (int l = 0; l < foundContacts.size(); l++) {\n LOG.error(l + \" - FINANCIAL contact = Id(\" + foundContacts.get(l).getId() + \") \"\n + foundContacts.get(l).getLastname() + \" \" + foundContacts.get(l).getFirstname());\n\n }\n\n LOG.error(\"-----------------------------------------------------------------------------\");\n\n selectedContact = foundContacts.get(0);\n\n } else if (foundContacts.size() == 1) {\n selectedContact = foundContacts.get(0);\n }\n\n if (selectedContact != null) {\n selectedContact.getAddress();\n }\n // We check the financial contact if it exists, we set it as currentConcact\n Contexts.getSessionContext().set(\"selectedContact\", selectedContact);\n Contexts.getSessionContext().set(\"selectedInstitution\", selectedInstitution);\n\n return \"/users/institution/editInstitution.seam\";\n }", "public void setInstitutionalProposal(InstitutionalProposal institutionalProposal) {\n this.institutionalProposal = institutionalProposal;\n }", "public String getInstitute() {\n return institute;\n }", "void afterUpdate(InstitutionBean pObject) throws SQLException {\n if (listener != null)\n listener.afterUpdate(pObject);\n }", "public String getInstitution() {\n return userItem.getInstitution();\n }", "public InstitutionBean decodeRow(ResultSet rs, int[] fieldList) throws SQLException\n {\n InstitutionBean pObject = createInstitutionBean();\n int pos = 0;\n for(int i = 0; i < fieldList.length; i++)\n {\n switch(fieldList[i]) {\n case ID_INSTITUTIONID:\n ++pos;\n pObject.setInstitutionid(Manager.getInteger(rs, pos));\n break;\n case ID_NAME:\n ++pos;\n pObject.setName(rs.getString(pos));\n break;\n case ID_ADDRESS:\n ++pos;\n pObject.setAddress(rs.getString(pos));\n break;\n case ID_CODE:\n ++pos;\n pObject.setCode(rs.getString(pos));\n break;\n case ID_PROVIDER:\n ++pos;\n pObject.setProvider(Manager.getBoolean(rs, pos));\n break;\n case ID_HEADERLOGO:\n ++pos;\n pObject.setHeaderlogo(rs.getString(pos));\n break;\n case ID_ISO:\n ++pos;\n pObject.setIso(rs.getString(pos));\n break;\n case ID_FULLNAME:\n ++pos;\n pObject.setFullname(rs.getString(pos));\n break;\n case ID_PHONE:\n ++pos;\n pObject.setPhone(rs.getString(pos));\n break;\n case ID_URL:\n ++pos;\n pObject.setUrl(rs.getString(pos));\n break;\n case ID_PARENTID:\n ++pos;\n pObject.setParentid(Manager.getInteger(rs, pos));\n break;\n case ID_COMPANYID:\n ++pos;\n pObject.setCompanyid(Manager.getInteger(rs, pos));\n break;\n }\n }\n pObject.isNew(false);\n pObject.resetIsModified();\n\n return pObject;\n }", "public void setM_Production_ID (int M_Production_ID);", "public void setIdTutorIndustrial(long idTutorIndustrial) {\n this.id = this.idTutorIndustrial = idTutorIndustrial;\n }", "public final void setRiippumatonMuuttuja(final int muuttuja) {\r\n this.riippumatonMuuttuja = muuttuja;\r\n }", "public void setJP_BankAccount_Value (String JP_BankAccount_Value);", "void beforeUpdate(InstitutionBean pObject) throws SQLException {\n if (listener != null)\n listener.beforeUpdate(pObject);\n }", "public boolean isSetInstitutionID() {\n return this.institutionID != null;\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "synchronized public static void setInstance(InstitutionManager instance)\n {\n singleton = instance;\n }", "public InstitutionBean decodeRow(ResultSet rs) throws SQLException\n {\n InstitutionBean pObject = createInstitutionBean();\n pObject.setInstitutionid(Manager.getInteger(rs, 1));\n pObject.setName(rs.getString(2));\n pObject.setAddress(rs.getString(3));\n pObject.setCode(rs.getString(4));\n pObject.setProvider(Manager.getBoolean(rs, 5));\n pObject.setHeaderlogo(rs.getString(6));\n pObject.setIso(rs.getString(7));\n pObject.setFullname(rs.getString(8));\n pObject.setPhone(rs.getString(9));\n pObject.setUrl(rs.getString(10));\n pObject.setParentid(Manager.getInteger(rs, 11));\n pObject.setCompanyid(Manager.getInteger(rs, 12));\n\n pObject.isNew(false);\n pObject.resetIsModified();\n\n return pObject;\n }", "public void setRegisNo(String regisNo)\n {\n // put your code here\n this.regisNo = regisNo;\n }", "@RequestMapping(value = \"getMatrix\", method = RequestMethod.GET, produces = \"application/json\")\n public DTAMatrixinstitution doGet(@RequestParam(value = \"institution\", required = true) String institution) {\n \t\n \tlog.info(\"[RESTAdmin][getMatrix]\");\n \t\n \tDTAMatrixinstitution data = new DTAMatrixinstitution(dao.findAdminMatrix(institution));\n \t// ¿como entro aquí y por donde?\n \t//dao's\n \t//return estructura_del_dao\n \n return data;\n }", "void setInstId(String instId);", "public void setItuRegion(int param) {\n if (param == java.lang.Integer.MIN_VALUE) {\n localItuRegionTracker = false;\n } else {\n localItuRegionTracker = true;\n }\n this.localItuRegion = param;\n }", "void beforeInsert(InstitutionBean pObject) throws SQLException {\n if (listener != null)\n listener.beforeInsert(pObject);\n }", "private void hireInstructor(int index) {\n\t\tSystem.out.println(\"Hire instructor called...\");\n\t\t// get current semester code\n\t\tJdbcConnector connector = new JdbcConnector();\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = connector.getConnection();\n\t\t\tjava.sql.Statement stmt = conn.createStatement();\n\n\t\t\tString selectInstructorIdSql = \"Select id, instructor_id from assignments \"\n\t\t\t\t\t+ \"where semester_code = 1 and display_index = \" + index + \";\";\n\n\t\t\tResultSet selectInstructorIdRs = stmt.executeQuery(selectInstructorIdSql);\n\t\t\tint instructorId = 0;\n\t\t\tint id = 0;\n\t\t\tif (selectInstructorIdRs.next()) {\n\t\t\t\tinstructorId = selectInstructorIdRs.getInt(\"instructor_id\");\n\t\t\t\tid = selectInstructorIdRs.getInt(\"id\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Instructor id is - \" + instructorId);\n\n\t\t\tString sql = \"SELECT * From semester_instructor_map where semester_code = 1 and instructor_id = \"\n\t\t\t\t\t+ instructorId + \";\";\n\t\t\tSystem.out.println(\"SQL - \" + sql);\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tSystem.out.println(Constants.INSTRUCTOR_ALREADY_SELECTED);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Instructor not selected yet...\");\n\t\t\t\tPreparedStatement insertMap = conn.prepareStatement(\n\t\t\t\t\t\t\"INSERT INTO semester_instructor_map(semester_code, instructor_id) VALUES (?,?);\");\n\t\t\t\tinsertMap.setInt(1, 1);\n\t\t\t\tinsertMap.setInt(2, instructorId);\n\t\t\t\tSystem.out.println(\"execute insert - \" + insertMap.executeUpdate());\n\t\t\t\tinsertMap.close();\n\n\t\t\t\tPreparedStatement updatMap = conn\n\t\t\t\t\t\t.prepareStatement(\"UPDATE assignments SET assigned = 'Y' WHERE id = ?\");\n\t\t\t\tupdatMap.setInt(1, id);\n\t\t\t\tSystem.out.println(\"execute upate - \" + updatMap.executeUpdate());\n\t\t\t\tupdatMap.close();\n\t\t\t}\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tconnector.closeConnection(conn);\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\t\t// Get the record from UI\n\t\t// Hire!!!\n\n\t}", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setMsisdn(java.lang.String param){\n localMsisdnTracker = true;\n \n this.localMsisdn=param;\n \n\n }", "public Institution initializeInstitution(@Nonnull InstitutionDto institutionDto) {\r\n\t\tInstitution institution = null;\r\n\t\tif (institutionDto.getId() != null) {\r\n\t\t\tinstitution = institutionRepository.findOne(institutionDto.getId());\r\n\t\t} else {\r\n\t\t\tinstitution = new Institution();\r\n\t\t}\r\n\t\tinstitution.setCity(institutionDto.getCity());\r\n\t\tinstitution.setCountry(institutionDto.getCountry());\r\n\t\tinstitution.setName(institutionDto.getName());\r\n\t\tinstitution.setUniversity(institutionDto.getUniversity());\r\n\t\tinstitution.setInstitutionType(institutionTypeRepository.findByTypeName(institutionDto.getInstitutionType()));\r\n\r\n\t\treturn institution;\r\n\t}", "private void setPurposeInfoForMonthlyReport(final Monthly_report_revision monthlyReport, final int empCode,\n final Date startDate, final Date endDate) {\n final List<Object[]> listPurpose = this.dailyRepo\n .getAllPurposeInfoFromDailyReportByStartDateAndEndDate(empCode, startDate, endDate).getResultList();\n int newVisit = this.getValue(listPurpose, (short) 2);\n monthlyReport.setHoumon_kensuu_mokuteki_shinkihoumon(newVisit);\n int regularVisit = this.getValue(listPurpose, (short) 4);\n monthlyReport.setHoumon_kensuu_mokuteki_kizon_no_teiki_houmon(regularVisit);\n int nonRegularVisit = this.getValue(listPurpose, (short) 3);\n monthlyReport.setHoumon_kensuu_mokuteki_kizon_igai_no_teiki_houmon(nonRegularVisit);\n int introductionTechnician = this.getValue(listPurpose, (short) 5);\n monthlyReport.setHoumon_kensuu_mokuteki_gijutsusha_shoukai(introductionTechnician);\n int visitation = this.getValue(listPurpose, (short) 6);\n monthlyReport.setHoumon_kensuu_mokuteki_gyouda(visitation);\n int estimate = this.getValue(listPurpose, (short) 7);\n monthlyReport.setHoumon_kensuu_mokuteki_mitsumori(estimate);\n int claim = this.getValue(listPurpose, (short) 8);\n monthlyReport.setHoumon_kensuu_mokuteki_kuremu(claim);\n int other = this.getValue(listPurpose, (short) 1);\n monthlyReport.setHoumon_kensuu_mokuteki_sonota(other);\n }", "public void setPantallaActual(int iPantallaActual) {\r\n this.iPantallaActual = iPantallaActual;\r\n }", "public void setRegisteredStudent(int registeredStudent)\r\n\t{\r\n\t\tthis.registeredStudent = registeredStudent;\r\n\t}", "public void setInstCode(String instCode) {\n this.instCode = instCode == null ? null : instCode.trim();\n }", "public void setInstusrid(String instusrid) {\r\n this.instusrid = instusrid;\r\n }", "public void setJP_BankAccountType (String JP_BankAccountType);", "@Optional\n @ImportColumn(\"AUSSTATTUNG\")\n Property<Integer> ausstattung();", "@Override\n @Restrict(\"#{s:hasPermission('InstitutionManager', 'viewInstitution', null)}\")\n public String viewInstitutionForTM() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"viewInstitutionForTM\");\n }\n String jsfPage;\n\n choosenInstitutionForAdmin = (Institution) Component.getInstance(\"choosenInstitutionForAdmin\");\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager()) {\n jsfPage = viewInstitutionForTM(choosenInstitutionForAdmin);\n } else {\n jsfPage = viewInstitutionForTM(Institution.getLoggedInInstitution());\n }\n\n return jsfPage;\n }", "public void setInstType(Integer instType) {\n this.instType = instType;\n }", "public InstitutionBean createInstitutionBean()\n {\n return new InstitutionBean();\n }", "public void setAutorizacionAutoimpresorSRI(AutorizacionAutoimpresorSRI autorizacionAutoimpresorSRI)\r\n/* 125: */ {\r\n/* 126:150 */ this.autorizacionAutoimpresorSRI = autorizacionAutoimpresorSRI;\r\n/* 127: */ }", "public void setSupEntRegunit(String supEntRegunit) {\n this.supEntRegunit = supEntRegunit == null ? null : supEntRegunit.trim();\n }", "public abstract void setCntPrepaid(int cntPrepaid);", "public void setOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "void addHasInstitutionName(String newHasInstitutionName);", "public void setM_InOut_ID (int M_InOut_ID);", "protected void setStudentNumber(Integer studentNum)\n {\n studentNumber = studentNum;\n }", "public void setLBR_InterestCode (String LBR_InterestCode);", "@Transactional\n\t@Modifying(clearAutomatically = true)\n\t@Query(\"UPDATE Users t SET t.university =:newUniversity WHERE t.id =:currentUser\")\n void editUniversity(@Param(\"newUniversity\") String newUniversity, @Param(\"currentUser\") Integer currentUser);", "public void setRegno(String regno)\n {\n if(checker.acceptRegno(regno))\n this.regno = regno;\n else\n this.regno = \"\";\n }", "public final void setNum_emp(String val) {\n setString(getNum_empAttribute(getMtDatabase()), val);\n }", "public void setIsperson(Integer isperson) {\n this.isperson = isperson;\n }", "public void setC_Region_ID (int C_Region_ID);", "public Integer getInstNo() {\n\t\treturn instNo;\n\t}", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public void setInital_value(int inital_value){\n this.inital_value= inital_value;\n }", "public LabtestBean[] loadLabtestViaLabtestinstitution(InstitutionBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n String strSQL = \" SELECT \"\n + \" *\"\n + \" FROM \"\n + \" labtest,labtestinstitution\"\n + \" WHERE \" \n + \" labtestinstitution.institutionid = ?\"\n + \" AND labtestinstitution.labtestid = labtest.labtestid\";\n try\n {\n c = getConnection();\n ps = c.prepareStatement(strSQL,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n Manager.setInteger(ps, 1, pObject.getInstitutionid());\n return LabtestManager.getInstance().loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public void setORM_Fac_has_university(model.University value) {\n\t\tthis.fac_has_university = value;\n\t}", "public void setExplicandum(SqlNode explicandum) {\n this.explicandum = explicandum;\n }", "public void setC_BankAccount_ID (int C_BankAccount_ID);", "public void setUWCompany(entity.UWCompany value);", "public autorisationCollabInterditeHolder(autorisation.AutorisationPackage.autorisationCollabInterdite initial)\n {\n value = initial;\n }", "public void setInstructor (String instructor)\n\t{\n\t\tif(instructor.length ( )==0 || instructor == null)\n\t\t{\n\t\t\tinstructor = \"Instructor\";\n\t\t}\n\t\tthis.instructor = instructor;\n\t\tthis.saveNeed = true;\n\n\n\t}", "public void setUniversityRank(int universityRank)\r\n\t{\r\n\t\tthis.universityRank = universityRank;\r\n\t}", "public void setIdAutorizacionEmpresaSRI(int idAutorizacionEmpresaSRI)\r\n/* 79: */ {\r\n/* 80:122 */ this.idAutorizacionEmpresaSRI = idAutorizacionEmpresaSRI;\r\n/* 81: */ }", "public void setMuniv(Muniv anMuniv) {\n getMunivMainCtrl().setSelectedMuniv(anMuniv);\r\n }", "public void setInumber(final String value)\n\t{\n\t\tsetInumber( getSession().getSessionContext(), value );\n\t}", "public void setGegenkontoNummer(String kontonummer) throws RemoteException;", "public void setJP_SalesRep_Value (String JP_SalesRep_Value);", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "public void setOrganization(String organization);", "public void setRegistrationNumber(String newRegistrationNumber){\n registrationNumber= newRegistrationNumber;\n }" ]
[ "0.6575533", "0.6490006", "0.64571613", "0.63534355", "0.626843", "0.6132972", "0.6019117", "0.58149076", "0.57761645", "0.5733954", "0.56421566", "0.55293965", "0.5419456", "0.53065586", "0.5260211", "0.5154281", "0.5152178", "0.51082397", "0.50404423", "0.5035555", "0.5008228", "0.5002187", "0.49849993", "0.49849018", "0.49745515", "0.49608523", "0.4951151", "0.49369618", "0.49360263", "0.49267623", "0.49108818", "0.4910858", "0.49038377", "0.48852184", "0.48814324", "0.48795205", "0.4859744", "0.4844266", "0.4830792", "0.4828055", "0.4825071", "0.4776044", "0.4755366", "0.4709984", "0.47001514", "0.46600834", "0.46527293", "0.459929", "0.4589733", "0.45879924", "0.45643365", "0.45608547", "0.45100626", "0.45030951", "0.44958878", "0.4456618", "0.44478887", "0.44431573", "0.44335487", "0.44304985", "0.44258094", "0.44175142", "0.44072488", "0.44050056", "0.4404325", "0.4397747", "0.43924782", "0.43906474", "0.43570712", "0.4351513", "0.43504655", "0.43504164", "0.43482524", "0.43394998", "0.43187135", "0.42996246", "0.4292427", "0.4289548", "0.42871654", "0.42858237", "0.42853937", "0.42845705", "0.42830327", "0.42811823", "0.4279061", "0.42729038", "0.42670944", "0.4264971", "0.4256103", "0.42530087", "0.42453697", "0.424461", "0.42411086", "0.42301297", "0.42296183", "0.42254275", "0.42244533", "0.42241275", "0.42238098", "0.42182106" ]
0.7079047
0
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.amount
public String getAmount() { return amount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getAmount() {\n return amount;\n }", "public Long getAmount() {\n return amount;\n }", "public Long getAmount() {\n return amount;\n }", "public Long getAmount() {\n return amount;\n }", "public long getAmount() {\r\n return amount;\r\n }", "public java.lang.Long getAmount () {\r\n\t\treturn amount;\r\n\t}", "public long getAmount() {\n return amount;\n }", "public long getAmount();", "public long getAmount();", "public long getAmount() {\n\t\treturn amount;\n\t}", "long getAmount();", "@Override\n\tpublic long getAmount() {\n\t\treturn amount;\n\t}", "@java.lang.Override\n public long getAmount() {\n return amount_;\n }", "BigDecimal getAmount();", "public BigDecimal getAmount() {\n return this.amount;\n }", "public BigDecimal getAmount() {\r\n return amount;\r\n }", "public Integer getAmount() {\n return amount;\n }", "public Integer getAmount() {\n return amount;\n }", "public Integer getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return this.amount;\n }", "public String getAmount() {\r\n return this.amount;\r\n }", "public BigDecimal getAmount() \r\n {\t\r\n \treturn amount;\t\r\n }", "public BigDecimal getAmount()\n {\n return amount;\n }", "public java.math.BigDecimal getAmt() {\r\n return localAmt;\r\n }", "public BigDecimal getAMOUNT() {\r\n return AMOUNT;\r\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getStmtAmt();", "public Long getPayamount() {\n return payamount;\n }", "public java.math.BigDecimal getAmount() {\n return amount;\n }", "public java.math.BigDecimal getAmount () {\r\n\t\treturn amount;\r\n\t}", "public int getAmount()\n {\n return this.transactionValue;\n }", "public String getAmount() {\n\n return amount.getText();\n }", "@java.lang.Override\n public long getAmount() {\n return instance.getAmount();\n }", "public BigDecimal getTransAmt() {\n return transAmt;\n }", "public Long getSettlementmoney() {\n return settlementmoney;\n }", "public Long getOrdermoney() {\n return ordermoney;\n }", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "public String getAmount() {\n\t\treturn amount;\n\t}", "public BigDecimal getPayAmt();", "public int getAmount() {\n return amount;\n }", "public int getAmount() {\n return amount;\n }", "public int getAmount() {\n return amount;\n }", "public int getAmount() {\r\n\t\treturn Amount;\r\n\t}", "public Double getAmount() {\r\n return amount;\r\n }", "public int getMprice() {\r\n return mprice;\r\n }", "public int getAmount() {\n return amount_;\n }", "public Amount getAmount() {\n return amount;\n }", "public double getAmount() {\n return this.amount;\n }", "public int getAmount()\n\t{\n\t\treturn this.amount;\n\t}", "public int getAmount() { return this.amount; }", "@Override\n public Long findMAX() {\n\n StringBuffer sql = new StringBuffer(\"select max(magoithau) from goithau\");\n Query query = entityManager.createNativeQuery(sql.toString());\n return Long.parseLong(query.getSingleResult().toString()) ;\n }", "public double getAmount() {\n return amount;\n }", "public Object getAmount() {\n\t\treturn null;\n\t}", "public double getAmount () {\r\n\t\treturn amount;\r\n\t}", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "@Query(value = \"SELECT IF(count(transaction_details.transferred_Amt)>0, \" +\n \"(select sum(transaction_details.transferred_Amt) \" +\n \"FROM transaction_details where transaction_details.sender_Acct_No=?1), 0) \\n\" +\n \"FROM transaction_details where transaction_details.sender_Acct_No=?1\", nativeQuery = true)\n double getTransferredAmtBySender(Integer senderAcctNo);", "public String getUnitAmountDecimal() {\n return this.unitAmountDecimal;\n }", "public int amount() {\n return amount;\n }", "public long getMoney() {\n return money;\n }", "public int getAmount() {\n return amount_;\n }", "int getAmount();", "public BigDecimal getCalcUnitAmount() {\n return calcUnitAmount;\n }", "public double getAmount() {\r\n\t\treturn amount;\r\n\t}", "public double getAmount() {\r\n\t\treturn amount;\r\n\t}", "public BigDecimal getCalculateAmt() {\n return calculateAmt;\n }", "public long getMappedValue() {\n\t\treturn this.value;\n\t}", "Long getAmount(Integer id) throws Exception;", "public int getAmount() {\n\t\treturn amount;\n\t}", "public BigDecimal getUnitAmount() {\n return this.unitAmount;\n }", "Money getItemValue();", "public BigDecimal getLBR_DIFAL_TaxAmtICMSUFDest();", "float getAmount();", "public double getAmount()\n {\n return m_Amount;\n }", "public double getAmount() {\n\t\treturn amount;\n\t}", "public double getAmount() {\n\t\treturn amount;\n\t}", "public double getAmount() {\n\t\treturn amount;\n\t}", "public BigDecimal getAdditionalAmount() {\n return additionalAmount;\n }", "public BigDecimal getActualAmt() {\n return actualAmt;\n }", "public static int getAmount() {\n\t\treturn amount;\n\t}", "@Override\n\tpublic int getNoofQuantity() {\n\t String sql=\"SELECT SUM(quantity) FROM supplier_product\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}", "public String getMiNo() {\r\n return miNo;\r\n }", "public int getMp() \n\t{\n\t\treturn mp;\n\t}", "public BigDecimal getUnitAmount() {\n return unitAmount;\n }", "public double getAmount() { return amount; }", "public int getBalance(String mobileNo)\n {\n \t\tResultSet rs;\n \t Context ctx;\n \t int balance=0;\n\t\ttry {\n\t\t\tctx = new InitialContext();\n\t\t\n\t\t\n\t\t DataSource ds=(DataSource)ctx.lookup(\"java:OracleDS\");\n\t\t\tConnection con=ds.getConnection();\n\t\t\tStatement stmt=con.createStatement();\n\t\t\t\n\t\t\trs=stmt.executeQuery(\"select Balance from mobile where mobileno=\"+mobileNo);\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t balance=rs.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\treturn balance;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in connection with Database :\"+e.getMessage());\n\t\t\treturn 0;\n\t\t}\n\t\t\n \t \n }", "@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}" ]
[ "0.6372693", "0.6372693", "0.6372693", "0.6372693", "0.6158905", "0.6150242", "0.6112349", "0.6017065", "0.6017065", "0.59735197", "0.5944436", "0.5883904", "0.5867831", "0.580102", "0.5800891", "0.57931554", "0.57837456", "0.57837456", "0.57837456", "0.5782933", "0.57793343", "0.5775943", "0.5755605", "0.5754799", "0.57365346", "0.5714651", "0.5714651", "0.5714651", "0.5714651", "0.5714651", "0.5714651", "0.5714651", "0.5714651", "0.5676523", "0.56692296", "0.56691337", "0.5664884", "0.56246066", "0.56201833", "0.5602531", "0.5589136", "0.55855924", "0.5558603", "0.5533377", "0.5532681", "0.5520742", "0.5514107", "0.5514107", "0.5514107", "0.5489676", "0.548148", "0.5467724", "0.54560053", "0.5449665", "0.54377276", "0.54195446", "0.5414834", "0.54089206", "0.5405632", "0.5404572", "0.5403587", "0.5394115", "0.5394115", "0.5394115", "0.5394115", "0.5394115", "0.5394115", "0.5394115", "0.5389666", "0.5383603", "0.53814447", "0.53787124", "0.53738236", "0.5372038", "0.5371166", "0.5368555", "0.5368555", "0.53627926", "0.5352921", "0.5349313", "0.5338682", "0.5335216", "0.53343993", "0.53225917", "0.5322328", "0.53178126", "0.5312832", "0.5312832", "0.5312832", "0.5307851", "0.5307417", "0.5299256", "0.52953863", "0.52871585", "0.5277918", "0.5276715", "0.5262935", "0.52604663", "0.525237" ]
0.5612368
40
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.amount
public void setAmount(String amount) { this.amount = amount == null ? null : amount.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAmount(long amount);", "public void setAmount(long value) {\r\n this.amount = value;\r\n }", "public void setAmt(java.math.BigDecimal param) {\r\n this.localAmt = param;\r\n }", "public void setAmount(Long amount) {\n this.amount = amount;\n }", "public void setAmount(Long amount) {\n this.amount = amount;\n }", "public void setAmount(Long amount) {\n this.amount = amount;\n }", "public void setAmount(Long amount) {\n this.amount = amount;\n }", "public void setMprice(int value) {\r\n this.mprice = value;\r\n }", "@Override\n\tpublic void setAmount(long amount) {\n\t\tthis.amount = amount;\n\t}", "public void setAmount(long amount) {\n\t\tthis.amount = amount;\n\t}", "public void setAmount(BigDecimal amount) {\r\n this.amount = amount;\r\n }", "public void setAmount (java.lang.Long amount) {\r\n\t\tthis.amount = amount;\r\n\t}", "public void setAmount(BigDecimal amount) {\n this.amount = amount;\n }", "public void setAmount(BigDecimal amount) {\n this.amount = amount;\n }", "public void setAmount(BigDecimal amount) {\n this.amount = amount;\n }", "public void setAmount(int moneyOption);", "public void setAmount(java.math.BigDecimal amount) {\n this.amount = amount;\n }", "public void setStmtAmt (BigDecimal StmtAmt);", "public void setAmount( BigDecimal amount ) {\n this.amount = amount;\n }", "public void setAmount(int amount) {\n this.amount = amount;\n }", "public void setAmount (java.math.BigDecimal amount) {\r\n\t\tthis.amount = amount;\r\n\t}", "public void setAMOUNT(BigDecimal AMOUNT) {\r\n this.AMOUNT = AMOUNT;\r\n }", "public void setAmount(Integer amount) {\n this.amount = amount;\n }", "public void setAmount (double amount) {\r\n\t\tthis.amount = amount;\r\n\t}", "public void setAmount(BigDecimal value) {\n this.amount = value;\n }", "public void setAmount(String amount) {\r\n this.amount = amount;\r\n }", "public void payDueAmount(String mobileNumber, int dueAmount) {\n\t\tSystem.out.println(em.find(Receipt.class, mobileNumber));\r\n\t\tReceipt receipt = em.find(Receipt.class, mobileNumber);\r\n\r\n\t\tint currentDue = receipt.getDueAmount() - dueAmount;\r\n\r\n\t\t/**\r\n\t\t * store the records in due pay table\r\n\t\t */\r\n\t\tDuePay duePay = new DuePay();\r\n\t\tduePay.setBatchNo(receipt.getBatchNo());\r\n\t\tduePay.setStudentId(receipt.getStudentId());\r\n\t\tduePay.setStudentName(receipt.getStudentName());\r\n\t\tduePay.setCourse(receipt.getCourse());\r\n\t\tduePay.setDate(\"08-08-2018\");\r\n\t\tduePay.setDuePaid(dueAmount);\r\n\t\tduePay.setEmailId(receipt.getEmailId());\r\n\t\tduePay.setStudentName(receipt.getStudentName());\r\n\t\tduePay.setTotalDueAmount(receipt.getDueAmount());\r\n\t\tduePay.setMobileNumber(mobileNumber);\r\n\t\tduePay.setBalDueAmount(currentDue);\r\n\t\t/**\r\n\t\t * transaction begin\r\n\t\t */\r\n\t\tem.getTransaction().begin();\r\n\t\t\r\n\t\tem.persist(duePay);\r\n\r\n\t\t/**\r\n\t\t * upadating previous Receipt Due with due paid amount\r\n\t\t */\r\n\t\treceipt.setDueAmount(currentDue);\r\n\t/**\r\n\t * updating total amount in Receipt table\r\n\t */\r\n\t\tInteger currentTotalAmount = receipt.getTotaAmount()+dueAmount;\r\n\t\treceipt.setTotaAmount(currentTotalAmount);\r\n\r\n\t\tem.persist(receipt);\r\n\t\tem.getTransaction().commit();\r\n\r\n\t}", "public void setAmount(double amount) {\n this.amount = amount;\n }", "public void setAmount(double amount) {\n this.amount = amount;\n }", "public void setPayAmt (BigDecimal PayAmt);", "public void setAmount(double value) {\n this.amount = value;\n }", "public void setConvertedShrinkQty (BigDecimal ConvertedShrinkQty)\n{\nset_Value (\"ConvertedShrinkQty\", ConvertedShrinkQty);\n}", "public void setConvertedProductQty (BigDecimal ConvertedProductQty)\n{\nset_Value (\"ConvertedProductQty\", ConvertedProductQty);\n}", "public void setAmount(double amount) {\r\n\t\tthis.amount = amount;\r\n\t}", "public void setConvertedSplitQty (BigDecimal ConvertedSplitQty)\n{\nset_Value (\"ConvertedSplitQty\", ConvertedSplitQty);\n}", "public void setSETTLEMENT_AMOUNT(BigDecimal SETTLEMENT_AMOUNT) {\r\n this.SETTLEMENT_AMOUNT = SETTLEMENT_AMOUNT;\r\n }", "public void setAmount(String amount) {\n this.amount = amount;\n }", "void setAmount(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount amount);", "public void setAmount(Number value) {\n setAttributeInternal(AMOUNT, value);\n }", "public void setAmount(Double amount) {\r\n this.amount = amount;\r\n }", "public Long getAmount() {\n return amount;\n }", "public Long getAmount() {\n return amount;\n }", "public Long getAmount() {\n return amount;\n }", "public Long getAmount() {\n return amount;\n }", "public void setAmount(double value) {\n this.amount = value;\n }", "public void setBonusAmount(long value) {\r\n this.bonusAmount = value;\r\n }", "public void setAmount(double amount) {\n\t\tthis.amount = amount;\n\t}", "public void setNetAmount(MMDecimal netAmount) {\r\n this.netAmount = netAmount;\r\n }", "public Builder setAmount(long value) {\n copyOnWrite();\n instance.setAmount(value);\n return this;\n }", "public void setAmount(Double amount) {\n this.amount = amount;\n }", "void setShowReportAmount(String amount);", "public long getAmount() {\r\n return amount;\r\n }", "public void setShrinkQty (BigDecimal ShrinkQty)\n{\nset_Value (\"ShrinkQty\", ShrinkQty);\n}", "public void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "public void setAmount(double value) {\r\n\t\tthis.amount = value;\r\n\t}", "public void setTaxAmtPriceLimit (BigDecimal TaxAmtPriceLimit);", "public void setInitAmt(BigDecimal initAmt) {\n this.initAmt = initAmt;\n }", "public void setDepositAmount(MMDecimal depositAmount) {\r\n this.depositAmount = depositAmount;\r\n }", "private void setAmount(long value) {\n bitField0_ |= 0x00000001;\n amount_ = value;\n }", "public void setSettlementmoney(Long settlementmoney) {\n this.settlementmoney = settlementmoney;\n }", "public long getAmount() {\n return amount;\n }", "public void setCantidadFaltanteAnunciado(java.math.BigInteger param){\n \n this.localCantidadFaltanteAnunciado=param;\n \n\n }", "public void setCardMoney(java.math.BigDecimal param) {\r\n this.localCardMoney = param;\r\n }", "public void setActualAmt(BigDecimal aActualAmt) {\n actualAmt = aActualAmt;\n }", "public void setMoney(int moneyAmount) {\n\t\tsuper.setMoney(moneyAmount);\n\t}", "void setCurrentAmount(double newAmount) {\n this.currentAmount = newAmount;\n }", "public void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);", "public void setAmount(String amount) {\n\t\tthis.amount = amount;\n\t}", "public void setCalculateAmt(BigDecimal aCalculateAmt) {\n calculateAmt = aCalculateAmt;\n }", "public java.lang.Long getAmount () {\r\n\t\treturn amount;\r\n\t}", "public static void setDropdownAmountOption(int option){\n DriverManager.driver.findElement(Constans.AMOUNT_LOCATOR).click();\n setDropdownOption(option);\n }", "public void queryByAmount(String amount) {\n\t\tAMOUNT = amount;\n\t}", "public void setSETTLED_PENALTY_AMOUNT(BigDecimal SETTLED_PENALTY_AMOUNT) {\r\n this.SETTLED_PENALTY_AMOUNT = SETTLED_PENALTY_AMOUNT;\r\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public void setTransAmt(BigDecimal transAmt) {\n this.transAmt = transAmt;\n }", "public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }", "@Override\n public void onAmountChange(View view, int amount) {\n item.num = amount;\n }", "public void setMlNnum(BigDecimal mlNnum) {\n this.mlNnum = mlNnum;\n }", "public void setCalcUnitAmount(BigDecimal calcUnitAmount) {\n this.calcUnitAmount = calcUnitAmount;\n }", "public void setTotal(BigDecimal amount){\r\n\t\ttotal = amount.doubleValue();\r\n\t}", "@Override\n public void setTotalMoney(BigDecimal inputMoney) {\n totalMoney = inputMoney;\n }", "public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}", "public long getAmount() {\n\t\treturn amount;\n\t}", "public void setAmount(Float amount) {\n\t\tthis.amount = amount;\n\t}", "public void setUnitAmount(BigDecimal unitAmount) {\n this.unitAmount = unitAmount;\n }", "public void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);", "public void setJP_AcctMonth (String JP_AcctMonth);", "@java.lang.Override\n public long getAmount() {\n return amount_;\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setSETTLEMENT_NBR(BigDecimal SETTLEMENT_NBR) {\r\n this.SETTLEMENT_NBR = SETTLEMENT_NBR;\r\n }", "public void setfMcashoutAmount(BigDecimal fMcashoutAmount) {\r\n this.fMcashoutAmount = fMcashoutAmount;\r\n }", "public void setAmount(double amount){\n try{\n if(amount>=0.0){\n this.amount=amount;\n }\n else {\n this.amount = 1;\n throw new SupplyOrderException(\"Invalid amount, resetted to 1\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }", "public void setSpecialHandlingAmount(MMDecimal specialHandlingAmount) {\r\n this.specialHandlingAmount = specialHandlingAmount;\r\n }", "public void setMineAmount(BigDecimal mineAmount) {\n this.mineAmount = mineAmount;\n }", "@Override\r\n public void setPostpaidLimit(BigDecimal postpaidLimit) {\n }", "public void setM_price(BigDecimal m_price) {\n this.m_price = m_price;\n }", "public void setCODE(BigDecimal CODE) {\r\n this.CODE = CODE;\r\n }", "public void setCODE(BigDecimal CODE) {\r\n this.CODE = CODE;\r\n }" ]
[ "0.6421779", "0.6342244", "0.6200678", "0.6108661", "0.6108661", "0.6108661", "0.6108661", "0.5985847", "0.594769", "0.5943966", "0.5913408", "0.59033763", "0.5844616", "0.5844616", "0.5844616", "0.58341575", "0.58116144", "0.5805814", "0.57764727", "0.57741547", "0.5765816", "0.57194763", "0.56271577", "0.5625611", "0.5617821", "0.5613692", "0.5612547", "0.56125265", "0.56125265", "0.55978495", "0.55817175", "0.5580754", "0.5527559", "0.5519207", "0.55190253", "0.5512441", "0.55026746", "0.5501808", "0.54879403", "0.5475395", "0.5466595", "0.5466595", "0.5466595", "0.5466595", "0.5437809", "0.5407908", "0.5406816", "0.5406067", "0.5381241", "0.5380339", "0.5367145", "0.5361259", "0.5331875", "0.53258896", "0.53253555", "0.53190327", "0.5312598", "0.5308191", "0.5304666", "0.52957225", "0.5290201", "0.52696025", "0.52648646", "0.5264147", "0.52497506", "0.52484107", "0.52451855", "0.52407867", "0.52341217", "0.5224819", "0.52247584", "0.5218612", "0.5211872", "0.5209631", "0.52026486", "0.52016604", "0.5191777", "0.5187433", "0.5182797", "0.5162308", "0.515454", "0.5153443", "0.5149241", "0.5134089", "0.5126435", "0.5124711", "0.51241404", "0.511411", "0.51099277", "0.5103972", "0.5103972", "0.5103972", "0.51036525", "0.51013213", "0.50914675", "0.5089814", "0.50810933", "0.5078955", "0.5057437", "0.505629", "0.505629" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.level
public String getLevel() { return level; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getMlevel() {\n return mlevel;\n }", "public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }", "public String getMlLevel() {\r\n return mlLevel;\r\n }", "public int getLevelNo() {\n return levelNo;\n }", "public Integer getLevelId() {\n return levelId;\n }", "public String getLevel() {\n return this.level;\n }", "public int getLevel() {\n \treturn this.level;\n }", "public int getLevelValue() {\n return level_;\n }", "public String getLevelId() {\n return levelId;\n }", "public int getLevel(){\n\t\treturn this.level;\n\t}", "public final String getLevel() {\n return this.level;\n }", "public int currentLevel (Power p) {\n StoredPower sp = StoredPower.find(\"byOwner_idAndPower\", this.id, p).first();\n\t if (sp == null) {\n\t return 0;\n\t } \n\t return sp.level;\n }", "public String getLevel(){\n\t\treturn level;\n\t}", "public int getLevelValue() {\n return level_;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public int getLevel() {\n return this.level;\n }", "public String getLevel() {\n return level;\n }", "public String getLevel() {\n return level;\n }", "public void setMlevel(Integer mlevel) {\n this.mlevel = mlevel;\n }", "public String getLevel() {\n\t\treturn level;\n\t}", "public int getLevel() {\n\t\treturn this.level;\n\t}", "public String getLevel()\n {\n return level;\n }", "public int getLevel()\r\n {\r\n return r_level;\r\n }", "public double Getlevel()\r\n {\r\n return level;\r\n }", "public int getLevel(){\n return this.level;\n }", "public int getLevel(){\n return this.level;\n }", "public int getLevel(){\n\t\treturn level;\n\t}", "public int getLevel()\n {\n return m_level;\n }", "@Override\n\tpublic int getLevelNumber() {\n\t\treturn numLevel;\n\t}", "public int getLevel() { \r\n\t\treturn level; \r\n\t}", "int getLevel()\n\t{\n\t\treturn this.level;\n\t}", "public int getLevel() {\n \t\treturn level;\n \t}", "public Level getLevel() {\r\n\t\treturn level;\r\n\t}", "public int getLevel() {\r\n return level;\r\n }", "public Level getLevel() {\n\t\treturn this.level;\n\t}", "public String getLevel() {\n return getAttribute(ATTRIBUTE_LEVEL);\n }", "public int getLevel()\r\n {\r\n return level;\r\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\n return level;\n }", "public int getLevel() {\r\n\t\treturn level;\r\n\t}", "public int getLevel() {\r\n\t\treturn level;\r\n\t}", "public byte getLevelId()\r\n\t{\r\n\t\treturn mLevelId;\r\n\t}", "public int getLevel() {\n\t\treturn level;\r\n\t}", "public String getLevelName(){\n return levelName;\n }", "public double getLevel() {\n\t\treturn level;\n\t}", "public int getLevel()\n {\n return level;\n }", "public int getLevel(){\n return level;\n }", "public int getLevel(){\n return level;\n }", "public Level level() {\n return level;\n }", "public int getLevel() {\n\t\treturn level;\n\t}", "public int getLevel() {\n\t\treturn level;\n\t}", "public int getLevel() {\n\t\treturn level;\n\t}", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public String getLevelName() {\n return levelName;\n }", "public Level level() {\n\treturn level;\n }", "public int getLevel()\n {\n return level; \n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return level_;\n }", "public int getLevel() {\n return eliteMobLevel;\n }", "public Level getLevel() {\n\t\treturn myLevel;\n\t}", "public static int getLevel()\n {\n return level;\n }", "public int \t\t\t\t\t\t\tgetLevel()\t\t\t\t\t\t\t\t\t{ return this.currentLevel; }", "protected int getLevel(){\r\n return this.level;\r\n }", "public static int getLevel()\r\n\t{\r\n\t\treturn level;\r\n\t}", "public int getLevel()\n {\n return m_nLevel;\n }", "public static int getLevel() {\n return level;\n }", "public int getLevel()\n\t{\n\t\treturn this.value;\n\t}", "public PowerLevel getLevel() {\n return level;\n }", "public int getCurrentLevelId()\n {\n return currentLevelId;\n }", "public String getLevel()\n {\n return gameLevel;\n }", "public int getLevelfk() {\n\t\treturn this.levelfk;\n\t}", "public String getLevel ()\n {\n return level;\n }", "public String getName() {\n return level;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "public Long getLevelweight() {\n return levelweight;\n }", "@AutoEscape\n\tpublic String getLevel();" ]
[ "0.699455", "0.6488673", "0.64666164", "0.6406958", "0.62848365", "0.62390953", "0.62201166", "0.6215487", "0.6185992", "0.6178211", "0.6176739", "0.6176156", "0.61721915", "0.61579794", "0.6131719", "0.6131719", "0.6131719", "0.6131719", "0.6131719", "0.6113099", "0.6106807", "0.6100206", "0.60929126", "0.60775334", "0.605083", "0.60505164", "0.6049121", "0.60430515", "0.6040147", "0.6040147", "0.6020693", "0.60145414", "0.6013326", "0.5993373", "0.5977677", "0.5972387", "0.59503156", "0.5945311", "0.59435105", "0.5936332", "0.59335494", "0.5925363", "0.5925363", "0.5919764", "0.5919764", "0.5919764", "0.5919764", "0.5919764", "0.5919764", "0.5919764", "0.5919764", "0.5919764", "0.5919764", "0.5916868", "0.5916868", "0.5910779", "0.59065324", "0.5902259", "0.58992094", "0.5897696", "0.5892865", "0.5892865", "0.58907634", "0.5890041", "0.5890041", "0.5890041", "0.5885191", "0.5885191", "0.58818895", "0.5861714", "0.585959", "0.58525753", "0.58525753", "0.58525753", "0.58525753", "0.58495414", "0.5845029", "0.5825141", "0.58233106", "0.5819958", "0.5814922", "0.58009404", "0.579788", "0.57960194", "0.57940334", "0.5774852", "0.57595444", "0.57580423", "0.57579505", "0.57554907", "0.57478416", "0.57478416", "0.5729127", "0.5729127", "0.57195544", "0.57108486" ]
0.60850996
26
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.level
public void setLevel(String level) { this.level = level == null ? null : level.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMlevel(Integer mlevel) {\n this.mlevel = mlevel;\n }", "public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}", "public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }", "public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "public void setMlLevel(String mlLevel) {\r\n this.mlLevel = mlLevel == null ? null : mlLevel.trim();\r\n }", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public void setLevel(int v)\n {\n m_level = v;\n }", "public Integer getMlevel() {\n return mlevel;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int value) {\n this.level = value;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public final void setLevel(final int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel ( int level ) {\n\t\texecute ( handle -> handle.setLevel ( level ) );\n\t}", "public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "public void setLevel(String level);", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public void setLevel(String level){\n\t\tthis.level = level;\n\t}", "public void setLevel(Level level) { this.currentLevel = level; }", "public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}", "public void setMicGainDb(float level);", "public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }", "public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }", "public void setLevel(String value) {\n this.level = value;\n }", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "public void setDatalevel(Integer datalevel) {\n this.datalevel = datalevel;\n }", "public void setLevel(String newLevel) {\n level = newLevel;\n }", "private void setLevel(int level){\r\n\t\tswitch(level){\r\n\t\t\tcase Game.LEVEL_ONE:\r\n\t\t\tcase Game.LEVEL_TWO:\r\n\t\t\tcase Game.LEVEL_THREE:\r\n\t\t\t\tthis.level = level;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.err.println(\"Improper level input, use 'Game.LEVEL_#' to accurately input a level into this method\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void setLevel(int level) {\r\n\t\tthis.level = Math.max(0, level);\r\n\t}", "public void setLevel(Level mLevel) {\n this.level = mLevel;\n level.increaseChamberCount();\n }", "public void setLevel(String level) {\n this.level = level;\n }", "public void setLevel(String level) {\n this.level = level;\n }", "public SerialMessage setValueMessage(int level) {\r\n\t\tlogger.debug(\"Creating new message for application command SWITCH_MULTILEVEL_SET for node {}\", this.getNode().getNodeId());\r\n\t\tSerialMessage result = new SerialMessage(this.getNode().getNodeId(), SerialMessage.SerialMessageClass.SendData, SerialMessage.SerialMessageType.Request, SerialMessage.SerialMessageClass.SendData, SerialMessage.SerialMessagePriority.Set);\r\n\t\tthis.level = level;\r\n \tbyte[] newPayload = { \t(byte) this.getNode().getNodeId(), \r\n \t\t\t\t\t\t\t3, \r\n\t\t\t\t\t\t\t\t(byte) getCommandClass().getKey(), \r\n\t\t\t\t\t\t\t\t(byte) SWITCH_MULTILEVEL_SET,\r\n\t\t\t\t\t\t\t\t(byte) level\r\n\t\t\t\t\t\t\t\t};\r\n \tresult.setMessagePayload(newPayload);\r\n \treturn result;\t\t\r\n\t}", "public static void setLevel(int level){\n\tlogLevel = level;\n }", "public void Setlevels(int lvl)\r\n {\r\n level = lvl;\r\n }", "public void setHasSetLevel(boolean param) {\n if (false) {\n localHasSetLevelTracker = false;\n } else {\n localHasSetLevelTracker = true;\n }\n this.localHasSetLevel = param;\n }", "public void setLevel(int level) {\n if (level < 1)\n throw new IllegalArgumentException(\"Cannot be a level less than 0\");\n\n this.level = level;\n }", "public void setLevel(int level) {\n filename = evaluate(getLat(), getLon(), level);\n }", "public static void setLevel(int current)\r\n\t{\r\n\t\tGame.level = current;\r\n\t}", "@Override\n\tpublic void setLevelNumber(int i) {\n\t\tnumLevel =i;\n\t}", "public static void setLevel(int level) {\n Game.level = level;\n movingSpeed = level * 5;\n }", "private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}", "public Builder setLevelValue(int value) {\n level_ = value;\n onChanged();\n return this;\n }", "public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}", "public void setVolume(int level) {\n if(level >= 0 && level <= 100) {\n int checkSum = 0x07^0x01^0x00^0x44^level^level; \n String hexLevel = Integer.toHexString(level);\n if(hexLevel.length() == 1)\n hexLevel = \"0\" + hexLevel;\n String hexCheckSum = Integer.toHexString(checkSum);\n if(hexCheckSum.length() == 1)\n hexCheckSum = \"0\" + hexCheckSum;\n sendHexCommand(\"07 01 00 44 \" + hexLevel + \" \" + hexLevel + \" \"+\n hexCheckSum, 20);\n lastVolumeChange = System.currentTimeMillis();\n }\n }", "public String getMlLevel() {\r\n return mlLevel;\r\n }", "public void setPassLevelNo(long value) {\r\n this.passLevelNo = value;\r\n }", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "public void set(double lat, double lon, int level) {\n set(getDTEDDir(), lat, lon, level);\n }", "private void setEliteMobLevel(int newLevel) {\n if (newLevel < 1)\n newLevel = 1;\n this.eliteMobLevel = newLevel;\n }", "public void setLevelLimit(Integer levelLimit) {\n\t\tthis.levelLimit = levelLimit;\r\n\t}", "public int getLevelNo() {\n return levelNo;\n }", "public void setMemberlLevel(MemberLevel.MemberLevels mMemberlLevel) \n\t{\n\t\tthis.mMemberLevel = mMemberlLevel;\n\t\tdrawThumbnail();\n\t}", "public static void setLogLevel(int level) {\n mLogLevel = level;\n }", "public static void setLevel(Level level) {\r\n\t\tGameplay.getInstance().setLevel(level);\r\n\t}", "public void setLevelId(Integer levelId) {\n this.levelId = levelId;\n }", "static public void setLevel( byte level ) {\n Debug.level=level;\n }", "public void setCurrentLevel(Level level){\r\n currentLevel = level;\r\n currentLevel.setObserver(this);\r\n }", "public void setLevelweight(Long levelweight) {\n this.levelweight = levelweight;\n }", "public void setActiveLevel(PlayerLevel toSet){\r\n\t\tthis.activeLevel = toSet;\r\n\t}", "public Integer getLevelId() {\n return levelId;\n }", "public void setUserLevel(Integer userLevel) {\n this.userLevel = userLevel;\n }", "public void setPlaybackGainDb(float level);", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000001;\n level_ = value;\n \n return this;\n }", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000002;\n level_ = value;\n \n return this;\n }", "public void init(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "public void set_log_level(int level) {\r\n logLevel = Math.max(0,level);\r\n }", "public int getLevelValue() {\n return level_;\n }", "public void seteLevel(Integer eLevel) {\n this.eLevel = eLevel;\n }", "public int getLevelValue() {\n return level_;\n }", "public void setLevel(int fillLevel)\n\t{\n\t\tthis.fillLevel = fillLevel;\n\t\tthis.latestUpdate = new Date();\n\t}", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000001;\n level_ = value;\n onChanged();\n return this;\n }", "public final void setLv(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal lv)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Lv.toString(), lv);\n\t}", "public Builder setLevel(int value) {\n bitField0_ |= 0x00000008;\n level_ = value;\n onChanged();\n return this;\n }", "public void setDataLevel(int dataLevel);", "public int getLevel(){\n return this.level;\n }", "public int getLevel(){\n return this.level;\n }", "public void setNextLevel(Level level){\r\n this.currentLevel.setNextLevel(level);\r\n }", "public abstract void setForceLevel(int level);", "public String getLevelId() {\n return levelId;\n }", "public static void setMinimumLevel(Level level) {\n\t\tminLevel = level;\n\t}", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/IR/Module.cpp\", line = 496,\n FQN=\"llvm::Module::setPICLevel\", NM=\"_ZN4llvm6Module11setPICLevelENS_8PICLevel5LevelE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/Module.cpp -nm=_ZN4llvm6Module11setPICLevelENS_8PICLevel5LevelE\")\n //</editor-fold>\n public void setPICLevel(PICLevel.Level PL) {\n addModuleFlag(ModFlagBehavior.Error, new StringRef(/*KEEP_STR*/\"PIC Level\"), PL.getValue());\n }" ]
[ "0.6794887", "0.63049215", "0.6282915", "0.62185746", "0.62015414", "0.6159614", "0.6141597", "0.6062717", "0.6058848", "0.60509187", "0.60409737", "0.6038965", "0.6035624", "0.6034228", "0.6032683", "0.5962532", "0.59496874", "0.5926102", "0.5926102", "0.5926102", "0.5926102", "0.5926102", "0.59163743", "0.59163743", "0.587808", "0.58766377", "0.58766377", "0.58616036", "0.58518875", "0.5825245", "0.5805862", "0.5803561", "0.57993317", "0.5794332", "0.5784658", "0.57829404", "0.57459164", "0.57186925", "0.56920296", "0.56590164", "0.56575966", "0.5651134", "0.56424445", "0.5629845", "0.5626726", "0.5618246", "0.5618246", "0.5547087", "0.5522137", "0.55218434", "0.55161095", "0.54587114", "0.5458016", "0.54518527", "0.5450208", "0.5419492", "0.54150367", "0.54042685", "0.538373", "0.5365515", "0.5362214", "0.5320153", "0.53180146", "0.52892315", "0.5256373", "0.52468115", "0.52451146", "0.52449703", "0.52440554", "0.5233194", "0.5230315", "0.52202564", "0.5217112", "0.5196783", "0.5187285", "0.5173804", "0.5173121", "0.51598823", "0.51557106", "0.5155577", "0.5118154", "0.511548", "0.5114568", "0.5087687", "0.506707", "0.5066556", "0.5066193", "0.50542825", "0.504776", "0.504109", "0.50393337", "0.50393337", "0.5032499", "0.50291336", "0.5021874", "0.50133544", "0.5008942" ]
0.5504713
53
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.payType
public String getPaytype() { return paytype; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getPayType() {\n\t\treturn payType;\n\t}", "public String getPayType() {\n return payType;\n }", "public String getPayType() {\n return payType;\n }", "@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }", "public long getPaymentType() {\n return paymentType;\n }", "public void queryByPaymentType(String payType) {\n\t\tPAYMENT_TYPE = payType;\n\t}", "@NotNull\n public PaymentType getPaymentType(){\n if(payment.size() == 1){\n return payment.get(0).getPaymentType();\n }else if(payment.size() > 1){\n return PaymentType.SPLIT;\n }\n return PaymentType.UNPAID;\n }", "public int getSqlType() { return _type; }", "@Override\r\n\tpublic XftPayment selectByNo(String payNo, String payType) {\n\t\treturn xftPaymentMapper.selectByNo(payNo, payType);\r\n\t}", "public Short getPayType() {\n return payType;\n }", "public String getSqlType() {\n\t\treturn this.sqlType;\n\t}", "public String getJP_BankAccountType();", "public Integer getPaymentType() {\n\t\treturn paymentType;\n\t}", "public String getPaymentAmountType() {\r\n return paymentAmountType;\r\n }", "public String getMoneyType() {\n return moneyType;\n }", "public Boolean getPayType() {\n return payType;\n }", "public String getPaymentType() {\r\n return paymentType;\r\n }", "public int getJdbcType();", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }", "public java.lang.String getPayTp () {\n\t\treturn payTp;\n\t}", "public abstract String toJavaType(int sqlType);", "public int getTipoSql() {\n return tipoSql;\n }", "public void setPayType(String payType) {\n this.payType = payType == null ? null : payType.trim();\n }", "public void setPayType(String payType) {\n this.payType = payType == null ? null : payType.trim();\n }", "fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();", "public PaymentType getPaymentType()\n {\n return PAYMENT_TYPE;\n }", "public int getType() throws SQLException\n {\n return m_rs.getType();\n }", "public PaymentType getPaymentType() {\n\t\treturn paymentType;\n\t}", "public Integer getLastDealPersonType() {\n return lastDealPersonType;\n }", "public java.lang.String getPaymenttype () {\r\n\t\treturn paymenttype;\r\n\t}", "public String get(int typeCode) throws MappingException {\n\t\tfinal String result = defaults.get(typeCode);\n\t\tif (result == null) {\n\t\t\tthrow new MappingException(\"No Dialect mapping for JDBC type: \" + typeCode);\n\t\t}\n\t\treturn result;\n\t}", "public int getPaySlipType() {\n return paySlipType;\n }", "public MsqType getType()\n {\n return this.type;\n }", "@Pure\n public static int getSQLType(@Nonnull CustomType customType) {\n final @Nullable Integer result = TYPES.get(customType);\n if (result == null) { throw CaseExceptionBuilder.withVariable(\"customType\").withValue(customType).build(); }\n else { return result; }\n }", "public void setPayType(Short payType) {\n this.payType = payType;\n }", "public abstract PaymentType getPaymentType();", "public String getScoreType(int scoreType) throws ULMSSysException\r\n {\r\n return codeMaintainDAO.getScoreType(scoreType);\r\n }", "public java.lang.String getFieldDBType() {\n return fieldDBType;\n }", "public String getSuptypeNo() {\n return suptypeNo;\n }", "@NotNull(message = \"empty.paymentType\")\n public PaymentType getPaymentType() {\n\n return paymentType;\n }", "public Column.Type getType();", "public String getTypeName(int typecode)\n {\n String result = defaults.get(typecode);\n if (result == null)\n {\n throw new RuntimeException(\"No Dialect mapping for JDBC type: \" + typecode);\n }\n return result;\n }", "public String getMptType() {\n return mptType;\n }", "public void setPayType(Boolean payType) {\n this.payType = payType;\n }", "public java.lang.String getPayTpCd () {\n\t\treturn payTpCd;\n\t}", "public Long getPayamount() {\n return payamount;\n }", "protected int getSqlTypeByJava(DbAttribute attribute, Class<?> javaClass) {\n if (javaClass == null) {\n return NOT_DEFINED;\n }\n\n // check standard mapping of class and superclasses\n Class<?> aClass = javaClass;\n while (aClass != null) {\n\n String name;\n\n if (aClass.isArray()) {\n name = aClass.getComponentType().getName() + \"[]\";\n } else {\n name = aClass.getName();\n }\n\n Object type = javaSqlEnum.get(name);\n if (type != null) {\n return ((Number) type).intValue();\n }\n\n aClass = aClass.getSuperclass();\n }\n\n // check non-standard JDBC types that are still supported by JPA\n if (javaClass.isArray()) {\n\n Class<?> elementType = javaClass.getComponentType();\n if (Character.class.isAssignableFrom(elementType)\n || Character.TYPE.isAssignableFrom(elementType)) {\n return Types.VARCHAR;\n }\n else if (Byte.class.isAssignableFrom(elementType)\n || Byte.TYPE.isAssignableFrom(elementType)) {\n return Types.VARBINARY;\n }\n }\n\n if (Calendar.class.isAssignableFrom(javaClass)) {\n return Types.TIMESTAMP;\n }\n\n if (BigInteger.class.isAssignableFrom(javaClass)) {\n return Types.BIGINT;\n }\n\n if (Serializable.class.isAssignableFrom(javaClass)) {\n // serializable check should be the last one when all other mapping attempts failed\n return Types.VARBINARY;\n }\n\n return NOT_DEFINED;\n }", "public SqlType getSqlType() {\n \t\t\treturn SqlType.BYTE;\n \t\t}", "public String getDBType() {\r\n return dbType;\r\n }", "public PaymentTypeObject getPaymentType(int payment_type_id) throws AppException;", "@Override\n\tpublic String getJdbcTypeName() {\n\t\tString text = JdbcTypesManager.getJdbcTypes().getTextForCode( getJdbcTypeCode() );\n\t\treturn text != null ? text : \"???\" ;\n\t}", "public Long getPayId() {\r\n return payId;\r\n }", "public void setPaymentType(long paymentType) {\n this.paymentType = paymentType;\n }", "public String get(int typecode) throws MappingException {\n\t\tString result = defaults.get( typecode );\n\t\tif (result==null) throw new MappingException(\"No Dialect mapping for JDBC type: \" + typecode);\n\t\treturn result;\n\t}", "public TransactionType findTxnTypeById(int parseLong);", "public String getP_type() {\n return p_type;\n }", "@ApiModelProperty(required = true, value = \"The type of the PayID\")\n @NotNull\n\n\n public TypeEnum getType() {\n return type;\n }", "@Override\n public Object toJdbcType(Object value) {\n return value;\n }", "public String getPaymentTypeName() {\n return paymentTypeName;\n }", "public List<Type> getTypeList() {\n\t\treturn sm.selectList(\"com.lanzhou.entity.Longpay.getTypeList\");\n\t}", "public String getPayMethod() {\n return payMethod;\n }", "public static String convert( int sqlType, String columnType) throws ClassNotFoundException {\r\n String result = null;\r\n\r\n switch( sqlType ) {\r\n case Types.CHAR:\r\n case Types.VARCHAR:\r\n case Types.LONGVARCHAR:\r\n result = \"java.lang.String\";\r\n break;\r\n\r\n case Types.NUMERIC:\r\n case Types.DECIMAL:\r\n result = \"java.math.BigDecimal\";\r\n break;\r\n\r\n case Types.BIT:\r\n result = \"java.lang.Boolean\";\r\n break;\r\n\r\n case Types.TINYINT:\r\n result = \"java.lang.Byte\";\r\n break;\r\n\r\n case Types.SMALLINT:\r\n result = \"java.lang.Short\";\r\n break;\r\n\r\n case Types.INTEGER:\r\n result = \"java.lang.Integer\";\r\n break;\r\n\r\n case Types.BIGINT:\r\n result = \"java.lang.Long\";\r\n break;\r\n\r\n case Types.REAL:\r\n case Types.FLOAT:\r\n case Types.DOUBLE:\r\n result = \"java.lang.Double\";\r\n break;\r\n\r\n case Types.BINARY:\r\n case Types.VARBINARY:\r\n case Types.LONGVARBINARY:\r\n result = \"[Ljava.lang.Byte;\";\r\n break;\r\n\r\n case Types.DATE:\r\n result = \"java.sql.Date\";\r\n break;\r\n\r\n case Types.TIME:\r\n result = \"java.sql.Time\";\r\n break;\r\n case Types.DISTINCT:\r\n result = \"java.lang.Object\";\r\n case Types.TIMESTAMP:\r\n result = \"java.sql.Timestamp\";\r\n break;\r\n case Types.ARRAY:\r\n if (columnType.contains(\"varchar\") || columnType.contains(\"text\")) {\r\n result = \"[Ljava.lang.String;\";\r\n } else if (columnType.contains(\"int\")) {\r\n result = \"[[Ljava.lang.Integer;\";\r\n }\r\n }\r\n\r\n if (result == null) {\r\n System.err.println(\"Could not find value for sqlType \" + sqlType + \" and column type \" + columnType);\r\n result = \"java.lang.Object\";\r\n //throw new RuntimeException(\"Could not find value for sqlType \" + sqlType + \" and column type \" + columnType);\r\n }\r\n\r\n return result;\r\n }", "public String obtenirType() {\n\t\treturn this.type;\n\t}", "private static String getSqlType(Schema schema) {\n\t\t\n\t\tString sqlType = null;\n\t\t\n\t\tSchema.Type schemaType = schema.isNullable() ? schema.getNonNullable().getType() : schema.getType();\n\t switch (schemaType) {\n\t case ARRAY:\n\t break;\n\t case BOOLEAN:\n\t break;\n\t case BYTES:\n\t break;\n\t case DOUBLE:\n\t break;\n\t case ENUM:\n\t break;\n\t case FLOAT:\n\t break;\n\t case INT:\n\t break;\n\t case LONG:\n\t break;\n\t case MAP:\n\t break;\n\t case NULL:\n\t \t \tbreak;\n\t case RECORD:\n\t break;\n\t case STRING:\n\t break;\n\t case UNION:\n\t break;\n\t }\n\t \n\t\treturn sqlType;\n\t\n\t}", "public int getC_POSDocType_ID() \n{\nInteger ii = (Integer)get_Value(COLUMNNAME_C_POSDocType_ID);\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "@Column(name = \"ACCOUNT_TYPE\")\n\tpublic String getAccountType()\n\t{\n\t\treturn accountType;\n\t}", "@java.lang.Override\n public int getWalletTypeValue(int index) {\n return walletType_.get(index);\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "@Generated\n @Selector(\"resultType\")\n @NUInt\n public native long resultType();", "public int getJdbcTypeByJava(DbAttribute attribute, String className) {\n if (className == null) {\n return NOT_DEFINED;\n }\n\n Integer type = javaSqlEnum.get(className);\n if (type != null) {\n return type;\n }\n\n // try to load a Java class - some nonstandard mappings may work\n try {\n return getSqlTypeByJava(attribute, Util.getJavaClass(className));\n } catch (Throwable th) {\n return NOT_DEFINED;\n }\n }", "public String getPAYMENT_TYPE() {\r\n return PAYMENT_TYPE;\r\n }", "public java.lang.String calculationType()\n\t{\n\t\treturn _strCalculationType;\n\t}", "private static String getSqlParameter(String type) {\n switch (type) {\n case \"boolean\":\n case \"java.lang.Boolean\":\n return \"BOOLEAN\";\n case \"byte\":\n case \"java.lang.Byte\":\n return \"TINYINT\";\n case \"short\":\n case \"java.lang.Short\":\n return \"SMALLINT\";\n case \"int\":\n case \"java.lang.Integer\":\n return \"INTEGER\";\n case \"long\":\n case \"java.lang.Long\":\n return \"BIGINT\";\n case \"float\":\n case \"java.lang.Float\":\n return \"FLOAT\";\n case \"double\":\n case \"java.lang.Double\":\n return \"DOUBLE\";\n case \"byte[]\":\n case \"java.lang.Byte[]\":\n return \"BINARY\";\n case \"java.lang.String\":\n return \"VARCHAR\";\n case \"java.sql.Date\":\n return \"DATE\";\n case \"java.sql.Timestamp\":\n return \"TIMESTAMP\";\n case \"java.sql.Time\":\n return \"TIME\";\n case \"java.math.BigDecimal\":\n return \"DOUBLE\";\n default:\n if (type.contains(\"[]\")) {\n return \"ARRAY\";\n }\n\n throw new RuntimeException(\"Unknown SqlType: \" + type);\n }\n }", "public int getColumnType() {\n return (this.option >> 6) & 3;\n }", "public String get(int typecode) throws DialectException {\r\n\t\tString result = (String) defaults.get( new Integer(typecode) );\r\n\t\tif (result==null) throw new DialectException(\"No Dialect mapping for JDBC type: \" + typecode);\r\n\t\treturn result;\r\n\t}", "@NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.administration.customerservice.BillingInformation.type}\")\n \n @ManyToOne(fetch = FetchType.LAZY)\n@JoinColumn(name = \"TYPE_FK\")\[email protected](name = \"BILLINTYPE_FK\")\n\n public gov.nih.nci.calims2.domain.common.Type getType() {\n return type;\n }", "public Integer getTypeCode() {\n return typeCode;\n }", "ResultColumn getTypeIdColumn(TableReference tableReference);", "public int getComboType() {\n\t\tif(combo) {\n\t\t\treturn -1;\n\t\t}\n\t\tcombo = true;\n\t\treturn this.type;\n\t}", "public TransactionType getTransactionType()\n {\n return transactionType;\n }", "public int getType() throws SQLException {\n\n try {\n debugCodeCall(\"getType\");\n checkClosed();\n return stat == null ? ResultSet.TYPE_FORWARD_ONLY : stat.resultSetType;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public Integer getSettlementtype() {\n return settlementtype;\n }", "public String getBankAccountType();", "public List<SelectItem> loadComboPaymentType() {\n\t\tlistPaymentType = new ArrayList<SelectItem>();\n\t\tlistPaymentType.add(new SelectItem(ContantsUtil.PaymentType.PAYMENT_TYPE_PREPAID,\n\t\t\t\tContantsUtil.PaymentType.PAYMENT_TYPE_PREPAID_NAME));\n\t\tlistPaymentType.add(new SelectItem(ContantsUtil.PaymentType.PAYMENT_TYPE_POSTPAID,\n\t\t\t\tContantsUtil.PaymentType.PAYMENT_TYPE_POSTPAID_NAME));\n\t\treturn listPaymentType;\n\t}", "@Override\n public Class<TblrefJoboptioncodeRecord> getRecordType() {\n return TblrefJoboptioncodeRecord.class;\n }", "public Integer getPayStatus() {\n return payStatus;\n }" ]
[ "0.6650202", "0.6580538", "0.6580538", "0.60417926", "0.5993838", "0.5986644", "0.5939317", "0.59123933", "0.589468", "0.588307", "0.58412576", "0.58395237", "0.58310777", "0.57920796", "0.572275", "0.5670641", "0.5655209", "0.56528085", "0.56489134", "0.56489134", "0.56489134", "0.56489134", "0.56489134", "0.56489134", "0.56489134", "0.56489134", "0.56489134", "0.56489134", "0.56489134", "0.5624508", "0.55860287", "0.55705345", "0.5503836", "0.54871434", "0.54871434", "0.5483786", "0.5467206", "0.544011", "0.5403732", "0.53525245", "0.53409845", "0.5328101", "0.5324878", "0.53188276", "0.5316438", "0.53017", "0.5299673", "0.528102", "0.5276759", "0.5270418", "0.5263572", "0.5250658", "0.52289456", "0.5221873", "0.52005017", "0.5196736", "0.51680386", "0.5159012", "0.51542354", "0.51494473", "0.5147075", "0.5143537", "0.51333964", "0.51300395", "0.5121803", "0.51147455", "0.5111658", "0.51072645", "0.5096941", "0.5096182", "0.50877494", "0.50872296", "0.50857043", "0.5079474", "0.50705296", "0.5061378", "0.5051075", "0.50455827", "0.50424415", "0.50424415", "0.50424415", "0.50424415", "0.50412273", "0.50317085", "0.5030721", "0.50294185", "0.50234777", "0.5018733", "0.50154513", "0.5014913", "0.5006954", "0.50009733", "0.49942628", "0.4992906", "0.4992459", "0.49797538", "0.4978835", "0.49637678", "0.49614087", "0.49507838" ]
0.63483626
3
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.payType
public void setPaytype(String paytype) { this.paytype = paytype == null ? null : paytype.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void queryByPaymentType(String payType) {\n\t\tPAYMENT_TYPE = payType;\n\t}", "public void setPayType(String payType) {\n this.payType = payType == null ? null : payType.trim();\n }", "public void setPayType(String payType) {\n this.payType = payType == null ? null : payType.trim();\n }", "public void setPayType(Boolean payType) {\n this.payType = payType;\n }", "public void setPayType(Short payType) {\n this.payType = payType;\n }", "public String getPayType() {\n return payType;\n }", "public String getPayType() {\n return payType;\n }", "public Integer getPayType() {\n\t\treturn payType;\n\t}", "public void setPaymentType(long paymentType) {\n this.paymentType = paymentType;\n }", "@Override\r\n\tpublic XftPayment selectByNo(String payNo, String payType) {\n\t\treturn xftPaymentMapper.selectByNo(payNo, payType);\r\n\t}", "public void setJP_BankAccountType (String JP_BankAccountType);", "public void setPaymentType(Integer paymentType) {\n\t\tthis.paymentType = paymentType;\n\t}", "public void setMoneyType(String moneyType) {\n this.moneyType = moneyType == null ? null : moneyType.trim();\n }", "public String getPaytype() {\n return paytype;\n }", "public void setPaySlipType(int paySlipType) {\n this.paySlipType = paySlipType;\n }", "public void setPaymentAmountType(String paymentAmountType) {\r\n this.paymentAmountType = paymentAmountType;\r\n }", "public Integer updatePaymentType(PaymentTypeObject paymentTypeObject) throws AppException;", "@Override\r\n\tpublic void setPaymentType() {\n\t\tthis.paymentType = PaymentType.YINLIAN;\r\n\t}", "public void setPaymentType(String paymentType) {\r\n this.paymentType = paymentType == null ? null : paymentType.trim();\r\n }", "public void setPaymentType(PaymentType paymentType) {\n\n this.paymentType = paymentType;\n }", "public abstract void setCurrencyType(String currencyType);", "public void setColType(String colType) {\r\n\t\tthis.colType = colType == null ? null : colType.trim();\r\n\t}", "public PaymentType(String paymentType) {\n\t\tsuper();\n\t\tthis.paymentType = paymentType;\n\t}", "public void setPaymentType(PaymentType paymentType) {\n\t\tthis.paymentType = paymentType;\n\t}", "public void setPayTp (java.lang.String payTp) {\n\t\tthis.payTp = payTp;\n\t}", "public Boolean getPayType() {\n return payType;\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "@Override\n public String convertToDatabaseColumn(TransactionType transactionType) {\n if (transactionType == null) return null;\n\n return transactionType.getTransactionType();\n }", "public long getPaymentType() {\n return paymentType;\n }", "public Short getPayType() {\n return payType;\n }", "public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType)\r\n/* 30: */ {\r\n/* 31: 78 */ this.preparedStatementType = preparedStatementType;\r\n/* 32: */ }", "public void setPayMethod(String value) {\n this.payMethod = value;\n }", "public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }", "public void setTransactionType(int transactionChoice);", "public void setPayTime(Date payTime) {\n this.payTime = payTime;\n }", "public void setPayTime(Date payTime) {\n this.payTime = payTime;\n }", "public String getPaymentAmountType() {\r\n return paymentAmountType;\r\n }", "public void setType(int pType) {\n mType = pType;\n }", "public void setMptType(String mptType) {\n this.mptType = mptType;\n }", "public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }", "public int getSqlType() { return _type; }", "public void setPayAmt (BigDecimal PayAmt);", "public void setComboType(String comboType) {\r\n this.comboType = comboType == null ? null : comboType.trim();\r\n }", "public void setResult(String name, int type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setSqlType(type);\r\n }", "public void assignDiscountType(int acc_no, String discount_type){\n try {\n Stm = conn.prepareStatement(\"UPDATE `bapers`.`Customer` SET Discount_type = ? WHERE Account_no =? AND Customer_type = ?;\");\n Stm.setString(1, discount_type);\n Stm.setInt(2,acc_no);\n Stm.setString(3, \"Valued\");\n Stm.executeUpdate();\n Stm.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void setStatementType(Class<? extends Statement> statementType)\r\n/* 25: */ {\r\n/* 26: 71 */ this.statementType = statementType;\r\n/* 27: */ }", "public void setPersonType(PersonType_Tp type) { this.personType = type; }", "public void setPayStatus(Integer payStatus) {\n this.payStatus = payStatus;\n }", "public void setType(int type) throws DBException {\n _type = type;\n }", "public void setType(int type) throws DBException {\n _type = type;\n }", "public void setIdType(int idType) {\r\n this.idType = idType;\r\n }", "public void setTypeCode(Integer typeCode) {\n this.typeCode = typeCode;\n }", "public void xsetType(org.apache.xmlbeans.XmlInt type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(TYPE$2);\n }\n target.set(type);\n }\n }", "public void setDBType(String dbType) {\r\n this.dbType = dbType;\r\n }", "public void setType(long type) {\r\n this.type = type;\r\n }", "public void setPayamount(Long payamount) {\n this.payamount = payamount;\n }", "public void setBankAccountType (String BankAccountType);", "public Integer getPaymentType() {\n\t\treturn paymentType;\n\t}", "public void setC_Payment_ID (int C_Payment_ID);", "public void setIdType(Integer idType) {\n this.idType = idType;\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public void setTypeCode(String typeCode) {\n this.typeCode = typeCode == null ? null : typeCode.trim();\n }", "public void setTypeCode(String typeCode) {\n this.typeCode = typeCode == null ? null : typeCode.trim();\n }", "public void setTypeCode(String typeCode) {\n this.typeCode = typeCode == null ? null : typeCode.trim();\n }", "public String getPaymentType() {\r\n return paymentType;\r\n }", "void setInstallmentType(java.math.BigInteger installmentType);", "public void setPAYMENT_TYPE(String PAYMENT_TYPE) {\r\n this.PAYMENT_TYPE = PAYMENT_TYPE == null ? null : PAYMENT_TYPE.trim();\r\n }", "public void addPaymentType(PaymentTypeLocal paymentType) {\n java.util.Set paymentTypesCol = getPaymentTypes();\n paymentTypesCol.add(paymentType);\n }", "public void setTypeCode(String typeCode) {\n this.typeCode = typeCode;\n }", "public void setType(int t){\n this.type = t;\n }", "public void setMailType(int v) \n {\n \n if (this.mailType != v)\n {\n this.mailType = v;\n setModified(true);\n }\n \n \n }", "public void setResult(int type, String typeName, Class javaType, DatabaseField nestedType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n field.setNestedTypeField(nestedType);\r\n getParameters().set(0, field);\r\n }", "public void setType(int type) {\n type_ = type;\n }", "public Saving bonusType(String bonusType) {\n this.bonusType = bonusType;\n return this;\n }", "public void setPromType(Boolean promType) {\n this.promType = promType;\n }", "public void setPayId(Long payId) {\r\n this.payId = payId;\r\n }", "public void setP_type(String p_type) {\n this.p_type = p_type;\n }", "void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }", "public void setAccountType(int value) {\r\n this.accountType = value;\r\n }", "public void setTradeType (java.lang.Long tradeType) {\r\n\t\tthis.tradeType = tradeType;\r\n\t}", "public void setSettlementType(java.lang.String settlementType) {\n this.settlementType = settlementType;\n }", "public abstract void setPaymentTypes(java.util.Set paymentTypes);", "public void adjustWorkerType(int workerType) {\n Connection dbConnection = DatabaseConnection.getDbConnection();\n try {\n preparedStatement = dbConnection.prepareStatement(UPDATE_WORKER_TYPE);\n preparedStatement.setInt(1, workerType);\n preparedStatement.execute();\n\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n } finally {\n try {\n preparedStatement.close();\n dbConnection.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }\n }", "void setTypeMapper (TypeMapper typeMapper);", "public int getPaySlipType() {\n return paySlipType;\n }", "public void setType(int type) {\r\n this.type = type;\r\n }", "public void setType(int type) {\r\n this.type = type;\r\n }", "@Override\n public void setPersonType(java.lang.String personType) {\n _entityCustomer.setPersonType(personType);\n }", "public void setType(int tmp) {\n this.type = tmp;\n }", "@Override\n\tpublic void setTypePK(long typePK) {\n\t\t_dlSyncEvent.setTypePK(typePK);\n\t}", "public void setMotType(Integer motType) {\n\t\tif (motType == null) {\n\t\t\tthis.motType = null;\n\t\t} else {\n\t\t\tthis.motType = motType;\n\t\t}\n\t}", "public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException {\n currentPreparedStatement.setObject(parameterIndex, x, targetSqlType);\n }", "public String getSqlType() {\n\t\treturn this.sqlType;\n\t}", "public void setCreditCardType (String CreditCardType);", "@ApiModelProperty(required = true, value = \"The type of the PayID\")\n @NotNull\n\n\n public TypeEnum getType() {\n return type;\n }", "@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}", "public void setNull(int parameterIndex, int sqlType) throws SQLException {\n currentPreparedStatement.setNull(parameterIndex, sqlType);\n }", "public void setAccountType(PaymentAccountTypeId value) {\n this.accountType = value;\n }", "public String getMoneyType() {\n return moneyType;\n }", "public void setLastDealPersonType(Integer lastDealPersonType) {\n this.lastDealPersonType = lastDealPersonType;\n }" ]
[ "0.6389963", "0.63889015", "0.63889015", "0.6162612", "0.60713035", "0.5918396", "0.5918396", "0.5886985", "0.58778036", "0.5731292", "0.5723527", "0.56188226", "0.560882", "0.5582814", "0.55572456", "0.5507886", "0.5377308", "0.5326834", "0.53192484", "0.5283777", "0.52798694", "0.527549", "0.5263889", "0.52562577", "0.52475876", "0.52338", "0.52285266", "0.52173305", "0.51954156", "0.5185868", "0.51798105", "0.51741344", "0.516378", "0.51526946", "0.5150314", "0.5150314", "0.51103723", "0.51089704", "0.5088048", "0.5087385", "0.50824064", "0.5074101", "0.50731814", "0.50639725", "0.50602543", "0.50357455", "0.50321585", "0.50189394", "0.5015744", "0.5015744", "0.5011617", "0.500337", "0.5001602", "0.4999824", "0.49827647", "0.49750146", "0.49654683", "0.4942291", "0.49339452", "0.49218258", "0.4921484", "0.49148005", "0.49148005", "0.49148005", "0.48968735", "0.48743314", "0.48689812", "0.4866431", "0.48597398", "0.4853819", "0.48521394", "0.48491433", "0.4845182", "0.48281556", "0.48253307", "0.48209974", "0.4810073", "0.47995675", "0.47993848", "0.4793329", "0.47905627", "0.47868612", "0.47860312", "0.47832128", "0.4775382", "0.47731176", "0.47731176", "0.47719675", "0.47712585", "0.4764299", "0.4762924", "0.47626206", "0.47594202", "0.47591874", "0.47589645", "0.47577465", "0.4756234", "0.47498932", "0.47478434", "0.4745305" ]
0.55294335
15
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.vipType
public String getViptype() { return viptype; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSqlType() { return _type; }", "public Integer getVatType() {\r\n\t\treturn vatType;\r\n\t}", "ResultColumn getTypeIdColumn(TableReference tableReference);", "public String getMptType() {\n return mptType;\n }", "public int getTipoSql() {\n return tipoSql;\n }", "fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType();", "public String getSqlType() {\n\t\treturn this.sqlType;\n\t}", "public String getSuptypeNo() {\n return suptypeNo;\n }", "public int getJdbcType();", "public String getP_type() {\n return p_type;\n }", "public int getColumnType() {\n return (this.option >> 6) & 3;\n }", "public java.lang.String getVoucherType() {\n return voucherType;\n }", "@Generated\n @Selector(\"resultType\")\n @NUInt\n public native long resultType();", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public String getJdbcType() {\n return this.jdbcType;\n }", "public Column.Type getType();", "public void setViptype(String viptype) {\n this.viptype = viptype == null ? null : viptype.trim();\n }", "public String getMemberType() {\n return (String) get(3);\n }", "public MsqType getType()\n {\n return this.type;\n }", "public abstract String toJavaType(int sqlType);", "public int getPhoneTypeValue() {\n return phoneType_;\n }", "public int getType() throws SQLException\n {\n return m_rs.getType();\n }", "public int getTypeValue() {\n\t\t\t\t\treturn type_;\n\t\t\t\t}", "int getPhoneTypeValue();", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}", "public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}", "public int getTypeValue() {\n\t\t\treturn type_;\n\t\t}", "@java.lang.Override public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public abstract String toHiveType(int sqlType);", "io.dstore.values.IntegerValue getFieldTypeId();", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "@java.lang.Override public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "@Override\n public String getJavaByJdbcType(DbAttribute attribute, int type) {\n String jdbcType = TypesMapping.getSqlNameByType(type);\n DbType dbType;\n if (attribute != null) {\n dbType = new DbType(\n jdbcType,\n attribute.getMaxLength(),\n attribute.getAttributePrecision(),\n attribute.getScale(),\n attribute.isMandatory());\n } else {\n dbType = new DbType(jdbcType);\n }\n\n String typeName = getJavaByJdbcType(dbType);\n\n if (usePrimitives != null && usePrimitives) {\n String primitive = classToPrimitive.get(typeName);\n if (primitive != null) {\n return primitive;\n }\n }\n\n return typeName;\n }", "public int getPhoneTypeValue() {\n return phoneType_;\n }", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "@java.lang.Override\n public int getTypeValue() {\n return type_;\n }", "public String getDBType() {\r\n return dbType;\r\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public int getTypeValue() {\n return type_;\n }", "public Integer getqTypeid() {\n return qTypeid;\n }", "public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }", "public fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType() {\n return type_;\n }", "public fi.kapsi.koti.jpa.nanopb.Nanopb.FieldType getType() {\n return type_;\n }", "public Integer getTypeCode() {\n return typeCode;\n }", "int getTemplateTypeValue();", "com.rpg.framework.database.Protocol.ItemType getType();", "public java.lang.String getFieldDBType() {\n return fieldDBType;\n }", "int getTypeIdValue();", "@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}", "public int getType() {\r\n return typ;\r\n }", "public String getJP_BankAccountType();", "public Integer getUsertype() {\n return usertype;\n }", "public int getMinecartType() {\n return type;\n }", "@Select({\n \"select\",\n \"code, process_name, types\",\n \"from basic_info_precursor_process_type\",\n \"where code = #{code,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n BasicInfoPrecursorProcessType selectByPrimaryKey(Integer code);", "public int getIpSourceType() {\n return getPropertyAsInt(IP_SOURCE_TYPE, SOURCE_TYPE_DEFAULT);\n }", "public Integer getNoptype() {\n return noptype;\n }", "public String getId_type() {\n return id_type;\n }", "public int getC_POSDocType_ID() \n{\nInteger ii = (Integer)get_Value(COLUMNNAME_C_POSDocType_ID);\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public String getColType() {\r\n\t\treturn colType;\r\n\t}", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }", "public String getTypeCode() {\n return typeCode;\n }" ]
[ "0.5868447", "0.5785235", "0.5771019", "0.57096195", "0.5661836", "0.5652982", "0.56043935", "0.5581096", "0.55734885", "0.5444195", "0.54400957", "0.54030883", "0.5394666", "0.53309584", "0.53309584", "0.53309584", "0.53309584", "0.53309584", "0.53309584", "0.53309584", "0.53309584", "0.53309584", "0.53309584", "0.53309584", "0.53050447", "0.5258345", "0.52498466", "0.52087444", "0.51841646", "0.51772386", "0.51727057", "0.5161907", "0.51603127", "0.51339394", "0.51339394", "0.5118664", "0.5118664", "0.5117687", "0.51096094", "0.5106414", "0.5098831", "0.5088472", "0.50842005", "0.50842005", "0.50842005", "0.50842005", "0.50842005", "0.50812596", "0.50812596", "0.5073755", "0.5072419", "0.5072419", "0.5072419", "0.5072419", "0.5072419", "0.5069046", "0.5068871", "0.50684506", "0.50684506", "0.50684506", "0.50684506", "0.50684506", "0.50684506", "0.50684506", "0.50684506", "0.50684506", "0.50684506", "0.50684506", "0.50684506", "0.50684506", "0.5068302", "0.5068302", "0.50642604", "0.5062219", "0.5062219", "0.5062219", "0.50560707", "0.5053731", "0.505255", "0.50315523", "0.50215816", "0.5016745", "0.5015095", "0.50122017", "0.5007455", "0.5005373", "0.5001988", "0.499832", "0.49941334", "0.49911252", "0.49909753", "0.49867007", "0.4978626", "0.4974369", "0.4965217", "0.49561778", "0.4954013", "0.4954013", "0.4954013", "0.4954013" ]
0.59171104
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.vipType
public void setViptype(String viptype) { this.viptype = viptype == null ? null : viptype.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdVoteType( int idVoteType )\n {\n _nIdVoteType = idVoteType;\n }", "public void setMailType(int v) \n {\n \n if (this.mailType != v)\n {\n this.mailType = v;\n setModified(true);\n }\n \n \n }", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "public void setType(int pType) {\n mType = pType;\n }", "public void setMptType(String mptType) {\n this.mptType = mptType;\n }", "public void setP_type(String p_type) {\n this.p_type = p_type;\n }", "public void xsetType(org.apache.xmlbeans.XmlInt type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(TYPE$2);\n }\n target.set(type);\n }\n }", "public void setType(int type) {\n type_ = type;\n }", "public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }", "public void setIpSourceType(int value) {\n setProperty(IP_SOURCE_TYPE, value, SOURCE_TYPE_DEFAULT);\n }", "public void setIpAddressType(String ipAddressType) {\n this.ipAddressType = ipAddressType;\n }", "public void setPromType(Boolean promType) {\n this.promType = promType;\n }", "public int getSqlType() { return _type; }", "public void setIdType(int idType) {\r\n this.idType = idType;\r\n }", "public final void setOptionType(com.mendix.systemwideinterfaces.core.IContext context, questionnairev2.proxies.OptionType optiontype)\r\n\t{\r\n\t\tif (optiontype != null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.OptionType.toString(), optiontype.toString());\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.OptionType.toString(), null);\r\n\t}", "public void setColType(String colType) {\r\n\t\tthis.colType = colType == null ? null : colType.trim();\r\n\t}", "public void setType(long type) {\r\n this.type = type;\r\n }", "public void setMotType(Integer motType) {\n\t\tif (motType == null) {\n\t\t\tthis.motType = null;\n\t\t} else {\n\t\t\tthis.motType = motType;\n\t\t}\n\t}", "public void setIdType(Integer idType) {\n this.idType = idType;\n }", "public void setExaminationType(ExaminationType_type1 param){\n \n this.localExaminationType=param;\n \n\n }", "public void setResult(int type, String typeName, Class javaType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n getParameters().set(0, field);\r\n }", "public void setPersonType(PersonType_Tp type) { this.personType = type; }", "public void setType(int type) throws DBException {\n _type = type;\n }", "public void setType(int type) throws DBException {\n _type = type;\n }", "public String getMptType() {\n return mptType;\n }", "public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType)\r\n/* 30: */ {\r\n/* 31: 78 */ this.preparedStatementType = preparedStatementType;\r\n/* 32: */ }", "public void setType(int tmp) {\n this.type = tmp;\n }", "public void setType( int type ) {\r\n typ = type;\r\n }", "public void setType(int t){\n this.type = t;\n }", "public String getViptype() {\n return viptype;\n }", "public void setVoucherType(java.lang.String voucherType) {\n this.voucherType = voucherType;\n }", "public void setDBType(String dbType) {\r\n this.dbType = dbType;\r\n }", "@Override\n\tpublic void setType(int type) {\n\t\t_dmGtStatus.setType(type);\n\t}", "public void setJP_BankAccountType (String JP_BankAccountType);", "public void setType(int type) {\r\n this.type = type;\r\n }", "public void setType(int type) {\r\n this.type = type;\r\n }", "public void setUserType(String type) {\r\n switch(type) {\r\n case (\"admin\"): \r\n this.userType = 0;\r\n break;\r\n case (\"seller\"):\r\n this.userType = 1;\r\n break;\r\n case (\"buyer\"):\r\n this.userType = 2;\r\n break;\r\n \r\n }\r\n }", "public void setType(int type)\n {\n editor.putInt(KEY_TYPE, type);\n // commit changes\n editor.commit();\n Log.d(TAG,\"user type modified in pref\");\n }", "public void setResult(int type, String typeName, Class javaType, DatabaseField nestedType) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(\"\");\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n field.setType(javaType);\r\n field.setNestedTypeField(nestedType);\r\n getParameters().set(0, field);\r\n }", "public Integer getVatType() {\r\n\t\treturn vatType;\r\n\t}", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "void setDataType(int type );", "public void setMinecartType(final int type) {\n this.type = type;\n }", "public void setType(String inType)\n {\n\ttype = inType;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "public void setResult(String name, int type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setSqlType(type);\r\n }", "public void setType (int type) {\n this.type = type;\n }", "public void setType (int type) {\n this.type = type;\n }", "@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}", "public void setType(int t) {\r\n\t\ttype = t;\r\n\t}", "public void setResultSetType(Class<? extends ResultSet> resultSetType)\r\n/* 40: */ {\r\n/* 41: 92 */ this.resultSetType = resultSetType;\r\n/* 42: */ }", "public void setType(int sportsType) {\n mType = sportsType; \n }", "public void setNewProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewProperty_descriptionType=param;\n \n\n }", "public void setType(int type) {\n this.type = type;\n }", "public void setType(int type)\n\t{\n\t\tthis.type = type;\n\t}", "public void setMemberType(String value) {\n set(3, value);\n }", "public void setType(Integer type) {\r\n\t\tthis.type = type;\r\n\t}", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public SelectType (int _selectType) {\n selectType = _selectType;\n }", "void setForPersistentMapping_Type(Type type) {\n this.type = type;\n }", "public void setType(int value) {\n this.type = value;\n }", "public void setType(int type) {\n\t\tthis.type = type;\n\t}", "public void setType(Integer type) {\n\t\tthis.type = type;\n\t}", "public void setOverrideTableType(int value) {\n\t\tthis.overrideTableType = value;\n\t}", "public void setType(java.lang.Integer type) {\n this.type = type;\n }", "public void setType(java.lang.Integer type) {\n this.type = type;\n }", "private void setTypeId(int value) {\n \n typeId_ = value;\n }", "public void setUsertype(Integer usertype) {\n this.usertype = usertype;\n }", "public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}", "public void setTypeid(Long typeid) {\n this.typeid = typeid;\n }", "public void setDatabaseType(String databaseType) {\r\n m_databaseType = databaseType;\r\n }", "public void setType(int a_type) {\n\t\tthis.m_type = a_type;\n\t}", "@Update({\n \"update basic_info_precursor_process_type\",\n \"set process_name = #{processName,jdbcType=VARCHAR},\",\n \"types = #{types,jdbcType=TINYINT}\",\n \"where code = #{code,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(BasicInfoPrecursorProcessType record);", "public void setType(int atype)\n {\n type = atype;\n }", "void setType(final UserType type);", "public Builder setPhoneTypeValue(int value) {\n phoneType_ = value;\n onChanged();\n return this;\n }", "void setType(Type type)\n {\n this.type = type;\n }", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "public void setType(int nType) { m_nType = nType; }", "public void setVerifyType(Integer verifyType) {\r\n this.verifyType = verifyType;\r\n }", "public void setSettlementtype(Integer settlementtype) {\n this.settlementtype = settlementtype;\n }", "public void setType(final int evidenceType) {\r\n\t\ttype = evidenceType;\r\n\t}", "public native final void setServerType(String serverType)/*-{\n this.serverType = serverType;\n }-*/;", "public final void setOptionType(questionnairev2.proxies.OptionType optiontype)\r\n\t{\r\n\t\tsetOptionType(getContext(), optiontype);\r\n\t}", "public void setType(final com.cdoframework.cdolib.database.xsd.types.IfTypeType type) {\n this.type = type;\n }", "public void setType(final int t) {\n\t\ttype = t;\n\t}", "public void setNoptype(Integer noptype) {\n this.noptype = noptype;\n }", "void setValueOfColumn(ModelColumnInfo<Item> column, @Nullable Object value);", "public void setResult(String name, int type, String typeName) {\r\n ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(name);\r\n field.setSqlType(type);\r\n field.setSqlTypeName(typeName);\r\n getParameters().set(0, field);\r\n }", "public void setId_type(String id_type) {\n this.id_type = id_type;\n }", "public final void setProcessType(com.mendix.systemwideinterfaces.core.IContext context, slm.proxies.ProcessType processtype)\r\n\t{\r\n\t\tif (processtype != null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.ProcessType.toString(), processtype.toString());\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.ProcessType.toString(), null);\r\n\t}", "public void setIdType(String idType) {\n this.idType = idType == null ? null : idType.trim();\n }", "public void setUserType(UserType userType) {\n\t\tthis.userType = userType;\n\t\tif (userType != CustomerControl.dummyUserType)\n\t\t\tthis.userTypeID=userType.getUserTypeID();\n\t}", "public void setVIP(boolean VIP);" ]
[ "0.5619481", "0.5498958", "0.54630595", "0.5314751", "0.5246094", "0.5101773", "0.50755733", "0.50725245", "0.5072327", "0.5064169", "0.5048558", "0.5036305", "0.5034855", "0.50322866", "0.50290906", "0.5008291", "0.49985936", "0.49980932", "0.49883986", "0.4986356", "0.49801296", "0.49782366", "0.49521932", "0.49521932", "0.49512473", "0.49372464", "0.4925714", "0.49237138", "0.48999608", "0.48916686", "0.48832074", "0.48737842", "0.487318", "0.48676786", "0.48585922", "0.48585922", "0.48406303", "0.48359784", "0.4831387", "0.4825275", "0.4818128", "0.4816792", "0.48035777", "0.48034954", "0.4802725", "0.47964746", "0.4793484", "0.4793484", "0.478817", "0.4783686", "0.47823545", "0.47821543", "0.47730714", "0.47714153", "0.47695124", "0.47677365", "0.47597173", "0.47585058", "0.47585058", "0.47585058", "0.47585058", "0.47585058", "0.47585058", "0.47585058", "0.47555858", "0.47498807", "0.4735346", "0.47338733", "0.4724425", "0.47094917", "0.47071147", "0.47071147", "0.46993053", "0.46969274", "0.46967387", "0.4696538", "0.4692454", "0.46918577", "0.46834588", "0.4679972", "0.46654773", "0.46646407", "0.46620682", "0.46601558", "0.46582672", "0.46302873", "0.462427", "0.46234623", "0.46206766", "0.46149868", "0.46106786", "0.46048832", "0.45957386", "0.45946068", "0.45933554", "0.45885053", "0.45879766", "0.45840317", "0.45804927", "0.45775223" ]
0.5791534
0
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.topAgent
public String getTopagent() { return topagent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public String getTopnum() {\n return topnum;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "public java.lang.String getAgentNumber() {\r\n return agentNumber;\r\n }", "public void setTopagent(String topagent) {\n this.topagent = topagent == null ? null : topagent.trim();\n }", "public Long getTwoagent() {\n return twoagent;\n }", "public String getTop_actif() {\r\n\t\treturn top_actif;\r\n\t}", "public String getAgentId() {\n return this.agentId;\n }", "public Long getOneagent() {\n return oneagent;\n }", "public Integer getTopmoney() {\n return topmoney;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "public Integer getTopuserid() {\n return topuserid;\n }", "public String getAgentId() {\n return agentId;\n }", "public void setTopnum(String topnum) {\n this.topnum = topnum;\n }", "public String getAgent() {\n return this.agent;\n }", "@Override\n public Long findMAX() {\n\n StringBuffer sql = new StringBuffer(\"select max(magoithau) from goithau\");\n Query query = entityManager.createNativeQuery(sql.toString());\n return Long.parseLong(query.getSingleResult().toString()) ;\n }", "private Integer getSequence() {\r\n\t\t\tInteger seq;\r\n\t\t\tString sql = \"select MAX(vendorid)from vendorTable\";\r\n\t\t\tseq = template.queryForObject(sql, new Object[] {}, Integer.class);\r\n\t\t\treturn seq;\r\n\t\t}", "public final AgentIdentifier getAgent() {\n\t\treturn (this.__agent==null) ? null : this.__agent.get().getId();\n\t}", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public Long getCityagent() {\n return cityagent;\n }", "public String getAgent() {\n return agent;\n }", "public BigDecimal getAgentMoney() {\n return agentMoney;\n }", "public java.lang.String getAgentCheckNumber() {\r\n return agentCheckNumber;\r\n }", "public Integer getTop() {\n return top;\n }", "@Override\n\tpublic long getMinnum() {\n\t\treturn _esfTournament.getMinnum();\n\t}", "public int getAgentsQty();", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "public Integer getTopupid() {\n return topupid;\n }", "public String getAgentPort() {\n return (String)getAttributeInternal(AGENTPORT);\n }", "public EntityID getAssignedAgentID();", "public String getAgentName ()\n {\n return agentName;\n\n }", "public int getAdjusterAgent(int agent_id) {\n int id = 0;\n try {\n agentAdjuster.setInt(1, agent_id);\n ResultSet resultset = agentAdjuster.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"adjuster_id\");\n System.out.println(\"Adjuster ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }", "public Long getProvinceagent() {\n return provinceagent;\n }", "public String getAgentStipend() {\r\n return (String) getAttributeInternal(AGENTSTIPEND);\r\n }", "@Override\r\n\tpublic Integer getMaxInvSrno() {\n\t\tQStnLooseMt qStnLooseMt = QStnLooseMt.stnLooseMt;\r\n\t\tJPAQuery query = new JPAQuery(entityManager);\r\n\t\tInteger retVal = -1;\r\n\t\t\r\n\t\tCalendar date = new GregorianCalendar();\r\n\t\t\r\n\t\tList<Integer> maxSrno = query\r\n\t\t\t.from(qStnLooseMt)\r\n\t\t\t.where(qStnLooseMt.invDate.year().eq(date.get(Calendar.YEAR))).list(qStnLooseMt.srNo.max());\r\n\t\t\r\n\t\tfor (Integer srno : maxSrno) {\r\n\t\t\tretVal = (srno == null ? 0 : srno);\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "public int getTeamNo() {\r\n\t\treturn teamNo;\r\n\t}", "public Long getCountyagent() {\n return countyagent;\n }", "public Integer getTopbs() {\n return topbs;\n }", "public int top() {\n return top.value;\n }", "public String findAgentNameByAgentId(String agentId);", "public int top() {\n return p.val;\n }", "public java.lang.String getMtopago() {\n return mtopago;\n }", "public int getTopCard() {\n return this.topCard;\n }", "org.beangle.security.session.protobuf.Model.Agent getAgent();", "public int getTop() {\n\treturn top;\n }", "@Nullable\n public DpProp getTop() {\n if (mImpl.hasTop()) {\n return DpProp.fromProto(mImpl.getTop());\n } else {\n return null;\n }\n }", "@Override\r\n\tpublic int maxNum() throws Exception {\n\t\treturn session.selectOne(\"com.mapper.cook.maxNum\");\r\n\t}", "public int getAgentID(int agent_id) {\n int id = 0;\n try {\n checkAgentID.setInt(1, agent_id);\n ResultSet resultset = checkAgentID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"agent_id\");\n System.out.println(\"Agent ID: \" + id);\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"agent ID Invalid! No Agent Exists With That ID.\"); \n }\n return id;\n }", "public String getMobileNo() {\n return (String)getAttributeInternal(MOBILENO);\n }", "public Integer getHostelOrderDetailNo() {\n return hostelOrderDetailNo;\n }", "@Override\n\tpublic long getMaxnum() {\n\t\treturn _esfTournament.getMaxnum();\n\t}", "public int getTop() {\n return top;\n }", "private int getMaxIfIpId() {\n\n // get maxRundowId\n Integer maxIfIpId = this.baseMapper.getSqlSession().selectOne(this.getSqlId(\"getMaxIfIpId\"));\n\n // get form databse\n return maxIfIpId == null ? IntDef.INT_ONE : maxIfIpId.intValue();\n }", "public String getAgencyNum() {\n return agencyNum;\n }", "String getTopSelectClause(int top);", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public String getAgentName() {\n return agentName;\n }", "public void setTop_actif(String top_actif) {\r\n\t\tthis.top_actif = top_actif;\r\n\t}", "public Agent getAgent() {\n\t\treturn agent;\n\t}", "public int getTop() {\n\t\treturn this.top;\n\t}", "java.lang.String getAgentName();", "public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n if (agentBuilder_ == null) {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n } else {\n return agentBuilder_.getMessage();\n }\n }", "public String getUserGroupTopId() {\r\n return userGroupTopId;\r\n }", "public String getAgentContactPhone() {\n return agentContactPhone;\n }", "@java.lang.Override\n public org.beangle.security.session.protobuf.Model.Agent getAgent() {\n return agent_ == null ? org.beangle.security.session.protobuf.Model.Agent.getDefaultInstance() : agent_;\n }", "public String getAgentName() {\n return (String)getAttributeInternal(AGENTNAME);\n }", "public NM getSessionNo() { \r\n\t\tNM retVal = this.getTypedField(28, 0);\r\n\t\treturn retVal;\r\n }", "public K topValue() {\n\t\tif(top!=null)\r\n\t\t\treturn top.data;\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public String getTopEight() {\n return TopEight;\n }", "public Number getIdbulto()\n {\n return (Number)getAttributeInternal(IDBULTO);\n }", "public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public java.math.BigDecimal getAgentCheckAmount() {\r\n return agentCheckAmount;\r\n }", "private void getAgentName() {\n DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference();\n DatabaseReference agentRef = rootRef.child(\"Properties\").child(globals.chosenProp).child(\"agent\");\n\n agentRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n agentName = dataSnapshot.getValue().toString();\n }\n getAgentEmail();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) { }\n });\n }", "public int getTopWeight(){\r\n\t \treturn this.topWeight;\r\n\t }", "public int top() {\n return q1.getFirst();\n }", "public void setTwoagent(Long twoagent) {\n this.twoagent = twoagent;\n }", "public double getTopScore() {\n return topScore;\n }", "public String getJob_TM() {\r\n return job_TM;\r\n }", "public String get_snmpcommunity()\r\n\t{\r\n\t\treturn this.snmpcommunity;\r\n\t}", "public static Integer getUserSeatOffCode() {\r\n HttpSession session = getSession();\r\n if (session != null && session.getAttribute(\"selected_off_cd\") != null) {\r\n return Integer.parseInt(session.getAttribute(\"selected_off_cd\").toString());\r\n } else {\r\n return null;\r\n }\r\n }", "public int getMAX_PROPERTY() {\r\n\t\treturn MAX_PROPERTY;\r\n\t}", "public java.lang.String getNameOfShipAgent() {\n\t\treturn _tempNoTiceShipMessage.getNameOfShipAgent();\n\t}", "public java.lang.String getAgentName() {\r\n return agentName;\r\n }", "public int getC_UOM_ID() \n{\nInteger ii = (Integer)get_Value(\"C_UOM_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "public String getEstimateItemNumber(){\r\n\t\treturn getEstimateItemViewTop(0);\r\n\t}", "public int top() {\n return top;\n }", "@JsonGetter(\"agent\")\n public Object getAgent ( ) { \n return this.agent;\n }", "public int getHC_ManagerTo_ID();", "public String getMiNo() {\r\n return miNo;\r\n }", "java.lang.String getAgentIP();", "public final String getNum_emp() {\n return getString(getNum_empAttribute(getMtDatabase()));\n }", "public final Probe getAgentProbe() {\n\t\tSituatedAgent<?,?,?,?> ag = (this.__agent==null) ? null : this.__agent.get();\n\t\tif (ag!=null) {\n\t\t\treturn ag.getProbe();\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic String getMobileNum() {\n\t\treturn get.getMobileNum();\n\t}", "public static int retourneMaxNumber() {\n int tmp = 0;\n try {\n String requete = \"SELECT Max(eleve.id_el) AS Maxeleve FROM eleve\";\n ResultSet rs = Connector1.statement.executeQuery(requete);\n while (rs.next()) {\n tmp = rs.getInt(1);\n\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n }\n return tmp;\n }", "public Integer getSettlementno() {\n return settlementno;\n }", "public DescribeInstanceMonitorTopNCmdResponse DescribeInstanceMonitorTopNCmd(DescribeInstanceMonitorTopNCmdRequest req) throws TencentCloudSDKException{\n JsonResponseModel<DescribeInstanceMonitorTopNCmdResponse> rsp = null;\n try {\n Type type = new TypeToken<JsonResponseModel<DescribeInstanceMonitorTopNCmdResponse>>() {\n }.getType();\n rsp = gson.fromJson(this.internalRequest(req, \"DescribeInstanceMonitorTopNCmd\"), type);\n } catch (JsonSyntaxException e) {\n throw new TencentCloudSDKException(e.getMessage());\n }\n return rsp.response;\n }", "private GRIDagent getTestAgent()\n {\n String agtID = \"testAgent001\",\n currentLink = \"401538273_2_r\", // 40963664_0 106292026_0 1to2 17005466_7_r\n currentIntrx = \"401538273_2_r\", // 1040921516 // 1to2\n destIntrx = \"17005466_7_r\"; // 72823276_0 99to99 24to25 401538273_2_r\n // 864162469 - 1400447055 99282649_0_r [72823276_0 problem link]\n\n GRIDagent myAgent = new GRIDagent(agtID,currentLink,currentIntrx,destIntrx, false, false);\n\n return myAgent;\n }", "public java.lang.String getReceiveAgentID() {\r\n return receiveAgentID;\r\n }", "public int getM_Inventory_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Inventory_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}" ]
[ "0.6090851", "0.5987785", "0.5982128", "0.581261", "0.57266796", "0.5696453", "0.56426615", "0.5323059", "0.5296853", "0.52396095", "0.5231435", "0.52136505", "0.520864", "0.5203923", "0.51716465", "0.5161355", "0.5131998", "0.5116781", "0.51081717", "0.5070194", "0.5065648", "0.50474614", "0.50326556", "0.5023646", "0.5016342", "0.50021493", "0.4997088", "0.49933818", "0.49301267", "0.49239877", "0.4917616", "0.4904802", "0.48954552", "0.4888993", "0.4885776", "0.48852423", "0.486456", "0.48606825", "0.48514214", "0.48463717", "0.48424307", "0.4836534", "0.482701", "0.48221144", "0.4801698", "0.47954333", "0.4794279", "0.47909686", "0.47832784", "0.47623885", "0.4748811", "0.474219", "0.47357506", "0.4734057", "0.47319937", "0.4727125", "0.47211388", "0.4711963", "0.47111452", "0.47110167", "0.46931034", "0.46814564", "0.46798253", "0.46766302", "0.46761912", "0.46650726", "0.4651898", "0.46481156", "0.46460477", "0.4642641", "0.46316627", "0.46243602", "0.46005064", "0.45998394", "0.4598013", "0.45899734", "0.45856142", "0.45815715", "0.4578776", "0.45770922", "0.45770857", "0.45633462", "0.45633185", "0.4560957", "0.45537728", "0.45515394", "0.45498344", "0.45479128", "0.4539602", "0.45356324", "0.4532447", "0.45228684", "0.4520971", "0.45207086", "0.45202097", "0.45198932", "0.45192128", "0.4510095", "0.45087573", "0.45047274" ]
0.66617113
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.topAgent
public void setTopagent(String topagent) { this.topagent = topagent == null ? null : topagent.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAgent(Integer agent) {\r\n this.agent = agent;\r\n }", "public String getTopagent() {\n return topagent;\n }", "public void setTopnum(String topnum) {\n this.topnum = topnum;\n }", "public void setTwoagent(Long twoagent) {\n this.twoagent = twoagent;\n }", "public Integer getAgent() {\r\n return agent;\r\n }", "public void setAgent(String agent)\n {\n this.agent = agent;\n }", "public void setTop_actif(String top_actif) {\r\n\t\tthis.top_actif = top_actif;\r\n\t}", "public java.lang.String getAgentNumber() {\r\n return agentNumber;\r\n }", "public void setTopScore(double topScore) {\n this.topScore = topScore;\n }", "public void setAgent(String agent) {\r\n\t\tthis.agent = agent;\r\n\t}", "public void setAgentNumber(java.lang.String agentNumber) {\r\n this.agentNumber = agentNumber;\r\n }", "public void setAgentNoFk(Number value) {\r\n setAttributeInternal(AGENTNOFK, value);\r\n }", "public void setAgentMoney(BigDecimal agentMoney) {\n this.agentMoney = agentMoney;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(String agent) {\n this.agent = agent;\n }", "public void setAgent(Agent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setTopmoney(Integer topmoney) {\n this.topmoney = topmoney;\n }", "public void setTop(Integer top) {\n this.top = top;\n }", "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public void setCountyagent(Long countyagent) {\n this.countyagent = countyagent;\n }", "public void setTargetAgent(final Agent agent) {\r\n mTargetAgent = agent;\r\n }", "public Long getTwoagent() {\n return twoagent;\n }", "public void setOneagent(Long oneagent) {\n this.oneagent = oneagent;\n }", "public void setCityagent(Long cityagent) {\n this.cityagent = cityagent;\n }", "public void setTopuserid(Integer topuserid) {\n this.topuserid = topuserid;\n }", "public String getAgentId() {\n return this.agentId;\n }", "public void setProvinceagent(Long provinceagent) {\n this.provinceagent = provinceagent;\n }", "public String getAgentId() {\n return agentId;\n }", "public void setM_Production_ID (int M_Production_ID);", "@NonNull\n public Builder setTop(@NonNull DpProp top) {\n if (top.getDynamicValue() != null) {\n throw new IllegalArgumentException(\"setTop doesn't support dynamic values.\");\n }\n mImpl.setTop(top.toProto());\n mFingerprint.recordPropertyUpdate(\n 3, checkNotNull(top.getFingerprint()).aggregateValueAsInt());\n return this;\n }", "@JsonSetter(\"agent\")\n public void setAgent (Object value) { \n this.agent = value;\n }", "void setOwner(Agent agent) {\n\t\tsuper.setOwner(agent);\n\t\tthis.referencesFromCapacityMap.set(0);\n\t}", "public void setHC_ManagerTo_ID (int HC_ManagerTo_ID);", "@Override\n\tpublic void setMinnum(long minnum) {\n\t\t_esfTournament.setMinnum(minnum);\n\t}", "public String getTopnum() {\n return topnum;\n }", "public void selectAgent(int selected) {\n this.selected = selected;\n }", "public void setTopupid(Integer topupid) {\n this.topupid = topupid;\n }", "public Long getOneagent() {\n return oneagent;\n }", "public void setAgentId(String agentId) {\n this.mAgentId = agentId;\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setHome_phone(Long home_phone);", "public void setTeamNo(int teamNo) {\r\n\t\tthis.teamNo = teamNo;\r\n\t}", "public void setHighOpinion(Integer highOpinion) {\n this.highOpinion = highOpinion;\n }", "public void setAgentName (String agentName)\n {\n this.agentName = agentName;\n\n }", "@JsonProperty(\"best_arrival_estimate_mins\")\n public void setBestArrivalEstimateMins(Integer bestArrivalEstimateMins) {\n this.bestArrivalEstimateMins = bestArrivalEstimateMins;\n }", "public void setMtopago(java.lang.String mtopago) {\n this.mtopago = mtopago;\n }", "public void setTopbs(Integer topbs) {\n this.topbs = topbs;\n }", "public String getAgent() {\n return this.agent;\n }", "public static void sq_settop(JSqVM v, int newtop) {\r\n\t\tsq_settop_native(v.m_nativeHandle, newtop);\r\n\t}", "public void setAgencyNum(String agencyNum) {\n this.agencyNum = agencyNum;\n }", "public String getAgent() {\r\n\t\treturn agent;\r\n\t}", "public void setTopNode(Node<T> topNode) {\n\t\tthis.topNode = topNode;\n\t}", "public void setAgentRef(CondominioAgent agentRef){\n\t\tagentName = agentRef;\n\t}", "public Builder setAgent(org.beangle.security.session.protobuf.Model.Agent value) {\n if (agentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n agent_ = value;\n } else {\n agentBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Long getCityagent() {\n return cityagent;\n }", "public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}", "public String getAgent() {\n return agent;\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public void setAgentId(String agentId) {\n this.agentId = agentId;\n }", "public void setTop() {\n reset(State.TOP);\n }", "public void setMoneyGramAgentID(String moneyGramAgentID) {\n\n this.moneyGramAgentID = moneyGramAgentID;\n }", "public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}", "public EntityID getAssignedAgentID();", "public void setAgentContactPhone(String agentContactPhone) {\n this.agentContactPhone = agentContactPhone == null ? null : agentContactPhone.trim();\n }", "public synchronized void setAgentCoordinate() {\n agentCoordinate = getCoordinate(agentState);\n }", "public void setAgentPort(String value) {\n setAttributeInternal(AGENTPORT, value);\n }", "public String getTop_actif() {\r\n\t\treturn top_actif;\r\n\t}", "public int getAgentsQty();", "public BigDecimal getAgentMoney() {\n return agentMoney;\n }", "public void setCompany_mst(final arrow.businesstraceability.persistence.entity.Company_mst company_mst) {\n if (company_mst == null) {\n this.id_sarscom = null;\n }\n else {\n this.id_sarscom = company_mst.getCom_company_code();\n }\n this.company_mst = company_mst;\n }", "public Agent getAgent() {\r\n\t\treturn this.AGENT;\r\n\t}", "@Override\n\tpublic void setMaxnum(long maxnum) {\n\t\t_esfTournament.setMaxnum(maxnum);\n\t}", "@Override\n\tpublic void setIrTop(int irTop) {\n\t\t\n\t}", "public void setSettlementno(Integer settlementno) {\n this.settlementno = settlementno;\n }", "public int getTeamNo() {\r\n\t\treturn teamNo;\r\n\t}", "public String getAgentName ()\n {\n return agentName;\n\n }", "public Long getProvinceagent() {\n return provinceagent;\n }", "public void studentTopUp(int amount)\n {\n if (currentPhone == null)\n return;\n\n currentPhone.phoneTopUp(amount);\n }", "public void setOrderNo (Long orderNo) {\r\n\t\tthis.orderNo = orderNo;\r\n\t}", "public final AgentIdentifier getAgent() {\n\t\treturn (this.__agent==null) ? null : this.__agent.get().getId();\n\t}", "public void setMinNoEmp(Integer minNoEmp) {\n this.minNoEmp = minNoEmp;\n }", "public void setAgentCheckNumber(java.lang.String agentCheckNumber) {\r\n this.agentCheckNumber = agentCheckNumber;\r\n }", "private void putToTop()\r\n {\r\n OrderManager manager = myOrderManagerRegistry.getOrderManager(ourKey);\r\n manager.activateParticipant(ourKey);\r\n manager.moveToTop(ourKey);\r\n }", "public void editTransactionAgent(Agent agent);", "public void setMobile_phone(Long mobile_phone);", "public void setCodigo() throws SQLException {\n try (PreparedStatement query = Herramientas.getConexion().prepareStatement(\"SELECT MAX(codigo_ticket) FROM ticket\"); \n ResultSet resultado = query.executeQuery()) {\n resultado.next();\n this.codigo = (resultado.getInt(1))+1;\n }\n \n }", "public java.lang.String getAgentCheckNumber() {\r\n return agentCheckNumber;\r\n }", "public void setTopSpeed(int topSpeed) {\n\t\tif (topSpeed >= 0 && topSpeed <= 70) {\n\t\t\tthis.topSpeed = topSpeed;\n\t\t} \n\t\telse {\n\t\t\tSystem.out.println(\"Invalid Speed\");\n\t\t}\n\t\t\n\t}", "public void setBatchAgent(String value) {\n this.batchAgent = value;\n }", "public void setAgencyId(int value) {\n this.agencyId = value;\n }", "public Long getCountyagent() {\n return countyagent;\n }", "public Integer getTopuserid() {\n return topuserid;\n }", "@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}", "void setTopTotalScorers(UserProfile[] topTotalScorers) {\n this.topTotalScorers = topTotalScorers;\n }", "public void setAgentCheckAmount(java.math.BigDecimal agentCheckAmount) {\r\n this.agentCheckAmount = agentCheckAmount;\r\n }", "public void setActiveOpponent(long opponent) {\n\t\tm_Opponent = opponent;\n\t}", "public void setAgentContactor(String agentContactor) {\n this.agentContactor = agentContactor == null ? null : agentContactor.trim();\n }", "public void setBestCommunity(int bestCommunity) {\n this.bestCommunity = bestCommunity;\n }", "public OperatorAgentView(OperatorAgent agent) {\n\t\tthis.agent = agent;\n\t}", "public void setOpcowner(java.lang.Long value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCOWNER, value);\n\t}" ]
[ "0.6086431", "0.56785303", "0.55865157", "0.54564154", "0.5377941", "0.5173748", "0.51460844", "0.5120784", "0.5114151", "0.5095915", "0.5093122", "0.50913244", "0.5075603", "0.50527513", "0.50527513", "0.50486887", "0.5048001", "0.5042733", "0.49881127", "0.4981998", "0.49647358", "0.49591273", "0.4953842", "0.49364913", "0.4918196", "0.48802716", "0.486476", "0.4819681", "0.4819153", "0.48026973", "0.47992453", "0.47869518", "0.4784223", "0.47670552", "0.47649282", "0.47182304", "0.4678512", "0.46687323", "0.46418092", "0.46276045", "0.46154144", "0.46062046", "0.46007776", "0.45846644", "0.45775795", "0.45724678", "0.45681307", "0.45643392", "0.4564214", "0.45591995", "0.4556306", "0.4545769", "0.45410946", "0.4535155", "0.4528863", "0.45018548", "0.44862917", "0.4472945", "0.4472945", "0.4467639", "0.44463876", "0.444008", "0.4431091", "0.44260758", "0.4416449", "0.44094363", "0.44071215", "0.4405523", "0.44049975", "0.4398714", "0.43893468", "0.4380988", "0.4373133", "0.43690646", "0.4359533", "0.43592393", "0.43483275", "0.43455207", "0.4342909", "0.43392769", "0.43392593", "0.4320065", "0.43174213", "0.43165615", "0.43138403", "0.43134335", "0.43026924", "0.42930293", "0.4292672", "0.42890954", "0.42709443", "0.42617238", "0.4254191", "0.4250216", "0.42498377", "0.42458054", "0.42410374", "0.42390558", "0.42364758", "0.422489" ]
0.64254624
0
This method was generated by MyBatis Generator. This method returns the value of the database column t_mp_num.levelWeight
public Long getLevelweight() { return levelweight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLevelweight(Long levelweight) {\n this.levelweight = levelweight;\n }", "public Integer getMlevel() {\n return mlevel;\n }", "public int getWeight() {\n return parameter.getWeight();\n }", "public String getWeightUnit() {\n return (String) get(\"weight_unit\");\n }", "public String getMlLevel() {\r\n return mlLevel;\r\n }", "public String weightColumnName() {\n return this.weightColumnName;\n }", "@Column(name=\"answerWeight\")\r\n public Integer getAnswerWeight() {\r\n return answerWeight;\r\n }", "public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }", "public Integer getWeight() {\n return weight;\n }", "public double getWeight(){\n\t\treturn this._weight;\n\t}", "public double getWeight() {\n return this.weight * 2.20462;\n }", "public int getWeight() {\n return this.weight;\n }", "public int getWeight() {\r\n\t\treturn this.weight;\r\n\t}", "public double getWeight() {\n\t\tif(weightConfiguration == null) {\n\t\t\treturn 1.0;\n\t\t}\n\t\treturn weightConfiguration.weightForIdentifier(this.getIdentifier());\n\t}", "public double getLevel() {\n\t\treturn level;\n\t}", "public int getpWeight() {\n return pWeight;\n }", "public int getWeight(){\n\t\treturn weight;\n\t}", "public double getWeight() {\n\t\n\t\treturn this.weight;\t \n\t}", "@Basic\r\n\tpublic Weight getWeight(){\r\n\t\treturn weight;\r\n\t}", "public int getWeight(){\n \treturn weight;\n }", "public int getWeight()\n\t{\n\t\treturn this.weight;\n\t}", "public String getWeight()\r\n\t{\r\n\t\treturn weight;\r\n\t}", "public String getWeight() {\n return weight;\n }", "public int getWeight() {\n\t\treturn _weight;\n\t}", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "public double getWeight(){\n\t\treturn weight;\n\t}", "public int getWeight() {\n return weight;\n }", "public double getWeight() {\n\t\treturn weight; \n\t\t}", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "@java.lang.Override\n public double getLevel() {\n return level_;\n }", "public int getWeight() {\n return weight;\n }", "public int getWeight() {\n return weight;\n }", "public double getWeight()\r\n {\r\n return this.aWeight ;\r\n }", "public int getWeight()\n {\n return this.aWeight;\n\n }", "public int getWeight() {\n return weight;\n }", "@JsonGetter(\"weight\")\n public int getWeight ( ) {\n return this.weight;\n }", "public int getWeight() {\n\t\treturn weight;\n\t}", "public int getWeight() {\n\t\treturn weight;\n\t}", "public double Getlevel()\r\n {\r\n return level;\r\n }", "public ScGridColumn<AcUpuTagSummaryVo> newWeightColumn()\n {\n return newWeightColumn(\"Weight\");\n }", "public PowerLevel getLevel() {\n return level;\n }", "public int getWeight() {\n\t\treturn quantity*weight; \n\t}", "public int getWeight()\n {\n return weight;\n }", "public double getWeight() {\n\t\treturn weight;\n\t}", "public String getLevel() {\n return getAttribute(ATTRIBUTE_LEVEL);\n }", "public int currentLevel (Power p) {\n StoredPower sp = StoredPower.find(\"byOwner_idAndPower\", this.id, p).first();\n\t if (sp == null) {\n\t return 0;\n\t } \n\t return sp.level;\n }", "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight() {\r\n return weight;\r\n }", "public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }", "@ApiModelProperty(example = \"16\", value = \"Provides the unit of measure in which weight is provided in this message. Refer to OpenTravel Code List Unit of Measure (UOM).\")\n\n\n public Integer getWeightUnitOfMeasureCode() {\n return weightUnitOfMeasureCode;\n }", "public double getWeight() {\n return weight;\n }", "public double getWeight() {\n return weight;\n }", "public int getC_UOM_Weight_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_UOM_Weight_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "@Override\n public double getWeight() {\n return this.weight;\n }", "public java.lang.Double getWeight () {\r\n\t\treturn weight;\r\n\t}", "int getWeight() {\n return weight;\n }", "int getWeight() {\n return weight;\n }", "public int getLevel() {\n return eliteMobLevel;\n }", "public double getLevel(SkillType name) { return levels.get(name); }", "public double getWeight(){\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "public int getLevelValue() {\n return level_;\n }", "public int weight(){\n\t\treturn this.weight;\n\t}", "public int getLevel() {\n \treturn this.level;\n }", "public float getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "public String getLevel() {\n return this.level;\n }", "public double getcurrentWeight() {\n\t return this.currentWeight;\n\t}", "public int getLevel(){\n\t\treturn this.level;\n\t}", "@Override\n\tpublic double getWeight() {\n\t\treturn weight;\n\t}", "public float getWeight() {\n\t\t\treturn weight;\n\t\t}", "public float getWeight() {\n return weight;\n }", "public Byte getWeight() {\n\t\treturn weight;\n\t}", "double getLevel();", "double getLevel();", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public Integer getLevel() {\n return level;\n }", "public int getWeight();", "public int getLevelValue() {\n return level_;\n }", "public int getLevelNo() {\n return levelNo;\n }", "public int getWeightLimit() {\n\t\treturn this.weightLimit;\n\t}", "public int getLevel() {\n return this.level;\n }", "public int getLevel() {\n\t\treturn this.level;\n\t}", "public int getLeftWeight(){\r\n\t \treturn this.leftWeight;\r\n\t }", "@Override\n\tpublic int getLevelNumber() {\n\t\treturn numLevel;\n\t}", "public int getLevel() {\n\t\treturn 1 + this.iter / this.levelfk;\n\t}", "public final String getLevel() {\n return this.level;\n }", "public int getLevel(){\n \t\treturn (strength + intelligence + stamina + Math.abs(charm) + Math.abs(cuteness))/5;\n \t}", "int getWeight();", "int getWeight();", "public Weight getWeight();", "public int getWeapLvl() {\n\t\treturn weaponLevel;\n\t}", "public double getWeight()\n\t{\n\t\t//metodo precisa retornar alguma coisa\n\t\treturn 0.0;\n\t}", "public int getLevel()\r\n {\r\n return r_level;\r\n }", "public long getWeightKg() {\n return (long) (getWeight() / POUNDS_PER_KG);\n }", "HashMap<String, Double> getWeightMap() {\n\t\treturn weightMap;\n\t}" ]
[ "0.64300835", "0.6148921", "0.6069385", "0.6063182", "0.600119", "0.596947", "0.5935619", "0.589034", "0.58894676", "0.5875409", "0.5861565", "0.58510363", "0.5847897", "0.5839947", "0.5835685", "0.58336914", "0.5829046", "0.58236957", "0.5820961", "0.5808707", "0.580344", "0.5801923", "0.5801075", "0.57835656", "0.5765398", "0.5765398", "0.57639235", "0.5762583", "0.57525545", "0.57412887", "0.57412887", "0.573879", "0.573879", "0.57327217", "0.5729698", "0.5721337", "0.5719287", "0.5712864", "0.5712864", "0.57056797", "0.5697353", "0.5685424", "0.56837016", "0.5679103", "0.567594", "0.5674894", "0.56740355", "0.5673563", "0.5673563", "0.5668647", "0.5668431", "0.5665526", "0.5665526", "0.56632876", "0.5645947", "0.5632338", "0.5630059", "0.5630059", "0.5621542", "0.56034166", "0.56012696", "0.55951816", "0.5590322", "0.5583651", "0.55835426", "0.55777615", "0.55777615", "0.5577696", "0.5576814", "0.5576065", "0.5573927", "0.5573419", "0.556851", "0.55596113", "0.55495626", "0.55495626", "0.55471456", "0.55471456", "0.55471456", "0.55471456", "0.55471456", "0.5545035", "0.5544611", "0.55421174", "0.553807", "0.552681", "0.55245805", "0.55205435", "0.5515434", "0.5509458", "0.550918", "0.5494948", "0.5486995", "0.5486995", "0.5481246", "0.5472828", "0.546835", "0.546257", "0.5459181", "0.5456003" ]
0.7383077
0
This method was generated by MyBatis Generator. This method sets the value of the database column t_mp_num.levelWeight
public void setLevelweight(Long levelweight) { this.levelweight = levelweight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getLevelweight() {\n return levelweight;\n }", "public void setWeight(final double pWeight){this.aWeight = pWeight;}", "public void setpWeight(int pWeight) {\n this.pWeight = pWeight;\n }", "public void setMlevel(Integer mlevel) {\n this.mlevel = mlevel;\n }", "public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setWeight(double w){\n weight = w;\n }", "@Override\r\n\tpublic void setWeight(double weight) {\n\t\t\r\n\t}", "@Override\n public void setCurrentLoadWeight(double mlw) {\n currentLoadWeight = mlw;\n }", "public void setMicGainDb(float level);", "public void setWeight(String newValue);", "public void setWeight(int w){\n\t\tweight = w;\n\t}", "public void setWeight(int newWeight) {\n weight = newWeight;\n }", "private void setWeight(float weight){\n this.weight = weight;\n }", "public void setWeight(double pounds) {\n if (pounds >= 80 && pounds <= 280)\n this.weight = pounds;\n }", "public void setRowWeight(List<UpperPowerLog> upperPowerList, Type upType) {\n\n if(!((MainScreen)getActivity()).getUpperPowerJson().equals(\"\")) {\n upperPowerList = gson.fromJson(((MainScreen) getActivity()).getUpperPowerJson(), upType);\n UpperPowerLog lastUP = upperPowerList.get(upperPowerList.size() - 1);\n double newRowWeight = Double.parseDouble(lastUP.rowWeight);\n if((newRowWeight * .7) < 20 ) {\n //if its less than 20, set it to 20\n newRowWeight = 20;\n }\n else {\n //if its > 20, multiply by .7 and round to the nearest 5\n newRowWeight = Math.round((newRowWeight * .7) / 5) * 5 ;\n }\n bsE1Weight.setText(String.valueOf(newRowWeight));\n }\n else {\n bsE1Weight.setText(\"20\");\n }\n }", "public void setWeight(float value) {\n this.weight = value;\n }", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "public void setWeight(double weight){\n\t\tthis.weight = weight;\n\t}", "public void setWeight(int weight){\n\t\tthis.weight = weight;\n\t}", "@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }", "public void setMlLevel(String mlLevel) {\r\n this.mlLevel = mlLevel == null ? null : mlLevel.trim();\r\n }", "public void setWeight(double weight) {\r\n this.weight = weight;\r\n }", "@JsonSetter(\"weight\")\n public void setWeight (int value) {\n this.weight = value;\n }", "public void setMinWeight(double inMinWeight) {\n minWeight = inMinWeight;\n }", "public void setLevel(Long value) {\r\n setAttributeInternal(LEVEL, value);\r\n }", "public void setWeight(Integer weight) {\n this.weight = weight;\n }", "public void setWeight(double weight){\n\t\tthis._weight = weight;\n\t}", "public void setWeight(int w) {\n\t\tweight = w;\n\t}", "public void setWeight(float w) {\n weight = w;\n }", "public void setWeight(double weight) {\n this.weight = weight;\n }", "public void setWeight(double weight) {\n\t\tweightConfiguration.setWeightForIdentifier(this.getIdentifier(), weight);\n\t}", "public void setWeight(double weight) {\n\t\tthis.weight = weight;\n\t}", "public void setLevel(Level mLevel) {\n this.level = mLevel;\n level.increaseChamberCount();\n }", "public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "public void setC_UOM_Weight_ID(int C_UOM_Weight_ID) {\n\t\tif (C_UOM_Weight_ID <= 0)\n\t\t\tset_Value(\"C_UOM_Weight_ID\", null);\n\t\telse\n\t\t\tset_Value(\"C_UOM_Weight_ID\", new Integer(C_UOM_Weight_ID));\n\t}", "public void setWeight(Double weight) {\n this.weight = weight;\n }", "@Override\n\tpublic void setWeight(final double weight) {\n\n\t}", "public void setWeight(int weight) {\n\t\tif (weight > 0) {\n\t\t\tthis.weight = weight;\n\t\t} else {\n\t\t\tthis.weight = 0;\n\t\t}\n\t}", "public void setMaxWeight(String newValue);", "public void setLevel(String newLevel) {\n level = newLevel;\n }", "public void setWeight(float value) {\n\t\t\tthis.weight = value;\n\t\t}", "public synchronized void setWeight(int weight){\n\t\tthis.personWeight = weight; \n\t}", "public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }", "public void setWeightLimit(int weightLimit) {\n\t\tthis.weightLimit = weightLimit;\n\t}", "public void setWeight(final int weight) {\n this.weight = weight;\n }", "public ScGridColumn<AcUpuTagSummaryVo> newWeightColumn()\n {\n return newWeightColumn(\"Weight\");\n }", "public Integer getMlevel() {\n return mlevel;\n }", "public void setLitWeightRatio(double ratio) { this.exec = this.exec.withProperty(\"sm.improve.lwr\", ratio); }", "public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}", "public void setRelativeWeight(int value) {\n this.relativeWeight = value;\n }", "private void setEliteMobLevel(int newLevel) {\n if (newLevel < 1)\n newLevel = 1;\n this.eliteMobLevel = newLevel;\n }", "public void setLevel(int value) {\n this.level = value;\n }", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "public void setLevel(int v)\n {\n m_level = v;\n }", "public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "@Column(name=\"answerWeight\")\r\n public Integer getAnswerWeight() {\r\n return answerWeight;\r\n }", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public void setWeight(String weight) {\n this.weight = weight;\n }", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "public void setWeight (java.lang.Double weight) {\r\n\t\tthis.weight = weight;\r\n\t}", "private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_LEVEL, level);\n }", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "public void setLevel(String level);", "public void setSrvWeightValue(long srvWeightValue) throws JNCException {\n setSrvWeightValue(new YangUInt32(srvWeightValue));\n }", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "public void setLevel(Level level) { this.currentLevel = level; }", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "public void setLevel(String value) {\n this.level = value;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public void setLevel(Integer level) {\n this.level = level;\n }", "public String getMlLevel() {\r\n return mlLevel;\r\n }", "public void setWeight(T3 eWeight) {\r\n\t\tthis.weight = eWeight;\r\n\t}", "public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "public void setGradingWeight(double weight){\n \tgradingWeight = weight;\n }", "public void setLevel(double amt) {\n\t\tlevel += amt;\n\t}", "public void setWeight(double weight2) {\n\t\tthis.weight = weight2;\n\t}", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n this.level = level;\n }", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\n\t}", "public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}", "public void setWeight(Byte weight) {\n\t\tthis.weight = weight;\n\t}", "public void switchPowerLevel()\n {\n // If power level is 1, set this.powerLevel to 3 - 1 = 2.\n // If power level is 2, set this.powerLevel to 3 - 2 = 1.\n this.powerLevel = (3 - this.powerLevel);\n }", "public Builder setLevel(double value) {\n \n level_ = value;\n onChanged();\n return this;\n }", "public Builder setLevel(double value) {\n \n level_ = value;\n onChanged();\n return this;\n }", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }", "public void setWetLevel(int wetLevel) {\r\n\r\n\t\t// Value in the range 0..100\r\n\t\tthis.wetLevel = wetLevel;\r\n\t}", "public final void setLevel(final int level) {\n\t\tthis.level = level;\n\t}", "public void setSrvWeightValue(YangUInt32 srvWeightValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"srv-weight\",\n srvWeightValue,\n childrenNames());\n }", "public void setCurrentWeight(double newWeight) throws Exception {\n\t\tthis.currentWeight = new Weight(currentWeight.getWeightType(), newWeight);\n\t}", "public ConditionTargetWeight(int weight)\n\t{\n\t\t_weight = weight;\n\t}" ]
[ "0.6471283", "0.6074667", "0.5922078", "0.5842921", "0.5841826", "0.5774737", "0.57434064", "0.57325053", "0.57212836", "0.5714365", "0.5705782", "0.56901026", "0.5683849", "0.56812584", "0.56802666", "0.56508553", "0.56397617", "0.5631138", "0.5624939", "0.5612928", "0.55986303", "0.55925584", "0.55877185", "0.5564642", "0.5560567", "0.55542296", "0.5550099", "0.55350846", "0.5532644", "0.55298346", "0.5477341", "0.5457255", "0.5448851", "0.54429144", "0.5440381", "0.54351115", "0.54337734", "0.5428093", "0.5421984", "0.53942144", "0.539116", "0.53736955", "0.53733677", "0.5371376", "0.536759", "0.5367032", "0.5365817", "0.5358685", "0.5348906", "0.5346561", "0.534523", "0.5333981", "0.53292817", "0.53252757", "0.5318455", "0.5312739", "0.5312544", "0.53116846", "0.5310122", "0.5310038", "0.53086203", "0.53073865", "0.53070635", "0.528121", "0.52800316", "0.5277271", "0.5271169", "0.5267771", "0.5260073", "0.52590746", "0.5259037", "0.52572083", "0.52424186", "0.5218439", "0.5218439", "0.5218439", "0.5218439", "0.5218439", "0.5218022", "0.5217481", "0.521474", "0.52131706", "0.52128893", "0.5206422", "0.51911944", "0.51911944", "0.517882", "0.517882", "0.51609254", "0.514723", "0.5145679", "0.5142647", "0.5142647", "0.51195824", "0.5112557", "0.5111192", "0.5108527", "0.5099544", "0.50961244", "0.5091183" ]
0.71299756
0
moves index to next Doc
@Override public void updateToNextDoc() { if(idx < postingList.size()) idx += postingList.get(idx+1)+2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "@Override\n public int nextIndex()\n {\n return idx+1; \n }", "protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}", "public void incrementIndex() {\n\t\tindex++;\n\t\tif (nextItem != null) {\n\t\t\tnextItem.incrementIndex();\n\t\t}\n\t}", "void nextPage() throws IndexOutOfBoundsException;", "@Override\n public int nextPos(){\n if(pos<docPostingList.length) {\n\n return docPostingList[pos];\n\n }\n return -1;\n\n }", "@Override\n\tpublic void getNext(JCas j) throws IOException, CollectionException {\n\t\tString s = docElements.get(idx).text();\t\t\n\t\tj.setDocumentText(s);\n\t\tidx++;\n\t//\tj.setDocumentLanguage(language);\n\t//\tread = false\n\t}", "public void moveNext() {\n\t\tcurrentElement++;\n\t}", "@Override\n\t\tpublic int nextIndex() {\n\t\t\treturn 0;\n\t\t}", "private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }", "private void endDoc() {\n\t\ttry {\n\t\t\t// Report the end of the document to the IndexListener\n\t\t\tindexer.getListener().documentDone(currentDocumentName);\n\n\t\t\t// Store the captured document content in the content store\n\t\t\t// and add the contents of the complex field to the Lucene document\n\t\t\taddContentToLuceneDoc();\n\n\t\t\t// Add the Lucene document to the index\n\t\t\tindexer.add(currentLuceneDoc);\n\n\t\t\t// Report character progress\n\t\t\treportCharsProcessed();\n\n\t\t\t// Reset the contents field for the next document\n\t\t\tcontentsField.clear();\n\n\t\t\t// Should we continue or are we done?\n\t\t\tif (!indexer.continueIndexing())\n\t\t\t\tthrow new MaxDocsReachedException();\n\n\t\t} catch (MaxDocsReachedException e) {\n\n\t\t\t// We've reached our maximum number of documents we'd like to index.\n\t\t\t// This is okay; just rethrow it.\n\t\t\tthrow e;\n\n\t\t} catch (Exception e) {\n\n\t\t\t// Some error occurred.\n\t\t\tthrow ExUtil.wrapRuntimeException(e);\n\n\t\t}\n\t}", "public void incrementCurrentIndex() {\n currentIndex++;\n }", "public int nextIndex() {\n return curIndex;\n }", "private int next(int index)\n\t{\n\t\tif (index == list.length - 1)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn index + 1;\n\t\t}\n\t}", "public int nextIndex()\n {\n // TODO: implement this method\n return -1;\n }", "public int nextIndex() {\n\t\t\treturn cursor;\n\t\t}", "public int nextIndex() {\r\n throw new UnsupportedOperationException();\r\n }", "public void next() {\n if (highlight.getMatchCount() > 0) {\n Point point = highlight.getNextMatch(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n return;\n }\n Point point = file.getNextModifiedPoint(cursor.getY(), cursor.getX());\n if (point != null) {\n cursor.moveTo(point);\n }\n }", "void highlightNextWord() {\n\t\tif(findIndex < finder.size()) {\n\t\t\ttextEditor.getHighlighter().removeAllHighlights();\n\t\t\ttry {\n\t\t\t\thighlighter.addHighlight(finder.get(findIndex).p1, \n\t\t\t\t\t\tfinder.get(findIndex).p2-1, painter);\n\t\t\t} catch (BadLocationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfindIndex++;\n\t\t}\n\t\telse {\n\t\t\tfindIndex = 0;\n\t\t}\n\t}", "public void next()\n\t{\n\t\tif(this.curseur < this.listeTapis.size() - 1)\n\t\t{\n\t\t\tthis.curseur++;\n\t\t}\n\t}", "private void advanceToNextReader(){\r\n\t\tcurrentReader = null;\r\n\t\treaderQueueIndex++;\r\n\t}", "public void advance() {\n if( mMatches.hasNext() ) {\n setCurrent( mMatches.next() );\n }\n }", "public void advance( )\r\n {\r\n\t if(isCurrent() != true){// Implemented by student.\r\n\t throw new IllegalStateException(\"no current element\");\r\n\t }\r\n\t else\r\n\t \t precursor = cursor;\r\n\t \t cursor = cursor.getLink(); // Implemented by student.\r\n }", "public void moveTo(int pageIndex);", "@Override\n public SearchDocument nextDocument(SearchQuery query, int docId) {\n return null;\n }", "public Index next() {\n return Index.valueOf(value + 1);\n }", "@Override\r\n public int nextIndex() {\r\n if (next == null) {\r\n return size; \r\n }\r\n return nextIndex - 1;\r\n }", "public void next() {\n if (hasNext()) {\n setPosition(position + 1);\n }\n }", "public void moveFirst() {\n\t\tcurrentElement = 0;\n\t}", "public void put_next_index(long next_index, long number) {\n ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].putLong((int) (number * POINTER_LENGTH % ptr_parts_size[0] + 13), next_index);\n }", "public void toReturn(Document doc){\n documents.remove(doc);\n doc.setCopies(doc.copiesNumber() + 1);\n //TODO check data and fee\n //TODO rewrite list of documents\n }", "public void cursorDown() throws IndexOutOfBoundsException {\n if(cursor == size()-1)\n throw new IndexOutOfBoundsException(\"Exception: Current line is size()-1!\");\n //Setting the cursor to be the text line after its current position.\n cursor++;\n }", "private void nextQuestion() {\n mCurrentIndex = (mCurrentIndex + 1) % questions.length;\n int question = questions[mCurrentIndex].getTextResId();\n mText.setText(question);\n }", "public void nextButtonClicked()\r\n {\n manager = sond.getManager();\r\n String insertSearchDelete = sond.getInsertSearchDelete();\r\n AnimatorThread animThread = model.getThread();\r\n\r\n // falls der Thread pausiert ist, wird er beim betätigen des\r\n // next-Buttons aufgeweckt\r\n if (button.getPlay() && animThread != null && animThread.isAlive())\r\n {\r\n if (!animThread.getWait())\r\n {\r\n animThread.interrupt();\r\n }\r\n else\r\n {\r\n animThread.wake();\r\n }\r\n }\r\n // Redo muss vor den weiteren if Anweisungen stehen, damit erst alle\r\n // Redo ausgeführt werden, bevor neue Aktionen dem manager hinzugefuegt\r\n // werden\r\n else if (manager.canRedo())\r\n {\r\n manager.redo();\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"insert\"))\r\n {\r\n sond.nextInsertPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"search\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n else if (!sond.getArrayPosition() && insertSearchDelete.equals(\"delete\"))\r\n {\r\n sond.nextSearchPosition();\r\n UndoRedoSetAnimation command = new UndoRedoSetAnimation(sond);\r\n manager.addEdit(command);\r\n }\r\n }", "public void next(){\n\t\tboundIndex = (boundIndex+1)%buttonBounds.length;\n\t\tupdateButtonBounds();\n\t}", "void setPage(int index) throws IndexOutOfBoundsException;", "public emxPDFDocument_mxJPO getNext()\r\n {\r\n /*\r\n * Author : DJ\r\n * Date : 02/04/2003\r\n * Notes :\r\n * History :\r\n */\r\n return (emxPDFDocument_mxJPO)super.removeFirst();\r\n }", "private void reIndex()\n {\n for(int i = 0; i < NodeList.size(); i++)\n NodeList.get(i).setID(i);\n ID = NodeList.size();\n }", "public void next() {\n\t\telements[(currentElement - 1)].turnOff();\n\t\tif (elements.length > currentElement) {\n\t\t\telements[currentElement].turnOn();\n\t\t\tcurrentElement++;\n\t\t} else {\n\t\t\texit();\n\t\t}\n\t}", "boolean advanceExact(int docId) throws IOException;", "@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}", "public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }", "public synchronized void resetCurrentIndex()\n {\n // Reset the current index to start from 1 (speechgen0001.mp3)\n currentIndex = 1;\n }", "public boolean MoveNext()\r\n { \r\n _index++;\r\n\r\n return _index < Count;\r\n }", "@Override\n\t\tpublic T next() {\n\t\t\tmoveToNextIndex();\n\t\t\treturn objectAtIndex(_indicesByInsertOrder[_index]);\n\t\t}", "public int getNextFieldIndex () {\n return labelStart;\n }", "public static void move() {\r\n\t\t\r\n\t\tif (ths.page == 1) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}", "public int nextIndex(int i) {\n\t\treturn (i + 1) % data.length;\n\t}", "private void moveToNextSplit() {\n closeCurrentSplit();\n\n if (_splits.hasNext()) {\n StashSplit split = _splits.next();\n String key = String.format(\"%s/%s\", _rootPath, split.getKey());\n _currentIterator = new StashSplitIterator(_s3, _bucket, key);\n } else {\n _currentIterator = null;\n }\n }", "public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}", "public void next() {\n\t\t}", "@Override\n public void advance() {\n if (isCurrent()) {\n prev = cursor;\n cursor = cursor.getNext();\n } else {\n throw new IllegalStateException(\"There is no current element.\");\n }\n }", "private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }", "public void outputNext() {\n ++this.currentIndex;\n this.currentChName = this.operOutHeaders.get(this.currentIndex - 1);\n }", "public int nextOffset(int curr) {\n return curr + 1;\n }", "public void index(final Document doc) {\t\n\t\ttry {\n\t\t\t_reopenToken = _trackingIndexWriter.addDocument(doc);\n\t\t\tlog.debug(\"document indexed in lucene\");\n\t\t} catch(IOException ioEx) {\n\t\t\tlog.error(\"Error while in Lucene index operation: {}\",ioEx.getMessage(),\n\t\t\t\t\t\t\t\t\t\t\t \t\t ioEx);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\t_indexWriter.commit();\n\t\t\t} catch (IOException ioEx) {\n\t\t\t\tlog.error(\"Error while commiting changes to Lucene index: {}\",ioEx.getMessage(),\n\t\t\t\t\t\t\t\t\t\t\t\t \t\t \t\t\t\t\t ioEx);\n\t\t\t}\n\t\t}\n\t}", "public void next()\n {\n if (size != 0)\n {\n current = current.next();\n }\n }", "@Override\n\tpublic int skipTo(int docId) {\n\t\treturn 0;\n\t}", "public Segment setNextSegment() throws CursorIndexOutOfBoundsException {\n\t\tSegment segment = getNextSegment();\n\t\tmCurrentSegment++;\n\t\treturn segment;\n\t}", "protected void resetNextAdvanceLineNumber() {\n this.nextAdvanceLineNumber = new Integer(1);\n }", "@Override\n\t\tpublic String next() {\n\n\t\t\tString token = super.next();\n\n\t\t\twhile (isJavaDocToken(token))\n\t\t\t\ttoken = super.next();\n\n\t\t\treturn token;\n\t\t}", "public void showNextAd() {\n if (reInitializeCampaign) clearExternalAds();\n int extViewIndicator = getChildCount() - (1 + numInternalChildren);\n AppyAdService.getInstance().debugOut(TAG,\"External view indicator is \"+extViewIndicator+\". Indexes: current=\"+curAd+\", next=\"+nextAd+\", base=\"+baseAd);\n if ((extViewIndicator < nextAd) && (nextAd > (numInternalChildren-1))) {\n addAdView(tozAdCampaign.get(nextAd));\n }\n if (reInitializeCampaign && (nextAd == 0) && (numInternalChildren > 0) && (getDisplayedChild() == 0)) {\n AppyAdService.getInstance().debugOut(TAG,\"Leaving root internal ad (index=0) displayed (first pass with new ad campaign)\");\n }\n else {\n AppyAdService.getInstance().debugOut(TAG,\"Current ad bumped to next index\");\n if (nextAd != getDisplayedChild()) {\n setInAnimation(AppyAdService.getInstance().setAnimation(\"in\", tozAdCampaign.get(nextAd)));\n setOutAnimation(AppyAdService.getInstance().setAnimation(\"out\", tozAdCampaign.get(curAd)));\n setDisplayedChild(nextAd);\n }\n curAd = nextAd;\n }\n if (reInitializeCampaign) initializeCounters();\n }", "public void IndexADocument(String docno, String content) throws IOException {\n\t\t\n\t\tdocIdx.append(docno + \"\\n\");\n\t\n\t\tString[] tokens = content.split(\" \");\n\t\t\n\t\tfor(String word: tokens) {\n\t\t\tif(token.containsKey(word)) {\t\t\n\t\t\t\tLinkedHashMap<Integer, Integer> cur = token.get(word);\n\t\t\t\tif(cur.containsKey(docid))\n\t\t\t\t\tcur.put(docid, cur.get(docid)+1);\n\t\t\t\telse \n\t\t\t\t\tcur.put(docid, 1);\n\t\t\t} else {\n\t\t\t\tLinkedHashMap<Integer, Integer> cur = new LinkedHashMap<>();\n\t\t\t\tcur.put(docid, 1);\n\t\t\t\ttoken.put(word, cur);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t++docid;\n\t\t\n\t\tif(docid % BLOCK == 0) \n\t\t\tsaveBlock();\t\n\t}", "public void cursorUp() throws IndexOutOfBoundsException {\n if(cursor <= 0)\n throw new IndexOutOfBoundsException(\"Exception: Cursor is currently at line \"+cursor);\n //Setting the cursor to be the text line before its current position.\n cursor--;\n }", "public Segment setNextSegment(int nextSegment) throws CursorIndexOutOfBoundsException {\n if(nextSegment < mSegmentList.size()) {\n mCurrentSegment = nextSegment;\n return getCurrentSegment();\n }\n throw new CursorIndexOutOfBoundsException(nextSegment, mSegmentList.size());\n\t}", "private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FINE, \"Adding document to index: \" + indexDoc.toString());\n indexer.addDocument(indexDoc);\n } catch (Exception e) {\n PetstoreUtil.getLogger().log(Level.WARNING, \"index.exception\", e);\n e.printStackTrace();\n } finally {\n try {\n // must close file or will not be able to reindex\n if(indexer != null) {\n indexer.close();\n }\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }", "void indexReset();", "@Override\n public void setNextElement(helpDesk next) {\n this.next = next;\n }", "private void releaseChar() {\r\n \t\tif (index < documentContent.length())\r\n \t\t\tindex++;\r\n \t}", "public void decrementIndex() {\n\t\tindex--;\n\t\tif (nextItem != null) {\n\t\t\tnextItem.decrementIndex();\n\t\t}\n\t}", "public void putDocumentAfterEdit() {\r\n\t\tif(pointer < strategy.getEntireHistory().size()-1) {\r\n\t\t\tstrategy.putVersion(currentDocument);\r\n\t\t}\r\n\t}", "@Override\n void advance() {\n }", "public boolean skipToDoc(int docId){\n if(!this.hasMatch(docId)) return false;\n while(this.postingList.get(this.idx) != docId)\n this.idx += this.postingList.get(this.idx+1)+2;\n return true;\n }", "public int nextIndex(int ipos) {\n return getIndexDifference(ipos, this.ipos0);\n }", "private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}", "public static synchronized void indexDocument(CodeIndexDocument codeIndexDocument) throws IOException {\n Queue<CodeIndexDocument> queue = new ConcurrentLinkedQueue<CodeIndexDocument>();\n queue.add(codeIndexDocument);\n indexDocuments(queue);\n queue = null;\n }", "private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }", "public void next() {\n\t\tint currentPosition = songList.indexOf(song);\n\t\tif (currentPosition < songList.size() && currentPosition != songList.size() - 1) {\n\t\t\tsong = songList.get(currentPosition + 1);\n\t\t\tplayMedia();\n\t\t} else if (MainActivity.mPlayer.isLooping()) {\n\t\t\tsong = songList.get(0);\n\t\t\tplayMedia();\n\t\t}\n\t}", "public void reset() {\n index = 0;\n }", "private void nextButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextButtonActionPerformed\n projectTree.setSelectionRow(projectTree.getSelectionRows()[0] + 1);\n }", "private String nextIndex() {\n return ArrayElement.nameFor(myElements.size());\n }", "public void nextHard() {\n\t\titerator.next();\n\t}", "private int next(int index) {\n return (index + 2) & mask;\n }", "private int doNext() throws IOException {\n int first = 0;\n SirenScorer lastScorer = scorers[scorers.length - 1];\n SirenScorer firstScorer = scorers[first];\n while (more &&\n (firstScorer.entity() < lastScorer.entity() ||\n (firstScorer.entity() == lastScorer.entity() && firstScorer.tuple() < lastScorer.tuple()))) {\n more = (firstScorer.advance(lastScorer.entity(), lastScorer.tuple()) != NO_MORE_DOCS);\n lastScorer = firstScorer;\n first = (first == (scorers.length - 1)) ? 0 : first + 1;\n firstScorer = scorers[first];\n }\n\n // Load occurrences for nextPosition() and score()\n if (more) {\n lastEntity = lastScorer.entity();\n lastTuple = lastScorer.tuple();\n this.loadOccurrences();\n p = 0; // reset pointer\n return lastEntity;\n }\n else {\n lastEntity = lastTuple = Integer.MAX_VALUE; // sentinel value\n return NO_MORE_DOCS;\n }\n }", "private synchronized void remove(int index) {\r\n\t\tif (index >= 0 && index <= docModel.size())\r\n\t\t\ttry {\r\n\t\t\t\tdocModel.remove(index - 1);\r\n\t\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\t\tif (commandsQueue.size() == 0)\r\n\t\t\t\t\tupdateActiveUsers();\r\n\t\t\t}\r\n\t}", "private int getNextSectionIndex(int currentIndex) {\n boolean found = false;\n int index = -1;\n\n SubModule subModule = sections.get(currentIndex);\n\n for (int i = 0; i < leftPaneList.size(); i++) {\n if (leftPaneList.get(i) instanceof SubModule) {\n if (found) {\n index = ((SubModule) leftPaneList.get(i)).getIndex();\n break;\n }\n if (subModule.equals(leftPaneList.get(i))) {\n found = true;\n\n }\n\n }\n }\n Log.d(\"SectionsListFragment\", \"method: getNextSectionIndex called, index found = \" + index);\n return index;\n\n\n // find next in left pane list and get index\n\n\n }", "public void move(int index)\n\t{\n\t\tnextSpot = index + moveDirection(index);\n\t}", "public void nextPage() {\n\t\tthis.skipEntries += NUM_PER_PAGE;\n\t\tloadEntries();\n\t}", "public void goToNext() {\r\n\t\tif (curr == null)\r\n\t\t\treturn;\r\n\t\tprev = curr;\r\n\t\tcurr = curr.link;\r\n\t}", "private void goForwardOne() \n {\n if (m_bufferOffset_ < 0) {\n // we're working on the source and not normalizing. fast path.\n // note Thai pre-vowel reordering uses buffer too\n m_source_.setIndex(m_source_.getIndex() + 1);\n }\n else {\n // we are in the buffer, buffer offset will never be 0 here\n m_bufferOffset_ ++;\n }\n }", "public void next()\n {\n if (mHistoryIdx == mCommandList.size()) {\n return;\n }\n\n mCommandList.get(mHistoryIdx++).redo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }", "private void nextSelect() {\n\t\tif (selectionIndex + 1 > selections.size() - 1) {\n\t\t\tselectionIndex = 0;\n\t\t} else {\n\t\t\tselectionIndex++;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}", "private void changeCurIndex() {\n\t\tint TexID=-1;\r\n\t\tif(ApplicationInfo.Destination == Constants.TO_FRONT)\r\n\t\t{\r\n\t\t\tCurIndex=++CurIndex >= mApplications.size()? 0 : CurIndex;\r\n\t\t\tif((TexID=mApplications.get(getPreIndex()).getReady()) != -1)\r\n\t\t\t\tunSetTexID(TexID);\r\n \t\t\tmApplications.get(getPreIndex()).setReady(-1);\r\n\t\t}\r\n\t\telse if(ApplicationInfo.Destination == Constants.TO_BACK)\r\n\t\t{\r\n\t\t\tCurIndex=--CurIndex < 0? mApplications.size()-1 : CurIndex;\r\n\t\t\tif((TexID=mApplications.get(getNextIndex()).getReady()) != -1)\r\n\t\t\t\tunSetTexID(TexID);\r\n\t\t\tmApplications.get(getNextIndex()).setReady(-1);\r\n\t\t}\r\n\t\tLog.d(TAG, \"changeCurIndex :\"+CurIndex);\r\n\t}", "void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}", "public T next(){\r\n\t\t\tif (expectedModCount != modCount){\r\n\t\t\t\tthrow new ConcurrentModificationException();\r\n\t\t\t}\r\n\t\t\tT passed = current;\r\n\t\t\tif ((currentNode.next==endMarker)&&(currentNode.getLast()==current)){\r\n\t\t\t\tcurrentNode = endMarker;\r\n\t\t\t\tcurrent = null;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\r\n\t\t\tif (currentNode.indexOf(current)==currentNode.getArraySize()-1){\r\n\t\t\t\tcurrentNode = currentNode.next;\r\n\t\t\t\tcurrent = currentNode.getFirst();\r\n\t\t\t\tidx = 0;\r\n\t\t\t\treturn passed;\r\n\t\t\t}\t\r\n\t\t\tidx++;\r\n\t\t\tcurrent = currentNode.get(idx);\r\n\t\t\treturn passed;\r\n\t\t}", "@Override\n public Document getNextPage(Document doc) throws IOException {\n if (isStopped()) {\n throw new IOException(\"Ripping interrupted\");\n }\n // Find next page\n Elements hrefs = doc.select(\".ptt a\");\n if (hrefs.isEmpty()) {\n LOGGER.info(\"doc: \" + doc.html());\n throw new IOException(\"No navigation links found\");\n }\n // Ensure next page is different from the current page\n String nextURL = hrefs.last().attr(\"href\");\n if (nextURL.equals(this.lastURL)) {\n LOGGER.info(\"lastURL = nextURL : \" + nextURL);\n throw new IOException(\"Reached last page of results\");\n }\n // Sleep before loading next page\n sleep(PAGE_SLEEP_TIME);\n // Load next page\n Document nextPage = getPageWithRetries(new URL(nextURL));\n this.lastURL = nextURL;\n return nextPage;\n }", "void fill(int docID) throws IOException {\n final int docStoreOffset = docWriter.getDocStoreOffset();\n\n final int end = docID+docStoreOffset;\n while(lastDocID < end) {\n fieldsWriter.skipDocument();\n lastDocID++;\n }\n }", "@Override\n public int currentParagraphNumber() {\n return this.paragraphIndex + 1;\n }" ]
[ "0.68933016", "0.6860292", "0.6851571", "0.66036445", "0.6588952", "0.6542838", "0.64898974", "0.6339634", "0.62242126", "0.6160499", "0.6032072", "0.59595525", "0.59413", "0.5909608", "0.5901525", "0.58765805", "0.58636373", "0.58409613", "0.582506", "0.57981056", "0.57545894", "0.57356983", "0.57294154", "0.5711493", "0.5710829", "0.57054543", "0.56829554", "0.56379277", "0.55984694", "0.5593686", "0.5591957", "0.5589824", "0.55499697", "0.55437905", "0.5542469", "0.5528407", "0.55255425", "0.5517654", "0.5516079", "0.55089396", "0.5497951", "0.54914147", "0.548895", "0.5480964", "0.5473816", "0.54735243", "0.5466185", "0.54427564", "0.54425454", "0.5441174", "0.5437862", "0.5437005", "0.5430492", "0.5428347", "0.54275775", "0.5416484", "0.54025143", "0.53901887", "0.5389611", "0.53789794", "0.5377828", "0.53689325", "0.5361392", "0.53600186", "0.53595406", "0.53537285", "0.5352029", "0.53485954", "0.5348211", "0.534705", "0.53405946", "0.5336194", "0.5334245", "0.53278685", "0.53274304", "0.53146356", "0.5308823", "0.5304724", "0.5299682", "0.52935183", "0.52919847", "0.52897125", "0.52896494", "0.52825934", "0.5278733", "0.52770036", "0.52762", "0.5272529", "0.52703625", "0.52677995", "0.52627313", "0.52522236", "0.52394295", "0.5238379", "0.5236648", "0.5236419", "0.5234229", "0.5233647", "0.52281046", "0.5227418" ]
0.7478092
0
returns the next position in document sequence
@Override public int nextPos(){ if(pos<docPostingList.length) { return docPostingList[pos]; } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPosition()\n {\n return m_sequence;\n }", "public int nextIndex() {\n\t\t\treturn cursor;\n\t\t}", "public abstract Position nextPosition(Position position);", "public int nextIndex()\n {\n // TODO: implement this method\n return -1;\n }", "private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}", "@Override\n public int nextPosition() {\n if (++p < tuples.size()) {\n lastTuple = tuples.get(p);\n return 0; // position is invalid in this scorer, returns 0\n }\n return NO_MORE_POS;\n }", "public int nextIndex() {\n return curIndex;\n }", "@Override\n public int nextIndex()\n {\n return idx+1; \n }", "public int getNextUnSafeSequence(){ return value++;}", "static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }", "public int nextIndex(int ipos) {\n return getIndexDifference(ipos, this.ipos0);\n }", "public Integer getPosition();", "public int nextOffset(int curr) {\n return curr + 1;\n }", "public int getPosition() {\n\treturn (_current);\n }", "public Index next() {\n return Index.valueOf(value + 1);\n }", "@Override\n\t\tpublic int nextIndex() {\n\t\t\treturn 0;\n\t\t}", "public int getPosition();", "Long getNextSequence(String seqName);", "public Integer nextOffset() {\n return this.nextOffset;\n }", "Pos nextPos(Pos pos) {\n // Get my track from display\n return cd.nextPos(no, pos);\n }", "private int forwardPosition() {\n\t\treturn (position + 1) % (maxPosition + 1);\n\t}", "public long getPosition();", "public int position() {\n return pos;\n }", "public int getPosition(){\n return -1;\n }", "public long get_next_index(long number) {\n return ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].getLong((int) (number * POINTER_LENGTH % ptr_parts_size[0] + 13));\n }", "protected int getNextToken(){\n if( currentToken == 1){\n currentToken = -1;\n }else{\n currentToken = 1;\n }\n return currentToken;\n }", "private int getNextPosition(boolean force) {\n\t\tif (mRepeatMode == REPEAT_CURRENT) {\n\t\t\tif (mPlayPos < 0)\n\t\t\t\treturn 0;\n\t\t\treturn mPlayPos;\n\t\t} else {\n\t\t\tint pos = getPreShuffledPos();\n\t\t\tif (pos >= mPlayListLen - 1) {\n\t\t\t\t// we're at the end of the list\n\t\t\t\tif (mRepeatMode == REPEAT_NONE && !force) {\n\t\t\t\t\t// all done\n\t\t\t\t\treturn -1;\n\t\t\t\t} else if (mRepeatMode == REPEAT_ALL || force) {\n\t\t\t\t\treturn mPlayOrder[0];\n\t\t\t\t}\n\t\t\t\treturn -1;\n\t\t\t} else {\n\t\t\t\treturn mPlayOrder[pos + 1];\n\t\t\t}\n\t\t}\n\t}", "private int doNext() throws IOException {\n int first = 0;\n SirenScorer lastScorer = scorers[scorers.length - 1];\n SirenScorer firstScorer = scorers[first];\n while (more &&\n (firstScorer.entity() < lastScorer.entity() ||\n (firstScorer.entity() == lastScorer.entity() && firstScorer.tuple() < lastScorer.tuple()))) {\n more = (firstScorer.advance(lastScorer.entity(), lastScorer.tuple()) != NO_MORE_DOCS);\n lastScorer = firstScorer;\n first = (first == (scorers.length - 1)) ? 0 : first + 1;\n firstScorer = scorers[first];\n }\n\n // Load occurrences for nextPosition() and score()\n if (more) {\n lastEntity = lastScorer.entity();\n lastTuple = lastScorer.tuple();\n this.loadOccurrences();\n p = 0; // reset pointer\n return lastEntity;\n }\n else {\n lastEntity = lastTuple = Integer.MAX_VALUE; // sentinel value\n return NO_MORE_DOCS;\n }\n }", "public int getCurSeq() {\n\t\t\n\t\tint seq_read_book = readBookDao.getCurSeq();\n\t\treturn seq_read_book;\n\t}", "public int getCurrentNext() {\n\t\tInteger ii = (Integer) get_Value(\"CurrentNext\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "int getSeq();", "int getSeq();", "int getSeq();", "public java.lang.Integer getPosition() {\n return position;\n }", "protected int getSeqIndex()\n {\n return seqIndex;\n }", "public int nextIndexOf(Type type){\n Token token;\n int tempCurrentToken = currentToken, result;\n \n nextTokenOf(type);\n result = currentToken;\n currentToken = tempCurrentToken;\n return result;\n }", "public int nextIndexOf(String identifier){\n Token token;\n int tempCurrentToken = currentToken, result;\n \n nextTokenOf(identifier);\n result = currentToken;\n currentToken = tempCurrentToken;\n return result;\n }", "private int getNextLine() {\n return peekToken().location.start.line;\n }", "long getNextSequenceNumber();", "@Override\n public long getPosition() {\n return startPosition + super.getPosition();\n }", "int getPosition();", "public int next() {\r\n\t\tif (currentPosition <= list.length &&list[currentPosition]==-1) {\r\n\t\t\tcurrentPosition = 0;\r\n\t\t\treturn list[currentPosition];\r\n\t\t}\r\n\t\treturn list[currentPosition++];\r\n\t}", "public int getPosition()\n\t{\n\t\treturn position;\n\t}", "public int getPos();", "public int getPos();", "public java.lang.Integer getPosition() {\n return position;\n }", "public static String getNextSeq(String seq) {\n long intNextSeq = 0;\n// if (intSeq < 204) {\n// intNextSeq = Long.parseLong(seq)+1;\n// }\n// if (intSeq == 204) {\n// seq = seq.substring(0, seq.length() - 3);\n// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n// Date date = null;\n// try {\n// date = sdf.parse(seq);\n// } catch (ParseException e) {\n// e.printStackTrace();\n// }\n// Date date2 = DateUtils.addDays(date, 1);\n// String nextDate = sdf.format(date2) + \"000\";\n// intNextSeq = Long.parseLong(nextDate);\n// intNextSeq = intNextSeq + 1;\n// }\n return intNextSeq+\"\";\n }", "public int getNext() {\n return value++;\n }", "@Override\r\n public int nextIndex() {\r\n if (next == null) {\r\n return size; \r\n }\r\n return nextIndex - 1;\r\n }", "public int getSeq() {\n return -1;\n }", "public int nextIndex() {\r\n throw new UnsupportedOperationException();\r\n }", "public abstract int getStartIndex();", "private Optional<Integer> nextReaderIndex() {\n Optional<Integer> index = Optional.absent();\n for (int i = 0; i < callReaders.size(); i++) {\n if (callReaders.get(i).hasNext()) {\n index = Optional.of(i);\n break;\n }\n }\n\n return index;\n }", "public int getMaxPos() {\n return nextPos - 1;\n }", "@Override\n public int currentParagraphNumber() {\n return this.paragraphIndex + 1;\n }", "public int getPosition()\r\n {\r\n return position;\r\n }", "@Override\n\t\tpublic int next() {\n\t\t\treturn current++;\n\t\t}", "public final int getPos() { return i; }", "public int getPosition(int index);", "@Override\n public Point peekNextPosition() {\n int nextX = (current.x + 1) % 3;\n int nextY = (current.y + 1) % 3;\n// System.out.println(\"Next X: \" + nextX);\n// System.out.println(\"Next Y: \" + nextY);\n boolean wrapsInX = nextX < current.x;\n boolean wrapsInY = nextY < current.y;\n boolean singleWrap = wrapsInX != wrapsInY;\n if (singleWrap) {\n return invalidPosition();\n } else {\n return new Point(nextX, nextY);\n }\n }", "public int getPosition() {\r\n\t\treturn position;\r\n\t}", "public Point getNextForecastedPos() {\n return nextPos ;\n }", "public int getCurrSeqVal(String sequence) throws SQLException {\n\t Statement stmt = this._connection.createStatement ();\n\t ResultSet rs = stmt.executeQuery (String.format(\"Select currval('%s')\", sequence));\n\t if (rs.next())\n\t\t return rs.getInt(1);\n\t return -1;\n }", "public long getPos()\n\t{\n\t\treturn -1;\n\t}", "public Location getNextLocation() {\n\n\t\treturn this.nextLoc;\n\n\t}", "private String nextIndex() {\n return ArrayElement.nameFor(myElements.size());\n }", "int readerIndex();", "private int next(int index)\n\t{\n\t\tif (index == list.length - 1)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn index + 1;\n\t\t}\n\t}", "public int getPosition() {\r\n return position;\r\n }", "public int getPositionIncrement() {\n return positionIncrement;\n }", "public int next() {\n\treturn _current < _last ? _data[_current++] : END;\n }", "public long position() {\n return _pos;\n }", "long getOriginseqnum();", "public int getNextFieldIndex () {\n return labelStart;\n }", "public int getPosition() {\n return position;\n }", "private int getNextMatch(String searchText) {\n \tint startPosition = textArea.getCaretPosition()+1;\n \treturn document.getContent().indexOf(searchText, startPosition);\n }", "private long getSeqNum() throws Exception {\n\t\tSystem.out.println(\"seq: \" + seq);\n\t\tif (seq == 256) {\n\t\t\tseq = 0;\n\t\t}\n\t\treturn seq++;\n\t}", "public Integer getPosition()\n {\n return position;\n }", "@Override\n\tpublic long getPosition()\n\t{\n\t\treturn inputStream.Position;\n\t}", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public int getPosition() {\n return position;\n }", "public abstract long getStartOffset();", "public String getNextStreamPosition() {\n return nextStreamPosition;\n }", "public static int offset_seqnum() {\n return (264 / 8);\n }", "@Override\n public int getPositionFirstOperand() {\n return position + 1;\n }", "Position<T> first();", "public IntegerTulep getPosition() {\n return position;\n }", "@Override\n public NodoL next() {\n posicionActual = posicionActual.getSiguiente();\n return posicionActual;\n }", "public final int getPosition() {\n return position;\n }", "private int nextIndex() {\n return ThreadLocalRandom.current().nextInt(currentIndex, tracks.size());\n }", "@Override\n public int getPosition() throws IOException\n {\n return (int) randomAccessRead.getPosition();\n }", "public synchronized long getPosition() {\n\t\treturn m_read;\n\t}", "public int getSeq() {\n return seq_;\n }", "public int getSeq() {\n return seq_;\n }", "@Override\n public Long nextSequenceValue() {\n return (Long)getHibernateTemplate().execute(\n new HibernateCallback() {\n @Override\n public Object doInHibernate(Session session) throws HibernateException {\n //return (Long) session.createSQLQuery(\"select SGSWEB.SEQ_CUESTIONARIO.NEXTVAL as id from dual\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }\n });\n }", "public java.sql.Timestamp getNextAnchor() {\n return nextAnchor;\n }", "public int nextInt() {\n int temp = results.get(index);\n index = index + 1;\n System.out.println(index);\n return temp;\n }", "public int getPos()\n {\n return pos;\n }", "public int getPos()\n {\n return pos;\n }" ]
[ "0.73315287", "0.719292", "0.7068866", "0.692017", "0.690599", "0.6857983", "0.68135357", "0.6813496", "0.67675036", "0.67432564", "0.6732417", "0.6689272", "0.6672428", "0.66280353", "0.6613563", "0.65752625", "0.65389615", "0.6535808", "0.6458399", "0.6423849", "0.63955534", "0.6388084", "0.63432205", "0.6337179", "0.6329107", "0.62923074", "0.62452877", "0.6244454", "0.6228636", "0.62224334", "0.6213102", "0.6213102", "0.6213102", "0.6205189", "0.620458", "0.61859334", "0.6183642", "0.6173144", "0.61701196", "0.61638266", "0.6162405", "0.6159864", "0.61540663", "0.6152136", "0.6152136", "0.61415595", "0.6135137", "0.6122025", "0.61192876", "0.6116846", "0.6111471", "0.61105216", "0.6104279", "0.60972124", "0.60899633", "0.60895914", "0.6086706", "0.6047849", "0.6031481", "0.6030827", "0.6024022", "0.6021267", "0.60080343", "0.5994809", "0.5987602", "0.59798175", "0.5973267", "0.5970799", "0.5967039", "0.5965858", "0.59556687", "0.5944364", "0.5941445", "0.59393895", "0.59328026", "0.5923826", "0.5920578", "0.59105116", "0.59008867", "0.5900742", "0.5900742", "0.5900742", "0.58979607", "0.58950835", "0.58907473", "0.5886437", "0.5877534", "0.58550394", "0.5853822", "0.5847391", "0.58471614", "0.58433163", "0.58410144", "0.58363026", "0.58363026", "0.58311564", "0.5831089", "0.5829539", "0.58282113", "0.58166206" ]
0.73498726
0
/ Build Posting List for this Unordered Window
private void buildPostingList(){ boolean isEndOfList = false; // boolean moveToNextDoc = false; ArrayList<Integer> tempList = new ArrayList<>(); // tempList to hold doc wise posting List while(!isEndOfList){ boolean skipDoc = false; int doc = children.get(0).nextCandidate(); if(doc == -1) { // End of list. No more windows to collect. Exit. isEndOfList = true; break; } int distance = super.getDiskReader().getRetrievedDocToLengthMap().get(doc); // Check if doc exists in all other children. // If it exists, skip to that Document. for(QueryNode child : children){ /* skipToDoc skips the pointer in child node to the current doc. */ if(!child.skipToDoc(doc)) { skipDoc = true; break; } } if(!skipDoc) { /* From here, all nodes have the document. Proceed to calculating number of windows in doc */ tempList.clear(); tempList.add(doc); // tempList.add(0); // doc term frequency. We will update this later. int fkid = 0; // doc term frequency tracker // int i = startTermIndex+1; int minPosIndex = 0; // holds the index of the node which has current minimum Pos int minPos = children.get(minPosIndex).nextPos(); // initialize min Pos. boolean isEndOfDoc = false; while(!isEndOfDoc) { if(minPos == -1) break; // End of document. Move to next doc for (int i = 0; i < children.size(); i++) { int pos = children.get(i).nextPos(); if(pos == -1){ isEndOfDoc = true; break; } if (pos < minPos) { minPos = pos; minPosIndex = i; } } if(isEndOfDoc) break; /* Check for window size against min pos */ for (int i = 0; i < children.size(); i++) { int pos = children.get(i).nextPos(); if (pos - minPos < distance) { // Valid candidate so far. // check if last term. if (i == children.size() - 1) { tempList.add(children.get(minPosIndex).nextPos()); fkid++; // update all the child node pointers to next position. No double dipping for(QueryNode child : children) child.updatePos(); } } else { // Candidate failed. // update minimum position to next pos and repeat process children.get(minPosIndex).updatePos(); minPos = children.get(minPosIndex).nextPos(); break; } } } /* The document has been consumed. If the temp List size is > 2, we have collected windows. Add them to the posting list. */ if (tempList.size() > 2) { tempList.set(1, fkid); cqi += fkid; postingList.addAll(new ArrayList<>(tempList)); } } // if(moveToNextDoc) continue; children.get(0).updateToNextDoc(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listAction() {\n TextWin newWindow = new TextWin(getSelectedCell());\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\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 ArrayList<String> postOrder()\n\t{\n\t\tArrayList<String> rlist = new ArrayList<String>();\n\t\tpostOrder(this,rlist);\n\t\treturn rlist;\n\t}", "public void createItemListPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(addMenuItem);\n\t\tadd(editMenuItem);\n\t\tadd(deleteMenuItem);\n\t\tadd(moveUpMenuItem);\n\t\tadd(moveDownMenuItem);\n\t\taddSeparator();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t\taddSeparator();\n\t\tadd(sendMidiMenuItem);\n\t}", "public void updateGlobalTillFrame(ArrayList<Order> inOrders)\n\t{\n\t\tsetEnabled(true);\n\t\t//new arraylist created for holding the temp items to show the end user\n\t\tArrayList tempAL = new ArrayList();\n\t\t//loop throgh and add finished orders to an arraylist\n\t\tfor (int i =0; i< inOrders.size();i++)\n\t\t\ttempAL.add(inOrders.get(i).getDate().toString() + \": \" + inOrders.get(i).getCustomerName() + \": £\" + (new DecimalFormat(\"#0.00\")).format(inOrders.get(i).getSubtotal()));\n\t\t//redeclare the jlist with the object list\n\t\tjLTill = new JList(tempAL.toArray());\n\t\t//set the viewport for the scroll panel\n\t\tjSPTill.getViewport().add(jLTill);\n\t\tjLTill.addMouseListener(this);\n\t}", "public SightingsListWindow(SightingsListController controller, SightingsList sightingsList) {\n\t\t\n\t\t// Set the sightings list model\n\t\tthis.sightingsList = sightingsList;\n\t\t// Set the title for the JFrame\n\t\tsetTitle(sightingsList.getStateName() + \" (\" + sightingsList.getAbbreviatedStateName() + \")\");\n\t\t\n\t\t// set the layout of the JFrame\n\t\tsetLayout(new BorderLayout());\n\t\t// make a new panel for the top\n\t\tJPanel topPanel = new JPanel();\n\t\t// create an empty surrounding border for the panel\n\t\ttopPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t// set the panel's layout\n\t\ttopPanel.setLayout(new GridLayout(1, 1));\n\t\t\n\t\t// the different sort options\n\t\tString[] sortOptions = {\"-\", \"Date\", \"City\", \"Shape\", \"Duration\", \"Posted\"};\n\t\t// make a JComboBox to facilitate the user's selection\n\t\tJComboBox sortOptionsList = new JComboBox(sortOptions);\n\t\t// add the controller as the listener for the selection event\n\t\tsortOptionsList.addActionListener(controller);\n\t\t\n\t\t// add the JComboBox to the top panel\n\t\ttopPanel.add(sortOptionsList);\n\t\t\n\t\t// make a new panel for the bottom\n\t\tJPanel bottomPanel = new JPanel();\n\t\t// create an empty surrounding border for the panel\n\t\tbottomPanel.setBorder(new EmptyBorder(8, 8, 8, 8));\n\t\t// set the panel's layout\n\t\tbottomPanel.setLayout(new GridLayout(1, 1));\n\t\t// set the background colour of the panel to white\n\t\tbottomPanel.setBackground(Color.white);\n\t\t\n\t\t// initialise the list model for the JList\n\t\tinitJListModel();\n\t\t// make a new JList with the specified list model\n\t\tJList jList = new JList(jListModel);\t\n\t\t// add the controller as the listener for the mouse-click event\n\t\tjList.addMouseListener(controller);\n\t\t\n\t\t// make a new scroll pane containing the JList\n\t\tJScrollPane scrollPane = new JScrollPane(jList);\n\t\t// create an empty border for the scroll pane\n\t\tscrollPane.setBorder(BorderFactory.createEmptyBorder());\n\t\t\n\t\t// add the scroll pane to the bottom panel\n\t\tbottomPanel.add(scrollPane);\n\t\t\n\t\t// add both the panels to the JFram within the specified layout positions\n\t\tadd(topPanel, BorderLayout.NORTH);\n\t\tadd(bottomPanel, BorderLayout.CENTER);\n\t\t\n\t\t// set the preferred size of the JFrame\n\t\tsetPreferredSize(new Dimension(700, 250));\n\t\t// set the location on screen\n\t\tsetLocation(300, 200);\n\t\t// set the default close operation\n\t\t// the JFrame will get closed when the user closes it\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\n\t\tpack();\n\t\tsetVisible(true);\n\t\t\n\t}", "private JComponent buildUserList() {\n list = new JList<>();\n list.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n list.setCellRenderer(new CellRenderer(list.getCellRenderer()));\n list.setTransferHandler(new ProcessTransferHandler());\n list.setDragEnabled(true);\n list.setDropMode(DropMode.ON_OR_INSERT);\n return ScrollFactory.pane(list).create();\n }", "void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\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 initList() {\r\n\t\tthis.panelList = new JPanel();\r\n\t\tthis.panelList.setLayout(new BoxLayout(this.panelList,\r\n\t\t\t\tBoxLayout.PAGE_AXIS));\r\n\r\n\t\tJLabel labelList = new JLabel(\"Weapons list\");\r\n\t\tlabelList.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.dlm = new DefaultListModel<String>();\r\n\t\tthis.list = new JList<String>(dlm);\r\n\t\tthis.scrollPane = new JScrollPane(this.list,\r\n\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\r\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\tthis.scrollPane.setBounds(new Rectangle(10, 10, 450, 80));\r\n\t\tthis.list.addMouseListener(this.editWeaponControl);\r\n\t\tthis.updateList();\r\n\t\tthis.panelList.add(labelList);\r\n\t\tthis.panelList.add(this.scrollPane);\r\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 setUpFooter(){\n JButton newItem = new JButton();\n JTextField name = new JTextField();\n DatePicker date = new DatePicker();\n ColorPicker priority = ColorPicker.createColorPicker(4,Color.RED);\n newItem.setText(\"+\");\n newItem.addActionListener(e -> {\n Tasks tasks = new Tasks();\n JPanel list = this.getPanelForList();\n boolean allFiled = true;\n if(!name.getText().isEmpty()) {\n tasks.setName(name.getText());\n name.setText(null);\n }else {\n this.emptyTextFieldPopUp(\"name\");\n allFiled = false;\n }\n if(!date.getDate().isEmpty()) {\n tasks.setDeadline(DateHandler.getDateFromString(date.getDate()));\n date.resetDate();\n }else {\n this.emptyTextFieldPopUp(\"deadline\");\n allFiled = false;\n }\n tasks.setPriority(ColorPriorityHandler.getPriority(priority.getColor()));\n tasks.setItems_id(currentList);\n tasks.setStatus(0);\n JPanel taskList = (JPanel)((JViewport)((JScrollPane)list.getComponent(1)).getComponent(0)).getComponent(0);\n if(allFiled) {\n this.addTask(taskList,tasks);\n priority.setColor(currentList.getColor());\n }\n });\n footer.setLayout(new GridLayout(2,4));\n footer.add(new JLabel(\"Add new\"));\n footer.add(new JLabel(\"Name:\"));\n footer.add(new JLabel(\"Date:\"));\n footer.add(new JLabel(\"Priority:\"));\n footer.add(newItem);\n footer.add(name);\n footer.add(date);\n footer.add(priority);\n }", "public void addWindowtoList(MimsPlus imp) {\n String title = imp.getTitle();\n if (!windows.containsKey(title)) {\n jComboBox1.addItem(title);\n windows.put(title, imp);\n }\n if (jComboBox1.getItemCount() == 1) {\n jComboBox1.setSelectedItem(title);\n }\n }", "private void makePanelList() {\r\n if (panelList == null) {\r\n panelList = makePanel(jframe, BorderLayout.CENTER,\r\n \"List of Tasks\", 180, 50, 200, 25);\r\n list = makeList(10, 10, 100, 470, 500);\r\n\r\n JButton clickUpdate = makeButton(\"updateTask\", \"Update\",\r\n 20, 620, 100, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton clickDelete = makeButton(\"deleteTask\", \"Delete\",\r\n 125, 620, 100, 25, JComponent.CENTER_ALIGNMENT, null);\r\n\r\n JButton clickComplete = makeButton(\"completeTask\", \"Complete\",\r\n 230, 620, 100, 25, JComponent.CENTER_ALIGNMENT, null);\r\n\r\n JButton clickIncomplete = makeButton(\"IncompleteTask\", \"UndoComplete\",\r\n 335, 620, 130, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton clickCreate = makeButton(\"newTask\", \"Create A Task\",\r\n 175, 670, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n JButton showComplete = makeButton(\"showComplete\", \"Show Completed\",\r\n 175, 700, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n showComplete.getModel().setPressed(showCompleted);\r\n\r\n JButton clickSave = makeButton(\"saveTodo\", \"Save List\",\r\n 175, 730, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n\r\n addElementsToPanelList(list, clickUpdate, clickDelete, clickComplete, clickIncomplete, clickCreate,\r\n showComplete, clickSave);\r\n }\r\n }", "OrderedListContent createOrderedListContent();", "public void showPosts() {\n\t\tpostsList.getItems().clear();\n\t\tList<Text> toPost = getPosts();\n\t\tfor(Text text : toPost) {\n\t\t\tSystem.out.println(text);\n\t\t\ttext.wrappingWidthProperty().bind(postsList.widthProperty());\n\t\t\tpostsList.getItems().add(text);\n\t\t}\n\t}", "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 updateListViewLogWindow()\n {\n listViewMessageItems.clear();\n\n for(int i =0;i<= printResult.size() - 1;i++)\n {\n listViewMessageItems.add(printResult.get(i));\n }\n\n }", "UnorderedListContent createUnorderedListContent();", "public void refreshWindowsMenu() {\r\n Window.removeAll();\r\n for(JInternalFrame cf: circuitwindows){\r\n final JInternalFrame cf2 = cf;\r\n javax.swing.JMenuItem windowItem = new javax.swing.JMenuItem();\r\n windowItem.setText(cf.getTitle()); \r\n windowItem.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n try { cf2.setSelected(true);\r\n } catch (PropertyVetoException ex) {\r\n ErrorHandler.newError(\"Editor Error\",\"Cannot select circuit \" + cf2.getTitle() + \".\", ex);\r\n }\r\n }\r\n });\r\n Window.add(windowItem); \r\n }\r\n if(circuitwindows.size()==0){\r\n Window.setEnabled(false);\r\n } else {\r\n Window.setEnabled(true);\r\n }\r\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 void fillInnerParts() {\n //retrieve the filtered list of module or event.\n listPanel = new ListPanel(logic.getFilteredFocusedList(), this);\n listPanelPlaceholder.getChildren().add(listPanel.getRoot());\n\n resultDisplay = new ResultDisplay();\n resultDisplayPlaceholder.getChildren().add(resultDisplay.getRoot());\n\n StatusBarFooter statusBarFooter = new StatusBarFooter(logic.getModuloFilePath());\n statusbarPlaceholder.getChildren().add(statusBarFooter.getRoot());\n\n rightPanel = new RightPanel(logic.getFocusedDisplayable(), this);\n slideWindowListPlaceholder.getChildren().add(rightPanel.getRoot());\n\n commandBox = new CommandBox(this::executeCommand);\n commandBoxPlaceholder.getChildren().add(commandBox.getRoot());\n\n if (logic.getFilteredFocusedList().size() == 0) {\n moduleButton.getStyleClass().add(\"active\");\n resultDisplay.setFeedbackToUser(\"Use the module command to get started!\");\n } else if (logic.getFilteredFocusedList().get(0) instanceof Event) {\n eventButton.getStyleClass().add(\"active\");\n } else {\n moduleButton.getStyleClass().add(\"active\");\n }\n\n }", "void buildWindowAddFavorite(){ \n assert(false);\n \n //main.gui.addMenuItemGThread(\"menuFileNaviRefresh\", main.idents.menuFileNaviRefreshBar, actionRefreshFileTable); // /\n //main.gui.addMenuItemGThread(\"menubarFolderCreate\", main.idents.menuConfirmMkdirFileBar, main.mkCmd.actionOpenDialog); // /\n //main.gui.addMenuItemGThread(\"menubarFolderSearch\", main.idents.menuBarSearchFiles, actionSearchFiles); // /\n main.gui.menuBar.addMenuItem(\"menuBarFolderSyncMidRight\", main.idents.menuBarFolderSyncMidRight, actionSyncMidRight); // /\n //main.gui.addMenuItemGThread(\"menubarFileProps\", main.idents.menuFilePropsBar, main.filePropsCmd.actionOpenDialog);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuFileViewBar, main.viewCmd.actionOpenView);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuFileEditBar, main.actionEdit);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuBarEditIntern, main.editWind.actionOpenEdit);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuConfirmCopyBar, main.copyCmd.actionConfirmCopy);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuConfirmFileDelBar, main.deleteCmd.actionConfirmDelete);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuExecuteBar, main.executer.actionExecuteFileByExtension);\n //main.gui.addMenuItemGThread(\"test\", main.idents.menuExecuteCmdBar, main.cmdSelector.actionExecCmdWithFiles);\n\n //main.gui.menuBar.addMenuItem(\"menuBarCreateFavor\", main.idents.menuBarCreateFavor, actionCreateFavor); // /\n main.gui.menuBar.addMenuItem(\"menuDelTab\", main.idents.menuDelTab, actionDelTab); // /\n main.gui.menuBar.addMenuItem(\"menuSaveFavoriteSel\", main.idents.menuSaveFavoriteSel, actionSaveFavoritePathes); // /\n main.gui.menuBar.addMenuItem(\"menuReadFavoriteSel\", main.idents.menuReadFavoriteSel, actionReadFavoritePathes); // /\n\n\n \n main.gui.gralMng.selectPanel(\"primaryWindow\"); //\"output\"); //position relative to the output panel\n //panelMng.setPosition(1, 30+GralGridPos.size, 1, 40+GralGridPos.size, 1, 'r');\n main.gui.gralMng.setPosition(-19, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n \n\n windAddFavorite.window = main.gui.gralMng.createWindow(\"addFavoriteWindow\", \"add favorite\", GralWindow.windConcurrently);\n \n main.gui.gralMng.setPosition(4, GralPos.size -4, 1, GralPos.size +34, 'r');\n windAddFavorite.widgLabel = main.gui.gralMng.addTextField(\"addFavoriteTab\", true, \"label\", \"t\");\n windAddFavorite.widgLabel.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.tab.\");\n main.gui.gralMng.setPosition(4, GralPos.size -4, 35, GralPos.size +10, 'r');\n windAddFavorite.widgPersistent = main.gui.gralMng.addTextField(\"addFavoriteTab\", true, \"lmr ?\", \"t\");\n windAddFavorite.widgLabel.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.persist.\");\n \n main.gui.gralMng.setPosition(8, GralPos.size -4, 1, GralPos.size +45, 'd');\n windAddFavorite.widgShortName = main.gui.gralMng.addTextField(\"addFavoriteAlias\", true, \"alias (show in list)\", \"t\");\n windAddFavorite.widgShortName.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.alias.\");\n windAddFavorite.widgPath = main.gui.gralMng.addTextField(\"addFavoritePath\", true, \"the directory path\", \"t\");\n windAddFavorite.widgPath.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.dir.\");\n \n main.gui.gralMng.setPosition(-4, -1, 1, 6, 'r');\n main.gui.gralMng.addButton(\"addFavoriteEsc\", actionAddFavorite, \"esc\", null, \"esc\");\n main.gui.gralMng.setPosition(-4, -1, -14, GralPos.size +6, 'r',1);\n GralWidget widg = main.gui.gralMng.addButton(\"addFavoriteOk\", actionAddFavorite, \"temp\", null, \"temp\");\n widg.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.temp.\");\n widg = main.gui.gralMng.addButton(\"addFavoriteOk\", actionAddFavorite, \"ok\", null, \"Save\");\n widg.setHtmlHelp(main.cargs.dirHtmlHelp + \"/Fcmd.html#Topic.FcmdHelp.favorpath.favorNew.save.\");\n \n }", "UL createUL();", "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\n\tpublic void postorder() {\n\n\t}", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "private void MealAddPaneSetUp(){\n //When a ingredient in the ingredient list is selected (Meals Add Pane) Retrieve the standard quantity name\n //and amount for that ingredient. e.g if bread is selected display slice in the quantity label\n dynamicQuantityLabelSetUp(ingredientsList, quantityNameLabel );\n //bind the listView with a list of ingredients\n ingredientsForMeal.setItems(newIngredients);\n //setup the cell format for the two ListViews in this pane\n //ListView displays Ingredients name and quantity\n styleIngredientAddedListCell(ingredientsForMeal);\n //listview displays ingredient name\n styleIngredientListCell(ingredientsList);\n }", "private void buildLeftHandNavNar() {\n\t\tsetCurrentSelectedDefinitionObjId(null);\n\t\tsetCurrentSelectedParamerterObjId(null);\n\t\tsetCurrentSelectedFunctionObjId(null);\n\t\tgetFunctionArgumentList().clear();\n\t\tgetFunctionArgNameMap().clear();\n\t\trightHandNavPanel.clear();\n\t\tNavPills navPills = new NavPills();\n\t\tnavPills.setStacked(true);\n\t\t\n\t\tgeneralInformation = new AnchorListItem();\n\t\t//includeLibrary = new AnchorListItem();\n\t\tparameterLibrary = new AnchorListItem();\n\t\tdefinitionLibrary = new AnchorListItem();\n\t\tfunctionLibrary = new AnchorListItem();\n\t\tviewCQL = new AnchorListItem();\n\t\t\n\t\tgeneralInformation.setIcon(IconType.INFO);\n\t\tgeneralInformation.setText(\"General Information\");\n\t\tgeneralInformation.setTitle(\"General Information\");\n\t\tgeneralInformation.setActive(true);\n\t\t\n\t\t//includeLibrary.setIcon(IconType.INFO);\n\t\t//includeLibrary.setText(\"Inlude library\");\n\t\t//includeLibrary.setTitle(\"Inlude library\");\n\t\t//includeLibrary.setActive(true);\n\t\t\n\t\tparameterLibrary.setIcon(IconType.PENCIL);\n\t\tparameterLibrary.setTitle(\"Parameter\");\n\t\tparamBadge.setText(\"\" + viewParameterList.size());\n\t\tAnchor paramAnchor = (Anchor) (parameterLibrary.getWidget(0));\n\t\t// Double Click causing issues.So Event is not propogated\n\t\tparamAnchor.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t});\n\t\tparamLabel.setStyleName(\"transparentLabel\");\n\t\tparamAnchor.add(paramLabel);\n\t\tparamBadge.setPull(Pull.RIGHT);\n\t\t//paramBadge.setMarginLeft(45);\n\t\tparamAnchor.add(paramBadge);\n\t\tparamAnchor.setDataParent(\"#navGroup\");\n\t\tparamAnchor.setDataToggle(Toggle.COLLAPSE);\n\t\tparameterLibrary.setHref(\"#collapseParameter\");\n\t\t\n\t\tparameterLibrary.add(paramCollapse);\n\t\t\n\t\tdefinitionLibrary.setIcon(IconType.PENCIL);\n\t\tdefinitionLibrary.setTitle(\"Define\");\n\t\tdefineBadge.setText(\"\" + viewDefinitions.size());\n\t\tAnchor defineAnchor = (Anchor) (definitionLibrary.getWidget(0));\n\t\t// Double Click causing issues.So Event is not propogated\n\t\tdefineAnchor.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t});\n\t\tdefineLabel.setStyleName(\"transparentLabel\");\n\t\tdefineAnchor.add(defineLabel);\n\t\tdefineBadge.setPull(Pull.RIGHT);\n\t\t//defineBadge.setMarginLeft(52);\n\t\tdefineAnchor.add(defineBadge);\n\t\tdefineAnchor.setDataParent(\"#navGroup\");\n\t\tdefinitionLibrary.setDataToggle(Toggle.COLLAPSE);\n\t\tdefinitionLibrary.setHref(\"#collapseDefine\");\n\t\t\n\t\tdefinitionLibrary.add(defineCollapse);\n\t\t\n\t\tfunctionLibrary.setIcon(IconType.PENCIL);\n\t\t/* functionLibrary.setText(\"Functions\"); */\n\t\tfunctionLibrary.setTitle(\"Functions\");\n\t\t\n\t\tfunctionBadge.setText(\"\" + viewFunctions.size());\n\t\tAnchor funcAnchor = (Anchor) (functionLibrary.getWidget(0));\n\t\t// Double Click causing issues.So Event is not propogated\n\t\tfuncAnchor.addDoubleClickHandler(new DoubleClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onDoubleClick(DoubleClickEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t});\n\t\tfunctionLibLabel.setStyleName(\"transparentLabel\");\n\t\tfuncAnchor.add(functionLibLabel);\n\t\tfunctionBadge.setPull(Pull.RIGHT);\n\t\t\n\t\t//functionBadge.setMarginLeft(57);\n\t\tfuncAnchor.add(functionBadge);\n\t\tfuncAnchor.setDataParent(\"#navGroup\");\n\t\tfunctionLibrary.setDataToggle(Toggle.COLLAPSE);\n\t\tfunctionLibrary.setHref(\"#collapseFunction\");\n\t\t\n\t\tfunctionLibrary.add(functionCollapse);\n\t\t\n\t\tviewCQL.setIcon(IconType.BOOK);\n\t\tviewCQL.setText(\"View CQL\");\n\t\tviewCQL.setTitle(\"View CQL\");\n\t\t\n\t\tnavPills.add(generalInformation);\n\t\t//snavPills.add(includeLibrary);\n\t\tnavPills.add(parameterLibrary);\n\t\t\n\t\tnavPills.add(definitionLibrary);\n\t\tnavPills.add(functionLibrary);\n\t\tnavPills.add(viewCQL);\n\t\t\n\t\tnavPills.setWidth(\"200px\");\n\t\t\n\t\tmessagePanel.add(successMessageAlert);\n\t\tmessagePanel.add(warningMessageAlert);\n\t\tmessagePanel.add(errorMessageAlert);\n\t\tmessagePanel.add(warningConfirmationMessageAlert);\n\t\tmessagePanel.add(globalWarningConfirmationMessageAlert);\n\t\tmessagePanel.add(deleteConfirmationMessgeAlert);\n\t\t\n\t\t// rightHandNavPanel.add(messagePanel);\n\t\trightHandNavPanel.add(navPills);\n\t}", "public void setCurrentListToBeDoneList();", "private void createMenuList() {\n SlideMenuItem menuItem0 = new SlideMenuItem(ContentFragment.CLOSE, R.drawable.ic_action_remove);\n list.add(menuItem0);\n SlideMenuItem menuItem = new SlideMenuItem(ContentFragment.GAMES, R.drawable.ic_action_gamepad);\n list.add(menuItem);\n\n SlideMenuItem menuItem3 = new SlideMenuItem(ContentFragment.FRIENDS, R.drawable.ic_action_person);\n list.add(menuItem3);\n SlideMenuItem menuItem4 = new SlideMenuItem(ContentFragment.SETTINGS, R.drawable.ic_action_settings);\n list.add(menuItem4);\n }", "private void doCreateList() {\n String lengthStr = textfieldLength.getText();\n try {\n int length = Integer.parseInt(lengthStr);\n testSort.LegeArrayAn(length);\n } catch (Exception e) {\n testSort.LegeArrayAn(10);\n }\n switch(comboboxCase.getSelectedIndex()) {\n case 0:\n testSort.MischeArray(\"averagecase\");\n break;\n case 1:\n testSort.MischeArray(\"bestcase\");\n break;\n case 2:\n testSort.MischeArray(\"worstcase\");\n break;\n }\n int[] array = testSort.getZahlenfeld();\n Integer[] arrayObj = Arrays.stream(array).boxed().toArray(Integer[]::new);\n listUnsorted.setListData(arrayObj);\n listSorted.setListData(new Object[0]);\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}", "private void postOrderHelp(Node<T> current, List<T> list) {\n if (current != null) {\n postOrderHelp(current.getLeft(), list);\n postOrderHelp(current.getRight(), list);\n list.add(current.getData());\n }\n }", "public trainsetEditor(java.awt.Window parent) {\n\t\tsuper(parent);\n\n\t\tinitComponents();\n\t\tsetSize(700, 400);\n\t\tsetLocationRelativeTo(parent);\n\n\t\tsetList.setModel(new DefaultListModel());\n\t\tDefaultListModel dlm = new DefaultListModel();\n\t\tdlm.addListDataListener(new ListDataListener() {\n\t\t\t@Override\n\t\t\tpublic void intervalAdded(ListDataEvent e) {\n\t\t\t\tjava.awt.EventQueue.invokeLater(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\treadStock();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void intervalRemoved(ListDataEvent e) {\n\t\t\t\tjava.awt.EventQueue.invokeLater(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\treadStock();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void contentsChanged(ListDataEvent e) {\n\t\t\t}\n\t\t});\n\t\tsetStockList.setModel(dlm);\n\n\t\tDropTargetListener dropTargetListener = new DropTargetListener() {\n\t\t\t// Die Maus betritt die Komponente mit\n\t\t\t// einem Objekt\n\t\t\t@Override\n\t\t\tpublic void dragEnter(DropTargetDragEvent e) {\n\t\t\t}\n\t\t\t// Die Komponente wird verlassen\n\n\t\t\t@Override\n\t\t\tpublic void dragExit(DropTargetEvent e) {\n\t\t\t}\n\t\t\t// Die Maus bewegt sich über die Komponente\n\n\t\t\t@Override\n\t\t\tpublic void dragOver(DropTargetDragEvent e) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void drop(DropTargetDropEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tTransferable tr = e.getTransferable();\n\t\t\t\t\tDataFlavor[] flavors = tr.getTransferDataFlavors();\n\t\t\t\t\tfor (int i = 0; i < flavors.length; i++) {\n\t\t\t\t\t\tif (1 == 1 || flavors[i].isFlavorJavaFileListType()) {\n\t\t\t\t\t\t\t// Zunächst annehmen\n\t\t\t\t\t\t\te.acceptDrop(e.getDropAction());\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t List files = (List) tr.getTransferData(flavors[i]);\n\t\t\t\t\t\t\t // Wir setzen in das Label den Namen der ersten\n\t\t\t\t\t\t\t // Datei\n\t\t\t\t\t\t\t //delCmdButton.doClick();\n\t\t\t\t\t\t\t for(Object o:files)\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t if (o instanceof rollingstock)\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t // TODO\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t } */\n\t\t\t\t\t\t\te.dropComplete(true);\n\t\t\t\t\t\t\tupdateSpeed();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\tt.printStackTrace();\n\t\t\t\t}\n\t\t\t\t// Ein Problem ist aufgetreten\n\t\t\t\te.rejectDrop();\n\t\t\t}\n\n\t\t\t// Jemand hat die Art des Drops (Move, Copy, Link)\n\t\t\t// geändert\n\t\t\t@Override\n\t\t\tpublic void dropActionChanged(DropTargetDragEvent e) {\n\t\t\t}\n\t\t};\n\t\tDropTarget dropTarget = new DropTarget(delStockButton, dropTargetListener);\n\n\t\tstocksTree.setTransferHandler(new rollingstockDND());\n\t\tsetStockList.setTransferHandler(new rollingstockDND(setStockList));\n\n\t\tupdateSetlist();\n\t\tupdateData();\n\t\tdataCollector.collector.gamesetEventListeners.addListener(new AbstractListener() {\n\t\t\t@Override\n\t\t\tpublic void action(AbstractEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t\tformWindowClosing(null);\n\t\t\t}\n\t\t});\n\t}", "private void initAttributes() {\n\t\tnoteTypeList = (DragNDropListView) mLayout\n\t\t\t\t.findViewById(R.id.note_sort_list_view);\n\t\tArrayList<String> content = new ArrayList<String>(mListContent.length);\n\t\tTextView userName = (TextView) mLayout\n\t\t\t\t.findViewById(R.id.note_sort_user_name_textview);\n\t\tuserName.setText(AtlasAndroidUser.getUserNameDisplay());\n\n\t\tint arrSize = mListContent.length;\n\t\tfor (int j = 0; j < arrSize; j++) {\n\t\t\tswitch (ATLNoteSortSingleTon.sortIndex[j]) {\n\t\t\tcase ATLNoteCellData.NOTE_SORT_STARRED:\n\t\t\t\tcontent.add(NOTE_SORT_STARRED_STRING);\n\t\t\t\tbreak;\n\t\t\tcase ATLNoteCellData.NOTE_SORT_DATECREATED:\n\t\t\t\tcontent.add(NOTE_SORT_DATECREATED_STRING);\n\t\t\t\tbreak;\n\t\t\tcase ATLNoteCellData.NOTE_SORT_LASTMODIFIED:\n\t\t\t\tcontent.add(NOTE_SORT_LASTMODIFIED_STRING);\n\t\t\t\tbreak;\n\t\t\tcase ATLNoteCellData.NOTE_SORT_SHARED:\n\t\t\t\tcontent.add(NOTE_SORT_SHARED_STRING);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t// for (int i = 0; i < mListContent.length; i++) {\n\t\t// content.add(mListContent[i]);\n\t\t// }\n\t\tadapter = new DragNDropAdapter(noteActivity,\n\t\t\t\tnew int[] { R.layout.dragitem }, new int[] { R.id.TextView01 },\n\t\t\t\tcontent);\n\t\tnoteTypeList.setAdapter(adapter);// new DragNDropAdapter(this,content)\n\n\t\tif (noteTypeList instanceof DragNDropListView) {\n\t\t\t((DragNDropListView) noteTypeList).setDropListener(mDropListener);\n\t\t\t((DragNDropListView) noteTypeList)\n\t\t\t\t\t.setRemoveListener(mRemoveListener);\n\t\t\t((DragNDropListView) noteTypeList).setDragListener(mDragListener);\n\t\t}\n\t}", "public void windowStateChanged(WindowEvent e) { \n\t\t\t\t ddc.dragAndDropFix();\n\t\t\t }", "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 }", "@Override\n protected void windowInit ()\n {\n }", "protected void _updateWidgets()\n\t{\n\t\t// Show the title\n\t\tString title = _spItem.getTitleAttr() ;\n\t\tif( title != null )\n\t\t\t_obsTitle.setText( title ) ;\n\t\telse\n\t\t\t_obsTitle.setText( \"\" ) ;\n\n\t\tString state = _avTab.get( \"state\" ) ;\n\t\tif( state == null )\n\t\t\t_obsState.setText( \"Not in Active Database\" ) ;\n\t\telse\n\t\t\t_obsState.setText( state ) ;\n\n\t\tignoreActions = true ; // MFO\n\n\t\tSpObs obs = ( SpObs )_spItem ;\n\t\t\n\t\t// Set the priority\n\t\tint pri = obs.getPriority() ;\n\t\t_w.jComboBox1.setSelectedIndex( pri - 1 ) ;\n\n\t\t// Set whether or not this is a standard\n\t\t_w.standard.setSelected( obs.getIsStandard() ) ;\n\n\t\t// Added for OMP (MFO, 7 August 2001)\n\t\t_w.optional.setValue( obs.isOptional() ) ;\n\n\t\tint numberRemaining = obs.getNumberRemaining();\n\t\t_w.setRemainingCount(numberRemaining);\n\n\t\t_w.unSuspendCB.addActionListener( this ) ;\n\n\t\tignoreActions = false ;\n\n\t\t_w.estimatedTime.setText( OracUtilities.secsToHHMMSS( obs.getElapsedTime() , 1 ) ) ;\n\n\t\t_updateMsbDisplay() ;\n\t}", "private static void getWindowHandles() {\n\t\t\r\n\t}", "public void update() {\n super.update();\n window win = null;\n for(int i = windows.length-1 ; i >= 0 ; i -= 1 ) {\n win = (window) windows.getSorted(i);\n win.update();\n }\n }", "private void listWindows() {\n final Component[] components = getComponents();\n final String[] titles = new String[components.length];\n for (int i=0; i<components.length; i++) {\n Component c = components[i];\n String title = String.valueOf(c.getName());\n if (c instanceof JInternalFrame) {\n final JInternalFrame ci = (JInternalFrame) c;\n title = String.valueOf(ci.getTitle());\n c = ci.getRootPane().getComponent(0);\n }\n final Dimension size = c.getSize();\n titles[i] = title + \" : \" + c.getClass().getSimpleName() +\n '[' + size.width + \" \\u00D7 \" + size.height + ']';\n }\n final JInternalFrame frame = new JInternalFrame(\"Windows\", true, true, true, true);\n frame.add(new JScrollPane(new JList<>(titles)));\n frame.pack();\n frame.setVisible(true);\n add(frame);\n }", "public List<T> postorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n postorderHelper(list, root);\n }\n return list;\n }", "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 setupWindow() {\n // Some visual tweaks - first, modify window width based on screen dp. Height handled\n // later after the adapter is populated\n WindowManager.LayoutParams params = getWindow().getAttributes();\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n if (isSmallTablet(metrics)) {\n params.width = (metrics.widthPixels * 2 / 3);\n params.height = (metrics.heightPixels * 3 / 5);\n }\n // For phone screens, we won't adjust the window dimensions\n\n // Don't dim the background while the activity is displayed\n params.alpha = 1.0f;\n params.dimAmount = 0.0f;\n\n getWindow().setAttributes(params);\n\n // Set dialog title\n Set<String> preferredLines =\n PreferenceManager.getDefaultSharedPreferences(this).getStringSet(DashTubeExtension.FAVOURITE_LINES_PREF, null);\n setTitle((preferredLines != null && preferredLines.size() > 0)\n ? R.string.expanded_title_filtered\n : R.string.expanded_title);\n\n // Updated time text\n String updatedStr = String.format(getString(R.string.updated_at),\n getIntent().getStringExtra(DashTubeExtension.TUBE_STATUS_TIMESTAMP));\n\n TextView time = (TextView) findViewById(R.id.updated_at);\n time.setText(updatedStr);\n }", "@Override\n protected void createComponents(JComponent parent) {\n list = new JList(toListModel(auctionItemList));\n list.addListSelectionListener(e -> {\n if (!e.getValueIsAdjusting()) {\n displayItemInfo((String) list.getSelectedValue(), auctionItemList);\n }\n });\n\n scrollPane = new JScrollPane();\n scrollPane.setViewportView(list);\n parent.add(scrollPane);\n\n createLabels(parent);\n\n placeBidField = new JTextField();\n parent.add(placeBidField);\n\n button = new JButton(\"Place bid\");\n button.addActionListener(e -> placeBid(parent));\n parent.add(button);\n }", "private void postInit() {\n fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n goodList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n goodList.setModel(goodDList);\n\n badList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n badList.setModel(badDList);\n\n moveCopyButtonGroup = new ButtonGroup();\n moveCopyButtonGroup.add(copyRadioButton);\n moveCopyButtonGroup.add(moveRadioButton);\n\n Dimension dsp = topJSplitPane.getParent().getSize();\n topJSplitPane.setDividerLocation((int) ((3 * dsp.width) / 4));\n\n dsp = bottomJSplitPane.getParent().getSize();\n bottomJSplitPane.setDividerLocation((int) (dsp.width / 4));\n }", "private void createMenusNow()\n {\n JMenu debugMenu = myToolbox.getUIRegistry().getMenuBarRegistry().getMenu(MenuBarRegistry.MAIN_MENU_BAR,\n MenuBarRegistry.DEBUG_MENU);\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Print Summary\", e -> printSummary()));\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Tag Data Type\", e -> tagDataType()));\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 }", "public void setCurrentListToBeUndoneList();", "public void postOrder() {\r\n\t\tSystem.out.print(\"POST: \");\r\n\t\tpostOrder(root);\r\n\t\tSystem.out.println();\r\n\t}", "public void windowCreated()\n {\n return;\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 }", "private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}", "public void startMIDlet () {//GEN-END:|3-startMIDlet|0|3-preAction\n // write pre-action user code here\nswitchDisplayable (null, getList ());//GEN-LINE:|3-startMIDlet|1|3-postAction\n // write post-action user code here\n}", "void sortUI();", "private void pushEntry(int a, int b){\n\t\twindow.add(new WindowEntry(a, b, currentSeqN()));\n\t}", "private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }", "private void createNewListTextField() {\n\t\tjpIntroduceNameList = new JPanel();\n\t\tjpIntroduceNameList.setOpaque(false);\n\t\tjertfTextList = new JERoundTextField(15,15,200);\n\t\tjertfTextList.setVisible(true);\n\t\tjpIntroduceNameList.setVisible(false);\n\t\tjpIntroduceNameList.add(jertfTextList);\n\t}", "@Override\n public List<UpdatableItem> createPopup() {\n final List<UpdatableItem> items = new ArrayList<UpdatableItem>();\n \n /* host wizard */\n final MyMenuItem newHostWizardItem =\n new MyMenuItem(Tools.getString(\"EmptyBrowser.NewHostWizard\"),\n HOST_ICON,\n null,\n new AccessMode(ConfigData.AccessType.RO, false),\n new AccessMode(ConfigData.AccessType.RO, false)) {\n private static final long serialVersionUID = 1L;\n \n @Override\n public String enablePredicate() {\n return null;\n }\n \n @Override\n public void action() {\n final AddHostDialog dialog = new AddHostDialog(new Host());\n dialog.showDialogs();\n }\n };\n items.add(newHostWizardItem);\n Tools.getGUIData().registerAddHostButton(newHostWizardItem);\n return items;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n BuildJLayeredPane.MenuSectionsPane.moveToFront(JPanelList.PnlList);\n }", "private void createSuggestionsList() {\r\n\t\tmListView = new LabeledListViewElement(this);\r\n\t\tmInputBar.addView(mListView);\r\n\r\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int pos, long id) {\r\n\t\t\t\tString query = adapter.getItemAtPosition(pos).toString();\r\n\t\t\t\tif(query.contains(\" \"))\r\n\t\t\t\t\tsearch(query);\r\n\t\t\t\telse{\r\n\t\t\t\t\tmInputBar.setInputText(query + \" \");\r\n\t\t\t\t\tmInputBar.setCursorAtEnd();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}", "private void addToDirectionPane(String[] directionArray){\n JList<String> directionStringList = new JList<>(directionArray); //Everything to be added to the scrollpane is added as a JList\n directionPane.setVisible(true);\n directionPane.setViewportView(directionStringList); //Set the display of the scrollpane to the current JList\n directionPane.setBounds(25, 300, 400, 200);\n directionPane.setBorder(new MatteBorder(1, 1, 1, 1, Color.DARK_GRAY));\n directionPane.getViewport().setBackground(Color.WHITE); //The viewport is where the scrollpane elements are display\n directionPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n closeDirectionList.setVisible(true);\n }", "void updateList() throws Exception {\n\t\tlist.getItems().clear();\n\t\tfor(Plant p : plantsInBasket) {\n\t\t\tAnchorPane ap = new AnchorPane();\n\t\t\tLabel sname = new Label(p.getScientificName() + \" |\");\n\t\t\tLabel cname = new Label(p.getCommonName());\n\t\t\tsname.setFont(Font.loadFont(getClass().getResourceAsStream(\"/fonts/Roboto-Italic.ttf\"), 21));\n\t\t\tcname.setFont(Font.loadFont(getClass().getResourceAsStream(\"/fonts/Roboto-Italic.ttf\"), 21));\n HBox hBox = new HBox();\n hBox.setAlignment(Pos.CENTER_LEFT);\n \n \t\tImageView iv = new ImageView();\n \t\tiv.setImage(p.getPlantPic());\n \t\tiv.setPreserveRatio(true);\n \t iv.setFitHeight(PLANT_WD_HT);\n \t iv.setFitWidth(PLANT_WD_HT);\n \n \t Tooltip tooltip = new Tooltip(\"Common Name: \" + p.getCommonName() + System.lineSeparator()\n \t\t+ \"Spread: \" + p.getSpread() + \" ft.\" + System.lineSeparator() + \n \t\t\"Soil type: \" + p.getSoilType() + System.lineSeparator() +\n \t\t\"Sun level: \" + p.getSun() + System.lineSeparator() + \n \t\t\"Moisture: \" + p.getMoisture() + System.lineSeparator() +\"Lep Species Supported: \" + p.getLep().getNumLeps() + System.lineSeparator() +\n \t\t\"Most common lep: \" + p.getLep().getSpecies());\n \t ImageView ivLep = new ImageView(p.getLepPic());\n \t ivLep.setFitHeight(LEP_WD_HT);\n \t ivLep.setFitWidth(LEP_WD_HT);\n \t tooltip.setGraphic(ivLep);\n \t tooltip.setPrefWidth(TOOLTIP_SIZE);\n \n \t tooltip.setWrapText(true);\n \t Tooltip.install(iv, tooltip);\n // Add the values from our piece to the HBox\n hBox.getChildren().addAll(iv, sname, cname);\n \n \tImageView compost = new ImageView(new Image(getClass().getResourceAsStream(\"/img/compost.png\")));\n \tcompost.setFitHeight(COMPOST_SIZE);\n compost.setFitWidth(COMPOST_SIZE);\n \n Button b = new Button();\n b.setGraphic(compost);\n b.setStyle(\"-fx-background-color: #99B898;\");\n \n ap.getChildren().addAll(hBox, b);\n AnchorPane.setLeftAnchor(hBox, root.getWidth() / 3);\n AnchorPane.setRightAnchor(b, COMPOST_RIGHT);\n AnchorPane.setTopAnchor(b, COMPOST_TOP);\n \n b.setOnAction(e -> {\n \ttry {\n\t\t\t\t\tView.getGarden().removeFromBasket(p);\n\t\t\t\t\tupdateList();\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n \t\n \t\n });\n list.getItems().add(ap);\n\t\t}\n\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}", "public void buildMenu() {\n\t\tthis.Menu = new uPanel(this.layer, 0, 0, (int) (this.getWidth() * 2), (int) (this.getHeight() * 3)) {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean handleEvent(uEvent event) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick() {\r\n\t\t\t\tsuper.onClick();\r\n\t\t\t\tthis.space.sortLayer(this.layer);\r\n\t\t\t\tthis.castEvent(\"MENUPANEL_CLICK\");\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.screen.addPrehide(this.Menu);\r\n\r\n\t\tthis.Node.addChild(this.Menu.getNode());\r\n\r\n\t}", "private void setList(SessionDeadStockListRet listbox, String actionName) throws Exception\n\t{\n\t\t//#CM5075\n\t\t// Obtain the locale.\n\t\tLocale locale = this.getHttpRequest().getLocale();\n\t\t//#CM5076\n\t\t// Set the Page info.\n\t\tlistbox.setActionName(actionName);\n\n\t\t//#CM5077\n\t\t// Obtain search result\n\t\tStockControlParameter[] stockparam = (StockControlParameter[])listbox.getEntities();\n\n\t\tint len = 0;\n\t\tif (stockparam != null)\n\t\t{\n\t\t\tlen = stockparam.length;\n\t\t}\n\t\tif (len > 0)\n\t\t{\n\t\t\t//#CM5078\n\t\t\t// Set the Consignor name for the search conditions.\n\t\t\tlbl_JavaSetCnsgnrNm.setText(stockparam[0].getConsignorName());\n\n\t\t\t//#CM5079\n\t\t\t// Set the value for the pager.\n\t\t\t//#CM5080\n\t\t\t// Maximum Count\n\t\t\tpgr_U.setMax(listbox.getLength());\n\t\t\t//#CM5081\n\t\t\t// Display Counts per 1 page\n\t\t\tpgr_U.setPage(listbox.getCondition());\n\t\t\t//#CM5082\n\t\t\t// Start Position\n\t\t\tpgr_U.setIndex(listbox.getCurrent() + 1);\n\t\t\t//#CM5083\n\t\t\t// Maximum Count\n\t\t\tpgr_D.setMax(listbox.getLength());\n\t\t\t//#CM5084\n\t\t\t// Display Counts per 1 page\n\t\t\tpgr_D.setPage(listbox.getCondition());\n\t\t\t//#CM5085\n\t\t\t// Start Position\n\t\t\tpgr_D.setIndex(listbox.getCurrent() + 1);\n\n\t\t\t//#CM5086\n\t\t\t// Hide the message.\n\t\t\tlbl_InMsg.setVisible(false);\n\n\t\t\t//#CM5087\n\t\t\t// Delete all lines.\n\t\t\tlst_DeadStockList.clearRow();\n\n\t\t\t//#CM5088\n\t\t\t// Item name\n\t\t\tString label_itemname = DisplayText.getText(\"LBL-W0103\");\n\t\t\t//#CM5089\n\t\t\t// Case ITF\n\t\t\tString label_caseitf = DisplayText.getText(\"LBL-W0010\");\n\t\t\t//#CM5090\n\t\t\t// Bundle ITF\n\t\t\tString label_bundleitf = DisplayText.getText(\"LBL-W0006\");\n\t\t\t//#CM5091\n\t\t\t// Expiry Date\n\t\t\tString label_usebydate = DisplayText.getText(\"LBL-W0270\");\n\n\t\t\tString title_AreaTypeName = DisplayText.getText(\"LBL-W0569\");\n\t\t\t\n\t\t\tfor (int i = 0; i < len; i++)\n\t\t\t{\n\t\t\t\t//#CM5092\n\t\t\t\t// Obtain the tailing line.\n\t\t\t\tint count = lst_DeadStockList.getMaxRows();\n\t\t\t\t//#CM5093\n\t\t\t\t// Add line\n\t\t\t\tlst_DeadStockList.addRow();\n\n\t\t\t\t//#CM5094\n\t\t\t\t// Move to the end line.\n\t\t\t\tlst_DeadStockList.setCurrentRow(count);\n\t\t\t\tlst_DeadStockList.setValue(0, stockparam[i].getCasePieceFlag());\n\t\t\t\tlst_DeadStockList.setValue(1, WmsFormatter.toDispDate(WmsFormatter.toParamDate(stockparam[i].getStorageDate()),locale));\n\t\t\t\tlst_DeadStockList.setValue(2, stockparam[i].getItemCode());\n\t\t\t\tlst_DeadStockList.setValue(3, stockparam[i].getCasePieceFlagName());\n\t\t\t\tlst_DeadStockList.setValue(4, WmsFormatter.toDispLocation(\n\t\t\t\t stockparam[i].getLocationNo()\n\t\t\t\t , stockparam[i].getAreaNo(), stockparam[i].getAreaNoArray()));\n\t\t\t\tlst_DeadStockList.setValue(5, WmsFormatter.getNumFormat(stockparam[i].getEnteringQty()));\n\t\t\t\tlst_DeadStockList.setValue(6, WmsFormatter.getNumFormat(stockparam[i].getStockCaseQty()));\n\t\t\t\tlst_DeadStockList.setValue(7, stockparam[i].getITF());\n\t\t\t\tlst_DeadStockList.setValue(8, stockparam[i].getUseByDate());\n\t\t\t\tlst_DeadStockList.setValue(9, WmsFormatter.getTimeFormat(stockparam[i].getStorageDate(), \"\"));\n\t\t\t\tlst_DeadStockList.setValue(10, stockparam[i].getItemName());\n\t\t\t\tlst_DeadStockList.setValue(11, WmsFormatter.getNumFormat(stockparam[i].getBundleEnteringQty()));\n\t\t\t\tlst_DeadStockList.setValue(12, WmsFormatter.getNumFormat(stockparam[i].getStockPieceQty()));\n\t\t\t\tlst_DeadStockList.setValue(13, stockparam[i].getBundleITF());\n\n\t\t\t\t//#CM5095\n\t\t\t\t// Compile the data for ToolTip\n\t\t\t\tToolTipHelper toolTip = new ToolTipHelper();\n\t\t\t\t//#CM5096\n\t\t\t\t// Item name\n\t\t\t\ttoolTip.add(label_itemname, stockparam[i].getItemName());\n\t\t\t\t//#CM5097\n\t\t\t\t// Case ITF\n\t\t\t\ttoolTip.add(label_caseitf, stockparam[i].getITF());\n\t\t\t\t//#CM5098\n\t\t\t\t// Bundle ITF\n\t\t\t\ttoolTip.add(label_bundleitf, stockparam[i].getBundleITF());\n\t\t\t\t//#CM5099\n\t\t\t\t// Expiry Date\n\t\t\t\ttoolTip.add(label_usebydate, stockparam[i].getUseByDate());\n\n\t\t\t\ttoolTip.add(title_AreaTypeName, stockparam[i].getAreaName());\n\n\t\t\t\t//#CM5100\n\t\t\t\t// Set ToolTip to current line\n\t\t\t\tlst_DeadStockList.setToolTip(\n\t\t\t\t\tlst_DeadStockList.getCurrentRow(),\n\t\t\t\t\ttoolTip.getText());\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//#CM5101\n\t\t\t// Set the value for the Pager.\n\t\t\t//#CM5102\n\t\t\t// Maximum Count\n\t\t\tpgr_U.setMax(0);\n\t\t\t//#CM5103\n\t\t\t// Display Counts per 1 page\n\t\t\tpgr_U.setPage(0);\n\t\t\t//#CM5104\n\t\t\t// Start Position\n\t\t\tpgr_U.setIndex(0);\n\t\t\t//#CM5105\n\t\t\t// Maximum Count\n\t\t\tpgr_D.setMax(0);\n\t\t\t//#CM5106\n\t\t\t// Display Counts per 1 page\n\t\t\tpgr_D.setPage(0);\n\t\t\t//#CM5107\n\t\t\t// Start Position\n\t\t\tpgr_D.setIndex(0);\n\n\t\t\t//#CM5108\n\t\t\t// Execute search result count check\n\t\t\tString errorMsg = listbox.checkLength();\n\t\t\t//#CM5109\n\t\t\t// Hide the header.\n\t\t\tlst_DeadStockList.setVisible(false);\n\t\t\t//#CM5110\n\t\t\t// Error message display\n\t\t\tlbl_InMsg.setResourceKey(errorMsg);\n\t\t}\n\t}", "public List<Letter<?>> getPostbox() {\n\t\treturn postbox;\n\t}", "@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}", "private void setUpHeader(){\n JButton newList = new JButton(\"Add new list +\");\n newList.addActionListener(e -> this.addList());\n clearPanel(header);\n if(numberOfLists > 0) {\n footer.setVisible(true);\n header.setLayout(new GridLayout(1, 4));\n JButton editListButton= new JButton(\"Edit\");\n editListButton.addActionListener(e->editList());\n JButton deleteListButton = new JButton(\"X\");\n deleteListButton.addActionListener(e -> deleteList());\n comboBox.setSelectedIndex(0);\n currentList = agenda.getConnector().getItem(agenda.getUsername(),\"list\",comboBox.getSelectedItem().toString());\n comboBox.addActionListener(e -> {\n if (comboBox.getSelectedIndex() < numberOfLists) {\n if(comboBox.getItemCount() > 0) {\n currentList = agenda.getConnector().getItem(agenda.getUsername(), \"list\", comboBox.getSelectedItem().toString());\n }\n if(!setup.get(comboBox.getSelectedItem().toString())){\n for(Component c:window.getComponents()){\n if(c.getName().equals(comboBox.getSelectedItem().toString())){\n setUpList((JPanel)c);\n setup.replace(c.getName(),true);\n break;\n }\n }\n }\n ColorPicker picker = ((ColorPicker)this.footer.getComponent(7));\n if(currentList != null) {\n picker.setColor(currentList.getColor());\n }\n this.showPanel(comboBox.getSelectedItem().toString());\n }\n });\n header.add(newList);\n header.add(comboBox);\n header.add(editListButton);\n header.add(deleteListButton);\n }else {\n header.setLayout(new GridLayout(1, 1));\n header.add(newList);\n footer.setVisible(false);\n }\n this.updateComponent(header);\n }", "public ParkingTerminalGarageOwnerStartupWindow() {\n this.feeList = new Vector<>();\n this.outputList = new Vector<>();\n outputList.add(consoleO);\n outputList.add(JOptionPaneO);\n feeList.add(minMax);\n feeList.add(minNoMax);\n initComponents();\n\n }", "public VentanaListaPosts(List<Post> posts, List<Post> posts2) {\n\t \n\t\tsetSize(620, 480);\n\t\tsetTitle(\"Lista de posts\");\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tsetResizable(false);\n\t\tgetContentPane().setLayout(null);\n\t\tsetLocationRelativeTo(null);\n\t\t\n\t\ttextBuscarPost = new JTextField();\n\t\ttextBuscarPost.setBounds(23, 11, 397, 20);\n new TextPrompt(\"Introduce usuario para buscar sus posts\", textBuscarPost);\n getContentPane().add(textBuscarPost);\n \n JButton btnBuscar = new JButton(\"Buscar\");\n btnBuscar.setBounds(467, 11, 100, 24);\n getContentPane().add(btnBuscar);\n\t\t\n\t\tJPanel panelListaPost= new JPanel();\n\t\tpanelListaPost.setBounds(10, 46, 594, 350);\n getContentPane().add(panelListaPost);\n \n JTextArea textoPost = new JTextArea();\n textoPost.setColumns(50);\n textoPost.setRows(20);\n textoPost.setEditable(false);\n \n Font font1 = new Font(\"Arial\", Font.ITALIC, 12);\n textoPost.setFont(font1);\n textoPost.setBounds(10, 46, 594, 229);\n scroll = new JScrollPane(textoPost);\n\t\tscroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelListaPost.add(scroll);\n\t\t\n\t\tJButton btnPisos = new JButton(\"Pisos\");\n\t\tbtnPisos.setBounds(20, 417, 89, 23);\n\t\tgetContentPane().add(btnPisos);\n\t\t\n\t\tJButton btnInicio = new JButton(\"Inicio\");\n\t\tbtnInicio.setBounds(208, 417, 89, 23);\n\t\tgetContentPane().add(btnInicio);\n\t\t\n\t\t\n\t\tif(posts2.size() > 0) {\n\t\t\ttextoPost.setText(\"Titulo: \" + posts2.get(0).getTitulo().toUpperCase() + \"\\n\" + \"Descripción: \" + posts2.get(0).getContenido() +\"\\n\" + \"Autor: \" + posts2.get(0).getAutor() + \"\\n\" + \"Likes: \" + posts2.get(0).getLikes() +\"\\n\\n\");\n\t\t\tfor(int i = 1; i < posts2.size(); i++) {\n\t\t\t\ttextoPost.append(\"Titulo: \" + posts2.get(i).getTitulo().toUpperCase() + \"\\n\" + \"Descripción: \" + posts2.get(i).getContenido() +\"\\n\" + \"Autor: \" + posts2.get(i).getAutor() + \"\\n\" + \"Likes: \" + posts2.get(i).getLikes() +\"\\n\\n\");\n\t\t\t}\n\t\t}else {\n \tscroll.setVisible(false);\n \tpanelListaPost.setVisible(false);\n \tJLabel labelNoPost = new JLabel(\"No se encontró ningun post.\");\n \tlabelNoPost.setBounds(200, 50, 200, 50);\n \tgetContentPane().add(labelNoPost);\n }\n\t\tbtnPisos.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tList<Piso> pisos = new ArrayList<Piso>();\n\t\t\t\tpisos = Controller.getInstance().getPisos();\n\t\t\t\tnew VentanaListaPisos(pisos, pisos);\n\t\t\t\tdispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnInicio.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tList<Post> posts = new ArrayList<Post>();\n\t\t\t\tposts = Controller.getInstance().getPost();\n\t\t\t\tnew VentanaListaPosts(posts, posts);\n\t\t\t\tdispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnBuscar.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n \t\tnew VentanaListaPosts(posts, m.buscarPosts(textBuscarPost.getText(), posts));\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttextoPost.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\t@Override\n \t public void mousePressed(MouseEvent e) {\n\t\t\t\tif(e.getClickCount() == 2) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tint line = textoPost.getLineOfOffset( textoPost.getCaretPosition());\n\t\t\t\t\t\tint start = textoPost.getLineStartOffset( line );\n\t\t\t\t\t\tint end = textoPost.getLineEndOffset( line );\n\t\t\t\t\t\tString text = textoPost.getDocument().getText(start, end - start).toLowerCase();\n\t\t\t\t\t\tif(text.contains(\"titulo\")) {\n\t\t\t\t\t\t\tnew VentanaInfoPost(m.obtenerPost(text, posts));\n\t\t\t\t\t\t\tdispose();\n\t\t\t\t\t\t}else if(text.contains(\"descripción\")) {\n\t\t\t\t\t\t\tline = line - 1;\n\t\t\t\t\t\t\tstart = textoPost.getLineStartOffset( line );\n\t\t\t\t\t\t\tend = textoPost.getLineEndOffset( line );\n\t\t\t\t\t\t\ttext = textoPost.getDocument().getText(start, end - start).toLowerCase();\n\t\t\t\t\t\t\tnew VentanaInfoPost(m.obtenerPost(text, posts));\n\t\t\t\t\t\t\tdispose();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if(text.contains(\"autor\")) {\n\t\t\t\t\t\t\tline = line - 2;\n\t\t\t\t\t\t\tstart = textoPost.getLineStartOffset( line );\n\t\t\t\t\t\t\tend = textoPost.getLineEndOffset( line );\n\t\t\t\t\t\t\ttext = textoPost.getDocument().getText(start, end - start).toLowerCase();\n\t\t\t\t\t\t\tnew VentanaInfoPost(m.obtenerPost(text, posts));\n\t\t\t\t\t\t\tdispose();\n\t\t\t\t\t\t}else if(text.contains(\"likes\")) {\n\t\t\t\t\t\t\tline = line - 3;\n\t\t\t\t\t\t\tstart = textoPost.getLineStartOffset( line );\n\t\t\t\t\t\t\tend = textoPost.getLineEndOffset( line );\n\t\t\t\t\t\t\ttext = textoPost.getDocument().getText(start, end - start).toLowerCase();\n\t\t\t\t\t\t\tnew VentanaInfoPost(m.obtenerPost(text, posts));\n\t\t\t\t\t\t\tdispose();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (BadLocationException e1) {\n\t\t\t\t\t\t\n\t\t\t\t\t\te1.printStackTrace();\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\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tsetVisible(true);\n\t\t\n\t}", "@Override\r\n\tpublic void windowstartUpData() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\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 }", "private void initialize() {\r\n\t\tfrmMainWindow = new JFrame();\r\n\t\tfrmMainWindow.addWindowListener(this);\r\n\t\tfrmMainWindow.addWindowFocusListener(this);\r\n\t\tfrmMainWindow.setTitle(\"Main Window\");\r\n\t\tfrmMainWindow.setResizable(false);\r\n\t\tfrmMainWindow.setBounds(100, 100, 1500, 1000);\r\n\t\tfrmMainWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmMainWindow.getContentPane().setLayout(null);\r\n\t\tfrmMainWindow.setLocation(5, 5);\r\n\r\n\t\tsplitPane = new JSplitPane();\r\n\t\tsplitPane.setResizeWeight(0.5);\r\n\t\tsplitPane.setBounds(10, 56, 1474, 581);\r\n\t\tfrmMainWindow.getContentPane().add(splitPane);\r\n\t\t\r\n\t\tscrollPane = new JScrollPane();\r\n\t\tsplitPane.setLeftComponent(scrollPane);\r\n\t\t\r\n\t\t\t\tapplyList = new JList(axiomListModel);\r\n\t\t\t\tscrollPane.setViewportView(applyList);\r\n\t\t\t\t\r\n\t\t\t\tscrollPane_2 = new JScrollPane();\r\n\t\t\t\tsplitPane.setRightComponent(scrollPane_2);\r\n\t\t\t\t\r\n\t\t\t\t\t\ttoList = new JList(axiomListModel);\r\n\t\t\t\t\t\tscrollPane_2.setViewportView(toList);\r\n\t\t\t\t\t\ttoList.addListSelectionListener(this);\r\n\t\t\t\tapplyList.addListSelectionListener(this);\r\n\r\n\t\tlblApply = new JLabel(\"Apply\");\r\n\t\tlblApply.setBounds(360, 41, 35, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblApply);\r\n\r\n\t\tlblTo = new JLabel(\"To\");\r\n\t\tlblTo.setBounds(1133, 41, 19, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblTo);\r\n\r\n\t\tbtnImportAxioms = new JButton(\"Import Axioms\");\r\n\t\tbtnImportAxioms.addActionListener(this);\r\n\t\tbtnImportAxioms.setBounds(10, 11, 124, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportAxioms);\r\n\r\n\t\tbtnImportDefinitions = new JButton(\"Import Definitions\");\r\n\t\tbtnImportDefinitions.addActionListener(this);\r\n\t\tbtnImportDefinitions.setBounds(1343, 11, 141, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportDefinitions);\r\n\r\n\t\tpositionSelectorPane = new JPanel();\r\n\r\n\t\tpositionScrollPane = new JScrollPane(positionSelectorPane);\r\n\t\tpositionSelectorPane.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n\t\tpositionScrollPane.setBounds(10, 674, 1474, 60);\r\n\t\tfrmMainWindow.getContentPane().add(positionScrollPane);\r\n\r\n\t\tJLabel lblAtPosition = new JLabel(\"At Position\");\r\n\t\tlblAtPosition.setBounds(712, 649, 71, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblAtPosition);\r\n\r\n\t\tresultArea = new JTextPane();\r\n\t\tresultArea.setEditable(false);\r\n\t\tresultArea.setBounds(10, 777, 1474, 42);\r\n\t\tfrmMainWindow.getContentPane().add(resultArea);\r\n\t\tSimpleAttributeSet attribs = new SimpleAttributeSet();\r\n\t\tStyleConstants.setAlignment(attribs, StyleConstants.ALIGN_CENTER);\r\n\t\tStyleConstants.setFontSize(attribs, 22);\r\n\t\tresultArea.setParagraphAttributes(attribs, true);\r\n\r\n\t\tJLabel lblResult = new JLabel(\"Result\");\r\n\t\tlblResult.setBounds(723, 745, 46, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblResult);\r\n\r\n\t\taddTheorem = new JButton(\"Add To List\");\r\n\t\taddTheorem.addActionListener(this);\r\n\t\taddTheorem.setBounds(1343, 745, 141, 23);\r\n\t\tfrmMainWindow.getContentPane().add(addTheorem);\r\n\r\n\t\ttoggleDebugBtn = new JButton(\"Toggle Debug Mode\");\r\n\t\ttoggleDebugBtn.addActionListener(this);\r\n\t\ttoggleDebugBtn.setBounds(10, 745, 150, 23);\r\n\t\tfrmMainWindow.getContentPane().add(toggleDebugBtn);\r\n\r\n\t\tbtnLoadState = new JButton(\"Load State\");\r\n\t\tbtnLoadState.addActionListener(this);\r\n\t\tbtnLoadState.setBounds(641, 11, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnLoadState);\r\n\r\n\t\tbtnSaveState = new JButton(\"Save State\");\r\n\t\tbtnSaveState.addActionListener(this);\r\n\t\tbtnSaveState.setBounds(749, 11, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnSaveState);\r\n\r\n\t\tlblAddNewStatement = new JLabel(\"Add New Statement\");\r\n\t\tlblAddNewStatement.setBounds(686, 839, 124, 14);\r\n\t\tfrmMainWindow.getContentPane().add(lblAddNewStatement);\r\n\r\n\t\tbtnAsAxiom = new JButton(\"As Axiom\");\r\n\t\tbtnAsAxiom.addActionListener(this);\r\n\t\tbtnAsAxiom.setBounds(641, 917, 105, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAsAxiom);\r\n\r\n\t\tbtnAsDefinition = new JButton(\"As Definition\");\r\n\t\tbtnAsDefinition.addActionListener(this);\r\n\t\tbtnAsDefinition.setBounds(749, 917, 116, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAsDefinition);\r\n\r\n\t\tbtnReset = new JButton(\"Reset\");\r\n\t\tbtnReset.addActionListener(this);\r\n\t\tbtnReset.setBounds(328, 11, 89, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnReset);\r\n\r\n\t\tbtnImportPunctuation = new JButton(\"Import Punctuation\");\r\n\t\tbtnImportPunctuation.addActionListener(this);\r\n\t\tbtnImportPunctuation.setBounds(1070, 11, 150, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnImportPunctuation);\r\n\r\n\t\tbtnPlayWithSelected = new JButton(\"Play With Selected Axioms\");\r\n\t\tbtnPlayWithSelected.addActionListener(this);\r\n\t\tbtnPlayWithSelected.setBounds(10, 640, 206, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnPlayWithSelected);\r\n\t\t\r\n\t\tbtnRemoveSelectedStatement = new JButton(\"Remove Selected Statement\");\r\n\t\tbtnRemoveSelectedStatement.addActionListener(this);\r\n\t\tbtnRemoveSelectedStatement.setBounds(226, 640, 198, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnRemoveSelectedStatement);\r\n\t\t\r\n\t\tJScrollPane scrollPane_1 = new JScrollPane();\r\n\t\tscrollPane_1.setBounds(10, 864, 1474, 44);\r\n\t\tfrmMainWindow.getContentPane().add(scrollPane_1);\r\n\t\t\r\n\t\tmanualStmt = new JTextPane();\r\n\t\tscrollPane_1.setViewportView(manualStmt);\r\n\t\t\t\t\r\n\t\tbtnAddImportantResult = new JButton(\"Add To Important Results\");\r\n\t\tbtnAddImportantResult.addActionListener(this);\r\n\t\tbtnAddImportantResult.setBounds(434, 640, 206, 23);\r\n\t\tfrmMainWindow.getContentPane().add(btnAddImportantResult);\r\n\t\tmanualStmt.setParagraphAttributes(attribs, true);\r\n\t}", "private List<Turtle> createActiveDisplay() {\n\t\tactiveListDisplay = new FlowPane();\n\t\tactiveListDisplay.setPrefWrapLength(turtleView.getWidth());\n\t\tif (tManager != null) {\n\t\t\tactiveTurtles = tManager.getActiveTurtles();\n\t\t\tfor(Turtle turtle: activeTurtles) {\n\t\t\t\tLabel currentTurtle = new Label(Double.toString(turtle.getID()));\n\t\t\t\tturtleView.getChildren().add(currentTurtle);\n\t\t\t\tlabels.add(currentTurtle);\n\t\t\t\ttoggleTurtle(currentTurtle, turtle);\n\t\t\t}\n\t\t\treturn activeTurtles;\n\t\t}\n\t\treturn null;\n\t}", "private void postInit() {\n // start with compact form\n detailledToggleButtonActionPerformed(null);\n\n colorMappingComboBox.setRenderer(ColorMappingListCellRenderer.getListCellRenderer());\n\n // Fill colorMapping combobox\n for (ColorMapping cm : ColorMapping.values()) {\n if (cm != ColorMapping.OBSERVATION_DATE) { // not implemented\n colorMappingComboBox.addItem(cm);\n }\n }\n\n xAxisEditor = new AxisEditor(this);\n xAxisPanel.add(xAxisEditor);\n\n if (ENABLE_EXPRESSION_EDITOR) {\n expressionEditor = new ExpressionEditor(this);\n expressionEditor.setVisible(false);\n\n this.jPanelOtherEditors.add(expressionEditor, BorderLayout.CENTER);\n } else {\n jToggleButtonExprEditor.setVisible(false);\n }\n\n // Adjust fonts:\n final Font fixedFont = new Font(Font.MONOSPACED, Font.PLAIN, SwingUtils.adjustUISize(12));\n this.jToggleButtonAuto.setFont(fixedFont);\n this.jToggleButtonDefault.setFont(fixedFont);\n this.jToggleButtonFixed.setFont(fixedFont);\n }", "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}", "private void createMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(flp.getString(\"file\"));\n\t\tmenuBar.add(fileMenu);\n\n\t\tfileMenu.add(new JMenuItem(new ActionNewDocument(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionOpen(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSave(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSaveAs(flp, this)));\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(new JMenuItem(new ActionExit(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionStatistics(flp, this)));\n\n\t\teditMenu = new JMenu(flp.getString(\"edit\"));\n\n\t\teditMenu.add(new JMenuItem(new ActionCut(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionCopy(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionPaste(flp, this)));\n\n\t\ttoolsMenu = new JMenu(flp.getString(\"tools\"));\n\n\t\titemInvert = new JMenuItem(new ActionInvertCase(flp, this));\n\t\titemInvert.setEnabled(false);\n\t\ttoolsMenu.add(itemInvert);\n\n\t\titemLower = new JMenuItem(new ActionLowerCase(flp, this));\n\t\titemLower.setEnabled(false);\n\t\ttoolsMenu.add(itemLower);\n\n\t\titemUpper = new JMenuItem(new ActionUpperCase(flp, this));\n\t\titemUpper.setEnabled(false);\n\t\ttoolsMenu.add(itemUpper);\n\n\t\tsortMenu = new JMenu(flp.getString(\"sort\"));\n\t\tsortMenu.add(new JMenuItem(new ActionSortAscending(flp, this)));\n\t\tsortMenu.add(new JMenuItem(new ActionSortDescending(flp, this)));\n\n\t\tmenuBar.add(editMenu);\n\t\tmenuBar.add(createLanguageMenu());\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(sortMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}", "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 makeFrame(String[] audioFiles) {\n // the following makes sure that our application exits when\n // the user closes its window\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n JPanel contentPane = (JPanel) getContentPane();\n contentPane.setBorder(new EmptyBorder(6, 10, 10, 10));\n contentPane.setPreferredSize(new Dimension(920, 500));\n makeMenuBar();\n\n // Specify the layout manager with nice spacing\n contentPane.setLayout(new BorderLayout(8, 8));\n\n // Create the left side with combobox and scroll list\n JPanel leftPane = new JPanel(); {\n leftPane.setLayout(new BorderLayout(8, 8));\n\n String[] formats = {\"all formats\", \".wav\", \".au\", \".aif\"};\n\n // Create the combo box.\n JComboBox formatList = new JComboBox(formats);\n formatList.setBackground(Color.BLACK);\n formatList.setForeground(new Color(140, 171, 226));\n formatList.addActionListener(this);\n leftPane.add(formatList, BorderLayout.NORTH);\n\n // Create the scrolled list for file names\n audioListModel = new DefaultListModel();\n audioList = new JList(audioListModel);\n for(int i = 0; i < audioFiles.length; i++)\n audioListModel.addElement(audioFiles[i]);\n setBackground(audioList);\n JScrollPane scrollPane = new JScrollPane(audioList);\n scrollPane.setColumnHeaderView(new JLabel(\"Audio files\"));\n leftPane.add(scrollPane, BorderLayout.CENTER);\n //leftPane.setBackground(Color.BLACK);\n }\n contentPane.add(leftPane, BorderLayout.CENTER);\n\n //Create the right side with the Initial list and Updated list\n JPanel rightPane = new JPanel(); {\n //Create the Button # label and comboBox\n JPanel orderPanel = new JPanel(); {\n orderPanel.setLayout(new FlowLayout());\n\n Font font = new Font(\"Verdana\", Font.BOLD,12);\n\n JLabel orderLabel = new JLabel(\"Button #: \");\n orderLabel.setFont(font);\n if(orderModel == null) {\n orderModel = new DefaultComboBoxModel();\n order = new JComboBox(orderModel);\n for (int i = 1; i <= orderButtons.length; i++)\n orderModel.addElement(i);\n }\n order.setBackground(Color.BLACK);\n order.setForeground(new Color(140, 171, 226));\n orderPanel.add(orderLabel);\n orderPanel.add(order);\n\n JLabel initialLabel = new JLabel(\"Initial List: \");\n initialLabel.setFont(font);\n orderPanel.add(initialLabel);\n\n //Add button to add new button in simulator app.\n addNewBtn = new JButton();\n ImageIcon addNewIcn = new ImageIcon(\"Icons/Add.png\");\n setButtonIcon(addNewBtn, addNewIcn);\n addNewBtn.setToolTipText(\"Add New Button\");\n addNewBtn.addActionListener(e -> addInitialBtn(audioFiles));\n orderPanel.add(addNewBtn);\n\n //Add remove button to new remove the last button created in simulator app.\n removeNewBtn = new JButton();\n ImageIcon removeIcn = new ImageIcon(\"Icons/Remove.png\");\n setButtonIcon(removeNewBtn, removeIcn);\n removeNewBtn.setToolTipText(\"Remove from Initial List\");\n removeNewBtn.addActionListener(e -> removeInitialBtn());\n orderPanel.add(removeNewBtn);\n //orderPanel.setBackground(Color.BLACK);\n\n JLabel finalLabel = new JLabel(\"Final List: \");\n finalLabel.setFont(font);\n orderPanel.add(finalLabel);\n\n //Add Edit button to add audio files to final list.\n addFinalBtn = new JButton();\n ImageIcon addFinalIcn = new ImageIcon(\"Icons/Add.png\");\n setButtonIcon(addFinalBtn, addFinalIcn);\n addFinalBtn.setToolTipText(\"Add to Final List\");\n addFinalBtn.addActionListener(e -> addFinalBtn());\n orderPanel.add(addFinalBtn);\n\n //Add remove button to new remove the last button created in simulator app.\n removeFinalBtn = new JButton();\n ImageIcon removeFinalIcn = new ImageIcon(\"Icons/Remove.png\");\n setButtonIcon(removeFinalBtn, removeFinalIcn);\n removeFinalBtn.setToolTipText(\"Remove from Final List\");\n removeFinalBtn.addActionListener(e -> removeFinalBtn());\n orderPanel.add(removeFinalBtn);\n\n //Add Record Button to record new audio files.\n// JButton recordBtn = new JButton();\n// ImageIcon recordIcn = new ImageIcon(\"Icons/Record.png\");\n// setButtonIcon(recordBtn, recordIcn);\n// recordBtn.setToolTipText(\"Record\");\n// recordBtn.addActionListener(e -> {\n// recordBtn.setVisible(false);\n// ImageIcon stopRcdIcn = new ImageIcon(\"Icons/Stop.png\");\n// JButton stopRcdBtn = new JButton();\n// setButtonIcon(stopRcdBtn, stopRcdIcn);\n// stopRcdBtn.setToolTipText(\"Stop Recording\");\n// stopRcdBtn.addActionListener(e1 -> {\n// stopRcdBtn.setVisible(false);\n// recordBtn.setVisible(true);\n// stopRecording();\n// });\n// startRecording();\n// orderPanel.add(stopRcdBtn);\n// });\n// orderPanel.add(recordBtn);\n // Add button to launch Simulator App\n launchSimApp = new JButton();\n ImageIcon launchIcn = new ImageIcon(\"Icons/Launch.png\");\n setButtonIcon(launchSimApp, launchIcn);\n launchSimApp.setToolTipText(\"Launch Simulator\");\n launchSimApp.addActionListener(e -> {\n if(sounds.exists()) {\n SimulatorApp myFrame = new SimulatorApp();\n myFrame.setVisible(true);\n myFrame.setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n }\n else {\n JOptionPane.showMessageDialog(null, \"Please try to save before launching simulator app\");\n }\n });\n orderPanel.add(launchSimApp);\n }\n rightPane.setLayout(new BorderLayout(8, 8));\n rightPane.add(orderPanel, BorderLayout.CENTER);\n // Create the scrolled list for Initial List\n if(initialListModel == null)\n {\n initialListModel = new DefaultListModel();\n initialList = new JList(initialListModel);\n for (int i = 0; i < order.getItemCount(); i++)\n initialListModel.addElement(audioFiles[i]);\n }\n setBackground(initialList);\n initialList.setPrototypeCellValue(\"XXXXXXXXXXXXXXXXXXX\");\n JScrollPane leftScrollPane = new JScrollPane(initialList);\n leftScrollPane.setColumnHeaderView(new JLabel(\"Initial List : What You Had\"));\n rightPane.add(leftScrollPane, BorderLayout.WEST);\n\n //Create the scrolled list for Updated List\n finalListModel = new DefaultListModel();\n finalList = new JList(finalListModel);\n setBackground(finalList);\n finalList.setPrototypeCellValue(\"XXXXXXXXXXXXXXXXXXXX\");\n JScrollPane rightScrollPane = new JScrollPane(finalList);\n\n //Add all elements from initial list to final list when app is started.\n for (int i=0; i<initialListModel.getSize(); i++)\n finalListModel.addElement(initialListModel.elementAt(i));\n\n rightScrollPane.setColumnHeaderView(new JLabel(\"Final List : What You Want\"));\n rightPane.add(rightScrollPane, BorderLayout.EAST);\n //rightPane.setBackground(Color.BLACK);\n }\n contentPane.add(rightPane, BorderLayout.SOUTH);\n\n // Create the center with image, text label, and slider\n JPanel centerPane = new JPanel(); {\n centerPane.setLayout(new BorderLayout(8, 8));\n\n JLabel image = new JLabel(new ImageIcon(\"title.jpg\"));\n centerPane.add(image, BorderLayout.NORTH);\n centerPane.setBackground(Color.BLACK);\n\n infoLabel = new JLabel(\" \");\n infoLabel.setHorizontalAlignment(SwingConstants.CENTER);\n infoLabel.setForeground(new Color(140,171,226));\n centerPane.add(infoLabel, BorderLayout.CENTER);\n\n slider = new JSlider(0, 100, 0);\n TitledBorder border = new TitledBorder(\"Seek\");\n border.setTitleColor(Color.white);\n slider.setBorder(new CompoundBorder(new EmptyBorder(6, 10, 10, 10), border));\n slider.addChangeListener(this);\n slider.setBackground(Color.BLACK);\n slider.setMajorTickSpacing(25);\n slider.setPaintTicks(true);\n slider.addChangeListener(new ChangeListener() {\n @Override\n public void stateChanged(ChangeEvent e) {\n player.setVolume(slider.getValue());\n }\n });\n centerPane.add(slider, BorderLayout.SOUTH);\n //centerPane.setBackground(Color.BLACK);\n }\n contentPane.add(centerPane, BorderLayout.EAST);\n\n // Create the toolbar with the buttons\n JPanel toolbar = new JPanel(); {\n toolbar.setLayout(new GridLayout(1, 0));\n\n playBtn = new JButton();\n ImageIcon playIcn = new ImageIcon(\"Icons/Play.png\");\n playBtn.setToolTipText(\"Play\");\n setButtonIcon(playBtn, playIcn);\n playBtn.addActionListener(e -> play());\n toolbar.add(playBtn);\n\n stopBtn = new JButton();\n ImageIcon stopIcn = new ImageIcon(\"Icons/Stop.png\");\n setButtonIcon(stopBtn, stopIcn);\n stopBtn.setToolTipText(\"Stop\");\n stopBtn.addActionListener(e -> stop());\n toolbar.add(stopBtn);\n\n pauseBtn = new JButton();\n ImageIcon pauseIcn = new ImageIcon(\"Icons/Pause.png\");\n setButtonIcon(pauseBtn, pauseIcn);\n pauseBtn.setToolTipText(\"Pause\");\n pauseBtn.addActionListener(e -> pause());\n toolbar.add(pauseBtn);\n\n resumeBtn = new JButton();\n ImageIcon resumeIcn = new ImageIcon(\"Icons/Play.png\");\n setButtonIcon(resumeBtn, resumeIcn);\n resumeBtn.setToolTipText(\"Resume\");\n resumeBtn.addActionListener(e -> resume());\n toolbar.add(resumeBtn);\n\n resetBtn = new JButton();\n ImageIcon resetIcn = new ImageIcon(\"Icons/Reset.png\");\n setButtonIcon(resetBtn, resetIcn);\n resetBtn.setToolTipText(\"Reset\");\n resetBtn.addActionListener(e -> reset(audioFiles));\n toolbar.add(resetBtn);\n\n swapBtn = new JButton();\n ImageIcon swapIcn = new ImageIcon(\"Icons/Swap.png\");\n setButtonIcon(swapBtn, swapIcn);\n swapBtn.setToolTipText(\"Swap\");\n swapBtn.addActionListener(e -> swap(audioFiles));\n toolbar.add(swapBtn);\n\n saveChangesBtn = new JButton();\n ImageIcon saveChangesIcn = new ImageIcon(\"Icons/Save.png\");\n setButtonIcon(saveChangesBtn, saveChangesIcn);\n saveChangesBtn.setToolTipText(\"Save Changes\");\n saveChangesBtn.addActionListener(e -> saveChanges());\n toolbar.add(saveChangesBtn);\n //toolbar.setBackground(Color.BLACK);\n }\n\n contentPane.add(toolbar, BorderLayout.NORTH);\n //contentPane.setBackground(Color.black);\n\n // building is done - arrange the components\n pack();\n\n // place this frame at the center of the screen and show\n Dimension d = Toolkit.getDefaultToolkit().getScreenSize();\n setLocation(d.width/2 - getWidth()/2, d.height/2 - getHeight()/2);\n setVisible(true);\n }", "private JPanel setupList() {\n\t\tString Cities[] = { \"New York\", \"Chicago\", \"Houston\",\n\t\t\"Denver\", \"Los Angeles\", \"Seattle\",\n\t\t\"London\", \"Paris\", \"New Delhi\",\n\t\t\"Hong Kong\", \"Tokyo\", \"Sydney\" };\n\t\t\n\t\tJList<String> aList = new JList<String>(Cities);\n\t\taList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\taList.addListSelectionListener(event -> {\n\t\t\t// Get the index of the changed item.\n\t\t\tint idx = aList.getSelectedIndex();\n\t\t\t// Display selection, if item was selected.\n\t\t\tif(idx != -1)\n\t\t\t\ttfStatus.setText(\"List selection: \" + Cities[idx]);\n\t\t\telse // Otherwise, reprompt.\n\t\t\t\ttfStatus.setText(\"Choose a City\");\n\t\t\t});\n\n\t\tJScrollPane aScrollPane = new JScrollPane(aList);\n\t\taScrollPane.setPreferredSize(new Dimension(120, 180));\n\n\t\t// create a tree\n\t\t// Create rootHome node of tree.\n\t\tDefaultMutableTreeNode root = new DefaultMutableTreeNode(\"Cities\");\n\t\t// Create subtree of cities by continent\n\t\tDefaultMutableTreeNode northAmerica = new DefaultMutableTreeNode(\"North America\");\n\t\troot.add(northAmerica);\n\t\tDefaultMutableTreeNode a1 = new DefaultMutableTreeNode(\"New York\");\n\t\tnorthAmerica.add(a1);\n\t\tDefaultMutableTreeNode a2 = new DefaultMutableTreeNode(\"Chicago\");\n\t\tnorthAmerica.add(a2);\n\t\tDefaultMutableTreeNode a3 = new DefaultMutableTreeNode(\"Houston\");\n\t\tnorthAmerica.add(a3);\n\t\tDefaultMutableTreeNode a4 = new DefaultMutableTreeNode(\"Denver\");\n\t\tnorthAmerica.add(a4);\n\t\tDefaultMutableTreeNode a5 = new DefaultMutableTreeNode(\"Los Angeles\");\n\t\tnorthAmerica.add(a5);\n\t\tDefaultMutableTreeNode a6 = new DefaultMutableTreeNode(\"Seattle\");\n\t\tnorthAmerica.add(a6);\n\t\tDefaultMutableTreeNode europe = new DefaultMutableTreeNode(\"Europe\");\n\t\troot.add(europe);\n\t\tDefaultMutableTreeNode e1 = new DefaultMutableTreeNode(\"London\");\n\t\teurope.add(e1);\n\t\tDefaultMutableTreeNode e2 = new DefaultMutableTreeNode(\"Paris\");\n\t\teurope.add(e2);\n\t\tDefaultMutableTreeNode asia = new DefaultMutableTreeNode(\"Asia\");\n\t\troot.add(asia);\n\t\tDefaultMutableTreeNode as1 = new DefaultMutableTreeNode(\"New Delhi\");\n\t\tasia.add(as1);\n\t\tDefaultMutableTreeNode as2 = new DefaultMutableTreeNode(\"Hong Kong\");\n\t\tasia.add(as2);\n\t\tDefaultMutableTreeNode as3 = new DefaultMutableTreeNode(\"Tokyo\");\n\t\tasia.add(as3);\n\t\tDefaultMutableTreeNode australia = new DefaultMutableTreeNode(\"Australia\");\n\t\troot.add(australia);\n\t\tDefaultMutableTreeNode au1 = new DefaultMutableTreeNode(\"Sydney\");\n\t\taustralia.add(au1);\n\t\t// create tree\n\t\tJTree citiesTree = new JTree(root);\n\t\tcitiesTree.addTreeSelectionListener(event -> {\n\t\t\ttfStatus.setText(\"Tree selection: \" + event.getPath());\n\t\t\taList.setSelectedValue(event.getPath().getLastPathComponent().toString(), true);\n\t\t});\n\t\tJScrollPane treeScroll = new JScrollPane(citiesTree);\n\n\t\tJPanel aPanel = new JPanel();\n\t\taPanel.setLayout(new BorderLayout());\t\n\t\taPanel.setBorder(BorderFactory.createTitledBorder(\"Cities\"));\n\t\taPanel.add(treeScroll, BorderLayout.WEST);\n\t\taPanel.add(aScrollPane, BorderLayout.CENTER);\n\t\treturn aPanel;\n\t}", "private void InitializeUI(){\n\t\t//Set up the menu items, which are differentiated by their IDs\n\t\tArrayList<MenuItem> values = new ArrayList<MenuItem>();\n\t\tMenuItem value = new MenuItem();\n\t\tvalue.setiD(0); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(1); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(2); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(3); values.add(value);\n\t\t\n\t\tvalue = new MenuItem();\n\t\tvalue.setiD(4); values.add(value);\n\n MenuAdapter adapter = new MenuAdapter(this, R.layout.expandable_list_item3, values);\n \n // Assign adapter to List\n setListAdapter(adapter);\n \n //Set copyright information\n Calendar c = Calendar.getInstance();\n\t\tString year = String.valueOf(c.get(Calendar.YEAR));\n\t\t\n\t\t//Set up the copyright message which links to the author's linkedin page\n TextView lblCopyright = (TextView)findViewById(R.id.lblCopyright);\n lblCopyright.setText(getString(R.string.copyright) + year + \" \");\n \n TextView lblName = (TextView)findViewById(R.id.lblName);\n lblName.setText(Html.fromHtml(\"<a href=\\\"http://uk.linkedin.com/in/lekanbaruwa/\\\">\" + getString(R.string.name) + \"</a>\"));\n lblName.setMovementMethod(LinkMovementMethod.getInstance());\n\t}", "public void createCompareWindowTabItem() {\r\n\t\tif (this.compareTabItem == null || this.compareTabItem.isDisposed()) {\r\n\t\t\tfor (int i = 0; i < this.displayTab.getItemCount(); ++i) {\r\n\t\t\t\tCTabItem tabItem = this.displayTab.getItems()[i];\r\n\t\t\t\tif (tabItem instanceof FileCommentWindow) {\r\n\t\t\t\t\tthis.compareTabItem = new GraphicsWindow(this.displayTab, SWT.NONE, GraphicsType.COMPARE, Messages.getString(MessageIds.GDE_MSGT0144), i);\r\n\t\t\t\t\tthis.compareTabItem.create();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void postInit(){\n\t\tsuper.postInit();\n\t\tthis.buttonList.add(this.readDescription = new GuiButton(6, this.width - 110, 2, 100, 20, \"World Description\"));\n\t\tthis.readDescription.enabled = false;\n\t}", "@Override\n public void windowOpened(WindowEvent e) {\n \n }", "public PostfixMain() {\r\n\t\t//sets the title \r\n\t\tsetTitle(\"PostFix Expressions\");\r\n\t\t//set the window size\r\n\t\tsetSize(WINDOW_WIDTH, WINDOW_HEIGHT);\r\n\t\t//sets the default close operation as an exit on close\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t//builds the panel\r\n\t\tbuildPanel();\r\n\t\t//adds the panel to the window\r\n\t\tadd(panel);\r\n\t\t//sets the GUI to appear in the middle of the screen\r\n\t\tsetLocationRelativeTo(null);\r\n\t\t//sets visible to true\r\n\t\tsetVisible(true);\r\n\t}", "private void setUpList(JPanel panel){\n panel.setLayout(new BorderLayout());\n JPanel holder = new JPanel();\n holder.setLayout(new BoxLayout(holder,BoxLayout.Y_AXIS));\n for(Object t: agenda.getConnector().getTasks(currentList)) {\n Tasks task = (Tasks)t;\n add = false;\n this.addTask(holder,task);\n add = true;\n }\n JScrollPane scrollPane = new JScrollPane(holder,ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n JButton showCompleted = new JButton(\"Show completed\");\n showCompleted.addActionListener(e -> {\n JPanel completedPanels = new JPanel();\n this.setUpSize(completedPanels,400,400,AgendaConstants.ALL);\n completedPanels.setLayout(new BoxLayout(completedPanels,BoxLayout.Y_AXIS));\n for(Object o: agenda.getConnector().getCTasks(currentList)){\n CompletedTodo t = (CompletedTodo) o;\n Task task = new Task(t);\n this.setUpSize(task,390,50,AgendaConstants.MAXIMUM);\n completedPanels.add(task);\n }\n JOptionPane.showMessageDialog(null,completedPanels);\n });\n panel.add(showCompleted,BorderLayout.NORTH);\n panel.add(scrollPane,BorderLayout.CENTER);\n this.updateComponent(panel);\n }", "protected JPopupMenu createPopupMenu()\r\n {\r\n\r\n // Setup menu Items String values that are shared\r\n setSharedMenuItemStrings();\r\n // Add\tall the Horizontal elements\r\n JPopupMenu result = null;\r\n\r\n JMenu insertRows =\r\n HGMenuItem.makeMenu(\r\n getString(\"WatchListTableModule.edit_menu.view_insert_row_text\"),\r\n 'I',\r\n new Object[] { insertBeforeCmd, insertAfterCmd },\r\n actionTrigger);\r\n\r\n result =\r\n HGMenuItem.makePopupMenu(\r\n new Object[] {\r\n viewOptionChainCmd,\r\n null,\r\n viewHistoricChartCmd,\r\n null,\r\n insertRows,\r\n deleteRowCmd,\r\n null,\r\n addNewWatchListCmd,\r\n deleteWatchListCmd,\r\n renameListCmd,\r\n null,\r\n printListCmd },\r\n actionTrigger);\r\n\r\n // Set the Alignment and return the MenuBar\r\n result.setAlignmentX(JMenuBar.LEFT_ALIGNMENT);\r\n return result;\r\n }", "public void createPopupWindow() {\r\n \t//\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 }", "protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\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\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}", "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 addListListeners() {\n\n MouseListener ml = new MouseAdapter() {\n @Override\n public void mouseReleased(MouseEvent e) {\n int index = checkInTimeList.locationToIndex(e.getPoint());\n if(e.getButton() == MouseEvent.BUTTON3 && e.getClickCount() == 1){\n if(checkInTimeList.isSelectedIndex(index) && checkInTimeList instanceof HostCheckInList )\n ((HostCheckInList)checkInTimeList).doPopupMenuLogic(e); \n }\n\n } // end MouseReleased\n }; // end MouseAdapter class\n checkInTimeList.addMouseListener(ml);\n \n \n KeyListener keyListener = new KeyAdapter() {\n @Override\n public void keyReleased(KeyEvent e) {\n if(e.getKeyChar() == KeyEvent.VK_DELETE || Character.toUpperCase((char)e.getKeyChar()) == 'D')\n removeCheckInDates();\n \n }\n }; // end MouseAdapter class\n checkInTimeList.addKeyListener(keyListener);\n\n }", "public AddList() {\n setTitleText(\"Add new List\");\n addButton = new JButton(\"Add\");\n addButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n addButtonActionPerformed(actionEvent);\n }\n });\n addButton(addButton);\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 }" ]
[ "0.5988327", "0.5559937", "0.543908", "0.5425774", "0.5420445", "0.54054135", "0.53559303", "0.5293337", "0.52800643", "0.5188987", "0.5187527", "0.51822066", "0.5166142", "0.5158807", "0.51209027", "0.5116124", "0.51155937", "0.5040405", "0.5008404", "0.5005362", "0.49980527", "0.49950054", "0.49807248", "0.49758452", "0.49651924", "0.49650154", "0.49575323", "0.49554202", "0.49532783", "0.49340215", "0.49322066", "0.4926145", "0.4923069", "0.49152967", "0.48845476", "0.48821202", "0.48703128", "0.48625886", "0.4859094", "0.485202", "0.4847018", "0.48461676", "0.48416716", "0.4839532", "0.48188245", "0.4817501", "0.48149237", "0.4813369", "0.48116395", "0.48107946", "0.48023447", "0.47993973", "0.47941667", "0.47922367", "0.4785827", "0.47846833", "0.4783936", "0.47831824", "0.47693342", "0.47646523", "0.47563335", "0.47557172", "0.4755457", "0.47536448", "0.475129", "0.4750795", "0.4750795", "0.4750795", "0.4750795", "0.4750048", "0.4744439", "0.47436574", "0.47351497", "0.47321135", "0.4729192", "0.47275624", "0.4724167", "0.4723574", "0.47220513", "0.4721674", "0.47208187", "0.4715083", "0.47142735", "0.47091004", "0.47010434", "0.4698683", "0.46964815", "0.46932983", "0.46921653", "0.46908173", "0.469035", "0.46903327", "0.4689127", "0.46889177", "0.46885374", "0.46824795", "0.46795422", "0.46784604", "0.4677351", "0.46748918" ]
0.5248545
9
Updates the docPostingList array to the document
private void updateDocPostingList(int docId){ int i = getIndexForDocument(docId); if(i==-1){ // document does not exist in posting list. Error out. System.err.println("Document not in List"); updateDocPostingList(this.postingList.get(0)); } int size = this.postingList.get(i+1); this.docPostingList = new int[size]; int k = 0; for(int j = i+2; j<size+i+2;j++) this.docPostingList[k++] = this.postingList.get(j); this.pos = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void updateToNextDoc() {\n if(idx < postingList.size())\n idx += postingList.get(idx+1)+2;\n }", "private void updateDocumentList(Response response) {\n\t\t\tfor (String doc : response.getEditorList()) {\n\t\t\t\tif (!RevisionList.this.listmodel.contains(doc))\n\t\t\t\t\tRevisionList.this.listmodel.addElement(doc);\n\t\t\t}\n\t\t}", "public void setDocs(Doc[] newDocs) \n {\n\tdocs = newDocs;\n }", "public void writePosting(FileChannel fc, PostingList p) throws IOException{\n\t\tint termId = p.getTermId();\n\t\tList<Integer> docIds = p.getList();\n\t\tint size = docIds.size();\n int locme;\n byte [] vbTerm = vBNumber(termId);\n\t\tbyte [] vbSize = vBNumber(size);\n\t\tbyte [] vbList = gapEncode(docIds);\n\t\tif (vbList != null) {\n locme = vbTerm.length + vbSize.length + vbList.length;\n } else {\n\t\t locme = vbTerm.length + vbSize.length;\n }\n\n\t\tByteBuffer buffer = ByteBuffer.allocate(locme * Byte.SIZE);\n\t\tbuffer.put(vbTerm);\n\t\tbuffer.put(vbSize);\n\t\tif (vbList != null) {\n buffer.put(vbList);\n }\n\n\t\t/* Flip the buffer so that the position is set to zero.\n\t\t * This is the counterpart of buffer.rewind()\n\t\t */\n\t\tbuffer.flip();\n\t\t/*\n\t\t * fc.write writes a sequence of bytes into fc from buffer.\n\t\t * File position is updated with the number of bytes actually\n\t\t * written\n\t\t */\n\n try {\n fc.write(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n throw e;\n }\n\n }", "private void buildPostingList(){\n boolean isEndOfList = false;\n// boolean moveToNextDoc = false;\n ArrayList<Integer> tempList = new ArrayList<>(); // tempList to hold doc wise posting List\n\n while(!isEndOfList){\n boolean skipDoc = false;\n int doc = children.get(0).nextCandidate();\n if(doc == -1) {\n // End of list. No more windows to collect. Exit.\n isEndOfList = true; break;\n }\n int distance = super.getDiskReader().getRetrievedDocToLengthMap().get(doc);\n // Check if doc exists in all other children.\n // If it exists, skip to that Document.\n for(QueryNode child : children){\n /* skipToDoc skips the pointer in child node to the current doc.\n */\n if(!child.skipToDoc(doc)) {\n skipDoc = true;\n break;\n }\n\n }\n if(!skipDoc) {\n /* From here, all nodes have the document. Proceed to calculating number of windows in doc */\n\n tempList.clear();\n tempList.add(doc); //\n tempList.add(0); // doc term frequency. We will update this later.\n int fkid = 0; // doc term frequency tracker\n// int i = startTermIndex+1;\n int minPosIndex = 0; // holds the index of the node which has current minimum Pos\n int minPos = children.get(minPosIndex).nextPos(); // initialize min Pos.\n boolean isEndOfDoc = false;\n while(!isEndOfDoc) {\n if(minPos == -1) break; // End of document. Move to next doc\n for (int i = 0; i < children.size(); i++) {\n int pos = children.get(i).nextPos();\n if(pos == -1){\n isEndOfDoc = true;\n break;\n }\n if (pos < minPos) {\n minPos = pos;\n minPosIndex = i;\n }\n }\n if(isEndOfDoc) break;\n /* Check for window size against min pos */\n for (int i = 0; i < children.size(); i++) {\n int pos = children.get(i).nextPos();\n\n if (pos - minPos < distance) {\n // Valid candidate so far.\n // check if last term.\n if (i == children.size() - 1) {\n tempList.add(children.get(minPosIndex).nextPos());\n fkid++;\n // update all the child node pointers to next position. No double dipping\n for(QueryNode child : children)\n child.updatePos();\n\n\n }\n\n } else {\n // Candidate failed.\n // update minimum position to next pos and repeat process\n children.get(minPosIndex).updatePos();\n minPos = children.get(minPosIndex).nextPos();\n break;\n\n }\n }\n\n }\n\n\n /* The document has been consumed. If the temp List size is > 2, we have collected windows.\n Add them to the posting list.\n */\n if (tempList.size() > 2) {\n tempList.set(1, fkid);\n cqi += fkid;\n postingList.addAll(new ArrayList<>(tempList));\n }\n }\n// if(moveToNextDoc) continue;\n children.get(0).updateToNextDoc();\n }\n }", "public static void updateObjPodss(int environmentId, String objName, ArrayList<Integer> podContList){\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tString updateApiStsQry = null;\n\t\tupdateApiStsQry = HQLConstants.UPDATE_K8S_OBJECT_PODS;\n\t\t\n\t\tQuery query = session.createQuery(updateApiStsQry);\n\t\tquery.setInteger(\"pods\", podContList.get(0));\n\t\tquery.setInteger(\"containers\", podContList.get(1));\n\t\tquery.setString(\"objName\", objName);\n\t\tquery.setLong(\"environmentId\", environmentId);\n\t\tquery.setDate(\"stsDate\", todayDate);\n\t\tquery.executeUpdate();\n\t\ttxn.commit();\n\t}", "public void updateList(List<T> ListObject) throws DaoException;", "@Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n // Get My CPlatform post->pendingRequestCount\n //-----------------------------------------------------------------------//\n pendingRequestcount[0] = (Long)documentSnapshot.get(\"pendingRequestCount\");\n Log.d(\"Test\", Long.toString(pendingRequestcount[0]));\n pendingRequestcount[0]-=1;\n Log.d(\"Test\", Long.toString(pendingRequestcount[0]));\n HashMap<String, Object> result_requestCount = new HashMap<>();\n result_requestCount.put(\"pendingRequestCount\", pendingRequestcount[0]);\n\n dataReference_CPlatform.document(post.getCplatformPost_ID()).update(result_requestCount)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n //--------------------------------------------------------------------------------//\n // Notify database\n //--------------------------------------------------------------------------------//\n //-- Get current Timestamp\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"Asia/Singapore\"));\n final String timestampPost = simpleDateFormat.format(new Date());\n\n // Send to rejected user, you have been rejected\n String notify_id1 = dataReference_Notification.document().getId();\n Notification_Model notification1 = new Notification_Model(timestampPost, post.getRequester_UID(), \"You have been rejected to collaborate with \" + myStoreName[0] + \".\", notify_id1);\n dataReference_Notification.document(notify_id1).set(notification1);\n\n // Send to myself, i reject someone\n String notify_id2 = dataReference_Notification.document().getId();\n Notification_Model notification2 = new Notification_Model(timestampPost, fUser.getUid(), \"You have rejected a collaboration with \" + requesterStoreName[0] + \".\", notify_id2);\n dataReference_Notification.document(notify_id2).set(notification2);\n\n //--------------------------------------------------------------------------------//\n // Update UI\n //--------------------------------------------------------------------------------//\n requestList.remove(post);\n pd.dismiss();\n notifyDataSetChanged();\n }\n });\n }", "@Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n // Get My CPlatform post->pendingRequestCount\n //-----------------------------------------------------------------------//\n pendingRequestcount[0] = (Long)documentSnapshot.get(\"pendingRequestCount\");\n pendingRequestcount[0]-=1;\n HashMap<String, Object> result_requestCount = new HashMap<>();\n result_requestCount.put(\"pendingRequestCount\", pendingRequestcount[0]);\n\n dataReference_CPlatform.document(post.getCplatformPost_ID()).update(result_requestCount)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n //--------------------------------------------------------------------------------//\n // Notify database\n //--------------------------------------------------------------------------------//\n //-- Get current Timestamp\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"Asia/Singapore\"));\n final String timestampPost = simpleDateFormat.format(new Date());\n\n // Send to accepted user, you have been accpted\n String notify_id1 = dataReference_Notification.document().getId();\n Notification_Model notification1 = new Notification_Model(timestampPost, post.getRequester_UID(), \"You have been accepted to collaborate with \" + myStoreName[0] + \".\", notify_id1);\n dataReference_Notification.document(notify_id1).set(notification1);\n\n // Send to myself, i accpted someone\n String notify_id2 = dataReference_Notification.document().getId();\n Notification_Model notification2 = new Notification_Model(timestampPost, fUser.getUid(), \"You have accepted a collaboration with \" + requesterStoreName[0] + \".\", notify_id2);\n dataReference_Notification.document(notify_id2).set(notification2);\n\n\n\n\n // Send to DB, friendList\n //(String friendPost_uid, String requester_uid, String owner_uid, String cpost_uid)\n String id = dataReference_FriendList.document().getId();\n FriendList_Model friendModel = new FriendList_Model(id, post.getRequester_UID(), postData.getPosterUid(), postData.getCPost_uid());\n dataReference_FriendList.document(id).set(friendModel);\n\n //--------------------------------------------------------------------------------//\n // Update UI\n //--------------------------------------------------------------------------------//\n //requestList.remove(post);\n pd.dismiss();\n //notifyDataSetChanged();\n }\n });\n }", "public void setPosts(List<Post> posts){\n this.posts = posts;\n }", "@Override\n public int nextPos(){\n if(pos<docPostingList.length) {\n\n return docPostingList[pos];\n\n }\n return -1;\n\n }", "@Override\n\tpublic boolean update(Document obj) {\n\t\treturn false;\n\t}", "@Override\n public void modifyPost(List<Post> posts, int type) {\n\n\t}", "public void setSearchOperation(List<Post> newList)\n {\n notifyDataSetChanged();\n }", "@Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n // Get My Store Name\n //-----------------------------------------------------------------------//\n myStoreName[0] = (String) documentSnapshot.get(\"storeName\");\n\n final Long[] pendingRequestcount = new Long[1];\n dataReference_CPlatform.document(post.getCplatformPost_ID()).get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n\n //-----------------------------------------------------------------------//\n // Get My CPlatform post->pendingRequestCount\n //-----------------------------------------------------------------------//\n pendingRequestcount[0] = (Long)documentSnapshot.get(\"pendingRequestCount\");\n pendingRequestcount[0]-=1;\n HashMap<String, Object> result_requestCount = new HashMap<>();\n result_requestCount.put(\"pendingRequestCount\", pendingRequestcount[0]);\n\n dataReference_CPlatform.document(post.getCplatformPost_ID()).update(result_requestCount)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n //--------------------------------------------------------------------------------//\n // Notify database\n //--------------------------------------------------------------------------------//\n //-- Get current Timestamp\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"Asia/Singapore\"));\n final String timestampPost = simpleDateFormat.format(new Date());\n\n // Send to accepted user, you have been accpted\n String notify_id1 = dataReference_Notification.document().getId();\n Notification_Model notification1 = new Notification_Model(timestampPost, post.getRequester_UID(), \"You have been accepted to collaborate with \" + myStoreName[0] + \".\", notify_id1);\n dataReference_Notification.document(notify_id1).set(notification1);\n\n // Send to myself, i accpted someone\n String notify_id2 = dataReference_Notification.document().getId();\n Notification_Model notification2 = new Notification_Model(timestampPost, fUser.getUid(), \"You have accepted a collaboration with \" + requesterStoreName[0] + \".\", notify_id2);\n dataReference_Notification.document(notify_id2).set(notification2);\n\n\n\n\n // Send to DB, friendList\n //(String friendPost_uid, String requester_uid, String owner_uid, String cpost_uid)\n String id = dataReference_FriendList.document().getId();\n FriendList_Model friendModel = new FriendList_Model(id, post.getRequester_UID(), postData.getPosterUid(), postData.getCPost_uid());\n dataReference_FriendList.document(id).set(friendModel);\n\n //--------------------------------------------------------------------------------//\n // Update UI\n //--------------------------------------------------------------------------------//\n //requestList.remove(post);\n pd.dismiss();\n //notifyDataSetChanged();\n }\n });\n }\n });\n }", "private void update(SfJdDocAudit inData, RequestMeta requestMeta) {\n jdDocAuditMapper.updateByPrimaryKey(inData);\r\n \r\n jdDocAuditDetailMapper.deleteByPrimaryKey(inData.getJdDocAuditId());\r\n if(inData.getDetailLst()!=null){\r\n for(int i=0;i<inData.getDetailLst().size();i++){\r\n SfJdDocAuditDetail m=(SfJdDocAuditDetail) inData.getDetailLst().get(i);\r\n m.setJdDocAuditId(inData.getJdDocAuditId());\r\n jdDocAuditDetailMapper.insert(m);\r\n }\r\n }\r\n materialsTransferDetailMapper.deleteByPrimaryKey(inData.getJdDocAuditId());\r\n if(inData.getMaterialLst()!=null){\r\n for(int i=0;i<inData.getMaterialLst().size();i++){\r\n SfMaterialsTransferDetail md=(SfMaterialsTransferDetail) inData.getMaterialLst().get(i);\r\n md.setTransferId(inData.getJdDocAuditId());\r\n materialsTransferDetailMapper.insert(md);\r\n }\r\n }\r\n }", "int updateByPrimaryKey(WpPosts record);", "public void applyDiff(LinkedList<Diff> diffList, Path doc){\n\t\t// If we can't fetch the first element then the document is empty, nothing to do.\n\t\t// If there is only one element and that element is equal then no modifications have\n\t\t// been made.\n\t\tif((diffList.get(0).operation == Operation.EQUAL && diffList.get(1) == null) || (diffList.get(0) == null)){\n\t\t\tSystem.out.println(\"AHHH\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tLinkedList<Patch> patchList = dmp.patch_make(diffList);\n\t\tObject o[] = null;\n\t\ttry {\n\t\t\to = dmp.patch_apply(patchList, openReadFile(doc));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Print to the console\n\t\t\t// \"Could not apply the patch to the file: '\" + doc + \".\" \n\t\t\te.printStackTrace();\n\t\t}\n\t\tString s = (String)o[0];\n\t\ttry {\n\t\t\topenWriteFile(doc, s);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Print to the console\n\t\t\t// \"Could not open the file: '\" + doc + \". File is busy.\" \n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void updateDocument(Document arg0) throws ContestManagementException {\r\n }", "void update ( priorizedListObject v ) throws DAOException;", "@Test\n public void testSetAndGetDocuments() {\n DocumentsResponse testResponse = new DocumentsResponse();\n testResponse.setDocuments(testDocList);\n checkDocumentsList(testResponse);\n }", "public void insert( String token, int docID, int offset ) {\r\n PostingsList posting = this.getPostings(token);\r\n if(posting != null){\r\n posting.insertElement(docID, (double)0, offset);\r\n index.put(token, posting);\r\n }\r\n else{\r\n PostingsList newPosting = new PostingsList();\r\n newPosting.insertElement(docID, (double)0, offset);\r\n index.put(token, newPosting);\r\n }\r\n }", "@Override\n\tpublic Boolean updateDocument(Document document) {\n\t\treturn null;\n\t}", "public PostingList(int df, int N)\n {\n documentFrequency = df;\n totalNoOfDocuments = N;\n }", "public void updateAfterAddition(List<Integer> pageList) {\n int pageNum = Collections.min(pageList);\n mDocPagesModified = true;\n int pageCount;\n boolean shouldUnlockRead = false;\n try {\n mPdfViewCtrl.docLockRead();\n shouldUnlockRead = true;\n final PDFDoc doc = mPdfViewCtrl.getDoc();\n if (doc == null) {\n return;\n }\n pageCount = doc.getPageCount();\n } catch (Exception ex) {\n AnalyticsHandlerAdapter.getInstance().sendException(ex);\n return;\n } finally {\n if (shouldUnlockRead) {\n mPdfViewCtrl.docUnlockRead();\n }\n }\n\n try {\n mDataList.clear();\n for (int p = 1; p <= pageCount; p++) {\n Map<String, Object> itemMap = new HashMap<>();\n itemMap.put(ThumbnailsViewAdapter.PAGE_NUMBER_SRC, p);\n itemMap.put(ThumbnailsViewAdapter.THUMB_IMAGE, null);\n add(itemMap);\n }\n } catch (Exception ignored) {\n }\n\n Utils.safeNotifyDataSetChanged(this);\n safeScrollToPosition(pageNum - 1);\n }", "public void updateSpellList(SpellList sList){\n\t\tspellList=sList;\n\t\trequestInputFocus();\n\t}", "public void updateGroupAssignedDocs(long parentGroupId, String allowedDocs ) throws PersistenceException {\n\t\tPreparedStatement preparedUPDATEStatement;\n\t\t\n\t\t// get the connection\n\t\tConnection conn = openConnection();\n\t\t\n\t\n\t\t// create the query for user\n\t\t// create the query\n\t\tString updateQuery = \" UPDATE group_allowed_doctype_rel \"\n\t\t\t\t+ \"set doc_type_ids = ? \"\n\t\t\t\t+ \"WHERE parent_group_type_id = ?\";\n\t\t\n\t\t//\n\t\t// create the user data\n\t\ttry {\n\t\t\t\n\t\t\t// get the data\n\t\t\t// create the statement\n\t\t\tpreparedUPDATEStatement = conn\n\t .prepareStatement(updateQuery);\n\t\t\t// execute the statement\n\n\t\t\tpreparedUPDATEStatement.setString(1, allowedDocs);\n\t\t\tpreparedUPDATEStatement.setLong(2, parentGroupId);\n\t\t\tpreparedUPDATEStatement.executeUpdate();\n\t\t\t\n\t\t\t\n\t\t\t//execute\n\t\t\tpreparedUPDATEStatement.executeUpdate();\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\n\t\t// release the connection\n\t\tcloseConnection(conn);\n\t}", "boolean add(String token, ArrayList<Posting> documentList) { \r\n\t\tif (token == null)\r\n\t\t\treturn false;\r\n\t\tif (map.containsKey(token)) {\r\n\t\t\tmap.put(token, mergeTwoPostingList(map.get(token), documentList));\r\n\t\t\treturn true;\r\n\t\t} else { \r\n\t\t\tmap.put(token, documentList);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void docToLists() {\n\t\tnodesToList(document, null, nodes);\n\t}", "public void addToCommentsList(Object newValue);", "public void addToCommentsList(Object newValue);", "void updateList(ShoppingList _ShoppingList);", "@Override\r\n\tpublic int[] updateInBatch(List<BoothText> boothTextList) {\n\t\tStringBuffer sbf = new StringBuffer();\r\n\t\tsbf.append(\"UPDATE \").append(TABLE).append(\" SET \");\r\n\t\tsbf.append(\"text_title=:textTitle,\");\r\n\t\tsbf.append(\"text_content=:textContent\");\r\n\t\tsbf.append(\" WHERE 1=1\");\r\n\t\tsbf.append(\" AND booth_id=:boothId \");\r\n\t\tsbf.append(\" AND sort_no=:sortNo \");\r\n\t\t\r\n\t\tString sql = sbf.toString();\r\n\t\tlogger.info(sql);\r\n\t\t\r\n\t\tSqlParameterSource[] batch = SqlParameterSourceUtils.createBatch(boothTextList.toArray());\r\n\t\tint[] updateCounts = jdbc.batchUpdate(sql, batch);\r\n\t\treturn updateCounts;\r\n\t}", "public ModifyCitedPublicationList( ArrayList <CitedPublication> StartedList ){\n \n modifiedList = new ArrayList<Integer>(); \n IndexDeletedItem = new ArrayList<Integer>();\n deletedItem = new ArrayList <CitedPublication>();\n \n KeepItem = StartedList;\n \n }", "public void updateDataSet(ArrayList<BiddingResources> biddingPeringkatList)\n {\n this.biddingPeringkatList = biddingPeringkatList;\n notifyDataSetChanged();\n }", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n List<Document> planDocumentsList= new ArrayList<>();\n\n WorkSite currentWorksite=WorkSitesManager.getWorkSiteById(workSiteID);\n\n if(currentWorksite!=null)\n planDocumentsList= currentWorksite.getPlanDocuments();\n\n planDocumentsList.clear();\n\n Iterable<DataSnapshot> dataList = dataSnapshot.getChildren();\n Iterator<DataSnapshot> it = dataList.iterator();\n Log.i(TAG,\" iterator \"+it.hasNext());\n while (it.hasNext()) {\n DataSnapshot snap = it.next();\n String keyStr = snap.getKey();\n String str = snap.getValue(String.class);\n Log.i(TAG, \"key value \"+keyStr + \" \" + str);\n\n FileStatus status;\n\n if (str.equals(\" \") || str.equals(\"\")) {\n status = FileStatus.NOT_UPLOADED;\n } else {\n status = FileStatus.UPLOADED;\n }\n\n Document doc = new Document(keyStr, str, status, \"-\");\n Log.i(TAG,\"before doc addition\");\n planDocumentsList.add(doc);\n Log.i(TAG,\"after doc addition\");\n }\n\n //activityCalling.setPlanDocumentsList(result);\n activityCalling.refreshPlanDocumentFragment();\n /* planDocsBrowsed=true;\n\n if(otherDocsBrowsed && securityDocsBrowsed && planDocsBrowsed && ppspsDocsBrowsed){\n activityCalling.refreshFragments();\n otherDocsBrowsed=false;\n securityDocsBrowsed=false;\n ppspsDocsBrowsed=false;\n planDocsBrowsed=false;\n }*/\n }", "public void updateMultipleRecord(){\n MongoCollection<Document> table = db.getCollection(\"user\");\n Document document = new Document();\n document.put(\"userName\", \"FreeUser\");\n document.put(\"status\", true);\n\n Document updateDocument=new Document(\"$set\", document);\n\n\n table.updateMany(eq(\"userType\", \"Free\"), updateDocument);\n }", "public DocumentBodyBlock list(DocumentBodyList list) {\n this.list = list;\n return this;\n }", "public ResultMessage update(SaleDocumentPO po) throws RemoteException {\n\t\tString id = po.getDocumentID();\r\n\t\tint index = containsSameID(id);\r\n\t\tsaleDocumentPOs.set(index, po);\r\n\t\toutput();\r\n\t\t//show();\r\n\t\treturn ResultMessage.SUCCESS;\r\n\t}", "public void updateLista(Persona updated, int index) {\r\n\t\t\tlista.update(updated, index);\r\n\t}", "public int delegateUpdateListTx(java.util.List<LdPublisher> entityList) {\r\n assertListNotNullAndEmpty(entityList);\r\n return getMyDao().updateList(entityList);\r\n }", "void addWordsToDoc(int doc,List<VocabWord> words);", "private int getIndexForDocument(int docId){\n\n int i = 0;\n while(i < this.postingList.size() && this.postingList.get(i) != docId){\n i += this.postingList.get(i+1)+2;\n }\n if(i >= this.postingList.size())\n return -1; // document does not exist in posting List. Return -1\n return i;\n }", "@Transactional\n\tpublic void addOrUpdateMedicalDocumentation(List<MedicalDocument> medicalDocumentList) throws Exception {\n\t\tUser userFromRequest = getUserFromRequest();\n\t\tPatient patient = patientRepository.findByUser(userFromRequest);\n\t\tpatient.setMedicalDocumentList(medicalDocumentList);\n\t\tfor (MedicalDocument medicalDocument : medicalDocumentList) {\n\t\t\tmedicalDocument.setPatient(patient);\n\t\t\tif(medicalDocument.getMedicalByteFile() != null) {\n\t\t\t\tMedicalByteFile medicalByteFile = new MedicalByteFile();\n\t\t\t\tmedicalDocument.getMedicalByteFile().setMedicalDocument(medicalDocument);\n\t\t\t\tbyte[] byteFile = Base64.getMimeDecoder().decode(medicalDocument.getMedicalByteFile().getFileBase64().split(\",\")[1]);\n\t\t\t\tmedicalByteFile.setFile(byteFile);\n\t\t\t\tmedicalByteFile.setMedicalDocument(medicalDocument);\n\t\t\t\tmedicalByteFileRepository.save(medicalByteFile);\n\t\t\t}\n \tmedicalDocument.setRegisterDateTime(LocalDateTime.now());\n\t\t}\n\t\tpatientRepository.save(patient);\n\t\tlogger.info(\"Add or update medical documentation for patient: {} {}\", userFromRequest.getFirstName(), userFromRequest.getLastName());\n\t}", "public void updateDataSet(ArrayList<JobSpecBean> dataList) {\n\t\tthis.dataList = dataList;\n\t\tnotifyDataSetChanged();\n\t}", "public void updateProductList(ProductList productList) {\n this.productList = productList;\n }", "@Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n // Get My Store Name\n //-----------------------------------------------------------------------//\n myStoreName[0] = (String) documentSnapshot.get(\"storeName\");\n\n final Long[] pendingRequestcount = new Long[1];\n dataReference_CPlatform.document(post.getCplatformPost_ID()).get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n\n //-----------------------------------------------------------------------//\n // Get My CPlatform post->pendingRequestCount\n //-----------------------------------------------------------------------//\n pendingRequestcount[0] = (Long)documentSnapshot.get(\"pendingRequestCount\");\n Log.d(\"Test\", Long.toString(pendingRequestcount[0]));\n pendingRequestcount[0]-=1;\n Log.d(\"Test\", Long.toString(pendingRequestcount[0]));\n HashMap<String, Object> result_requestCount = new HashMap<>();\n result_requestCount.put(\"pendingRequestCount\", pendingRequestcount[0]);\n\n dataReference_CPlatform.document(post.getCplatformPost_ID()).update(result_requestCount)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n //--------------------------------------------------------------------------------//\n // Notify database\n //--------------------------------------------------------------------------------//\n //-- Get current Timestamp\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\");\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"Asia/Singapore\"));\n final String timestampPost = simpleDateFormat.format(new Date());\n\n // Send to rejected user, you have been rejected\n String notify_id1 = dataReference_Notification.document().getId();\n Notification_Model notification1 = new Notification_Model(timestampPost, post.getRequester_UID(), \"You have been rejected to collaborate with \" + myStoreName[0] + \".\", notify_id1);\n dataReference_Notification.document(notify_id1).set(notification1);\n\n // Send to myself, i reject someone\n String notify_id2 = dataReference_Notification.document().getId();\n Notification_Model notification2 = new Notification_Model(timestampPost, fUser.getUid(), \"You have rejected a collaboration with \" + requesterStoreName[0] + \".\", notify_id2);\n dataReference_Notification.document(notify_id2).set(notification2);\n\n //--------------------------------------------------------------------------------//\n // Update UI\n //--------------------------------------------------------------------------------//\n requestList.remove(post);\n pd.dismiss();\n notifyDataSetChanged();\n }\n });\n }\n });\n }", "public void addDocPages(int position, DocumentFormat documentFormat, Object data) {\n mDocPagesModified = true;\n new AddDocPagesTask(mContext, position, documentFormat, data, null).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "@Override\n\tpublic WriteResult insertNewDocCollection(List<Object> lista) {\n\t\treturn null;\n\t}", "public List<ImagingDocument> getDocumentsToUpdate() throws SQLException {\n\t\tList<ImagingDocument> documentsToUpdate = new ArrayList<ImagingDocument>();\n\t\tConnection connection = DataSourceUtils.getConnection(dataSource);\n\t\tString sql = SQL_UEWI_SELECT_DOCUMENTS_TO_UPDATE;\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\t\tstmt.setMaxRows(batchSize);\n\t\tResultSet rs = stmt.executeQuery();\n\t\t\n\t\twhile (rs.next()) {\n\t\t\tImagingDocument docRow = new ImagingDocument(rs.getString(1), rs.getString(2), rs.getBoolean(3), rs.getString(4), rs.getInt(5));\n\t\t\tString docInDateStr = rs.getString(6);\n\t\t\tString[] dateFormats = {\"yyyyMMddHHmmss\", \"yyyy-MM-dd\"};\n\t\t\t\n\t\t\tif (docInDateStr != null && !\"\".equals(docInDateStr.trim())) {\n\t\t\t\tInDateFormat inDateFormat = null;\n\t\t\t\tboolean formatOK = false;\n\t\t\t\tfor (int i = 0; i < dateFormats.length; i++) {\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(dateFormats[i]);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsdf.parse(docInDateStr);\n\t\t\t\t\t\tformatOK = true;\n\t\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\t\tinDateFormat = InDateFormat.LONG;\n\t\t\t\t\t\t} else if (i == 1) {\n\t\t\t\t\t\t\tinDateFormat = InDateFormat.SHORT;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t//Unable to parse this date with this format (try next format)\n\t\t\t\t\t\tformatOK = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (formatOK) {\n\t\t\t\t\tdocRow.setDocInDateFormat(inDateFormat);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdocRow.setWorkflowDossierNr(rs.getString(7));\n\t\t\tdocRow.setDocClass(rs.getString(8)); //Original document class, not mapped\n\t\t\tdocumentsToUpdate.add(docRow);\n\t\t}\n\t\trs.close();\n\t\tconnection.close();\n\t\tstmt.close();\n\t\t\n\t\treturn documentsToUpdate;\n\t}", "@POST\r\n @Consumes\r\n @Path(\"/updatedoc\")\r\n public String updatedoc(Doc doc) throws JSONException {\r\n JSONObject result = new JSONObject();\r\n\r\n try {\r\n Doc d = dDao.getById(doc.getId());\r\n\r\n if (doc.getFinancetarget() != null) {\r\n d.setFinancetarget(doc.getFinancetarget());\r\n }\r\n\r\n if (doc.getCashbackup() != null) {\r\n d.setCashbackup(doc.getCashbackup());\r\n }\r\n\r\n if (doc.getProtectproduct() != null) {\r\n d.setProtectproduct(doc.getProtectproduct());\r\n }\r\n\r\n if (doc.getInvestgoods() != null) {\r\n d.setInvestgoods(doc.getInvestgoods());\r\n }\r\n\r\n if (doc.getHousing() != null) {\r\n d.setHousing(doc.getHousing());\r\n }\r\n\r\n if (doc.getBalance() != null) {\r\n d.setBalance(doc.getBalance());\r\n }\r\n\r\n if (doc.getCashplanning() != null) {\r\n d.setCashplanning(doc.getCashplanning());\r\n }\r\n\r\n if (doc.getRiskmanage() != null) {\r\n d.setRiskmanage(doc.getRiskmanage());\r\n }\r\n\r\n if (doc.getRiskstate() != null) {\r\n d.setRiskstate(doc.getRiskstate());\r\n\r\n }\r\n\r\n if (doc.getInvestplanning() != null) {\r\n d.setInvestplanning(doc.getInvestplanning());\r\n }\r\n\r\n if (doc.getEducationplanning() != null) {\r\n d.setEducationplanning(doc.getEducationplanning());\r\n }\r\n d.setUpdatetime(new Timestamp(System.currentTimeMillis()));\r\n dDao.save(d);\r\n\r\n result.put(\"msg\", \"修改成功\");\r\n result.put(\"status\", 0);\r\n } catch (Exception e) {\r\n result.put(\"msg\", \"发生错误\");\r\n result.put(\"status\", 1);\r\n }\r\n\r\n return result.toString();\r\n }", "public void addDocPages(int position, DocumentFormat documentFormat, Object data, String password) {\n mDocPagesModified = true;\n new AddDocPagesTask(mContext, position, documentFormat, data, password).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "public void add(PhotonDoc doc);", "Boolean updateList(List<Customer> list);", "private void updatePayment(String docId, final String payment) {\n db.collection(\"orders\")\n .document(docId)\n .update(\"PaymentStatus\",payment)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(\"This done\", \"DocumentSnapshot successfully updated!\");\n //Toast.makeText(getActivity().getApplicationContext(),foodList.get(position).getFoodName()+\":Updated\",Toast.LENGTH_LONG).show();\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(\"This error\", \"Error updating document\", e);\n Toast.makeText(getActivity().getApplicationContext(), \"Server issue\", Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n List<Document> otherDocumentsList= new ArrayList<>();\n\n WorkSite currentWorkSite=WorkSitesManager.getWorkSiteById(workSiteID);\n if(currentWorkSite!=null)\n otherDocumentsList=currentWorkSite.getOtherDocuments();\n\n otherDocumentsList.clear();\n\n Iterable<DataSnapshot> dataList = dataSnapshot.getChildren();\n Iterator<DataSnapshot> it = dataList.iterator();\n Log.i(TAG,\" iterator \"+it.hasNext());\n while (it.hasNext()) {\n DataSnapshot snap = it.next();\n String keyStr = snap.getKey();\n String str = snap.getValue(String.class);\n Log.i(TAG, \"key value \"+keyStr + \" \" + str);\n\n FileStatus status;\n\n if (str.equals(\" \") || str.equals(\"\")) {\n status = FileStatus.NOT_UPLOADED;\n } else {\n status = FileStatus.UPLOADED;\n }\n\n Document doc = new Document(keyStr, str, status, \"-\");\n Log.i(TAG,\"before doc addition\");\n //result.add(doc);\n otherDocumentsList.add(doc);\n Log.i(TAG,\"after doc addition\");\n }\n\n\n //activityCalling.setOtherDocumentsList(result);\n activityCalling.refreshOtherDocumentFragment();\n /*otherDocsBrowsed=true;\n\n if(otherDocsBrowsed && securityDocsBrowsed && planDocsBrowsed && ppspsDocsBrowsed){\n activityCalling.refreshFragments();\n otherDocsBrowsed=false;\n securityDocsBrowsed=false;\n ppspsDocsBrowsed=false;\n planDocsBrowsed=false;\n }*/\n }", "public static void updateDocument(Client client, String index, String type, String id, String field,\r\n String[] newValue) {\n }", "public void updateAfterDeletion(List<Integer> pageList) {\n if (pageList == null || pageList.size() == 0) {\n return;\n }\n\n mDocPagesModified = true;\n mCurrentPage -= pageList.size();\n\n Collections.sort(pageList); // since we will use binary search\n\n // Update page numbers\n ListIterator<Map<String, Object>> it = mDataList.listIterator();\n int deleteCnt = 0;\n Integer pageNum;\n while (it.hasNext()) {\n Map<String, Object> item = it.next();\n pageNum = (Integer) item.get(PAGE_NUMBER_SRC);\n try {\n if (Collections.binarySearch(pageList, pageNum) >= 0) {\n mDataLock.lock();\n item.put(THUMB_IMAGE, null);\n mDataLock.unlock();\n\n it.remove();\n\n // Update cached page list\n removeCachedPage(pageNum);\n\n ++deleteCnt;\n } else {\n item.put(PAGE_NUMBER_SRC, pageNum - deleteCnt);\n }\n } catch (Exception ignored) {\n }\n }\n\n Utils.safeNotifyDataSetChanged(this);\n\n // scroll to the item after the first deleted item\n pageNum = Collections.min(pageList);\n if (pageNum == mDataList.size()) {\n --pageNum;\n }\n safeScrollToPosition(pageNum - 1);\n }", "private void updateStatus(String docId, final String status) {\n db.collection(\"orders\")\n .document(docId)\n .update(\"Status\", status)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(\"This done\", \"DocumentSnapshot successfully updated!\");\n //Toast.makeText(getActivity().getApplicationContext(),foodList.get(position).getFoodName()+\":Updated\",Toast.LENGTH_LONG).show();\n\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(\"This error\", \"Error updating document\", e);\n Toast.makeText(getActivity().getApplicationContext(), \"Server issue\", Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}", "public void toReturn(Document doc){\n documents.remove(doc);\n doc.setCopies(doc.copiesNumber() + 1);\n //TODO check data and fee\n //TODO rewrite list of documents\n }", "@Override\n\tpublic void updateData(List<Schedule> listData) {\n\t\tSession session = getCurrentSession();\n\t\tif (listData != null && !listData.isEmpty()) {\n\t\t\tlistData.forEach((schedule) -> {\n\t\t\t\tsession.saveOrUpdate(schedule);\n\t\t\t});\n\t\t}\n\n\t}", "public void saveAll(){\n // Store postings\n for (Map.Entry<String, PostingsList> entry : this.index.entrySet()) {\n saveJSON(\"postings/t\"+hash(entry.getKey())+\".json\", entry.getValue());\n System.err.println(\"postings/t\"+hash(entry.getKey())+\".json\");\n count++;\n if (count%1000==0)\n System.err.println(\"storing \"+ count);\n }\n // Store mapping ID<->document names mapping\n this.saveJSON(\"postings/docIDs.json\", this.docIDs);\n this.saveJSON(\"postings/docLengths.json\", this.docLengths);\n }", "public void setCommentsList(EList newValue);", "public void setCommentsList(EList newValue);", "public void indexDocument(String documentName, ArrayList<String> documentTokens) {\n for (String token : documentTokens) {\n if (!this.index.containsKey(token)) {\n // Create a key with that token\n this.index.put(token, new HashMap<>());\n }\n\n // Get the HashMap associated with that term\n HashMap<String, Integer> term = this.index.get(token);\n\n // Check if term has a posting for the document\n if (term.containsKey(documentName)) {\n // Increase its occurrence by 1\n int occurrences = term.get(documentName);\n term.put(documentName, ++occurrences);\n } else {\n // Create a new posting for the term\n term.put(documentName, 1);\n }\n }\n }", "public void onSuccessCallback(List<DocumentSnapshot> dataList) {\r\n List<PantAd> adList =PantAdList.getinstance();\r\n adList.clear();\r\n for (DocumentSnapshot document : dataList) {\r\n Log.d(\"firestore manager\", document.getId() + \" => \" + document.getData());\r\n PantAd ad = new PantAd();\r\n ad.setId(document.getId());\r\n ad.setLatitude((double)document.get(\"latitude\"));\r\n ad.setLongitude((double)document.get(\"longitude\"));\r\n ad.setPhoneNr((String) document.get(\"phoneNr\"));\r\n String nrCans = Long.toString((Long) document.get(\"nrOfCans\"));\r\n ad.setNrOfCans(nrCans);\r\n adList.add(ad);\r\n FirebaseCloudStorageManager.getImageById(document.getId(), this);\r\n }\r\n callbackInterface.onSuccessfulReadCallback();\r\n }", "void createOrUpdateReferenceEntity(List<PsdReferenceEntity> psdReferEntities);", "void updateContent(List<Md2Entity> updates);", "public void update(RtnListVO rtnListVO);", "public void updateTasks(List<Task> listOfTasks);", "public void updated(ServerList list);", "public void setCheckForPostings(java.lang.Boolean checkForPostings) {\r\n this.checkForPostings = checkForPostings;\r\n }", "public static void update(String indexFileName, String listOfDoc) throws IOException{\n\t\tHashMap<String, String> sCurrentHashMap = null;\n\t\tboolean hasFile = true;\n\t\t\n\t\tif(globalHash.containsKey(indexFileName)){\n\t\t\t//ถ้ามีใน global แล้ว เอาออกมาแล้วเอามารวมกับที่เพิ่งอ่านไฟล์ได้เลย\n\t\t\tsCurrentHashMap = globalHash.get(indexFileName);\n\t\t\n\t\t}else{ \n\t\t\t//if no hashmap in globalHash, then check if there's this fileName.txt in directory\n\t\t\t\n\t\t\tif(!new File(indexFileName+\".txt\").isFile()){\n\t\t\t\t\tSystem.out.println(\"ERROR: The inverted file is not found.\");\n\t\t\t\t\thasFile = false;\n\t\t\t}else{\n\t \t sCurrentHashMap = genHashMapFromInvertedIndexFile(indexFileName);\n\t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\tif(hasFile){\n\t\t\tArrayList<Term> newTermList = extractDoc(listOfDoc);\n\t\t\t//if the new term list has value (not doc not found)\n\t\t\tif(newTermList.size()>0){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tsCurrentHashMap = addListToHashMap(sCurrentHashMap, newTermList);\n\t\t\t\t\n\t\t\t\t/*เพิ่มเงื่อนไขกรณี ลบคำออกจากไฟล์ \n\t\t\t\t * 1.ทำ list เป็น hashMap อีกอันไว้เซิชไวไว\n\t\t\t\t * loop amount of doc\n\t\t\t\t * 2.ไล่ iterative ของ hashMap ว่ามี value อันไหน contain ชื่อไฟล์บ้าง ถ้าcontain ให้เช็คกลับว่า key นั้น มีในแฮชอีกอันหรือเปล่า\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t/* // Convert new word (from file) list to HashMap\n\t\t\t\tHashMap<String, String> newWordHashMap = new HashMap<String, String>();\n\t\t\t\tfor(Term i: newTermList){\n\t\t\t\t\tnewWordHashMap.put(i.getTerm(), i.getDocNumber()+\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tIterator it = sCurrentHashMap.entrySet().iterator();\n\t\t\t\twhile(it.hasNext()){\n\t\t\t\t\tHashMap.Entry<String, String> entry = (HashMap.Entry<String, String>) it.next();\n\t\t\t\t\t//if its value contains the doc number, then check if its key is in the newTermHash or note\n\t\t\t\t\t// if not --> this term was removed --> remove this key out from sCurrentHashMap\n\t\t\t\t\tif(entry.getValue().contains(s)) {\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\t\n\t\t\t\tglobalHash.put(indexFileName, sCurrentHashMap);\n\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void update(List<GroupMember> list) {\n\t\tif(list == null) return;\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t\tupdate(list.get(i));\r\n\t}", "List patch(List inputObject, List inputSnapshot, Settings settings);", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n List<Document> ppspsDocumentsList= new ArrayList<>();\n WorkSite currentWorksite= WorkSitesManager.getWorkSiteById(workSiteID);\n\n if(currentWorksite!=null)\n ppspsDocumentsList=currentWorksite.getPpspsDocuments();\n\n ppspsDocumentsList.clear();\n\n Iterable<DataSnapshot> dataList = dataSnapshot.getChildren();\n Iterator<DataSnapshot> it = dataList.iterator();\n Log.i(TAG,\" iterator \"+it.hasNext());\n while (it.hasNext()) {\n DataSnapshot snap = it.next();\n String keyStr = snap.getKey();\n String str = snap.getValue(String.class);\n Log.i(TAG, \"key value \"+keyStr + \" \" + str);\n\n FileStatus status;\n\n if (str.equals(\" \") || str.equals(\"\")) {\n status = FileStatus.NOT_UPLOADED;\n } else {\n status = FileStatus.UPLOADED;\n }\n\n Document doc = new Document(keyStr, str, status, \"-\");\n Log.i(TAG,\"before doc addition\");\n result.add(doc);\n Log.i(TAG,\"after doc addition\");\n }\n //snapShotBrowseFinish=true;\n\n /*while(!(isSnapShotBrowseFinished())){\n\n }*/\n //TODO contenation with security list and refrsh fragment security docs\n /*activityCalling.setPpspsDocumentsList(result);\n activityCalling.*/\n /*ppspsDocsBrowsed=true;\n\n if(otherDocsBrowsed && securityDocsBrowsed && planDocsBrowsed && ppspsDocsBrowsed){\n activityCalling.refreshFragments();\n otherDocsBrowsed=false;\n securityDocsBrowsed=false;\n ppspsDocsBrowsed=false;\n planDocsBrowsed=false;\n }*/\n }", "private int saveOrUpdateList(List<Object> objList, String database)\n throws VizException {\n SaveOrUpdateRequest req = new SaveOrUpdateRequest();\n req.setDbName(database);\n req.setObjectsToUpdate(objList);\n\n Object result = ThriftClient.sendRequest(req);\n return (Integer) result;\n }", "public void updateList(List<DiscountDTO> list) {\n\t\tthis.discountRegister = list;\n\t}", "int updateByPrimaryKeyWithBLOBs(WpPostsWithBLOBs record);", "void updateList(List<PackageInfo> apps);", "public static void updateDocument(Client client, String index, String type, String id, String field,\r\n String newValue) {\n\r\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 }", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}", "@Test\n public void testUpdateWordList() throws Exception {\n System.out.println(\"updateWordList\");\n\n String newDescription = \"Changed the description.\";\n String newName = \"TEST LIST NEW NAME\";\n\n testList.setDescription(newDescription);\n testList.setName(newName);\n testList.setType(ListType.PRIVATE);\n WordListApi.updateWordList(token, testList);\n\n // check that the list has 2 items\n WordList result = WordListApi.getWordList(token, testList.getPermalink());\n assertEquals(result.getDescription(), newDescription);\n assertEquals(result.getName(), newName);\n assertEquals(result.getType(), ListType.PRIVATE);\n assertEquals(result.getId(), testList.getId());\n assertEquals(result.getNumberWordsInList(), testList.getNumberWordsInList());\n assertEquals(result.getPermalink(), testList.getPermalink());\n assertEquals(result.getUserId(), testList.getUserId());\n assertEquals(result.getUsername(), testList.getUsername());\n assertFalse(result.getUpdatedAt().equals(testList.getUpdatedAt()));\n }", "public static void updateIndex(final List<Entity> entity) {\n }", "@Override\r\n\t\tpublic void updateDocument(DocumentDTO document) {\n\t\t\tDocument document1=new Document();\r\n\t\t\tdocument1=convertDocumentBean(document);\r\n\t\t\tdocumentDAO.saveDocument(document1);\r\n\t\t\t\r\n\t\t}", "public void updateDoc (DocFile updatefile) throws ParseException, IOException {\n\n // Check if the file extension is valid\n if (updatefile == null) return;\n if (!isValid(updatefile) || !(FileManager.fileExists(updatefile.getId(), updatefile.getFileType()) || pathExists (updatefile.getPath()))) {\n return;\n }\n\n if (FileManager.fileExists(updatefile.getId(), updatefile.getFileType())) {\n String path = FileManager.download(updatefile.getId(), updatefile.getFileType());\n updatefile.setPath(path);\n }\n\n // remove the file from the index and re-add it\n this.removeDoc(updatefile);\n this.addDoc(updatefile);\n //FileManager.cleanTemporaryDownloads();\n }", "@FXML\n private void setDirectoryOfPostVersionLists() {\n setPathToRootOfPostVersionLists();\n indexPostVersionListsInRootPath();\n }", "public void addBulkUpdateData(BulkUpdateDataBean bulkUpdateDataBean){\n\t\tbulkUpdateData.add(bulkUpdateDataBean);\n\t}", "public void updateBiddings(SimpleList<Bidding> biddings) throws IOException {\r\n\t\tbiddingPersistence.updateBiddings(biddings);\r\n\t}", "private void updateOrders(int id, ArrayList<Integer> l) {\n\t\tArrayList <Integer> l1=l;\n\t\tObject request;\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tjava.util.Date currentTime = calendar.getTime();\n\t\tlong time = currentTime.getTime();\n\t\tSystem.out.println(\"ENTER USERID: \");\n\t\tint userid=sc.nextInt();\n\t\tfor(int j=0,count=0;j<l1.size();j++,count++){\n\t\t//int count=1;\n\t\tint bookreferenceNum=l.get(count);\n\t\ttry {\n\t\t\tPreparedStatement pstmt=con.prepareStatement(\"insert into orders(customer_id,book_reference_code,orderDate) values(?,?,?)\");\n\t\t\tpstmt.setInt(1, userid);\n\t\t\tpstmt.setInt(2, bookreferenceNum);\n\t\t\tpstmt.setTimestamp(3, new Timestamp(time));\n\t\t\tint count1=pstmt.executeUpdate();\n\t\t\t\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic Post updatePost(Post post) {\n\t\treturn null;\n\t}" ]
[ "0.66025186", "0.5978807", "0.53245443", "0.53075564", "0.52752584", "0.5224995", "0.5165847", "0.5163889", "0.5159986", "0.50679773", "0.5054795", "0.503741", "0.5012287", "0.50078195", "0.49915126", "0.49776915", "0.49601436", "0.4956072", "0.4954362", "0.4951993", "0.49509355", "0.49479762", "0.49418408", "0.49388972", "0.49295467", "0.49086526", "0.48963284", "0.4893755", "0.48936057", "0.48934084", "0.48934084", "0.4890734", "0.48870984", "0.48779464", "0.48623657", "0.48535833", "0.4845042", "0.4843805", "0.48400226", "0.48334444", "0.4828883", "0.48156658", "0.48102725", "0.47951818", "0.4788684", "0.47871053", "0.4778537", "0.47700742", "0.47562474", "0.47546974", "0.4751397", "0.47503278", "0.4749798", "0.47438654", "0.4742938", "0.47394073", "0.4737276", "0.47358465", "0.473334", "0.47262502", "0.47262502", "0.47262502", "0.47098348", "0.47048932", "0.46924886", "0.46915156", "0.46915156", "0.4690514", "0.46828747", "0.4680733", "0.467893", "0.46693963", "0.4653855", "0.4650974", "0.4643947", "0.46382594", "0.46365565", "0.46322337", "0.46198365", "0.46157396", "0.46132073", "0.46078628", "0.46008614", "0.4597887", "0.4596901", "0.45898223", "0.45898223", "0.45898223", "0.45898223", "0.45898223", "0.45898223", "0.45888916", "0.45825598", "0.45812064", "0.457948", "0.45746225", "0.45734128", "0.45684603", "0.45635033", "0.45573264" ]
0.8206703
0
Returns the index at which this document exists in the posting List
private int getIndexForDocument(int docId){ int i = 0; while(i < this.postingList.size() && this.postingList.get(i) != docId){ i += this.postingList.get(i+1)+2; } if(i >= this.postingList.size()) return -1; // document does not exist in posting List. Return -1 return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int nextPos(){\n if(pos<docPostingList.length) {\n\n return docPostingList[pos];\n\n }\n return -1;\n\n }", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n \t\treturn index;\n \t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public Integer index() {\n return this.index;\n }", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\r\n return index;\r\n }", "public int getIndex()\n {\n return m_index;\n }", "int getIndex() {\n\t\treturn index;\n\t}", "public final int getIndex(){\n return index_;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int index() {\n\t\treturn this.index;\n\t}", "public Integer getIndex() {\n return index;\n }", "public int getIndex()\n {\n return getInt(\"Index\");\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "public int getIndex() {\n return this.index;\n }", "public int getIndex() {\n return this.index;\n }", "public int getIndex() {\n\t\treturn this.index;\n\t}", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "public int getIndex() { return this.index; }", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}", "public int getIndex();", "public int getIndex();", "public int getIndex();", "public int getIndex() {\n return mIndex;\n }", "public int getIndex() {\n\t\treturn this.mIndex;\n\t}", "public int getIndex(\n )\n {return index;}", "@JsOverlay\n\tpublic final int getIndex() {\n\t\t// checks if there is the property\n\t\tif (ObjectType.UNDEFINED.equals(JsHelper.get().typeOf(this, \"index\"))) {\n\t\t\treturn Undefined.INTEGER;\n\t\t}\n\t\treturn getNativeIndex();\n\t}", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "@ApiModelProperty(value = \"The index of the entity as it was found in the investment tables.\")\n public Integer getIndex() {\n return index;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public Integer getIdx() {\r\n\t\treturn idx;\r\n\t}", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public int getIdx() {\n return idx;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public synchronized final int getIndex() {\r\n return f_index;\r\n }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "protected final int getIndex() {\n return index;\n }", "public int getIndex() {\n\t\treturn 0;\n\t}", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}", "public int getIndexNumber(){\n return id;\r\n }", "public int getIndex() {\r\n return ordinal();\r\n }", "@Override\n public final int getIndex() {\n return index;\n }", "default int getIndex() {\n return meta(\"nlpcraft:nlp:index\");\n }", "public <U> U index() {\n return this.index;\n }", "public int index();", "public final Integer indexInParent() {\n Container p = getParent();\n return p==null ? null : p.indexOf(this);\n }", "public int getEntryIndexByTitle(String title) {\n return getTitles().indexOf(title);\n }", "public abstract long getIndex();", "public String getIndex() {\n return index;\n }", "public String getIndex() {\n return this.index;\n }", "public String getIndex() {\n\t\treturn index;\n\t}", "public String getIndex() {\n\t\treturn index;\n\t}" ]
[ "0.65622747", "0.64522076", "0.6448254", "0.6422895", "0.6422895", "0.64194834", "0.64194834", "0.64194834", "0.64194834", "0.64194834", "0.64194834", "0.6410809", "0.6400087", "0.63986653", "0.639682", "0.6392008", "0.6392008", "0.6392008", "0.6392008", "0.6392008", "0.63895196", "0.6385412", "0.6385412", "0.6385412", "0.6385048", "0.63824874", "0.6377884", "0.63755953", "0.63740164", "0.6365049", "0.6365049", "0.6365049", "0.6365049", "0.6365049", "0.6365049", "0.63646543", "0.63646543", "0.63646543", "0.63622236", "0.634084", "0.6329695", "0.63099253", "0.6275578", "0.6275578", "0.6268196", "0.6268196", "0.62465745", "0.62055933", "0.6196062", "0.6181223", "0.61786574", "0.6172251", "0.6172251", "0.6172251", "0.61424255", "0.6138055", "0.611307", "0.61116004", "0.6105357", "0.6105357", "0.6105357", "0.6105357", "0.6105357", "0.6105357", "0.6105357", "0.6105357", "0.6105357", "0.6105357", "0.6105357", "0.6105357", "0.6105357", "0.60948795", "0.6081972", "0.6079915", "0.60773236", "0.60773236", "0.60773236", "0.6076836", "0.6073217", "0.60723865", "0.6071726", "0.60660017", "0.6047855", "0.6038344", "0.6038344", "0.6038344", "0.60057", "0.596636", "0.59607464", "0.5953293", "0.59254116", "0.5917592", "0.58837247", "0.5849816", "0.58245003", "0.58139586", "0.57913065", "0.5772506", "0.5767312", "0.5767312" ]
0.7601457
0
skips past the position in docPostingList. Returns 1 if end of list
public int skipPastPosition(int pos){ int p = 0; while(p<docPostingList.length && docPostingList[p]<=pos) p++; if(p>=docPostingList.length) return -1; // end of list. return docPostingList[p]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int nextPos(){\n if(pos<docPostingList.length) {\n\n return docPostingList[pos];\n\n }\n return -1;\n\n }", "@Override\n public void updateToNextDoc() {\n if(idx < postingList.size())\n idx += postingList.get(idx+1)+2;\n }", "public boolean skipToDoc(int docId){\n if(!this.hasMatch(docId)) return false;\n while(this.postingList.get(this.idx) != docId)\n this.idx += this.postingList.get(this.idx+1)+2;\n return true;\n }", "@Override\n\tpublic int skipTo(int docId) {\n\t\treturn 0;\n\t}", "private int nextNonText( List content, int start) {\r\n if (start < 0) {\r\n start = 0;\r\n }\r\n\r\n int index = start;\r\n int size = content.size();\r\n while( index < size) {\r\n if ( !(content.get( index) instanceof Text)) {\r\n return index;\r\n }\r\n index++;\r\n }\r\n return size;\r\n }", "@Override\n public boolean hasNext() {\n return this.paragraphIndex < this.paragraphs.size();\n }", "public int skipTo(int index) {\n\t\twhile(hasNext() && offset < index)\n\t\t\tnext();\n\t\treturn offset;\n\t}", "public int getSkipNum() {\r\n return this.skipNum;\r\n }", "public boolean hasNext()\n/* */ {\n/* 73 */ return this.m_offset < this.m_limit;\n/* */ }", "public boolean MoveNext()\r\n { \r\n _index++;\r\n\r\n return _index < Count;\r\n }", "public int getPageStartEntry() {\n\t\treturn this.skipEntries;\n\t}", "@Override\n public boolean hasNext() {\n return currentPosition < list.size();\n }", "public int getSkipCount()\n {\n return skipCount;\n }", "public int getSkipCount ()\n {\n return skipCount;\n }", "public void skip()\n {\n skip(1);\n }", "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn _current < (_items.length -1);\n\t\t}", "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "private int getIndexForDocument(int docId){\n\n int i = 0;\n while(i < this.postingList.size() && this.postingList.get(i) != docId){\n i += this.postingList.get(i+1)+2;\n }\n if(i >= this.postingList.size())\n return -1; // document does not exist in posting List. Return -1\n return i;\n }", "public boolean skip() {\n return skip;\n }", "protected int getSkipPage(){\n\t\tint pageNum = 0;\n\t\tfor (Integer p : mPageNum){\n\t\t\tpageNum *= 10;\n\t\t\tpageNum += p.intValue();\n\t\t}\n\t\tif (pageNum > Integer.MAX_VALUE){\n\t\t\tpageNum = Integer.MAX_VALUE;\n\t\t}\n\t\tif (pageNum <= getTotalPage()){\n\t\t\tmSkipPage = pageNum;\n\t\t}\n\t\treturn mSkipPage;\n\t}", "private static int endOfList(ASTNode stmtList) {\n ASTNode child = getLastChildRecursively(stmtList);\n while (child != null) {\n if (!isWhitespaceOrNewline(child)) {\n return child.getTextRange().getEndOffset();\n }\n child = child.getTreePrev();\n }\n return stmtList.getTextRange().getEndOffset();\n }", "private void skip(int aSkip){\r\n \r\n assert aSkip>=0;\r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n iIndex+=aSkip;//advance index by the skip distance\r\n if (iIndex>=iMessage.length()) iIndex=iMessage.length();//if beyond end then set index at end of message\r\n \r\n }", "private int skipFdocaBytes(int length) {\n\n checkForSplitRowAndComplete(length);\n dataBuffer_.skipBytes(length);\n// position_ += length;\n return length;\n }", "public long skip(long p_bytes);", "void skip(int index) throws NoSuchRecordException;", "public long skip (long n)\n {\n throw new UnsupportedOperationException();\n }", "@Override\n public int currentParagraphNumber() {\n return this.paragraphIndex + 1;\n }", "public void skip(int n)\n {\n position += n;\n }", "public abstract void onLoadMore(int skipStart);", "public int getPageEndEntry() {\n\t\tint end = this.skipEntries + NUM_PER_PAGE - 1;\n\t\tif (end > this.totalEntries) {\n\t\t\tend = this.totalEntries;\n\t\t}\n\t\treturn end;\n\t}", "private void updateDocPostingList(int docId){\n int i = getIndexForDocument(docId);\n if(i==-1){\n // document does not exist in posting list. Error out.\n System.err.println(\"Document not in List\");\n updateDocPostingList(this.postingList.get(0));\n }\n int size = this.postingList.get(i+1);\n this.docPostingList = new int[size];\n int k = 0;\n for(int j = i+2; j<size+i+2;j++)\n this.docPostingList[k++] = this.postingList.get(j);\n this.pos = 0;\n\n }", "public int getScrollPositionIfEndless(){\n\t\treturn mScrollPositionIfEndless;\n\t}", "private int getExclusiveBottomIndexEndOffset() {\n \n \t\tif (fTextWidget != null && !fTextWidget.isDisposed()) {\n \t\t\tint bottom= fSourceViewer.getBottomIndex();\n \t\t\tif (((fTextWidget.getTopPixel() + fTextWidget.getClientArea().height) % fTextWidget.getLineHeight()) != 0)\n \t\t\t\tbottom++;\n \t\t\ttry {\n \t\t\t\tIDocument document= fSourceViewer.getDocument();\n \n \t\t\t\tif (bottom >= document.getNumberOfLines())\n \t\t\t\t\tbottom= document.getNumberOfLines() - 1;\n \n \t\t\t\treturn document.getLineOffset(bottom) + document.getLineLength(bottom);\n \t\t\t} catch (BadLocationException x) {\n \t\t\t}\n \t\t}\n \n \t\treturn -1;\n \t}", "private void nextButtonActionPerformed(ActionEvent e) {\n // TODO add your code here\n int remainItem = this.list.size() - 6 * (this.page + 1);\n\n if(remainItem <= 0){\n Warning.run(\"No more page here.\");\n }\n else{\n this.page++;\n this.update();\n }\n }", "int getEndPosition();", "int getLastItemOnPage();", "public void skip(int val) {\n\t\t\t// pointer wala skip\n\t\t\tif (nextElement == val)\n\t\t\t\tadvance();\n\t\t\telse {\n\t\t\t\tif (!skipMap.containsKey(val)) {\n\t\t\t\t\tskipMap.put(val, 0);\n\t\t\t\t}\n\t\t\t\tskipMap.put(val, skipMap.get(val) + 1);\n\t\t\t}\n\t\t}", "void nextPage() throws IndexOutOfBoundsException;", "public boolean hasNext()\n/* */ {\n/* 82 */ return this.m_offset < this.m_array.length;\n/* */ }", "@Test(expected = IndexOutOfBoundsException.class)\n public void testListIterator_Invalid_Index_Above_Size() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n baseList.listIterator(baseList.size() + 1);\n }", "void skip();", "private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}", "private int next(int index)\n\t{\n\t\tif (index == list.length - 1)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn index + 1;\n\t\t}\n\t}", "@Override\n\tpublic boolean hasNext() throws IOException, CollectionException {\n\t\treturn idx < docElements.size();\n\t}", "@Test\r\n\tpublic void testListIteratorIndex() {\r\n\t\tListIterator<Munitions> iter = list.listIterator(6);\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tAssert.assertNotNull(iter.next());\r\n\t\t}\r\n\t\twhile (iter.hasPrevious()) {\r\n\t\t\tAssert.assertNotNull(iter.previous());\r\n\t\t}\r\n\t}", "public boolean hasNext(){\r\n return position<sizeArr;\r\n }", "public void updateAfterDeletion(List<Integer> pageList) {\n if (pageList == null || pageList.size() == 0) {\n return;\n }\n\n mDocPagesModified = true;\n mCurrentPage -= pageList.size();\n\n Collections.sort(pageList); // since we will use binary search\n\n // Update page numbers\n ListIterator<Map<String, Object>> it = mDataList.listIterator();\n int deleteCnt = 0;\n Integer pageNum;\n while (it.hasNext()) {\n Map<String, Object> item = it.next();\n pageNum = (Integer) item.get(PAGE_NUMBER_SRC);\n try {\n if (Collections.binarySearch(pageList, pageNum) >= 0) {\n mDataLock.lock();\n item.put(THUMB_IMAGE, null);\n mDataLock.unlock();\n\n it.remove();\n\n // Update cached page list\n removeCachedPage(pageNum);\n\n ++deleteCnt;\n } else {\n item.put(PAGE_NUMBER_SRC, pageNum - deleteCnt);\n }\n } catch (Exception ignored) {\n }\n }\n\n Utils.safeNotifyDataSetChanged(this);\n\n // scroll to the item after the first deleted item\n pageNum = Collections.min(pageList);\n if (pageNum == mDataList.size()) {\n --pageNum;\n }\n safeScrollToPosition(pageNum - 1);\n }", "@Test\n public void testNextIndex_End() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 3));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n int expResult = 2;\n int result = instance.nextIndex();\n\n assertEquals(\"Calling nextIndex at the end of the iterator should return size of the associated list\",\n expResult, result);\n }", "public boolean hasNext() { return cursor != lastIndex; }", "@Test\n public void testPreviousIndex_End() {\n\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.next();\n instance.next();\n\n int expResult = 1;\n int result = instance.previousIndex();\n\n assertEquals(expResult, result);\n }", "void skip(int n);", "public abstract int getStartIndex();", "public boolean hasNext(){\n return (index < nElem);\n }", "@Override\n public boolean hasNext() {\n return this.index < this.endIndex;\n }", "@Test\n public void testNonEmptyExcerpt_skip() throws IOException {\n checkSkip(excerpt(makeDigits(), 1, 8), 1, 1, '2');\n\n // skip up to the end of the excerpt.\n checkSkip(excerpt(makeDigits(), 2, 6), 6, 6, EOF);\n\n // try to skip past the end of the excerpt.\n checkSkip(excerpt(makeDigits(), 2, 6), 7, 6, EOF);\n }", "public void cursorDown() throws IndexOutOfBoundsException {\n if(cursor == size()-1)\n throw new IndexOutOfBoundsException(\"Exception: Current line is size()-1!\");\n //Setting the cursor to be the text line after its current position.\n cursor++;\n }", "public boolean hasNext() {\r\n \treturn index < n; \r\n }", "private void buildPostingList(){\n boolean isEndOfList = false;\n// boolean moveToNextDoc = false;\n ArrayList<Integer> tempList = new ArrayList<>(); // tempList to hold doc wise posting List\n\n while(!isEndOfList){\n boolean skipDoc = false;\n int doc = children.get(0).nextCandidate();\n if(doc == -1) {\n // End of list. No more windows to collect. Exit.\n isEndOfList = true; break;\n }\n int distance = super.getDiskReader().getRetrievedDocToLengthMap().get(doc);\n // Check if doc exists in all other children.\n // If it exists, skip to that Document.\n for(QueryNode child : children){\n /* skipToDoc skips the pointer in child node to the current doc.\n */\n if(!child.skipToDoc(doc)) {\n skipDoc = true;\n break;\n }\n\n }\n if(!skipDoc) {\n /* From here, all nodes have the document. Proceed to calculating number of windows in doc */\n\n tempList.clear();\n tempList.add(doc); //\n tempList.add(0); // doc term frequency. We will update this later.\n int fkid = 0; // doc term frequency tracker\n// int i = startTermIndex+1;\n int minPosIndex = 0; // holds the index of the node which has current minimum Pos\n int minPos = children.get(minPosIndex).nextPos(); // initialize min Pos.\n boolean isEndOfDoc = false;\n while(!isEndOfDoc) {\n if(minPos == -1) break; // End of document. Move to next doc\n for (int i = 0; i < children.size(); i++) {\n int pos = children.get(i).nextPos();\n if(pos == -1){\n isEndOfDoc = true;\n break;\n }\n if (pos < minPos) {\n minPos = pos;\n minPosIndex = i;\n }\n }\n if(isEndOfDoc) break;\n /* Check for window size against min pos */\n for (int i = 0; i < children.size(); i++) {\n int pos = children.get(i).nextPos();\n\n if (pos - minPos < distance) {\n // Valid candidate so far.\n // check if last term.\n if (i == children.size() - 1) {\n tempList.add(children.get(minPosIndex).nextPos());\n fkid++;\n // update all the child node pointers to next position. No double dipping\n for(QueryNode child : children)\n child.updatePos();\n\n\n }\n\n } else {\n // Candidate failed.\n // update minimum position to next pos and repeat process\n children.get(minPosIndex).updatePos();\n minPos = children.get(minPosIndex).nextPos();\n break;\n\n }\n }\n\n }\n\n\n /* The document has been consumed. If the temp List size is > 2, we have collected windows.\n Add them to the posting list.\n */\n if (tempList.size() > 2) {\n tempList.set(1, fkid);\n cqi += fkid;\n postingList.addAll(new ArrayList<>(tempList));\n }\n }\n// if(moveToNextDoc) continue;\n children.get(0).updateToNextDoc();\n }\n }", "public void moveNext() {\n\t\tcurrentElement++;\n\t}", "@Nonnull\n public Optional<ENTITY> peekNext()\n {\n return hasNext() ? Optional.of(items.get(index + 1)) : Optional.empty();\n }", "public boolean hasNext()\n {\n return position < text.length;\n }", "@Override\r\n public int nextIndex() {\r\n if (next == null) {\r\n return size; \r\n }\r\n return nextIndex - 1;\r\n }", "@Test\n public void testPreviousIndex_Start() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 3, 4, 5));\n\n ListIterator<Integer> instance = baseList.listIterator();\n int expResult = -1;\n int result = instance.previousIndex();\n\n assertEquals(expResult, result);\n }", "@Test\n public void testSkip() throws Exception {\n List<MediaSessionCompat.QueueItem> queue = QueueHelper.getPlayingQueueFromSearch(\n \" \", null, provider);\n assertTrue(queue.size() > 3);\n\n QueueManager queueManager = createQueueManagerWithValidation(null, -1, queue);\n queueManager.setCurrentQueue(\"Queue 1\", queue);\n\n // start on index 3\n long expectedQueueId = queue.get(3).getQueueId();\n assertTrue(queueManager.setCurrentQueueItem(expectedQueueId));\n assertEquals(expectedQueueId, queueManager.getCurrentMusic().getQueueId());\n\n // skip to previous (expected: index 2)\n expectedQueueId = queue.get(2).getQueueId();\n assertTrue(queueManager.skipQueuePosition(-1));\n assertEquals(expectedQueueId, queueManager.getCurrentMusic().getQueueId());\n\n // skip twice to previous (expected: index 0)\n expectedQueueId = queue.get(0).getQueueId();\n assertTrue(queueManager.skipQueuePosition(-2));\n assertEquals(expectedQueueId, queueManager.getCurrentMusic().getQueueId());\n\n // skip to previous (expected: index 0, by definition)\n expectedQueueId = queue.get(0).getQueueId();\n assertTrue(queueManager.skipQueuePosition(-1));\n assertEquals(expectedQueueId, queueManager.getCurrentMusic().getQueueId());\n\n // skip to 2 past the last index (expected: index 1, because\n // newindex = (index + skip) % size, by definition)\n expectedQueueId = queue.get(1).getQueueId();\n assertTrue(queueManager.skipQueuePosition(queue.size() + 1));\n assertEquals(expectedQueueId, queueManager.getCurrentMusic().getQueueId());\n }", "public synchronized int getLastPos() {\n PageMeta pm = pmList.get(numPages - 1);\n return pm.startPos + pm.numPairs - 1;\n }", "public static int skipWSX (Document doc, int posn, int end) {\n\t\twhile (posn < end) {\n\t\t\tif (Character.isWhitespace(doc.charAt(posn))) {\n\t\t\t\tposn++;\n\t\t\t} else if (doc.charAt(posn) == '<') {\n\t\t\t\tposn++;\n\t\t\t\twhile (posn < end && doc.charAt(posn) != '>')\n\t\t\t\t\tposn++;\n\t\t\t\tif (posn < end) posn++;\n\t\t\t} else break;\n\t\t}\n\t\treturn posn;\n\t}", "public boolean hasNext() {\n return cursor <= arrayLimit;\n }", "public java.lang.Boolean getSkip() {\r\n return skip;\r\n }", "public boolean hasNext() { \n\t\t\t\n\t\t\tif ( collection.size() <= 0 ) \n\t\t\t{\t\n\t\t\t\treturn false; \n\t\t\t}\n\t\t\tif ( currIndex == (collection.size() - 1)) \n\t\t\t{\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public static int skipWS (Document doc, int posn, int end) {\n\t\twhile ((posn < end) && Character.isWhitespace(doc.charAt(posn))) posn++;\n\t\treturn posn;\n\t}", "private boolean skipDroppedDocument(Object[] entity) {\n if (entity instanceof CAS[]) {\n ChunkMetadata meta = CPMUtils.getChunkMetadata((CAS) entity[0]);\n if (meta != null && skippedDocs.containsKey(meta.getDocId())) {\n return true;\n }\n }\n return false;\n }", "private int skipLeadingWhite( List content, int start) {\r\n if (start < 0) {\r\n start = 0;\r\n }\r\n\r\n int index = start;\r\n int size = content.size();\r\n if (currentFormat.trimAllWhite\r\n || currentFormat.textNormalize\r\n || currentFormat.textTrim) {\r\n while( index < size) {\r\n if ( !isAllWhitespace( content.get(index))) {\r\n return index;\r\n }\r\n index++;\r\n }\r\n }\r\n return index;\r\n }", "private static boolean IsAtListItemStart(ITextPointer position)\r\n { \r\n // Check for empty ListItem case\r\n if (typeof(ListItem).IsAssignableFrom(position.ParentType) && \r\n position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart && \r\n position.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.ElementEnd)\r\n { \r\n return true;\r\n }\r\n\r\n while (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart) \r\n {\r\n Type parentType = position.ParentType; \r\n if (TextSchema.IsBlock(parentType)) \r\n {\r\n if (TextSchema.IsParagraphOrBlockUIContainer(parentType)) \r\n {\r\n position = position.GetNextContextPosition(LogicalDirection.Backward);\r\n if (position.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.ElementStart &&\r\n typeof(ListItem).IsAssignableFrom(position.ParentType)) \r\n {\r\n return true; \r\n } \r\n }\r\n return false; \r\n }\r\n position = position.GetNextContextPosition(LogicalDirection.Backward);\r\n }\r\n return false; \r\n }", "public boolean pageRight() {\n if (this.mAdapter == null || this.mCurItem >= this.mAdapter.getCount() - 1) {\n return false;\n }\n setCurrentItem(this.mCurItem + 1, true);\n return true;\n }", "float computeVerticalSkip( final float yPosition, final PdfData pdd )\r\n {\r\n return( pdd.getPageHeight() - pdd.getMarginTop() - yPosition );\r\n }", "public Integer peek() {\n\t\tif (list == null || list.size() == 0) { return -1; }\n\t\treturn list.peek();\n\t}", "@Override\n\tpublic void skip() {\n\t}", "public int numItemInList() {\n return nextindex - startIndex;\n }", "public boolean hasNext() {\n\t\tif((++index)>=size)\n\t\t\treturn false;\t\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean isSkip() {\n return skip;\n }", "public boolean hasNext(int n)\n {\n return (position + n - 1) < text.length;\n }", "@Test\r\n void skipMethod() {\r\n\t\t// Überspringt 2 Datensaetze\r\n\t\tStream<TransactionBean> transactionBeanStream = transactions.stream().skip(1);\r\n\t\tList<TransactionBean> afterStreamList = transactionBeanStream.peek(System.out::println).collect(Collectors.toCollection(ArrayList::new));\r\n\t\t// 1 Datensatz ist noch uebrig\r\n\t\tassertSame(\"wrong type\", 1, afterStreamList.size());\r\n }", "public boolean hasPrevious() {\r\n \treturn index > 0; \r\n }", "private int forwardPosition() {\n\t\treturn (position + 1) % (maxPosition + 1);\n\t}", "void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}", "public long skippedRows(){ return _skippedRows; }", "public boolean hasNext() {\n if (this.index < nElem)\n return true;\n else{\n this.index--;\n return false;\n }\n }", "@Override\n public boolean hasNext() {\n return curIndex < maxIndex || super.hasNext();\n }", "@Test(expected = IndexOutOfBoundsException.class)\n public void testListIterator_invalid_index_negative() {\n int index = -1;\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 6, 8));\n\n baseList.listIterator(index);\n }", "public Integer peek() {\n if (hasNext()){\n if (list.isEmpty()){\n Integer next = iterator.next();\n list.add(next);\n return next;\n }else {\n return list.get(list.size()-1);\n }\n }else {\n return null;\n }\n }", "private int getFollowersStartingIndex(User lastFollower, List<User> allFollowers) {\n\n int followersIndex = 0;\n\n if(lastFollower != null) {\n // This is a paged request for something after the first page. Find the first item\n // we should return\n for (int i = 0; i < allFollowers.size(); i++) {\n if(lastFollower.equals(allFollowers.get(i))) {\n // We found the index of the last item returned last time. Increment to get\n // to the first one we should return\n followersIndex = i + 1;\n }\n }\n }\n\n return followersIndex;\n }", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public boolean getHasNext() {\n\t\t\treturn !endsWithIgnoreCase(getCursor(), STARTEND);\n\t\t}", "public boolean hasNext() {\n return current < len;\n }", "@Override\n public void onLoadMore() {\n if (searchbeanArrayList_new.size() != 0) {\n\n\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n // remove progress item\n\n\n //add items one by one\n\n if (pageTokenAvailable) {\n smoothProgressBar.setVisibility(View.VISIBLE);\n\n current_start += 10;\n\n // searchbean_post_data.getStart_limit()+=10;\n\n searchbean_post_data.setStart_limit(current_start);\n\n\n findDataFromServer();\n\n\n //or you can add all at once but do not forget to call mAdapter.notifyDataSetChanged();\n }\n\n\n }\n }, 2000);\n\n }\n\n }", "public int getScrollPosition(){\n\t\treturn mFirstItemPosition;\n\t}", "public boolean hasRemaining() {\r\n\t\treturn cursor < limit - 1;\r\n\t}", "private void skipFully(InputStream in, long offset) throws IOException {\n/* 1163 */ while (offset > 0L) {\n/* 1164 */ long cur = in.skip(offset);\n/* 1165 */ if (cur <= 0L)\n/* 1166 */ throw new EOFException(\"can't skip\"); \n/* 1167 */ offset -= cur;\n/* */ } \n/* */ }", "public boolean isVoidPrevDocs();", "@Override\n\tpublic int getStartOffset() {\n\t\treturn 0;\n\t}" ]
[ "0.7593913", "0.64612436", "0.6287553", "0.6236603", "0.57971954", "0.57640445", "0.57100517", "0.5580008", "0.5525419", "0.5486336", "0.5475061", "0.54270804", "0.54123855", "0.5391704", "0.53388226", "0.5326396", "0.52841836", "0.52608055", "0.525266", "0.5240906", "0.5240399", "0.5229756", "0.519536", "0.518976", "0.51646495", "0.5161539", "0.5159674", "0.51556265", "0.5152248", "0.51211745", "0.5085182", "0.50558215", "0.5041284", "0.5038739", "0.5015322", "0.5014584", "0.5010669", "0.49895543", "0.49879533", "0.49851772", "0.4969427", "0.49683204", "0.49670684", "0.49622598", "0.49608135", "0.49568802", "0.4952785", "0.4945528", "0.49396893", "0.4933956", "0.4925762", "0.4923471", "0.49169654", "0.49076563", "0.4900461", "0.48879227", "0.48856762", "0.4884698", "0.48806342", "0.48802477", "0.48750815", "0.48704854", "0.4863262", "0.48557827", "0.48548108", "0.48516822", "0.48516187", "0.48453867", "0.48452255", "0.48360476", "0.4830422", "0.4827753", "0.47995573", "0.47962713", "0.478859", "0.47877333", "0.4779638", "0.4778703", "0.47773996", "0.47721502", "0.4766738", "0.4764152", "0.4753591", "0.47413194", "0.47409207", "0.47379017", "0.47371647", "0.47361076", "0.47348645", "0.47346562", "0.47274196", "0.47144425", "0.47127485", "0.47057375", "0.47025245", "0.47021297", "0.46970788", "0.4689333", "0.4688925", "0.46807563" ]
0.8014126
0
Skips idx to doc. Should preferably be called after hasMatch()
public boolean skipToDoc(int docId){ if(!this.hasMatch(docId)) return false; while(this.postingList.get(this.idx) != docId) this.idx += this.postingList.get(this.idx+1)+2; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic int skipTo(int docId) {\n\t\treturn 0;\n\t}", "public SearchBuilder<T> skip(final int offset) {\n\t\tthis.offset = offset;\n\t\treturn this;\n\t}", "public int skipTo(int index) {\n\t\twhile(hasNext() && offset < index)\n\t\t\tnext();\n\t\treturn offset;\n\t}", "void skip(int index) throws NoSuchRecordException;", "public void setSkipMatch(java.lang.Short skipMatch) {\r\n this.skipMatch = skipMatch;\r\n }", "public void setNoIndex() {\n noIndex= true;\n }", "public void setSkipNotMatch(java.lang.Short skipNotMatch) {\r\n this.skipNotMatch = skipNotMatch;\r\n }", "public void skip()\n {\n skip(1);\n }", "public void skip(int factor)\n {\n int length = this.getMorphCount();\n this.resetTime();\n\n if (length == 0)\n {\n return;\n }\n\n if (factor > 0)\n {\n this.index = length - 1;\n }\n else if (factor < 0)\n {\n this.index = -1;\n }\n }", "public void unsetStartIndex()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(STARTINDEX$10);\n }\n }", "public void skip(int steps)\n {\n _index = (_index + steps) % _pattern.length;\n }", "public void deselectIndex(int idx) {\n getElement().deselectIndex(idx);\n }", "@Override\n\tpublic void skip() {\n\t}", "void stopIndexing();", "protected void noMatch() {\n Token[] tokens = m_errorHandler.noMatch(m_current, m_prev);\n m_current = tokens[0];\n m_prev = tokens[1];\n }", "public void reset() {\n this.index = this.startIndex;\n }", "protected final void moveToNextIndex() {\n\t\t\t// doing the assignment && < 0 in one line shaves\n\t\t\t// 3 opcodes...\n\t\t\tif ( (_index = nextIndex()) < 0 ) { throw new NoSuchElementException(); }\n\t\t}", "void indexReset();", "boolean advanceExact(int docId) throws IOException;", "private void skip(int aSkip){\r\n \r\n assert aSkip>=0;\r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n iIndex+=aSkip;//advance index by the skip distance\r\n if (iIndex>=iMessage.length()) iIndex=iMessage.length();//if beyond end then set index at end of message\r\n \r\n }", "@Override\n protected void beforeSearch() {\n index = 0;\n numberOfIterations = 0;\n pageCounter = 0;\n }", "public SearchBuilder<T> offset(final int offset) {\n\t\treturn skip(offset);\n\t}", "void startIndexing();", "void skip();", "public abstract void deselectAllIndexes();", "public void setIdxSearchNoHtml(boolean idxSearchNoHtml) {\n Preferences prefs = getPreferences();\n prefs.putBoolean(PROP_SEARCH_NO_HTML, idxSearchNoHtml);\n }", "@Test\n public void testCase4 () throws IOException {\n //\t\tlog.trace(\"Testcase4\");\n\n ki = new KrillIndex();\n ki.addDoc(createFieldDoc0());\n ki.commit();\n ki.addDoc(createFieldDoc1());\n ki.addDoc(createFieldDoc2());\n ki.commit();\n\n sq = new SpanSegmentQuery(new SpanElementQuery(\"base\", \"e\"),\n new SpanNextQuery(new SpanTermQuery(new Term(\"base\", \"s:a\")),\n new SpanTermQuery(new Term(\"base\", \"s:b\"))));\n\n kr = ki.search(sq, (short) 10);\n ki.close();\n\n assertEquals(\"totalResults\", kr.getTotalResults(), 2);\n // Match #0\n assertEquals(\"doc-number\", 0, kr.getMatch(0).getLocalDocID());\n assertEquals(\"StartPos\", 3, kr.getMatch(0).startPos);\n assertEquals(\"EndPos\", 5, kr.getMatch(0).endPos);\n // Match #1\n assertEquals(\"doc-number\", 0, kr.getMatch(1).getLocalDocID());\n assertEquals(\"StartPos\", 1, kr.getMatch(1).startPos);\n assertEquals(\"EndPos\", 3, kr.getMatch(1).endPos);\n }", "public int skipPastPosition(int pos){\n int p = 0;\n while(p<docPostingList.length && docPostingList[p]<=pos) p++;\n if(p>=docPostingList.length) return -1; // end of list.\n return docPostingList[p];\n\n }", "public void assertNotSelectedIndex(final String selectLocator, final String indexPattern);", "abstract void onIndexDisrupted(String caseId);", "public int skipText(String... textArr) throws ParseException {\n int index, i;\n String text;\n for (i = 0; i < textArr.length; i++) {\n text = textArr[i];\n index = html.indexOf(text, position);\n if (index == -1) {\n throw new ParseException(\"Cannot find \" + text + \" in html.\", position);\n }\n position = index + text.length();\n }\n return position;\n }", "@Override\n public int nextIndex()\n {\n return idx+1; \n }", "void fill(int docID) throws IOException {\n final int docStoreOffset = docWriter.getDocStoreOffset();\n\n final int end = docID+docStoreOffset;\n while(lastDocID < end) {\n fieldsWriter.skipDocument();\n lastDocID++;\n }\n }", "public void skip(int n)\n {\n position += n;\n }", "public void setSkip(boolean skip) {\n this.skip = skip;\n }", "public boolean getNoIndex() {\n return noIndex;\n }", "public Builder clearIndex() {\n bitField0_ = (bitField0_ & ~0x00000002);\n index_ = 0;\n onChanged();\n return this;\n }", "public Builder clearIndex() {\n bitField0_ = (bitField0_ & ~0x00000002);\n index_ = 0;\n onChanged();\n return this;\n }", "public Builder clearIndex() {\n bitField0_ = (bitField0_ & ~0x00000002);\n index_ = 0;\n onChanged();\n return this;\n }", "public Builder clearIndex() {\n bitField0_ = (bitField0_ & ~0x00000002);\n index_ = 0;\n onChanged();\n return this;\n }", "public Builder clearIndex() {\n bitField0_ = (bitField0_ & ~0x00000002);\n index_ = 0;\n onChanged();\n return this;\n }", "@Override\r\n public ParaMap index(ParaMap inMap) throws Exception {\n return null;\r\n }", "@Test public void doesntIndexCoreOrNonStringAnnotations() throws IOException {\n accept(storage.spanConsumer(), TestObjects.CLIENT_SPAN);\n\n assertThat(\n storage.session()\n .execute(\"SELECT blobastext(annotation) from annotations_index\")\n .all())\n .extracting(r -> r.getString(0))\n .containsExactlyInAnyOrder(\n \"frontend:http.path\",\n \"frontend:http.path:/api\",\n \"frontend:clnt/finagle.version:6.45.0\",\n \"frontend:foo\",\n \"frontend:clnt/finagle.version\");\n }", "public void skip(int val) {\n\t\t\t// pointer wala skip\n\t\t\tif (nextElement == val)\n\t\t\t\tadvance();\n\t\t\telse {\n\t\t\t\tif (!skipMap.containsKey(val)) {\n\t\t\t\t\tskipMap.put(val, 0);\n\t\t\t\t}\n\t\t\t\tskipMap.put(val, skipMap.get(val) + 1);\n\t\t\t}\n\t\t}", "public java.lang.Short getSkipMatch() {\r\n return skipMatch;\r\n }", "public void Reset() \r\n {\r\n _index = -1;\r\n }", "public boolean shouldIndex(IDocument document);", "public void reset() {\n index = 0;\n }", "private int skipFdocaBytes(int length) {\n\n checkForSplitRowAndComplete(length);\n dataBuffer_.skipBytes(length);\n// position_ += length;\n return length;\n }", "@Test\n public void fieldIndexFilter() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create an INDEX field which will display an entry for each XE field found in the document.\n // Each entry will display the XE field's Text property value on the left side\n // and the page containing the XE field on the right.\n // If the XE fields have the same value in their \"Text\" property,\n // the INDEX field will group them into one entry.\n FieldIndex index = (FieldIndex) builder.insertField(FieldType.FIELD_INDEX, true);\n\n // Configure the INDEX field only to display XE fields that are within the bounds\n // of a bookmark named \"MainBookmark\", and whose \"EntryType\" properties have a value of \"A\".\n // For both INDEX and XE fields, the \"EntryType\" property only uses the first character of its string value.\n index.setBookmarkName(\"MainBookmark\");\n index.setEntryType(\"A\");\n\n Assert.assertEquals(\" INDEX \\\\b MainBookmark \\\\f A\", index.getFieldCode());\n\n // On a new page, start the bookmark with a name that matches the value\n // of the INDEX field's \"BookmarkName\" property.\n builder.insertBreak(BreakType.PAGE_BREAK);\n builder.startBookmark(\"MainBookmark\");\n\n // The INDEX field will pick up this entry because it is inside the bookmark,\n // and its entry type also matches the INDEX field's entry type.\n FieldXE indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Index entry 1\");\n indexEntry.setEntryType(\"A\");\n\n Assert.assertEquals(\" XE \\\"Index entry 1\\\" \\\\f A\", indexEntry.getFieldCode());\n\n // Insert an XE field that will not appear in the INDEX because the entry types do not match.\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Index entry 2\");\n indexEntry.setEntryType(\"B\");\n\n // End the bookmark and insert an XE field afterwards.\n // It is of the same type as the INDEX field, but will not appear\n // since it is outside the bookmark's boundaries.\n builder.endBookmark(\"MainBookmark\");\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"Index entry 3\");\n indexEntry.setEntryType(\"A\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.INDEX.XE.Filtering.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.INDEX.XE.Filtering.docx\");\n index = (FieldIndex) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX, \" INDEX \\\\b MainBookmark \\\\f A\", \"Index entry 1, 2\\r\", index);\n Assert.assertEquals(\"MainBookmark\", index.getBookmarkName());\n Assert.assertEquals(\"A\", index.getEntryType());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE \\\"Index entry 1\\\" \\\\f A\", \"\", indexEntry);\n Assert.assertEquals(\"Index entry 1\", indexEntry.getText());\n Assert.assertEquals(\"A\", indexEntry.getEntryType());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE \\\"Index entry 2\\\" \\\\f B\", \"\", indexEntry);\n Assert.assertEquals(\"Index entry 2\", indexEntry.getText());\n Assert.assertEquals(\"B\", indexEntry.getEntryType());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE \\\"Index entry 3\\\" \\\\f A\", \"\", indexEntry);\n Assert.assertEquals(\"Index entry 3\", indexEntry.getText());\n Assert.assertEquals(\"A\", indexEntry.getEntryType());\n }", "private void endDoc() {\n\t\ttry {\n\t\t\t// Report the end of the document to the IndexListener\n\t\t\tindexer.getListener().documentDone(currentDocumentName);\n\n\t\t\t// Store the captured document content in the content store\n\t\t\t// and add the contents of the complex field to the Lucene document\n\t\t\taddContentToLuceneDoc();\n\n\t\t\t// Add the Lucene document to the index\n\t\t\tindexer.add(currentLuceneDoc);\n\n\t\t\t// Report character progress\n\t\t\treportCharsProcessed();\n\n\t\t\t// Reset the contents field for the next document\n\t\t\tcontentsField.clear();\n\n\t\t\t// Should we continue or are we done?\n\t\t\tif (!indexer.continueIndexing())\n\t\t\t\tthrow new MaxDocsReachedException();\n\n\t\t} catch (MaxDocsReachedException e) {\n\n\t\t\t// We've reached our maximum number of documents we'd like to index.\n\t\t\t// This is okay; just rethrow it.\n\t\t\tthrow e;\n\n\t\t} catch (Exception e) {\n\n\t\t\t// Some error occurred.\n\t\t\tthrow ExUtil.wrapRuntimeException(e);\n\n\t\t}\n\t}", "private void setDiscontiguous(StringBuilder skipped)\n {\n if (m_bufferOffset_ >= 0) {\n m_buffer_.replace(0, m_bufferOffset_, skipped.toString());\n }\n else {\n m_FCDLimit_ = m_source_.getIndex();\n m_buffer_.setLength(0);\n m_buffer_.append(skipped.toString());\n }\n\n m_bufferOffset_ = 0;\n }", "public static int skipWS (Document doc, int posn, int end) {\n\t\twhile ((posn < end) && Character.isWhitespace(doc.charAt(posn))) posn++;\n\t\treturn posn;\n\t}", "public void skip(){\n if (!this.hasNext()) return;\n \n this.checkNext();\n \n if (!this.allStatesIterator.hasNext()){\n this.allStatesIterator = new IntegerIterator(1);\n this.allStatesIterator.skip();\n \n if(!this.allSubsetsIterator.hasNext()){\n this.allSubsetsIterator = new SubsetIterator(this.numberOfStates);\n this.currentFinalStatesIds = this.allSubsetsIterator.next();\n this.currentTransitions = this.allTransitionsIterator.next();\n }\n else{\n this.currentFinalStatesIds = this.allSubsetsIterator.next();\n }\n }\n else{\n this.currentInitialStateId = this.allStatesIterator.next();\n }\n }", "@SuppressWarnings(\"unchecked\")\n public Q skip(int skip) {\n this.skip = skip > 0 ? skip : this.skip;\n return (Q) this;\n }", "private synchronized void remove(int index) {\r\n\t\tif (index >= 0 && index <= docModel.size())\r\n\t\t\ttry {\r\n\t\t\t\tdocModel.remove(index - 1);\r\n\t\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\t\tif (commandsQueue.size() == 0)\r\n\t\t\t\t\tupdateActiveUsers();\r\n\t\t\t}\r\n\t}", "@Test\n public void unnamedPropertyRuleInExistingIndex() {\n builder\n .indexRule(\"nt:base\")\n .property(\"foo\")\n // remove \"name\" property explicitly\n .getBuilderTree().removeProperty(\"name\");\n NodeState initialIndexState = builder.build();\n\n // Use initial index def to add some other property rule - this should work\n new LuceneIndexDefinitionBuilder(initialIndexState.builder())\n .indexRule(\"nt:base\")\n .property(\"bar\");\n }", "protected boolean skip(Annotation annotation) {\n \t\treturn false;\n \t}", "@Override\n public void updateToNextDoc() {\n if(idx < postingList.size())\n idx += postingList.get(idx+1)+2;\n }", "@Override\n public SearchDocument nextDocument(SearchQuery query, int docId) {\n return null;\n }", "@Override\r\n\tpublic void removeToIndex(int index) {\n\t}", "public void index_for_debug(List<ParsedDocument> pdocs,int qid) {\n\t\tfor (ParsedDocument pdoc : pdocs) {\n\t\t\tIndexDocument iDoc=parseDocument(pdoc);\n\t\t\tif(iDoc==null){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void storesIndexIfNone() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives()\n .xpath(\"/talk\").push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#1\").up().up()\n .add(\"request\").attr(\"id\", \"a12345\")\n .add(\"author\").set(\"yegor256\").up()\n .add(\"args\").up()\n .add(\"type\").set(\"deploy\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n XhtmlMatchers.hasXPaths(\"/talk/request[@index='1']\")\n );\n }", "public void setSkip(final boolean skip) {\n _skip = skip;\n }", "public void selectIndex(int idx) {\n getElement().selectIndex(idx);\n }", "@Test\n public void notStoreIndexWithoutRequest() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives()\n .xpath(\"/talk\")\n .push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#1\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n Matchers.not(\n XhtmlMatchers.hasXPaths(\"/talk/request\")\n )\n );\n }", "private Reindex() {}", "private Reindex() {}", "public void onIndexReset();", "private static int skipSub(AnalyzedTokenReadings[] tokens, int n, int to) {\n String gender = getGender(tokens[n]);\n for(int i = n + 1; i < to; i++) {\n if(tokens[i].matchesPosTagRegex(\"(SUB|EIG):.*\" + gender + \".*\")) {\n return i;\n }\n }\n return -1;\n }", "public Builder removeSeenInfo(int index) {\n copyOnWrite();\n instance.removeSeenInfo(index);\n return this;\n }", "@Override\n protected boolean preserveIndicesUponCompletion() {\n return true;\n }", "public void toReturn(Document doc){\n documents.remove(doc);\n doc.setCopies(doc.copiesNumber() + 1);\n //TODO check data and fee\n //TODO rewrite list of documents\n }", "public static int skipWSX (Document doc, int posn, int end) {\n\t\twhile (posn < end) {\n\t\t\tif (Character.isWhitespace(doc.charAt(posn))) {\n\t\t\t\tposn++;\n\t\t\t} else if (doc.charAt(posn) == '<') {\n\t\t\t\tposn++;\n\t\t\t\twhile (posn < end && doc.charAt(posn) != '>')\n\t\t\t\t\tposn++;\n\t\t\t\tif (posn < end) posn++;\n\t\t\t} else break;\n\t\t}\n\t\treturn posn;\n\t}", "public void setSkipNum(int skipNum) {\r\n this.skipNum = skipNum;\r\n this.endNum = this.skipNum + this.limitNum +1;\r\n }", "public void myanwDelete(int idx) {\n\t\tdao.myanwDelete(idx);\r\n\t}", "private boolean skipDroppedDocument(Object[] entity) {\n if (entity instanceof CAS[]) {\n ChunkMetadata meta = CPMUtils.getChunkMetadata((CAS) entity[0]);\n if (meta != null && skippedDocs.containsKey(meta.getDocId())) {\n return true;\n }\n }\n return false;\n }", "public void not() {\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\tif (!i.hasNext())\n\t\t\treturn;\n\t\twhile (true) {\n\t\t\tfinal RunningLengthWord rlw1 = i.next();\n\t\t\tif (rlw1.getRunningLength() > 0)\n\t\t\t\trlw1.setRunningBit(!rlw1.getRunningBit());\n\t\t\tfor (int j = 0; j < rlw1.getNumberOfLiteralWords(); ++j) {\n\t\t\t\ti.buffer()[i.dirtyWords() + j] =\n\t\t\t\t\t\t~i.buffer()[i.dirtyWords() + j];\n\t\t\t}\n\t\t\tif (!i.hasNext()) {// must potentially adjust the last dirty word\n\t\t\t\tif (rlw1.getNumberOfLiteralWords() == 0)\n\t\t\t\t\treturn;\n\t\t\t\tint usedbitsinlast = this.sizeinbits % wordinbits;\n\t\t\t\tif (usedbitsinlast == 0)\n\t\t\t\t\treturn;\n\t\t\t\ti.buffer()[i.dirtyWords() + rlw1.getNumberOfLiteralWords() - 1] &=\n\t\t\t\t\t\t((oneMask) >>> (wordinbits - usedbitsinlast));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public void assertNotXpathCount(final String xpath, final int count);", "public static int getFirstNonWhiteFwd(BaseDocument doc, int offset, int limitPos)\n throws BadLocationException {\n return doc.find(new FinderFactory.NonWhiteFwdFinder(doc), offset, limitPos);\n }", "@Test\n public void skipIf() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Insert a SKIPIF field. If the current row of a mail merge operation fulfills the condition\n // which the expressions of this field state, then the mail merge operation aborts the current row,\n // discards the current merge document, and then immediately moves to the next row to begin the next merge document.\n FieldSkipIf fieldSkipIf = (FieldSkipIf) builder.insertField(FieldType.FIELD_SKIP_IF, true);\n\n // Move the builder to the SKIPIF field's separator so we can place a MERGEFIELD inside the SKIPIF field.\n builder.moveTo(fieldSkipIf.getSeparator());\n FieldMergeField fieldMergeField = (FieldMergeField) builder.insertField(FieldType.FIELD_MERGE_FIELD, true);\n fieldMergeField.setFieldName(\"Department\");\n\n // The MERGEFIELD refers to the \"Department\" column in our data table. If a row from that table\n // has a value of \"HR\" in its \"Department\" column, then this row will fulfill the condition.\n fieldSkipIf.setLeftExpression(\"=\");\n fieldSkipIf.setRightExpression(\"HR\");\n\n // Add content to our document, create the data source, and execute the mail merge.\n builder.moveToDocumentEnd();\n builder.write(\"Dear \");\n fieldMergeField = (FieldMergeField) builder.insertField(FieldType.FIELD_MERGE_FIELD, true);\n fieldMergeField.setFieldName(\"Name\");\n builder.writeln(\", \");\n\n // This table has three rows, and one of them fulfills the condition of our SKIPIF field. \n // The mail merge will produce two pages.\n DataTable table = new DataTable(\"Employees\");\n table.getColumns().add(\"Name\");\n table.getColumns().add(\"Department\");\n table.getRows().add(\"John Doe\", \"Sales\");\n table.getRows().add(\"Jane Doe\", \"Accounting\");\n table.getRows().add(\"John Cardholder\", \"HR\");\n\n doc.getMailMerge().execute(table);\n doc.save(getArtifactsDir() + \"Field.SKIPIF.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SKIPIF.docx\");\n\n Assert.assertEquals(0, doc.getRange().getFields().getCount());\n Assert.assertEquals(\"Dear John Doe, \\r\" +\n \"\\fDear Jane Doe, \\r\\f\", doc.getText());\n }", "public void removeIndex(int i) {\n // YOUR CODE HERE\n }", "public static int getFirstNonWhiteFwd(BaseDocument doc, int offset)\n throws BadLocationException {\n return getFirstNonWhiteFwd(doc, offset, -1);\n }", "public abstract void reset(int index);", "@Override\n\t\tpublic int nextIndex() {\n\t\t\treturn 0;\n\t\t}", "void remove(int idx);", "@Override\n\tpublic void unIndexObject(ModelKey obj) throws ASException {\n\t\t\n\t}", "public void subIgnore() {\n\t\tignoreT--; // subtract 1 from ignoreT\n\t}", "private int getIndexForDocument(int docId){\n\n int i = 0;\n while(i < this.postingList.size() && this.postingList.get(i) != docId){\n i += this.postingList.get(i+1)+2;\n }\n if(i >= this.postingList.size())\n return -1; // document does not exist in posting List. Return -1\n return i;\n }", "public Builder clearIndex() {\n \n index_ = 0;\n onChanged();\n return this;\n }", "public void setSkip(java.lang.Boolean skip) {\r\n this.skip = skip;\r\n }", "public java.lang.Short getSkipNotMatch() {\r\n return skipNotMatch;\r\n }", "@Override\r\n\tpublic void skip() {\n\t\tSystem.out.println(\"Skip\");\r\n\t}", "public void testDocumentFailureReplication() throws Exception {\n final IOException indexException = new IOException(\"simulated indexing failure\");\n final EngineFactory engineFactory = config -> InternalEngineTests.createInternalEngine((dir, iwc) -> new IndexWriter(dir, iwc) {\n @Override\n public long addDocument(Iterable<? extends IndexableField> doc) throws IOException {\n boolean isTombstone = false;\n for (IndexableField field : doc) {\n if (SeqNoFieldMapper.TOMBSTONE_NAME.equals(field.name())) {\n isTombstone = true;\n }\n }\n if (isTombstone) {\n return super.addDocument(doc); // allow to add Noop\n } else {\n throw indexException;\n }\n }\n }, null, null, config);\n try (ReplicationGroup shards = new ReplicationGroup(buildIndexMetadata(0)) {\n @Override\n protected EngineFactory getEngineFactory(ShardRouting routing) {\n return engineFactory;\n }\n }) {\n\n // start with the primary only so two first failures are replicated to replicas via recovery from the translog of the primary.\n shards.startPrimary();\n long primaryTerm = shards.getPrimary().getPendingPrimaryTerm();\n List<Translog.Operation> expectedTranslogOps = new ArrayList<>();\n BulkItemResponse indexResp = shards.index(new IndexRequest(index.getName()).id(\"1\").source(\"{}\", MediaTypeRegistry.JSON));\n assertThat(indexResp.isFailed(), equalTo(true));\n assertThat(indexResp.getFailure().getCause(), equalTo(indexException));\n expectedTranslogOps.add(new Translog.NoOp(0, primaryTerm, indexException.toString()));\n try (Translog.Snapshot snapshot = getTranslog(shards.getPrimary()).newSnapshot()) {\n assertThat(snapshot, SnapshotMatchers.containsOperationsInAnyOrder(expectedTranslogOps));\n }\n shards.assertAllEqual(0);\n\n int nReplica = randomIntBetween(1, 3);\n for (int i = 0; i < nReplica; i++) {\n shards.addReplica();\n }\n shards.startReplicas(nReplica);\n for (IndexShard shard : shards) {\n try (Translog.Snapshot snapshot = getTranslog(shard).newSnapshot()) {\n // we flush at the end of peer recovery\n if (shard.routingEntry().primary() || shard.indexSettings().isSoftDeleteEnabled() == false) {\n assertThat(snapshot, SnapshotMatchers.containsOperationsInAnyOrder(expectedTranslogOps));\n } else {\n assertThat(snapshot.totalOperations(), equalTo(0));\n }\n }\n try (Translog.Snapshot snapshot = shard.newChangesSnapshot(\"test\", 0, Long.MAX_VALUE, false, randomBoolean())) {\n assertThat(snapshot, SnapshotMatchers.containsOperationsInAnyOrder(expectedTranslogOps));\n }\n }\n // the failure replicated directly from the replication channel.\n indexResp = shards.index(new IndexRequest(index.getName()).id(\"any\").source(\"{}\", MediaTypeRegistry.JSON));\n assertThat(indexResp.getFailure().getCause(), equalTo(indexException));\n Translog.NoOp noop2 = new Translog.NoOp(1, primaryTerm, indexException.toString());\n expectedTranslogOps.add(noop2);\n\n for (IndexShard shard : shards) {\n try (Translog.Snapshot snapshot = getTranslog(shard).newSnapshot()) {\n if (shard.routingEntry().primary() || shard.indexSettings().isSoftDeleteEnabled() == false) {\n assertThat(snapshot, SnapshotMatchers.containsOperationsInAnyOrder(expectedTranslogOps));\n } else {\n assertThat(snapshot, SnapshotMatchers.containsOperationsInAnyOrder(Collections.singletonList(noop2)));\n }\n }\n try (Translog.Snapshot snapshot = shard.newChangesSnapshot(\"test\", 0, Long.MAX_VALUE, false, randomBoolean())) {\n assertThat(snapshot, SnapshotMatchers.containsOperationsInAnyOrder(expectedTranslogOps));\n }\n }\n shards.assertAllEqual(0);\n }\n }", "@Override\n public void unDraw() {\n index--;\n }", "public Builder clearIndex() {\n\n index_ = 0;\n onChanged();\n return this;\n }", "public Builder clearIndex() {\n\n index_ = 0;\n onChanged();\n return this;\n }", "public Builder clearIndex() {\n\n index_ = 0;\n onChanged();\n return this;\n }", "private static int skipToSub(String gender, AnalyzedTokenReadings[] tokens, int n, int to) {\n if(tokens[n+1].matchesPosTagRegex(\"PA[12]:.*\" + gender + \".*\")) {\n return n+1;\n }\n for(int i = n + 1; i < to; i++) {\n if(tokens[i].matchesPosTagRegex(\"(ADJ|PA[12]):.*\" + gender + \".*\") || tokens[i].isPosTagUnknown()) {\n return i;\n }\n if(tokens[i].hasPosTagStartingWith(\"ART\")) {\n i = skipSub(tokens, i, to);\n if (i < 0) {\n return i;\n }\n }\n }\n return -1;\n }", "private int disjunctMatch( int ix0, int ix1 )\n {\n \tint n = 0;\n if( ix0 == ix1 ){\n // TODO: complain, this should never happen.\n return 0;\n }\n \n if( ix0>ix1 ){\n int h = ix0;\n ix0 = ix1;\n ix1 = h;\n }\n \twhile( (ix0+n)<ix1 && (text[ix0+n] == text[ix1+n]) && (text[ix0+n] != STOP) ){\n \t n++;\n \t}\n \treturn n;\n }" ]
[ "0.7072604", "0.6117972", "0.59022814", "0.5884213", "0.586702", "0.5702539", "0.55632687", "0.55033743", "0.5493307", "0.5444358", "0.54387367", "0.53985924", "0.53972775", "0.53876466", "0.5321624", "0.5289344", "0.5258604", "0.52371603", "0.5201394", "0.5195265", "0.5183829", "0.5178224", "0.5173946", "0.51268345", "0.5114437", "0.51096946", "0.5107484", "0.5098036", "0.5092494", "0.5078562", "0.50745004", "0.5060072", "0.504331", "0.5042049", "0.49769434", "0.4973144", "0.49730796", "0.49730796", "0.49730796", "0.49730796", "0.49729583", "0.49696374", "0.4967009", "0.49604964", "0.4957808", "0.49520403", "0.49404427", "0.49378085", "0.49136874", "0.4896994", "0.48963684", "0.48937094", "0.4878645", "0.48782742", "0.48491207", "0.48481688", "0.4847374", "0.4840585", "0.4835102", "0.48348454", "0.4834792", "0.48298794", "0.4829007", "0.4827615", "0.48150405", "0.48095515", "0.47984216", "0.47984216", "0.47720194", "0.477083", "0.47656196", "0.47615075", "0.47564626", "0.47540516", "0.47508907", "0.47442442", "0.4742709", "0.47373927", "0.47340083", "0.47302797", "0.4721619", "0.4716966", "0.47128278", "0.4710331", "0.47046462", "0.4703407", "0.46958914", "0.4695754", "0.46887463", "0.46863073", "0.46858898", "0.46767992", "0.46743822", "0.46723408", "0.4670816", "0.46701577", "0.46701577", "0.46701577", "0.46622905", "0.46583232" ]
0.6621353
1
ChromeOptions opt = new ChromeOptions(); opt.setHeadless(true);
@BeforeClass public static void setup() { System.setProperty("webdriver.chrome.driver", driverPath); driver = new ChromeDriver(); wait = new WebDriverWait(driver, 10); util = new Util(driver, wait); util.login(emailAddress, pwd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ChromeOptions setChromeOptions() {\n\t\t\tChromeOptions cOptions = new ChromeOptions();\n\t\t\tcOptions.addArguments(\"disable-infobars\");\n\t\t\t//cOptions.addArguments(\"--headless\", \"window-size=1920,1080\");\n\t\t\tcOptions.addArguments(\"--disable-notifications\");\n\t\t\treturn cOptions;\n\t\t}", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"./browser/chromedriver.exe\");\r\n\t\t//DesiredCapabilities cap=new DesiredCapabilities();\r\n\t\t\r\n\t\tChromeOptions co=new ChromeOptions();\r\n\t\tco.addArguments(\"--disable-infobars\");\r\n\t\t//co.addArguments(\"--headless\");\r\n\t\tWebDriver driver=new ChromeDriver(co);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.close();\r\n\r\n\t}", "private void setChromeDriver() throws Exception {\n\t\t// boolean headless = false;\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\tchromePrefs.put(\"download.default_directory\", BasePage.myTempDownloadsFolder);\n\t\tchromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\n\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\tchromeOptions.addArguments(\"--disable-extensions\");\n\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t/*\n\t\t * To set headless mode for chrome. Would need to make it conditional\n\t\t * from browser parameter Does not currently work for all tests.\n\t\t */\n\t\t// chromeOptions.setHeadless(true);\n\n\t\tif (runLocation.toLowerCase().equals(\"smartbear\")) {\n\t\t\tReporter.log(\"-- SMARTBEAR: standard capabilities. Not ChromeOptions\", true);\n\t\t\tcapabilities = new DesiredCapabilities();\n\t\t} else {\n\t\t\tcapabilities = DesiredCapabilities.chrome();\n\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\t\t}\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t \n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" Chrome-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "public static boolean isHeadless() {\n return false;\n }", "private WebDriver createChromeDriver() {\n\t\tsetDriverPropertyIfRequired(\"webdriver.chrome.driver\", \"chromedriver.exe\");\n\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"disable-plugins\");\n\t\toptions.addArguments(\"disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\n\t\t\n\t\t_driver = new ChromeDriver(options);\n\t\treturn _driver;\n\t}", "private static WebDriver launchChrome()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\tURL chromeDriverURL = BrowserDriver.class.getResource(\"/drivers/chromedriver.exe\");\n\t\tFile file = new File(chromeDriverURL.getFile()); \n\t\tSystem.setProperty(ChromeDriverService.CHROME_DRIVER_EXE_PROPERTY, file.getAbsolutePath());\n\t\t\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\toptions.addArguments(\"--ignore-certificate-errors\");\n\t\t\n\t\treturn new ChromeDriver(options);\n\t\t}\n\t}", "public void setHeadless(boolean headless) {\n\t\tthis.headless = headless;\n\t}", "public static WebDriver startChrome() {\n\t\treturn new ChromeDriver();\n\t}", "@Test\n public void hello() {\n\n WebDriverManager.getInstance(CHROME).setup();\n ChromeOptions options = new ChromeOptions();\n\n WebDriver driver = new ChromeDriver(options);\n//\n// options.setPageLoadStrategy(PageLoadStrategy.EAGER); // https://www.skptricks.com/2018/08/timed-out-receiving-message-from-renderer-selenium.html\n// options.addArguments(\"start-maximized\"); // https://stackoverflow.com/a/26283818/1689770\n// options.addArguments(\"enable-automation\"); // https://stackoverflow.com/a/43840128/1689770\n// options.addArguments(\"--headless\"); // only if you are ACTUALLY running headless\n// options.addArguments(\"--no-sandbox\"); //https://stackoverflow.com/a/50725918/1689770\n// options.addArguments(\"--disable-infobars\"); //https://stackoverflow.com/a/43840128/1689770\n// options.addArguments(\"--disable-dev-shm-usage\"); //https://stackoverflow.com/a/50725918/1689770\n// options.addArguments(\"--disable-browser-side-navigation\"); //https://stackoverflow.com/a/49123152/1689770\n// options.addArguments(\"--disable-gpu\"); //https://stackoverflow.com/questions/51959986/how-to-solve-selenium-chromedriver-timed-out-receiving-message-from-renderer-exc\n// driver = new ChromeDriver(options);\n\n driver.get(\"https://www.mbvans.com/en/cpo\");\n driver.manage().window().maximize();\n WebDriverWait wait = new WebDriverWait(driver, 20);\n WebElement el = wait.until(ExpectedConditions.elementToBeClickable(By.className(\"column-link-list__link-container footer-container__item-content\")));\n driver.getTitle();\n driver.close();\n}", "@BeforeTest\n public void setup() {\n\n String browser = Environment.getProperties().browser().toString().toLowerCase();\n\n switch (browser) {\n \n case \"firefox\":\n FirefoxOptions options = new FirefoxOptions(); \n if(Environment.getProperties().headless()){\n options.addArguments(\"--headless\");\n }\n driver = new FirefoxDriver();\n break;\n \n default:\n ChromeOptions optionsChrome = new ChromeOptions();\n if(Environment.getProperties().headless()){\n optionsChrome.addArguments(\"--headless\");\n } \n driver = new ChromeDriver(optionsChrome);\n break;\n } \n\n driver.manage().window().maximize();\n }", "public static WebDriver chrome()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\Chrome\\\\chromedriver.exe\");\r\n\t\tgk = new ChromeDriver();\r\n\t\treturn gk;\r\n\t}", "@BeforeMethod\n\tpublic void setUp() {\n\t\tString driverByOS = \"\";\n\t\tif (System.getProperty(\"os.name\").equals(\"Windows 10\")) {\n\t\t\tdriverByOS = \"Drivers/chromedriver.exe\";\n\t\t} \n\t\telse {\n\t\t\tdriverByOS = \"Drivers/chromedriver\";\n\t\t}\n\t\t//para saber en qué sistema Operativo estamos corriendo el proyecto.\n\t\tSystem.out.println(System.getProperty(\"os.name\"));\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverByOS);\n\t\t//Utilizando headless browser HB\n\t\t/*-HB\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\tchromeOptions.addArguments(\"--headless\");\n\t\tdriver = new ChromeDriver(chromeOptions);\n\t\tHB-*/\n\t\tdriver = new ChromeDriver();\n\t\t//driver.manage().window().maximize(); //esto es para maximizar la ventana del navegador\n\t\t//driver.manage().window().fullscreen(); //esto es para poner en fullscreen la ventana del navegador\n\t\t/*driver.manage().window().setSize(new Dimension(200,200));\n\t\tfor (int i = 0; i <= 800; i++) {\n\t\t\tdriver.manage().window().setPosition(new Point(i,i));\n\t\t}*/\n\t\t//driver.manage().window().setPosition(new Point(800,200)); //posicionando la ventana del navegador\n\t\tdriver.navigate().to(\"http://newtours.demoaut.com/\");\n\t\t//Este codigo de abajo permite abrir otra ventana en el navegador\n\t\t//JavascriptExecutor javaScriptExecutor = (JavascriptExecutor)driver;\n\t\t//String googleWindow = \"window.open('http://www.google.com')\";\n\t\t//javaScriptExecutor.executeScript(googleWindow);\n\t\t//tabs = new ArrayList<String> (driver.getWindowHandles());\n\t\t/*try {\n\t\t\tThread.sleep(5000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//Helpers helper = new Helpers();\n\t\t//helper.sleepSeconds(4);\n\t}", "public static ChromeOptions chromeoptions() {\r\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\r\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\r\n\t\tchromePrefs.put(\"download.default_directory\", testAdminReportPath);\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.setExperimentalOption(\"prefs\", chromePrefs);\r\n\t\toptions.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\r\n\t\toptions.setCapability(ChromeOptions.CAPABILITY, options);\r\n\t\toptions.setCapability(\"locationContextEnabled\", false);\r\n\t\treturn options;\r\n\t}", "public static ChromeDriver intiChrome() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/ChromeServer/chromedriver.exe\");\n\t\t// WebDriver driver = new ChromeDriver();\n\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t// 设置为 headless 模式 (必须)\n\t\t// chromeOptions.addArguments(\"--headless\");\n\t\t// 设置浏览器窗口打开大小 (非必须)\n\t\t// chromeOptions.addArguments(\"--window-size=1980,1068\");\n\t\tChromeDriver driver = new ChromeDriver(chromeOptions);\n\t\treturn driver;\n\t}", "@Before\r\n\tpublic void OpenChrome() {\n\t\tconfig = new ConfigReader();\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",config.getChromePath());\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\texPages = new ExpediaPages(driver);\r\n\t}", "public static void main(String[] args) {\n WebDriver driver = WebDriverFactory.getDriver(\"chrome\");\n driver.manage().window().maximize();\n\n\n }", "@Before\n public void start() {\n\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n //driver.manage().window().maximize();\n wait = new WebDriverWait(driver, 10);\n }", "public static void main(String[] args) throws Exception{\n\n WebDriverManager.chromedriver().setup();\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://practice.cybertekschool.com/open_new_tab\");\n\n Thread.sleep(4000);\n\n //driver.close(); //expected to close the original one\n driver.quit(); //all window will be closed\n\n\n\n\n }", "public WebDriver LaunchChromeBrowserReturnIt() {\n\t\ttry {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\"/TestSuit/lib/chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver(); // Launch chrome\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn driver;\n\n\t}", "protected void setHeadless(boolean b) {\n m_Headless = b;\n }", "@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }", "public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }", "public void chromeLaunch() {\n\t\tSystem.setProperty(key, value);\n\t\ts=new ChromeDriver();\n\t\ts.manage().window().maximize();\n\t\ts.navigate().to(url);\n\t}", "public boolean isHeadless() {\n return m_Headless;\n }", "public static WebDriver getLocalChromeDriver() {\n WebDriverManager.chromedriver().setup();\n return new ChromeDriver();\n }", "@Given(\"^Open URL in chrome browser$\")\r\n\tpublic void open_URL_in_chrome_browser() {\n\t nop.Launch(\"chrome\", \"http://automationpractice.com/index.php\");\r\n\t}", "@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}", "private void initChromeDriver(String appUrl) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"Drivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(appUrl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t}", "@Test\n public void test() throws MalformedURLException {\n System.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver.exe\"); \n WebDriver driver=new ChromeDriver();\n // WebDriver driver=new RemoteWebDriver(url,cap);\n driver.manage().window().maximize(); \n driver.get(\"https://curiedoctorapp.firebaseapp.com\");\n System.out.println(\"The title is\"+ driver.getTitle());\n driver.quit();\n \n }", "@Test\r\n\tpublic void f()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Data_Program//Selenium_Dependencies//chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t}", "public void initDriver() {\n if (getBrowser().equals(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n if (System.getProperty(\"headless\") != null) {\n FirefoxOptions firefoxOptions = new FirefoxOptions();\n firefoxOptions.setHeadless(true);\n driver = new FirefoxDriver(firefoxOptions);\n } else {\n driver = new FirefoxDriver();\n }\n } else {\n WebDriverManager.chromedriver().setup();\n if (System.getProperty(\"headless\") != null) {\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setHeadless(true);\n driver = new ChromeDriver(chromeOptions);\n } else {\n driver = new ChromeDriver();\n }\n }\n }", "@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}", "@BeforeSuite\r\n\tpublic void before_suite() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"G:\\\\chromedriver.exe\");\r\n\t}", "public static void main(String[] args) {\n\t\tString proppath = System.getProperty(\"user.dir\");\n\t\tSystem.setProperty(\"webdriver.crome.driver\", proppath + \"\\\\chromedriver.exe\");\n\t\t\n\t\t//Desiredcapabilities (General ChromeOptions)\n\t\tDesiredCapabilities dc = new DesiredCapabilities();\n\t\tdc.acceptInsecureCerts(); // to handle ssl certificates\n\t\t//or\n\t\tdc.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\n\t\tdc.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\n\t\t//ChromeOptions (Local browser options)\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.merge(dc);\n\t\toptions.setPageLoadStrategy(PageLoadStrategy.EAGER);\n\t\toptions.addArguments(\"--disable-notifications\");\n\t\t\n\t\t//Webdriver with ChromeOptions & DesiredCapabilities\n\t\tWebDriver driver = new ChromeDriver(options);\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().window().maximize();\n\n\t\tdriver.get(\"https://www.google.com/\");\n\t\tSystem.out.println(\"Before Processing >>>>\" + driver.getTitle());\n\t}", "@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\r\n\t\tWebDriver driver =new ChromeDriver();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\COMPAQ\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n\nWebDriver driver =new ChromeDriver();\n\n//WebDriverWait wait = new WebDriverWait(driver, 40);\n\n driver.get(\"http://qatestingtips.com/\");\n\t\n\n}", "public static void startChromeDriver() {\r\n\t\tswitch (operatingSystem.toLowerCase().split(\" \")[0]) {\r\n\t\tcase \"windows\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriver.exe\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"linux\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriverLinux\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mac\":\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src//main//resources//drivers//chromedriverMac\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Operating system not supported.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static WebDriver getDriver(String testName) {\n WebDriver driver = getLocalChromeDriver();\n /* * * * * * * * * * * * * * * * * * * * * * * * */\n\n driver.manage().window().maximize();\n return driver;\n }", "private WebDriver getDriver() {\n return new ChromeDriver();\n }", "@BeforeMethod(alwaysRun = true)\n public void browserSetup(){\n driver = new ChromeDriver();\n }", "@ BeforeTest \n\tpublic void Amazon() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\resources\\\\chromedriver.exe\"); // to make the path portable create folder reources and put the element to it \n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.amazon.com/\");\n\t\tSystem.out.println(driver.getCurrentUrl());\t\n\t\tdriver.manage().window().maximize();\n\n}", "@BeforeClass\n public void BeforeTest(){\n Configuration.browser = \"Chrome\";\n\n }", "@Given(\"^the user launch chrome application$\")\r\n\tpublic void the_user_launch_chrome_application() throws Throwable {\n\t w.browser();\r\n\t}", "@Given(\"^launch an chrome browser$\")\r\n\tpublic void launch_an_chrome_browser() throws Throwable {\n\t sign.url();\r\n\t\t\r\n\t}", "public WebDriver initializeDriver(WebDriver driver) {\n \n ChromeOptions options = new ChromeOptions();\n\n options.addArguments(\"disable-infobars\");\n\n Map<String, Object> prefs = new HashMap<>();\n prefs.put(\"credentials_enable_service\", false);\n prefs.put(\"profile.password_manager_enabled\", false);\n\n options.setExperimentalOption(\"prefs\", prefs);\n\n driver = new ChromeDriver(options);\n driver.manage().window().maximize();\n return driver;\n }", "public static void main(String[] args) {\n \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\koorosh\\\\eclipse-workspace2\\\\Verizon_Home\\\\DriverVer\\\\chromedriver.exe\");\r\n\t\tChromeOptions option=new ChromeOptions();\r\n\t\t\r\n\t\toption.addArguments(\"--disable-notifications\");\r\n\t\t\r\n\t\tWebDriver driver=new ChromeDriver(option);\r\n\t\t\r\n\t\tdriver.get(\"http://www.sprint.com\");\r\n\t}", "public static void main(String[] args) {\nString browser=\"ff\";\nif (browser.equals(\"chrome\")) {\n\tWebDriverManager.chromedriver().setup();\n\t// System.setProperty(\"webdriver.chrome.driver\", \"/Users/user/Downloads/chromedriver\");\n\tdriver=new ChromeDriver();\n}\nelse if (browser.equals(\"ff\")) {\n\tWebDriverManager.firefoxdriver().setup();\n\tdriver=new FirefoxDriver();\n}\nelse\n\tif (browser.equals(\"IE\")) {\n\t\tWebDriverManager.iedriver().setup();\n\t\tdriver=new InternetExplorerDriver();\n\t}\n\telse\n\t\tif (browser.equals(\"opera\")) {\n\t\t\tWebDriverManager.operadriver().setup();\n\t\t\tdriver=new OperaDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"no defined driver\");\n\t\t}\n\n\ndriver.get(\"https://google.com\");\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\t}", "@Test\n public void test1(){\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver2 = new ChromeDriver();\n\n\n\n driver2.get(url);\n bekle(2000);\n driver2.quit();\n\n\n\n }", "@Given(\"I set up my Chrome Driver\")\n\tpublic void i_am_on_Magalu_HomePage() {\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--start-maximized\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:/Users/gocruz/eclipse-workspace/portal.compras/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(options);\n\n\t}", "public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}", "public WebDriver initializeDriver() {\n System.setProperty(\"webdriver.chrome.driver\", projectPath + \"//src//main//resources//chromedriver\");\n driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n }", "@BeforeClass\n public static void setup(){\n WebDriverManager.chromedriver().setup();\n webDriver = new ChromeDriver();\n webDriver.manage().window().maximize();\n webDriver.manage().timeouts().implicitlyWait(3000, TimeUnit.MILLISECONDS);\n }", "public void setUpMethod(){\n driver = WebDriverFactory.getDriver(\"Chrome\");\n //maximize the page\n driver.manage().window().maximize();\n //implicit wait\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n }", "@BeforeClass\n public static void setup() {\n String driverPath = \"\";\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\n driver = new ChromeDriver();\n driver.manage().window().maximize();\n }", "public String getHeadless() {\n\t\tif (headless) {\n\t\t\treturn \"true\";\n\t\t} else {\n\t\t\treturn \"false\";\n\t\t}\n\t}", "@BeforeTest\r\n\tpublic void beforeTest() throws MalformedURLException {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PDC2B-Training.pdc2b\\\\Downloads\\\\Selenium Drivers\\\\BrowserDriver\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(5000, TimeUnit.SECONDS);\r\n\t}", "private void setLocalWebdriver() {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setJavascriptEnabled(true);\n capabilities.setCapability(\"handlesAlerts\", true);\n switch (getBrowserId(browser)) {\n case 0:\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n driver.set(new InternetExplorerDriver(capabilities));\n break;\n case 1:\n driver.set(new FirefoxDriver(capabilities));\n break;\n case 2:\n driver.set(new SafariDriver(capabilities));\n break;\n case 3:\n driver.set(new ChromeDriver(capabilities));\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n }", "@Given(\"^Initialize the browser with Chrome$\")\r\n\tpublic void initialize_the_browser_with_Chrome() throws Throwable {\n\t\tdriver = DriverManager.getDriverInstance(\"chrome\", 20);\r\n\t\tSystem.out.println(\"Launched Chrome\");\r\n\t}", "public static void main(String[] args) {\n String str = getDriver(\"chrome\");\n System.out.println(str);\n\n }", "public RemoteWebDriver startApp(String url) {\n\t\treturn startApp(\"chrome\", url);\r\n\t}", "@BeforeMethod\n public void beforeMethod() {\n System.setProperty(\"webdriver.chrome.driver\",\n \"./src/test/resources/drivers/chromedriver\");\n System.setProperty(\"webdriver.gecko.driver\",\n \"./src/test/resources/drivers/geckodriver\");\n System.setProperty(\"webdriver.opera.driver\",\n \"./src/test/resources/drivers/operadriver\");\n\n // Initialize new WebDriver session\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setHeadless(false);\n\n driver = new ChromeDriver(chromeOptions);\n\n FirefoxOptions firefoxOptions = new FirefoxOptions();\n firefoxOptions.setHeadless(false);\n\n// driver = new FirefoxDriver(firefoxOptions);\n// driver = new SafariDriver();\n// driver = new OperaDriver();\n\n // Maximize browser window\n driver.manage().window().maximize();\n\n // Take screenshot of the web page and save it to a file\n// File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n// FileUtils.copyFile(scrFile, new File(\"./target/screenshot.png\"));\n }", "@Test(priority=1)\r\n\tpublic void OpenURLA() {\r\n\t WebDriverManager.chromedriver().setup();\r\n\t\t\r\n\t driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n \r\n\t\t driver = new ChromeDriver();\r\n\t\t driver.get(\"https://www.amazon.in/\"); // Open the url in chrome browser page\r\n\t }", "public static void chromeTest() throws Exception{\n driver = BrowserFactory.getDriver(\"chrome\");\n Thread.sleep(2000);\n\n driver.get(\"http://google.com\");\n Thread.sleep(3000);\n String title = driver.getTitle();\n driver.navigate().to(\"https://etsy.com\");\n Thread.sleep(2000);\n String title2 = driver.getTitle();\n driver.navigate().back();\n title = driver.getTitle();\n Thread.sleep(2000);\n driver.navigate().to(\"https://etsy.com\");\n title2 = driver.getTitle();\n driver.quit();\n }", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"E:\\\\chrome driver 90\\\\chromedriver_win32 (2)\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.get(\"https://demo.nopcommerce.com/\");\n\t\t\n\t\t//driver.switchTo().newWindow(WindowType.TAB); // ithu work agum but dependnces nala work agala\n\t\t//driver.switchTo().newWindow(WindowType.WINDOW);\n\t\t\n\t\tdriver.get(\"https://www.opencart.com/)\");\n\t\t\n\t\t\n\t\t\n\n\t}", "@Before\n public void start(){\n DesiredCapabilities caps = new DesiredCapabilities();\n driver = new FirefoxDriver(new FirefoxBinary(new File(\"C:\\\\Program Files (x86)\\\\Nightly\\\\firefox.exe\")), new FirefoxProfile(), caps);\n wait = new WebDriverWait(driver, 10);\n\n //IE\n// DesiredCapabilities caps = new DesiredCapabilities();\n// caps.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true);\n// WebDriver driver = new InternetExplorerDriver(caps);\n\n\n }", "public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // create object for using selenium driver;\n WebDriver driver=new ChromeDriver();\n\n //open browser\n driver.get(\"http://amazon.com\");// bumu exlaydu\n //driver.get(\"http://google.com\");\n // open website\n System.out.println(driver.getTitle());\n\n\n\n\n }", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"D:/Softwares/chromedriver/chromedriver.exe\");\n\t\t\n\t\tChromeOptions options=new ChromeOptions();\n\t\t\n\t\t\n\t\toptions.setPageLoadStrategy(PageLoadStrategy.EAGER);\n\t\t\n\t\tWebDriver driver=new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteCookieNamed(\"cricket\");\n\t\tdriver.get(\"https://www.cricbuzz.com/live-cricket-scores/37567/dc-vs-srh-33rd-match-indian-premier-league-2021\");\n\t\tdriver.navigate().back();\n\t\tdriver.close();\n\t\t\n\t}", "@BeforeSuite\n\t\n\tpublic void setUp()\n\t{\n\t\t\n\t\tSystem.out.println(\" set system property for chrome\");\n\t}", "public static ChromeOptions chromeCfg()\n {\n Map<String, Object> prefs = new HashMap<String, Object>();\n ChromeOptions cOptions = new ChromeOptions();\n\n // Settings\n prefs.put(\"profile.default_content_setting_values.cookies\", 2);\n prefs.put(\"network.cookie.cookieBehavior\", 2);\n prefs.put(\"profile.block_third_party_cookies\", true);\n\n // Create ChromeOptions to disable Cookies pop-up\n cOptions.setExperimentalOption(\"prefs\", prefs);\n\n return cOptions;\n }", "public static void main(String[] args) {\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"D:/workspace/chromedriver\");\r\n\t\t //System.setProperty(\"webdriver.chrome.driver\", ...);\r\n\t\t \r\n\t\t System.setProperty(\"selenide.browser\", \"Chrome\");\r\n\t\t Configuration.browser=\"chrome\";\r\n\t\t open(\"http://google.com\");\r\n\t\t //$(By.id(\"registerLink\")).pressEnter();\r\n\t\t }", "private DesiredCapabilities getChromeCapabilities(DesiredCapabilities chromeCapabilities) {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"G:\\\\workspace\\\\Jarvis\\\\src\\\\test\\\\resources\\\\lib\\\\chromedriver.exe\");\n\t\t\n\t\tchromeCapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\tchromeCapabilities.setCapability(CapabilityType.SUPPORTS_ALERTS, true);\n\t\tchromeCapabilities.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.ACCEPT);\n\t\treturn chromeCapabilities;\n\t}", "public static void main(String[] args)throws InterruptedException {\nSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Hyma\\\\Downloads\\\\chromedriver.exe\");\r\nWebDriver driver=new ChromeDriver();\r\ndriver.get(\"https://hidden-chamber-33381.herokuapp.com/#/\");\r\nThread.sleep(5000);\r\nSystem.out.println(driver.getTitle());\r\ndriver.findElement(By.xpath(\"//*[@id='app-view-container']/div[1]/div/div/div[1]/div/div[1]/a\")).click();\r\ndriver.findElement(By.id(\"username\")).sendKeys(\"admin\");\r\ndriver.findElement(By.id(\"password\")).sendKeys(\"admin\");\r\ndriver.findElement(By.xpath(\"//*[@id='login-page']/div/form/div[3]/button[2]\")).click();\r\nSystem.out.println(driver.getTitle());\r\n\t\t\r\n\r\n\t}", "@Test\n\tpublic void loginFailureChrome() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"test/de/saxsys/treasurehunting/webdrivers/chromedriver.exe\");\n\t\tHelpers.running(\n\t\t\t\tHelpers.testServer(3333,\n\t\t\t\t\t\tHelpers.fakeApplication()),\n\t\t\t\tChromeDriver.class, new LoginFailureCallback());\n\t}", "public static void main(String[] args) {\n System.setProperty(\"webdriver.chrome.driver\",\"src/main/resources/chromedriver.exe\");\n //setting the chrome options before defining the driver\n ChromeOptions options = new ChromeOptions();\n //set the driver to be maximized\n options.addArguments(\"start-maximized\");\n //set the driver to be incognito\n options.addArguments(\"incognito\");\n //run the driver in headless mode\n //options.addArguments(\"headless\");\n\n\n //defining the web driver that you will be using\n WebDriver driver = new ChromeDriver(options); //options variable should be passed here\n//create array list\n ArrayList<String> firstname = new ArrayList<>();\n firstname.add(\"Johnny\");\n firstname.add(\"Tony\");\n firstname.add(\"Barry\");\n\n ArrayList<String> lastname = new ArrayList<>();\n lastname.add(\"Robbie\");\n lastname.add(\"Papi\");\n lastname.add(\"Mama\");\n\n\n ArrayList<String> month = new ArrayList<>();\n month.add(\"June\");\n month.add(\"May\");\n month.add(\"July\");\n\n ArrayList<String> day = new ArrayList<>();\n day.add(\"12\");\n day.add(\"11\");\n day.add(\"10\");\n\n ArrayList<String> year = new ArrayList<>();\n year.add(\"1966\");\n year.add(\"1969\");\n year.add(\"1976\");\n\n ArrayList<String> SSN = new ArrayList<>();\n SSN.add(\"111222\");\n SSN.add(\"111224\");\n SSN.add(\"111265\");\n\n\n ArrayList<String> zipcode = new ArrayList<>();\n zipcode.add(\"11223\");\n zipcode.add(\"11224\");\n zipcode.add(\"11225\");\n //for loop\n\n for(int i = 0; i < firstname.size(); i++) {\n\n //navigate to uhc.com\n driver.navigate().to(\"https://www.UHC.com\");\n //click on find a doctor link\n Reusable_Method.click(driver, \"//*[@aria-label='Find a Doctor']\", \"Find a Doctor\");\n //click on find a provider\n Reusable_Method.click(driver, \"//*[@id='btn-sign-in']\", \"Find a Provider\");\n\n //need to store get window handles command in as ArrayList to switch to different tab(S)\n ArrayList<String> tabs = new ArrayList<>(driver.getWindowHandles());\n //switch to second tab\n driver.switchTo().window(tabs.get(1));\n\n //click on register now\n Reusable_Method.click(driver, \"//*[@id='registerbutton']\", \"Register Button\");\n //id='piFirstName'\n\n //enter firstname\n Reusable_Method.sendKeys(driver,\"//*[@id='firstName']\",firstname.get(i),\"First Name Field\");\n\n //enter last name\n Reusable_Method.sendKeys(driver,\"//*[@id='lastName']\",lastname.get(i),\"First Name Field\");\n\n //click month\n Reusable_Method.click(driver, \"//*[@id='dob_month_input']\", \"month Field\");\n\n //select month\n Reusable_Method.DropDown(driver,\"//*[@id='dob_month_input']\",month.get(i),\"month Field\");\n //id='dob_month_input'\n\n //enter day\n Reusable_Method.sendKeys(driver,\"//*[@id='dob_day']\",day.get(i),\"Day Field\");\n\n //enter year\n Reusable_Method.sendKeys(driver,\"//*[@id='dob_year']\",year.get(i),\"Year Field\");\n\n //click no\n Reusable_Method.click(driver, \"//*[@id='ssn_container']\", \"SSN button Field\");\n\n //enter social\n Reusable_Method.sendKeys(driver,\"//*[@id='ssnLastSixDigits']\",SSN.get(i),\"SSN Field\");\n\n //enter zip\n Reusable_Method.sendKeys(driver,\"//*[@id='zipCode']\",zipcode.get(i),\"zipcode Field\");\n //click continue\n Reusable_Method.click(driver, \"//*[@id='submitBtn']\", \"Continue Field\");\n //capture error\n Reusable_Method.Capture(driver,\"//*[@class='ErrorContent--3ZzRv']\",\"Error Field\");\n //close window\n driver.close();\n //switch back to previous tab\n driver.switchTo().window(tabs.get(0));\n //renavigate back to UHC\n driver.navigate().to(\"https://www.UHC.com\");\n\n\n\n\n\n\n\n\n }// end of loop\n\n\n\n\n\n\n\n\n\n\n }", "@Override\n public RemoteWebDriver getDriver() {\n\n File chromeFile = new File(Config.getProperty(Config.CHROME_PATH));\n System.setProperty(\"webdriver.chrome.driver\", chromeFile.getAbsolutePath());\n\n ChromeDriverService service = new ChromeDriverService.Builder()\n .usingDriverExecutable(chromeFile)\n .usingAnyFreePort().build();\n Driver.chromeService.set(service);\n try {\n service.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"--no-sandbox\");\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\n return new ChromeDriver(capabilities);\n }", "public static void main(String[] args) throws IOException {\n\r\n\r\n\t WebDriver driver;\r\n\t ChromeOptions options=new ChromeOptions();\r\n\t options.addArguments(\"C:\\\\chromedriver.exe\"); \r\n\t\tDesiredCapabilities capabilities=DesiredCapabilities.chrome();\r\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY,options);\r\n\t\tdriver=new RemoteWebDriver(new URL(\"http://192.168.71.1:5555/wd/hub\"),capabilities);\r\n driver.get(\"http://www.baidu.com\");\r\n \r\n \r\n \r\n//\t\tWebDriver driver;\r\n//\t\tProfilesIni allProfiles =new ProfilesIni();\r\n// FirefoxProfile profile=allProfiles.getProfile(\"default\");\r\n// DesiredCapabilities capabilities=DesiredCapabilities.firefox();\r\n//\t\tdriver=new RemoteWebDriver(new URL(\"http://192.168.71.1:5555/wd/hub\"),capabilities);\r\n//\t\tdriver.get(\"http://www.baidu.com\");\r\n\t}", "public static void main(String[] args) {\n\t\tDesiredCapabilities ch=DesiredCapabilities.chrome();\n\t\t//ch.acceptInsecureCerts();\n\t\tch.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\n\t\tch.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\n\t\t//Belows to your local browser\n\t\tChromeOptions c= new ChromeOptions();\n\t\tc.merge(ch);\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\exefiles\\\\chromedriver.exe\");\n\t\tWebDriver driver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\t//above step will maximise the window before executing the code\n\t\t\n\t\tdriver.manage().deleteAllCookies();\n\t\t//by adding this method to the script we can delete all the cookies before executing the code\n\t\t\n\t\tdriver.manage().deleteCookieNamed(\"abcd\");\n\t\t// this method will delete particular cookie mention in the method instead of deleting all the cookies\n\t\t\n\t\t\n\n\n\t}", "public void browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/Driver/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();// maximize the window\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\n\t}", "@BeforeClass\npublic void beforeClass() throws MalformedURLException {\n\tDesiredCapabilities caps = new DesiredCapabilities();\n\tcaps.setCapability(\"deviceName\", \"Xiaomi Redmi Note 5 Pro\");\n caps.setCapability(\"platformName\", \"android\");\n caps.setCapability(\"automationName\", \"UiAutomator2\");\n caps.setCapability(\"appPackage\", \"com.android.chrome\");\n caps.setCapability(\"appActivity\", \"com.google.android.apps.chrome.Main\");\n caps.setCapability(\"noReset\", true);\n\n // Instantiate Appium Driver\n URL appServer = new URL(\"http://0.0.0.0:4723/wd/hub\");\n driver = new AndroidDriver<MobileElement>(appServer, caps);\n \n}", "@Before\n public void setUp() throws Exception {driver = new ChromeDriver();\n// baseUrl = \"https://www.google.com/\";\n// driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n// \n \n\t \n\t baseUrl = \"https://mern-crud.herokuapp.com\";\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/usr/bin/chromedriver\");\n\t\t\t\n\t\t\tdriver = new ChromeDriver();\n\t\t\t\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t\t\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t\n }", "public static WebDriver initializeChromeDriver() throws Exception {\n\n\t\tFile file = null;\n\t\tChromeDriverService chromeService = null;\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\n\t\tif (os.contains(\"win\")){\n\t\t\t//Operating system is based on Windows\n\t\t\tfile = new File(Constants.CHROMEDRIVER_EXE);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new Exception(\"Erro ao localizar o driver\");\n\t\t\t}\n\t\t\tchromeService = new ChromeDriverService.Builder()\n\t\t\t\t\t.usingDriverExecutable(new File(Constants.CHROMEDRIVER_EXE))\n\t\t\t\t\t.usingAnyFreePort().build();\n\n\t\t} else if (os.contains(\"x\") || os.contains(\"mac\") || os.contains(\"osx\")){\n\t\t\t//Operating system is Apple OSX based\n\t\t\tfile = new File(Constants.CHROMEDRIVER_MAC);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new Exception(\"Erro ao localizar o driver\");\n\t\t\t}\n\t\t\tchromeService = new ChromeDriverService.Builder()\n\t\t\t\t\t.usingDriverExecutable(new File(Constants.CHROMEDRIVER_MAC))\n\t\t\t\t\t.usingAnyFreePort().build();\n\n\t\t} else if (os.contains(\"nix\") || os.contains(\"aix\") || os.contains(\"nux\")){\n\t\t\t//Operating system is based on Linux/Unix/*AIX\n\t\t\tfile = new File(Constants.CHROMEDRIVER_LINUX);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tthrow new Exception(\"Erro ao localizar o driver\");\n\t\t\t}\n\t\t\tchromeService = new ChromeDriverService.Builder()\n\t\t\t\t\t.usingDriverExecutable(new File(Constants.CHROMEDRIVER_LINUX))\n\t\t\t\t\t.usingAnyFreePort().build();\n\t\t}\n\n\t\tchromeService.start();\n\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\tcapabilities.setCapability(InternetExplorerDriver.INITIAL_BROWSER_URL, \"about:blank\");\n\n\t\tRemoteWebDriver driver = new RemoteWebDriver(chromeService.getUrl(), capabilities);\n\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n\n\t\treturn driver;\n\t}", "@BeforeMethod\n\tpublic void registerChromeDriver() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\"/Users/shwetasharma/Documents/softwares/chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tutil = new Utils(driver);\n\t\t// Put a Implicit wait, this means that any search for elements on the\n\t\t// page\n\t\t// could take the time the implicit wait is set for before throwing\n\t\t// exception\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t// Launch the Applitools hackathon Website\n\t\tdriver.get(\"https://demo.applitools.com/hackathon.html\");\n\t\tdriver.manage().window().maximize();\n\n\t}", "@Given(\"^the user launch the chrome application$\")\r\n\tpublic void the_user_launch_the_chrome_application() throws Throwable {\n\t\tlaunchBrowser(\"chrome\");\r\n\t\t register= new Para_Registartion_page(driver);\r\n\t}", "public void setup(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"//Users//bpat12//Downloads//chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tSystem.out.println(\"launch browser\");\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.get(url);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tWebDriver driver = new browser_methods().getDriver(\"chrome\");\r\n\t\tdriver.get(\"http://newtours.demoaut.com/\");\r\n\r\n\t}", "@Before\n public void setWebDriver() throws IOException {\n System.setProperty(\"webdriver.chrome.driver\", DRIVER_PATH);\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"start-maximized\");\n driver = new ChromeDriver(chromeOptions);\n }", "private void setWebdriver() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir + fileSeparator + \"lib\" + fileSeparator + \"chromedriver.exe\");\n\t\tcapability = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"disable-infobars\");\n\t\tcapability.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tdriver = new ChromeDriver(capability);\n\t\tdriver.manage().deleteAllCookies();\n\t\t_eventFiringDriver = new EventFiringWebDriver(driver);\n\t\t_eventFiringDriver.get(getUrl());\n\t\t_eventFiringDriver.manage().window().maximize();\n\n\t}", "public static void main(String[] args) throws MalformedURLException {\n\t\t\n\t\tDesiredCapabilities objRc=new DesiredCapabilities();\n\t\tobjRc.setBrowserName(\"chrome\");\n\t\tobjRc.setPlatform(Platform.WINDOWS);\n\t\tWebDriver driver=new RemoteWebDriver(new URL(\"http://localhost:4546/wd/hub\"),objRc);\n\t}", "public static ChromeDriver LaunchPage(String url) {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\tChromeDriver driver = new ChromeDriver();\n\t\ttry {\n\t\t\tdriver.get(url);\n\t\t} catch (WebDriverException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn driver;\n\t}", "Component createComponent(Component paramComponent) {\n/* 212 */ if (GraphicsEnvironment.isHeadless())\n/* */ {\n/* 214 */ return null;\n/* */ }\n/* 216 */ return new HeavyWeightWindow(getParentWindow(paramComponent));\n/* */ }", "@BeforeClass\n\tpublic void beforeClass() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".\\\\browserDrivers\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\texplicitWait = new WebDriverWait(driver, 10);\n\t\tjsExecutor = (JavascriptExecutor) driver;\n//\t\texplicitWait = new WebDriverWait(driver, 30);\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n//\t driver.manage().window().maximize();\n\t}", "public static void main(String[] args) throws InterruptedException, IOException {\n\t\t\r\nSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\test\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\r\nChromeDriver dr = new ChromeDriver();\r\ndr.get(\"https://www.w3schools.com/\");\r\ndr.manage().window().maximize();\r\ndr.findElement(By.xpath(\"//*[text()='LEARN CSS']\")).click();\r\nSystem.out.println(dr.getTitle());\r\nFile src=dr.getScreenshotAs(OutputType.FILE);\r\nFileUtils.copyFile(src, new File(\"C:\\\\Users\\\\test\\\\\"+dr.getTitle()+\".png\"));\r\nThread.sleep(5000);\r\ndr.quit();\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.setProperty(\"webdriver.geckodriver.driver\", \"C:\\\\geckodriver.exe\");\n\t\t\n\t\t//create obj of firfox options\n\t\t\n\t\tFirefoxOptions fo=new FirefoxOptions();\n\t\t\n\t\tfo.addArguments(\"--headless\");\n\t\t\n\t\tWebDriver driver = new FirefoxDriver(fo);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.get(\"https://tekschoolofamerica.com/\");\n\t\tSystem.out.println(driver.getTitle());\n\n\t}", "@BeforeClass\n\tpublic void initializebrowser() throws InterruptedException {\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", Chrome);\n\t\t// driver = new ChromeDriver(); \n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"test-type\");\n\t\toptions.addArguments(\"--disable-popup-blocking\");\n\t\tdriver = new ChromeDriver(options);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(common.URL);\n\t\tThread.sleep(3000);\n\n\t\t\n\t\t/*DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t \n\t\t //Method and Description - void setCapability(java.lang.String capabilityName, boolean value)\n\t\t capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t \n\t\t //Among the facilities provided by the System class are standard input, standard output, and error output streams; access to externally defined \"properties\"; a means of loading files and libraries; and a utility method for quickly copying a portion of an array.\n\t\t System.setProperty(\"webdriver.ie.driver\", common.IE);\n\t\t \n\t\t //InternetExplorerDriver(Capabilities capabilities)\n\t\t WebDriver driver = new InternetExplorerDriver(capabilities);\n\t\t \n\t\t driver.manage().window().maximize();\n\t\t driver.get(common.URL);\n\t\t Thread.sleep(3000);*/\n\t\t\n\t}", "@Before\n public void setUp() throws Exception {\n URL = \"https://www.facebook.com/\";\n\t//baseUrl = \"https://www.katalon.com/\";\n System.setProperty(\"webdriver.chrome.driver\", \"E:\\\\Documentos\\\\Java Drivers\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n // driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n }", "@Before\n public void Setup() { //this is done before every test, chrome driver is saved in a specific location\n\n System.setProperty(\"webdriver.chrome.driver\",\n Constant.CROMEDRIVER);\n\n driver = new ChromeDriver();\n }", "@BeforeClass\r\n public void beforeClass() {\n \tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Tuan\\\\Downloads\\\\chromedriver.exe\");\r\n \tdriver = new ChromeDriver();\r\n \tdriver.get(\"http://daominhdam.890m.com/\");\r\n\t}", "@Test\n public void myTest() throws Exception {\n\n WebDriver driver = new ChromeDriver();\n\n driver.get(\"http://www.google.com\");\n\n // RemoteWebDriver does not implement the TakesScreenshot class\n // if the driver does have the Capabilities to take a screenshot\n // then Augmenter will add the TakesScreenshot methods to the instance\n WebDriver augmentedDriver = new Augmenter().augment(driver);\n File screenshot = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.FILE);\n\n\n //File screenshot = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);\n // Now you can do whatever you need to do with it, for example copy somewhere\n FileUtils.copyFile(screenshot, new File(\"C:\\\\Dev\\\\screenshot.png\"));\n\n driver.quit();\n }", "@BeforeTest\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PSQA\\\\Desktop\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.booking.com/\");\n\t\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(100);\n\t\t\n}", "protected DesiredCapabilities getCapabilitiesForChrome(ExtentTest currentTest, ExtentReportGenerator extentReportGenerator){ //local physical device support for android still pending\n\t\tDesiredCapabilities desCap = new DesiredCapabilities();\n\t\t//desired caps go here\n\t\treturn desCap;\n\t}" ]
[ "0.7396299", "0.6912096", "0.67882735", "0.6571952", "0.65674406", "0.65285647", "0.6475248", "0.62566274", "0.61946577", "0.61924076", "0.6174309", "0.613815", "0.6130195", "0.6075498", "0.60255355", "0.60232687", "0.59300965", "0.59206223", "0.5897919", "0.5860622", "0.5843829", "0.58259225", "0.5788965", "0.5741927", "0.5701437", "0.5699198", "0.568616", "0.5644778", "0.5617748", "0.5568494", "0.55668265", "0.55626076", "0.5562108", "0.555818", "0.55488276", "0.5542404", "0.552619", "0.55240494", "0.55086744", "0.55079293", "0.5491142", "0.5487348", "0.54827255", "0.54716146", "0.54657614", "0.54548264", "0.54477715", "0.54137206", "0.54059887", "0.5401511", "0.539879", "0.5395996", "0.53832203", "0.5379623", "0.5368566", "0.5365057", "0.5359771", "0.53580844", "0.5355851", "0.53425026", "0.53413534", "0.5336716", "0.5322765", "0.53202873", "0.53115624", "0.5311554", "0.53113705", "0.53052926", "0.5284301", "0.5270322", "0.5267556", "0.5266239", "0.5256471", "0.525387", "0.52501637", "0.52447957", "0.52412915", "0.5233926", "0.523209", "0.5227583", "0.52194047", "0.52189684", "0.52100676", "0.5202625", "0.51909935", "0.5184901", "0.5184349", "0.518215", "0.5178073", "0.51762456", "0.5153407", "0.5128583", "0.51279026", "0.51269615", "0.51237756", "0.5119881", "0.5119175", "0.511779", "0.5115374", "0.51149714", "0.5111526" ]
0.0
-1
WebElement wb=driver.findElement(By.xpath("//span[.='Hello. Sign in']")); Actions act=new Actions(driver); act.moveToElement(wb).perform(); driver.findElement(By.xpath("//span[.='Sign Out']")).click(); driver.close();
@AfterMethod public void closeapp() { driver.quit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickLogout() throws InterruptedException {\n\n logoutGuru99= driver.findElement(By.xpath(\"//a[contains(text(),'Log out')]\"));\n logoutGuru99.click();\n Thread.sleep(500);\n driver.quit();\n\n }", "@When(\"^Click on Sign Up Button$\")\npublic void click_on_Sign_Up_Button() throws Throwable \n{\n\tdriver.findElement(By.xpath(\"//*[@id=\\\"login-block\\\"]/div/ul/li[1]/a\")).click();\n\tSystem.out.println(\"User is successfully navigated to Registration screen\");\n \n}", "public static void signOut(WebDriver driver) {\n driver.get(\"http://localhost:3000\");\n WebElement profileButton = TestUtils.getElementByXPath(driver, \"//*[text()='My Profile']\");\n if (profileButton != null) {\n profileButton.click();\n WebElement signOutButton = TestUtils.getElementByXPath(driver, \"//*[text()='Sign out']\");\n assert signOutButton != null;\n signOutButton.click();\n }\n\n }", "public static void signOut(){\n\t\tActions action_logout = new Actions(driver);\n\t\tWebElement UI = driver.findElement(By.id(\"UserNavigationTabsContainer\"));\n\t\taction_logout.moveToElement(UI).build().perform();\n\t\tdriver.findElement(By.linkText(\"Logout\")).click();\t\n\t\tpause(500);\n\t}", "public static void logout(){\n driver.findElement(By.id(\"ctl00_logout\")).click();\n\n }", "public void signOut(){\n \n\t // click on the sign in/out drop down menu\n \t new WebDriverWait (DRIVER, 5)\n \t .until (ExpectedConditions.presenceOfElementLocated(signOutDropDownMenuLocator))\n \t .click();\n \t \n \t // click on the sign out link\n \t DRIVER.findElement(signOutLinkLocator).click();\n \t \n \t // wait for sign out to complete\n \t new WebDriverWait (DRIVER, 5).until(\n \t\t\t ExpectedConditions.visibilityOfElementLocated(navigationBarSignInLinkLocator));\n }", "public void click_logout() {\n\t\tSystem.out.println(\" Logging out..\");\n\t\tWebElement el1 = driver.findElement(menu_item_logout);\n\t\tActions action = new Actions(driver);\n\t\taction.moveToElement(el1).click().perform();\n\t}", "@Test\n public void logIn()throws InterruptedException{\n clickByCss(\".nav-signin-tt.nav-flyout #nav-signin-tooltip #nav-signin-tooltip .nav-action-button span.nav-action-inner\");\n clickByCss(\".nav-action-button span.nav-action-inner\");\n //clickByXpath(\"html/body/div[1]/header/div/div[1]/div[4]/div[1]/div[1]/a/span\");\n sleepFor(2);\n }", "public void signOut() {\n ReusableActionsPageObjects.clickOnElement(driver, signOut, logger, \"log out.\");\n }", "public void ConfirmSignOut(){\n ReusableActionsPageObjects.clickOnElement(driver, ConfirmSignOut, logger, \"confirm log out\");\n }", "public void logout() throws InterruptedException{\n\t\t\n\t\tdriver.findElement(By.cssSelector(\".gb_8a.gbii\")).click();\n\t\tThread.sleep(2000);\n\t\t driver.findElement(By.xpath(\".//*[text()='Sign out']\")).click();\n\t}", "public void logout(){\n logger.debug(\"logout from the application\");\n driver.findElement(oLogout).click();\n new WebDriverWait(driver,10).until(\n ExpectedConditions.titleIs(\"Sign-on: Mercury Tours\"));\n\n }", "@When ( \"I log out\" )\n public void logOut () {\n driver.findElement( By.id( \"logout\" ) ).click();\n }", "public void LogoutAction(WebDriver driver) throws Exception {\n\t\t\t\r\n\tSet <String> handles2111 =driver.getWindowHandles();\r\n Iterator<String> it2111 = handles2111.iterator();\r\n \r\n //iterate through your windows\r\n while (it2111.hasNext()){\r\n String newwin = it2111.next();\r\n driver.switchTo().window(newwin);\r\n }\r\n System.out.println(\"Wait on Dashboard 314\");\r\n \r\n Thread.sleep(4000);\r\n \r\n driver.switchTo().defaultContent();\r\n System.out.println(\"default frame\");\r\n \r\n driver.switchTo().frame(\"Login\");\r\n System.out.println(\"after frame\");\r\n \t\t\r\n driver.findElement(By.linkText(\"Log out\")).click();\r\n\tSystem.out.println(\"Clicked on Log out Link 325\");\r\n\t\t \r\n Alert alert6 = driver.switchTo().alert();\r\n alert6.accept();\r\n System.out.println(\"Clicked OK on Alert Pop up and Logged out successfully\");\r\n\t\r\n\t}", "@When(\"^Clicking on login button$\")\npublic void clicking_on_login_button() throws Throwable {\n driver.findElement(By.xpath(\"//*[@id=\\\"loginfrm\\\"]/button\")).click();\n}", "private void movetoexpectedelement(WebDriver driver2, WebElement signoutimg2) {\n\t\r\n}", "public void clickSignOutLink()\n\t{\n \telementUtils.performElementClick(wbSignOutLink);\n\t}", "@When(\"^click on Login Button$\")\npublic void click_on_Login_Button() throws Throwable \n{\n\tdriver.findElement(By.id(\"form-login_submitAuth\")).click();\n}", "public void logout() throws Exception {\n\n Log.info(\"Logging out the user\");\n sleep(2000);\n /*$(LoginOutRepo.uatAdmin).click();\n sleep(1000);\n $(LoginOutRepo.logout).click();\n Log.info(\"Logout successful\");*/\n moveToElement(By.cssSelector(\"img[alt='Profile Picture']\"));\n $(LoginOutRepo.logout).click();\n\n }", "public void clickSignIn() {\r\n\t\tdriver.findElement(signIn).click();\r\n\t}", "@Test\r\n\tpublic void test_Logout() throws Exception{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Click on profile\r\n\t\t\tdriver.findElement(By.xpath(object.getProperty(\"R_profile\"))).click();\r\n\t\t\t //click on logout\r\n\t\t\tdriver.findElement(By.xpath(object.getProperty(\"R_logout\"))).click();\r\n\t\t\t\r\n\t\t\t/*// Click on alert button\r\n\t\t\tdriver.findElement(By.id(\"popup_ok\")).click();\r\n\t\t\t//Click on Logout button.\r\n\r\n\t\t\tdriver.findElement(By.xpath(\"/html/body/div[3]/div/section/div/li/button\")).click();\r\n*/\r\n\t\t\tAlert alert = driver.switchTo().alert();\r\n\t\t\tThread.sleep(3000);\r\n\t\t\talert.accept();\r\n\r\n\t\t\t \r\n\t\t\t Thread.sleep(3000);\r\n\t\t\t// Utility.writeResult(\"Ppass\",76,5);\r\n\t\t\tUtility.getscreenshot(\"Logout\",driver);\t\t\t\t \r\n\t\t\tLog.info(\"logout Page\");\r\n\t\t\tReporter.log(\"logout Page\");\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\t // Utility.writeResult(\"PFail\",76,5);\r\n\t\t\tLog.info(\"Unable to logout\");\r\n\t\t\tReporter.log(\"Unable to logout\");\r\n\t\t\tthrow new Exception();\r\n\t\t}\r\n\t}", "public static void logout() {\n click(MY_ACCOUNT_DROPDOWN);\n click(LOGOUT_BUTTON);\n }", "public void clickLogin(){\n\t\t\tdriver.findElement(login).click();\n\t}", "public static void signin() {\n browseSetUp(chromeDriver, chromeDriverPath, url);\n // click on my account web element\n driver.findElement(By.cssSelector(\"#headerMyAccount > div.MyAccount__icon > div > div.HeaderIcon__primary > svg\")).click();\n // step two: enter your credentials\n //valid user name:\n driver.findElement(By.cssSelector(\"#SPSOSignIn > a > span\")).click();\n // step three: enter valid email\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\n // valid passoword:\n driver.findElement(By.id(\"password-input-field\")).sendKeys(\"java206java206\");\n // click on sign in\n driver.findElement(By.cssSelector(\"#single-signin__body > div > div.col__12-12.col__8-12--xs.u--paddingNone-top.col__4-12--lg.col__4-12--md.col__6-12--sm > form > button > span\")).click();\n\n\n\n\n }", "public void logout(){\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:- Mouse should be hovered on login icon\");\r\n\t\ttry{\r\n\t\t\t//mousehover(locator_split(\"LoginLogout\"));\r\n\t\t\tclick(locator_split(\"lnkMyAccounttip\"));\r\n\t\t\tclick(locator_split(\"btnlogout\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Mouse is hovered on accountInfo and logout is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Mouse is not hovered/logout with Webelement \"+elementProperties.getProperty(\"LoginLogout\")+\" or \"+elementProperties.getProperty(\"btnlogout\")+\" is not found\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkMyAccounttip\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnlogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Then(\"^Click on signup button$\")\t\t\t\t\t\n public void Click_on_signup_button() throws Throwable \t\t\t\t\t\t\t\n { \n \tdriver.findElement(By.xpath(\"//*[@id='accountDetailsNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\t\n }", "@When(\"^User LogOut from the Application$\")\r\n\tpublic void user_LogOut_from_the_Application() throws Throwable {\n\t\tdriver.findElement(By.xpath(\"//a[@class='ico-logout']\")).click();\r\n\t}", "public void clickLogin(){\n\t\tdriver.findElement(login).click();\n\t}", "@Test\n public void verify1() throws InterruptedException {\n// String parenthandle;\n// driver.get(\"https://www.mailinator.com/\");\n// Thread.sleep(3000);\n// parenthandle = driver.getWindowHandle();\n// driver.findElement(By.xpath(\"//input[@id='inboxfield']\")).sendKeys(\"rmiller8\");\n// driver.findElement(By.xpath(\"//button[@class='btn btn-dark']\")).click();\n// Thread.sleep(3000);\n// driver.findElement(By.xpath(\"//div[@class='all_message-min_text all_message-min_text-3']\")).click();\n// // driver.findElement(By.linkText(\"Please click here\")).click();\n// //i could not click on link to verify email probably need to get in frame\n// int size = driver.findElements(By.xpath(\"/html/body/a\")).size();\n// System.out.println(size);\n// ((JavascriptExecutor)driver).executeScript(\"window.open();\");\n// ArrayList<String> tabs = new ArrayList <String>(driver.getWindowHandles());\n// System.out.println(tabs.size());\n// driver.switchTo().window(tabs.get(1));\n driver.get (\"http://ec2-52-53-181-39.us-west-1.compute.amazonaws.com/sign-in.html\");\n Thread.sleep(3000);\n driver.findElement(By.xpath(\"//input[@class='form-control ng-valid-maxlength ng-dirty ng-valid-parse ng-touched ng-empty ng-invalid ng-invalid-required']\")).sendKeys(\"[email protected]\");\n driver.findElement(By.xpath(\"//input[@class='form-control ng-pristine ng-untouched ng-empty ng-invalid ng-invalid-required']\")).sendKeys(\"121212\");\n driver.findElement(By.xpath(\"//button[@id='login']\")).click();\n\n }", "public void clickIconSignin()\n\t{\n \telementUtils.performElementClick(wbIconSignin); //wbIconSignin.click();\n\t}", "public void clickOnLogOutButton() {\n Reporter.addStepLog(\"click on logout button \" + _logOutOnNopCommerce.toString());\n clickOnElement(_logOutOnNopCommerce);\n log.info(\"click on logout button \" + _logOutOnNopCommerce.toString());\n }", "@Test(priority = 1)\n public void testLogout() throws InterruptedException {\n driver.findElement (By.xpath (\"//*[@id=\\\"mount_0_0\\\"]/div/div[1]/div[1]/div[2]/div[4]/div[1]/span/div/div[1]/i\")).click ();\n Thread.sleep (5000);\n //click on the logout button\n driver.findElement (By.xpath (\"//*[@id=\\\"mount_0_0\\\"]/div/div[1]/div[1]/div[2]/div[4]/div[2]/div/div[1]/div[1]/div[1]/div/div/div/div/div/div/div/div/div[1]/div/div[3]/div/div[4]/div/div[1]/div[2]/div/div/div\")).click ();\n //printout response based on status\n if(driver.getCurrentUrl ().contains (\"https://www.facebook.com/login\"))\n //Pass\n System.out.println (\"The Login page URL contains /login\");\n else\n //Fail\n System.out.println (\"The Login URL does not contain /login\");\n }", "public void clickToLogoutLink() {\n\t\twaitToElementClickable(driver,RegisterPageUI.LOGOUT_LINK);\n\t\tclickToElement(driver,RegisterPageUI.LOGOUT_LINK);\n\t}", "public void clickSignInButton() {\r\n\t\tsignInButton = driver.findElement(signInButtonSelector);\r\n\t\tsignInButton.click();\r\n\t\t\r\n\t}", "public static void Login(WebDriver driver){\n WebElement element = driver.findElement(By.xpath(\"//*[@id = 'txtUsername']\"));\n WebElement element2 = driver.findElement(By.xpath(\"//*[@id = 'txtPassword']\"));\n element.clear();\n element2.clear();\n element.sendKeys(\"Admin\");\n element2.sendKeys(\"admin123\");\n element2.submit();\n WebElement element3 = driver.findElement(By.xpath(\"//*[@id = 'menu_time_viewTimeModule']\"));\n element3.click();\n WebElement element4 = driver.findElement(By.xpath(\"//*[@id = 'menu_attendance_Attendance']\"));\n element4.click();\n WebElement element5 = driver.findElement(By.xpath(\"//*[@id = 'menu_attendance_punchIn']\"));\n element5.click();\n }", "public void clciklogin() {\n\t driver.findElement(loginBtn).click();\r\n\t \r\n\t //Print the web page heading\r\n\t System.out.println(\"The page title is : \" +driver.findElement(By.xpath(\"//*[@id=\\\"app\\\"]//div[@class=\\\"main-header\\\"]\")).getText());\r\n\t \r\n\t //Click on Logout button\r\n\t// driver.findElement(By.id(\"submit\")).click();\r\n\t }", "public void clickLogin() {\n\t\t driver.findElement(loginBtn).click();\n\t }", "@Test\t\t\n\tpublic void Login()\t\t\t\t\n\t{\t\t\n\t driver.get(\"https://demo.actitime.com/login.do\");\t\t\t\t\t\n\t driver.findElement(By.id(\"username\")).sendKeys(\"admin\");\t\t\t\t\t\t\t\n\t driver.findElement(By.name(\"pwd\")).sendKeys(\"manager\");\t\t\t\t\t\t\t\n\t driver.findElement(By.xpath(\"//div[.='Login ']\")).click();\t\t\n\t driver.close();\n\t}", "@Test\n public void signinvalidation() {\n\t SalesApplicationPage spg = new SalesApplicationPage(driver);\n if(spg.getPopUpSize()>0)\n\t {\n\t\t spg.getPopUp().click();\n\t }\n System.out.println(driver.getTitle());\n Assert.assertTrue(driver.getTitle().equals(\"Home | Salesforrrce\"));\n }", "public void logout() {\n\n $(logOutNavigator).click();\n driver = commonMethods.waitForElement(driver, logOffBtn);\n $(logOffBtn).click();\n $(loadingProgressIcon).should(disappear);\n }", "public void click_SIGN_IN() {\r\n\t\tbtn_SIGN_IN.click();\r\n\t}", "public void ClickMyAccount( ){\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:- My Account Link clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"LoginLogout\"));\r\n\t\t\tclick(locator_split(\"LoginLogout\"));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Link clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Link is not clicked \"+elementProperties.getProperty(\"LoginLogout\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\r\n\t}", "@Test\r\n\tpublic void test_2_SignIn() {\n\t\tdriver.findElement(By.cssSelector(\"#nav-link-accountList > span.nav-line-2\")).click();\r\n\t\tString signIn = driver.getTitle();\r\n\t\tAssert.assertEquals(signIn, \"Amazon Sign In\");\r\n\t\t// enter email\r\n\t\tdriver.findElement(By.id(\"ap_email\")).sendKeys(email);\r\n\t\t// enter password\r\n\t\tdriver.findElement(By.id(\"ap_password\")).sendKeys(password);\r\n\t\t// click on submit\r\n\t\tdriver.findElement(By.id(\"signInSubmit\")).click();\r\n\t\tSystem.out.println(\"Sign in is successful\");\r\n\t}", "static void logIn (WebDriver driver) {\n driver.findElement(By.xpath(\"//a[@id=\\\"sign-in\\\"]\")).click();\n driver.findElement(By.xpath(\"//input[@id=\\\"session_email\\\"]\")).\n sendKeys(\"[email protected]\");\n driver.findElement(By.xpath(\"//input[@id=\\\"session_password\\\"]\")).\n sendKeys(\"qwerty\");\n driver.findElement(By.cssSelector(\"input[value=\\\"Sign in\\\"]\")).click();\n }", "public static void main(String[] args) throws InterruptedException {\nWebDriver driver=new FirefoxDriver();\ndriver.get(\"file:/// C:/Users/viprava/Desktop/sample1.html\");\n//driver.findElement(By.id(\"/n\")).click();\n//Thread.sleep(2000);\n//driver.navigate().back();\nThread.sleep(2000);\ndriver.findElement(By.name(\"uname\")).click();\nThread.sleep(2000);\ndriver.navigate().back();\nThread.sleep(2000);\ndriver.findElement(By.className(\"abc\")).click();\nThread.sleep(2000);\ndriver.navigate().back();\nThread.sleep(2000);\ndriver.close();\n\t}", "public static void Android_MeemBah_Logout() throws Exception{\n\n try {\n Thread.sleep(3000);\n clickHarmburgerMenuBTN();\n\n AppiumDriver<MobileElement> appiumDriver = getAppiumDriver();\n waitToElement(\"//android.widget.Button[@text='Logout']\");\n\n appiumDriver.findElementByXPath(\"//android.widget.Button[@text='Logout']\").click();\n waitToElement(\"//android.widget.TextView[@text='Digital banking']\");\n ReportHelper.logReportStatus(LogStatus.PASS, \"Logged out successfully\");\n appiumDriver.quit();\n\n\n } catch (Exception e) {\n ReportHelper.logReportStatus(LogStatus.FAIL, \"Unable to Logout\" + e.getMessage());\n\n }\n\n }", "public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\mysystem\\\\SE drivers\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n driver.get(\"http://localhost:8888/index.php?action=index&module=Home\");\n driver.findElement(By.name(\"user_name\")).sendKeys(\"admin\");\n driver.findElement(By.name(\"user_password\")).sendKeys(\"password\");\n // driver.findElement(By.name(\"login_theme\")).select(\"softed\");\n driver.findElement(By.name(\"Login\")).click();\n //driver.findElement(By.xpath(\"//a[text()='Sign Out']\")).isSelected();\n boolean signout = verifyisDisplayed (\"//a[text()='Sign Out']\");\n if(signout=true) {\n// \tboolean test=driver.findElement(By.xpath(\"//a[text()='Sign Out']\")).isDisplayed();\n \tSystem.out.println(\"element is present and displayed \" +driver.findElement(By.xpath(\"//a[text()='Sign Out']\")).isDisplayed());\n }\t\n\t}", "public void clickgoButton(){\n \n \t \n driver.findElement(By.cssSelector(goButton)).click();\n }", "@Then (\"^SignIn with new credentials$\")\t\t\t\t\t\n public void SignIn_with_new_credentials() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n \tdriver.findElement(By.xpath(\"//*[@id='passwordNext']/content/span\")).click();\t\t\t\t\t\n }", "public void signOutOfDD()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignOutLink();\n\t\t\n\t}", "@When(\"^user should signout to exit from the loggedin page$\")\n\tpublic void user_should_signout_to_exit_from_the_loggedin_page() throws Throwable {\n\t\telementClick(pa.getAp().getLogout());\n\t\t\n\t \n\t}", "public void clickLogin() {\r\n\t\tdriver.findElement(SignIn).click();\r\n\t\t//SignIn.click();\r\n\t\t//SignIn.click();\r\n\t\t//return new LoginPage();\r\n\t}", "@Step(\"Log out\")\n public void logOut() {\n open();\n sighOutButton.click();\n }", "public void clickSignInButton() {\r\n\t\tdriver.findElement(signInButton).click();\r\n\t}", "public void test_Login() throws Exception {\n//\t\tSystem.setProperty(BrowType, BrowPath);\n//\t\tWebDriver driver = new ChromeDriver();\n\t\t\n//\t\tdriver.get(url);\n//\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\n\t\tdriver.findElement(By.id(\"emailAddress\")).sendKeys(EmailAddress);\n\t\tdriver.findElement(By.id(\"password\")).sendKeys(Password);\n\t\tdriver.findElement(By.id(\"signInButton\")).click();\n\t\tThread.sleep(5000);\n\t\t\n\t\tString ExpConfMsg2 = \"Signed in as \" + DisplayName + \"(Sign Out)\";\n\t\tString ConfMsg2 = driver.findElement(By.xpath(\"//*[@id='signedInAs']\")).getText();\n\t\tif(ConfMsg2.equals(ExpConfMsg2)) {\n\t\t\tSystem.out.println(\"Login functionality Passed. Confirmation Message that appeared is : \" + ConfMsg2);\n\t\t} else {\n\t\t\tSystem.out.println(\"Login functionality Failed. Confirmation Message that appeared is : \" + ConfMsg2);\n\t\t}\n\t\t\n\t\tdriver.quit();\n\t\t\n\t}", "@Test //Test to see you are able to buy policy and confirmation page is displayed\n public void policyConfirmationTest() throws InterruptedException {\n \t WebElement submitPolicy=driver.findElement(By.xpath(\"/html/body/center/form/center[3]/pre/input[3]\"));\n \t submitPolicy.click();\n \t assertTrue(driver.findElement(By.xpath(\"/html/body/center[2]/h3\")).isDisplayed()); \n\t Thread.sleep(3000);\n\t driver.close();\n\n}", "public void clickAnywhereInScreenToClosePopup(){\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:- Page should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"pageSKU\"));\r\n\t\t\tclick(locator_split(\"pageSKU\")); \r\n\t\t\tsleep(1000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Somewhere in SKU page clicked\");\r\n\t\t\tSystem.out.println(\"SKU page Clicked to close popup\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- SKU page is not clicked \"+elementProperties.getProperty(\"pageSKU\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"pageSKU\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t}", "public void clicklogoutiflogin(String welcome){\r\n\t\tString welcomemess = getValue(welcome);\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:- Logout Button should be clicked if its logged in\");\r\n\t\ttry{\r\n\t\t\tif(getAndVerifyPartialText(locator_split(\"Regwelcomemsg\"),welcomemess)) { \r\n\t\t\t\twaitForElement(locator_split(\"Pancakemenu\"));\r\n\t\t\t\tclick(locator_split(\"Pancakemenu\"));\r\n\t\t\t\twaitForElement(locator_split(\"Logoutbutton\"));\r\n\t\t\t\tclick(locator_split(\"Logoutbutton\"));\r\n\t\t\t\tclick(locator_split(\"Logoutuser\"));\r\n\t\t\t\twaitForPageToLoad(1000);\r\n\t\t\t\twaitForElement(locator_split(\"Pancakemenu\"));\r\n\t\t\t\tSystem.out.println(\"User has been logged out\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- User has been logged out\");\r\n\t\t\t}else{\t\r\n\t\t\t\tSystem.out.println(\"User is not logged in\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- User is not logged in\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Logout button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"Logoutbutton\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "private void clickSignOn() {\n\t\tthis.clickElement(signon);\n\t}", "private void clickInvite(){\n WebDriverHelper.clickElement(inviteButton);\n }", "@When(\"^Click on Register Button$\")\npublic void click_on_Register_Button() throws Throwable {\n\tdriver.findElement(By.id(\"registration_submit\")).click();\n\tSystem.out.println(\"Successfuly completed the regitration process\");\n \n}", "public void ClickSignIn() {\n if (lnkSignIn.isDisplayed()) {\n lnkSignIn.click();\n }\n else{System.out.println(\"Sign In link is not displayed\");\n }\n }", "public SignInPage selectSignInButtonFromNavBar() {\n \t new WebDriverWait (DRIVER, 5)\n \t .until (ExpectedConditions.presenceOfElementLocated(navigationBarSignInLinkLocator))\n \t .click();\n \t\n \t new WebDriverWait (DRIVER, 5).until(\n \t\t\t ExpectedConditions.stalenessOf(DRIVER.findElement(navigationBarSignInLinkLocator)));\n \t \n return new SignInPage(); \n }", "@Then(\"^user come back to main account page and log out$\")\n public void come_back_main_account_and_log_out() throws Exception{\n userAccountPage.clickBtnBackToAccount();\n userAccountPage.clickBtnLogOut();\n }", "public static void main(String[] args) throws InterruptedException {\n\t\tSystem.setProperty(\"Webdriver.chrome.driver\", \"C:\\\\Users\\\\Admin\\\\Desktop\\\\akii java\\\\17 may\\\\chromedriver_win32\");\r\n\t\tWebDriver driver= new ChromeDriver();\r\n\t\tdriver.get(\"https://www.amazon.in/gp/yourstore/home?ie=UTF8&action=sign-out&path=%2Fgp%2Fyourstore%2Fhome&ref_=nav_AccountFlyout_signout&signIn=1&useRedirectOnSuccess=1&\");\r\n\t\tdriver.manage().window().maximize();\r\n\t\tThread.sleep(1000);\r\n\t\tString Title=driver.getTitle();\r\n\t\tSystem.out.println(Title);\r\n\t\tdriver.findElement(By.xpath(\"//input[@type='email']\")).sendKeys(\"[email protected]\") ;\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.findElement(By.xpath(\"//input[@id=\\\"continue\\\"]\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.findElement(By.xpath(\"(//input[@type='password'])[1]\")).sendKeys(\"akshay@13\") ;\r\n\t\tThread.sleep(3000);\r\n\t\tdriver.findElement(By.xpath(\"//input[@id=\\\"signInSubmit\\\"]\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\tDimension count=driver.findElement(By.tagName(Title)).getSize();\r\n\t\tSystem.out.println(count);\r\n}", "public void logout() {\n\t\tlogger.info(\"Selenium testing logout starting...\");\n\t\twebDriverWait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(logoutText)));\n\t\twebDriver.findElement(By.linkText(logoutText)).click();\n\t\tlogger.info(\"Selenium testing logout complete...\");\n\t}", "public void clickLogout() {\n\t\ttry {\n\t\t\tUtility.simpleWait(2000);\n\t\t\tlogout.click();\n\t\t\tLog.addMessage(\"Logout option clicked\");\n\t\t\tUtility.simpleWait(3000);\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to click logout option\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to click logout option\");\n\t\t}\n\t}", "public void mouseOver_logout(){\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:- Mouse should be hovered on logout icon\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"logoutmover\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Mouse is hovered on logout\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Mouse is not hovered on logout with Webelement \"+elementProperties.getProperty(\"logoutmover\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"logoutmover\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public String Signup_logout_and_click_forgetpassword() {\n\tJavascriptExecutor js = (JavascriptExecutor)driver;\n\tjs.executeScript( \"arguments[0].click();\", ForgetPasswordButton );\n\tString text=signupPage.Email_value_of_the_user();\n\twait.SingleElementWait(\"//input[@id='resetemail']\");\n\tForgetPasswordTextbox.sendKeys(text);\n\tResetButton.click();\n\twait.SingleElementWait(\"//div[@class='alert alert-success']\");\n\tString successmessage=ForgetPasswordResetSuccessMessage.getText();\n\treturn successmessage;\n\t}", "public static WebDriver logout(WebDriver driver) throws InterruptedException\n\t{\n\t\tThread.sleep(2000);\n\t\tdriver.findElement(By.xpath(pro.getProperty(\"OpenCart.Logout.Xpath\"))).click();\n\t\tSystem.out.println(\"Logged Out Successfully\");\n\t\t//Checkpoint-1\n\t\tString logoutMSG = driver.findElement(By.xpath(pro.getProperty(\"OpenCart.Logout.Message.Xpath\"))).getText();\n\t\tAssert.assertEquals(logoutMSG, pro.getProperty(\"OpenCart.Logout.ExpectedMessage\"));\n\t\tSystem.out.println(\"Checkpoint 1 Passed\");\n\t\t//Checkpoint-2\n\t\tString loginLink = driver.findElement(By.xpath(pro.getProperty(\"OpenCart.Loginlink.Xpath\"))).getText();\n\t\tAssert.assertEquals(loginLink, pro.getProperty(\"OpenCart.ExpectedLoginLink\"));\n\t\tSystem.out.println(\"Checkpoint 2 Passed\");\n\t\treturn driver;\n\t}", "public static void tryLoginI(){\n\n System.setProperty(\"webdriver.chrome.driver\",\"resources/chromedriver.exe\");\n WebDriver driver = new ChromeDriver();\n\n\n driver.get(\"https://fasttrackit.org/selenium-test/\");\n driver.findElement(By.cssSelector(\".account-cart-wrapper > a\")).click();\n driver.findElement(By.cssSelector(\"a[title=\\\"Log In\\\"]\")).click();\n driver.findElement(By.cssSelector(\"input[title=\\\"Email Address\\\"]\")).sendKeys(\"[email protected]\");\n driver.findElement(By.cssSelector(\"#pass\")).sendKeys(\"test\");\n driver.findElement(By.cssSelector(\"#send2\")).click();\n driver.close();\n\n\n\n\n\n }", "public void clickloginbutton(){\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:- Login Button should be clicked\");\r\n\t\ttry{\r\n\t\t\tclick(locator_split(\"btnLogin\"));\r\n\t\t\tsleep(2000);\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Login Button is clicked\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Login button is not clicked with WebElement \"+elementProperties.getProperty(\"btnLogin\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnLogin\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public void clickSignInLink()\n\t{\n \telementUtils.performElementClick(wbSignInLink);\n\t}", "public void logIn() throws InterruptedException{\r\n\t\tdriver.get(\"http://automationpractice.com/index.php\");\r\n\t\ttry{\r\n\t\t\thome.clickSignIn();\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t\tSystem.out.println(\"Not in Home Page\");\r\n\t\t}\r\n\t\r\n\t\tsignIn.getUserName().sendKeys(userName);\t\t\r\n\t\tsignIn.getPassword().sendKeys(password);\r\n\t\tsignIn.clickLogin();\r\n\t\t\r\n\t\ttry{\r\n\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"header\\\"]/div[2]/div/div/nav/div[1]/a\"));//checking for element that is only on after the login is successful. Checking for Bob bobson.\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t\tSystem.out.println(\"You're not logged in\");\r\n\t\t}\r\n\t\tWebElement personalInfoBtn = driver.findElement(By.xpath(\"//*[@id=\\\"center_column\\\"]/div/div[1]/ul/li[4]/a/span\"));personalInfoBtn.click();\r\n\t\tWebElement lastName2 = driver.findElement(By.name(\"lastname\"));\r\n\t\tlastName2.clear();//clears your last name so when you update it, it doesnt concat with your last name.\r\n\t\tlastName2.sendKeys(LastName2);\r\n\t\tWebElement confirmationPass = driver.findElement(By.name(\"old_passwd\"));\r\n\t\tconfirmationPass.sendKeys(password);\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"center_column\\\"]/div/form/fieldset/div[11]/button/span\")).click();//find save button and click\r\n\t\t\r\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"header\\\"]/div[2]/div/div/nav/div[2]/a\")).click();//click log out\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void SwichLogingPageAndSignIn()\r\n {\r\n WaitTime(2000);\r\n driver.navigate().to(\"https://www.n11.com/giris-yap\");\r\n \r\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"nacre123456\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#loginButton\")).click();\r\n \r\n }", "@Test(priority = 4)\n\tpublic void case5_Logout() throws InterruptedException{\n\t\tcase1_Logout();\n\t\tdriver.navigate().back();\n }", "@Given(\"^I am on the Sign in page$\")\n\tpublic void I_am_on_the_Sign_in_page() throws Throwable {\n\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tdriver.findElement(By.linkText(\"Sign in\")).click();\n\t}", "private void waitforvisibleelement(WebDriver driver2, WebElement signoutimg2) {\n\t\r\n}", "public void clickTopRightSignintext()\n\t{\n\t\tdriver.findElement(_regflowTopRightSignintext).click();\n\t\tlog.info(\"Clicked Top Right Sign in Button\");\n\t}", "public void User_login()\r\n\t{\n\t\tdriver.findElement(FB_Locators.Signin_Email).clear();\r\n\t\tdriver.findElement(FB_Locators.Signin_Email).sendKeys(username);\r\n\t\t\r\n\t\t//Script using element referral..\r\n\t\tWebElement Password_Element=driver.findElement(FB_Locators.Signin_password);\r\n\t\tPassword_Element.clear();\r\n\t\tPassword_Element.sendKeys(password);\r\n\t\t\r\n\t\t//Login button using webelemnet referral\r\n\t\tWebElement Login_btn_Element=driver.findElement(FB_Locators.Signin_btn);\r\n\t\tLogin_btn_Element.click();\r\n\t}", "public static void main(String[] args) throws InterruptedException {\n\tWebDriver driver=new ChromeDriver();\n\tdriver.manage().window().maximize();\n\t\n\tdriver.get(\"http://localhost/login.do\");\n\t\n\tWebElement USTB = driver.findElement(By.id(\"username\"));\n\tUSTB.sendKeys(\"admin\");\n\t\n\tWebElement PWTB = driver.findElement(By.id(\"pwd\"));\n\tPWTB.sendKeys(\"manager\");\n\t\n\tWebElement LGBTN = driver.findElement(By.xpath(\"//div[text()='login'])\"));\n\tLGBTN.click();\n\t\n\n\tThread.sleep(2000);\nString actualTl = driver.getTitle();\nString hmepage=\"actiTIME - Enter Time-Track\";\nif(actualTl.equals(hmepage))\n\tSystem.out.println(\"Pass\");\nelse\n\tSystem.out.println(\"Fail\");\n Thread.sleep(2000);\nWebElement LGUT = driver.findElement(By.linkText(\"Logout\"));\nLGUT.click(); \n}", "@Then(\"^click on \\\"([^\\\"]*)\\\" icon$\")\npublic void click_on_icon(String arg1) throws Throwable \n{\n\tThread.sleep(3000);\n\tdriver.findElement(By.xpath(\"//button[@class=' btn btn-primary ']\")).click();\n\tdriver.findElement(By.xpath(\"//div[@class='alert alert-success']\")).isDisplayed();\n\t \n\n}", "public static void main(String[] args) {\n WebDriver driver = BrowserFactory.getDriver(\"chrome\");\n driver.get(\"http://a.testaddressbook.com/sign_in\");\n\n //Find element by name attribute\n WebElement email = driver.findElement(By.name(\"session[email]\"));\n email.sendKeys(\"[email protected]\");\n //Find element by id attribute\n WebElement password = driver.findElement(By.id(\"session_password\"));\n password.sendKeys(\"password\");\n // Find element by class attribute\n WebElement signInButton = driver.findElement(By.name(\"commit\"));\n signInButton.click();\n\n String expectedTitle = \"Address Book\";\n String actualTitle = driver.getTitle(); // returns the title of page\n BrowserUtilities.verifyEquals(actualTitle,expectedTitle);\n\n\n\n\n\n\n // driver.close(); // Close current tab\n driver.quit(); // Close ALL tabs\n }", "public void logoutWithOutLink() {\n\t\tlogger.info(\"Selenium testing logout starting...\");\n\t\twebDriver.get(baseUrl + \"/user/logout\");\n\t\tlogger.info(\"Selenium testing logout complete...\");\n\t}", "public void clickLoginBtn() {\r\n\t\tthis.loginBtn.click(); \r\n\t}", "@When(\"^click on login button$\")\n\tpublic void click_on_login_button() throws Throwable {\n\t\tdriver.findElement(By.xpath(\"//input[@name='btnLogin']\")).click();\n\t}", "public static void CustomLogin (WebDriver driver) throws InterruptedException {\r\n\t \r\n\t driver.findElement(PageGlobal.TopNavAccount).click();\r\n\t Thread.sleep(2000);\r\n//\t driver.findElement(PageGlobal.SignInto).click();\r\n//\t Thread.sleep(2000);\r\n\t\tdriver.switchTo().frame(\"iframe-signin-overlay\");\r\n\t driver.findElement(PageSignInModal.ModalUsername).clear();\r\n\t driver.findElement(PageSignInModal.ModalUsername).sendKeys(\"[email protected]\");\r\n\t driver.findElement(PageSignInModal.ModalPassword).clear();\r\n\t driver.findElement(PageSignInModal.ModalPassword).sendKeys(\"grapes123\");\r\n\t driver.findElement(PageSignInModal.ModalSigninButton).click();\r\n\t Thread.sleep(6000); \t \r\n\t}", "@Test(priority = 1)\n\tpublic void closedialog() throws InterruptedException {\n\t\tThread.sleep(1000);\n\t\tWebElement signX = driver.findElement(By.xpath(\"/html/body/div[3]/div[2]/div/div/div[1]/div/div[2]/div/button\"));\n\t\tsignX.click();\n\n\n\t}", "static void test(WebDriver driver, String usrnm, String pwd) {\n\t\tWebElement usernameBox = driver.findElement(By.xpath(\"//input[@id='name']\"));\r\n\t\tWebElement passwordBox = driver.findElement(By.xpath(\"//input[@id='password']\"));\r\n\t\tWebElement loginButton = driver.findElement(By.xpath(\"//input[@type='submit']\"));\r\n\t\t\t\r\n\t\t// Send values to input boxes\t\t\r\n\t\tusernameBox.sendKeys(usrnm);\r\n\t\tpasswordBox.sendKeys(pwd);\r\n\t\tloginButton.click();\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 30);\r\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(\"/html/body/div[4]/div[2]/div/div/div[1]/div/div[1]/div/div[1]/div/div[3]/div/div[2]/div/div/div/div[2]/div[2]/div[2]/div/div/div/div[2]/div/table/tbody/tr[5]/td[2]/div/div\")));\r\n}", "public void VerifyHomepage(){\r\n\t\t//String username = getValue(Email);\r\n\t//\tString password = getValue(Password);\r\n\r\n\t//\tclass Local {};\r\n\t\t/*Reporter.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:- My Account should be clicked and user should get logged in\");*/\r\n\t\ttry{\r\n\t\t\tsleep(3000);\r\n\t\t\t//driver.findElement(locator_split(\"btn_privacyok\")).click();\r\n\t\tclick(locator_split(\"btn_privacyok\"));\r\n\t\t\t\r\n\t\t\t/*Reporter.log(\"PASS_MESSAGE:- My Account is clicked and user is logged in\");*/\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- User is not logged in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "@Test(priority=26)\n\tpublic void verifyLoginPageByClickingOnLogoutOptionInDropdown() throws Exception {\n\t\tOverviewTradusPROPage overviewPage= new OverviewTradusPROPage(driver);\n\t explicitWaitFortheElementTobeVisible(driver,overviewPage.profileIconOnHeader);\n\t click(overviewPage.profileIconOnHeader);\n\t waitTill(1000);\n\t click(overviewPage.logoutOptionInProfileIconDropdown);\n\t explicitWaitFortheElementTobeVisible(driver,overviewPage.LoginText);\n\t waitTill(1000);\n\t Assert.assertTrue(driver.getCurrentUrl().equals(\"https://pro.tradus.com/login\"),\n\t \t\t\"Login Page is not displaying by cicking on logout option in dropdown\");\n\t}", "public void clickOnLogin() {\n\t\tWebElement loginBtn=driver.findElement(loginButton);\n\t\tif(loginBtn.isDisplayed())\n\t\t\tloginBtn.click();\n\t}", "@Test\n public void backToSignInTest() {\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n String actualResult = forgetPasswordPO\n .clickBackToSignInLink()\n .getSignInPO()\n .getSignInTitle();\n\n Assert.assertEquals(\"Welcome back!\", actualResult);\n }", "public HomePage clickOnLogin() {\n// Actions action = new Actions(driver);\n// action.moveToElement(login).build().perform();\n// closeAd.click();\n login.isDisplayed();\n login.click();\n return this;\n }", "public static void signInInvalidPassword() throws InterruptedException {\n // test case 1- sign in to home depot account\n // step one: ****Open Browser and Navigate to URL\n browseSetUp(chromeDriver, chromeDriverPath, url);\n // click on my account web element\n driver.findElement(By.cssSelector(\"#headerMyAccount > div.MyAccount__icon > div > div.HeaderIcon__primary > svg\")).click();\n // step two: enter your credentials\n //valid user name:\n driver.findElement(By.cssSelector(\"#SPSOSignIn > a > span\")).click();\n // step three: enter valid email\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\n // valid passoword:\n driver.findElement(By.id(\"password-input-field\")).sendKeys(\"fouad12345@#\");\n // click on sign in\n driver.findElement(By.cssSelector(\"#single-signin__body > div > div.col__12-12.col__8-12--xs.u--paddingNone-top.col__4-12--lg.col__4-12--md.col__6-12--sm > form > button > span\")).click();\n Thread.sleep(3000);\n driver.quit();\n\n\n\n }", "@AfterTest\n\t\tpublic void logout(){\n//Calling method to logout from the account and verify logout message.\n//'**********************************************************\n\t\t\tLogOutPage accountLogoutPage =myWishlistPage.logout();\n\t\t\tAssert.assertTrue(accountLogoutPage.getlogoutMsg().equals(\"Account Logout\"), \"Account Logout message is not displayed\");\n\t\t\textentTest.log(LogStatus.PASS,\"Account Logout message is displayed and the user is signed out from the account\");\n//'**********************************************************\n//Close the report\n//'**********************************************************\n\t\t\textentReports.endTest(extentTest);\n\t\t\textentReports.flush();\n\t\t\textentReports.close();\n\t\t}", "public PageBase click_on_login_submit_form_button () {\r\n HomePageClass homePage = new HomePageClass(driver);\r\n\r\n LGN_Login_submitBTN.click();\r\n\r\n WebDriverWait wait = getWait();\r\n wait.until(ExpectedConditions.visibilityOf(homePage.logout));\r\n\r\n return homePage;\r\n\r\n }", "public void clickOnLoginButton(){\n\t\tthis.loginButton.click();\n\t}", "public void clickGoToLogin(){\n\t\t\n\t\tgoToLoginBtn.click();\n\t\t\n\t}", "public void clickSignUpFromATemplate() {\n\t\tselenium.clickByXpath(signUp);\n\t}", "public void ClickClosepopupinShoppinginsight(){\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:- close 'x' image should be clicked for Add to Cart pop up\");\r\n\t\ttry{\r\n\t\t\tclick(locator_split(\"imgShoppinginsightPopupclose\"));\r\n\t\t\tSystem.out.println(\"close 'x' image is clicked for Add to Cart pop up\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- close 'x' image is clicked for Add to Cart pop up\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- close 'x' image is not clicked for Add to Cart pop up\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"imgShoppinginsightPopupclose\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}" ]
[ "0.7703198", "0.7415503", "0.74098164", "0.7380709", "0.737615", "0.7256528", "0.7216754", "0.7163167", "0.7048579", "0.70316625", "0.7022921", "0.7022819", "0.6992356", "0.69759077", "0.69702494", "0.69217", "0.69052905", "0.6828672", "0.6824615", "0.67736524", "0.67609704", "0.67414784", "0.6709217", "0.669538", "0.6681968", "0.66634953", "0.66187066", "0.65960133", "0.6585342", "0.6580708", "0.6576507", "0.6560322", "0.6551595", "0.6538645", "0.6533373", "0.65305823", "0.6505303", "0.6505001", "0.64930254", "0.64770645", "0.64683825", "0.64668113", "0.6458058", "0.64468116", "0.64465714", "0.6433262", "0.64301306", "0.6415136", "0.6391942", "0.6385005", "0.63788426", "0.63703007", "0.6369925", "0.6362524", "0.63619804", "0.6356168", "0.6356103", "0.6355458", "0.63494426", "0.63255554", "0.63171124", "0.6307826", "0.6301953", "0.6301834", "0.6294589", "0.6289076", "0.62884074", "0.62849545", "0.6283858", "0.6280456", "0.62655383", "0.6249568", "0.62495404", "0.6241802", "0.62385595", "0.6234159", "0.6229952", "0.62242484", "0.6223555", "0.6222054", "0.6220239", "0.62071824", "0.6204187", "0.6201362", "0.61962545", "0.6188378", "0.6180314", "0.6177864", "0.6177719", "0.6175328", "0.61399806", "0.6137242", "0.6130553", "0.6123615", "0.610772", "0.6105454", "0.6104454", "0.6101566", "0.6091101", "0.6069978", "0.60687315" ]
0.0
-1
Here the magic happens Recursive method which execute operations in order and also dealing parentheses expressions: 1: ^, sqrt 2: , / 3: +,
protected Double calculationEngine(String strExpression, List<Character> split) throws Exception { Pattern prio0 = Pattern.compile("[\\^]"); Pattern prio1 = Pattern.compile("[\\*\\/]"); Double result = 0.0; List<String> listExpressions = splitExpressions(strExpression, split); String lastOperator = ""; Double valueA = 0.0; for(String expression: listExpressions) { Double expressonValue = 0.0; String [] parseValue = expression.split("\\|"); StringBuilder value = new StringBuilder(parseValue[0]); if(value.toString().contains("sqrt(")) { int begin = value.toString().indexOf("sqrt("); String content = getParenthesesContent(value.toString(), begin+4); int end = begin + content.length()+6; expressonValue = calculationEngine(content, macroSplit); expressonValue = Math.sqrt(expressonValue); value.delete(begin, end); value.insert(begin, expressonValue); } else if(value.toString().contains("(")) { int begin = value.toString().indexOf("("); String content = getParenthesesContent(value.toString(), begin); int end = begin + content.length()+2; expressonValue = calculationEngine(content, macroSplit); value.delete(begin, end); value.insert(begin, expressonValue); } if(prio1.matcher(value).find()) { expressonValue = calculationEngine(value.toString(), microSplit); } else if(prio0.matcher(value).find()) { expressonValue = calculationEngine(value.toString(), nanoSplit); } else { expressonValue = Double.valueOf(value.toString().replaceAll(",", ".")); } if(lastOperator != null && !lastOperator.isEmpty()) { result = calculate(valueA, expressonValue, lastOperator.charAt(0)); } else { result = expressonValue; } valueA = result; if(parseValue.length > 1) { lastOperator = expression.split("\\|")[1]; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void recursion(final String expression, int countOperation) {\n int numberOfOperations=0;\n String operationString=expression.replace(\" \",\"\");\n for (int i=0; i<operationString.length()-1; i++)\n {\n if(expression.substring(i,i+1).matches(\"\\\\+\")\n ||operationString.substring(i,i+1).matches(\"\\\\-\")\n ||operationString.substring(i,i+1).matches(\"\\\\*\")\n ||operationString.substring(i,i+1).matches(\"/\")\n ||operationString.substring(i,i+1).matches(\"\\\\^\")\n ||operationString.substring(i,i+1).matches(\"i\")\n ||operationString.substring(i,i+1).matches(\"a\")\n ||operationString.substring(i,i+1).matches(\"o\"))\n {\n numberOfOperations++;\n }\n }\n String result;\n int count=0;\n if (operationString.substring(0,1).equals(\"(\"))\n {\n int start=1;\n int end=0;\n count=1;\n while (count<operationString.length() && start!=end)\n {\n String temp=operationString.substring(count,count+1);\n if (temp.equals(\"(\"))\n {\n start++;\n }\n if (temp.equals(\")\"))\n {\n end++;\n }\n count++;\n }\n }\n if (count!=operationString.length() && !operationString.substring(0,1).equals(\"(\"))\n {\n //разбиваем выражения на подвыражения\n List<String> symbols=new ArrayList<>();\n for (int i=0; i<operationString.length()-1;)\n {\n String temp=operationString.substring(i,i+1);\n if (\"+-*/^\".contains(temp))\n {\n symbols.add(temp);\n i++;\n }\n if(temp.equals(\"s\") || temp.equals(\"t\") || temp.equals(\"c\"))\n {\n symbols.add(operationString.substring(i,i+3));\n i=i+3;\n }\n if (temp.matches(\"\\\\d\"))\n {\n int k=i+1;\n StringBuilder sb=new StringBuilder(temp);\n while (k<operationString.length()&&(operationString.substring(k,k+1).matches(\"\\\\d\")||operationString.substring(k,k+1).matches(\"\\\\.\")))\n {\n sb.append(operationString.substring(k,k+1));\n k++;\n }\n i=k;\n symbols.add(new String(sb));\n }\n if (temp.equals(\"(\"))\n {\n int start=1;\n int end=0;\n int k=i+1;\n while(k<operationString.length() && start!=end)\n {\n if (operationString.substring(k,k+1).equals(\"(\"))\n {\n start++;\n }\n if(operationString.substring(k,k+1).equals(\")\"))\n {\n end++;\n }\n k++;\n }\n PrintStream oldOut=System.out;\n String recTemp;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString.substring(i,k),++countOperation);\n recTemp=baos.toString();\n System.setOut(oldOut);\n symbols.add(recTemp);\n i=k;\n }\n }\n\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).startsWith(\"s\"))\n {\n symbols.set(i,\"\"+Math.sin(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"t\"))\n {\n symbols.set(i,\"\"+Math.tan(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n if (symbols.get(i).startsWith(\"c\"))\n {\n symbols.set(i,\"\"+Math.cos(Double.parseDouble(symbols.remove(i+1))*Math.PI/180));\n }\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"^\"))\n {\n symbols.set(i-1, Math.pow(Double.parseDouble(symbols.get(i - 1)), Double.parseDouble(symbols.get(i + 1))) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size();)\n {\n if (symbols.get(i).equals(\"/\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))/Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n if (symbols.get(i).equals(\"*\"))\n {\n symbols.set(i-1, Double.parseDouble(symbols.get(i - 1))*Double.parseDouble(symbols.get(i + 1)) + \"\");\n symbols.remove(i);\n symbols.remove(i);\n i--;\n }\n i++;\n }\n for (int i=0; i<symbols.size(); i++)\n {\n if (symbols.get(i).equals(\"-\"))\n {\n symbols.set(i,\"-\"+symbols.remove(i+1));\n }\n if (symbols.get(i).equals(\"+\"))\n {\n symbols.remove(i);\n i--;\n }\n }\n double answer=0;\n for (String s:symbols)\n {\n answer=answer+Double.parseDouble(s);\n }\n result=answer+\"\";\n countOperation--;\n }\n else\n {\n //отбрасываем начальные и конечные скобки\n operationString=operationString.substring(1,operationString.length()-1);\n PrintStream oldOut=System.out;\n ByteArrayOutputStream baos=new ByteArrayOutputStream();\n PrintStream ps=new PrintStream(baos);\n System.setOut(ps);\n recursion(operationString,++countOperation);\n result=baos.toString();\n System.setOut(oldOut);\n }\n if (countOperation==0)\n {\n System.out.println(result+\" \"+numberOfOperations);\n }\n else\n {\n System.out.println(result);\n }\n }", "public String evaluate(String statement) {\n // TODO: Implement the logic here\n\n if (statement == null | statement == \"\"){\n return null;\n }\n\n String addition = \"+\";\n String substraction = \"-\";\n String multiplication = \"*\";\n String division = \"/\";\n String leftbracket = \"(\";\n String rightbracket = \")\";\n\n Stack<String> temporaryStack = new Stack<>();\n Stack<String> inputStack = new Stack<>();\n Stack<String> outputStack = new Stack<>();\n Stack<String> stackOperators = new Stack<>();\n Stack<String> reverseStack = new Stack<>();\n Stack<Double> computingStack = new Stack<>();\n\n String crutch = \"crutch\";\n stackOperators.push(crutch);\n inputStack.push(crutch);\n\n Double leftNumber;\n Double rightNumber;\n Double outResult;\n int stackCounter = 1;\n int reverseCounter = 0;\n\n String solution;\n\n if (statement.contains(\",\") | statement.contains(\"..\") | statement.contains(\"//\")| statement.contains(\"**\") | statement.contains(\"++\") |\n statement.contains(\"--\")) {\n return null;\n }\n\n//преобразование выражения в обратную польскую нотацию\n StringTokenizer stTok = new StringTokenizer(statement, \"+-*/()\", true);\n while (stTok.hasMoreTokens()) {\n temporaryStack.push(stTok.nextToken());\n stackCounter++;\n }\n while (!temporaryStack.isEmpty()){\n inputStack.push(temporaryStack.peek());\n temporaryStack.pop();\n }\n\n for (int i=1; i<stackCounter; i++){\n if (Character.isDigit(inputStack.peek().charAt(0))){\n outputStack.push(inputStack.peek());\n inputStack.pop();\n }\n else if (stackOperators.peek().equals(crutch) && (inputStack.peek().equals(addition) |\n inputStack.peek().equals(substraction) | inputStack.peek().equals(multiplication) |\n inputStack.peek().equals(division))){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(addition) | inputStack.peek().equals(substraction)){\n while (stackOperators.peek().equals(addition) | stackOperators.peek().equals(substraction) |\n stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(multiplication) | inputStack.peek().equals(division)){\n while (stackOperators.peek().equals(multiplication) | stackOperators.peek().equals(division)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(leftbracket)){\n stackOperators.push(inputStack.peek());\n inputStack.pop();\n }\n else if (inputStack.peek().equals(rightbracket)){\n while (!stackOperators.peek().equals(leftbracket)){\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n if (stackOperators.peek().equals(crutch)){\n return null;\n }\n inputStack.pop();\n stackOperators.pop();\n }\n }\n while (!stackOperators.peek().equals(crutch)){\n if (stackOperators.peek().equals(leftbracket) | stackOperators.peek().equals(rightbracket)){\n return null;\n } else {\n outputStack.push(stackOperators.peek());\n stackOperators.pop();\n }\n\n }\n while (!outputStack.isEmpty()){\n reverseStack.push(outputStack.peek());\n outputStack.pop();\n reverseCounter++;\n }\n\n//вычисление выражения\n for (int i=0; i<reverseCounter; i++){\n if (Character.isDigit(reverseStack.peek().charAt(0))) {\n computingStack.push(Double.parseDouble(reverseStack.peek()));\n }\n else if (reverseStack.peek().equals(addition)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber + rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(substraction)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber - rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(multiplication)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n outResult = leftNumber * rightNumber;\n computingStack.push(outResult);\n }\n else if (reverseStack.peek().equals(division)){\n rightNumber = computingStack.peek();\n computingStack.pop();\n leftNumber = computingStack.peek();\n computingStack.pop();\n if (rightNumber!=0){\n outResult = leftNumber / rightNumber;\n computingStack.push(outResult);\n } else\n return null;\n }\n reverseStack.pop();\n }\n\n DecimalFormat myFormatter = new DecimalFormat(\"#.####\");\n String format = myFormatter.format(computingStack.peek());\n\n solution = format.replace( ',', '.');\n\n return solution;\n }", "public int calculate(String s) {\n Deque<Integer> stack = new ArrayDeque<>();\n\n // Init\n int result = 0; // For the on-going result\n int sign = 1; // 1 means positive, -1 means negative\n int operand = 0;\n\n // 1 + 2 + 1\n // The tricky part is that we find an operator/sign first, then we know\n // the operand after that. We save the sign first, and when we evaluate the\n // expression so far, we use that sign.\n\n // Go through the expression string character by character.\n // Evaluate to the left when we find '+', '-', ')', or end of loop.\n // We use a stack when we find parenthesis.\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (Character.isDigit(c)) {\n // Form operand, since it could be more than one digit.\n operand = 10 * operand + (c - '0');\n } else if (c == '+') {\n // We can evaluate the expression to the left,\n // with result, sign, operand\n result += sign * operand;\n // Save the recently encountered '+' sign\n sign = 1;\n // Reset operand\n operand = 0;\n } else if (c == '-') {\n // We can evaluate the expression to the left,\n result += sign * operand;\n // Save the '-' sign.\n sign = -1;\n operand = 0;\n } else if (c == '(') {\n // Push the result so far and sign onto the stack, for later use.\n // We push the result first, then sign in the stack.\n stack.push(result);\n stack.push(sign);\n // Reset result, sign, and operand, as if new evaluation begins for the new\n // sub-expression\n result = 0;\n sign = 1;\n operand = 0;\n } else if (c == ')') {\n // We can evaluate the sub-expression to the left.\n result += sign * operand;\n // Now that we know the sub-expression ended, we can also evaluate to the left.\n // First we take the sign out of the stack, and then add the result we saved\n // before to the result of the sub-expression.\n result *= stack.pop();\n result += stack.pop();\n // Reset sign and operand.\n sign = 1;\n operand = 0;\n }\n }\n\n // We need to evaluate again.\n result += sign * operand;\n\n return result;\n }", "public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }", "private String evaluate(String expression) {\n String separators = \"()*+/-\";\n String result;\n // Stack for using in algorithm\n Stack<String> stackOperations = new Stack<String>();\n // Stack for RPN - reverse polish notation\n Stack<String> stackRPN = new Stack<String>();\n // Stack for evaluating answer\n Stack<String> stackTemp = new Stack<String>();\n //splitting expression into tokens\n StringTokenizer stringTokenizer = new StringTokenizer(updateUnaryMinus(expression), separators, true);\n\n while (stringTokenizer.hasMoreTokens()) {\n String token = stringTokenizer.nextToken();\n if (isNumber(token)) {\n stackRPN.push(token);\n } else if (isOpenBracket(token)) {\n stackOperations.push(token);\n } else if (isCloseBracket(token)) {\n while (!isOpenBracket(stackOperations.lastElement())) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.pop();\n } else if (isOperator(token)) {\n while (!stackOperations.empty() && isOperator(stackOperations.lastElement())\n && getPrecedence(stackOperations.lastElement()) > getPrecedence(token)) {\n stackRPN.push(stackOperations.pop());\n }\n stackOperations.push(token);\n }\n }\n while (!stackOperations.empty()) {\n stackRPN.push(stackOperations.pop());\n }\n Collections.reverse(stackRPN);\n\n // Evaluation if RPN expression\n while (!stackRPN.empty()) {\n if (isNumber(stackRPN.lastElement())) stackTemp.push(stackRPN.pop());\n else stackTemp.push(makeOperation(stackRPN.pop(), stackTemp.pop(), stackTemp.pop()));\n }\n result = stackTemp.pop();\n return result;\n }", "public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }", "public double calculate(String expression) {\n\t\tString[] inputs = expression.split(\" \");\n\t if(debug) {\n\t\tSystem.out.print(\"Input array: \");\n\t\tfor(String value : inputs) {\n\t\t\tSystem.out.print(value + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t }\t\n\t\t\n\t\t// Go through the string array and pop operators onto the\n\t\t// operators stack and operands onto the the operands stack\n\t\tfor(String value : inputs) {\n\t\t if(debug) System.out.println(\"Evaluating: \" + value);\n\t\t\tif(value.equals(\"*\") || value.equals(\"/\") || value.equals(\"+\") || value.equals(\"-\")) {\n\t\t\t\t// If stack is empty push onto stack\n\t\t\t\tif(operand.empty()) {\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If new operator is higher than old push onto\n\t\t\t\t// stack\n\t\t\t\telse if(value.equals(\"*\") || value.equals(\"/\")) {\n\t\t\t\t\tString old = (String)operand.peek();\n\t\t\t\t\tif(old.equals(\"*\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = a*b;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse if(old.equals(\"/\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = b/a;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse operand.push(value);\n\t\t\t\t}\n\n\t\t\t\t// Else pop old operator and evaluate top two\n\t\t\t\t// elements on operand stack then push new\n\t\t\t\t// operator onto stack\n\t\t\t\telse {\n\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\tString old = (String)operand.pop();\n\t\t\t\t if(debug) {\n\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t }\n\t\t\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\t\t\telse a = b-a;\n\t\t\t\t\toperators.push(a);\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Put operators into operators stack\n\t\t\telse {\n\t\t\t try {\n\t\t\t\tDouble num = Double.parseDouble(value);\n\t\t\t\toperators.push(num);\n\t\t\t }\n\t\t\t catch(NumberFormatException e) {\n\t\t\t\t System.out.println(\"NumberFormatException: Something besides a number or operator entered\");\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\t// Finish up everything left over in stack\n\t\tString old;\n\t\tdouble a;\n\t\tdouble b;\n\t\twhile(!operand.empty()) {\n\t\t\told = (String)operand.pop();\n\t\t\ta = (Double)operators.pop();\n\t\t\tb = (Double)operators.pop();\n\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\telse a = b-a;\n\t\t\toperators.push(a);\n\t\t}\n\t\treturn (Double)operators.peek();\n\t}", "public static void main(String[] args) {\n String input = \"( ( 1 + sqrt ( 5 ) ) / 2 )\";\n Stack<String> ops = new Stack<String>();\n Stack<Double> vals = new Stack<Double>();\n String[] temps = input.split(\" \");\n for (String temp : temps) {\n\n if (temp.equals(\"(\")) ;\n else if (temp.equals(\"+\")) ops.push(temp);\n else if (temp.equals(\"-\")) ops.push(temp);\n else if (temp.equals(\"*\")) ops.push(temp);\n else if (temp.equals(\"/\")) ops.push(temp);\n else if (temp.equals(\"sqrt\")) ops.push(temp);\n else if (temp.equals(\")\")){\n String op = ops.pop();\n double v = vals.pop();\n if (op.equals(\"+\")) v = vals.pop() + v;\n else if (op.equals(\"-\")) v = vals.pop() - v;\n else if (op.equals(\"*\")) v = vals.pop() * v;\n else if (op.equals(\"/\")) v = vals.pop() / v;\n else if (op.equals(\"sqrt\")) v = Math.sqrt(v);\n vals.push(v);\n }else {\n vals.push(Double.parseDouble(temp));\n }\n }\n System.out.println(vals.pop());\n }", "public static void main(String args[]) {\n\tSystem.out.println(\"1 2 + 4 * 4 2 - + = \" + execute(\"1 2 + 4 * 4 2 - +\"));\r\n\t\r\n\t// (1 + 4) * (3 + 7) / 5 == 10\r\n\t/*System.out.println(\"1 4 + 3 7 + * 5 / = \" \r\n\t\t\t + execute(\"1 4 + 3 7 + * 5 /\"));\r\n\t\r\n\t// 10 + 2 == 12\r\n\tSystem.out.println(\"10 2 + = \" \r\n\t\t\t + execute(\"10 2 +\"));\r\n\t\r\n\t// 10 / 2 == 5\r\n\tSystem.out.println(\"10 2 / = \"\r\n\t\t\t + execute(\"10 2 /\"));*/\r\n }", "public static String math_level2(String line){\n int current_index = 0;\n line = \"+\"+line; //Every element must have a sign before so I add a plus as a sign of the first element.\n while(current_index<line.length() && (line.contains(\"*\") || line.contains(\"/\"))){\n char current_char = line.charAt(current_index);\n if(current_char == '*' || current_char =='/'){\n String first_string = reverser(line.substring(0,current_index));\n if (first_string !=\"\") first_string = reverser(first_string.substring(0,finder(first_string)));\n else first_string = line.substring(0,current_index);\n \n char before_sign = line.charAt(current_index-first_string.length()-1); // Sign before an element has an effect on the result so I'm storing it.\n \n String second_string = line.substring(current_index+1);\n second_string = line.substring(current_index+1,current_index+finder(second_string.substring(1))+2);\n \n boolean is_double_first = first_string.contains(\".\");\n boolean is_second_double = second_string.contains(\".\");\n boolean isdouble = is_double_first || is_second_double;\n\n if(isdouble){\n double number1 = Double.parseDouble(first_string);\n double number2 = Double.parseDouble(second_string);\n double result;\n if(current_char=='*') result = number1*number2;\n else result = number1/number2;\n // I'm using two ternary operations to decide on the sign of the result. If both before sign is a minus and the result is negative, I'm replacing it with result*-1\n line = line.substring(0, current_index-first_string.length()-1)+ ((result<0)?((before_sign=='-')?(\"+\"+(result*-1)):(result+\"\")):(before_sign+\"\"+result)) + line.substring(current_index+second_string.length()+1);\n }\n\n else{\n int number1 = Integer.parseInt(first_string);\n int number2 = Integer.parseInt(second_string);\n int result;\n if(current_char=='*') result = number1*number2;\n else result = number1/number2;\n // Same operation as I do in line 155\n line = line.substring(0, current_index-first_string.length()-1)+ ((result<0)?((before_sign=='-')?(\"+\"+(result*-1)):(result+\"\")):(before_sign+\"\"+result)) + line.substring(current_index+second_string.length()+1);\n\n }\n current_index= current_index-first_string.length();// I'm using index as a cursor and moving it a little left instead of making it zero because this is much faster\n }\n current_index++;\n if(!(line.contains(\"*\") || line.contains(\"/\"))) break;// Breaks the while loop if there are no multiplication or division left.\n }\n return line;\n}", "public void buildTree() throws RuntimeException, DivideByZero {\r\n // define local variable to count number of times an operator \r\n // is pushed into it's associated stack. This will be use to \r\n // count register values\r\n int i = 0;\r\n\r\n // split postfix expression enterend into the textbox into tokens using \r\n // StringTokenizer. Delimeters are used so that different inputs \r\n // can be parsed without spaces being necessary \r\n StringTokenizer token = new StringTokenizer(inputExpression, \" */+-\", true);\r\n\r\n // while loop to build tree out of the postfix expression\r\n while (token.hasMoreTokens()) {\r\n // get the next token in series\r\n String nextItem = token.nextToken();\r\n\r\n // use selection statements to determine if the next token\r\n // in the String is an operand, operator, or unknown\r\n if (nextItem.matches(\"[0-9]+\")) {\r\n // push operand to associated stack\r\n operandStk.push(nextItem);\r\n \r\n // push operand to AssemblyCode class\r\n assemblyCode.pushStack(nextItem);\r\n\r\n } else if (nextItem.equals(\"*\") || nextItem.equals(\"/\")\r\n || nextItem.equals(\"+\") || nextItem.equals(\"-\")) {\r\n // push current operator to operators stack\r\n operatorStk.push(nextItem);\r\n // call the getNodes() method to perform operation\r\n getNodes(i);\r\n // count each time an operator is pushed so registers can be counted\r\n i++;\r\n } else if (!nextItem.equals(\" \")){ \r\n // set class variable to equal invalid character\r\n invalidToken = nextItem; \r\n // throw exception if illegal operator or operand is parsed\r\n throw new RuntimeException();\r\n }\r\n } // end while loop\r\n }", "private static String evaluate(ArrayList<String> operators, ArrayList<String> operands) {\n\n /* Check for valid input. There should be one more operand than operator. */\n if (operands.size() != operators.size()+1)\n return \"Invalid Input\";\n\n String current;\n int value;\n int numMultiply = 0;\n int numAdd = 0;\n int currentOperator = 0;\n\n /* Get the number of multiplications in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"*\"))\n numMultiply++;\n }\n\n /* Get the number of addition and subtraction in the operators list. */\n for (int i = 0; i < operators.size(); i++) {\n\n if (operators.get(i).equals(\"-\") || operators.get(i).equals(\"+\"))\n numAdd++;\n }\n\n /* Evaluate multiplications first, from left to right. */\n while (numMultiply > 0){\n\n current = operators.get(currentOperator);\n if (current.equals(\"*\")) {\n\n /* When multiplication is found in the operators, get the associative operands from the operands list.\n Associative operands are found in the operands list at indexes current operator and current operator + 1.\n */\n value = Integer.parseInt(operands.get(currentOperator)) * Integer.parseInt(operands.get(currentOperator+1));\n\n /* Remove the operands and the operator since they have been evaluated and add the evaluated answer back in the operands. */\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n\n numMultiply--;\n }\n else\n currentOperator++;\n }\n\n currentOperator = 0;\n\n /* Next evaluate the addition and subtraction, from left to right. */\n while (numAdd > 0){\n current = operators.get(currentOperator);\n if (current.equals(\"+\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) + Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n\n else if (current.equals(\"-\")) {\n\n value = Integer.parseInt(operands.get(currentOperator)) - Integer.parseInt(operands.get(currentOperator+1));\n operators.remove(currentOperator);\n operands.remove(currentOperator);\n operands.remove(currentOperator);\n operands.add(currentOperator, Integer.toString(value));\n numAdd--;\n }\n else\n currentOperator++;\n }\n\n /* When all the operations have been evaluated, the final answer will be in the first element of the operands list. */\n return operands.get(0);\n }", "operations(StringBuilder input, int currentMode)\n\t{\n\t\t\n\t\tchar tempVal = ' ';\n\t\t\n\t\tif(isPair(input) == true) {\n\t\t\t\n\t\t\t// determining which mode the input is set to and converting to decimal to make it easier \n\t\t\t\n\t\t\tif(currentMode == 1)\n\t\t\t{\n\t\t\t\tinput = hexConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode == 3)\n\t\t\t{\n\t\t\t\tinput = binConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode == 4)\n\t\t\t{\n\t\t\t\tinput = octConversion(input);\n\t\t\t}\n\t\t\telse if(currentMode != 2)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error, invalid input mode\");\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < input.length(); i++)\n\t\t\t{\n\t\t\t\ttempVal = input.charAt(i);\n\t\t\t\t\n\t\t\t\t\tif(isNumber(input.charAt(i)) == true)\n\t\t\t\t\t{\n\t\t\t\t\t\tevalulateQueue.add(Character.toString(tempVal));\n\t\t\t\t\t}\n\t\t\t\t\telse if((isOperator(input.charAt(i)) == true) || (isLeftParen(input.charAt(i)) == true) || (isRightParen(input.charAt(i)) == true))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(isLeftParen(input.charAt(i)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if ((isRightParen(input.charAt(i))) == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile (operationStack.empty() == false)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString temp = operationStack.peek();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(temp.equals(\"(\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tevalulateQueue.add(temp);\n\t\t\t\t\t\t\t\t\toperationStack.pop();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\toperationStack.pop();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(precedence(Character.toString(tempVal)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twhile(precedence(Character.toString(tempVal)) == false)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString temp = operationStack.peek();\n\t\t\t\t\t\t\t\toperationStack.pop();\n\t\t\t\t\t\t\t\tevalulateQueue.add(temp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\toperationStack.push(Character.toString(tempVal));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"An error has occured, invalid input values\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"An error has occured, invalid input values\");\n\t\t}\n\t\t\n\t\t// moving operation stack to evaluation queue\n\t\t\n\t\twhile(operationStack.empty() != true)\n\t\t{\n\t\t\tString movingVal = operationStack.peek();\n\t\t\tevalulateQueue.add(movingVal);\n\t\t\toperationStack.pop();\n\t\t}\n\t\t\n\t\t// test \n\t\t\n\t\tSystem.out.println(\"$$$$$$$$$$\");\n\t\tfor(String item: evalulateQueue) {\n\t\t\tSystem.out.print(item);\n\t\t}\n\t\tSystem.out.println(\"\\n$$$$$$$$$$\");\n\t\t\n\t\t// converting post-fix notation to the final result\n\t\t\n\t\twhile(evalulateQueue.isEmpty() != true)\n\t\t{\n\t\t\tString currentNum = evalulateQueue.peek();\n\t\t\tSystem.out.println(currentNum);\n\t\t\t\n\t\t\t// if its an operator, popping two numbers from evaluate stack to evaluate\n\t\t\tif((isOperator(currentNum.charAt(0))) && (evaluateStack.size() > 0))\n\t\t\t{\n\t\t\t\tString firstNum = evaluateStack.pop();\n\t\t\t\tString secondNum = evaluateStack.pop();\n\t\t\t\tdouble addedRes;\n\t\t\t\t\n\t\t\t\t// evaluating and pushing into the final queue\n\t\t\t\t\n\t\t\t\tswitch (currentNum) {\n\t\t\t\t\tcase \"+\": \n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) + Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"-\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) - Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"*\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) * Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"/\":\n\t\t\t\t\t\taddedRes = Double.parseDouble(secondNum) / Double.parseDouble(firstNum);\n\t\t\t\t\t\tif(finalQueue.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdouble newRes = Double.parseDouble(finalQueue.peek()) + addedRes;\n\t\t\t\t\t\t\tfinalQueue.remove();\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(newRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinalQueue.add(Double.toString(addedRes));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(finalQueue.peek());\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tSystem.out.println(\"Error, invalid operation\");\n\t\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if its a number, pushing it on the evaluate stack to be operated on\n\t\t\telse if (isNumber(currentNum.charAt(0)))\n\t\t\t{\n\t\t\t\tevaluateStack.push(currentNum);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error, invalid input into final queue\");\n\t\t\t}\n\t\t\t\n\t\t\t// removing the last item in the queue\n\t\t\t\n\t\t\tevalulateQueue.remove();\n\t\t\t\n\t\t}\n\t}", "private void sqrtOperands() {\n\t\tif (text_Operand1.getText().isEmpty()) {\n\t\t\ttext_Operand3.setText(\"5\");\n\t\t}\n\t\tif (unaryOperandIssues())\n\t\t\treturn;\n\n\t\tif (text_Operand1.getText() != \"\")\n\t\t\tif (text_Operand1.getText().charAt(0) == '-') {\n\t\t\t\tlabel_errOperand1.setText(\"Negative Input not Allowed\");\n\t\t\t\ttext_Result.setText(\"\");\n\t\t\t\ttext_Resulterr.setText(\"\");\n\t\t\t\tlabel_Result.setText(\"\");\n\t\t\t\tlabel_errResult.setText(\"\");\n\t\t\t\treturn;\n\t\t\t}\n\t\tif (text_Operand1.getText().isEmpty()) {\n\t\t\ttext_Operand1.setText(\"0.0\");\n\t\t}\n\t\t// Check to see if both operands are defined and valid\n\n\t\t// Check to see if both operands are defined and valid\n\t\t// without doing the computation\n\n\t\tif (text_Operand2.getLength() != 0) {\n\t\t\ttext_Operand2.setText(\"\");\n\t\t\tlabel_errOperand2.setText(\"Second Input not Required.\");\n\t\t}\n\t\tif (text_Operand4.getLength() != 0) {\n\t\t\ttext_Operand4.setText(\"\");\n\t\t\tlabel_errOperand4.setText(\"Second Input not Required.\");\n\n\t\t}\n\n\t\t// If the operands are defined and valid, request the business logic method to\n\t\t// do the Square Root and return the\n\t\t// result as a String. If there is a problem with the actual computation, an\n\t\t// empty string is returned\n\t\tString theAnswer = perform.squareroot(); // Call the business logic Root method\n\t\tlabel_errResult.setText(\"\"); // Reset any result error messages from before\n\t\tString theAnswer1 = perform.squareroot1(); // Call the business logic Square Root method\n\t\tlabel_errResulterr.setText(\"\"); // Reset any result error messages from before\n\t\tif (theAnswer.length() > 0 || theAnswer1.length() > 0) { // Check the returned String to see if it is okay\n\t\t\ttext_Result.setText(theAnswer); // If okay, display it in the result field and\n\t\t\tlabel_Result.setText(\"Square Root\"); // change the title of the field to \"Square Root\".\n\t\t\tlabel_Result.setLayoutX(40);\n\t\t\tlabel_Result.setLayoutY(345);\n\t\t\ttext_Resulterr.setText(theAnswer1); // If okay, display it in the result field and\n\t\t\tcomboBoxRes.getSelectionModel().select(\"\\u221A\" + comboBox1.getSelectionModel().getSelectedItem());\n\t\t\t// change the title of the field to \"Square Root\"\n\t\t} else { // Some error occurred while doing the Square Root.\n\t\t\ttext_Result.setText(\"\"); // Do not display a result if there is an error.\n\t\t\tlabel_Result.setText(\"Result\"); // Reset the result label if there is an error.\n\t\t\tlabel_errResult.setText(perform.getResultErrorMessage()); // Display the error message.\n\t\t\ttext_Resulterr.setText(\"\"); // Do not display a result if there is an error.\n\t\t\t// Reset the result label if there is an error.\n\t\t\tlabel_errResulterr.setText(perform.getResulterrErrorMessage()); // Display the error message.\n\t\t}\n\t}", "public int calculate_2(String s) {\n if ((s == null) || (s.length() == 0)) return 0;\n int i = 0;\n int j = 0;\n s = s.replace(\" \", \"\");\n String val = \"\";\n boolean ifStop = true;\n while (i < s.length()) {\n if ((s.charAt(i) == '+') || (s.charAt(i) == '-') || (s.charAt(i) == '*')\n || (s.charAt(i) == '/')) {\n j = i;\n ifStop = false;\n break;\n } else {\n val = val + s.charAt(i);\n }\n i++;\n }\n if (ifStop) return Integer.parseInt(val);\n while (j < s.length()) {\n char op = s.charAt(j);\n if (op == ' ') {\n j++;\n continue;\n }\n if ((op == '+') || (op == '-')) {\n int nextOperator = calculate(s.substring(j + 1, s.length()));\n // System.out.println(nextOperator);\n if (op == '+') return (Integer.parseInt(val) + nextOperator);\n else if (op == '-') return (Integer.parseInt(val) - nextOperator);\n j++;\n } else {\n i = j + 1;\n String anotherval = \"\";\n ifStop = true;\n while (i < s.length()) {\n if ((s.charAt(i) == '+') || (s.charAt(i) == '-') || (s.charAt(i) == '*')\n || (s.charAt(i) == '/')) {\n j = i;\n ifStop = false;\n break;\n } else {\n anotherval = anotherval + s.charAt(i);\n }\n i++;\n }\n if (op == '*')\n val = Integer.parseInt(val) * Integer.parseInt(anotherval) + \"\";\n else if (op == '/')\n val = Integer.parseInt(val) / Integer.parseInt(anotherval) + \"\";\n\n if (ifStop)\n return Integer.parseInt(val);\n }\n }\n return Integer.parseInt(val);\n }", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "public String evaluate(ArrayList<String> expression)\n {\n Stack<String> Values = new Stack<String>(), Operations = new Stack<String>();\n\n for (int i = 0; i < expression.size(); i++)\n\t\t{\n\t\t\tif (expression.get(i).equals(\"(\"))\n Operations.push(expression.get(i));\n else if (expression.get(i).equals(\")\"))\n {\n while (Operations.peek().equals(\"(\"))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.pop();\n }\n else if (expression.get(i).equals(\"+\") || expression.get(i).equals(\"-\") || expression.get(i).equals(\"*\") || expression.get(i).equals(\"/\"))\n {\n while (!Operations.empty() && precedence(expression.get(i), Operations.peek()))\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n Operations.push(expression.get(i));\n }\n\t\t\telse\n\t\t\t{\n\t\t\t\tValues.push(expression.get(i));\n\t\t\t}\n }\n while (!Operations.empty())\n Values.push(apply(Operations.pop(), Values.pop(), Values.pop()));\n return Values.pop();\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t\tString BETTEST = \"/+8*62-9*43\";\r\n\r\n\r\n\t\tBinaryExpressionTree<String>listBET = new BinaryExpressionTree<String>();\r\n\r\n\t\tfor (int i = 0; i < BETTEST.length(); i++) {\r\n\t\t\t\r\n\t\t\tlistBET.add(\"\" + BETTEST.charAt(i));\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\tlistBET.PreorderTraversal();\r\n\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\tlistBET.PostorderTraversal();\r\n\r\n\r\n\t\t String BETTEST2 =\"/+84*32\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET2 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST2.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET2.add(\"\" + BETTEST2.charAt(i));\t\r\n\t\t\r\n\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET2.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET2.PostorderTraversal();\r\n\t\t\t\r\n String BETTEST3 =\"*-92/31\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET3 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST3.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET3.add(\"\" + BETTEST3.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t System.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET3.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\t\r\n\t\t\tlistBET3.PostorderTraversal();\r\n \r\n\t\t\tString BETTEST4 =\"-/*8043\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET4 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST4.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET4.add(\"\" + BETTEST4.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET4.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET4.PostorderTraversal();\r\n}", "public static int expression()\r\n {\r\n //get the start state of this term\r\n int r,t1,f1;\r\n t1=r=term();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if this is concatenation\r\n if(expression.charAt(index)=='.'||isVocab(expression.charAt(index))||expression.charAt(index)=='\\\\'\r\n ||expression.charAt(index)=='['||expression.charAt(index)=='(')\r\n {\r\n //get the start state of this expression and\r\n //update next1 and next2\r\n int t2,cur;\r\n cur=state-1;\r\n t2=expression();\r\n if(stateList.get(cur).getNext1()==stateList.get(cur).getNext2())\r\n {\r\n stateList.get(cur).setNext1(t2);\r\n }\r\n stateList.get(cur).setNext2(t2);\r\n\r\n }\r\n\r\n //if there is no more input, we are done\r\n if(index>=expression.length())\r\n {\r\n return r;\r\n }\r\n\r\n //if this is alternation\r\n if(expression.charAt(index)=='|')\r\n {\r\n //if there is nothing after '|', it is a invalid expression\r\n index++;\r\n if(index>expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n //create a branch state,set the nex1 of the branch state to the term\r\n //so a|b and a|b|c both work\r\n int t2;\r\n f1=state-1;\r\n\r\n state st=new state(state,\"BR\",t1,-1);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n\r\n //get the start state of this expression\r\n t2=expression();\r\n\r\n //update the branch state's next2 to the start state of the expression\r\n stateList.get(f1+1).setNext2(t2);\r\n\r\n //update term's next1 and next2\r\n if(stateList.get(f1).getNext1()==stateList.get(f1).getNext2())\r\n {\r\n stateList.get(f1).setNext1(state);\r\n }\r\n stateList.get(f1).setNext2(state);\r\n\r\n }\r\n\r\n }\r\n\r\n\r\n return r;\r\n }", "private static String calculate(String entStr) {\n Stack<Double> dStack = new Stack<>();\n Stack<Character> chStack = new Stack<>();\n int minus = 1;\n int priority;\n double operand;\n String strOperand = \"\";\n\n for (int i = 0; i < entStr.length(); i++) {\n priority = getPriority(entStr.charAt(i));\n if ((entStr.charAt(i) == '-' && (i == 0 || entStr.charAt(i - 1) == '('))) {\n minus = -1;\n } else if (priority == 0) {\n while (getPriority(entStr.charAt(i)) == 0) {\n strOperand += entStr.charAt(i);\n i++;\n if (i == entStr.length()) break;\n }\n try {\n operand = Double.parseDouble(strOperand) * minus;\n dStack.push(operand);\n strOperand = \"\";\n minus = 1;\n //System.out.println(\"operand= \" + operand);\n } catch (NumberFormatException e) {\n return e.getMessage();\n }\n i--;\n } else if (priority > 1) {\n if (chStack.empty() || priority > getPriority(chStack.peek()) || chStack.peek() == '(') {\n chStack.push(entStr.charAt(i));\n } else {\n if (dStack.peek() == 0 && chStack.peek() == '/') return \"ERROR: Dividing by zero !!!\";\n else {\n dStack.push(mathAction(dStack.pop(), dStack.pop(), chStack.pop()));\n //System.out.println(\"res= \" + dStack.peek());\n i--;\n }\n }\n } else if (entStr.charAt(i) == '(') {\n chStack.push('(');\n } else if (entStr.charAt(i) == ')') {\n if (chStack.peek() == '(') chStack.pop();\n else {\n if (dStack.peek() == 0 && chStack.peek() == '/') return \"ERROR: Dividing by zero !!!\";\n else {\n dStack.push(mathAction(dStack.pop(), dStack.pop(), chStack.pop()));\n //System.out.println(\"res= \" + dStack.peek());\n i--;\n }\n }\n }\n }\n while (!chStack.empty()) {\n if (dStack.peek() == 0 && chStack.peek() == '/') {\n return \"ERROR: Dividing by zero !!!\";\n } else {\n dStack.push(mathAction(dStack.pop(), dStack.pop(), chStack.pop()));\n }\n }\n //double res = dStack.pop();\n //System.out.println(\"dSteck is emty = \" + dStack.empty());\n //System.out.println(\"chSteck is emty = \" + chStack.empty());\n return String.valueOf(dStack.pop());\n }", "public void execute() {\n switch (this.opCode) {\n case 'a':\n this.result = this.leftVal + this.rightVal;\n break;\n case 's':\n this.result = this.leftVal - this.rightVal;\n break;\n case 'm':\n this.result = this.leftVal * this.rightVal;\n break;\n case 'd':\n this.result = this.rightVal != 0 ? this.leftVal / this.rightVal : 0.0d;\n break;\n default:\n System.out.println(\"Invalid opCode: \" + this.opCode);\n this.result = 0.0d;\n break;\n }\n numOfCalculations++;\n sumOfResults += result;\n }", "public int eval(String expression) {\n String token;\n // The 3rd argument is true to indicate that the delimiters should be used\n // as tokens, too. \n this.tokenizer = new StringTokenizer(expression, DELIMITERS, true);\n\n //initialized with # operator, used as bogus to compare priorities and detect end of operatorStack.\n operatorStack.push(new PoundOperator());\n\n //Checks whether there are more tokens to be pushed in stacks\n while (this.tokenizer.hasMoreTokens()) {\n // filter out spaces\n if (!(token = this.tokenizer.nextToken()).equals(\" \")) {\n // check if token is an operand\n if (Operand.check(token)) {\n operandStack.push(new Operand(token));\n\n } else {\n if (!Operator.check(token)) {\n System.out.println(\"*****invalid token******\");\n System.exit(1);\n }\n\n //Gets a newOperator it matches from hashmap.\n Operator newOperator = Operator.getToken(token);\n\n //Processes only, when there is greater priority in stack and there are no '('\n while (operatorStack.peek().priority() >= newOperator.priority() && !newOperator.equals(Operator.getToken(\"(\"))) {\n\n //If the token read is ), then there is already '(' which is inserted in the operator stack.\n if (token.equals(\")\")) {\n //Perform until, the '(' is on top of the stack.\n while (!operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n\n }\n\n //If '(' found on top, pop and break, to continue to read more takens\n if (operatorStack.peek().equals(Operator.getToken(\"(\"))) {\n operatorStack.pop();\n break;\n }\n\n } \n //if ')' not found, it means either its in '(' or there are no parenthesis\n else {\n Operator oldOpr = operatorStack.pop();\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n }\n }\n //Pushes the operator, when the operator!=')'\n if (!newOperator.equals(Operator.getToken(\")\"))) {\n operatorStack.push(newOperator);\n }\n }\n }\n }\n // No more tokens to be read. All the tokens are in stacks, gets processed.\n if (!this.tokenizer.hasMoreTokens()) {\n //Keeps processing, until it reaches #\n while (operatorStack.size() != 1) {\n Operator oldOpr = operatorStack.pop();\n //Checks if there are operand left to be used,\n if (!operandStack.empty()) {\n Operand op2 = operandStack.pop();\n Operand op1 = operandStack.pop();\n operandStack.push(oldOpr.execute(op1, op2));\n } else {\n System.exit(1);\n }\n }\n }\n // Returns, the final result\n return operandStack.pop().getValue();\n }", "@Override\n public double evaluate() {\n setState(State.START);\n while (true) {\n switch(getState()) {\n case START:\n start();\n break;\n case NUMBER:\n number();\n break;\n case OPERATOR:\n operator();\n break;\n case LEFT_PAREN:\n leftParen();\n break;\n case RIGHT_PAREN:\n rightParen();\n break;\n case END:\n end();\n return (Double)getStack().pop();\n default:\n throw new Error(\"Something is wrong in ParenthesisCalculator.evaluate\");\n }\n }\n }", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "@Override\n public String Calculo(String expresion) throws ArithmeticException {\n while(!stack.empty()){\n stack.pop();\n }\n try {\n for(int i = 0; i<expresion.length(); i++){\n //Obtener cada caracter del string.\n char op = expresion.charAt(i);\n //Determinar si es un operador, operando o un termino no valido.\n if(nums.contains(Character.toString(op))){\n stack.push(Character.getNumericValue(op));\n }\n else if(ops.contains(Character.toString(op))){\n postFixEvalution(op);\n }\n else if(op != ' '){\n return \"Error: No se pudo realizar la operacion por invalidez de simbolos\";\n }\n }\n\n //Al finalizar, se debe validar que el stack tenga un solo dato dentro, el cual sera\n //probablemente el resultado de la operacion.\n\n if(stack.empty() || stack.size() > 1){\n return \"Error: Expresion invalida\";\n }\n else{\n return stack.pop().toString();\n }\n }\n catch (ArithmeticException e){\n\n throw new ArithmeticException(e.getMessage());\n }\n\n\n }", "@Override\n\tpublic int evalTree() {\n\t\tint num;\n\t\tExpressionTree left, right;\n\t\t\n\t\ttry {\n\t\t\tnum = Integer.parseInt(EMPTY + this.getValue());\n\n\t\t\treturn num;\n\t\t}\n\n\t\tcatch (NumberFormatException n) {\n\t\t\tleft = new ExpressionTree(getLeft());\n\t\t\tright = new ExpressionTree(getRight());\n\t\t\tif(TIMES_SIGN.equals(this.getValue()))\n\t\t\t\treturn left.evalTree() * right.evalTree();\n\t\t\telse\n\t\t\t\treturn left.evalTree() + right.evalTree();\n\t\t}\n\t}", "public static String produceAnswer(String input) {\n // TODO: Implement this function to produce the solution to the input\n \n // Parsing one line of input\n int space = input.indexOf(\" \"); // find the index of the first space\n String operandOne = input.substring(0, space); // substring of beginning to space before operator\n \n String newString1 = input.substring(space + 1, input.length());\n int space2 = newString1.indexOf(\" \"); // find the index of the second space\n String operator = newString1.substring(0, space2); // operator is between the first space and the second space\n \n String newString2 = newString1.substring(space2, newString1.length());\n String operandTwo = newString2.substring(space2, newString2.length()); // substring of space after operator to the end\n \n \n // Multiple operations\n while (operandTwo.indexOf(\" \") > 0) {\n int space3 = operandTwo.indexOf(\" \");\n String value = operandTwo.substring(0, space3);\n String new_String3 = operandTwo.substring(space3 + 1, operandTwo.length());\n int space4 = new_String3.indexOf(\" \");\n String operator2 = new_String3.substring(space4 - 1, space4);\n operandTwo = new_String3.substring(space4 + 1, new_String3.length());\n String new_equation = operandOne + \" \" + operator + \" \" + value;\n operandOne = produceAnswer(new_equation);\n operator = operator2;\n }\n \n // Parsing fractions: Operand 1\n String whole1 = operandOne; // hi_\n String num1 = \"\";\n String denom1 = \"\";\n int slash1 = operandOne.indexOf(\"/\");\n \n if (slash1 > 0) {\n int underscore1 = operandOne.indexOf(\"_\");\n if (underscore1 > 0) {\n whole1 = operandOne.substring(0, underscore1);\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n } else {\n whole1 = \"0\";\n num1 = operandOne.substring(underscore1 + 1, slash1);\n denom1 = operandOne.substring(slash1 + 1, operandOne.length());\n }\n \n } else {\n num1 = \"0\";\n denom1 = \"1\";\n }\n \n // Parsing fractions: Operand 2\n String whole2 = operandTwo;\n String num2 = \"\";\n String denom2 = \"\";\n int slash2 = operandTwo.indexOf(\"/\");\n \n if (slash2 > 0) {\n int underscore2 = operandTwo.indexOf(\"_\");\n if (underscore2 > 0) {\n whole2 = operandTwo.substring(0, underscore2);\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n } else {\n whole2 = \"0\";\n num2 = operandTwo.substring(underscore2 + 1, slash2);\n denom2 = operandTwo.substring(slash2 + 1, operandTwo.length());\n }\n \n } else {\n num2 = \"0\";\n denom2 = \"1\";\n }\n \n \n // change strings to integers\n int intwhole1 = Integer.parseInt(whole1);\n int intnum1 = Integer.parseInt(num1);\n int intdenom1 = Integer.parseInt(denom1);\n \n int intwhole2 = Integer.parseInt(whole2);\n int intnum2 = Integer.parseInt(num2);\n int intdenom2 = Integer.parseInt(denom2);\n \n // convert to improper fraction\n intnum1 += intdenom1 * Math.abs(intwhole1);\n if (intwhole1 < 0) {\n intnum1 *= -1;\n }\n \n intnum2 += intdenom2 * Math.abs(intwhole2);\n if (intwhole2 < 0) {\n intnum2 *= -1;\n }\n \n int finalnum = 0;\n int finaldenom = 0;\n int finalwhole = 0;\n \n // if denominator equals 0, quit\n if (intdenom1 == 0 || intdenom2 == 0) {\n return \"Invalid\";\n }\n \n // if operator is incorrect, quit\n if (operator.length() > 1) {\n return \"Invalid\";\n }\n \n // addition calculation\n // multiply whole values to fraction to get a common denominator\n if (operator.equals(\"+\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 + intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // subtraction calculation\n if (operator.equals(\"-\")) {\n intnum1 *= intdenom2;\n intnum2 *= intdenom1;\n finalnum = intnum1 - intnum2;\n finaldenom = intdenom1 * intdenom2;\n }\n \n // multiplication calculation\n if (operator.equals(\"*\")) {\n finalnum = intnum1 * intnum2;\n finaldenom = intdenom1 * intdenom2;\n if (intnum1 == 0 || intnum2 == 0) {\n return 0 + \"\";\n }\n }\n \n // division calculation\n if (operator.equals(\"/\")) {\n finalnum = intnum1 * intdenom2;\n finaldenom = intdenom1 * intnum2;\n }\n \n // make numerator negative instead of the denominator\n if (finaldenom < 0 && finalnum > 0) {\n finaldenom *= -1;\n finalnum *= -1;\n }\n \n // convert to mixed fraction if numerator is positive\n while (finalnum / finaldenom >= 1) {\n finalnum -= finaldenom;\n finalwhole += 1;\n }\n \n // convert to mixed fraction if numerator is negative\n while (finalnum / finaldenom <= -1) {\n finalnum += finaldenom;\n finalwhole -= 1;\n }\n \n // remove signs from numerator and denominator if there is a whole number\n if (finalwhole != 0) {\n finalnum = Math.abs(finalnum);\n finaldenom = Math.abs(finaldenom);\n }\n \n // reduce fraction\n int gcd = 1;\n for (int i = 1; i <= Math.abs(finalnum) && i <= Math.abs(finaldenom); i++) {\n if (finalnum % i == 0 && finaldenom % i == 0)\n gcd = i;\n }\n finalnum /= gcd;\n finaldenom /= gcd;\n \n // final output\n if (finalwhole == 0) {\n if (finalnum == 0) {\n return \"0\";\n } else {\n return finalnum + \"/\" + finaldenom;\n }\n } else if (finalnum == 0 || finaldenom == 1) {\n return finalwhole + \"\";\n } else {\n return finalwhole + \"_\" + finalnum + \"/\" + finaldenom;\n }\n }", "public static int calculate2(String s) {\n\t\tStack<Character> operators = new Stack<Character>();\n\t\tStack<Integer> operands = new Stack<Integer>();\n\t\t\n\t\tList<String> tokens = tokenize(s);\n\t\tfor (String token : tokens) {\n\t\t\ttoken = token.trim();\n\t\t\tif (!Character.isDigit(token.charAt(0))) {\n\t\t\t\tchar op = token.charAt(0);\n\t\t\t\tif (op == '+' || op == '-' || op == '*' || op == '/') {\n\t\t\t\t\twhile (!operators.empty() && priority(op) <= priority(operators.peek()))\n\t\t\t\t\t\teval(operators.pop(), operands);\n\t\t\t\t\toperators.push(op);\n\t\t\t\t} else if (op == '(')\n\t\t\t\t\toperators.push(op);\n\t\t\t\telse {\n\t\t\t\t\twhile (!operators.empty()) {\n\t\t\t\t\t\tchar tmp = operators.pop();\n\t\t\t\t\t\tif (tmp == '(')\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\teval(tmp, operands);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\toperands.push(Integer.parseInt(token));\n\t\t}\n\t\twhile(! operators.empty())\n\t\t\teval(operators.pop(), operands);\n\t\treturn operands.pop();\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\twhile(sc.hasNext()){\r\n\t\t\tString str = sc.nextLine();\r\n\t\t\tStack<String> digit = new Stack<>();\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\tchar ch;\r\n\t\t\tboolean isHasOperator = false;\r\n\t\t\tboolean isLegal = true;\r\n\t\t\tint len = str.length();\r\n\t\t\tint i = 0;\r\n\t\t\twhile(i<len){\r\n\t\t\t\tch = str.charAt(i);\r\n\t\t\t\tswitch (ch) {\r\n\t\t\t\tcase '[':\r\n\t\t\t\tcase '{':\r\n\t\t\t\tcase '(':\r\n\t\t\t\tcase '+':\r\n\t\t\t\tcase '-':\r\n\t\t\t\tcase '*':\r\n\t\t\t\tcase '/':\r\n\t\t\t\t\tdigit.push(ch+\"\");\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase ']':\r\n\t\t\t\tcase '}':\r\n\t\t\t\tcase ')':\r\n\t\t\t\t\tString second = null;\r\n\t\t\t\t\twhile(digit.size()>1){\r\n\t\t\t\t\t\t//!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")\r\n\t\t\t\t\t\tif(!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")&&!digit.peek().equals(\")\")\r\n\t\t\t\t\t\t\t\t&&!digit.peek().equals(\"]\")&&!digit.peek().equals(\"}\")&&!digit.peek().equals(\"+\")&&!digit.peek().equals(\"-\")&&!digit.peek().equals(\"*\")&&!digit.peek().equals(\"/\")){\r\n\t\t\t\t\t\t\tsecond = digit.pop();\r\n\t\t\t\t\t\t\tif (digit.size()>0&&(digit.peek().equals(\"+\")||digit.peek().equals(\"-\")||digit.peek().equals(\"*\")||digit.peek().equals(\"/\"))) {\r\n\t\t\t\t\t\t\t\tisHasOperator = true;\r\n\t\t\t\t\t\t\t\tdigit.pop();\r\n\t\t\t\t\t\t\t\tif (digit.size()>0) {\r\n\t\t\t\t\t\t\t\t\tsecond = digit.pop();\r\n\t\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\t\t\tisLegal = false;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\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\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tisLegal = false;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tString first = digit.pop();\r\n\t\t\t\t\t\tif (digit.size()>0&&!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")) {\r\n\t\t\t\t\t\t\tif (digit.peek().equals(\"+\")||digit.peek().equals(\"-\")||digit.peek().equals(\"*\")||digit.peek().equals(\"/\")) {\r\n\t\t\t\t\t\t\t\tisHasOperator = true;\r\n\t\t\t\t\t\t\t\tdigit.pop();\r\n\t\t\t\t\t\t\t\tif (isHasOperator&&!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")&&!digit.peek().equals(\")\")\r\n\t\t\t\t\t\t\t\t\t\t&&!digit.peek().equals(\"]\")&&!digit.peek().equals(\"}\")&&!digit.peek().equals(\"+\")&&!digit.peek().equals(\"-\")&&!digit.peek().equals(\"*\")&&!digit.peek().equals(\"/\")) {\r\n\t\t\t\t\t\t\t\t\tsecond = digit.pop();\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\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (second==null) {\r\n\t\t\t\t\t\tisLegal = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tdigit.pop();\r\n\t\t\t\t\t\tdigit.push(second);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbuffer.append(ch);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\twhile(i<len&&ch!='+'&&ch!='-'&&ch!='*'&&ch!='/'&&ch!='['&&ch!='{'&&ch!='('&&ch!=')'&&ch!=']'&&ch!='}'){\r\n\t\t\t\t\t\tch = str.charAt(i);\r\n\t\t\t\t\t\tbuffer.append(ch);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdigit.push(buffer.toString());\r\n\t\t\t\t\tbuffer.setLength(0);\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif (!isLegal) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (digit.size()==1&&!digit.peek().equals(\"{\")&&!digit.peek().equals(\"[\")&&!digit.peek().equals(\"(\")) {\r\n\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\tisLegal = false;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(isLegal);\r\n\t\t}\r\n\t}", "private void executeCommand() {\n\t\texpression += operand;\n\t\tdouble execute = command.execute(expression);\n\t\toperand = new StringBuilder(Double.toString(execute));\n\t\tfirstOperand = true;\n\t}", "protected void operation(String op) {\n \tint value;\n \tif (stack.empty()) {\n \t\tenter();\n \t}\n \telse {\n \t\tint second = stack.pop();\n \t // handles when only one value in stack\n \t\tif (stack.empty()) {\n \t\t\tif (op.equals(\"+\")) {\n \t\t\t\tstack.push(second);\n \t\t\t}\n \t\t\telse if (op.equals(\"-\")) {\n \t\t\t\tcurrent = second *-1;\n \t\t\t\tstack.push(current);\n \t\t\t\tshow(stack.peek());\n \t\t\t\tcurrent = 0;\n \t\t\t}\n \t\t\telse if (op.equals(\"*\")) {\n \t\t\t\tstack.push(0);\n \t\t\t\tshow(stack.peek());\n \t\t\t}\n \t\t\telse {\n \t\t\t\tstack.push(0);\n \t\t\t\tshow(stack.peek());\n \t\t\t}\n \t\t}\n \t // handles the other cases\n \t\telse {\n \t\t\tif (op.equals(\"+\")) {\n \t\t\t\tvalue = second + stack.pop();\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse if (op.equals(\"-\")) {\n \t\t\t\tvalue = stack.pop() - second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse if (op.equals(\"*\")) {\n \t\t\t\tvalue = stack.pop() * second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tvalue = stack.pop() / second;\n \t\t\t\tdisplayOperatedValue(value);\n \t\t\t}\n \t\t}\n \t}\n }", "private String evaluateExpr(String expr){\n\t\t//bigdecimal used for long user inputs\n\t\tBigDecimal num1, num2, ans, temp = new BigDecimal(\"0\");\n\t\tint check = 1;\n\t\t//find the position of function\n\t\twhile(Character.isDigit(expr.charAt(check)) || expr.charAt(check) == '.')\n\t\t\tcheck++;\n\t\t//extract numbers from expression\n\t\tnum1 = new BigDecimal(expr.substring(0,check));\n\t\tnum2 = new BigDecimal(expr.substring(check + 1,expr.length()));\n\t\t//division by zero error\n\t\tif(num2.compareTo(temp) == 0 && expr.charAt(check) == '/')\n\t\t\treturn \"Invalid\";\n\t\t//evaluate functions\n\t\tif(expr.charAt(check) == '*')\n\t\t\tans = num1.multiply(num2);\n\t\telse if(expr.charAt(check) == '+')\n\t\t\tans = num1.add(num2);\n\t\telse if(expr.charAt(check) == '/')\n\t\t\tans = num1.divide(num2, MathContext.DECIMAL32);\n\t\telse\n\t\t\tans = num1.subtract(num2);\n\t\treturn ans.toString();\n\t}", "@Test\n public void testCal(){\n Stack<Double> stack = new Stack<>();\n Double num = 3.14;\n stack.push(num);\n operator = new UndoOperator();\n Stack<String> historyStack = new Stack<>();\n historyStack.push(num.toString());\n try {\n operator.cal(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(0,stack.size());\n Assert.assertEquals(0,historyStack.size());\n\n //test \"+\"\n Double result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n Double secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.PLUS.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result-secOperand,stack.pop(),0.0000001);\n\n //test \"-\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.MINUS.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result+secOperand,stack.pop(),0.0000001);\n\n //test \"*\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.MULTIPLY.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result/secOperand,stack.pop(),0.0000001);\n\n //test \"/\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n secOperand = 5.00;\n historyStack.clear();\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.DIVIDE.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(secOperand,stack.pop(),0.0000001);\n Assert.assertEquals(result*secOperand,stack.pop(),0.0000001);\n\n //test \"sqrt\"\n result = 100.00;\n stack.clear();\n stack.push(result);\n operator = new UndoOperator();\n historyStack.clear();\n secOperand = 5.00;\n historyStack.push(secOperand.toString());\n historyStack.push(OperatorType.SQRT.getName());\n try {\n operator.calculate(stack,historyStack);\n }catch (Exception e){\n Assert.fail(\"No exception should be thrown.\");\n }\n Assert.assertEquals(result*result,stack.pop(),0.0000001);\n }", "@Override\n public Expression simplifyMore() {\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n // x * x -> x^2\n if (left.toString().equals(right.toString())) {\n return new Pow(left, 2);\n }\n\n // ((2.0 * x) * (x * 3.0)) -> 6x^2\n if (left instanceof Mult && right instanceof Mult) {\n if (((Mult) left).getRight().toString().equals(((Mult) right).getLeft().toString())) {\n Expression exp = new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getRight()),\n new Mult(((Mult) left).getRight(), ((Mult) right).getLeft()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n // 2x * 2x -> 4x^2\n if (left instanceof Mult && right instanceof Mult) {\n if (((Mult) left).getRight().toString().equals(((Mult) right).getRight().toString())) {\n return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),\n new Pow(((Mult) left).getRight(), 2)).simplify();\n }\n }\n\n // 2x * 2y -> 4xy\n if (left instanceof Mult && right instanceof Mult) {\n return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),\n new Mult(((Mult) left).getRight(), ((Mult) right).getRight())).simplify();\n }\n\n // sin(x) * cos(x) -> 0.5 * sin(2x)\n if (right instanceof Sin && left instanceof Cos) {\n Expression exp = new Mult(0.5, new Sin(new Mult(2, ((Sin) right).getExpression())));\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // cos(x) * sin(x) -> 0.5 * sin(2x)\n if (right instanceof Cos && left instanceof Sin) {\n Expression exp = new Sin(new Mult(2, ((Cos) right).getExpression()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // log(x, y) * 2 -> 2 * log(x, y)\n if (left instanceof Sin || left instanceof Cos || left instanceof Log) {\n Expression exp = new Mult(right, left);\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // x^2 * x^3 -> x^5\n if (left instanceof Pow && right instanceof Pow) {\n if (((Pow) left).getLeft().toString().equals(((Pow) right).getLeft().toString())) {\n Expression exp = new Pow(((Pow) left).getLeft(),\n new Plus(((Pow) left).getRight(), ((Pow) right).getRight()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n // x^2 * x -> x^3\n if (left instanceof Pow) {\n if (((Pow) left).getLeft().toString().equals(right.toString())) {\n Expression exp = new Pow(((Pow) left).getLeft(), new Plus(((Pow) left).getRight(), 1));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n return this;\n }", "public String getResult()\r\n\t{\r\n\t\tcheckInitialization();\r\n\t\t\r\n\t\tVectorStack<Character> operands = \t\t\tnew VectorStack<Character>();\r\n\t\tVectorStack<Integer> numbers = \t\t\t\tnew VectorStack<Integer>();\r\n\t\tVectorStack<Boolean> tempHasSignToCompare = new VectorStack<Boolean>();\r\n\t\t\r\n\t\tboolean lastWasNum = \t\t\tfalse;\t//true if last character was a number\r\n\t\tboolean hasSignToCompare = \t\tfalse;\t//true if a previous operand has yet to be computed in the string\r\n\t\tchar current;\t\t\t\t\t\t\t//current character in iterator\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tfor ( int i = 0; i < equationString.length(); i++ )\r\n\t\t\t{\r\n\t\t\t\tcurrent = equationString.charAt( i );\r\n\t\t\t\t\r\n\t\t\t\tif ( current == ' ' )\r\n\t\t\t\t{\r\n\t\t\t\t\t//keep empty. makes sure spaces aren't treated as an error\r\n\t\t\t\t}//end else if\r\n\t\t\t\telse if ( lastWasNum )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( Character.isDigit( current ) ) //multi-digit numbers\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint toFormat = numbers.pop();\r\n\t\t\t\t\t\ttoFormat = toFormat * 10 + current - '0';\r\n\t\t\t\t\t\tnumbers.push( toFormat );\r\n\t\t\t\t\t}//end if\r\n\t\t\t\t\telse if ( current == ')' )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twhile ( operands.peek() != '(' )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tsolveEquation( numbers, operands );\r\n\t\t\t\t\t\t}//end while\r\n\t\t\t\t\t\toperands.pop(); //removes '(' from operands stack\r\n\t\t\t\t\t\thasSignToCompare = tempHasSignToCompare.pop();\r\n\t\t\t\t\t}//end if\r\n\t\t\t\t\telse if ( isSign( current ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlastWasNum = false;\r\n\t\t\t\t\t\tif ( hasSignToCompare )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ( peekedHasPrecedence (\toperands.peek (), \t//solve peeked if it has precedence,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcurrent ) )\t\t\t//otherwise push current operand to stack\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tsolveEquation( numbers, operands );\r\n\t\t\t\t\t\t\t\toperands.push( current );\r\n\t\t\t\t\t\t\t}//end if\r\n\t\t\t\t\t\t\telse //peeked did not have precedence\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\toperands.push( current );\r\n\t\t\t\t\t\t\t}//end else\r\n\t\t\t\t\t\t}//end if\r\n\t\t\t\t\t\telse //there was no previous sign to compare\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\toperands.push( current ); //push current operand to stack and set corresponding boolean\r\n\t\t\t\t\t\t\thasSignToCompare = true;\r\n\t\t\t\t\t\t}//end else\r\n\t\t\t\t\t}//end else if\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn \"Error: Invalid character entered\";\r\n\t\t\t\t\t}//end else\r\n\t\t\t\t}//end if\r\n\t\t\t\telse //lastWasNum = false\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( Character.isDigit( current ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlastWasNum = true;\r\n\t\t\t\t\t\tnumbers.push( current - '0' );\r\n\t\t\t\t\t}//end if\r\n\t\t\t\t\telse if ( current == '(' )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\toperands.push( current );\r\n\t\t\t\t\t\ttempHasSignToCompare.push(hasSignToCompare);\r\n\t\t\t\t\t\thasSignToCompare = false;\r\n\t\t\t\t\t}//end else if\r\n\t\t\t\t\telse if ( isSign( current ) )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn \"Error: cannot have two adjacent signs\";\r\n\t\t\t\t\t}//end else if\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn \"Error: Invalid character entered\";\r\n\t\t\t\t\t}//end else\r\n\t\t\t\t}//end else\r\n\t\t\t}//end for\r\n\t\t\twhile ( !operands.isEmpty() )\r\n\t\t\t{\r\n\t\t\t\tsolveEquation( numbers, operands );\r\n\t\t\t}//end while\r\n\t\t}//end try\r\n\t\tcatch (ArithmeticException ae) \r\n\t\t{\r\n\t\t\treturn ae.toString();\r\n\t\t}//end catch ArithmeticException\r\n\t\tcatch (EmptyStackException ese) {\r\n\t\t\treturn ese.toString() + \" Make sure all parenthesis have a matching pair\";\r\n\t\t}//end catch EmptyStackException\r\n\t\treturn numbers.pop().toString();\r\n\t}", "public static String calculateStringEquation(String equation){\r\n //\"(17*(8-7/7))^2+7-3*-6*s90\"\r\n //Validity Check\r\n String numberSymbols = \"-.0123456789\";\r\n String operators = \"*/+^√sdfzcv\";\r\n \r\n //Replace alternate symbols\r\n equation = equation.replace(\",\", \".\");\r\n equation = equation.replace(\"x\", \"*\");\r\n equation = equation.replace(\"%\", \"/100\");\r\n equation = equation.replace(\"\\\\\", \"/\");\r\n \r\n //Insert + in front of -\r\n int c = 1;\r\n String newEquation = \"\" + equation.charAt(0);//Doesnt need to add + to begin\r\n while (c < equation.length()) {\r\n if (equation.charAt(c) == '-' && !operators.contains(\"\"+equation.charAt(c-1))) {\r\n newEquation += \"+\";\r\n }\r\n newEquation += equation.charAt(c);\r\n c++;\r\n }\r\n equation = newEquation;\r\n \r\n\r\n\r\n\r\n //Convert everything to double (eg 2 -> 2.0)\r\n c = 0;\r\n newEquation = \"\";\r\n boolean inNum = false;\r\n while (c < equation.length()) {\r\n if (numberSymbols.indexOf(equation.charAt(c)) != -1) {\r\n if (!inNum) {//Doesnt re read when going over more difficult numbers eg 2342\r\n newEquation += findNextNumber(equation, c-1);//opIndex is the index before next\r\n inNum = true;\r\n }\r\n }else{\r\n inNum = false;\r\n newEquation += equation.charAt(c);\r\n }\r\n c++;\r\n }\r\n equation = newEquation;\r\n //Brackets\r\n while(equation.contains(\"(\") || equation.contains(\")\")) {\r\n int openIndex = equation.indexOf(\"(\");\r\n int openBrackets = 1;\r\n int closedBrackets = 0;\r\n int closeIndex = openIndex + 1;\r\n\r\n while (openBrackets != closedBrackets) {\r\n if (equation.charAt(closeIndex) == '(') {\r\n openBrackets++;\r\n }\r\n if (equation.charAt(closeIndex) == ')') {\r\n closedBrackets++;\r\n }\r\n closeIndex++;\r\n }\r\n\r\n //Rewrite equation and sub in new value\r\n newEquation = \"\";//Reused\r\n if (openIndex != 0) {\r\n newEquation += equation.substring(0, openIndex);\r\n }\r\n newEquation += calculateStringEquation(equation.substring(openIndex+1, closeIndex-1));\r\n if (closeIndex != equation.length()-1) {\r\n newEquation += equation.substring(closeIndex);\r\n }\r\n equation = newEquation;\r\n }\r\n \r\n //Check order\r\n boolean test = checkStringFormula(equation);\r\n if (checkStringFormula(equation)) {\r\n //Trig (Typically in brackets)\r\n while (equation.contains(\"s\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"s\"));\r\n equation = equation.replace(\"s\" + num1, \"\" + (Math.sin(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"d\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"d\"));\r\n equation = equation.replace(\"d\" + num1, \"\" + (Math.cos(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"f\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"f\"));\r\n equation = equation.replace(\"f\" + num1, \"\" + (Math.tan(Math.toRadians(num1))));\r\n }\r\n while (equation.contains(\"z\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"z\"));\r\n equation = equation.replace(\"z\" + num1, \"\" + Math.toDegrees(Math.asin(num1)));\r\n }\r\n while (equation.contains(\"c\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"c\"));\r\n equation = equation.replace(\"c\" + num1, \"\" + Math.toDegrees(Math.acos(num1)));\r\n }\r\n while (equation.contains(\"v\")) {\r\n double num1 = findNextNumber(equation,equation.indexOf(\"v\"));\r\n equation = equation.replace(\"v\" + num1, \"\" + Math.toDegrees(Math.atan(num1)));\r\n }\r\n //Exponents\r\n while (equation.contains(\"^\")) {\r\n int opIndex = equation.indexOf(\"^\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n ans = 1;\r\n }else{\r\n for (int i = 0; i < num2-1; i++) {\r\n ans*=ans;\r\n }\r\n if (num2 < 0) {\r\n ans = 1/ans;\r\n }\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Roots\r\n while (equation.contains(\"√\")) {\r\n int opIndex = equation.indexOf(\"√\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n throw new ArithmeticException(\"Math error\");\r\n }else{\r\n ans = Math.pow(num2, 1/num1);\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Division\r\n while (equation.contains(\"/\")) {\r\n int opIndex = equation.indexOf(\"/\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans = num1;//Need num1 for replace\r\n\r\n if (num2 == 0) {\r\n throw new java.lang.ArithmeticException();\r\n }else{\r\n ans = num1/num2;\r\n }\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Multiplication\r\n while (equation.contains(\"*\")) {\r\n int opIndex = equation.indexOf(\"*\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans;//Need num1 for replace\r\n\r\n ans = num1*num2;\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n //Addition\r\n while (equation.contains(\"+\")) {\r\n int opIndex = equation.indexOf(\"+\");\r\n double num1,num2;\r\n num1 = findPreviousNumber(equation,opIndex);//Previous number is answer before ^\r\n num2 = findNextNumber(equation,opIndex);\r\n double ans;//Need num1 for replace\r\n\r\n ans = num1+num2;\r\n String oldNum = \"\" + num1 + equation.charAt(opIndex) + num2;\r\n String newNum = \"\"+ans;\r\n equation = equation.replace(oldNum, newNum);\r\n }\r\n\r\n return equation;\r\n }else{\r\n throw new AssertionError(\"Incorrect Format\");\r\n }\r\n }", "public static String evaluate( String expr ) \n {\n\tString[] arr = expr.split(\"\\\\s+\");\n\tLLStack<String> nums = new LLStack<String>();\n\tLLStack<String> noClose = new LLStack<String>();\n\tint op = 0;\n\n\tfor(String i : arr){ \n\t if(i.equals(\")\")){ //when you reach the closing parenthesis\n\t\tString top = noClose.pop(); //start going through this part of the expression\n\t\tnums.push(i); //add ( to stack for unload\n\t\t\n\t\twhile(!top.equals(\"(\")){ //until you reach the (, where the expression ends\n\t\t\t \n\t\t if(top.equals(\"+\")) op = 1;\n\t\t else if(top.equals(\"-\")) op = 2;\n\t\t else if(top.equals(\"*\")) op = 3;\n\n\t\t else nums.push(top); //if it's not an operand\n\n\t\t top = noClose.pop();\n\t\t}\n\n\t\tnoClose.push(unload(op, nums));\n\t }\n\t \n\t else noClose.push(i); //pushed into a stack of what's in this ()\n \n\t}//end of for loop \n \n\treturn noClose.peek();\n }", "public static int term()\r\n {\r\n //get the start state of this factor\r\n int r;\r\n int t1;\r\n t1=r=factor();\r\n\r\n //if there is no more input, we are done\r\n if(index>expression.length()-1)\r\n {\r\n return r;\r\n }\r\n\r\n //if it is closure\r\n if(expression.charAt(index)=='*')\r\n {\r\n int f=state-1;\r\n //create a branch state and set its next1 and next2\r\n state st=new state(state,\"BR\",t1,state+1);\r\n stateList.add(st);\r\n\r\n //check if the expression is something like (abc)*\r\n //if so, update the corresponding state so both a* and (abc)* work\r\n if(expression.charAt(index-1)!=')')\r\n {\r\n if(stateList.get(f-1).getNext1()==stateList.get(f-1).getNext2())\r\n {\r\n stateList.get(f-1).setNext1(state);\r\n }\r\n stateList.get(f-1).setNext2(state);\r\n\r\n }\r\n\r\n index++;\r\n r=state;\r\n state++;\r\n\r\n }\r\n //preceding regexp can occur one or more times\r\n else if(expression.charAt(index)=='+')\r\n {\r\n int f=state-1;\r\n stateList.get(f).setNext1(t1);\r\n index++;\r\n\r\n }\r\n // preceding regexp can occur zero or one time\r\n else if(expression.charAt(index)=='?')\r\n {\r\n int f =state-1;\r\n //check if the expression is something like (abc)?\r\n //if so update corresponding state so both a? and (abc)? work\r\n if(expression.charAt(index-1)!=')')\r\n {\r\n //create a branch state and update the corresponding state\r\n state st=new state(state,\"BR\",t1,state+1);\r\n\r\n String previousChar=stateList.get(f).getCharacter();\r\n\r\n if(stateList.get(f).getAlter())\r\n {\r\n stateList.get(f).setAlter(false);\r\n st.setAlter(true);\r\n }\r\n\r\n stateList.get(f).setCharacter(\"BR\");\r\n stateList.get(f).setNext2(state+1);\r\n st.setCharacter(previousChar);\r\n st.setNext1(state+1);\r\n stateList.add(st);\r\n\r\n r=f;\r\n state++;\r\n index++;\r\n }\r\n else\r\n {\r\n //create a branch state and update the corresponding state\r\n if(stateList.get(f).getNext1()==stateList.get(f).getNext2())\r\n {\r\n stateList.get(f).setNext1(state+1);\r\n }\r\n stateList.get(f).setNext2(state+1);\r\n\r\n state st=new state(state,\"BR\",t1,state+1);\r\n stateList.add(st);\r\n\r\n r=state;\r\n state++;\r\n index++;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n return r;\r\n }", "public static void main(String[] args) {\n MathOp add=new MathOp() {\n \t \n public int operation(int x, int y)\n {\n \t return x+y;\n }\n\t };\n\t System.out.println(add.operation(1, 2));\n \n\t MathOp sub=new MathOp() {\n \t \n\t public int operation(int x, int y)\n\t {\n\t \t return x-y;\n\t }\n\t\t };\n\t\t System.out.println(sub.operation(1, 2));\n\t \n\t\t MathOp mul=new MathOp() {\n\t \t \n\t\t public int operation(int x, int y)\n\t\t {\n\t\t \t return x*y;\n\t\t }\n\t\t\t };\n\t\t\t System.out.println(mul.operation(1, 2));\n\t\t \n\t\t\t MathOp div=new MathOp() {\n\t\t \t \n\t\t\t public int operation(int x, int y)\n\t\t\t { \n\t\t\t \t return x/y;\n\t\t\t }\n\t\t\t\t };\n\t\t\t\t System.out.println(div.operation(1, 2));\n\t\t\t \n}", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "public String evaluate(Node root){\n\t\tObject[] args;\n\t\tClass[] types;\n\t\tint i= 0;\n\t\tNode nxt;\n\t\tString fun;\n\t\tfun = root.getValue();\n\t\tClass c=null;\n\t\t\n\t\tLinkedList<Node> children = root.getChildren();\n\n\t\tIterator<Node> iter = children.listIterator();\n\t\tif (!iter.hasNext()){\n\t\t\treturn fun;\n\t\t}\n\t\ttypes= new Class[children.size()];\n\t\targs = new Object[children.size()];\n\t\t\n\t\t//populates types[] for getmethod and args[] for invoke\n\t\twhile (iter.hasNext()) {\n\t\t\tnxt = iter.next();\n\t\t\tfun = evaluate(nxt);\n\t\t\tswitch ( root.getReturnType()[i+1] & 0b1111 ) {\n\t\t\t\t//the argument should be a string\n\t\t\t\tcase STRING:\n\t\t\t\t\tc=String.class;\n\t\t\t\t\targs[i]=fun.replace(\"\\\"\",\"\");\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a float primitive\n\t\t\t\tcase FLOAT:\n\t\t\t\t\tc=float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a int primitive\n\t\t\t\tcase INTEGER:\n\t\t\t\t\tc=int.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a Float class\n\t\t\t\tcase BIGFLOAT:\n\t\t\t\t\tc=Float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be an Integer class\n\t\t\t\tcase BIGINTEGER:\n\t\t\t\t\tc=Integer.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\n\t\t\ttypes[i]=c;\n\t\t\ti ++;\n\t\t\t\n\t\t}\n\t\tfun = root.getValue();\n\t\t\n\t\ttry {\n\t\t\t//get the method at this node and apply it to the evaluation of its children\n\t\t\tfun = \"\" + coms.getMethod(fun, types).invoke(coms, args);\n\t\t}catch (Exception e){\n\t\t\t//this will never ever happen\n\t\t}\n\t\t\n\t\treturn fun;\n\t}", "private int eval(ExpressionNodes root)\n\t {\n\t \tif (root.right == null && root.left == null) \n\t \t{\n\t \t\t\tint leaf = Integer.parseInt(root.data);\n\t \t\t\treturn leaf; \n\t \t}\n\t \t\n\t \t// if the node is an operator // \n\t \telse \n\t \t{\n\t \t\t\tint op1 = eval(root.left); \n\t \t\t\tint op2 = eval(root.right);\n\t \n\t \t\n\t\t\t \tString operator = root.data; // initialize operator string \n\t\t\t \tint n = 0; // initialize the integer that will be returned \n\t\t\t \t\n\t\t\t \t// switch case to conduct for the different operators \n\t\t\t \tswitch(operator) \n\t\t\t \t{\n\t\t\t\t case \"+\":\n\t\t\t\t \tn = op1 + op2; \n\t\t\t\t \tbreak;\n\t\t\t\t \t\n\t\t\t\t case \"-\":\n\t\t\t\t n = op1 - op2; \n\t\t\t\t break;\n\t\t\t\t \n\t\t\t\t case \"*\":\n\t\t\t\t n = op1 * op2; \n\t\t\t\t break;\n\t\t\t\t \n\t\t\t\t case \"/\":\n\t\t\t\t n = op1 / op2; \n\t\t\t\t break;\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \treturn n; \n\t \t}\n\t\t\t\n\t }", "@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}", "public static int evaluate(String expression) {\n\n\t\tchar[] tokens = expression.toCharArray();\n\t\t// Stack for numbers: 'values'\n\t\tStack<Integer> values = new Stack<Integer>();\n\t\t// Stack for Operators: 'operators'\n\t\tStack<Character> operators = new Stack<Character>();\n\n\t\tfor (int i = 0; i < tokens.length; i++) {\n\t\t\t// Current token is a whitespace, skip it\n\t\t\tif (tokens[i] == ' ')\n\t\t\t\tcontinue;\n\t\t\t// Current token is a number, push it to stack for numbers\n\t\t\tif (tokens[i] >= '0' && tokens[i] <= '9') {\n\t\t\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\t\t\t// There may be more than one digits in number\n\t\t\t\twhile (i < tokens.length && tokens[i] >= '0' && tokens[i] <= '9') {\n\t\t\t\t\tstringBuffer.append(tokens[i++]);\n\t\t\t\t}\n\t\t\t\tvalues.push(Integer.parseInt(stringBuffer.toString()));\n\t\t\t i--;\n\t\t\t} else if (tokens[i] == '(') {\n\t\t\t // Current token is an opening brace, push it to 'operators'\n\t\t\t\toperators.push(tokens[i]);\n\t\t\t} else if (tokens[i] == ')') {\n\t\t\t // Closing brace encountered, solve entire brace\n\t\t\t\twhile (operators.peek() != '(') {\n\t\t\t\t values.push(applyOperation(operators.pop(), values.pop(), values.pop()));\n\t\t\t }\n\t\t\t\toperators.pop();\n\t\t\t} else if (tokens[i] == '+' || tokens[i] == '-' ||tokens[i] == '*' || tokens[i] == '/') {\n\t\t\t // Current token is an operator.\n\t\t\t\twhile (!operators.empty() && hasPrecedence(tokens[i], operators.peek())) {\n\t\t\t\t values.push(applyOperation(operators.pop(), values.pop(),values.pop()));\n\t\t\t // System.out.println(values.peek());\n\t\t\t }\n\t\t\t\t// Push current token to 'operators'.\n\t\t\t\toperators.push(tokens[i]);\n\t\t\t}\n\t\t}\n\t\t// Entire expression has been parsed at this point, apply remaining operators to remaining values\n\t\twhile (!operators.empty()) {\n\t\t\tvalues.push(applyOperation(operators.pop(), values.pop(), values.pop()));\n\t\t}\n\t\t// Top of 'values' contains result, return it\n\t\treturn values.pop();\n\t}", "private static String fixKleene(String reg) {\n int ind, beg, len;\n String expr;\n\n do {\n ind = reg.indexOf('*');\n if (ind != -1 && reg.charAt(ind - 1) == QUOTE)\n ind = 0;\n } while(ind == 0);\n\n while (ind >= 1) {\n char character = reg.charAt(ind - 1);\n if (character == ')') {\n beg = reg.substring(0, ind).lastIndexOf(\"(\");\n expr = reg.substring(beg + 1, ind - 1);\n len = expr.length();\n if (expr.contains(\"|\")) {\n if (ind + len + 2 < reg.length()\n && reg.substring(ind + 1, ind + 1 + len + 2).equals(\"(\" + expr + \")\")) {\n replace(reg, ind, '+');\n removeChars(reg, ind + 1, len + 2);\n }\n if (ind - (2 + len) * 2 >= 0\n && reg.substring(ind - (2 + len) * 2, ind - 2 - len).equals(\n \"(\" + expr + \")\")) {\n replace(reg, ind, '+');\n removeChars(reg, ind - (2 + len) * 2, len + 2);\n }\n } else {\n if (ind + len < reg.length()\n && reg.substring(ind + 1, ind + 1 + len).equals(expr)) {\n replace(reg, ind, '+');\n removeChars(reg, ind + 1, len);\n }\n if (ind - 2 - len * 2 >= 0\n && reg.substring(ind - 2 - len * 2, ind - 2 - len).equals(expr)) {\n replace(reg, ind, '+');\n removeChars(reg, ind - 2 - len * 2, len);\n }\n }\n } else if (reg.charAt(ind - 1) == QUOTE) {\n if (ind + 2 < reg.length() && reg.charAt(ind + 2) == character\n && reg.charAt(ind + 1) == QUOTE) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind + 1, 2);\n }\n if (ind - 2 * 2 >= 0 && reg.charAt(ind - 2 - 1) == character\n && reg.charAt(ind - 2 * 2) == QUOTE) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind - 2, 2);\n }\n } else {\n if (ind + 1 < reg.length() && reg.charAt(ind + 1) == character) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind + 1, 1);\n }\n if (ind - 2 >= 0 && reg.charAt(ind - 2) == character) {\n reg = replace(reg, ind, '+');\n reg = removeChars(reg, ind - 2, 1);\n }\n }\n ind = reg.indexOf('*', ind + 1);\n }\n return reg;\n }", "public int calculate(String s) {\n if ((s == null) || (s.length() == 0)) return 0;\n int i = 0;\n int j = 0;\n s = s.replace(\" \", \"\");\n String val = \"\";\n int prevVal = 0;\n Stack<Integer> stack = new Stack<Integer>();\n while ((i < s.length()) && (j < s.length())) {\n char ch = s.charAt(i);\n if ((ch == '+') || (ch == '-')) {\n Integer top = null;\n if ( ! stack.isEmpty()) top = stack.peek();\n if (top != null) {\n int topValue = top.intValue();\n if ((topValue == '+') || (topValue == '-') && (stack.size() >= 2)) {\n stack.pop();\n Integer op = stack.pop();\n if (val.length() > 0) {\n if (topValue == '+') stack.push(Integer.parseInt(val) + op.intValue());\n else stack.push(op.intValue() - Integer.parseInt(val));\n }\n }\n }\n else if (val.length() > 0) stack.push(Integer.parseInt(val));\n stack.push((int) ch);\n val = \"\";\n i++;\n } else if ((ch == '*') || (ch == '/')) {\n prevVal = Integer.parseInt(val);\n val = \"\";\n j = i + 1;\n while (j < s.length()) {\n char ch_next = s.charAt(j);\n if ((ch_next == '+') || (ch_next == '-') || (ch_next == '*') || (ch_next == '/')) {\n i = j;\n break;\n } else {\n val = val + ch_next;\n }\n j++;\n }\n if (val.length() > 0) {\n if (ch == '*') val = (Integer.parseInt(val) * prevVal) + \"\";\n else val = (prevVal / Integer.parseInt(val)) + \"\";\n prevVal = 0;\n }\n } else {\n val = val + ch;\n i++;\n }\n }\n if (val.length() > 0) {\n stack.push(Integer.parseInt(val));\n }\n int res = 0;\n while ( ! stack.isEmpty()) {\n int op_2 = stack.pop();\n res = op_2;\n if (stack.size() >= 2) {\n int op = stack.pop();\n int op_1 = stack.pop();\n if (op == '+') stack.push(op_2 + op_1);\n else stack.push(op_1 - op_2);\n\n }\n }\n return res;\n }", "@SuppressWarnings(\"unused\")\r\n\t@Override\r\n\tpublic double doCommand(String[] parameters, int commandIndex) {\n\t\tDouble leftExpression = null;\r\n\t\tDouble rightExpression = null;\r\n\t\tString predicate=null;\r\n\t\tint res=0;\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tint innerLoop = 0;\r\n\t\tString[] innerLoopEquasion = new String[5];\r\n\t\tint j=0;\r\n\t\tString[] whileiLine=null;\r\n\t\tboolean flag= true;\r\n\t\t\r\n//\t\tSystem.out.println(\"length is: \"+parameters.length);\r\n//\t\t\r\n//\t\tfor(String s: parameters) {\r\n//\t\t\tSystem.out.println(s);\r\n//\t\t}\r\n//\t\t\r\n\t\tfor(int i=0; i<parameters.length;i++) {\r\n\t\t\tif(parameters[i].contains(\"while\")) {\r\n\t\t\t\tinnerLoop = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"length is: \" + parameters.length);\r\n//\t\tSystem.out.println(\"innerloop index: \" + innerLoop);\r\n\t\t\t\t\t\r\n\t\t//calculate how many equasion i need to calculate\r\n\t\tfor(int i=innerLoop; i<parameters.length && flag;i++) {\r\n\t\t\tif(parameters[i].contains(\"while\")) {\r\n\t\t\t\twhileiLine = parameters[i].split(\"\\\\s+\");\r\n\t\t\t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n\t\t\t\trightExpression= ExpressionToDouble(whileiLine[3]);\r\n\t\t\t\tpredicate = whileiLine[2];\r\n\t\t\t}\r\n\t\t\telse if(parameters[i].contains(\"}\")) {\r\n\t\t\t\tflag=false;\r\n\t\t\t}\t\t\t\r\n\t\t\telse if(i>innerLoop) {\t\r\n\t\t\t\t innerLoopEquasion[j]=parameters[i];\r\n\t\t\t\t//System.out.println(\"loopy: \"+ innerLoopEquasion[j]);\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\t//apply the condition:\r\n\t switch (predicate) {\r\n case \"<\": {\r\n while (leftExpression - rightExpression < 0) {\r\n \tres=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\r\n }\r\n } break;\r\n\r\n case \">\": {\r\n while (leftExpression - rightExpression > 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"<=\": {\r\n while (leftExpression - rightExpression <= 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \">=\": {\r\n while (leftExpression - rightExpression >= 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"==\": {\r\n while (leftExpression - rightExpression == 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"!=\": {\r\n while (leftExpression - rightExpression != 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n } \r\n\t //return the next expression afer the \"}\"\r\n\t return parameters.length;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\tfor(int Case = 1;Case<=t;Case++){\n\t\t\tString stck = sc.next();\n\t\t\tint move =0;\n\t\t\tboolean ok = false;\n\t\t\tif(stck.indexOf('+')==-1)\n\t\t\t{\n\t\t\t\tmove=1;\n\t\t\t}else if(stck.indexOf('-')==-1)\n\t\t\t{\n\t\t\tmove =0;\n\t\t\t}else{\n\t\t\t\tString oper = stck.substring(0, stck.lastIndexOf('-')+1);\n\t\t\t\t\n\t\t\t\tif(oper.lastIndexOf('-')==0)\n\t\t\t{\n\t\t\tchar[] temp = oper.toCharArray();\n\t\t\t temp[oper.lastIndexOf('-')] = '+';\n\t\t\toper = String.valueOf(temp);\n\t\t\tmove+=1;\n\t\t\t\t\t}\n\t\t\telse if(oper.indexOf('-')==oper.length()-1)\n\t\t\t\t{\n\t\t\t\tchar[] temp = oper.toCharArray();\n\t\t\t\t temp[oper.indexOf('-')] = '+';\n\t\t\t\toper = String.valueOf(temp);\n\t\t\t\tmove+=2;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tfor(int i =0;i<=oper.lastIndexOf('-');i++){\n\t\t\t\t\t\t\t\tif(oper.charAt(i)=='+')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tok=true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!ok){\n\t\t\t\t\t\t\t\tmove=1;\n\t\t\t\t\t\t\t\toper=\"+\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t//System.out.println(1+oper);\n\t\t\t\n\t\t\twhile(oper.indexOf('-')!=-1){\n\t\t\tint k = 0;\n\t\t\t\tif(oper.indexOf('+')==0){\n\t\t\t\t\tchar[] temp = oper.toCharArray();\n\t\t\t\t\t temp[0] = '-';\n\t\t\t\t\toper = String.valueOf(temp);\n\t\t\t\twhile(oper.charAt(k+1)=='+')\n\t\t\t\t\t{\n\t\t\t\t\tk++;\n\t\t\t\t\tchar[] temp1 = oper.toCharArray();\n\t\t\t\t\t temp1[k] = '-';\n\t\t\t\t\toper = String.valueOf(temp1);\n\t\t\t\t\t}\n\t\t\t\t//System.out.println(2+oper);\n\t\t\t\tchar[] temp1 = oper.toCharArray();\n\t\t\t\tfor(int i =0;i<temp1.length;i++){\n\t\t\t\t\tif(temp1[i]=='+')\n\t\t\t\t\t\ttemp1[i]='-';\n\t\t\t\t\telse\n\t\t\t\t\t\ttemp1[i]='+';\n\t\t\t\t\t//System.out.print(temp1[i]);\n\t\t\t\t}\n\t\t\t\toper = String.valueOf(temp1);\n\t\t\t\tStringBuilder s = new StringBuilder(oper);\n\t\t\t\toper = (s.reverse()).toString();\n\t\t\t\tmove+=2;\n\t\t\t\t//System.out.println(3+\" \"+temp1.length+\"\"+oper);\n\t\t\t\toper = oper.substring(0, oper.lastIndexOf('-')+1);\n\t\t\t\t//System.out.println(3+\" \"+temp1.length+\"\"+oper);\n\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tchar[] temp1 = oper.toCharArray();\n\t\t\t\t\tfor(int i =0;i<temp1.length;i++){\n\t\t\t\t\t\tif(temp1[i]=='+')\n\t\t\t\t\t\t\ttemp1[i]='-';\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttemp1[i]='+';\n\t\t\t\t\t\t//System.out.print(temp1[i]);\n\t\t\t\t\t}\n\t\t\t\t\toper = String.valueOf(temp1);\n\t\t\t\t\tStringBuilder s = new StringBuilder(oper);\n\t\t\t\t\toper = (s.reverse()).toString();\n\t\t\t\t\tmove+=1;\n\t\t\t\t\t//System.out.println(3+\" \"+temp1.length+\"\"+oper);\n\t\t\t\t\toper = oper.substring(0, oper.lastIndexOf('-')+1);\n\t\t\t\t\t//System.out.println(3+\" \"+temp1.length+\"\"+oper);\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Case #\"+Case+\": \"+move);\n\t\t}\n\t\t\n\n\t}", "private double processExpression() throws ParsingException {\n double result = processTerm();\n\n while (true) {\n if (tryCaptureChar('+')) {\n result += processTerm();\n } else if (tryCaptureChar('-')) {\n result -= processTerm();\n } else {\n break;\n }\n }\n return result;\n }", "public static Expr parse(String str) {\r\n\t\tExprBinary at = new ExprBinary(null, null); // the root of the tree\r\n\t\tStringBuilder opstore = new StringBuilder(); // stores operator characters\r\n\t\tStringBuilder adder = new StringBuilder(); // stores value characters\r\n\t\tboolean text = false; // whether inside of a string\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tboolean add = (c != '\\\\'); // whether to add the char to adder. ignore escape char\r\n\t\t\tboolean leftSide = (opstore.length() == 0); // whether on the left side of the binary expression (before the operator)\r\n\t\t\tString adderStr = adder.toString();\r\n\t\t\tString opStr = opstore.toString();\r\n\r\n\t\t\tif (c == '\"') { // string\r\n\t\t\t\tif (i == 0 || str.charAt(i - 1) != '\\\\') {\r\n\t\t\t\t\ttext = !text; // ignore string contents\r\n\t\t\t\t}\r\n\t\t\t} else if (!text) {\r\n\t\t\t\tif (c == ' ') {\r\n\t\t\t\t\tadd = false; // ignore spaces\r\n\t\t\t\t} else if (c == '(') { // grouping or function\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tString contents = str.substring(i + 1, closeIndex);\r\n\t\t\t\t\tExpr group; // the expression denoted by the parentheses group\r\n\r\n\t\t\t\t\tif (i > 0 && (!isReserved(str.charAt(i - 1)) || str.charAt(i - 1) == ')')) { // function\r\n\t\t\t\t\t\tif (adderStr.isEmpty()) { // function reference call ... func()()\r\n\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(null, contents); // a reference call is only a parameter group, null name\r\n\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t} else { // function call\r\n\t\t\t\t\t\t\tif (adderStr.startsWith(\".\")) { // function sub call ... func().subfunc()\r\n\t\t\t\t\t\t\t\tExpr leftLink = leftSide ? at.left() : at.right();\r\n\t\t\t\t\t\t\t\tExprCall rightLink = new ExprCall(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\tgroup = new ExprCallChain(leftLink, rightLink);\r\n\r\n\t\t\t\t\t\t\t} else { // standalone function ... func()\r\n\t\t\t\t\t\t\t\tif (Character.toString(adderStr.charAt(0)).equals(Operator.REF.op)) { // @func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprFuncRef(adderStr.substring(1), contents);\r\n\t\t\t\t\t\t\t\t} else { // func()\r\n\t\t\t\t\t\t\t\t\tgroup = new ExprCall(adderStr, contents);\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} else { // parenthetical grouping\r\n\t\t\t\t\t\tchar cc = (adderStr.length() == 1 ? adderStr.charAt(0) : 0); // operator before parenthesis ... !()\r\n\t\t\t\t\t\tif (isReserved(cc)) { // operation on the group\r\n\t\t\t\t\t\t\tgroup = new ExprUnary(Operator.get(Character.toString(cc)), parse(contents));\r\n\t\t\t\t\t\t} else { // ignore character, not an operator\r\n\t\t\t\t\t\t\tgroup = parse(contents);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add to tree\r\n\t\t\t\t\tif (leftSide) at.setLeft(group);\r\n\t\t\t\t\telse at.setRight(group);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (c == '{') { // array initializer ... {}\r\n\t\t\t\t\tint closeIndex = getExitIndex(str, i);\r\n\t\t\t\t\tExpr arr = new ExprArray(str.substring(i + 1, closeIndex), adderStr);\r\n\r\n\t\t\t\t\tif (adderStr.length() == 1 && isReserved(adderStr.charAt(0))) {\r\n\t\t\t\t\t\t// unary op done on array initializer ... !{}\r\n\t\t\t\t\t\tarr = new ExprUnary(Operator.get(Character.toString(adderStr.charAt(0))), arr);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (leftSide) at.setLeft(arr);\r\n\t\t\t\t\telse at.setRight(arr);\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t\ti = closeIndex;\r\n\t\t\t\t\tadd = false;\r\n\r\n\t\t\t\t} else if (isOp(c)) { // operator\r\n\t\t\t\t\t// add value used in operation to tree\r\n\t\t\t\t\tif (!adderStr.isEmpty()) {\r\n\t\t\t\t\t\tif (leftSide) { // ex: adderStr + ___\r\n\t\t\t\t\t\t\tat.setLeft(parseValue(adderStr));\r\n\t\t\t\t\t\t} else { // ex: (___ + adderStr) + ___\r\n\t\t\t\t\t\t\tat.setRight(parseValue(adderStr));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opStr.equals(\"\") || (i > 0 && isOp(str.charAt(i - 1)))) { // accumulate operator from adjacent operator characters (ex: != consists of ! and =)\r\n\t\t\t\t\t\tif (!(adderStr.isEmpty() && (opStr + c).equals(\"-\")) && (Operator.get(opStr + c) != null || (opStr.isEmpty() && isOp(c)))) {// if the operator exists, then it is an operator character\r\n\t\t\t\t\t\t\tif (opStr.equals(\"-\") && c == '-') { // this and the above line handle negatives and double negatives\r\n\t\t\t\t\t\t\t\topStr = \"+\";\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topStr += c;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else { // existing operator operation must be added to tree ... in \"(a + b) * c\", \"(a+b)\" must be abstracted-out so we get \"x * c\"\r\n\t\t\t\t\t\tint endIndex = i + 1; // end index of operator\r\n\r\n\t\t\t\t\t\t// get entire operator if operator is more than 1 character long\r\n\t\t\t\t\t\tfor (int i2 = endIndex; i2 < str.length(); i2++) {\r\n\t\t\t\t\t\t\tif (isOp(str.charAt(i2))) endIndex++;\r\n\t\t\t\t\t\t\telse break;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOperator nextOp = Operator.get(str.substring(i, endIndex)); // second (right-most) operator\r\n\t\t\t\t\t\tat.op = Operator.get(opStr); // first (left-most) operator\r\n\r\n\t\t\t\t\t\t// group values in operation by operator precedence\r\n\t\t\t\t\t\tint p1 = precedence(nextOp); // right-most op\r\n\t\t\t\t\t\tint p2 = precedence(at.op); // left-most op\r\n\r\n\t\t\t\t\t\tif (p1 > p2) { // group around the right-most op\r\n\t\t\t\t\t\t\tExprBinary right = new ExprBinary(at, nextOp);\r\n\t\t\t\t\t\t\tright.setLeft(at.right());\r\n\r\n\t\t\t\t\t\t\tat.setRight(right);\r\n\t\t\t\t\t\t\tat = right;\r\n\r\n\t\t\t\t\t\t} else if (p1 < p2) { // group around the left-most op\r\n\t\t\t\t\t\t\tExprBinary last = at;\r\n\t\t\t\t\t\t\tExprBinary match = at.parent();\r\n\r\n\t\t\t\t\t\t\t// correctly add to the binary tree based on precedence of operators\r\n\t\t\t\t\t\t\twhile (match instanceof ExprBinary && p1 < (p2 = precedence(((ExprBinary) match).op))) {\r\n\t\t\t\t\t\t\t\tlast = match;\r\n\t\t\t\t\t\t\t\tmatch = match.parent();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tExprBinary tr = new ExprBinary(match, nextOp);\r\n\t\t\t\t\t\t\ttr.setLeft(last);\r\n\r\n\t\t\t\t\t\t\tif (match != null) {\r\n\t\t\t\t\t\t\t\tif (last == match.right()) match.setRight(tr);\r\n\t\t\t\t\t\t\t\telse match.setLeft(tr);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tat = tr;\r\n\r\n\t\t\t\t\t\t} else { // group from left to right (equal operator precedence)\r\n\t\t\t\t\t\t\tExprBinary left = new ExprBinary(at, at.op); // group existing values into left node, add right to open right node spot\r\n\t\t\t\t\t\t\tleft.setLeft(at.left());\r\n\t\t\t\t\t\t\tleft.setRight(at.right());\r\n\r\n\t\t\t\t\t\t\tat.op = nextOp;\r\n\t\t\t\t\t\t\tat.setLeft(left);\r\n\t\t\t\t\t\t\tat.setRight(null);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\topStr = nextOp.op;\r\n\t\t\t\t\t\ti = endIndex - 1;\r\n\t\t\t\t\t\tadd = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tadder.setLength(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// store valid value characters\r\n\t\t\tif (add) {\r\n\t\t\t\tadder.append(c);\r\n\r\n\t\t\t\t// if this is the last character, then add the stored value to the tree.\r\n\t\t\t\t// otherwise, would be incorrectly ignored because there is no next operator\r\n\t\t\t\tif (i + 1 == str.length()) {\r\n\t\t\t\t\tif (opstore.length() == 0) {\r\n\t\t\t\t\t\tat.setLeft(parseValue(adder.toString()));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tat.setRight(parseValue(adder.toString()));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// initialize binary tree operator if not done so already\r\n\t\tif (at.op == null) {\r\n\t\t\tat.op = Operator.get(opstore.toString());\r\n\t\t}\r\n\r\n\t\t// after traversing the tree to some point, we need to get back to root so we can return the entire tree\r\n\t\twhile (at.parent() != null) {\r\n\t\t\tat = (ExprBinary) at.parent();\r\n\t\t}\r\n\r\n\t\t// the expression may not actually be a binary operation\r\n\t\tif (at.op == null && at.right() == NULL) {\r\n\t\t\tif (at.left() == NULL) return NULL; // the expression is empty\r\n\t\t\treturn at.left(); // the expression is a single value/unary-operation\r\n\t\t}\r\n\r\n\t\treturn at;\r\n\t}", "protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "private void solveEquation( \tVectorStack<Integer> numbers,\t\t//If the vector stacks aren't referencing the original addresses correctly,\r\n\t\t\t\t\t\t\t\t\tVectorStack<Character> operands )\t//convert this method to return an int, being fed the parameters of two\r\n\t{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//popped ints and one popped operand char\r\n\t\tint rightValue = \tnumbers.pop();\r\n\t\tint leftValue = \tnumbers.pop();\r\n\t\tchar operand = \t\toperands.pop();\r\n\t\t\r\n\t\tswitch ( operand )\r\n\t\t{\r\n\t\t\tcase '*': \tnumbers.push( leftValue * rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '/':\tnumbers.push( leftValue / rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '+':\tnumbers.push( leftValue + rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '-':\tnumbers.push( leftValue - rightValue );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tcase '(':\r\n\t\t\tcase ')':\tSystem.out.println( \"solveEquation called improperly.\"\r\n\t\t\t\t\t\t+ \"Parantheses should be peeked and solveEquation not called on them\" );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\tdefault:\tSystem.out.println( \"Invalid character in operands stack.\" );\r\n\t\t\t\t\t\tbreak;\r\n\t\t}//end switch\r\n\t}", "public double evaluate(String expression) throws InvalidExpressionException {\n assertProperExpression(expression);\n \n // creating postfix\n String postfix = \"\";\n while (expression.length() > 0) {\n char item = expression.charAt(0);\n expression = expression.substring(1);\n // disregard spaces by\n if (item == ' ') continue;\n // add digits straight to postfix expression\n else if (isDigit(item)) postfix += item;\n // always push '(' on stack no matter what\n else if (item == '(') postfixStack.push('(');\n // dump stack until you hit end parenthesis which is voided\n else if (item == ')') {\n while (postfixStack.peek() != '(') {\n postfix += postfixStack.pop();\n }\n postfixStack.pop();\n continue;\n }\n // item must be operator, so push onto stack after removing higher precedents below it\n else if (isOperator(item)) {\n while (!postfixStack.isEmpty() &&\n isOperator(item) &&\n precedenceOf(postfixStack.peek()) >= precedenceOf(item)) postfix += postfixStack.pop();\n postfixStack.push(item);\n }\n }\n while (!postfixStack.isEmpty()) postfix += postfixStack.pop();\n\n // solving the postfix expression \n while (postfix.length() > 0) {\n char item = postfix.charAt(0);\n postfix = postfix.substring(1);\n\n if (isDigit(item)) solutionStack.push((double) (item - '0'));\n if (isOperator(item)) {\n double y = solutionStack.pop();\n double x = solutionStack.pop();\n if (item == '^') solutionStack.push(Math.pow(x, y));\n if (item == '*') solutionStack.push(x * y);\n if (item == '/') solutionStack.push(x / y);\n if (item == '+') solutionStack.push(x + y);\n if (item == '-') solutionStack.push(x - y);\n }\n }\n\n Double solution = solutionStack.pop();\n return solution;\n }", "public static void main(String[] args) {\n System.out.println(solution(\"1 + 2\"));\n System.out.println(solution(\"1 * 2 + 3\"));\n System.out.println(solution(\"1 + 2 * 3\"));\n System.out.println(solution(\"1 + 2 * 3 - 4 / 2 + 6 / 2 - 7\"));\n\n System.out.println(solution(\"1 + 2 * (3 * (1 + 2))\"));\n }", "private String compute(String str) {\n String array[];\n array=str.split(\" \");\n Stack<Double> s=new Stack<Double>();\n Double a=Double.parseDouble(array[0]);\n s.push(a);\n for(int i=1;i<array.length;i++) {\n if(i%2==1) {\n if(array[i].compareTo(\"+\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n s.push(b);\n }\n if(array[i].compareTo(\"-\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n s.push(-b);\n }\n if(array[i].compareTo(\"*\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n\n double c=s.pop();\n\n c*=b;\n s.push(c);\n\n\n }\n if(array[i].compareTo(\"/\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n\n double c=s.peek();\n s.pop();\n c/=b;\n s.push(c);\n\n\n }\n }\n }\n double sum=0;\n while(!s.isEmpty()) {\n sum+=s.pop();\n\n }\n String result=String.valueOf(sum);\n return result;\n }", "@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}", "public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n int result = 0;\n\n System.out.print(\"Enter three integer number : \");\n String num = input.nextLine();\n\n String [] operand = num.split(\" \");\n int x = Integer.parseInt(operand[0]);\n int y = Integer.parseInt(operand[1]);\n int z = Integer.parseInt(operand[2]);\n\n System.out.print(\"Enter two operand : \");\n String operator = input.nextLine();\n\n String [] op = operator.split(\" \");\n String a = op[0];\n String b = op[1];\n\n int temp = 0;\n\n for(int i = 0; i< op.length; i++){\n if(a.equals(\"X\") || a.equals(\"D\") || a.equals(\"M\") || b.equals(\"X\") || b.equals(\"D\") || b.equals(\"M\")){\n\n if(a.equals(\"X\") || b.equals(\"X\")){\n if(a.equals(\"X\")){\n if(i == 0) temp = x*y;\n else result = temp * x;\n a = \"\";\n }\n else if(b.equals(\"X\")){\n if(i == 0) temp = y*z;\n else result = temp * z;\n b = \"\";\n }\n }\n\n else if(a.equals(\"D\") || b.equals(\"D\")){\n if(a.equals(\"D\")){\n if(i==0) temp = x/y;\n else result = x/temp;\n a = \"\";\n }\n else if(b.equals(\"D\")){\n if(i == 0) temp = y/z;\n else result = temp / z;\n b = \"\";\n }\n }\n\n else if(a.equals(\"M\") || b.equals(\"M\")){\n if(a.equals(\"M\")){\n if(i == 0)temp = x % y;\n else result = x % temp;\n a = \"\";\n }\n\n else if(b.equals(\"M\")) {\n if(i == 0) temp = y % z;\n else result = temp % z;\n b = \"\";\n }\n }\n\n } else{\n if(a.equals(\"A\")){\n if(b.equals(\"A\")) result = x+y+z;\n else if(b.equals(\"S\")) result = x+y-z;\n else result = temp + x;\n }\n\n else if(b.equals(\"A\")){\n if(a.equals(\"A\")) result = x+y+z;\n else if(a.equals(\"S\")) result = x-y+z;\n else result = temp + z;\n }\n }\n }\n System.out.println(x + \" \" + op[0] + \" \" + y + \" \" + op[1] + \" \" + z + \" = \" + result);\n\n }", "private void squareRoot()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.squareRoot ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "private void calculate () {\n try {\n char[] expression = expressionView.getText().toString().trim().toCharArray();\n String temp = expressionView.getText().toString().trim();\n for (int i = 0; i < expression.length; i++) {\n if (expression[i] == '\\u00D7')\n expression[i] = '*';\n if (expression[i] == '\\u00f7')\n expression[i] = '/';\n if (expression[i] == '√')\n expression[i] = '²';\n }\n if (expression.length > 0) {\n Balan balan = new Balan();\n double realResult = balan.valueMath(String.copyValueOf(expression));\n int naturalResult;\n String finalResult;\n if (realResult % 1 == 0) {\n naturalResult = (int) Math.round(realResult);\n finalResult = String.valueOf(naturalResult);\n } else\n finalResult = String.valueOf(realResult);\n String error = balan.getError();\n // check error\n if (error != null) {\n mIsError = true;\n resultView.setText(error);\n if (error == \"Error div 0\")\n resultView.setText(\"Math Error\");\n } else { // show result\n expressionView.setText(temp);\n resultView.setText(finalResult);\n }\n }\n } catch (Exception e) {\n Toast.makeText(this,e.toString(),Toast.LENGTH_LONG);\n }\n }", "@Override\r\n\tpublic int evaluate(String expression) {\r\n\t\tString e =expression;\r\n\t\tfloat result=0; //the returned result \r\n\t\tif(e.length()==2) {\r\n\t\t\te = removespaces(e);\r\n\t\t\tint z =Integer.parseInt(e);\r\n\t\t\treturn z;\r\n\t\t}\r\n\t\tfor(int i =0 ;i<expression.length();i++){\r\n\t\t\tif(Character.isLetter(e.charAt(i))){\r\n\t\t\t\tthrow new RuntimeException(\"You Can't evaluate letters\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i =0 ;i<expression.length()-1;i++) {\r\n\t\t\twhile(e.charAt(i) != '+' &&e.charAt(i) != '/' &&e.charAt(i) != '-' &&e.charAt(i) != '*' ) {\r\n\t\t\t\tint j = 0;\r\n\t\t\t\twhile(e.charAt(i) != ' ' ) {\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tif(j>0) {\r\n\t\t\t\t\tString k = e.substring(i-j, i);\r\n\t\t\t\t\tk = removespaces(k);\r\n\t\t\t\t\tfloat z = Integer.parseInt(k);\r\n\t\t\t\t\topr.push(z);}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\tif(e.charAt(i)== '+') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result + x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '*') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result * x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '-') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result - x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\telse if(e.charAt(i)== '/') {\r\n\t\t\t\tfloat x = (float)opr.pop();\r\n\t\t\t\tresult = (float)opr.pop();\r\n\t\t\t\tresult = result / x;\r\n\t\t\t\topr.push(result);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn (int)result;\r\n\r\n\t}", "String performCalculation(String str) {\n // will get all numbers and store it to `numberStr`\n String numberStr[] = str.replaceAll(\"[+*/()-]+\", \" \").split(\" \");\n // will get all operators and store it to `operatorStr`\n String operatorStr[] = str.replaceAll(\"[0-9()]+\", \"\").split(\"\");\n\n int total = Integer.parseInt(numberStr[0]);\n\n for (int i = 0; i < operatorStr.length; i++) {\n switch (operatorStr[i]) {\n case \"+\":\n total += Integer.parseInt(numberStr[i + 1]);\n break;\n case \"-\":\n total -= Integer.parseInt(numberStr[i + 1]);\n break;\n case \"*\":\n total *= Integer.parseInt(numberStr[i + 1]);\n break;\n case \"/\":\n total /= Integer.parseInt(numberStr[i + 1]);\n break;\n }\n\n if (i + 2 >= operatorStr.length)\n continue; // if meets the last operands already\n numberStr[i + 1] = String.valueOf(total);\n\n }\n return String.valueOf(total);\n }", "public static Temp evalExpression(CommonTree tree){\n\t\t// leaf node, int/float/id\n\n\t\tif (tree.getChildCount() == 0){\n\t\t\tTemp temp = new Temp(temperaryNum++,tree.getType(),tree.getText());\n\t\t\tif (tree.getType() == LittleParser.INTLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREI\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse if(tree.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREF\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse{ // look up the variable in the symbol table to set type, use var_name instead of $Tx and recycle $Tx\n\t\t\t\ttemp.setType(allTables.lookupType(temp.getValue().trim()));\n\t\t\t\ttemp.setName(tree.getText());\n\t\t\t\ttemperaryNum--;\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\t\t// Not a leaf node, evaluate children expressions\n\t\telse{\n\t\t\t// test for function call\n\t\t\tif (tree.getType() == LittleParser.FUNC_CALL){\n\t\t\t\t// add IR for evaluating the function and return temperary for return value\n\t\t\t\t// after it has been popped off the stack\n\t\t\t\treturn evalFunction(tree);\n\t\t\t}\n\t\t\t//\t\t\tif (tree.getChild(0).getChildCount() == 0 && tree.getChild(1).getChildCount() == 0){\n\t\t\t//\t\t\t\tif ()\n\t\t\t//\t\t\t}\n\t\t\tTemp left = evalExpression((CommonTree) tree.getChild(0));\n\t\t\tTemp right = evalExpression((CommonTree) tree.getChild(1));\n\n\t\t\tTemp temp = new Temp(temperaryNum++,left.getType(), \"EXP\");\n\t\t\tif (tree.getText().contains(\"+\")){ // add\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t} //both parameters\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"-\")){ // subtract\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"*\")){ // multiply\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{ // divide\n\t\t\t\tif (right.getType() == LittleParser.INTLITERAL && left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (right.getType() == LittleParser.FLOATLITERAL || left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\n\t}", "public int evalRPN(String[] tokens) {\n Stack<Integer> stack = new Stack<>();\n for(String token : tokens){\n if(token.equals(\"+\")){\n int a = stack.pop();\n int b = stack.pop();\n stack.push(b+a);\n }else if(token.equals(\"-\")){\n int a = stack.pop();\n int b = stack.pop();\n stack.push(b-a);\n }else if(token.equals(\"*\")){\n stack.push(stack.pop()*stack.pop());\n }else if(token.equals(\"/\")){\n int a = stack.pop();\n int b = stack.pop();\n stack.push(b/a);\n }else{\n stack.push(Integer.parseInt(token));\n }\n }\n return stack.pop();\n }", "private void operator() {\n reduce();\n shift();\n getDispenser().advance();\n if(getDispenser().tokenIsNumber()) setState(State.NUMBER);\n else if (getDispenser().tokenIsLeftParen()) setState(State.LEFT_PAREN);\n else syntaxError(NUM);\n \n }", "private void infix(ExpressionNodes root, StringBuilder sb)\n\t {\t\n\t \t\n\t \tif (root.left != null) // if there is a left child\n\t \t{ \n\t \t\tinfix(root.left, sb); // run recursive method \n\t \t}\n\t \t\n\t \t// add the string of this node to the the string builder \n\t \tsb.append(root.data);\n\t \t\n\t \t// add a space in between nodes for clarity.\n\t \tsb.append(\" \");\n\t \t\n\t \t\n\t \tif (root.right != null) // if there is a right child\n\t \t{ \n\t \t\tinfix(root.right, sb); // run recursive method \n\t \t}\n\t \t\n\t }", "@Test\r\n\t\tpublic void testCompileAllOperators() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 6\\nb = 6\\nc = a + (b * 4)\\nd = c / 3\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[3]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"opt_plus\") && elementText.contains(\"opt_div\") && elementText.contains(\"opt_mult\") &! elementText.contains(\"opt_minus\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "private void processOperator(String operator){\n if (numStack.size() <2){\n System.out.println(\"Stack underflow.\");\n }\n else if (dividingByZero(operator)){\n System.out.println(\"Divide by 0.\"); \n }\n else{\n int num1 = numStack.pop();\n int num2 = numStack.pop();\n int result = performCalculation(num1, num2, operator);\n numStack.push(result);\n }\n\n }", "private void assertProperExpression(String expression) throws InvalidExpressionException {\n char lastItem = '^';\n int parentheseseCount = 0;\n\n for (int i = 0; i < expression.length(); i++) {\n char item = expression.charAt(i);\n // ignore spaces\n if (item == ' ') continue;\n\n // asserts that item is digit or operator\n if (!isDigit(item) && !isOperator(item) && !isParenthesis(item))\n throw new InvalidExpressionException(\"INVALID CHARACTER\", i);\n // asserts that here are more open parentheses than closed\n if (item == '(') parentheseseCount++;\n if (item == ')') parentheseseCount--;\n if (parentheseseCount < 0)\n throw new InvalidExpressionException(\"TOO MANY CLOSING PARENTHESES\", i); \n // asserts there are never two digits in a row\n if (isDigit(lastItem) && isDigit(item))\n throw new InvalidExpressionException(\"TOO MANY DIGITS IN NUMBER\", i);\n // asserts coefficients to expressions in parentheses have astrisks: \"6(1)\" invalid\n if (isDigit(lastItem) && item == '(')\n throw new InvalidExpressionException(\"USE ASTRISK FOR MULTIPLICATION\", i);\n // asserts there are never two operators in a row, except for parentheses\n if (isOperator(lastItem) && isOperator(item))\n throw new InvalidExpressionException(\"TOO MANY OPERATORS IN A ROW\", i);\n // asserts there are no parenthesese open or closed on operators: \"+)\" or \"(+\"\n if (isOperator(lastItem) && item == ')' || lastItem == '(' && isOperator(item))\n throw new InvalidExpressionException(\"PARENTHESIS NEXT TO OPERATOR\", i);\n // asserts there are no empty parenthesis: \"()\"\n if (lastItem == '(' && item == ')')\n throw new InvalidExpressionException(\"EMPTY PARENTHESESE ARE INVALID\", i);\n // asserts the expression does not end with an operator\n if (i == expression.length()-1 && isOperator(item))\n throw new InvalidExpressionException(\"INVALID OPERATOR AT END OF EXPRESSION\", i);\n\n lastItem = item;\n }\n\n // asserts parenthesese were all closed\n if (parentheseseCount != 0)\n throw new InvalidExpressionException(\"TOO MANY OPENING PARENTHESES\");\n }", "private void processOperator() {\r\n\t\tif (expression[currentIndex] == '*') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\t\t} else if (expression[currentIndex] == '+') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\t\t} else if (expression[currentIndex] == '!') {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\t\t\t// xor operator has 2 characters more than any other operator.\r\n\t\t\tcurrentIndex += 2;\r\n\t\t}\r\n\r\n\t\tcurrentIndex++;\r\n\t}", "private String compute(String equ,String op)\n {\n String equation = equ;\n Pattern mdPattern = Pattern.compile(\"(\\\\d+([.]\\\\d+)*)(([\"+op+\"]))(\\\\d+([.]\\\\d+)*)\");\n Matcher matcher\t\t= mdPattern.matcher(equation);\n while(matcher.find())\n {\n String[] arr = null;\n double ans = 0;\n String eq = matcher.group(0);//get form x*y\n if(eq.contains(op))\n {\n arr = eq.split(\"\\\\\"+op);//make arr\n if(op.equals(\"*\"))\n ans = Double.valueOf(arr[0])*Double.valueOf(arr[1]);//compute\n if(op.equals(\"/\"))\n ans = Double.valueOf(arr[0])/Double.valueOf(arr[1]);//compute\n if(op.equals(\"+\"))\n ans = Double.valueOf(arr[0])+Double.valueOf(arr[1]);//compute\n if(op.equals(\"-\"))\n ans = Double.valueOf(arr[0])-Double.valueOf(arr[1]);//compute\n }\n\n equation = matcher.replaceFirst(String.valueOf(ans));//replace in equation\n matcher = mdPattern.matcher(equation);//look for more matches\n }\n return equation;\n }", "public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "@Test\n\tpublic void parenthesses_should_notbalanced_expr()\n\t{\n\t\tString result=\"\";String expr=\"\";\n\t\t\n\t\texpr=\"(a+b(a+c)\";\n\t\t result=com.bridgelabz.util.DataStructure.BalanaceParenthes(expr);\n\t\tassertTrue(\"not balanced\", result!=\"balaced\");\n\t}", "protected Evaluable parseSubExpression() throws ParsingException {\n Evaluable sub = parseTerm();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \"+-\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseTerm();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "public static int factor()\r\n {\r\n int r=0;\r\n\r\n if(index<=expression.length()-1)\r\n {\r\n //build FSM for a .\r\n if(expression.charAt(index)=='.')\r\n {\r\n String s=Character.toString('.');\r\n state st=new state(state,s,state+1,state+1);\r\n stateList.add(st);\r\n index++;\r\n r=state;\r\n state++;\r\n }\r\n //build FSM for a literal\r\n else if(isVocab(expression.charAt(index)))\r\n {\r\n String s=Character.toString(expression.charAt(index));\r\n state st=new state(state,s,state+1,state+1);\r\n stateList.add(st);\r\n index++;\r\n r=state;\r\n state++;\r\n }\r\n //build FSM for a escape character\r\n else if(expression.charAt(index)=='\\\\')\r\n {\r\n index++;\r\n String s=Character.toString(expression.charAt(index));\r\n state st=new state(state,s,state+1,state+1);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n index++;\r\n }\r\n //build FSM for a square brackets\r\n //stores all symbols in the square brackets as a string\r\n else if(expression.charAt(index)=='[')\r\n {\r\n String s=\"\";\r\n index++;\r\n //check if the first character is ']'\r\n //if so,add ']' to the string and keep looking for the closing bracket\r\n if(expression.charAt(index)==']')\r\n {\r\n s+=\"]\";\r\n index++;\r\n }\r\n\r\n boolean foundEnd=false;\r\n //we need to ensure the square bracket has a closing bracket\r\n while(index<=expression.length()-1)\r\n {\r\n if(expression.charAt(index)==']')\r\n {\r\n index++;\r\n foundEnd=true;\r\n break;\r\n }\r\n else\r\n {\r\n String cur=Character.toString(expression.charAt(index));\r\n s+=cur;\r\n index++;\r\n }\r\n\r\n }\r\n\r\n //if it does not have a closing bracket, it is invalid expression\r\n if(!foundEnd)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n //otherwise build FSM for square bracket\r\n state st=new state(state,s,state+1,state+1);\r\n st.setAlter(true);\r\n stateList.add(st);\r\n r=state;\r\n state++;\r\n }\r\n }\r\n //check if the facter is (E)\r\n //if we see a '(' we must then find an expression and a following ')' to ensure the expression is valid\r\n else if(expression.charAt(index)=='(')\r\n {\r\n index++;\r\n r=expression();\r\n if(expression.charAt(index)!=')')\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n index++;\r\n\r\n }\r\n }\r\n else\r\n {\r\n error();\r\n }\r\n\r\n }\r\n return r;\r\n }", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//For each token\n\t\tfor (String t : tokens) {\n\t\t\t// If the token is empty, skip it\n\t\t\tif(t.equals(\"\") || t.equals(\" \")) continue;\n\t\t\t\n\t\t\t// If operator (o1)\n\t\t\tif (Operator.isOperator(t)) {\n\n\t\t\t\t// While there is an operator (o2) an the stack and\n\t\t\t\t// (o1 is left associative AND o2 precedence is higher or equal to o1 precedence)\n\t\t\t\t// OR\n\t\t\t\t// (o1 is right associative AND o2 precedence is higher than o1 precedence)\n\t\t\t\twhile (!op_stack.empty()\n\t\t\t\t\t\t&& Operator.isOperator(op_stack.peek())\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.LEFT) && Operator.comparePrec(op_stack.peek(), t) >= 0) \n\t\t\t\t\t\t\t|| \n\t\t\t\t\t\t\t((Operator.getAssociativity(t) == Operator.RIGHT) && Operator.comparePrec(op_stack.peek(), t) > 0)\n\t\t\t\t\t\t )\n\t\t\t\t ) \n\t\t\t\t{\n\t\t\t\t\t// add o2 to the output\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Push o1 on to the stack.\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\"(\")) {\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\n\t\t\telse if (t.equals(\")\")) {\n\t\t\t\t// While there is not a left parenthesis, add the top token from the stack to the output\n\t\t\t\twhile (!op_stack.peek().equals(\"(\")) {\n\t\t\t\t\toutput.add(op_stack.pop());\n\t\t\t\t}\n\n\t\t\t\t// Pop out the left parenthesis\n\t\t\t\top_stack.pop();\n\t\t\t\t\n\t\t\t\t// While there is a function on the top of the stack, add it to the output\n\t\t\t\tif(!op_stack.empty() && Function.isFunction(op_stack.peek())) output.add(op_stack.pop());\n\t\t\t}\n\t\t\telse if(Function.isFunction(t)){\n\t\t\t\top_stack.push(t);\n\t\t\t}\n\t\t\telse if(isNumeric(t) || isVariable(t)){\n\t\t\t\toutput.add(t);\n\t\t\t}\n\t\t}\n\n\t\t// Finally empty the stack, by adding all remaining tokens to the output.\n\t\twhile (!op_stack.empty()) {\n\t\t\toutput.add(op_stack.pop());\n\t\t}\n\t}", "public static void parseLine(String input){\r\n\t\tfor(int i = 0;i<input.length();i++){\r\n\t\t\t\r\n\t\t\tString currentChar = parseChar(input,i);\r\n\t\t\ti+=currentChar.length()-1; //skip past all integer characters if there are any\r\n\t\t\t\r\n\t\t\tif(checkOperand(currentChar)){\r\n\t\t\t\texpressionTree.treeStack.push(new Node(currentChar));\r\n\t\t\t}else if(checkOperator(currentChar)){\r\n\t\t\t\tNode node = new Node(currentChar);\r\n\t\t\t\t\r\n\t\t\t\tif(!expressionTree.treeStack.empty()){\r\n\t\t\t\t\tnode.rightNode = (Node) expressionTree.treeStack.peek();\r\n\t\t\t\t\tnode.rightNode.parentNode = node;\r\n\t\t\t\t\texpressionTree.treeStack.pop();\r\n\t\t\t\t}\r\n\t\t\t\tif(!expressionTree.treeStack.empty()){\r\n\t\t\t\t\tnode.leftNode = (Node) expressionTree.treeStack.peek();\r\n\t\t\t\t\tnode.leftNode.parentNode = node;\r\n\t\t\t\t\texpressionTree.treeStack.pop();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\texpressionTree.treeStack.push(node);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean postFixEvalution(char operator) throws ArithmeticException{\n //Pre: Validar que el stack no este vacio y que los operandos sean numeros.\n //Post: Realizar la operacion indicada\n try{\n if(!stack.empty()){\n //Se obtienen los dos operandos mas recientes del stack.\n Integer op2 = stack.pop();\n Integer op1 = stack.pop();\n\n //Se determina la operacion por hacer.\n if(op1 != null && op2 != null){\n switch (operator){\n case '+':\n stack.push(op1 + op2);\n break;\n case '-':\n stack.push(op1 - op2);\n break;\n case '*':\n stack.push(op1 * op2);\n break;\n case '/':\n stack.push(op1 / op2);\n break;\n }\n return true;\n }\n else\n return false;\n }\n else{\n return false;\n }\n }\n catch (ArithmeticException e){\n String ex = \"Error: Division por 0\";\n throw new ArithmeticException(ex);\n }\n }", "private static int calculate(String expression) {\n if (expression == null || expression.isEmpty()) {\n return 0;\n }\n // 3 - Division from 0\n // Division from zero should not be possible. If a string \"5/0\" is passed, result should be -1\n if (expression.contains(\"/0\")) {\n return -1;\n }\n // 4 - Floating point numbers\n // As mentioned, floating point numbers should not be supported. If string contains not a whole number and not the allowed operations (+-x%) then it should also return -1.\n if (expression.contains(\".\") || !hasOnlyAllowedChars(expression, \"0123456789+-x/!\")) {\n return -1;\n }\n // calculate\n // find partial formulas: 5x3+2x7+1-5+4! -> [\"5x3\", \"2x7\", \"1\", \"5\", \"4!\"]\n String[] operands = findOperands(expression, \"+-\");\n // find operators: 5x3+2x7+1-5+4! -> [\"+\", \"+\", \"-\", \"+\"]\n String[] plusMinus = findOperators(expression, \"+-\");\n // calculates division, multiplication, factorial: 5x3, 2x7, 1, 5, 4!\n int result = findNumberDivMultiFactorial(operands[0]);\n for (int i = 1; i < operands.length; i++) {\n switch (plusMinus[i - 1]) {\n case \"+\":\n result = result + findNumberDivMultiFactorial(operands[i]);\n break;\n case \"-\":\n result = result - findNumberDivMultiFactorial(operands[i]);\n break;\n }\n }\n\n return result;\n }", "@Override\n\tpublic void workOn(Assembly a)\n\t{\n\t\t// logger.debug(\"start, a=\"+a);\n\t\t// Pop the the parenthesis symbols and the operand\n\t\tMathToken tokenClose = (MathToken) a.pop();\n\t\tSyntaxTreeNode e = (SyntaxTreeNode) a.pop();\n\t\tMathToken tokenOpen = (MathToken) a.pop();\n\n\t\t// Create a parenthesis math token that has references to both\n\t\t// tokens in the assembly\n\t\tMathToken t = new MathToken(tokenOpen.get(0), new ParenthesisValue());\n\t\tt.add(tokenClose.get(0));\n\n\t\t// Carry out the parenthesis \"operation\"\n\t\te = SyntaxTreeNode.op(t, e);\n\n\t\t// Return the result on the assembly stack\n\t\ta.push(e);\n\t\t// logger.debug(\"end, a=\"+a);\n\t}", "@Test\n\t\tpublic void applyRecusivelyHyp() {\n\t\t\tassertSuccess(\" ;H; ;S; s⊆ℤ ;; r∈s ↔ s |- ⊥\",\n\t\t\t\t\trm(\"\", ri(\"\", ri(\"\", rm(\"2.1\", empty)))));\n\t\t}", "@Override\n\tpublic String visitTerm(MicroParser.TermContext ctx) {\n\t\tString prefix = visit(ctx.factor_prefix());\n\t\tString termExpr = prefix + visit(ctx.factor());\n\t\t//System.out.println(\"in term :\"+termExpr);\n\t\t//System.out.println(\"in term, prefix is:\"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return termExpr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = termExpr.split(\"/|\\\\*\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> mulops = new ArrayList<Character>();\n\t \n\t //create a list of mulops\n\t for(int i=0;i<termExpr.length();i++) {\n\t \tif(termExpr.charAt(i)=='*' || termExpr.charAt(i)=='/')\n\t \t\tmulops.add(termExpr.charAt(i));\n\t }\n\t //create a list of operands \n\t for(String i:ids) \n\t \toperands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t //System.out.println(\"in term op1 op2: \"+op1 +\" \" + op2);\n\t temp = new Temporary(type);\n \tresult = temp.fullName;\n \ttempList.addT(temp);\n\t //System.out.println(\"in term result: \"+result);\n\t if(mulops.get(0)=='*') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"MULT\", op1, op2, result));\n\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t \toperands.remove(0); operands.remove(0); mulops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"DIV\", op1, op2, result));\n\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t \toperands.remove(0); operands.remove(0); mulops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t //System.out.println(\"AFTER IF\");\n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(mulops.get(0)=='*') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"MULT\", op1, op2, result));\n\t\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t\t \tmulops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"DIV\", op1, op2, result));\n\t\t \t//System.out.println(globalIR.getLastStatement(globalIR));\n\t\t \tmulops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result;\n\t\t\n\t}", "public double computeExpression(Expression exp, DataRow data) {\n\n //TODO all cases\n\n //------ net.sf.jsqlparser.expression.operators.* ---------\n if (exp instanceof Parenthesis) {\n return computeExpression(((Parenthesis) exp).getExpression(), data);\n }\n\n\n //------ net.sf.jsqlparser.expression.operators.conditional.* ---------\n if (exp instanceof AndExpression) {\n return computeAnd((AndExpression) exp, data);\n }\n if (exp instanceof OrExpression) {\n return computeOr((OrExpression) exp, data);\n }\n\n\n //------ net.sf.jsqlparser.expression.operators.relational.* ---------\n if(exp instanceof Between){\n return computeBetween((Between)exp, data);\n }\n if (exp instanceof ComparisonOperator) {\n // this deals with 6 subclasses:\n return computeComparisonOperator((ComparisonOperator) exp, data);\n }\n if(exp instanceof ExistsExpression){\n //TODO\n }\n if(exp instanceof ExpressionList){\n //TODO\n }\n if (exp instanceof InExpression) {\n return computeInExpression((InExpression) exp, data);\n }\n if (exp instanceof IsNullExpression) {\n return computeIsNull((IsNullExpression) exp, data);\n }\n if(exp instanceof JsonOperator){\n //TODO\n }\n if(exp instanceof LikeExpression){\n //TODO\n }\n if(exp instanceof Matches){\n //TODO\n }\n if(exp instanceof MultiExpressionList){\n //TODO\n }\n if(exp instanceof NamedExpressionList){\n //TODO\n }\n if(exp instanceof RegExpMatchOperator){\n //TODO\n }\n\n return cannotHandle(exp);\n }", "private static String infixToPostfix(String expression)\r\n {\r\n String result = \"\";\r\n char current_char = ' ';\r\n int index = 0;\r\n StackInterface<Character> operand_stack = new ArrayStack<>();\r\n switch(stack_type)\r\n {\r\n case(\"vector\"):\r\n operand_stack = new VectorStack<>();\r\n break;\r\n \r\n case(\"linked\"):\r\n operand_stack = new LinkedListStack<>();\r\n break;\r\n }\r\n\r\n //iterates through every character and puts them in the stack or the result accordingly\r\n while(index < expression.length())\r\n {\r\n current_char = expression.charAt(index);\r\n switch(current_char)\r\n {\r\n //checks if the character is an operand and if so checks if it should pop the previous input or not\r\n case '+': case '-': case '*': case '/':\r\n if(!operand_stack.isEmpty())\r\n {\r\n while(!operand_stack.isEmpty() && getOperandImportance(current_char) <= getOperandImportance(operand_stack.peek()))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.push(current_char);\r\n }\r\n else\r\n {\r\n operand_stack.push(current_char);\r\n }\r\n break;\r\n\r\n //exponents are always pushed onto the stack\r\n case '^':\r\n operand_stack.push(current_char);\r\n break;\r\n\r\n //if an open delimiter is there, we add it to the stack\r\n case '(': case '{': case '[':\r\n operand_stack.push(current_char);\r\n break;\r\n \r\n //if the delimiter is closing we pop until we find the open equivalent\r\n case ')': case '}': case ']':\r\n while(operand_stack.peek() != delimiterEquivalent(current_char))\r\n {\r\n result += operand_stack.pop();\r\n }\r\n operand_stack.pop();\r\n break;\r\n\r\n case ' ':\r\n break;\r\n\r\n default: \r\n result += current_char;\r\n break;\r\n }\r\n index++;\r\n }\r\n\r\n //pops everything left in the stack to the result at the end\r\n while(!operand_stack.isEmpty())\r\n {\r\n result += operand_stack.pop();\r\n }\r\n\r\n return result;\r\n }", "private static int evaluateExpression(String expression, int number1, int number2){\n if(expression.equals(\"plus\")){\n \treturn (number1 + number2);\n }else if(expression.equals(\"minus\")){\n \treturn (number1 - number2);\n }else if(expression.equals(\"times\")){\n \treturn(number1 * number2);\n }else if(expression.equals(\"divide\")){\n \treturn(number1 / number2);\n }\n return 0;\n \n }", "public int evalRPN(String[] tokens) {\n\n\t\tStack<String> stack = new Stack<String>();\n\n\t\tString operators = \"+-*/\";\n\n\t\tint result = 0;\n\n\t\tfor (int i = 0; i < tokens.length; i++) {\n\n\t\t\tif (tokens[i].equals(\"+\") || tokens[i].equals(\"*\")\n\t\t\t\t\t|| tokens[i].equals(\"-\") || tokens[i].equals(\"/\")) {\n\t\t\t\tint a = Integer.valueOf(stack.pop());\n\t\t\t\tint b = Integer.valueOf(stack.pop());\n\n\t\t\t\tint index = operators.indexOf(tokens[i]);\n\n\t\t\t\tswitch (index) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstack.push(String.valueOf(a + b));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tstack.push(String.valueOf(b - a));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tstack.push(String.valueOf(a * b));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\n\t\t\t\t\tstack.push(String.valueOf(b / a));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse {\n\n\t\t\t\tstack.push(tokens[i]);\n\t\t\t}\n\n\t\t}\n\t\tresult = Integer.valueOf(stack.pop());\n\n\t\treturn result;\n\t}", "@Override\n public void onClick(View v) {\n if(operator_inserted==true && !curr.substring(curr.length()-1,curr.length()).equals(\" \")){\n\n\n String [] tokens = curr.split(\" \");\n switch(tokens[1].charAt(0)){\n\n case '+':\n res = Double.toString(Double.parseDouble(tokens[0]) + Double.parseDouble(tokens[2]));\n break;\n case '-':\n res = Double.toString(Double.parseDouble(tokens[0]) - Double.parseDouble(tokens[2]));\n break;\n case '/':\n res = Double.toString(Double.parseDouble(tokens[0]) / Double.parseDouble(tokens[2]));\n break;\n case '*':\n res = Double.toString(Double.parseDouble(tokens[0]) * Double.parseDouble(tokens[2]));\n break;\n\n }\n resNum();\n }\n }", "public static String getrp(String s){\n char[] arr = s.toCharArray();\n int len = arr.length;\n String out = \"\";\n\n for(int i = 0; i < len; i++){\n char ch = arr[i];\n if(ch == ' ') continue;\n\n // if is operand, add to\n // the output stream directly\n if(ch >= '0' && ch <= '9') {\n out+=ch;\n continue;\n }\n\n //if is '(', push to the stack directly\n if(ch == '(') op.push(ch);\n\n //if is '+' or '-', pop the operator\n // from the stack until '(' and add to\n // the output stream\n //push the operator to the stack\n if(ch == '+' || ch == '-'){\n while(!op.empty() && (op.peek() != '('))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is '*' or '/', pop the operator stack and\n // add to the output stream\n // until lower priority or '('\n //push the operator to the stack\n if(ch == '*' || ch == '/'){\n while(!op.empty() && (op.peek() == '*' || op.peek() == '/'))\n out+=op.pop();\n op.push(ch);\n continue;\n }\n\n //if is ')' pop the operator stack and\n // add to the output stream until '(',\n // pop '('\n if(ch == ')'){\n while(!op.empty() && op.peek() != '(')\n out += op.pop();\n op.pop();\n continue;\n }\n }\n while(!op.empty()) out += op.pop();\n return out;\n }", "static BigInteger evaluate(String input) throws IllegalArgumentException{\n input = input.replace(\" \", \"\");\n\n //2. parsing.\n Matcher m = EXPRESSION_PATTERN.matcher(input);\n if(!m.matches()){//find는 일치하는 게 포함되면 T, matches()는 입력 전체가 일치해야 T.\n new IllegalArgumentException();\n }\n\n //3. extract unary, binary operators.\n bin_oper = m.group(3);\n una_oper1 = m.group(1).equals(\"\") ? \"+\" : m.group(1); //unary default = \"+\"\n una_oper2 = m.group(4).equals(\"\") ? \"+\" : m.group(4);\n\n //4. make operands instances.\n BigInteger num1 = new BigInteger(m.group(2));\n BigInteger num2 = new BigInteger(m.group(5));\n\n //5. binary oper == *, go to mul.\n if (bin_oper.equals(\"*\")) return num1.multiply(num2);\n\n //6. add/sub operator handle\n // By comparing binary and unary2, convert unary2 to \"+\", in order to simplify later calculation.\n if (una_oper2.equals(\"-\")){\n una_oper2 = \"+\";\n bin_oper = bin_oper.equals(\"+\") ? \"-\" : \"+\";\n }\n\n // if right input is not guaranteed, should do exception handling.\n return (una_oper1.equals(bin_oper)) ? num1.add(num2) : num1.subtract(num2);\n }", "public Element compileExpression() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tboolean op;\n\t\tboolean oper = false;\n\t\tString command = \"\";\n\t\tElement expressionParent = document.createElement(\"expression\");\n\n\t\t// if the term-op-term-op cycle breaks, that means its the end of the expression\n\t\tdo {\n\n\t\t\t// At least one term\n\t\t\texpressionParent.appendChild(compileTerm());\n\t\t\t\n\t\t\t//If an operand has been encountered, then can write the command as it is postfix\n\t\t\tif (oper) {\n\t\t\t\twriter.writeCommand(command);\n\t\t\t}\n\t\t\tjackTokenizer clone = new jackTokenizer(jTokenizer);\n\t\t\tclone.advance();\n\t\t\ttoken = clone.presentToken;\n\n\t\t\t// zero or more ops\n\t\t\tif (token.matches(\"\\\\+|-|\\\\*|/|\\\\&|\\\\||<|=|>|~\")) {\n\t\t\t\toper = true;\n\n\t\t\t\tswitch (token) {\n\t\t\t\tcase \"+\":\n\t\t\t\t\tcommand = \"add\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"-\":\n\t\t\t\t\tcommand = \"sub\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"*\":\n\t\t\t\t\tcommand = \"call Math.multiply 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"/\":\n\t\t\t\t\tcommand = \"call Math.divide 2\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"<\":\n\t\t\t\t\tcommand = \"lt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \">\":\n\t\t\t\t\tcommand = \"gt\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"=\":\n\t\t\t\t\tcommand = \"eq\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"&\":\n\t\t\t\t\tcommand = \"and\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"|\":\n\t\t\t\t\tcommand = \"or\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tjTokenizer.advance();\n\t\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\t\tele = createXMLnode(tokenType);\n\t\t\t\texpressionParent.appendChild(ele);\n\t\t\t\tjTokenizer.advance();\n\t\t\t\top = true;\n\t\t\t} else {\n\t\t\t\top = false;\n\t\t\t}\n\t\t} while (op);\n\n\t\treturn expressionParent;\n\t}", "private int getResult() {\n ArrayList<Character> operanzi = new ArrayList<Character>();\n ArrayList<Character> operatori = new ArrayList<Character>();\n for(int i = 1; i <= n; i++){\n // System.out.println(i);\n if ((expr[i] == 'T' ) || (expr[i] == 'F'))\n operanzi.add(expr[i]);\n else \n operatori.add(expr[i]);\n }\n System.out.println(operanzi.get(0));\n int n1 = operanzi.size();\n System.out.println(n1);\n long [][] T = new long[n1][n1];\n long [][] F = new long[n1][n1];\n\n for (int i = 0; i < operanzi.size(); i++) {\n \n if (operanzi.get(i) == 'T') {\n T[i][i] = 1;\n F[i][i] = 0;\n } else if (operanzi.get(i) == 'F') {\n T[i][i] = 0;\n F[i][i] = 1;\n }\n }\n long aux=0;\n for (int l=1; l<n1; ++l) \n { \n for (int i=0, j=l; j<n1; ++i, ++j) \n { \n T[i][j] = F[i][j] = 0; \n for (int g=0; g<l; g++) \n { \n int k = i + g; \n long total_i_k = evaluate(T[i][k],F[i][k],'+'); \n long total_k_j = evaluate(T[k+1][j] , F[k+1][j],'+'); \n long total = evaluate(total_i_k,total_k_j,'*');\n if (operatori.get(k) == '&') \n { \n aux = evaluate(T[i][k],T[k+1][j],'*');\n T[i][j] = evaluate(T[i][j],aux,'+'); \n \n\n F[i][j] = evaluate( F[i][j],evaluate(total,aux,'-'),'+'); \n } \n if (operatori.get(k) == '|') \n { \n aux = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate(F[i][j],aux,'+'); \n \n T[i][j] =evaluate( T[i][j],evaluate(total, aux,'-'),'+'); \n } \n if (operatori.get(k) == '^') \n { \n aux = evaluate(F[i][k],T[k+1][j],'*');\n long aux1= evaluate(T[i][k],F[k+1][j],'*');\n T[i][j] = evaluate( T[i][j],evaluate( aux , aux1,'+'),'+'); \n aux = evaluate(T[i][k],T[k+1][j],'*');\n aux1 = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate( F[i][j],evaluate(aux,aux1,'+'),'+');\n } \n } \n } \n } \n return (int)T[0][n1-1]; \n }", "public int calculate2(String s) {\n Stack<Integer> stack = new Stack<>();\n char sign = '+';\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if(Character.isDigit(c)) {\n int tmp = 0;\n while (i < s.length() && Character.isDigit(s.charAt(i))) {\n tmp = tmp * 10 + s.charAt(i) - '0';\n i++;\n }\n while(i < s.length() && s.charAt(i) == ' '){i++;}\n if (sign == '+' || sign == '-' || sign == '*' || sign == '/' || i == s.length() - 1) {\n if (sign == '+') {\n stack.push(tmp);\n } else if (sign == '-') {\n stack.push(-tmp);\n } else if (sign == '*') {\n stack.push(stack.pop() * tmp);\n } else if (sign == '/') {\n stack.push(stack.pop() / tmp);\n }\n if(i < s.length()){\n sign = s.charAt(i);\n }\n }\n }\n }\n int res = 0;\n while (!stack.isEmpty()) {\n res += stack.pop();\n }\n return res;\n }", "public void enfoncerPlus() {\n\t\ttry {\n\t\t\tthis.op = new Plus();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}", "private int eval(Node<String> temp) {\n\t\t\tif(temp==null)\n\t\t\t\treturn 0;\n\t\t\tif(temp.left==null && temp.right==null)\n\t\t\t\treturn Integer.parseInt(temp.data);\n\t\t\t\n\t\t\tint right=eval(temp.right);\n\t\t\tint left=eval(temp.left);\n\t\t\tif(isOperator(temp.data.charAt(0))) {\n\t\t\t\tif(temp.data.charAt(0)=='*') \n\t\t\t\t\treturn right * left;\n\t\t\t\telse if(temp.data.charAt(0)=='/') \n\t\t\t\t\treturn right / left;\n\t\t\t\telse if(temp.data.charAt(0)=='+') \n\t\t\t\t\treturn right + left;\n\t\t\t\telse \n\t\t\t\t\treturn right - left;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn Integer.parseInt(temp.data);\n\t\t\t}\n\t\t}", "public boolean formResult()\r\n {\r\n if (operator.equals(\"+\") && validOperands())\r\n {\r\n add();\r\n }\r\n else if (operator.equals(\"-\") && validOperands())\r\n {\r\n subtract();\r\n }\r\n else if (operator.equals(\"\\u00D7\") && validOperands())\r\n {\r\n multiply();\r\n }\r\n else if (operator.equals(\"\\u00F7\") && validOperands())\r\n {\r\n String[] test = rightOperand.split(\"\\\\+|-\");\r\n \r\n if (test[0].equals(\"0\")) {\r\n clear();\r\n return false;\r\n }\r\n divide();\r\n }\r\n return true;\r\n }", "public void arithmeticAddition(Operator operatorType, Operator clickedOperator) {\n switch (operatorType) {\n case ADDITION, SUBTRACT -> {\n numberStored[0] = basicCalculation(numberStored[0], Double.parseDouble(mainLabel.getText()), operatorType);\n mainLabel.setText(Double.toString(numberStored[0]));\n }\n case MULTIPLY, DIVIDE -> {\n if (numberStored[1] != 0) {\n double subResult = basicCalculation(numberStored[1], Double.parseDouble(mainLabel.getText()), operatorType);\n numberStored[0] = basicCalculation(numberStored[0], subResult, operatorAssigned);\n numberStored[1] = 0;\n operatorAssigned = Operator.NON;\n mainLabel.setText(Double.toString(numberStored[0]));\n } else {\n numberStored[0] = basicCalculation(numberStored[0], Double.parseDouble(mainLabel.getText()), operatorType);\n mainLabel.setText(Double.toString(numberStored[0]));\n }\n }\n case POW -> {\n double exp = Double.parseDouble(mainLabel.getText());\n double result = Math.pow(numberStored[2], exp);\n numberStored[2] = 0;\n\n if (numberStored[1] != 0) {\n // This code below should be finalized.\n double subResult = basicCalculation(numberStored[1], result, operatorBfPow);\n numberStored[0] = basicCalculation(numberStored[0], subResult, operatorAssigned);\n numberStored[1] = 0;\n operatorAssigned = Operator.NON;\n mainLabel.setText(Double.toString(numberStored[0]));\n } else {\n numberStored[0] = basicCalculation(numberStored[0], result, operatorBfPow);\n mainLabel.setText(Double.toString(numberStored[0]));\n }\n operatorBfPow = Operator.NON;\n }\n default -> numberStored[0] = Double.parseDouble(mainLabel.getText());\n }\n }", "private double evaluarExp2() throws Excepciones{\n char op;\n double resultado;\n double resultadoParcial;\n resultado = evaluarExp3();\n while((op = token.charAt(0)) == '+' || op == '-') {\n obtieneToken();\n resultadoParcial = evaluarExp3();\n switch(op) {\n case '-':\n resultado = resultado - resultadoParcial;\n break;\n case '+':\n resultado = resultado + resultadoParcial;\n break;\n } \n }\n return resultado;\n }", "void e(){\n ARterm ar=new ARterm();\n RuntimeStack.push(ar);\n ar.term();\n term=ar.returnVal;\n RuntimeStack.pop();\n\n if ( LexArithArray.state == LexArithArray.State.Plus )\n {\n LexArithArray.getToken();\n// E e = E();\n ARE ar_=new ARE();\n RuntimeStack.push(ar_);\n ar_.e();\n e=ar_.returnVal;\n\n// return new AddE(term, e);\n returnVal=new AddE(term, e);\n }\n else if ( LexArithArray.state == LexArithArray.State.Minus )\n {\n LexArithArray.getToken();\n// E e = E();\n ARE ar_=new ARE();\n RuntimeStack.push(ar_);\n ar_.e();\n e=ar_.returnVal;\n\n// return new SubE(term, e);\n returnVal=new SubE(term,e);\n }\n else {\n// return new SingleTerm(term);\n returnVal=new SingleTerm(term);\n }\n }" ]
[ "0.71477723", "0.6928224", "0.67546463", "0.6746661", "0.6662835", "0.6643951", "0.66033053", "0.6454405", "0.64519256", "0.64446056", "0.642797", "0.641443", "0.63565457", "0.6341474", "0.6327548", "0.63258183", "0.6307139", "0.62927526", "0.6219473", "0.62060726", "0.6191976", "0.6178853", "0.6178167", "0.6149513", "0.61298686", "0.6103042", "0.6050199", "0.6034261", "0.6021897", "0.6008862", "0.59883744", "0.5985352", "0.5982826", "0.5976324", "0.5966076", "0.59657544", "0.59634334", "0.59479797", "0.594775", "0.59403795", "0.5915347", "0.5914364", "0.5911022", "0.59086376", "0.5883503", "0.58826137", "0.58812886", "0.5861803", "0.58577967", "0.58536273", "0.58335876", "0.58228165", "0.58028036", "0.5799101", "0.5795249", "0.57780355", "0.5774196", "0.57667935", "0.5747304", "0.57422435", "0.574224", "0.5733979", "0.5727339", "0.5724106", "0.57213557", "0.5716906", "0.57117254", "0.5706252", "0.57024497", "0.5698285", "0.56969845", "0.56951517", "0.5687519", "0.5675287", "0.567443", "0.56625116", "0.56592", "0.56534886", "0.5633959", "0.56294847", "0.5625681", "0.5621703", "0.56176364", "0.5612942", "0.5601867", "0.5597072", "0.55968946", "0.55920607", "0.55823", "0.5580466", "0.5579428", "0.55744475", "0.5569298", "0.55624396", "0.5556082", "0.55555296", "0.55553705", "0.55527353", "0.55523956", "0.5548514" ]
0.5879024
47
I have to did this way in order to get the right content in the scenario with multiple parentheses ((())())
protected String getParenthesesContent(String expression, int begin) { Stack<Character> stack = new Stack<>(); for(int end = begin;end < expression.length(); end++) { Character c = expression.charAt(end); if(c == '(') { stack.push('('); } else if(c == ')') { stack.pop(); if(stack.empty()) { return expression.substring(begin+1, end); } } } return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test157() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"($mYG)Udli\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"(\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"$\", token1.getTokenText());\n assertEquals(26, token1.getTokenType());\n }", "@Test\n\tpublic void parenthesses_should_notbalanced_expr()\n\t{\n\t\tString result=\"\";String expr=\"\";\n\t\t\n\t\texpr=\"(a+b(a+c)\";\n\t\t result=com.bridgelabz.util.DataStructure.BalanaceParenthes(expr);\n\t\tassertTrue(\"not balanced\", result!=\"balaced\");\n\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Override\n public void execute() {\n\n String value=\"\";\n ////System.out.println(expCtx.printBlock().printExtra().arrayCall().getText());\n boolean chh = false;\n try {\n chh = expCtx.printBlock().printExtra().expression().assignmentExpression().assignment().additiveExpression().multiplicativeExpression().unaryExpression().unaryExpressionNotPlusMinus().postfixExpression().primary().arrayCall()!=null;\n }catch (NullPointerException e){\n\n }\n if (expCtx.printBlock().printExtra().arrayCall()!=null\n ||chh){\n //System.out.println(\"FOUND ARRAY\");\n List<Integer> matchList = new ArrayList<Integer>();\n Pattern regex = Pattern.compile(\"\\\\[(.*?)\\\\]\");\n //System.out.println(expCtx.printBlock().getText());\n Matcher regexMatcher = regex.matcher(expCtx.printBlock().getText());\n List<Integer> dummy = null;\n while (regexMatcher.find()) {//Finds Matching Pattern in String\n //System.out.println(\"IN MATCHER\");\n //System.out.println(ClypsCustomVisitor.testingExpression(regexMatcher.group(1).trim(), dummy, expCtx.start.getLine()));\n matchList.add(Integer.parseInt(ClypsCustomVisitor.testingExpression(regexMatcher.group(1).trim(), dummy, expCtx.start.getLine())));//Fetching Group from String\n }\n value = ClypsCustomVisitor.testingExpression(expCtx.printBlock().getText(), matchList, expCtx.start.getLine());\n //System.out.println(value);\n }else {\n //System.out.println(\"NOT ARRAY\");\n List<Integer> dummy = null;\n value = ClypsCustomVisitor.testingExpression(expCtx.printBlock().getText(), dummy, expCtx.start.getLine());\n //System.out.println(value);\n }\n\n if (value.contains(\"\\\"\")&&value.matches(\".*[a-zA-Z]+.*\")&&value.matches(\".*[0-9]+.*\")){\n //System.out.println(\"WE IN\");\n String[] temp = value.split(\"\\\\+\");\n ArrayList<String> store = new ArrayList<>();\n for (int i = 0;i<temp.length;i++){\n try {\n store.add(new Expression(temp[i]).eval().toPlainString());\n }catch (NullPointerException e){\n store.add(temp[i]);\n }\n }\n String send=\"\";\n for (String i:store){\n //System.out.println(i);\n send=send.concat(i);\n }\n //System.out.println(\"WE OUT\");\n //System.out.println(send);\n\n send=send.replaceAll(\"\\\"\",\"\").replaceAll(\"\\\\+\",\"\");\n ////System.out.println(\"ACTUAL PRINT\");\n if (expCtx.printHead().getText().contains(\"ln\"))\n System.out.println(send);\n else\n System.out.print(send);\n }else {\n //System.out.println(\"YEP\");\n //CAUTION: REPLACES ALL + SIGNS\n value=value.replaceAll(\"\\\"\",\"\").replaceAll(\"\\\\+\",\"\");\n ////System.out.println(\"ACTUAL PRINT\");\n if (expCtx.printHead().getText().contains(\"ln\"))\n System.out.println(value);\n else\n System.out.print(value);\n }\n\n\n\n\n\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "@Test\r\n\t\tpublic void testParseOperator() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 5\\nb = 6\\nc = a + (b * 4)\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[2]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"*\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "@Test\n\tpublic void test3()\n\t{\n\t\tassertEquals(\n\t\t\t\"$1: (spacex|spx)\\n\" +\n\t\t\t\"$webpage: {<a=$1> b=reddit}\",\n\t\t\texplodeRulesAndCreateString(\"webpage: a=(spacex|spx) b=reddit\")\n\t\t);\n\t}", "private void SolveCondition() {\n Pattern pt = Pattern.compile(\"(?<!\\\")\\\\[(.*?)\\\\](?<!\\\")\");\n //another greedy matching will be \\[([^}]+)\\]\n Matcher ma = pt.matcher(Input);\n while(ma.find()) {\n if(ma.groupCount()>0){\n System.out.println(ma.group(1));\n }\n }\n\n }", "@Test\n public void explore2Statement(){\n assertEquals(\"3 3 N LOST\", explore2.outputStatement());\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.notEquals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\") \", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "@Test\r\n\tpublic void testTokenizeOperator() {\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\"))\r\n\t\t\t\t.sendKeys(\"the_best_cat = \\\"Noogie Cat\\\"\\nputs \\\"The best cat is: \\\" + the_best_cat\");\r\n\r\n\t\t// Look for the \"Tokenize\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(0).click();\r\n\r\n\t\t// Check that there is corresponding quantity of the word \":on_op\"\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tString res = code.getText();\r\n\t\t\tint count = 0;\r\n\t\t\tfor (int i = 0; i <= res.length() - 6; i++) {\r\n\t\t\t\tString sub = res.substring(i, i + 6);\r\n\t\t\t\tif (sub.equals(\":on_op\"))\r\n\t\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tassertEquals(count, 2);\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test\r\n\t\tpublic void testTokenizeOperation() {\r\n\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 5\\nb = 6\\nc = a + (b * 4)\");;\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.name(\"commit\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\":on_op\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "@Test\n\tpublic void test6()\n\t{\n\t\tassertEquals(\n\t\t\t\"$1: {<web> page}\\n\" +\n\t\t\t\"$2: (webpage|$1)\\n\" +\n\t\t\t\"$webpage: {<spacex> $2}\",\n\t\t\texplodeRulesAndCreateString(\"webpage: spacex (webpage|(web page))\")\n\t\t);\n\t}", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Y44o{5$K\");\n xPathLexer0.leftParen();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.operatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "private void consumeFunctionCall() throws UiSelectorSyntaxException {\n String methodName;\n StringBuilder argument = new StringBuilder();\n\n int parenIndex = text.indexOf('(');\n methodName = text.substring(0, parenIndex);\n\n int index = parenIndex+1;\n int parenCount = 1;\n while (parenCount > 0) {\n try {\n switch (text.charAt(index)) {\n case ')':\n parenCount--;\n if (parenCount > 0) {\n argument.append(text.charAt(index));\n }\n break;\n case '(':\n parenCount++;\n argument.append(text.charAt(index));\n break;\n default:\n argument.append(text.charAt(index));\n }\n } catch (StringIndexOutOfBoundsException e) {\n throw new UiSelectorSyntaxException(\"unclosed paren in expression\");\n }\n index++;\n }\n\n ArrayList<String> args = splitArgs(argument.toString());\n\n Method method = getUiScrollableMethod(methodName, args);\n\n applyArgsToMethod(method, args);\n\n // add two for parentheses surrounding arg\n text = text.substring(methodName.length() + argument.length() + 2);\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "public static String evaluate( String expr )\n {\n\n\tString[] arr = expr.split(\"//s+\");\n\tString ret = \"\";\n\tALStack<String> stack = new ALStack<String>();\n\tfor( String s: arr)\n\t stack.push(s);\n\n\tif( stack.peek().equals(\"(\")){\n\t stack.pop();\n\t int operator = findOp(stack.pop());\n\t ret = unload(operator, stack);\n\t return ret;\n\t}\n\treturn \"\";\n }", "String getExpression();", "String getExpression();", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "@Test(timeout = 4000)\n public void test149() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"m6l-dKX`qghFq8(,{\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(\"6l\", token1.getTokenText());\n assertEquals(22, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"-\", token2.getTokenText());\n assertEquals(6, token2.getTokenType());\n }", "@Test\n\tpublic void test7()\n\t{\n\t\tassertEquals(\n\t\t\t\"$1: {<web> page}\\n\" +\n\t\t\t\"$2: (webpage|$1)\\n\" +\n\t\t\t\"$webpage: {<spacex> $2}\\n\" +\n\t\t\t\"$webpage: {<slashdot>}\",\n\t\t\texplodeRulesAndCreateString(\"webpage:\\n\\tspacex (webpage|(web page))\\n\\tslashdot\")\n\t\t);\n\t}", "String getSourceExpression();", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Override\n\tpublic String visitReturnSt(ReturnStContext ctx){\n\t\treturn visit(ctx.getChild(1));\n\t}", "@Test\n public void testCurlyBracket() {\n String html = source.toHTML(new SEclipseStyle(), new SCurlyBracket());\n assertEquals(html, \"<pre style='color:\"\n + \"#000000;background:#ffffff;'>\"\n + \"public class MainClass {\\n\"\n + \" \\n\"\n + \" public static void main(String args[]){\\n\"\n + \" GradeBook myGradeBook=new GradeBook();\\n\"\n + \" String courseName=\\\"Java \\\";\\n\"\n + \" myGradeBook.displayMessage(courseName);\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }public class Foo {\\n\"\n + \" \\n\"\n + \" public boolean bar(){\\n\"\n + \" super.foo();\\n\"\n + \" return false;\\n\"\n + \" \\n\"\n + \" }\\n\"\n + \" }</pre>\");\n }", "public Snippet visit(ConditionalOrExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifier1.accept(this, argu);\n\t _ret.returnTemp = f0.returnTemp+\" || \"+f2.returnTemp;\n\t return _ret;\n\t }", "ParenthesisExpr createParenthesisExpr();", "public String dispaly(String result, String which) {\n String fword=\"\";\n String dump=result;\n Log.i(\"result \"+which,result);\n if(result!=null){\n result=result.replaceAll(\"lang=en\",\"\");\n String ts;\n if(result.contains(\"[[\")||result.contains(\"{{\"))\n {\tdump=dump.replaceAll(\"[^a-zA-Z0-9.\\\\[\\\\]|,;}\\\\s+]\", \"\").trim();\n if(dump.startsWith(\"[[\"))\n {\n int i=result.indexOf(\"[[\");\n int j=result.indexOf(\"]]\");\n fword=result.substring(i,j);\n int k=fword.indexOf('|');\n fword=fword.substring(k+1);\n //System.out.println(\"First Word \"+fword);\n //System.out.println(\"FIND \"+result);\n result=result.substring(j+2);\n //\tSystem.out.println(\"FIND \"+result);\n result=fword.concat(result);\n result=result.replace('|',' ');\n\n }\n else\n {\n System.out.println(\"Esle called \"+result);\n dump=dump.replaceAll(\"[^a-zA-Z0-9.\\\\[\\\\]|,;}\\\\s+]\", \"\").trim();\n String arr[]=dump.split(\" \");\n for(int aa=0;aa<arr.length;aa++)\n {\n\n if(arr[aa].contains(\"[[\")&&arr[aa].contains(\"|\"))\n {\n //System.out.println(arr[aa]);\n String min=arr[aa];\n //System.out.println(\"MINNN \"+min);\n int x=min.indexOf(\"[[\");\n int y=min.indexOf(\"|\");\n min=min.substring(y+1);\n //System.out.println(min);\n result=result.replace(arr[aa], min);\n }\n }\n result=result.replace('|',' ');\n }\n }\n //if(result.matches(\"[[[a-zA-Z|]\"))\n send+=\"<h3>\"+which+\"</h3>\"+\"\\n\";\n // System.out.println(\"Meaning for \"+which);\n if(result.contains(\"}}\"))\n {\n int resultindex=result.indexOf(\"}}\");\n //\t System.out.println(resultindex);\n result=result.substring(resultindex);\n }\n\n result = result.replaceAll(\"[^a-zA-Z0-9.,;\\\\s+]\", \"\");\n result=result.replaceAll(\";\",\".\\n\");\n\n // result.endsWith(\".\");\n // System.out.println(result);\n int newline=0;\n for(int i=0;i<result.length();i++)\n {\n if(result.charAt(i)=='\\n')\n {\n newline++;\n }\n }\n\n // System.out.println(\"New Line \"+newline);\n for(int i=0;i<newline;i++)\n {\n int nn=result.indexOf(\"\\n\");\n // System.out.println(\"First line \"+nn);\n String res=result.substring(0,nn);\n result=result.substring(nn+1);\n // System.out.println(res);\n send+=res+\"\\n\";\n }\n int nn=result.indexOf(\"\\n\");\n\n\n result=result.substring(nn+1);\n send+=result+\"\\n\";\n // System.out.println(result);\n /* fword=fword.trim();\n if(!fword.isEmpty())\n {\n\n fword=fword.concat(\" \");\n // send=fword+send;\n send=fword.concat(send);\n\n // System.out.println(\"Called\");\n return send;\n }*/\n\n\n\n }\n /*else {\n result1.setText(\"Wrorng\");\n send+=\"Enter Correct word\";\n // System.out.println(\"Enter correct word\");\n return \"Wrong\";\n }*/\n\n return send;\n }", "@Test\r\n public void test() {\r\n assertEquals(Arrays.asList(\"()()()\", \"(())()\"), removeInvalidParentheses(\"()())()\"));\r\n assertEquals(Arrays.asList(\"(a)()()\", \"(a())()\"), removeInvalidParentheses(\"(a)())()\"));\r\n assertEquals(Arrays.asList(\"\"), removeInvalidParentheses(\")(\"));\r\n }", "protected void evalBranch(){\n List<Token> arguments = this.mainToken.getChilds();\n\n //Primer argumento es un string\n String stringExpression = arguments.get(0).getValue();\n //Removemos la referencia en la lista\n arguments.remove(0);\n\n String response = this.make(stringExpression, arguments);\n\n //Eliminar hojas\n this.setResponse(response);\n }", "@Test(timeout = 4000)\n public void test159() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"g\\\"K@1\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals((-1), token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") T/\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"T\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test148() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\")o/f0*4=P~Q{S\");\n Token token0 = xPathLexer0.dollar();\n assertEquals(26, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.at();\n assertEquals(\"o\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n \n xPathLexer0.not();\n Token token2 = xPathLexer0.not();\n assertEquals(\"f\", token2.getTokenText());\n assertEquals(23, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(30, token3.getTokenType());\n assertEquals(\"0\", token3.getTokenText());\n }", "public void test_caselessmatch14() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch14.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-false.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "public static void main(String[] args) {\n\t\n\t\tString exp =\"({})\";\n\t\t\n\t\tboolean b = isBalancedParenthesis(exp);\n\t\t\n\t\tSystem.out.println(b);\n\t\t\t}", "@Test\n\tpublic void test4()\n\t{\n\t\tassertEquals(\n\t\t\t\"$webpage: {<spacex>}\",\n\t\t\texplodeRulesAndCreateString(\"webpage: spacex\")\n\t\t);\n\t}", "public void test_caselessmatch04() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch04.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-true.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = \"matches('K', '[A-Z]', 'i')\";\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "@Test\r\n\t\tpublic void testCompileAllOperators() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"a = 6\\nb = 6\\nc = a + (b * 4)\\nd = c / 3\");;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.xpath(\"(//input[@name='commit'])[3]\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"opt_plus\") && elementText.contains(\"opt_div\") && elementText.contains(\"opt_mult\") &! elementText.contains(\"opt_minus\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "public void test_caselessmatch02() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch02.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-true.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "@Test\r\n\tpublic void testParseOperator() {\r\n\r\n\t\t// find the number of operators in the input\r\n\r\n\t\tint add = 0;\r\n\t\tint minus = 0;\r\n\t\tint multiply = 0;\r\n\t\tint divide = 0;\r\n\t\tString input = \"a = 5\\nb = a - 1\\nc = a + (b / 2 * 4)\";\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) == '+')\r\n\t\t\t\tadd++;\r\n\t\t\tif (input.charAt(i) == '-')\r\n\t\t\t\tminus++;\r\n\t\t\tif (input.charAt(i) == '*')\r\n\t\t\t\tmultiply++;\r\n\t\t\tif (input.charAt(i) == '/')\r\n\t\t\t\tdivide++;\r\n\t\t}\r\n\r\n\t\t// Enter the code\r\n\r\n\t\tdriver.findElement(By.name(\"code[code]\")).sendKeys(input);\r\n\r\n\t\t// Look for the \"Parse\" button and click\r\n\r\n\t\tdriver.findElements(By.name(\"commit\")).get(1).click();\r\n\r\n\t\t// Check that there contains corresponding quantity of operators\r\n\r\n\t\ttry {\r\n\t\t\tWebElement code = driver.findElement(By.tagName(\"code\"));\r\n\t\t\tString res = code.getText();\r\n\t\t\tint add1 = 0, minus1 = 0, multiply1 = 0, divide1 = 0;\r\n\t\t\tfor (int i = 0; i < res.length(); i++) {\r\n\t\t\t\tif (res.charAt(i) == '+')\r\n\t\t\t\t\tadd1++;\r\n\t\t\t\tif (res.charAt(i) == '-')\r\n\t\t\t\t\tminus1++;\r\n\t\t\t\tif (res.charAt(i) == '*')\r\n\t\t\t\t\tmultiply1++;\r\n\t\t\t\tif (res.charAt(i) == '/')\r\n\t\t\t\t\tdivide1++;\r\n\t\t\t}\r\n\t\t\tassertEquals(add, add1);\r\n\t\t\tassertEquals(minus, minus1);\r\n\t\t\tassertEquals(multiply, multiply1);\r\n\t\t\tassertEquals(divide, divide1);\r\n\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\tfail();\r\n\t\t}\r\n\t}", "public void test_caselessmatch03() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch03.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-true.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "@Test void testCaseExpressionDialect1() {\n sql(\"case x when 2, 4 then 3 ^when^ then 5 else 4 end\")\n .fails(\"(?s)Encountered \\\"when then\\\" at .*\");\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n String string0 = xPathLexer0.getXPath();\n assertEquals(\") (\", string0);\n }", "@Test\n void multiConstruct() {\n var multicons = \"(define conCar_a (cons 1 2))(define conCar_b (cons 3 conCar_a))(define conCar_c (cons conCar_b 4))(define conCar_d (cons conCar_b conCar_c))\";\n Main.parseInputString(multicons);\n assertEquals(\"(3 1 . 2)\", Main.parseInputString(\"(display (car conCar_d)) \"));\n }", "public void test_caselessmatch15() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch15.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-true.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "@Test(timeout = 4000)\n public void test162() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.rightParen();\n xPathLexer0.notEquals();\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.identifierOrOperatorName();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.minus();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(6, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public void test_caselessmatch13() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch13.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-false.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "@Test\r\n\t\tpublic void testTokenizePuts() {\r\n\t\t\t\t\t\t\t\r\n\t\t\tString a = \"the_best_cat = \\\"Noogie Cat\\\" \\nputs \\\"The best cat is: \\\" + the_best_cat\";\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(a);;\r\n\t\t\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.name(\"commit\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\":on_ident\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "@Test\n public void Task2() {\n String text=\n given()\n .when()\n .get(\"https://httpstat.us/203\")\n .then()\n .statusCode(203)\n .contentType(ContentType.TEXT)\n // .body(equalTo(\"203 Non-Authoritative Information\")) // aslinda böyle yapmaliyiz\n .extract().body().asString()\n ;\n Assert.assertEquals(text,\"203 Non-Authoritative Information\");\n // 2 yol\n given()\n .when()\n .get(\"https://httpstat.us/203\")\n .then()\n .statusCode(203)\n .contentType(ContentType.TEXT)\n .body(equalTo(\"203 Non-Authoritative Information\")) // aslinda böyle yapmaliyiz\n ;\n }", "@Test(timeout = 4000)\n public void test066() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n xPathLexer0.leftParen();\n Token token0 = xPathLexer0.div();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"_V)2V93#c=~\\\")I\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"_\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"V\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "private double evaluarExp6() throws Excepciones{\n double resultado;\n if(token.equals(\"(\")) {\n obtieneToken();\n resultado = evaluarExp2();\n if(!token.equals(\")\")){\n obtieneError(PARENTESIS);\n }\n obtieneToken();\n }else{\n resultado = valor();\n }\n return resultado;\n}", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"3APV;W&5C\\\"!eSgJk*X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"3\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"APV\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public void test_caselessmatch06() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch06.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-true.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = \"matches('K', 'K', 'i')\"; \n \t \n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"gQFm^#}*F\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"QFm\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public void test_caselessmatch01() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch01.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-true.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "public void test_caselessmatch05() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch05.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-true.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = \"matches('K', '[a-z]', 'i')\";\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "public void test_caselessmatch07() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch07.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-true.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = \"matches('K', 'k', 'i')\";\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">Uuu/X==mpx'Q N+\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\">\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Uuu\", token1.getTokenText());\n }", "@Override\n public String necessaryParentheses() {\n // per il primo nodo, supponiamo che il padre abbia precedenza negativa (vedere il prossimo metodo per la\n // spiegazione)\n return necessaryParentheses(-1, false);\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Override\n protected String getInitialBody(PythonParseTree.PythonParser.FuncdefContext function) {\n return function.suite().getText();\n }", "public void test_caselessmatch09() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch09.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-true.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "public void testNested1() throws Exception {\n String contents = \n \"(true ? 2 : 7) + 9\";\n assertType(contents, \"java.lang.Integer\");\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public String getStory() {\n String finalStory = story;\n for(String word : words) {\n finalStory = finalStory.replaceFirst(expression.pattern(), \"@\"+word+\"*\");\n }\n return finalStory.replace(\"@\", \"<b>\").replace(\"*\", \"</b>\");\n }", "@Override\n\tpublic String visitExpr(ExprContext ctx) {\n\t\t\t\t\n\t\t\tif(ctx.getChildCount()==1)\n\t\t\t{\n\t\t\t\treturn visitSubexpr(ctx.subexpr());\n\t\t\t}\n\t\t\telse\n\t\t\t\t\n\t\t\t{\n\t\t\t\tString result = \"\";\n\t\t\t\t\n\t\t\t\t\tresult = \"temp\"+ count.count++;\n\t\t\t\tif(ctx.getChild(1).getText().equals(\"+\"))\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"ADD \"+visit(ctx.children.get(0))+\" \"+visitSubexpr(ctx.subexpr())+\" \"+result+\"\\n\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"SUB \"+visit(ctx.children.get(0))+\" \"+visitSubexpr(ctx.subexpr())+\" \"+ result+\"\\n\");\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\t\t\t}\n\t\n\n\t\t\n\t}", "@And(\"^Cards displayed are \\\"([^\\\"]*)\\\"$\")\r\n public void cards_displayed_are_something(String strArg1) throws Throwable {\n \tSystem.out.println(strArg1);\r\n \r\n }", "public static void main(String[] args){\n String s = \"()()()\";\n System.out.println(find_max_length_of_matching_parentheses(s));\n }", "@Override\n public String toString() {\n \treturn \"()\";\n }", "public void test_caselessmatch12() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch12.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-false.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals(\"r\") || aux.equals(\"i\") || aux.equals(\"d\") || aux.equals(\"a\")) {\n return aux;\n } \n \n Pattern p1 = Pattern.compile(\"(([>\\\\<])+([=])|[(\\\\)\\\\;\\\\+\\\\-\\\\–\\\\*\\\\/\\\\'\\\\’\\\\‘\\\\,\\\\.\\\\>\\\\<\\\\=]|([@0-9A-Za-z]*)+([#\\\\.\\\\%\\\\_\\\\-]*)?[0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)\"\n + \"|([@A-Za-z]*)+([#\\\\%\\\\_\\\\-]*)?[A-Za-z0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)|[!\\\\$\\\\%\\\\&\\\\?\\\\¿\\\\¡\\\\_]|[a-zA-Z])\");\n \n Matcher m2 = p1.matcher(aux);\n while (m2.find()) {\n if(m2.group().matches(\"SELECT|FROM|WHERE|IN|AND|OR|CREATE|TABLE|CHAR|NUMERIC|NOT|NULL|CONSTARINT|KEY|PRIMARY|FOREIGN|REFERENCES|INSERT|INTO|VALUES|GO|CREATE|PROCEDURE|VARCHAR\"\n + \"|AS|IF|EXISTS|BEGIN|PRINT|END|ELSE\")) //Palabras reservadas\n {\n String pal = m2.group();\n switch (pal) {\n case \"SELECT\": aux = \"s\";\n auxLinea = m2.group();\n break;\n case \"FROM\": aux = \"f\";\n auxLinea = m2.group();\n break;\n case \"WHERE\": aux = \"w\";\n auxLinea = m2.group();\n break;\n case \"IN\": aux = \"n\";\n auxLinea = m2.group();\n break;\n case \"AND\": aux = \"y\";\n auxLinea = m2.group();\n break;\n case \"OR\": aux = \"o\";\n auxLinea = m2.group();\n break;\n case \"CREATE\": aux = \"c\";\n auxLinea = m2.group();\n break;\n case \"TABLE\": aux = \"t\";\n auxLinea = m2.group();\n break;\n case \"CHAR\": aux = \"h\";\n auxLinea = m2.group();\n break;\n case \"NUMERIC\": aux = \"u\";\n auxLinea = m2.group();\n break;\n case \"NOT\": aux = \"e\";\n auxLinea = m2.group();\n break;\n case \"NULL\": aux = \"g\";\n auxLinea = m2.group();\n break;\n case \"CONSTRAINT\": aux = \"b\";\n auxLinea = m2.group();\n break;\n case \"KEY\": aux = \"k\";\n auxLinea = m2.group();\n break;\n case \"PRIMARY\": aux = \"p\";\n auxLinea = m2.group();\n break;\n case \"FOREIGN\": aux = \"j\";\n auxLinea = m2.group();\n break;\n case \"REFERENCES\": aux = \"l\";\n auxLinea = m2.group();\n break;\n case \"INSERT\": aux = \"m\";\n auxLinea = m2.group();\n break;\n case \"INTO\": aux = \"q\";\n auxLinea = m2.group();\n break;\n case \"VALUES\": aux = \"v\";\n auxLinea = m2.group();\n break;\n }\n } else {\n \n }\n }\n return aux;\n }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\";b_z(sF5\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\";\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"b_z\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public static String extractExpr(Line.Part lp, String text) {\n int bp = lp.getColumn(); // beginning of the exp\n int ep = lp.getColumn(); // end of the expr\n int len = text.length();\n\n if (lp.getColumn() >= len) {\n return null; // pointed outside the current line\n }\n char[] str = new char[len + 1]; // leave room for '\\0'\n text.getChars(0, len, str, 0);\n str[len] = 0;\n\n // Search forwards. Accept all alpha numeric characters, _, and\n // array indexing (provided it's balanced)\n int bbalance = 0; // Balance of brackets []\n int pbalance = 0; // Balance of parentheses ()\n boolean foundEnd = false; // Found the boundary of the expression\n for (; !foundEnd && str[ep] != 0; ep++) {\n if (Character.isLetterOrDigit(str[ep]) || str[ep] == '_') {\n continue; // C token\n }\n switch (str[ep]) {\n case '[':\n bbalance++;\n break;\n case ']':\n if (str[ep] == ']') {\n bbalance--;\n if (bbalance < 0) {\n foundEnd = true;\n break;\n }\n }\n break;\n case '*': // Allow *'s: for example in \"foo[*bar]\"\n break;\n case ':': // Foo::bar\n // pass only scope members, see IZ 206740\n if (str[ep+1] != ':') {\n foundEnd = true;\n } else {\n ep++;\n }\n break;\n default:\n foundEnd = true;\n break;\n }\n if (foundEnd) {\n break; // To prevent e++ in loop iteration\n }\n }\n // Search backwards. Just like forwards, but also accept function calls ()\n // and dereferencing ->, and look for a cast in front of the expression\n bbalance = 0;\n pbalance = 0;\n foundEnd = false;\n // for (; !foundEnd && (bp <= pos); bp--) {\n for (; !foundEnd && (bp >= 0); bp--) {\n if (Character.isLetterOrDigit(str[bp]) || str[bp] == '_') {\n continue; // C identifier\n }\n switch (str[bp]) {\n case ')':\n // Special case: I need to see if this is a\n // function call (in which case I proceed as\n // usual) or a cast. If it's a cast I want to\n // find the matching parenthesis and stop\n // (since a cast can contain stuff that I\n // don't otherwise allow, like *, whitespace,\n // etc.) This allows me to point at \"(char\n if ((bp < ep) && (Character.isLetterOrDigit(str[bp + 1]) || str[bp + 1] == '_')) {\n // It's a cast\n pbalance = 0;\n while (bp >= lp.getColumn()) {\n if (str[bp] == ')') {\n pbalance++;\n } else if (str[bp] == '(') {\n pbalance--;\n if (pbalance == 0) {\n // found beginning of cast\n // compensate for b++ below\n bp--;\n break;\n }\n }\n bp--;\n }\n foundEnd = true;\n break;\n } else {\n // It's a function call\n pbalance++;\n }\n break;\n case ']':\n bbalance++;\n break;\n case '(':\n pbalance--;\n if (pbalance < 0) {\n foundEnd = true;\n break;\n }\n break;\n case '[':\n bbalance--;\n if (bbalance < 0) {\n foundEnd = true;\n break;\n }\n break;\n case '>':\n // for example \"foo->bar\"\n if ((bp == lp.getColumn()) || (str[bp - 1] != '-')) {\n foundEnd = true;\n break;\n } else {\n bp--; // skip over whole ->\n }\n break;\n case '.': // for example \"foo.bar\"\n case 0: // empty string: when you point at the end of a expr\n case ':': // for example \"Foo::bar\"\n break;\n case '&':\n case '*':\n // What do we do about an expression like\n // foo = &bar; ? Does the user want to evaluate\n // \"bar\" or \"&bar\" ???\n // For now let's assume the user wants \"bar\"\n // For *, we have the same issue.\n // It's not easy to decide which is right.\n // (1) char *foo = \"hello\"\n // (2) bar = *llist\n // In (1) you want \"foo\", in (2) you want \"*llist\".\n // But since we have a gesture for *eval (hit control),\n // let's go with behavior 1 for now.\n foundEnd = true;\n break;\n default:\n foundEnd = true;\n break;\n }\n if (foundEnd) {\n break;\n } // To prevent bp-- in loop iteration\n }\n\n bp++; // Skip the delimiter we just found\n String result = \"\";\n if (bp >= ep) {\n return null;\n }\n\n while (bp < ep) {\n result += str[bp++];\n }\n\n return result;\n }", "public void test_caselessmatch08() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch08.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-true.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "@Test\r\n\t\tpublic void testTokenizeVariable() {\r\n\t\t\t\t\t\r\n\t\t\tdriver.findElement(By.id(\"code_code\")).sendKeys(\"variable1 = 5\\nb = 6\\nc = variable1 + (b * 4)\");;\r\n\t\t\t\t\t\r\n\t\t\tWebElement submitButton = driver.findElement(By.name(\"commit\"));\r\n\t\t\tsubmitButton.click();\r\n\t\t\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tWebElement e = driver.findElement(By.tagName(\"code\"));\r\n\t\t\t\tString elementText = e.getText();\r\n\t\t\t\tassertTrue(elementText.contains(\"variable1\"));\r\n\t\t\t} catch (NoSuchElementException nseex) {\r\n\t\t\t\tfail();\r\n\t\t\t}\r\n\t\t}", "@Test(timeout = 4000)\n public void test149() throws Throwable {\n StringReader stringReader0 = new StringReader(\" ,(\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 71, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"(\", token0.toString());\n }", "public void test_caselessmatch11() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch11.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch-false.txt\";\n String expectedResult = getExpectedResult(resultFile);\n URL fileURL = bundle.getEntry(inputFile);\n loadDOMDocument(fileURL);\n \n // Get XML Schema Information for the Document\n XSModel schema = getGrammar();\n \n DynamicContext dc = setupDynamicContext(schema);\n \n String xpath = extractXPathExpression(xqFile, inputFile);\n String actual = null;\n try {\n \t \t XPath path = compileXPath(dc, xpath);\n \t\n \t Evaluator eval = new DefaultEvaluator(dc, domDoc);\n \t ResultSequence rs = eval.evaluate(path);\n \n actual = buildResultString(rs);\n \t\n } catch (XPathParserException ex) {\n \t actual = ex.code();\n } catch (StaticError ex) {\n actual = ex.code();\n } catch (DynamicError ex) {\n actual = ex.code();\n }\n \n assertEquals(\"XPath Result Error \" + xqFile + \":\", expectedResult, actual);\n \n \n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"qgS3&9T,:6UK}hF\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"q\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"gS3\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "String getCTE();", "String getCTE();", "String getCTE();", "String getCTE();", "@Test\n void shouldRenderValidTags() throws Exception {\n MatcherAssert.assertThat(\n new Variable(\n new SquareIndicate()\n ).render(\n \"[[ aA0._ ]] \",\n new MapOf<>(\"aA0._\", \"XX\")\n ),\n Matchers.is(\"XX \")\n );\n }", "public Snippet visit(PowExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t Snippet f4 = n.identifier.accept(this, argu);\n\t n.nodeToken4.accept(this, argu);\n\t Snippet f6 = n.identifier1.accept(this, argu);\n\t n.nodeToken5.accept(this, argu);\n\t _ret.returnTemp = \"Math.pow(\"+f4.returnTemp+\", \"+f6.returnTemp+\")\";\n\t return _ret;\n\t }", "public Snippet visit(ExpExpression n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t Snippet f4 = n.identifier.accept(this, argu);\n\t n.nodeToken4.accept(this, argu);\n\t _ret.returnTemp = \"Math.exp(\"+f4.returnTemp+\")\";\n\t return _ret;\n\t }", "@DISPID(-2147417083)\n @PropGet\n java.lang.String outerText();", "@Test(timeout = 4000)\n public void test112() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ji{:[5xw96\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(2, token0.getTokenType());\n assertEquals(\"j\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"i\", token1.getTokenText());\n \n Token token2 = xPathLexer0.notEquals();\n assertEquals(\"{:\", token2.getTokenText());\n assertEquals(22, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(3, token3.getTokenType());\n assertEquals(\"[\", token3.getTokenText());\n \n Token token4 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token4.getTokenType());\n assertEquals(\"5xw96\", token4.getTokenText());\n }", "Syntax.Node ParseActualParameters(Token t) throws Exception{\n if (t.token.equals(\"(\")){\n var expList = ParseExpList();\n t = lexer.next();\n if (t.token.equals(\")\")){\n return new Syntax.NodeActualParameters( expList);\n }\n }\n throw new Exception(\"Error in ParseActualParameters !!! \");\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"yN}H8h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"N\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test30() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n Node node0 = simpleNode0.parent;\n StringWriter stringWriter0 = new StringWriter();\n simpleNode0.toString();\n stringWriter0.append((CharSequence) \"Block\");\n simpleNode0.setIdentifier(\"&\");\n StringWriter stringWriter1 = new StringWriter();\n StringWriter stringWriter2 = new StringWriter();\n StringWriter stringWriter3 = new StringWriter();\n stringWriter3.append((CharSequence) \"{\");\n simpleNode0.setIdentifier(\"<token of kind 7>\");\n JavaParser javaParser0 = new JavaParser(\"5U&(8e)(:9Ls>7.Z\");\n simpleNode0.setIdentifier(\"-.]TZi\");\n StringWriter stringWriter4 = new StringWriter(73);\n simpleNode0.dump(\"#Gi~<{c_E\", stringWriter4);\n assertEquals(\"<Block>\\n <identifier>*amp</identifier>\\n <identifier><token of kind 7></identifier>\\n <identifier>-.]TZi</identifier>\\n</Block>\\n\", stringWriter4.toString());\n \n simpleNode0.toString();\n String string0 = simpleNode0.toString(\"5U&(8e)(:9Ls>7.Z\");\n assertEquals(\"5U&(8e)(:9Ls>7.ZBlock : & : <token of kind 7> : -.]TZi\", string0);\n }", "private void manual() {\n State q1 = new State(\"q1\", \"ID\");\n State q2 = new State(\"q2\", \"IF\");\n State q3 = new State(\"q3\", \"ID\");\n State q4 = new State(\"q4\", \"CONSTANTE\");\n State q5 = new State(\"q5\", \"ABRE_PARENTESES\");\n State q6 = new State(\"q6\", \"FECHA_PARENTESES\");\n State q7 = new State(\"q7\", \"OPERADOR_MAIOR\");\n State q8 = new State(\"q8\", \"OPERADOR_MENOR\");\n State q9 = new State(\"q9\", \"OPERADOR_DIFERENTE\");\n State q10 = new State(\"q10\", \"ID\");\n State q11 = new State(\"q11\", \"ID\");\n State q12 = new State(\"q12\", \"ID\");\n State q13 = new State(\"q13\", \"ID\");\n State q14 = new State(\"q14\", \"BEGIN\");\n State q15 = new State(\"q15\", \"ID\");\n State q16 = new State(\"q16\", \"ID\");\n State q17 = new State(\"q17\", \"END\");\n State q18 = new State(\"q18\", \"ESPACO\");\n State q19 = new State(\"q19\", \"ID\");\n State q20 = new State(\"q20\", \"ID\");\n State q21 = new State(\"q21\", \"ELSE\");\n\n // IF\n q0.put(\"[i]\", q1);\n q1.put(\"[f]\", q2);\n q1.put(\"[^\\\\Wf]\", q3);\n q2.put(\"[\\\\w]\", q3);\n\n // ID\n q0.put(\"[^\\\\Wbei0-9_]\", q3);\n q3.put(\"[\\\\w]\", q3);\n\n // CONSTANTE\n q0.put(\"[\\\\d]\", q4);\n q4.put(\"[\\\\d]\", q4);\n\n // ABRE_PARENTESES\n q0.put(\"[(]\", q5);\n\n // ABRE_PARENTESES\n q0.put(\"[)]\", q6);\n\n // OPERADOR_MAIOR\n q0.put(\"[>]\", q7);\n\n // OPERADOR_MENOR\n q0.put(\"[<]\", q8);\n\n // OPERADOR_DIFERENTE\n q0.put(\"[#]\", q9);\n\n // BEGIN\n q0.put(\"[b]\", q10);\n q10.put(\"[e]\", q11);\n q11.put(\"[g]\", q12);\n q12.put(\"[i]\", q13);\n q13.put(\"[n]\", q14);\n q10.put(\"[^\\\\We]\", q3);\n q11.put(\"[^\\\\Wg]\", q3);\n q12.put(\"[^\\\\Wi]\", q3);\n q13.put(\"[^\\\\Wn]\", q3);\n q14.put(\"[\\\\w]\", q3);\n\n // END\n q0.put(\"[e]\", q15);\n q15.put(\"[n]\", q16);\n q16.put(\"[d]\", q17);\n q15.put(\"[^\\\\Wnl]\", q3);\n q16.put(\"[^\\\\Wd]\", q3);\n q17.put(\"[\\\\w]\", q3);\n\n // ELSE\n q15.put(\"[l]\", q19);\n q19.put(\"[s]\", q20);\n q20.put(\"[e]\", q21);\n q19.put(\"[^\\\\Ws]\", q3);\n q20.put(\"[^\\\\We]\", q3);\n q21.put(\"[\\\\w]\", q3);\n\n // ESPACO\n q0.put(\"[\\\\s]\", q18);\n }" ]
[ "0.5656921", "0.55601406", "0.55601287", "0.5555252", "0.5530083", "0.55269134", "0.5513987", "0.5506644", "0.5428014", "0.54157263", "0.54049826", "0.54002255", "0.5394583", "0.53703487", "0.53575724", "0.5352101", "0.53517467", "0.5347607", "0.5326678", "0.53204733", "0.52951753", "0.52931094", "0.5283433", "0.5283433", "0.52463204", "0.5241358", "0.5216672", "0.5216409", "0.5215191", "0.52089983", "0.52036107", "0.5200991", "0.5198129", "0.5184288", "0.51825845", "0.5170966", "0.51656914", "0.51601803", "0.5153915", "0.515115", "0.51414347", "0.51350963", "0.5134677", "0.51222265", "0.5117495", "0.51153535", "0.51146847", "0.51115537", "0.51008916", "0.5097672", "0.50969374", "0.50956994", "0.50952274", "0.508738", "0.5081693", "0.5081681", "0.5079863", "0.50736696", "0.50736123", "0.5073509", "0.50707954", "0.50626457", "0.50589776", "0.50586736", "0.5057116", "0.5056176", "0.5050652", "0.5050367", "0.50487554", "0.5041717", "0.50394404", "0.50264716", "0.50248575", "0.5021399", "0.50143194", "0.50111365", "0.5009344", "0.5007115", "0.50008804", "0.49988037", "0.49984244", "0.4996273", "0.4992782", "0.4981202", "0.49787688", "0.49746853", "0.496486", "0.4964029", "0.4964029", "0.4964029", "0.4964029", "0.49629432", "0.49586576", "0.49558088", "0.4954435", "0.49534744", "0.49504307", "0.49474162", "0.49460173", "0.494143" ]
0.5559247
3
convert methodfor example: if Operator= 'mul'> to 'Times' and if Operator= 'Times' > to 'mul' to fit the constructor
private static String ConvertOp(String Operator) { switch(Operator) { case "comp": { return "Comp"; } case "mul": { return "Times"; } case "div": { return "Divid"; } case "plus": { return "Plus"; } case "max": { return "Max"; } case "min": { return "Min"; } case "Comp": { return "comp"; } case "Times": { return "mul"; } case "Divid": { return "div"; } case "Plus": { return "plus"; } case "Max": { return "max"; } case "Min": { return "min"; } default: return "Error"; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DoubleBinaryOperator chooseOperator() {\n\t\tswitch(name) {\n\t\tcase \"+\":\n\t\t\treturn ADD;\n\t\t\t\n\t\tcase \"-\":\n\t\t\treturn SUB;\n\t\t\t\n\t\tcase \"*\":\n\t\t\treturn MULTIPLY;\n\t\t\t\n\t\tcase \"/\":\n\t\t\treturn DIVIDE;\n\t\t\t\n\t\tcase \"x^n\":\n\t\t\treturn POW;\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Invalid binary operator\");\n\t\t}\n\t}", "String getOperator();", "java.lang.String getOperator();", "public String operator( String op);", "abstract String getOp();", "static BinaryOperator<SibillaValue> getOperator(String op) {\n if (op.equals(\"+\")) {return SibillaValue::sum;}\n if (op.equals(\"-\")) {return SibillaValue::sub; }\n if (op.equals(\"%\")) {return SibillaValue::mod; }\n if (op.equals(\"*\")) {return SibillaValue::mul; }\n if (op.equals(\"/\")) {return SibillaValue::div; }\n if (op.equals(\"//\")) {return SibillaValue::zeroDiv; }\n return (x,y) -> SibillaValue.ERROR_VALUE;\n }", "Operator operator();", "String getOp();", "String getOp();", "String getOp();", "Operator.Type getOperation();", "private String calculate (double num1, double num2, String operator){\r\n \r\n double value;\r\n switch(operator){\r\n case \"+\":\r\n value = num1 + num2;\r\n break;\r\n case \"-\":\r\n value = num1 - num2;\r\n break;\r\n case \"*\":\r\n value = num1 * num2;\r\n break;\r\n case \"/\":\r\n value = num1/num2;\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n \r\n }\r\n String result = value + \"\";\r\n return result;\r\n }", "public String getOperator()\r\n\t{\r\n\t\tSystem.out.println(\"Choose the any operation from the following operations:\");\r\n System.out.println(\"1.+\");\r\n System.out.println(\"2.-\");\r\n System.out.println(\"3.*\");\r\n System.out.println(\"4./\");\r\n \r\n\t\tString op=sc.next();\r\n\t\treturn op;\r\n\t}", "public String toString() {\n return operator + \"(\" + argument + \")\";\n }", "public static String getOperator(Operator operator) {\n\t\tif (operator == MOD) {\n\t\t\treturn \"%\";\n\t\t} else if (operator == DIV) {\n\t\t\treturn \"/\";\n\t\t} else {\n\t\t\treturn operator.toString();\n\t\t}\n\t}", "public String operator() {\n return this.operator;\n }", "private Operator checkOperator(char c){\n if (c == '+'){\n return new AddOperator(); \n }\n else if (c == '-'){\n return new SubOperator(); \n }\n else if (c == '*'){\n return new MulOperator(); \n }\n else if (c == '/'){\n return new DivOperator(); \n }\n else \n return null;\n }", "public String getOperator()\r\n {\r\n return operator;\r\n }", "public Operator operator() {\n\treturn this.op;\n }", "public int operation(int number1,int number2,String operator)", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "public interface Operator {\n\n Map<String, Operator> oprators = Factory.instance();\n\n /**\n * calculate first operator second such as 1 + 2\n * @param first\n * @param second\n * @return\n */\n @NotNull\n BigDecimal calculate(@NotNull BigDecimal first, @NotNull BigDecimal second);\n\n int priority();\n\n\n\n class Factory {\n public static Map<String, Operator> instance() {\n Map<String, Operator> instance = new HashMap();\n\n instance.put(\"+\", new AddOperator());\n instance.put(\"-\", new SubOperator());\n instance.put(\"*\", new MultiOperator());\n instance.put(\"/\", new DiviOperator());\n\n return instance;\n }\n }\n\n}", "public Code visitOperatorNode(ExpNode.OperatorNode node) {\n beginGen(\"Operator\");\n Code code;\n ExpNode args = node.getArg();\n switch (node.getOp()) {\n case ADD_OP:\n code = args.genCode(this);\n code.generateOp(Operation.ADD);\n break;\n case SUB_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n code.generateOp(Operation.ADD);\n break;\n case MUL_OP:\n code = args.genCode(this);\n code.generateOp(Operation.MPY);\n break;\n case DIV_OP:\n code = args.genCode(this);\n code.generateOp(Operation.DIV);\n break;\n case EQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n break;\n case LESS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESS);\n break;\n case NEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.EQUAL);\n code.genBoolNot();\n break;\n case LEQUALS_OP:\n code = args.genCode(this);\n code.generateOp(Operation.LESSEQ);\n break;\n case GREATER_OP:\n /* Generate argument values in reverse order and use LESS */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESS);\n break;\n case GEQUALS_OP:\n /* Generate argument values in reverse order and use LESSEQ */\n code = genArgsInReverse((ExpNode.ArgumentsNode)args);\n code.generateOp(Operation.LESSEQ);\n break;\n case NEG_OP:\n code = args.genCode(this);\n code.generateOp(Operation.NEGATE);\n break;\n default:\n errors.fatal(\"PL0 Internal error: Unknown operator\",\n node.getLocation());\n code = null;\n }\n endGen(\"Operator\");\n return code;\n }", "public void arithmeticMultiplication(Operator operatorType, Operator clickedOperator) {\n switch (operatorType) {\n case ADDITION, SUBTRACT -> {\n if (numberStored[1] == 0) {\n operatorAssigned = operatorType;\n numberStored[1] = Double.parseDouble(mainLabel.getText());\n } else {\n //numberStored[1] = numberStored[1] / Double.parseDouble(mainLabel.getText());\n numberStored[1] = basicCalculation(numberStored[1], Double.parseDouble(mainLabel.getText()), clickedOperator);\n mainLabel.setText(Double.toString(hasNegSign(numberStored[1])));\n }\n }\n case MULTIPLY, DIVIDE -> {\n if (numberStored[1] != 0) {\n //numberStored[1] = numberStored[1] / Double.parseDouble(mainLabel.getText());\n numberStored[1] = basicCalculation(numberStored[1], Double.parseDouble(mainLabel.getText()), operatorType);\n mainLabel.setText(Double.toString(numberStored[1]));\n } else {\n numberStored[0] = basicCalculation(numberStored[0], Double.parseDouble(mainLabel.getText()), operatorType);\n mainLabel.setText(Double.toString(numberStored[0]));\n }\n }\n case POW -> {\n double exp = Double.parseDouble(mainLabel.getText());\n double result = Math.pow(numberStored[2], exp);\n numberStored[2] = 0;\n\n if (numberStored[1] != 0) {\n numberStored[1] = basicCalculation(numberStored[1], result, operatorBfPow);\n mainLabel.setText(Double.toString(numberStored[1]));\n } else {\n numberStored[0] = basicCalculation(numberStored[0], result, operatorBfPow);\n mainLabel.setText(Double.toString(numberStored[0]));\n }\n operatorBfPow = Operator.NON;\n }\n default -> numberStored[0] = Double.parseDouble(mainLabel.getText());\n }\n }", "public String getOperator() {\n return operator;\n }", "Multiply createMultiply();", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public String getOperator() {\n return operator;\n }", "public void setOperator(String incomingOperator)\r\n {\r\n \r\n operator = incomingOperator;\r\n \r\n }", "public String operate() {\r\n\r\n\t\t// Logger log = Logger.getLogger(IterationFactory.class);\r\n\t\tDecimalFormat form = new DecimalFormat(\"0.0000\");\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tOperationFactory operateF;\r\n\t\tList<Integer> valueList;\r\n\r\n\t\tIterator<String> inputItr = this.getInputList().iterator();\r\n\r\n\t\tIterator<Character> opItr = this.getOperator().iterator();\r\n\r\n\t\ttry {\r\n\t\t\t/* Domain check */\r\n\t\t\tif (this.getInputList().size() <= 1 && this.getInputList().size() >= 10) {\r\n\t\t\t\tthrow new ValuePairOutOfLimit(this.getInputList().size());\r\n\t\t\t}\r\n\r\n\t\t\twhile (inputItr.hasNext()) {\r\n\r\n\t\t\t\t/* To get individual operands from operand sets */\r\n\t\t\t\tvalueList = u.toValueList(inputItr.next());\r\n\t\t\t\tIterator<Integer> valItr = valueList.iterator();\r\n\r\n\t\t\t\t/* Check for validity of operands and string format */\r\n\t\t\t\tif (valueList.size() < Constant.TWO)\r\n\t\t\t\t\tthrow new OperandException();\r\n\t\t\t\tif (valueList.size() > Constant.TWO)\r\n\t\t\t\t\tthrow new StringFormatException();\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * If there is empty operator string default operator sets to\r\n\t\t\t\t * plus\r\n\t\t\t\t */\r\n\t\t\t\tif (operator.size() == 0)\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), Constant.PLUS);\r\n\t\t\t\telse\r\n\t\t\t\t\toperateF = new OperationFactory(valItr.next(), valItr.next(), opItr.next());\r\n\r\n\t\t\t\t/* Output */\r\n\t\t\t\tsb.append(operateF.getmOp().getmOperand1() + operateF.getmOp().getmWord()\r\n\t\t\t\t\t\t+ operateF.getmOp().getmOperand2() + \" = \" + form.format(operateF.operate()) + \"\\n\");\r\n\r\n\t\t\t\t/*To reset operator iterator.*/\r\n\t\t\t\tif (!opItr.hasNext())\r\n\t\t\t\t\topItr = this.getOperator().iterator();\r\n\t\t\t}\r\n\t\t} catch (IntegerOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (InvalidOperator e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (OperandException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (StringFormatException e) {\r\n\t\t\tsb.append(e);\r\n\t\t} catch (ValuePairOutOfLimit e) {\r\n\t\t\tsb.append(e);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public char getOper(){\n\t\treturn oper;\n\t}", "public String gettOperator() {\n return tOperator;\n }", "public int calculateUsingFactory(int a ,int b ,String operator) {\n\t\tOperation targetOperation = OperatorFactory.getOperationNull(operator);\n\t\tif(targetOperation instanceof Addition) {\n\t\t\tSystem.out.println(\"Addiction Object\");\n\t\t}else if(targetOperation instanceof Subtraction) {\n\t\t\tSystem.out.println(\"Subtraction Object\");\n\t\t}\n\t\treturn targetOperation.apply(a, b);\n\t}", "Unary operator(Operator o);", "public String getOper() {\n return oper;\n }", "Object findOperatorNeedCheck();", "public Operator nameToOperator(String name) {\r\n return operators.get(name);\r\n }", "public static EvaluationStep getBinaryOperation(final String theOperator)\n {\n if(\"+\".equals(theOperator)) return Addition;\n if(\"-\".equals(theOperator)) return Subtraction;\n if(\"*\".equals(theOperator)) return Mulitplication;\n if(\"/\".equals(theOperator)) return Division;\n if(\"^\".equals(theOperator)) return Exponentiation;\n throw new IllegalStateException(\"Invalid binary operator ($operator).\".replace(\"$operator\", (null != theOperator) ? theOperator : \"null\"));\n }", "com.google.protobuf.ByteString getOperatorBytes();", "public final Operator operator() {\n return operator;\n }", "public Calculator() {\r\n\t\tthis.operator = new Addition();\r\n\t}", "public void setOperator(String operator) {\n this.operator = operator;\n }", "@Override\n public String toString() {\n return op.toString();\n }", "public Long getOperator() {\n return operator;\n }", "public static Operator CreateFromString(String Str) {\n char Sym = Str.charAt(0);\n if (Sym == '+')\n return new OperatorAdd();\n else if (Sym == '-')\n return new OperatorSub();\n else if (Sym == '*')\n return new OperatorProd();\n else if (Sym == '/')\n return new OperatorDev();\n else if (Sym == '^')\n return new OperatorPow();\n else if (Sym == '(')\n return new OperatorOpBrack();\n else if (Sym == ')')\n return new OperatorClBrack();\n else if (Str.equals(\"cos\"))\n return new OperatorCos();\n else if (Str.equals(\"sin\"))\n return new OperatorSin();\n else if (Str.equals(\"tan\"))\n return new OperatorTan();\n else if (Str.equals(\"arcsin\"))\n return new OperatorAsin();\n else if (Str.equals(\"arccos\"))\n return new OperatorAcos();\n else if (Str.equals(\"arctan\"))\n return new OperatorAtan();\n else if (Str.equals(\"abs\"))\n return new OperatorAbs();\n else if (Str.equals(\"fact\"))\n return new OperatorFact();\n else if (Str.equals(\"to_rad\"))\n return new OperatorToRad();\n else if (Str.equals(\"ln\"))\n return new OperatorLn();\n else if (Str.equals(\"log\"))\n return new OperatorLog();\n return new Operator(0, -1);\n }", "public static ObjectInstance getMultiplyToAddOperationCallObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 4);\n properties.put(\"sourceEndpoint\", StringMangler\n .EncodeForJmx(getMultiplyEndpointMBean().getUrl()));\n properties.put(\"sourceOperation\", getMultiplyOperationMBean()\n .getName());\n properties.put(\"targetEndpoint\", StringMangler\n .EncodeForJmx(getAddEndpointMBean().getUrl()));\n properties.put(\"targetOperation\", getAddOperationMBean().getName());\n properties.put(\"jmxType\", new OperationCall().getJmxType());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'Divide-Subtract' OperationCall ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new OperationCall().getClass().getName());\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"MULT\";\n\t}", "public String getOperator() {\n\t\treturn operator;\n\t}", "public String getOperator() {\n\t\treturn operator;\n\t}", "public java.lang.Integer getOperator() {\n\treturn operator;\n}", "public interface Operator {\n /**\n * String literal to enter operator\n * @return\n */\n String getKey();\n\n void execute(EvaluatedParameters evaluatedParameters) throws ProcessorException;\n}", "protected void operation(String operator){\n if (this.tail<2){\n this.arr[tail++] = this.value;\n this.arr[tail++] = operator;\n } else{\n if (this.peek() != \")\"){\n this.arr[this.tail++] = this.value;\n }\n this.arr[this.tail++] = operator;\n }\n this.value=\"\"; // reset tracking variables\n this.decimalUsed = false;\n }", "public Operator getOperator() {\n return this.operator;\n }", "public Operator getOperator()\n {\n return operator;\n }", "private double operation(char operand, double num1, double num2){\r\n\t\t\tdouble result;\r\n\t\t\tCalculatorImpl ci = new CalculatorImpl();\r\n\t\t\tswitch(operand){\r\n\t\t\tcase PLUS : result = ci.getAddition(num1, num2);break;\r\n\t\t\tcase MINUS : result = ci.getSubtraction(num1, num2);break;\r\n\t\t\tcase MULTI : result = ci.getMultification(num1, num2);break;\r\n\t\t\tcase DIVIDE : result = ci.getDivision(num1, num2);break;\r\n\t\t\tdefault : result=0.0;break;\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t\t}", "private StringBuilder getOperand() {\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\treturn firstNumber;\r\n\t\t} else {\r\n\t\t\treturn secondNumber;\r\n\t\t}\r\n\t}", "private OperatorPair chooseOperators(String name) {\n\t\t\n\t\tswitch(name) {\n\t\t\n\t\tcase \"sin\":\n\t\t\treturn new OperatorPair(SIN, ASIN);\n\t\t\t\n\t\tcase \"cos\":\n\t\t\treturn new OperatorPair(COS, ACOS);\n\t\t\t\n\t\tcase \"tan\":\n\t\t\treturn new OperatorPair(TAN, ATAN);\n\t\t\t\n\t\tcase \"ctg\":\n\t\t\treturn new OperatorPair(CTG, ACTG);\n\t\t\t\n\t\tcase \"log\":\n\t\t\treturn new OperatorPair(LOG, LOG_INV);\n\t\t\t\n\t\tcase \"ln\":\n\t\t\treturn new OperatorPair(LN, LN_INV);\n\t\t\n\t\tcase \"1/x\":\n\t\t\treturn new OperatorPair(X_INV, X_INV);\n\t\t\t\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Invalid unary operator\");\n\t\t}\n\t}", "public java.lang.Integer getOperator() throws java.rmi.RemoteException;", "String getOperation();", "String getOperation();", "public static Entry[] getUserDefinedConversionOperatorsOf(final TypeSpec t) {\n // Debug.WriteLine(\"getUserDefinedConversionOperatorsOf(\"+t+\")\");\n if (!t.isClass() && !t.isBuiltinClass()) {\n return new Entry[0]; // only classes have conversion operators\n }\n\n final ArrayList entries = new ArrayList();\n final Scope classScope = new ClassScope(t);\n\n // gather all constructors that take a single argument and all instance\n // or static\n // operator-> methods\n\n if (!t.isAbstractClassOrInterface()) { // t is concrete (otherwise\n // ignore constructors)\n\n final Entry[] ctors = classScope.getEntries(\".ctor\", null);\n\n for (final Entry entry : ctors) {\n Debug.Assert(entry.type.isFunc(), \".ctor isn't a func! type:\"\n + entry.type);\n if (entry.type.getFuncInfo().numRequiredArgs() == 1) {\n if (!entry.type.getFuncInfo().getParamTypes()[0].equals(t)) {\n entries.add(entry);\n }\n }\n }\n\n }\n\n // now operator->\n final Entry[] ops = classScope.getEntries(\"operator->\", null);\n // Debug.WL(\" got entries #=\"+ops.Length+\" t=\"+t);\n // //.classInfo.ToStringFull());\n for (final Entry entry : ops) {\n Debug.Assert(entry.type.isFunc(),\n \"entry for operator-> isn't a func; type:\" + entry.type);\n final FuncInfo fi = entry.type.getFuncInfo();\n // is it an instance operator-> that takes a single arg?\n final boolean isInstanceOp = (!entry.isStatic() && (fi\n .numRequiredArgs() == 0));\n // is it a static operator-> that takes a single arg where either\n // the arg type of the\n // return type is t?\n final boolean isStaticOp = (entry.isStatic()\n && (fi.numRequiredArgs() == 1) && (fi.getParamTypes()[0]\n .equals(t) || fi.getReturnType().equals(t)));\n\n // Debug.WL(\" considering \"+entry.name+\" \"+fi+\" isInstanceOp=\"+isInstanceOp+\" isStaticOp=\"+isStaticOp+\" entry.index=\"+entry.index);\n if (!entry.isAbstract() && (entry.index >= 0)) { // !!!currently,\n // methods\n // inherited from\n // Java types can't\n // be called - so\n // don't consider\n // them!!!\n if (isInstanceOp) {\n // don't bother with operator->(->self) - not useful\n if (!fi.getReturnType().equals(t)) {\n entries.add(entry);\n // Debug.WriteLine(\" got op:\"+entry.type.funcInfo+\" of \"+t);\n }\n } else if (isStaticOp) {\n // don't bother with operator->(a->a) either\n if (!fi.getParamTypes()[0].equals(fi.getReturnType())) {\n entries.add(entry);\n // Debug.WriteLine(\" got op:\"+entry.type.funcInfo+\" of \"+t);\n }\n }\n }\n }\n\n return Entry.toArray(entries);\n }", "public void setOperator(Long operator) {\n this.operator = operator;\n }", "public static OperationMBean getMultiplyOperationMBean()\n {\n return new Operation(\"multiply\");\n }", "public Automato aplicaOperacao(Automato a, Automato b, Character op){\n\t\tAutomato r = new Automato();\n\t\tswitch (op) {\n\t\tcase '*': r = Operacao.estrela(a);\n\t\t\t\t break;\n\n\t\tcase '.': r = Operacao.concatencao(a, b);\n\t\t \t\t break;\n\t\tcase '+': r = Operacao.uniao(a, b);\n\t\t break;\n\t\tdefault: r = simples(op);\n\t\t\tbreak;\n\t\t}\n\t\treturn r;\n\t}", "@FXML\r\n private static void getOperator(char txtDisplay ){\r\n mathOperator=txtDisplay ;\r\n \r\n }", "public String getOperatorName() {\n return operatorName;\n }", "public String getOperatorName() {\n return operatorName;\n }", "public ChainOperator(){\n\n }", "private void operation(char operator){\n if(initialised == false){\n calc.setNum1(Double.parseDouble(txtBox.getText()));\n operatorPressed = true;\n } else { \n calc.setNum2(Double.parseDouble(txtBox.getText()));\n Decimal();\n calc.setNum1(calc.getAnswer());\n txtBox.setText(Double.toString(calc.getAnswer()));\n }\n \n calc.setOperator(operator);\n\n operatorPressed = true;\n initialised = true;\n \n }", "@Override\n\tpublic String getOperator() {\n\t\treturn \"?\";\n\t}", "public Operator getOp() {\n return op;\n }", "public BigDecimal getOperator() {\n return operator;\n }", "public String toString(){\n\t\tString out=\"\";\n\t\tif (type == \"op\"){\n\t\t\treturn out + operand;\n\t\t}\n\t\telse{\n\t\t\treturn out + value ;\n\t\t}\n\t}", "public static String parseOperator(String operator) {\n\t\tif (StringUtils.isEmpty(operator))\n\t\t\treturn SqlBuilder.EQUAL;\n\t\telse if (\"Equals\".equals(operator))\n\t\t\treturn SqlBuilder.EQUAL;\n\t\telse if (\"Between\".equals(operator))\n\t\t\treturn SqlBuilder.BETWEEN;\n\t\telse if (\"LessThan\".equals(operator))\n\t\t\treturn SqlBuilder.LT;\n\t\telse if (\"GreaterThan\".equals(operator))\n\t\t\treturn SqlBuilder.GT;\n\t\telse if (\"IsNotNull\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_NULL;\n\t\telse if (\"IsNull\".equals(operator))\n\t\t\treturn SqlBuilder.IS_NULL;\n\t\telse if (\"NotLike\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_LIKE;\n\t\telse if (\"Like\".equals(operator))\n\t\t\treturn SqlBuilder.LIKE;\n\t\telse if (\"NotIn\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_IN;\n\t\telse if (\"In\".equals(operator))\n\t\t\treturn SqlBuilder.IN;\n\t\telse if (\"NotNull\".equals(operator))\n\t\t\treturn SqlBuilder.NOT_NULL;\n\t\telse if (\"Not\".equals(operator))\n\t\t\treturn SqlBuilder.IS_NOT;\n\t\telse\n\t\t\tthrow new RuntimeException(\"无法识别该类过滤操作:\" + operator);\n\t}", "public Command createOperationCommand(int operator, Operand operand1, Operand operand2);", "<C, O> OperationCallExp<C, O> createOperationCallExp();", "public void setOperator(Operator_PJ o1) {\n\t\t\n\t}", "@Override\n\t\tpublic ObjectType operator(OperatorType type) {\n\t\t\treturn new NumberType(0.0).operator(type);\n\t\t}", "public String calculate() {\r\n\t\t\r\n\t\tif(\"\".equals(firstNumber.toString()) || \"\".equals(secondNumber.toString())) {\r\n\t\t\tclear();\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\t\t\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\tif (getOperand().length() == 0) {\r\n\t\t\t\tclear();\r\n\t\t\t\treturn \"0\";\r\n\t\t\t}\r\n\t\t\tresult = getOperand().toString();\r\n\t\t}\r\n\r\n\t\tif (\"+\".equals(operator)) {\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t+ Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tif (\"-\".equals(operator)) {\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t- Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tif (\"*\".equals(operator)) {\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t* Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tif (\"/\".equals(operator)) {\r\n\t\t\tif (\"0\".equals(secondNumber.toString())) {\r\n\t\t\t\tclear();\r\n\t\t\t\treturn \"Division by zero\";\r\n\t\t\t}\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t/ Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tclear();\r\n\t\treturn filter(result);\r\n\t}", "@Override\n\tprotected void addRequestedOperators() {\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\" %s %s\", operador, exp);\n\t}", "@Override\n public Operator getOperator(String name) {\n return super.getOperator(SdnrOperation.NAME);\n }", "SQLCaseOperand createSQLCaseOperand();", "private String compute(String equ,String op)\n {\n String equation = equ;\n Pattern mdPattern = Pattern.compile(\"(\\\\d+([.]\\\\d+)*)(([\"+op+\"]))(\\\\d+([.]\\\\d+)*)\");\n Matcher matcher\t\t= mdPattern.matcher(equation);\n while(matcher.find())\n {\n String[] arr = null;\n double ans = 0;\n String eq = matcher.group(0);//get form x*y\n if(eq.contains(op))\n {\n arr = eq.split(\"\\\\\"+op);//make arr\n if(op.equals(\"*\"))\n ans = Double.valueOf(arr[0])*Double.valueOf(arr[1]);//compute\n if(op.equals(\"/\"))\n ans = Double.valueOf(arr[0])/Double.valueOf(arr[1]);//compute\n if(op.equals(\"+\"))\n ans = Double.valueOf(arr[0])+Double.valueOf(arr[1]);//compute\n if(op.equals(\"-\"))\n ans = Double.valueOf(arr[0])-Double.valueOf(arr[1]);//compute\n }\n\n equation = matcher.replaceFirst(String.valueOf(ans));//replace in equation\n matcher = mdPattern.matcher(equation);//look for more matches\n }\n return equation;\n }", "private Double check_mathOperator(Double result) {\n \r\n switch(mathOperator){\r\n case '/':\r\n result =totalFirst/totalLast;\r\n break;\r\n case 'x':\r\n result =totalFirst*totalLast;\r\n break;\r\n case '-':\r\n result =totalFirst-totalLast;\r\n break;\r\n case '+':\r\n result =totalFirst+totalLast;\r\n break;\r\n \r\n }\r\n return result;\r\n }", "private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }", "public int getOperatorNum() {\n return operatorNum;\n }", "public String getOp() {\n return op;\n }", "public String getOp() {\n return op;\n }", "public void setOperator(int opr) {\n this.operator = opr;\n }", "public String toString() {\n switch (opType) {\n case Plus:\n return \"+\";\n case Minus:\n return \"-\";\n case Multiply:\n return \"*\";\n case Divide:\n return \"/\";\n case Square:\n return \"^\";\n default:\n return null;\n }\n }", "public Action createOperation(int choose) {\n if (choose==0) {\n action = new Addition();\n } else if (choose==1) {\n action = new Subtracting();\n } else if (choose==2) {\n action = new Multiplication();\n } else if (choose==3) {\n action = new Dividing();\n } else {\n action = null;\n }\n return action;\n }", "public int getPriority(char operator){\n switch(operator){\n case '^':\n return 3;\n case '*':\n case '/':\n return 2;\n case '+':\n case '-':\n return 1;\n }\n\n return 0;\n }", "Operand createOperand();", "@Override\n public SymmetricOpDescription build() {\n return new SymmetricOpDescription(operatorType, dataCodecClass, tasks, redFuncClass);\n }", "@JsonProperty(\"operator\")\n public String getOperator() {\n return operator;\n }" ]
[ "0.66234756", "0.6540454", "0.65042174", "0.636095", "0.6279429", "0.61347085", "0.61224484", "0.60922194", "0.60922194", "0.60922194", "0.60798043", "0.59688526", "0.58893", "0.587462", "0.5832223", "0.58205956", "0.5806678", "0.57956475", "0.5784959", "0.5760347", "0.5759849", "0.57511723", "0.5713755", "0.5711934", "0.5702808", "0.56545806", "0.5625775", "0.5625775", "0.5625775", "0.5625775", "0.5625775", "0.5625775", "0.5617353", "0.5604696", "0.5547009", "0.5544668", "0.55279565", "0.55214494", "0.55189455", "0.5503961", "0.5497382", "0.5494012", "0.54939735", "0.54903847", "0.5489975", "0.54796636", "0.54752284", "0.5463967", "0.5434825", "0.54225665", "0.542246", "0.5420711", "0.5420711", "0.5411345", "0.5407621", "0.53971195", "0.5390237", "0.5387824", "0.53718835", "0.53648174", "0.53627986", "0.5358186", "0.5358021", "0.5358021", "0.53438985", "0.5336191", "0.5325526", "0.53220016", "0.53211063", "0.5311626", "0.5311626", "0.5294501", "0.5287357", "0.52818847", "0.5269759", "0.5266508", "0.5258775", "0.52578217", "0.52511436", "0.52480996", "0.5243154", "0.523851", "0.5230427", "0.52284205", "0.5199401", "0.5196844", "0.51925737", "0.51895124", "0.5183447", "0.51737076", "0.51724076", "0.5170432", "0.5170432", "0.5161347", "0.51521754", "0.51456356", "0.51447856", "0.5142631", "0.51289487", "0.51260936" ]
0.7065992
0
equals function compares current function f(x) values to f1(x) values between closed interval [x0,x1] with epsilon accuracy. when x belongs to [x0,x1] and we increase x`s value by step value
private boolean equals(function f1,double x0,double x1,double step) { double epsilon=0.0001; if(x0>=x1)throw new RuntimeException("x0`s value must be smaller then x1!!" ); if(step>(x1-x0)/2)throw new RuntimeException("step value must be <= (x1-x0)/2"); while(x0<=x1) { if(Math.abs(this.f(x0)-f1.f(x0))>epsilon) return false; x0+=step; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n \tpublic void testEqual() {\n \t\tAssert.assertTrue(f1.equals(f1));\n \t}", "private boolean isApproximatelyEqual(Node n, Node first) {\r\n\t\tDouble nwD = n.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble nw = nwD==null ? 1.0 : nwD.doubleValue();\r\n\t\tDouble fwD = first.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble fw = fwD==null ? 1.0 : fwD.doubleValue();\r\n\t\treturn fw*_alphaFactor <= nw &&\r\n\t\t\t first.getNborsUnsynchronized().size()*_alphaFactor >= \r\n\t\t\t n.getNborsUnsynchronized().size();\r\n\t}", "public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }", "@Test\n \tpublic void testf1Equalf3() {\n \t\tAssert.assertTrue(f1.equals(f3));\n \t}", "public boolean eq(final A a1, final A a2) {\n return f.f(a1).f(a2);\n }", "private double f1(double x) {\n return Math.exp(-x) * Math.pow(Math.sin(x), 5);\n }", "public static double improveRoot(DoubleUnaryOperator f, double x1,\n double x2, double epsilon) {\n double a = x1;\n double b = x2;\n double c;\n \n if (f.applyAsDouble(a) == 0) {\n return a;\n } else if (f.applyAsDouble(b) == 0) {\n return b;\n }\n \n Preconditions.checkArgument(\n f.applyAsDouble(a) * f.applyAsDouble(b) < 0 && epsilon > 0);\n while (Math.abs(b - a) > epsilon) {\n c = (a + b) / 2;\n if (f.applyAsDouble(c) == 0) {\n return c;\n } else if (f.applyAsDouble(c) * f.applyAsDouble(a) > 0) {\n a = c;\n } else if (f.applyAsDouble(c) * f.applyAsDouble(b) > 0) {\n b = c;\n }\n }\n return a < b ? a : b;\n }", "final public static boolean approximately_equal(float a, float b, float epsilon) {\n \t\treturn (Math.abs(a - b) <= epsilon);\n \t}", "@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}", "private boolean equals(double x, double y) {\n return Math.abs(x - y) <= TOLERANCE;\n }", "public boolean mo115900a(float f, float f2) {\n return f2 / f > 1.6f;\n }", "public boolean epsilonEquals(Matrix4f other, float e) {\r\n\t\tRadical1 passback = new Radical1();\r\n\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tfor (int j = 0; j < 4; j++) {\r\n\t\t\t\tif (!FastMath.epsilonEquals(other.get(i, j), this.get(i, j, passback).floatValue(), e))\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn (true);\r\n\t}", "public static float different_same_sum(float x)\n\t{\n\n\t\tfloat forward_sum = 0;\n\t\tfloat backward_sum = 0;\n\n\t\tfor (float i = 1; i <= 100; i++)\n\t\t{\n\t\t\tforward_sum += ((float)Math.pow(x - 1f, i) * (float)Math.pow(-1f, i + 1f) / i);\n\t\t}\n\t\tfor (float i = 100; i >= 1; i--)\n\t\t{\n\t\t\tbackward_sum += ((float)Math.pow(x - 1f, i) * (float)Math.pow(-1f, i + 1f) / i);\n\t\t}\n\n\t\treturn forward_sum - backward_sum;\n\t\t/*\n\t\t * Da nur eine begrenzte Anzahl Nachkommastellen gespeichert werden kann gibt es\n\t\t * bei float-addition oft kleine Fehler, hier häufen sich diese Fehler an.\n\t\t * Aufgrund dieser Rundungsfehler spielt die Reihenfolge der Addition eine\n\t\t * Rolle, deswegen erhalten wir hier zwei verschiedene Ergebnise.\n\t\t */\n\t}", "public boolean epsilonEquals(Matrix3f m1, double epsilon) {\n\treturn Math.abs(m00 - m1.m00) <= epsilon\n\t&& Math.abs(m01 - m1.m01) <= epsilon\n\t&& Math.abs(m02 - m1.m02 ) <= epsilon\n\n\t&& Math.abs(m10 - m1.m10) <= epsilon\n\t&& Math.abs(m11 - m1.m11) <= epsilon\n\t&& Math.abs(m12 - m1.m12) <= epsilon\n\n\t&& Math.abs(m20 - m1.m20) <= epsilon\n\t&& Math.abs(m21 - m1.m21) <= epsilon\n\t&& Math.abs(m22 - m1.m22) <= epsilon;\n }", "@Test \n public void compareFunctionalEquals() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p1);\n \n assertEquals(0, a);\n }", "public int run(Point xS, Point xE)\n throws OptimizerException, Exception\n {\n boolean terminate = false;\n boolean f1eqf2 = false;\n // Vector of points, used for parallel computation\n Point[] x = new Point[2];\n x[0] = new Point(xS.getDimensionContinuous(), xS.getDimensionDiscrete(), xS.getDimensionF());\n x[1] = (Point)x0.clone();\n \n x0 = (Point)xS.clone();\n x3 = (Point)xE.clone();\n \n dx = LinAlg.subtract(x3.getX(), x0.getX());\n double I = 1.; // interval length (in terms of alpha, which is normalized)\n nIntRed = 0; // zero-based step of interval division\n I *= getReductionFactor();\n x[1].setX( LinAlg.add(x0.getX(), LinAlg.multiply(I, dx)) );\n nIntRed++;\n I *= getReductionFactor();\n x[0].setX( LinAlg.add(x0.getX(), LinAlg.multiply(I, dx)) );\n // initial function evaluation\n\n x = getF(x);\n \tx1 = (Point)x[0].clone();\n x2 = (Point)x[1].clone();\n\n do\n {\n nIntRed++;\n I *=getReductionFactor();\n\n if (x2.getF(0) < x1.getF(0))\n { // data management\n fLowBor = x1.getF(0); // we need that for one of the stopping criteria\n x0 = (Point)x1.clone();\n x1 = (Point)x2.clone();\n // new point\n x2.setX( LinAlg.subtract(x3.getX(), LinAlg.multiply(I, dx)) );\n x2 = getF(x2);\n }\n else\n { // data management\n fLowBor = x2.getF(0); // we need that for one of the stopping criteria\n x3 = (Point)x2.clone();\n x2 = (Point)x1.clone();\n // new point\n x1.setX( LinAlg.add(x0.getX(), LinAlg.multiply(I, dx)) );\n x1 = getF(x1);\n }\n\n // check for null space of objective function, unless\n // stoCri is equal to one\n if (stoCri != 1 && x1.getF(0) == x2.getF(0))\n {\n if (f1eqf2) // the last two were also equal, so the\n terminate = true; // current three are equal\n f1eqf2 = true;\n }\n else // reset flag\n f1eqf2 = false;\n } while (iterate() && !terminate);\n\n // tolerance achieved or maximum number of iteration exceeded\n // store minimum value\n if (x1.getF(0) < x2.getF(0))\n {\n xLow = (Point)x0.clone();\n xMin = (Point)x1.clone();\n xUpp = (Point)x2.clone(); \n }\n else\n {\n xLow = (Point)x1.clone();\n xMin = (Point)x2.clone();\n xUpp = (Point)x3.clone(); \n }\n // if we got a null space\n if (terminate) return -2;\n // check whether the maximum number of iteration is exceeded\n if (stoCri == 1)\n if (!isDFltdFMin()) return -1;\n // if search has been successful\n return +1;\n }", "private boolean isApproximatelyEqualWeight(Node n, Node first) {\r\n\t\tDouble nwD = n.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble nw = nwD==null ? 1.0 : nwD.doubleValue();\r\n\t\tDouble fwD = first.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble fw = fwD==null ? 1.0 : fwD.doubleValue();\r\n\t\treturn fw*_alphaFactor <= nw;\r\n\t}", "@Test\r\n\tpublic void calculLostPointsByOneRuleSameMaxAndMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(1f, 0.5f, 1f), new Integer(1)),\r\n\t\t\t\tnew Float(0.5));\r\n\t}", "public static boolean almostEqualsNumber(float value1, float value2) {\n return almostEqualsNumber(value1, value2, FLOAT_EPSILON);\n }", "void mo9694a(float f, float f2);", "final public static boolean approximately_equal(double a, double b,\n \t\t\tdouble epsilon) {\n \t\treturn (Math.abs(a - b) <= epsilon);\n \t}", "@Test\n public void testFirstPositiveExtreme(){\n double extremeX = 2.0884971449233825358269495952366013421428061969691576000370777169;\n double extremeY = 0.76756354102375411049030346684527510737400057387717261292998154511104;\n\n precisionAssertEquals(\n \"Test [x = e^(2^(2/3) (log(5)/(7 log(10)))^(1/3))]: first positive extreme\",\n extremeY,\n systemFunctions.calculate(extremeX)\n );\n assertTrue(\n \"Test [x = 2.0]: extreme value Y less than left neighborhood value\",\n systemFunctions.calculate(2.0) > extremeY\n );\n assertTrue(\n \"Test [x = 2.1]: extreme value Y less than right neighborhood value\",\n systemFunctions.calculate(2.1) > extremeY\n );\n }", "@Test\n public void testFirstPositiveExtreme(){\n double extremeX = 2.0884971449233825358269495952366013421428061969691576000370777169;\n double extremeY = 0.76756354102375411049030346684527510737400057387717261292998154511104;\n\n precisionAssertEquals(\n \"Test [x = e^(2^(2/3) (log(5)/(7 log(10)))^(1/3))]: first positive extreme\",\n extremeY,\n systemFunctions.calculate(extremeX)\n );\n assertTrue(\n \"Test [x = 2.0]: extreme value Y less than left neighborhood value\",\n systemFunctions.calculate(2.0) > extremeY\n );\n assertTrue(\n \"Test [x = 2.1]: extreme value Y less than right neighborhood value\",\n systemFunctions.calculate(2.1) > extremeY\n );\n }", "int compareToFloat(floats f);", "void mo34547J(float f, float f2);", "private double f(double x) {\n return (1 / (1 + Math.exp(-x)));\n }", "public void f()\r\n {\r\n float var1 = 0.5F;\r\n float var2 = 0.125F;\r\n float var3 = 0.5F;\r\n this.a(0.5F - var1, 0.5F - var2, 0.5F - var3, 0.5F + var1, 0.5F + var2, 0.5F + var3);\r\n }", "public static void ftest(final double[] data1, final double[] data2, final $double f, final $double prob)\r\n throws NRException {\n Beta beta = new Beta();\r\n double df1, df2;\r\n final $double var1 = $(0.0), var2 = $(0.0), ave1 = $(0.0), ave2 = $(0.0);\r\n int n1 = data1.length, n2 = data2.length;\r\n avevar(data1, ave1, var1);\r\n avevar(data2, ave2, var2);\r\n if (var1.$() > var2.$()) { // Make F the ratio of the larger\r\n // variance to the smaller\r\n f.$(var1.$() / var2.$()); // one.\r\n df1 = n1 - 1;\r\n df2 = n2 - 1;\r\n } else {\r\n f.$(var2.$() / var1.$());\r\n df1 = n2 - 1;\r\n df2 = n1 - 1;\r\n }\r\n prob.$(2.0 * beta.betai(0.5 * df2, 0.5 * df1, df2 / (df2 + df1 * f.$())));\r\n if (prob.$() > 1.0)\r\n prob.$(2. - prob.$());\r\n }", "@Test\n\tpublic void nearestSmallerEqFibTest() {\n\t\tAssert.assertTrue(ifn.nearestSmallerEqFib(30) == 21);\n\t}", "public boolean almostEqual(double a, double b);", "boolean hasFunctionApproximation();", "boolean mo61579as(float f);", "@Test\n public void testEquality(){\n int ans = testing1.LessThanTen(testing1.getValue1(), testing1.getValue2());\n assertEquals(10, ans);\n }", "public boolean mo55999a(float f, float f2) {\n return false;\n }", "public boolean a(double paramDouble)\r\n/* 28: */ {\r\n/* 29: 44 */ double d1 = aQ().a() * 4.0D;\r\n/* 30: 45 */ d1 *= 64.0D;\r\n/* 31: 46 */ return paramDouble < d1 * d1;\r\n/* 32: */ }", "public int compare(Solution f1, Solution f2) {\n \t\t\t\treturn f1.f - f2.f;\n \t\t\t}", "private Double fitness(Term $f) {\n\t\t// Using a lambda to transform a formula to a function.\n\t\tFx g = x -> {this.x=x; return (Double)$abs.apply($sub.apply($f,$target)).evaluate();};\n\t\treturn integral(LOWER_BOUND, UPPER_BOUND, Fx.$f.bind(g));\n\t}", "static int ifEquals(int x, int y, int a, int b) { \n //return x==y?a:b; \n return onEqu1(x, y, a, b, ((x-y)-1)>>31);\n }", "public double epsilon();", "private static boolean arePointsDifferent(double dLat0, double dLon0, double dLat1, double dLon1){\n\t\tif(fuzzyEquals(dLat0,dLat1,0.0000000000001) && fuzzyEquals(dLon0,dLon1,0.0000000000001)){\n\t\t\treturn false;\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "@Test\n public void fastLogitInversesSigmoidCorrectly()\n {\n\n double maxDiff1 = Double.MIN_VALUE;\n double maxDiff2 = Double.MIN_VALUE;\n\n for (int k = 0; k < 20; k++)\n {\n double x = (double) k / 2 - 5;\n double fastSigmoidAlternative1 = fastSigmoidAlternative(x);\n double fastLogitAlternative1 = fastLogitAlternative(fastSigmoidAlternative1);\n double diff1 = abs(x - fastLogitAlternative1);\n if (!Double.isNaN(diff1) && !Double.isInfinite(diff1))\n maxDiff1 = max(diff1, maxDiff1);\n for (int i = 0; i < 20; i++)\n {\n for (int j = 0; j < 20; j++)\n {\n double rangeLow = (double) i / 10 - 1;\n double rangeHigh = (double) j / 10;\n double fastSigmoidAlternative2 = fastSigmoidAlternative(x, rangeLow, rangeHigh);\n double fastLogitAlternative2 = fastLogitAlternative(fastSigmoidAlternative2, rangeLow, rangeHigh);\n double diff2 = abs(x - fastLogitAlternative2);\n if (!Double.isNaN(diff2) && !Double.isInfinite(diff2) && ! DoubleMath.fuzzyEquals(rangeLow, rangeHigh, 1E-10))\n maxDiff2 = max(diff2, maxDiff2);\n }\n }\n }\n\n // Verify that x = logit(sigmoid(x))\n assertThat(maxDiff1, closeTo(0, .0000000001));\n assertThat(maxDiff2, closeTo(0, .0000000001));\n }", "public static double fapprox(double x) {\r\n double y = x * x;\r\n // return 1 - 1.52763 * y + 0.104815 * y * y - 0.0267057 * y * y * y;\r\n return 1.000000000000000000000000000 - 1.527632997036301454035890310\r\n * p(x, 2) + 0.1048151947873037332167426137 * p(x, 4)\r\n + 0.02670567052519335403265209493 * p(x, 6)\r\n - 0.003527409660908709170234190769 * p(x, 8)\r\n + 0.00008160096654753174517219048643 * p(x, 10)\r\n + 0.00002528508423396353617626255186 * p(x, 12)\r\n - 0.000002556317166278493846353254082 * p(x, 14)\r\n - 0.00000009651271550891203216372576758 * p(x, 16)\r\n + 0.00000002819346397450409137075662724 * p(x, 18)\r\n - 0.0000000002773051160799011724373112613 * p(x, 20)\r\n - 0.0000000003028427022130566329838808729 * p(x, 22)\r\n + 2.670589280748075553964724751e-11 * p(x, 24)\r\n + 9.962291641028482309516423738e-13 * p(x, 26)\r\n - 3.624202982904156082231272345e-13 * p(x, 28)\r\n + 2.179657744827070432205070008e-14 * p(x, 30)\r\n + 1.529232899480963381203627083e-15 * p(x, 32)\r\n - 3.184728789952787897482240499e-16 * p(x, 34)\r\n + 1.134672106212041869027732120e-17 * p(x, 36);\r\n }", "boolean equals(IVec3 v, float epsilon);", "@Test\n public void test_value_futfixing() {\n for (int i = 0; i < TEST_MONTHS.length; i++) {\n double valueComputed = INSTANCE_WITH_FUTFIXING.value(TEST_OBS[i]);\n YearMonth fixingMonth = TEST_OBS[i].getFixingMonth();\n double valueExpected;\n if (fixingMonth.isBefore(YearMonth.from(VAL_DATE_2)) && USCPI_TS.containsDate(fixingMonth.atEndOfMonth())) {\n valueExpected = USCPI_TS.get(fixingMonth.atEndOfMonth()).getAsDouble();\n } else {\n double x = YearMonth.from(VAL_DATE_2).until(fixingMonth, MONTHS);\n valueExpected = CURVE_INFL2.yValue(x);\n }\n assertThat(valueComputed).as(\"test \" + i).isCloseTo(valueExpected, offset(TOLERANCE_VALUE));\n }\n }", "public boolean equals(Fraction f){\n return f.simplify().getNumerator() == this.simplify().getNumerator() && f.simplify().getDenominator() == this.simplify().getDenominator();\n }", "public static double[][] f1(FitnessFunction ff, double[] x, double[] y) {\n double[][] z = new double[y.length][x.length];\n for (int i = 0; i < x.length; i++)\n for (int j = 0; j < y.length; j++)\n z[j][i] = ff.evalFitness(new Object[]{\n x[i], y[j]\n });\n return z;\n }", "public F<A, Boolean> eq(final A a) {\n return new F<A, Boolean>() {\n public Boolean f(final A a1) {\n return eq(a, a1);\n }\n };\n }", "public void visit(EqualityExpression n) {\n n.f0.accept(this);\n n.f1.accept(this);\n }", "boolean updateValue() {\n boolean ret;\n\n if (Math.abs(curUtilityValue - nextUtilityValue) < Math.abs(curUtilityValue) * MAX_ERR_PERCENT / 100)\n ret = true;\n else {\n ret = false;\n // System.out.println(\" no match cell: x: \"+x+\" y: \"+y);\n }\n curUtilityValue = nextUtilityValue;\n return ret;\n\n }", "@Test\n public void epsilonEquals() {\n float[] a = new float[] {1.001f, 2.002f, 3.003f, 4.004f, 5.005f, 6.006f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.epsilonEquals(a, 2, b, 3, 0.01f));\n assertTrue(! Vec4f.epsilonEquals(a, 0, b, 0, 0.01f));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.01f, 2.02f, 3.03f, 4.04f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.epsilonEquals(a4,b4, 0.05f));\n assertTrue(!Vec4f.epsilonEquals(a4,b4, 0.02f));\n assertTrue(!Vec4f.epsilonEquals(a4,c4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,d4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,e4, 0.1f));\n assertTrue(!Vec4f.epsilonEquals(a4,f4, 0.1f));\n \n }", "@Test\n public void compareFunctionalSmaller() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p2, p1);\n \n assertEquals(1, a);\n }", "private boolean equals1(BinaryNode<AnyType> t, BinaryNode<AnyType> t1)\r\n\t{\r\n\t\tif(t==null && t1==null)\r\n\t\t\treturn true;\r\n\t\tif((t!=null && t1!=null)&&(t.element==t1.element))\r\n\t\t\treturn (equals1(t.left, t1.left)&& equals1(t.right, t1.right));\r\n\r\n\t\treturn false;\r\n\t}", "@Override\n\t\t\tpublic boolean satisfies(State s) {\n\t\t\t\tif ((Double)s.get(\"x\") >= 0.5) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "public boolean mo3289a(float f, float f2) {\n if (!Float.isNaN(this.f2579a) && f < this.f2579a) {\n return false;\n }\n if (!Float.isNaN(this.f2580b) && f2 < this.f2580b) {\n return false;\n }\n if (!Float.isNaN(this.f2581c) && f > this.f2581c) {\n return false;\n }\n if (Float.isNaN(this.f2582d) || f2 <= this.f2582d) {\n return true;\n }\n return false;\n }", "public final double raiz(double x0, double x1, double t) { // se reciben tres parametros en el metodo\n Double x = Double.NaN; // valor inicial not a number\n if (f.evaluar(x0) * f.evaluar(x1) < 0) { // f(x) evaluada en x1 y x0 (formula) para saber si existen o no raices\n do {\n x = (x0 + x1) / 2;\n if (f.evaluar(x0) * f.evaluar(x) < 0) { //f(x) evaluada en x0 y (x) mientras sean menor que cero\n x1 = x;\n } else { // en el if y el else se hace el cambio de variable\n x0 = x;\n }\n } while (Math.abs(f.evaluar(x)) > t); // si es mayor que la tolerancia se siguen realizando los calculss\n } // el absoluto de la funcion debe ser mayor o igual que la tolerancia\n return x;\n }", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "public boolean extension1(int[] x, TreeNode start_node, ArrayList<Double> accumulator,\n Pre_fun pref, Mid_fun midf, Post_fun postf) {\n traverse_construct tc1 = new traverse_construct();\n tc1.traverse(x, start_node, accumulator, new Pre_fun() {\n @Override\n public ArrayList<Double> pre_fun(TreeNode start_node, ArrayList<Double> accumulator) {\n return accumulator;\n }\n }, new Mid_fun() {\n @Override\n public ArrayList<Double> mid_fun(TreeNode start_node, ArrayList<Double> accumulator) {\n return accumulator;\n }\n }, new Post_fun() {\n @Override\n public ArrayList<Double> post_fun(TreeNode start_node, ArrayList<Double> accumulator) {\n return accumulator;\n }\n });\n\n if (accumulator.size() < x.length) {\n return false;\n } else {\n return true;\n }\n\n }", "private static double search(double min, double max, Function f) {\n\t\tdouble a = min;\n\t\tdouble c = max;\n\t\tdouble b = 0;\n\t\twhile (Math.abs(c - a) > MIN_DIFFERENCE) {\n\t\t\tb = (a + c) / 2;\n\t\t\tdouble fa = f.f(a);\n\t\t\tdouble fc = f.f(c);\n\t\t\t\n\t\t\tif (fa < fc) {\n\t\t\t\tc = b;\n\t\t\t} else {\n\t\t\t\ta = b;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn b;\n\t}", "@Test\n\tpublic void integrationWorksWithStepRulers() {\n\t\tfinal FloatTimeSeries t = new FloatTreeTimeSeries();\n\t\tt.addValues(TimeSeriesUtils.createStepFunction(10, 0, 10, 0, 10)); // step function from 0 to 100\n\t\tt.setInterpolationMode(InterpolationMode.STEPS);\n\t\tfinal FloatTimeSeries tr = new FloatTreeTimeSeries();\n\t\ttr.addValues(TimeSeriesUtils.createStepFunction(5, 0, 20, 0, 0)); // step function with doubled step size\n\t\ttr.setInterpolationMode(InterpolationMode.STEPS);\n\t\tfinal Map<Integer,SampledValue> upperBoundaries = new HashMap<>();\n\t\tupperBoundaries.put(0, new SampledValue(new FloatValue(100), 100, Quality.GOOD));\n\t\tupperBoundaries.put(1, new SampledValue(new FloatValue(0), 100, Quality.GOOD));\n\t\tfinal MultiTimeSeriesIterator multiIt = MultiTimeSeriesIteratorBuilder.newBuilder(Arrays.asList(t.iterator(),tr.iterator()))\n\t\t\t\t.stepSizeAsInSchedules(new int[]{1})\n\t\t\t\t.setGlobalInterpolationMode(InterpolationMode.STEPS)\n\t\t\t\t.setUpperBoundaryValues(upperBoundaries)\n\t\t\t\t.doIntegrate(true)\n\t\t\t\t.build();\n\t\tSampledValueDataPoint sv = null;\n\t\twhile (multiIt.hasNext())\n\t\t\tsv = multiIt.next();\n\t\tAssert.assertNotNull(sv);\n\t\tAssert.assertNotNull(sv.getElements());\n\t\tfinal SampledValue value0 = sv.getElements().get(0);\n\t\tAssert.assertNotNull(value0);\n\t\tAssert.assertEquals(\"Integration failed\", 4500, value0.getValue().getFloatValue(), 5);\n\t\tfinal SampledValue value1 = sv.getElements().get(1);\n\t\tAssert.assertNotNull(value1);\n\t\tAssert.assertEquals(\"Integration failed\", 0, value1.getValue().getFloatValue(), 1);\n\n\t}", "@Test\n public void testFifthPositiveRegionToFirstExtreme(){\n precisionAssertEquals(\n \"Test [x = 1.8]: fifth positive region\",\n 0.821522,\n systemFunctions.calculate(1.8)\n );\n precisionAssertEquals(\n \"Test [x = 1.9]: fifth positive region\",\n 0.794358,\n systemFunctions.calculate(1.9)\n );\n precisionAssertEquals(\n \"Test [x = 2.0]: fifth positive region\",\n 0.774356,\n systemFunctions.calculate(2.0)\n );\n }", "@Test\n public void testFifthPositiveRegionToFirstExtreme(){\n precisionAssertEquals(\n \"Test [x = 1.8]: fifth positive region\",\n 0.821522,\n systemFunctions.calculate(1.8)\n );\n precisionAssertEquals(\n \"Test [x = 1.9]: fifth positive region\",\n 0.794358,\n systemFunctions.calculate(1.9)\n );\n precisionAssertEquals(\n \"Test [x = 2.0]: fifth positive region\",\n 0.774356,\n systemFunctions.calculate(2.0)\n );\n }", "@Test\n public void test02() throws Throwable {\n RegulaFalsiSolver regulaFalsiSolver0 = new RegulaFalsiSolver(4956.642689288169, 1711.029259737);\n Log1p log1p0 = new Log1p();\n AllowedSolution allowedSolution0 = AllowedSolution.LEFT_SIDE;\n double double0 = regulaFalsiSolver0.solve(2044, (UnivariateRealFunction) log1p0, (-517.825700479), (double) 0, 1711.029259737, allowedSolution0);\n double double1 = regulaFalsiSolver0.doSolve();\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}", "public static double solve(UnivariateFunction function, double x0, double x1, double absoluteAccuracy)\r\n/* 23: */ {\r\n/* 24: 73 */ if (function == null) {\r\n/* 25: 74 */ throw new NullArgumentException(LocalizedFormats.FUNCTION, new Object[0]);\r\n/* 26: */ }\r\n/* 27: 76 */ UnivariateSolver solver = new BrentSolver(absoluteAccuracy);\r\n/* 28: 77 */ return solver.solve(2147483647, function, x0, x1);\r\n/* 29: */ }", "public double valueAt(double x) {\r\n \treturn ((f.valueAt(x+epsilon)/2- f.valueAt(x-epsilon)/2)/epsilon);\r\n }", "private boolean convergence(List<Page> pages) {\n\t\tdouble aveHubDelta = 100;\n\t\tdouble aveAuthDelta = 100;\n\t\tif (pages == null) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// get current values from pages\n\t\tdouble[] currHubVals = new double[pages.size()];\n\t\tdouble[] currAuthVals = new double[pages.size()];\n\t\tfor (int i = 0; i < pages.size(); i++) {\n\t\t\tPage currPage = pages.get(i);\n\t\t\tcurrHubVals[i] = currPage.hub;\n\t\t\tcurrHubVals[i] = currPage.authority;\n\t\t}\n\t\tif (prevHubVals == null || prevAuthVals == null) {\n\t\t\tprevHubVals = currHubVals;\n\t\t\tprevAuthVals = currAuthVals;\n\t\t\treturn false;\n\t\t}\n\t\t// compare to past values\n\t\taveHubDelta = getAveDelta(currHubVals, prevHubVals);\n\t\taveAuthDelta = getAveDelta(currAuthVals, prevAuthVals);\n\t\tif (aveHubDelta + aveAuthDelta < DELTA_TOLERANCE || (Math.abs(prevAveHubDelta - aveHubDelta) < 0.01\n\t\t\t\t&& Math.abs(prevAveAuthDelta - aveAuthDelta) < 0.01)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tprevHubVals = currHubVals;\n\t\t\tprevAuthVals = currAuthVals;\n\t\t\tprevAveHubDelta = aveHubDelta;\n\t\t\tprevAveAuthDelta = aveAuthDelta;\n\t\t\treturn false;\n\t\t}\n\t}", "public static BinaryExpression equal(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public void testEquals() {\n XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n XIntervalDataItem item2 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n }", "private double[] quadstepX(DoubleToDouble f, double y0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] x = {(a + c) / 2, (c + b) / 2};\n double[] y = f.evalDouble(x, y0, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = y[0];\n double fe = y[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepX(f, y0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepX(f, y0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }", "public void testF() {\r\n System.out.println(\"f\");\r\n\r\n double t = 0.0;\r\n ParametricLine2d instance = new ParametricLine2d();\r\n\r\n Vector2d expResult = new Point2d().toVector2d();\r\n Vector2d result = instance.f(t).toVector2d();\r\n assertTrue(Vector2d.equal(expResult, result, maxUlps));\r\n }", "public AlgoAreEqual(Construction cons, GeoElement inputElement1,\n\t\t\tGeoElement inputElement2) {\n\t\tsuper(cons);\n\t\tthis.inputElement1 = inputElement1;\n\t\tthis.inputElement2 = inputElement2;\n\n\t\toutputBoolean = new GeoBoolean(cons);\n\n\t\tsetInputOutput();\n\t\tcompute();\n\n\t}", "public abstract Self epsilon();", "public static boolean compare(final PresentValueForexBlackVolatilityNodeSensitivityDataBundle value1,\n final PresentValueForexBlackVolatilityNodeSensitivityDataBundle value2,\n final double tolerance) {\n if (!value1._currencyPair.equals(value2._currencyPair)) {\n return false;\n }\n if (value1._expiries.getNumberOfElements() != value2._expiries.getNumberOfElements()\n || value1._delta.getNumberOfElements() != value2._delta.getNumberOfElements()) {\n return false;\n }\n for (int loopexp = 0; loopexp < value1._expiries.getNumberOfElements(); loopexp++) {\n for (int loopdel = 0; loopdel < value1._delta.getNumberOfElements(); loopdel++) {\n if (value1._vega.getEntry(loopexp, loopdel) - value2._vega.getEntry(loopexp, loopdel) > tolerance) {\n return false;\n }\n }\n }\n return true;\n }", "void mo9695a(float f, float f2, float f3, float f4, float f5);", "public static double solve(UnivariateRealFunction f, double x0, double x1)\n throws MathException\n {\n if(f == null){\n throw new IllegalArgumentException(\"f can not be null.\"); \n }\n \n return UnivariateRealSolverFactory.newInstance().newDefaultSolver(f)\n .solve(x0, x1);\n }", "private double[] quadstepY(DoubleToDouble f, double x0, double a, double b, double fa, double fc, double fb, int fcnt, double hmin, double hmax) {\n double h = b - a;\n double c = (a + b) / 2;\n if (Math.abs(h) < hmin || c == a || c == b) {\n //% Minimum step size reached; singularity possible.\n double Q = h * fc;\n double warn = ERR_MAX_STEP_REACHED;\n return new double[]{Q, fcnt, warn};\n\n }\n double[] y = {(a + c) / 2, (c + b) / 2};\n double[] v = f.evalDouble(x0, y, null, null);\n\n fcnt = fcnt + 2;\n if (fcnt > maxfcnt) {//% Maximum function count exceeded; singularity likely.\n double Q = h * fc;\n double warn = ERR_MAX_FCT_COUNT;\n return new double[]{Q, fcnt, warn};\n }\n double fd = v[0];\n double fe = v[1];\n\n //% Three point Simpson's rule.\n double Q1 = (h / 6) * (fa + 4 * fc + fb);\n\n //% Five point double Simpson's rule.\n double Q2 = (h / 12) * (fa + 4 * fd + 2 * fc + 4 * fe + fb);\n\n //% One step of Romberg extrapolation.\n double Q = Q2 + (Q2 - Q1) / 15;\n\n if (Double.isInfinite(Q) || Double.isNaN(Q)) { //% Infinite or Not-aNumber function value encountered.\n double warn = ERR_NAN_OR_INFINITE;\n return new double[]{Q, fcnt, warn};\n }\n //disp(sprintf('%8.0f %16.10f %18.8e %16.10f', fcnt, a, h, Q))\n //% Check accuracy of integral over this subinterval.\n if (Math.abs(h) <= hmax && Math.abs(Q2 - Q) <= tolerance) {\n double warn = 0;\n return new double[]{Q, fcnt, warn};\n } else {//% Subdivide into two subintervals.\n double[] o1 = quadstepY(f, x0, a, c, fa, fd, fc, fcnt, hmin, hmax);\n double[] o2 = quadstepY(f, x0, c, b, fc, fe, fb, fcnt, hmin, hmax);\n Q = o1[0] + o2[0];\n int warn = Math.max((int) o1[2], (int) o2[2]);\n return new double[]{Q, fcnt, warn};\n }\n }", "private boolean m7221a(float f, float f2) {\n if (!m7228d() ? f >= ((float) (this.f5599u - this.f5595q)) : f <= ((float) (this.f5595q / 2))) {\n if (f2 >= ((float) (this.f5586f - (this.f5585e / 2))) && f2 <= ((float) (this.f5586f + (this.f5585e / 2)))) {\n return true;\n }\n }\n return false;\n }", "public boolean isEquivalent( Function f )\n {\n if ( name == null || data == null || f.data == null )\n {\n return false;\n }\n return name.equals( f.name )\n && upgrade == f.upgrade\n && data.equals( f.data );\n }", "public final boolean equal() {\n\t\tif (size > 1) {\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (topMostValue == secondTopMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static <A> Equal<A> equal(final F<A, F<A, Boolean>> f) {\n return new Equal<A>(f);\n }", "public boolean equals(Object o) {\n\n int i, j;\n\n if (o == this) return true;\n if (!(o instanceof Feature)) return false;\n Feature f = (Feature) o;\n if (!((((Feature.IS_NOMINAL(f.type)) && (Feature.IS_NOMINAL(type)))\n || ((Feature.IS_INTEGER(f.type)) && (Feature.IS_INTEGER(type)))\n || ((Feature.IS_CONTINUOUS(f.type)) && (Feature.IS_CONTINUOUS(type)))))) return false;\n\n if ((f.dmin_from_data != dmin_from_data)\n || (f.dmax_from_data != dmax_from_data)\n || (f.dmin != dmin)\n || (f.dmax != dmax)\n || (f.imin_from_data != imin_from_data)\n || (f.imax_from_data != imax_from_data)\n || (f.imin != imin)\n || (f.imax != imax)) return false;\n\n if (Feature.IS_NOMINAL(f.type)) {\n Vector<String> vf_test, v_test;\n if (f.modalities.size() != modalities.size()) return false;\n for (i = 0; i < f.modalities.size(); i++)\n if (!((String) f.modalities.elementAt(i)).equals(modalities.elementAt(i))) return false;\n\n if (f.tests.size() != tests.size()) return false;\n for (i = 0; i < f.tests.size(); i++) {\n vf_test = (Vector<String>) f.tests.elementAt(i);\n v_test = (Vector<String>) tests.elementAt(i);\n if (vf_test.size() != v_test.size()) return false;\n for (j = 0; j < vf_test.size(); j++)\n if (!((String) vf_test.elementAt(j)).equals(v_test.elementAt(j))) return false;\n }\n } else if (Feature.IS_INTEGER(f.type)) {\n if (f.tests.size() != tests.size()) return false;\n for (i = 0; i < f.tests.size(); i++)\n if (((Integer) f.tests.elementAt(i)).intValue()\n != ((Integer) tests.elementAt(i)).intValue()) return false;\n } else if (Feature.IS_CONTINUOUS(f.type)) {\n if (f.tests.size() != tests.size()) return false;\n for (i = 0; i < f.tests.size(); i++)\n if (((Double) f.tests.elementAt(i)).doubleValue()\n != ((Double) tests.elementAt(i)).doubleValue()) return false;\n }\n\n return true;\n }", "void mo9705c(float f, float f2);", "static boolean isEqual(Point p1, Point p2, double d) {\n\t\treturn (distance(p1, p2) < 0.1 * d);\n\t}", "static double k1(final double x) {\n final double z = 0.5 * x;\n if (z <= 0) {\n return Double.NaN;\n }\n if (x <= 2) {\n return Math.log(z) * Bessel.i1(x) + chebyshev(x * x - 2, K1A) / x;\n }\n return Math.exp(-x) * chebyshev(8 / x - 2, K1B) / Math.sqrt(x);\n }", "private void EvalFitness(){\r\n _FitVal=0;\r\n for(int i=0; i<7;i++)\r\n for(int j=i+1;j<8;j++){\r\n if( _Data[i]==_Data[j]) _FitVal++;\r\n if(j-i==Math.abs(_Data[i]-_Data[j])) _FitVal++;\r\n }\r\n }", "@Test\n public void testIsSameNumber() {\n int x = 1;\n int y = 1;\n int z = 2;\n\n assertEquals(true, Flik.isSameNumber(x, y));\n assertEquals(false, Flik.isSameNumber(x, z));\n }", "public final boolean lessThanEquals() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue <= topMostValue) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean mo56166b(float f, float f2) {\n return false;\n }", "public boolean lessEqualP(Stella_Object y) {\n { Ratio x = this;\n\n { Ratio yRatio = ((Ratio)(x.coerceTo(y)));\n\n return ((x.numerator * yRatio.denominator) <= (yRatio.numerator * x.denominator));\n }\n }\n }", "private void equate()\n\t{\n\t\t\tif(Fun == Function.ADD)\n\t\t\t{\t\t\t\n\t\t\t\tresult = calc.sum ( );\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end ADD condition\n\t\t\t\n\t\t\telse if(Fun == Function.SUBTRACT)\n\t\t\t{\n\t\t\t\tresult = calc.subtract ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end SUBTRACT condition\n\t\t\t\n\t\t\telse if (Fun == Function.MULTIPLY)\n\t\t\t{\n\t\t\t\tresult = calc.multiply ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end MULTIPLY condition\n\t\t\t\n\t\t\telse if (Fun == Function.DIVIDE)\n\t\t\t{\n\t\t\t\tresult = calc.divide ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}\n\t\t\t\t\n\t}", "@Override\n public int compareTo(DoubleVector2 o) {\n return (getVectorOne().getSteps() + getVectorTwo().getSteps()) - (o.getVectorOne().getSteps() + o.getVectorTwo().getSteps());\n }", "public final boolean equals(Object o) {\n\t\tboolean res = false;\n\t\tif(o instanceof Unit) {\n\t\t\tUnit u = (Unit)o;\n\t\t\tif (u.mksa == this.mksa) res = (mksa&_log) != 0 ? \n\t\t\t\t\tthis.factor == u.factor && this.value == u.value :\t// LOG\n\t\t\t\t\t\tthis.factor*this.value == u.factor*u.value ;\t// linear\n\t\t}\n\t\treturn(res);\n\t}", "@Override\n\t\tpublic boolean goalTest() {\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tif (state[i] != xGoals[i] || state[i + k] != yGoals[i]) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean isIdentical(FeRangeElement other) {\n\tDean.shouldImplement();\n\treturn false;\n/*\nudanax-top.st:20673:FeVirtualDataHolder methodsFor: 'accessing'!\n{BooleanVar} isIdentical: other {FeRangeElement}\n\t\"This can do a version comparison (which seems a bit extreme).\"\n\tDean shouldImplement.\n\t^false \"fodder\"!\n*/\n}", "private boolean isDFltdFMin()\n {\n double fLow = (x2.getF(0) < x1.getF(0)) ? x2.getF(0) : x1.getF(0);\n double dF = Math.abs(fLowBor-fLow);\n return (dF < dFMin) ? true : false;\n }", "public f a(int x, int y) {\n/* 114 */ if (x < this.f || y < this.g || x >= this.f + this.h || y >= this.g + this.i) {\n/* 115 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 118 */ f cur = this;\n/* 119 */ while (cur.e) {\n/* 120 */ f hhs = cur.d;\n/* */ \n/* 122 */ if (x < hhs.f) {\n/* */ \n/* 124 */ if (y < hhs.g) {\n/* */ \n/* 126 */ cur = cur.a;\n/* */ \n/* */ continue;\n/* */ } \n/* 130 */ cur = cur.b;\n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* 135 */ if (y < hhs.g) {\n/* */ \n/* 137 */ cur = cur.c;\n/* */ \n/* */ continue;\n/* */ } \n/* 141 */ cur = cur.d;\n/* */ } \n/* */ \n/* */ \n/* 145 */ return cur;\n/* */ }", "@Test\n public void test16() throws Throwable {\n double[] doubleArray0 = new double[4];\n doubleArray0[0] = (-1600.0035307559176);\n doubleArray0[1] = 1149.7346327967;\n doubleArray0[2] = (-1608.690170583074);\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n try { \n UnivariateRealSolverUtils.bracket((UnivariateRealFunction) polynomialFunctionLagrangeForm0, 0.8868335868819226, 0.8868335868819226, 1.0, 4761);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // number of iterations=1, maximum iterations=4,761, initial=0.887, lower bound=0.887, upper bound=1, final a value=0.887, final b value=1, f(a)=0.887, f(b)=1\n //\n assertThrownBy(\"org.apache.commons.math.analysis.solvers.UnivariateRealSolverUtils\", e);\n }\n }", "public boolean isSumEquals1() throws InvalidProbabilityRangeException {\r\n//\t\t\tif (!isToNormalize()) {\r\n//\t\t\t\treturn true;\t// just return a default value if we don't need normalization\r\n//\t\t\t}\r\n\t\t\tfloat value = this.getProbCellSum();\r\n\t\t\t// (this.leastCellValue/2) is the error margin\r\n\t\t\tif ( (value >= 1f - (this.leastCellValue/2f)) && (value <= 1f + (this.leastCellValue/2f)) ) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "private void equalize(BufferedImage img) {\n \t\tfloat minSat = Float.MAX_VALUE, maxSat = Float.MIN_VALUE;\n \t\tfloat minVal = Float.MAX_VALUE, maxVal = Float.MIN_VALUE;\n \t\t\n \t\tint[] prgb = { 0, 0, 0 };\n \t\tfloat[] hsv = { 0, 0, 0 };\n \t\t\n \t\tint[] valCount = new int[16];\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\tminSat = Math.min(hsv[1], minSat);\n \t\t\t\tmaxSat = Math.max(hsv[1], maxSat);\n \t\t\t\tminVal = Math.min(hsv[2], minVal);\n \t\t\t\tmaxVal = Math.max(hsv[2], maxVal);\n \t\t\t\tvalCount[(int) (hsv[2] / 16)]++;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint maxPt = -1;\n \t\tfor (int i = 1; i < 15; i++) {\n \t\t\tif (maxPt == -1 || valCount[i] >= valCount[maxPt]) {\n \t\t\t\tmaxPt = i;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint valueMidpoint = maxPt * 16;\n \t\t\n \t\tSystem.out.println(\"Equalize: sat = \"+minSat+\" to \" +maxSat+\"; val = \" + minVal + \" to \" + maxVal+\"; value midpoint = \" + valueMidpoint);\n \t\tfloat satScale = 1.0f - minSat;\n \t\tfloat valScale = 255 - minVal;\n \t\tfloat satDiff = maxSat - minSat;\n \t\tfloat valDiff = maxVal - minVal;\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\t\n \t\t\t\tif (satDiff < 0.5)\n \t\t\t\t\thsv[1] = ((hsv[1] - minSat) / satDiff) * satScale + minSat;\n \t\t\t\tif (valDiff < 128)\n \t\t\t\t\thsv[2] = ((hsv[2] - minVal) / valDiff) * valScale + minVal;\n \n \t\t\t\thsvToRgb(hsv[0], hsv[1], hsv[2], prgb);\n \t\t\t\t\n \t\t\t\timg.setRGB(x, y, rgb8ToPixel(prgb) | (pixel & 0xff000000));\n \t\t\t}\n \t\t}\n \t}", "public static boolean almost_equals(double a, double b) {\n return almost_equals(a, b, PRECISION_DEFAULT);\n }" ]
[ "0.61208826", "0.5903816", "0.5783584", "0.57698876", "0.5730806", "0.56187135", "0.5608374", "0.5548254", "0.5504354", "0.5400719", "0.54006034", "0.5340525", "0.51925945", "0.51830214", "0.5179673", "0.5172285", "0.51708096", "0.51677233", "0.51610726", "0.51417035", "0.5136502", "0.5122472", "0.5122472", "0.51135474", "0.5106689", "0.51018906", "0.5093575", "0.5084121", "0.50773627", "0.5060729", "0.504209", "0.5032145", "0.502059", "0.49994886", "0.49699795", "0.496453", "0.49576178", "0.49557453", "0.49406502", "0.493814", "0.49364924", "0.4935273", "0.49283892", "0.49274892", "0.49076137", "0.48953685", "0.4888498", "0.48869264", "0.48868063", "0.4882345", "0.4882089", "0.4880705", "0.4876495", "0.48755026", "0.48717758", "0.4868117", "0.48651809", "0.4864812", "0.48626485", "0.48589388", "0.48589388", "0.48376927", "0.48363873", "0.48249772", "0.4821044", "0.48195744", "0.4813293", "0.48072848", "0.4803093", "0.4797797", "0.4797417", "0.4795142", "0.47942054", "0.47839525", "0.4777453", "0.47769022", "0.47685543", "0.47670823", "0.47669795", "0.4765331", "0.47637054", "0.47575128", "0.4753663", "0.47523287", "0.4745086", "0.47266918", "0.47240296", "0.47179833", "0.47173476", "0.47167212", "0.47151348", "0.4706864", "0.47058523", "0.470145", "0.47011712", "0.46971127", "0.46936744", "0.46925256", "0.46891424", "0.46884844" ]
0.83133334
0
TODO this will probably fail when stock are added to portfolio in some other way
public static PortfoliosModel getStockModelForAssociatedPortfolio(PCollection collection) { if (collectionsPortfolios.containsKey(collection.getName().toLowerCase())) { log.debug("Return Portfolio model for existing mapped collection: " + collection.getName()); return collectionsPortfolios.get(collection.getName().toLowerCase()); } else { log.debug("Return NEW Portfolio model for new mapped collection: " + collection.getName()); PortfoliosModel s = new PortfoliosModel(collection); collectionsPortfolios.put(collection.getName().toLowerCase(), s); return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buyStock(Stock stock) {\n\t\tportfolio.add(stock);\n\t}", "public void addStock(Stock stock) throws StockAlreadyExistsException, PortfolioFullException {\r\n\t\tboolean doesStockExists = false;\r\n\r\n\t\tfor (int i = 0; i < portfolioSize; i++){\r\n\t\t\tif (stockStatus[i].getSymbol().equals(stock.getSymbol())){\r\n\t\t\t\tdoesStockExists = true;\r\n\t\t\t} \r\n\t\t}\r\n\r\n\t\tif (portfolioSize >= MAX_PORTFOLIO_SIZE){\r\n\t\t\tthrow new PortfolioFullException();\r\n\t\t}\r\n\t\telse if (doesStockExists == true){\r\n\t\t\tthrow new StockAlreadyExistsException(stock.getSymbol());\r\n\t\t}\r\n\t\telse{\r\n\t\t\tstockStatus[portfolioSize] = new StockStatus(stock.getSymbol(), stock.getAsk(),stock.getBid(), stock.getDate(), ALGO_RECOMMENDATION.DO_NOTHING, 0);\r\n\t\t\tthis.portfolioSize++;\r\n\t\t}\r\n\t}", "void buyStock(String portfolio, String stock, Integer count, Date date)\r\n throws IllegalArgumentException;", "public static void main(String[] args) throws IOException {\n\t\t\r\n\t\tPortfolio portfolio = new Portfolio();\r\n\t\t \r\n\t\t\r\n\t\t\r\n\t\tOrderBean order = new OrderBean();\r\n\t\torder.setStrOrderID(\"O0000002\");\r\n\t\torder.setPartialOrderFlag(true);\r\n\t\torder.setOrderType(\"STOCK\");\r\n\t\torder.setInvestorID(\"\");\r\n\t\torder.setOrderProcessType(\"Sell_Orders\");\r\n\t\torder.setAskAmount(450.22);\r\n\t\torder.setNoOfStocks(10);\r\n\t\torder.setStockID(\"C01\");\r\n\t\t\r\n\t\tStock stock = new Stock();\r\n\t\tstock.setdStockPrice(400);\r\n\t\tstock.setNumberOfStocks(10);\r\n\t\tstock.setStockid(\"C01\");\r\n\t\tstock.setStockname(\"Apple\");\r\n\t\t\r\n\t\tStock stock1 = new Stock();\r\n\t\tstock1.setdStockPrice(100);\r\n\t\tstock1.setNumberOfStocks(10);\r\n\t\tstock1.setStockid(\"C02\");\r\n\t\tstock1.setStockname(\"Microsoft\");\r\n\t\t\r\n\t\tStock stock2 = new Stock();\r\n\t\tstock2.setdStockPrice(600);\r\n\t\tstock2.setNumberOfStocks(10);\r\n\t\tstock2.setStockid(\"C03\");\r\n\t\tstock2.setStockname(\"Yahoo\");\r\n\t\t\r\n\t\tStock stock3 = new Stock();\r\n\t\tstock3.setdStockPrice(300);\r\n\t\tstock3.setNumberOfStocks(10);\r\n\t\tstock3.setStockid(\"C04\");\r\n\t\tstock3.setStockname(\"Google\");\r\n\t\t\r\n\t\tListing.getInstance().getAllStocks().add(0,stock);\r\n\t\tListing.getInstance().getAllStocks().add(1,stock1);\r\n\t\tListing.getInstance().getAllStocks().add(2,stock2);\r\n\t\tListing.getInstance().getAllStocks().add(3,stock3);\r\n\t\t\r\n\t\t\r\n\t\torder.setStock(stock);\r\n\t\t\r\n\t\tnew Stock().sellQueue.put(450.22, order);\r\n\t\t\r\n\t\twhile(true){\r\n\t\tSystem.out.println(\"-------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Securities Management System\");\r\n\t\tSystem.out.println(\"-------------------------------------------------------------------\");\r\n\t\tSystem.out.println(\"Enter your role : \");\r\n\t\tSystem.out.println(\"1. Investor\");\r\n\t\tSystem.out.println(\"2. Company\");\r\n\t\tSystem.out.println(\"3. Exit\");\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString option;\r\n\t\t\r\n\t\ttry {\r\n\t\t\toption = br.readLine();\r\n\t\t\tif(option.equals(\"1\")){\r\n\t\t\t\t\r\n\t\t\t\tTestFacadeClient tc = new TestFacadeClient();\r\n\t\t\t\ttc.callOperation();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(option.equals(\"2\")){\r\n\t\t\twhile(true){\r\n\t\t\t\tSystem.out.println(\"-------------------------------------------------------------------\");\r\n\t\t\t\tSystem.out.println(\"Listing menu\");\r\n\t\t\t\tSystem.out.println(\"-------------------------------------------------------------------\");\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Select : \");\r\n\t\t\t\tSystem.out.println(\"1. List stock\");\r\n\t\t\t\tSystem.out.println(\"2. List mutual funds\");\r\n\t\t\t\tSystem.out.println(\"3. Split stock\");\r\n\t\t\t\tSystem.out.println(\"4. Exit\");\r\n\t\t\t\t\r\n\t\t\t\tBufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\t\tString option1 = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\toption1 = br1.readLine();\r\n\t\t\t\t\tif(option1.equals(\"1\")){\r\n\t\t\t\t\t\t// List stock functionality\r\n\t\t\t\t\t\tStock stockNew = new Stock();\r\n\t\t\t\t\t\tstockNew.setStockid(\"C05\");\r\n\t\t\t\t\t\tstockNew.setStockname(\"Stk-01\");\r\n\t\t\t\t\t\tSystem.out.println(\"Enter Company name : \");\r\n\t\t\t\t\t\tBufferedReader br2 = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\t\t\t\tstockNew.setStrCompanyName(br2.readLine());\r\n\t\t\t\t\t\tSystem.out.println(\"Enter Initial stock price : \");\r\n\t\t\t\t\t\tBufferedReader br3 = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\t\t\t\tstockNew.setdStockPrice(Double.parseDouble(br3.readLine()));\r\n\t\t\t\t\t\tSystem.out.println(\"Enter total number of stocks : \");\r\n\t\t\t\t\t\tBufferedReader br4 = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\t\t\t\tstockNew.setNumberOfStocks(Integer.parseInt(br4.readLine()));\r\n\t\t\t\t\t\tListing listing = Listing.getInstance();\r\n\t\t\t\t\t\tlisting.getAllStocks().add(stockNew);\r\n\t\t\t\t\t\tSystem.out.println(\"Stock added to listing...\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif(option1.equals(\"2\")){\r\n\t\t\t\t\t\t// Split stock functionality\r\n\t\t\t\t\t\tInvestor investor = new Investor();\r\n\t\t\t\t\t\tinvestor.setInvestorID(\"INV01STK01\");\r\n\t\t\t\t\t\tinvestor.setStrFirstName(\"Akshay\");\r\n\t\t\t\t\t\tinvestor.setStrLastName(\"Kumar\");\r\n\t\t\t\t\t\tinvestor.setStrAddress(\"Colonade\");\r\n\t\t\t\t\t\tinvestor.setStrState(\"CA\");\r\n\t\t\t\t\t\tinvestor.setStrEmail(\"[email protected]\");\t\r\n\t\t\t\t\t\tinvestor.setAmountInAccount(10000000);\r\n\t\t\t\t\t\tinvestor.setnPhone(4089899898L);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tTestFacadeClient tc=new TestFacadeClient();\r\n\t\t\t\t\t\ttc.callOperationMf();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (option1.equals(\"3\")){\r\n\t\t\t\t\t\tStock stockNew = new Stock();\r\n\t\t\t\t\t\tSystem.out.println(\"Enter stock id : \");\r\n\t\t\t\t\t\tBufferedReader br2 = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\t\t\t\tString stockId = br2.readLine();\r\n\t\t\t\t\t\tList<Stock> allStocks = Listing.getInstance().getAllStocks();\r\n\t\t\t\t\t\tIterator<Stock> allStockIterator = allStocks.iterator();\r\n\t\t\t\t\t\twhile(allStockIterator.hasNext())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tStock stockInIter = allStockIterator.next();\r\n\t\t\t\t\t\t\tif( stockInIter.getStockid().equals(stockId))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tstockNew = stockInIter;\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Stock is : \"+stockNew.getStockname());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tStockSplit stockSplitOrder = new StockSplit(stockNew);\r\n\t\t\t\t\t\tstockSplitOrder.processSplitStock(stockNew);\r\n\t\t\t\t\t\tstockSplitOrder.display();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(option1.equals(\"4\")) break;\r\n\t\t\t\t}catch (IOException e) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\te.printStackTrace();\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\tif(option.equals(\"3\")) break;\r\n\t\t} catch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t}", "static Stock getStock(String symbol) { \n\t\tString sym = symbol.toUpperCase();\n\t\tdouble price = 0.0;\n\t\tint volume = 0;\n\t\tdouble pe = 0.0;\n\t\tdouble eps = 0.0;\n\t\tdouble week52low = 0.0;\n\t\tdouble week52high = 0.0;\n\t\tdouble daylow = 0.0;\n\t\tdouble dayhigh = 0.0;\n\t\tdouble movingav50day = 0.0;\n\t\tdouble marketcap = 0.0;\n\t\n\t\ttry { \n\t\t\t\n\t\t\t// Retrieve CSV File\n\t\t\tURL yahoo = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\"+ symbol + \"&f=l1vr2ejkghm3j3\");\n\t\t\tURLConnection connection = yahoo.openConnection(); \n\t\t\tInputStreamReader is = new InputStreamReader(connection.getInputStream());\n\t\t\tBufferedReader br = new BufferedReader(is); \n\t\t\t\n\t\t\t// Parse CSV Into Array\n\t\t\tString line = br.readLine(); \n\t\t\tString[] stockinfo = line.split(\",\"); \n\t\t\t\n\t\t\t// Check Our Data\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[0])) { \n\t\t\t\tprice = 0.00; \n\t\t\t} else { \n\t\t\t\tprice = Double.parseDouble(stockinfo[0]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[1])) { \n\t\t\t\tvolume = 0; \n\t\t\t} else { \n\t\t\t\tvolume = Integer.parseInt(stockinfo[1]); \n\t\t\t} \n\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[2])) { \n\t\t\t\tpe = 0; \n\t\t\t} else { \n\t\t\t\tpe = Double.parseDouble(stockinfo[2]); \n\t\t\t}\n \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[3])) { \n\t\t\t\teps = 0; \n\t\t\t} else { \n\t\t\t\teps = Double.parseDouble(stockinfo[3]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[4])) { \n\t\t\t\tweek52low = 0; \n\t\t\t} else { \n\t\t\t\tweek52low = Double.parseDouble(stockinfo[4]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[5])) { \n\t\t\t\tweek52high = 0; \n\t\t\t} else { \n\t\t\t\tweek52high = Double.parseDouble(stockinfo[5]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[6])) { \n\t\t\t\tdaylow = 0; \n\t\t\t} else { \n\t\t\t\tdaylow = Double.parseDouble(stockinfo[6]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[7])) { \n\t\t\t\tdayhigh = 0; \n\t\t\t} else { \n\t\t\t\tdayhigh = Double.parseDouble(stockinfo[7]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A - N/A\", stockinfo[8])) { \n\t\t\t\tmovingav50day = 0; \n\t\t\t} else { \n\t\t\t\tmovingav50day = Double.parseDouble(stockinfo[8]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[9])) { \n\t\t\t\tmarketcap = 0; \n\t\t\t} else { \n\t\t\t\tmarketcap = Double.parseDouble(stockinfo[9]); \n\t\t\t} \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger log = Logger.getLogger(StockHelper.class.getName()); \n\t\t\tlog.log(Level.SEVERE, e.toString(), e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn new Stock(sym, price, volume, pe, eps, week52low, week52high, daylow, dayhigh, movingav50day, marketcap);\n\t\t\n\t}", "public interface IPortfolio<K> {\n\n /**\n * Returns the portfolio data.\n *\n * @return the portfolio data in the form a string.\n */\n HashMap<String, Double> getPortfolioData(String date);\n\n\n /**\n * Returns the total cost basis of the portfolio at a given date.\n *\n * @param date date for which the cost basis has to be calculated.\n * @return the total cost basis of the portfolio.\n * @throws IllegalArgumentException if the stock cost basis cannot be fetched.\n */\n double getStockCostBasis(String date) throws IllegalArgumentException;\n\n /**\n * Returns the total value of the portfolio at a given date.\n *\n * @param date date for which the value has to be calculated.\n * @return the total value of the portfolio.\n * @throws IllegalArgumentException if the stock value cannot be fetched.\n */\n double getStockValue(String date) throws IllegalArgumentException;\n\n /**\n * Adds a stock to the portfolio.\n *\n * @param identifier the stock that is to be added to the portfolio\n * @param amount the amount for which the stock has to be added to the portfolio.\n * @param date when the stock has to be added.\n * @param commission the commission amount.\n * @return Returns a string that contains the number of shares of a stock bought for an amount at\n * a particular date.\n * @throws IllegalArgumentException if the stock ticker symbol, amount, commission or date is\n * invalid.\n */\n double addStock(String identifier, double amount, String date, double commission)\n throws IllegalArgumentException;\n\n /**\n * Returns the commission fee according the input string.\n *\n * @param commission input commission string.\n * @return commission.\n * @throws IllegalArgumentException if the input is invalid.\n */\n double getCommission(String commission) throws IllegalArgumentException;\n\n /**\n * Invest a fixed amount into an existing portfolio containing multiple stocks, using a specified\n * weight for each stock in the portfolio. Returns a hashmap with the all the stocks and the\n * number of shares bought for each of them.\n *\n * @param amount amount to be invested.\n * @param weights stocks with their corresponding weights.\n * @param equalWeights flag to determine if the weights should be equal.\n * @param date date to invest.\n * @param commission commission fees.\n * @return a hashmap with the all the stocks and the number of shares bought for each of them.\n * @throws IllegalArgumentException if the weights are invalid.\n */\n HashMap<String, Double> invest(double amount, TreeMap<String, Double> weights,\n boolean equalWeights, String date, double commission)\n throws IllegalArgumentException;\n\n /**\n * Saves the portfolio in the local system.\n * @param name filename to be saved as.\n * @throws IllegalArgumentException if the filename is null or empty.\n * @throws IllegalStateException if saving the portfolio fails.\n */\n void savePortfolio(String name) throws IllegalArgumentException, IllegalStateException;\n}", "public Portfolio getPortfolio() {\n\t\tPortfolio portfolio = new Portfolio();\n\t\tportfolio.setTitle(\"Exercise 7 portfolio\");\n\t\tportfolio.updateBalance(10000);\n\t\t\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.set(2014, Calendar.DECEMBER, 15);\n\t\t\n\t\tportfolio.buyStock(new Stock(\"PIH\", 10.0f, 8.5f, cal.getTime()), 20);\n\t\tportfolio.buyStock(new Stock(\"AAL\", 30.0f, 25.5f, cal.getTime()), 30);\n\t\tportfolio.buyStock(new Stock(\"CAAS\", 20.0f, 15.5f, cal.getTime()), 40);\n\t\t\n\t\tportfolio.sellStock(\"AAL\", -1);\n\t\tportfolio.removeStock(\"CAAS\");\n\t\treturn portfolio;\n\t}", "@Override\n\tpublic void addInStock(Stock s) {\n\t\n\t}", "public interface StockItem {\n String getSymbol();\n\n String getName();\n\n BigDecimal getValue();\n\n int getVolume();\n\n Date getLastTradeDateTime();\n\n BigDecimal getGains();\n\n BigDecimal getOpenValue();\n\n BigDecimal getCloseValue();\n}", "@SuppressWarnings({ \"unchecked\", \"finally\" })\n\t@RequestMapping(value=\"/{username}/buy\", method = RequestMethod.POST)\n\tpublic String buyStock(@PathVariable String username, @RequestParam(value=\"stock\") String stock, @RequestParam(value=\"shares\") int shares ){\n\t\tUser user = userService.getUserByName(username);\n\t\tString portfolio = user.getPortfolio();\n\t\tSystem.out.println(portfolio);\n\t\tString stockToBuy = stock;\n\t\tint amountToBuy = shares;\n\n\t\tJSONParser parser = new JSONParser();\n\t\ttry {\n\t\t\tJSONObject json = (JSONObject) parser.parse(portfolio);\n\t\t\tJSONArray details = (JSONArray) json.get(\"portfolio\");\n\t\t\tSystem.out.println(\"Details:\");\n\t\t\tSystem.out.println(details.toJSONString());\n\t\t\tSystem.out.println(json.toString());\n\t\t\tList<String> stockInfo = new ArrayList<>();\n\n\t\t\tHashMap<String, String> stockKeyValue = new HashMap<String, String>();\n\n\n\t\t\t//\t\t\tdouble testint[] = {0,0,0,0};\n\n\t\t\tdetails.forEach( stockInfoFromPortfolio -> {\n\t\t\t\tJSONObject parse = (JSONObject) stockInfoFromPortfolio;\n\n\t\t\t\tfor(int i = 0; i<parse.size(); i++){\n\n\t\t\t\t\tString key = parse.keySet().toArray()[i].toString();\n\t\t\t\t\tstockKeyValue.put(key, parse.get(key).toString());\n\t\t\t\t\tstockInfo.add(i, parse.get(key).toString());\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(stockKeyValue.get(\"amount\"));\n\n\t\t\t\tSystem.out.println(stockKeyValue.toString());\n\n\t\t\t});\n\t\t\tArrayList<PortfolioIndex> stocks = new ArrayList<PortfolioIndex>();\n\t\t\tPortfolioIndex index;\n\t\t\tfor(int i = 0; i<stockInfo.size()-1;i+=2){\n\t\t\t\tindex = new PortfolioIndex(stockInfo.get(i+1).toString(), Integer.parseInt(stockInfo.get(i)));\n\t\t\t\tstocks.add(index);\n\t\t\t}\n\n\t\t\tboolean exists = false;\n\t\t\tint positionIndex = -1;\n\t\t\tint counter = 0;\n\t\t\tfor(PortfolioIndex indexes: stocks){\n\t\t\t\tif(indexes.getTicker().equalsIgnoreCase(stock)){\n\t\t\t\t\texists=true;\n\t\t\t\t\tpositionIndex = counter;\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tSystem.out.println(counter);\n\t\t\tSystem.out.println(\"OK TILL NOW\");\n\t\t\tSystem.out.println(\"STOCK:\"+stock);\n\t\t\tString stockURL = \"http://localhost:9090/price/\"+stock;\n\t\t\tdouble responsePrice = Double.parseDouble(this.sendGet(stockURL));\n\t\t\tSystem.out.println(\"RESPONSE PRICE:\" + responsePrice);\n\t\t\tif(responsePrice == 0.0){\n\t\t\t\tSystem.out.println(\"WHY?\");\n\t\t\t\treturn \"Stock not found please try again later\";\n\t\t\t}else{\n\t\t\t\tif(user.getFunds()-(responsePrice*shares) < 0.0){\n\t\t\t\t\tSystem.out.println(\"ALSO WHY?\");\n\t\t\t\t\treturn \"Invalid funds for transaction\";\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"price not 0\");\n\t\t\t\t\tuser.removeFunds((responsePrice*shares));\n\t\t\t\t\tif(positionIndex != -1){\n\t\t\t\t\t\tSystem.out.println(\"counter found\");\n\t\t\t\t\t\t//Stock was in portfolio need to save new user with new portfolio\n\t\t\t\t\t\tSystem.out.println(positionIndex);\n\t\t\t\t\t\tSystem.out.println(stocks);\n\t\t\t\t\t\tstocks.get(positionIndex).setValue(stocks.get(positionIndex).getValue()+shares);\n\t\t\t\t\t\tSystem.out.println(\"VALUE:\");\n\t\t\t\t\t\tSystem.out.println(stocks.get(positionIndex).getValue()+\" \"+stocks.get(positionIndex).getTicker());\n\t\t\t\t\t\tString newPortfolio = \"\";\n\t\t\t\t\t\tfor(int i=0; i<stocks.size(); i++){\n\t\t\t\t\t\t\tif(i != stocks.size()-1){\n\t\t\t\t\t\t\t\tnewPortfolio += stocks.get(i).returnIndex()+\",\";\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tnewPortfolio += stocks.get(i).returnIndex();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.print(\"New Portfolio:\");\n\t\t\t\t\t\t\tSystem.out.println(newPortfolio);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//System.out.println(stocks.get(counter).getValue()+\" \"+stocks.get(counter+1).getValue());\n\t\t\t\t\t\tuser.setPortfolio(newPortfolio);\n\t\t\t\t\t\tSystem.out.println(user.getPortfolioValue());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tPortfolioIndex portIndex = new PortfolioIndex(stock,shares);\n\t\t\t\t\t\tuser.addCustomPortfolioIndexes(portIndex.returnIndex());\n\t\t\t\t\t\tSystem.out.println(\"WE HIT\");\n\t\t\t\t\t\tSystem.out.println(user.getPortfolioValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tuserService.saveNewUser(user);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//System.out.println(user.get);\n\t\t\treturn \"Purchase successful heres your new portfolio:\\n\"+user.getPortfolio();\n\t\t}catch(Exception e){\n\t\t\treturn \"Exception found!\";\n\t\t}\n\t}", "SimpleStock(String newsymbol, String newname, double newpreviousClosingPrice, double newcurrentPrice ) {\n\t\tSymbol = newsymbol;\n\t\tName = newname;\n\t\tpreviousClosingPrice = newpreviousClosingPrice;\n\t\tcurrentPrice = newcurrentPrice;\n\t \t }", "@Override\n\tpublic int getStock() {\n\t\treturn 2;\n\t}", "@SuppressWarnings({ \"deprecation\", \"unchecked\" })\r\n\tpublic void init() throws Exception{\r\n\t\tAsset CurrentAsset;\r\ndouble TotalAmount = CurrentPortfolio.getTotalAmount(CurrentDate);\r\nCurrentPortfolio.sellAssetCollection(CurrentDate);\r\n\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"US large cap\");\r\nCurrentAsset.setClassID(getAssetClassID(\"US Equity\"));\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"^GSPC\", TotalAmount/7,\r\n\t\tCurrentDate);\r\n\t\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"IUS small cap\");\r\nCurrentAsset.setClassID(52l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"^RUT\", TotalAmount /7,\r\n\t\tCurrentDate);\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"International Equity\");\r\nCurrentAsset.setClassID(9l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"VGTSX\", TotalAmount /7,CurrentDate);\r\n\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"Real Estate\");\r\nCurrentAsset.setClassID(5l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"VGSIX\",\r\n\t\tTotalAmount /7, CurrentDate);\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"Commodity\");\r\nCurrentAsset.setClassID(getAssetClassID(\"Commodity\"));\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"QRAAX\",\r\n\t\tTotalAmount /7, CurrentDate);\r\n\r\n\r\n\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"Cash\");\r\nCurrentAsset.setClassID(3l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"CASH\",\r\n\t\tTotalAmount /7, CurrentDate);\r\n\t\t\r\nCurrentAsset = new Asset();\r\nCurrentAsset.setAssetStrategyID(getStrategyID(\"STATIC\"));\r\nCurrentAsset.setName(\"US Bond\");\r\nCurrentAsset.setClassID(2l);\r\nCurrentAsset.setTargetPercentage(0.1428);\r\nCurrentPortfolio.addAsset(CurrentAsset);\r\nCurrentPortfolio.buy(CurrentAsset.getName(), \"VBMFX\", TotalAmount /7,\r\n\t\tCurrentDate);\r\n\r\ninitialAmount=TotalAmount;\r\nwithdrawRate=0.05;\r\n\t}", "String getPortfolioValueByStocks(String portfolioName, Date date) throws IllegalArgumentException;", "@Override\n\tpublic boolean updateStock(int quant) {\n\t\treturn false;\n\t}", "public void createPortfolio() {\r\n\t\tArrayList<TitleDeed> emptyPortfolio = new ArrayList<>(0); // empty array list\r\n\t\tPortfolio portfolio = new Portfolio(emptyPortfolio);\r\n\t\tsetPlayerPortfolio(portfolio);\r\n\t}", "Stock retrieveStock(String symbol);", "public StockPortfolio(double valueOfPortfolio, double transferFee, double amount) {\n\n }", "public Double updatePortfolioValue() {\n\t\tDouble portVal = 0.0;\n\t\tfor(Stock s : stockList) {\n\t\t\tportVal += s.getCurrentPrice(); \n\t\t}\n\t\tthis.portfolioValue = portVal;\n\t\treturn portVal;\n\t}", "private String getStock() {\n\t\treturn stock;\n\t}", "private void updatePortfolioHistory(PortfolioRecord portRecord, List<StockData> stockDataUpdates) {\n List<DataPoint> newHistory = new ArrayList<>();\n Map<String, PortfolioRecord.Allocation> portAllocations = portRecord.getAllocations();\n int numDataPoints = ((HistoricalStockData) stockDataUpdates.get(0)).getHistory().size();\n double currMoneyInvested = portRecord.getCurrMoneyInvested();\n\n for (int i = 0; i < numDataPoints; i++) {\n LocalDate date = null;\n double openPortValue = 0;\n double closePortValue = 0;\n\n for (StockData stockData : stockDataUpdates) {\n HistoricalStockData historicalStockData = (HistoricalStockData) stockData;\n String ticker = historicalStockData.getTicker();\n DataPoint dataPoint = historicalStockData.getHistory().get(i);\n date = dataPoint.getDate();\n\n openPortValue += dataPoint.getMarketOpenValue() * portAllocations.get(ticker).getNumShares();\n closePortValue += dataPoint.getMarketCloseValue() * portAllocations.get(ticker).getNumShares();\n }\n\n newHistory.add(new PortfolioDataPoint(date, openPortValue, closePortValue, currMoneyInvested));\n }\n\n portRecord.addHistory(newHistory);\n }", "public List<StockItem> getStockList();", "Stock retrieveStock(String symbol, String asOf);", "public static List<YahooStock> retrieveYahooStocks(String symbol) {\n\t\tURL yahooFinanceUrl2 = null;\n\t\tURLConnection urlConnection;\n\t\tList<YahooStock> yahooStockList = null;\n\t\ttry {\n\t\t\t//yahooFinanceUrl1 = new URL(\"http://download.finance.yahoo.com/d/quotes.csv?s=\" + symbol + \"&f=sl1d1t1c1ohgv&e=.csv\");\n\t\t\tyahooFinanceUrl2 = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\" + symbol + \"&f=sl1d1t1c1ohgv&e=.csv\");\n\t\t} catch (MalformedURLException mue) {\n\t\t\tmue.printStackTrace();\n\t\t} \n\t\ttry {\n\t\t\turlConnection = yahooFinanceUrl2.openConnection();\n\t\t\tBufferedReader dataIn = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); \n\t\t\tString inputLine; \n\t\t\tyahooStockList = new ArrayList<YahooStock>();\n\t\t\twhile ((inputLine = dataIn.readLine()) != null) {\n\t\t\t\tString[] yahooStockInfo = inputLine.split(\",\");\n\t\t\t\tYahooStock yahooStock = new YahooStock();\n\t\t\t\tyahooStock.setSymbol(yahooStockInfo[0].replaceAll(\"\\\"\", \"\"));\n\t\t\t\tyahooStock.setLastTrade(Double.valueOf(yahooStockInfo[1]));\n\t\t\t\tyahooStock.setTradeDate(yahooStockInfo[2]);\n\t\t\t\tyahooStock.setTradeTime(yahooStockInfo[3]);\n\t\t\t\tyahooStock.setChange(Double.valueOf(yahooStockInfo[4]));\n\t\t\t\tyahooStock.setOpen(Double.valueOf(yahooStockInfo[5]));\n\t\t\t\tyahooStock.setHigh(Double.valueOf(yahooStockInfo[6]));\n\t\t\t\tyahooStock.setLow(Double.valueOf(yahooStockInfo[7]));\n\t\t\t\tyahooStock.setVolume(Double.valueOf(yahooStockInfo[8]));\n\t\t\t\tyahooStock.setSmallChartUrl(\"http://ichart.finance.yahoo.com/t?s=\" + yahooStock.getSymbol());\n\t\t\t\tyahooStock.setLargeChartUrl(\"http://chart.finance.yahoo.com/w?s=\" + yahooStock.getSymbol());\n\t\t\t\tyahooStockList.add(yahooStock);\n\t\t\t} \n\t\t\tdataIn.close(); \n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t} \n\t\treturn yahooStockList; \t\n\t}", "public ArrayList<Stock> addDefaultStocks() {\n Stock amzn = new Stock(\"Amazon\", \"AMZN\", new Dollar(2474.00), 100); \n Stock fb = new Stock(\"Facebook\", \"FB\", new Dollar(204.71), 100); \n Stock msft = new Stock(\"Microsoft\", \"MSFT\", new Dollar(174.57), 100); \n Stock googl = new Stock(\"Alphabet\", \"GOOGL\", new Dollar(1317.32), 100); \n Stock baba = new Stock(\"Alibaba\", \"BABA\", new Dollar(194.48), 100); \n Stock fis = new Stock(\"Fidelity\", \"FIS\", new Dollar(26.01), 100); \n Stock crm = new Stock(\"Salesforce\", \"CRM\", new Dollar(156.37), 100); \n Stock ma = new Stock(\"Mastercard\", \"MA\", new Dollar(268.74), 100); \n Stock v = new Stock(\"Visa\", \"V\", new Dollar(175.57), 100); \n Stock nflx = new Stock(\"Netflix\", \"NFLX\", new Dollar(415.27), 100); \n\n stocks.add(amzn); \n stocks.add(fb); \n stocks.add(msft); \n stocks.add(googl); \n stocks.add(baba); \n stocks.add(fis);\n stocks.add(crm); \n stocks.add(ma); \n stocks.add(v); \n stocks.add(nflx); \n\n return stocks; \n }", "public static void main(String[] args) {\n Stock stockString = new Stock(\"ORCL\", \"Oracle Corparation\");\n \n Stock stockString2 = new Stock(\"MS\", \"Microsoft\");\n \n Stock stockString3 = new Stock(\"GOOG\", \"Google\");\n \n \n \n // Creates object with current and previous\n Stock stockDouble = new Stock(34.5, 34.35);\n \n Stock stockDouble2 = new Stock(60,30);\n \n Stock stockDouble3 = new Stock(20,10);\n \n // modify and Print the names and prices\n stockString.setAttributes(\"ORCL\", \"Oracle Corparation\", 34.5, 34.35);\n System.out.print(stockString.symbol + \" \" + stockString.name + \"\\n\");\n System.out.print(\"Current Price = \" + stockDouble.currentPrice + \"\\n\" + \"Previous Price = \" + stockDouble.previousClosingPrice + \"\\n\");\n System.out.print(\"Price Change Percentage: \" + Stock.getChangePercent() + \"\\n\"); \n System.out.print(\"\\n\");\n \n stockString2.setAttributes(\"MS\", \"Mircosoft\", 30, 60);\n System.out.print(stockString2.symbol + \" \" + stockString2.name + \"\\n\");\n System.out.print(\"Current Price = \" + stockDouble2.currentPrice + \"\\n\" + \"Previous Price = \" + stockDouble2.previousClosingPrice + \"\\n\");\n System.out.print(\"Price Change Percentage: \" + Stock.getChangePercent() + \"\\n\");\n System.out.print(\"\\n\");\n \n stockString3.setAttributes(\"GOOG\", \"Google\", 20, 5);\n System.out.print(stockString3.symbol + \" \" + stockString3.name + \"\\n\");\n System.out.print(\"Current Price = \" + stockDouble3.currentPrice + \"\\n\" + \"Previous Price = \" + stockDouble3.previousClosingPrice + \"\\n\");\n System.out.print(\"Price Change Percentage: \" + Stock.getChangePercent() + \"\\n\");\n System.out.print(\"\\n\");\n\t}", "@Override\r\n public Portfolio calculateCurrentPortfolio(List<PowerRate> portfolioCoins,String name) {\n Portfolio portfolio = new Portfolio();\r\n portfolio.setCoins(portfolioCoins);\r\n portfolio.setCreated(new Date());\r\n portfolio.setName(name);\r\n portfolio.setType(\"power-portfolio\");\r\n return portfolio;\r\n }", "private void refreshStock(){\n storeStock = sysMgr.getStock(sysMgr.getLoginId());\n ArrayList<Stock> nonEmpty = new ArrayList<>();\n for(Stock i : storeStock)\n if(i.getQuantity() != 0)\n nonEmpty.add(i);\n storeStock = nonEmpty;\n }", "public void addWarehouseStock(String name, int amount);", "String getStockData(String symbol) throws Exception\n\t{\n\t\tfinal String urlHalf1 = \"https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=\";\n\t\tfinal String urlHalf2 = \"&apikey=\";\n\t\tfinal String apiKey = \"FKS0EU9E4K4UQDXI\";\n\n\t\tString url = urlHalf1 + symbol + urlHalf2 + apiKey;\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString hitUrl = url;\n\t\tString jsonData = getJsonData(hitUrl);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tString returnData = \"\";\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject jsonObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement timeSeries = jsonObject.get(\"Time Series (Daily)\");\n\n\t\t\tif (timeSeries.isJsonObject())\n\t\t\t{\n\t\t\t\tJsonObject timeObject = timeSeries.getAsJsonObject();\n\n\t\t\t\tDate date = new Date();\n\n\t\t\t\tCalendar calendar = new GregorianCalendar();\n\t\t\t\tcalendar.setTime(date);\n\n\t\t\t\t// Loop until we reach most recent Friday (market closes on Friday)\n\t\t\t\twhile (calendar.get(Calendar.DAY_OF_WEEK) < Calendar.FRIDAY\n\t\t\t\t\t\t|| calendar.get(Calendar.DAY_OF_WEEK) > Calendar.FRIDAY)\n\t\t\t\t{\n\t\t\t\t\tcalendar.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\t\t}\n\n\t\t\t\tint year = calendar.get(Calendar.YEAR);\n\t\t\t\tint month = calendar.get(Calendar.MONTH) + 1;\n\t\t\t\tint day = calendar.get(Calendar.DAY_OF_MONTH);\n\n\t\t\t\tString dayToString = Integer.toString(day);\n\n\t\t\t\tif (dayToString.length() == 1)\n\t\t\t\t\tdayToString = \"0\" + dayToString;\n\n\t\t\t\tJsonElement currentData = timeObject.get(year + \"-\" + month + \"-\" + dayToString);\n\n\t\t\t\tif (currentData.isJsonObject())\n\t\t\t\t{\n\t\t\t\t\tJsonObject dataObject = currentData.getAsJsonObject();\n\n\t\t\t\t\tJsonElement openPrice = dataObject.get(\"1. open\");\n\t\t\t\t\tJsonElement closePrice = dataObject.get(\"4. close\");\n\t\t\t\t\tJsonElement highPrice = dataObject.get(\"2. high\");\n\t\t\t\t\tJsonElement lowPrice = dataObject.get(\"3. low\");\n\n\t\t\t\t\treturnData = year + \"-\" + month + \"-\" + dayToString + \" - \" + symbol + \": Opening price: $\"\n\t\t\t\t\t\t\t+ openPrice.getAsString() + \" / Closing price: $\" + closePrice.getAsString()\n\t\t\t\t\t\t\t+ \" / High price: $\" + highPrice.getAsString() + \" / Low price: $\" + lowPrice.getAsString();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn returnData;\n\t}", "public void buyStock(String symbol, int quantity) throws BalanceException, StockNotExistsException, IllegalQuantityException\r\n\t{\r\n\t\tint maxQuantity; \r\n\t\tint tQuantity;\r\n\t\tif(quantity < -1)\r\n\t\t{\r\n\t\t\tthrow new IllegalQuantityException();\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0; i < portfolioSize; i++)\r\n\t\t{\r\n\t\t\tif(this.stockStatus != null && this.stockStatus[i].getSymbol().equalsIgnoreCase(symbol))\r\n\t\t\t{\r\n\t\t\t\tmaxQuantity = (int)(balance / stockStatus[i].getAsk());\r\n\t\t\t\ttQuantity = quantity;\r\n\t\t\t\tif (quantity == -1)\r\n\t\t\t\t{\r\n\t\t\t\t\ttQuantity = maxQuantity;\r\n\t\t\t\t}\r\n\t\t\t\telse if (quantity > maxQuantity){\r\n\t\t\t\t\tthrow new BalanceException();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tupdateBalance(-tQuantity * stockStatus[i].getAsk());\r\n\t\t\t\tstockStatus[i].setStockQuantity(stockStatus[i].getStockQuantity()+tQuantity);\r\n\t\t\t\t\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new StockNotExistsException(symbol);\r\n\t}", "public void updateStockData() {\n\t\t\ttry {\n\t\t\t\tthis.dataURL = new URL(this.url);\n\t\t\t} catch (final MalformedURLException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"CRITICAL ERROR: The impossible has happened! The hard-hoded URL was malformed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tScanner scanner;\n\t\t\ttry {\n\t\t\t\tscanner = new Scanner(this.dataURL.openStream());\n\t\t\t\twhile (scanner.hasNextLine())\n\t\t\t\t\ttry {\n\t\t\t\t\t\tscanner\n\t\t\t\t\t\t\t\t.findInLine(Pattern\n\t\t\t\t\t\t\t\t\t\t.compile(\"([0-9.]*),\\\"([0-9a-zA-Z._-]*)\\\",\\\"([a-zA-Z._\\\\s-]*)\\\"\"));\n\t\t\t\t\t\tfinal MatchResult result = scanner.match();\n\t\t\t\t\t\tboolean found = false;\n\t\t\t\t\t\tfor (final StockCompany company : StockBrokerImpl.this.stockData)\n\t\t\t\t\t\t\tif (company.getCompanySymbol().equals(\n\t\t\t\t\t\t\t\t\tresult.group(2))) {\n\t\t\t\t\t\t\t\tfinal Double stockPrice = Double\n\t\t\t\t\t\t\t\t\t\t.parseDouble(result.group(1));\n\t\t\t\t\t\t\t\tcompany.setStockPrice(stockPrice);\n\t\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!found)\n\t\t\t\t\t\t\tStockBrokerImpl.this.stockData\n\t\t\t\t\t\t\t\t\t.add(new StockCompany(result.group(3),\n\t\t\t\t\t\t\t\t\t\t\tresult.group(2), Double\n\t\t\t\t\t\t\t\t\t\t\t\t\t.parseDouble(result\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.group(1))));\n\n\t\t\t\t\t\tscanner.nextLine();\n\n\t\t\t\t\t} catch (final NumberFormatException e) {\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"CRITICAL ERROR: Update data corrupted. [Virtually impossible]\");\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\tscanner.close();\n\t\t\t} catch (final IOException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"ERROR: Connection to stock price update feed could not be established.\");\n\t\t\t}\n\t\t}", "public void removeStock(String symbol) throws StockNotExistsException,\r\n\t\t\tIllegalQuantityException, BalanceException {\r\n\t\tboolean stockIsExisist = false;\r\n\t\tint StockSymbolIndex = 0;\r\n\r\n\t\t// find the index of symbol\r\n\t\tfor (int i = 0; i < portfolioSize; i++) {\r\n\t\t\tif(symbol.equals(this.stockStatus[i].getSymbol())) {\r\n\t\t\t\tstockIsExisist = true;\r\n\t\t\t\tStockSymbolIndex = i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// if stock symbol dosen't exists\r\n\t\tif (stockIsExisist == false) {\r\n\t\t\tthrow new StockNotExistsException(symbol);\r\n\t\t}\r\n\t\t// if stock index is the last\r\n\t\tif (StockSymbolIndex == MAX_PORTFOLIO_SIZE - 1) {\r\n\t\t\tsellStock(symbol, stockStatus[StockSymbolIndex].getStockQuantity());\r\n\t\t\tportfolioSize--;\r\n\t\t}\r\n\r\n\t\tif (stockIsExisist == true) {\r\n\t\t\tsellStock (symbol, this.stockStatus[StockSymbolIndex].getStockQuantity());\r\n\t\t\tthis.stockStatus[StockSymbolIndex] = stockStatus[portfolioSize-1];\r\n\t\t\tthis.stockStatus[StockSymbolIndex] = stockStatus[portfolioSize-1];\r\n\t\t\tthis.portfolioSize--;\r\n\t\t}\r\n\t}", "stockFilePT102.StockDocument.Stock addNewStock();", "List<Stock> retrieveAllStocks(String symbol);", "stockFilePT102.StockDocument.Stock getStockArray(int i);", "public void addStoreStock(String name, int amount);", "void savePortfolio(String name) throws IllegalArgumentException, IllegalStateException;", "public void addStock(int qtearajouter) {\n\t\tthis.stock += qtearajouter;\n\t}", "public void changeStockVal() {\n double old = _stockVal;\n _stockVal = 0;\n for (Company x : _stocks.keySet()) {\n _stockVal += x.getPrice() * _stocks.get(x);\n }\n _stockValChanged = _stockVal - old;\n\n }", "public float getStocksValue(StockStatus stockStatus[]) {\r\n\t\tfloat allStocksValue = 0;\r\n\t\tfor (int i = 0; i < portfolioSize; i++) {\r\n\t\t\tallStocksValue += stockStatus[i].bid * stockStatus[i].stockQuantity;\r\n\t\t}\r\n\t\treturn allStocksValue;\r\n\t}", "public int getStock() {\n return stock;\n }", "private void botBuy(Stock stock, int numShares){\n player.getShares().set(game.getIndex(stock), player.getShares().get(game.getIndex(stock)) + numShares);\n player.setFunds(-numShares*(stock.getSharePrice()+3));\n System.out.println(\"purchase made\"); //rem\n }", "SimpleStock() {\n\t\tSymbol = \"symbol\";\n\t\tName = \"name\";\n\t\t\t }", "private void updateStocks(StockTransferTransactionRequest item) {\n\n Integer updatedQuantity = item.getQuantity();\n StockTraderServiceFactoryIF serviceFactory = new StockTraderServiceFactory();\n DematServiceIF dematService = serviceFactory.dematService();\n\n Optional<Integer> oldQuantity = dematService.getStockStatus(item.getUserName(),\n item.getStock());\n if(oldQuantity != null && oldQuantity.get() > 0) {\n updatedQuantity = oldQuantity.get() + item.getQuantity();\n }\n try(Connection conn = DriverManager.getConnection(Constants.DB_URL,\n Constants.USER,\n Constants.PASS);\n PreparedStatement stmt = conn.prepareStatement(\n Constants.MERGE_STOCK)) {\n stmt.setString(1, item.getUserName());\n stmt.setString(2, item.getStock().toString());\n stmt.setInt(3, updatedQuantity);\n stmt.execute();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "java.util.List<stockFilePT102.StockDocument.Stock> getStockList();", "public static List<Map<String, BigDecimal>> getHashMaps(Portfolio portfolio) {\n //List of maps to store dates along with their adj. closing prices on those dates\n List<Map<String, BigDecimal>> portfolioPriceMap = new ArrayList<Map<String, BigDecimal>>();\n\n for (int i = 0; i < portfolio.getSize(); i++) {\n Map<String, BigDecimal> positionPriceMap = new HashMap<String, BigDecimal>();\n List<HistoricalQuote> currentPositionData = portfolio.getPosition(i).getHistoricalData();\n\n for (int j = 0; j < currentPositionData.size(); j++) {\n String currentDate = dateFormat.format(currentPositionData.get(j).getDate().getTime());\n\n positionPriceMap.put(currentDate, currentPositionData.get(j).getAdjClose());\n }\n\n portfolioPriceMap.add(positionPriceMap); //Add this price map to the portfolio's price map\n }\n\n return portfolioPriceMap;\n }", "public int getStock(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.stock;\n}\n}\nreturn -1;\n}", "@Test\r\n public void test() {\r\n Configuration.getInstance().setDeductIncomeTax(false);\r\n\r\n String symbol = \"TST\";\r\n Stock stock = new Stock(symbol, \"Test Stock\");\r\n stock.setPrice(10.00);\r\n stock.setDivRate(1.00);\r\n\r\n // Initial (empty) position.\r\n Position position = new Position(stock);\r\n Assert.assertEquals(0, position.getNoOfShares());\r\n Assert.assertEquals(0.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(0.00, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // BUY 100 @ $20 ($5 costs)\r\n stock.setPrice(20.00);\r\n position.addTransaction(TestUtil.createTransaction(1, 1L, TransactionType.BUY, symbol, 100, 20.00, 5.00));\r\n Assert.assertEquals(100, position.getNoOfShares());\r\n Assert.assertEquals(2005.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(2000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-5.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(2005.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(4.99, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(-5.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(-0.25, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // DIVIDEND 100 @ $1.00\r\n position.addTransaction(TestUtil.createTransaction(2, 2L, TransactionType.DIVIDEND, symbol, 100, 1.00, 0.00));\r\n Assert.assertEquals(100, position.getNoOfShares());\r\n Assert.assertEquals(2005.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(2000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-5.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(2005.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(4.99, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+95.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+4.74, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // Price drops to $10\r\n stock.setPrice(10.00);\r\n Assert.assertEquals(100, position.getNoOfShares());\r\n Assert.assertEquals(2005.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(1000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-1005.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(-50.12, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(2005.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(4.99, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(-905.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(-45.14, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // BUY another 100 @ $10 ($5 costs)\r\n position.addTransaction(TestUtil.createTransaction(3, 3L, TransactionType.BUY, symbol, 100, 10.00, 5.00));\r\n Assert.assertEquals(200, position.getNoOfShares());\r\n Assert.assertEquals(3010.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(2000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(-1010.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(-33.55, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3010.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(200.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(6.64, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(-910.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(-30.23, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // Price raises to $20 again\r\n stock.setPrice(20.00);\r\n Assert.assertEquals(200, position.getNoOfShares());\r\n Assert.assertEquals(3010.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(4000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(+990.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(+32.89, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3010.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(200.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(6.64, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(100.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+1090.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+36.21, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // DIVIDEND 200 @ $1.25\r\n stock.setDivRate(1.25);\r\n position.addTransaction(TestUtil.createTransaction(4, 4L, TransactionType.DIVIDEND, symbol, 200, 1.25, 0.00));\r\n Assert.assertEquals(200, position.getNoOfShares());\r\n Assert.assertEquals(3010.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(4000.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(+990.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(+32.89, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3010.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(250.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(8.31, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(350.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+1340.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+44.52, position.getTotalReturnPercentage(), DELTA);\r\n\r\n // SELL 200 @ $20 ($10 costs)\r\n position.addTransaction(TestUtil.createTransaction(5, 5L, TransactionType.SELL, symbol, 200, 20.00, 10.00));\r\n Assert.assertEquals(0, position.getNoOfShares());\r\n Assert.assertEquals(0.00, position.getCurrentCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentValue(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentResult(), DELTA);\r\n Assert.assertEquals(0.00, position.getCurrentResultPercentage(), DELTA);\r\n Assert.assertEquals(3020.00, position.getTotalCost(), DELTA);\r\n Assert.assertEquals(0.00, position.getAnnualIncome(), DELTA);\r\n Assert.assertEquals(0.00, position.getYieldOnCost(), DELTA);\r\n Assert.assertEquals(350.00, position.getTotalIncome(), DELTA);\r\n Assert.assertEquals(+1330.00, position.getTotalReturn(), DELTA);\r\n Assert.assertEquals(+44.04, position.getTotalReturnPercentage(), DELTA);\r\n }", "public int getStock() {\n\t\treturn stock;\n\t}", "private void copyStock(OwnedStock stock){\n\t\t//If quantity == 0, then \n\t\tif(stock.getQuantityOfShares() > 0){\n\t\t\tsetQuantityOfShares(stock.getQuantityOfShares());\n\t\t\tsetPrinciple(stock.getPrinciple());\n\t\t\tsetTotalValue(stock.getTotalValue());\n\t\t\tsetNet(stock.getNet());\n\t\t}\n\t\telse{\n\t\t\tprinciple = new BigDecimal(0);\n\t\t\ttotalValue = new BigDecimal(0);\n\t\t\tnet = new BigDecimal(0);\n\t\t}\n\t}", "public void setStock(String stock) {\n this.stock = stock;\n }", "public void setStock(String stock) {\n this.stock = stock;\n }", "stockFilePT102.StockDocument.Stock insertNewStock(int i);", "public static ArrayList<StockPortfolio> fetchDataFromFile() {\r\n\t\tArrayList<StockPortfolio> alStockPortfolios = new ArrayList<>();\r\n\t\tJSONParser parser= new JSONParser();\r\n\t\ttry{\r\n\t\t\tJSONArray alStock=(JSONArray)parser.parse(new FileReader(\"src/resource/StockInformation.json\"));\r\n\t\t\tfor(Object stock:alStock){\r\n\t\t\t\tJSONObject stockJson=(JSONObject) stock;\r\n\t\t\t\tStockPortfolio objStockPortfolio = new StockPortfolio();\r\n\t\t\t\tobjStockPortfolio.setName(stockJson.get(\"name\").toString());\r\n\t\t\t\tobjStockPortfolio.setNoOfShare((Long)stockJson.get(\"noOfShare\"));\r\n\t\t\t\tobjStockPortfolio.setPriceOfShare((Long)stockJson.get(\"priceOfShare\"));\r\n\t\t\t\talStockPortfolios.add(objStockPortfolio); \r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t\treturn alStockPortfolios;\r\n\t}", "@Override\n public String toString() {\n return \"Stock Glance\";\n }", "public void initStockData() {\n\t\t\tStockBrokerImpl.this.stockData = new ArrayList<StockCompany>();\n\t\t\tthis.updateStockData();\n\t\t\tfor (final StockCompany company : StockBrokerImpl.this.stockData)\n\t\t\t\tSystem.out.println(company.getStockPrice());\n\n\t\t}", "@Test\n public void testGetStock() {\n IStockParser parser;\n try {\n parser = ParserFactory.createStockParser(\"openones.webparser.stockparser.DVSCParser\");\n Collection<StockInfo> stockList = parser.getStockList(\"ACB\");\n for (StockInfo stock : stockList) {\n System.out.println(stock.getDate() + \";\" + stock.getRefPrice() + \";\" + stock.getCeilPrice() + \";\" +\n stock.getFloPrice() + \";\" + stock.getClosedPrice() + \";\" + stock.getVolume());\n }\n } catch (Exception ex) {\n // TODO Auto-generated catch block\n ex.printStackTrace();\n }\n \n \n }", "public com.sbytestream.samples.grpc.stockservice.Stock getStocks(int index) {\n return stocks_.get(index);\n }", "public String getPortfolioName() {\n return _portfolioName;\n }", "public Integer getStock() {\n return stock;\n }", "public synchronized PortfolioModel getPortfolio() {\n\t\treturn portfolio;\n\t}", "String getAllPortfolio();", "public StockExchange()\n {\n stocks = new ArrayList<Stock>();\n }", "private BigDecimal getStock(Producto producto, Bodega bodega, Date fechaDesde, Date fechaHasta)\r\n/* 48: */ {\r\n/* 49:74 */ BigDecimal stock = BigDecimal.ZERO;\r\n/* 50:75 */ for (InventarioProducto inventarioProducto : this.servicioInventarioProducto.obtenerMovimientos(producto.getIdOrganizacion(), producto, bodega, fechaDesde, fechaHasta)) {\r\n/* 51:77 */ if (inventarioProducto.getOperacion() == 1) {\r\n/* 52:78 */ stock = stock.add(inventarioProducto.getCantidad());\r\n/* 53:79 */ } else if (inventarioProducto.getOperacion() == -1) {\r\n/* 54:80 */ stock = stock.subtract(inventarioProducto.getCantidad());\r\n/* 55: */ }\r\n/* 56: */ }\r\n/* 57:83 */ return stock;\r\n/* 58: */ }", "public void setStock(int stock) {\n this.stock = stock;\n }", "public void setStock(int stock) {\n this.stock = stock;\n }", "public String getStock() {\n return stock;\n }", "public String getStock() {\n return stock;\n }", "Stock retrieveStockChartData(String symbol);", "public void dailyInventoryCheck(){\n\n\t\tint i;\n\t\tStock tempStock, tempRestockTracker;\n\t\tint listSizeInventory = this.inventory.size();\n\t\tfor(i = 0; i < listSizeInventory; i++){\n\n\t\t\t\tif(this.inventory.get(i).getStock() == 0){\n\t\t\t\t\t//If stock is 0 add 1 to the out of stock counnter then reset it to the inventory level\n\t\t\t\t\tthis.inventory.get(i).setStock(inventoryLevel);\n\t\t\t\t\tthis.inventoryOrdersDone.get(i).addStock(1);\n\t\t\t\t\t//inventoryOrdersDone.set(i,tempRestockTracker);\n\t\t\t\t\t//tempStock.setStock(inventoryLevel);\n\t\t\t\t\t//this.inventory.set(i,tempStock);\n\t\t\t\t}\n\t\t\t}\n\n\t}", "@Override\r\n public Portfolio calculatePowerPortfolio(String portName) throws CoinDataAPIException {\n List<PowerRate> coinsWithPowerRate = powerRateRepository.findAll();\r\n List<String> categorys = uniqueCategorys(coinsWithPowerRate);\r\n List<PowerRate> portfolioCoins = portfolioCoins(categorys);\r\n //calculate 30 days SD for each coin\r\n for(PowerRate powerRate : portfolioCoins){\r\n powerRate.setWeight(calculateSD(coinData.coinHistoryByIdcoin(powerRate.getIdcoin())));\r\n }\r\n List<PowerRate> portfolioCoinsWithWeight = calculateWeight(portfolioCoins);\r\n Portfolio portfolio = calculateCurrentPortfolio(portfolioCoinsWithWeight,portName);\r\n return portfolio;\r\n }", "Stock()\n {\n super();\n }", "public int portfolioSize()\r\n\t{\r\n\t\treturn portfolio.size();\r\n\t}", "String getStockName();", "String getPortfolioCostBasisByStocks(String portfolioName, Date date)\r\n throws IllegalArgumentException;", "public double valueOfPortfolio()\r\n\t{\r\n\t\tdouble sum=0;\r\n\t\tfor(int i=0;i<portfolio.size();i++)\r\n\t\t{\r\n\t\t\tsum+=portfolio.get(i).getPrice();\r\n\t\t}\r\n\t\treturn sum;\r\n\t}", "public int getStock(){\n\t\treturn Stock; // Return the product's stock\n\t}", "public boolean inStock() {\n return inStock;\n }", "@Override\r\n\tpublic String getBind_stock_ind() {\n\t\treturn super.getBind_stock_ind();\r\n\t}", "public static void processData(ArrayList<StockPortfolio> alStockPortfolios) {\r\n\t\ttry {\r\n\t\t\tFileWriter writer=new FileWriter(new File(\"src/resource/stockportFolioOutput.json\"));\r\n\t\t JSONArray stockArr=new JSONArray();\r\n\t\t long totalPrice=0;\r\n\t\t for (StockPortfolio objStockPortfolio : alStockPortfolios){\r\n\t\t \tJSONObject stockobj=new JSONObject();\r\n\t\t\tstockobj.put(\"Total price of each\",objStockPortfolio.getNoOfShare()*objStockPortfolio.getPriceOfShare());\r\n\t\t\ttotalPrice += objStockPortfolio.getNoOfShare()*objStockPortfolio.getPriceOfShare();\r\n\t\t\tstockArr.add(stockobj);\r\n\t\t }\r\n\t\t JSONObject objJson = new JSONObject();\r\n\t\t objJson.put(\"totalPriceOfAllProducts\", totalPrice);\r\n\t\t stockArr.add(objJson);\r\n\t\t\twriter.write(stockArr.toJSONString());\r\n\t\t\twriter.flush();\r\n\t\t\twriter.close();\r\n\t\t\r\n\t\t} catch (IOException e) {\r\n\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "String getPortfolioTotalValue(String portfolioName, Date date) throws IllegalArgumentException;", "double getTotalPortfolioValue(){\n double total = 0.0;\n for (Listing<P, C> l : this.collectionOfCurrentListings) {\n total += l.getContract().getTotalPrice() * this.commissionRate;\n }\n return total;\n }", "public Portfolio(){}", "public void setStock(Integer stock) {\n this.stock = stock;\n }", "public void setStock_num(Integer stock_num) {\n this.stock_num = stock_num;\n }", "@Override\n\tpublic double getStockPrice(String stockName) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic List<Article> getStock() {\n\t\treturn null;\n\t}", "public ArrayList<Stock> getStockWithName() {\n\n return null;\n }", "@Override\n\tpublic Stock getStock() {\n\t\treturn null;\n\t}", "public Map<String, Stock> getStocks();", "void setStockArray(int i, stockFilePT102.StockDocument.Stock stock);", "public void buyStock(double askPrice, int shares, int tradeTime) {\n }", "public String getStockName() {\r\n return stockName;\r\n }", "public void stockPurchase(String stockCode, String stockAmount){\r\n\t\tcost = 0;\r\n\t\t\r\n\t\tSystem.out.println(stockAmount);\r\n\t\tSystem.out.println(stockCode);\r\n\t\tSystem.out.println(words[0]);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tConnection con = DriverManager.getConnection(dbUrl, name, pw);\r\n\t\t\tStatement state = con.createStatement();\r\n\t\t\tprepSt = con.prepareStatement(\"INSERT INTO portfolio (stocktick, stock, ask, bid, amount, cost)\"\r\n\t\t\t\t\t+ \" VALUES (?, ?, ?, ?, ?, ?)\");\r\n\t\t\tprepSt.setString(1, stockCode);\r\n\t\t\tprepSt.setString(2, words[0]);\r\n\t\t\tprepSt.setDouble(3, Double.parseDouble(words[1]));\r\n\t\t\tprepSt.setDouble(4, Double.parseDouble(words[2]));\r\n\t\t\tprepSt.setInt(5, Integer.parseInt(stockAmount));\r\n\t\t\tprepSt.setDouble(6, amountInt);\r\n\t\t\t\r\n\t\t\tprepSt.executeUpdate();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Insert Complete\");\r\n\t\t\tcurrent = current - amountInt;\r\n\t\t\t\r\n\t\t\tprepSt = con.prepareStatement(\"UPDATE funds SET current = ?\");\r\n\t\t\tprepSt.setDouble(1, current);\r\n\t\t\t\r\n\t\t\tprepSt.executeUpdate();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Update Complete\");\r\n\t\t\t\r\n\t\t\tResultSet res = state.executeQuery(\"SELECT * FROM portfolio\");\r\n\t\t\t\r\n\t\t\twhile(res.next()){\r\n\t\t\t\tcost = cost + res.getDouble(\"cost\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfunds.setText(\"Funds Available: $\" + NumberFormat.getNumberInstance().format(current) + \" Invested: $\" + NumberFormat.getNumberInstance().format(cost));\r\n\t\t\t\r\n\t \tprepSt.close();\r\n\t \tcon.close();\r\n\t\t}\r\n\t\t\r\n\t\tcatch (SQLException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t \tsearchPanel.remove(bpAction);\r\n\t \tsearchPanel.remove(seAction);\r\n\t}", "public java.util.List<com.sbytestream.samples.grpc.stockservice.Stock> getStocksList() {\n return stocks_;\n }", "public interface StockPECalculator extends StockCalculator{\n BigDecimal calculatePE(Stock stock, LocalDate calculationDate);\n\n}", "public void addStock(Product p, int n) {\nif (p.id < 0) return;\nif (n < 1) return;\n\nfor (int i = 0; i < productCatalog.size(); i++) {\nProductStockPair pair = productCatalog.get(i);\nif (pair.product.id == p.id) {\nproductCatalog.set(i, new ProductStockPair(p, pair.stock + n));\nreturn;\n}\n}\nproductCatalog.add(new ProductStockPair(p, n));\n}", "public String getStockName() {\n return stockName;\n }", "public void changeValue(ArrayList<Stock> ss){\n value = money;//sets as purchasing power\n for (int i = 0; i < ss.size(); i++) {//adds values of the stocks\n for (int j = 0; j < myStocks.size(); j++) {\n if (myStocks.get(j).getName().equalsIgnoreCase(ss.get(i).getName())){\n value += myStocks.get(j).getNumShares() * ss.get(i).getPrice();\n\n }\n }\n }\n }", "public void setStock(int stock) {\n\t\tthis.stock = stock;\n\t}" ]
[ "0.69139105", "0.68215823", "0.6716515", "0.6712295", "0.66704947", "0.64989734", "0.6386601", "0.62768316", "0.6268673", "0.624811", "0.6225142", "0.62072074", "0.6181191", "0.61625445", "0.6124076", "0.6120187", "0.6101263", "0.6076248", "0.60733956", "0.6044304", "0.6000985", "0.5975137", "0.59509075", "0.5943702", "0.5940497", "0.59165215", "0.5904564", "0.58924496", "0.58884025", "0.5884199", "0.58730555", "0.5862345", "0.5845067", "0.58426684", "0.5840813", "0.58211344", "0.58186", "0.5789727", "0.5788928", "0.57838815", "0.5777585", "0.57660043", "0.5759568", "0.57595164", "0.5754126", "0.57451844", "0.5737707", "0.57194114", "0.5718263", "0.5711137", "0.57072335", "0.57066", "0.57066", "0.57059073", "0.57051986", "0.5696138", "0.568963", "0.5669806", "0.5666651", "0.5663541", "0.56630135", "0.56606466", "0.56584424", "0.5652353", "0.5650499", "0.5645247", "0.5645247", "0.564448", "0.564448", "0.56409365", "0.56321734", "0.5630647", "0.5611302", "0.56092983", "0.56057215", "0.5605372", "0.5599307", "0.5598121", "0.5590248", "0.55901295", "0.55767953", "0.5562923", "0.55613995", "0.5560947", "0.55573523", "0.55558234", "0.5555375", "0.55511254", "0.5541501", "0.5541422", "0.55413646", "0.5533236", "0.55256623", "0.5525202", "0.5524349", "0.55195165", "0.5515008", "0.5513051", "0.5512347", "0.5490269", "0.5486393" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Solution49 s49 = new Solution49(); int result=s49.strstr1("bcabc", "ab"); System.out.println(result); result=s49.strstr2("bcabc", "aab"); System.out.println(result); return; }
{ "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
Initialize the contents of the frame.
private void initialize() { frmAddStudentGroup = new JFrame(); frmAddStudentGroup.getContentPane().setBackground(SystemColor.inactiveCaptionBorder); frmAddStudentGroup.setBackground(Color.YELLOW); frmAddStudentGroup.setResizable(false); frmAddStudentGroup.setTitle(" Time Table Management System"); frmAddStudentGroup.setSize(1350, 728); frmAddStudentGroup.setBounds(0, 0, 1350, 700); frmAddStudentGroup.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmAddStudentGroup.getContentPane().setLayout(null); frmAddStudentGroup.setIconImage(logo); frmAddStudentGroup.setLocationRelativeTo(null); // this method display the JFrame to center position of a screen frmAddStudentGroup.setVisible(true); JPanel panel = new JPanel(); panel.setBounds(0, 0, 1344, 65); panel.setBackground(new Color(0, 139, 139)); frmAddStudentGroup.getContentPane().add(panel); panel.setLayout(null); JLabel lblNewLabel_10 = new JLabel("Advanced"); lblNewLabel_10.setForeground(Color.WHITE); lblNewLabel_10.setFont(new Font("Times New Roman", Font.BOLD, 27)); lblNewLabel_10.setBackground(Color.WHITE); lblNewLabel_10.setBounds(753, 13, 179, 29); panel.add(lblNewLabel_10); /* * //JLabel lblNewLabel = new JLabel("Time Table Management System"); * lblNewLabel.setBounds(261, 5, 822, 61); panel.add(lblNewLabel); * lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 50)); * lblNewLabel.setForeground(Color.WHITE); */ JPanel panel_1 = new JPanel(); panel_1.setBounds(0, 62, 262, 609); panel_1.setBackground(new Color(230, 230, 250)); frmAddStudentGroup.getContentPane().add(panel_1); panel_1.setLayout(null); //home button JButton btnHome = new JButton("Home"); btnHome.setHorizontalAlignment(SwingConstants.LEFT); btnHome.setIcon(new ImageIcon(home_logo)); btnHome.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Home home = new Home(); //home.main(null); frmAddStudentGroup.dispose(); new Home(); } }); btnHome.setBounds(0, 13, 262, 33); panel_1.add(btnHome); btnHome.setForeground(new Color(255, 255, 255)); btnHome.setBackground(new Color(0, 139, 139)); btnHome.setFont(new Font("Tahoma", Font.BOLD, 17)); //lecture button JButton btnLecturers = new JButton("Lecturers"); btnLecturers.setHorizontalAlignment(SwingConstants.LEFT); btnLecturers.setIcon(new ImageIcon(lec_logo)); btnLecturers.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Add_Lecturer add_lecture = new Add_Lecturer(); //add_lecture.main(null); frmAddStudentGroup.dispose(); new Add_Lecturer(); } }); btnLecturers.setForeground(Color.WHITE); btnLecturers.setFont(new Font("Tahoma", Font.BOLD, 17)); btnLecturers.setBackground(new Color(0, 139, 139)); btnLecturers.setBounds(0, 59, 264, 38); panel_1.add(btnLecturers); //student button JButton btnStudents = new JButton("Students"); btnStudents.setHorizontalAlignment(SwingConstants.LEFT); btnStudents.setIcon(new ImageIcon(stu_logo)); btnStudents.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Add_StudentGroup add_st= new Add_StudentGroup(); //add_st.main(null); frmAddStudentGroup.dispose(); new Add_StudentGroup(); } }); btnStudents.setForeground(Color.WHITE); btnStudents.setFont(new Font("Tahoma", Font.BOLD, 17)); btnStudents.setBackground(new Color(0, 139, 139)); btnStudents.setBounds(0, 108, 264, 38); panel_1.add(btnStudents); //subject button JButton btnSubjects = new JButton("Subjects"); btnSubjects.setHorizontalAlignment(SwingConstants.LEFT); btnSubjects.setIcon(new ImageIcon(sub_logo)); btnSubjects.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Add_Subjects add_sub= new Add_Subjects(); //add_sub.main(null); frmAddStudentGroup.dispose(); new Add_Subjects(); } }); btnSubjects.setForeground(Color.WHITE); btnSubjects.setFont(new Font("Tahoma", Font.BOLD, 17)); btnSubjects.setBackground(new Color(0, 139, 139)); btnSubjects.setBounds(0, 157, 264, 38); panel_1.add(btnSubjects); //session button JButton btnSessions = new JButton("Sessions"); btnSessions.setHorizontalAlignment(SwingConstants.LEFT); btnSessions.setIcon(new ImageIcon(session_logo)); btnSessions.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Add_Session add_session= new Add_Session(); //add_session.main(null); frmAddStudentGroup.dispose(); new Add_Session(); } }); btnSessions.setForeground(Color.WHITE); btnSessions.setFont(new Font("Tahoma", Font.BOLD, 17)); btnSessions.setBackground(new Color(0, 139, 139)); btnSessions.setBounds(0, 206, 264, 38); panel_1.add(btnSessions); //Tags button JButton btnTags = new JButton("Tags"); btnTags.setHorizontalAlignment(SwingConstants.LEFT); btnTags.setIcon(new ImageIcon(tag_logo)); btnTags.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Add_Tags add_tag= new Add_Tags(); //add_tag.main(null); frmAddStudentGroup.dispose(); new Add_Tags(); } }); btnTags.setForeground(Color.WHITE); btnTags.setFont(new Font("Tahoma", Font.BOLD, 17)); btnTags.setBackground(new Color(0, 139, 139)); btnTags.setBounds(0, 255, 264, 38); panel_1.add(btnTags); //room button JButton btnRooms = new JButton("Rooms"); btnRooms.setHorizontalAlignment(SwingConstants.LEFT); btnRooms.setIcon(new ImageIcon(room_logo)); btnRooms.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //ManageSessionsRooms m_rooms= new ManageSessionsRooms (); //m_rooms.main(null); frmAddStudentGroup.dispose(); new ManageSessionsRooms(); } }); btnRooms.setForeground(Color.WHITE); btnRooms.setFont(new Font("Tahoma", Font.BOLD, 17)); btnRooms.setBackground(new Color(0, 139, 139)); btnRooms.setBounds(0, 304, 264, 38); panel_1.add(btnRooms); //working days and hours button JButton btnWorkingDays = new JButton("Working days & Hours"); btnWorkingDays.setHorizontalAlignment(SwingConstants.LEFT); btnWorkingDays.setIcon(new ImageIcon(days_logo)); btnWorkingDays.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //AddWorkingdays w_days= new AddWorkingdays(); //w_days.main(null); frmAddStudentGroup.dispose(); new AddWorkingdays(); } }); btnWorkingDays.setForeground(Color.WHITE); btnWorkingDays.setFont(new Font("Tahoma", Font.BOLD, 17)); btnWorkingDays.setBackground(new Color(0, 139, 139)); btnWorkingDays.setBounds(0, 353, 264, 38); panel_1.add(btnWorkingDays); //location button JButton btnLocations = new JButton("Locations"); btnLocations.setHorizontalAlignment(SwingConstants.LEFT); btnLocations.setIcon(new ImageIcon(location_logo)); btnLocations.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //ManageLocations m_locations= new ManageLocations(); //m_locations.main(null); frmAddStudentGroup.dispose(); new ManageLocations(); } }); btnLocations.setForeground(Color.WHITE); btnLocations.setFont(new Font("Tahoma", Font.BOLD, 17)); btnLocations.setBackground(new Color(0, 139, 139)); btnLocations.setBounds(0, 402, 264, 38); panel_1.add(btnLocations); //statics button JButton btnStatistics = new JButton("Statistics"); btnStatistics.setHorizontalAlignment(SwingConstants.LEFT); btnStatistics.setIcon(new ImageIcon(st_logo)); btnStatistics.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Statistics stat= new Statistics (); //stat.main(null); frmAddStudentGroup.dispose(); new Statistics(); } }); btnStatistics.setForeground(Color.WHITE); btnStatistics.setFont(new Font("Tahoma", Font.BOLD, 17)); btnStatistics.setBackground(new Color(0, 139, 139)); btnStatistics.setBounds(0, 451, 264, 38); panel_1.add(btnStatistics); //advanced button JButton btnAdvanced = new JButton("Advanced"); btnAdvanced.setHorizontalAlignment(SwingConstants.LEFT); btnAdvanced.setIcon(new ImageIcon(adv_logo)); btnAdvanced.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Consecutive_sessions a_session= new Consecutive_sessions (); //a_session.main(null); frmAddStudentGroup.dispose(); new Consecutive_sessions(); } }); btnAdvanced.setForeground(Color.WHITE); btnAdvanced.setFont(new Font("Tahoma", Font.BOLD, 17)); btnAdvanced.setBackground(new Color(0, 139, 139)); btnAdvanced.setBounds(0, 500, 264, 38); panel_1.add(btnAdvanced); //generate button JButton btnTimetableGenerate = new JButton("Timetable Generate"); btnTimetableGenerate.setHorizontalAlignment(SwingConstants.LEFT); btnTimetableGenerate.setIcon(new ImageIcon(time_logo)); btnTimetableGenerate.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //Consecutive_sessions a_session= new Consecutive_sessions (); //a_session.main(null); frmAddStudentGroup.dispose(); new Lecturer(); } }); btnTimetableGenerate.setForeground(Color.WHITE); btnTimetableGenerate.setFont(new Font("Tahoma", Font.BOLD, 17)); btnTimetableGenerate.setBackground(new Color(0, 139, 139)); btnTimetableGenerate.setBounds(0, 549, 264, 38); panel_1.add(btnTimetableGenerate); JPanel panel_6 = new JPanel(); panel_6.setLayout(null); panel_6.setBackground(new Color(230, 230, 250)); panel_6.setBounds(263, 62, 1081, 603); frmAddStudentGroup.getContentPane().add(panel_6); JPanel panel_6_1_1 = new JPanel(); panel_6_1_1.setLayout(null); panel_6_1_1.setBounds(0, 40, 1081, 38); panel_6.add(panel_6_1_1); JLabel lblNewLabel_1_1 = new JLabel("Non overlapping Sessions"); lblNewLabel_1_1.setForeground(new Color(0, 128, 128)); lblNewLabel_1_1.setFont(new Font("Times New Roman", Font.BOLD, 20)); lblNewLabel_1_1.setBounds(494, 0, 278, 31); panel_6_1_1.add(lblNewLabel_1_1); JButton btnNewButton_2_1 = new JButton("Conseccutive Sessions"); btnNewButton_2_1.setFont(new Font("Tahoma", Font.BOLD, 14)); btnNewButton_2_1 .addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Consecutive_sessions(); } }); btnNewButton_2_1.setBounds(0, 0, 268, 37); panel_6.add(btnNewButton_2_1); JButton btnNewButton_2_1_1 = new JButton("Parallel Sessions"); btnNewButton_2_1_1.setFont(new Font("Tahoma", Font.BOLD, 14)); btnNewButton_2_1_1 .addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Parallel_sessions(); } }); btnNewButton_2_1_1.setBounds(269, 0, 275, 37); panel_6.add(btnNewButton_2_1_1); JButton btnNewButton_2_1_2 = new JButton("Non Overlapping Sessions"); btnNewButton_2_1_2.setFont(new Font("Tahoma", Font.BOLD, 14)); btnNewButton_2_1_2 .addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Non_overlappingSessions(); } }); btnNewButton_2_1_2.setBounds(540, 0, 275, 37); panel_6.add(btnNewButton_2_1_2); JButton btnNewButton_2_1_3 = new JButton("Not Available Times"); btnNewButton_2_1_3.setFont(new Font("Tahoma", Font.BOLD, 14)); btnNewButton_2_1_3.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //NotAvailableTime not= new NotAvailableTime(); //not.main(null); frmAddStudentGroup.dispose(); new NotAvailableTime(); } }); btnNewButton_2_1_3.setBounds(813, 0, 268, 37); panel_6.add(btnNewButton_2_1_3); JSeparator separator_1 = new JSeparator(); separator_1.setBounds(0, 37, 1094, 19); panel_6.add(separator_1); separator_1.setForeground(new Color(32, 178, 170)); separator_1.setBackground(new Color(0, 139, 139)); JPanel panel_7 = new JPanel(); panel_7.setLayout(null); panel_7.setBounds(88, 110, 928, 456); panel_6.add(panel_7); JLabel lblNewLabel_4 = new JLabel("Session 1"); lblNewLabel_4.setFont(new Font("Times New Roman", Font.BOLD, 15)); lblNewLabel_4.setBounds(52, 29, 80, 21); panel_7.add(lblNewLabel_4); comboBox_ps = new JComboBox(); comboBox_ps.setFont(new Font("Tahoma", Font.BOLD, 14)); comboBox_ps.setModel(new DefaultComboBoxModel(new String[] {"------------select session_---------------"})); comboBox_ps.setBounds(156, 29, 723, 33); panel_7.add(comboBox_ps); fillsesions(); //Add non overlapping sessions JButton btnNewButton_2 = new JButton("ADD"); btnNewButton_2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { String session=comboBox_ps.getSelectedItem().toString(); try { Connection con = DbConnection.connect(); String query = "INSERT INTO nonOverlapping values(null, '" + session + "')"; Statement sta = con.createStatement(); int x = sta.executeUpdate(query); if (x == 0) { JOptionPane.showMessageDialog(null, " This is alredy exist","Alert",JOptionPane.WARNING_MESSAGE); } else { JLabel label = new JLabel("Non overlapping Sessions added Sucessfully!"); label.setHorizontalAlignment(SwingConstants.CENTER); JOptionPane.showMessageDialog(null, label); refreshTable(); } con.close(); } catch (Exception exception) { System.out.println("xxxxxxxxxxxxxxxxxxxxxxx"); } } }); btnNewButton_2.setForeground(Color.WHITE); btnNewButton_2.setFont(new Font("Tahoma", Font.BOLD, 13)); btnNewButton_2.setBackground(new Color(0,139,139)); btnNewButton_2.setBounds(520, 122, 167, 40); panel_7.add(btnNewButton_2); //clear input feilds JButton btnNewButton_3 = new JButton("CLEAR"); btnNewButton_3.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { comboBox_ps.setSelectedIndex(0); } }); btnNewButton_3.setForeground(Color.WHITE); btnNewButton_3.setFont(new Font("Tahoma", Font.BOLD, 13)); btnNewButton_3.setBackground(new Color(0, 139, 139)); btnNewButton_3.setBounds(715, 122, 164, 40); panel_7.add(btnNewButton_3); //table view JScrollPane scrollPane = new JScrollPane(); scrollPane.setBounds(52, 244, 827, 151); panel_7.add(scrollPane); table = new JTable(); table.setRowHeight(30); //table header JTableHeader h = table.getTableHeader(); h.setBackground(new Color(153,153,153)); h.setForeground(Color.WHITE); h.setFont(new Font("Times New Roman", Font.BOLD, 17)); table.setFont(new Font("Times New Roman", Font.BOLD, 14)); table.setModel(new DefaultTableModel( new Object[][] { }, new String[] { } )); scrollPane.setViewportView(table); try { Connection con = DbConnection.connect(); String query="select * from nonOverlapping "; PreparedStatement pst=con.prepareStatement(query); ResultSet rs=pst.executeQuery(); table.setModel(DbUtils.resultSetToTableModel(rs)); TableColumnModel columnModel = table.getColumnModel(); columnModel.getColumn(0).setPreferredWidth(6); columnModel.getColumn(1).setPreferredWidth(700); //refreshTable(); } catch(Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
Home home = new Home(); home.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Home(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Home() {\n initComponents();\n ShowLauncher();\n }", "public void goHome();", "public void gotoHome(){ application.gotoHome(); }", "private FXHome() {}", "public HomePage() {\n }", "public void home() {\n\t\tUserUI ui = new UserUI();\n\t\tui.start();\n\t}", "public static void main(String[] args) {\n\r\n\t\thomeloan hl = new homeloan();\r\n\t\thomeloan h2 = new homeloan();\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tHello7 h2=null;\r\n\t\th2.show();\r\n\t\th2=new Hello7();\r\n\t\th2.show();\r\n\t\tHello7.show();\r\n\t\t\r\n\t\tHello8 h=new Hello8();\r\n\t\th.show();\r\n\t\t\r\n\t}", "public MainEntryPoint() {\r\n\r\n }", "public static void main(String[] args) \r\n\t{\r\n\t\tLibrary library = new Library();\r\n\t\tgreeting();\r\n\r\n\t\tlibrary.menu();\r\n\t}", "public void home_index()\n {\n Home.index(homer);\n }", "public static void main(String[] args) {\r\n // TODO code application logic here\r\n ObjectFactory.getUIinstance().getHomeInstance().setVisible(true);\r\n }", "protected void callHome() {\n\t\tIntent intent = new Intent(this, AdminHome.class);\r\n\t\tstartActivity(intent);\r\n\t}", "public static void main(String[] args) {\nDesktop desk=new Desktop();\r\ndesk.hardWareResources();\r\ndesk.softwareWareResources();\r\ndesk.deskTopModel();\r\n\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(){\n\t}", "@Override\n public void home() {\n System.out.println(\"They live underground.\");\n }", "public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }", "@Test\r\n\tpublic void mainTest(){\r\n\t\tMain m = new Main();\r\n\t\tm.main(null);\r\n\t}", "public home() {\n initComponents();\n }", "public home() {\n initComponents();\n }", "public home() {\n initComponents();\n }", "public static void main(String[] args) {\n MyClass m;\n m= new MyClass();\nm.display();\n\t}", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "private Main ()\n {\n super ();\n }", "public static void main(String[] args) {\n new screen();\n\n\n\n }", "public static void main(String[] args) {\n\t\tHome home = new Home();\n\t\tRoom1 obj1 = new Room1 ();\n\t\tRoom2 obj2 = new Room2();\n\t\tRoom3 obj3 = new Room3();\n\t\tRoom4 obj4 = new Room4();\n\t\t//obj1.ac (76);\n\t\t//obj1.ac();\n\t\tobj1.RoomColor();\n\t\tobj2.RoomColor();\n\t\tobj3.RoomColor();\n\t\tobj4.Sum();\n\t\thome.Sum();\n\t\thome.Abc(4);\n\t\tobj4.Abc(4);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "String home();", "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}", "public HomePage() {\n initComponents();\n }", "public HomePage() {\n initComponents();\n }", "public void main(){\n }", "public HomePageTest(){\n\t\tsuper();\n\t}", "public Main() {\r\n\t}", "public Main() {}", "public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n home = new Home();\n home.setVisible(true);\n /*ThreadRunnable callbackRunnable = new ThreadRunnable(home);\n new Thread(callbackRunnable).start();*/\n ThreadSocket server = new ThreadSocket();\n new Thread(server).start();\n InitThreadRunnable initRunnable = new InitThreadRunnable(home);\n new Thread(initRunnable).start();\n home.security(0);\n System.out.println(\"All the threads are started\");\n }", "public Homepage() {\n initComponents();\n }", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "public void run() {\n\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t}", "void gotoMain();", "public void myapp() {\n\n\n }", "public static void main ( String[] args ) {\n PhoneBook myApp = new PhoneBook(); \r\n }", "public Home() {\n initComponents();\n \n }", "public Main() {\n\t\tsuper();\n\t}", "public void startApp()\r\n\t{\n\t}", "public EntryPoint()\n { \n \tpushScreen(new HelperScreen());\n }", "public HomePage(){\r\n\tPageFactory.initElements(driver, this);\t\r\n\t}", "void startup();", "void startup();", "public Main() {\n \n \n }", "private Main() {}", "public Main() {\r\n }", "public Main() {\r\n }", "public void Main(){\n }", "public StartUp(){\r\n \r\n }", "public Home() {\r\n initComponents();\r\n }", "public Home() {\r\n initComponents();\r\n }", "public static void main(String[] args) {\n\t\tHomeLoan homeLoan = new HomeLoan();\n\t\thomeLoan.applyForLoan();\n\t\thomeLoan.emi();\n\t\t\n\t\t/*Naukri obj = new Naukri();\n\t\tobj.search(\"Java\");\n\t\tobj.search(\"Java\",\"Noida\");\n\t\tobj.search(\"Java\",0);\n\t\tobj.search(\"Java\",\"Noida\",0);*/\n\n\t}", "private Main() {\n\n super();\n }", "public abstract void startup();", "public static void main(String[] args) throws IOException {\n// new Homework01();\n new Homework02();\n }", "public static void main() {\n \n }", "public Home() {\n initComponents();\n }", "public Home() {\n initComponents();\n }", "public Home() {\n initComponents();\n }", "public Main() {\n }", "public Main() {\n }", "public static void main(String[] args) \r\n\t{\n one obj = new one();\r\n\t}", "void launch();", "void launch();", "void launch();", "private ThoseMain()\n {\n // Do nothing\n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "private Main() {\n }", "public static void main(String[] args) {\nLogo oo=new Logo();\noo.title();\n\n\t}", "public static void main(String args[]) throws Exception\r\n {\r\n\t HI_login hi= new HI_login();\r\n\t hi.HiLogin();\r\n\t \r\n\t ASP_Page asp=new ASP_Page();\r\n\t asp.VerifyAspPage();\r\n\t\r\n\t/*Acuity_admin_login admin= new Acuity_admin_login();\r\n\tadmin.acuity();\r\n\t*/\r\n\t\r\n\t/* HI_reg hireg=new HI_reg();\r\n\t hireg.hireg();\r\n\t \r\n\t //ASP_reg aspreg= new ASP_reg();\r\n\t// aspreg.aspreg();\r\n\t */\r\n\t\r\n \r\n}", "public HomePage(){\r\n\t\tPageFactory.initElements(driver, this);\r\n\r\n\r\n\t}", "public Home() {\n initComponents();\n setTitle(\"Home\");\n setResizable(false);\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2);\n adminButton.setVisible(Login.isAdmin());\n\n String info = null;\n try {\n info = DataBase.showAccDet(Login.getIDAcc());\n } catch (SQLException ex) {\n Logger.getLogger(Home.class.getName()).log(Level.SEVERE, null, ex);\n }\n String[] cuv = info.split(\" \");\n welcomeLabel.setText(\"Welcome back, \" + cuv[1] + \"!\");\n\n }", "public static void main(String[] args) {\n Initial main = new Initial();\n main.login = login.getInstance();\n main.login.setMain(main);\n }", "public HomePage() \r\n\t{\r\n\t\tPageFactory.initElements(driver, this);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n Father f = new Father();\n f.browser();\n f.loginDetails();\n }", "public static void main(String[] args) {\n\n\n //1.5 Call the above instance method into the Main method and Run the programme.\n\n Program1 obj = new Program1();\n obj.m1();\n\n\n }", "public static void main(String[] args) {\n MainIntrence mainintrence = new MainIntrence();\r\n\r\n\r\n\r\n }", "public Main() {\n }", "public HomeScreen() {\n initComponents();\n }", "public HomePage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "public static void main(String[] args) {\n new Main();\n }", "public static void main(String[] args) {\n \r\n MenuPrincipal iniciar=new MenuPrincipal();\r\n iniciar.mostrarMenu();\r\n \r\n \r\n }", "public static void main(String[] args) {\n\n //MainWindow mainWindow=new MainWindow();\n\n }", "public HomePage(){\n\t\t\tPageFactory.initElements(driver, this); \n\t\t}", "public static void main()\n\t{\n\t}", "public static void main(String args[]) {\n\t\tUserLogin user = new UserLogin();\n\t\tuser.main(args);\n\t\t//UserHomepage user = new UserHomepage(\"kidus\");\n\t\t//user.setTitle(\"Welcome \");\n\t //user.setVisible(true);\n\t}", "public Application()\n {\n newsFeed = new NewsFeed();\n test = new Test();\n \n makeDummies();\n display();\n displayShortSummary();\n runTest();\n }", "public static void main(String[] args){\n Menu iniciar_menu = new Menu();\r\n }", "private void homemenu() \n\n{\nstartActivity (new Intent(getApplicationContext(), Home.class));\n\n\t\n}", "public HomePage(){\n PageFactory.initElements(driver, this);\n }", "public static void main(String []args){\n Developer d1 = new Developer(24,\"Zayn\");\n d1.walk();\n }", "public HomePage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "public static void main(String[] args) {\n \n RunProject r = new RunProject(); // creates new instance of RunProject class\n r.mainMenu(); //runs main menu method for new instance.(r)\n \n }", "@SuppressWarnings(\"unused\")\n\tpublic static void main(String[] args) \n {\n \tMainMenu main = new MainMenu();\n }", "public homeScreen() throws Exception {\n\t\tinitialize();\n\t}" ]
[ "0.72928286", "0.7264683", "0.720523", "0.70408523", "0.6984557", "0.696074", "0.6919641", "0.69099987", "0.6879576", "0.6867097", "0.68426764", "0.68422985", "0.6799225", "0.6765037", "0.676361", "0.6746435", "0.6733024", "0.6723352", "0.6691096", "0.6691096", "0.6691096", "0.66750216", "0.6667477", "0.6648295", "0.6633117", "0.6630063", "0.6629753", "0.65820545", "0.6580376", "0.6580376", "0.65565664", "0.6530704", "0.6529935", "0.6527145", "0.65162057", "0.6509949", "0.65074617", "0.65074617", "0.650125", "0.6491548", "0.6486955", "0.6482382", "0.6478678", "0.64786065", "0.64734876", "0.6458822", "0.6457211", "0.6457211", "0.6451442", "0.64508235", "0.6449654", "0.6449654", "0.64493906", "0.643258", "0.6431325", "0.6431325", "0.6430921", "0.6418392", "0.64159745", "0.6413228", "0.64092934", "0.6398739", "0.6398739", "0.6398739", "0.6397634", "0.6397634", "0.6397368", "0.6390847", "0.6390847", "0.6390847", "0.63859797", "0.63859636", "0.63858163", "0.6385249", "0.6384372", "0.63822114", "0.6381127", "0.6373866", "0.6371697", "0.6365986", "0.6358426", "0.6346842", "0.6345532", "0.63452756", "0.63435847", "0.63332695", "0.63273746", "0.63247573", "0.63122547", "0.63120264", "0.63114226", "0.6308814", "0.6307926", "0.63056713", "0.6303362", "0.6302217", "0.6300443", "0.62951", "0.6294894", "0.6293412", "0.62925667" ]
0.0
-1
Add_Lecturer add_lecture = new Add_Lecturer(); add_lecture.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Add_Lecturer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Lecture() {\n\t\tthis.name = \"default lecture name\";\n\t\tthis.credits = 1.0;\n\t\tSystem.out.println(\"lecture created\");\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Welcome to our Java Tutorial Page\");\r\n\t\t\r\n\t\tStudent rookieStudent=new Student();\r\n\t\trookieStudent.set_id(0);\r\n\t\trookieStudent.set_mail(\"[email protected]\");\r\n\t\trookieStudent.set_name(\"Shmouel\");\r\n\t\trookieStudent.set_password(\"youcantlearnthis\");\r\n\t\trookieStudent.set_phone(\"+723 524 08 23\");\r\n\t\trookieStudent.set_username(\"ShmouelTheVanguard\");\r\n\t\tCourses []newList=new Courses[2];\r\n\t\trookieStudent.set_courseList(newList);\r\n\t\tStudent []newList2=new Student[2];\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tCourses courseTheMagnificent=new Courses(0,\"Java Courses\",\"Programming\",\"Mr. E.D. :)\",\"Computer Science\",true);\r\n\t\tcourseTheMagnificent.set_studentList(newList2);\r\n\t\t\r\n\t\tAddingCourses addCourseOperation=new AddingCourses(rookieStudent.get_courseList(),courseTheMagnificent.get_id\r\n\t\t\t\t(),courseTheMagnificent.get_title(),courseTheMagnificent.get_topic(),courseTheMagnificent.get_author(),\r\n\t\t\t\tcourseTheMagnificent.get_category(),courseTheMagnificent.get_status());\r\n\t\tAddingStudents addStudentOperation=new AddingStudents(courseTheMagnificent.get_studentList(),rookieStudent.get_id(),rookieStudent.get_name(),rookieStudent.get_mail(),rookieStudent.get_phone(),rookieStudent.get_username(),rookieStudent.get_password());\r\n\t\trookieStudent.showAllStudents(rookieStudent);\r\n\t\tcourseTheMagnificent.showAllCourses(courseTheMagnificent);\r\n\t\t\r\n\t}", "public void setLecturer()\n {\n //Call the Lecturer constructor passing it the name of the subject as a parameter\n //lecturer = new Lecturer(getNameOfSubject());\n }", "public void addLecture(String lecture){\n\t\t//todo: fill this method\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tQuestion11 obj=new Question11();\n\t\tSystem.out.println(obj.practiceOne());\n\n\t}", "public static void main(String[] args) {\n\n new DeleteLecturer().setGUI();\n }", "void addHadithChapterIntro(Object newHadithChapterIntro);", "public exerciseAddGUI() {\n initComponents();\n }", "public static void exercise10() {\n }", "public static void main(String[] args) {\n\t\tExam a = new Exam(); //객체 인스턴트 생성\n\t\n\t\ta.Ex1(); \t\t\t\t//부모클래스의 메소드를 활용\n\n\t}", "public TutorialStep1() {\n\n }", "public static void main(String[] args) {\n Course introProgramming = new IntroToProgrammingCourse(\"Intro to Programming\", \"330\", 2);\n Course introJava = new IntroJavaCourse(\"Intro to Java Programming\", \"331\", 3, \"Intro to Programming\");\n AdvancedJavaCourse advancedJava = new AdvancedJavaCourse(\"Advanced Java Programming\", \"332\", 4, \"Intro to Java Programming\");\n System.out.println(introProgramming.printCourse());\n System.out.println(introJava.printCourse());\n System.out.println(advancedJava.printCourse());\n }", "public void setLecturer(String lecturer) {\n this.lecturer = lecturer;\n }", "public Add_Lecture_Form() {\n initComponents();\n \n this.setVisible(true);\n this.pack();\n this.setLocationRelativeTo(null);\n }", "void teach();", "public static void main(String[] args) {\n\n Performer Joe = new Performer(\"Joseph Stalin\", \"The Hottest Band on Earth\");\n Joe.addHit(\"Gulag\");\n //System.out.println(Joe);\n\n Performer OR = new Performer(\"Olivia Rodrigo\", \"#1 debut artist\");\n OR.addHit(\"Drivers License\");\n OR.addHit(\"Jealously Jealousy\");\n OR.addHit(\"Deja Vu\");\n // System.out.println(OR);\n\n Performer TS = new Performer(\"Taylor Swift\", \"Top Female Artist\");\n TS.addHit(\"22\");\n TS.addHit(\"Red\");\n TS.addHit(\"Love Story\");\n // System.out.println(TS);\n\n Concert Coachella = new Concert(\"Coachella\", \"The Biggest Music Festival on Earth\", \"Indio, California\");\n Coachella.addPerformer(TS);\n Coachella.addPerformer(OR);\n System.out.println(Coachella);\n\n\n\n\n //System.out.println(OR);\n // System.out.println(TS);\n\n }", "public static Teacher addTeacher() {\n\n\n Teacher newTeacher = new Teacher();\n\n //create a Scanner object to let user make an input\n\n Scanner s = new Scanner(System.in);\n System.out.println(\"Enter the first name\");\n String firstname = s.nextLine();\n newTeacher.setFirstName(firstname);\n\n\n System.out.println(\"Enter the last name\");\n String lastName = s.nextLine();\n newTeacher.setLastName(lastName);\n\n\n System.out.println(\"Enter your email\");\n String yourEmail = s.nextLine();\n newTeacher.seteMail(yourEmail);\n\n\n System.out.println(\"Enter your ID number\");\n String yourID = s.nextLine();\n newTeacher.setNumberID(yourID);\n\n System.out.println(\"Enter the class that teacher teaches\");\n String teaches = s.nextLine();\n// newTeacher.setTeaches(teaches);\n\n\n return newTeacher;\n\n }", "void pramitiTechTutorials() {\n\t\n}", "public static void main(String[] args) {\nStudent s=new Student();\ns.display();\n\t}", "public TelaQuiz() {\n initComponents();\n }", "public static void main(String[] args) {\n\t\tnew TeacherExam();\r\n\t}", "public static void main(String[] args) {\n ArrayList<String> tab = new ArrayList<>();\n tab.add(\"First\");\n tab.add(\"Hello\");\n tab.add(\"Last\");\n //Creation du modele\n LeModele leModele = new LeModele(tab);\n\n //Creation du controleur\n LeControleur leControleur = new LeControleur(leModele);\n\n //Creation de la vue\n LaVue laVue = new LaVue(leControleur);\n\n\n //Test\n\n\n }", "public static void main(String[] args) \r\n\t{\n\t\tnew Questions(10);\r\n\t\t\r\n\t}", "public void mostrarLectura(TomarLectura tomarLectura, Lectura lecturaActual);", "public static void main(String[] args) {\n JavaCourse java = new JavaCourse(); // subclass of Course.java\n java.printWelcomeMessage();\n java.printName(); \n // You are welcome in Java Course\n }", "public static void main(String[] args) {\n Learner[] learners = new Learner[2];\n learners[0] = new Student(0, \"batman\");\n learners[1] = new Student(1, \"spiderman\");\n\n Instructor instructor = new Instructor(500, \"Obama\");\n\n //instructor.lecture(learners, 3);\n instructor.teach(learners[0], 2); //outputs 2 because instructor taught for 2 hours\n System.out.println(learners[1].getTotalStudyTime()); //output 0 because this student hasnt learned anything\n\n\n }", "public addteacher() {\n initComponents();\n }", "public Professor()\n\t{\n\t\t//stuff\n\t}", "public static void doExercise1() {\n // TODO: Complete Exercise 1 Below\n\n }", "public static void main(String[] args) {\n\t\tPerson firstPerson = new Person();//instansiasi by reference variable\n\t\tPerson secondPerson = new Person(\"Rizalddi\", \"Rnensia\", \"Male\", \"Music, Food\", 21);//instansiasi by konstruktor\n\t\tPerson thirdPerson = new Person(\"Arul\", \"Aral\", \"Male\", \"soccer\", 30);//instansiasi by konstruktor\n\t\t\n\t\t\n\t\tfirstPerson.firstName\t= \"Rizaldi\";// instansiasi by reference variable\n\t\tfirstPerson.lastName\t= \"Rnensia\";\n\t\tfirstPerson.age\t\t\t= 29;\n\t\tfirstPerson.gender\t\t= \"Male\";\n\t\tfirstPerson.interest\t= \"Music, food, travel\";\n\t\t\n\t\tSystem.out.println(\"Orang ke 1 : \");\n\t\tfirstPerson.biodata();// instansiasi by method\n\t\tfirstPerson.greeting();\n\t\tSystem.out.println(\"Orang ke 2 : \");\n\t\tsecondPerson.biodata();// instansiasi by method\n\t\tsecondPerson.greeting();\n\t\tSystem.out.println(\"Orang ke 3 : \");\n\t\tthirdPerson.biodata();// instansiasi by method\n\t\tthirdPerson.greeting();\n\t\tthirdPerson.sayThanks();\n\t\t\n\t\tTeacher firstTeacher = new Teacher();\n\t\tfirstTeacher.firstName\t= \"asep\";\n\t\tfirstTeacher.lastName\t= \"Sutiawan\";\n\t\tfirstTeacher.age\t\t= 29;\n\t\tfirstTeacher.gender\t\t= \"Male\";\n\t\tfirstTeacher.interest\t= \"noodles\";\n\t\tfirstTeacher.subject\t= \"Math\";\n\t\t\n\t\tSystem.out.println(\"\\nGuru ke 1 : \");\n\t\tfirstTeacher.biodata();\n\t\tfirstTeacher.greeting();\n\n\t\tStudent firstStudent = new Student(\"Richa\", \"Fitria\", \"Female\", \"Makan\", 20);\n\t\t\n\t\tSystem.out.println(\"\\nMurid ke 1 : \");\n\t\tfirstStudent.biodata();\n\t\tfirstStudent.greeting();\n\t}", "Programming(){\n\t}", "public static void main(String[] args) {\n Sal s=new Sal();\n s.getinfo();\n s.Addsal();\n s.Addwork();\n s.display();\n\t}", "TeacherMenu(ArrayList<Person> people, int id)\n {\n in = new Scanner(System.in);\n teachers = new ArrayList<Person>();\n teachers = people;\n teacherID = id;\n input = 0;\n }", "public static void main(String[] arg) {\n Quiz myQuiz = new Quiz();\n }", "public Lecturer(Lecturer lect) {\n this(lect.getFirstName(),lect.getLastName(),lect.getPhone(),lect.getAddress());\n }", "public static void main(String[] args) {\n\t\tloadFiles(\"/Users/markdidio/Desktop/Courses.txt\", \"course\");\n\t\tloadFiles(\"/Users/markdidio/Desktop/CourseOfferings.txt\", \"courseOfferings\");\n\t\tloadFiles(\"/Users/markdidio/Desktop/Lecturer.txt\", \"lecturer\");\n\n\t\t//Sets up students\n\t\tmark = new Student(\"s3603887\", \"123456\", \"Mark\", \"Di Dio\", \"student\", MainScene.currentCourseArray,\n\t\t\t\tMainScene.passedCourseArray);\n\t\tross = new Student(\"s3601834\", \"654321\", \"Ross\", \"Tsingos\", \"student\", MainScene.currentCourseArray,\n\t\t\t\tMainScene.passedCourseArray);\n\t\tzoe = new Student(\"s3601834\", \"1\", \"Zoe\", \"Zhang\", \"student\", MainScene.currentCourseArray,\n\t\t\t\tMainScene.passedCourseArray);\n\t\tjiang = new Student(\"s3601834\", \"2\", \"Jiang\", \"--\", \"student\", MainScene.currentCourseArray,\n\t\t\t\tMainScene.passedCourseArray);\n\t\tmax = new Student(\"s3603887\", \"3\", \"Max\", \"Black\", \"student\", MainScene.currentCourseArray,\n\t\t\t\tMainScene.passedCourseArray);\n\n\t\t//Adds to list\n\t\tstudentList.add(mark);\n\t\tstudentList.add(ross);\n\t\tstudentList.add(zoe);\n\t\tstudentList.add(jiang);\n\t\tstudentList.add(max);\n\n//\t\t If I remove this course it will fail\n\t\t passedCourseArray.add(prog);\n\t\t passedCourseArray.add(comp);\n\t\t passedCourseArray.add(web);\n\t\t passedCourseArray.add(data);\n\n\t\t// courseArray.add(SEF);\n\t\t// enrolCourseArray.add(iPhone);\n\t\t// enrolCourseArray.add(security);\n\t\t// enrolCourseArray.add(database);\n\n\t\t //Sets up other entities\n\t\tjohn = new Admin(\"e1234567\", \"password\", \"John\", \"Smith\", \"admin\");\n\t\tbek = new Coordinator(\"c1234567\", \"password\", \"Bek\", \"Smith\", \"coordinator\");\n\n\t\tadminList.add(john);\n\t\tcoordinatorList.add(bek);\n\n\t\t//Begin \n\t\task();\n\n\t}", "public static void main(String[] args){\n ArrayList<Employee> newEmployee = new ArrayList<Employee>();\n \n //Scanner used for user input\n Scanner input = new Scanner(System.in);\n \n welcome();\n menu(input, newEmployee);\n \n }", "LectureProject createLectureProject();", "public static void main(String[] args) {\n\r\n clsAlumno alumno1 = new clsAlumno();\r\n\r\n alumno1.setNombre(\"Eneko\");\r\n\r\n alumno1.setApellido(\"Galdos\");\r\n\r\n alumno1.setDNI(\"72826873H\");\r\n\r\n alumno1.setCreditos(60);\r\n\r\n alumno1.mostrarPersona();\r\n\r\n alumno1.mostrarCreditos();\r\n\r\n System.out.println();\r\n\r\n clsProfesor profesor1 = new clsProfesor();\r\n\r\n profesor1.setNombre(\"Javier\");\r\n\r\n profesor1.setApellido(\"Cerro\");\r\n\r\n profesor1.setDNI(\"11111111A\");\r\n\r\n profesor1.setDepartamento(\"Informática\");\r\n\r\n profesor1.mostrarPersona();\r\n\r\n profesor1.mostrarDepartamento();\r\n\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Testing basic functions...\");\n\t\tQuiz q = new QuizImpl(1, \"Test quiz\");\n\t\tSystem.out.println(\"Quiz ID: \" + q.getId());\n\t\tSystem.out.println(\"Quiz name: \" + q.getTitle());\n\t\tSystem.out.println(\"Adding questions...\");\n\t\tq.addQuestions();\n\t\tSystem.out.println(\"Printing questions...\");\n\t\tq.printQuestions();\n\t}", "public static void main(String[] args){\n //The driver of the methods created above\n //first display homeowork header\n homeworkHeader();\n //calls driver method\n System.out.println(\"Calling driver method:\");\n driver(true);//runs choice driver\n //when prompted for a choice input 9 to see test driver\n System.out.println(\"End calling of driver method\");\n \n }", "public static Course addCourse() {\n\n Course newCourse = new Course();\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter the name of course\");\n String courseName = scan.nextLine();\n newCourse.setCourseName(courseName);\n\n System.out.println(\"Enter course ID number\");\n String numberID = scan.nextLine();\n newCourse.setCourseID(numberID);\n\n System.out.println(\"Enter the first and last name of teacher\");\n String name = scan.nextLine();\n\n// newCourse.setTaughtBy(name);\n\n System.out.println(\"Enter the first and last name of student\");\n String name2 = scan.nextLine();\n\n// newCourse.setTakenBy(name2);\n\n\n return newCourse;\n\n }", "public static void main(String[] args){\n System.out.println(\"sss\");\n Test list=new Test();\n list.insert(1,1);\n list.insert(2,2);\n list.insert(3,3);\n list.selection(3);\n list.selection(1);\n list.selection(2);\n }", "public static void doExercise3() {\n // TODO: Complete Exercise 3 Below\n\n }", "public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);\n\n //new MakeAppoinment().setVisible(true);\n //upldMedRec.setVisible(true);\n //makeAppt.setVisible(true);\n //showScreen1();\n //jButton2ActionPerformed(java.awt.event.ActionEvent evt)\n \n //makeAppt.jButton2ActionPerformed();\n\n \n \n }", "public static void main(String[] args) {\n\t\tScanner k = new Scanner(System.in);\r\n\t\t\r\n\t\t//instantiate Course grades class\r\n\t\tCourseGrades c1 = new CourseGrades();\r\n\t\t\r\n\t\t//instantiate all classes for the test values\r\n\t\tGradedActivity g1 = new GradedActivity();\r\n\t\tPassFailExam p1 = new PassFailExam(50, 12, 75.0);\r\n\t\tEssay e1 = new Essay();\r\n\t\tFinalExam f1 = new FinalExam(50, 13);\r\n\t\t\r\n\t\t//setting the values that are set by using setters\r\n\t\te1.setScore(84);\r\n\t\tg1.setScore(88);\r\n\t\t\r\n\t\tc1.setLab(g1);\r\n\t\tc1.setPassFailExam(p1);\r\n\t\tc1.setEssay(e1);\r\n\t\tc1.setFinalExam(f1);\r\n\t\t\r\n\t\t//display output be calling the toString\r\n\t\tSystem.out.println(c1);\r\n\r\n\t}", "public static void main(String[] args) throws IOException {\n\n\n QuizModel quiz = new QuizModel();\n QuizView quizView = new QuizView();\n QuizController quizMasterController = new QuizController(quiz,quizView);\n //quizMasterController.viewMessage();\n //quizMasterController.getQuiz();\n //quizView.loginPage();\n quiz.generateQuestion();\n\n quiz.uploadFiles();\n QuizRepository quizRepository1 = new QuizRepository();\n quizRepository1.getQuizFile();\n }", "public static void main(String[] args) {// we can create psvm method but cannot create objects in abstract class\n\t\tSchool.bonus();// as bonus method is static we can print it without create class name so we can use\n\t\t\t\t\t\t// with classname.mthdname hence it is accepted in abstract class\n\t\tSystem.out.println(\"i am from main method\");// we can write anything in main mthd it prints automatically without\n\t\t\t\t\t\t\t\t\t\t\t\t\t// creating obj\n\t}", "public static void main(String[] args) {\nbonus b=new bonus();\nb.sale();\nb.salary();\n\t}", "@Test\r\n \t public void testAddnewCourse() {\r\n \t \tLoginpg loginPage = new Loginpg();\r\n \t \tloginPage.setUsernameValue(\"admin\");\r\n \t \tloginPage.setpassWordValue(\"myvirtualx\");\r\n \t \tloginPage.clickSignin();\r\n \t \t\r\n \t \tCoursepg coursePage= new Coursepg();\r\n \t \tcoursePage.clickCourse().clickNewCourse().typeNewCourseName(\"selenium\").clickSubmit();\r\n \t\r\n \t }", "public Leagues() {\n }", "public Main() {\n \n \n }", "public static void doExercise2() {\n // TODO: Complete Exercise 2 Below\n\n }", "public static void main(String[] args) {\n Course AbstractAdvancedJavaSuperClass = new AdvancedJavaCourse(\"AdvancedJava\", \"-003\");\r\n Course AbstractJavaSuperClass = new IntroJavaCourse(\"IntroJava\", \"-002\");\r\n Course AbstractProgramClass = new IntroToProgrammingCourse(\"Intro\", \"-001\");\r\n\r\n AbstractAdvancedJavaSuperClass.setCredits(4);\r\n AbstractJavaSuperClass.setCredits(4.0);\r\n AbstractProgramClass.setCredits(4.0);\r\n \r\n //this is a test\r\n \r\n AbstractAdvancedJavaSuperClass.setPrerequisites(AbstractJavaSuperClass.getCourseNumber());\r\n AbstractJavaSuperClass.setPrerequisites(AbstractProgramClass.getCourseNumber());\r\n \r\n System.out.println(AbstractProgramClass.getCapitalizedCourseName()\r\n + \" \" + AbstractProgramClass.getCourseNumber() );\r\n \r\n System.out.println(AbstractJavaSuperClass.getCourseName()\r\n + \" \" + AbstractJavaSuperClass.getCourseNumber() \r\n + \" \" + AbstractJavaSuperClass.getPrerequisites());\r\n \r\n System.out.println(AbstractAdvancedJavaSuperClass.getCourseName()\r\n + \" \" + AbstractAdvancedJavaSuperClass.getCourseNumber() \r\n + AbstractAdvancedJavaSuperClass.getPrerequisites() );\r\n}", "public void testLizard(){\n }", "public static void doExercise5() {\n // TODO: Complete Exercise 5 Below\n\n }", "public static void main(String[] args) {\n\t\tSchool algory=new School();\r\n\t\talgory.name();\r\n\t\tSchool.Library lib=algory.new Library();\r\n\t\tlib.book();\r\n\t}", "public static void main(String[] args) {\n\n campusStudent cs=new campusStudent();\n cs.attendClass();\n System.out.println(\"==============================\");\n OnlineStudents os=new OnlineStudents();\n os.attendClass();\n cs.homeWork();\n os.homeWork();\n }", "@Override\n\tpublic void editTutorial() {\n\t\t\n\t}", "public static void doExercise4() {\n // TODO: Complete Exercise 4 Below\n\n }", "public static void main(String[] args) {\r\n\r\n // create new Lab3 objects\r\n Lab3 lab = new Lab3();\r\n\r\n Lab3 lab2 = new Lab3(24);\r\n\r\n Lab3 lab3 = new Lab3(\"James\");\r\n\r\n\r\n // Display lab 3 objects\r\n System.out.println(lab);\r\n\r\n System.out.println(lab2);\r\n\r\n System.out.println(lab3);\r\n }", "public static void main(String[] args) {\n \n\t\tInstructor instructor = new Instructor();\n\t\tinstructor.id=1;\n\t\tinstructor.firstName=\"ali\";\n\t\tinstructor.lastName=\"Veli\";\n\t\tinstructor.lessons=\"C#\";\n\t\tinstructor.phoneNumber=\"00000000000\";\n\t\tinstructor.email=\"[email protected]\";\n\t\tinstructor.password=\"1222\";\n\t\t\n\t\tStudent student = new Student();\n\t\tstudent.firstName =\"Oya\";\n\t\tstudent.lastName =\"deniz\";\n\n\t\t\n\t\t\n\t\tUserManager userManager = new UserManager();\n\t\tuserManager.add(student);\n\t\tuserManager.add(instructor);\n\t\tUser[] users = {instructor,student};\n\t\t\n\t\tuserManager.allList(users);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n\n Penuim penuim = new Penuim(\"QQ\",3);\n// penuim.introduction();\n penuim.sleep();\n penuim.eat();\n System.out.println(\"QQ age is \"+penuim.getAge());\n penuim.setAge(12);\n System.out.println(\"QQ age is \"+penuim.getAge());\n\n\n }", "public Add_E() {\n initComponents();\n this.setTitle(\"Add Engineer\");\n }", "public GUI_Edit_Tour(){\n init();\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tStudent diwas= new Student();\n\t\t//Putting data\n\t\tdiwas.name=\"Diwas 123\";\n\t\tdiwas.id= 1;\n\t\tdiwas.address=\"US\";\n\t\tdiwas.yearOfStudy=2;\n\t\t\n\t\tdiwas.printDetails();\n\t\tdiwas.studies();\n\t\tdiwas.giveExams();\n\t\t\n\t\t\n\t\tSystem.out.println( \"=======\");\n\t\tStudent mohhamad= new Student();\n\t\tmohhamad.name=\"Mohhamad 123\";\n\t\tmohhamad.id=2;\n\t\tmohhamad.address=\"US\";\n\t\tmohhamad.yearOfStudy=3;\n\t\t\n\t\tmohhamad.printDetails();\n\t\tmohhamad.studies();\n\t\tmohhamad.giveExams();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) throws IOException {\n// new Homework01();\n new Homework02();\n }", "@Test\n\tvoid testLectureChoixInt() {\n\t\t\n\t}", "public void mainMenu()\n {\n\n System.out.println('\\u000C'); //clears screen\n System.out.println(\"<------------- Press 0 to return.\");\n System.out.println();\n System.out.println();\n System.out.println(\"\\t\\tTeacher Menu\");\n System.out.println(\"\\t1. View Names\");\n System.out.println(\"\\t2. Change Name\");\n System.out.println(\"\\t3. Add Teacher\");\n input = in.nextInt();\n in.nextLine();\n\n switch(input)\n {\n case 0: //call main menu -- create instance of menu class here to pass in current state of arraylist\n returnTo = new StartMenu(teachers);\n returnTo.enterId(teachers);\n break;\n\n case 1: //view names -- a subclass class that extends StudentMenu \n //temporary method that will view all names\n viewNames();\n break;\n\n case 2: //change names\n changeName();\n break;\n\n case 3: //change grade\n addNewPerson();\n break;\n\n } //ends switch statement\n\n }", "public static void main(String[] args) {\n\t\tLogicTrainPassenger tp = new LogicTrainPassenger();\n\t\t//tp.insert1();\n\t\ttp.select1();\n\t}", "public Main() {\r\n\t}", "@Test\r\n\tpublic void mainTest(){\r\n\t\tMain m = new Main();\r\n\t\tm.main(null);\r\n\t}", "default void interactWith(Lever lever) {\n\t}", "public MainJFrame() {\n initComponents();\n resume=new ResumeCollection();\n // res=new Resume();\n // degree1=new Education();\n // degree2=new Education();\n \n }", "public static void main(String[] args) {\n Lab_2 lab=new Lab_2();\n lab.displaydetails();\n lab.displayhomeaddress();\n lab.displayworkaddress();\n lab.displaylocaladdress(); \n }", "public Teacher() {\n// coursesTaught = new ArrayList<Course>();\n }", "public static void main(String[] args) {\n practice_1_5 p =new practice_1_5();\n // p.quickfindArr();\n // p.quickunionArr();\n p.weightedquickunionArr();\n\t}", "public Main() {\r\n }", "public Main() {\r\n }", "public void AddNewSkill()\n\t{\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n ContaEspecial contaEspecial1 = new ContaEspecial(\"\", \"\");\r\n // ContaEspecial contaEspecial2 = new ContaEspecial();\r\n }", "public static void main(String[] args) {\n MyClass m;\n m= new MyClass();\nm.display();\n\t}", "public static void main(String[] args){\n\t\tLunchBox economy = new LunchBox();\n\t\teconomy.add(new Rice(200));\n\t\teconomy.add(new Cabbage(100));\n\t\teconomy.add(new PorkRib(250));\n\t\t//設定變數值\n\t\teconomy.setPriceRatio(1.2);\n\t\tSystem.out.println(\"Total calories of an economy lunch box are \" + economy.getCalorie());\n\t\tSystem.out.println(\"The price of an economy lunch box is \" + economy.getPrice());\n\t\t\n\t\tLunchBox valuedChoice = new LunchBox();\n\t\tvaluedChoice.add(new Rice(200));\n\t\tvaluedChoice.add(new Egg(30));\n\t\tvaluedChoice.add(new Carrot(100));\n\t\tvaluedChoice.add(new PorkRib(300));\n\t\tvaluedChoice.setPriceRatio(1.3);\n\t\tSystem.out.println(\"Total calories of a valued-choice lunch box are \" + valuedChoice.getCalorie());\n\t\tSystem.out.println(\"The price of an valued-choice lunch box is \" + valuedChoice.getPrice());\n\t\t\n\t\t//EX4\n\t\tSystem.out.println(\"便當economy比便當valued-choice更便宜嗎?\" + (LunchBox.isCheaperThan(economy, valuedChoice)?\"是\":\"否\"));\n\t\t\n\t}", "public static void main(String[] args) throws MyException {\n\n PessoaView2 tela = new PessoaView2();\n tela.setVisible(true);\n tela.setLocationRelativeTo(null);\n \n// PessoaDAO pdao = new PessoaDAO();\n// pdao.Salvar(new PessoaVO(1,\"hueberto1\", 32122));\n \n \n }", "public static void main(String[] args) {\n\t\tPerson person = new Person();\r\n\t\tperson.setName(\"Jon Snow\");\r\n\t\tperson.setAddress(\"Castle Black, 82\");\r\n\t\tperson.setEmail(\"[email protected]\");\r\n\t\tperson.setPhone(061666666);\r\n\t\tSystem.out.println(person);\r\n\r\n\t\t// creating a instance of Staff\r\n\t\tStaff staff = new Staff();\r\n\t\tSystem.out.println();\r\n\t\tstaff.setName(\"Ned Stark\");\r\n\t\tstaff.setTitle(\"King of North\");\r\n\t\tSystem.out.println(staff);\r\n\r\n\t\t// creating a instance of Faculty\r\n\t\tFaculty faculty = new Faculty();\r\n\t\tSystem.out.println();\r\n\t\tfaculty.setName(\"Zdravko\");\r\n\t\tfaculty.setOfficeHours(40);\r\n\t\tfaculty.setRank(\"Profesor\");\r\n\t\tSystem.out.println(faculty);\r\n\r\n\t\t// creating a instance og Employee\r\n\t\tEmployee employee = new Employee();\r\n\t\tSystem.out.println();\r\n\t\temployee.setName(\"Nedim\");\r\n\t\temployee.setOffice(\"Post Office\");\r\n\t\temployee.setSalary(2000);\r\n\t\tSystem.out.println(employee);\r\n\r\n\t\t// creating a instance of Student\r\n\t\tStudent student = new Student();\r\n\t\tSystem.out.println();\r\n\t\tstudent.setName(\"Ljubisa\");\r\n\t\tstudent.setStatus(2);\r\n\t\tSystem.out.println(student);\r\n\t}", "public void loadLecturer1(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from Lecturers \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs.getString(\"LecturerName\");\n\t\t\t\t\tlec1.addItem(name);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tcon.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\n}", "public static void main(String[] args) {\n Student student = new Student();\n Teacher teacher = new Teacher(student);\n\n teacher.askQuestion(\"1 + 1 = ?\");\n }", "public static void main(String[] args) {\n\r\n\r\n Employee e1=new Employee();\r\n\r\n e1.name=\"avinash\";\r\n e1.city=\"ongole\";\r\n e1.age=58;\r\n\r\n e1.display();\r\n }", "public void mostrarMenuLectura(TomarLectura tomarLectura, Lectura lecturaActual);", "public static void main(String[] args){\n\t\tInterview interview = new Interview();\r\n\t\tinterview.loadCandidates();\r\n\t\tinterview.setupAndPrintCandidateData();\r\n\t\t\r\n\t\t// Test the Social Media Challenge\r\n\t\tMember m1 = new Member(\"A\",\"[email protected]\");\r\n\t\tMember m2 = new Member(\"B1\",\"[email protected]\");\r\n\t\tMember m3 = new Member(\"C1\",\"[email protected]\");\r\n\t\tMember m4 = new Member(\"D1\", \"[email protected]\");\r\n\t\tMember m5 = new Member(\"E2\",\"[email protected]\");\r\n\t\tMember m6 = new Member(\"F2\", \"[email protected]\");\r\n\t\tMember m7 = new Member(\"G2\", \"[email protected]\");\r\n\t\tMember m8 = new Member(\"H2\", \"[email protected]\");\r\n\t\tMember m9 = new Member(\"I2\", \"[email protected]\");\r\n\t\tMember m10 = new Member(\"J2\", \"[email protected]\");\r\n\t\tMember m11 = new Member(\"K2\", \"[email protected]\");\r\n\t\tMember m12 = new Member(\"L2\", \"[email protected]\");\r\n\t\tMember m13 = new Member(\"M2\", \"M2gmail.com\");\r\n\t\tMember m14 = new Member(\"N3\", \"[email protected]\");\r\n\t\tMember m15 = new Member(\"O3\", \"[email protected]\");\r\n\t\tMember m16 = new Member(\"P3\", \"[email protected]\");\r\n\t\tMember m17 = new Member(\"Q3\", \"[email protected]\");\r\n\t\tMember m18 = new Member(\"R3\", \"[email protected]\");\r\n\t\t \r\n\t\t// Add friends of M1.\r\n\t\tm1.AddFriend(m2);\r\n\t\tm1.AddFriend(m3);\r\n\t\tm1.AddFriend(m4);\r\n\t\t\r\n\t\t// Add m2 friends\r\n\t\tm2.AddFriend(m5);\r\n\t\tm2.AddFriend(m6);\r\n\t\tm2.AddFriend(m7);\r\n\t\t \r\n\t\t// Add m3 friends\r\n\t\tm3.AddFriend(m8);\r\n\t\tm3.AddFriend(m9);\r\n\t\tm3.AddFriend(m10);\r\n\t\t\r\n\t\t// Add m4 friends\r\n\t\tm4.AddFriend(m11);\r\n\t\tm4.AddFriend(m12);\r\n\t\tm4.AddFriend(m13);\r\n\t\t\r\n\t\t// Add m5 friends\r\n\t\tm5.AddFriend(m14);\r\n\t\tm5.AddFriend(m15);\r\n\t\tm5.AddFriend(m16);\r\n\t\t\r\n\t\t// Add m6 friends\r\n\t\tm6.AddFriend(m17);\r\n\t\tm6.AddFriend(m18);\r\n\t\t \r\n\t\tSocialMedia.printFriends(m1);\r\n\t}", "public static void main()\n {\n\n Magazine magazine1 = new Magazine (\"David Publishing\", \"Mega Magazine\", 30, \"Maria Craig\", \"22/06/2014\");\n\n System.out.println();\n magazine1.getEditor();\n magazine1.getDate();\n magazine1.getPublisher();\n magazine1.getPublicationTitle();\n magazine1.getPrice();\n // Display a blank line\n System.out.println();\n\n \n // Create an instance of Book\n \n Book Book1 = new Book (\"Beckem and windsor\", \"Remember\", 100, 2451, \"Sue bright\");\n\n Book1.getPageNumber();\n Book1.getAuthor();\n Book1.getPublisher();\n Book1.getPublicationTitle();\n Book1.getPrice(); \n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 600, 600);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblStaffModify = new JLabel(\"Staff Modify\");\n\t\tlblStaffModify.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 22));\n\t\tlblStaffModify.setBounds(243, 20, 118, 23);\n\t\tframe.getContentPane().add(lblStaffModify);\n\t\t\n\t\tJLabel lblAdd = new JLabel(\"Add\");\n\t\tlblAdd.setForeground(Color.RED);\n\t\tlblAdd.setFont(new Font(\"Times New Roman\", Font.PLAIN, 20));\n\t\tlblAdd.setBounds(10, 76, 76, 38);\n\t\tframe.getContentPane().add(lblAdd);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Delete\");\n\t\tlblNewLabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 20));\n\t\tlblNewLabel.setForeground(Color.RED);\n\t\tlblNewLabel.setBounds(10, 164, 62, 23);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Modify\");\n\t\tlblNewLabel_1.setFont(new Font(\"Times New Roman\", Font.PLAIN, 20));\n\t\tlblNewLabel_1.setForeground(Color.RED);\n\t\tlblNewLabel_1.setBounds(10, 218, 62, 24);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Movie\");\n\t\tbtnNewButton.setBounds(110, 68, 93, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSixth_AddMovie addmovie=new Sixth_AddMovie();\n\t\t\t\t\taddmovie.main(null);\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\n\t}});\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"Person\");\n\t\tbtnNewButton_1.setBounds(233, 68, 93, 23);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\tSixth_AddPerson addperson=new Sixth_AddPerson();\n\t\t\t\t\taddperson.main(null);\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\n\t}});\n\t\t\n\t\tJButton btnNewButton_2 = new JButton(\"Delete\");\n\t\tbtnNewButton_2.setBounds(110, 166, 93, 23);\n\t\tframe.getContentPane().add(btnNewButton_2);\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\tFifth_Delete delete=new Fifth_Delete();\n\t\t\t\t\tdelete.main(null);\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\n\t}});\n\t\t\n\t\tJButton btnNewButton_3 = new JButton(\"Modify\");\n\t\tbtnNewButton_3.setBounds(110, 221, 93, 23);\n\t\tframe.getContentPane().add(btnNewButton_3);\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\tFifth_Modify modify=new Fifth_Modify();\n\t\t\t\t\tmodify.main(null);\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\n\t}});\n\t\t\n\t\tJButton btnBack = new JButton(\"Back\");\n\t\tbtnBack.setBounds(0, 0, 93, 23);\n\t\tframe.getContentPane().add(btnBack);\n\t\t\n\t\tbtnBack.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(First.v==1){\n\t\t\t\t\tThird_Member member=new Third_Member();\n\t\t\t\t\tmember.main(null);\n\t\t\t\t\tframe.dispose();\n\t\t\t\t}\n\t\t\t\tif(First.v==2){\n\t\t\t\t\tThird_Staff staff=new Third_Staff();\n\t\t\t\t staff.main(null);\n\t\t\t\t frame.dispose();}\n\t\t\t\n\t\t}\n\t\t});\n\t\t\n\t\tJButton btnNewButton_5 = new JButton(\"Room\");\n\t\tbtnNewButton_5.setBounds(362, 68, 93, 23);\n\t\tframe.getContentPane().add(btnNewButton_5);\n\t\t\n\t\tbtnNewButton_5.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tSixth_AddRoom addRoom=new Sixth_AddRoom();\n\t\t\t\taddRoom.main(null);\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t}});\n\t\t\n\t\tJButton btnShowing = new JButton(\"Showing\");\n\t\tbtnShowing.setBounds(481, 68, 93, 23);\n\t\tframe.getContentPane().add(btnShowing);\n\t\tbtnShowing.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tSixth_AddShowing addShowing=new Sixth_AddShowing();\n\t\t\t\taddShowing.main(null);\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t}});\n\t\t\n\t\tJButton btnNewButton_4 = new JButton(\"Direct\");\n\t\tbtnNewButton_4.setBounds(110, 111, 93, 23);\n\t\tframe.getContentPane().add(btnNewButton_4);\n\t\tbtnNewButton_4.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tAddDirect addDirect=new AddDirect();\n\t\t\t\taddDirect.main(null);\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t}});\n\t\t\n\t\tJButton btnNewButton_6 = new JButton(\"Write\");\n\t\tbtnNewButton_6.setBounds(233, 111, 93, 23);\n\t\tframe.getContentPane().add(btnNewButton_6);\n\t\tbtnNewButton_6.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tAddWrite addWrite=new AddWrite();\n\t\t\t\taddWrite.main(null);\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t}});\n\t\t\n\t\tJButton btnNewButton_7 = new JButton(\"Act\");\n\t\tbtnNewButton_7.setBounds(362, 111, 93, 23);\n\t\tframe.getContentPane().add(btnNewButton_7);\n\t\tbtnNewButton_7.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tAddAct addAct=new AddAct();\n\t\t\t\taddAct.main(null);\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t}});\n\t\t\n\t\t\n\t}", "public static void addCourse() {\n\t\t \r\n\t Scanner user_input = new Scanner(System.in);\r\n\t \r\n\t // input course name\r\n\t System.out.printf(\"%-35s %s\", \"Enter Course Name:\", \"\");\r\n\t Course_name = user_input.nextLine();\r\n\t \r\n\t // input vehicle Height checks if its numeric\r\n\t System.out.printf(\"%-35s %s\", \"Please Course ID:\", \"\");\r\n\t Course_ID = user_input.nextLine();\r\n\t \r\n\t System.out.printf(\"%-35s %s\", \"Enter pay rates per hour:\", \"\");\r\n\t Course_pay = user_input.nextInt();\r\n\t \r\n\t Course newCourse = new Course(Course_name, Course_ID, Course_pay);\t\t\t//Creats object for the course and adds to course array\r\n\t array.add(newCourse);\r\n\t \r\n\t System.out.printf(\"New Course created successfully for %s !%n\", Course_name);\r\n\t \r\n\t Admin.menuChoice();\r\n\t user_input.close();\r\n\t }", "public static void main(String[] args) {\n\n Student alex = new Student(\"Alex\", \"Kane\", 21);\n alex.setCourse(\"Math\");\n System.out.println(alex);\n\n Student mary = new Student(\"Mary\", \"Jane\", 19);\n mary.setCourse(\"Art\");\n System.out.println(mary);\n\n /* Initialize a few teachers. Set values for wage and total hours worked. Print their first name,\n last name, age and salary that each of them earns.\n */\n Teacher john = new Teacher(\"John\", \"Tob\", 45);\n john.setDepartment(\"Computer science\");\n john.setWage(20);\n john.setTotalHoursWorked(120);\n System.out.println(john);\n\n Teacher lizy = new Teacher(\"Lizy\", \"Simpson\", 45);\n lizy.setDepartment(\"Philosophy\");\n lizy.setWage(34);\n lizy.setTotalHoursWorked(12);\n System.out.println(lizy);\n\n }", "public static void main(){\n\t}", "public static void main(String[] args) {\n\tProfessorSql sql= new ProfessorSql();\n\t//sql.add(professor);\n\t//sql.delete(\"49022518841\");\n}", "public Main() {\n }", "public Main() {\n }", "public static void main(String[] args) {\n People people0 = new People(\"Albert\", \"Einstein\", true);\n //People people1 = new People(\"Marie\",\"Curie\", false);\n ViewPeople view1 = new ViewPeople();\n\n ControlPeaple guiControl = new ControlPeaple(people0,view1);\n guiControl.startView();\n\n //System.out.println(people0);\n //System.out.println(people1);\n }", "public static void main(String[] args) {\n\r\n House myHouse = new House(new Room(\"myBedroom\", 4, 2, false), 43);\r\n myHouse.wallsDetails();\r\n\r\n }" ]
[ "0.7093634", "0.6915391", "0.6585375", "0.64172554", "0.63688153", "0.63217735", "0.62181103", "0.6190159", "0.6177776", "0.61774766", "0.61292535", "0.61034906", "0.6074091", "0.60709935", "0.6054558", "0.6043117", "0.6040941", "0.6025791", "0.6017555", "0.598913", "0.59834135", "0.598277", "0.59800005", "0.59404844", "0.59316736", "0.59285665", "0.5926406", "0.5911487", "0.59109366", "0.5909667", "0.589823", "0.5887759", "0.58854395", "0.588302", "0.5879901", "0.5864601", "0.58642066", "0.5859579", "0.58588356", "0.5858599", "0.58418804", "0.582335", "0.58189946", "0.5815144", "0.580727", "0.5804883", "0.5801641", "0.57961416", "0.5794", "0.5793235", "0.57864076", "0.57746005", "0.5772392", "0.576513", "0.5748225", "0.57364136", "0.5734517", "0.573224", "0.5730968", "0.5728925", "0.5727372", "0.5726211", "0.57197326", "0.57197297", "0.5716837", "0.5714223", "0.5708487", "0.5707699", "0.56979954", "0.5697995", "0.56964815", "0.569202", "0.56911844", "0.56908846", "0.56863904", "0.5684828", "0.56846267", "0.56795484", "0.56795484", "0.5679356", "0.56772166", "0.5677167", "0.56730664", "0.5670085", "0.5667339", "0.5660079", "0.56595355", "0.5657257", "0.56542474", "0.5647677", "0.5646581", "0.5634491", "0.5628431", "0.56266004", "0.5623925", "0.5621438", "0.5619589", "0.5619589", "0.5618961", "0.5614916" ]
0.5677967
80
Add_StudentGroup add_st= new Add_StudentGroup(); add_st.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Add_StudentGroup(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main (String[] arg){\n\n Student student1 = new Student();\n Student student2 = new Student(12345,\"Anh\",\"Pham\");\n Student student3 = new Student(27485,\"New\",\"Student\");\n\n System.out.println(student1);\n System.out.println(student2);\n System.out.println(student3);\n\n //Test Student Group\n long groupCode = 123456;\n Student contactStudent = new Student(987654,\"HyHy\",\"Phan\");\n List<Student> studentList = new ArrayList<>();\n\n StudentGroup newGroup = new StudentGroup(groupCode, contactStudent, studentList);\n newGroup.getInfo();\n newGroup.addStudent(student2);\n newGroup.addStudent(student3);\n newGroup.getInfo();\n }", "public static void main(String[] args) {\nStudent s=new Student();\ns.display();\n\t}", "public static void main(String[] args) {\n\t\tHuman humanOne = new Human(\"Konovalov\", \"Anton\", 1991, true);\r\n\r\n\t\tStudent studentOne = new Student(\"One\", \"Arst\", 1992, true, \"It\", 3);\r\n\t\tStudent studentTho = new Student(\"Tho\", \"Adsart\", 1993, true, \"It\", 3);\r\n\t\tStudent studentThree = new Student(\"Three\", \"Adrt\", 1994, true, \"It\", 3);\r\n\t\tStudent studentFour = new Student(\"Four\", \"Agfrt\", 1995, true, \"It\", 3);\r\n\t\tStudent studentFive = new Student(\"Five\", \"Asrt\", 1996, true, \"It\", 3);\r\n\t\tStudent studentSix = new Student(\"Six\", \"Arrt\", 1997, false, \"It\", 3);\r\n\t\tStudent studentSeven = new Student(\"Seven\", \"Aeqrt\", 1998, true, \"It\", 3);\r\n\t\tStudent studentEight = new Student(\"Eight\", \"Aeqwrt\", 1999, true, \"It\", 3);\r\n\t\tStudent studentNine = new Student(\"Nine\", \"Areqt\", 1992, false, \"It\", 3);\r\n\t\tStudent studentTen = new Student(\"Ten\", \"Aeqrt\", 1993, true, \"It\", 3);\r\n\t\tStudent studentEleven = new Student(\"Eleven\", \"Aehrt\", 1991, true, \"It\", 3);\r\n\r\n\t\tGroup group = new Group();\r\n\t\ttry {\r\n\t\t\tgroup.add(studentOne);\r\n\t\t\tgroup.add(studentTho);\r\n\t\t\tgroup.add(studentThree);\r\n\t\t\tgroup.add(studentFour);\r\n\t\t\tgroup.add(studentFive);\r\n\t\t\tgroup.add(studentSix);\r\n\t\t\tgroup.add(studentSeven);\r\n\t\t\tgroup.add(studentEight);\r\n\t\t\tgroup.add(studentNine);\r\n\t\t\t// group.add(studentTen);\r\n\t\t\t// group.add(studentEleven);\r\n\t\t\t//group.addNewStudent();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error, more than 10 can not be created\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(group);\r\n//\t\tgroup.sort();\r\n//\t\tSystem.out.println(group);\r\n//\t\t\r\n//\t\tStudent [] arrayStudentArmy= group.goToArmy(group);\r\n//\t\tfor (Student student : arrayStudentArmy) {\r\n//\t\t\tSystem.out.println(student);\r\n//\t\t}\r\n\t\t\r\n\t\tgroup.fileSave();\r\n\t\t\r\n\t\tGroup groupFromFile=new Group();\r\n\t\tgroupFromFile.newGroupStudent();\r\n\t\tSystem.out.println(groupFromFile);\r\n\t\r\n\r\n\t}", "public StudentDemo(){\r\n \r\n \r\n \r\n }", "public static void main(String[] args) {\n\t\tStudent s1 = new Student(\"Joro\", \"KST\", (byte)25);\n\t\tStudent s2 = new Student(\"Pesho\", \"KST\", (byte)25);\n\t\tStudent s3 = new Student(\"Gesho\", \"KST\", (byte)25);\n\t\tStudent s4 = new Student(\"Misho\", \"KST\", (byte)25);\n\t\tStudent s5 = new Student(\"Tisho\", \"KST\", (byte)25);\n\t\tStudent s6 = new Student(\"Ivo\", \"KST\", (byte)25);\n\t\t\n\t\ts3.setGrade(5);\n\t\ts5.setGrade(5.5);\n\t\ts2.setGrade(6);\n\t\t\n\t\ts1.receiveScholarship(4, 500);\n\t\ts2.receiveScholarship(5, 250.00);\n\t\t\n\t\t\n\t\ts2.upYear();\n\t\ts5.upYear();\n\t\ts6.upYear();\n\t\t\n\t\tStudentGroup sg1 = new StudentGroup(\"KST\") ;\n\t\t\n\t\tsg1.addStudent(s1);\n\t\tsg1.addStudent(s2);\n\t\tsg1.addStudent(s3);\n\t\tsg1.addStudent(s4);\n\t\tsg1.addStudent(s5);\n\t\tsg1.addStudent(s6);\n\n\t\n\t\tSystem.out.println(sg1.printStudentsInGroup());\n\t\t\n\t\t\n\t\tSystem.out.println(\"The best student in group is \"+ sg1.theBestStudent());\n\n\t}", "public static void main(String[] args) {\n Group aco21 = new Group();\n System.out.print(\"1. Create Student \\n 2. Show students \\n 3. Find by id\");\n Scanner sc = new Scanner(System.in);\n int choice1 = sc.nextInt();\n if (choice1 == 1)\n {\n\n System.out.print(\"input name, phone and birthyear on different lines \\n\");\n String n = sc.nextLine();\n String p = sc.nextLine();\n int y = sc.nextInt();\n Student k = new Student();\n k.init(n,p, y, aco21.listStud.size()+1);\n aco21.listStud.add(k);\n clearScreen();\n System.out.print(\"1. Create Student \\n 2. Show students \\n 3. Find by id\");\n choice1 = sc.nextInt();\n }\n if (choice1 == 2)\n {\n for (int i = 0; i<aco21.listStud.size(); i++)\n {\n String l = String.format(\"Name %s Number %s birthyear %d\", aco21.listStud.get(i).name, aco21.listStud.get(i).phone, aco21.listStud.get(i).birthYear);\n System.out.print(l);\n }\n clearScreen();\n System.out.print(\"1. Create Student \\n 2. Show students \\n 3. Find by id\");\n choice1 = sc.nextInt();\n }\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Welcome to our Java Tutorial Page\");\r\n\t\t\r\n\t\tStudent rookieStudent=new Student();\r\n\t\trookieStudent.set_id(0);\r\n\t\trookieStudent.set_mail(\"[email protected]\");\r\n\t\trookieStudent.set_name(\"Shmouel\");\r\n\t\trookieStudent.set_password(\"youcantlearnthis\");\r\n\t\trookieStudent.set_phone(\"+723 524 08 23\");\r\n\t\trookieStudent.set_username(\"ShmouelTheVanguard\");\r\n\t\tCourses []newList=new Courses[2];\r\n\t\trookieStudent.set_courseList(newList);\r\n\t\tStudent []newList2=new Student[2];\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tCourses courseTheMagnificent=new Courses(0,\"Java Courses\",\"Programming\",\"Mr. E.D. :)\",\"Computer Science\",true);\r\n\t\tcourseTheMagnificent.set_studentList(newList2);\r\n\t\t\r\n\t\tAddingCourses addCourseOperation=new AddingCourses(rookieStudent.get_courseList(),courseTheMagnificent.get_id\r\n\t\t\t\t(),courseTheMagnificent.get_title(),courseTheMagnificent.get_topic(),courseTheMagnificent.get_author(),\r\n\t\t\t\tcourseTheMagnificent.get_category(),courseTheMagnificent.get_status());\r\n\t\tAddingStudents addStudentOperation=new AddingStudents(courseTheMagnificent.get_studentList(),rookieStudent.get_id(),rookieStudent.get_name(),rookieStudent.get_mail(),rookieStudent.get_phone(),rookieStudent.get_username(),rookieStudent.get_password());\r\n\t\trookieStudent.showAllStudents(rookieStudent);\r\n\t\tcourseTheMagnificent.showAllCourses(courseTheMagnificent);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n createClass(); //ctrl+click\n printTrainers();\n printStudents();\n printGroup();\n printstudentAlfabetically();\n getNumberOfStudentsFromGroup_classicMethod();\n getAllMaxNumberOfStudentsFromGroup_classicMethod(groups);\n displayGroupWithMaxNumOfStudent_FunctionalMethod();\n displayGroupWithMinNumOfStudent_FunctionalMethod();\n studentsYoungerThan(25);\n displayStudentsYoungerThan(25);\n System.out.println(displayStudentsYoungerThan1(25));\n System.out.println(displayStudentsYoungerThan2(23));\n studentsGroupedByTrainer_WithGroups();\n\n studentsGroupedByTrainer_WithMAp(); //Functioneaza daca nu fac modificari in grupuri\n\n //-----------------------------------\n\n displayStudentsWithPreviousJavaKnowledge();\n displayStudentsWithPreviousJavaKnowledge1();\n\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge();\n\n\n removeStudentsYoungerThanFromGroups(25);\n\n printStudentsAlphabeticallyByFirstName();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge4();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge2();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge3();\n System.out.println(\"Triple : \" + tripleNumberOfStudentsFromMaxGroup(getAllMaxNumberOfStudentsFromGroup_classicMethod(groups)));\n System.out.println(\"cuvantul cu dimensiunea cea mai mare este : \" + getLongestString(\"Diana\", \"Liviu\", \"Leah\"));//VARARGS: nputem scrie si fara paramatrii dar nu ne afiseaza nimic\n }", "public static void main(String[] args){\n\t\tStudent s=new Student(); \r\n\t\t\r\n\t\t\r\n\t\t//setting value in the name member \r\n\t\t\r\n\t\t\r\n\t\ts.setName(\"vijay\"); \r\n\t\ts.setId(35);\r\n\t\ts.SetSalary(25000);\r\n\t\ts.SetTax(2055.543536f);\r\n\t\ts.SetBusName(\"RedBus\");\r\n\t\t//getting value of the name member \r\n\t\t\r\n\t\tSystem.out.println(\"This is Name :\"+s.getName()); \r\n\t\tSystem.out.println(\"This is id :\"+s.getEmpId());\r\n\t\tSystem.out.println(\"This is Salary :\"+s.getSalary());\r\n\t\tSystem.out.println(\"This is Tax :\"+s.getTax());\r\n\t\tSystem.out.println(\"This is BusName :\"+s.GetBusName());\r\n\t\t\r\n\t\t}", "public static void main(String[] args) {\n\tstudent stu= new student();\r\nSystem.out.println(stu.sno+\"\\t\"+stu.sname+\"\\t\"+stu.sfee+\"\\t\"+stu.sresult+\"\\t\"+stu.flag);\r\n }", "public static void main(String[] args) {\n\n\t\n\tSchool obj =new School();\n\tobj.studentfee();\t\n\t \n\t}", "public StudyGroup()\n {\n s1 = new Student(\"Brianna\", 22, \"Neuroscience\");\n s2 = new Student(\"Noah\");\n s3 = new Student(\"Jenny\", 19, \"Applied Math\");\n s4 = new Student(\"Sean\", 22);\n \n System.out.println(\"Student 1 is \" + s1); // s1 is a Student object\n// i see a memory address\n System.out.println(\"Studnet 2 is \" + s2);\n System.out.println(\"Students in the group\");\n int x = 42;\n System.out.println(\" x is holding \" + x); //int --> Integer\n s1.printName();\n s2.printName();\n s3.printName();\n s4.printName();\n }", "public Student_ADD() {\n initComponents();\n }", "public static void main(String[] args) {\n Sal s=new Sal();\n s.getinfo();\n s.Addsal();\n s.Addwork();\n s.display();\n\t}", "public void addStudent(Student student) {\t\r\n\t\t//Adds student to list of students taking module\r\n\t\tStudentList.add(student);\r\n\t\t\r\n\t\t// adds module to students list of modules\r\n\t\tstudent.AddModuleList(ModuleName);\r\n}", "public static void main(String[] args) {\n Student stu = new Student();\r\n try {\r\n\t\t\tstu.regist(10);\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 System.out.println(stu.toString());\r\n\t}", "public static void main(String[] args) {\n\t\tstudent st1=new student();\n\t\t\n\t\tst1.sname=\"Ema\";\n\t\tst1.sid=101;\n\t\tst1.grade='A';\n\t\t\n\t\tst1.display();\n\t\t\n\n\t}", "public static void main(String[] args) {\n Student s1 = new Student(\"Azat\");\n Student s2 = new Student(\"Saida\");\n Student s3 = new Student(\"Adil\");\n Student s4 = new Student(\"Sabira\");\n Student s5 = new Student(\"Saniya\");\n\n\n List<Student> cybertekStudents = new ArrayList<>(Arrays.asList(s1, s2, s3, s4, s5));\n\n School cybertek = new School(\"Cybertek\", cybertekStudents);\n\n cybertekStudents.add(new Student(\"Denis\"));\n cybertekStudents.add(new Student(\"Irina\"));\n\n System.out.println(cybertek);\n System.out.println(cybertek.schoolName);\n System.out.println(cybertek.allStudentsList);\n\n Student[] students = {new Student(\"Gulnaz\"),\n new Student(\"Sardar\")};\n cybertek.addNewStudent(students);\n System.out.println(cybertek.allStudentsList);\n\n for (Student each : cybertekStudents) {\n System.out.println(each.studentName);\n //347-785-9417 munavvar\n //donna fro Wic, how she is share info 718 616 4338\n\n\n }\n }", "public static void main(String args[]) {\n Student4 s1 = new Student4(111, \"Karan\");\n //Log.info(\"Test\");\n Student4 s2 = new Student4(222, \"Aryan\", 23);\n //calling method to display the values of object\n s1.display();\n s2.display();\n }", "public static void main(String[] args) {\n Student sv;\n\n //cap phat bo nho cho bien doi tuong [sv] \n sv = new Student();\n\n //gan gia tri cho cac fields cua bien [sv]\n sv.id = \"student100\";\n sv.name = \"Luu Xuan Loc\";\n sv.yob = 2000;\n sv.mark = 69;\n sv.gender = true;\n\n //in thong tin doi tuong [sv]\n sv.output();\n\n //tao them 1 bien doi tuong [sv2] kieu [Student]\n Student sv2 = new Student();\n //gan gia tri cho cac fields cua doi tuong [sv2]\n sv2.id = \"student101\";\n sv2.name = \"Nguyen Ngoc Son\";\n sv2.yob = 2004;\n sv2.mark = 85;\n sv2.gender = false;\n\n //in thong tin doi tuong [sv2]\n sv2.output();\n\n //tao them 1 bien doi tuong [sv3] kieu [Student]\n Student sv3 = new Student();\n //in thong tin doi tuong [sv3]\n sv3.output();\n }", "private void studenti(reusablemenu.sample.Student curent) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tstudent1 st=new student1();\r\n\t\tst.setname(\"Jacob\");\r\n\t\tst.setstudentid(10);\r\n\r\n\t\tSystem.out.println(st);\r\n\t}", "public static void main(String args[]){\n Student Student1 = new Student (\"Josh\", 80);\n System.out.println(Student1.getGrade());\nSystem.out.println(Student1);\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tStudent diwas= new Student();\n\t\t//Putting data\n\t\tdiwas.name=\"Diwas 123\";\n\t\tdiwas.id= 1;\n\t\tdiwas.address=\"US\";\n\t\tdiwas.yearOfStudy=2;\n\t\t\n\t\tdiwas.printDetails();\n\t\tdiwas.studies();\n\t\tdiwas.giveExams();\n\t\t\n\t\t\n\t\tSystem.out.println( \"=======\");\n\t\tStudent mohhamad= new Student();\n\t\tmohhamad.name=\"Mohhamad 123\";\n\t\tmohhamad.id=2;\n\t\tmohhamad.address=\"US\";\n\t\tmohhamad.yearOfStudy=3;\n\t\t\n\t\tmohhamad.printDetails();\n\t\tmohhamad.studies();\n\t\tmohhamad.giveExams();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n campusStudent cs=new campusStudent();\n cs.attendClass();\n System.out.println(\"==============================\");\n OnlineStudents os=new OnlineStudents();\n os.attendClass();\n cs.homeWork();\n os.homeWork();\n }", "public static void main(String[] args) {\n\t\tStudent1 s1= new Student1(101, \"Mukesh\", 28);\n\t\tStudent1 s2= new Student1(201,\"Sona\");\n\t\ts1.display();\n\t\ts2.display();\n\n\t}", "public CreateGroup() {\n initComponents();\n start();\n }", "public static void main(String[] args) {\n\t\tStudent ivan = new Student(\"Ivan Petrov\", \"Computer Science\");\n\t\tivan.grade=5.5;\n\t\tivan.yearInCollege=2;\n\t\tivan.money=500;\n\t\tivan.age=19;\n\t\t\n\t\tStudent teodor = new Student(\"Teodor Alexiev\", \"Computer Science\");\n\t\tteodor.grade=5.25;\n\t\tteodor.yearInCollege=3;\n\t\tteodor.money=300;\n\t\tteodor.age=20;\n\t\t\n\t\tStudent irina = new Student(\"Irina Paraskelova\", \"Computer Science\");\n\t\tirina.grade = 5.65;\n\t\tirina.money=400;\n\t\tirina.age=18;\n\t\t\n\t\tStudent vasilena = new Student (\"Vasilena Kremenlieva\", \"Computer Science\");\n\t\tvasilena.grade = 5.0;\n\t\tvasilena.money=1000;\n\t\tvasilena.age=18;\n\t\t\n\t\tStudent trifon = new Student(\"Trifon Stoimenov\", \"Computer Science\");\n\t\ttrifon.grade = 5.70;\n\t\ttrifon.yearInCollege=3;\n\t\ttrifon.money = 800;\n\t\ttrifon.age=21;\n\t\t\n\t\tStudent alexander = new Student (\"Alexander Dobrikov\", \"Finance\");\n\t\talexander.grade = 4.75;\n\t\talexander.yearInCollege = 2;\n\t\talexander.money = 600;\n\t\talexander.age = 20;\n\t\t\n\t\tStudent mirela = new Student (\"Mirela Kostadinova\", \"Finance\");\n\t\tmirela.grade = 5.5;\n\t\tmirela.yearInCollege=1;\n\t\tmirela.money=100;\n\t\tmirela.age=19;\n\t\t\n\t\tStudent velizar = new Student(\"Velizar Stoyanov\", \"Finance\");\n\t\tvelizar.grade = 6.0;\n\t\tvelizar.yearInCollege = 3;\n\t\tvelizar.money = 500;\n\t\tvelizar.age = 22;\n\t\t\n\t\tStudent antoaneta = new Student(\"Antoaneta Borisova\", \"Finance\");\n\t\tantoaneta.grade = 5.30;\n\t\tantoaneta.yearInCollege = 2;\n\t\tantoaneta.money = 750;\n\t\tantoaneta.age = 19;\n\t\t\n\t\tirina.upYear();\n\t\tSystem.out.println(\"Irina is in year \"+irina.yearInCollege+\" of college.\");\n\t\t\n\t\tvasilena.receiveScholarship(5.0, 350);\n\t\tSystem.out.println(vasilena.money);\n\t\t\n\t\tStudentGroup cs1 = new StudentGroup(\"Computer Science\");\n\t\tcs1.addStudent(ivan);\n\t\tcs1.addStudent(teodor);\n\t\tcs1.addStudent(irina);\n\t\tcs1.addStudent(vasilena);\n\t\tcs1.addStudent(trifon);\n\t\tteodor.upYear();\n\t\tSystem.out.println(teodor.isDegree);\n\t\t\n\t\tcs1.addStudent(velizar);\n\t\t\n\t\tcs1.printStudentsInGroup();\n\t\tSystem.out.println(cs1.theBestStudent());\n\t\t\n\t\tcs1.emptyGroup();\n\t\tcs1.printStudentsInGroup();\n\t\t\n\t\tStudentGroup fin1 = new StudentGroup(\"Finance\");\n\t\t\n\t\tfin1.addStudent(alexander);\n\t\tfin1.addStudent(mirela);\n\t\tfin1.addStudent(velizar);\n\t\tfin1.addStudent(antoaneta);\n\t\t\n\t\tfin1.printStudentsInGroup();\n\t\t\t\n\t\t\n\t}", "public static void main(String[] args) {\nbonus b=new bonus();\nb.sale();\nb.salary();\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tbiker bb=new biker(304,\"domiinar\");//now we need constructor to initialise values in biker class\r\n\t\tstudent7 xx=new student7(4000,\"innverted\");//from here values are sent to student7 class so we dont need this keyword\r\n\t\t//here we will call method\r\n\t\tbb.display();\r\n\t\txx.show();\r\n\t\t\r\n\t\t}", "public static void main(String[] args) {\n\t\tCrudOperation operation = new CrudOperationImpl();\r\n\t\toperation.deleteStudent(2);\r\n\t\t/*Student s = new Student(\"Dhanu\", 85);\r\n\t\toperation.storeStudent(s);\r\n\t\ts.setRollNumber(4);\r\n\t\ts.setName(\"Dhanu\");\r\n\t\ts.setMarks(75);\r\n\t\toperation.updateStudent(s);\r\n\r\n\t\tSystem.out.println(\"Student Details:\" + operation.getStudent(2).toString());\r\n\t\tSystem.out.println(\"List of student:\\n\");\r\n\t\tList<Student> list = operation.listStudent();\r\n\t\t//System.out.println(list.toString());\r\n\t\tIterator<Student> it = list.iterator();\r\n\t\twhile (it.hasNext())\r\n\t\t\tSystem.out.println(((Student)it.next()).toString());\r\n*/\t}", "public static void main(String[] args) {\n\t\tMyClass myClass = new MyClass(\"Vasudev\");\n\t\tMyClass myClass1 = new MyClass(\"Vasudev\",\"Kumaran\");\n\t\tMyClass myClass2 = new MyClass(\"Dev\",1131);\n\t\t\n\t\tMyClass myClass3 = new MyClass(\"Vasudev\",\"Kumaran\",\"Hariram\",\"Shiva\");\n\t\tStudent student = new Student();\n\t\tstudent.setFirstName(\"Vasudev\");\n\t\t//student.setLastName(\"Kumaran\");\n\t\t//student.setRollNum(234124);\n\t\t\n\t\tArrayList<Student> students = new ArrayList<Student>();\n\t\tStudent student2 = new Student();\n\t\tstudent2.setFirstName(\"Dev\");\n\t\tstudents.add(student2);\n\t\tStudent student3 = new Student();\n\t\tstudent3.setFirstName(\"Kumaran\");\n\t\tstudents.add(student3);\n\t\tstudent2 = new Student();\n\t\tstudent2.setFirstName(\"Shivam\");\n\t\tstudent2.setRollNum(45435);\n\t\tstudents.add(student2);\n\t\t//myClass.printStudentObj(student);\n\t\tmyClass.printStudents(students);\n\t\t\n\t\t\n\t\tHashMap< String, Object> studentObj = new HashMap<String,Object>();\n\t\tstudentObj.put(MyClass.FIRST_NAME, \"Vasudev\");\n\t\tstudentObj.put(MyClass.LAST_NAME, \"Kumaran\");\n\t\tstudentObj.put(MyClass.ROLL_NUM, 10023);\n\t\t\n\t\tSystem.out.println(studentObj.get(MyClass.FIRST_NAME));\n\t\t\n\t\tstudentObj = new HashMap<String,Object>();\n\t\t//studentObj.put(MyClass.FIRST_NAME, \"Kumaran\");\n\t\tstudentObj.put(MyClass.LAST_NAME, \"Deva\");\n\t\tstudentObj.put(MyClass.LAST_NAME, \"Deva\");\n\t\tstudentObj.put(MyClass.ROLL_NUM, 234233);\n\t\t\n\t\tSystem.out.println((String)studentObj.get(MyClass.FIRST_NAME));\n\t\tSystem.out.println((int)studentObj.get(MyClass.ROLL_NUM));\n\t\t\n\t\tArrayList<HashMap<String, Object>> sts = new ArrayList<HashMap<String, Object>>();\n\t\tProcessRegistration processRegistration = new ProcessRegistration() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void init(Student student) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"Called\");\n\t\t\t}\n\t\t};\n\t\tmyClass.handleRegistration(processRegistration);\n\t\t//myClass.handleRegistration(myClass);\n\t\t//myClass.handleRegistration(myClass);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void addstudent(Group group) {\n\t\tString firstName = \"\";\n\t\tString lastName =\"\";\n\t\tString tempSex;\n\t\tboolean sex;\n\t\tint age, gpa;\n\t\t\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSystem.out.print(\"Введите имя:\");\n\t\t\t\tfirstName = reader.readLine();\n\t\t\t\tif (firstName != null && !firstName.equals(\"\"))\n\t\t\t\t\tbreak;\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Неверно введено имя. Повторите попытку.\");\n\t\t\t}\n\t\t}\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSystem.out.print(\"Введите фамилию:\");\n\t\t\t\tlastName = reader.readLine();\n\t\t\t\tif (lastName != null && !lastName.equals(\"\"))\n\t\t\t\t\tbreak;\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Неверно введена Фамилия. Повторите попытку.\");\n\t\t\t}\n\t\t}\n\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSystem.out.print(\"Введите пол (м/ж):\");\n\t\t\t\ttempSex = reader.readLine();\n\t\t\t\tif (tempSex != null && !tempSex.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tif (tempSex.equalsIgnoreCase(\"м\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tsex=true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (tempSex.equalsIgnoreCase(\"ж\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tsex=false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.err.println(\"Неверно введен пол. Повторите попытку.\");\n\t\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Неверно введен пол. Повторите попытку.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSystem.out.print(\"Введите возраст:\");\n\t\t\t\t\n\t\t\t\tage= Integer.parseInt(reader.readLine());\n\t\t\t\t\tif (age<0) \t\t\t{\n\t\t\t\t\t\tSystem.err.println(\"Возраст должен быть положительным числом\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (age>120)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(\"Возраст должен быть меньше 120 лет\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Возраст должен быть числом. Попробуйте еще раз.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSystem.out.print(\"Введите средний балл:\");\n\t\t\t\t\n\t\t\t\tgpa= Integer.parseInt(reader.readLine());\n\t\t\t\t\tif (gpa<0) \t\t\t{\n\t\t\t\t\t\tSystem.err.println(\"Средний балл должен быть положительным числом\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (gpa>5)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(\"Средний балл должен быть меньше 5\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Средний балл должен быть числом. Попробуйте еще раз.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry{\n\t\t\treader.close();\n\t\t\tgroup.addStudent(new Student(firstName, lastName, sex, age, gpa));\n\t\t}\n\t\tcatch (OutOfFreePlacesException | IOException e)\n\t\t\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t\t\n\n\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tPerson p1=new Person(\"Poe\", \"Monywa\");\r\n\t\tPerson p2=new Person(\"Phyo\", \"Yangon\");\r\n\t\tStudent stu=new Student(p1.name,p1.address,\"Foundation Level\",1,100000.0);\r\n\t\t\r\n\t\tStaff stf=new Staff(p2.name,p2.address,\"HH\",100000.0);\r\n\t\tSystem.out.println(\"Student Information:\");\r\n\t\tSystem.out.println(\"Name:\"+stu.name+\"\\nAddress:\"+stu.address+\"\\nProgram:\"+stu.program+\"\\nYear:\"+stu.year+\"\\nFee:\"+stu.fee);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Staff Information:\");\r\n\t\tSystem.out.println(\"Name:\"+stf.name+\"\\nAddress:\"+stf.address+\"\\nSchool:\"+stf.school+\"\\nPay:\"+stf.pay);\r\n\t}", "public static void main(String[] args) {\n\t\tSawon s1=new Sawon();\r\n\t\ts1.name=\"홍길동\";\r\n\t\ts1.dept=\"영업부\";\r\n\t\ts1.print();\r\n\t\tSawon s2=s1;\r\n\t\ts2.name=\"심청이\";\r\n\t\ts2.dept=\"개발부\";\r\n\t\ts2.print();\r\n\t\ts1.print(); //이건 복제가 아니라 주소 참조\r\n\t\t\r\n\t\tStudent s3=new Student();\r\n\t\ts3.id=\"hong\";\r\n\t\tSystem.out.println(\"s3.id:\"+s3.id);\r\n\t\tStudent s4=s3.display();\r\n\t\ts4.id=\"shim\";\r\n\t\tSystem.out.println(\"s4.id:\"+s4.id);\r\n\t}", "public static void main(String[] args){\n\t\tPersonalData data1= new PersonalData(1982,01,11,234567890);\n\t\tPersonalData data2= new PersonalData(1992,10,19,876543210);\n\t\tPersonalData data3= new PersonalData(1989,04,27,928374650);\n\t\tPersonalData data4= new PersonalData(1993,07,05,819463750);\n\t\tPersonalData data5= new PersonalData(1990,11,03,321678950);\n\t\tPersonalData data6= new PersonalData(1991,11,11,463728190);\n\t\tStudent student1=new Student(\"Ali Cantolu\",5005,50,data1);\n\t\tStudent student2=new Student(\"Merve Alaca\",1234,60,data2);\n\t\tStudent student3=new Student(\"Gizem Kanca\",5678,70,data3);\n\t\tStudent student4=new Student(\"Emel Bozdere\",8902,70,data4);\n\t\tStudent student5=new Student(\"Merter Kazan\",3458,80,data5);\n\n\t\t//A course (let us call it CSE141) with a capacity of 3 is created\n\t\tCourse CSE141=new Course(\"CSE141\",3);\n\n\t\t//Any 4 of the students is added to CSE141.\n\t\tif (!CSE141.addStudent(student1)) System.out.println(student1.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student2)) System.out.println(student2.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student3)) System.out.println(student3.toString()+ \" is not added\");\n\t\tif (!CSE141.addStudent(student4)) System.out.println(student4.toString()+ \" is not added\");\n\n\n\t\t//All students of CSE141 are printed on the screen.\n System.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n CSE141.list();\n\n //The capacity of CSE141 is increased.\n CSE141.increaseCapacity();\n\n //Remaining 2 students are added to CSE141.\n\t \tCSE141.addStudent(student4);\n\t \tCSE141.addStudent(student5);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Student with ID 5005 is dropped from CSE141.\n\t \tCSE141.dropStudent(student1);\n\n\t \t//All students of CSE141 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE141.getCourseName()+\": \");\n\t \tCSE141.list();\n\n\t \t//Number of students enrolled to CSE141 is printed.\n\t \tSystem.out.println(\"\\nNumber of students enrolled to \"+CSE141.getCourseName()+\": \" + CSE141.getNumberOfStudents());\n\n\t \t//Birth year of best student of CSE141 is printed on the screen. (You should use getYear() method of java.util.Date class.)\n\t \tSystem.out.println(\"\\nBirth year of best student of CSE141 is \"+CSE141.getBestStudent().getPersonalData().getBirthDate().getYear());\n\n\t \t//A new course (let us call it CSE142) is created.\n\t \tCourse CSE142=new Course(\"CSE142\");\n\n\t \t//All students currently enrolled in CSE141 are added to CSE142. (You should use getStudents() method).\n\t \tStudent[] students = CSE141.getStudents();\n\t \tfor(int i=0;i<CSE141.getNumberOfStudents();i++)\n\t \t\tCSE142.addStudent(students[i]);\n\n\t \t//All students of CSE141 are removed from the course.\n\t \tCSE141.clear();\n\n\t \t//Student with ID 5005 is dropped from CSE141 and result of the operation is printed on the screen.\n\t \tSystem.out.println(\"\\nThe result of the operation 'Student with ID 5005 is dropped from \"+CSE141.getCourseName()+\"' is: \"+CSE141.dropStudent(student1));\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//Best student of CSE142 is dropped from CSE142.\n\t \tCSE142.dropStudent(CSE142.getBestStudent());\n\n\t \t//All students of CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nAll students of \"+CSE142.getCourseName()+\": \");\n\t \tCSE142.list();\n\n\t \t//GPA of youngest student of CSE142 is printed on the screen.\n\t\tSystem.out.println(\"\\nThe Youngest Student's (\"+CSE142.getYoungestStudent()+\") GPA is \"+CSE142.getYoungestStudent().GPA());\n\n\t \t//Courses CSE141 and CSE142 are printed on the screen.\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE141.getCourseName()+\":\\n\" + CSE141.toString());\n\t \tSystem.out.println(\"\\nCourse Information for \"+CSE142.getCourseName()+\":\\n\" + CSE142.toString());\n\t }", "public static void main(String[] args) {\n Student a = new Student();\n a.inputInfo();\n a.showInfo();\n a.hocBong();\n\n }", "public static void main(String[] args) {\n Student sabiha = new ClassOneStudent();\n sabiha.name = \"sabiha\";\n sabiha.roll = 2;\n sabiha.joined();\n }", "public static void main(String[] args) {\n\r\n\t\tPerson person = new Person(\"Kali\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\");\r\n\t\tSystem.out.println(person.toString());\r\n\t\tStudent student = new Student(\"Sofi\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", ClassStatus.FRESHMAN);\r\n\t\tSystem.out.println(student.toString());\r\n\t\tEmployee employee = new Employee(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\");\r\n\t\tSystem.out.println(employee.toString());\r\n\t\tFaculty faculty = new Faculty(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", 8, \"Professor\");\r\n\t\tSystem.out.println(faculty.toString());\r\n\t\tStaff staff = new Staff(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", \"Manager\");\r\n\t\tSystem.out.println(staff.toString());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tArrayList list = new ArrayList();\r\n\t\tArrayList list1=new ArrayList();\r\n\t\tStudentInfo s = new StudentInfo();\r\n\t\t list.add(\"Dhivya\");\r\n\t\t list.add(\"Bharkavi\");\r\n\t\t list.add(\"Anju\");\r\n\t\t list.add(\"Goodwin\");\r\n\t\t list.add(\"Bhuvaneswari\");\r\n\t\t s.Studentlist(list);\r\n\t\t s.getStudent(list);\r\n\t\t int noOfStudent=s.getStudentCount(list);\r\n\t\t System.out.println(\"Number of students using passing parameter in main method \");\r\n\t\t System.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\r\n\t\t System.out.println(\"Number of students are \"+noOfStudent);\r\n\t\t System.out.println(\"\\n\");\r\n\t\t s.sublist(list);\r\n\t\t List lt=s.getSubList1(list, 2, 4);\r\n\t\t System.out.println(lt);\r\n\t\t System.out.println(\"\\n\");\r\n\t}", "public static void main(String[] args) {\n\n OnlineStudent onlineStundent= new OnlineStudent();\n onlineStundent.attendClass();\n\n CampusStudent campusStudent= new CampusStudent();\n campusStudent.attendClass();\n \n }", "public static void main(String[] args) {\n\t\tHashSetStud students = new HashSetStud();\n\t\tstudents.initial();\n\t\tstudents.print();\n\t\n\t\t//\n\t\t// li.them(1, 5);\n\t\t// System.out.print(\"\\nThem gia tri 5 vao vi tri 1- \");\n\t\t// li.xuat();\n\t\t//\n\t\t// li.sua(2, 6);\n\t\t// System.out.print(\"\\nSua phan tu 2 thanh 6 -\");\n\t\t// li.xuat();\n\t\t//\n\t\t// li.xoa(3);\n\t\t// System.out.print(\"\\nXoa phan tu 3 -\");\n\t\t// li.xuat();\n\t\t//\n\t\t// List<Integer> al1 = new ArrayList<Integer>();\n\t\t// al1.add(3);\n\t\t// al1.add(10);\n\t\t// al1.add(15);\n\t\t//\n\t\t// li.themSubList(al1);\n\t\t// System.out.print(\"\\nThem mot sub ArrayList -\");\n\t\t// li.xuat();\n\t\t//\n\t\t// System.out.print(\"\\nVi tri dau tien cua 3: \" + li.viTriDauTien(3));\n\t\t// System.out.print(\"\\nVi tri cuoi cung cua 5: \" + li.viTriCuoiCung(5));\n\t\t//\n\t\t// System.out.print(\"\\nTra ve sub ArrayList -\");\n\t\t// ListEx li1 = new ListEx();\n\t\t// li1.setAL(li.traVeSubList(1, 3));\n\t\t// li1.xuat();\n\t\t// MapEx hMap = new MapEx();\n\t\t// hMap.nhap();\n\t\t// System.out.print(\"\\n\");\n\t\t// hMap.xuat();\n\t\t\n//\t\tTreeSetEx tset = new TreeSetEx();\n//\t\ttset.nhapERR();\n//\t\tSystem.out.print(\"\\n\");\n//\t\ttset.xuat();\n\n\t}", "public static void main(String[] args) {\n \tStudentDao dao=new StudentDao();\r\n\t\tList<Student> students=dao.getStudents();\r\n\t\tfor (Student student : students) {\r\n\t\t\tSystem.out.println(student);\r\n\t\t}\r\n//\t\tStudent student=new Student();\r\n//\t\tstudent.setName(\"²ρΘ®\");\r\n//\t\tstudent.setBId(3);\r\n//\t\tstudent.setGerden(0);\r\n//\t\tstudent.setId(5);\r\n// \tint result= dao.add(student);\r\n//\t\tint result=dao.update(student);\r\n//\t\tint result =dao.del(7);\r\n//\t\tSystem.out.println(result);\r\n\t}", "public void addStudent(Student student);", "public static void main(String[] args) \r\n\t{\n Myrecord me=new Myrecord();\r\n me.name=\"kanna\";\r\n me.rollno=56;\r\n me.marks=100;\r\n \r\n \t me.display();\r\n \t\r\n\t}", "public static void main(String[] args) {\n\t\tStudent s=new Student();\r\n\t\ts.setRoll_no(2);\r\n\t\ts.setName(\"John\");\r\n\t\tSystem.out.println(\"Roll Number:\"+s.getRoll_no());\r\n\t\tSystem.out.println(\"Name:\"+s.getName());\r\n\t}", "private void CreateStudentList() {\r\n\t\tStudentList=new ArrayList<Student>();\t\r\n}", "public GUI_StudentInfo() {\n initComponents();\n }", "public Student(){//default constructor \r\n ID_COUNTER++;\r\n studentNum = ID_COUNTER;\r\n firstName = \"\";\r\n lastName = \"\";\r\n address = \"\";\r\n loginID = \"\";\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "public static void main(String[] args) {\n \n\t\tInstructor instructor = new Instructor();\n\t\tinstructor.id=1;\n\t\tinstructor.firstName=\"ali\";\n\t\tinstructor.lastName=\"Veli\";\n\t\tinstructor.lessons=\"C#\";\n\t\tinstructor.phoneNumber=\"00000000000\";\n\t\tinstructor.email=\"[email protected]\";\n\t\tinstructor.password=\"1222\";\n\t\t\n\t\tStudent student = new Student();\n\t\tstudent.firstName =\"Oya\";\n\t\tstudent.lastName =\"deniz\";\n\n\t\t\n\t\t\n\t\tUserManager userManager = new UserManager();\n\t\tuserManager.add(student);\n\t\tuserManager.add(instructor);\n\t\tUser[] users = {instructor,student};\n\t\t\n\t\tuserManager.allList(users);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\n Student st = new Student (\"shagria\",\"kabir\",95,101);\n\n Assert.assertEquals(st.getFirstName(),\"shagria\");\n Assert.assertEquals(st.getLastName(),\"kabir\");\n Assert.assertEquals(st.getScore(),90);\n Assert.assertEquals(st.getId(),101);\n\n }", "public void testPrintStudentDetails() {\n\t System.out.println(\"printStudentDetails\");\n\t Student instance = student1;\n\t student1.addCourse(course1);\n\t student1.addModule(module1);\n\t instance.printStudentDetails();\n\t }", "public static void main(String[] args) {\n\t\tSchool obj = new School();\n\t\t\n\t\tobj.marks();\n\t\tobj.name();\n\t\tobj.rollnumber();\n\t\tobj.grade();\n\t\t\n\t}", "public static void main(String[] args) {\n Student terrel = new Student(\"Terrel\", 50, 1, 4.0);\n\n// terrel.setName(\"Terrel\");\n// terrel.setGpa(4.0);\n\n System.out.println(terrel.getName() + \" \" + terrel.getNumberOfCredits() + \" \" +terrel.getGpa());\n }", "public void addStudent(Student student) {\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\t\tnew Add_Lecturer();\n\t\t\t\t\t\n\t\t\t\t}", "public static void main(String[] args){\n Student s = new Student();\n // assign values to state\n s.ID = 1000;\n s.NAME = \"Joan\";\n s.GENDER = \"Male\";\n\n \n // updating profile\n s.UpdateProfile(\"John\");\n }", "public static void main(String[] args)\n\t{\n\t\tGroup Groups = new Group();\n\t\tList<Student> temp = Groups.CreateStudents();\n\t\tGroups.GenerateGroups(temp);\n\t\t\n\t\tStudent s = Groups.findStudent(\"Rizwan\");\n\t\tStudent r = Groups.findStudent(\"Brieanna\");\n\t\t\n\t\tGroups.Chat(s, \"Hello\");\n\t\tGroups.Chat(s, \"asdf\");\n\t\tGroups.Chat(r, \"Hi!\");\n\t\tGroups.Chat(r, \"Hi!\");\n\t\tGroups.Chat(r, \"God damn lag!\");\n\n\t\t\n\t\t\n\t\t\n\t\tArrayList<String> a = Groups.FindConversationsofStudent(\"Rizwan\");\n\t\t\n\t\t\n\t\t\n\t\tfor(String item: a)\n\t\t{\n\t\t\tSystem.out.println(item);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSchool obj=new School();\r\n\t\tobj.english();\r\n\t\tobj.maths();\r\n\t\tobj.physics();\r\n\t\tobj.science();\r\n\t\tobj.social();\r\n\t\t\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Statistics();\n\t\t\t\t\n\t\t\t}", "public static void main(String[] args) {\n\r\n\t\tEncapsulation emp = new Encapsulation(); \r\n\t\temp.setSsn (1234); // the functions are called from below method\r\n\t\temp.setEmpname (\"peter\");\r\n\t\temp.setEmpAge(24);\r\n\t\t\r\n\t\tSystem.out.println(\"emplyee name is:\"+emp.getEmpname());\r\n\t\tSystem.out.println(\"emplyee name is:\"+emp.getEmpAge());\r\n\t\tSystem.out.println(\"emplyee name is:\"+emp.getSsn());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tstudentList();\r\n\t}", "public static void main(String[] args) {\n Student student = Student.createInstanceByIdAndFirstName(10 , \"Jhn\");\n Student student1 = Student.createInstanceByIdAndLastName(11, \"Smith\");\n }", "public static void main(String[] args) {\n\t\t\n\t\tStudent student = new Student();\n\t\tStudentDAO dao = new StudentJDBC();\n\t\t//boolean insert = dao.createStudentRecord(student);\n\t\t//System.out.println(\"Record inserted.\"+insert);\n\t\t\n\t\t// Fetch Single student data\n\t\t\n\t\t//Student record = dao.getStudentDetail(101);\n//\t\tSystem.out.println(\"Student sid=\"+record.getSid());\n//\t\tSystem.out.println(\"Student name= \"+record.getSname());\n//\t\tSystem.out.println(\"Student std= \"+record.getStd());\n//\t\tSystem.out.println(\"Student Stream= \"+record.getStream());\n//\t\tSystem.out.println(\"Student DOB= \"+record.getDob());\n\t\t\n\t\t// Fetch All Student record\n\t\t\n//\t\tList<Student> record = dao.getAllStudentDetail();\n//\t\t\n//\t\tfor(Student s:record) {\n//\t\tSystem.out.println(\"Student sid=\"+s.getSid());\n//\t\tSystem.out.println(\"Student name= \"+s.getSname());\n//\t\tSystem.out.println(\"Student std= \"+s.getStd());\n//\t\tSystem.out.println(\"Student Stream= \"+s.getStream());\n//\t\tSystem.out.println(\"Student DOB= \"+s.getDob());\n//\t\tSystem.out.println(\"=================================\");\n//\t\t}\n\t\t\n\t\t// update record\n//\t\tboolean update = dao.updateStudentRecord(student);\n//\t\tSystem.out.println(\"Record updated\" +update);\n\t\t\n\t\tboolean delete = dao.deleteStudentRecord(104);\n\t\tSystem.out.println(\"Record deleted.\"+delete);\n\n\n\t}", "public static void main(String[] args) {\n Student ram = new Student();\n \n ram.setRollNumber(202);\n ram.setStudentName(\"Rakshitha\");\n ram.setMarkScored(-98);\n ram.setEmail(\"[email protected]\");\n \n \n System.out.println(ram.getMarkScored());\n \n Student shyam = new Student(203,\"Shyam\",97,\"[email protected]\");\n \n System.out.println(shyam.getStudentName());\n System.out.println(shyam.getMarkScored());\n\t}", "public College()\r\n {\r\n students = new ArrayList<Student>();\r\n }", "public void actionPerformed(ActionEvent e){\n \t\t \tstudentsController.addStudent();\n \t\t }", "private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\t\n\t\t Scanner sc = new Scanner(System.in);\n\t\t\tStudent sv1 = new Student(1,\"Le Huy Hoai\",5.2f,7.2f);\n\t\t\tStudent sv2 = new Student(2,\"Linh Tran\",7.2f,5.5f);\n\t\t\tStudent sv3 = new Student();\n\t\t\t\n\t\t\tSystem.out.println(\"Id sinh vien 3: \");\n\t\t\tsv3.setId(sc.nextInt());\n\t\t\tsc.nextLine();\n\t\t\tSystem.out.println(\"Ten sinh vien 3: \");\n\t\t\tsv3.setName(sc.nextLine());\n\t\t\t\n\t\t\tSystem.out.println(\"Diem ly thuyet sinh vien 3: \");\n\t\t\tsv3.setDiemLT(sc.nextFloat());\n\t\t\tSystem.out.println(\"Diem thuc hanh sinh vien 3: \");\n\t\t\tsv3.setDiemTH(sc.nextFloat());\n\t\t\t\n\t\t\tSystem.out.println(sv1);\n\t\t\tSystem.out.println(sv2);\n\t\t\tSystem.out.println(sv3);\n\t\t\t\n\t\t\t\n\t\t\t\n\t}", "Student createStudent();", "public static void main(String[] args) {\n\r\n\r\n Employee e1=new Employee();\r\n\r\n e1.name=\"avinash\";\r\n e1.city=\"ongole\";\r\n e1.age=58;\r\n\r\n e1.display();\r\n }", "public static void main(String args[]) throws Exception\r\n {\r\n\t HI_login hi= new HI_login();\r\n\t hi.HiLogin();\r\n\t \r\n\t ASP_Page asp=new ASP_Page();\r\n\t asp.VerifyAspPage();\r\n\t\r\n\t/*Acuity_admin_login admin= new Acuity_admin_login();\r\n\tadmin.acuity();\r\n\t*/\r\n\t\r\n\t/* HI_reg hireg=new HI_reg();\r\n\t hireg.hireg();\r\n\t \r\n\t //ASP_reg aspreg= new ASP_reg();\r\n\t// aspreg.aspreg();\r\n\t */\r\n\t\r\n \r\n}", "public static void main(String[] args) {\n\t\tStudent stu = new Student();\n\t\t\n\t}", "public StudentRegistration() {\n initComponents();\n }", "public static void main(String[] args) {\n ExamGrade eg1=new ExamGrade(60, 90);\n ExamGrade eg2=new ExamGrade(20, 60);\n ExamGrade eg3=new ExamGrade(55, 85);\n //instances of student \n Student s1=new Student(\"Barış\", \"Arslan\", \"male\", 3.4, \"CMPE\",eg1);\n Student s2=new Student(\"Fırat\", \"Arslan\", \"male\", 2.5, \"CMPE\", eg1);\n Student s3=new Student(\"ali\", \"mehmet\", \"male\", 1.0, \"EEN\", eg3);\n Student s4=new Student(\"ayşe\", \"pek\", \"female\", 3.0, \"EEN\", eg2);\n Student s5=new Student(\"kai\", \"pek\", \"male\", 3.1, \"TK\", eg2);\n\n Student[] a={s5,s3,s2,s1,s4}; //array for test \n Student[] b=generatedStudent(4); //describing genereted values to b because of testing\n show(b); //instance of show method\n findMinMax(b); //instance of findMinMax method\n \n System.out.println(search(a,118101));//instance of search method\n System.out.println(s2);//these control changeGrade before working method\n changeGrade(a, 118102, eg3);//instance of changeGrade method\n System.out.println(s2);//these control changeGrade after working method\n meanGPA(a);//instance of meanGPA \n }", "public static void main(String[] args) {\n\n\t\tStudentLogic stdobj = new StudentLogic();\n\t\tstdobj.userInput();\n\t\tstdobj.display();\n\t}", "public static void main(String[] args) {\n\r\n clsAlumno alumno1 = new clsAlumno();\r\n\r\n alumno1.setNombre(\"Eneko\");\r\n\r\n alumno1.setApellido(\"Galdos\");\r\n\r\n alumno1.setDNI(\"72826873H\");\r\n\r\n alumno1.setCreditos(60);\r\n\r\n alumno1.mostrarPersona();\r\n\r\n alumno1.mostrarCreditos();\r\n\r\n System.out.println();\r\n\r\n clsProfesor profesor1 = new clsProfesor();\r\n\r\n profesor1.setNombre(\"Javier\");\r\n\r\n profesor1.setApellido(\"Cerro\");\r\n\r\n profesor1.setDNI(\"11111111A\");\r\n\r\n profesor1.setDepartamento(\"Informática\");\r\n\r\n profesor1.mostrarPersona();\r\n\r\n profesor1.mostrarDepartamento();\r\n\r\n }", "public static void Add_students() throws SQLException \n\t {\n\t\ttry\n\t\t{\n\t\t\t//Declarations \n\t\t\tFloat gpa=0.0f;\n\t\t\tString fname=\"\",lname=\"\",status=\"\";\n\t\t\tString email=\"\";\n\t\t\tString sid=\"\";\n\t\t\tSystem.out.println(\"Please enter the students sid (starting with 'B')\\n\"); \n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in ) ); \n\t\t\tsid = br.readLine(); \n\t\t\t\t\t \t\t\t\n\t\t\tSystem.out.println(\"Please enter the students First name \\n\");\n\t\t\tfname=br.readLine();\n\n\t\t\t System.out.println(\"Please enter the students Last name \\n\"); \n lname=br.readLine();\n\t\t\t\n\t\t\t\tSystem.out.println(\"Please enter the students status (('freshman', 'sophomore', 'junior', 'senior', 'graduate'))\\n\"); \n\t\t\t\tstatus = br.readLine();\n\t\t\n\t\t\tdo{\n\t\t\t\tSystem.out.println(\"Please enter the students GPA ((gpa >= 0 and gpa <= 4.0))\\n\"); \n\t\t\t\tgpa = Float.parseFloat(br.readLine());\n\t\t\t}while(gpa<0.0 && gpa>4.0);\n\n\t\t\t\t\t\t \n\t\t\tSystem.out.println(\"Please enter the students email address\\n\"); \n\t\t\temail = br.readLine();\n //Connection to Oracle server\n OracleDataSource ds = new oracle.jdbc.pool.OracleDataSource();\n ds.setURL(\"jdbc:oracle:thin:@grouchoIII.cc.binghamton.edu:1521:ACAD111\");\n Connection conn = ds.getConnection(\"vbobhat1\", \"BingData\");\n\tCallableStatement cs = conn.prepareCall (\"begin StudRegSys.add_student(:1,:2,:3,:4,:5,:6); end;\");\n\t\t\tcs.setString(1,sid);\t\t \t \n\t\t \tcs.setString(2,fname);\n\t\t\tcs.setString(3,lname);\n\t\t \tcs.setString(4,status);\n\t\t \tcs.setFloat(5,gpa);\n\t\t \tcs.setString(6,email);\n\t\t\tcs.executeQuery();\n\t \n\t \tSystem.out.println(\"Student Succesfully Added!\");\n\t \n\t \t// close the result set, statement, and the connection\n\t\t \tcs.close();\n\t\t \tconn.close();\n\t\t }\n\tcatch (SQLException ex) { System.out.println (\"\\n*** SQLException caught ***\\n\" + ex.getMessage());}\n catch (Exception e) {System.out.println (\"\\n*** other Exception caught ***\\n\");}\n\t }", "public static void main(String[] args) {// we can create psvm method but cannot create objects in abstract class\n\t\tSchool.bonus();// as bonus method is static we can print it without create class name so we can use\n\t\t\t\t\t\t// with classname.mthdname hence it is accepted in abstract class\n\t\tSystem.out.println(\"i am from main method\");// we can write anything in main mthd it prints automatically without\n\t\t\t\t\t\t\t\t\t\t\t\t\t// creating obj\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tStudentConstructor S=new StudentConstructor(101,\"ABC\");\r\n\t}", "public static void main(String[] args) {\n\n\n Student cory = new Student(\"Cory\");\n Student bethany = new Student(\"Bethany\");\n System.out.println(Student.studentCount);\n// System.out.println(sayHello(bethany, name));\n System.out.printf(\"Area of circle wih radius 3 is %f\");\n\n }", "public static void main(String[] args) {\n Student model = retriveStudentFromDatabase();\r\n\r\n //Create a view : to write student details on console\r\n View view = new View();\r\n\r\n Controller controller = new Controller(model, view);\r\n\r\n controller.updateView();\r\n\r\n //update model data\r\n controller.setStudentName(\"Gary\");\r\n\r\n controller.updateView();\r\n }", "public static void main(String[] args) {\n\t\tStatic_Demo s=new Static_Demo();\r\n\t\ts.add();\r\n\t\t\r\n\t\tStatic_Demo.sub();\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tPerson John = new Person(\"John\",1957);\r\n\t\tJohn.display();\r\n\t\tJohn.Senority();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public Student_Academic_interface() {\n initComponents();\n }", "public static void main(String[] args) {\n\t\tStudent student=new Student();\n\t\tstudent.firstName=\"Kübra\";\n\t\tstudent.lastName=\"Dik\";\n\t\tstudent.courses=\"JAVA\";\n\t\tstudent.homework=\"3.hafta \";\n\t\tstudent.cardInformation=5879;\n\t\n\t\t\n\t\n\t\tInstructor instructor=new Instructor();\n\t\tinstructor.firstName=\"Engin\";\n\t\tinstructor.lastName=\"Demiroğ\";\n\t\tinstructor.certificate=\"PMP\";\n\t\tinstructor.cardInformation=1457;\n\t\t\n\t\tUserManager userManager=new UserManager();\n\t\t\n\t\t\n\t\tUser[]users= {student,instructor};\n\t\tuserManager.addMultiple(users);\n\t\tuserManager.addCardInformation(instructor);\n\t\tuserManager.deleteCardInformation(student);\n\t\tuserManager.addCourses(student);\n\t\t\n\t\tInstructorManager instructorManager=new InstructorManager();\n\t\tinstructorManager.addCertificate(instructor);\n\t\n\t\t\n\t\t\n\t\tStudentManager studentManager=new StudentManager();\n\t\tstudentManager.addHomework(student);\n\t}", "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public static void main(String[] args) {\n\t\tstudet st=new studet();\r\n score sc=new score();\r\n st.c=80;\r\n st.html=85;\r\n st.java=90;\r\n System.out.println(\"学生平局成绩是\"+ sc.getAvg(st));//实例化的对象来调用它的方法,最后把参数传给他\t\t\r\n\t}", "public static void main(String[] args) {\n\n\t\tScanner scanner=new Scanner(System.in);\n\t\t\n\t\tString name;\n\t\tString studienrichtung;\n\t\tint jahre;\n\t\tint stNummer;\n\t\tint note;\n\t\t\n\t\tSystem.out.println(\"Bitte ausfullen sie den Name\");\n\t\tname=scanner.nextLine();\n\t\t\n\t\tSystem.out.println(\"Bitte ausfullen sie die studienrichtung\");\n\t\tstudienrichtung=scanner.nextLine();\n\t\t\n\t\tSystem.out.println(\"Bitte ausfullen sie die jahre\");\n\t\tjahre=scanner.nextInt();\n\t\t\n\t\tSystem.out.println(\"Bitte ausfullen sie das St.Number\");\n\t\tstNummer=scanner.nextInt();\n\t\t\n\t\tSystem.out.println(\"Bitte ausfullen sie die Note\");\n\t\tnote=scanner.nextInt();\n\t\t\n\t\t\n\t\t\n\t\t//Student myStudent=new Student (name,studienrichtung,jahre,stNummer,note);\n\t\t//myStudent=displayMessage();\n\t\t\n\t\t\n\t\t\n\t\tStudent myStudent=new Student(\"Ivan\",\"Wirtschaftinformatik\",2013,87132,2);\n\t\tmyStudent.displayMessage();\n\t\t\n\t\tStudent myStudent2=new Student(\"Petur\",\"Informatik\",2002,76345,1);\n\t\tmyStudent2.displayMessage();\n\t\t\n\t\t\n\t\tmyStudent.setStudienrichtung(\"Mathematik\");\n\t\tmyStudent.displayMessage();\n\t\tSystem.out.println(myStudent.getStudienrichtung());\n\t\t\n\t\t\n\t}", "@Test\r\n public void testAddModMark() {\r\n System.out.println(\"addModMark\");\r\n String c = \"\";\r\n int ma = 0;\r\n Student instance = new Student();\r\n instance.addModMark(c, ma);\r\n \r\n }", "public StudentResult() {\n initComponents();\n \n \n }", "public static void studentExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit to the Main Menu\");\n\t\tSystem.out.println(\"Enter 'ADD' followed by: studentID, studentName, major, class, and GPA to add a student record\");\n\t\tSystem.out.println(\"Enter 'REMOVE' followed by a studentID to remove a student\");\n\t\tSystem.out.println(\"Enter 'FIND' followed by a studentID or studentName to pull up student's information\");\n\t\tSystem.out.println(\"Enter 'ENROLL' followed by a studentID, deptID and course_Number to enroll a student\");\n\t\tSystem.out.println(\"Enter 'WITHDRAW' followed by a studentID, deptID and course_Number to withdraw a student in a course\");\n\t\tSystem.out.println(\"Enter 'SCHEDULE' followed by a studentID or studentName to list all courses student is enrolled in.\");\n\t}", "void add1() {\n\t\tStatic_Demo s=new Static_Demo();\r\n\t\ts.add();\r\n\t\t\r\n\t\t//calling static method of one class inside another non static of different class via classname\r\n\t\tStatic_Demo.sub();\r\n\t}", "public static void main(String[] args) {\n MyClass m;\n m= new MyClass();\nm.display();\n\t}", "public static void main(String[] args) {\n\t\tDisplayInfo displayInfo=new DisplayInfo();\n\t\tdisplayInfo.studentName(\"Surabhi\");\n\t\tdisplayInfo.display();\n\t}", "public SchoolMain() {\n initComponents();\n // Save default background color to be used en jTableSchoolStudents\n SchoolValues.defaultBackgroundColor = jTableSchoolStudents.getSelectionBackground();\n // Connection with database using an entity manager\n\n setLocationRelativeTo(null);\n \n initJTableSchoolStudents();\n \n // Fill JComboBox with all groups \n schoolGroups.findAll(entityManager);\n jComboBoxSchoolGroup.setModel(new DefaultComboBoxModel(schoolGroups.getSchoolGroupList().toArray()));\n jComboBoxSchoolGroup.setRenderer(new SchoolGroupsListRenderer());\n }", "public static void main(String[] args) {\nmanager xx=new manager(\"sarath\",34,\"9895639874\",\"eloor\",30000,\"BPO\");\r\nemployee xx1=new employee(\"jomon\",24,\"9899999999\",\"eloor\",50000,\"testing\");\r\n\r\n\t}", "public static void main(String[] args) {\n Address address = new Address(\"Jitu\", \"Kolkata\", \"jenyns road\") ;\n Address address1 = new Address(\"Priya\", \"Araah\", \"pakdi road\") ;\n \n address.displayaddress();\n address1.displayaddress();\n //passing the object reference to the child class constructor \n Aggregationexample01 obj = new Aggregationexample01(450, \"WB\", address1) ;\n address = new Address(\"Khushi\", \"Pune\", \"Wakad\");\n address.displayaddress();\n \n double areacal = obj.calculatearea(5);\n System.out.println(\"area calculate :\" + areacal);\n \n obj.displaychildclass();\n \n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddStudentGroup.dispose();\n\t\t\t\tnew Add_Subjects();\n\t\t\t\t\n\t\t\t}", "public static void testStudent() {\n Student test = new Student(-1930026144, \"Simon\");\r\n // test the id number\r\n System.out.println(test.getID() == 0);\r\n System.out.println(test.getName() == \"Simon\");\r\n // reset a name\r\n test.setName(\"John\");\r\n // test the new name\r\n System.out.println(test.getName() == \"John\");\r\n // set a grade\r\n test.setGrade('A');\r\n System.out.println(test.getGrade() == 'A');\r\n }" ]
[ "0.7903365", "0.7005159", "0.6954559", "0.6851353", "0.6841363", "0.6831545", "0.67150146", "0.6628074", "0.66041577", "0.6587065", "0.6561647", "0.6524478", "0.6509013", "0.65080494", "0.64492327", "0.64488286", "0.64459354", "0.6431977", "0.63449687", "0.6321537", "0.6304274", "0.6272125", "0.6272084", "0.62376183", "0.6230731", "0.62079513", "0.6198835", "0.61982554", "0.6196965", "0.61882865", "0.6185485", "0.61821806", "0.61363345", "0.61356336", "0.61321956", "0.61287653", "0.6118647", "0.61015415", "0.60993683", "0.60972476", "0.609304", "0.60887474", "0.60779667", "0.6074006", "0.6045112", "0.6033749", "0.6031076", "0.6030099", "0.6011059", "0.6003826", "0.59992963", "0.59931993", "0.5992718", "0.59922844", "0.5990922", "0.59856284", "0.5983277", "0.5981088", "0.59703887", "0.59597725", "0.5954899", "0.5947999", "0.5943482", "0.59424794", "0.59347135", "0.5931459", "0.59265286", "0.5920444", "0.5912418", "0.5900001", "0.589986", "0.58966154", "0.58911073", "0.5888134", "0.588773", "0.5881807", "0.5874089", "0.58668464", "0.5865975", "0.5863469", "0.58602154", "0.58601856", "0.58551586", "0.58550817", "0.5848509", "0.5843963", "0.5840877", "0.583457", "0.5818536", "0.5817616", "0.58164036", "0.58105737", "0.58099407", "0.5807238", "0.58041036", "0.579565", "0.5795418", "0.5794942", "0.5793938", "0.5792797" ]
0.634147
19
Add_Subjects add_sub= new Add_Subjects(); add_sub.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Add_Subjects(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Sal s=new Sal();\n s.getinfo();\n s.Addsal();\n s.Addwork();\n s.display();\n\t}", "public static void main(String[] args) {\n\t\tStatic_Demo s=new Static_Demo();\r\n\t\ts.add();\r\n\t\t\r\n\t\tStatic_Demo.sub();\r\n\r\n\t}", "private void sub() {\n\n\t}", "public static void main(String[] args) {\nSubClass obj = new SubClass();\r\n\t\t\r\n\t\tobj.display();\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"Welcome to our Java Tutorial Page\");\r\n\t\t\r\n\t\tStudent rookieStudent=new Student();\r\n\t\trookieStudent.set_id(0);\r\n\t\trookieStudent.set_mail(\"[email protected]\");\r\n\t\trookieStudent.set_name(\"Shmouel\");\r\n\t\trookieStudent.set_password(\"youcantlearnthis\");\r\n\t\trookieStudent.set_phone(\"+723 524 08 23\");\r\n\t\trookieStudent.set_username(\"ShmouelTheVanguard\");\r\n\t\tCourses []newList=new Courses[2];\r\n\t\trookieStudent.set_courseList(newList);\r\n\t\tStudent []newList2=new Student[2];\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tCourses courseTheMagnificent=new Courses(0,\"Java Courses\",\"Programming\",\"Mr. E.D. :)\",\"Computer Science\",true);\r\n\t\tcourseTheMagnificent.set_studentList(newList2);\r\n\t\t\r\n\t\tAddingCourses addCourseOperation=new AddingCourses(rookieStudent.get_courseList(),courseTheMagnificent.get_id\r\n\t\t\t\t(),courseTheMagnificent.get_title(),courseTheMagnificent.get_topic(),courseTheMagnificent.get_author(),\r\n\t\t\t\tcourseTheMagnificent.get_category(),courseTheMagnificent.get_status());\r\n\t\tAddingStudents addStudentOperation=new AddingStudents(courseTheMagnificent.get_studentList(),rookieStudent.get_id(),rookieStudent.get_name(),rookieStudent.get_mail(),rookieStudent.get_phone(),rookieStudent.get_username(),rookieStudent.get_password());\r\n\t\trookieStudent.showAllStudents(rookieStudent);\r\n\t\tcourseTheMagnificent.showAllCourses(courseTheMagnificent);\r\n\t\t\r\n\t}", "void add1() {\n\t\tStatic_Demo s=new Static_Demo();\r\n\t\ts.add();\r\n\t\t\r\n\t\t//calling static method of one class inside another non static of different class via classname\r\n\t\tStatic_Demo.sub();\r\n\t}", "public void sub();", "public static void main(String[] args) {\nStudent s=new Student();\ns.display();\n\t}", "public static void main(String[] args) {\n \n Manager manager = new Manager(\"[email protected]\", \"Sally Manager\", \"mgrPass\");\n \n BookAndCancelAppointment bookAndCancelAppointment = new BookAndCancelAppointment();\n \n\n ManageAppointments ma = new ManageAppointments();\n bookAndCancelAppointment.set_ma(ma);\n ma.set_bookAndCancelAppointment(bookAndCancelAppointment);\n\n ManageSystem ms = new ManageSystem();\n ma.set_ms(ms);\n ms.set_ma(ma);\n ms.set_manager(manager);\n \n // Create Subjects\n Subject sub0 = new Subject(\"Intro to Programming\");\n Subject sub1 = new Subject(\"Operating Systems and Networks\");\n Subject sub2 = new Subject(\"Web and Mobile Applications\");\n Subject sub3 = new Subject(\"Computer Architecture\");\n \n // Add subjects to Manager (chosen to only put this uni directional in the implementation since the subject does not need to know the manager, but could be added)\n ms.add_subject(sub0);\n ms.add_subject(sub1);\n ms.add_subject(sub2);\n ms.add_subject(sub3);\n \n // Create Tutors\n TutorData t0 = new TutorData(\"[email protected]\", \"John Tutor\", \"tutpass\");\n TutorData t1 = new TutorData(\"[email protected]\", \"Tutor May\", \"password\");\n TutorData t2 = new TutorData(\"[email protected]\", \"Dave Tutor\", \"tutpassword\");\n TutorData t3 = new TutorData(\"[email protected]\", \"Jane Tutor\", \"passtutor\");\n \n // Add subjects to Manager (needed based on diagram - only implemented uni directional since both directions are not needed)\n ms.add_tutor(t0);\n ms.add_tutor(t1);\n ms.add_tutor(t2);\n ms.add_tutor(t3);\n \n // Add Subjects to Tutors\n t0.add_subject(sub0);\n t0.add_subject(sub1);\n t1.add_subject(sub1);\n t2.add_subject(sub2);\n t2.add_subject(sub3);\n t3.add_subject(sub3);\n t3.add_subject(sub0);\n \n // Create Appointments and add to Tutors\n Date date0 = new Date();\n Date date1 = new Date();\n Date date2 = new Date();\n Date date3 = new Date();\n Date date4 = new Date();\n Date date5 = new Date();\n for(int i = 0; i < 100000; i++){\n int x = 0;\n }\n Date date6 = new Date();\n /*\n String response0 = ma.create_appointment(date0, t0.get_email());\n String response1 = ma.create_appointment(date1, t0.get_email());\n String response2 = ma.create_appointment(date2, t1.get_email());\n String response3 = ma.create_appointment(date3, t2.get_email());\n String response4 = ma.create_appointment(date4, t2.get_email());\n String response5 = ma.create_appointment(date5, t2.get_email());\n String response6 = ma.create_appointment(date6, t2.get_email());\n */\n /* \n Appointment appt0 = new Appointment(date0, 0, t0);\n Appointment appt1 = new Appointment(date1, 1, t0);\n Appointment appt2 = new Appointment(date2, 2, t1);\n Appointment appt3 = new Appointment(date3, 3, t2);\n Appointment appt4 = new Appointment(date4, 4, t2);\n Appointment appt5 = new Appointment(date5, 5, t2);\n Appointment appt6 = new Appointment(date6, 6, t2);\n */\n /* \n // Add appointments to appointment list\n ma.add_appointment(appt0);\n ma.add_appointment(appt1);\n ma.add_appointment(appt2);\n ma.add_appointment(appt3);\n ma.add_appointment(appt4);\n ma.add_appointment(appt5);\n ma.add_appointment(appt6);\n */\n \n /*\n // Create Students\n StudentData s0 = new StudentData(\"[email protected]\", \"John Student\", \"studpass\", 5);\n StudentData s1 = new StudentData(\"[email protected]\", \"Jane Student\", \"pass\", 2);\n StudentData s2 = new StudentData(\"[email protected]\", \"Jack Student\", \"passwo\", 1);\n StudentData s3 = new StudentData(\"[email protected]\", \"Bob Student\", \"studentpass\", 0);\n */\n /* \n // Add students to list\n bookAndCancelAppointment.add_student(s0);\n bookAndCancelAppointment.add_student(s1);\n bookAndCancelAppointment.add_student(s2);\n bookAndCancelAppointment.add_student(s3);\n */\n //test create appointment\n //pass\n System.out.println(ma.create_appointment(date0, t0.get_email()));\n //fail\n System.out.println(ma.create_appointment(date0, t0.get_email()));\n //pass\n System.out.println(ma.create_appointment(date0, t1.get_email()));\n //pass\n System.out.println(ma.create_appointment(date6, t0.get_email()));\n // Add Appointments to Students\n //appt0.student = s1;\n //appt0.booked = true;\n //s1.appointments.add(appt0);\n /* \n // Test Book Appointment method\n \n // Not enough credits case\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Computer Architecture\", date0));\n \n // Already an appointment booked\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Web and Mobile Applications\", date1));\n \n // No available tutor case\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Intro to Programming\", date2));\n \n // Appointment can be booked case\n int s2Credits = s2.numCredits;\n assert(appt4.student == null);\n System.out.println(bookAndCancelAppointment.bookAppointmentBySubjectAndTime(\"[email protected]\", \"Web and Mobile Applications\", date3));\n assert(s2Credits - 1 == s2.numCredits);\n assert(appt4.student == s2);\n // test book by id\n // Not enough credits case\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 0));\n \n // Already an appointment booked\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 6));\n \n // No available tutor case\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 0));\n \n // Appointment can be booked case\n //System.out.println(bookAndCancelAppointments.BookAppointmentByID(\"[email protected]\", 1));\n */\n }", "public static void main(String[] args) {\n \r\n MenuPrincipal iniciar=new MenuPrincipal();\r\n iniciar.mostrarMenu();\r\n \r\n \r\n }", "public static void main(String[] args) {\nbonus b=new bonus();\nb.sale();\nb.salary();\n\t}", "public static void main(String[] args) {\n\t\tExam a = new Exam(); //객체 인스턴트 생성\n\t\n\t\ta.Ex1(); \t\t\t\t//부모클래스의 메소드를 활용\n\n\t}", "public static void main(String[] args) {\n\n\t\n\tSchool obj =new School();\n\tobj.studentfee();\t\n\t \n\t}", "SUB createSUB();", "public static void main(String[] args) {\n\t\tArrayList list = new ArrayList();\r\n\t\tArrayList list1=new ArrayList();\r\n\t\tStudentInfo s = new StudentInfo();\r\n\t\t list.add(\"Dhivya\");\r\n\t\t list.add(\"Bharkavi\");\r\n\t\t list.add(\"Anju\");\r\n\t\t list.add(\"Goodwin\");\r\n\t\t list.add(\"Bhuvaneswari\");\r\n\t\t s.Studentlist(list);\r\n\t\t s.getStudent(list);\r\n\t\t int noOfStudent=s.getStudentCount(list);\r\n\t\t System.out.println(\"Number of students using passing parameter in main method \");\r\n\t\t System.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\r\n\t\t System.out.println(\"Number of students are \"+noOfStudent);\r\n\t\t System.out.println(\"\\n\");\r\n\t\t s.sublist(list);\r\n\t\t List lt=s.getSubList1(list, 2, 4);\r\n\t\t System.out.println(lt);\r\n\t\t System.out.println(\"\\n\");\r\n\t}", "public void sub() {\n\t\tSystem.out.println(\"I am from substraion method\");\n\t\t\n\t}", "public void loadSubjectName(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from SUbjects \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs.getString(\"SubjectName\");\n\t\t\t\t\tsubname.addItem(name);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tcon.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n}", "public SubjectClass() {\n }", "public static void main(String args[]) {\n Subclass subc = new Subclass();\r\n }", "public static void main(String args[]){\n\tClasschild T=new Classchild();\n\tClass1 c=new Class1();\n\tc.addition();\n\tc.subtraction();\n\tT.multiplication();\n\t\n}", "public static void main(String[] args) {\n\nCeo c=new Manager();\nc.manage();\nc.invest();\nManager n=new Manager();\nn.employee();\n//ManagingDirector md=new Manager();\n\n\n//Manager m=new Manager();\n//m.manage();\n//m.employee();\n \n }", "public static void main(String[] args) {\n\n campusStudent cs=new campusStudent();\n cs.attendClass();\n System.out.println(\"==============================\");\n OnlineStudents os=new OnlineStudents();\n os.attendClass();\n cs.homeWork();\n os.homeWork();\n }", "public static void main(String[] args) {\n\t\t\n\t\tStudent s1 = new Student(\"Gagan\");\n\t\t\n\t\tSystem.out.println(s1.myfunction());\n\t\t\n\t\tTeacher t1 = new Teacher();\n\n\t}", "public static void main(String[] args) {\n\t\tSchool obj=new School();\r\n\t\tobj.english();\r\n\t\tobj.maths();\r\n\t\tobj.physics();\r\n\t\tobj.science();\r\n\t\tobj.social();\r\n\t\t\r\n\t}", "public boolean addSubject(Subject sub) {\n\t\t// Defined connection, rs and cs to connect and query database\n\t\tConnection cn = LibConnection.getConnection();\n\t\ttry {\n\t\t\tcsDetails = cn.prepareCall(LibProcedure.ADD_SUB);\n\t\t\tcsDetails.setString(1, sub.getSubName());\n\t\t\tcsDetails.setString(2, sub.getDescription());\n\t\t\tcsDetails.execute();\n\t\t\treturn true;\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\t// close all connect\n\t\t\tLibConnection.close(csDetails);\n\t\t\tLibConnection.close(cn);\n\t\t}\n\t\treturn false;\n\t}", "public Main() {\r\n\t}", "public static void main(){\n\t}", "@Test\r\n\tpublic void mainTest(){\r\n\t\tMain m = new Main();\r\n\t\tm.main(null);\r\n\t}", "private SubjectManagement() {\n\n\t}", "protected void mainSubDef()\n\t{\n\t\ttext(\"public static void main(String[] args) {\");\n\t\tsuper.mainSubDef();\n\t}", "public static void main(String[] args) {\n\t\tAdminDepartment A = new AdminDepartment();//Object created to access AdminDepartment class\r\n\t\tHrDepartment H = new HrDepartment(); // Object created to access HrDepartment class\r\n\t\tTechDepartment T = new TechDepartment();//Object created to access TechDepartment class\r\n\t\t\r\n\t A.departmentName();\r\n\t A.getTodaysWork();\r\n\t A.getWorkDeadline();\r\n\t A.isTodayAHoliday();\r\n\t System.out.println(\"\");\r\n\t \r\n\t H.departmentName();\r\n\t H.getTodaysWork();\r\n\t H.getWorkDeadline();\r\n\t H.isTodayAHoliday();\r\n\t System.out.println(\"\");\r\n\t \r\n\t T.departmentName();\r\n\t T.getTodaysWork();\r\n\t T.getWorkDeadline();\r\n\t T.isTodayAHoliday();\r\n\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);\n\n //new MakeAppoinment().setVisible(true);\n //upldMedRec.setVisible(true);\n //makeAppt.setVisible(true);\n //showScreen1();\n //jButton2ActionPerformed(java.awt.event.ActionEvent evt)\n \n //makeAppt.jButton2ActionPerformed();\n\n \n \n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tStudent diwas= new Student();\n\t\t//Putting data\n\t\tdiwas.name=\"Diwas 123\";\n\t\tdiwas.id= 1;\n\t\tdiwas.address=\"US\";\n\t\tdiwas.yearOfStudy=2;\n\t\t\n\t\tdiwas.printDetails();\n\t\tdiwas.studies();\n\t\tdiwas.giveExams();\n\t\t\n\t\t\n\t\tSystem.out.println( \"=======\");\n\t\tStudent mohhamad= new Student();\n\t\tmohhamad.name=\"Mohhamad 123\";\n\t\tmohhamad.id=2;\n\t\tmohhamad.address=\"US\";\n\t\tmohhamad.yearOfStudy=3;\n\t\t\n\t\tmohhamad.printDetails();\n\t\tmohhamad.studies();\n\t\tmohhamad.giveExams();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\nMain ma=new Main();\r\nma.minus();\r\n\t}", "public static void main(String[] args) {\nmanager xx=new manager(\"sarath\",34,\"9895639874\",\"eloor\",30000,\"BPO\");\r\nemployee xx1=new employee(\"jomon\",24,\"9899999999\",\"eloor\",50000,\"testing\");\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tRoom ru= null;\n\t\t\n\t\tpublic School(Room ru){\n\t\t\tthis.ru= ru;\n\t\t}\n\t\t\n School sc= new School();\n \n\t}", "public static void main(String[] args) {\n\t\tLearnReturnVar obj = new LearnReturnVar();\r\n\t\tint result= obj.add();\r\n\t\tSystem.out.println(\"the addition value is\" +result);\r\n obj.sub(50,10);\r\n\t\r\n\t}", "int main() \n{\n clas s;\n s.cal();\n return 0;\n}", "public static void main(String[] args) {\n\n\t\tMethods.id=101;\n\t\tMethods.name=\"abuzer\";\n\t\tMethods.lastName=\"killica\";\n\t\tMethods.salary=55000;\n\t\tMethods.title=\"manager\";\n\t\tMethods.working();\n\t\tMethods.display();\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n\t\tPerson person = new Person(\"Kali\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\");\r\n\t\tSystem.out.println(person.toString());\r\n\t\tStudent student = new Student(\"Sofi\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", ClassStatus.FRESHMAN);\r\n\t\tSystem.out.println(student.toString());\r\n\t\tEmployee employee = new Employee(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\");\r\n\t\tSystem.out.println(employee.toString());\r\n\t\tFaculty faculty = new Faculty(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", 8, \"Professor\");\r\n\t\tSystem.out.println(faculty.toString());\r\n\t\tStaff staff = new Staff(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", \"Manager\");\r\n\t\tSystem.out.println(staff.toString());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tJavainterface e = new Javainterface();\r\n\t\te.studentName();\r\n\t\te.subject();\r\n\t}", "public Main() {\n // Required empty public constructor\n }", "public static void main (String[] arg){\n\n Student student1 = new Student();\n Student student2 = new Student(12345,\"Anh\",\"Pham\");\n Student student3 = new Student(27485,\"New\",\"Student\");\n\n System.out.println(student1);\n System.out.println(student2);\n System.out.println(student3);\n\n //Test Student Group\n long groupCode = 123456;\n Student contactStudent = new Student(987654,\"HyHy\",\"Phan\");\n List<Student> studentList = new ArrayList<>();\n\n StudentGroup newGroup = new StudentGroup(groupCode, contactStudent, studentList);\n newGroup.getInfo();\n newGroup.addStudent(student2);\n newGroup.addStudent(student3);\n newGroup.getInfo();\n }", "public static void main(String[] args){\n\t\tStudent s=new Student(); \r\n\t\t\r\n\t\t\r\n\t\t//setting value in the name member \r\n\t\t\r\n\t\t\r\n\t\ts.setName(\"vijay\"); \r\n\t\ts.setId(35);\r\n\t\ts.SetSalary(25000);\r\n\t\ts.SetTax(2055.543536f);\r\n\t\ts.SetBusName(\"RedBus\");\r\n\t\t//getting value of the name member \r\n\t\t\r\n\t\tSystem.out.println(\"This is Name :\"+s.getName()); \r\n\t\tSystem.out.println(\"This is id :\"+s.getEmpId());\r\n\t\tSystem.out.println(\"This is Salary :\"+s.getSalary());\r\n\t\tSystem.out.println(\"This is Tax :\"+s.getTax());\r\n\t\tSystem.out.println(\"This is BusName :\"+s.GetBusName());\r\n\t\t\r\n\t\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tInstitude i1=new Institude(10,\"Pune\",new Branch(11,\"Bas\",new Subject(20,\"Java\",new Topic\r\n\t\t\t\t(30,\"Method Overloading\",new SubTopic(40,\"Method Overriding\",new Question(50,\"What is class\"))))));\r\n\t\t\r\n\t\tSystem.out.println(i1);\r\n\t\t\r\n\t\t\r\n//\t\tInstitude i1=new Institude();\r\n//\t\ti1.setId(10);\r\n//\t\ti1.setName(\"Pune\");\r\n//\t\t\r\n//\t\tBranch b1=new Branch();\r\n//\t\tb1.setId(11);\r\n//\t\tb1.setName(\"Bsc\");\r\n//\t\t\r\n//\t\tSubject s1=new Subject();\r\n//\t\ts1.setId(20);\r\n//\t\ts1.setName(\"Java\");\r\n//\t\t\r\n//\t\tTopic t1=new Topic();\r\n//\t\tt1.setId(30);\r\n//\t\tt1.setName(\"Method Overloading\");\r\n//\t\t\r\n//\t\tSubTopic s2=new SubTopic();\r\n//\t\ts2.setId(40);\r\n//\t\ts2.setName(\"Method overriding\");\r\n//\t\t\r\n//\t\tQuestion q1=new Question();\r\n//\t\tq1.setId(50);\r\n//\t\tq1.setName(\"What is Class ?\");\r\n//\t\t\r\n//\t\t\r\n//\t\ti1.setB1(b1);\r\n//\t\tb1.setS1(s1);\r\n//\t\ts1.setT1(t1);\r\n//\t\tt1.setSt(s2);\r\n//\t\ts2.setQ1(q1);\r\n//\t\t\r\n//\t\tSystem.out.println(i1);\r\n\t\r\n\t\t}", "public Main() {\r\n }", "public Main() {\r\n }", "public static void main(String[] args) { //main method \n\t\t\n\t\tCal c = new Cal(); //creating an object of cal to access the members of the class\n\t\tc.setSalary(59280);\t\t//calling the method of class Cal using the created object and passing some parameter for that method\n\t\tSystem.out.println(\"Salary of \" +department+ \" is: \" ); //displaying the output on the console\n\t\tc.print(); //printing the salary which is present in cal class using the object created\n\t}", "public Lvl_Sub_Rel(String subject_name,int subject_id,String additional_level_ids){\n this.subject_name = subject_name;\n this.subject_id = subject_id;\n this.additional_level_ids = additional_level_ids; \n }", "public static void main(String[] args) {\n MyClass m;\n m= new MyClass();\nm.display();\n\t}", "public static void main(String[] args) {// we can create psvm method but cannot create objects in abstract class\n\t\tSchool.bonus();// as bonus method is static we can print it without create class name so we can use\n\t\t\t\t\t\t// with classname.mthdname hence it is accepted in abstract class\n\t\tSystem.out.println(\"i am from main method\");// we can write anything in main mthd it prints automatically without\n\t\t\t\t\t\t\t\t\t\t\t\t\t// creating obj\n\t}", "public Main() {\n \n \n }", "public void subTask(String tr) {\n\t\t\n\t}", "public static void main(String[] args) {\n DepartmentServiceimpl deptservice=new DepartmentServiceimpl();\n Department deptobj=new Department();\n \n deptobj.setDepartmentNumber(22);\n deptobj.setDepartmentName(\"com\");\n deptobj.setDepatmentLocation(\"pune\");\ndeptservice.createDepartmentService(deptobj);\n\n}", "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "public static void main(String[] args) {\n Student sabiha = new ClassOneStudent();\n sabiha.name = \"sabiha\";\n sabiha.roll = 2;\n sabiha.joined();\n }", "public Main() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n\t\tSuperClass c = new Practice(1);\n\t\tc.test1();\n\t\ttest1();\n\t}", "private void studenti(reusablemenu.sample.Student curent) {\n\t\t\r\n\t}", "public static void main(String[] args) \r\n\t{\nBAssociation b= new BAssociation();\r\nb.a= new Aassociation();\r\nb.a.areaofRectangle(5, 6);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tSawon s1=new Sawon();\r\n\t\ts1.name=\"홍길동\";\r\n\t\ts1.dept=\"영업부\";\r\n\t\ts1.print();\r\n\t\tSawon s2=s1;\r\n\t\ts2.name=\"심청이\";\r\n\t\ts2.dept=\"개발부\";\r\n\t\ts2.print();\r\n\t\ts1.print(); //이건 복제가 아니라 주소 참조\r\n\t\t\r\n\t\tStudent s3=new Student();\r\n\t\ts3.id=\"hong\";\r\n\t\tSystem.out.println(\"s3.id:\"+s3.id);\r\n\t\tStudent s4=s3.display();\r\n\t\ts4.id=\"shim\";\r\n\t\tSystem.out.println(\"s4.id:\"+s4.id);\r\n\t}", "public void main(){\n }", "public static void main(String[] args) {\n Student a = new Student();\n a.inputInfo();\n a.showInfo();\n a.hocBong();\n\n }", "public static void main(String[] args) {\nnew Employee();// Calling the Constructor.\r\n\t}", "public void addSubject(Subject s) {\n // TODO implement here\n }", "public static void main(String[] args) {\n\t\tPerson p1=new Person(\"Poe\", \"Monywa\");\r\n\t\tPerson p2=new Person(\"Phyo\", \"Yangon\");\r\n\t\tStudent stu=new Student(p1.name,p1.address,\"Foundation Level\",1,100000.0);\r\n\t\t\r\n\t\tStaff stf=new Staff(p2.name,p2.address,\"HH\",100000.0);\r\n\t\tSystem.out.println(\"Student Information:\");\r\n\t\tSystem.out.println(\"Name:\"+stu.name+\"\\nAddress:\"+stu.address+\"\\nProgram:\"+stu.program+\"\\nYear:\"+stu.year+\"\\nFee:\"+stu.fee);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Staff Information:\");\r\n\t\tSystem.out.println(\"Name:\"+stf.name+\"\\nAddress:\"+stf.address+\"\\nSchool:\"+stf.school+\"\\nPay:\"+stf.pay);\r\n\t}", "public static void main(String[] args) {\n\t\t Constructor s1 = new Constructor(124567,\"nagaraju\",85); \r\n\t\t Constructor s2 = new Constructor(321578,\"sudha\",90); \r\n\t\t \r\n\t\t s1.display(); \r\n\t\t s2.display();\r\n\t}", "public static void main(String[] args) {\n\r\n ContaEspecial contaEspecial1 = new ContaEspecial(\"\", \"\");\r\n // ContaEspecial contaEspecial2 = new ContaEspecial();\r\n }", "public static void main(String[] args) {\n MainIntrence mainintrence = new MainIntrence();\r\n\r\n\r\n\r\n }", "public static void main(String[] args) {\n\r\n\r\n Employee e1=new Employee();\r\n\r\n e1.name=\"avinash\";\r\n e1.city=\"ongole\";\r\n e1.age=58;\r\n\r\n e1.display();\r\n }", "public static void main(String[] args) {\n Teacher phyTeacher1 = new PhyTeacher(\"Binod Sir\",\"Physics\", 56.78);//java: cannot find symbol symbol: method display()\n //PhysicsTeacher chemTeacher = new PhysicsTeacher(\"Chemistry\");\n //PhysicsTeacher matTeacher = new PhysicsTeacher(\"Maths\");\n phyTeacher1.display();\n BioTeacher bioTeacher = new BioTeacher(\"Vivek Sir\",\"Biology\",100.25);\n bioTeacher.display();\n /*Dynamic Polymorphism through method overriding\n School physics= new PhyTeacher(\"Adv. Physics\");\n physics.display();\n School biology= new BioTeacher(\"Adv. Biology\");\n physics.display();\n */\n }", "public static void main(String[] args) {\n\t\t\n\tSubtractions val=new Subtractions();\n\tint digit=val.subt();\n\tSystem.out.println(\"the no. is \"+ digit);\n\n\t}", "public static void main(String[] args) {\n\t\tTeacher teacher=new Teacher();\n\t\tteacher.setEmail(\"201421dsafas520\");\n\t\tStudent student=new Student();\n\t\tstudent.setEmail(\"[email protected]\");\n\n\t\t//boolean b=new BindingService().InsertBindStudentTeacherService(student, teacher);\n\t\t//boolean c=new BindingService().acceptBindingService(student, teacher);\n\t\t//boolean d=new BindingService().cancelBindingService(student, teacher);\n\t\t//System.out.println(b);\n\t\t//System.out.println(c);\n\t}", "public static void main(String[] args) {\n ConstructorIntro obj2 = new ConstructorIntro(10);\n\n }", "public static void main(String[] args) {\n\t\tStudent1 s1= new Student1(101, \"Mukesh\", 28);\n\t\tStudent1 s2= new Student1(201,\"Sona\");\n\t\ts1.display();\n\t\ts2.display();\n\n\t}", "public static void main(String[] args) {\n\n\t\tTeachingStaff obj= new TeachingStaff(\"rahul\");\n\t\tNonTeachingStaff obj1=new NonTeachingStaff(\"suren\");\n\t\t\n\t\tobj.calsal(20000);\n\t\t obj1.calsal(10000);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\tCC c=new CC();\r\n\t\t\tc.callme();\r\n\t\t\tc.callmetoo();\r\n\t\t\t\r\n\t\t\t\r\n}", "public Main() {\n }", "public Main() {\n }", "public static void main(String[] args)\r\n\t{\n\t\r\n\t\tson s=new son();\r\n\t\ts.mul();\r\n\t\ts.add();\r\n\t\ts.A();\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\n TurkishTourist client=new TurkishTourist();\n\n BritishGuide adaptee1=new BritishGuide();\n\n BritishTranslator adapter1=new BritishTranslator(adaptee1);\n\n client.listenTranslator(adapter1);\n\n\n System.out.println();\n\n /**\n * Factory design pattern part\n */\n Organizer britishOrg=new BritishOrganizer();\n Organizer greekOrg=new GreekOrganizer();\n\n System.out.println(((BritishOrganizer) britishOrg).getRace()+\" organizator called translator for business\");\n Translator translator1=britishOrg.callTranslator(TranslatorLevel.EXPERT);\n\n\n System.out.println(((GreekOrganizer) greekOrg).getRace()+\" organizator called translator for business\");\n translator1=greekOrg.callTranslator(TranslatorLevel.JUNIOR);\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n Address address = new Address(\"Jitu\", \"Kolkata\", \"jenyns road\") ;\n Address address1 = new Address(\"Priya\", \"Araah\", \"pakdi road\") ;\n \n address.displayaddress();\n address1.displayaddress();\n //passing the object reference to the child class constructor \n Aggregationexample01 obj = new Aggregationexample01(450, \"WB\", address1) ;\n address = new Address(\"Khushi\", \"Pune\", \"Wakad\");\n address.displayaddress();\n \n double areacal = obj.calculatearea(5);\n System.out.println(\"area calculate :\" + areacal);\n \n obj.displaychildclass();\n \n\t}", "public static void main(String[] args) \n\t{\n\t\tChildinteritanceClass obj1=new ChildinteritanceClass();\n\t\tobj1.sum();\n\t\tobj1.sub();\n\t\tobj1.Div();\n\t\tobj1.Mul();\n\n\t}", "public static void main(String[] args) {\nconstructorDemo obj=new constructorDemo();\nconstructorDemo obj1=new constructorDemo(\"My Parameter\");\nconstructorDemo obj2=new constructorDemo(123);\nconstructorDemo obj3=new constructorDemo(123,6);\nSystem.out.println(\"code after creating object\");\nobj.hello();\nobj.hello(\"hi\");\n\t}", "public static void main(String[] args) {\n\t\tstudent st1=new student();\n\t\t\n\t\tst1.sname=\"Ema\";\n\t\tst1.sid=101;\n\t\tst1.grade='A';\n\t\t\n\t\tst1.display();\n\t\t\n\n\t}", "public static void main(String[] args) {\n Student stu = new Student();\r\n try {\r\n\t\t\tstu.regist(10);\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 System.out.println(stu.toString());\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tConcreteSubject_pull sub2 = new ConcreteSubject_pull();\n\t\tsub2.add(new ConcreteObserver_pull());\n\t\tsub2.add(new ConcreteObserver_pull());\n\t\tsub2.add(new ConcreteObserver_pull());\n\t\t\n\t\tsub2.change(\"2\");\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tPerson person = new Person();\r\n\t\tperson.setName(\"Jon Snow\");\r\n\t\tperson.setAddress(\"Castle Black, 82\");\r\n\t\tperson.setEmail(\"[email protected]\");\r\n\t\tperson.setPhone(061666666);\r\n\t\tSystem.out.println(person);\r\n\r\n\t\t// creating a instance of Staff\r\n\t\tStaff staff = new Staff();\r\n\t\tSystem.out.println();\r\n\t\tstaff.setName(\"Ned Stark\");\r\n\t\tstaff.setTitle(\"King of North\");\r\n\t\tSystem.out.println(staff);\r\n\r\n\t\t// creating a instance of Faculty\r\n\t\tFaculty faculty = new Faculty();\r\n\t\tSystem.out.println();\r\n\t\tfaculty.setName(\"Zdravko\");\r\n\t\tfaculty.setOfficeHours(40);\r\n\t\tfaculty.setRank(\"Profesor\");\r\n\t\tSystem.out.println(faculty);\r\n\r\n\t\t// creating a instance og Employee\r\n\t\tEmployee employee = new Employee();\r\n\t\tSystem.out.println();\r\n\t\temployee.setName(\"Nedim\");\r\n\t\temployee.setOffice(\"Post Office\");\r\n\t\temployee.setSalary(2000);\r\n\t\tSystem.out.println(employee);\r\n\r\n\t\t// creating a instance of Student\r\n\t\tStudent student = new Student();\r\n\t\tSystem.out.println();\r\n\t\tstudent.setName(\"Ljubisa\");\r\n\t\tstudent.setStatus(2);\r\n\t\tSystem.out.println(student);\r\n\t}", "public static void main(String[] args) \r\n\t{\n Myrecord me=new Myrecord();\r\n me.name=\"kanna\";\r\n me.rollno=56;\r\n me.marks=100;\r\n \r\n \t me.display();\r\n \t\r\n\t}", "public static void main(String[] args) {\nA a=new A();\r\na.m();\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(SubApp.add(1,2));\n\t\t\n\t\t//Implementation of a local inner class\n\t\tclass LocalInner {\n\t\t\tpublic int add(int a, int b) {\n\t\t\t\treturn a+b;\n\t\t\t}\n\t\t}\n\t\t//Can only be invoked inside this method\n\t\tLocalInner mb = new LocalInner();\n\t\tSystem.out.println(mb.add(1, 3));\n\t\t\n\t\t//Demo of member inner class\n\t\tTitleList lt = new TitleList();\n\t\tlt.addTitle(\"World War Z\");\n\t\tlt.addTitle(\"The Shining\");\n\t\tlt.addTitle(\"Digital Fortress\");\n\t\t\n\t\tIterator<String> it = lt.titleIterator();\n\t\twhile(it.hasNext()) {\n\t\t\tSystem.out.println(it.next());\n\t\t}\n\t\t\n\t\t//Demo of anonymous inner class\n\t\tTitleListAnonymous lta = new TitleListAnonymous();\n\t\tlta.addTitle(\"World War Z\");\n\t\tlta.addTitle(\"The Shining\");\n\t\tlta.addTitle(\"Digital Fortress\");\n\t\t\n\t\tIterator<String> ita = lta.titleIterator();\n\t\twhile(ita.hasNext()) {\n\t\t\tSystem.out.println(ita.next());\n\t\t}\n\t\t\n\t\t//Instantiating nested inner classes\n\t\tInnerOuter out = new InnerOuter();\n\t\tInnerOuter.Inner in = out.new Inner();\n\t\tin.sayHello();\n\t\t\n\t\t//Closure demo using inner classes\n\t\tCallbackTest cbt = new CallbackTest();\n\t\tcbt.testCallable();\n\t\tcbt.callBack();\n\t\t\t\t\n\t}", "public static void main(String[] args) {\n\t\tstudent1 st=new student1();\r\n\t\tst.setname(\"Jacob\");\r\n\t\tst.setstudentid(10);\r\n\r\n\t\tSystem.out.println(st);\r\n\t}", "public static void main(String[] args) {\n\t\tHashSetStud students = new HashSetStud();\n\t\tstudents.initial();\n\t\tstudents.print();\n\t\n\t\t//\n\t\t// li.them(1, 5);\n\t\t// System.out.print(\"\\nThem gia tri 5 vao vi tri 1- \");\n\t\t// li.xuat();\n\t\t//\n\t\t// li.sua(2, 6);\n\t\t// System.out.print(\"\\nSua phan tu 2 thanh 6 -\");\n\t\t// li.xuat();\n\t\t//\n\t\t// li.xoa(3);\n\t\t// System.out.print(\"\\nXoa phan tu 3 -\");\n\t\t// li.xuat();\n\t\t//\n\t\t// List<Integer> al1 = new ArrayList<Integer>();\n\t\t// al1.add(3);\n\t\t// al1.add(10);\n\t\t// al1.add(15);\n\t\t//\n\t\t// li.themSubList(al1);\n\t\t// System.out.print(\"\\nThem mot sub ArrayList -\");\n\t\t// li.xuat();\n\t\t//\n\t\t// System.out.print(\"\\nVi tri dau tien cua 3: \" + li.viTriDauTien(3));\n\t\t// System.out.print(\"\\nVi tri cuoi cung cua 5: \" + li.viTriCuoiCung(5));\n\t\t//\n\t\t// System.out.print(\"\\nTra ve sub ArrayList -\");\n\t\t// ListEx li1 = new ListEx();\n\t\t// li1.setAL(li.traVeSubList(1, 3));\n\t\t// li1.xuat();\n\t\t// MapEx hMap = new MapEx();\n\t\t// hMap.nhap();\n\t\t// System.out.print(\"\\n\");\n\t\t// hMap.xuat();\n\t\t\n//\t\tTreeSetEx tset = new TreeSetEx();\n//\t\ttset.nhapERR();\n//\t\tSystem.out.print(\"\\n\");\n//\t\ttset.xuat();\n\n\t}", "public static void main(String[] args) {\n\t\tSchool algory=new School();\r\n\t\talgory.name();\r\n\t\tSchool.Library lib=algory.new Library();\r\n\t\tlib.book();\r\n\t}", "public FE_isSubj() { this.name = \"isSubj\";\t}", "public void addSubject(Subject subject) {\n\t\tsub_dao.addSubject(subject);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tAdmin a = new Admin();\r\n\t\ta.getEmp1Details(2, 999l, \"amit\");\r\n\t\ta.getPerson1Details(22, 2023.3);\r\n\t\ta.getAdminDetails(30);\r\n\t\t//double d = a.calSal();\r\n\t\ta.calSal();\r\n\t\ta.show();\r\n\t}", "public static void main(String[] args){\n\t\tCar c1 = new Car(\"Blue\", \"BMW 5i\", \" GT796KB007\", 2007);\n\t\t\n\t\t// Creating e1 objetc of Employee class also passing c1 object\n\t\tEmployee e1 = new Employee(\"Shyam\", \"Bhimani\", 25, 20000, c1);\n\t\t\n\t\t// Calling printEmployeeDetail() method using e1 object which prints all details \n\t\te1.printEmployeeDetail();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void callSubMenu() {\n new SubMenu().display();\n }", "public void subTask(String name) {\n\r\n\t}", "private Main ()\n {\n super ();\n }" ]
[ "0.6807049", "0.67640334", "0.6755928", "0.64443654", "0.6433523", "0.6401077", "0.6385301", "0.6210802", "0.61911607", "0.616586", "0.61190856", "0.60631245", "0.6054729", "0.60222125", "0.5992752", "0.59787947", "0.59178185", "0.59114695", "0.5909232", "0.5899433", "0.58759177", "0.58734083", "0.58614516", "0.58465093", "0.58446443", "0.5839385", "0.5837495", "0.58322304", "0.58281714", "0.5827902", "0.5821021", "0.5808812", "0.58082205", "0.5799025", "0.5771432", "0.5769686", "0.57539487", "0.5752324", "0.5750759", "0.5739979", "0.5730247", "0.572735", "0.57256854", "0.5724361", "0.5720079", "0.57199216", "0.57199216", "0.57071275", "0.570412", "0.5701104", "0.5697589", "0.5690978", "0.56891185", "0.5687665", "0.5681089", "0.56781113", "0.5676588", "0.56730473", "0.56689006", "0.5668897", "0.56663686", "0.56611294", "0.56608236", "0.56495947", "0.5649004", "0.56484765", "0.56472784", "0.5645094", "0.5639863", "0.56358874", "0.5630815", "0.563048", "0.5629132", "0.56267774", "0.56258637", "0.5623622", "0.56222534", "0.56219155", "0.56219155", "0.56210434", "0.56194884", "0.56185925", "0.56181157", "0.5617737", "0.561431", "0.5610486", "0.56101143", "0.5605036", "0.5604699", "0.56031615", "0.5602801", "0.5602582", "0.55944914", "0.55916744", "0.5591405", "0.5591113", "0.5590798", "0.55904937", "0.55901635", "0.55878896", "0.55871254" ]
0.0
-1
Add_Session add_session= new Add_Session(); add_session.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Add_Session(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Session begin();", "public static void main(String args[]) throws Exception\r\n {\r\n\t HI_login hi= new HI_login();\r\n\t hi.HiLogin();\r\n\t \r\n\t ASP_Page asp=new ASP_Page();\r\n\t asp.VerifyAspPage();\r\n\t\r\n\t/*Acuity_admin_login admin= new Acuity_admin_login();\r\n\tadmin.acuity();\r\n\t*/\r\n\t\r\n\t/* HI_reg hireg=new HI_reg();\r\n\t hireg.hireg();\r\n\t \r\n\t //ASP_reg aspreg= new ASP_reg();\r\n\t// aspreg.aspreg();\r\n\t */\r\n\t\r\n \r\n}", "void add(InternalSession session);", "public createsessions() {\n initComponents();\n loadlec();\n loadlec2();\n\n // subcode() ;\n loadsubname();\n loadsubname1();\n\n loadtag();\n loadtag2();\n\n loadgrpid();\n loadgrpid2();\n\n loadsubgrpid1();\n loadsubgrpid2();\n\n }", "public void add(Session session);", "public String execute(){\n HttpSession session = request.getSession();\n System.out.println(request);\n System.out.println(response);\n System.out.println(application);\n System.out.println(session);\n\n return null;\n\n}", "public WebServiceConfig()\n {\n// session1 = new sessionmanager(getApplicationContext);\n\n }", "public HelloControllerSession() {\n }", "public WebSession(){\n\tstartmodel = new StartModel();\n\tgraphmodel = new GraphModel();\n\treportmodel = new ReportModel();\n\tsetupmodel = new SetupModel();\n }", "DatabaseSession openSession();", "public static void main(String[] args) {\n\r\n\t\tCustomer c = new Customer();\r\n\t\tc.setName(\"Mubeen\");\r\n\t\r\n\t\tPassport p = new Passport();\r\n\t\tc.setPassport(p);\r\n\t\t\r\n\t\t\r\n\t\ttry(Session session = HibernateUtil.getSessionFactory().openSession()){\r\n//\t\t\tsession.getTransaction().begin();\r\n//\t\t\tMessage m1 = (Message)session.get(Message.class, 4L);\r\n//\t\t\tm1.setText(\"MUBBBBB11\");\r\n//\t\t\tMessage m2 = new Message();\r\n//\t\t\tm2.setId(m1.getId());\r\n//\t\t\tm2.setText(m1.getText());\r\n//\t\t\tsession.update(m1);\r\n////\t\t\tm1.setText(\"MUBBBBB12\");\r\n//\t\t\tsession.update(m2);\r\n//\t\t\tsession.getTransaction().commit();\r\n//\t\t\tSystem.out.println(m1.getText());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tsession.getTransaction().begin();\r\n//\t\t\tsession.persist(s);\r\n//\t\t\tsession.persist(s1);\r\n\t\t\tCustomer c1=session.get(Customer.class, 9l);\r\n\t\t\tsession.remove(c1);\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\r\n\t}", "Session getSession();", "Session getSession();", "public void setSession(Session session) {\n\tthis.session = session; \r\n}", "public FenDetailSession() {\n initComponents();\n }", "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "public void addindb2(){\n //e = new Event(\"bbb\",\"bbb\",\"bbb\",\"bbb\");\n u = new User(0,getUser(),getPwd());\n try{ \n session = NewHibernateUtil.getSessionFactory().openSession();\n session.beginTransaction();\n session.save(u);\n session.getTransaction().commit();\n session.close();\n clear();\n try{\n FacesContext.getCurrentInstance().getExternalContext().redirect(\"/BookStorePelikSangat/faces/index.xhtml\");\n } \n catch (IOException e) {}\n } catch(HibernateException e) {\n session.getTransaction().rollback();\n session.close();\n }\n\t}", "public void addNewSession() {\n //Create an explicit intent for RecordingIntentService\n Intent saveSessionIntent = new Intent(this, RecordingIntentService.class);\n //Set the action of the intent to ACTION_SAVE_SESSION\n saveSessionIntent.setAction(RecordLapTasks.ACTION_SAVE_SESSION);\n\n //add the current session object info to the intent so it can be retrieved\n saveSessionIntent.putExtra(\"session_driver\", mySession.getDriver());\n saveSessionIntent.putExtra(\"session_track\", mySession.getTrackName());\n saveSessionIntent.putExtra(\"session_bestLap\", mySession.getBestLapString());\n saveSessionIntent.putExtra(\"session_laptimes\", mySession.getLaptimesAsString());\n saveSessionIntent.putExtra(\"session_numLaps\", mySession.getNumberOfLaps());\n\n //Call startService and pass the explicit intent\n startService(saveSessionIntent);\n }", "public String _login_click() throws Exception{\n_login();\n //BA.debugLineNum = 155;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public SessionPanel() {\n initComponents();\n initProcess();\n }", "@Test\n public void testStartSession() {\n startSession();\n }", "@Override\n\tpublic void addUsers(Session session){\n\t\ttry{\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\n\t\t\tSystem.out.print(\"+++++++++++Add Customer/Admin here+++++++++++\\n\");\n\n\t\t\tSystem.out.println(\"Enter 'Admin' to add a new admin to database\");\n\t\t\tSystem.out.println(\"Enter 'Customer' to add a new admin to database\");\n\t\t\tSystem.out.println(\"--------------Enter one from above------------------\");\n\t\t\tString accType = scanner.nextLine();\n\t\t\t\n\t\t\tSystem.out.println(\"Enter First Name:\");\n\t\t\tString firstName = scanner.nextLine();\n\n\t\t\tSystem.out.println(\"Enter Last Name:\");\n\t\t\tString lastName = scanner.nextLine();\n\n\t\t\tSystem.out.println(\"Enter UserId:\");\n\t\t\tString inputLoginId = scanner.nextLine();\n\n\t\t\tSystem.out.println(\"Enter Password:\");\n\t\t\tString inputLoginPwd = scanner.nextLine();\n\n\t\t\t//pass these input fields to client controller\n\t\t\tsamp=mvc.addUsers(session,accType,firstName,lastName,inputLoginId,inputLoginPwd);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Add Users Exception: \" +e.getMessage());\n\t\t}\n\t}", "public abstract Thread startSession();", "public Return() {\n super(\"Return Book\");\n initComponents();\n conn=javaconnect.ConnectDb();\n }", "public static void main(String[] args) {\n UserDetails user = new UserDetails();\n user.setUserName(\"Anand Kushwhaa\");\n \n Vehicle veh = new Vehicle();\n veh.setVehicleName(\"Audi\");\n \n user.setVehicle(veh);\n \n // getting session from hibernate session factory\n Session session = HibernateUtil.getSessionFactory().openSession();\n // starting new transaction\n session.beginTransaction();\n // saving the user\n session.save(user);\n // saving the vehicle\n session.save(veh);\n\n // committing the transaction\n session.getTransaction().commit();\n }", "public static void main(String[] args) {\n\t\tUser client = new User(\"user_z\");\n\t\tProtocol objectTransit= new Protocol(99,client,client.name);\n\t\t\n\t\tconnectingServer=new DatabaseConnectorServer();\n\t\tconnectingServer.setupDatabaseConnectionPool(\"postgres\", \"squirrel\",\"localhost\", \"messaging\", 100,9000);\n\t\ttry{\n\t\t\tconnection_1=connectingServer.getDatabaseConnection();\n\t\t\t//checking if the connection that is returning is not closed\n\t\t\tif(!connection_1.isClosed()){\n\t\t\t\tSystem.out.println(\"conencted to database!!\");\n\t\t\t\t//the parameter in the print if the call of the method\n\t\t\t\t//inside that class that calls the store procedure\n//\t\t\t\tSystem.out.println(database.GetUser.execute_query(connection_1,\"user_1\"));\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n//\t\tStep 1 check user in database\n\t\tString userID = database.GetUser.execute_query(connection_1, objectTransit.newUser.name);\n\t\t\n\t\tif(!userID.equals(\"\")){\n\t\t\tSystem.out.println(\"this user already exist\");\n\n\t\t}else{\n\t\t\tUser newUser=objectTransit.newUser;\n\t\t\tdatabase.CreateNewUser.execute_query(connection_1, newUser);\n\n\t\t}\n\t}", "IDAOSession createNewSession();", "public MainSessionBean() {\r\n init();\r\n }", "public static void main(String[] args) {\n Sal s=new Sal();\n s.getinfo();\n s.Addsal();\n s.Addwork();\n s.display();\n\t}", "private void add() {\n\n\t}", "@Override\n\tpublic void addItems(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"+++++++++++Add items here+++++++++++\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id, name, price and quantity\n\t\t\tSystem.out.print(\"Enter Item Id: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\tSystem.out.print(\"Enter Item Name without space: \");\n\t\t\tString itemName = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Type without space: \");\n\t\t\tString itemType = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Price: \");\n\t\t\tString itemPrice = scanner.next();\n\n\t\t\tSystem.out.print(\"Enter Item Quantity: \");\n\t\t\tint itemQuantity = scanner.nextInt();\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.addItems(session,itemId,itemName,itemType,itemPrice,itemQuantity);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Add Items Exception: \" +e.getMessage());\n\t\t}\n\t}", "SessionManagerImpl() {\n }", "public QueueSenderSession ()\r\n {\r\n\r\n\r\n }", "@Override\r\npublic void setSession(Map<String, Object> arg0) {\n\t\r\n}", "public void new_user(){\n }", "@Override\n\t\t\tpublic void handleNewSession() throws Exception {\n\t\t\t\t\n\t\t\t}", "public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}", "void sessionCreated(SessionEvent se);", "public ActionForward execute(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n \n \n \n try\n {\n MessageResources mr=getResources(request);\n String namingfactory=mr.getMessage(\"ejbclient.namingfactory\");\n String contextfactory=mr.getMessage(\"ejbclient.contextfactory\");\n String urlprovider=mr.getMessage(\"ejbclient.urlprovider\");\n String lookupip=mr.getMessage(\"ejbclient.ip\");\n String jndiname=mr.getMessage(\"jndi.usrreg\");\n String mahanadhiJndi=mr.getMessage(\"jndi.acc\");\n Debug.print(\"mahanadhiJndi :\" +mahanadhiJndi);\n\n System.setProperty(namingfactory,contextfactory);\n System.setProperty(urlprovider,lookupip);\n Context jndiContext = new InitialContext();\n Object objref = jndiContext.lookup(jndiname);\n\n HLCkaverystatelessRemoteHome home = (HLCkaverystatelessRemoteHome)\n javax.rmi.PortableRemoteObject.narrow(objref,HLCkaverystatelessRemoteHome.class);\n HLCkaverystatelessRemote remote = home.create(); \n HttpSession session=request.getSession();\n \n Object maha=jndiContext.lookup(\"ejb/HLCMahanadhiSessionBean\");\n HLCMahanadhiSessionRemoteHome mahaHome = (HLCMahanadhiSessionRemoteHome)\n javax.rmi.PortableRemoteObject.narrow(maha,HLCMahanadhiSessionRemoteHome.class);\n HLCMahanadhiSessionRemote mahaRemote = mahaHome.create();\n \n Object objPayss= jndiContext.lookup(\"ejb/HLCPaymentSessionBean\");\n HLCPaymentSessionRemoteHome objPaySessHome = (HLCPaymentSessionRemoteHome)\n javax.rmi.PortableRemoteObject.narrow(objPayss,HLCPaymentSessionRemoteHome.class);\n HLCPaymentSessionRemote objPaySessRemote = objPaySessHome.create();\n String emailid = (String) session.getAttribute(\"emailId\");\n \n HLCPaymentDetailVO objPayDet = new HLCPaymentDetailVO();\n //PaymentDetails objPayment=new PaymentDetails();\n String reqIp=request.getRemoteAddr();\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyy\");\n \n String userId=(String)session.getAttribute(\"userId\");\n \n String cmd=request.getParameter(\"cmd\");\n \n if(cmd!=null && cmd.equalsIgnoreCase(\"initRetry\")){\n \n String payId=request.getParameter(\"pid\");\n String amt=(String)session.getAttribute(\"amount\");\n \n String usrStat=request.getParameter(\"usr\");\n \n String area=request.getParameter(\"area\");\n String progName=request.getParameter(\"progName\");\n String progDesc=request.getParameter(\"progDesc\");\n String progYr=request.getParameter(\"progYr\");\n \n \n \n request.setAttribute(\"payId\",payId);\n request.setAttribute(\"amt\",amt);\n request.setAttribute(\"usrStat\",usrStat); \n session.setAttribute(\"usrStat\",usrStat);\n request.setAttribute(\"area\",area);\n request.setAttribute(\"progName\",progName);\n request.setAttribute(\"progDesc\",progDesc); \n request.setAttribute(\"progYr\",progYr); \n \n return mapping.findForward(\"frmAreaRidProgramRetry\"); \n \n }\n \n else if(cmd!=null && cmd.equalsIgnoreCase(\"areaPayment\")){\n \n String r11=request.getParameter(\"r11\");\n Debug.print(\"r11:\" + r11);\n String TotalAmount=request.getParameter(\"totalAmount\");\n Debug.print(\"TotalAmount:\" + TotalAmount); \n //String paymentId=request.getParameter(\"paymentId\");\n String paymentId=(String)session.getAttribute(\"paymentId\");\n String area=request.getParameter(\"area\");\n String progName=request.getParameter(\"progName\");\n String progDesc=request.getParameter(\"progDesc\");\n String progYr=request.getParameter(\"progYr\");\n HLCPaymentDetails objPayment=new HLCPaymentDetails();\n \n Debug.print(\"request.getParameter(paymentId) in areaPayment section:\"+paymentId); \n \n objPayment.setPaymentId(paymentId);\n HLCAccTransactionVO PhoneVO = (HLCAccTransactionVO) session.getAttribute(\"PhaccTxnVO\");\n if(PhoneVO!=null){\n PhoneVO.setPayment_id(paymentId);\n PhoneVO.setPayment_mode(request.getParameter(\"ccType\"));\n \n }\n session.setAttribute(\"PhaccTxnVO\",PhoneVO);\n HLCAccTransactionVO PhoneVO1 = (HLCAccTransactionVO) session.getAttribute(\"PhaccTxnVO1\"); \n if(PhoneVO1!=null){\n PhoneVO1.setPayment_id(paymentId);\n PhoneVO1.setPayment_mode(request.getParameter(\"ccType\"));\n }\n session.setAttribute(\"PhaccTxnVO1\",PhoneVO1);\n \n \n int CcExpMonth = 0;\n int CcExpYear = 0;\n int CcCvvid =0;\n double amount =0;\n long CcNumber = 0;\n long checkNumber=0;\n Date act_date_card = new Date();\n boolean result=false;\n if(r11.equals(\"card\")){ \n if(request.getParameter(\"ccName\")!=null && request.getParameter(\"ccName\").trim().length()!=0) {\n objPayment.setCcName(request.getParameter(\"ccName\"));\n } else {\n objPayment.setCcName(null);\n }\n \n if(request.getParameter(\"ccType\")!=null && request.getParameter(\"ccType\").trim().length()!=0) {\n objPayment.setCcType(request.getParameter(\"ccType\"));\n } else {\n objPayment.setCcType(null);\n \n }\n \n if(request.getParameter(\"ccNumber\")!=null && request.getParameter(\"ccNumber\").trim().length()!=0) {\n objPayment.setCcNumber(request.getParameter(\"ccNumber\"));\n } else {\n objPayment.setCcNumber(\"0\");\n }\n \n if(request.getParameter(\"ccExpMonth\")!=null && request.getParameter(\"ccExpMonth\").trim().length()!=0) {\n objPayment.setCcExpMonth(Integer.parseInt(request.getParameter(\"ccExpMonth\")));\n } else {\n objPayment.setCcExpMonth(0);\n }\n \n if(request.getParameter(\"ccExpYear\")!=null && request.getParameter(\"ccExpYear\").trim().length()!=0) {\n objPayment.setCcExpYear(Integer.parseInt(request.getParameter(\"ccExpYear\")));\n } else {\n objPayment.setCcExpYear(0);\n }\n \n if(request.getParameter(\"ccCvvid\")!=null && request.getParameter(\"ccCvvid\").trim().length()!=0) {\n if(!request.getParameter(\"ccCvvid\").equals(\"\")) {\n objPayment.setCcCvvid(Integer.parseInt(request.getParameter(\"ccCvvid\")));\n request.setAttribute(\"ccCvvid\",request.getParameter(\"ccCvvid\"));\n } else {\n objPayment.setCcCvvid(0);\n request.setAttribute(\"ccCvvid\",\"0\");\n }\n } else {\n objPayment.setCcCvvid(0);\n request.setAttribute(\"ccCvvid\",\"0\");\n }\n \n objPayment.setBankName(null); \n objPayment.setCheckDate(null);\n objPayment.setCheckNumber(\"0\");\n objPayment.setCheckName(null);\n objPayment.setCheckAmount(0);\n objPayment.setIpAddress(reqIp);\n \n if(request.getParameter(\"totalAmount\")!=null && request.getParameter(\"totalAmount\").trim().length()!=0) {\n objPayment.setAmount(Double.valueOf(request.getParameter(\"totalAmount\")).doubleValue());\n } else {\n objPayment.setAmount(0);\n }\n \n objPayment.setPaymentDate(new Date());\n objPayment.setPaymentStatus(\"card\");\n \n \n if(request.getParameter(\"activeDatVal\")!=null && request.getParameter(\"activeDatVal\").trim().length()!=0) {\n act_date_card = (Date)sdf.parse(request.getParameter(\"activeDatVal\"));\n }\n \n Debug.print(\"final act_date for card mode :\"+act_date_card.toString()); \n session.setAttribute(\"act_date\",act_date_card); \n \n \n }\n \n Date check_date=null;\n Date act_date_check=null;\n double chk_amt=0;\n float chkAmt=0;\n String actStat=null; \n if(r11.equalsIgnoreCase(\"check\")){ \n if(request.getParameter(\"checkDate\")!=null && request.getParameter(\"checkDate\").trim().length()!=0) {\n check_date = (Date)sdf.parse(request.getParameter(\"checkDate\"));\n Debug.print(\"check_date :\"+check_date.toString());\n } else {\n check_date =null;\n }\n if(request.getParameter(\"activeDate\")!=null && request.getParameter(\"activeDate\").trim().length()!=0) {\n act_date_check = (Date)sdf.parse(request.getParameter(\"activeDate\"));\n }else {\n act_date_check=null;\n }\n \n objPayDet.setUserId(userId);\n objPayDet.setCcName(null);\n objPayDet.setCcType(null);\n objPayDet.setCcNumber(\"0\");\n objPayDet.setCcExpMonth(0);\n objPayDet.setCcExpYear(0);\n objPayDet.setCcCvvid(0);\n objPayDet.setBankName(request.getParameter(\"bankName\"));\n objPayDet.setCheckDate(check_date);\n \n \n if(request.getParameter(\"chkBalAmt\")!=null && request.getParameter(\"chkBalAmt\").trim().length()!=0) {\n //objPayment.setCheckAmount(Float.valueOf(request.getParameter(\"chckAmount\")).floatValue());\n \n Debug.print(\"request.getParameter(chkBalAmt) :\"+request.getParameter(\"chkBalAmt\"));\n \n chk_amt=Double.valueOf(request.getParameter(\"chkBalAmt\")).doubleValue();\n Debug.print(\"Double.valueOf(request.getParameter(chkBalAmt)).doubleValue() :\"+chk_amt);\n \n \n chkAmt=Float.valueOf(request.getParameter(\"chkBalAmt\")).floatValue(); \n objPayDet.setCheckAmount(chkAmt);\n \n } else {\n objPayDet.setCheckAmount(0);\n }\n \n if(request.getParameter(\"checkNumber\")!=null && request.getParameter(\"checkNumber\").trim().length()!=0) {\n objPayDet.setCheckNumber(request.getParameter(\"checkNumber\"));\n } else {\n objPayDet.setCheckNumber(\"0\");\n }\n \n if(request.getParameter(\"totalAmount\")!=null && request.getParameter(\"totalAmount\").trim().length()!=0) {\n objPayDet.setAmount(Double.valueOf(request.getParameter(\"totalAmount\")).doubleValue());\n } else {\n objPayDet.setAmount(0);\n }\n \n String nameOnchk=request.getParameter(\"nameCheck\"); \n objPayDet.setCheckName(nameOnchk); \n objPayDet.setPaymentDate(new Date()); \n objPayDet.setPaymentStatus(\"check\");\n \n if(objPayDet.getAmount()<=objPayDet.getCheckAmount()){ \n actStat=\"Active\";\n objPayDet.setPendingAmount(0);\n }else if(objPayDet.getCheckAmount()>objPayDet.getAmount()){ \n float tempPendingAmt=(float)(objPayDet.getAmount() - objPayDet.getCheckAmount()); \n objPayDet.setPendingAmount(tempPendingAmt);\n } \n \n boolean stat=objPaySessRemote.updateDeclinePaymentStatus(objPayDet);\n Debug.print(\"remote.updateDeclinePaymentStatus(objPayDet) :\"+stat);\n \n if(objPayDet.getCheckAmount()>=objPayDet.getAmount()){ \n boolean Update_Status = mahaRemote.updateRecouncilActiveStatusAccTxnDetails(paymentId); \n }\n \n request.setAttribute(\"areaName\",area); \n request.setAttribute(\"amount\",String.valueOf(chkAmt));\n request.setAttribute(\"areaRidProg\",progName);\n request.setAttribute(\"progYear\",progYr);\n request.setAttribute(\"actStat\",actStat);\n request.setAttribute(\"areaRidProgDesc\",progDesc); \n \n return mapping.findForward(\"frmMyAreaProgRetryCheckSuccess\");\n } \n \n if(r11.equals(\"card\")){\n Debug.print(\"Sucessfully Redirect to Paypal:\"); \n if(request.getParameter(\"activeDatVal\")!=null && request.getParameter(\"activeDatVal\").trim().length()!=0) { \n session.setAttribute(\"activation_date\",request.getParameter(\"activeDatVal\")); \n } \n if(request.getParameter(\"ccExpMonth\")==null){\n CcExpMonth =0;\n } else {\n CcExpMonth=Integer.parseInt(request.getParameter(\"ccExpMonth\"));\n }\n \n if(request.getParameter(\"ccExpYear\")==null){\n CcExpYear =0;\n } else{\n CcExpYear = Integer.parseInt(request.getParameter(\"ccExpYear\"));\n }\n \n if(request.getParameter(\"ccCvvid\")==null && request.getParameter(\"ccCvvid\").trim().length()==0){\n CcCvvid =0;\n } else if(!request.getParameter(\"ccCvvid\").equals(\"\") && request.getParameter(\"ccCvvid\").trim().length()!=0){\n CcCvvid = Integer.parseInt(request.getParameter(\"ccCvvid\"));\n } else {\n CcCvvid =0;\n }\n \n if(request.getParameter(\"ccNumber\")==null){\n CcNumber =0;\n } else{\n CcNumber = Long.parseLong(request.getParameter(\"ccNumber\"));\n }\n \n if(request.getParameter(\"totalAmount\")!=null && request.getParameter(\"totalAmount\").trim().length()!=0) {\n amount = Double.valueOf(request.getParameter(\"totalAmount\")).doubleValue();\n } else {\n amount = 0.00;\n } \n //String inVoiceId1 = (String) session.getAttribute(\"inVoiceId1\");\n String inVoiceId1=\"1\";\n System.out.println(\"inVoiceId1 in servlet********\" + inVoiceId1);\n int intVId = 0;\n if (inVoiceId1.equalsIgnoreCase(\"0\")) {\n intVId = 1;\n } else {\n intVId = 1;\n } \n //session.setAttribute(\"objPaymentList\",objPayDet); \n request.setAttribute(\"email\",emailid);\n request.setAttribute(\"cardNo\",String.valueOf(CcNumber));\n request.setAttribute(\"chkDigit\",String.valueOf(CcCvvid));\n \n session.setAttribute(\"areaName\",area); \n session.setAttribute(\"areaRidProg\",progName);\n session.setAttribute(\"progYear\",progYr); \n session.setAttribute(\"areaRidProgDesc\",progDesc);\n \n String expMon = String.valueOf(CcExpMonth);\n String expYear = String.valueOf(CcExpYear);\n if(expMon.trim().length()==1) {\n expMon = \"0\" + expMon;\n }\n \n Debug.print(\"expYear:\" + expYear);\n // expYear = expYear.substring(2);\n \n Debug.print(\"expMon:\" + expMon);\n Debug.print(\"expYear:\" + expYear);\n \n String expDate = expMon + expYear;\n request.setAttribute(\"expDate\",expDate);\n request.setAttribute(\"amount\",String.valueOf(amount));\n //StringBuffer reqURL = request.getRequestURL();\n //int lastIndex = reqURL.lastIndexOf(\"/\") ;\n //String url =\"\";\n //if(lastIndex!=-1){\n // url = reqURL.substring(0,lastIndex+1);\n //}\n //String tmpNova = mr.getMessage(\"areaMembRetry.nova\");\n //String nova = url + tmpNova;\n // Debug.print(\"succsssullll from app file nova........::\" + nova);\n //Debug.print(\"succsssullll from app file tmpNova ........::\" + tmpNova);\n //request.setAttribute(\"nova\",nova);\n request.setAttribute(\"purpose\",\"areaMemb\");\n request.setAttribute(\"AMT\",String.valueOf(amount));\n request.setAttribute(\"PAYMENTACTION\", \"Authorization\");\n request.setAttribute(\"IPADDRESS\", reqIp);\n request.setAttribute(\"FIRSTNAME\", (String)request.getParameter(\"ccName\"));\n request.setAttribute(\"CREDITCARDTYPE\",request.getParameter(\"ccType\"));\n request.setAttribute(\"ACCT\",(String)request.getParameter(\"ccNumber\"));\n request.setAttribute(\"EXPDATE\",expDate);\n request.setAttribute(\"CVVNo\",(String)request.getParameter(\"ccCvvid\"));\n session.setAttribute(\"objPayment\",objPayment);\n request.setAttribute(\"STREET\", \"1 Main St\");\n request.setAttribute(\"CITY\", \"San Jose\");\n request.setAttribute(\"STATE\", \"CA\");\n request.setAttribute(\"ZIP\", \"95131\");\n request.setAttribute(\"COUNTRYCODE\", \"US\");\n request.setAttribute(\"EMAIL\", \"[email protected]\");\n session.setAttribute(\"cardselect\",request.getParameter(\"ccType\"));\n request.setAttribute(\"intVId\", String.valueOf(intVId));\n \n session.setAttribute(\"sessionInvoiceId\",\"1\");\n return mapping.findForward(\"testing\");\n \n }\n }\n }catch (Exception ex) {\n System.err.println(\"Caught an exception.\");\n ex.printStackTrace();\n }\n \n return null;\n \n }", "public static void main(String[] args) {\n \n \n\n sessionFactory = new Configuration()\n .configure()\n .buildSessionFactory();\n \n \n Session session = sessionFactory.openSession();\n session.beginTransaction();\n \n System.out.println(\"The SESSION HAS BEGUN\");\n \n Employee pablo = new Employee();\n pablo.setmFirstName(\"Pablo\");\n pablo.setmLastName(\"Farias\");\n \n Employee cris = new Employee();\n cris.setmFirstName(\"Crstopher\");\n cris.setmLastName(\"Rojas\");\n session.save(cris);\n \n \n session.getTransaction().commit();\n session.close();\n \n session = sessionFactory.openSession();\n session.beginTransaction();\n \n System.out.println(\"The SESSION HAS BEGUN\");\n \n List result = session.createQuery(\"from Employee\").list();\n for (Employee employee : (List<Employee>) result) {\n System.out.println(\"Employee: \" + employee.getmFirstName() + \" y apellido: \" + employee.getmLastName());\n }\n \n session.getTransaction().commit();\n session.close();\n \n //launch(args);\n }", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public void sessionStarted() {\n\t\t\r\n\t}", "public static void main(String[] args) {\nSession session=new Configuration().configure().buildSessionFactory().openSession();\r\n\r\n Student std=new Student();\r\n std.setName(\"nikhil\");\r\n session.save(std);\r\n session.beginTransaction().commit();\r\n System.out.println(\"success\");\r\n \r\n\t}", "public McqOfficialSession(){\n\t\tsuper(); \n\t}", "public static void main( String[] args )\r\n {\n \tStudentName an= new StudentName();// this object is created becoz we created another class for names.\r\n \tan.setFname(\"PradeepReddy\");\r\n \tan.setLname(\"Padi\");\r\n \tan.setMname(\"Reddy\");\r\n \t\r\n \tStudent s =new Student();\r\n \ts.setRollno(11);\r\n \ts.setSname(an);\r\n \t//s.setSname(\"Nikhil\");\r\n \t// as this session factory is interface we can't create object to it so create a class called configuration\r\n \tConfiguration con= new Configuration().configure().addAnnotatedClass(Student.class);\r\n \t\r\n \t\r\n \tServiceRegistry reg = new ServiceRegistryBuilder().applySettings(con.getProperties()).buildServiceRegistry();\r\n \tSessionFactory sf = con.buildSessionFactory(reg);\r\n \t//here we can't create object for session becoz it is an interface so we create session factory\r\n \tSession session =sf.openSession();// open session is the method which gives the object of session\r\n \t\r\n \t//Here this save method belongs to the interface called session and this session belongs to hibernate framework\r\n \tTransaction tx= session.beginTransaction();\r\n \tsession.save(s);//save method is used when we want to save data into database.\r\n \t//if i want fetch any data from database with the help of hibernate s = (Student)session.get(Student.class,1);\r\n tx.commit();\r\n \t\r\n }", "public void teleopInit(){\n\n }", "public void add() {\n\n }", "private Session() {\n }", "private Session() {\n }", "Session getCurrentSession();", "Session getCurrentSession();", "@Test\r\n public void testAddSimulatorToSession() {\r\n System.out.println(\"addSimulatorToSession\");\r\n assertNotNull(sm);\r\n sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n \r\n boolean result = sm.addSimulatorToSession(\"test4\", Simulators.NUATMOS, \"v1\", true);\r\n assertTrue(result);\r\n \r\n result = sm.addSimulatorToSession(\"test5\", Simulators.NUATMOS, \"v1\", true);\r\n assertFalse(result);\r\n \r\n sm.removeSession(\"test4\");\r\n \r\n }", "@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"Injection to database : Oracle\");\n\t}", "public Session() {\n\t\tLogger.log(\"Creating application session\");\n\t}", "public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\r\n\t\tSession se2 = impl.getSe();\r\n\t\tTransaction tx2 = se2.beginTransaction();\r\n\t\t\r\n\t\tString sql = \"SELECT * FROM member\";\r\n\t\tSQLQuery sql1=se2.createSQLQuery(\"SELECT * FROM member\");\r\n\r\n\t\tsql1.addEntity(\"member\",member.class);\r\n\t\t\r\n\t\tList<member> l = sql1.list();\r\n\t\t\r\n\t\tl.forEach(s -> System.out.println(s));\r\n\t\t\r\n\t\tse2.close();\r\n\t\t\r\n\t\t\r\n//\t\t\r\n//\t\t\r\n\r\n\t}", "public SessionController() {\n }", "protected abstract SESSION newSessionObject() throws EX;", "public String[] addItem(Session session) throws RemoteException{\n\t\tSystem.out.println(\"Server model invokes addItem() method\");\n\t\treturn null;\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tProductsService productsService= new ProductsService();\n\t\t/*\t\tuser.setFirstName(\"Nick\");\n\t\tuser.setLastName(\"Troyan\");\n\t\tuser.setEmail(\"[email protected]\");\n\t\tuser.setPassword(\"12345\");\n\t\tuser.setUserImage(\"D://image.jpeg\");\n\t\tu.insertUser(user);*/\n//System.out.println(u.getAllUsers());\n//System.out.println(u.getUserByEmail(\"[email protected]\"));\n//System.out.println(u.getUserByEmail2());\n//System.out.println(u.getUserlogin());\n//loginServlet loginServlet = new loginServlet();\n//System.out.println(loginServlet);\n//System.out.println(productsService.getAllPeriodicals());\n//System.out.println(productsService.getAllPeriodicalsDeleted());\n//System.out.println(productsService.getAllPeriodicalsWithDeleted());\nSystem.out.println(productsService.getAllPeriodicals());\n\n\t}", "public static void testMain(){\n\t\ttry {\n\t\t\t/**\n\t\t\t * 调用接口获得返回字符串\n\t\t\t */\n\t\t\t// 创建调用对象\n\t\t \n\t\t\tURL url = new URL(\"http://10.1.13.146:30014/service/fundquery.ws?wsdl\"); \n\t\t\tQName qName = new QName(\"http://service.hundsun.com\", \"FundQueryService\");\n\t\t\tService service = Service.create(url, qName); \n\t\t\t\n\t\t\tFundQueryServicePortType fundQueryServicePortType = service.getPort(FundQueryServicePortType.class); \n\t\t\tQueryPayResponse r= fundQueryServicePortType.queryPay(getQueryPay());\n System.out.println(r.getTotalAmount());\n \n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Override\r\npublic void sessionCreated(HttpSessionEvent arg0) {\n\t\r\n}", "public void add() {\n\t\t\n\t}", "public void AddAccount(String subtab){\r\n\t\t//String username = getValue(Email);\r\n\t//\tString password = getValue(Password);\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:- My Account should be clicked and user should get logged in\");\r\n\t\ttry{\r\n\t\t\tsleep(3000);\r\n\t\t\tclick(locator_split(\"Maintenencetab\"));\r\n\t\t\tsleep(3000);\r\n\t\t\tswitchframe(\"PegaGadget1Ifr\");\r\n\t\t\tsleep(2000);\r\n\t\t\tclick(locator_split(subtab));\r\n\t\t\tsleep(3000);\r\n\t\t\tsendKeys(locator_split(\"txtAccountName\"), getValue(\"Accountname\"));\r\n\t\t\t//selectList(locator_split(\"LstLineofBusiness\"),1);\r\n\t\t\tselectListValue(locator_split(\"LstLineofBusiness\"), \"ENERGY AND ENGINEERED RISK\");\r\n\t\t\tsleep(3000);\r\n\t\t\tsendKeys(locator_split(\"lstOccupancyType\"), getValue(\"Occupancytype\"));\r\n\t\t\tsendKeys(locator_split(\"txtlocationselect\"), getValue(\"BusinessAs\"));\r\n\t\t\tsendKeys(locator_split(\"LstaccountunderWriter\"), getValue(\"Underwriter\"));\r\n\t\t\tsleep(2000);\r\n\t\t\tsendKeys(locator_split(\"LstunderwriterRegion\"), getValue(\"UnderwriterRegion\"));\r\n\t\t\tsleep(2000);\r\n\r\n\t\t\tsendKeys(locator_split(\"LstUnderWriterCountry\"), getValue(\"UnderWriterCountry\"));\r\n\t\t\tsleep(2000);\r\n\r\n\t\t\tsendKeys(locator_split(\"LstUnderWriterBranch\"), getValue(\"UnderWriterBranch\"));\r\n\t\t\tsleep(2000);\r\n\r\n\t\t\tsendKeys(locator_split(\"LstAccountEngineerId\"), getValue(\"AccountEngineer\"));\r\n\t\t\tsleep(2000);\r\n\r\n\t\t\tclearWebEdit(locator_split(\"LstAccountCurrency\"));\r\n\t\t\tsleep(2000);\r\n\t\t\tsendKeys(locator_split(\"LstAccountCurrency\"), getValue(\"Accountcurrency\"));\r\n\t\t\t\r\n\t\t\tsleep(2000);\r\n\t\t\tsendKeys(locator_split(\"txtPolicyInceptionDate\"), getValue(\"PolicyInceptiondate\"));\r\n\t\t\tsleep(2000);\r\n\t\t\tsendKeys(locator_split(\"txtpolicyExpirationDate\"), getValue(\"PolicyExpirydate\"));\r\n\t\t\tsendKeys(locator_split(\"txtAccountPD\"), getValue(\"AccountPD\"));\r\n\t\t\tsleep(3000);\r\n\t\t\tsendKeys(locator_split(\"txtAccountBI\"), getValue(\"AccountBI\"));\r\n\t\t\tsleep(3000);\r\n\t\t\tsendKeys(locator_split(\"txtAccBI\"), getValue(\"AccountBI\"));\r\n\t\t\tsleep(5000);\r\n\t\t\tsendKeys(locator_split(\"txtpolicyLimit\"), getValue(\"PolicyLimit\"));\r\n\t\t\tsleep(5000);\r\n\t\t\tsendKeys(locator_split(\"txtPolicyNumber\"), getValue(\"PolicyNumber\"));\r\n\t\t\tsleep(2000);\r\n\t\t\tsendKeys(locator_split(\"txtpolicyLimit\"), getValue(\"PolicyLimit\"));\r\n\t\t\tsleep(5000);\r\n\t\t\tsendKeys(locator_split(\"LstPolicyStatus\"), getValue(\"Policystatus\"));\r\n\t\t\t//click(locator_split(\"txtlocationselect\"));\r\n\t\t\tsleep(2000);\r\n\t\t\t//click(locator_split(\"Lstlocationselect\"));\r\n\t\t\t\r\n\t\t\tclick(locator_split(\"btnAddAccount\"));\r\n\t\t\tsleep(3000);\r\n\t\t//\tclick(locator_split(\"btnAddLocations\"));\r\n\t\t/*\tclearWebEdit(locator_split(\"txtLoginNamegrasp\"));\r\n\t\t\t//sendKeys(locator_split(\"txtLoginNamegrasp\"), username);\r\n\t\t\t//sendKeys(locator_split(\"txtpasswordgrasp\"), password);\r\n\t\t\t\r\n\t\t\tsleep(3000);\r\n\t\t\tclick(locator_split(\"btn_privacyok\"));*/\r\n\t\t\tsleep(5000);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(getText(locator_split(\"txtAccountID\")));\r\n\t\t\tsleep(5000);\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Report tab is clicked and user is logged in\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Report tab is not clicked in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "private Add() {}", "private Add() {}", "Login() { \n }", "public NewCZ_DPPHRProcessPage(){ super(); }", "public static void add(MemberSession ms) {\n//\t\taddMemberSession(ms, GPortalExecutionContext.getRequest().getSessionContext().getId());\n\t\tadd(ms, GPortalExecutionContext.getRequest().getSessionContext().getId());\n\t}", "public AddApplicationData (){\n }", "public static void main(String[] args) {\n SessionFactory factory = new Configuration()\n .configure(\"hibernate.cfg.xml\")\n .addAnnotatedClass(Student.class)\n .buildSessionFactory();\n\n// create session\n Session session = factory.getCurrentSession();\n\n try {\n// create a Course object\n System.out.println(\"Creating instructor object...\");\n Course tempCourse = new Course(\"History of Magic\");\n\n// start a transaction\n session.beginTransaction();\n\n// save the Course object\n System.out.println(\"Saving the Course...\");\n System.out.println(tempCourse);\n session.save(tempCourse);\n\n// commit transaction\n session.getTransaction().commit();\n\n// MY NEW CODE\n\n// find out the Course's id: primary key\n System.out.println(\"Saved Course. Generated id: \" + tempCourse.getId());\n\n// now get a new session and start transaction\n session = factory.getCurrentSession();\n session.beginTransaction();\n\n// retrieve Course based on the id: primary key\n System.out.println(\"\\nGetting Course with id: \" + tempCourse.getId());\n\n Course myCourse = session.get(Course.class, tempCourse.getId());\n\n System.out.println(\"Get complete: \" + myCourse);\n\n// commit the transaction\n session.getTransaction().commit();\n\n System.out.println(\"Done!\");\n }\n finally {\n factory.close();\n }\n\n\n }", "PersonalDetailsController(){\n hrDB=new HRDatabase();\n }", "public static void main(String[] args) {\n\r\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\r\n\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\tUser user = new User();\r\n\r\n\t\tuser.setAdmin(false);\r\n\t\tuser.setUserName(\"Rahul\");\r\n\t\tuser.setEmailAddress(\"[email protected]\");\r\n\t\tuser.setPhoneNumber(\"8123698563\");\r\n\r\n\t\tsession.save(user);\r\n\t\tsession.getTransaction().commit();\r\n\t\tsession.close();\r\n\t}", "public static void main(String[] args) {\n DepartmentServiceimpl deptservice=new DepartmentServiceimpl();\n Department deptobj=new Department();\n \n deptobj.setDepartmentNumber(22);\n deptobj.setDepartmentName(\"com\");\n deptobj.setDepatmentLocation(\"pune\");\ndeptservice.createDepartmentService(deptobj);\n\n}", "public static void main(String[] args) {\n\n\t\tCustomerManager customerManager = new CustomerManager(new EfCustomerDal()); \n\t\tcustomerManager.Add();\n\t}", "public void insert1(login uv) {\n\t\ttry\n {\n SessionFactory sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory();\n \t\n Session session = sessionFactory.openSession();\n \n Transaction transaction=session.beginTransaction();\n \n session.save(uv);\n \n transaction.commit();\n \n session.close();\n }\n catch(Exception ex)\n {\n ex.printStackTrace();\n }\n\t\t\n\t}", "public String addPlace() throws Exception{\n\t\t\n\t\tUser userObj;\n\t\tuserObj=(User)this.sessionMap.get(\"currentUser\");\n\t\t\n\t\tif(userObj==null || userObj.getUserId()<1)\n\t\t{\n\t\t\treturn \"login\";\n\t\t}\n\t\tLOGGER.info(\"This is a userObj id\"+userObj.getUserId());\n\t\tSessionFactory sessionFactory=(SessionFactory) ServletActionContext.getServletContext().getAttribute(HibernateListener.KEY_NAME);\n\t\tSession session=sessionFactory.openSession();\n\t\t\n\t\tPlace placeBean =new Place();\n\t\tplaceBean.setAddress(regPlaceAddress);\n\t\tplaceBean.setName(regPlaceName);\n\t\tplaceBean.setCity(\"pune\");\n\t\tplaceBean.setLocality(regPlaceLocality);\n\t\tplaceBean.setPostalCode(regPlacePostcode);\n\t\tplaceBean.setOwnerId(userObj.getUserId());\n\t\tplaceBean.setPhone(regPlacePhone);\n\t\t\n\t\t\n\t\tAttribute attributeMap=getAttribute(\"map\",regPlaceMap,placeBean);\n\t\tAttribute attributeVeg=getAttribute(\"vegetarian\",regPlaceVegetarian,placeBean);\n\t\tAttribute attributeMinPrice=getAttribute(\"MinimumPrice\",regPlaceMinPrice,placeBean);\n\t\tAttribute attributeMaxPrice=getAttribute(\"MaximumPrice\",regPlaceMaxPrice,placeBean);\n\t\tAttribute attributeCapacity=getAttribute(\"Capacity\",regPlaceCapacity,placeBean);\n\t\tAttribute attributeDinning=getAttribute(\"Dinning\",regPlaceDinning,placeBean);\n\t\tAttribute attributeArea=getAttribute(\"Area\",regPlaceArea,placeBean);\n\t\tAttribute attributeWater=getAttribute(\"Water\",regPlaceWater,placeBean);\n\t\tAttribute attributeParking=getAttribute(\"Parking\",regPlaceParking,placeBean);\n\t\tAttribute attributeRestRooms=getAttribute(\"RestRooms\",regPlaceRestRooms,placeBean);\n\t\tAttribute attributeBathRooms=getAttribute(\"BathRooms\",regPlaceBathrooms,placeBean);\n\t\tAttribute attributeMarriage=getAttribute(\"Marriage\",regPlaceMarriage,placeBean);\n\t\tAttribute attributeConference=getAttribute(\"Conference\",regPlaceConference,placeBean);\n\t\tAttribute attributeParty=getAttribute(\"Party\",regPlacepartyHall,placeBean);\n\t\tAttribute attributeHotel=getAttribute(\"Hotel\",regPlaceHotel,placeBean);\n\t\tAttribute attributeOpenHouse=getAttribute(\"OpenHouse\",regPlaceOpenHouse,placeBean);\n\t\tAttribute attributeAC=getAttribute(\"AC\",regPlaceAC,placeBean);\n\t\tAttribute attributePower=getAttribute(\"Power\",regPlacePower,placeBean);\n\t\tAttribute attributeMusic=getAttribute(\"Music\",regPlaceMusic,placeBean);\n\t\t\n\t\tAttribute add1FilePath=null,add2FilePath=null,add3FilePath=null,add4FilePath=null,packageFilePath=null;\n\t\t\n\t\tString completeFilePath=\"\";\n\t\tLOGGER.info(\"File Name is:\"+getIndexFileFileName());\n\t\tLOGGER.info(\"File ContentType is:\"+getIndexFileContentType());\n\t\tLOGGER.info(\"add 1 Name is:\"+getAdd1FileFileName());\n\t\tLOGGER.info(\"add 1 ContentType is:\"+getAdd1FileContentType());\n\t\tLOGGER.info(\"add 2 Name is:\"+getAdd2FileFileName());\n\t\tLOGGER.info(\"add 2 ContentType is:\"+getAdd2FileContentType());\n\t\tLOGGER.info(\"add 3 Name is:\"+getAdd3FileFileName());\n\t\tLOGGER.info(\"add 3 ContentType is:\"+getAdd3FileContentType());\n\t\tLOGGER.info(\"add 4 Name is:\"+getAdd4FileFileName());\n\t\tLOGGER.info(\"add 4 ContentType is:\"+getAdd4FileContentType());\n\t\tLOGGER.info(\"package Name is:\"+getPackageFileFileName());\n\t\tLOGGER.info(\"package ContentType is:\"+getPackageFileContentType());\n\t\tLOGGER.info(\"Files Directory is:\"+servletRequest.getContextPath());\n try {\n \t/*avoid spacing by using .replaceAll(\"\\\\s\",\"\")*/\n \t\n String additionalFilePath=File.separator +placeBean.getCity().replaceAll(\"\\\\s\",\"\")+File.separator+placeBean.getLocality().replaceAll(\"\\\\s\",\"\")+File.separator+placeBean.getName().replaceAll(\"\\\\s\",\"\")+File.separator;\n completeFilePath=filesPath+additionalFilePath;\n FilesUtil.saveFile(getIndexFile(), getIndexFileFileName(), context.getRealPath(\"\") + File.separator + completeFilePath);\n LOGGER.info(\"file name \"+getAdd1FileFileName());\n if(getAdd1FileFileName()!=null){\n \tadd1FilePath=getAttribute(\"add1\",(completeFilePath.replace(\"\\\\\", \"/\")+getAdd1FileFileName()),placeBean);\n \tFilesUtil.saveFile(getAdd1File(), getAdd1FileFileName(), context.getRealPath(\"\") + File.separator + completeFilePath);\n }\n if(getAdd2FileFileName()!=null){\n \tadd2FilePath=getAttribute(\"add2\",(completeFilePath.replace(\"\\\\\", \"/\")+getAdd2FileFileName()),placeBean);\n \tFilesUtil.saveFile(getAdd2File(), getAdd2FileFileName(), context.getRealPath(\"\") + File.separator + completeFilePath);\n }\n if(getAdd3FileFileName()!=null){\n \tadd3FilePath=getAttribute(\"add3\",(completeFilePath.replace(\"\\\\\", \"/\")+getAdd3FileFileName()),placeBean);\n \tFilesUtil.saveFile(getAdd3File(), getAdd3FileFileName(), context.getRealPath(\"\") + File.separator + completeFilePath);\n }\n if(getAdd4FileFileName()!=null){\n \tadd4FilePath=getAttribute(\"add4\",(completeFilePath.replace(\"\\\\\", \"/\")+getAdd4FileFileName()),placeBean);\n \tFilesUtil.saveFile(getAdd4File(), getAdd4FileFileName(), context.getRealPath(\"\") + File.separator + completeFilePath);\n \t}\n if(getPackageFileFileName()!=null){\n \tpackageFilePath=getAttribute(\"package\",(completeFilePath.replace(\"\\\\\", \"/\")+getPackageFileFileName()),placeBean);\n \tFilesUtil.saveFile(getPackageFile(), getPackageFileFileName(), context.getRealPath(\"\") + File.separator + completeFilePath);\n }\n } catch (IOException e) {\n e.printStackTrace();\n session.close();\n return INPUT;\n }\n Attribute attributeIndexFileLoc=getAttribute(\"Index\",(completeFilePath.replace(\"\\\\\", \"/\")+getIndexFileFileName()),placeBean);\n\t\tLOGGER.info(\"done\");\n\t\tsession.beginTransaction();\n\t\t\n\t\tsession.save(placeBean);\n\t\t\n\t\tsession.save(attributeIndexFileLoc);\n\t\t\n\t\t//add1FilePath,add2FilePath,add3FilePath,add4FilePath,packageFilePath\n\t\tif(add1FilePath!=null){session.save(add1FilePath);}\n\t\tif(add2FilePath!=null){session.save(add2FilePath);}\n\t\tif(add3FilePath!=null){session.save(add3FilePath);}\n\t\tif(add4FilePath!=null){session.save(add4FilePath);}\n\t\tif(packageFilePath!=null){session.save(packageFilePath);}\n\t\t\n\t\tsession.save(attributeParking);\n\t\t\n\t\tsession.save(attributeRestRooms);\n\t\tsession.save(attributeBathRooms);\n\t\t\n\t\tsession.save(attributeCapacity);\n\t\tsession.save(attributeDinning);\n\t\tsession.save(attributeArea);\n\t\tsession.save(attributeWater);\n\t\t\n\t\tsession.save(attributeMap);\n\t\tsession.save(attributeVeg);\n\t\tsession.save(attributeMinPrice);\n\t\tsession.save(attributeMaxPrice);\n\t\t\n\t\tsession.save(attributeMusic);\n\t\tsession.save(attributePower);\n\t\tsession.save(attributeAC);\n\t\tsession.save(attributeOpenHouse);\n\t\t\n\t\tsession.save(attributeHotel);\n\t\tsession.save(attributeParty);\n\t\tsession.save(attributeConference);\n\t\tsession.save(attributeMarriage);\n\t\t\n\t\t\n\t\tsession.getTransaction().commit();\n\t\tsession.close();\n//\t\t\n\t\treturn SUCCESS;\n\t}", "@Test\r\n\tpublic void testAdd() {\n\t\tint num1=10;int num2=20;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertEquals(30, ClientMain.add(num1,num2));\r\n\t\t\r\n\t\t\r\n\t}", "public abstract I_SessionInfo getSession(I_SessionName sessionName);", "public PppoeSessionInfo() {\n }", "public void addCustomer() {\n\t \n\t try{\n\t\t con = openDBConnection();\n\t\t callStmt = con.prepareCall(\" {call team5.CUSTOMER_ADD_PROC(?,?,?,?,?,?,?)}\");\n\t\t callStmt.setString(1,this.emailad);\n\t\t callStmt.setString(2,this.fname);\n\t\t callStmt.setString(3,this.lname);\n\t\t callStmt.setString(4,this.username);\n\t\t callStmt.setString(5,this.password);\n\t\t callStmt.setString(6,this.adminUsername);\n\t\t callStmt.setInt(7, this.id);\n\t\t callStmt.execute();\n\t\t callStmt.close();\n\t } catch (Exception E) {\n\t E.printStackTrace();\n\t }\n}", "public NationalityDAO() {\n //sessionFactory = HibernateUtil.getSessionFactory();\n session=HibernateUtil.openSession();\n }", "@Override\n public Navigation run() throws Exception {\n HttpSession session = request.getSession();\n// String username = null;\n// String userType = null;\n \n if (!session.getAttribute(\"loggedin\").equals(\"true\")) {\n System.out.println(\"Login Status tu session: \" + session.getAttribute(\"loggedin\"));\n return forward(\"login\");\n }\n else if((session.getAttribute(\"userType\").equals(\"khach\"))) {// && (session.getAttribute(\"loggedin\") == \"true\"))\n System.out.println(\"User Khach khong co quyen thuc thi tac vu nay\");\n return forward(\"index\");\n }\n else {\n// if (!validate()){\n// System.out.println(\"Check lai input!\");\n// request.setAttribute(\"error\",\"Vui long kiem tra lai input\");\n// return redirect(\"/addTour?error=\"+\"Vui lòng kiểm tra lại input\");\n// }\n \n \n \n String username = session.getAttribute(\"username\").toString();\n DiaDiem ddXP = ddService.findDiaDiemByName(request.getParameter(\"add_ddXP\").toString());\n DiaDiem ddDich = ddService.findDiaDiemByName(request.getParameter(\"add_ddDich\").toString());\n \n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date ngayXP = sdf.parse(request.getParameter(\"add_ngayXP\").toString());\n \n// request.removeAttribute(\"add_ddXP\");\n// request.removeAttribute(\"add_ddDich\");\n \n Tour newTour = new Tour();\n// BeanUtil.copy(request, newTour);\n \n newTour.setTen(request.getParameter(\"add_ten\").toString());\n newTour.setMoTa(request.getParameter(\"add_mota\").toString());\n newTour.setThoiGian(Integer.parseInt(request.getParameter(\"add_thoiGian\").toString()));\n newTour.setGia(Integer.parseInt(request.getParameter(\"add_gia\").toString()));\n newTour.setNgayXP(ngayXP);\n newTour.setSoLuong(Integer.parseInt(request.getParameter(\"add_soLuong\").toString()));\n \n newTour.getCtyRef().setModel((CongTy) userService.findUserByUsername(username));\n newTour.getDdXPRef().setModel(ddXP);\n newTour.getDdDichRef().setModel(ddDich);\n \n BlobstoreService bs = BlobstoreServiceFactory.getBlobstoreService();\n Map<String, List<BlobKey>> blobs = bs.getUploads(request);\n List<BlobKey> blobKeyList = blobs.get(\"add_imgKey\");\n Blobstore blobstore = new Blobstore();\n if ((blobKeyList != null) || (blobKeyList.size()>0)) {\n Key key = Datastore.createKey(Blobstore.class, blobKeyList.get(0).getKeyString());\n \n blobstore.setKey(key);\n Datastore.put(blobstore);\n// newTour.setImg(img);\n } \n// else {\n// newTour.setImg(null);\n// }\n newTour.getImgRef().setModel(blobstore);\n System.out.println(\"key name cua img: \" + newTour.getImgRef().getModel().getKey().getName());\n \n System.out.println(newTour.getCtyRef().getModel().getUsername());\n System.out.println(newTour.getDdXPRef().getModel().getName() + \" >> \" +newTour.getDdDichRef().getModel().getName());\n //TODO: bo comment dong duoi de luu\n Tour result = tourService.addTour(newTour);\n requestScope(\"ddXP\", ddXP);\n requestScope(\"ddDich\", ddDich);\n requestScope(\"tour\", result);\n// requestScope(\"tourKey\", newTour.getKey().toString());\n System.out.println(\"Reach the end:\" + result.getTen() + \" - \" + result.getKey().getId()) ; // >>> lay duoc ten roi\n// System.out.println(Datastore.createKey(Tour.class, result.getKey().getId()).toString());\n// Key tourKey = tourService.getTourKey(result);\n String tourKey = KeyFactory.createKeyString(\"Tour\", result.getKey().getId());\n System.out.println(tourKey.toString());\n// Thread.sleep(2000);\n return redirect(\"/viewTour?tourKey=\" + tourKey);\n }\n \n /*\n //Boolean loggedIn = (Boolean) session.getAttribute(\"loggedIn\");\n if (session.getAttribute(\"loggedin\") == \"true\") {\n username = session.getAttribute(\"username\").toString();\n userType = session.getAttribute(\"userType\").toString();\n }\n //System.out.println(username + \" - type - \" + userType);\n \n //NOTWorked: BeanUtil.copy(request, newTour);\n //Worked: System.out.println(request.getAttribute(\"ddXP\") + \" >> \" + request.getAttribute(\"ddDich\"));\n try {\n DiaDiem ddXP = ddService.findDiaDiemByName(request.getAttribute(\"ddXP\").toString());\n DiaDiem ddDich = ddService.findDiaDiemByName(request.getAttribute(\"ddDich\").toString());\n //System.out.println(ddXP.getName() + \" >> \" + ddDich.getName());\n \n if ((ddXP != null) && (ddDich != null)){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date ngayXP = sdf.parse(request.getParameter(\"ngayXP\"));\n if(ngayXP.after(new Date())){\n request.removeAttribute(\"ddXP\");\n request.removeAttribute(\"ddDich\");\n \n Tour newTour = new Tour();\n BeanUtil.copy(request, newTour);\n //copy cac input co cung ten vao doi tuong va thuoc tinh tuong ung cua doi tuong\n //request co 1 input \"name\" thi se copy gia tri do vao newTour.name\n newTour.getCtyRef().setModel((CongTy) userService.findUserByUsername(username));\n newTour.getDdXPRef().setModel(ddXP);\n newTour.getDdDichRef().setModel(ddDich);\n System.out.println(newTour.getCtyRef().getModel().getUsername());\n System.out.println(newTour.getDdXPRef().getModel().getName() + \" >> \" +newTour.getDdDichRef().getModel().getName());\n //TODO: bo comment dong duoi de luu\n tourService.addTour(newTour);\n requestScope(\"tour\", newTour);\n return forward(\"viewTour.jsp\");\n } else {\n System.out.println(\"NgayXP ko hop le\");\n }\n \n } else {\n //TODO: thong bao error\n System.out.println(\"Khong tim thay ddXP hoac ddDich\");\n }\n } catch (Exception e) {\n // TODO: handle exception\n e.printStackTrace();\n }\n */\n \n// return forward(\"addTour\");\n }", "public Packet1Login () { \n }", "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}", "@Test\r\n public void testInitSession() {\r\n System.out.println(\"initSession\");\r\n assertNotNull(sm);\r\n \r\n boolean result = sm.initSession(\"test1\", programsHome, programsHome + \"files1/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test2\", programsHome, programsHome + \"files2/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test3\", programsHome, programsHome + \"files3/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n assertTrue(result);\r\n \r\n sm.removeSession(\"test4\");\r\n }", "public String _class_globals() throws Exception{\n_wholescreen = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 3;BA.debugLine=\"Dim infoholder As Panel\";\n_infoholder = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 4;BA.debugLine=\"Dim screenimg As ImageView\";\n_screenimg = new anywheresoftware.b4a.objects.ImageViewWrapper();\n //BA.debugLineNum = 5;BA.debugLine=\"Dim usernamefield As EditText\";\n_usernamefield = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 6;BA.debugLine=\"Dim passwordfield As EditText\";\n_passwordfield = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 7;BA.debugLine=\"Dim loginbtn As Button\";\n_loginbtn = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 8;BA.debugLine=\"Dim singup As Button\";\n_singup = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 9;BA.debugLine=\"Dim myxml As SaxParser\";\n_myxml = new anywheresoftware.b4a.objects.SaxParser();\n //BA.debugLineNum = 12;BA.debugLine=\"Dim usermainscreen As UserInterfaceMainScreen\";\n_usermainscreen = new b4a.HotelAppTP.userinterfacemainscreen();\n //BA.debugLineNum = 14;BA.debugLine=\"Dim LoginJob As HttpJob\";\n_loginjob = new anywheresoftware.b4a.samples.httputils2.httpjob();\n //BA.debugLineNum = 16;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@OnOpen\r\n public void onOpen(Session session) {\n try {\r\n \tClientRequest.session=session;\r\n// System.out.println(ClientRequest.session);\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "@RequestMapping(\"/addRep\")\r\n\t@ResponseBody\r\n\tpublic SearchValidator callAddRep(HttpServletRequest request){\r\n\r\n\t\tHttpSession session = request.getSession();\r\n\t\tsv = new SearchValidator();\r\n//\t\tsession.setAttribute(\"REP_ID\", (String)request.getParameter(\"ta2000_co_cd\")); \r\n\r\n\t\tRep rep = new Rep();\r\n\t\t\r\n\t\tthis.repserviceimpl.insertRep(rep);\r\n\t\t\r\n\t\tsv.setTrue_false(true);\r\n\r\n\t\treturn sv;\r\n\t}", "@Override\r\n\t public void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t throws ServletException, IOException {\n\t\t String uname=req.getParameter(\"login_uname\");\r\n\t\t String password=req.getParameter(\"login_psw\");\r\n\t System.out.println(\"login servlet is running username is : \"+uname);\r\n//check user request with database\t \r\n\t Check_login check_login = new Check_login ();\r\n\t String response_message=Check_login.check_user_login(uname, password);\r\n//store session variables\r\n\t HttpSession session = req.getSession();\r\n\t session.setAttribute(\"uname\", uname);\r\n\t session.setAttribute(\"password\",password);\r\n\t System.out.println(\"session user name : \"+(String)session.getAttribute(\"uname\"));\r\n//retrive attributes from session\t \r\n\t String session_value=(String) session.getAttribute(\"uname\");\r\n//call front end java script file by using Java Scripting API\t \r\n\t \t\ttry {\r\n\t\t\tScriptEngineManager manager = new ScriptEngineManager();\r\n\t\t\tScriptEngine engine = manager.getEngineByName(\"JavaScript\");\r\n\t\t\tSystem.out.println(\"okay1\");\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(\"C:/Users/Kushan/eclipse-workspace/sureson.lk/src/main/webapp/js/back_end_response.js\");\r\n\t\t\tSystem.out.println(\"okay2\");\r\n\t\t if (fileInputStream != null){\r\n\t\t BufferedReader reader = new BufferedReader(new InputStreamReader(fileInputStream));\r\n\t\t engine.eval(reader);\r\n\t\t System.out.println(\"okay3\");\r\n\t\t // Invocable javascriptEngine = null;\r\n\t\t System.out.println(\"okay4\");\r\n\t\t\tInvocable invocableEngine = (Invocable)engine;\r\n\t\t\t System.out.println(\"okay5\");\r\n\t\t\t System.out.println(\"invocableEngine is : \"+invocableEngine);\r\n\t\t Object object = invocableEngine.invokeFunction(\"backend_message\",session_value);\r\n\t\t \r\n\t\t System.out.println(\"okay6\");\r\n\t\t }\r\n\t\t\t}catch(Exception e) {\r\n\t\t\t\tSystem.out.println(\"erroe when calling js function\"+ e);\r\n\t\t\t} \r\n\t \t \r\n\t }", "public NewSessionGui() {\n initComponents();\n client = new HttpBraimClient();\n setLocationRelativeTo(null);\n }", "public static void main(String[] args) {\n\n\t\t\n\t\t\tSessionFactory factory = new AnnotationConfiguration().configure().buildSessionFactory();\n\t\t\tSession session1 = factory.openSession();\n\t\t\tsession1.getTransaction().begin();\n\t\t\n\t\t Emp emp =new Emp();\n\t\t emp.setEname(\"gdhgh\");\n\t\t \n\t\t Project p1=new Project();\n\t\t p1.setPname(\"dsff\");\n\t\t p1.setPmgr(\"kjkj\");\n\t\t \n\t\t emp.getProject().add(p1);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tSessionFactory factory = UtilesHibernate.getSessionfactory();\n\t\tSession sesion = factory.getCurrentSession();\n\t\t\n\t\tsesion.beginTransaction();\n\t\tCancion cancion = sesion.get(Cancion.class,1);\n\t\tClub club = sesion.get(Club.class,1);\n\t\tSystem.out.println(club.getNombre());\n\t\tsesion.getTransaction().commit();\n\n\t}", "private void sub() {\n\n\t}", "public static void main(String[] args) throws ParseException {\n Session session = Hibernateutil.getHibernateSession();\r\n Controller controller = new Controller();\r\n\r\n controller.insertBook(session, \"tytul\", \"autor\", \"11-11-1111\", \"opis\");\r\n controller.showAll();\r\n\r\n }", "public static void main(String[] args) {\n\t\tUser\tu = new User();\r\n\t\tu.setLogin(\"Toto\");\r\n\t\tu.setMail(\"pdmiam.lol\");\r\n\t\tSystem.out.println(\"----------->\" + u.getMail());\r\n\r\n\t\tCategory\tc = new Category();\r\n\t\tc.setName(\"Mouhahaha\");\r\n\r\n\t\tAuthor\ta = new Author();\r\n\t\ta.setId(1);\r\n\t\ta.setFirstName(\"Miam\");\r\n\t\ta.setLastName(\"Plop\");\r\n\r\n\t\tBook\tb1 = new Book();\r\n\t\tb1.setAuthor(a);\r\n\t\tb1.setId(1);\r\n\t\tb1.setCategory(c);\r\n\t\tb1.setTitle(\"Glouglou\");\r\n\t\tb1.setStock(5);\r\n\r\n\t\tList<Book> lBook = new ArrayList<Book>();\r\n\t\tlBook.add(b1);\r\n\r\n\t\ta.setListBooks(lBook);\r\n\r\n\t\ttry {\r\n\t\t\tEMF.begin();\r\n\t\t\tEMF.save(a);\r\n\t\t\tEMF.save(b1);\r\n\t\t\tEMF.save(c);\r\n\t\t\t\r\n\t\t\tEMF.commit();\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\tEMF.rollBack();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"groooooooossssss\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tEMF.begin();\r\n\t\t\tEMF.save(u);\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\tEMF.rollBack();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"groooooooossssss\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n//\t\tObject o = null;\r\n//\t\to = EMF.getSession().get(\"com.epimarket.entity.Book\", 1);\r\n//\r\n//\t\tSystem.out.println(o.toString());\r\n\t}", "public static void main(String[] args) {\n LoginService loginService = new LoginService();\n //loginService.register(\"hakunamatata\",\"123456\");\n //loginService.login(\"hakunamatata\",\"123456\");\n\n //new interface for QQ login\n LoginService qqLoginService = new LoginServiceForQQ();\n qqLoginService.login(\"hakunamatata\",\"123456\");\n\n\n //new interface for wechat login\n LoginServiceForWechat loginServiceForWechat = new LoginServiceForWechat();\n loginServiceForWechat.login(\"hakunamatata\",\"123456\");\n\n\n\n\n }", "public static void main(String args[]) {\n\n\t\tSystem.setProperty(\"rtk.props.file\", \".\\\\conf\\\\rtk.properties\");\n\t\tSystem.out.println(\"Start of the Session example\");\n\n\t\tEppRequestObject eppRequestObject = new EppRequestObject();\n\t\teppRequestObject.init(args);\n\n\t\ttry {\t\n\t\t\tnew EppConnectAndGetGreeting().doAction(eppRequestObject);\n\t\t\t\n\t\t\tnew EppDisconnect().doAction(eppRequestObject);\n\t\t} catch (epp_XMLException xcp) {\n\t\t\t// Either the request was missing some required data in\n\t\t\t// validation before sending to the server, or theserver's\n\t\t\t// response was either unparsable or missing some required data.\n\t\t\tSystem.err.println(\"epp_XMLException! [\" + xcp.getErrorMessage() + \"]\");\n\t\t\txcp.printStackTrace();\n\t\t} catch (epp_Exception xcp) { // The EPP Server has responded with an error code with\n\t\t\t// some optional messages to describe the error.\n\t\t\tSystem.err.println(\"epp_Exception!\");\n\t\t\tepp_Result[] results = xcp.getDetails();\n\t\t\tSystem.err.println(\"\\t\" + results[0]);\n\t\t\txcp.printStackTrace();\n\t\t} catch (Exception xcp) { // Other unexpected exceptions\n\t\t\tSystem.err.println(\"EPP Action failed! [\" + xcp.getClass().getName() + \"] [\" + xcp.getMessage() + \"]\");\n\t\t\txcp.printStackTrace();\n\t\t}\n\t}", "public ELogin(WebDriver driver)\r\n{\r\n\tthis.driver =driver;\r\n\t//System.out.println(\"Elogin as been instantiated\");\r\n}", "public static void main(String[] args) {\n Personel personel = new Personel();\n personel.setPersoneladi(\"Kübra\");\n personel.setPersonelsoyadi(\"YILDIZ\");\n personel.setPersonelgiristarihi(new Date());\n \n Adres adres1= new Adres();\n adres1.setSehir(\"İSTANBUL\");\n adres1.setSemt(\"SARIYER\");\n adres1.setMahalle(\"BEBEK\");\n adres1.setPostakodu(\"56000\");\n \n personel.getAdresListesi().add(adres1);\n \n Adres adres2= new Adres();\n adres2.setSehir(\"İSTANBUL\");\n adres2.setSemt(\"BEŞİKTAŞ\");\n adres2.setMahalle(\"BEBEK\");\n adres2.setPostakodu(\"61600\");\n personel.getAdresListesi().add(adres2);\n \n SessionFactory sessionfactory = new Configuration().configure().buildSessionFactory();\n Session session = sessionfactory.openSession();\n session.beginTransaction();\n session.save(personel);\n session.getTransaction().commit();\n session.close();\n \n personel = null;\n session = sessionfactory.openSession();\n session.beginTransaction();\n personel = session.get(Personel.class, 1);\n session.close();\n\t}", "public static void main(String[] args) throws RemoteException, MalformedURLException {\n\t\tAddC add = new AddC(); \r\n\t\tNaming.rebind(\"ADD\", add);\r\n\t\tSystem.out.println(\"Server Up and running\");\r\n\t}" ]
[ "0.6690716", "0.6288554", "0.62846094", "0.62721866", "0.6265712", "0.6217781", "0.6162024", "0.6152425", "0.61449", "0.60977715", "0.5962124", "0.5878225", "0.5878225", "0.58522123", "0.5828959", "0.581904", "0.5817648", "0.57988095", "0.57891816", "0.57740414", "0.5755337", "0.57486826", "0.5735315", "0.5703379", "0.5700617", "0.5689546", "0.568589", "0.56734437", "0.5656978", "0.5656842", "0.56469816", "0.5644171", "0.5642205", "0.56213945", "0.5619027", "0.56189144", "0.56064385", "0.559726", "0.5595574", "0.558328", "0.5575198", "0.55589664", "0.55441976", "0.5540221", "0.5534732", "0.55326843", "0.5531995", "0.55289006", "0.55289006", "0.5526835", "0.5526835", "0.55182815", "0.55141693", "0.5513542", "0.55032784", "0.5493495", "0.54838973", "0.5480991", "0.5471459", "0.5468904", "0.54537034", "0.54532784", "0.5451251", "0.544964", "0.5440951", "0.5440951", "0.5438794", "0.54367405", "0.54269993", "0.54243785", "0.541136", "0.5407684", "0.5407593", "0.5403819", "0.5400668", "0.539328", "0.53906226", "0.5388868", "0.5379407", "0.5372666", "0.5370845", "0.53646857", "0.53515756", "0.5351259", "0.53503186", "0.5349148", "0.5348992", "0.5347473", "0.5342855", "0.53409714", "0.53337014", "0.53304327", "0.5322603", "0.5313367", "0.5309468", "0.53086513", "0.53086126", "0.5307186", "0.5303576", "0.52983737", "0.52959895" ]
0.0
-1
Add_Tags add_tag= new Add_Tags(); add_tag.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Add_Tags(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getTagCommand() {\n\n }", "private TagHome( )\r\n {\r\n }", "void tag1() { }", "private void addAI(){\n\n }", "public static void main(){\n\t}", "public void main(){\n }", "public void Main(){\n }", "void pramitiTechTutorials() {\n\t\n}", "public Main() {\r\n\t}", "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "public Tags() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tInfo03<String> i1=new Info03<String>();\n\t\tInfo03<String> i2=new Info03<String>();\n\t\ti1.setVar(\"Hello\");\n\t\ti2.setVar(\"Java\");\n\t\tadd(i1,i2);\n\t\t\n\n\n\t}", "public static void main(String[] args) {\n\t\tCat cat=new Cat(\"Kira\",8); \n\t\tSystem.out.println(cat); \n\t\tcat.getSound(); \n\t\tcat.eat(); \n\t\tcat.eat(\"wiskas\"); \n\t}", "private void add() {\n\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public Main() {\r\n }", "public Main() {\r\n }", "public Main() {\n \n \n }", "public static void main(String[] args) {\nbonus b=new bonus();\nb.sale();\nb.salary();\n\t}", "public void add() {\n\n }", "public static void main(String[] args) {\nlinktext oo=new linktext();\noo.launch();\n\t}", "private Main ()\n {\n super ();\n }", "public static void main(String[] args) {\n Sal s=new Sal();\n s.getinfo();\n s.Addsal();\n s.Addwork();\n s.display();\n\t}", "public Main() {\n // Required empty public constructor\n }", "public static void main(String[] args) {\n\t\tGiftList list = new GiftList();\r\n\r\n\t\tSystem.out.println(\"Creating 3 gifts.....\");\r\n\t\tfor(int i=1;i<4;i++) {\r\n\t\t\tGiftBasket basket= new GiftBasket(i+5,\"Large\",i*5);\r\n\t\t\t//list.addGiftBasketToEnd(basket);\r\n\t\t}\r\n\t\tlist.showAllGiftBaskets();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public Main() {\n }", "public Main() {\n }", "public static void main()\n\t{\n\t}", "public static void main(String[] args) {\n\t\tStatic_Demo s=new Static_Demo();\r\n\t\ts.add();\r\n\t\t\r\n\t\tStatic_Demo.sub();\r\n\r\n\t}", "void addTag(String tag){tags.add(tag);}", "public static void main(String[] args) {\nsample1 obj=new sample1();\r\n\t}", "public static void main(String[] args) {\n MainIntrence mainintrence = new MainIntrence();\r\n\r\n\r\n\r\n }", "public static void main(String args[]) throws Exception\r\n {\r\n\t HI_login hi= new HI_login();\r\n\t hi.HiLogin();\r\n\t \r\n\t ASP_Page asp=new ASP_Page();\r\n\t asp.VerifyAspPage();\r\n\t\r\n\t/*Acuity_admin_login admin= new Acuity_admin_login();\r\n\tadmin.acuity();\r\n\t*/\r\n\t\r\n\t/* HI_reg hireg=new HI_reg();\r\n\t hireg.hireg();\r\n\t \r\n\t //ASP_reg aspreg= new ASP_reg();\r\n\t// aspreg.aspreg();\r\n\t */\r\n\t\r\n \r\n}", "public void nhapdltextlh(){\n\n }", "public static void main(){\r\n\t\t\r\n\t\tArrayList<tok> pHolder = new ArrayList<tok>();\r\n\r\n\t\t pHolder.add(new tok(\"@\", \"@\"));\r\n\t\t\r\n\t\treturn;\r\n\t}", "public static void main(String[] args) {\nBasePotencia pot=new BasePotencia();\r\npot.calculaPot();\r\n\t}", "public Tag() {\n\t}", "public Tag() {\n\t}", "public void add() {\n\t\t\n\t}", "public JSoupMain(){\n Log.d(TAG, \"constructor.\");\n }", "public Main() {\n }", "private Add() {}", "private Add() {}", "public void execute(String tag,int numReps,int tabNum){\r\n\t\t//logic to create a simple tag with the specified tag and add it to the buffer\r\n\t\tEditorProxy editor=EditorProxy.getInstance();\r\n\t\teditor.addBasicTag(tag,tabNum);\r\n\t\t\r\n\t\r\n\t}", "public void AddNewSkill()\n\t{\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n\t\tWord word = new Word(\"Look,\");\r\n\t\tWord word2 = new Word(\" I was \");\r\n\t\tWord word3 = new Word(\"gonna go \");\r\n\t\tWord word4 = new Word(\"easy on\");\r\n\t\tWord word5 = new Word(\" you and \");\r\n\r\n\t\tSentence sent = new Sentence();\r\n\r\n\t\tsent.add(word);\r\n\t\tsent.add(word2);\r\n\t\tsent.add(word3);\r\n\t\tsent.add(word4);\r\n\t\tsent.add(word5);\r\n\r\n\t\tSystem.out.println(\"--------------\");\r\n\r\n\t\tText text = new Text(sent.sh());\r\n//\t\t\r\n//\t\ttext.headline(\"dfgsdsd\");\r\n//\t\t\r\n//\t\ttext.add(\"efwefw\");\r\n//\t\t\r\n//\t\tSystem.out.println(text.displayAll());\r\n\r\n\t\tLogic lg = new Logic(text.getText());\r\n\r\n\t\tlg.headline(\"fdsfdf\");\r\n\t\tlg.add(\"sfasfas\");\r\n\r\n\t\tSystem.out.println(lg.displayAll());\r\n\r\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\nBeta b=new Beta();\nb.marks();\n\n\n\t}", "private String tagText(String s)throws IOException{\n//\tMaxentTagger tagger = new MaxentTagger(\"english-left3words-distsim.tagger\");\n\tString s1=null;\n\tSystem.out.println(\"here starts the process\");\n\ts1 = tagger.tagString(s);\n\treturn s1;\n}", "public Main() {}", "public Main() {\n\t\tsuper();\n\t}", "public void addTag(Tag t);", "private void sub() {\n\n\t}", "public static void main(String[] args) {\n\t\tFG rectangle = new intf(20.0,30.0);\r\n\t\tFG tamgiac = new Tamgiac(5.0,5.0,6.0);\r\n\t\tFG hinhtron = new hinhtron(10);\r\n\t\trectangle.println();\r\n\t\ttamgiac.println();\r\n\t\thinhtron.println();\r\n\t\t\r\n\t\t\r\n\t\t\r\n}", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void main(String[] args) {\r\n\t\tBankProject testAdd = new BankProject();\r\n\t\t\r\n\t\tint c = testAdd.addFunction(15, 25);\r\n\t\tSystem.out.println(\"add value\" +c);\r\n\t\r\n\t\t\r\n\r\n\t}", "public static void main(String [] args) {\n LibraryG<Medium> myLibrary= new LibraryG<Medium>();//using generics\n Medium m1 = new Newspaper(\"gospodi\");\n Medium m2 = new Book(\"bozhe\");\n try {\n myLibrary.add(m1);\n myLibrary.add(m2);\n System.out.println(myLibrary.get(0).getName());\n System.out.println(myLibrary.get(1).getName());\n myLibrary.remove(m1);\n myLibrary.remove(m2);\n System.out.println(myLibrary.get(0).getName());\n }\n catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }", "public static void main(String[] args) {\n\n\t\tDemoClass1 obj=new DemoClass1();\n\t//\tobj.add();\n\t\t\t\t\n\t}", "public static void main(String[] args) {\nLibraryServis servise = new CityLibraryService();\r\nCatalog bookCatalog = servise.getMainCatalog();\r\nviewCatalogInfo(bookCatalog);\r\n\r\n\t}", "public static void main(String[] args) {\nLogo oo=new Logo();\noo.title();\n\n\t}", "public static void main(String[] args) {\n\t\tdog d=new dog();\r\n\t\td.print();\r\n\t\r\n\r\n\t}", "public static void main(String[] args) {\n MyClass m;\n m= new MyClass();\nm.display();\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tInstitude i1=new Institude(10,\"Pune\",new Branch(11,\"Bas\",new Subject(20,\"Java\",new Topic\r\n\t\t\t\t(30,\"Method Overloading\",new SubTopic(40,\"Method Overriding\",new Question(50,\"What is class\"))))));\r\n\t\t\r\n\t\tSystem.out.println(i1);\r\n\t\t\r\n\t\t\r\n//\t\tInstitude i1=new Institude();\r\n//\t\ti1.setId(10);\r\n//\t\ti1.setName(\"Pune\");\r\n//\t\t\r\n//\t\tBranch b1=new Branch();\r\n//\t\tb1.setId(11);\r\n//\t\tb1.setName(\"Bsc\");\r\n//\t\t\r\n//\t\tSubject s1=new Subject();\r\n//\t\ts1.setId(20);\r\n//\t\ts1.setName(\"Java\");\r\n//\t\t\r\n//\t\tTopic t1=new Topic();\r\n//\t\tt1.setId(30);\r\n//\t\tt1.setName(\"Method Overloading\");\r\n//\t\t\r\n//\t\tSubTopic s2=new SubTopic();\r\n//\t\ts2.setId(40);\r\n//\t\ts2.setName(\"Method overriding\");\r\n//\t\t\r\n//\t\tQuestion q1=new Question();\r\n//\t\tq1.setId(50);\r\n//\t\tq1.setName(\"What is Class ?\");\r\n//\t\t\r\n//\t\t\r\n//\t\ti1.setB1(b1);\r\n//\t\tb1.setS1(s1);\r\n//\t\ts1.setT1(t1);\r\n//\t\tt1.setSt(s2);\r\n//\t\ts2.setQ1(q1);\r\n//\t\t\r\n//\t\tSystem.out.println(i1);\r\n\t\r\n\t\t}", "public FeatureSynthesisMain() {\n super();\n }", "public void add() {\n }", "public void loadTag(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from Tag \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs.getString(\"relatedtag\");\n\t\t\t\t\ttag.addItem(name);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tcon.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n}", "public static void main(String[] args){\n Car myCar = new Car();\n myCar.car_human();\n myCar.car_color(); \n }", "public static void main(String[] args) {\nMain ma=new Main();\r\nma.minus();\r\n\t}", "public static void main(String[] args) {\n // TODO Auto-generated method stub\n\n }", "public static void thisDemo() {\n\t}", "public void test(){\n }", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "public static void main() {\n \n }", "protected void initTag()\n {\n }", "public static void main(String[] args){\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\nStudent s=new Student();\ns.display();\n\t}", "public static void main(String[] args) {\n \r\n PedersenScheme ps = new PedersenScheme();\r\n Element tag = ps.getTag();\r\n System.out.println(tag.convertToString());\r\n System.out.println(tag.toString());\r\n \r\n example1();\r\n \r\n }", "public static void main(String[] args) {\n\r\n\r\n Employee e1=new Employee();\r\n\r\n e1.name=\"avinash\";\r\n e1.city=\"ongole\";\r\n e1.age=58;\r\n\r\n e1.display();\r\n }", "private Main() {\n\n super();\n }", "public static void main(String[] args) {\n Test.show();\n// t.fun();\n/*System.out.println(t.age1);*/\n }", "public static void main(String[] args) {\nCircle ob=new Circle();\r\nob.Print();\r\n\r\n\t}", "public void addInstruction(){\n\n }", "void updateTags();", "public static void main(String args[]){\n featureBase Engine = new featureEngine(\"Engine!\",\n \"This is an engine test!\", 356.99,1.0, 24.5,1000.0);\n\n featureBase Wheels = new featureWheels(\"Wheels\",\n \"This is a wheels test!\", 359.9,1.0,\"Somber\", 21.0);\n\n featureBase Color = new featureColor(\"Test part!\",\n \"This is a test part cool huh?\",364.99,1.0,\"Stylish\");\n\n //Constructing a new nodeArray\n nodeArray test = new nodeArray();\n\n //inserting the objects into the array (Duplicate to test the LLL as well)\n test.insert(Wheels);\n test.insert(Engine);\n test.insert(Color);\n\n System.out.print(test.display());\n }", "public static void main(String[] args){\n SentenceParser sp = new SentenceParser (\"Peas and carrots and potatoes.\");\n System.out.println(sp);\n //then print your results\n \n\n }", "public void test() {\n\n }", "public static void main(String[] args) {\n\tLibro l1=new Libro();\r\n\tl1.InfLibro(\"Gary\", 25, \"terror\");\r\n\r\n\t}", "public A3Add(){}", "public static void main(String[] args) {\n NonStaticFunctions objRef= new NonStaticFunctions(); \n \n int add=objRef.sum(10, 20);\n System.out.println(objRef.age);\n \n message();\n System.out.println(name);\n\t}", "private Main() {\n }", "public static void main(String[] args) \r\n\t{\n one obj = new one();\r\n\t}", "public static void main(String[] args) {\n DepartmentServiceimpl deptservice=new DepartmentServiceimpl();\n Department deptobj=new Department();\n \n deptobj.setDepartmentNumber(22);\n deptobj.setDepartmentName(\"com\");\n deptobj.setDepatmentLocation(\"pune\");\ndeptservice.createDepartmentService(deptobj);\n\n}", "public static void main(String[] args) {\n\t\tFive obj=new Five();\n\t\tobj.batchalloedment();\n\t\tobj.display();\n\t\tobj.idcardgeneration();\n\t\tobj.registartion();\n\t}", "public static void t(){\n\n\n }", "private void test() {\n\n\t}", "public static void main() {\n }", "public static void main(String []args){\n\n }", "public static void main (String [] args){\n\n\n\n \n\n\n\n\n\n \n\n\n\n\n\n\n\n }", "public static void main(String[] args){\n eLivros handler = new eLivros();\n }", "public static void main(String[] args) {// we can create psvm method but cannot create objects in abstract class\n\t\tSchool.bonus();// as bonus method is static we can print it without create class name so we can use\n\t\t\t\t\t\t// with classname.mthdname hence it is accepted in abstract class\n\t\tSystem.out.println(\"i am from main method\");// we can write anything in main mthd it prints automatically without\n\t\t\t\t\t\t\t\t\t\t\t\t\t// creating obj\n\t}", "public static void main(String[] args) {\n\t\tLinkedListedDemo demo=new LinkedListedDemo();\r\n\t\tdemo.addObjects();\r\n\t\tdemo.showElements();\r\n\t}" ]
[ "0.63226587", "0.6240148", "0.6154858", "0.60634696", "0.60156226", "0.59822506", "0.5952908", "0.5941633", "0.59353894", "0.5931626", "0.5905735", "0.5905597", "0.58853686", "0.5868664", "0.5824387", "0.5823887", "0.5823887", "0.5778622", "0.5764667", "0.5760667", "0.57512045", "0.57441354", "0.5734739", "0.5723323", "0.57203454", "0.5717119", "0.5717119", "0.57164335", "0.57060623", "0.570435", "0.5697554", "0.5692053", "0.5670922", "0.56676495", "0.5664428", "0.5661488", "0.5654419", "0.5654419", "0.5654055", "0.5650571", "0.5639052", "0.56300974", "0.56300974", "0.5628122", "0.5626037", "0.5602985", "0.56018114", "0.5595638", "0.55927855", "0.5590493", "0.5588956", "0.5585873", "0.5583282", "0.5581927", "0.5575434", "0.55606055", "0.55579406", "0.5553647", "0.5548054", "0.5544494", "0.5541171", "0.55402595", "0.553923", "0.5536258", "0.55351216", "0.55317247", "0.55294555", "0.55162877", "0.5511353", "0.55052304", "0.55042875", "0.55038", "0.54960257", "0.54956245", "0.5486541", "0.54849803", "0.54846877", "0.54842985", "0.5481797", "0.5481055", "0.5465898", "0.54627323", "0.5461281", "0.54603547", "0.54599476", "0.54542255", "0.5452599", "0.54511493", "0.54347074", "0.5433093", "0.54318017", "0.54297686", "0.5425346", "0.541812", "0.5415398", "0.5415271", "0.54129785", "0.5411267", "0.5409325", "0.5408161", "0.54065543" ]
0.0
-1
ManageSessionsRooms m_rooms= new ManageSessionsRooms (); m_rooms.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new ManageSessionsRooms(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\nnew room();\n\n\t}", "private static void performRoomManagement() {\n\t\t\r\n\t\t\r\n\r\n\t}", "private void createRooms()//refactored\n {\n currentRoom = RoomCreator.buildCurrentRooms();//new\n }", "Room mo12151c();", "public MyRoom() {\r\n }", "ItcRoom()\r\n\t {\t }", "public Game() \n {\n createRooms();\n parser = new Parser();\n }", "public Game() \n {\n createRooms();\n parser = new Parser();\n }", "private void createRooms()\n {\n Room outside, theatre, pub, lab, office , hallway, backyard,chickenshop;\n \n // create the rooms\n outside = new Room(\"outside the main entrance of the university\");\n theatre = new Room(\"in a lecture theatre\");\n pub = new Room(\"in the campus pub\");\n lab = new Room(\"in a computing lab\");\n office = new Room(\"in the computing admin office\");\n hallway=new Room (\"in the hallway of the university\");\n backyard= new Room( \"in the backyard of the university\");\n chickenshop= new Room(\"in the chicken shop\");\n \n \n \n // initialise room exits\n outside.setExit(\"east\", theatre);\n outside.setExit(\"south\", lab);\n outside.setExit(\"west\", pub);\n\n theatre.setExit(\"west\", outside);\n theatre.setExit(\"north\", backyard);\n\n pub.setExit(\"east\", outside);\n\n lab.setExit(\"north\", outside);\n lab.setExit(\"east\", office);\n \n office.setExit(\"south\", hallway);\n office.setExit(\"west\", lab);\n \n chickenshop.setExit(\"west\", lab);\n\n currentRoom = outside; // start game outside\n \n }", "public void startGame(Room room);", "public void createRooms()//Method was given\n { \n \n // create the rooms, format is name = new Room(\"description of the situation\"); ex. desc = 'in a small house' would print 'you are in a small house.'\n outside = new Room(\"outside\", \"outside of a small building with a door straight ahead. There is a welcome mat, a mailbox, and a man standing in front of the door.\", false);\n kitchen = new Room(\"kitchen\", \"in what appears to be a kitchen. There is a sink and some counters with an easter egg on top of the counter. There is a locked door straight ahead, and a man standing next to a potted plant. There is also a delicious looking chocolate bar sitting on the counter... how tempting\", true);\n poolRoom = new Room(\"pool room\", \"in a new room that appears much larger than the first room.You see a table with a flashlight, towel, and scissors on it. There is also a large swimming pool with what looks like a snorkel deep in the bottom of the pool. Straight ahead of you stands the same man as before.\", true);\n library = new Room(\"library\", \"facing east in a new, much smaller room than before. There are endless rows of bookshelves filling the room. All of the books have a black cover excpet for two: one red book and one blue book. The man stands in front of you, next to the first row of bookshelves\", true);\n exitRoom = new Room(\"exit\", \"outside of the building again. You have successfully escaped, congratulations! Celebrate with a non-poisonous chocolate bar\",true);\n \n // initialise room exits, goes (north, east, south, west)\n outside.setExits(kitchen, null, null, null);\n kitchen.setExits(poolRoom, null, outside, null);\n poolRoom.setExits(null, library, kitchen, null);\n library.setExits(null, null, exitRoom, poolRoom);\n exitRoom.setExits(null, null, null, null); \n \n currentRoom = outside; // start game outside\n }", "abstract void classRooms();", "public Game(){\n player = new Player(createRooms());\n parser = new Parser(); \n }", "public Game()\n {\n createRooms();\n parser= new Parser();\n }", "public void populateRooms(){\n }", "public static void main(String[] args) {\n\r\n House myHouse = new House(new Room(\"myBedroom\", 4, 2, false), 43);\r\n myHouse.wallsDetails();\r\n\r\n }", "private void createRooms()\n {\n // create the rooms\n prison = new Room(\"Prison\", \"Prison. You awake in a cold, dark cell. Luckily, the wall next to you has been blown open. \\nUnaware of your current circumstances, you press on... \\n\");\n promenade = new Room(\"Promenade\",\"Promenade. After stumbling upon a ladder, you decided to climb up. \\n\" + \n \"You appear outside a sprawling promenade. There appears to be something shiny stuck in the ground... \\n\");\n sewers = new Room(\"Sewers\",\"Sewers. It smells... interesting. As you dive deeper, you hear something creak\");\n ramparts = new Room(\"Ramparts\", \"Ramparts. You feel queasy as you peer down below. \\nAs you make your way along, you're greated by a wounded soldier.\" +\n \"\\nIn clear agony, he slowly closes his eyes as he says, 'the king... ki.. kil... kill the king..' \\n\");\n depths = new Room(\"Depths\", \"Depths. You can hardly see as to where you're going...\" + \"\\n\");\n ossuary = new Room(\"Ossuary\", \"Ossuary. A chill runs down your spine as you examine the skulls... \\n\" +\n \"but wait... is.. is one of them... moving? \\n\" +\"\\n\" + \"\\n\" + \"There seems to be a chest in this room!\" + \"\\n\");\n bridge = new Room(\"Bridge\", \"Bridge. A LOUD SHREIK RINGS OUT BEHIND YOU!!! \\n\");\n crypt = new Room(\"Crypt\", \"Crypt. An eerire feeling begins to set in. Something about this place doesn't seem quite right...\" + \"\\n\");\n graveyard = new Room(\"Graveyard\", \"Graveyard. The soil looks rather soft. \\n\" +\n \"As you being to dive deeper, you begin to hear moans coming from behind you...\");\n forest = new Room(\"Forest\", \"Forest. It used to be gorgeous, and gleaming with life; that is, until the king came...\" + \"\\n\" +\n \"there's quite a tall tower in front of you... if only you had something to climb it.\" + \"\\n\");\n tower = new Room(\"Tower\", \"Tower. As you look over the land, you're astounded by the ruin and destruction the malice and king have left behind. \\n\");\n castle = new Room(\"Castle\", \"Castle. Used to be the most elegant and awe-inspiring building in the land. \\n\" +\n \"That is, before the king showed up... \\n\" +\n \"wait... is that... is that a chest? \\n\");\n throneRoomEntrance = new Room(\"Throne Entrance\", \"You have made it to the throne room entrance. Press on, if you dare.\");\n throne = new Room(\"Throne Room\", \"You have entered the throne room. As you enter, the door slams shut behind you! \\n\" +\n \"Before you stands, the king of all malice and destruction, Mr. Rusch\" + \"\\n\");\n deathRoom1 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom2 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom3 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom4 = new Room(\"Death Room\", \"depths of the earth... well part of you at least.\" + \"\\n\" + \"You fell off the peaks of the castle to your untimely death\");\n \n // initialise room exits\n\n currentRoom = prison; // start game outside player.setRoom(currentRoom);\n player.setRoom(currentRoom);\n \n }", "public static void main(String[] args) {\n RoomDoor door = new RoomDoor(100, 200, 50, \"wood\", \"red\", \"straight\");\r\n RoomSofa sofa = new RoomSofa(200, 100, 100, \"leather\", \"red\");\r\n RoomWall wall1 = new RoomWall(220, 500, \"white\", \"plasterboard\");\r\n RoomWall wall2 = new RoomWall(220, 250, \"red\", \"plasterboard\");\r\n RoomWall wall3 = new RoomWall(220, 500, \"blue\", \"plasterboard\");\r\n RoomWall wall4 = new RoomWall(220, 250, \"white\", \"plasterboard\");\r\n RoomWindow window = new RoomWindow(120, 100, \"sash\", \"white\", false);\r\n\r\n //instantiate room object from above objects\r\n Room room = new Room(wall1, wall2, wall3, wall4, door, sofa, window);\r\n\r\n System.out.println(\"\\nGet each wall separately using Wall getter\\n\");\r\n System.out.println(room.getWall1().getColour());\r\n System.out.println(room.getWall2().getColour());\r\n System.out.println(room.getWall3().getColour());\r\n System.out.println(room.getWall4().getColour());\r\n System.out.println(\"\\nGet all wall colours using a method in Room class\\n\");\r\n room.getWallColours();\r\n\r\n System.out.println(\"\\ncalls openWindow method in window class\\n\");\r\n window.openWindow();\r\n System.out.println(\"\\ncalls method in Room class that opens room windows\\n\");\r\n room.openRoomWindow();;\r\n window.closeWindow();\r\n\r\n\r\n }", "public ViewRoom(Room r) {\n initComponents();\n this.room = r;\n this.workoutNum = 0;\n updateRoom();\n \n }", "public void onRoomLoad() {\n\n }", "public void addRoom(Chatroom room){\n\n }", "public static void main(String[] args) {\n CustomerLoginView loginView = new CustomerLoginView();\n NewCustomerView newCustomerView = new NewCustomerView();\n MainView mainView = new MainView(loginView);\n Hotel hotel = new Hotel();\n System.out.println(String.format(\"Welcome to %s!\", hotel.getName()));\n System.out.println(\"Begin by selecting the number of rooms you'd like to request\");\n \n Scanner scanner = new Scanner(System.in);\n int numOfReservations = Integer.parseInt(scanner.nextLine());\n \n int counter = 1;\n while(counter <= numOfReservations) {\n hotel.requestRoom(counter);\n counter++;\n }\n scanner.close();\n System.out.println(hotel);\n }", "public Room() {\n }", "public static void main(String[] args) {\r\n showroom = new AutoShowroom();\r\n printStatus();\r\n }", "private void createRooms()\n {\n Room outside, garden, kitchen, frontyard, garage, livingroom,\n upperhallway, downhallway, bedroom1, bedroom2, toilet,teleporter;\n\n // create the rooms\n outside = new Room(\"outside the house\",\"Outside\");\n garden = new Room(\"in the Garden\", \"Garden\");\n kitchen = new Room(\"in the Kitchen\",\"Kitchen\");\n frontyard = new Room(\"in the Frontyard of the house\", \"Frontyard\");\n garage = new Room(\"in the Garage\", \"Garage\");\n livingroom = new Room(\"in the Living room\", \"Living Room\");\n upperhallway = new Room(\"in the Upstairs Hallway\",\"Upstairs Hallway\");\n downhallway = new Room(\"in the Downstairs Hallway\", \"Downstairs Hallway\");\n bedroom1 = new Room(\"in one of the Bedrooms\", \"Bedroom\");\n bedroom2 = new Room(\"in the other Bedroom\", \"Bedroom\");\n toilet = new Room(\"in the Toilet upstairs\",\"Toilet\");\n teleporter = new Room(\"in the Warp Pipe\", \"Warp Pipe\");\n\n // initialise room exits\n outside.setExit(\"north\", garden);\n outside.setExit(\"east\", frontyard);\n\n garden.setExit(\"south\", outside);\n garden.setExit(\"east\", kitchen);\n\n kitchen.setExit(\"west\", garden);\n kitchen.setExit(\"north\", livingroom);\n kitchen.setExit(\"south\", downhallway);\n\n frontyard.setExit(\"west\", outside);\n frontyard.setExit(\"north\", downhallway);\n frontyard.setExit(\"east\", garage);\n\n garage.setExit(\"west\", frontyard);\n garage.setExit(\"north\", downhallway);\n\n livingroom.setExit(\"west\", kitchen);\n\n downhallway.setExit(\"north\",kitchen);\n downhallway.setExit(\"west\",frontyard);\n downhallway.setExit(\"south\",garage);\n downhallway.setExit(\"east\",upperhallway);\n\n upperhallway.setExit(\"north\", bedroom2);\n upperhallway.setExit(\"east\", bedroom1);\n upperhallway.setExit(\"south\", toilet);\n upperhallway.setExit(\"west\", downhallway);\n\n toilet.setExit(\"north\", upperhallway);\n\n bedroom1.setExit(\"west\",upperhallway);\n\n bedroom2.setExit(\"south\", upperhallway);\n\n rooms.add(outside);\n rooms.add(garden);\n rooms.add(kitchen);\n rooms.add(frontyard);\n rooms.add(garage);\n rooms.add(livingroom);\n rooms.add(upperhallway);\n rooms.add(downhallway);\n rooms.add(bedroom1);\n rooms.add(bedroom2);\n rooms.add(toilet);\n }", "public void sendeLobby();", "private Room createRooms(){\n Room inicio, pasilloCeldas, celdaVacia1,celdaVacia2, pasilloExterior,vestuarioGuardias, \n comedorReclusos,enfermeria,ventanaAbierta,salidaEnfermeria,patioReclusos,tunelPatio,salidaPatio;\n\n Item mochila,medicamentos,comida,itemInutil,itemPesado;\n mochila = new Item(\"Mochila\",1,50,true,true);\n medicamentos = new Item(\"Medicamentos\",5,10,true,false);\n comida = new Item(\"Comida\",2,5,true,false);\n itemInutil = new Item(\"Inutil\",10,0,false,false);\n itemPesado = new Item(\"Pesas\",50,0,false,false);\n\n // create the rooms\n inicio = new Room(\"Tu celda de la prision\");\n pasilloCeldas = new Room(\"Pasillo donde se encuentan las celdas\");\n celdaVacia1 = new Room(\"Celda vacia enfrente de la tuya\");\n celdaVacia2 = new Room(\"Celda de tu compaņero, esta vacia\");\n pasilloExterior = new Room(\"Pasillo exterior separado de las celdas\");\n vestuarioGuardias = new Room(\"Vestuario de los guardias de la prision\");\n comedorReclusos = new Room(\"Comedor de reclusos\");\n enfermeria = new Room(\"Enfermeria de la prision\");\n ventanaAbierta = new Room(\"Saliente de ventana de la enfermeria\");\n salidaEnfermeria = new Room(\"Salida de la prision por la enfermeria\");\n patioReclusos = new Room(\"Patio exterior de los reclusos\");\n tunelPatio = new Room(\"Tunel escondido para escapar de la prision\");\n salidaPatio = new Room(\"Salida de la prision a traves del tunel del patio\");\n\n // initialise room items\n\n comedorReclusos.addItem(\"Comida\",comida);\n enfermeria.addItem(\"Medicamentos\",medicamentos);\n pasilloCeldas.addItem(\"Inutil\",itemInutil);\n patioReclusos.addItem(\"Pesas\",itemPesado);\n vestuarioGuardias.addItem(\"Mochila\",mochila);\n\n // initialise room exits\n\n inicio.setExits(\"east\", pasilloCeldas);\n pasilloCeldas.setExits(\"north\",pasilloExterior);\n pasilloCeldas.setExits(\"east\",celdaVacia1);\n pasilloCeldas.setExits(\"south\",patioReclusos);\n pasilloCeldas.setExits(\"west\",inicio);\n pasilloCeldas.setExits(\"suroeste\",celdaVacia2);\n celdaVacia1.setExits(\"west\", pasilloCeldas);\n pasilloExterior.setExits(\"north\",comedorReclusos);\n pasilloExterior.setExits(\"west\",enfermeria);\n pasilloExterior.setExits(\"east\",vestuarioGuardias);\n comedorReclusos.setExits(\"south\", pasilloExterior);\n enfermeria.setExits(\"east\",pasilloExterior);\n enfermeria.setExits(\"south\", ventanaAbierta);\n ventanaAbierta.setExits(\"north\",enfermeria);\n ventanaAbierta.setExits(\"south\", salidaEnfermeria);\n patioReclusos.setExits(\"north\", pasilloCeldas);\n patioReclusos.setExits(\"east\", tunelPatio);\n tunelPatio.setExits(\"east\",salidaPatio);\n tunelPatio.setExits(\"west\", patioReclusos);\n // casilla de salida\n\n return inicio;\n }", "private static void createRooms() {\n// Room airport, beach, jungle, mountain, cave, camp, raft, seaBottom;\n\n airport = new Room(\"airport\");\n beach = new Room(\"beach\");\n jungle = new Room(\"jungle\");\n mountain = new Room(\"mountain\");\n cave = new Room(\"cave\");\n camp = new Room(\"camp\");\n seaBottom = new Room(\"seabottom\");\n\n //Setting the the exits in different rooms\n beach.setExit(\"north\", jungle);\n beach.setExit(\"south\", seaBottom);\n beach.setExit(\"west\", camp);\n\n jungle.setExit(\"north\", mountain);\n jungle.setExit(\"east\", cave);\n jungle.setExit(\"south\", beach);\n\n mountain.setExit(\"south\", jungle);\n\n cave.setExit(\"west\", jungle);\n\n camp.setExit(\"east\", beach);\n\n seaBottom.setExit(\"north\", beach);\n\n // Starting room\n currentRoom = airport;\n }", "public void createRooms()\n {\n Room outside,bedroom, bathroom, hallway1, hallway2, spareroom, kitchen, fridge;\n\n // create the rooms\n bedroom = new Room(\"Bedroom\", \"your bedroom. A simple room with a little bit too much lego\");\n bathroom = new Room(\"Bathroom\", \"the bathroom where you take your business calls. Also plenty of toilet paper\");\n hallway1 = new Room(\"Hallway1\", \"the hallway outside your room, there is a dog here blocking your path. Youll need to USE something to distract him\");\n hallway2 = new Room(\"Hallway2\", \"the same hallway? This part leads to the spare room and kitchen\");\n spareroom = new Room(\"Spare room\", \"the spare room. This is for guests\");\n kitchen = new Room(\"Kitchen\", \"your kitchen. There is a bowl with cereal in it waiting for you,But its still missing some things\");\n fridge = new Room (\"Walk in Fridge\", \"a walkin fridge. Have you ever seen Ratatouille? Its like that\");\n outside = new Room(\"Outside\", \"the outside world, breathe it in\");\n \n \n Item toiletPaper, milk, spoon, poison;// creates the items and sets their room\n \n toiletPaper = new Item(\"Toilet-Paper\", hallway1);\n toiletPaper.setDescription(\"Just your standard bog roll. Dont let your dog get a hold of it\");\n bathroom.setItems(\"Toilet-Paper\",toiletPaper);\n \n milk = new Item(\"Milk\", kitchen);\n milk.setDescription(\"white and creamy, just like mama used to make\");\n fridge.setItems(\"Milk\", milk);\n \n spoon = new Item(\"Spoon\", kitchen);\n spoon.setDescription(\"Like a fork but for liquids\");\n spareroom.setItems(\"Spoon\", spoon);\n \n poison = new Item(\"Poison\", outside);\n poison.setDescription(\"This will probably drain all of your energy, dont USE it\");\n outside.setItems(\"Poison\", poison);\n \n // initialise room exits\n bedroom.setExit(\"east\", bathroom);\n bedroom.setExit(\"north\", hallway1);\n \n bathroom.setExit(\"west\", bedroom);\n \n hallway1.setExit(\"south\", bedroom);\n hallway1.setExit(\"north\", hallway2);\n \n hallway2.setExit(\"south\", hallway1);\n hallway2.setExit(\"west\", spareroom);\n hallway2.setExit(\"north\", kitchen);\n \n spareroom.setExit(\"east\", hallway2);\n \n kitchen.setExit(\"east\", outside);\n kitchen.setExit(\"west\", fridge);\n \n fridge.setExit(\"east\", kitchen);\n \n \n outside.setExit(\"west\", kitchen);\n \n\n this.currentRoom = bedroom; // start game in bedroom\n \n }", "public ViewRoom(Customer cust,Room r, int wrkNum) {\n initComponents();\n this.room = r;\n this.workoutNum = wrkNum;\n customer = cust;\n updateRoom();\n \n }", "public static void main(String[] args) {\n\t\tHome home = new Home();\n\t\tRoom1 obj1 = new Room1 ();\n\t\tRoom2 obj2 = new Room2();\n\t\tRoom3 obj3 = new Room3();\n\t\tRoom4 obj4 = new Room4();\n\t\t//obj1.ac (76);\n\t\t//obj1.ac();\n\t\tobj1.RoomColor();\n\t\tobj2.RoomColor();\n\t\tobj3.RoomColor();\n\t\tobj4.Sum();\n\t\thome.Sum();\n\t\thome.Abc(4);\n\t\tobj4.Abc(4);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tRoom ru= null;\n\t\t\n\t\tpublic School(Room ru){\n\t\t\tthis.ru= ru;\n\t\t}\n\t\t\n School sc= new School();\n \n\t}", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public Room() {\n\n\t}", "public abstract void enterRoom();", "public Room() {\r\n\t\troomObjects = new ArrayList<GameObject>();\r\n\t\troom_listener = new RoomListener();\r\n\t\tlisteners = new ListenerContainer(room_listener);\r\n\t}", "public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);\n\n //new MakeAppoinment().setVisible(true);\n //upldMedRec.setVisible(true);\n //makeAppt.setVisible(true);\n //showScreen1();\n //jButton2ActionPerformed(java.awt.event.ActionEvent evt)\n \n //makeAppt.jButton2ActionPerformed();\n\n \n \n }", "public SingleRoom(Hotel hotel, String nomor_kamar)\n {\n // initialise instance variables\n super(hotel,nomor_kamar);\n\n }", "private void setRooms() {\r\n\t\tAccountBean bean = new AccountBean();\r\n\t\tbean.setCf(Session.getSession().getCurrUser().getAccount().getCf());\r\n\t\tRoomController ctrl = RoomController.getInstance();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tthis.myRooms=FXCollections.observableArrayList(ctrl.getMyRooms(bean));\r\n\t\t}\r\n\t\tcatch (DatabaseException ex1) {\r\n\t\t\tJOptionPane.showMessageDialog(null,ex1.getMessage(),ERROR, JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private static void demo2() throws RemoteException {\n\t\tCheckOutRoomService service = new CheckOutRoomServiceImpl();\r\n\t\tString clientID = \"0000001\";\r\n\t\tString hotelID = \"00001\";\r\n\t\t//System.out.println(service.checkOutRoom(clientID, hotelID));\r\n\t\tList<String> numbers = new ArrayList<String>();\r\n\t\t\r\n\t\tList<RoomVO> volist = service.getAllRooms(clientID, hotelID);\r\n\t\tfor(RoomVO vo:volist){\r\n\t\t\tshow(vo);\r\n\t\t\tnumbers.add(vo.getRoomNumber());\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(service.checkOutRoom(clientID, hotelID, \"102\"));\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tRoomFactory roomFactory = new RoomFactory();\n\t\tRoom room = roomFactory.getInstance(\"bed\");\n\t\troom.type();\n\t\t\n\t}", "public NewRoomFrame() {\n initComponents();\n }", "private void createRooms()\n {\n Room a1, a2, a3, b1, b2, b3, c1, c2, c3, bridge, outskirts;\n \n // create the rooms\n a1= new Room(\"see a strong river flowing south to the west. The trees seem to be letting up a little to the north.\");\n a2 = new Room(\" are still in a very dense forest. Maybe the trees are clearing up the the north?\");\n a3 = new Room(\"see a 30 foot cliff looming over the forest to the east. No way you could climb that. Every other direction is full of trees.\");\n b1 = new Room(\"see a strong river flowing to the west. Heavily wooded areas are in all other directions.\");\n b2 = new Room(\"see only trees around you.\");\n b3 = new Room(\"see a 30 foot cliff to the east. There might be one spot that is climbable. Trees surround you every other way.\");\n c1 = new Room(\" see the river cuts east here, but there seems to be a small wooden bridge to the south over it. The trees are less the direction that the river flows.\");\n c2 = new Room(\"are on a peaceful riverbank. If you weren't lost, this might be a nice spot for a picnic.\");\n c3 = new Room(\"see a 30 foot cliff to your east and a strong flowing river to the south. Your options are definitely limited.\");\n outskirts = new Room(\"make your way out of the trees and find yourself in an open field.\");\n cliff = new Room(\"managed to climb up the rocks to the top of the cliff. Going down, doesn't look as easy. You have to almost be out though now!\");\n bridge = new Room(\"cross the bridge and find a small trail heading south!\");\n win = new Room(\" manage to spot a road not too far off! Congratulations on finding your way out of the woods! Have a safe ride home! :)\" );\n fail = new Room(\" are entirely lost. It is pitch black out and there is no way that you are getting out of here tonight. I'm sorry, you LOSE.\");\n \n // initialise room exits\n a1.setExit(\"north\", outskirts);\n a1.setExit(\"east\", a2);\n a1.setExit(\"south\", b1);\n \n a2.setExit(\"east\", a3);\n a2.setExit(\"west\", a1);\n a2.setExit(\"south\", b2);\n a2.setExit(\"north\", outskirts);\n \n a3.setExit(\"north\", outskirts);\n a3.setExit(\"west\", a2);\n a3.setExit(\"south\", b3);\n \n b1.setExit(\"north\", a1);\n b1.setExit(\"east\", b2);\n b1.setExit(\"south\", c1);\n \n b2.setExit(\"east\", b3);\n b2.setExit(\"west\", b1);\n b2.setExit(\"south\", c2);\n b2.setExit(\"north\", a2);\n \n b3.setExit(\"north\", a3);\n b3.setExit(\"west\", b2);\n b3.setExit(\"south\", c3);\n b3.setExit(\"up\", cliff);\n \n c1.setExit(\"north\", b1);\n c1.setExit(\"east\", c2);\n c1.setExit(\"south\" , bridge);\n \n c2.setExit(\"east\", c3);\n c2.setExit(\"west\", c1);\n c2.setExit(\"north\", b2);\n \n c3.setExit(\"west\", c2);\n c3.setExit(\"north\", b3);\n \n outskirts.setExit(\"north\", win);\n outskirts.setExit(\"east\", a3);\n outskirts.setExit(\"west\", a1);\n outskirts.setExit(\"south\", a2);\n \n cliff.setExit(\"north\", outskirts);\n cliff.setExit(\"east\", win);\n \n bridge.setExit(\"north\", c1);\n bridge.setExit(\"south\", win);\n \n c3.addItem(new Item (\"shiny stone\", 0.1));\n a1.addItem(new Item (\"sturdy branch\", 2));\n a3.addItem(new Item(\"water bottle\" , 0.5));\n a3.addItem(new Item(\"ripped backpack\" , 1));\n currentRoom = b2; // start game outside\n }", "public static void main(String[] args) {\n\t\t\n\t\tRoom_main room = new Room_main(\"0 0 5 5 0 2\");\n\t\tSystem.out.println(room.toString());\n\t\t//room.isInRoom(Integer.parseInt(System.console().readLine()), Integer.parseInt(System.console().readLine()));\n\t\troom.isInRoom(7,9);\n\t\t\n\t}", "private ChatAdministration(){\n\t\troomlist = new ChatRoomTableModel();\n\t\tfilelist = new ChatFileTableModel();\n\t\tchatConnection = ChatConnection.getInstance();\n\t\tconnectionconfig = loadConnectionConfiguration();\n\t}", "public static void main(String[] args) {\nDesktop desk=new Desktop();\r\ndesk.hardWareResources();\r\ndesk.softwareWareResources();\r\ndesk.deskTopModel();\r\n\r\n\t\t\r\n\t\t\r\n\t}", "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "public Administrator() {\n // no-agrs constructor (ham dung khong tham so)\n }", "public void createRooms()\n { \n // create the rooms\n //RDC//\n hall = new Room(\"Hall\", \"..\\\\pictures\\\\Rooms\\\\hall.png\");\n banquetinghall = new Room (\"Banqueting hall\", \"..\\\\pictures\\\\Rooms\\\\banquet.png\");\n poolroom = new Room (\"PoolRoom\", \"..\\\\pictures\\\\Rooms\\\\billard.png\");\n dancingroom = new Room (\"Dancing Room\", \"..\\\\pictures\\\\Rooms\\\\bal.png\");\n kitchen = new Room(\"Kitchen\", null);\n garden = new Room(\"Garden\", null);\n well = new Room(\"Well\", null);\n gardenerhut = new Room(\"Gardener hut\", null);\n //Fin RDN //\n \n //-1//\n anteroom = new Room(\"Anteroom\", null);\n ritualroom = new Room(\"Ritual Room\", null);\n cellar = new Room(\"Cellar\", null);\n // FIN -1//\n // +1 //\n livingroom = new Room(\"Living Room\", null); \n library = new Room (\"Library\", null);\n laboratory = new Room(\"Laboratory\", null);\n corridor= new Room(\"Corridor\", null);\n bathroom = new Room(\"Bathroom\", null);\n bedroom = new Room(\"Bedroom\", null);\n guestbedroom = new Room(\"Guest Bedroom\", null); \n //FIN +1 //\n //+2//\n attic = new Room(\"Attic\", null);\n //Fin +2//\n //Fin create room // \n \n // initialise room exits\n //RDC\n hall.setExits(\"north\",garden, false, \"> You must explore the mansion before\");\n hall.setExits(\"south\",banquetinghall, true, null); \n banquetinghall.setExits(\"north\",hall, true, null);\n banquetinghall.setExits(\"south\",dancingroom, false, \"> The door is blocked by Bob's toys\");\n banquetinghall.setExits(\"east\",kitchen, true, null);\n banquetinghall.setExits(\"west\",poolroom, true, null);\n //poolroom.setExits(\"east\",banquetinghall, false, \"> You have not finished examining the crime scene\");\n poolroom.setExits(\"east\",banquetinghall, true, \"> You have not finished examining the crime scene\");\n dancingroom.setExits(\"north\",banquetinghall, true, null);\n dancingroom.setExits(\"up\",livingroom, true, null);\n kitchen.setExits(\"west\",banquetinghall, true, null);\n kitchen.setExits(\"down\",cellar, true, null);\n garden.setExits(\"south\",hall, true, null);\n garden.setExits(\"north\",well, true, null);\n garden.setExits(\"east\",gardenerhut, true, null);\n well.setExits(\"south\",garden, true, null);\n gardenerhut.setExits(\"west\",garden, true, null);\n //gardenerhut.setExits(\"down\",anteroom, false, null);\n //-1// \n anteroom.setExits(\"south\",ritualroom, true, null);\n anteroom.setExits(\"up\",gardenerhut, false, \"> The door is locked. You cannot go backward\");\n anteroom.setExits(\"west\",cellar, true, null);\n ritualroom.setExits(\"north\",anteroom, true, null);\n cellar.setExits(\"up\",kitchen, true, null);\n //cellar.setExits(\"east\", anteroom, false); To unlock\n //+1//\n livingroom.setExits(\"down\",dancingroom, true, null);\n livingroom.setExits(\"north\",library, true, null);\n livingroom.setExits(\"west\",corridor, true, null);\n library.setExits(\"south\",livingroom, true, null);\n //library.setExits(\"north\",laboratory, false); To unlock\n laboratory.setExits(\"south\",library, true, null);\n corridor.setExits(\"north\",bathroom, true, null);\n corridor.setExits(\"south\",bedroom, false, \"> The door is locked. A key may be mandatory\");\n corridor.setExits(\"east\",livingroom, true, null);\n corridor.setExits(\"west\",guestbedroom, true, null);\n corridor.setExits(\"up\",attic, false, \"> You see a weird lock in the ceiling\");\n bathroom.setExits(\"south\",corridor, true, null);\n bedroom.setExits(\"north\",corridor, true, null);\n guestbedroom.setExits(\"east\",corridor, true, null);\n attic.setExits(\"down\",corridor, true, null);\n \n //currentRoom = poolroom; // start game outside\n currentRoom = poolroom;\n }", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "public createsessions() {\n initComponents();\n loadlec();\n loadlec2();\n\n // subcode() ;\n loadsubname();\n loadsubname1();\n\n loadtag();\n loadtag2();\n\n loadgrpid();\n loadgrpid2();\n\n loadsubgrpid1();\n loadsubgrpid2();\n\n }", "public static void main(String[] args) throws Exception {\n EmergencyRoom ps1 = new EmergencyRoom();\n ps1.run();\n }", "public void startProgram() {\n this.displayBanner();\n// prompt the player to enter their name Retrieve the name of the player\n String playersName = this.getPlayersName();\n// create and save the player object\n User user = ProgramControl.createPlayer(playersName);\n// Display a personalized welcome message\n this.displayWelcomeMessage(user);\n// Display the Main menu.\n MainMenuView mainMenu = new MainMenuView();\n mainMenu.display();\n }", "void showCreatorWaitingRoom();", "public GlobalChat() {\r\n // Required empty public constructor\r\n }", "public Classroom() {\n\t}", "public lectManage() {\n initComponents();\n tableComponents();\n viewSchedule();\n }", "public static void addNewRoom() {\n Services room = new Room();\n room = addNewService(room);\n\n ((Room) room).setFreeService(FuncValidation.getValidFreeServices(ENTER_FREE_SERVICES,INVALID_FREE_SERVICE));\n\n //Get room list from CSV\n ArrayList<Room> roomList = FuncGeneric.getListFromCSV(FuncGeneric.EntityType.ROOM);\n\n //Add room to list\n roomList.add((Room) room);\n\n //Write room list to CSV\n FuncReadWriteCSV.writeRoomToFileCSV(roomList);\n System.out.println(\"----Room \"+room.getNameOfService()+\" added to list---- \");\n addNewServices();\n\n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "Room getRoom();", "Room getRoom();", "private void createInstances()\n {\n Room EnchantedForest, IdyllicGlade, GumdropHill, DenseWoods, VolcanoHell, SecretHotSpring, MagmaChamber, MysteriousCloud, SkyParadise, Cirrostratus, Nimbostratus, Stratocumulus, WaterTemple, Whirlpool, EyeoftheStorm, BossQuarters, Portal;\n \n random = new Random();\n allrooms = new ArrayList<Room>();\n \n // create the rooms providing an ID to be passed into the room constructor\n EnchantedForest = new EnchantedForestRoom();\n allrooms.add(EnchantedForest);\n IdyllicGlade = new IdyllicGladeRoom();\n allrooms.add(IdyllicGlade);\n GumdropHill = new GumdropHillRoom();\n allrooms.add(GumdropHill);\n DenseWoods = new DenseWoodsRoom();\n allrooms.add(DenseWoods);\n VolcanoHell = new VolcanoHellRoom();\n allrooms.add(VolcanoHell);\n SecretHotSpring = new SecretHotSpringRoom();\n allrooms.add(SecretHotSpring);\n MagmaChamber = new MagmaChamberRoom();\n allrooms.add(MagmaChamber);\n MysteriousCloud = new MysteriousCloudRoom();\n allrooms.add(MysteriousCloud);\n SkyParadise = new SkyParadiseRoom();\n allrooms.add(SkyParadise);\n Cirrostratus = new CirrostratusRoom();\n allrooms.add(Cirrostratus);\n Nimbostratus = new NimbostratusRoom();\n allrooms.add(Nimbostratus);\n Stratocumulus = new StratocumulusRoom();\n allrooms.add(Stratocumulus);\n WaterTemple = new WaterTempleRoom();\n allrooms.add(WaterTemple);\n Whirlpool = new WhirlpoolRoom();\n allrooms.add(Whirlpool);\n EyeoftheStorm = new EyeoftheStormRoom();\n allrooms.add(EyeoftheStorm);\n BossQuarters = new BossQuartersRoom(); \n allrooms.add(BossQuarters);\n Portal = new PortalRoom();\n \n \n // initialise room exits, items and creatures\n EnchantedForest.setExit(\"east\", IdyllicGlade);\n EnchantedForest.setExit(\"west\", GumdropHill);\n EnchantedForest.setExit(\"south\", DenseWoods);\n \n IdyllicGlade.setExit(\"west\", EnchantedForest);\n \n GumdropHill.setExit(\"down\", EnchantedForest);\n GumdropHill.setExit(\"up\", MysteriousCloud);\n\n DenseWoods.setExit(\"north\", EnchantedForest);\n DenseWoods.setExit(\"south\", VolcanoHell);\n \n MagmaChamber.setExit(\"north\",VolcanoHell);\n \n VolcanoHell.setExit(\"east\", SecretHotSpring);\n VolcanoHell.setExit(\"north\", DenseWoods);\n VolcanoHell.setExit(\"west\", MysteriousCloud);\n VolcanoHell.setExit(\"south\", MagmaChamber);\n \n SecretHotSpring.setExit(\"west\", VolcanoHell);\n \n MysteriousCloud.setExit(\"west\", VolcanoHell);\n MysteriousCloud.setExit(\"in\", Portal);\n MysteriousCloud.setExit(\"up\", SkyParadise);\n \n SkyParadise.setExit(\"down\", MysteriousCloud);\n SkyParadise.setExit(\"up\", Cirrostratus);\n SkyParadise.setExit(\"east\", Nimbostratus);\n \n Cirrostratus.setExit(\"north\", SkyParadise);\n Cirrostratus.setExit(\"down\", WaterTemple);\n \n Nimbostratus.setExit(\"west\", SkyParadise);\n Nimbostratus.setExit(\"east\", Stratocumulus);\n \n Stratocumulus.setExit(\"west\", Nimbostratus);\n Stratocumulus.setExit(\"down\", WaterTemple);\n \n WaterTemple.setExit(\"up\",Stratocumulus);\n WaterTemple.setExit(\"high\", Cirrostratus);\n WaterTemple.setExit(\"down\", Whirlpool);\n WaterTemple.setExit(\"in\", BossQuarters);\n \n Whirlpool.setExit(\"up\", WaterTemple);\n Whirlpool.setExit(\"down\", EyeoftheStorm);\n \n EyeoftheStorm.setExit(\"up\", Whirlpool);\n EyeoftheStorm.setExit(\"in\", BossQuarters);\n \n BossQuarters.setExit(\"out\", WaterTemple);\n \n currentRoom = EnchantedForest; \n }", "public static void main(String[] ar){\n Room living = new Room(\"Living\");\n Room kitchen = new Room(\"Kitchen\");\n Room bathroom = new Room(\"Bathroom\");\n Room garage = new Room(\"Garage\");\n \n Room bedroom1 = new Room(\"Bedroom1\");\n Room bedroom2 = new Room(\"Bedroom2\");\n Room bathroom1stf=new Room(\"Bathroom\");\n \n \n //Living\n living.addDevice(new Device(\"Aire acondicionado\", \"LG\", \"pm07sp\", true));\n living.addDevice(new Device(\"Luces\", \"Philips\", \"Hue\", true));\n //Kitchen\n kitchen.addDevice(new Device(\"luces\",\"Ahorradoras\",\"34234\", true));\n //Bathroom\n bathroom.addDevice(new Device(\"luce\",\"simple\",\"354676\", true));\n //Garage\n garage.addDevice(new Device(\"lightbulb\",\"the best\",\"X3000\",true));\n \n //Bedroom 1\n bedroom1.addDevice(new Device(\"Aire acondicionado\", \"Mabe\" , \"Mmt12cdbs3\", true));\n bedroom1.addDevice(new Device(\"Luces\",\"Philips\",\"EcoVantage\",true));\n \n //Bedroom 2\n bedroom2.addDevice(new Device(\"Aire acondicionado\", \"Hisense\" , \"AS-12CR5FVETD/1TR\", true));\n bedroom2.addDevice(new Device(\"Luces\",\"Ho Iluminacion\",\"A19 60W Claro\",true));\n \n //baño primer piso\n bathroom1stf.addDevice(new Device(\"Luces\",\"Alefco\",\"lw100\",true));\n \n \n \n Level groundFloor = new Level(\"Ground Floor\");\n Level firstFloor = new Level(\"First Floor\");\n \n \n groundFloor.addRoom(living);\n groundFloor.addRoom(kitchen);\n groundFloor.addRoom(bathroom);\n groundFloor.addRoom(garage);\n \n firstFloor.addRoom(bedroom1);\n firstFloor.addRoom(bedroom2);\n firstFloor.addRoom(bathroom1stf);\n \n\n House myhouse = new House(\"MyHome\");\n \n myhouse.addLevel(groundFloor);\n myhouse.addLevel(firstFloor);\n \n System.out.println(myhouse);\n \n \n /*\n room.addDevice(new Device(\"Reynaldo\", \"LG\", \"123456\", true));\n room.addDevice(new Device(\"Andrea\", \"Nokia\", \"Lumia-520\", true));\n room.addDevice(new Device(\"Karina\",\"Panasonic\",\"465464\", true));\n room.addDevice(new Device(\"Martin\", \"ZTE\", \"V7\",true));\n room.addDevice(new Device(\"Antonio\",\"Samsung\",\"J5\",true));\n room.addDevice(new Device(\"Roberto\",\"HP\",\"SpectreX360\",true));\n room.addDevice(new Device(\"Gabriel\",\"Linu\",\"Ilium_S106\",true));\n room.addDevice(new Device (\"Limberth\",\"LG\", \"lg-206\",true));\n room.addDevice(new Device(\"jesus\", \"hp\",\"2997\", true));\n room.addDevice(new Device(\"Rich\", \"Asus\",\"Zenfone_4_Max\",true));\n room.addDevice(new Device(\"Adrian\",\"Apple\",\"SE\",true));\n room.addDevice(new Device (\"Jonatan\",\"samsung\",\"J5\",true));\n room.addDevice(new Device(\"Jessica\", \"Huaweii\", \"P9LITE\", true));\n */\n \n \n \n \n \n }", "public void InitGame(){\n System.out.format(\"New game initiated ...\");\n Game game = new Game(client_List);\n SetGame(game);\n }", "public Scenario() {\n Room ninjaRoom, weaponroom, meetingRoom, zenTemple, stealthRoom, restRoom, masterRoom, ninjaTransporter;\n\n // create the rooms\n ninjaRoom = new Room(\"in the main enterence to the camp. You'll need to walk 10000 steps to get to the next room.\");\n weaponroom = new Room(\"in the Weapon's room. Normally this is where you go to grab your Nunchaku, but not today.\");\n meetingRoom = new Room(\"in the Meeting room. This is where classes are normally held. We will be here tomorrow to be sure\");\n zenTemple = new Room(\"in the Meditation room. When done for the day, this is where you clear your head.\");\n stealthRoom = new Room(\"in the Stealth training room. Ninja are made here, slow but steady will keep you alive.\");\n restRoom = new Room(\"in the Barracks. When I am done for th day, I will come back here for some rest.\");\n masterRoom = new Room(\"in the Master's room. Master is current meditating right now. Better leave him alone.\");\n ninjaTransporter = new TransporterRoom(\"in the secret Shumpo room...with this I can teleport anywhere\", this);\n\n weaponroom.addItem(new Item(\"Katana\", 3));\n weaponroom.addItem(new Item(\"Nunchaku\", 1));\n weaponroom.addItem(new Item(\"Bo\", 2));\n weaponroom.addItem(new Item(\"Sai\", 2));\n ninjaRoom.addItem(new Item(\"Master's Keys\", 1));\n meetingRoom.addItem(new Item(\"Secret Plans\", 1));\n zenTemple.addItem(new Item(\"Prayer beads\", 1));\n stealthRoom.addItem(new Item(\"Throwing Star\", 2));\n restRoom.addItem(new Item(\"Risque magazines\", 1));\n masterRoom.addItem(new Item(\"Ancient Shinobi Scroll\", 5));\n\n // initialise room exits\n ninjaRoom.setExits(\"north\", ninjaTransporter);\n\n ninjaTransporter.setExits(\"north\", weaponroom);\n ninjaTransporter.setExits(\"south\", ninjaRoom);\n\n weaponroom.setExits(\"north\", meetingRoom);\n weaponroom.setExits(\"south\", ninjaTransporter);\n\n meetingRoom.setExits(\"north\", stealthRoom);\n meetingRoom.setExits(\"east\", restRoom);\n meetingRoom.setExits(\"south\", weaponroom);\n meetingRoom.setExits(\"west\", zenTemple);\n\n zenTemple.setExits(\"east\", meetingRoom);\n\n stealthRoom.setExits(\"south\", meetingRoom);\n\n restRoom.setExits(\"east\", masterRoom);\n restRoom.setExits(\"west\", meetingRoom);\n\n masterRoom.setExits(\"west\", restRoom);\n\n // Set the start room\n startRoom = ninjaRoom; // start game @ ninjaRoom\n\n rooms = new ArrayList();\n rooms.add(ninjaRoom);\n rooms.add(weaponroom);\n rooms.add(meetingRoom);\n rooms.add(zenTemple);\n rooms.add(stealthRoom);\n rooms.add(restRoom);\n rooms.add(masterRoom);\n rooms.add(ninjaTransporter);\n\n random = new Random();\n }", "public static void main(String[] args) {\n try {\n Model m = new Model();\n //Customer c = new Customer(\"Pam Satan III\", \"[email protected]\", \"Norwich\", \"V\", \"02/12\", \"2136871466\");\n //c = m.CUSTOMERS.getCustomer(c.getName(), c.getEmail());\n /*Customer pam = m.CUSTOMERS.createCustomer(c);\n System.out.println(pam);\n List<Room> list = new ArrayList<>();\n list.add(request);\n //have pam make bookings for this date until she has used up all the available rooms, should exception\n //out\n for(int i = 0; i < 100; i++) {\n m.BOOKINGS.makeBooking(c, list, LocalDate.parse(\"2017-12-24\"), LocalDate.parse(\"2017-12-28\"));\n }\n //Booking booktest = m.BOOKINGS.getBooking(15976);\n int foo = 1;*/\n //c.setName(\"Jordan Jorgens\");\n //m.CUSTOMERS.updateCustomer(c);\n //Customer check = m.CUSTOMERS.getCustomer(12955);\n //System.out.println(check);\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n Room r = (Room)null;\n }", "public Admin_MainPage() {\n initComponents();\n }", "public Hotel(ArrayList<Room> rooms) {\n this.rooms = rooms;\n }", "public Main()\n {\n createUsers();\n createFriendships();\n createMessages();\n\n }", "public static void main(String[] args) throws Exception {\n Boolean end = false;\n ArrayList<Room> rooms = new ArrayList<Room>();\n ArrayList<Meeting> meetings = new ArrayList<Meeting>();\n initializeLog();\n\n // To perform operations on RoomSchedular by selecting a case\n while (!end) {\n switch (mainMenu()) {\n case 1:\n logger.info(addRoom(rooms));\n break;\n case 2:\n logger.info(removeRoom(rooms));\n break;\n case 3:\n logger.info(scheduleRoom(rooms));\n break;\n case 4:\n logger.info(listSchedule(rooms));\n break;\n case 5:\n logger.info(listRooms(rooms));\n break;\n case 6:\n logger.info(saveRoomJSON(rooms));\n break;\n case 7:\n logger.info(saveScheduleJSON(rooms));\n break;\n case 8:\n // here i changed room to meeting because in method it is given\n // meeting\n logger.info(saveMeetingJSON(meetings));\n\n break;\n case 9:\n\n logger.info(importRoomJSON());\n\n break;\n case 10:\n logger.info(importScheduleJSON());\n break;\n case 11:\n logger.info(importMeetingJSON());\n break;\n\n default:\n logger.info(\"Invalid case selection\");\n break;\n }\n\n }\n\n }", "public void teleopInit(){\n\n }", "public static void main(String[] args) {\n Room room1 = new Room(14, 6, 2, false);\n Room room2 = new Room(8, 6, 2, false);\n Room room3 = new Room(18, 6, 2, false);\n\n ArrayList<Room> rooms = new ArrayList<>();\n rooms.add(room1);\n rooms.add(room2);\n rooms.add(room3);\n\n\n House house = new House(8, 2, 140.00, rooms);\n\n\n\n\n System.out.println(\"Aantal stoelen \" + house.aantalStoelenInHetHuis());\n\n }", "public MemberMain() {\n initComponents();\n }", "public FenDetailSession() {\n initComponents();\n }", "public GameMain()\n {\n allenBad = new AllenSucks(this);\n }", "public void run() {\n SimpleChatUI firstWin = new SimpleChatUI();\n windows.add(firstWin);\n firstWin.setVisible(true);\n hub = new HubSession(new LoginCredentials(new ChatKeyManager(CHAT_USER)));\n\n firstWin.setStatus(\"No active chat\");\n }", "private GameManager() \n\t{\n\t\t\n\t}", "public MainMenuScreen(Game game)\n {\n super(game);\n\n batcher = new SpriteBatcher(glGraphics, 100);\n guiCam = new Camera2D(glGraphics, 1920, 1080);\n\n openIntent = new Intent(ScreenManager.game.getPackageName()+\".ACTION2\");\n }", "RoomInfo room(int id);", "public Application()\r\n {\r\n pSlot = new ParkingSlot();\r\n cPark = new CarPark();\r\n }", "public static void main(String[] args) throws Exception {\n TestRoomOnly myTest = new TestRoomOnly();\n myTest.init();\n }", "public Controller()\n {\n // Create initial queues and stations\n q0 = new Queue(); //registration q\n \n // p[arameters are id of station, 4 queues, completed q)\n s0 = new Station(0, q0, q1, q2, q3, qx);\n \n //Student soiurce ss is an actor\n \n actors = new ArrayList<>(); \n actors.add(s0); // add all Actor implementors\n //actors.add(myStudentSorce);\n }", "public static void showAllRoom(){\n ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM);\n displayList(roomList);\n showServices();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"************MOBILE***************\");\r\n\t\t\r\n\t\tMobile mobObj = new Mobile();\r\n\t\tmobObj.sendMsg();\r\n\t\tmobObj.makeCall1();\r\n\t\tmobObj.saveContact();\r\n\t\t\r\n\t\tSystem.out.println(\"************Andorid Phone*********\");\r\n\t\t\r\n\t\tAndroidPhone androiddObj = new AndroidPhone();\r\n\t\tandroiddObj.sendMsg();\r\n\t\tandroiddObj.makeCall1();\r\n\t\tandroiddObj.saveContact();\r\n\t\tandroiddObj.takeVideo();\r\n\t\t\r\n\t\tSystem.out.println(\"************Smart Phone************\");\r\n\t\t\r\n\t\tSmartPhone smartObj = new SmartPhone();\r\n\t\tsmartObj.sendMsg();\r\n\t\tsmartObj.makeCall1();\r\n\t\tsmartObj.saveContact();\r\n\t\tsmartObj.connectWhatsApp();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public modGenRoomControl() {\r\n //construct MbModule\r\n super();\r\n roomObjects = new HashMap(32);\r\n gui = new GUI();\r\n //we depend on the RemoteControl-module\r\n addDependency(\"RemoteControl\");\r\n //we depend on the ARNE-module\r\n addDependency(\"ARNE\");\r\n //register our packet data handler\r\n setPacketDataHandler(new PacketDataHandler());\r\n //we have a html-interface, so lets register it\r\n setHTMLInterface(new HTMLInterface());\r\n }", "public AuctionApp() {\r\n runAuctionApp();\r\n }", "public ModifyRoomReservation() {\n initComponents();\n\n btn_search.requestFocus();\n\n getAllIds();\n\n }", "public static void m15836a() {\n C8443c.m25663a().mo21606a(\"guest_connection_open\", null, Room.class);\n }", "RoomInfo room(String name);", "public Investigator() {}", "public static void main(String[] args) {\n\nCeo c=new Manager();\nc.manage();\nc.invest();\nManager n=new Manager();\nn.employee();\n//ManagingDirector md=new Manager();\n\n\n//Manager m=new Manager();\n//m.manage();\n//m.employee();\n \n }", "public Player()\n {\n inventory = new ArrayList<Item>();\n currentRoom=0;\n }", "public static void main(String[] args) {\n\n campusStudent cs=new campusStudent();\n cs.attendClass();\n System.out.println(\"==============================\");\n OnlineStudents os=new OnlineStudents();\n os.attendClass();\n cs.homeWork();\n os.homeWork();\n }", "private ArrayList<Room> createRooms() {\n //Adding starting position, always rooms(index0)\n\n rooms.add(new Room(\n \"Du sidder på dit kontor. Du kigger på uret og opdager, at du er sent på den. WTF! FISKEDAG! Bare der er fiskefilet tilbage, når du når kantinen. Du må hellere finde en vej ud herfra og hen til kantinen.\",\n false,\n null,\n null\n ));\n\n //Adding offices to <>officerooms, randomly placed later \n officeRooms.add(new Room(\n \"Du bliver kort blændet af en kontorlampe, som peger lige mod døråbningen. Du ser en gammel dame.\",\n false,\n monsterList.getMonster(4),\n itemList.getItem(13)\n ));\n\n officeRooms.add(new Room(\n \"Der er ingen i rummet, men rodet afslører, at det nok er Phillipas kontor.\",\n false,\n null,\n itemList.getItem(15)\n ));\n\n officeRooms.add(new Room(\n \"Du vader ind i et lokale, som er dunkelt oplyst af små, blinkende lamper og har en stank, der siger så meget spar fem, at det kun kan være IT-lokalet. Du når lige at høre ordene \\\"Rick & Morty\\\".\",\n false,\n monsterList.getMonster(6),\n itemList.getItem(7)\n ));\n\n officeRooms.add(new Room(\n \"Det var ikke kantinen det her, men hvorfor er der så krummer på gulvet?\",\n false,\n null,\n itemList.getItem(1)\n ));\n\n officeRooms.add(new Room(\n \"Tine sidder ved sit skrivebord. Du kan se, at hun er ved at skrive en lang indkøbsseddel. Hun skal nok have gæster i aften.\",\n false,\n monsterList.getMonster(0),\n itemList.getItem(18)\n ));\n\n officeRooms.add(new Room(\n \"Du træder ind i det tekøkken, hvor Thomas plejer at opholde sig. Du ved, hvad det betyder!\",\n false,\n null,\n itemList.getItem(0)\n ));\n\n officeRooms.add(new Room(\n \"Du går ind i det nok mest intetsigende rum, som du nogensinde har set. Det er så intetsigende, at der faktisk ikke er mere at sige om det.\",\n false,\n monsterList.getMonster(1),\n itemList.getItem(9)\n ));\n\n //Adding copyrooms to <>copyrooms, randomly placed later \n copyRooms.add(new Room(\n \"Døren knirker, som du åbner den. Et kopirum! Det burde du have set komme. Især fordi det var en glasdør.\",\n false,\n null,\n itemList.getItem(19)\n ));\n\n copyRooms.add(new Room(\n \"Kopimaskinen summer stadig. Den er åbenbart lige blevet færdig. Du går nysgerrigt over og kigger på alle de udskrevne papirer.\",\n false,\n null,\n itemList.getItem(12)\n ));\n\n //Adding restrooms to <>restrooms, randomly placed later \n restRooms.add(new Room(\n \"Ups! Dametoilettet. Der hænger en klam stank i luften. Det må være Ruth, som har været i gang.\",\n false,\n null,\n itemList.getItem(5)\n ));\n\n restRooms.add(new Room(\n \"Pedersen er på vej ud fra toilettet. Han vasker ikke fingre! Slut med at give ham hånden.\",\n false,\n monsterList.getMonster(7),\n itemList.getItem(11)\n ));\n\n restRooms.add(new Room(\n \"Du kommer ind på herretoilettet. Du skal simpelthen tisse så meget, at fiskefileterne må vente lidt. Du åbner toiletdøren.\",\n false,\n monsterList.getMonster(2),\n null\n ));\n\n restRooms.add(new Room(\n \"Lisette står og pudrer næse på dametoilettet. Hvorfor gik du herud?\",\n false,\n monsterList.getMonster(8),\n itemList.getItem(14)\n ));\n\n //Adding meetingrooms to<>meetingrooms, randomly placed later\n meetingRooms.add(new Room(\n \"Du træder ind i et lokale, hvor et vigtigt møde med en potentiel kunde er i gang. Du bliver nødt til at lade som om, at du er en sekretær.\",\n false,\n monsterList.getMonster(9),\n itemList.getItem(6)\n ));\n\n meetingRooms.add(new Room(\n \"Mødelokalet er tomt, men der står kopper og service fra sidste møde. Sikke et rod!\",\n false,\n null,\n itemList.getItem(3)\n ));\n\n meetingRooms.add(new Room(\n \"Projektgruppen sidder i mødelokalet. Vil du forsøge at forsinke dem i at nå fiskefileterne i kantinen?\",\n false,\n monsterList.getMonster(10),\n itemList.getItem(2)\n ));\n\n //Adding specialrooms to<>specialrooms, randomly placed later\n specialRooms.add(new Room(\n \"Du vader ind på chefens kontor. På hans skrivebord sidder sekretæren Phillipa.\",\n false,\n monsterList.getMonster(5),\n itemList.getItem(8)\n ));\n\n specialRooms.add(new Room(\n \"Det her ligner øjensynligt det kosteskab, Harry Potter boede i.\",\n false,\n monsterList.getMonster(3),\n itemList.getItem(4)\n ));\n\n specialRooms.add(new Room(\n \"OMG! Hvad er det syn?! KANTINEN!! Du klarede det! Du skynder dig op i køen lige foran ham den arrogante fra din afdeling. Da du når frem til fadet er der kun 4 fiskefileter tilbage. Du snupper alle 4!\",\n true,\n null,\n null\n ));\n\n //Adding rooms(Inde1-5)\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addMeetingRoom(rooms, meetingRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n\n //Adding rooms(Inde6-10)\n addMeetingRoom(rooms, meetingRooms);\n addCopyRoom(rooms, copyRooms);\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n addCopyRoom(rooms, copyRooms);\n\n //Adding rooms(Inde11-15)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n\n //Adding rooms(Inde16-19)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addSpecialRoom(rooms, specialRooms);\n addMeetingRoom(rooms, meetingRooms);\n\n return rooms;\n }", "public static void main(String[] args) {\n \r\n MenuPrincipal iniciar=new MenuPrincipal();\r\n iniciar.mostrarMenu();\r\n \r\n \r\n }", "private void listGames(){\n\n }", "public MainScreen() {\n initComponents();\n \n }", "public main() {\n initComponents();\n setTitle(\"Quản Lý Học Viên\");\n Chuyenmanhinhcontroller controller = new Chuyenmanhinhcontroller(jpnView);\n controller.setViews(jpnTrangChu, jlbTrangChu);\n this.openWelcome();\n this.openLogin();\n List<DanhMucBean> listItem = new ArrayList<>();\n listItem.add(new DanhMucBean(\"TrangChu\",jpnTrangChu,jlbTrangChu));\n listItem.add(new DanhMucBean(\"SinhVien\",jpnSinhVien,jlbHocVien));\n listItem.add(new DanhMucBean(\"NhanVien\",jpnNhanVien,jlbNhanVien));\n listItem.add(new DanhMucBean(\"MonHoc\",jpnMonHoc,jlbMonHoc));\n listItem.add(new DanhMucBean(\"TTDV\",jpnHocPhi,jlbHocPhi));\n listItem.add(new DanhMucBean(\"QLDiem\",jpnQuanLyDiem,jlbQuanLyDiem));\n listItem.add(new DanhMucBean(\"QLLopHoc\",jpnQuanLyLopHoc,jlbQLLopHoc));\n listItem.add(new DanhMucBean(\"QLTaiKhoan\",jpnQuanLyTaiKhoan,jlbQLTK));\n listItem.add(new DanhMucBean(\"SendMail\",jpnGuiTinNhan,jlbGuiTinNhan));\n listItem.add(new DanhMucBean(\"LichHoc\",jpnLichHoc,jlbLichHoc));\n listItem.add(new DanhMucBean(\"TKDL\",jpnThongKeDuLieu,jlbtkdl));\n listItem.add(new DanhMucBean(\"DoiMatKhau\",jpnDoiMatKhau,jlbDoiMatKhau));\n \n \n \n\n controller.setEvent(listItem);\n}", "public ProgramWilmaa()\n\t{\n\t}", "@Test\r\n\tpublic void testGetRooms() {\r\n\t\tassertEquals(rooms, breaku1.getRooms());\r\n\t\tassertEquals(rooms, externu1.getRooms());\r\n\t\tassertEquals(rooms, meetingu1.getRooms());\r\n\t\tassertEquals(rooms, teachu1.getRooms());\r\n\t}", "public static void createGameRooms()\r\n\t{\r\n\t\tfor(int i = 0; i < MAX_FIREWORKS_ROOMS; i++)\r\n\t\t{\r\n\t\t\taddRoom(\"fireworks_\" + i, new VMKGameRoom(\"fireworks_\" + i, \"Fireworks Game \" + i, \"\"));\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < MAX_PIRATES_ROOMS; i++)\r\n\t\t{\r\n\t\t\taddRoom(\"pirates_\" + i, new VMKGameRoom(\"pirates_\" + i, \"Pirates Game \" + i, \"\"));\r\n\t\t}\r\n\t}" ]
[ "0.70682466", "0.6883028", "0.6804415", "0.65642536", "0.65521705", "0.65003866", "0.64671576", "0.64671576", "0.64289534", "0.6357297", "0.63391656", "0.63232976", "0.62614787", "0.6260181", "0.62336814", "0.6230084", "0.6217123", "0.61671644", "0.61588275", "0.6124248", "0.609983", "0.5991639", "0.59650904", "0.5961566", "0.59614587", "0.5958797", "0.59427905", "0.5929855", "0.590144", "0.58860993", "0.58796597", "0.5876285", "0.5862543", "0.5841009", "0.58315843", "0.58287036", "0.5812194", "0.5810134", "0.58047575", "0.5783501", "0.5779061", "0.5771984", "0.57678264", "0.5763943", "0.57576305", "0.57565343", "0.57281095", "0.57207674", "0.5714582", "0.57128763", "0.57073516", "0.570402", "0.5703976", "0.56913096", "0.56888616", "0.5688011", "0.56855285", "0.5678058", "0.5668719", "0.5668709", "0.5668709", "0.56683356", "0.5617351", "0.56140244", "0.5614005", "0.5606761", "0.55976105", "0.55942756", "0.55888426", "0.5584504", "0.55818594", "0.5572644", "0.5566915", "0.55467975", "0.5543866", "0.5533802", "0.55336946", "0.5533075", "0.5532895", "0.5528646", "0.55243695", "0.55237067", "0.5521333", "0.5515708", "0.55091643", "0.5500874", "0.5494616", "0.5492921", "0.5490311", "0.5489899", "0.54898125", "0.54811376", "0.5477327", "0.54704756", "0.54701596", "0.5464089", "0.54634005", "0.5461761", "0.5442622", "0.5440077", "0.5439321" ]
0.0
-1
AddWorkingdays w_days= new AddWorkingdays(); w_days.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new AddWorkingdays(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n\t\n\tSchool obj =new School();\n\tobj.studentfee();\t\n\t \n\t}", "public static void main(String[] args) {\n Sal s=new Sal();\n s.getinfo();\n s.Addsal();\n s.Addwork();\n s.display();\n\t}", "int main() \n{\n clas s;\n s.cal();\n return 0;\n}", "public static void main(java.lang.String[] args){\r\n\tFireDangerCal test=new FireDangerCal();\r\n\ttest.get_InputValues();\r\n\ttest.get_TableValues();\r\n\ttest.get_UserInput();\r\n\ttest.getDanger();\r\n\ttest.output_UpdatedData();\r\n\t\r\n}", "static public void main(String [] args)\n{\n new BasisGoogleCalendar();\n}", "public static void main(String[] args) {\nDesktop desk=new Desktop();\r\ndesk.hardWareResources();\r\ndesk.softwareWareResources();\r\ndesk.deskTopModel();\r\n\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);\n\n //new MakeAppoinment().setVisible(true);\n //upldMedRec.setVisible(true);\n //makeAppt.setVisible(true);\n //showScreen1();\n //jButton2ActionPerformed(java.awt.event.ActionEvent evt)\n \n //makeAppt.jButton2ActionPerformed();\n\n \n \n }", "public static void main (String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n MainMenu mainMenu = new MainMenu(\"Flight Crew Scheduler\");\n mainMenu.createUI();\n mainMenu.setVisible(true);\n mainMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //FlightScheduled fs = new FlightScheduled();\n }\n });\n }", "public static void main(String[] args) {\n\n campusStudent cs=new campusStudent();\n cs.attendClass();\n System.out.println(\"==============================\");\n OnlineStudents os=new OnlineStudents();\n os.attendClass();\n cs.homeWork();\n os.homeWork();\n }", "public static void main(String[] args) {\nbonus b=new bonus();\nb.sale();\nb.salary();\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tbiker bb=new biker(304,\"domiinar\");//now we need constructor to initialise values in biker class\r\n\t\tstudent7 xx=new student7(4000,\"innverted\");//from here values are sent to student7 class so we dont need this keyword\r\n\t\t//here we will call method\r\n\t\tbb.display();\r\n\t\txx.show();\r\n\t\t\r\n\t\t}", "public static void main(String[] args) {\nMain ma=new Main();\r\nma.minus();\r\n\t}", "public static void main(String[] args){\r\n slaProject dateTime = new slaProject();\r\n dateTime.go();\r\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tAllMethods obj=new AllMethods();\n\t\tint large=obj.findLargest(300,500);\n\t\tSystem.out.println(large);\n\t\tboolean cond =obj.isOdd(large);\n\t\tSystem.out.println(cond);\n\t\t/*call method weekdayname\n\t\t * if(tuesday,wednesday,thusday)\n\t\t * it should print--I am learning java\n\t\t * \n\t\t */\n\t\tString Day=obj.weekDayName(6);\n\t\tif(Day.equals(\"Tuesday\")||Day.equals(\"Wednesday\")||Day.equals(\"Thusday\")||Day.equals(\"Saturday\")||Day.equals(\"Sunday\"))\n\t\t{\n\t\t\tSystem.out.println(\"We are learning Java\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"We are staying at home\");\n\t\t}\n\t\tTask obj1=new Task();\n\tint num=\tobj1.primeOrNotPrime(4);\n\tSystem.out.println(num);\n\tString email=obj1.email(\"John\", \"Mary\" ,\"@gmail.com\");\n\tSystem.out.println(email);\n\tchar grade=obj1.getGrade(95)\t;\n\tSystem.out.println(grade);\n\t\t\n\t}", "public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.print(\"Enter the number of Companies : \");\n\t\tint numOfComp=sc.nextInt();\n\t\t\n\t for (int i=0;i<numOfComp;i++) {\n\t \tScanner sc2=new Scanner(System.in);\n\t \tSystem.out.print(\"Enter the Company Name : \");\n\t \tString compName = sc2.nextLine();\n\t \tSystem.out.print(\"Enter the Wage per Hour : \");\n\t \tint wagePerHr = sc.nextInt();\n\t \tSystem.out.print(\"Enter Full Day Hour : \");\n\t \tint fullDayHr=sc.nextInt();\n\t \tSystem.out.print(\"Enter Half Day Hour : \");\n\t \tint halfDayHr=sc.nextInt();\n\t \tSystem.out.print(\"Enter the days in a month : \");\n\t \tint day=sc.nextInt();\n\t \tSystem.out.print(\"Enter the working hour in a month : \");\n\t \tint workingHr=sc.nextInt();\n\t \tobj.EmpWageBuilder(compName,wagePerHr,fullDayHr,halfDayHr,day ,workingHr);\n\t }\t\n\t \tobj.calculateWage();\n\t \n\t \tobj.getQuery();\n}", "public static void main(String[] args) {\n CalendarProgram cp = new CalendarProgram();\n ItemsServices itemS = new ItemsServices(new Driver());\n ItemController itemControl = new ItemController(itemS,cp);\n itemControl.start();\n \n }", "public static void main(){\n\t}", "public Weekday() {\n }", "public static void main(String[] args) {\n\n\t\tMethods.id=101;\n\t\tMethods.name=\"abuzer\";\n\t\tMethods.lastName=\"killica\";\n\t\tMethods.salary=55000;\n\t\tMethods.title=\"manager\";\n\t\tMethods.working();\n\t\tMethods.display();\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tWeekDay wd = new WeekDay();\n\t\t// 2\n\t\t\n\t\t// 4 확인\n\t\twd.input();\n\t\t// 4 확인\n\t\t\n\t\t// 6 확인\n\t\tString result = wd.week();\n\t\t\n\t\t// System.out.println(a);\n\t\t// 6 확인\n\t\t\n\t\twd.write(result);\n\t\t\n\n\t}", "public static void main(String[] args) {\n\r\n House myHouse = new House(new Room(\"myBedroom\", 4, 2, false), 43);\r\n myHouse.wallsDetails();\r\n\r\n }", "public static void main(String[] args) {\n // TODO code application logic here\n //Percipitation p = new Percipitation(\"cm(s)\", 10);\n //Random rand = new Random();\n //System.out.println(rand.nextInt(2));\n System.out.println(\"Welcome to Weather-Tron. Here's your report: \");\n for(int i = 1 ; i <= 10; i++){\n System.out.println(\"Day \" + i + \" :\");\n Day day = new Day(); \n }\n \n }", "public static void main(String[] args) {\n\t\tWeatherData data = new WeatherData();\r\n\t\tCurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(data);\r\n\t\t\r\n\t\t\r\n\t\tStatisticsDisplay statisticsDisplay = new StatisticsDisplay(data);\r\n\t\t\r\n\t\t\r\n\t\tdata.measurementsChanged(10, 10, 10);\r\n\t\t\r\n\t\tdata.measurementsChanged(20, 20, 20);\r\n\t\t\r\n\t}", "public void calculateVacationDays(){\n }", "public WeatherDayTest()\n {\n }", "public static void main(String[] args) {\n\r\n\t\thomeloan hl = new homeloan();\r\n\t\thomeloan h2 = new homeloan();\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tT07 dut = new T07();\n\t\tdut.calc();\n\t\tdut.calc();\n\t}", "public static void main(String[] args) {\n Lab_2 lab=new Lab_2();\n lab.displaydetails();\n lab.displayhomeaddress();\n lab.displayworkaddress();\n lab.displaylocaladdress(); \n }", "public static void main(String[] args) {\n day5_main V = new day5_main();\n\n }", "public void main() {\n /* Set the Windows look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Windows\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(FloorDetail.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(FloorDetail.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(FloorDetail.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(FloorDetail.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new FloorDetail(daily, lifetime).setVisible(true);\n }\n });\n }", "public static void main(String[] args) {\n\t\tStatic_Demo s=new Static_Demo();\r\n\t\ts.add();\r\n\t\t\r\n\t\tStatic_Demo.sub();\r\n\r\n\t}", "public void working()\n {\n \n \n }", "private RepeatWeekdays() {}", "public static void main(String[] args) {\n\t\r\n\tlogger.info(\"{}\" , addDay(new Date(),1));\r\n\t\r\n}", "public static void main(String[] args) {\n\t\tHR hr= new HR();\r\n\t\tConfirmedEmployee confirmedEmployee = new ConfirmedEmployee();\r\n\t\tconfirmedEmployee.netSalary();// To see how it can also work\r\n\t\tAccounts accounts = new Accounts();\r\n\t\t\r\n\t\taccounts.processSalary(confirmedEmployee);\r\n\t\tInterns interns= new Interns();\r\n\t\taccounts.processSalary(interns);\r\n\t\tContractEmployee contractEmployee=new ContractEmployee();\r\n\t\taccounts.processSalary(contractEmployee);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tnew D_DaedeokHotel().hotelStart();\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tDataType hihi = new DataType();\r\n\t\thihi.aww();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tAdminDepartment A = new AdminDepartment();//Object created to access AdminDepartment class\r\n\t\tHrDepartment H = new HrDepartment(); // Object created to access HrDepartment class\r\n\t\tTechDepartment T = new TechDepartment();//Object created to access TechDepartment class\r\n\t\t\r\n\t A.departmentName();\r\n\t A.getTodaysWork();\r\n\t A.getWorkDeadline();\r\n\t A.isTodayAHoliday();\r\n\t System.out.println(\"\");\r\n\t \r\n\t H.departmentName();\r\n\t H.getTodaysWork();\r\n\t H.getWorkDeadline();\r\n\t H.isTodayAHoliday();\r\n\t System.out.println(\"\");\r\n\t \r\n\t T.departmentName();\r\n\t T.getTodaysWork();\r\n\t T.getWorkDeadline();\r\n\t T.isTodayAHoliday();\r\n\r\n\r\n\r\n\t}", "private void getActivatedWeekdays() {\n }", "public static void main(String []args){\n Developer d1 = new Developer(24,\"Zayn\");\n d1.walk();\n }", "public static void main(String[] args) { //main method \n\t\t\n\t\tCal c = new Cal(); //creating an object of cal to access the members of the class\n\t\tc.setSalary(59280);\t\t//calling the method of class Cal using the created object and passing some parameter for that method\n\t\tSystem.out.println(\"Salary of \" +department+ \" is: \" ); //displaying the output on the console\n\t\tc.print(); //printing the salary which is present in cal class using the object created\n\t}", "public static void main(String[] args) {\n\t\tSchool obj=new School();\r\n\t\tobj.english();\r\n\t\tobj.maths();\r\n\t\tobj.physics();\r\n\t\tobj.science();\r\n\t\tobj.social();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tCustomerHelper customerhelp = new CustomerHelper();\n\t\tCustomer customer1 = new Customer( \"Scott\", \"Stevens\", \"7480 SW 19th St\", \"Ankeny\", \"IA\", \"50023\" ,\"5159751111\");\n\t\tcustomerhelp.insertCustomer(customer1);\n\t\t\n\t\tPetHelper pethelp = new PetHelper();\n\t\tPet pet1 = new Pet(\"Jim\", 40.0, 'Y', customer1);\n\t\tpethelp.insertPet(pet1);\n\t\t\n\t\tServicesHelper serviceshelp = new ServicesHelper();\n\t\tServices services1 = new Services(\"basic\");\n\t\t//serviceshelp.insertServices(services1);\n\t\t\n\t\tAppointmentHelper appointmenthelp = new AppointmentHelper();\n\t\t//Appointment appointment1 = new Appointment(LocalDate.of(2018, 4, 11), customer1, pet1, services1, LocalTime.of(12, 30));\n\t\t//appointmenthelp.insertAppointment(appointment1);\n\t\t\n\t}", "public static void main(String [] args)\r\n {\r\n //call the constructor\r\n Scheduler s= new Scheduler();\r\n\r\n //call the addShop method to load in all the coffeeshops\r\n s.addShop(args[0]); \r\n //call the addwarehouses method to load in all the warehouses\r\n s.addWarehouses(args[1]);\r\n //call the loadEdge method to create edges between thoes coffeeshops and warehouses\r\n s.loadEdge(); \r\n //do the simulation and print out the total distance traveled \r\n System.out.println(s.Simulate());\r\n\r\n }", "public void work() {\n\t}", "public void work() {\n\t}", "public static void main(String[] args) {\n \n RunProject r = new RunProject(); // creates new instance of RunProject class\n r.mainMenu(); //runs main menu method for new instance.(r)\n \n }", "public Forecastday() {\n }", "public static void main(String[] args) {\n\n\tOops31 obj1=new Oops31(); //obj1 reference variable for the class Oops31\n\t\n\t\n\tobj1.dispay(10, 20);\n\tobj1.dispay(20, 20);\n\tobj1.dispay(50, 20);\n\tobj1.dispay(60, 20);\n\t\n\t}", "public static void main(String []args)\r\n\t{\r\n\t\t\r\n\t\tAddingMachine myCalculator = new AddingMachine();\r\n\t\tmyCalculator.add (4); \r\n\t\tmyCalculator.subtract (2); \r\n\t\tmyCalculator.add(5);\r\n\t\tSystem.out.println(myCalculator.toString());\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\nStudent s=new Student();\ns.display();\n\t}", "Programming(){\n\t}", "public static void main(String[] args) {\n\n\t\tTeachingStaff obj= new TeachingStaff(\"rahul\");\n\t\tNonTeachingStaff obj1=new NonTeachingStaff(\"suren\");\n\t\t\n\t\tobj.calsal(20000);\n\t\t obj1.calsal(10000);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tcompany_4021.manager.ChiefMember c1 = new company_4021.manager.ChiefMember();\n\t\tc1.ChiefInfo();\n\t\tHeadManager h1 =new HeadManager();\n\t\th1.HeadInfo();\n\t\tStaffMember s1 = new StaffMember();\n\t\tSystem.out.println(s1.WeddingDate);\n\n\t}", "public static void main(String[] args) {\n\t\n\t\tint day=6 ;\n\t\t\n\t\t\t\tString weekDay;\n\t\t\n\t\t\t\tif ( day==1) {\n\t\t\t\t\tweekDay=\"Monday\";\n\t\t\t\t}else if(day==2) {\n\t\t\t\t\tweekDay=\"Tuesday\";\n\t\t\t\t}else if(day==3) {\n\t\t\t\t\tweekDay=\"Wednesday\";\n\t\t\t\t}else if(day==4) {\n\t\t\t\t\tweekDay=\"Thursday\";\n\t\t\t\t}else if(day==5) {\n\t\t\t\t\tweekDay=\"Friday\";\n\t\t\t\t}else if(day==6) {\n\t\t\t\t\tweekDay=\"Saturday\";\n\t\t\t\t}else if(day==7) {\n\t\t\t\t\tweekDay=\"Sunday\";\n\t\t\t\t}else {\n\t\t\t\t\t\tweekDay=\"invaid\";\n\t\t\t\t\t\n\t\t\t\t\t\t\t\tSystem.out.println(\"weekDay\");\n\t\t\t\t\t}\n\t\t\t\t// switch statement execute one statment from mutiple \n\t\t\t\t//condition a switch works\n\t\t\t\t//with byte, short,char, and string \n\t\t\n\t\t\t\tswitch(day){\n\t\t\t\tcase 1://day==1\n\t\t\t\t\tweekDay=\"Monday\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tweekDay=\"Tuesday\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tweekDay=\"Wedensday\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tweekDay=\"Thursday\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tweekDay=\"Friday\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tweekDay=\"Saturday\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7: \n\t\t\t\t\tweekDay=\"Sunday\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tweekDay=\"invlid\";\n\t\t\t\t\t\n\t\t\tSystem\n\t\t\t.out.println(weekDay);\n\t\t\t\t\t\t\t\n\t\t\t\t\n\t}\n\n}", "public static void main(String[] args) {\n\t\tRoom ru= null;\n\t\t\n\t\tpublic School(Room ru){\n\t\t\tthis.ru= ru;\n\t\t}\n\t\t\n School sc= new School();\n \n\t}", "public AAAStepUp()\n {\n display = Display.getDisplay(this);\n stepReciver=new StepReciver(this);\n deamonClient= new DeamonClient(this);\n watch=new Watcher(this);\n watch.notifyWatchertoStart();\n watch.notifyWatchertoStepupDeamon();\n \n\n\n startlist=new List(\"StepUp:\", List.IMPLICIT);\n startlist.append(\"Start\", null);\n startlist.append(\"Progress\", null);\n //$$ startlist.append(\"History\", null);\n \n\n\n\n stepview= new StepsView(this);\n proglistview= new ProgressListView(this);\n historyview=new HistoryView(this);\n profileview=new ProfileView(this);\n newgroupview= new newGroupView(this);\n dailyprogress= new DailyProgress (this);\n weeklyprogress= new WeekProgress(this);\n teamprogress= new TeamProgress(this);\n\n\n\n formRunning = new Form(\"Connecting to StepUp Database\");\n formRunning.append(new Gauge(\"Connecting\",false,Gauge.INDEFINITE,Gauge.CONTINUOUS_RUNNING));\n\ncreateCommands();\naddCommands();\n \n }", "public static void main(String[] args) {// we can create psvm method but cannot create objects in abstract class\n\t\tSchool.bonus();// as bonus method is static we can print it without create class name so we can use\n\t\t\t\t\t\t// with classname.mthdname hence it is accepted in abstract class\n\t\tSystem.out.println(\"i am from main method\");// we can write anything in main mthd it prints automatically without\n\t\t\t\t\t\t\t\t\t\t\t\t\t// creating obj\n\t}", "boolean isWorkingDay() {\n return true;\n }", "public static void main(String[] args) {\n MainIntrence mainintrence = new MainIntrence();\r\n\r\n\r\n\r\n }", "public static void main (String[] args)\n {\n ProductionWorker pw =\n new ProductionWorker(\"John Smith\", \"123-A\", \"11-15-2012\",\n ProductionWorker.DAY_SHIFT, 26.50);\n\n //Display the data\n System.out.println(\"Here's the first production worker. \");\n System.out.println(pw);\n\n //Create another ProductionWorker object and use the\n //set methods\n ProductionWorker pw2 = new ProductionWorker();\n pw2.setName(\"Jane Doe\");\n pw2.setEmployeeNumber(\"123-E\");\n pw2.setHireDate(\"12-12-2012\");\n pw2.setShift(ProductionWorker.NIGHT_SHIFT);\n pw2.setPayRate(28.50);\n\n //Display Data\n System.out.println(\"\\nHere's the next production worker. \");\n System.out.println(pw2);\n }", "public abstract void maintenanceSchedule() ;", "public static void main(String[] args) {\n SeptemberTwentyThree_02 s = new Student();\n s.jump();\n\n\n }", "public static void main(String[] args) {\n\t\tAdmin a = new Admin();\r\n\t\ta.getEmp1Details(2, 999l, \"amit\");\r\n\t\ta.getPerson1Details(22, 2023.3);\r\n\t\ta.getAdminDetails(30);\r\n\t\t//double d = a.calSal();\r\n\t\ta.calSal();\r\n\t\ta.show();\r\n\t}", "public ProgramWilmaa()\n\t{\n\t}", "public static void main(String args[])\n {\n ClassPathXmlApplicationContext context = new\n ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\n // retrieve bean from spring container\n Coach theCoach = context.getBean(\"myCoach\",Coach.class);\n\n// call methods on the bean\n System.out.println(theCoach.getDailyWorkout());\n\n// lest call our new method for fortunes\n System.out.println(theCoach.getDailyFortune());\n\n// close the context\n context.close();\n\n\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Welcome to Employee Wage Computation Program\");\n\t\tEmployee obj1 = new Employee(20,\"Dmart\");\n\t\tEmployee obj = new Employee();\n\t\tobj.isFullTimePresent = 1;\n\t\tobj.wagePerHr = 20;\n\t\tobj.totalSalary = 0;\n\t\tobj.wagesTillCondition();\n\t\tSystem.out.print(\"Total Salary : \");\n\t\tSystem.out.println(obj.totalSalary);\n\t\tSystem.out.println(obj.totalHrs);\n\t\tSystem.out.println(obj.totalDays);\n\t}", "public static void main(String[] args) {\n\n LocalDate today = LocalDate.now();\n System.out.println(\"today = \" + today);\n\n LocalDate tomorrow = today.plus(1, ChronoUnit.DAYS);\n System.out.println(\"tomorrow = \" + tomorrow );\n\n LocalDate yesterday = tomorrow.minusDays(2);\n System.out.println(\"yesterday = \" + yesterday);\n\n LocalDate independenceDay = LocalDate.of(2019, Month.DECEMBER, 11);\n DayOfWeek dayOfWeek = independenceDay.getDayOfWeek();\n System.out.println(\"dayOfWeek = \" + dayOfWeek);\n\n\n\n\n }", "@Override\n\tpublic void work() {\n\t\t// TODO Auto-generated method stub\n\t\tSystem.out.println(\"We work in TestYantra software solution\");\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tWorker w1=new DailyWorker(\"SUs\",40);\r\n\t\tWorker w2=new DailyWorker(\"Giri\",50);\r\n\t\tWorker w3=new SalariedWorker(\"Chap\",20);\r\n\t\tWorker w4=new SalariedWorker(\"kip\",30);\r\n\t\tSystem.out.println(w1.Pay(4));\r\n\t\tSystem.out.println(w2.Pay(5));\r\n\t\tSystem.out.println(w3.Pay(20));\r\n\t\tSystem.out.println(w4.Pay(42));\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSwotTaskDAOInterface swotTaskDAO = new SwotTaskDAO();\n//\t\tSwotActorDAOInterface swotActorDAO = new SwotActorDAO();\n//\t\t\n//\t\tSwotTask swotTask = swotTaskDAO.getSwotTaskByID(1);\n//\t\tList<SwotActor> swotActorList = swotTaskDAO.getAllTaskActors(swotTask);\n//\t\t\n//\t\tfor(SwotActor swotActor:swotActorList) {\n//\t\t\tSwotActorDAOInterface swotActorDAO = new SwotActorDAO();\n//\t\t\tList<SwotActorProperty> actorPropertyList = swotActorDAO.getAllActorPropertys(swotActor);\t\n//\t\t\tfor(SwotActorProperty actorProperty:actorPropertyList) {\t\t//删除属性\n//\t\t\t\tSwotPropertyDAOInterface swotPropertyDAO = new SwotPropertyDAO();\n//\t\t\t\tswotPropertyDAO.deletePropertyByID(actorProperty.getPropertyID());\n//\t\t\t}\t\n//\t\t\tswotActorDAO.deleteActorByID(swotActor.getActorID());\n//\t\t}\n//\t\tswotTaskDAO.deleteTaskByID(1);\n\t\t\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.set(2023, \t\t//年份自动多余,不知缘由\n \t\t1, 2, 0, 0, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n \n\t\tSwotTask swotTask = new SwotTask();\n\t\tswotTask.setTaskName(\"测试用例3\");\n\t\tswotTask.setArgueTime(calendar.getTime());\t\n\t\tswotTaskDAO.addTask(swotTask);\n//\n//\t\tSwotActor swotActor = new SwotActor();\n//\t\tswotActor.setActorName(\"参与者0\");\n//\t\tswotActorDAO.addActor(swotTask, swotActor);\n//\t\t\n//\t\tSwotActor swotActor1 = new SwotActor();\n//\t\tswotActor1.setActorName(\"参与者1\");\n//\t\tswotActorDAO.addActor(swotTask, swotActor1);\n\t\t\n\t\t\n//\t\tList<SwotTask> swotTaskssList = swotActorDAO.getSwotTaskByActorName(\"2\");\n//\t\tfor(SwotTask lists:swotTaskssList) {\n//\t\t\tSystem.out.println(lists.toString());\n//\t\t}\n\t\t\n\t//\tList<SwotActor> swotTasksList = swotActorDAO.getSwotActorByActorName(\"2\");\n//\t\tList<SwotTask> swotTaskList = swotTaskDAO.getAllSwotTasks();\n//\t\tfor(SwotTask lists:swotTaskList) {\n//\t\t\tSystem.out.println(lists.toString());\n//\t\t}\n//\t\t\n//\t\tSwotTask swotTask = swotTaskDAO.getSwotTaskByID(1);\n//\t\tSwotActor swotActor = new SwotActor();\n//\t\tswotActor.setActorName(\"22222\");\n//\t\tswotActorDAO.addActor(swotTask, swotActor);\n\t\t\n\n\t}", "public void main(){\n }", "public static void main(String[] args) {\n\t\tint day=Integer.parseInt(args[0]);\n\t\tint month=Integer.parseInt(args[1]);\n\t\tint year=Integer.parseInt(args[2]);\n\t\tint arr[]=dayOfWeek(day, month, year);\n\t\tSystem.out.print(\"It is : \"+arr[0]+\" : \");\n\t\tswitch(arr[0]) {\n\t\tcase 1: System.out.println(\"January\");break;\n\t\tcase 2: System.out.println(\"February\");break;\n\t\tcase 3: System.out.println(\"March\");break;\n\t\tcase 4: System.out.println(\"April\");break;\n\t\tcase 5: System.out.println(\"May\");break;\n\t\tcase 6: System.out.println(\"June\");break;\n\t\tcase 7: System.out.println(\"July\");break;\n\t\tcase 8: System.out.println(\"August\");break;\n\t\tcase 9: System.out.println(\"September\");break;\n\t\tcase 10: System.out.println(\"October\");break;\n\t\tcase 11: System.out.println(\"November\");break;\n\t\tcase 12: System.out.println(\"December\");break;\n\t\tdefault:System.out.println(\"Error In Month\");\n\t\t}\n\t\tSystem.out.print(\"It is : \"+arr[1]+\" : \");\n\t\tswitch(arr[1]) {\n\t\tcase 0: System.out.println(\"Sunday\");break;\n\t\tcase 1: System.out.println(\"Monday\");break;\n\t\tcase 2: System.out.println(\"Tuesday\");break;\n\t\tcase 3: System.out.println(\"Wednesday\");break;\n\t\tcase 4: System.out.println(\"Thursday\");break;\n\t\tcase 5: System.out.println(\"Friday\");break;\n\t\tcase 6: System.out.println(\"Saturday\");break;\n\t\tdefault:System.out.println(\"Error In Month\");\n\t\t}\n\t}", "public static void main(String[] args) \r\n {\r\n SwingUtilities.invokeLater(() -> new ITC_tuition_booking_system().Startup() );\r\n }", "public static void main(String[] args) {\n\n serialization.deserializeAll();\n createDemoData();\n\n // Java FX -> invoke start method\n new Thread(() -> Application.launch(ATMFrame.class)).start();\n\n\n for (Account a : accountManager.account_map.values()) {\n if (a instanceof GIC) {\n ((GIC) a).newDay();\n }\n if (a instanceof Saving) {\n ((Saving) a).newDay();\n }\n if (a instanceof Youth) {\n ((Youth) a).newDay();\n }\n }\n }", "public static void main()\n\t{\n\t}", "public static void main(String args[]) {\n com.company.Creator creator = new com.company.Creator();\n creator.createWorkOrders();\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tLaborStart laborStart = new LaborStart(\"Story Teller\", \"New Eden Labor\", \"Amerika\", \"Nicht bekannt\", 2);\r\n\t\tlaborStart.addWindowListener(\r\n\t\t\t\t\r\n\t\t\t\tnew WindowAdapter() {\r\n\t\t\t\t\tpublic void windowClosing(WindowEvent e) {\r\n\t\t\t\t\t\tLaborStart.exit();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\r\n\t\tlaborStart.setSize (600, 600);\r\n\t\tlaborStart.setLocationRelativeTo(null);\r\n\t\tlaborStart.setResizable(false);\r\n\t\tlaborStart.setLayout (null);\r\n\t\tlaborStart.setVisible (true);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tnew ThisSuperDemo3().calculate();\r\n\t}", "public static void main (String args[]){\r\n\t\tCalculator s = new Calculator();\r\n\t\ts.launchFrame();\r\n\t}", "private static void fines() {\n\t\tnew PayFineUI(new payFineControl()).run(); // method name changes RuN() to run() , PayFineControl to payFineControl()\r\n\t}", "public static void main(String[] args) {\nBasePotencia pot=new BasePotencia();\r\npot.calculaPot();\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"현재 기준 월요일 날짜 : \" + getCurMonday());\r\n\t\t\r\n\t\tSystem.out.println(\"현재 기준 일요일 날짜 : \" + getCurSunday());\r\n\t\t\r\n\t\tSystem.out.println(\"현재 날짜 기준 주차 : \" + getWeek());\r\n\t\t\r\n\t\tSystem.out.println(\"설정한 날의 해당월의 마지막날짜 : \" + lastDayOfMonth(\"20190924\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString dateTime = \"\";\r\n\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tDate d = new Date();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMM\");\r\n\r\n\t\ttry {\r\n\t\t\tString today = \"\"; // 오늘\r\n\t\t\tDate targetDay = null; // Biz 로그 대상일(하루 전일자)\r\n\t\t\ttoday = sdf.format(d);\r\n\t\t\ttargetDay = sdf.parse(today);\r\n\t\t\tcal.setTime(targetDay);\r\n\t\t\tcal.add(Calendar.DAY_OF_MONTH, -2);\r\n\t\t\tdateTime = sdf.format(cal.getTime());\r\n\t\t} catch (ParseException pe) {\r\n\t\t\tSystem.out.println(pe);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\tSystem.out.println(dateTime);\r\n\t\t\r\n\t}", "public static void main(String[] args){\n\t\tOuter o = new Outer();\n\t\to.method();\n\t}", "public static void main(String[] args) {\n MyClass m;\n m= new MyClass();\nm.display();\n\t}", "public StartUp(){\r\n \r\n }", "private ThoseMain()\n {\n // Do nothing\n }", "public static void exercise10() {\n }", "@Test\r\n\tpublic void mainTest(){\r\n\t\tMain m = new Main();\r\n\t\tm.main(null);\r\n\t}", "public HMS_Appointments() {\n initComponents();\n FillDoctorName();\n appointment_table();\n }", "public static void main(String[] args) {\n\t\tcalc obj= new calc();\n\t\tobj.add(9, 8);\n\t\tobj.add(10, 20, 30);\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\n\t\t Calculator myCalculator = new Calculator();\n\t\t\n\t\t System.out.println(myCalculator.add(5, 7));\n\t\t \n\t\t System.out.println(myCalculator.subtract(45, 11));\n\t\t \n\t\t \n\t}", "public void addWorkingDay(Date date, List<String> workingTimes, String notice) {\n\t\t\tWorkingDay workingDay = getWorkingDay(date);\r\n\t\t\tif (workingDay == null) {\r\n\t\t\t\tworkingDay = new WorkingDay();\r\n\t\t\t\tworkingDays.add(workingDay);\r\n\t\t\t}\r\n\t\t\tworkingDay.setDate(date);\r\n\t\t\tworkingDay.setWorkingTimes(workingTimes);\t\r\n\t}", "public static void main(String[] args) {demo6();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint i=10;//local variable\n\t\tSystem.out.println(i);\n\t\tDay3LocalvsGlobal obj= new Day3LocalvsGlobal();\n\t\t//copy of non static method and variable are given to object new Day3LocalvsGlobal() \n\t\tSystem.out.println(obj.name);\n\t\tSystem.out.println(obj.age);\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\taaa(); //시작하는 메소드를 효출(\r\n\r\n\t}", "public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }", "public static void main(String[] args) {\n// new Problem_10().print();\n Problem_10.print();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tDate date = new Date();\r\n\t\t\r\n\t\tLocalDate diaHoy = LocalDate.now();\r\n\t\tLocalDate diaFin = diaHoy.plusDays(15);\r\n\t\t\r\n\t\tCursoVacacional curso1 = new CursoVacacional();\r\n\t\tcurso1.setNombre(\"Volley Principiantes\");\r\n\t\tcurso1.setFechaInicio(diaHoy);\r\n\t\tcurso1.setFechaFin(diaFin);\r\n\t\t\r\n\t\tSystem.out.println(\"Nombre: \" +curso1.getNombre());\r\n\t\tSystem.out.println(\"F I: \" + curso1.getFechaInicio());\r\n\t\tSystem.out.println(\"F F: \" + curso1.getFechaFin());\r\n\t\t\r\n\t\tLocalDate diaHoy2 = LocalDate.now();\r\n\t\tLocalDate diaQueInicio = diaHoy2.minusDays(2);\r\n\t\tLocalDate diaQueFinaliza = diaQueInicio.plusDays(20);\r\n\t\t\r\n\t\tCursoVacacional curso2 = new CursoVacacional();\r\n\t\tcurso2.setNombre(\"Volley Principiantes\");\r\n\t\tcurso2.setFechaInicio(diaHoy);\r\n\t\tcurso2.setFechaFin(diaFin);\r\n\t\t\r\n\t\tSystem.out.println(\"Nombre: \" +curso2.getNombre());\r\n\t\tSystem.out.println(\"F I: \" + curso2.getFechaInicio());\r\n\t\tSystem.out.println(\"F F: \" + curso2.getFechaFin());\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n DepartmentServiceimpl deptservice=new DepartmentServiceimpl();\n Department deptobj=new Department();\n \n deptobj.setDepartmentNumber(22);\n deptobj.setDepartmentName(\"com\");\n deptobj.setDepatmentLocation(\"pune\");\ndeptservice.createDepartmentService(deptobj);\n\n}" ]
[ "0.64324075", "0.62268865", "0.61989194", "0.6171247", "0.6169126", "0.6165336", "0.6080239", "0.60196406", "0.60159546", "0.59797144", "0.59454143", "0.59396374", "0.5931076", "0.59097725", "0.59005904", "0.5899089", "0.5881059", "0.5846416", "0.58209854", "0.5813453", "0.5802125", "0.5799536", "0.5766529", "0.575927", "0.5751532", "0.5743891", "0.5723556", "0.5710148", "0.57091874", "0.57074594", "0.5692735", "0.5689334", "0.56722456", "0.5670592", "0.567", "0.56662047", "0.565871", "0.5649927", "0.56464183", "0.5646371", "0.5646168", "0.5642294", "0.5641293", "0.563632", "0.5632813", "0.5632813", "0.56307375", "0.56302917", "0.5628211", "0.562616", "0.56259495", "0.56252426", "0.5623199", "0.56225765", "0.561511", "0.56130344", "0.5609529", "0.56052727", "0.56034225", "0.5603191", "0.5602239", "0.56003976", "0.559927", "0.55984473", "0.5597393", "0.5591861", "0.5583977", "0.5583679", "0.5578486", "0.5576018", "0.5561073", "0.5551996", "0.5548444", "0.55469036", "0.55410254", "0.55403143", "0.55323887", "0.55207276", "0.55202836", "0.5519613", "0.5519081", "0.55184954", "0.5517821", "0.55166197", "0.551231", "0.5509347", "0.55090773", "0.5506145", "0.55048347", "0.55046016", "0.55007017", "0.54992515", "0.5498995", "0.54966825", "0.5496617", "0.5494592", "0.54917324", "0.5491489", "0.5485363", "0.5484426" ]
0.5692316
31
ManageLocations m_locations= new ManageLocations(); m_locations.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new ManageLocations(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getLocation(){\n }", "public static void main(String[] args) {\n AccessManagement accessManagement = new AccessManagement();\n //System.out.print(location1.direction);\n }", "public MyLocation() {}", "public static void main(String[] args) {\n\nCeo c=new Manager();\nc.manage();\nc.invest();\nManager n=new Manager();\nn.employee();\n//ManagingDirector md=new Manager();\n\n\n//Manager m=new Manager();\n//m.manage();\n//m.employee();\n \n }", "public Location() {\r\n \r\n }", "private void getLocation() {\n\n }", "public static void main(String[] args) {\n MyClass m;\n m= new MyClass();\nm.display();\n\t}", "public static void main(String[] args) {\n Lab_2 lab=new Lab_2();\n lab.displaydetails();\n lab.displayhomeaddress();\n lab.displayworkaddress();\n lab.displaylocaladdress(); \n }", "public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);\n\n //new MakeAppoinment().setVisible(true);\n //upldMedRec.setVisible(true);\n //makeAppt.setVisible(true);\n //showScreen1();\n //jButton2ActionPerformed(java.awt.event.ActionEvent evt)\n \n //makeAppt.jButton2ActionPerformed();\n\n \n \n }", "private Main() {\n\n super();\n }", "public Location() {\n\t}", "public Location() {\n }", "public static void main(String[] args) {\n\r\n House myHouse = new House(new Room(\"myBedroom\", 4, 2, false), 43);\r\n myHouse.wallsDetails();\r\n\r\n }", "public YelpTool() {\n initComponents();\n }", "private Main ()\n {\n super ();\n }", "public main() {\n initComponents();\n \n }", "public void getLocationInfo() {\n startLocationService();\n }", "public Main()\r\n\t{\r\n\t\tload=new Load();\r\n\t\tmyMap=new MyMap();\r\n\t\tload.myMap=myMap;\r\n\t}", "@Override\n protected void initLocation() {\n }", "public static void main(){\n\t}", "public static void main(String[] args) {\nDesktop desk=new Desktop();\r\ndesk.hardWareResources();\r\ndesk.softwareWareResources();\r\ndesk.deskTopModel();\r\n\r\n\t\t\r\n\t\t\r\n\t}", "public MainEntryPoint() {\r\n\r\n }", "@Test\n public void testLocateManager() {\n System.out.println(\"locateManager\");\n int x = 0;\n int y = 0; \n //instance.locateManager(x, y);\n \n }", "public EntryPoint()\n { \n \tpushScreen(new HelperScreen());\n }", "private LocationService() {\n }", "@Test\r\n\tpublic void mainTest(){\r\n\t\tMain m = new Main();\r\n\t\tm.main(null);\r\n\t}", "public AdminINS() {\n initComponents();\n setLocationRelativeTo(null);\n getdata();\n }", "public Main() {\r\n\t}", "public LocationService() {\r\n\t\tSettings settings = Settings.getInstance();\r\n\t\tthis.location = settings.getLocation();\r\n\t\tthis.ebAddress = settings.getEbAddress();\r\n\t\tthis.ebPort = settings.getEbPort();\r\n\t\tloggedIn = false;\r\n\t\tobservers = new ArrayList<IObserver>();\r\n\t\tdbAdapter = InformationStorageFactory.getStorageAdapter();\r\n\t}", "public Main() {\n initComponents();\n this.setLocationRelativeTo(null);\n \n \n }", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public MainEntry() {\n initComponents();\n }", "public Main() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n\r\n\t\r\n\t\r\n\tplace();\r\n\t}", "public static void main(String[] args) {\n MainIntrence mainintrence = new MainIntrence();\r\n\r\n\r\n\r\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public SeatLocation() {\n }", "public SystemAdminWorkArea() {\n initComponents();\n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "public MemberMain() {\n initComponents();\n }", "public addlocality() {\n initComponents();\n }", "public static void main(String[] args) {\nStudent s=new Student();\ns.display();\n\t}", "private HelperLocation() {}", "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}", "public static void main(String[] args){\n myCities();\n }", "public Main() {\n \n \n }", "public static void main(String []args){\n Developer d1 = new Developer(24,\"Zayn\");\n d1.walk();\n }", "public static void main()\n\t{\n\t}", "public static void main(String[] args) {\n Sal s=new Sal();\n s.getinfo();\n s.Addsal();\n s.Addwork();\n s.display();\n\t}", "public ProgramWilmaa()\n\t{\n\t}", "public Main() {\r\n }", "public Main() {\r\n }", "public LocationData()\n {\n }", "public static void main(String [] args){\n SmartPhone sm = new SmartPhone();\n sm.run();\n // System.out.println(sm.run());\n }", "private UnitManager() {\r\n\t\tUM = new UnitMap(); // create an object\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"Access from inside Mexico class \");\n\t\t\n\t\t//System.out.println(us2.mainState);\n\t\t//System.out.println(us2.school); error because it is protected\n\t\t//System.out.println(us2.capitalCity);error because it is private\n\t\t\n\t\t//when USA is default \n\t\t//i can not access USA class\n\t\t//USA us3=new USA();\n\t\t// System.out.println(us3.mainState);\n\t\t\n\t\t\n\t\tMySonMath son=new MySonMath();\n\t\tson.add1();\n\t\t\n\t\t\n\t}", "private ThoseMain()\n {\n // Do nothing\n }", "public static void main(String[] args) {\nLibraryServis servise = new CityLibraryService();\r\nCatalog bookCatalog = servise.getMainCatalog();\r\nviewCatalogInfo(bookCatalog);\r\n\r\n\t}", "public MainEntry() {\n\t\tthis.taskController = new Controller();\n\t}", "public void main(){\n }", "public LocalAppLauncher() {\n }", "public ProductLocation() {\n }", "public Main() {\n // Required empty public constructor\n }", "public void locate()\n\t{\n\t\tlocationClient = new LocationClient(Main.activity.getApplicationContext()); // 实例化LocationClient类\n\t\t\t\t\n\t\tlocationClient.registerLocationListener(myListener); // 注册监听函数\n\t\tthis.setLocationOption();\t//设置定位参数\n\t\tlocationClient.start(); // 开始定位\n\t\tlocationClient.requestLocation();\n\t}", "public Administrator() {\n // no-agrs constructor (ham dung khong tham so)\n }", "public static void main(String[] args) {\nmanager xx=new manager(\"sarath\",34,\"9895639874\",\"eloor\",30000,\"BPO\");\r\nemployee xx1=new employee(\"jomon\",24,\"9899999999\",\"eloor\",50000,\"testing\");\r\n\r\n\t}", "public StartUp(){\r\n \r\n }", "public Hotel_system2() {\n initComponents();\n }", "public static void main(String[] args) {\n\t\tAdmin a = new Admin();\r\n\t\ta.getEmp1Details(2, 999l, \"amit\");\r\n\t\ta.getPerson1Details(22, 2023.3);\r\n\t\ta.getAdminDetails(30);\r\n\t\t//double d = a.calSal();\r\n\t\ta.calSal();\r\n\t\ta.show();\r\n\t}", "public CSplitLocation(){\n\t\t// nothing\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSon sRef = new Son();\n\t\tsRef.fname = \"Harry\";\n\t\tsRef.showDetails();\n\t\t\n\t\tSon.homeAddress = \"Redwood Shores\";\n\t\tSon.showHomeDetails();\n\n\t}", "public Admin_MainPage() {\n initComponents();\n }", "private Main() {\n }", "private static void setupLocations() {\n\t\tcatanWorld = Bukkit.createWorld(new WorldCreator(\"catan\"));\n\t\tspawnWorld = Bukkit.createWorld(new WorldCreator(\"world\"));\n\t\tgameLobby = new Location(catanWorld, -84, 239, -647);\n\t\tgameSpawn = new Location(catanWorld, -83, 192, -643);\n\t\thubSpawn = new Location(spawnWorld, 8, 20, 8);\n\t\twaitingRoom = new Location(catanWorld, -159, 160, -344);\n\t}", "public MyLocationsFragment() {\n }", "public Main() {\n }", "public Main() {\n }", "public tool() {\n initComponents();\n }", "public ASLocation()\n\t{\n\t\tsuper() ;\n\t\tprepare() ;\n\t}", "public static void main(String[] args) {\n\t\tinit();\n\t\tdraw();\n\t\tnew LandMine();\n\t}", "public Program7()\n { \n _tc = new TravelingCreature( 200, 200 );\n }", "public static void main(String[] args){\n Car myCar = new Car();\n myCar.car_human();\n myCar.car_color(); \n }", "private Main() {}", "public static void main(Demo args[])\n\t{\n\t\tEmployee1 employee=new Manager();\n\t\temployee.display();\n\t}", "public static void main ( String[] args ) {\n PhoneBook myApp = new PhoneBook(); \r\n }", "public weatherApp1() {\n initComponents();\n }", "public Main() {\n initComponents();\n makeDirLookup();\n ta.setEditable(false);\n }", "public static void main(String[] args) throws MyException {\n\n PessoaView2 tela = new PessoaView2();\n tela.setVisible(true);\n tela.setLocationRelativeTo(null);\n \n// PessoaDAO pdao = new PessoaDAO();\n// pdao.Salvar(new PessoaVO(1,\"hueberto1\", 32122));\n \n \n }", "private GuidoLocationListener() {}", "private RestaurantManager() {\n }", "public Main() {\n }", "public static void main(String[] args) {\n People people0 = new People(\"Albert\", \"Einstein\", true);\n //People people1 = new People(\"Marie\",\"Curie\", false);\n ViewPeople view1 = new ViewPeople();\n\n ControlPeaple guiControl = new ControlPeaple(people0,view1);\n guiControl.startView();\n\n //System.out.println(people0);\n //System.out.println(people1);\n }", "public Ventana_Central() {\n initComponents();\n setup();\n }", "public ManageLocationJPanel(JPanel userProcessContainer, LocationDirectory locationDirectory) {\n initComponents();\n this.userProcessContainer=userProcessContainer;\n this.locationDirectory=locationDirectory;\n populateLocationTable();\n }", "public Location mainSpawn(){\r\n\t\treturn mainSpawn;\r\n\t}", "public MapManager() {\n myList = null;\n scrabbleList = null;\n }", "@Override\n protected void createLocationCLI() {\n /*The rooms in the hallway01 location are created---------------------*/\n \n /*Hallway-------------------------------------------------------------*/\n Room hallway = new Room(\"Hallway 01\", \"This hallway connects the Personal, Laser and Net\");\n super.addRoom(hallway);\n }" ]
[ "0.6376541", "0.63727856", "0.63642025", "0.6320977", "0.62862515", "0.62776315", "0.622821", "0.6218433", "0.61355275", "0.60879195", "0.60710496", "0.60601294", "0.5980754", "0.59795386", "0.59729725", "0.5945925", "0.5944389", "0.59385556", "0.59357363", "0.592614", "0.5912377", "0.5905072", "0.5890813", "0.58828527", "0.58785367", "0.58750945", "0.5869789", "0.5866352", "0.5864925", "0.5864081", "0.58612037", "0.585227", "0.5834784", "0.5828738", "0.5811326", "0.58085686", "0.58085686", "0.58085686", "0.58085686", "0.58085686", "0.57967573", "0.5791508", "0.5784449", "0.578394", "0.5782897", "0.57822394", "0.57797104", "0.577123", "0.5770885", "0.57674885", "0.576344", "0.5763388", "0.5760076", "0.57526416", "0.5743092", "0.5743092", "0.574125", "0.57362646", "0.5736046", "0.57355034", "0.5719684", "0.5717861", "0.5711571", "0.5709059", "0.5703891", "0.56958926", "0.56952375", "0.5686454", "0.5683168", "0.56800956", "0.56780934", "0.56763744", "0.56734437", "0.56705743", "0.564916", "0.5648341", "0.56476223", "0.56462663", "0.56459", "0.56452775", "0.56452775", "0.5644919", "0.5643109", "0.5638583", "0.56351537", "0.5631288", "0.56260425", "0.5623775", "0.56192845", "0.56189305", "0.5614015", "0.5610928", "0.5610767", "0.56081766", "0.5600628", "0.5591879", "0.5587766", "0.55846137", "0.55786943", "0.5576571", "0.5574147" ]
0.0
-1
Statistics stat= new Statistics (); stat.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Statistics(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void statistics();", "public Statistics() {}", "public Statistics() {\n }", "public static void showStatistics(){\n\n }", "public SmallStatistic() {\n\n }", "static void jstat() {\n\n }", "void printStats();", "public StStatutesub() {\n }", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "public static void main(String[] args) {\n StatCalc myStatCalc = new StatCalc();\n // Array of required numbers\n int array[] = {5,7,12,23,3,2,8,14,10,5,9,13};\n\n // Enter numbers to perform statistics on\n for(int i = 0; i < array.length;i++) {\n myStatCalc.enter(array[i]);\n }\n // Print required Results\n TextIO.putln(\"Count: \" + myStatCalc.getCount());\n TextIO.putln(\"Mean: \" + myStatCalc.getMean());\n TextIO.putln(\"Standard Deviation: \" + myStatCalc.getStandardDeviation());\n }", "public BaseStatistics() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n\t\tstudet st=new studet();\r\n score sc=new score();\r\n st.c=80;\r\n st.html=85;\r\n st.java=90;\r\n System.out.println(\"学生平局成绩是\"+ sc.getAvg(st));//实例化的对象来调用它的方法,最后把参数传给他\t\t\r\n\t}", "public static void main(String[] args) {\n PercolationStats ps = new PercolationStats(200,100);\r\n System.out.println(ps.mean());\r\n System.out.println(ps.stddev());\r\n System.out.println(ps.confidenceLo());\r\n System.out.println(ps.confidenceHi());\r\n }", "public static void main(String[] args) {\n\t\tAggregateSummaryStatistics aggregate = new AggregateSummaryStatistics();\n\t\tSummaryStatistics setOneStats = aggregate.createContributingStatistics();\n\t\tSummaryStatistics setTwoStats = aggregate.createContributingStatistics();\n\n\t\t \n\t\tfor( int i = 1; i <= 10; i++) {\n\t\t\tsetOneStats.addValue(i);\n\t\t\tsetTwoStats.addValue(i);\n\t\t}\n\t\t\n\t\t// Full sample data is reported by the aggregate\n\t\tdouble totalSampleSum = aggregate.getSum();\n\t\tSystem.out.println(\"totalSampleSum=\"+totalSampleSum);\n\t\tSystem.out.println(\"Count=\"+aggregate.getN());\n\t\tSystem.out.println(\"mean=\"+aggregate.getMean());\n\t\tSystem.out.println(\"std=\"+aggregate.getStandardDeviation());\n\t\t\n\t}", "public FGDistanceStats()\r\n {\r\n \r\n }", "Stats<Double> stats();", "void startStatisticsMonitor();", "public FrequencyAnalysis()\n {\n }", "private static void initStatistics(Player p){\n }", "public static void main(String[] args) {\n\t\tResults smith;\r\n\t\tsmith = new Results();\r\n\t\tsmith.Physics = 100;\r\n\t\tsmith.Chemistry = 50;\r\n\t\tsmith.Mathematics = 100;\r\n\t\tsmith.ShowResults();\r\n\t}", "public static void main(String[] args) {\n PercolationStats percolationStats = new PercolationStats(2, 10000);\n System.out.println(percolationStats.mean());\n System.out.println(percolationStats.stddev());\n }", "public static void main(){\n\t}", "public static void main(String[] args) {\nStudent s=new Student();\ns.display();\n\t}", "public static void main(String[] args) {\n PercolationStats test = new PercolationStats(Integer.parseInt(args[0]), Integer.parseInt(args[1]));\n StdOut.print(\"mean: \" + test.mean() + \" \");\n StdOut.print(\"stddev: \" + test.stddev() + \" \");\n StdOut.print(\"confidenceLow: \" + test.confidenceLow() + \" \");\n StdOut.print(\"confidenceHigh: \" + test.confidenceHigh() + \"\\n\");\n }", "public static void main(String[] args) {\n int n = Integer.parseInt(args[0]);\n int t = Integer.parseInt(args[1]);\n\n PercolationStats s = new PercolationStats(n,t);\n StdOut.println(\"mean = \"+ s.mean());\n StdOut.println(\"stddev = \"+ s.stddev());\n StdOut.println(\"95% confidence interval = [\"+ s.confidenceLo()\n + \", \" + s.confidenceHi() + \"]\");\n }", "public static void main(String[] args){\n int n = Integer.parseInt(args[0]);\n int trials = Integer.parseInt(args[1]);\n PercolationStats ps = new PercolationStats(n, trials);\n\n System.out.println(\"mean\\t\\t\\t\\t\\t= \" + ps.mean());\n System.out.println(\"stddev\\t\\t\\t\\t\\t= \" + ps.stddev());\n System.out.println(\"95% confidence interval = \" + ps.confidenceLo() + \", \" + ps.confidenceHi());\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "public void main(){\n }", "public static void main(String[] args) {\n\t\tSIngleD obj=new SIngleD();\r\n\t\tobj.rollno();\r\n\t\tobj.total();\r\n\t\tobj.average();\r\n\t\tobj.percentage();\r\n\t\tobj.result();\r\n\t}", "public Stat() {\n }", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public Main() {\r\n }", "public Main() {\r\n }", "public Stat()\n {\n // empty constructor\n }", "public static void main(String[] args) {\n\t\tPercolationStats pstat = new PercolationStats(Integer.parseInt(args[0]), Integer.parseInt(args[1]));\n\t\tSystem.out.println(\"mean = \" + pstat.mean());\n\t\tSystem.out.println(\"stddev = \" + pstat.stddev());\n\t\tSystem.out.println(\"95% confidence interval = [\" + pstat.confidenceLo() + \", \" + pstat.confidenceHi() + \"]\");\n\t}", "int main() \n{\n clas s;\n s.cal();\n return 0;\n}", "public Main() {}", "public Main() {\r\n\t}", "void clearStatistics();", "public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}", "public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }", "public static void main(String[] args) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\");\n System.setProperty(\"current.date\", dateFormat.format(new Date()));\n // set path\n if (args.length > 1) path = args[1];\n // лучше называть каталог с результатами осмысленно :)\n File cfgFile = new File(args[0]);\n PropertyConfigurator.configure(cfgFile.getAbsolutePath());\n \n File[] files = getFilesInDir(path);\n for (File file : files) {\n // среднее считать - за сколько поколений в среднем достигается максимальнй фитнес - проще в расчетах писать и пихать в файл\n try {\n read(file.getAbsolutePath());\n System.out.println(\"Stats: \" + stats.size());\n }catch (IOException ex) { log.info(ex); }\n }\n \n System.out.println(\"bestFitness: \" + bestFitness);\n System.out.println(\"bestFile : \" + bestFile);\n System.out.println(\"bestUrgent : \" + bestUrgent);\n \n for (Integer id : stats.keySet()) {\n Stat stat = stats.get(id);\n //System.out.println(stat);\n //System.out.println(id + \". SumFit: \" + stat.sumFit() + \". SumUrg: \" + stat.sumUrgent());\n //System.out.println(id + \". AvgFit: \" + stat.avgFit() + \". avgUrg: \" + stat.avgUrgent());\n log.info(stat.avgFit() + \" \" + stat.avgUrgent() + \" \" + stat.id());\n }\n }", "public Main() {\n }", "public Main() {\n }", "public static void main(final String[] args) {\n new SdfStatistics().mainExit(args);\n }", "public static void main(String[] args) {\nMain ma=new Main();\r\nma.minus();\r\n\t}", "public static void main(String[] args) {\n Sal s=new Sal();\n s.getinfo();\n s.Addsal();\n s.Addwork();\n s.display();\n\t}", "public static void main(String[] args) {\n\t\tPerson John = new Person(\"John\",1957);\r\n\t\tJohn.display();\r\n\t\tJohn.Senority();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main()\n\t{\n\t}", "public static void main (String args[]){\n SplData();\n }", "public StatisticsServlet() {\n\t\tsuper();\n\t}", "public Main() {\n }", "public abstract void showStat();", "private Main ()\n {\n super ();\n }", "public StatisticsWindow() {\n initComponents();\n }", "void statsReset();", "public void Main(){\n }", "public Main() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n\tnew Test().stdInfo(12, \"shubham\");\n\n\t}", "BucketStatistics() {\n\t\tthis(\"Historgram\");\n\t}", "public static void main(String[] args) {\n if (args.length != 2) {\n throw new IllegalArgumentException(\n \"Must have two arguments first number of items (N) and second number of trials (T)\");\n }\n\n int size;\n int trials;\n try {\n size = Integer.parseInt(args[0]);\n trials = Integer.parseInt(args[1]);\n } catch (NumberFormatException exception) {\n throw new IllegalArgumentException(\"Arguments must be integers\");\n }\n Stopwatch stopwatch = new Stopwatch();\n PercolationStats stats = new PercolationStats(size, trials);\n StdOut.printf(\"Elapsed time %f ms\\n\", stopwatch.elapsedTime() * 1000);\n StdOut.printf(\"mean \\t\\t\\t= %f \\n\", stats.mean());\n StdOut.printf(\"stddev \\t\\t\\t= %f \\n\", stats.stddev());\n StdOut.print(\"95% confidence interval = \");\n StdOut.printf(\"%f %f \\n\", stats.confidenceLo(), stats.confidenceHi());\n }", "public FrequencyMonitor(ADEGuiCallHelper helper, int smoothingWindow) {\n super(helper, 500);\n initComponents();\n outputLbl.setText(\"0 Hz\");\n lastTime = System.currentTimeMillis();\n stats = new DescriptiveStatistics(smoothingWindow);\n\n this.setTitle(call(\"getDataName\", String.class));\n}", "public static void main(String[] args) {\n\tstudent stu= new student();\r\nSystem.out.println(stu.sno+\"\\t\"+stu.sname+\"\\t\"+stu.sfee+\"\\t\"+stu.sresult+\"\\t\"+stu.flag);\r\n }", "public static void main(String[] args) {\r\n\t\tint N = StdIn.readInt();\r\n\t\tint T = StdIn.readInt();\r\n\t\tPercolationStats unittest = new PercolationStats(N, T);\r\n\t\tSystem.out.println(\"mean = \" + unittest.mean());\r\n\t\tSystem.out.println(\"stddev = \" + unittest.stddev());\r\n\t\tSystem.out.println(\"95% confidence interval = \"\r\n\t\t\t\t+ unittest.confidenceLo() + \", \" + unittest.confidenceHi());\r\n\r\n\t}", "private void stats ( ) {\n\n nodes = 0;\n depth = 0;\n\n parse(((GPIndividual)program).trees[0].child);\n\n }", "@Test\n public void testImprimirStatistics()\n {\n //this.linealRegressionCalculator.printStatistics();\n }", "public static void main(String[] args) {\n\t\tWeatherData data = new WeatherData();\r\n\t\tCurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(data);\r\n\t\t\r\n\t\t\r\n\t\tStatisticsDisplay statisticsDisplay = new StatisticsDisplay(data);\r\n\t\t\r\n\t\t\r\n\t\tdata.measurementsChanged(10, 10, 10);\r\n\t\t\r\n\t\tdata.measurementsChanged(20, 20, 20);\r\n\t\t\r\n\t}", "public void statistics(){\n System.out.println(this.scoreboard.toString());\n }", "private double getSystemCallStatistics()\n {\n return(-1);\n }", "public static void main(String[] args) {\n int list[]={1,2,3,4,5,5,6,7,7,7,8,7};\n int result = new NumberFreq().popular(list);\n //calling class\n System.out.println(result);\n System.out.println(\"Just testing\");\n \n }", "public String getStatistics() throws IOException{\n initiateWordCount();\n getHamStatistics(); \n getSpamStatistics();\n return printStatistics(); \n }", "public abstract void calculateSufficientStatistics();", "public static void main(String[] args) {\n\t\tTestingPerformanceCalculator obj= new TestingPerformanceCalculator(\"./data/gitInfoNew.txt\", \"data/Results/FinalResultSidTest1.txt\");\n\t\t//Read Gold set\n\t\tobj.goldStMap=obj.LoadGoldSet();\n\t\t//MiscUtility.showResult(10, obj.goldStMap);\n\t\t//Resd output file/ test result file\n\t\tobj.finalResult=obj.LoadTestingResult();\n\t\t//MiscUtility.showResult(20, obj.finalResult);\n\t\t\n\t\t\n\t\t//Create a ranked list\n\t\t//obj.produceRankedResult(10);\n\t\tArrayList<String> rankedFinalTestingResult=obj.produceRankedResult(10);\n\t\tContentWriter.writeContent(\"./data/testing1RankedResult.txt\", rankedFinalTestingResult);\n\t\t//call another class BLPerformanceCalc to compute\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\nCircle c=new Circle(5.1);\nc.area();\n\t}", "public Main() {\n \n \n }", "public static void main(String[] args) {PercolationStats ps = new PercolationStats(10,10); \n//\t\tSystem. out .println( ps .mean());\n//\t\tps = new PercolationStats(20,10);\n//\t\tSystem. out .println( ps.confidenceLow());\n//\t\t\n\t\tint[] number = { 50, 100, 200,400};\n\t\tfor ( int i : number)\n\t\t{\n\t\t\tdouble start = System.nanoTime();\n\t\t\tPercolationStats ps = new PercolationStats(i,100); \n\t\t\tdouble end = System.nanoTime();\n\t\t\tdouble time = (end-start)/1e9;\n\t\t\t//System.out.printf(\"n = %d, mean: %1.4f, time: %1.4f\\n\",i, ps.mean(),time);\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tresult obj = new result();\n\t\tobj.setstudent(\"penny\", 30);\n\t\tobj.setmarks(95, 85);\n\t\tobj.calculate();\n\t\tobj.showstudent();\n\t\tobj.showmarks();\n\t\tobj.showresult();\n\n\t}", "public static void main(String[] args) throws Exception { \n \n int N = StdIn.readInt(); // lattice size\n // repeating this computation experiment T times\n int T = StdIn.readInt();\n \n PercolationStats percolationStats = new PercolationStats(N, T);\n \n StdOut.println(\"mean = \"\n + percolationStats.mean());\n StdOut.println(\"stddev = \"\n + percolationStats.stddev());\n StdOut.println(\"95% confidence interval= \"\n + percolationStats.confidenceLo()\n + \" \"\n + percolationStats.confidenceHi());\n }", "protected abstract String getStatistics();", "public static void main() {\n }", "public static void main(String[] args) {\n \t\tSystem.out.println(I18n.tr(\"StatCvs-XML - CVS statistics generation\")+\"\\n\");\n \t\tSystem.setProperty(\"java.awt.headless\", \"true\");\n \t\t\n\t\tif (args.length == 0) {\n\t\t\tprintProperUsageAndExit();\n\t\t}\n \t\tif (args.length == 1) {\n \t\t\tString arg = args[0].toLowerCase();\n \t\t\tif (arg.equals(\"-h\") || arg.equals(\"-help\")) {\n \t\t\t\tprintProperUsageAndExit();\n \t\t\t} else if (arg.equals(\"-version\")) {\n \t\t\t\tprintVersionAndExit();\n \t\t\t}\n \t\t}\n \n \t\ttry {\n \t\t\tReportSettings settings = readSettings(args);\n \t\t\tinitLogger();\n \t\t\tgenerateSuite(settings);\n \t\t} catch (InvalidCommandLineException e) {\n \t\t\tSystem.err.println(e.getMessage());\n \t\t\tprintProperUsageAndExit();\n \t\t} catch (IOException e) {\n \t\t\tprintErrorMessageAndExit(e.getMessage());\n \t\t} catch (LogSyntaxException lex) {\n \t\t\tprintLogErrorMessageAndExit(lex.getMessage());\n \t\t} catch (OutOfMemoryError oome) {\n \t\t\tprintOutOfMemMessageAndExit();\n \t\t} catch (Exception ioex) {\n \t\t\tioex.printStackTrace();\n \t\t\tprintErrorMessageAndExit(ioex.getMessage());\n \t\t}\n \n \t\tSystem.exit(0);\n \t}", "@SuppressWarnings(\"static-access\")\r\n\tpublic static void main(String args[]) {\n//\t koenig1.getHP();\r\n//\t \r\n//\t koenig1.getAttribute();\r\n//\t \r\n\t Generator.Generate(Generator.Anzahl(), Generator.Tier());\r\n\t \r\n\t\t \r\n\t }", "public static void printStatistics(String statFile)\r\n\t{\r\n\t\t// TODO add code here to print statistics in the output file\r\n\t}", "public BasicStatistic(String name)\n {\n this.name = name;\n }", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public static void main(String[] args) {\n PercolationStats percolationStats = new PercolationStats(200,100);\n StdOut.printf(\"mean %f\\n\", percolationStats.mean);\n StdOut.printf(\"stddev %f\\n\", percolationStats.stddev);\n double lo = percolationStats.confidenceLo();\n double hi = percolationStats.confidenceHi();\n StdOut.printf(\"95%% confidence interval [%f, %f]\\n\", lo, hi);\n }", "public static void main(String[] args) {\n\r\n\t\tnew ThisSuperDemo3().calculate();\r\n\t}", "public static void main(String[] args) {\n\t\tSmallnoary sm=new Smallnoary();\r\n\t\tsm.sml();\r\n\r\n\t}", "public static void main(String[] args) {\n Student a = new Student();\n a.inputInfo();\n a.showInfo();\n a.hocBong();\n\n }", "public BestMeanConvergence() {\n }", "public static void main(String[] args) {\n\t\tlinearsearch oo=new linearsearch();\n\t\too.search();\n\t\t\n\t}", "public Statistics(Context context){\n this.context=context;\n dalDynamic=new DalDynamic(context);\n\n\n }", "static void avg(){\r\n\t\tSystem.out.println(\"Hi Avg\");\r\n\t}", "public static void main(String[] args) {\n // TODO code application logic here\n ArrayList<Integer> ints=new input().getInts(10);\n //PT -- stuff?\n calculates stuff=new calculates(ints);\n System.out.printf(\"Minimun Value is %d \\n\",(int)stuff.getMin());\n System.out.printf(\"Maximun Value is %d \\n\",(int)stuff.getMax());\n System.out.printf(\"Average Value is %f \\n\",stuff.getAvg());\n \n }", "public static void main() {\n \n }", "public static void main(String[] args) {\n int gridSize = 0;\n int trialCount = 0;\n if (args.length >= 2) {\n gridSize = Integer.parseInt(args[0]);\n trialCount = Integer.parseInt(args[1]);\n }\n StdOut.println(gridSize + \" \" + trialCount);\n PercolationStats ps = new PercolationStats(gridSize, trialCount);\n String confidence = ps.confidenceLo() + \", \" + ps.confidenceHi();\n StdOut.println(\"mean = \" + ps.mean());\n StdOut.println(\"stddev = \" + ps.stddev());\n StdOut.println(\"95% confidence interval = \" + confidence);\n\n }", "public static void main(String[] args) {\n MyClass m;\n m= new MyClass();\nm.display();\n\t}", "private Main() {\n\n super();\n }", "public abstract void statsReset();", "public static void main (String[] args)\n {\n Data_Sorter calculator = new Data_Sorter();\n calculator.display();\n }", "public static void main(String[] args) {\n\n\n Student cory = new Student(\"Cory\");\n Student bethany = new Student(\"Bethany\");\n System.out.println(Student.studentCount);\n// System.out.println(sayHello(bethany, name));\n System.out.printf(\"Area of circle wih radius 3 is %f\");\n\n }" ]
[ "0.7758431", "0.740626", "0.7343393", "0.7262991", "0.6689851", "0.66711974", "0.6645592", "0.66384614", "0.6532945", "0.6513251", "0.6413941", "0.6401137", "0.6393964", "0.6368531", "0.6331462", "0.63255703", "0.6321758", "0.6315645", "0.6315492", "0.6306428", "0.62664", "0.6245306", "0.6229444", "0.62173533", "0.6142682", "0.6130336", "0.61243474", "0.6124067", "0.61152154", "0.61112046", "0.6108168", "0.61075807", "0.61075807", "0.61069006", "0.61025786", "0.6082506", "0.60660446", "0.6060819", "0.60536855", "0.60505027", "0.6031858", "0.60139847", "0.6013918", "0.6013918", "0.60020304", "0.598849", "0.597471", "0.59673166", "0.5959829", "0.59494287", "0.5946935", "0.59407985", "0.5939607", "0.59382343", "0.5937982", "0.5937586", "0.5917321", "0.59110206", "0.59099215", "0.5905864", "0.58968383", "0.58965784", "0.58951956", "0.5868651", "0.5863646", "0.58634156", "0.58628845", "0.5861912", "0.58616096", "0.58412594", "0.582859", "0.5828418", "0.582279", "0.57981396", "0.57973254", "0.5793139", "0.5789829", "0.5786059", "0.5781888", "0.577498", "0.5774689", "0.5761804", "0.57381344", "0.5730138", "0.5718755", "0.57090735", "0.5707498", "0.5699089", "0.5690151", "0.56841683", "0.5680741", "0.5677735", "0.5668295", "0.566249", "0.5661626", "0.5660541", "0.5659863", "0.56507134", "0.56411695", "0.5639359", "0.5638078" ]
0.0
-1
Consecutive_sessions a_session= new Consecutive_sessions (); a_session.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Consecutive_sessions(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\r\n\t\t\tactivityStartTimestamp = startTimestamp + lastCommandTimestamp;\r\n//\t\t\tSystem.out.println(\"Session started\");\r\n\t\t\tActivitySessionStarted.newCase(this, activityStartTimestamp);\r\n//\t\t\tDate startDate = new Date(); // make this global also\r\n\t\t\t startDate = new Date(); // make this global also\r\n\r\n//\t\t\tDate endDate = new Date(); // in case we get no more commands or we terminate early\r\n//\t\t\tint idleCycles = 0; // make this a global so eclipse termination can access it\r\n\t\t\t// make this global also\r\n\t\t\tendDate = new Date(); // in case we get no more commands or we terminate early\r\n\t\t\tidleCycles = 0; // make this a global so eclipse termination can access it\r\n\t\t\twhile(idleCycles < IDLE_CYCLES_THRESHOLD) {\r\n\r\n//\t\t\twhile(idleCycles < 10) {\r\n\t\t\t\t\r\n\t\t\t\tidleLastCycle = true;\r\n\t\t\t\ttry {\r\n//\t\t\t\t\tThread.sleep(/*60 * */ 1000); // why is 60 removed?\r\n\t\t\t\t\tThread.sleep(IDLE_CYCLE_GRANULARITY); // why is 60 removed?\r\n\r\n\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t\tif(idleLastCycle) {\r\n\t\t\t\t\tidleCycles++;\r\n\t\t\t\t\tIdleCycleDetected.newCase(this, startTimestamp + lastCommandTimestamp, idleCycles);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tendDate = new Date(); // this seems wrong, we have not ended session\r\n\t\t\t\t\t// actually it is correct as this is ths last cycle in which the session was active\r\n//\t\t\t\t\tidleCycles = 0;\r\n\t\t\t\t\tinitActivitySession();\r\n\t\t\t\t}\r\n\t\t\t}\r\n//\t\t\tDate endDate = new Date(); // current time\r\n//\r\n//\t\t\tinActivitySession = false;\r\n//\t\t\tsessionEnded(startDate, endDate);\r\n\t\t\trecordEndSession();\r\n\t\t}", "public abstract Thread startSession();", "public createsessions() {\n initComponents();\n loadlec();\n loadlec2();\n\n // subcode() ;\n loadsubname();\n loadsubname1();\n\n loadtag();\n loadtag2();\n\n loadgrpid();\n loadgrpid2();\n\n loadsubgrpid1();\n loadsubgrpid2();\n\n }", "Session begin();", "@Test\r\n @SuppressWarnings(\"SleepWhileInLoop\")\r\n public void testStartSimulationSession() {\r\n System.out.println(\"startSimulationSession\");\r\n assertNotNull(sm);\r\n assertEquals(SimulationState.READY, sm.getSimulationSessionState(\"test3\"));\r\n \r\n sm.addSimulatorToSession(\"test3\", Simulators.NUATMOS, \"v1\", true);\r\n //sm.addSimulatorToSession(\"test3\", Simulators.DISPERFIRE, true);\r\n //sm.addSimulatorToSession(\"test3\", Simulators.MEB, true);\r\n \r\n boolean result = sm.startSimulationSession(\"test3\", false);\r\n assertTrue(result);\r\n \r\n result = sm.startSimulationSession(\"test5\", false);\r\n assertFalse(result);\r\n \r\n Iterator<? extends ISimulationJobInfo> jobs = sm.getSession(\"test3\").iterator();\r\n \r\n for(ISimulationJobInfo job; jobs.hasNext();) {\r\n job = jobs.next();\r\n assertEquals(job.getRetVal(), 0);\r\n }\r\n }", "public void sessionStarted() {\n\t\t\r\n\t}", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "public void testStagesSession() {\n\n resetCounter();\n\n try {\n FixedResolver tr0 = new FixedResolver(\"127.0.0.1\", 54222);\n FixedTransportManager ftm0 = new FixedTransportManager(tr0);\n TestMediaManager tmm0 = new TestMediaManager(ftm0);\n tmm0.setPayloads(getTestPayloads1());\n List<JingleMediaManager> trl0 = new ArrayList<JingleMediaManager>();\n trl0.add(tmm0);\n\n FixedResolver tr1 = new FixedResolver(\"127.0.0.1\", 54567);\n FixedTransportManager ftm1 = new FixedTransportManager(tr1);\n TestMediaManager tmm1 = new TestMediaManager(ftm1);\n tmm1.setPayloads(getTestPayloads2());\n List<JingleMediaManager> trl1 = new ArrayList<JingleMediaManager>();\n trl1.add(tmm1);\n\n JingleManager man0 = new JingleManager(getConnection(0), trl0);\n JingleManager man1 = new JingleManager(getConnection(1), trl1);\n\n man1.addJingleSessionRequestListener(new JingleSessionRequestListener() {\n /**\n * Called when a new session request is detected\n */\n public void sessionRequested(final JingleSessionRequest request) {\n System.out.println(\"Session request detected, from \" + request.getFrom() + \": accepting.\");\n try {\n // We accept the request\n JingleSession session1 = request.accept();\n\n session1.addListener(new JingleSessionListener() {\n public void sessionClosed(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionClosed().\");\n }\n\n public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {\n System.out.println(\"sessionClosedOnError().\");\n }\n\n public void sessionDeclined(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionDeclined().\");\n }\n\n public void sessionEstablished(PayloadType pt, TransportCandidate rc, final TransportCandidate lc,\n JingleSession jingleSession) {\n incCounter();\n System.out.println(\"Responder: the session is fully established.\");\n System.out.println(\"+ Payload Type: \" + pt.getId());\n System.out.println(\"+ Local IP/port: \" + lc.getIp() + \":\" + lc.getPort());\n System.out.println(\"+ Remote IP/port: \" + rc.getIp() + \":\" + rc.getPort());\n }\n\n public void sessionMediaReceived(JingleSession jingleSession, String participant) {\n // Do Nothing\n }\n\n public void sessionRedirected(String redirection, JingleSession jingleSession) {\n }\n });\n\n session1.startIncoming();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // Session 0 starts a request\n System.out.println(\"Starting session request, to \" + getFullJID(1) + \"...\");\n JingleSession session0 = man0.createOutgoingJingleSession(getFullJID(1));\n\n session0.addListener(new JingleSessionListener() {\n public void sessionClosed(String reason, JingleSession jingleSession) {\n }\n\n public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {\n }\n\n public void sessionDeclined(String reason, JingleSession jingleSession) {\n }\n\n public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc,\n JingleSession jingleSession) {\n incCounter();\n System.out.println(\"Initiator: the session is fully established.\");\n System.out.println(\"+ Payload Type: \" + pt.getId());\n System.out.println(\"+ Local IP/port: \" + lc.getIp() + \":\" + lc.getPort());\n System.out.println(\"+ Remote IP/port: \" + rc.getIp() + \":\" + rc.getPort());\n }\n\n public void sessionRedirected(String redirection, JingleSession jingleSession) {\n }\n\n public void sessionMediaReceived(JingleSession jingleSession, String participant) {\n // Do Nothing\n }\n });\n session0.startOutgoing();\n\n Thread.sleep(20000);\n\n assertTrue(valCounter() == 2);\n\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"An error occured with Jingle\");\n }\n }", "public synchronized void sessionStart(int i){\n\t\tif(i!=0){\n\t\t\twhile(allExited==false){\n\t\t\t\ttry {\n\t\t\t\t\twait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tsessionStarted = true;\n\t\t\tsessionEnded = false;\n\t\t\tallExited=false;\t\t\t\n\t\t}\n\t\telse{\n\t\t\tsessionStarted=true;\n\t\t\tsessionEnded = false;\n\t\t}\n\t\tint j = i+1;\n\t\tSystem.out.println(\"Session \"+j+\" has been started by \"+Thread.currentThread().getName());\n\t\tnotifyAll();\n\t}", "int getActiveSessions();", "@Test\r\n public void testInitSession() {\r\n System.out.println(\"initSession\");\r\n assertNotNull(sm);\r\n \r\n boolean result = sm.initSession(\"test1\", programsHome, programsHome + \"files1/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test2\", programsHome, programsHome + \"files2/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test3\", programsHome, programsHome + \"files3/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n assertTrue(result);\r\n \r\n sm.removeSession(\"test4\");\r\n }", "RunningTasks getActiveHarvestingSessions() throws RepoxException;", "public void incrementExcepionalSessions() {\n exceptionalSessions++;\n }", "public int getActiveSessions();", "public abstract int getNumSessions();", "static void startSession() {\n /*if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"startSession() called\");\n }*/\n if (!isContextAndApiKeySet(\"startSession()\")) {\n return;\n }\n final long now = System.currentTimeMillis();\n\n runOnLogWorker(new Runnable() {\n @Override\n public void run() {\n logWorker.removeCallbacks(endSessionRunnable);\n long previousEndSessionId = getEndSessionId();\n long lastEndSessionTime = getEndSessionTime();\n if (previousEndSessionId != -1\n && now - lastEndSessionTime < Constants.Z_MIN_TIME_BETWEEN_SESSIONS_MILLIS) {\n DbHelper dbHelper = DbHelper.getDatabaseHelper(context);\n dbHelper.removeEvent(previousEndSessionId);\n }\n //startSession() can be called in every activity by developer, hence upload events and sync datastore\n // only if it is a new session\n //syncToServerIfNeeded(now);\n startNewSessionIfNeeded(now);\n\n openSession();\n\n // Update last event time\n setLastEventTime(now);\n //syncDataStore();\n //uploadEvents();\n\n }\n });\n }", "void sessionHeartbeat() throws IOException, InterruptedException;", "PossessionPool captured(Possession possesion);", "public void start2();", "@Test\n public void testStartSession() {\n startSession();\n }", "public int actions()\n {\n switch (mState) \n {\n case cProcessInit:\n out();\n if (cSimTimeMicro < cClientCount/cClientTransPerMicro) {\n cSimTimeMicro = cClientCount/cClientTransPerMicro;\n System.out.println(\"\\nSimulation time is too short! It has been reset to \" + cSimTimeMicro + \" micro\\n\");\n }\n cMaxRequestsToSend = (int) (cClientTransPerMicro * cSimTimeMicro);\n System.out.println(\"cMaxRequestsToSend = \" + cMaxRequestsToSend);\n \n if (cTransLogMon)\n {\n System.out.println(cTransMonHeader);\n System.out.println(\"----------------------------------------------------------------------------------------\");\n }\n\n// if (cTick)\n// {\n// activate(new Tick());\n// }\n activate(mTaxJvm);\n return cMeJvm;\n \n case cMeJvm:\n activate(mMeJvm);\n return cMeStandbyJvm;\n\n case cMeStandbyJvm:\n activate(mMeStandbyJvm);\n return cJvmActivated;\n\n case cJvmActivated:\n mClientList = headToArray(mClient.mProcess, new Process[0]);\n \n //double tInterval = 500/tClientList.length; //500 is the minimum response time\n //double tInterval = 1.0/(cClientCount*cClientTransPerMicro); \n \n double tInterval = 1.0D*1000*1000/(cClientCount); //evenly distributed client over 1 second interval\n \n //hold until connect next client to the system \n mHoldTimeBetweenClients = cRandom.normal(tInterval, tInterval*0.3);\n mFor_i = -1;\n // Flow into loop\n\n case cForNext:\n ++mFor_i;\n //for (int i = 0; i < tClientList.length; ++i) //For every client\n if (mFor_i >= mClientList.length)\n {\n return cForEnd;\n }\n\n tClientStartTime = time();\n activate((Process) mClientList[mFor_i]); \n return cNewClient;\n \n case cNewClient:\n hold(mHoldTimeBetweenClients);\n return cForNext;\n\n case cForEnd:\n //hold(cRunTimeMicro);\n //return cHoldRunTimeMicro;\n\n case cHoldRunTimeMicro:\n cActualRunTimeMicro = cSimTimeMicro * 2;\n hold(cActualRunTimeMicro);\n return cHoldRunTime;\n \n case cHoldRunTime:\n if (cTick)\n {\n System.out.println(\"\\nSimulation time = \" + time()/(1000.0*1000.0) + \" sec.\");\n System.out.println(\"Requests = \" + cRequests);\n System.out.println(\"cRequestsToSend = \" + cMaxRequestsToSend);\n System.out.println(\"Av.tax time = \" + cTaxSum/cRequests);\n System.out.println(\"Av.client time = \" + cClientSum/cRequests);\n System.out.println(\"\\nExecution time: \" + ((System.currentTimeMillis() - cStartTime)/1000.0) + \" secs.\"); \n }\n return cProcessDone;\n }\n return cProcessError;\n }", "@Test \n\t public static void Execute_Sessions() throws Exception\n\t {\n\t\t int MYTHREADS = 30; \n\t\t // ExecutorService pool = Executors.newFixedThreadPool(MYTHREADS); \n\t\t //CountDownLatch latch = new CountDownLatch(totalNumberOfTasks);\n\t\t ExecutorService executor = Executors.newFixedThreadPool(MYTHREADS);\n\t\t \n\t\t// CountDownLatch latch = new CountDownLatch(15);\n\t\t //ExecutorService executor = Executors.newFixedThreadPool(13);\n\t\t// ExecutorService pool = Executors.newFixedThreadPool(MYTHREADS); \n\t\t \n\t\t int NumberofTestScripts = 0;\n\t\t\tExcelApiTest3 eat = new ExcelApiTest3();\n\t\t\tNumberofTestScripts=eat.getRowCount(\"E://Batch2Source//Regression1.xls\",\"Sheet1\");\n\t\t\tSystem.out.println(\"Numberof TestScripts Count Regression1.xls :\"+NumberofTestScripts);\n\t\t\t\n\t\t\t\t\t\n\t\t\tfor (int iRow1=1;iRow1<NumberofTestScripts;iRow1++) // Number of Test Cases in Regression Sheet\n\t\t\t{\n\t\t\t\tRunnable worker = new DriverTest124(iRow1);\n\t\t\t\tThread.sleep(3000);\n\t\t\t\t\n\t \t\texecutor.execute(worker);\n\t \t\t\n\n\t\t\t\t//executor.awaitTermination(5, TimeUnit.HOURS);\n\t \t\t//Runnable worker = new WorkerThread(\"\" + iRow1);\n\t // executor.execute(worker);\n\t\t\t\t//Future f = executor.submit(new DriverTest124(iRow1));\n\t\t\t\t//f.get(60,TimeUnit.SECONDS);\n\t\t\t\t//Thread.sleep(9000);\n\t \t\n\t\n\t\t\t\t/*\n\t \t\tSystem.out.println(\"First Thread ID:\"+Thread.currentThread().getId());\n\t\t\t\tSystem.out.println(\"First Thread status:\"+Thread.currentThread().getState());\n\t\t\t\tSystem.out.println(\"First Thread Name:\"+Thread.currentThread().getName());\n\t\t\t\t\n\t\t\n\t\t\t\t String str=\"Row Iteration in for loop- \" + String.valueOf(iRow1);\n\t\t\t\t System.out.println(\"Row Iteration in for loop- \"+str);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Thread ID:\"+Thread.currentThread().getId());\n\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getState());\n\t\t\t\tSystem.out.println(\"Thread Name:\"+Thread.currentThread().getName());*/\n\t\t\t\t\n\t\t\t\t/*if(Thread.currentThread().isInterrupted())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getId());\n\t\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getState());\n\t\t\t\t}*/\n\t\t\t\t\n\t \t\n\t\t\t\t//f.wait();\n\t\t\t\t//System.out.println(\"Task Status - :\"+f.isCancelled());\n\t\t\t\t\n\t\t\t\t\t//f.isDone();\n\t \t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t/*try {\n\t\t\t latch.await();\n\t\t\t} catch (InterruptedException E) {\n\t\t\t\t\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t\tSystem.out.println(\"Finish tasks\");\n\t\t\t\n\t\t\t//awaitTerminationAfterShutdown\n\t\t\t\t\t\n\t\t\n\t\t\texecutor.shutdown();\n\t\t\texecutor.awaitTermination(5, TimeUnit.HOURS);\n\t\t\t\n\t\t\t// Wait until all threads are finish\n\t\t//\twhile (!executor.isTerminated()) {\n\t \n\t\t//\t}\n\t\t\tSystem.out.println(\"\\nFinished all threads\");\n\t\t\t\n\t\t\t\n\t\t}", "public void launchNewSession(){\r\n framework.launchNewMAV(getArrayMappedToData(), this.experiment, \"Multiple Experiment Viewer - Cluster Viewer\", Cluster.GENE_CLUSTER);\r\n }", "public WebSession(){\n\tstartmodel = new StartModel();\n\tgraphmodel = new GraphModel();\n\treportmodel = new ReportModel();\n\tsetupmodel = new SetupModel();\n }", "public synchronized void startCinema(){\n\t\twhile(sessionStarted==false){\t//Deepthought thread checks every time whether session thread has started a session after being\n\t\t\t\t\t\t\t\t\t\t//woken up.\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Cinema is yet to be started by \"+Thread.currentThread().getName());\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Cinema has been started by \"+Thread.currentThread().getName());\n\t\tcinemaEnded = false;\t\t\n\t}", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public void incrementUnexpectedSessions() {\n unexpectedSessions++;\n }", "private void updateActiveSession(Session s)\r\n\t{\r\n\t\t\r\n\t\t/**\r\n\t\t * Part Two\r\n\t\t */\r\n\t\t//TODO: BMH\r\n\t\t\r\n\t\t/**\r\n\t\t * Part Three\r\n\t\t */\r\n\t\ttry\r\n\t\t{\r\n\t\t\ts.serverSock.setSoTimeout(1);\r\n\t\t\tSocket client = s.serverSock.accept();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOutput.processMessage(\"Accepted a connection from: \"+\r\n\t\t \t\tclient.getInetAddress(), Constants.Message_Type.debug);\r\n\t\t\t\r\n\t\t\r\n\t\t\tif (client != null)\r\n\t\t\t{\r\n\t\t\t\tSessionUtils.acceptNewClient(client, s);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "void sessionCreated(SessionEvent se);", "public String execute(){\n HttpSession session = request.getSession();\n System.out.println(request);\n System.out.println(response);\n System.out.println(application);\n System.out.println(session);\n\n return null;\n\n}", "@Test\r\n public void testAddSimulatorToSession() {\r\n System.out.println(\"addSimulatorToSession\");\r\n assertNotNull(sm);\r\n sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n \r\n boolean result = sm.addSimulatorToSession(\"test4\", Simulators.NUATMOS, \"v1\", true);\r\n assertTrue(result);\r\n \r\n result = sm.addSimulatorToSession(\"test5\", Simulators.NUATMOS, \"v1\", true);\r\n assertFalse(result);\r\n \r\n sm.removeSession(\"test4\");\r\n \r\n }", "public long getSessionCounter();", "@Test\n public void f() throws InterruptedException{\n\t \n\t Login1 obj2 = new Login1(driver);\n\t obj2.login1();\n\t \n\t \n\t SignIn1 obj3 = new SignIn1(driver);\n\t obj3.signin_1();\n\t \n\t Product1 obj4 = new Product1(driver);\n\t obj4.product_1();\n\t Thread.sleep(8000);\n\t \n\t Cart obj5 = new Cart(driver);\n\t obj5.cart_1BillingAddress();\n\t \n\t \n }", "void openSuperMarketSimulation()\r\n\t{\n\t\t\r\n\t\tqueueManager = new QueueManager(shoppingQueue);\r\n\t\tdataManager = new DataCollector();\r\n\t\ttimerLoop.start();\r\n\t\tsuperMarketTime.timerStart();\r\n//\t\twhile(timerLoop.isRunning())\r\n//\t\t{\r\n//\t\t\t\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//CLOSE THE MARKET :(((\r\n\t}", "static void test2() {\n\n System.out.println( \"Begin test2. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n System.out.println( \"TODO: write a more involved test here.\" );\n //\n // Create a GremlinsBridge of capacity 3.\n // Set an OPTIONAL, test delay to stagger the start of each mogwai.\n // Create the Mogwais and store them in an array.\n // Run them by calling their start() method.\n // Now, the test must give the mogwai time to finish their crossings.\n //\n System.out.println( \"TODO: follow the pattern of the example tests.\" );\n System.out.println( \"\\n=============================== End test2.\" );\n }", "public static void main(String args[])\n {\n try {\n StartingFrame.iter();\n }\n catch (Exception e)\n {\n\n }\n Main object=new Main();\n\n }", "Session getCurrentSession();", "Session getCurrentSession();", "long start();", "public static void main(String[] args){\n//\t\tnew Selection().start();\n//\t\tnew Selection().start();\n//\t\tnew Insertion().start();\n\t\tnew Insertion().start();\n\t\tnew Insertion().start();\n\t\tnew Insertion().start();\n\t}", "public static String _process_globals() throws Exception{\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 10;BA.debugLine=\"Private TimerAnimacionEntrada As Timer\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 11;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n session = new SessionManagement(getApplicationContext());\n\n redirect();\n\n // close this activity\n finish();\n }", "@Test\r\n @SuppressWarnings(\"SleepWhileInLoop\")\r\n public void testRemoveCompletedSessions() {\r\n System.out.println(\"removeCompletedSessions\");\r\n assertNotNull(sm);\r\n \r\n Map<String, ISimulationSessionInfo> result = sm.removeCompletedSessions();\r\n assertNotNull(result.get(\"test1\"));\r\n assertNotNull(result.get(\"test2\"));\r\n assertNull(result.get(\"test3\"));\r\n assertNull(sm.getSession(\"test1\"));\r\n assertNull(sm.getSession(\"test2\"));\r\n assertNotNull(sm.getSession(\"test3\"));\r\n }", "@Test\r\n public void testGetSimulationSessionState() {\r\n System.out.println(\"getSimulationSessionState\");\r\n assertNotNull(sm);\r\n \r\n SimulationState result = sm.getSimulationSessionState(\"test1\");\r\n assertEquals(SimulationState.FINISHED, result);\r\n \r\n result = sm.getSimulationSessionState(\"test2\");\r\n assertEquals(SimulationState.FINISHED, result);\r\n \r\n result = sm.getSimulationSessionState(\"test3\");\r\n assertEquals(SimulationState.READY, result);\r\n }", "public SessionManager ()\r\n\t{\r\n\t\tactiveSessions = new ArrayList<Session>();\r\n\t}", "public void setSessionCounter(long sessionCounter);", "static void beginNewSession() {\n SESSION_ID = null;\n Prefs.INSTANCE.setEventPlatformSessionId(null);\n\n // A session refresh implies a pageview refresh, so clear runtime value of PAGEVIEW_ID.\n PAGEVIEW_ID = null;\n }", "IDAOSession createNewSession();", "public static void main(String[] args) {\n\t\t\n\t\tRunnable r1 = () -> {\n\t\t\tSystem.out.println(\"I am running in \" + Thread.currentThread().getName());\n\t\t\t//singleton.getInstance();\n\t\t\tnostatic ns = new nostatic();\n\t\t\t\n\t\t\t\n\t\t\tns.incrementNum();\n\t\t};\n\t\t\n\t\tThread[] tarray = new Thread[100];\n\t\t\n\t\tfor( int i =0 ;i < 10 ; i++)\n\t\t{\n\t\t\ttarray[i] = new Thread(r1); \n\t\t\ttarray[i].start();\t\n\t\t}\n\t\t\t\t\n\t\t//System.out.println(\" end\" + t1.getName() + \" 2nd thread name \" + t2.getName());\n\t}", "void start ();", "@Override // java.util.concurrent.Callable\n public AppRaterSession call() {\n return this.a.a.getLastSession();\n }", "void recordSessionTime(DefaultSession session);", "public String getSessionState();", "@Override\n\t\t\tpublic void handleNewSession() throws Exception {\n\t\t\t\t\n\t\t\t}", "public Session[] findSessions();", "public void login2() {\n System.out.println(\"a\");\r\n System.out.println(\"b\");\r\n System.out.println(\"a\");\r\n System.out.println(\"a\");\r\n }", "private static void startNewSession(final long timestamp) {\n openSession();\n\n sessionId = timestamp;\n //Log.i(\"sessionId\",\"updated at startNewSession()\");\n SharedPreferences preferences = CommonUtils.getSharedPreferences(context);\n preferences.edit().putLong(Constants.Z_PREFKEY_LAST_END_SESSION_ID, sessionId).apply();\n\n logEvent(START_SESSION_EVENT, null, null, timestamp, false);\n logWorker.post(new Runnable() {\n @Override\n public void run() {\n sendEventToServer(START_SESSION_EVENT, timestamp, Constants.Z_START_SESSION_EVENT_LOG_URL, true);\n }\n });\n\n }", "public static void selfTest() {\n\n\t\tSystem.out.println(\"Got to begin test\");\n\n\t\tSystem.out.println(\"Test 1 speaker 1 listener\");\n\t\tCommunicator comm = new Communicator();\n\t\tKThread threadSpeaker = new KThread(new Speaker(comm, 100));\n\t\tthreadSpeaker.setName(\"speaker\").fork();\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built speaker\");\n\t\tKThread threadListener = new KThread(new Listener(comm));\n\t\tthreadListener.setName(\"Thread listener\").fork();\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built listener\");\n\n\t\tthreadListener.join();\n\t\tthreadSpeaker.join();\n\t\tSystem.out.println(\"Did the join\");\n\n\t\tSystem.out.println(testa);\n\t\t//testing for 1 speaker 1 listener\n\n\t\tSystem.out.println(\"Test many speaker many listener\");\n\t\tCommunicator comm1 = new Communicator();\n\n\t\tKThread speaklist[] = new KThread[10];\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tspeaklist[i] = new KThread(new Speaker(comm1, i));\n\t\t\tspeaklist[i].setName(\"Speaker \" + i).fork();\n\t\t\t//System.out.println(i);\n\t\t}\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built speaker list\");\n\n\t\tKThread listenlist[] = new KThread[10];\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tlistenlist[i] = new KThread(new Listener(comm1));\n\t\t\tlistenlist[i].setName(\"Listener \" + i).fork();\n\t\t}\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built listener list\");\n\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tspeaklist[i].join();\t\t\n\t\t\tlistenlist[i].join();\n\t\t\tSystem.out.println(\"joined lists\");\n\t\t\tSystem.out.println(testa);\n\t\t}\n\t\t//test many speaker many listener\n\t\t\n\t\tSystem.out.println(\"Test many speaker 1 listener\");\n\t\tCommunicator comm2 = new Communicator();\n\t\t\n\t\tKThread speaklist1[] = new KThread[10];\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tspeaklist[i] = new KThread(new Speaker(comm2, i + 1));\n\t\t\tspeaklist[i].setName(\"Speaker \" + i).fork();\n\n\t\t}\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built speaker list 2\");\n\t\t\n\t\tKThread singleListener = new KThread(new Listener(comm2));\n\t\tsingleListener.setName(\"Listener\").fork();\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built listener\");\n\t\t\n\t\tspeaklist1[0].join();\n\t\tsingleListener.join();\n\t\tSystem.out.println(\"joined one on one\");\n\t\tSystem.out.println(testa);\n\t\t\n\t\tfor(int i = 1; i < 10; i++) {\n\t\t\tspeaklist[i].join();\n\t\t\tsingleListener.join();\n\t\t\tSystem.out.println(\"joined on \" + i);\n\t\t\tSystem.out.println(testa);\n\t\t}\n\t\t//test many speaker 1 listener\n\t\t\n\t\t\n\t\tSystem.out.println(\"Test one speaker many listener\");\n\t\tCommunicator comm3 = new Communicator();\n\t\t\n\t\tKThread singlespeaker = new KThread(new Speaker(comm3, 1));\n\t\tsinglespeaker.setName(\"Speaker\").fork();\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built speaker\");\n\t\t\n\t\tKThread listenlist1[] = new KThread[10];\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tlistenlist1[i] = new KThread(new Listener(comm3));\n\t\t\tlistenlist1[i].setName(\"Listener \" + i).fork();\n\t\t}\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built listener list\");\t\n\t\t\n\t\tsinglespeaker.join();\n\t\tlistenlist1[0].join();\n\t\tSystem.out.println(\"joined\");\n\t\tSystem.out.println(testa);\n\t\t\n\t\tfor(int i = 1; i < 10; i++) {\n\t\t\tsinglespeaker.join();\n\t\t\tlistenlist1[i].join();\n\t\t\tSystem.out.println(\"joined on \" + i);\n\t\t\tSystem.out.println(testa);\n\t\t}\n\t\t//test one speaker many listener\n\t\t\n\t}", "public abstract I_SessionInfo[] getSessions();", "static void test0() {\n\n System.out.println( \"Begin test0. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n // Create a GremlinsBridge of capacity 3.\n GremlinsBridge gremlinBridge = new GremlinsBridge( 3 );\n\n // Set an optional, test delay to stagger the start of each mogwai.\n int delay = 4000;\n\n // Create the Mogwais and store them in an array.\n Thread peds[] = {\n new Mogwai( \"Al\", 3, SIDE_ONE, gremlinBridge ),\n new Mogwai( \"Bob\", 4, SIDE_TWO, gremlinBridge ),\n };\n\n for ( int j = 0; j < peds.length; ++j ) {\n // Run them by calling their start() method.\n try {\n peds[j].start();\n init.sleep( delay );\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n // Now, the test must give the mogwai time to finish their crossings.\n for ( int j = 0; j < peds.length; ++j ) {\n try {\n peds[j].join();\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n System.out.println( \"\\n=============================== End test0.\" );\n return;\n }", "public static void main(String[] args){\n Executor game = new Executor();\n\n System.out.println();\n System.out.println();\n game.introduction();\n\n while (! game.gameOver){\n game.day();\n\n if (! game.gameOver){\n wait(2000);\n game.endOfDay();\n }\n\n }\n\n }", "public void getTestSessions(){\n TestSessionDAO sessionsManager = DAOFactory.getTestSessionDAO();\n //populate with values from the database\n if(!sessionsManager.readInactiveTestSessions(testSessions)){\n //close the window due to read failure\n JOptionPane.showMessageDialog(rootPanel, \"Failed to read test sessions from database. Please check your internet connection and try again.\");\n System.exit(-2);\n }\n }", "public void start() {\n\r\n }", "static void test1() {\n\n System.out.println( \"Begin test1. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n // Create a GremlinsBridge of capacity 3.\n GremlinsBridge gBridge = new GremlinsBridge( 3 );\n\n int delay = 1000;\n\n // Create the Mogwais and store them in an array.\n Thread peds[] = {\n new Mogwai( \"Al\", 3, SIDE_ONE, gBridge ),\n new Mogwai( \"Bob\", 2, SIDE_ONE, gBridge ),\n new Mogwai( \"Cathy\", 2, SIDE_TWO, gBridge ),\n new Mogwai( \"Doris\", 3, SIDE_TWO, gBridge ),\n new Mogwai( \"Edith\", 3, SIDE_ONE, gBridge ),\n new Mogwai( \"Fred\", 2, SIDE_TWO, gBridge ),\n };\n\n for ( int j = 0; j < peds.length; ++j ) {\n // Run them by calling their start() method.\n try {\n peds[j].start();\n init.sleep( delay ); // delay start of next mogwai\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n }\n }\n // Now, the test must give the mogwai time to finish their crossings.\n for ( int j = 0; j < peds.length; ++j ) {\n try {\n peds[j].join(); // wait for next mogwai to finish\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n }\n }\n\n System.out.println( \"\\n=============================== End test1.\" );\n }", "void launch();", "void launch();", "void launch();", "public void setUp() throws Exception {\n\n processDefinition = new ProcessDefinition();\n\n processDefinition.setProcessVariables(new ProcessVariable[]{\n ProcessVariable.forName(\"var1\"),\n ProcessVariable.forName(\"var2\")\n });\n\n Activity theLastJoinActivity = null;\n\n\n for(int i=1; i<20; i++) {\n Activity a1 = new DefaultActivity();\n\n // a1.setQueuingEnabled(true);\n\n if(i == 7 || i==1){\n a1 = new GatewayActivity();\n }\n\n a1.setTracingTag(\"a\" + i);\n processDefinition.addChildActivity(a1);\n\n if(i==7){\n theLastJoinActivity = a1;\n }\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a9\");\n t1.setTarget(\"a1\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a10\");\n t1.setTarget(\"a9\");\n\n processDefinition.addTransition(t1);\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a2\");\n t1.setCondition(new Evaluate(\"var1\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a5\");\n t1.setCondition(new Evaluate(\"var2\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a3\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a5\");\n t1.setTarget(\"a6\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a6\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a3\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a4\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a7\");\n t1.setTarget(\"a11\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a11\");\n t1.setTarget(\"a12\");\n\n processDefinition.addTransition(t1);\n }\n\n processDefinition.afterDeserialization();\n\n ProcessInstance.USE_CLASS = DefaultProcessInstance.class;\n\n\n }", "@Override\n\tpublic void sessionOpened(IoSession session) throws Exception {\n\t\tSystem.out.println(\"Come :\" + session.getRemoteAddress());\n\t\t/*\n\t\t * other operate\n\t\t * */\n\t}", "public void login() {\n System.out.println(\"a\");\r\n System.out.println(\"b\");\r\n System.out.println(\"a\");\r\n System.out.println(\"a\");\r\n }", "static void test3() {\n\n System.out.println( \"Begin test3. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n System.out.println( \"TODO: write another, more involved test here.\" );\n System.out.println( \"\\n=============================== End test3.\" );\n }", "@Test\n public void run() throws InterruptedException {\n/* Player player = new Player(3);\n player.start();\n logger.debug(\"Called player.start\");\n Thread.sleep(2000);\n player.skip();\n logger.debug(\"Called player.skip\");\n Thread.sleep(2000);\n player.skip();\n logger.debug(\"Called player.skip\");\n Thread.sleep(2000);\n player.previous();\n logger.debug(\"Called player.previous\");\n Thread.sleep(2000);\n player.stop();\n logger.debug(\"Called player.stop\"); */\n }", "DatabaseSession openSession();", "public static List<CourseSession> createSessions() {\n List<CourseSession> list = new ArrayList<CourseSession>();\n list.add(createSession(\"1\"));\n list.add(createSession(\"2\"));\n return list;\n }", "public void startSession() {\n\t\tSystem.out.println(\"Creating Board\");\n\t\tthis.board = new Board(schoolClass.getTeams(), schoolClass.getClassDeck());\n\t\tSystem.out.println(\"Setting Team Positions.\");\n\t\tinitializeTeamPositions();\n\t\tSystem.out.println(\"Clearing Up To Date Status.\");\n\t\tupToDateIds = new ArrayList<Integer>();\n\t\tteamChallengeOrder = new ArrayList<Integer>();\n\t\tchallengeChains = new HashMap<Integer, Chain>();\n\t\tchallengeSubmissionStatus = new HashMap<Integer, Boolean>();\n\t\tthis.setSessionState(SessionState.PlayerTurn);\n\t}", "@Override\n public abstract void startCompetition();", "protected abstract SESSION newSessionObject() throws EX;", "void openNextFrameSet();", "public static void main(String[] args) {\n// System.out.println(SingetonDemo.getInstance() == singetonDemo.getInstance());\n// System.out.println(SingetonDemo.getInstance() == singetonDemo.getInstance());\n\n for (int i = 0; i < 10; i++) {\n new Thread(()->{\n SingetonDemo.getInstance();\n },String.valueOf(i)).start();\n }\n\n }", "public void startSimulation();", "public void sessionEnded() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void beginSession(int sessionNumber){\r\n\t\tsession++;\r\n\t\tactionOfPartner=null;\r\n\t\tcurrentBidInx = 0;\r\n\t\t\r\n\t\tcompromiseRate = 0;\r\n\t\tnoisRate = 0;\r\n\t\tsleepRate = 0;\r\n\t\tbiasRate = 1.2;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseFact+=compromiseLearn;\r\n\t\tcompromiseFact = compromiseFact<0?0:compromiseFact;\r\n\t\t\r\n\t\tProgressDif+=progressLearn;\r\n\t\tProgressDif = ProgressDif<0?0:ProgressDif;\r\n\t\t\r\n\t\tnoisFact+=noisLearn;\r\n\t\tnoisFact = noisFact<0?0:noisFact;\r\n\t\t\r\n\t\tbiasFactor = 1;\r\n\t\t\r\n\t\tArrayList<Pair<Bid,Double>> l = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA.add(l);\r\n\t\topponentBidsB.add(l);\r\n\t\t\r\n\t\t\r\n\t}", "public void testEqualPayloadsSetSession() {\n\n resetCounter();\n\n try {\n FixedResolver tr0 = new FixedResolver(\"127.0.0.1\", 54213);\n FixedTransportManager ftm0 = new FixedTransportManager(tr0);\n TestMediaManager tmm0 = new TestMediaManager(ftm0);\n tmm0.setPayloads(getTestPayloads1());\n List<JingleMediaManager> trl0 = new ArrayList<JingleMediaManager>();\n trl0.add(tmm0);\n\n FixedResolver tr1 = new FixedResolver(\"127.0.0.1\", 54531);\n FixedTransportManager ftm1 = new FixedTransportManager(tr1);\n TestMediaManager tmm1 = new TestMediaManager(ftm1);\n tmm1.setPayloads(getTestPayloads1());\n List<JingleMediaManager> trl1 = new ArrayList<JingleMediaManager>();\n trl1.add(tmm1);\n\n JingleManager man0 = new JingleManager(getConnection(0), trl0);\n JingleManager man1 = new JingleManager(getConnection(1), trl1);\n \n man0.addCreationListener(ftm0);\n man1.addCreationListener(ftm1);\n \n man1.addJingleSessionRequestListener(new JingleSessionRequestListener() {\n /**\n * Called when a new session request is detected\n */\n public void sessionRequested(final JingleSessionRequest request) {\n System.out.println(\"Session request detected, from \" + request.getFrom() + \": accepting.\");\n try {\n // We accept the request\n JingleSession session1 = request.accept();\n\n session1.addListener(new JingleSessionListener() {\n public void sessionClosed(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionClosed().\");\n }\n\n public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {\n System.out.println(\"sessionClosedOnError().\");\n }\n\n public void sessionDeclined(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionDeclined().\");\n }\n\n public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc,\n JingleSession jingleSession) {\n incCounter();\n System.out.println(\"Responder: the session is fully established.\");\n System.out.println(\"+ Payload Type: \" + pt.getId());\n System.out.println(\"+ Local IP/port: \" + lc.getIp() + \":\" + lc.getPort());\n System.out.println(\"+ Remote IP/port: \" + rc.getIp() + \":\" + rc.getPort());\n }\n\n public void sessionMediaReceived(JingleSession jingleSession, String participant) {\n // Do Nothing\n }\n\n public void sessionRedirected(String redirection, JingleSession jingleSession) {\n }\n });\n\n session1.startIncoming();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // Session 0 starts a request\n System.out.println(\"Starting session request with equal payloads, to \" + getFullJID(1) + \"...\");\n JingleSession session0 = man0.createOutgoingJingleSession(getFullJID(1));\n session0.startOutgoing();\n\n Thread.sleep(20000);\n\n assertTrue(valCounter() == 1);\n\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"An error occured with Jingle\");\n }\n }", "@Override\r\n public void initialRun(){\r\n tProcess = parser.nextSimProcessTime();\r\n System.out.println();\r\n boolean goRun=true;\r\n while(goRun){\r\n\r\n if(currentTime == tProcess){\r\n mc = parser.simProcess(mc);\r\n tProcess = parser.nextSimProcessTime();\r\n }\r\n mc.doOneStep();\r\n\r\n if(makeVideo){\r\n if(currentTime%FrameRate ==0){\r\n\r\n vid.addLatticeFrame(mc.getSimSystem().getSystemImg());\r\n makeVideo = vid.isWritten();\r\n }\r\n }\r\n\r\n if((currentTime % 10) ==0){System.out.println(\"t:\"+currentTime+\" M:\"+mc.getM());}\r\n currentTime++;\r\n\r\n\r\n goRun = !(mc.nucleated());\r\n if(mc.getM()<0 && currentTime> 300){goRun=false;}\r\n if(currentTime > maxT){goRun= false;}\r\n }\r\n\r\n if(makeVideo){\r\n vid.writeVideo();\r\n }\r\n }", "public synchronized void sessionEnd(int i){\n\t\twhile(cinemaEnded==false){\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Session is yet to be ended by \"+Thread.currentThread().getName());\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tsessionStarted = false;\n\t\tsessionEnded = true;\n\t\tint j = i+1;\n\t\tSystem.out.println(\"Session \"+j+\" has been ended by \"+Thread.currentThread().getName());\n\t\tnotifyAll();\t//This is a notifyAll because we must notify all the customer threads about the session end\n\t\t\t\t\t\t//and permit them to leave the projection room.\n\t}", "Loop createLoop();", "public WebConnectorRequestHandler () {\t\t\n\t\t_userSessions = new Hashtable<Long, UserSession>(); //manage all active sessions\n\t\t\n\t scheduledExecutorService.scheduleWithFixedDelay( //thread looping and checking for timeouts\n\t \t\tnew Runnable() {\t\t\t\t\t\t//if the user is logged in for too long without sending any requests-> logout\n\t\t\t public void run() {\t\t\t\t\t\n\t\t\t \tcheckforLogout(false);\n\t\t\t \n\t\t\t }\n\t\t\t }\n\t \t\t, LOGOUT_INTERVAL, LOGOUT_INTERVAL, TimeUnit.SECONDS);\n\t\t\t \n\n\n\t}", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public static void main(String[] args) {\n\n SlidingWindowDemo demo = new SlidingWindowDemo();\n\n// LeakyBucketDemo demo = new LeakyBucketDemo();\n\n// TokenBucketDemo demo = new TokenBucketDemo();\n\n\n\n\n\n for (int i = 0; i < 10000; i++) {\n try {\n Thread.sleep(1L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(demo.grant());\n System.out.println(System.currentTimeMillis());\n }\n }", "public static Map[] main(String[] args) {\n String mUserID = \"\";\n String mPassword = \"\";\n String mURL = \"\";\n String mConnection = \"\";\n String mDBName = \"\";\n String mPin = \"\";\n O2GSession mSession = null;\n \n // Check for correct number of arguments\n if (args.length < 4) {\n System.out.println(\"Not Enough Parameters!\");\n System.out.println(\"USAGE: [user ID] [password] [URL] [connection] [session ID (if needed)] [pin (if needed)]\");\n System.exit(1);\n }\n \n // Get command line arguments\n mUserID = args[0];\n mPassword = args[1];\n mURL = args[2];\n mConnection = args[3];\n if (args.length > 4) {\n mDBName = args[4];\n }\n if (args.length > 5) {\n mPin = args[5];\n }\n \n // Create a session, subscribe to session listener, login, get open positions information, logout\n try {\n \n // Create a session\n mSession = O2GTransport.createSession();\n \n // Specify that your session uses a table manager\n mSession.useTableManager(O2GTableManagerMode.YES, null);\n SessionStatusListener statusListener = new SessionStatusListener(mSession, mDBName, mPin);\n mSession.subscribeSessionStatus(statusListener);\n \n // Login into the trading server\n mSession.login(mUserID, mPassword, mURL, mConnection);\n while (!statusListener.isConnected() && !statusListener.hasError()) {\n Thread.sleep(50);\n }\n if (!statusListener.hasError()) {\n \n // Get an instance of table manager\n O2GTableManager tableManager = mSession.getTableManager();\n \n // Check the table manager status\n while (tableManager.getStatus() != O2GTableManagerStatus.TABLES_LOADED &&\n tableManager.getStatus() != O2GTableManagerStatus.TABLES_LOAD_FAILED) {\n Thread.sleep(50);\n }\n if (tableManager.getStatus() == O2GTableManagerStatus.TABLES_LOADED) {\n\n // Get an instance of the O2GTradesTable\n O2GMessagesTable messagesTable = (O2GMessagesTable)tableManager.getTable(O2GTableType.MESSAGES);\n \n // Get row level information\n Data = new Map[messagesTable.size()];\n for (int i = 0; i < messagesTable.size(); i++) {\n HashMap<String, Object> responseData = new HashMap<String, Object>();\n O2GMessageTableRow message = messagesTable.getRow(i);\n responseData.put(\"MsgID\" , message.getMsgID());\n responseData.put(\"Time\" , message.getTime());\n responseData.put(\"From\" , message.getFrom());\n responseData.put(\"Type\" , message.getType());\n responseData.put(\"Feature\" , message.getFeature());\n responseData.put(\"Text\" , message.getText());\n responseData.put(\"Subject\" , message.getSubject());\n responseData.put(\"HTMLFragmentFlag\" , message.getHTMLFragmentFlag());\n Data[i] = responseData;\n System.out.println(responseData);\n// System.out.println(Data[i]);\n }\n \n// // Create an instance of a table listener class\n// TableListener tableListener = new TableListener();\n// \n// // Subscribe table listener to table updates\n// tradeTable.subscribeUpdate(O2GTableUpdateType.UPDATE, tableListener);\n// tradeTable.subscribeUpdate(O2GTableUpdateType.INSERT, tableListener);\n// \n// // Process updates (see TableListener.java)\n// Thread.sleep(10000);\n// \n// // Unsubscribe table listener\n// tradeTable.unsubscribeUpdate(O2GTableUpdateType.UPDATE, tableListener);\n// tradeTable.unsubscribeUpdate(O2GTableUpdateType.INSERT, tableListener);\n\n mSession.logout();\n while (!statusListener.isDisconnected()) {\n Thread.sleep(50);\n }\n }\n }\n mSession.unsubscribeSessionStatus(statusListener);\n mSession.dispose();\n// System.exit(1);\n \t\treturn Data;\n } catch (Exception e) {\n System.out.println (\"Exception: \" + e.getMessage());\n// System.exit(1);\n return Data;\n }\n\t}", "private void start() {\n\n\t}", "@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "@Test\r\n public void testGetMostRecentCompletedSession() {\r\n System.out.println(\"getMostRecentCompletedSession\");\r\n assertNotNull(sm);\r\n \r\n ISimulationSessionInfo result = sm.getMostRecentCompletedSession();\r\n assertTrue(result.getFinishTime() >= sm.getSession(\"test1\").getFinishTime());\r\n assertTrue(result.getFinishTime() >= sm.getSession(\"test2\").getFinishTime());\r\n }", "private void next() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(2, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public abstract SessionSpec generateSessionSpec() throws MsControlException;", "public void startSimulation(){\n Enumeration enumAgents = agents.elements();\n\n while (enumAgents.hasMoreElements()) {\n ProcessData data = (ProcessData) enumAgents.nextElement();\n createThreadFor(data.agent).start();\n }\n }", "void gotoMain();", "protected abstract String scheduler_next();", "public Server()\n {\n clientSessions = new ArrayList();\n }", "SessionTask(long scheduleNext) {\n delayBeforeNext = scheduleNext;\n taskid = taskcount++;\n }", "public void start() throws InterruptedException {\n System.out.println(\"WELCOME TO THE 0-MILE CLIENT DATABASE\");\n //thread.sleep added for aesthetics\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.println(\"\");\n System.out.println(\"1- Login\");\n System.out.println(\"2- Register\");\n System.out.println(\"3- Administrator Login\");\n System.out.println(\"4- Exit the database\");\n\n System.out.println(\"Please enter 1 to Login, 2 to Register, 3 to Login as an Administrator, or 4 to Exit the system:\");\n while (!scanInt.hasNextInt()) {\n System.out.println(\"Not a valid input!\");\n System.out.println(\"Please enter 1 to Login:\");\n System.out.println(\"2 to register:\");\n System.out.println(\"3 to login as administrator:\");\n System.out.println(\"4 to exit the system:\");\n scanInt.next();\n }\n //based on the users choice perform different sections of the application\n int logOrreg = scanInt.nextInt();\n if (logOrreg == 1) {\n\n l.login();\n run();\n\n } else if (logOrreg == 2) {\n l.register();\n run();\n } else if (logOrreg == 3) {\n l.Adminlogin();\n runAdmin();\n } else if (logOrreg == 4) {\n System.out.println(\"Thank you for using the 0-MILE Client Database and goodbye!\");\n System.exit(0);\n } else {\n System.out.println(\"Not a valid option.\");\n start();\n }\n }" ]
[ "0.6544945", "0.6389057", "0.60314673", "0.6001268", "0.58544075", "0.584698", "0.58433443", "0.5803247", "0.578226", "0.577024", "0.5690853", "0.55903023", "0.5561625", "0.5544395", "0.55428183", "0.55304086", "0.55293524", "0.55089694", "0.5502198", "0.544968", "0.5430016", "0.54279757", "0.5421659", "0.5419374", "0.5383774", "0.53570724", "0.53414184", "0.534069", "0.5331289", "0.532764", "0.532584", "0.53075594", "0.52794945", "0.5270346", "0.5253162", "0.5252668", "0.5234044", "0.5234044", "0.52149194", "0.5210658", "0.5210498", "0.5209748", "0.5203277", "0.52032405", "0.5201532", "0.51994884", "0.51984996", "0.51953256", "0.51925886", "0.5178066", "0.517659", "0.51734716", "0.5156882", "0.5154723", "0.51533264", "0.5139558", "0.51387393", "0.5136446", "0.51358664", "0.5130028", "0.5129515", "0.51208085", "0.5119213", "0.5113312", "0.5108298", "0.5108298", "0.5108298", "0.5098665", "0.5095835", "0.50944644", "0.5092036", "0.5087634", "0.508104", "0.5079667", "0.5078548", "0.50777596", "0.50719243", "0.5069651", "0.5065139", "0.5058813", "0.50585395", "0.5057092", "0.50551254", "0.50463533", "0.50353074", "0.50255036", "0.5024939", "0.5023413", "0.50195634", "0.5016966", "0.5007982", "0.50038683", "0.5003619", "0.49887174", "0.49845785", "0.49841914", "0.49800742", "0.4973212", "0.49705356", "0.49667972", "0.49659878" ]
0.0
-1
Consecutive_sessions a_session= new Consecutive_sessions (); a_session.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new Lecturer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\r\n\t\t\tactivityStartTimestamp = startTimestamp + lastCommandTimestamp;\r\n//\t\t\tSystem.out.println(\"Session started\");\r\n\t\t\tActivitySessionStarted.newCase(this, activityStartTimestamp);\r\n//\t\t\tDate startDate = new Date(); // make this global also\r\n\t\t\t startDate = new Date(); // make this global also\r\n\r\n//\t\t\tDate endDate = new Date(); // in case we get no more commands or we terminate early\r\n//\t\t\tint idleCycles = 0; // make this a global so eclipse termination can access it\r\n\t\t\t// make this global also\r\n\t\t\tendDate = new Date(); // in case we get no more commands or we terminate early\r\n\t\t\tidleCycles = 0; // make this a global so eclipse termination can access it\r\n\t\t\twhile(idleCycles < IDLE_CYCLES_THRESHOLD) {\r\n\r\n//\t\t\twhile(idleCycles < 10) {\r\n\t\t\t\t\r\n\t\t\t\tidleLastCycle = true;\r\n\t\t\t\ttry {\r\n//\t\t\t\t\tThread.sleep(/*60 * */ 1000); // why is 60 removed?\r\n\t\t\t\t\tThread.sleep(IDLE_CYCLE_GRANULARITY); // why is 60 removed?\r\n\r\n\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t\tif(idleLastCycle) {\r\n\t\t\t\t\tidleCycles++;\r\n\t\t\t\t\tIdleCycleDetected.newCase(this, startTimestamp + lastCommandTimestamp, idleCycles);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tendDate = new Date(); // this seems wrong, we have not ended session\r\n\t\t\t\t\t// actually it is correct as this is ths last cycle in which the session was active\r\n//\t\t\t\t\tidleCycles = 0;\r\n\t\t\t\t\tinitActivitySession();\r\n\t\t\t\t}\r\n\t\t\t}\r\n//\t\t\tDate endDate = new Date(); // current time\r\n//\r\n//\t\t\tinActivitySession = false;\r\n//\t\t\tsessionEnded(startDate, endDate);\r\n\t\t\trecordEndSession();\r\n\t\t}", "public abstract Thread startSession();", "public createsessions() {\n initComponents();\n loadlec();\n loadlec2();\n\n // subcode() ;\n loadsubname();\n loadsubname1();\n\n loadtag();\n loadtag2();\n\n loadgrpid();\n loadgrpid2();\n\n loadsubgrpid1();\n loadsubgrpid2();\n\n }", "Session begin();", "@Test\r\n @SuppressWarnings(\"SleepWhileInLoop\")\r\n public void testStartSimulationSession() {\r\n System.out.println(\"startSimulationSession\");\r\n assertNotNull(sm);\r\n assertEquals(SimulationState.READY, sm.getSimulationSessionState(\"test3\"));\r\n \r\n sm.addSimulatorToSession(\"test3\", Simulators.NUATMOS, \"v1\", true);\r\n //sm.addSimulatorToSession(\"test3\", Simulators.DISPERFIRE, true);\r\n //sm.addSimulatorToSession(\"test3\", Simulators.MEB, true);\r\n \r\n boolean result = sm.startSimulationSession(\"test3\", false);\r\n assertTrue(result);\r\n \r\n result = sm.startSimulationSession(\"test5\", false);\r\n assertFalse(result);\r\n \r\n Iterator<? extends ISimulationJobInfo> jobs = sm.getSession(\"test3\").iterator();\r\n \r\n for(ISimulationJobInfo job; jobs.hasNext();) {\r\n job = jobs.next();\r\n assertEquals(job.getRetVal(), 0);\r\n }\r\n }", "public void sessionStarted() {\n\t\t\r\n\t}", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "public void testStagesSession() {\n\n resetCounter();\n\n try {\n FixedResolver tr0 = new FixedResolver(\"127.0.0.1\", 54222);\n FixedTransportManager ftm0 = new FixedTransportManager(tr0);\n TestMediaManager tmm0 = new TestMediaManager(ftm0);\n tmm0.setPayloads(getTestPayloads1());\n List<JingleMediaManager> trl0 = new ArrayList<JingleMediaManager>();\n trl0.add(tmm0);\n\n FixedResolver tr1 = new FixedResolver(\"127.0.0.1\", 54567);\n FixedTransportManager ftm1 = new FixedTransportManager(tr1);\n TestMediaManager tmm1 = new TestMediaManager(ftm1);\n tmm1.setPayloads(getTestPayloads2());\n List<JingleMediaManager> trl1 = new ArrayList<JingleMediaManager>();\n trl1.add(tmm1);\n\n JingleManager man0 = new JingleManager(getConnection(0), trl0);\n JingleManager man1 = new JingleManager(getConnection(1), trl1);\n\n man1.addJingleSessionRequestListener(new JingleSessionRequestListener() {\n /**\n * Called when a new session request is detected\n */\n public void sessionRequested(final JingleSessionRequest request) {\n System.out.println(\"Session request detected, from \" + request.getFrom() + \": accepting.\");\n try {\n // We accept the request\n JingleSession session1 = request.accept();\n\n session1.addListener(new JingleSessionListener() {\n public void sessionClosed(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionClosed().\");\n }\n\n public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {\n System.out.println(\"sessionClosedOnError().\");\n }\n\n public void sessionDeclined(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionDeclined().\");\n }\n\n public void sessionEstablished(PayloadType pt, TransportCandidate rc, final TransportCandidate lc,\n JingleSession jingleSession) {\n incCounter();\n System.out.println(\"Responder: the session is fully established.\");\n System.out.println(\"+ Payload Type: \" + pt.getId());\n System.out.println(\"+ Local IP/port: \" + lc.getIp() + \":\" + lc.getPort());\n System.out.println(\"+ Remote IP/port: \" + rc.getIp() + \":\" + rc.getPort());\n }\n\n public void sessionMediaReceived(JingleSession jingleSession, String participant) {\n // Do Nothing\n }\n\n public void sessionRedirected(String redirection, JingleSession jingleSession) {\n }\n });\n\n session1.startIncoming();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // Session 0 starts a request\n System.out.println(\"Starting session request, to \" + getFullJID(1) + \"...\");\n JingleSession session0 = man0.createOutgoingJingleSession(getFullJID(1));\n\n session0.addListener(new JingleSessionListener() {\n public void sessionClosed(String reason, JingleSession jingleSession) {\n }\n\n public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {\n }\n\n public void sessionDeclined(String reason, JingleSession jingleSession) {\n }\n\n public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc,\n JingleSession jingleSession) {\n incCounter();\n System.out.println(\"Initiator: the session is fully established.\");\n System.out.println(\"+ Payload Type: \" + pt.getId());\n System.out.println(\"+ Local IP/port: \" + lc.getIp() + \":\" + lc.getPort());\n System.out.println(\"+ Remote IP/port: \" + rc.getIp() + \":\" + rc.getPort());\n }\n\n public void sessionRedirected(String redirection, JingleSession jingleSession) {\n }\n\n public void sessionMediaReceived(JingleSession jingleSession, String participant) {\n // Do Nothing\n }\n });\n session0.startOutgoing();\n\n Thread.sleep(20000);\n\n assertTrue(valCounter() == 2);\n\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"An error occured with Jingle\");\n }\n }", "public synchronized void sessionStart(int i){\n\t\tif(i!=0){\n\t\t\twhile(allExited==false){\n\t\t\t\ttry {\n\t\t\t\t\twait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tsessionStarted = true;\n\t\t\tsessionEnded = false;\n\t\t\tallExited=false;\t\t\t\n\t\t}\n\t\telse{\n\t\t\tsessionStarted=true;\n\t\t\tsessionEnded = false;\n\t\t}\n\t\tint j = i+1;\n\t\tSystem.out.println(\"Session \"+j+\" has been started by \"+Thread.currentThread().getName());\n\t\tnotifyAll();\n\t}", "int getActiveSessions();", "@Test\r\n public void testInitSession() {\r\n System.out.println(\"initSession\");\r\n assertNotNull(sm);\r\n \r\n boolean result = sm.initSession(\"test1\", programsHome, programsHome + \"files1/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test2\", programsHome, programsHome + \"files2/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test3\", programsHome, programsHome + \"files3/\", requester);\r\n assertFalse(result);\r\n \r\n result = sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n assertTrue(result);\r\n \r\n sm.removeSession(\"test4\");\r\n }", "RunningTasks getActiveHarvestingSessions() throws RepoxException;", "public void incrementExcepionalSessions() {\n exceptionalSessions++;\n }", "public int getActiveSessions();", "public abstract int getNumSessions();", "static void startSession() {\n /*if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"startSession() called\");\n }*/\n if (!isContextAndApiKeySet(\"startSession()\")) {\n return;\n }\n final long now = System.currentTimeMillis();\n\n runOnLogWorker(new Runnable() {\n @Override\n public void run() {\n logWorker.removeCallbacks(endSessionRunnable);\n long previousEndSessionId = getEndSessionId();\n long lastEndSessionTime = getEndSessionTime();\n if (previousEndSessionId != -1\n && now - lastEndSessionTime < Constants.Z_MIN_TIME_BETWEEN_SESSIONS_MILLIS) {\n DbHelper dbHelper = DbHelper.getDatabaseHelper(context);\n dbHelper.removeEvent(previousEndSessionId);\n }\n //startSession() can be called in every activity by developer, hence upload events and sync datastore\n // only if it is a new session\n //syncToServerIfNeeded(now);\n startNewSessionIfNeeded(now);\n\n openSession();\n\n // Update last event time\n setLastEventTime(now);\n //syncDataStore();\n //uploadEvents();\n\n }\n });\n }", "void sessionHeartbeat() throws IOException, InterruptedException;", "PossessionPool captured(Possession possesion);", "public void start2();", "@Test\n public void testStartSession() {\n startSession();\n }", "public int actions()\n {\n switch (mState) \n {\n case cProcessInit:\n out();\n if (cSimTimeMicro < cClientCount/cClientTransPerMicro) {\n cSimTimeMicro = cClientCount/cClientTransPerMicro;\n System.out.println(\"\\nSimulation time is too short! It has been reset to \" + cSimTimeMicro + \" micro\\n\");\n }\n cMaxRequestsToSend = (int) (cClientTransPerMicro * cSimTimeMicro);\n System.out.println(\"cMaxRequestsToSend = \" + cMaxRequestsToSend);\n \n if (cTransLogMon)\n {\n System.out.println(cTransMonHeader);\n System.out.println(\"----------------------------------------------------------------------------------------\");\n }\n\n// if (cTick)\n// {\n// activate(new Tick());\n// }\n activate(mTaxJvm);\n return cMeJvm;\n \n case cMeJvm:\n activate(mMeJvm);\n return cMeStandbyJvm;\n\n case cMeStandbyJvm:\n activate(mMeStandbyJvm);\n return cJvmActivated;\n\n case cJvmActivated:\n mClientList = headToArray(mClient.mProcess, new Process[0]);\n \n //double tInterval = 500/tClientList.length; //500 is the minimum response time\n //double tInterval = 1.0/(cClientCount*cClientTransPerMicro); \n \n double tInterval = 1.0D*1000*1000/(cClientCount); //evenly distributed client over 1 second interval\n \n //hold until connect next client to the system \n mHoldTimeBetweenClients = cRandom.normal(tInterval, tInterval*0.3);\n mFor_i = -1;\n // Flow into loop\n\n case cForNext:\n ++mFor_i;\n //for (int i = 0; i < tClientList.length; ++i) //For every client\n if (mFor_i >= mClientList.length)\n {\n return cForEnd;\n }\n\n tClientStartTime = time();\n activate((Process) mClientList[mFor_i]); \n return cNewClient;\n \n case cNewClient:\n hold(mHoldTimeBetweenClients);\n return cForNext;\n\n case cForEnd:\n //hold(cRunTimeMicro);\n //return cHoldRunTimeMicro;\n\n case cHoldRunTimeMicro:\n cActualRunTimeMicro = cSimTimeMicro * 2;\n hold(cActualRunTimeMicro);\n return cHoldRunTime;\n \n case cHoldRunTime:\n if (cTick)\n {\n System.out.println(\"\\nSimulation time = \" + time()/(1000.0*1000.0) + \" sec.\");\n System.out.println(\"Requests = \" + cRequests);\n System.out.println(\"cRequestsToSend = \" + cMaxRequestsToSend);\n System.out.println(\"Av.tax time = \" + cTaxSum/cRequests);\n System.out.println(\"Av.client time = \" + cClientSum/cRequests);\n System.out.println(\"\\nExecution time: \" + ((System.currentTimeMillis() - cStartTime)/1000.0) + \" secs.\"); \n }\n return cProcessDone;\n }\n return cProcessError;\n }", "@Test \n\t public static void Execute_Sessions() throws Exception\n\t {\n\t\t int MYTHREADS = 30; \n\t\t // ExecutorService pool = Executors.newFixedThreadPool(MYTHREADS); \n\t\t //CountDownLatch latch = new CountDownLatch(totalNumberOfTasks);\n\t\t ExecutorService executor = Executors.newFixedThreadPool(MYTHREADS);\n\t\t \n\t\t// CountDownLatch latch = new CountDownLatch(15);\n\t\t //ExecutorService executor = Executors.newFixedThreadPool(13);\n\t\t// ExecutorService pool = Executors.newFixedThreadPool(MYTHREADS); \n\t\t \n\t\t int NumberofTestScripts = 0;\n\t\t\tExcelApiTest3 eat = new ExcelApiTest3();\n\t\t\tNumberofTestScripts=eat.getRowCount(\"E://Batch2Source//Regression1.xls\",\"Sheet1\");\n\t\t\tSystem.out.println(\"Numberof TestScripts Count Regression1.xls :\"+NumberofTestScripts);\n\t\t\t\n\t\t\t\t\t\n\t\t\tfor (int iRow1=1;iRow1<NumberofTestScripts;iRow1++) // Number of Test Cases in Regression Sheet\n\t\t\t{\n\t\t\t\tRunnable worker = new DriverTest124(iRow1);\n\t\t\t\tThread.sleep(3000);\n\t\t\t\t\n\t \t\texecutor.execute(worker);\n\t \t\t\n\n\t\t\t\t//executor.awaitTermination(5, TimeUnit.HOURS);\n\t \t\t//Runnable worker = new WorkerThread(\"\" + iRow1);\n\t // executor.execute(worker);\n\t\t\t\t//Future f = executor.submit(new DriverTest124(iRow1));\n\t\t\t\t//f.get(60,TimeUnit.SECONDS);\n\t\t\t\t//Thread.sleep(9000);\n\t \t\n\t\n\t\t\t\t/*\n\t \t\tSystem.out.println(\"First Thread ID:\"+Thread.currentThread().getId());\n\t\t\t\tSystem.out.println(\"First Thread status:\"+Thread.currentThread().getState());\n\t\t\t\tSystem.out.println(\"First Thread Name:\"+Thread.currentThread().getName());\n\t\t\t\t\n\t\t\n\t\t\t\t String str=\"Row Iteration in for loop- \" + String.valueOf(iRow1);\n\t\t\t\t System.out.println(\"Row Iteration in for loop- \"+str);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Thread ID:\"+Thread.currentThread().getId());\n\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getState());\n\t\t\t\tSystem.out.println(\"Thread Name:\"+Thread.currentThread().getName());*/\n\t\t\t\t\n\t\t\t\t/*if(Thread.currentThread().isInterrupted())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getId());\n\t\t\t\t\tSystem.out.println(\"Thread status:\"+Thread.currentThread().getState());\n\t\t\t\t}*/\n\t\t\t\t\n\t \t\n\t\t\t\t//f.wait();\n\t\t\t\t//System.out.println(\"Task Status - :\"+f.isCancelled());\n\t\t\t\t\n\t\t\t\t\t//f.isDone();\n\t \t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t/*try {\n\t\t\t latch.await();\n\t\t\t} catch (InterruptedException E) {\n\t\t\t\t\n\t\t\t}\n\t\t\t*/\n\t\t\t\n\t\t\tSystem.out.println(\"Finish tasks\");\n\t\t\t\n\t\t\t//awaitTerminationAfterShutdown\n\t\t\t\t\t\n\t\t\n\t\t\texecutor.shutdown();\n\t\t\texecutor.awaitTermination(5, TimeUnit.HOURS);\n\t\t\t\n\t\t\t// Wait until all threads are finish\n\t\t//\twhile (!executor.isTerminated()) {\n\t \n\t\t//\t}\n\t\t\tSystem.out.println(\"\\nFinished all threads\");\n\t\t\t\n\t\t\t\n\t\t}", "public void launchNewSession(){\r\n framework.launchNewMAV(getArrayMappedToData(), this.experiment, \"Multiple Experiment Viewer - Cluster Viewer\", Cluster.GENE_CLUSTER);\r\n }", "public WebSession(){\n\tstartmodel = new StartModel();\n\tgraphmodel = new GraphModel();\n\treportmodel = new ReportModel();\n\tsetupmodel = new SetupModel();\n }", "public synchronized void startCinema(){\n\t\twhile(sessionStarted==false){\t//Deepthought thread checks every time whether session thread has started a session after being\n\t\t\t\t\t\t\t\t\t\t//woken up.\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Cinema is yet to be started by \"+Thread.currentThread().getName());\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Cinema has been started by \"+Thread.currentThread().getName());\n\t\tcinemaEnded = false;\t\t\n\t}", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "private void updateActiveSession(Session s)\r\n\t{\r\n\t\t\r\n\t\t/**\r\n\t\t * Part Two\r\n\t\t */\r\n\t\t//TODO: BMH\r\n\t\t\r\n\t\t/**\r\n\t\t * Part Three\r\n\t\t */\r\n\t\ttry\r\n\t\t{\r\n\t\t\ts.serverSock.setSoTimeout(1);\r\n\t\t\tSocket client = s.serverSock.accept();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tOutput.processMessage(\"Accepted a connection from: \"+\r\n\t\t \t\tclient.getInetAddress(), Constants.Message_Type.debug);\r\n\t\t\t\r\n\t\t\r\n\t\t\tif (client != null)\r\n\t\t\t{\r\n\t\t\t\tSessionUtils.acceptNewClient(client, s);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}", "public void incrementUnexpectedSessions() {\n unexpectedSessions++;\n }", "void sessionCreated(SessionEvent se);", "public String execute(){\n HttpSession session = request.getSession();\n System.out.println(request);\n System.out.println(response);\n System.out.println(application);\n System.out.println(session);\n\n return null;\n\n}", "@Test\r\n public void testAddSimulatorToSession() {\r\n System.out.println(\"addSimulatorToSession\");\r\n assertNotNull(sm);\r\n sm.initSession(\"test4\", programsHome, programsHome + \"files4/\", requester);\r\n \r\n boolean result = sm.addSimulatorToSession(\"test4\", Simulators.NUATMOS, \"v1\", true);\r\n assertTrue(result);\r\n \r\n result = sm.addSimulatorToSession(\"test5\", Simulators.NUATMOS, \"v1\", true);\r\n assertFalse(result);\r\n \r\n sm.removeSession(\"test4\");\r\n \r\n }", "public long getSessionCounter();", "@Test\n public void f() throws InterruptedException{\n\t \n\t Login1 obj2 = new Login1(driver);\n\t obj2.login1();\n\t \n\t \n\t SignIn1 obj3 = new SignIn1(driver);\n\t obj3.signin_1();\n\t \n\t Product1 obj4 = new Product1(driver);\n\t obj4.product_1();\n\t Thread.sleep(8000);\n\t \n\t Cart obj5 = new Cart(driver);\n\t obj5.cart_1BillingAddress();\n\t \n\t \n }", "void openSuperMarketSimulation()\r\n\t{\n\t\t\r\n\t\tqueueManager = new QueueManager(shoppingQueue);\r\n\t\tdataManager = new DataCollector();\r\n\t\ttimerLoop.start();\r\n\t\tsuperMarketTime.timerStart();\r\n//\t\twhile(timerLoop.isRunning())\r\n//\t\t{\r\n//\t\t\t\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//CLOSE THE MARKET :(((\r\n\t}", "static void test2() {\n\n System.out.println( \"Begin test2. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n System.out.println( \"TODO: write a more involved test here.\" );\n //\n // Create a GremlinsBridge of capacity 3.\n // Set an OPTIONAL, test delay to stagger the start of each mogwai.\n // Create the Mogwais and store them in an array.\n // Run them by calling their start() method.\n // Now, the test must give the mogwai time to finish their crossings.\n //\n System.out.println( \"TODO: follow the pattern of the example tests.\" );\n System.out.println( \"\\n=============================== End test2.\" );\n }", "public static void main(String args[])\n {\n try {\n StartingFrame.iter();\n }\n catch (Exception e)\n {\n\n }\n Main object=new Main();\n\n }", "Session getCurrentSession();", "Session getCurrentSession();", "long start();", "public static void main(String[] args){\n//\t\tnew Selection().start();\n//\t\tnew Selection().start();\n//\t\tnew Insertion().start();\n\t\tnew Insertion().start();\n\t\tnew Insertion().start();\n\t\tnew Insertion().start();\n\t}", "public static String _process_globals() throws Exception{\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv5 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 10;BA.debugLine=\"Private TimerAnimacionEntrada As Timer\";\n_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv6 = new anywheresoftware.b4a.objects.Timer();\n //BA.debugLineNum = 11;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n session = new SessionManagement(getApplicationContext());\n\n redirect();\n\n // close this activity\n finish();\n }", "@Test\r\n public void testGetSimulationSessionState() {\r\n System.out.println(\"getSimulationSessionState\");\r\n assertNotNull(sm);\r\n \r\n SimulationState result = sm.getSimulationSessionState(\"test1\");\r\n assertEquals(SimulationState.FINISHED, result);\r\n \r\n result = sm.getSimulationSessionState(\"test2\");\r\n assertEquals(SimulationState.FINISHED, result);\r\n \r\n result = sm.getSimulationSessionState(\"test3\");\r\n assertEquals(SimulationState.READY, result);\r\n }", "@Test\r\n @SuppressWarnings(\"SleepWhileInLoop\")\r\n public void testRemoveCompletedSessions() {\r\n System.out.println(\"removeCompletedSessions\");\r\n assertNotNull(sm);\r\n \r\n Map<String, ISimulationSessionInfo> result = sm.removeCompletedSessions();\r\n assertNotNull(result.get(\"test1\"));\r\n assertNotNull(result.get(\"test2\"));\r\n assertNull(result.get(\"test3\"));\r\n assertNull(sm.getSession(\"test1\"));\r\n assertNull(sm.getSession(\"test2\"));\r\n assertNotNull(sm.getSession(\"test3\"));\r\n }", "public SessionManager ()\r\n\t{\r\n\t\tactiveSessions = new ArrayList<Session>();\r\n\t}", "public void setSessionCounter(long sessionCounter);", "static void beginNewSession() {\n SESSION_ID = null;\n Prefs.INSTANCE.setEventPlatformSessionId(null);\n\n // A session refresh implies a pageview refresh, so clear runtime value of PAGEVIEW_ID.\n PAGEVIEW_ID = null;\n }", "IDAOSession createNewSession();", "public static void main(String[] args) {\n\t\t\n\t\tRunnable r1 = () -> {\n\t\t\tSystem.out.println(\"I am running in \" + Thread.currentThread().getName());\n\t\t\t//singleton.getInstance();\n\t\t\tnostatic ns = new nostatic();\n\t\t\t\n\t\t\t\n\t\t\tns.incrementNum();\n\t\t};\n\t\t\n\t\tThread[] tarray = new Thread[100];\n\t\t\n\t\tfor( int i =0 ;i < 10 ; i++)\n\t\t{\n\t\t\ttarray[i] = new Thread(r1); \n\t\t\ttarray[i].start();\t\n\t\t}\n\t\t\t\t\n\t\t//System.out.println(\" end\" + t1.getName() + \" 2nd thread name \" + t2.getName());\n\t}", "void start ();", "@Override // java.util.concurrent.Callable\n public AppRaterSession call() {\n return this.a.a.getLastSession();\n }", "void recordSessionTime(DefaultSession session);", "public String getSessionState();", "@Override\n\t\t\tpublic void handleNewSession() throws Exception {\n\t\t\t\t\n\t\t\t}", "public Session[] findSessions();", "private static void startNewSession(final long timestamp) {\n openSession();\n\n sessionId = timestamp;\n //Log.i(\"sessionId\",\"updated at startNewSession()\");\n SharedPreferences preferences = CommonUtils.getSharedPreferences(context);\n preferences.edit().putLong(Constants.Z_PREFKEY_LAST_END_SESSION_ID, sessionId).apply();\n\n logEvent(START_SESSION_EVENT, null, null, timestamp, false);\n logWorker.post(new Runnable() {\n @Override\n public void run() {\n sendEventToServer(START_SESSION_EVENT, timestamp, Constants.Z_START_SESSION_EVENT_LOG_URL, true);\n }\n });\n\n }", "public void login2() {\n System.out.println(\"a\");\r\n System.out.println(\"b\");\r\n System.out.println(\"a\");\r\n System.out.println(\"a\");\r\n }", "public abstract I_SessionInfo[] getSessions();", "public static void selfTest() {\n\n\t\tSystem.out.println(\"Got to begin test\");\n\n\t\tSystem.out.println(\"Test 1 speaker 1 listener\");\n\t\tCommunicator comm = new Communicator();\n\t\tKThread threadSpeaker = new KThread(new Speaker(comm, 100));\n\t\tthreadSpeaker.setName(\"speaker\").fork();\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built speaker\");\n\t\tKThread threadListener = new KThread(new Listener(comm));\n\t\tthreadListener.setName(\"Thread listener\").fork();\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built listener\");\n\n\t\tthreadListener.join();\n\t\tthreadSpeaker.join();\n\t\tSystem.out.println(\"Did the join\");\n\n\t\tSystem.out.println(testa);\n\t\t//testing for 1 speaker 1 listener\n\n\t\tSystem.out.println(\"Test many speaker many listener\");\n\t\tCommunicator comm1 = new Communicator();\n\n\t\tKThread speaklist[] = new KThread[10];\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tspeaklist[i] = new KThread(new Speaker(comm1, i));\n\t\t\tspeaklist[i].setName(\"Speaker \" + i).fork();\n\t\t\t//System.out.println(i);\n\t\t}\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built speaker list\");\n\n\t\tKThread listenlist[] = new KThread[10];\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tlistenlist[i] = new KThread(new Listener(comm1));\n\t\t\tlistenlist[i].setName(\"Listener \" + i).fork();\n\t\t}\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built listener list\");\n\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tspeaklist[i].join();\t\t\n\t\t\tlistenlist[i].join();\n\t\t\tSystem.out.println(\"joined lists\");\n\t\t\tSystem.out.println(testa);\n\t\t}\n\t\t//test many speaker many listener\n\t\t\n\t\tSystem.out.println(\"Test many speaker 1 listener\");\n\t\tCommunicator comm2 = new Communicator();\n\t\t\n\t\tKThread speaklist1[] = new KThread[10];\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tspeaklist[i] = new KThread(new Speaker(comm2, i + 1));\n\t\t\tspeaklist[i].setName(\"Speaker \" + i).fork();\n\n\t\t}\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built speaker list 2\");\n\t\t\n\t\tKThread singleListener = new KThread(new Listener(comm2));\n\t\tsingleListener.setName(\"Listener\").fork();\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built listener\");\n\t\t\n\t\tspeaklist1[0].join();\n\t\tsingleListener.join();\n\t\tSystem.out.println(\"joined one on one\");\n\t\tSystem.out.println(testa);\n\t\t\n\t\tfor(int i = 1; i < 10; i++) {\n\t\t\tspeaklist[i].join();\n\t\t\tsingleListener.join();\n\t\t\tSystem.out.println(\"joined on \" + i);\n\t\t\tSystem.out.println(testa);\n\t\t}\n\t\t//test many speaker 1 listener\n\t\t\n\t\t\n\t\tSystem.out.println(\"Test one speaker many listener\");\n\t\tCommunicator comm3 = new Communicator();\n\t\t\n\t\tKThread singlespeaker = new KThread(new Speaker(comm3, 1));\n\t\tsinglespeaker.setName(\"Speaker\").fork();\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built speaker\");\n\t\t\n\t\tKThread listenlist1[] = new KThread[10];\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tlistenlist1[i] = new KThread(new Listener(comm3));\n\t\t\tlistenlist1[i].setName(\"Listener \" + i).fork();\n\t\t}\n\t\tKThread.yield();\n\t\tSystem.out.println(\"Built listener list\");\t\n\t\t\n\t\tsinglespeaker.join();\n\t\tlistenlist1[0].join();\n\t\tSystem.out.println(\"joined\");\n\t\tSystem.out.println(testa);\n\t\t\n\t\tfor(int i = 1; i < 10; i++) {\n\t\t\tsinglespeaker.join();\n\t\t\tlistenlist1[i].join();\n\t\t\tSystem.out.println(\"joined on \" + i);\n\t\t\tSystem.out.println(testa);\n\t\t}\n\t\t//test one speaker many listener\n\t\t\n\t}", "public static void main(String[] args){\n Executor game = new Executor();\n\n System.out.println();\n System.out.println();\n game.introduction();\n\n while (! game.gameOver){\n game.day();\n\n if (! game.gameOver){\n wait(2000);\n game.endOfDay();\n }\n\n }\n\n }", "static void test0() {\n\n System.out.println( \"Begin test0. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n // Create a GremlinsBridge of capacity 3.\n GremlinsBridge gremlinBridge = new GremlinsBridge( 3 );\n\n // Set an optional, test delay to stagger the start of each mogwai.\n int delay = 4000;\n\n // Create the Mogwais and store them in an array.\n Thread peds[] = {\n new Mogwai( \"Al\", 3, SIDE_ONE, gremlinBridge ),\n new Mogwai( \"Bob\", 4, SIDE_TWO, gremlinBridge ),\n };\n\n for ( int j = 0; j < peds.length; ++j ) {\n // Run them by calling their start() method.\n try {\n peds[j].start();\n init.sleep( delay );\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n // Now, the test must give the mogwai time to finish their crossings.\n for ( int j = 0; j < peds.length; ++j ) {\n try {\n peds[j].join();\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n System.out.println( \"\\n=============================== End test0.\" );\n return;\n }", "public void getTestSessions(){\n TestSessionDAO sessionsManager = DAOFactory.getTestSessionDAO();\n //populate with values from the database\n if(!sessionsManager.readInactiveTestSessions(testSessions)){\n //close the window due to read failure\n JOptionPane.showMessageDialog(rootPanel, \"Failed to read test sessions from database. Please check your internet connection and try again.\");\n System.exit(-2);\n }\n }", "public void start() {\n\r\n }", "static void test1() {\n\n System.out.println( \"Begin test1. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n // Create a GremlinsBridge of capacity 3.\n GremlinsBridge gBridge = new GremlinsBridge( 3 );\n\n int delay = 1000;\n\n // Create the Mogwais and store them in an array.\n Thread peds[] = {\n new Mogwai( \"Al\", 3, SIDE_ONE, gBridge ),\n new Mogwai( \"Bob\", 2, SIDE_ONE, gBridge ),\n new Mogwai( \"Cathy\", 2, SIDE_TWO, gBridge ),\n new Mogwai( \"Doris\", 3, SIDE_TWO, gBridge ),\n new Mogwai( \"Edith\", 3, SIDE_ONE, gBridge ),\n new Mogwai( \"Fred\", 2, SIDE_TWO, gBridge ),\n };\n\n for ( int j = 0; j < peds.length; ++j ) {\n // Run them by calling their start() method.\n try {\n peds[j].start();\n init.sleep( delay ); // delay start of next mogwai\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n }\n }\n // Now, the test must give the mogwai time to finish their crossings.\n for ( int j = 0; j < peds.length; ++j ) {\n try {\n peds[j].join(); // wait for next mogwai to finish\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n }\n }\n\n System.out.println( \"\\n=============================== End test1.\" );\n }", "void launch();", "void launch();", "void launch();", "public void setUp() throws Exception {\n\n processDefinition = new ProcessDefinition();\n\n processDefinition.setProcessVariables(new ProcessVariable[]{\n ProcessVariable.forName(\"var1\"),\n ProcessVariable.forName(\"var2\")\n });\n\n Activity theLastJoinActivity = null;\n\n\n for(int i=1; i<20; i++) {\n Activity a1 = new DefaultActivity();\n\n // a1.setQueuingEnabled(true);\n\n if(i == 7 || i==1){\n a1 = new GatewayActivity();\n }\n\n a1.setTracingTag(\"a\" + i);\n processDefinition.addChildActivity(a1);\n\n if(i==7){\n theLastJoinActivity = a1;\n }\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a9\");\n t1.setTarget(\"a1\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a10\");\n t1.setTarget(\"a9\");\n\n processDefinition.addTransition(t1);\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a2\");\n t1.setCondition(new Evaluate(\"var1\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a5\");\n t1.setCondition(new Evaluate(\"var2\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a3\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a5\");\n t1.setTarget(\"a6\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a6\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a3\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a4\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a7\");\n t1.setTarget(\"a11\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a11\");\n t1.setTarget(\"a12\");\n\n processDefinition.addTransition(t1);\n }\n\n processDefinition.afterDeserialization();\n\n ProcessInstance.USE_CLASS = DefaultProcessInstance.class;\n\n\n }", "@Override\n\tpublic void sessionOpened(IoSession session) throws Exception {\n\t\tSystem.out.println(\"Come :\" + session.getRemoteAddress());\n\t\t/*\n\t\t * other operate\n\t\t * */\n\t}", "public void login() {\n System.out.println(\"a\");\r\n System.out.println(\"b\");\r\n System.out.println(\"a\");\r\n System.out.println(\"a\");\r\n }", "static void test3() {\n\n System.out.println( \"Begin test3. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n System.out.println( \"TODO: write another, more involved test here.\" );\n System.out.println( \"\\n=============================== End test3.\" );\n }", "@Test\n public void run() throws InterruptedException {\n/* Player player = new Player(3);\n player.start();\n logger.debug(\"Called player.start\");\n Thread.sleep(2000);\n player.skip();\n logger.debug(\"Called player.skip\");\n Thread.sleep(2000);\n player.skip();\n logger.debug(\"Called player.skip\");\n Thread.sleep(2000);\n player.previous();\n logger.debug(\"Called player.previous\");\n Thread.sleep(2000);\n player.stop();\n logger.debug(\"Called player.stop\"); */\n }", "DatabaseSession openSession();", "public static List<CourseSession> createSessions() {\n List<CourseSession> list = new ArrayList<CourseSession>();\n list.add(createSession(\"1\"));\n list.add(createSession(\"2\"));\n return list;\n }", "public void startSession() {\n\t\tSystem.out.println(\"Creating Board\");\n\t\tthis.board = new Board(schoolClass.getTeams(), schoolClass.getClassDeck());\n\t\tSystem.out.println(\"Setting Team Positions.\");\n\t\tinitializeTeamPositions();\n\t\tSystem.out.println(\"Clearing Up To Date Status.\");\n\t\tupToDateIds = new ArrayList<Integer>();\n\t\tteamChallengeOrder = new ArrayList<Integer>();\n\t\tchallengeChains = new HashMap<Integer, Chain>();\n\t\tchallengeSubmissionStatus = new HashMap<Integer, Boolean>();\n\t\tthis.setSessionState(SessionState.PlayerTurn);\n\t}", "@Override\n public abstract void startCompetition();", "protected abstract SESSION newSessionObject() throws EX;", "void openNextFrameSet();", "public static void main(String[] args) {\n// System.out.println(SingetonDemo.getInstance() == singetonDemo.getInstance());\n// System.out.println(SingetonDemo.getInstance() == singetonDemo.getInstance());\n\n for (int i = 0; i < 10; i++) {\n new Thread(()->{\n SingetonDemo.getInstance();\n },String.valueOf(i)).start();\n }\n\n }", "public void startSimulation();", "public void sessionEnded() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void beginSession(int sessionNumber){\r\n\t\tsession++;\r\n\t\tactionOfPartner=null;\r\n\t\tcurrentBidInx = 0;\r\n\t\t\r\n\t\tcompromiseRate = 0;\r\n\t\tnoisRate = 0;\r\n\t\tsleepRate = 0;\r\n\t\tbiasRate = 1.2;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseFact+=compromiseLearn;\r\n\t\tcompromiseFact = compromiseFact<0?0:compromiseFact;\r\n\t\t\r\n\t\tProgressDif+=progressLearn;\r\n\t\tProgressDif = ProgressDif<0?0:ProgressDif;\r\n\t\t\r\n\t\tnoisFact+=noisLearn;\r\n\t\tnoisFact = noisFact<0?0:noisFact;\r\n\t\t\r\n\t\tbiasFactor = 1;\r\n\t\t\r\n\t\tArrayList<Pair<Bid,Double>> l = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA.add(l);\r\n\t\topponentBidsB.add(l);\r\n\t\t\r\n\t\t\r\n\t}", "public void testEqualPayloadsSetSession() {\n\n resetCounter();\n\n try {\n FixedResolver tr0 = new FixedResolver(\"127.0.0.1\", 54213);\n FixedTransportManager ftm0 = new FixedTransportManager(tr0);\n TestMediaManager tmm0 = new TestMediaManager(ftm0);\n tmm0.setPayloads(getTestPayloads1());\n List<JingleMediaManager> trl0 = new ArrayList<JingleMediaManager>();\n trl0.add(tmm0);\n\n FixedResolver tr1 = new FixedResolver(\"127.0.0.1\", 54531);\n FixedTransportManager ftm1 = new FixedTransportManager(tr1);\n TestMediaManager tmm1 = new TestMediaManager(ftm1);\n tmm1.setPayloads(getTestPayloads1());\n List<JingleMediaManager> trl1 = new ArrayList<JingleMediaManager>();\n trl1.add(tmm1);\n\n JingleManager man0 = new JingleManager(getConnection(0), trl0);\n JingleManager man1 = new JingleManager(getConnection(1), trl1);\n \n man0.addCreationListener(ftm0);\n man1.addCreationListener(ftm1);\n \n man1.addJingleSessionRequestListener(new JingleSessionRequestListener() {\n /**\n * Called when a new session request is detected\n */\n public void sessionRequested(final JingleSessionRequest request) {\n System.out.println(\"Session request detected, from \" + request.getFrom() + \": accepting.\");\n try {\n // We accept the request\n JingleSession session1 = request.accept();\n\n session1.addListener(new JingleSessionListener() {\n public void sessionClosed(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionClosed().\");\n }\n\n public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {\n System.out.println(\"sessionClosedOnError().\");\n }\n\n public void sessionDeclined(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionDeclined().\");\n }\n\n public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc,\n JingleSession jingleSession) {\n incCounter();\n System.out.println(\"Responder: the session is fully established.\");\n System.out.println(\"+ Payload Type: \" + pt.getId());\n System.out.println(\"+ Local IP/port: \" + lc.getIp() + \":\" + lc.getPort());\n System.out.println(\"+ Remote IP/port: \" + rc.getIp() + \":\" + rc.getPort());\n }\n\n public void sessionMediaReceived(JingleSession jingleSession, String participant) {\n // Do Nothing\n }\n\n public void sessionRedirected(String redirection, JingleSession jingleSession) {\n }\n });\n\n session1.startIncoming();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n // Session 0 starts a request\n System.out.println(\"Starting session request with equal payloads, to \" + getFullJID(1) + \"...\");\n JingleSession session0 = man0.createOutgoingJingleSession(getFullJID(1));\n session0.startOutgoing();\n\n Thread.sleep(20000);\n\n assertTrue(valCounter() == 1);\n\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"An error occured with Jingle\");\n }\n }", "@Override\r\n public void initialRun(){\r\n tProcess = parser.nextSimProcessTime();\r\n System.out.println();\r\n boolean goRun=true;\r\n while(goRun){\r\n\r\n if(currentTime == tProcess){\r\n mc = parser.simProcess(mc);\r\n tProcess = parser.nextSimProcessTime();\r\n }\r\n mc.doOneStep();\r\n\r\n if(makeVideo){\r\n if(currentTime%FrameRate ==0){\r\n\r\n vid.addLatticeFrame(mc.getSimSystem().getSystemImg());\r\n makeVideo = vid.isWritten();\r\n }\r\n }\r\n\r\n if((currentTime % 10) ==0){System.out.println(\"t:\"+currentTime+\" M:\"+mc.getM());}\r\n currentTime++;\r\n\r\n\r\n goRun = !(mc.nucleated());\r\n if(mc.getM()<0 && currentTime> 300){goRun=false;}\r\n if(currentTime > maxT){goRun= false;}\r\n }\r\n\r\n if(makeVideo){\r\n vid.writeVideo();\r\n }\r\n }", "public synchronized void sessionEnd(int i){\n\t\twhile(cinemaEnded==false){\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Session is yet to be ended by \"+Thread.currentThread().getName());\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tsessionStarted = false;\n\t\tsessionEnded = true;\n\t\tint j = i+1;\n\t\tSystem.out.println(\"Session \"+j+\" has been ended by \"+Thread.currentThread().getName());\n\t\tnotifyAll();\t//This is a notifyAll because we must notify all the customer threads about the session end\n\t\t\t\t\t\t//and permit them to leave the projection room.\n\t}", "public WebConnectorRequestHandler () {\t\t\n\t\t_userSessions = new Hashtable<Long, UserSession>(); //manage all active sessions\n\t\t\n\t scheduledExecutorService.scheduleWithFixedDelay( //thread looping and checking for timeouts\n\t \t\tnew Runnable() {\t\t\t\t\t\t//if the user is logged in for too long without sending any requests-> logout\n\t\t\t public void run() {\t\t\t\t\t\n\t\t\t \tcheckforLogout(false);\n\t\t\t \n\t\t\t }\n\t\t\t }\n\t \t\t, LOGOUT_INTERVAL, LOGOUT_INTERVAL, TimeUnit.SECONDS);\n\t\t\t \n\n\n\t}", "Loop createLoop();", "com.weizhu.proto.WeizhuProtos.Session getSession();", "public static void main(String[] args) {\n\n SlidingWindowDemo demo = new SlidingWindowDemo();\n\n// LeakyBucketDemo demo = new LeakyBucketDemo();\n\n// TokenBucketDemo demo = new TokenBucketDemo();\n\n\n\n\n\n for (int i = 0; i < 10000; i++) {\n try {\n Thread.sleep(1L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(demo.grant());\n System.out.println(System.currentTimeMillis());\n }\n }", "public static Map[] main(String[] args) {\n String mUserID = \"\";\n String mPassword = \"\";\n String mURL = \"\";\n String mConnection = \"\";\n String mDBName = \"\";\n String mPin = \"\";\n O2GSession mSession = null;\n \n // Check for correct number of arguments\n if (args.length < 4) {\n System.out.println(\"Not Enough Parameters!\");\n System.out.println(\"USAGE: [user ID] [password] [URL] [connection] [session ID (if needed)] [pin (if needed)]\");\n System.exit(1);\n }\n \n // Get command line arguments\n mUserID = args[0];\n mPassword = args[1];\n mURL = args[2];\n mConnection = args[3];\n if (args.length > 4) {\n mDBName = args[4];\n }\n if (args.length > 5) {\n mPin = args[5];\n }\n \n // Create a session, subscribe to session listener, login, get open positions information, logout\n try {\n \n // Create a session\n mSession = O2GTransport.createSession();\n \n // Specify that your session uses a table manager\n mSession.useTableManager(O2GTableManagerMode.YES, null);\n SessionStatusListener statusListener = new SessionStatusListener(mSession, mDBName, mPin);\n mSession.subscribeSessionStatus(statusListener);\n \n // Login into the trading server\n mSession.login(mUserID, mPassword, mURL, mConnection);\n while (!statusListener.isConnected() && !statusListener.hasError()) {\n Thread.sleep(50);\n }\n if (!statusListener.hasError()) {\n \n // Get an instance of table manager\n O2GTableManager tableManager = mSession.getTableManager();\n \n // Check the table manager status\n while (tableManager.getStatus() != O2GTableManagerStatus.TABLES_LOADED &&\n tableManager.getStatus() != O2GTableManagerStatus.TABLES_LOAD_FAILED) {\n Thread.sleep(50);\n }\n if (tableManager.getStatus() == O2GTableManagerStatus.TABLES_LOADED) {\n\n // Get an instance of the O2GTradesTable\n O2GMessagesTable messagesTable = (O2GMessagesTable)tableManager.getTable(O2GTableType.MESSAGES);\n \n // Get row level information\n Data = new Map[messagesTable.size()];\n for (int i = 0; i < messagesTable.size(); i++) {\n HashMap<String, Object> responseData = new HashMap<String, Object>();\n O2GMessageTableRow message = messagesTable.getRow(i);\n responseData.put(\"MsgID\" , message.getMsgID());\n responseData.put(\"Time\" , message.getTime());\n responseData.put(\"From\" , message.getFrom());\n responseData.put(\"Type\" , message.getType());\n responseData.put(\"Feature\" , message.getFeature());\n responseData.put(\"Text\" , message.getText());\n responseData.put(\"Subject\" , message.getSubject());\n responseData.put(\"HTMLFragmentFlag\" , message.getHTMLFragmentFlag());\n Data[i] = responseData;\n System.out.println(responseData);\n// System.out.println(Data[i]);\n }\n \n// // Create an instance of a table listener class\n// TableListener tableListener = new TableListener();\n// \n// // Subscribe table listener to table updates\n// tradeTable.subscribeUpdate(O2GTableUpdateType.UPDATE, tableListener);\n// tradeTable.subscribeUpdate(O2GTableUpdateType.INSERT, tableListener);\n// \n// // Process updates (see TableListener.java)\n// Thread.sleep(10000);\n// \n// // Unsubscribe table listener\n// tradeTable.unsubscribeUpdate(O2GTableUpdateType.UPDATE, tableListener);\n// tradeTable.unsubscribeUpdate(O2GTableUpdateType.INSERT, tableListener);\n\n mSession.logout();\n while (!statusListener.isDisconnected()) {\n Thread.sleep(50);\n }\n }\n }\n mSession.unsubscribeSessionStatus(statusListener);\n mSession.dispose();\n// System.exit(1);\n \t\treturn Data;\n } catch (Exception e) {\n System.out.println (\"Exception: \" + e.getMessage());\n// System.exit(1);\n return Data;\n }\n\t}", "private void start() {\n\n\t}", "@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }", "@Test\r\n public void testGetMostRecentCompletedSession() {\r\n System.out.println(\"getMostRecentCompletedSession\");\r\n assertNotNull(sm);\r\n \r\n ISimulationSessionInfo result = sm.getMostRecentCompletedSession();\r\n assertTrue(result.getFinishTime() >= sm.getSession(\"test1\").getFinishTime());\r\n assertTrue(result.getFinishTime() >= sm.getSession(\"test2\").getFinishTime());\r\n }", "private void next() {\n\t\tParcel pc = Parcel.obtain();\n\t\tParcel pc_reply = Parcel.obtain();\n\t\ttry {\n\t\t\tSystem.out.println(\"DEBUG>>>pc\" + pc.toString());\n\t\t\tSystem.out.println(\"DEBUG>>>pc_replay\" + pc_reply.toString());\n\t\t\tib.transact(2, pc, pc_reply, 0);\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public abstract SessionSpec generateSessionSpec() throws MsControlException;", "public void startSimulation(){\n Enumeration enumAgents = agents.elements();\n\n while (enumAgents.hasMoreElements()) {\n ProcessData data = (ProcessData) enumAgents.nextElement();\n createThreadFor(data.agent).start();\n }\n }", "void gotoMain();", "protected abstract String scheduler_next();", "public Server()\n {\n clientSessions = new ArrayList();\n }", "public void start() throws InterruptedException {\n System.out.println(\"WELCOME TO THE 0-MILE CLIENT DATABASE\");\n //thread.sleep added for aesthetics\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.print(\".\");\n Thread.sleep(20);\n System.out.println(\"\");\n System.out.println(\"1- Login\");\n System.out.println(\"2- Register\");\n System.out.println(\"3- Administrator Login\");\n System.out.println(\"4- Exit the database\");\n\n System.out.println(\"Please enter 1 to Login, 2 to Register, 3 to Login as an Administrator, or 4 to Exit the system:\");\n while (!scanInt.hasNextInt()) {\n System.out.println(\"Not a valid input!\");\n System.out.println(\"Please enter 1 to Login:\");\n System.out.println(\"2 to register:\");\n System.out.println(\"3 to login as administrator:\");\n System.out.println(\"4 to exit the system:\");\n scanInt.next();\n }\n //based on the users choice perform different sections of the application\n int logOrreg = scanInt.nextInt();\n if (logOrreg == 1) {\n\n l.login();\n run();\n\n } else if (logOrreg == 2) {\n l.register();\n run();\n } else if (logOrreg == 3) {\n l.Adminlogin();\n runAdmin();\n } else if (logOrreg == 4) {\n System.out.println(\"Thank you for using the 0-MILE Client Database and goodbye!\");\n System.exit(0);\n } else {\n System.out.println(\"Not a valid option.\");\n start();\n }\n }", "SessionTask(long scheduleNext) {\n delayBeforeNext = scheduleNext;\n taskid = taskcount++;\n }" ]
[ "0.65454066", "0.6389412", "0.6033127", "0.6001602", "0.58551043", "0.5847426", "0.5842997", "0.5803257", "0.578237", "0.577128", "0.56913525", "0.55908465", "0.55611455", "0.5545269", "0.55432606", "0.5531598", "0.5529778", "0.55082226", "0.5502439", "0.5449748", "0.5430614", "0.5428733", "0.542277", "0.54205185", "0.5384291", "0.53565943", "0.53413934", "0.5340948", "0.5331977", "0.5328235", "0.5326164", "0.530814", "0.52803373", "0.5271736", "0.5253729", "0.52532834", "0.52348876", "0.52348876", "0.5215129", "0.52121264", "0.52113354", "0.520948", "0.5203917", "0.5202832", "0.52019054", "0.5199546", "0.51994586", "0.5196261", "0.51936066", "0.51787466", "0.51766247", "0.5174176", "0.5157683", "0.51545763", "0.5154321", "0.51400614", "0.5139316", "0.5136939", "0.5135894", "0.5130321", "0.51298445", "0.5121793", "0.51195633", "0.51129663", "0.5109767", "0.5109767", "0.5109767", "0.5098307", "0.5096349", "0.50943357", "0.5092304", "0.50865525", "0.5082138", "0.5080857", "0.5079695", "0.5077281", "0.5072916", "0.50695676", "0.50660217", "0.5059498", "0.5058019", "0.5057438", "0.50550985", "0.50466514", "0.5034777", "0.5025074", "0.50247097", "0.5024382", "0.50210285", "0.50188345", "0.500869", "0.5005254", "0.50037456", "0.4987531", "0.49857745", "0.49848267", "0.49805844", "0.4973116", "0.49704993", "0.49666682", "0.4965895" ]
0.0
-1
NotAvailableTime not= new NotAvailableTime(); not.main(null);
public void actionPerformed(ActionEvent e) { frmAddStudentGroup.dispose(); new NotAvailableTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FreeTime() {}", "public EatTime() {\n }", "public TimeTravel() {\r\n\t\t}", "protected Time() {\n\t}", "public static void main(String[] args) {\n Time time = new Time();\r\n\t\tSystem.out.println(time.toString());\r\n\r\n\t}", "private TimeUtil() {}", "public static void main(String[] args) {\n Task a = new Task(\"s\", new Date(0), new Date(1000*3600*24*7), 3600);\n a.setActive(true);\n System.out.println(a.getStartTime());\n System.out.println(a.getEndTime());\n System.out.println(a.nextTimeAfter(new Date(0)));\n\n\n\n }", "public static void main(String[] args){\n \n time time = new Time();\n time.display();\n System.out.println(time);\n\n // h m s am\n Time time2 = new Time(10, 30, 0, true);\n\n time.display();\n }", "public CTime() {\n\t\n}", "public WorkTimeEvent() {\r\n super();\r\n }", "public DepotTimetableAsk() {\n }", "public static void main(String[] args) {\n\t\tClock a=new Clock(5, null, 0, null); \n\t\t \n\t\t}", "public Timeslot() {\n }", "public static void main(String[] args) throws Exception {\n getBestTime();\n }", "public Coursetime() {\n\t}", "public static void main(String[] args) {\n TimeOverload t1 = new TimeOverload();\n System.out.println(t1);\n\n TimeOverload t2 = new TimeOverload(6);\n System.out.println(t2);\n \n TimeOverload t3 = new TimeOverload(6, 30);\n System.out.println(t3);\n\n TimeOverload t4 = new TimeOverload(6, 30, 40);\n System.out.println(t4);\n }", "public static void main(String[] args) {\n\t\tScanner keyboard = new Scanner(System.in);\n\t\tint hour, minute;\n\t\tSystem.out.print(\"Enter the hour: \");\n\t\thour = keyboard.nextInt();\n\t\tSystem.out.print(\"Enter the minute: \");\n\t\tminute = keyboard.nextInt();\n\t\tTime time = new Time(hour,minute);\n\t\tSystem.out.print(\"Time 12: \");\n\t\tSystem.out.println(time.getTime12());\n\t\tSystem.out.print(\"Time 24: \");\n\t\tSystem.out.println(time.getTime24());\t\t\n\n\n\t}", "public AbsTime() throws Time.Ex_TimeNotAvailable\n {\n itsValue = timeNow();\n }", "public Main() {\r\n }", "public Main() {\r\n }", "public HourlyWorker () {\r\n super ();\r\n hours = -1;\r\n hourlyRate = -1;\r\n salary = -1;\r\n }", "static void GetSecondTime() {\n\t}", "public Main() {}", "public static IRubyObject s_new(IRubyObject recv, IRubyObject[] args, Block block) {\n Ruby runtime = recv.getRuntime();\n RubyTime time = new RubyTime(runtime, (RubyClass) recv, new DateTime(getLocalTimeZone(runtime)));\n time.callInit(args,block);\n return time;\n }", "public DemographicInfoTaskChecker() {\n }", "public Main() {\r\n\t}", "public static void main(String[] args)\n {\n Eliza testing = new Eliza();\n \n testing.setTime(30, 59, 100, \"\");\n testing.Ask();\n\n\n }", "@SuppressWarnings(\"deprecation\")\n private void initTime() {\n //Time time = new Time(System.currentTimeMillis());\n time = new Date().getTime();\n }", "public Time(){\r\n Seconds = 0; \r\n }", "public abstract void maintenanceSchedule() ;", "public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {\r\n\t\tlong t = System.currentTimeMillis();\r\n\t\tSystem.out.println(String.valueOf(t)); \r\n\t\t\r\n\t\t\r\n\t}", "protected void printExecutionTime(){\n //Do nothing\n }", "public TimePeriod notWorking(TimePeriod period);", "private ThoseMain()\n {\n // Do nothing\n }", "public Main() {\n }", "public Main() {\n }", "public static void main(String[] args){\r\n slaProject dateTime = new slaProject();\r\n dateTime.go();\r\n }", "public ProgramWilmaa()\n\t{\n\t}", "public Time(int hour, int minute, int second){ //method in the initializer block\n setHour(hour);\n setMinute(minute);\n setSecond(second);\n}", "public Schedule() {\r\n }", "public BrightTimeService() {\n super(\"BrightTimeService\");\n }", "public static void main(String[] arg){\n\tDate today;\n\ttoday=new Date();\n\tSystem.out.println(today);\n}", "public WeatherDayTest()\n {\n }", "private Main() {}", "@Test\r\n\tpublic void mainTest(){\r\n\t\tMain m = new Main();\r\n\t\tm.main(null);\r\n\t}", "public Program7()\n { \n _tc = new TravelingCreature( 200, 200 );\n }", "public static void main(String[] args) {\n MyClass m;\n m= new MyClass();\nm.display();\n\t}", "public Main() {\n }", "public static AbsTime factory(String t) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // The value to return.\n AbsTime result;\n\n // Check for ASAP and NEVER.\n if (t.equals(\"ASAP\")) {\n // No need to make a new object.\n result = ASAP;\n } else if (t.equals(\"NEVER\")) {\n // No need to make a new object.\n result = NEVER;\n } else if (t.equals(\"NOW\")) {\n // Make a new object using null constructor.\n result = new AbsTime();\n } else {\n // Not a special case. Need to make a new object.\n result = new AbsTime(t);\n }\n\n return result;\n }", "private SystemInfo() {\r\n // forbid object construction \r\n }", "public static void t(){\n\n\n }", "int main() \n{\n clas s;\n s.cal();\n return 0;\n}", "public TimeBlock() {\n name = \"To be assigned\";\n startingTime = \"00:00\";\n endingTime = \"00:00\";\n duration = 0;\n }", "public AwayTimeOut() {\n this(\"Away Timout Monitor\");\n }", "public PPDeadType()\n {\n }", "public static void main(String[] args) {\n// new Problem_10().print();\n Problem_10.print();\n }", "public CalMonitor() {\r\n }", "public static void main(String args[])\r\n {\r\n Date d=new Date();\r\n System.out.println(\"I am object of :\"+d.getClass().getName());\r\n }", "private Main() {\n }", "public TestPawn(){\n }", "public static void main(String[] args) {\n\t\tTime t1 = new Time(4,18,12);\r\n Time t2 = new Time(7,35,50);\r\n Time t3 = t1.add(t2);\r\n t1.display(\"Time 1 : \");\r\n t2.display(\"Time 2 : \");\r\n t3.display(\"Time after addition : \");\r\n\t}", "public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {\t \r\n\tClass<?> t = Class.forName(\"Java_Oops.ForNameObjectCreation\");\r\n\tObjectCreation_1 obj = ((ObjectCreation_1) t.newInstance());\r\n\t \t\t\t\t obj.display();\t\r\n\t\t\t\t\t }", "public void mo21878t() {\n }", "private Main ()\n {\n super ();\n }", "public static void main(String args[])\n {\n // Check for no arguments.\n if (args.length == 0) {\n usage();\n }\n\n // Check the command.\n if (args[0].equals(\"test\")) {\n\n AbsTime now = new AbsTime();\n AbsTime later = new AbsTime(RelTime.factory(10));\n\n System.out.println(\"compare now, later: \" + now.compare(later));\n System.out.println(\"compare later, now: \" + later.compare(now));\n System.out.println(\"compare now, now: \" + now.compare(now));\n System.out.println(\"compare ASAP, later: \" + ASAP.compare(later));\n System.out.println(\"compare NEVER, later: \" + NEVER.compare(later));\n System.out.println(\"compare now, ASAP: \" + now.compare(ASAP));\n System.out.println(\"compare now, NEVER: \" + now.compare(NEVER));\n System.out.println(\"compare ASAP, ASAP: \" + ASAP.compare(ASAP));\n System.out.println(\"compare NEVER, NEVER: \" + NEVER.compare(NEVER));\n System.out.println(\"compare ASAP, NEVER: \" + ASAP.compare(NEVER));\n System.out.println(\"compare NEVER, ASAP: \" + NEVER.compare(ASAP));\n\n AbsTime.setTheirDefaultFormat(Format.UTC_STRING);\n System.out.println(new AbsTime() + \" doing 200000 compares\");\n for (int i = 0; i < 100000; i++) {\n now.compare(later);\n now.compare(NEVER);\n }\n System.out.println(new AbsTime() + \" doing 200000 isBefore()s\");\n for (int i = 0; i < 100000; i++) {\n now.isBefore(later);\n now.isBefore(NEVER);\n }\n System.out.println(new AbsTime() + \" doing 200000 isAfter()s\");\n for (int i = 0; i < 100000; i++) {\n now.isAfter(later);\n now.isAfter(NEVER);\n }\n System.out.println(new AbsTime() + \" done\");\n\n } else if (args[0].equals(\"clock\")) {\n // The current argument.\n int iArg;\n\n // Parse the command line options.\n iArg = 1;\n while (iArg < args.length) {\n usage();\n }\n\n // Make the clock.\n // BATClock clock = new BATClock(reqFont,reqBGColor,reqFGColor);\n } else if (args[0].equals(\"formats\")) {\n System.out.println(\"DECIMAL_BAT\");\n System.out.println(\"DEFAULT_FORMAT\");\n System.out.println(\"FORMATTED_BAT\");\n System.out.println(\"HEX_BAT\");\n System.out.println(\"UTC_STRING\");\n } else if (args[0].equals(\"print\")) {\n // The current argument.\n int iArg;\n // The requested format.\n Format reqFmt = AbsTime.getTheirDefaultFormat();\n // The time.\n AbsTime time = null;\n\n // Parse the command line options.\n iArg = 1;\n while (iArg < args.length) {\n if (args[iArg].equals(\"-f\")) {\n iArg++;\n if (iArg >= args.length) {\n usage();\n }\n if (args[iArg].equals(\"DECIMAL_BAT\")) {\n reqFmt = Format.DECIMAL_BAT;\n } else if (args[iArg].equals(\"DEFAULT_FORMAT\")) {\n reqFmt = AbsTime.getTheirDefaultFormat();\n } else if (args[iArg].equals(\"FORMATTED_BAT\")) {\n reqFmt = Format.FORMATTED_BAT;\n } else if (args[iArg].equals(\"HEX_BAT\")) {\n reqFmt = Format.HEX_BAT;\n } else if (args[iArg].equals(\"UTC_STRING\")) {\n reqFmt = Format.UTC_STRING;\n } else {\n usage();\n }\n iArg++;\n } else if (args[iArg].charAt(0) != '-') {\n // Not an option, must be the time.\n try {\n time = new AbsTime(args[iArg]);\n } catch (Time.Ex_TimeNotAvailable e) {\n System.out.println(e.toString());\n }\n iArg++;\n // Check that this is the last arg.\n if (iArg < args.length) {\n usage();\n }\n } else {\n // Invalid arg.\n usage();\n }\n }\n\n // Print the time object.\n if (time != null) {\n System.out.println(time.toString(reqFmt));\n } else {\n usage();\n }\n } else if (args[0].equals(\"now\")) {\n // The current argument.\n int iArg;\n // The requested format.\n Format reqFmt = AbsTime.getTheirDefaultFormat();\n // True if repeat was requested.\n boolean doRpt = false;\n\n // Parse the command line options.\n iArg = 1;\n while (iArg < args.length) {\n if (args[iArg].equals(\"-f\")) {\n iArg++;\n if (iArg >= args.length) {\n usage();\n }\n if (args[iArg].equals(\"DECIMAL_BAT\")) {\n reqFmt = Format.DECIMAL_BAT;\n } else if (args[iArg].equals(\"DEFAULT_FORMAT\")) {\n reqFmt = AbsTime.getTheirDefaultFormat();\n } else if (args[iArg].equals(\"FORMATTED_BAT\")) {\n reqFmt = Format.FORMATTED_BAT;\n } else if (args[iArg].equals(\"HEX_BAT\")) {\n reqFmt = Format.HEX_BAT;\n } else if (args[iArg].equals(\"UTC_STRING\")) {\n reqFmt = Format.UTC_STRING;\n } else {\n usage();\n }\n iArg++;\n } else if (args[iArg].equals(\"-r\")) {\n doRpt = true;\n iArg++;\n } else {\n usage();\n }\n }\n\n // Make an AbsTime object, then print it in the appropriate\n // format.\n try {\n if (doRpt) {\n while (true) {\n System.out.print((new AbsTime()).toString(reqFmt) + \"\\r\");\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n }\n }\n } else {\n System.out.println((new AbsTime()).toString(reqFmt));\n }\n } catch (Time.Ex_TimeNotAvailable e) {\n System.out.println(\"time not available on this host\");\n System.exit(1);\n }\n } else {\n // Bad command argument.\n usage();\n }\n }", "public static void main(String[] args) {\n Scanner read = new Scanner(System.in);\n //read next long and store into time\n long time = read.nextLong();\n //creating new instance of date called d, invoking non defualt\n //constructor. Param - time in milliseconds of type long\n Date d = new Date(time);\n //outputting the date and a new line\n System.out.print(d + \"\\n\");\n \n }", "public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\ttry {\n\tClass cls=Class.forName(\"udemy.ObjCreation\");\n\tObjCreation o=(ObjCreation)cls.newInstance();\n\tSystem.out.println(o.a);\n\t}\n\tcatch(InstantiationException e) {\n\t\te.printStackTrace();\n\t}\n\tcatch(IllegalAccessException e) {\n\t\te.printStackTrace();\n\t}\n\tcatch(ClassNotFoundException e) {\n\t\tSystem.out.println(\"not found class\");\n\t\te.printStackTrace();\n\t}\n}", "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "public ToUseTimeLineFactoryImpl() {\n\t\tsuper();\n\t}", "public SleepObject() {\n date = new Date();\n }", "@Test(expected = IllegalArgumentException.class)\n public void testConstructorNegativeHoursOne(){\n \tCountDownTimer s = new CountDownTimer(-5, 5, 20);\n }", "private AbsTime(boolean t)\n {\n if (!t) {\n itsValue = ASAP_CODE;\n } else {\n itsValue = NEVER_CODE;\n }\n }", "public Schedule() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "@Test\n\t\tpublic void woeIsMeUnreachabletest() {\n\t\t\tassertTrue(System.currentTimeMillis() > 0);\n\t\t}", "public static void main(String[] args) throws InstantiationException, IllegalAccessException {\n }", "public TimeMap() {\n\n }", "public Main() {\n\t\tsuper();\n\t}", "public TimeSignatureRetriever ()\r\n {\r\n }", "protected abstract T create(final double idealStartTime);", "public Player(Playground_Registration pgr) {\n this.pgr = pgr;\n pgr.setPName(\"barca\");\n System.out.println(pgr.getPName());\n pgr.setLocation(\"naser city\");\n System.out.println(pgr.getLocation());\n pgr.setSize(5);\n System.out.println(pgr.getSize());\n pgr.setAvailable_Hour(3);\n System.out.println(pgr.getAvailable_Hour());\n pgr.setPrice_Of_hour(120);\n System.out.println(pgr.getPrice_Of_hour());\n pgr.setPlayground_Status(\"available\");\n System.out.println(pgr.getPlayground_Status());\n pgr.setCancelation_Perioud(\"\");\n System.out.println(pgr.getCancelation_Perioud());\n System.out.println(\"i want to book this play ground\");\n\n }", "Clock tryGetClock();", "public interface TimeFunctionRequester {\n void function();\n}", "public static void main(String[] args) {\nBasePotencia pot=new BasePotencia();\r\npot.calculaPot();\r\n\t}", "public static void main(String[] args) {\n EmployeeTimed employeeTimed = null;\n try {\n employeeTimed = new EmployeeTimed(120000000000004L, \"Employee 1\", 100);\n } catch (IDException e) {\n e.printStackTrace();\n }\n /*\n try {\n employeeTimed.setID(1000000L);\n } catch (IDException e) {\n e.printStackTrace();\n }\n */\n System.out.println(employeeTimed.toString());\n\n// System.out.println(employeeSalaried.CalculateSalary());\n System.out.println(employeeTimed.CalculateSalary());\n\n }", "public Main() {\n \n \n }", "@Override\n\tpublic void waitCheck(double hours) {\n\t\t\n\t}", "@Override\n\tpublic void waitCheck(double hours) {\n\t\t\n\t}", "public static void main(String[] args) {\nMain ma=new Main();\r\nma.minus();\r\n\t}", "public p7p2() {\n }", "public Forecastday() {\n }", "private TetrisMain() {\r\n //prevents instantiation\r\n }", "public void timePassed() {\r\n\r\n }", "private TMCourse() {\n\t}", "public Clock()\n {\n hour = 11;\n min = 28;\n sec = 12;\n }", "public Main() {\n // Required empty public constructor\n }", "private OutOfProcessServer()\n {\n }", "protected\n TimedRsp\n ( \n TaskTimer timer\n )\n { \n if(timer == null) \n throw new IllegalArgumentException(\"The timer cannot (null)!\");\n pTimer = new TaskTimer(timer);\n }", "private Main() {\n\n super();\n }", "public StopWatch() {\n }", "public Hourly (String eName, String eAddress, String ePhone,\r\nString socSecNumber, double rate)\r\n{\r\nsuper(eName, eAddress, ePhone, socSecNumber, rate);\r\n//IMPLEMENT THIS\r\n}", "public Geotemporal() {\n }" ]
[ "0.69082993", "0.64178705", "0.63905436", "0.62765455", "0.61669236", "0.61576277", "0.61495024", "0.6115709", "0.60594213", "0.5983445", "0.5976925", "0.5974933", "0.5944891", "0.59034234", "0.5862753", "0.5789801", "0.5756207", "0.5719635", "0.5683992", "0.5683992", "0.5683778", "0.5655745", "0.56520337", "0.56489694", "0.56474304", "0.5647024", "0.5644215", "0.5638677", "0.5636794", "0.5631779", "0.56050223", "0.5591895", "0.5569031", "0.5562021", "0.55588835", "0.55588835", "0.5542207", "0.55400825", "0.553639", "0.55273914", "0.55268794", "0.5525194", "0.55163604", "0.5511759", "0.55116576", "0.55085945", "0.5494144", "0.548089", "0.5478539", "0.5467396", "0.5465723", "0.5460807", "0.5459027", "0.5452202", "0.5442593", "0.54228497", "0.5420518", "0.5419426", "0.5417474", "0.5415168", "0.5408309", "0.54003567", "0.5398285", "0.5380477", "0.5368754", "0.53668606", "0.5365683", "0.5359679", "0.53486925", "0.53485763", "0.53447044", "0.5344009", "0.5337429", "0.5335422", "0.5334204", "0.5329678", "0.5328442", "0.5326181", "0.5324351", "0.5321362", "0.53197753", "0.53196454", "0.531538", "0.53103054", "0.5305494", "0.53038156", "0.53038156", "0.53035146", "0.53021777", "0.52980226", "0.52958775", "0.52957207", "0.5292718", "0.52894896", "0.52888244", "0.5287446", "0.528612", "0.5285439", "0.527697", "0.5276463", "0.5271935" ]
0.0
-1
ControllerPart is used to control an entity with a collection of behaviours for which it also serves as a collection. Behavious are stored in a way similar to the entity Entity HashMap. Get, replace, remove methods not implemented as they are not yet needed.
public <T extends Behaviour> boolean has(Class<T> behaviourClass) { return behaviours.containsKey(behaviourClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ThrottleMediatorPropertiesEditionPart {\n\n\t/**\n\t * @return the commentsList\n\t * \n\t */\n\tpublic EList getCommentsList();\n\n\t/**\n\t * Defines a new commentsList\n\t * @param newValue the new commentsList to set\n\t * \n\t */\n\tpublic void setCommentsList(EList newValue);\n\n\t/**\n\t * Add a value to the commentsList multivalued attribute.\n\t * @param newValue the value to add\n\t */\n\tpublic void addToCommentsList(Object newValue);\n\n\t/**\n\t * Remove a value to the commentsList multivalued attribute.\n\t * @param newValue the value to remove\n\t */\n\tpublic void removeToCommentsList(Object newValue);\n\n\n\t/**\n\t * @return the Reverse\n\t * \n\t */\n\tpublic Boolean getReverse();\n\n\t/**\n\t * Defines a new Reverse\n\t * @param newValue the new Reverse to set\n\t * \n\t */\n\tpublic void setReverse(Boolean newValue);\n\n\n\t/**\n\t * @return the groupId\n\t * \n\t */\n\tpublic String getGroupId();\n\n\t/**\n\t * Defines a new groupId\n\t * @param newValue the new groupId to set\n\t * \n\t */\n\tpublic void setGroupId(String newValue);\n\n\n\t/**\n\t * @return the description\n\t * \n\t */\n\tpublic String getDescription();\n\n\t/**\n\t * Defines a new description\n\t * @param newValue the new description to set\n\t * \n\t */\n\tpublic void setDescription(String newValue);\n\n\n\t/**\n\t * @return the OnAcceptBranchsequenceType\n\t * \n\t */\n\tpublic Enumerator getOnAcceptBranchsequenceType();\n\n\t/**\n\t * Init the OnAcceptBranchsequenceType\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initOnAcceptBranchsequenceType(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new OnAcceptBranchsequenceType\n\t * @param newValue the new OnAcceptBranchsequenceType to set\n\t * \n\t */\n\tpublic void setOnAcceptBranchsequenceType(Enumerator newValue);\n\n\n\t/**\n\t * @return the OnRejectBranchsequenceType\n\t * \n\t */\n\tpublic Enumerator getOnRejectBranchsequenceType();\n\n\t/**\n\t * Init the OnRejectBranchsequenceType\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initOnRejectBranchsequenceType(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new OnRejectBranchsequenceType\n\t * @param newValue the new OnRejectBranchsequenceType to set\n\t * \n\t */\n\tpublic void setOnRejectBranchsequenceType(Enumerator newValue);\n\n\n\t/**\n\t * @return the policyType\n\t * \n\t */\n\tpublic Enumerator getPolicyType();\n\n\t/**\n\t * Init the policyType\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initPolicyType(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new policyType\n\t * @param newValue the new policyType to set\n\t * \n\t */\n\tpublic void setPolicyType(Enumerator newValue);\n\n\n\t/**\n\t * @return the maxConcurrentAccessCount\n\t * \n\t */\n\tpublic String getMaxConcurrentAccessCount();\n\n\t/**\n\t * Defines a new maxConcurrentAccessCount\n\t * @param newValue the new maxConcurrentAccessCount to set\n\t * \n\t */\n\tpublic void setMaxConcurrentAccessCount(String newValue);\n\n\n\n\n\t/**\n\t * Init the policyEntries\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initPolicyEntries(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the policyEntries\n\t * @param newValue the policyEntries to update\n\t * \n\t */\n\tpublic void updatePolicyEntries();\n\n\t/**\n\t * Adds the given filter to the policyEntries edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToPolicyEntries(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the policyEntries edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToPolicyEntries(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the policyEntries table\n\t * \n\t */\n\tpublic boolean isContainedInPolicyEntriesTable(EObject element);\n\n\n\n\n\t// Start of user code for OnAcceptBranchSequenceKey specific getters and setters declaration\n public RegistryKeyProperty getOnAcceptBranchSequenceKey();\n\n public void setOnAcceptBranchSequenceKey(RegistryKeyProperty registryKeyProperty);\n\n // End of user code\n\t// Start of user code for OnRejectBranchSequenceKey specific getters and setters declaration\n public RegistryKeyProperty getOnRejectBranchSequenceKey();\n\n public void setOnRejectBranchSequenceKey(RegistryKeyProperty registryKeyProperty);\n\n // End of user code\n\t// Start of user code for policyKey specific getters and setters declaration\n public RegistryKeyProperty getPolicyKey();\n\n public void setPolicyKey(RegistryKeyProperty registryKeyProperty);\n\n // End of user code\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public interface EntityOpsController\n{\n\t/** @return a string representing the type of entity for use in messages. */\n\tpublic String getEntityName();\n\n\t/** Called when user presses the 'Commit' button. */\n\tpublic void commitEntity();\n\n\t/** Called when user presses the 'Close' button. */\n\tpublic void closeEntity();\n\n\t/** Called when user presses the 'Help' button. */\n\tpublic void help();\n}", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "public void createContents(){\n\t\t// Creates control for ScrolledCompositeController controlItemSCSCLC\n\t\tcontrolItemSCSCLC = new ScrolledCompositeController(\"controlItemSC\", coreController, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tsetDirtyManagement(false);\n\t\t\t\t\tgetComposite().setLayout(new MigLayout(\"wrap 2\",\"[align right]10[fill,grow]\",\"[]\"));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t// Creates control for LabelController background$1LBL\n\t\tbackground$1LBL = new LabelController(\"background$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"background\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBackground(this);\n\t\t// Creates control for LabelController backgroundImage$1LBL\n\t\tbackgroundImage$1LBL = new LabelController(\"backgroundImage$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"backgroundImage\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBackgroundImage(this);\n\t\t// Creates control for LabelController bounds$1LBL\n\t\tbounds$1LBL = new LabelController(\"bounds$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"bounds\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateBounds(this);\n\t\t// Creates control for LabelController capture$1LBL\n\t\tcapture$1LBL = new LabelController(\"capture$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"capture\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateCapture(this);\n\t\t// Creates control for LabelController containerBackground$1LBL\n\t\tcontainerBackground$1LBL = new LabelController(\"containerBackground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBackground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBackground(this);\n\t\t// Creates control for LabelController containerBackgroundImage$1LBL\n\t\tcontainerBackgroundImage$1LBL = new LabelController(\"containerBackgroundImage$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBackgroundImage\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBackgroundImage(this);\n\t\t// Creates control for LabelController containerBounds$1LBL\n\t\tcontainerBounds$1LBL = new LabelController(\"containerBounds$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerBounds\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerBounds(this);\n\t\t// Creates control for LabelController containerCapture$1LBL\n\t\tcontainerCapture$1LBL = new LabelController(\"containerCapture$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerCapture\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerCapture(this);\n\t\t// Creates control for LabelController containerFocus$1LBL\n\t\tcontainerFocus$1LBL = new LabelController(\"containerFocus$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerFocus\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerFocus(this);\n\t\t// Creates control for LabelController containerFont$1LBL\n\t\tcontainerFont$1LBL = new LabelController(\"containerFont$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerFont\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerFont(this);\n\t\t// Creates control for LabelController containerForeground$1LBL\n\t\tcontainerForeground$1LBL = new LabelController(\"containerForeground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerForeground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerForeground(this);\n\t\t// Creates control for LabelController containerLayoutData$1LBL\n\t\tcontainerLayoutData$1LBL = new LabelController(\"containerLayoutData$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerLayoutData\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerLayoutData(this);\n\t\t// Creates control for LabelController containerLocation$1LBL\n\t\tcontainerLocation$1LBL = new LabelController(\"containerLocation$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerLocation\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerLocation(this);\n\t\t// Creates control for LabelController containerMenu$1LBL\n\t\tcontainerMenu$1LBL = new LabelController(\"containerMenu$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerMenu\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerMenu(this);\n\t\t// Creates control for LabelController containerRedraw$1LBL\n\t\tcontainerRedraw$1LBL = new LabelController(\"containerRedraw$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerRedraw\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerRedraw(this);\n\t\t// Creates control for LabelController containerSize$1LBL\n\t\tcontainerSize$1LBL = new LabelController(\"containerSize$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerSize\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerSize(this);\n\t\t// Creates control for LabelController containerStyle$1LBL\n\t\tcontainerStyle$1LBL = new LabelController(\"containerStyle$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"containerStyle\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateContainerStyle(this);\n\t\t// Creates control for LabelController editable$1LBL\n\t\teditable$1LBL = new LabelController(\"editable$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"editable\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateEditable(this);\n\t\t// Creates control for LabelController enabled$1LBL\n\t\tenabled$1LBL = new LabelController(\"enabled$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"enabled\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateEnabled(this);\n\t\t// Creates control for LabelController focus$1LBL\n\t\tfocus$1LBL = new LabelController(\"focus$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"focus\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateFocus(this);\n\t\t// Creates control for LabelController font$1LBL\n\t\tfont$1LBL = new LabelController(\"font$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"font\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateFont(this);\n\t\t// Creates control for LabelController foreground$1LBL\n\t\tforeground$1LBL = new LabelController(\"foreground$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"foreground\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateForeground(this);\n\t\t// Creates control for LabelController layoutData$1LBL\n\t\tlayoutData$1LBL = new LabelController(\"layoutData$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"layoutData\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateLayoutData(this);\n\t\t// Creates control for LabelController location$1LBL\n\t\tlocation$1LBL = new LabelController(\"location$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"location\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateLocation(this);\n\t\t// Creates control for LabelController menu$1LBL\n\t\tmenu$1LBL = new LabelController(\"menu$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"menu\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateMenu(this);\n\t\t// Creates control for LabelController orientation$1LBL\n\t\torientation$1LBL = new LabelController(\"orientation$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"orientation\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateOrientation(this);\n\t\t// Creates control for LabelController redraw$1LBL\n\t\tredraw$1LBL = new LabelController(\"redraw$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"redraw\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateRedraw(this);\n\t\t// Creates control for LabelController size$1LBL\n\t\tsize$1LBL = new LabelController(\"size$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"size\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateSize(this);\n\t\t// Creates control for LabelController style$1LBL\n\t\tstyle$1LBL = new LabelController(\"style$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"style\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateStyle(this);\n\t\t// Creates control for LabelController tabs$1LBL\n\t\ttabs$1LBL = new LabelController(\"tabs$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"tabs\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateTabs(this);\n\t\t// Creates control for LabelController text$1LBL\n\t\ttext$1LBL = new LabelController(\"text$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"text\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateText(this);\n\t\t// Creates control for LabelController textLimit$1LBL\n\t\ttextLimit$1LBL = new LabelController(\"textLimit$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"richText\", \"textLimit\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateTextLimit(this);\n\t\t// Creates control for LabelController toolTipText$1LBL\n\t\ttoolTipText$1LBL = new LabelController(\"toolTipText$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"widget\", \"toolTipText\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateToolTipText(this);\n\t\t// Creates control for LabelController visible$1LBL\n\t\tvisible$1LBL = new LabelController(\"visible$1\", controlItemSCSCLC, this) {\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tgetControl().setText(AdichatzApplication.getInstance().getMessage(\"org.adichatz.studio\", \"control\", \"visible\").concat(\":\"));\n\t\t\t\t\tsetForeground(AdichatzApplication.getInstance().getFormToolkit().getColors().getColor(IFormColors.TITLE));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tcreateVisible(this);\n\t}", "List<FeatureController<MODEL>> getFeatureControllers() {\n return featureItems.getFeatureControllers();\n }", "PickController(){\n restrictionList = RestrictionManager.getStandardRestriction();\n }", "public interface ControlledObjectI extends java.io.Serializable {\n /**\n * Sets the Controller for the object\n */\n public void setController(Controller controller);\n /**\n * Gets the Controller for the object\n */\n public Controller getController();\n public Object getControllerWindow();\n}", "public interface AuthoringModelController {\n\n\t/**\n\t * Save the current state of the current level a game being authored.\n\t *\n\t * @param saveName\n\t * the name to assign to the save file\n\t */\n\tvoid saveGameState(File saveName);\n\n\t/**\n\t * Load the detailed state of a game for a particular level, including\n\t * high-level information and elements present.\n\t *\n\t * @param saveName\n\t * the name used to save the game authoring data\n\t * @param level\n\t * the level of the game which should be loaded\n\t * @throws IOException\n\t * if the save name does not refer to existing files\n\t */\n\tvoid loadOriginalGameState(String saveName, int level) throws IOException;\n\n\t/**\n\t * Export a fully authored game, including all levels, into an executable file.\n\t */\n\tvoid exportGame();\n\n\t/**\n\t * Create a new level for the game being authored. Saves the state of the\n\t * current level being authored when the transition occurs.\n\t *\n\t * @param level\n\t * the number associated with the new level\n\t */\n\tvoid createNewLevel(int level);\n\n\t/**\n\t * Delete the previously created level.\n\t *\n\t * @param level\n\t * the level to delete\n\t * @throws IllegalArgumentException\n\t * if level does not exist\n\t */\n\tvoid deleteLevel(int level) throws IllegalArgumentException;\n\n\t/**\n\t * Get the top-level configuration options for a game element definition.\n\t *\n\t * @return a map from the name of the configuration option to set to a list of\n\t * choices for that option\n\t */\n\tMap<String, List<String>> getElementBaseConfigurationOptions();\n\n\t/**\n\t * Get auxiliary configuration elements for a game element, based on top-level\n\t * configuration choices.\n\t *\n\t * @return a map from the name of the configuration option to its class type\n\t */\n\tMap<String, Class> getAuxiliaryElementConfigurationOptions(Map<String, String> baseConfigurationChoices);\n\n\t/**\n\t * Define a new type of element for the game being authored. Elements of this\n\t * type will be created by the model based on its properties, assuming defaults\n\t * where necessary. This method should not be used for updating properties of an\n\t * existing template, the updateElementDefinition method should be used for that\n\t * instead.\n\t *\n\t * @param elementName\n\t * the template name assigned to this element, for future reuse of\n\t * the properties\n\t * @param properties\n\t * a map containing the properties of the element to be created\n\t * @throws IllegalArgumentException\n\t * if the template already exists.\n\t */\n\tvoid defineElement(String elementName, Map<String, String> properties) throws IllegalArgumentException;\n\n\t/**\n\t * Update an existing template by overwriting the specified properties to their\n\t * new specified values. Should not be used to create a new template, the\n\t * defineElement method should be used for that.\n\t * \n\t * @param elementName\n\t * the name of the template to be updated\n\t * @param propertiesToUpdate\n\t * the properties to update\n\t * @param retroactive\n\t * whether previously created elements of this type must have their\n\t * properties updated\n\t * \n\t * @throws IllegalArgumentException\n\t * if the template does not already exist\n\t */\n\tvoid updateElementDefinition(String elementName, Map<String, String> propertiesToUpdate, boolean retroactive)\n\t\t\tthrows IllegalArgumentException;\n\n\t/**\n\t * Delete a previously defined template\n\t * \n\t * @param elementName\n\t * name of the template to delete\n\t * @throws IllegalArgumentException\n\t * if the template does not already exist\n\t */\n\tvoid deleteElementDefinition(String elementName) throws IllegalArgumentException;\n\n\t/**\n\t * Place a game element of previously defined type within the game.\n\t *\n\t * @param elementName\n\t * the template name for the element\n\t * @param startCoordinates\n\t * the coordinates at which the element should be placed\n\t * @return a unique identifier for the sprite abstraction representing the game\n\t * element\n\t */\n\tint placeElement(String elementName, Point2D startCoordinates);\n\n\t/**\n\t * Add element of given name\n\t * \n\t * @param elementName\n\t */\n\tvoid addElementToInventory(String elementName);\n\n\t/*\n\t * Place a game element of previously defined type within the game which follows\n\t * a path defined in the authoring environment as it moves.\n\t *\n\t * @param elementName the template name for the element\n\t * \n\t * @param pathList a list of points the object should target as it moves\n\t * \n\t * @return a unique identifier for the sprite abstraction representing the game\n\t * element\n\t */\n\tint placePathFollowingElement(String elementName, PathList pathList);\n\n\t/**\n\t * Retrieve the inventory for the current level\n\t * \n\t * @return set of element names that can be placed in the current level\n\t */\n\tSet<String> getInventory();\n\n\t/**\n\t * Get the ImageView corresponding to a particular spriteId\n\t * \n\t * @param spriteId\n\t * id of the sprite whose image is to be retrieved, previously\n\t * generated by controller\n\t * @return ImageView representing the GameElement\n\t */\n\tImageView getRepresentationFromSpriteId(int spriteId);\n\n\t/**\n\t * Get the high-level status of a game in-progress, notably points, lives, etc\n\t * \n\t *\n\t * @return a map of relevant details to display or modify about the game\n\t */\n\tMap<String, Double> getStatus();\n\n\t/**\n\t * Retrieve information on the cost of each element in terms of the various\n\t * resources\n\t * \n\t * @return map of element name to its cost in terms of each resource\n\t */\n\tMap<String, Map<String, Double>> getElementCosts();\n\n\t/**\n\t * Move a previously created game element to a new location.\n\t *\n\t * @param elementId\n\t * elementId the unique identifier for the element\n\t * @param xCoordinate\n\t * the new horizontal position of the element within the game\n\t * @param yCoordinate\n\t * the new vertical position of the element within the game\n\t */\n\tvoid moveElement(int elementId, double xCoordinate, double yCoordinate);\n\n\t/**\n\t * Update the properties of a particular game element, without changing the\n\t * definition of its type.\n\t *\n\t * @param elementId\n\t * the unique identifier for the element\n\t * @param propertiesToUpdate\n\t * a map containing the new properties of the element\n\t */\n\tvoid updateElementProperties(int elementId, Map<String, String> propertiesToUpdate);\n\n\t/**\n\t * Delete a previously created game element.\n\t *\n\t * @param elementId\n\t * the unique identifier for the element\n\t */\n\tvoid deleteElement(int elementId);\n\n\t/**\n\t * Fetch all available game names and their corresponding descriptions\n\t * \n\t * @return map where keys are game names and values are game descriptions\n\t */\n\tMap<String, String> getAvailableGames();\n\n\t/**\n\t * Get a map of properties for a particular game element, so as to allow for\n\t * their displaying in a modification area of the display.\n\t *\n\t * @param elementId\n\t * the unique identifier for the game element\n\t * @return a map of properties for the element with this identifier\n\t * @throws IllegalArgumentException\n\t * if the element ID does not refer to a created element\n\t */\n\tMap<String, String> getElementProperties(int elementId) throws IllegalArgumentException;\n\n\t/**\n\t * Get a map of properties for an element template / model, so as to allow for\n\t * their displaying in a modification area of the display\n\t * \n\t * @param elementName\n\t * the template name for the element\n\t * @return a map of properties for the template with this identifier\n\t * @throws IllegalArgumentException\n\t * if the element name does not refer to a defined template\n\t */\n\tMap<String, String> getTemplateProperties(String elementName) throws IllegalArgumentException;\n\n\t/**\n\t * Get map of all defined template names to their properties\n\t * \n\t * @return map of template names to properties of each template\n\t */\n\tMap<String, Map<String, String>> getAllDefinedTemplateProperties();\n\n\tMap<String, Double> getResourceEndowments();\n\n\t/**\n\t * Set the name of the game being authored.\n\t *\n\t * @param gameName\n\t * the name of the game\n\t */\n\tvoid setGameName(String gameName);\n\n\t/**\n\t * Set the description of a game being authored.\n\t *\n\t * @param gameDescription\n\t * the description authored for the game\n\t */\n\tvoid setGameDescription(String gameDescription);\n\n\t/**\n\t * Set the victory condition for the current level of the game being authored\n\t * \n\t * @param conditionIdentifier\n\t * the description of the victory condition, which can be mapped to a\n\t * boolean state function\n\t */\n\tvoid setVictoryCondition(String conditionIdentifier);\n\n\t/**\n\t * Set the defeat condition for the current level of the game being authored\n\t * \n\t * @param conditionIdentifier\n\t * the description of the defeat condition, which can be mapped to a\n\t * boolean state function\n\t */\n\tvoid setDefeatCondition(String conditionIdentifier);\n\n\t/**\n\t * Set a top-level game status property (e.g. lives, starting resources, etc)\n\t *\n\t * @param property\n\t * name of the property to set\n\t * @param value\n\t * string representation of the property's new value\n\t */\n\tvoid setStatusProperty(String property, Double value);\n\n\t/**\n\t * Set the resource endowments for the current level\n\t * \n\t * @param resourceEndowments\n\t * map of resource name to amount of that resource to begin that\n\t * level with\n\t */\n\tvoid setResourceEndowments(Map<String, Double> resourceEndowments);\n\n\t/**\n\t * Set the resource endowment of a specific resource name\n\t * @param resourceName\n\t * @param newResourceEndowment\n\t */\n\tvoid setResourceEndowment(String resourceName, double newResourceEndowment);\n\t\n\t/**\n\t * Set the cost of an element in terms of various resources\n\t * \n\t * @param elementName\n\t * the template name for the element\n\t * @param unitCosts\n\t * map of resource name to cost in terms of that resource for this\n\t * element\n\t */\n\tvoid setUnitCost(String elementName, Map<String, Double> unitCosts);\n\n\t/**\n\t * Set the behavior and parameters of the wave\n\t * \n\t * @param waveProperties\n\t * a map containing the properties of the wave to be created\n\t * @param elementNames\n\t * name of elements to spawn\n\t * @param spawningPoint\n\t * the point at which to spawn the wave\n\t */\n\tvoid setWaveProperties(Map<String, String> waveProperties, Collection<String> elementNamesToSpawn,\n\t\t\tPoint2D spawningPoint);\n\n\t/**\n\t * Retrieve a collection of descriptions of the possible victory conditions\n\t * \n\t * @return a collection of strings describing the possible victory conditions\n\t * that can be assigned for a given level\n\t */\n\tCollection<String> getPossibleVictoryConditions();\n\n\t/**\n\t * Retrieve a collection of descriptions of the possible defeat conditions\n\t * \n\t * @return a collection of strings describing the possible defeat conditions\n\t * that can be assigned for a given level\n\t */\n\tCollection<String> getPossibleDefeatConditions();\n\n}", "public TipoComponenteController() {\r\n\t\ttipoComponenteVOs = ((TipoComponenteDTO)this.read()).getTipoComponenteVOs();\r\n\t}", "public void handleAddParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n partController.setModifyParts(false);\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public interface Controller extends EObject {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model\n\t * @generated\n\t */\n\tString turnPedLightGreen();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model\n\t * @generated\n\t */\n\tString turnCarLightGreen();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model\n\t * @generated\n\t */\n\tvoid callStartClockTick();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model\n\t * @generated\n\t */\n\tvoid callResetClockTick();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return \n\t * @model\n\t * @generated\n\t */\n\tString turnPedLightRed();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return \n\t * @model\n\t * @generated\n\t */\n\tString turnCarLightYellow();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model\n\t * @generated\n\t */\n\tString turnCarLightRed();\n\n}", "public Vector getControllers() {\n return (Vector) this.controllers.clone();\n }", "public interface IElementController {\n /**\n * Inicjalizuje kontroler(bus itp.)\n */\n void initialize();\n\n /**\n * Odinicjalizowuje kontroler.\n */\n void uninitialize();\n\n /**\n * Ustawia mapę\n *\n * @param map Mapa Mapa MapBoxowa\n */\n void setMap(MapboxMap map);\n\n /**\n * Metoda pozwalajaca na dodanie elementow do mapy. Za dodanie elementow do mapy odpowieada c, ktory definiuje jakiego rodzaju\n * obiekty przyjmuje, a nastepnie tworzy z nich markery lub polylines.\n *\n * @param objects\n */\n void provideObjects(Collection<? extends Object> objects);\n\n /**\n * Usuwa z mapy wszystkie elementy dnaego typu, np. POIe, nawigacje. Nalezy tutaj podac klase szablonu z danego {@link MapBoxElementsProvider}.\n *\n * @param modelClass - klasa szablonu z {@link MapBoxElementsProvider}\n */\n void clearObjects(Class modelClass);\n\n /**\n * Wywolywana przy niszczeniu mapy.\n */\n void onDestroy();\n\n /**\n * Decyduje czy obiekty moga byc dodawane na mapie.\n *\n * @param enabled True jesli obiekty moga byc dodawane do mapy, false gdy maja zostac usuniete.\n */\n void setEnabled(boolean enabled);\n\n /**\n * Aktualizuje obiekty Polylines na mapie. Runnable odpalane jest na wątku głównym.\n */\n void updatePolylines(MapElementUpdateRunnable mapElementUpdateRunnable);\n\n /**\n * Aktualizuje elementy na mapie, np. MarkerViews. Runnable odpalane jest na wątku głównym.\n *\n */\n void updateElements(MapElementUpdateRunnable mapElementUpdateRunnable);\n\n\n /**\n * Zwraca listę providerow.\n *\n */\n Set<MapBoxElementsProvider> getProviders();\n\n <T extends MapBoxElementsProvider >T getProvider(Class<T> providerClass);\n\n <T extends MapBoxElementsProvider > boolean hasProvider(Class<T> providerClass);\n}", "public void handleModifyParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n\n if (getPartToModify() != null)\n {\n partController.setModifyParts(true);\n partController.setPartToModify(getPartToModify());\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n\n }\n else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to modify from the part table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public interface Clash extends EntityComponent {\r\n}", "@Override\n\tpublic SceneObject getController() {\n\t\treturn null;\n\t}", "public List<Action> getActions(){return actions;}", "@Override\n public synchronized void start() {\n createControllerForContextEntity(metadata, behaviorSpecs);\n\n /**\n * set allProvided service in order to create all the service controller link to behavior\n */\n ProvidedService providedService = getContextEntityProvidedService(metadata);\n for (Map.Entry<String, RequiredFunctionalExtension> requiredBehaviorEntry : myRequiredBehaviorById.entrySet()) {\n requiredBehaviorEntry.getValue().setProvidedService(providedService);\n }\n\n for (String mandatoryBehaviorId : mandatoryBehavior) {\n myRequiredBehaviorById.get(mandatoryBehaviorId).tryStartExtension();\n }\n }", "public interface EntityControl {\n\n\t/**\n\t * Update call for the AI that moves the attached owner.\n\t * \n\t * @param tpf\n\t * \t\tthe time per frame\n\t */\n\tvoid move(float tpf);\n\n\t/**\n\t * Set the owner of this ai.\n\t * \n\t * @param owner\n\t * \t\tthe owner of this ai.\n\t */\n\tvoid setOwner(Entity owner);\n\n}", "protected void createActions()\n {\n super.createActions();\n \n wireAction(\n new ContentAssistAction(\n PerlEditorMessages.getResourceBundle(),\n \"ContentAssistProposal.\",\n this),\n PerlEditorCommandIds.CONTENT_ASSIST,\n PerlEditorActionIds.CONTENT_ASSIST);\n \n // each marker clearing action gets its own wiring\n wireAction(new ClearMarkerAction.Critic(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_CRITIC_MARKERS);\n wireAction(new ClearMarkerAction.PodChecker(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_POD_MARKERS);\n wireAction(new ClearMarkerAction.AllMarkers(this), PerlEditorCommandIds.CLEAR_MARKER,\n PerlEditorActionIds.CLEAR_ALL_MARKERS);\n \n wireAction(new PodCheckerAction(this), PerlEditorCommandIds.POD_CHECKER,\n PerlEditorActionIds.POD_CHECKER);\n wireAction(new ToggleCommentAction(this), PerlEditorCommandIds.TOGGLE_COMMENT,\n PerlEditorActionIds.TOGGLE_COMMENT);\n wireAction(new PerlCriticAction(this), PerlEditorCommandIds.CRITIQUE_SOURCE,\n PerlEditorActionIds.PERL_CRITIC);\n wireAction(new FormatSourceAction(this), PerlEditorCommandIds.FORMAT_SOURCE,\n PerlEditorActionIds.FORMAT_SOURCE);\n wireAction(new Jump2BracketAction(this), PerlEditorCommandIds.MATCHING_BRACKET,\n PerlEditorActionIds.MATCHING_BRACKET);\n wireAction(new ExportHtmlSourceAction(this), PerlEditorCommandIds.HTML_EXPORT,\n PerlEditorActionIds.HTML_EXPORT);\n wireAction(new ValidateSourceAction(this), PerlEditorCommandIds.VALIDATE_SYNTAX,\n PerlEditorActionIds.VALIDATE_SYNTAX);\n wireAction(new OpenDeclarationAction(this), PerlEditorCommandIds.OPEN_DECLARATION,\n PerlEditorActionIds.OPEN_DECLARATION);\n wireAction(new PerlDocAction(this), PerlEditorCommandIds.PERL_DOC,\n PerlEditorActionIds.PERL_DOC);\n wireAction(new ExtractSubroutineAction(this), PerlEditorCommandIds.EXTRACT_SUBROUTINE,\n PerlEditorActionIds.EXTRACT_SUBROUTINE);\n }", "public interface BehaviorPane {\n public AbstractBehavior getBehavior();\n\n void setBehavior(AbstractBehavior behavior);\n}", "public interface EntityEffect extends Effect{\n\n}", "public List controls(){\n return controls;\n }", "public void prepareEditor(){\n System.out.println(\"Prepare editor to be used !\");\r\n ((EditorScene)map.getScene()).initScene(20,20,map);\r\n ((EditorScene)map.getScene()).setController(this);\r\n builder.registerBasicEffect();\r\n ((EditorScene)map.getScene()).initListView(builder.getEffects(),selectEffects);\r\n\r\n\r\n\r\n }", "public interface EJBMediatorPropertiesEditionPart {\n\n\t/**\n\t * @return the description\n\t * \n\t */\n\tpublic String getDescription();\n\n\t/**\n\t * Defines a new description\n\t * @param newValue the new description to set\n\t * \n\t */\n\tpublic void setDescription(String newValue);\n\n\n\t/**\n\t * @return the commentsList\n\t * \n\t */\n\tpublic EList getCommentsList();\n\n\t/**\n\t * Defines a new commentsList\n\t * @param newValue the new commentsList to set\n\t * \n\t */\n\tpublic void setCommentsList(EList newValue);\n\n\t/**\n\t * Add a value to the commentsList multivalued attribute.\n\t * @param newValue the value to add\n\t */\n\tpublic void addToCommentsList(Object newValue);\n\n\t/**\n\t * Remove a value to the commentsList multivalued attribute.\n\t * @param newValue the value to remove\n\t */\n\tpublic void removeToCommentsList(Object newValue);\n\n\n\t/**\n\t * @return the Reverse\n\t * \n\t */\n\tpublic Boolean getReverse();\n\n\t/**\n\t * Defines a new Reverse\n\t * @param newValue the new Reverse to set\n\t * \n\t */\n\tpublic void setReverse(Boolean newValue);\n\n\n\t/**\n\t * @return the beanstalk\n\t * \n\t */\n\tpublic String getBeanstalk();\n\n\t/**\n\t * Defines a new beanstalk\n\t * @param newValue the new beanstalk to set\n\t * \n\t */\n\tpublic void setBeanstalk(String newValue);\n\n\n\t/**\n\t * @return the class\n\t * \n\t */\n\tpublic String getClass_();\n\n\t/**\n\t * Defines a new class\n\t * @param newValue the new class to set\n\t * \n\t */\n\tpublic void setClass_(String newValue);\n\n\n\t/**\n\t * @return the method\n\t * \n\t */\n\tpublic String getMethod();\n\n\t/**\n\t * Defines a new method\n\t * @param newValue the new method to set\n\t * \n\t */\n\tpublic void setMethod(String newValue);\n\n\n\t/**\n\t * @return the sessionIdType\n\t * \n\t */\n\tpublic Enumerator getSessionIdType();\n\n\t/**\n\t * Init the sessionIdType\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initSessionIdType(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new sessionIdType\n\t * @param newValue the new sessionIdType to set\n\t * \n\t */\n\tpublic void setSessionIdType(Enumerator newValue);\n\n\n\t/**\n\t * @return the sessionIdLiteral\n\t * \n\t */\n\tpublic String getSessionIdLiteral();\n\n\t/**\n\t * Defines a new sessionIdLiteral\n\t * @param newValue the new sessionIdLiteral to set\n\t * \n\t */\n\tpublic void setSessionIdLiteral(String newValue);\n\n\n\t/**\n\t * @return the remove\n\t * \n\t */\n\tpublic Boolean getRemove();\n\n\t/**\n\t * Defines a new remove\n\t * @param newValue the new remove to set\n\t * \n\t */\n\tpublic void setRemove(Boolean newValue);\n\n\n\t/**\n\t * @return the target\n\t * \n\t */\n\tpublic String getTarget();\n\n\t/**\n\t * Defines a new target\n\t * @param newValue the new target to set\n\t * \n\t */\n\tpublic void setTarget(String newValue);\n\n\n\t/**\n\t * @return the JNDIName\n\t * \n\t */\n\tpublic String getJNDIName();\n\n\t/**\n\t * Defines a new JNDIName\n\t * @param newValue the new JNDIName to set\n\t * \n\t */\n\tpublic void setJNDIName(String newValue);\n\n\n\n\n\t/**\n\t * Init the methodArguments\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initMethodArguments(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the methodArguments\n\t * @param newValue the methodArguments to update\n\t * \n\t */\n\tpublic void updateMethodArguments();\n\n\t/**\n\t * Adds the given filter to the methodArguments edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToMethodArguments(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the methodArguments edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToMethodArguments(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the methodArguments table\n\t * \n\t */\n\tpublic boolean isContainedInMethodArgumentsTable(EObject element);\n\n\n\n\n\t// Start of user code for sessionIdExpression specific getters and setters declaration\n public NamespacedProperty getSessionIdExpression();\n\n public void setSessionIdExpression(NamespacedProperty nameSpacedProperty);\n\n\t// End of user code\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "private void setController() {\n\t\tcontroller = new Controller();\n\t\t// adds mouse listeners\n\t\tthis.addMouseListener(controller);\n\t\tthis.addMouseMotionListener(controller);\n\t\t// adds default DraggableRect objects with positions\n\n\t\t// adds all draggableRects to the JFrame\n\t\t/*\n\t\t * for(DraggableRect r : controller.getRects()){ add(r); }\n\t\t */\n\t}", "public interface IPeriodController extends IDisplayablePlugin {\r\n\t/**\r\n\t * This method is called by the platform whenever it needs DTOs for a\r\n\t * specific period.\r\n\t * \r\n\t * <p>\r\n\t * The <code>dto</code> parameter contains a reference to the DTO for this\r\n\t * period. It's up to the controller to remove any existing child DTOs.\r\n\t * \r\n\t * <p>\r\n\t * The <code>panel</code> parameter contains a reference to a {@link JPanel}\r\n\t * where the view can put its components.\r\n\t * \r\n\t * Modifications to the DTO can (and most probably will) occur even after\r\n\t * the function has returned.\r\n\t * \r\n\t * @param period\r\n\t * The DTO of the period.\r\n\t * @return Component where the view has put its components, or null if not\r\n\t * necessary\r\n\t */\r\n\tComponent editDTO(DTOPeriod period);\r\n\r\n\t/**\r\n\t * Defines the priority. This is used to sort the controllers before\r\n\t * displaying them at the GUI. The controller with the highest priority will\r\n\t * be displayed first.\r\n\t * \r\n\t * @return The priority of the controller.\r\n\t */\r\n\tint getGuiPriority();\r\n\r\n\t/**\r\n\t * Returns a list with the keys of all values which can be determined\r\n\t * stochastically.\r\n\t * \r\n\t * @return a list with the keys of all values which can be determined\r\n\t * stochastically.\r\n\t */\r\n\tList<DTOKeyPair> getStochasticKeys();\r\n}", "private DListUI<IC_OperationsFromSelectedImpactForList> createConsequencesField() {\n\t\tfinal IC_OperationsFromSelectedImpactForList ic = new IC_OperationsFromSelectedImpactForList(_updateState, \r\n\t\t\t\tOperationAnalysisCategory.CONSEQUENCE);\r\n\t\t_selectImpactListeners.add(ic);\r\n\t\t\r\n\t\tAbstractModelController mc = new AbstractModelController() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Object getValue() {\r\n\t\t\t\treturn ic.getListOfValues();\r\n\t\t\t}\r\n\r\n\t\t\tpublic void notifieValueChanged(UIField field, Object value) {\r\n\t\t\t\t// do nothing\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\treturn\t_swtuiPlatforms.createDListUI(_page, \"#listOfConsequences\",\r\n\t\t\t\t\"Consequences\", EPosLabel.top, mc, ic, false, false, false, false);\r\n\t}", "private SoundController() {\n\t\tsoundbank = new HashMap<String, Sound>();\n\t\tmusicbank = new HashMap<String, Music>();\n\t\tactives = new IdentityMap<String,ActiveSound>();\n\t\tcollection = new Array<String>();\n\t\tcooldown = DEFAULT_COOL;\n\t\ttimeLimit = DEFAULT_LIMIT;\n\t\tframeLimit = DEFAULT_FRAME;\n\t\tcurrent = 0;\n\t}", "public interface Controller {\n\n /**\n * Updates all model components of this controller\n */\n void update();\n\n /**\n * Updates all view components of this controller\n *\n * @param brush related to component views\n */\n void render(Graphics2D brush);\n\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 interface SlamPropertiesEditionPart {\n\n\t/**\n\t * @return the side\n\t * \n\t */\n\tpublic Enumerator getSide();\n\n\t/**\n\t * Init the side\n\t * @param eenum the enum to manage\n\t * @param current the current value\n\t */\n\tpublic void initSide(EEnum eenum, Enumerator current);\n\n\t/**\n\t * Defines a new side\n\t * @param newValue the new side to set\n\t * \n\t */\n\tpublic void setSide(Enumerator newValue);\n\n\n\t/**\n\t * @return the announced\n\t * \n\t */\n\tpublic Boolean getAnnounced();\n\n\t/**\n\t * Defines a new announced\n\t * @param newValue the new announced to set\n\t * \n\t */\n\tpublic void setAnnounced(Boolean newValue);\n\n\n\t/**\n\t * @return the achieved\n\t * \n\t */\n\tpublic Boolean getAchieved();\n\n\t/**\n\t * Defines a new achieved\n\t * @param newValue the new achieved to set\n\t * \n\t */\n\tpublic void setAchieved(Boolean newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public interface Entity {\n\n /**\n * Returns the position of this entity in the simulation system.\n *\n * @return the position of this entity.\n * @see Pasture\n * @see Point\n */\n public Point getPosition();\n\n /**\n * Sets the position of this entity.\n *\n * @param newPosition the new position of this entity.\n * @see Point\n */\n public void setPosition(Point newPosition);\n\n /**\n * Performs the relevant actions of this entity, depending on what kind of\n * entity it is.\n */\n public void tick();\n\n /**\n * Returns the icon of this entity, to be displayed by the pasture gui.\n *\n * @see PastureGUI\n */\n public ImageIcon getImage();\n\n /**\n * Returns the name of the entity\n */\n public String type();\n}", "public Collection getActs() {\n return acts;\n }", "private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}", "public AudioController(){\n\t sounds = new LinkedList<>();\n\t removables = new LinkedList<>();\n\t availableIds = new HashSet<>();\n\t populateIds();\n\t}", "private Controller getPartitionPanel() {\n return controller;\n }", "ControllerState getModifyState();", "public Controller getController()\n {\n return this.controller;\n }", "@Override\n\tpublic void setController(BotController controller) {\n\t}", "public void setController(Controller controller);", "public interface IEventController extends IEventHandler\n{\n\t/**\n\t\tCalled by the GameState before being added to the\n\t\tevent-system, it allows the controller to send events.\n\t*/\n\tpublic void setAddEventInterface( final IAddEvent _addInterface ) ;\n\n\t/**\n\t\tCalled to process the events it's accumulated from\n\t\tthe event-system.\n\t*/\n\tpublic void update() ;\n\n\tpublic void clearEvents() ;\n}", "public interface Controller {\n Action action();\n\n void noAction();\n\n void revive();\n\n void setEnemyShip(EnemyShip e);\n\n boolean theAnyButton();\n\n boolean isClicked();\n\n Point clickLocation();\n\n boolean shot();\n\n boolean p();\n\n}", "public interface BoardEditorInternalControllerObserver {\n\n\t/**\n\t * A change occurred in the sub-controller\n\t */\n\tvoid notify(BoardEditorInternalController source);\n\t\n}", "public interface IRobotConvView {\n void setRobotConvList(List<RobotConversation> robotConvList);\n}", "public interface AttributePropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the anotations\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAnotations(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the anotations\n\t * @param newValue the anotations to update\n\t * \n\t */\n\tpublic void updateAnotations();\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the anotations edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAnotations(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the anotations table\n\t * \n\t */\n\tpublic boolean isContainedInAnotationsTable(EObject element);\n\n\n\t/**\n\t * @return the visibility\n\t * \n\t */\n\tpublic Enumerator getVisibility();\n\n\t/**\n\t * Init the visibility\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initVisibility(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new visibility\n\t * @param newValue the new visibility to set\n\t * \n\t */\n\tpublic void setVisibility(Enumerator newValue);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}", "public void persist() {\r\n try {\r\n ComponentController componentController = new ComponentController();\r\n WorthController worthController = new WorthController();\r\n ParameterController parameterController = new ParameterController();\r\n AssemblyController assemblyController = new AssemblyController();\r\n for (Component component : components) {\r\n if (component.getId() == null) {\r\n componentController.create(component);\r\n } else {\r\n\r\n componentController.edit(component);\r\n\r\n }\r\n }\r\n for (int i = deletedComponents.size() - 1; i >= 0; i--) {\r\n if (deletedComponents.get(i).getId() != null) {\r\n for (int b = deletedComponents.get(i).getAssemblys().size() - 1; b >= 0; b--) {\r\n if (deletedComponents.get(i).getAssemblys().get(b).getId() != null) {\r\n try {\r\n assemblyController.destroy(deletedComponents.get(i).getAssemblys().get(b).getId());\r\n } catch (NonexistentEntityException ex) {\r\n\r\n }\r\n deletedComponents.get(i).getAssemblys().remove(i);\r\n }\r\n }\r\n\r\n try {\r\n componentController.destroy(deletedComponents.get(i).getId());\r\n } catch (NonexistentEntityException ex) {\r\n\r\n }\r\n }\r\n }\r\n deletedComponents.clear();\r\n\r\n if (ProjectViewController.isProjectOpened() == false) {\r\n worthController.create(new Worth(ProjectViewController.getOpenedProject(), parameterController.findParameterPByShortTerm(\"GP\"), getColmunSum(tc_Price)));\r\n worthController.create(new Worth(ProjectViewController.getOpenedProject(), parameterController.findParameterPByShortTerm(\"KZPG\"), getColmunSum(tc_CuttingPrice)));\r\n worthController.create(new Worth(ProjectViewController.getOpenedProject(), parameterController.findParameterPByShortTerm(\"GKV\"), getColmunSum(tc_CuttingPrice) + getColmunSum(tc_Price)));\r\n } else {\r\n Worth materialCost = worthController.findWorthByParameterIdAndProjectId(parameterController.findParameterPByShortTerm(\"GP\").getId(), ProjectViewController.getOpenedProject().getId());\r\n materialCost.setWorth(getColmunSum(tc_Price));\r\n Worth wageCost = worthController.findWorthByParameterIdAndProjectId(parameterController.findParameterPByShortTerm(\"KZPG\").getId(), ProjectViewController.getOpenedProject().getId());\r\n wageCost.setWorth(getColmunSum(tc_CuttingPrice));\r\n Worth totalCost = worthController.findWorthByParameterIdAndProjectId(parameterController.findParameterPByShortTerm(\"GKV\").getId(), ProjectViewController.getOpenedProject().getId());\r\n totalCost.setWorth(getColmunSum(tc_CuttingPrice) + getColmunSum(tc_Price));\r\n worthController.edit(materialCost);\r\n worthController.edit(wageCost);\r\n worthController.edit(totalCost);\r\n }\r\n } catch (Exception e) {\r\n Logging.getLogger().log(Level.SEVERE, \"Project_ConstructionMaterialListController: persist method didn't work.\", e);\r\n }\r\n }", "public interface IFormControl extends IActionControl, ICompoundLifecycleElement {\r\n\r\n\t/**\r\n\t * <p>\r\n\t * Sets the value of the FormControl. By default the value attribute of the HTML representation will be set.\r\n\t * </p>\r\n\t * \r\n\t * @param value the value as text\r\n\t */\r\n\tvoid setValue(String value);\r\n\r\n\t/**\r\n\t * <p>\r\n\t * Set the converter for displaying the value. e.g. DateConverter\r\n\t * </p>\r\n\t * \r\n\t * @param conv the converter, if none is specified the value is a simple text\r\n\t */\r\n\tvoid setConverter(IConverter conv);\r\n\r\n\t/**\r\n\t * <p>\r\n\t * Set the validator for displaying the value. e.g. MandatoryValdator\r\n\t * </p>\r\n\t * \r\n\t * @param validator the validator to add\r\n\t */\r\n\tvoid addValidator(IValidator validator);\r\n\r\n\t/**\r\n\t * Clears Validators of the FormControl\r\n\t * \r\n\t */\r\n\tvoid clearValidators();\r\n\r\n\t/**\r\n\t * Sets the focus to this FormControl.\r\n\t */\r\n\tvoid focus();\r\n\r\n\t/**\r\n\t * For fields that can be set on creation and can't be edited later (like key attributes) you have to set the isFinal flag.\r\n\t * \r\n\t * @param isFinal if the value can be changed after creation\r\n\t */\r\n\tvoid setFinal(boolean isFinal);\r\n\r\n\t/**\r\n\t * If a FormControl and a label belonging together this can be set here. This will be used later on for error messages and so\r\n\t * on.\r\n\t * \r\n\t * @param describingLabel the Label\r\n\t */\r\n\tvoid setDescribingLabel(ILabel describingLabel);\r\n\r\n\t/**\r\n\t * Set the tabindex of a html element. The developer has to make sure that he does not use the same tabindex more than once on\r\n\t * the page Changing the tabindex after rendering the html element has no effect until the element is redrawn\r\n\t * \r\n\t * @param tabindex the tabindex of the element\r\n\t */\r\n\tvoid setTabindex(int tabindex);\r\n\r\n\t/**\r\n\t * returns the tabindex value of a html element.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic int getTabindex();\r\n\r\n\t/**\r\n\t * Set the tabindex of a html element using the tabindex of another FormControl Element adding 1. The developer has to make\r\n\t * sure that he does not use the same tabindex more than once on the page Changing the tabindex after rendering the html\r\n\t * element has no effect until the element is redrawn\r\n\t * \r\n\t * @param predecessor\r\n\t */\r\n\tpublic void setTabindexPredecessor(IFormControl predecessor);\r\n\r\n\t/**\r\n\t * get the current value for this form element as String\r\n\t * \r\n\t * @return the value as string\r\n\t */\r\n\tString getValue();\r\n\r\n\t/**\r\n\t * returns the converted value if a converter is set otherwise the string value is returned\r\n\t * \r\n\t * @return the value after processing the converter\r\n\t * @throws ConversionException if there is a error at converting\r\n\t */\r\n\tObject getConvertedValue() throws ConversionException;\r\n\r\n\t/**\r\n\t * change the display mode to readonly, edit or new\r\n\t * \r\n\t * @param mode constants can be found in compound\r\n\t */\r\n\tvoid changeMode(int mode);\r\n\r\n\t/**\r\n\t * calls the validators of the form control\r\n\t * \r\n\t * @throws ValidationException if one validator fails\r\n\t */\r\n\tvoid validate() throws ValidationException;\r\n\r\n\t/**\r\n\t * @param property set the property name of the object in the business object\r\n\t */\r\n\tvoid setProperty(String property);\r\n\r\n\t/**\r\n\t * get the property name of the object in the business object\r\n\t */\r\n\tString getProperty();\r\n\r\n\t/**\r\n\t * @return the label that describes the FormControl\r\n\t */\r\n\tILabel getDescribingLabel();\r\n\r\n\t/**\r\n\t * sets the value of the FormControl default it is set to the value attribute of the HTML representation\r\n\t */\r\n\tvoid setObjectValue(Object dataObject);\r\n\r\n}", "@Override\n\tpublic GameController getController() {\n\t\treturn gameController;\n\t}", "public static HashMap<Integer, Object> showEditEffectDialog( EffectsController effectsController, int effectType, HashMap<Integer, Object> currentProperties ) {\r\n\r\n HashMap<Integer, Object> effectProperties = null;\r\n\r\n switch( effectType ) {\r\n case Effect.ACTIVATE:\r\n effectProperties = new FlagEffectDialog( FlagEffectDialog.ACTIVATE, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.DEACTIVATE:\r\n effectProperties = new FlagEffectDialog( FlagEffectDialog.DEACTIVATE, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.SET_VALUE:\r\n effectProperties = new VarEffectDialog( VarEffectDialog.SET_VALUE, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.INCREMENT_VAR:\r\n effectProperties = new VarEffectDialog( VarEffectDialog.INCREMENT_VAR, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.DECREMENT_VAR:\r\n effectProperties = new VarEffectDialog( VarEffectDialog.DECREMENT_VAR, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.MACRO_REF:\r\n effectProperties = new MacroReferenceEffectDialog( currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.CONSUME_OBJECT:\r\n effectProperties = new ObjectEffectDialog( ObjectEffectDialog.CONSUME, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.GENERATE_OBJECT:\r\n effectProperties = new ObjectEffectDialog( ObjectEffectDialog.GENERATE, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.CANCEL_ACTION:\r\n case Effect.TRIGGER_LAST_SCENE:\r\n effectProperties = new HashMap<Integer, Object>( );\r\n break;\r\n case Effect.SPEAK_PLAYER:\r\n effectProperties = new SpeakPlayerEffectDialog( effectsController, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.SPEAK_CHAR:\r\n effectProperties = new SpeakCharacterEffectDialog( effectsController, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.TRIGGER_BOOK:\r\n effectProperties = new TriggerBookEffectDialog( currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.PLAY_SOUND:\r\n effectProperties = new PlaySoundEffectDialog( effectsController, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.PLAY_ANIMATION:\r\n effectProperties = new PlayAnimationEffectDialog( effectsController, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.MOVE_PLAYER:\r\n effectProperties = new MovePlayerEffectDialog( currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.MOVE_NPC:\r\n effectProperties = new MoveNPCEffectDialog( currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.TRIGGER_CONVERSATION:\r\n effectProperties = new TriggerConversationEffectDialog( currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.TRIGGER_CUTSCENE:\r\n effectProperties = new TriggerCutsceneEffectDialog( currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.TRIGGER_SCENE:\r\n effectProperties = new TriggerSceneEffectDialog( currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.WAIT_TIME:\r\n effectProperties = new WaitTimeEffectDialog( currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.SHOW_TEXT:\r\n effectProperties = new ShowTextEffectDialog( effectsController, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.HIGHLIGHT_ITEM:\r\n effectProperties = new HighlightItemEffectDialog( HighlightItemEffectDialog.HIGHLIGHT, currentProperties ).getEffectProperties( );\r\n break;\r\n case Effect.MOVE_OBJECT:\r\n effectProperties = new MoveObjectEffectDialog( currentProperties ).getEffectProperties( );\r\n break;\r\n }\r\n\r\n return effectProperties;\r\n }", "public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}", "@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}", "private DListUI<IC_OperationsFromSelectedImpactForList> createCausesField() {\n\t\tfinal IC_OperationsFromSelectedImpactForList ic = new IC_OperationsFromSelectedImpactForList(_updateState, \r\n\t\t\t\tOperationAnalysisCategory.CAUSE);\r\n\t\t_selectImpactListeners.add(ic);\r\n\t\t\r\n\t\tAbstractModelController mc = new AbstractModelController() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Object getValue() {\r\n\t\t\t\treturn ic.getListOfValues();\r\n\t\t\t}\r\n\r\n\t\t\tpublic void notifieValueChanged(UIField field, Object value) {\r\n\t\t\t\t// do nothing\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\treturn\t_swtuiPlatforms.createDListUI(_page, \"#listOfCauses\",\r\n\t\t\t\t\"Causes\", EPosLabel.top, mc, ic, false, false, false, false);\r\n\t}", "public ProcessController processController() {\r\n\t\treturn modelController;\r\n\t}", "public interface ChainController extends Controller<Chain> {\n}", "public DuxComController getController() {\n return this.controller;\n }", "public interface BeerView\n{\n\n void setBeers(List<Beer> beers);\n\n void startDetails(Beer beer);\n\n void addBeers(List<Beer> beers);\n}", "public void setControllers(BottonsController controlador) {\n\t\tjbFavorites.addActionListener(controlador);\n\t\tjbFavorites.setActionCommand(\"favorites\");\n\t\t\n\t\tjbSongs.addActionListener(controlador);\n\t\tjbSongs.setActionCommand(\"Songs\");\n\t\t\n\t\tjbPartyList.addActionListener(controlador);\n\t\tjbPartyList.setActionCommand(\"PartyList\");\n\t\t\n\t\tjbCreateLists.addActionListener(controlador);\n\t\tjbCreateLists.setActionCommand(\"Create\");\n\t\t\n\t\tjertfTextList.addKeyListener(controlador);\n\t\tjertfTextList.setActionCommand(\"PRESS ENTER\");\n\t}", "public interface IController {\n\n /**\n * add action command to the Button.\n */\n void configureButtonListener();\n\n /**\n * add mouse command to the editView.\n */\n void configureMouseListener();\n\n}", "public interface ClientController {\n /**\n * Adds new object in the table.\n *\n * @return true if the addition was successful, else return false.\n */\n boolean add(Dish dish);\n\n /**\n * Adds new object in the table.\n *\n * @return true if the addition was successful, else return false.\n */\n boolean add(DishCategory dishCategory );\n\n\n /**\n * Edits existing dish.\n *\n * @param oldDish is an existing dish, that is changed.\n * @param newDish is a dish which parameters is set to existing dish.\n * @return true if the edition was successful, else return false.\n */\n boolean edit(Dish oldDish, Dish newDish);\n\n /**\n * Edits existing dish category.\n *\n * @param oldDishCategory is an existing dish category, that is changed.\n * @param newDishCategory is a dish category which parameters is set to existing dish category.\n * @return true if the edition was successful, else return false.\n */\n\n boolean edit(DishCategory oldDishCategory, DishCategory newDishCategory);\n\n /**\n * Edits existing user.\n *\n * @param oldUser is an existing user, that is changed.\n * @param newUser is an user which parameters is set to existing user.\n * @return true if the edition was successful, else return false.\n */\n boolean edit(User oldUser, User newUser);\n\n /**\n * Deletes existing dish.\n *\n * @return true if the deleting was successful, else return false.\n */\n boolean delete(Dish dish);\n\n /**\n * Deletes existing dish category.\n *\n * @return true if the deleting was successful, else return false.\n */\n boolean delete(DishCategory dishCategory);\n\n /**\n * Deletes existing user account.\n *\n * @param user is an user that is deleted.\n * @return true if user was deleted, else return false.\n */\n\n boolean delete(User user);\n\n /**\n * Updates content, getting actual information.\n * @return true if the update was successful, else return false.\n */\n boolean updateContent();\n\n /**\n * Connects to server\n */\n void connectToServer() throws IOException;\n\n /**\n * Disconnects from the server. Finishes the client session.\n */\n void exit();\n\n /**\n * Sends request to the server.\n *\n * @param message is sent as a request\n */\n void sendRequest(String message);\n\n /**\n * Checks if a user with the same password and login exists.\n *\n * @param login is the parameter by which the user is checked.\n * @param password is the parameter by which the user is checked.\n * @return user, if there is the user exists in user base, return null, if there is not the user exists in user base\n */\n User signIn(String login, String password);\n\n /**\n * Adds a new user to the database of existing ones.\n *\n * @param user is added as a new Admin\n * @return true if an <code>user</code> was added\n */\n boolean signUp(User user);\n\n\n /**\n * Signs out\n */\n void signOut();\n\n /**\n * Finds dishes which contain <code>subStr</code> in the name.\n *\n * @param subStr is the substring that the name must contain.\n * @return dishes which contain <code>subStr</code> in the name.\n */\n List<Dish> getDishesWhichContains(String subStr);\n\n /**\n * Sorts dishes by a criteria, which is pointed in parameter.\n * @param sortBy is a criteria, by which dishes are sorted.\n * @return list of dishes sorted by pointed criteria.\n */\n List <Dish> getDishesSortedBy(String sortBy);\n\n /**\n * Shows general frame.\n */\n void showGeneralFrame();\n\n /**\n * Gets all users from storage.\n *\n * @return all users that are sighed up.\n */\n List<User> getAllUsers();\n\n /**\n * Gives the user admin rights.\n *\n * @param user is a user, that gets admin rights.\n * @return true if operation was successful, else return false.\n */\n boolean makeAdmin(User user);\n\n}", "public interface Features {\n /**\n * Loads the image at the given filename into the controller's model.\n *\n * @param filename the location of the image to load\n * @throws IOException if the provided file path is invalid\n */\n void loadPhoto(String filename) throws IOException;\n\n /**\n * Loads a generated rainbow image into the controller's model.\n *\n * @param width width of image to generate in pixels\n * @param height height of image to generate in pixels\n * @param isHorizontal True for horizontal stripes, else vertical stripes\n */\n void loadRainbow(int width, int height, boolean isHorizontal);\n\n /**\n * Loads a generated checker board image into the controller's model.\n *\n * @param tileSize the side length of tiles for the generated image in pixels.\n */\n void loadCheckerBoard(int tileSize);\n\n /**\n * Saves the current state of the image in the controller's model to the specified file location.\n *\n * @param filename the location to save the image\n * @throws IOException if the provided file path is invalid\n */\n void saveToFile(String filename) throws IOException;\n\n /**\n * Applies the blur effect to the image loaded in the controller's model.\n */\n void blur();\n\n /**\n * Applies the sharpen effect to the image loaded in the controller's model.\n */\n void sharpen();\n\n /**\n * Applies the greyscale effect to the image loaded in the controller's model.\n */\n void greyscale();\n\n /**\n * Applies the sepia effect to the image loaded in the controller's model.\n */\n void sepia();\n\n /**\n * Applies the dither effect to the image loaded in the controller's model.\n */\n void dither();\n\n /**\n * Applies the Mosaic effect to the image loaded in the controller's model.\n *\n * @param seeds number of panes to generate in mosaic\n */\n void mosaic(int seeds);\n\n /**\n * reverts the controller's model to the image prior to the most recent effect.\n *\n * @throws IllegalStateException if no changes yet to undo\n */\n void undo();\n\n /**\n * reverts the controller's model to the image after the most recent effect.\n *\n * @throws IllegalStateException if no undos yet to restore\n */\n void redo();\n\n /**\n * Retrieves a copy of the image data stored in the controller's model image.\n *\n * @return a copy of the image data stored in the controller's model image\n */\n BufferedImage outputImage();\n\n /**\n * Runs the batch script commands provided in the given readable.\n *\n * @throws IOException if any issues with accessing the Readable\n */\n void executeScript(Readable script) throws IOException;\n}", "public void addContent() {\n content.add(neuralNetAndDataSet);\n content.add(trainingController);\n JMEVisualizationTopComponent.this.requestActive();\n }", "void setEditorController(EditorViewController gameEditorViewController);", "public interface IVisualController {\n\n /**\n * Begins the animation process by determining what views should be updated in the UI.\n */\n void startAnimation();\n\n /**\n * Produces a list of shapes that should be visible in the view.\n *\n * @return the list of visible shapes\n */\n List<IShape> getVisibleShapes();\n}", "public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}", "protected abstract Entity getEditedEntity();", "public PlayerController(World world, ElementModel model) {\n super(world, model, BodyDef.BodyType.DynamicBody);\n\n state = new FloatState();\n\n this.width = imageWidth;\n this.height = imageHeight;\n\n //head\n FixtureInfo info = new FixtureInfo(new float[]{\n 62, 186,\n 32, 122,\n 57, 67,\n 98, 48,\n 160, 53,\n 207, 123,\n 193, 195,\n 62, 186\n }, width, height);\n\n info.physicsComponents(density, friction, restitution);\n\n info.collisionComponents(PLAYER_BODY, (short) (PLANET_BODY | PLAYER_BODY | COMET_BODY));\n\n createFixture(body, info);\n\n //corns\n info.vertexes = new float[]{\n 114, 49,\n 118, 33,\n 109, 19,\n 142, 13,\n 142, 26,\n 129, 33,\n 114, 49};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 191, 83,\n 207, 66,\n 215, 52,\n 219, 26,\n 241, 34,\n 232, 52,\n 219, 76,\n 191, 83};\n\n createFixture(body, info);\n\n //arms\n info.vertexes = new float[]{\n 61, 196,\n 23, 198,\n 3, 217,\n 21, 268,\n 61, 196};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 150, 229,\n 175, 285,\n 166, 316,\n 156, 330,\n 150, 229};\n\n createFixture(body, info);\n\n\n //legs\n info.vertexes = new float[]{\n 31, 332,\n 37, 370,\n 36, 401,\n 31, 416,\n 90, 418,\n 85, 403,\n 81, 374,\n 31, 332};\n\n createFixture(body, info);\n\n info.vertexes = new float[]{\n 107, 359,\n 102, 395,\n 106, 418,\n 161, 417,\n 144, 397,\n 107, 359,\n 152, 327};\n\n createFixture(body, info);\n\n\n //Belly\n info.vertexes = new float[]{\n 75, 219,\n 17, 283,\n 41, 346,\n 90, 364,\n 143, 330,\n 151, 280,\n 138, 227,\n 75, 219};\n\n createFixture(body, info);\n\n this.body.setGravityScale(0);\n this.body.setAngularDamping(0.7f);\n\n this.lost = false;\n }", "public interface ControlUnit extends ActionSpecifier, PerceptHandler {\n\t\n\n\t/**\n\t * Sets the de.jdungeon.figure to be controlled by this ControlUnit. Should be used for\n\t * initialization only.\n\t * \n\t * @param f\n\t */\n\tvoid setFigure(FigureInfo f);\n\n\n\tdefault boolean isUI() {\n\t\treturn false;\n\t}\n\n\t/**\n\t * Tells the ControlUnit that its figure is on turn. Can be used for GUI\n\t * rendering for instance.\n\t */\n\tvoid onTurn();\n\n\t/**\n\t * Handles the end of the GUIs for instance can show Game-Over screen.\n\t */\n\tvoid gameOver();\n\n\t/**\n\t * Provides feedback about an executed action. In particular, if an invalid\n\t * action had been specified a corresponding ActionResult is provided.\n\t * (ActionResult)\n\t * @param action\n\t * The action that was (tried to be) executed by this de.jdungeon.figure\n\t * @param res\n\t * @param round\n\t */\n\tvoid actionProcessed(Action action, ActionResult res, int round);\n\t\n\t/**\n\t * \n\t * \n\t * @param f\n\t * @return\n\t */\n\tboolean isHostileTo(FigureInfo f);\n\t\n\t/**\n\t * Called when the visibility status of room number p has been decreased.\n\t * (Can be used to store memory of latest available information about the\n\t * room.)\n\t * \n\t * @param p\n\t */\n\tvoid notifyVisibilityStatusDecrease(JDPoint p);\n\n\t/**\n\t * Called when the visibility status of room number p has been increased.\n\t * (Can be used to highlight that fact prominently to the de.jdungeon.user.\n\t *\n\t * @param p\n\t */\n\tvoid notifyVisibilityStatusIncrease(JDPoint p);\n\n\tvoid exitUsed(LevelExit exit, Figure f);\n}", "@Override\r\n\tprotected void processAddChildElementObject(ElementObjectI ceo) {\r\n\t\tif (ceo instanceof ListI) {// actions\r\n\t\t\tthis.actionsDiv.append(ceo.getElement());\r\n\t\t} else {\r\n\t\t\tsuper.processAddChildElementObject(ceo);\r\n\t\t}\r\n\t}", "public void makesHereBack(){this.piece.affect();}", "public final AbstractControlComponent getController() {\n\t\treturn this.controller;\n\t}", "public Controller getController();", "@SuppressWarnings(\"unchecked\")\n private void create() {\n components.clear();\n\n if (content != null) {\n content.clearChildren();\n }\n else {\n content = new Container();\n content.setInsets(INSETS);\n }\n\n GuiComponent guiComponent = (GuiComponent) getReflectedItem().getValue();\n\n // let the user choose which type of backgroundComponent they want.\n Label label = content.addChild(new Label(\"Type\"), 0, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n Container backgroundTypeContainer = content.addChild(new Container(), 0, 1);\n\n ColorRGBA oldColor = BackgroundUtils.getBackgroundColor(guiComponent);\n\n Button colorOnlyBgButton = backgroundTypeContainer.addChild(new Button(\"Color Only\"), 0, 0);\n colorOnlyBgButton.addClickCommands(source -> {\n if (!(guiComponent instanceof QuadBackgroundComponent)) {\n setValue(new QuadBackgroundComponent(oldColor));\n create();\n }\n });\n\n Button colorAndImageBgButton = backgroundTypeContainer.addChild(new Button(\"Color and Image\"), 0, 1);\n colorAndImageBgButton.addClickCommands(source -> {\n if (!(guiComponent instanceof TbtQuadBackgroundComponent)) {\n setValue(BackgroundComponents.gradient(oldColor));\n create();\n }\n });\n\n if (guiComponent instanceof QuadBackgroundComponent) {\n\n try {\n\n Method getter = QuadBackgroundComponent.class.getDeclaredMethod(\"getColor\");\n Method setter = QuadBackgroundComponent.class.getDeclaredMethod(\"setColor\", ColorRGBA.class);\n\n label = content.addChild(new Label(\"Color\"), 1, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(guiComponent, getter, setter);\n content.addChild(bgColorComponent.getPanel(), 1, 1);\n components.add(bgColorComponent);\n\n // margin\n getter = QuadBackgroundComponent.class.getDeclaredMethod(\"getMargin\");\n setter = QuadBackgroundComponent.class.getDeclaredMethod(\"setMargin\", Vector2f.class);\n\n label = content.addChild(new Label(\"Margin\"), 2, 0);\n Vector2fComponent marginComponent = new Vector2fComponent(guiComponent, getter, setter);\n content.addChild(marginComponent.getPanel(), 2, 1);\n components.add(marginComponent);\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n\n }\n else if (guiComponent instanceof TbtQuadBackgroundComponent) {\n\n TbtQuadBackgroundComponent backgroundComponent = (TbtQuadBackgroundComponent) guiComponent;\n\n try {\n Method getter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"getColor\");\n Method setter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"setColor\", ColorRGBA.class);\n\n label = content.addChild(new Label(\"Color\"), 1, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(guiComponent, getter, setter);\n content.addChild(bgColorComponent.getPanel(), 1, 1);\n components.add(bgColorComponent);\n\n label = content.addChild(new Label(\"Image\"), 2, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n Button browseImageButton = content.addChild(new Button(\"Select Background Image...\"), 2, 1);\n browseImageButton.setTextVAlignment(VAlignment.Center);\n browseImageButton.addClickCommands(source -> {\n\n JFileChooser jfc = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n jfc.setDialogTitle(\"Select a Background Image...\");\n jfc.setMultiSelectionEnabled(false);\n jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n jfc.setAcceptAllFileFilterUsed(false);\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"PNG Images\", \"png\");\n jfc.addChoosableFileFilter(filter);\n int returnValue = jfc.showOpenDialog(null);\n\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n\n File file = jfc.getSelectedFile();\n\n\n try {\n\n byte[] imageData = Files.readAllBytes(file.toPath());\n byte[] stringData = Base64.getEncoder().encode(imageData);\n\n String imageString = new String(stringData);\n\n // PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n // panelBackground.setBase64Image(imageString);\n\n Texture texture = new TextureUtils().fromBase64(imageString);\n\n backgroundComponent.setTexture(texture);\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n });\n\n // margin\n getter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"getMargin\");\n setter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"setMargin\", Vector2f.class);\n\n label = content.addChild(new Label(\"Margin\"), 3, 0);\n Vector2fComponent marginComponent = new Vector2fComponent(guiComponent, getter, setter);\n content.addChild(marginComponent.getPanel(), 3, 1);\n components.add(marginComponent);\n\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n\n }\n\n//\n// this.content = new RollupPanel(\"\", contentContainer, null);\n// this.content.setOpen(false);\n//\n// // background Image\n// Container bgImageContainer = contentContainer.addChild(new Container(new SpringGridLayout(Axis.Y, Axis.X, FillMode.Last, FillMode.Last)), 0, 0);\n// Label bgImageLabel = bgImageContainer.addChild(new Label(\"Background Image\"), 0, 0);\n// bgImageLabel.setTextVAlignment(VAlignment.Center);\n// bgImageLabel.setInsets(new Insets3f(0.0F, 2.0F, 0.0F, 5.0F));\n// Button browseImageButton = bgImageContainer.addChild(new Button(\"Browse...\"), 0, 1);\n// Button removeImageButton = bgImageContainer.addChild(new Button(\"Remove\"), 0, 2);\n// bgImageContainer.addChild(new Container(), 0, 3);\n//\n// browseImageButton.addClickCommands(source -> {\n//\n// JFileChooser jfc = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n// jfc.setDialogTitle(\"Select a Background Image...\");\n// jfc.setMultiSelectionEnabled(false);\n// jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n// jfc.setAcceptAllFileFilterUsed(false);\n// FileNameExtensionFilter filter = new FileNameExtensionFilter(\"PNG Images\", \"png\");\n// jfc.addChoosableFileFilter(filter);\n// int returnValue = jfc.showOpenDialog(null);\n//\n// if (returnValue == JFileChooser.APPROVE_OPTION) {\n//\n// File file = jfc.getSelectedFile();\n//\n// try {\n// byte[] imageData = Files.readAllBytes(file.toPath());\n// byte[] stringData = Base64.getEncoder().encode(imageData);\n//\n// String imageString = new String(stringData);\n//\n// PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n// panelBackground.setBase64Image(imageString);\n//\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// }\n//\n// });\n//\n// removeImageButton.addClickCommands(source -> {\n// PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n// panelBackground.setBase64Image(\"\");\n// });\n//\n//\n// try {\n//\n// // color\n// Method get = PanelBackground.class.getMethod(\"getColor\");\n// Method set = PanelBackground.class.getMethod(\"setColor\", ColorRGBA.class);\n//\n// ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(getReflectedProperty().getValue(), get, set);\n// bgColorComponent.setPropertyName(\"Color\");\n// contentContainer.addChild(bgColorComponent.getPanel());\n// components.add(bgColorComponent);\n//\n// // insetTop\n// get = PanelBackground.class.getMethod(\"getInsetTop\");\n// set = PanelBackground.class.getMethod(\"setInsetTop\", int.class);\n//\n// IntComponent insetTopComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetTopComponent.setPropertyName(\"Inset Top\");\n// contentContainer.addChild(insetTopComponent.getPanel());\n// components.add(insetTopComponent);\n//\n// // insetLeft\n// get = PanelBackground.class.getMethod(\"getInsetLeft\");\n// set = PanelBackground.class.getMethod(\"setInsetLeft\", int.class);\n//\n// IntComponent insetLeftComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetLeftComponent.setPropertyName(\"Inset Left\");\n// contentContainer.addChild(insetLeftComponent.getPanel());\n// components.add(insetLeftComponent);\n//\n// // insetBottom\n// get = PanelBackground.class.getMethod(\"getInsetBottom\");\n// set = PanelBackground.class.getMethod(\"setInsetBottom\", int.class);\n//\n// IntComponent insetBottomComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetBottomComponent.setPropertyName(\"Inset Bottom\");\n// contentContainer.addChild(insetBottomComponent.getPanel());\n// components.add(insetBottomComponent);\n//\n// // insetRight\n// get = PanelBackground.class.getMethod(\"getInsetRight\");\n// set = PanelBackground.class.getMethod(\"setInsetRight\", int.class);\n//\n// IntComponent insetRightComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetRightComponent.setPropertyName(\"Inset Right\");\n// contentContainer.addChild(insetRightComponent.getPanel());\n// components.add(insetRightComponent);\n//\n// // zOffset\n// get = PanelBackground.class.getMethod(\"getzOffset\");\n// set = PanelBackground.class.getMethod(\"setzOffset\", float.class);\n//\n// FloatComponent zOffsetComponent = new FloatComponent(getReflectedProperty().getValue(), get, set);\n// zOffsetComponent.setPropertyName(\"Z-Offset\");\n// contentContainer.addChild(zOffsetComponent.getPanel());\n// components.add(zOffsetComponent);\n//\n// } catch (NoSuchMethodException e) {\n// e.printStackTrace();\n// }\n\n\n }", "public interface EOAssociationConnector{\n /**\n * Invoked when one of the receiver's subcontrollers is disposed as a transient controller. Instructs the receiver to assume responsibility for managing the subcontroller's EOAssociation, association.\n */\n abstract void takeResposibilityForConnectionOfAssociation(com.webobjects.eointerface.EOAssociation association);\n\n}", "public eBehavior getBehavior() {\n return behavior;\n }", "@FXML\n public void addWell() {\n \tnew eMenuHandler().hideMenu();\n \tDisplayBuildingInstructions.showBuildingInstr();\n \tAddEntityOnMouseClick.setBuildMode(Boolean.TRUE);\n \tAddEntityOnMouseClick.entityList(new BuildingWell(0, 0));\n \n }", "public void cont_actionPerformed(ActionEvent e) {\n\t\t\n\t\t//Reset align to ItemFrame\n\t\tmyParent.resetAlign();\n\t\t\n\t\tinitEditorPanel();\n\t\tthis.buildGuidePanel();\n\t\tmyParent.editCM = false;\n\t\tmyParent.alignH = false;\n\t\tmyParent.alignV = false;\n\t\tmyParent.extendCM = true;\n\t\tmyParent.mullionsPanel.selectedHV = 0;\n\n myParent.setActionTypeEvent(MenuActionEventDraw.EXTEND_COUPLER_MULLION.getValue());\n\n\t\tvC.setSelected(false);\n\t\thC.setSelected(false);\n\t\tvC.setEnabled(false);\n\t\thC.setEnabled(false);\n\t}", "public void setController (Controller controller)\n {\n _controller = controller;\n }", "Behavior getBehavior();", "public FightController(Character character, Room room) {\n super(character, room);\n cardRewardGiven = false;\n relicRewardGiven = false;\n goldRewardGiven = false;\n potRewardGiven = false;\n isGameOver = false;\n turn = 0;\n enemies = ((EnemyRoom)room).getEnemies();\n enemyController = new EnemyController(room,character);\n System.out.println( \"number of cards in draw pile : \" + character.getDeck().getCards().size() );\n piles = new PileCollection( new Pile(),character.getDeck().getClone() , new Pile( ) , new Pile());\n\n effectHandler = new EffectHandler( enemies,enemyController,turn,3,piles,character);\n\n BuffFactory bF = new BuffFactory();\n //character.addBuff(bF.createBuff(\"Metallicize\",5) );\n //character.getBuffs().getBuffs().get(0).setRemainingTurn(5);//character\n // piles.getHandPile().addCard(CardFactory.getCard(\"PommelStrike\"));\n // character.getBuffs().getBuffs().get(0).setX(5);\n\n start();\n\n }", "protected List<TestElement> getSubControllers() {\n return subControllersAndSamplers;\n }", "public PiranhaController() {\n piranhas = new ArrayList<Piranha>();\n toRemove = new ArrayList<Piranha>();\n }", "public FilmController(){\r\n // Create a new ArrayList which will store ALL the films the cinema can show\r\n this.cinema_film_list = new ArrayList<Film>();\r\n this.film_database_controller = new FilmDatabaseController();\r\n }", "@Override\n \tpublic void addActions() {\n \t\t\n \t}", "public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }", "public interface Controller {\n\tpublic void fire(Class type, Object data);\n\tpublic void register(Class type, View rec);\n\tpublic Controller getParent();\n\tpublic int getLineNumber();\n\tpublic int getSpineNumber();\n\tpublic Writer getErrStream();\n}", "public interface AdvancedTableCompositionEditorSamplePropertiesEditionPart {\n\n\n\n\t/**\n\t * Init the advancedtablecompositionRequiredProperty\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAdvancedtablecompositionRequiredProperty(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the advancedtablecompositionRequiredProperty\n\t * @param newValue the advancedtablecompositionRequiredProperty to update\n\t * \n\t */\n\tpublic void updateAdvancedtablecompositionRequiredProperty();\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionRequiredProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionRequiredProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the advancedtablecompositionRequiredProperty table\n\t * \n\t */\n\tpublic boolean isContainedInAdvancedtablecompositionRequiredPropertyTable(EObject element);\n\n\n\n\n\t/**\n\t * Init the advancedtablecompositionOptionalProperty\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initAdvancedtablecompositionOptionalProperty(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the advancedtablecompositionOptionalProperty\n\t * @param newValue the advancedtablecompositionOptionalProperty to update\n\t * \n\t */\n\tpublic void updateAdvancedtablecompositionOptionalProperty();\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionOptionalProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the advancedtablecompositionOptionalProperty edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the advancedtablecompositionOptionalProperty table\n\t * \n\t */\n\tpublic boolean isContainedInAdvancedtablecompositionOptionalPropertyTable(EObject element);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\r\n\t\r\n\t// End of user code\n\n}", "@Override\n protected Entity[] getObservedEntities() {\n return entities;\n }", "public Controller getController() {\n\t\treturn controller;\n\t}", "public Controller getController() {\n\t\treturn controller;\n\t}", "public void addComponents()\r\n\t{\n\t\tSteveTechFarming.fruit = new BlockFruit(SteveTechFarming.config.getBlockID(1202, \"Fruit\", null)).setBlockName(\"WiduX-SteveTech-Farm-Fruit\");\r\n\t\tSteveTechFarming.crops = new BlockCrops(SteveTechFarming.config.getBlockID(1203, \"Crops\", null)).setBlockName(\"WiduX-SteveTech-Farm-Crops\");\r\n\t\t\r\n\t\tSteveTechFarming.seeds = new ItemSeeds(SteveTechFarming.config.getItemID(11000, \"Seeds\", null)).setItemName(\"WiduX-SteveTech-Farm-Seeds\");\r\n\t\tSteveTechFarming.harvestedItems = new ItemHarvest(SteveTechFarming.config.getItemID(11002, \"Harvest\", null)).setItemName(\"WiduX-SteveTech-Farm-Harvest\");\r\n\t\tSteveTechFarming.creativeTools = new ItemCreativeTools(SteveTechFarming.config.getItemID(11001, \"Creative Tools\", null)).setItemName(\"WiduX-SteveTech-Farm-CTools\");\r\n\t\tSteveTechFarming.foods = new Item[EnumFood.getNumberFoods()];\r\n\t\tint firstFoodItemID = SteveTechFarming.config.getItemID(11003, \"Foods Array\", \"This is the first item ID in the list of foods. Item IDs used will start here, and use the next \" + EnumFood.getNumberFoods() + \" IDs. Make sure they are all available.\");\r\n\t\tfor(int idOffset = 0; idOffset < SteveTechFarming.foods.length; idOffset++)\r\n\t\t{\r\n\t\t\tEnumFood food = EnumFood.getFood(idOffset);\r\n\t\t\tSteveTechFarming.foods[idOffset] = new ItemSTFood(firstFoodItemID + idOffset, food).setItemName(\"WiduX-SteveTech-Farm-Foods-Food\" + idOffset);\r\n\t\t}\r\n\t}", "public void setController(GameController cont) {\n this.controller = cont;\n }", "public FileController getFileController() {\n return fileController;\n }", "public IController getController();", "public Controller getController() {\n\t\treturn this.controller;\n\t}", "public Controller getController() {\n\t\treturn this.controller;\n\t}", "BehaviorConcept createBehaviorConcept();", "public interface EditorViewController {\r\n\t/**\r\n\t * Saves the current game\r\n\t */\r\n\tvoid saveGame();\r\n\r\n\t/**\r\n\t * Loads new game\r\n\t */\r\n\tvoid loadGame();\r\n\r\n\t/**\r\n\t * Created new player\r\n\t */\r\n\tvoid createNewPlayer();\r\n\r\n\t/**\r\n\t * Callback for view. Notify class that current state changed.\r\n\t */\r\n\tvoid currentStateChanged();\r\n\r\n\t/**\r\n\t * Callback for view. Notify class that map editor selection mechanism\r\n\t * changed.\r\n\t */\r\n\tvoid graphSelectionChanged(Mode mode);\r\n\r\n\t/**\r\n\t * Return currently active player\r\n\t */\r\n\tPlayer getCurrentPlayer();\r\n\r\n\t/**\r\n\t * Set currently selected state\r\n\t */\r\n\tvoid stateSelected(State state);\r\n\r\n\t/**\r\n\t * Return game world.\r\n\t */\r\n\tGameWorld getGameWorld();\r\n\r\n\t/**\r\n\t * Callback for the view. Create new continent.\r\n\t */\r\n\tvoid createNewContinent();\r\n\r\n\t/**\r\n\t * a method to create a new continent\r\n\t */\r\n\tvoid createNewContinent(Point2D location, Dimension2D size);\r\n\r\n\t/**\r\n\t * update the view of the simulation and editor\r\n\t */\r\n\tvoid updateView();\r\n}", "public EmbeddedObjects() {\n super();\n this._embeddedObjectList = new java.util.Vector<de.lsem.simulation.transformation.anylogic.generator.persistant.EmbeddedObject>();\n }", "@FXML\r\n public void onActionModifyScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n //Receive Part object information from the PartController in order to populate the Modify Parts text fields\r\n try {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyPartInhouse.fxml\"));\r\n loader.load();\r\n\r\n PartController pController = loader.getController();\r\n\r\n /*If the Part object received from the Part Controller is an In-house Part, user is taken to the modify\r\n in-house part screen */\r\n if (partsTableView.getSelectionModel().getSelectedItem() != null) {\r\n if (partsTableView.getSelectionModel().getSelectedItem() instanceof InhousePart) {\r\n pController.sendPart((InhousePart) partsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n\r\n //If the Part object is an outsourced Part, the user is taken to the modify outsourced part screen\r\n else {\r\n\r\n loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyPartOutsourced.fxml\"));\r\n loader.load();\r\n\r\n pController = loader.getController();\r\n\r\n pController.sendPartOut((OutsourcedPart) partsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify Outsourced Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //Ignore\r\n }\r\n catch (NullPointerException n) {\r\n //Ignore\r\n }\r\n }", "@SuppressWarnings(\"deprecation\")\n\tprivate void setControllerVariables() {\n\t\tcontrollerVars.setAudioManager((AudioManager) act.getSystemService(Context.AUDIO_SERVICE));\n\t\tcontrollerVars.setActVolume((float) controllerVars.getAudioManager().getStreamVolume(AudioManager.STREAM_MUSIC));\n\t\tcontrollerVars.setMaxVolume((float) controllerVars.getAudioManager().getStreamMaxVolume(AudioManager.STREAM_MUSIC));\n\t\tcontrollerVars.setVolume(controllerVars.getActVolume() / controllerVars.getMaxVolume());\n\n\t\t//Hardware buttons setting to adjust the media sound\n\t\tact.setVolumeControlStream(AudioManager.STREAM_MUSIC);\n\n\t\t// the counter will help us recognize the stream id of the sound played now\n\t\tcontrollerVars.setCounter(0);\n\n\t\t// Load the sounds\n\t\tcontrollerVars.setSoundPool(new SoundPool(20, AudioManager.STREAM_MUSIC, 0));\n\t\tcontrollerVars.getSoundPool().setOnLoadCompleteListener(new OnLoadCompleteListener() {\n\t\t @Override\n\t\t public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {\n\t\t \tcontrollerVars.setLoaded(true);\n\t\t }\n\t\t});\t\t\n\t}" ]
[ "0.56636536", "0.55948496", "0.5565017", "0.5471189", "0.5448698", "0.54395163", "0.52978367", "0.51947707", "0.5194202", "0.51638186", "0.5138217", "0.51166135", "0.51164496", "0.50227004", "0.49996325", "0.4981187", "0.49749827", "0.49593124", "0.4944438", "0.4908836", "0.4896561", "0.4890664", "0.48798427", "0.48730737", "0.48725846", "0.48709646", "0.4854331", "0.48273683", "0.48250315", "0.48226115", "0.48187444", "0.48149037", "0.48126757", "0.48125643", "0.47954962", "0.479476", "0.4784478", "0.47734407", "0.4770011", "0.4769331", "0.4767073", "0.4764011", "0.47575122", "0.4749822", "0.4749001", "0.47482386", "0.47396946", "0.47391808", "0.47317737", "0.4712709", "0.4702129", "0.4700198", "0.46994084", "0.4693614", "0.46898317", "0.46884325", "0.46862504", "0.46860006", "0.46842283", "0.46764365", "0.46670493", "0.46638107", "0.4658485", "0.46563482", "0.46530598", "0.46434498", "0.46374533", "0.46308473", "0.46256968", "0.46250454", "0.46223888", "0.46214736", "0.46175376", "0.4614483", "0.4610583", "0.46075407", "0.460248", "0.45897916", "0.45872593", "0.45855775", "0.45830476", "0.45745766", "0.45710096", "0.457082", "0.45654306", "0.45579723", "0.45566538", "0.45549703", "0.45531496", "0.45531496", "0.4544446", "0.45409864", "0.45409432", "0.4537548", "0.4536538", "0.4536538", "0.4532778", "0.45327255", "0.4532616", "0.45320645", "0.45311037" ]
0.0
-1
return true if two strings differ in exactly one letter
public static boolean isNeighbor(String a, String b) { assert a.length() == b.length(); int differ = 0; for (int i = 0; i < a.length(); i++) { if (a.charAt(i) != b.charAt(i)) differ++; if (differ > 1) return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean letterDifferByOne(String word1, String word2) {\n if (word1.length() != word2.length()) {\n return false;\n }\n\n int differenceCount = 0;\n for (int i = 0; i < word1.length(); i++) {\n if (word1.charAt(i) != word2.charAt(i)) {\n differenceCount++;\n }\n }\n return (differenceCount == 1);\n }", "private static boolean diffOne(String s1, String s2) {\n int count = 0;\n for (int i = 0; i < s1.length(); i++) {\n if (s1.charAt(i) != s2.charAt(i)) count++;\n if (count > 1) return false;\n }\n return count == 1;\n }", "private boolean oneCharOff( String word1, String word2 )\n {\n if( word1.length( ) != word2.length( ) )\n return false;\n int diffs = 0;\n for( int i = 0; i < word1.length( ); i++ )\n if( word1.charAt( i ) != word2.charAt( i ) )\n if( ++diffs > 1 )\n return false;\n return diffs == 1;\n }", "boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isOneLetterOff(String word1, String word2){\n \tif(word1.equals(word2)){ //all letters same\n \t\treturn false;\n \t}\n \tif(word1.substring(1).equals(word2.substring(1))){\t//all letters same except 1st\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,1).equals(word2.substring(0, 1)) && word1.substring(2).equals(word2.substring(2))){ //all letters same except 2nd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,2).equals(word2.substring(0,2)) && word1.substring(3).equals(word2.substring(3))){\t//all letters same except 3rd\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,3).equals(word2.substring(0,3)) && word1.substring(4).equals(word2.substring(4))){\t//all letters same except 4th\n\t\t\treturn true;\n\t\t}\n\t\tif(word1.substring(0,4).equals(word2.substring(0,4))){\t//all letters same except 5th\n\t\t\treturn true;\n\t\t}\n \treturn false;\n }", "static Boolean isOneAway(String s1, String s2) {\r\n\t\tboolean results = false;\r\n\t\tchar[] chars1 = s1.toCharArray();\r\n\t\tchar[] chars2 = s2.toCharArray();\r\n\t\tif(s1.equals(s2)) {\r\n\t\t\tresults = true;\r\n\t\t}else if(chars1.length==chars2.length) {\r\n\t\t\tint mismatches = 0;\r\n\t\t\tfor(int i = 0; i < chars1.length; i++ ) {\r\n\t\t\t\tif(chars1[i]!=chars2[i]) {\r\n\t\t\t\t\tmismatches++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(mismatches <= 1) results = true;\r\n\t\t}else if(Math.abs(s1.length() - s2.length())==1) {\r\n\t\t\tif(s1.length() > s2.length()) {\r\n\t\t\t\tchars1 = s1.toCharArray();\r\n\t\t\t\tchars2 = s2.toCharArray();\r\n\t\t\t}else {\r\n\t\t\t\tchars1 = s2.toCharArray();\r\n\t\t\t\tchars2 = s1.toCharArray();\r\n\t\t\t}\r\n\t\t\tint mismatches = 0;\r\n\t\t\tint cursor1 = 0;\r\n\t\t\tint cursor2 = 0;\r\n\t\t\twhile((cursor1 < chars1.length) && (cursor2 < chars2.length)) {\r\n\t\t\t\tif(chars1[cursor1] != chars2[cursor2]) {\r\n\t\t\t\t\tmismatches++;\r\n\t\t\t\t\tcursor1++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tcursor1++;\r\n\t\t\t\t\tcursor2++;\r\n\t\t\t\t}\t\t\t\t \r\n\t\t\t}\r\n\t\t\tif(mismatches <= 1) results = true;\r\n\t\t}else {\r\n\t\t\tresults = false;\r\n\t\t}\r\n\t\r\n\t\treturn results;\r\n\t}", "boolean checkChar(String s1, String s2);", "private boolean translateWith2ExchangedChars(String input1, String input2) {\n if (StringUtils.isBlank(input1) || StringUtils.isBlank(input2) || input1.length() != input2.length()) {\n return false;\n }\n if (input1.equals(input2)) {\n for (int i = 0; i < input1.length(); i++) {\n char current = input1.charAt(i);\n if (input1.lastIndexOf(current) != i) {\n return true;\n }\n }\n return false;\n } else {\n int first = -1, second = -1;\n for (int i = 0; i < input1.length(); i++) {\n if (input1.charAt(i) != input2.charAt(i)) {\n if (first == -1) {\n first = i;\n } else if (second == -1) {\n second = i;\n } else {\n return false;\n }\n }\n }\n return input1.charAt(first) == input2.charAt(second)\n && input1.charAt(second) == input2.charAt(first);\n }\n }", "private boolean alphabCheck(String first, String second) {\n\t\tif (first.length() == 1 || second.length() == 1) {\n\t\t\tif (first.compareTo(second) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) == 0) {\n\t\t\t\t\treturn alphabCheck(first.substring(1, first.length()),second.substring(1,second.length()));\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void testEqualChars1() {\n char a = 'a';\n char b = 'a';\n char c = 'z';\n char d = 'B';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(a, c);\n boolean result3 = offByOne.equalChars(a, d);\n\n assertFalse(result1);\n assertFalse(result2);\n assertFalse(result3);\n }", "private boolean equalsChars(char[] first, char[] second) {\n for (int i = 0; i < second.length; i++)\n if (first[i] != second[i])\n return false;\n return true;\n }", "static String twoStrings(String s1, String s2){\n // Complete this function\n String letters = \"abcdefghijklmnopqrstuvwxyz\";\n for(int i=0;i<letters.length();i++){\n char lettersChar = letters.charAt(i); \n if(s1.indexOf(lettersChar) > -1 && s2.indexOf(lettersChar) > -1){\n return \"YES\";\n }\n }\n \n return \"NO\";\n }", "@Test\n public void testEqualChars2()\n {\n assertTrue(offBy2.equalChars('a', 'c')); // true\n assertTrue(offBy2.equalChars('c', 'a')); // true\n assertTrue(offBy2.equalChars('e', 'g')); // true\n\n assertFalse(offBy2.equalChars('C', 'c')); // false\n assertFalse(offBy2.equalChars('a', 'e')); // false\n assertFalse(offBy2.equalChars('z', 'a')); // false\n assertFalse(offBy2.equalChars('k', 's')); // false\n }", "private static boolean isEnglishAlphabetPermutation(String str1, String str2) {\r\n if (!validate(str1, str2)) {\r\n return false;\r\n }\r\n if (str1.isEmpty() && str2.isEmpty()) { // simple case\r\n return true;\r\n }\r\n str1 = str1.toLowerCase();\r\n str2 = str2.toLowerCase();\r\n\r\n // we can use array instead of hash map\r\n // because we definitely know amount of characters\r\n int[] counter = new int[CHARS_AMOUNT];\r\n int startCode = Character.codePointAt(\"a\", 0);\r\n for (int i = 0; i < str1.length(); i++) {\r\n int idx = str1.codePointAt(i) - startCode;\r\n if (idx < 0 || idx >= CHARS_AMOUNT) {\r\n throw new IllegalArgumentException(\"Unsupported character.\");\r\n }\r\n counter[idx]++;\r\n }\r\n // no need to create another array for checking\r\n for (int i = 0; i < str2.length(); i++) {\r\n int idx = str2.codePointAt(i) - startCode;\r\n if (idx < 0 || idx >= CHARS_AMOUNT) {\r\n throw new IllegalArgumentException(\"Unsupported character.\");\r\n }\r\n int checkValue = --counter[idx];\r\n if (checkValue < 0) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Test\r\n public void testEqualChars(){\r\n boolean res1=offByOne.equalChars('c','b');\r\n assertTrue(\"should be true\",res1);\r\n boolean res2=offByOne.equalChars('a','c');\r\n assertFalse(\"should be false\",res2);\r\n }", "public static boolean isEqual(String s1, String s2) {\r\tif(s1.length() != s2.length()){\r\t return false;\r\t}\r\tfor(int i = 0; i< s1.length();i++){\r\t if (s1.charAt(i) != s2.charAt(i)){\r\t\treturn false;\r\t }\r\t}\r\treturn true;\r }", "static String abbreviation(String a, String b) {\r\n \r\n HashSet<Character> aSet = new HashSet<>();\r\n\r\n for(int i = 0 ; i< a.length() ; i++){\r\n aSet.add(a.charAt(i));\r\n }\r\n \r\n for(int i = 0 ; i < b.length() ; i++){\r\n \r\n if(aSet.contains(b.charAt(i)) ){\r\n aSet.remove(b.charAt(i));\r\n }\r\n else if(aSet.contains(Character.toLowerCase(b.charAt(i)))){\r\n aSet.remove(Character.toLowerCase(b.charAt(i)));\r\n }\r\n else{\r\n return \"NO\";\r\n }\r\n \r\n\r\n }\r\n\r\n Iterator<Character> it = aSet.iterator();\r\n while(it.hasNext()){\r\n\r\n if(!isLowerCase(it.next())){\r\n return \"NO\";\r\n }\r\n }\r\n return \"YES\";\r\n \r\n /*\r\n String regex = \"\";\r\n for(int i = 0 ; i < b.length() ; i++){\r\n regex += \"[a-z]*\" + \"[\" + b.charAt(i) + \"|\" + Character.toLowerCase(b.charAt(i)) + \"]\";\r\n }\r\n regex += \"[a-z]*\";\r\n Pattern ptrn = Pattern.compile(regex);\r\n Matcher matcher = ptrn.matcher(a);\r\n\r\n return matcher.matches() ? \"YES\" : \"NO\";\r\n*/\r\n \r\n /*\r\n int aPtr = 0;\r\n\r\n //b e F g H\r\n // E F H\r\n for(int i = 0 ; i < b.length() ; i++){\r\n\r\n if(aPtr + 1 >= a.length())\r\n return \"NO\";\r\n //if(aPtr + 1 == a.length() && i + 1 == b.length())\r\n // return \"YES\";\r\n\r\n System.out.println(b.charAt(i) + \" \" + a.charAt(aPtr));\r\n if(b.charAt(i) == a.charAt(aPtr)){\r\n aPtr++;\r\n }else if(b.charAt(i) == Character.toUpperCase(a.charAt(aPtr)) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n\r\n } else if(b.charAt(i) != a.charAt(aPtr) && !isLowerCase(a.charAt(aPtr))){\r\n return \"NO\";\r\n }else if(b.charAt(i) != a.charAt(aPtr) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n i--;\r\n }\r\n\r\n\r\n\r\n }\r\n for(int i = aPtr ; i < a.length() ; i++){\r\n if(!isLowerCase(a.charAt(i)))\r\n return \"NO\";\r\n }\r\n\r\n return \"YES\";\r\n */\r\n\r\n }", "public boolean compare2StringsIgnoringCasses(String s1, String s2)\r\n {\r\n String a=s1.toLowerCase();\r\n String b=s2.toLowerCase();\r\n if(a.length()!= b.length())\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n for(int i=0; i<a.length(); i++)\r\n {\r\n if(!comparet2Chars(a.charAt(i),b.charAt(i)))\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "public static boolean isOneAway(String string1, String string2) {\n int lengthDifference = Math.abs(string1.length() - string2.length());\n if (lengthDifference > 1) {\n return false;\n }\n\n String shorterString;\n String longerString;\n\n if (string1.length() < string2.length()) {\n shorterString = string1;\n longerString = string2;\n } else {\n shorterString = string2;\n longerString = string1;\n }\n\n int index1 = 0;\n int index2 = 0;\n\n boolean foundDifference = false;\n\n while (index1 < shorterString.length() && index2 < longerString.length()) {\n if (shorterString.charAt(index1) != longerString.charAt(index2)) {\n if (foundDifference) {\n return false;\n }\n\n foundDifference = true;\n\n if (shorterString.length() == longerString.length()) {\n // Replace edit\n index1++;\n } // Else -> insert or delete edit -> do not move index 1\n } else {\n index1++;\n }\n\n index2++;\n }\n\n return true;\n }", "public static boolean differByOne(String word, String ladderLast) {\n if (word.length() != ladderLast.length()) {\n return false;\n }\n int count = 0;\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) != ladderLast.charAt(i)) {\n count++;\n }\n }\n return (count == 1);\n }", "public boolean checkPalindromeFormation(String a, String b) {\n int n = a.length();\n return findCommonSubstring(a.toCharArray(), b.toCharArray(), 0, n - 1) ||\n findCommonSubstring(b.toCharArray(), a.toCharArray(), 0, n - 1);\n }", "public static boolean oneAway(String str1, String str2) {\n\t\t\n\t\t// If lengths make impossible to be one away\n\t\tif (Math.abs(str1.length()-str2.length()) > 1) return false;\n\t\t\n\t\t// if length of one of the strings is 0 (meaning other is 1 and\n\t\t// there by statisfies the one away add/delete edits\n\t\tif(str1.length() == 0 || str2.length() == 0) return true;\n\t\t\n\t\t// If strings are identical, return true\n\t\tif (str1.equals(str2)) return true;\n\t\t\n\t\t// Else determine if these strings are one away\n\t\t\n\t\t// check for one away by change: O(n)\n\t\tif(str1.length() == str2.length()) {\n\t\t\tint numDiff = 0;\n\t\t\t// for each character in string 1\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\t// check for equality by index\n\t\t\t\tif (str1.charAt(i) != str2.charAt(i)) ++numDiff;\n\t\t\t\t// If exceeded 1 difference, return false\n\t\t\t\tif (numDiff > 1) return false;\n\t\t\t}\n\t\t\t// There was 1 difference, strings are off by one\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// check for off by one by delete: O(n)\n\t\telse if(str1.length() > str2.length()) {\n\t\t\tint p2 = 0; // pointer for string 2\n\t\t\tint numDiff = 0;\n\t\t\t\n\t\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\t\tif (str2.charAt(p2) != str1.charAt(i)) {\n\t\t\t\t\t++numDiff;\n\t\t\t\t} else {\n\t\t\t\t\t++p2;\n\t\t\t\t}\n\t\t\t\t// If exceeded 1 difference, return false\n\t\t\t\tif (numDiff > 1) return false;\n\t\t\t}\n\t\t\t// There was 1 difference, strings are off by one\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// check for off by one by addition O(n)\n\t\telse {\n\t\t\tint p1 = 0; // pointer for string 1\n\t\t\tint numDiff = 0;\n\t\t\tfor (int i = 0; i < str2.length(); i++) {\n\t\t\t\tif (str1.charAt(p1) != str2.charAt(i)) {\n\t\t\t\t\t++numDiff;\n\t\t\t\t} else {\n\t\t\t\t\t++p1;\n\t\t\t\t}\n\t\t\t\t// If exceeded 1 difference, return false\n\t\t\t\tif (numDiff > 1) return false;\n\t\t\t}\n\t\t\t// There was 1 difference, strings are off by one\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "@Test\n public void testEqualChars2() {\n char a = 'a';\n char b = 'b';\n char c = '1';\n char d = '2';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(c, d);\n\n assertTrue(result1);\n assertTrue(result2);\n }", "private boolean equals(String str1, String str2)\n\t{\n\t\tif (str1.length() != str2.length()) // Easiest to check is if they are the same to potentially avoid running remaining code\n\t\t\treturn false;\n\t\tfor(int i = 0; i < str1.length(); i++)\n\t\t{\n\t\t\tif (str1.charAt(i) != str2.charAt(i)) // If at any point one char is not equal to the same char at a given index then they are disimilar\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true; // If no discrepancies are found then the strings must be equal\n\t}", "@Test\n public void testEqualChar3() {\n char a = '%';\n char b = '!';\n char c = '\\t';\n char d = '\\n';\n\n boolean result1 = offByOne.equalChars(a, b);\n boolean result2 = offByOne.equalChars(c, d);\n\n assertFalse(result1);\n assertTrue(result2);\n }", "@Override\n\tpublic boolean checkAnagram(String firstString, String secondString) {\n\t\tchar[] characters = firstString.toCharArray();\n\t\tStringBuilder sbSecond = new StringBuilder(secondString);\n\n\t\tfor(char ch : characters){\n\t\t\tint index = sbSecond.indexOf(\"\" + ch);\n\t\t\tif(index != -1){\n\t\t\t\tsbSecond.deleteCharAt(index);\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private static boolean equalityTest4(String a, String b)\n {\n if(a.length() == 0 && b.length() == 0)\n {\n return true;\n }\n else\n {\n if(a.length() == 0 || b.length() == 0)\n {\n return false;\n }\n if(a.charAt(0) == b.charAt(0))\n {\n return equalityTest4(a.substring(1), b.substring(1));\n }\n else\n {\n return false;\n }\n }\n }", "public boolean isARotation(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tStringBuilder stb = new StringBuilder();\n\t\tint i = 0;\n\t\twhile(i < s1.length()) {\n\t\t\tif(s1.charAt(i) == s1.charAt(i)) {\n\t\t\t\treturn subString(s1.substring(0, i), s2) \n\t\t\t\t\t\t&& stb.toString().compareTo(s2.substring(i, s2.length()-1)) == 0;\n\t\t\t}\n\t\t\ti++;\n\t\t\tstb.append(s1.charAt(i));\n\t\t}\n\t\treturn false;\n\t}", "public boolean checkPermutaionOfStr(String str1, String str2){\n\tArrayList<Integer> word_cnt1 = new ArrayList<Integer>();\n\tArrayList<Integer> word_cnt2 = new ArrayList<Integer>();\n\t\n\tif(str1.length() != str2.length())\n\t\treturn false;\n\tfor(int i = 0; i< 256; i++){\n\t\tword_cnt1.add(0);\n\t\tword_cnt2.add(0);\n\t}\n\t\n\tfor(int i = 0; i< str1.length(); i++){\n\t\tcntStrChar(str1, word_cnt1, i);\n\t\tcntStrChar(str2, word_cnt2, i);\n\t}\n\t\n\tfor(int i = 0; i< 256; i++){\n\t\tif (word_cnt1.get(i) != word_cnt2.get(i) )\n\t\t\treturn false;\n\t}\n\treturn true;\n}", "public static boolean endOther(String a, String b) {\n String larger, smaller;\n if (a.length() > b.length()){\n larger = a;\n smaller = b;\n }\n else{\n larger = b;\n smaller = a;\n }\n larger = larger.toLowerCase();\n smaller = smaller.toLowerCase();\n int i = larger.length() - smaller.length();\n return ((larger.substring(i, larger.length())).equals(smaller));\n }", "@Test\n\tpublic void testareFirstAndLastTwoCharactersTheSame_BasicNegative() \n\t{\n\t\tassertFalse(helper.areFirstAndLastTwoCharactersTheSame(\"ABCD\"));\n\t}", "public static boolean matchletters (String temp, String letters)\r\n {\r\n String newLetters = letters;\r\n for(int i = 0; i < temp.length(); i++)\r\n {\r\n if(newLetters.indexOf(temp.charAt(i)) != -1)\r\n {\r\n newLetters = newLetters.replaceFirst(Character.toString(temp.charAt(i)), \"\");\r\n }\r\n else return false;\r\n }\r\n return true;\r\n }", "public boolean adjacent(String a, String b) {\n\t\tint nDifferent = 0;\n\t\tint length = a.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (a.charAt(i) != b.charAt(i)) {\n\t\t\t\tnDifferent++;\n\t\t\t}\n\t\t\tif (nDifferent > 1)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean timingSafeEquals(String first, String second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n char[] firstChars = first.toCharArray();\n char[] secondChars = second.toCharArray();\n char result = (char) ((firstChars.length == secondChars.length) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstChars.length; ++i) {\n result |= firstChars[i] ^ secondChars[j];\n j = (j + 1) % secondChars.length;\n }\n return result == 0;\n }", "public boolean compare_same(String x, String y) {\n\t\tint fuzzy = 0;\n\t\tif (x.length() != y.length()) return false;\n\t\tfor (int i = 0, j = 0; i<x.length() && j<y.length();) {\n\t\t\tif (i>0 && x.charAt(i-1)=='_' && '0'<=x.charAt(i) && x.charAt(i)<='9') {\n\t\t\t\twhile (i<x.length() && '0'<=x.charAt(i) && x.charAt(i)<='9') i++;\n\t\t\t}\n\t\t\tif (j>0 && y.charAt(j-1)=='_' && '0'<=y.charAt(j) && y.charAt(j)<='9') {\n\t\t\t\twhile (j<y.length() && '0'<=y.charAt(j) && y.charAt(j)<='9') j++;\n\t\t\t}\n\t\t\tif (i<x.length() && j<y.length() && x.charAt(i) != y.charAt(j)) {\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++; j++;\n\t\t}\n\t\treturn true;\n\t}", "private static boolean checkIfCanBreak( String s1, String s2 ) {\n\n if (s1.length() != s2.length())\n return false;\n\n Map<Character, Integer> map = new HashMap<>();\n for (Character ch : s2.toCharArray()) {\n map.put(ch, map.getOrDefault(ch, 0) + 1);\n }\n\n for (Character ch : s1.toCharArray()) {\n\n char c = ch;\n while ((int) (c) <= 122 && !map.containsKey(c)) {\n c++;\n }\n\n if (map.containsKey(c)) {\n map.put(c, map.getOrDefault(c, 0) - 1);\n\n if (map.get(c) <= 0)\n map.remove(c);\n }\n }\n\n return map.size() == 0;\n }", "public static boolean is_rotation_of_another_string(String word1, String word2) {\n\n String s3 = word1 + word1;\n\n if (s3.contains(word2))\n return true;\n else\n return false;\n }", "public static boolean isPermuted(String str1, String str2) {\n if (str1.length() != str2.length())\n return false;\n\n Map<Character, Integer> str1CountMap = new HashMap<>();\n for (char c : str1.toCharArray()) {\n str1CountMap.put(c, str1CountMap.getOrDefault(c, 0) + 1);\n }\n\n for (char c : str2.toCharArray()) {\n if (!str1CountMap.containsKey(c) || str1CountMap.get(c) <= 0)\n return false;\n str1CountMap.put(c, str1CountMap.get(c) - 1);\n }\n\n return true;\n }", "public boolean rotationCheck(String a, String b) {\r\n\t\tif(a.length() != b.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tString c = a + a;\r\n\t\tif(c.contains(b)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static boolean stringRotation(String str1, String str2) {\n String temp = str2 + str2;\n return temp.contains(str1);\n }", "public boolean checkSam(String stringA, String stringB) {\r\n\t\tString[] s1 = stringA.split(\" \");\r\n\t\tString[] s2 = stringB.split(\" \");\r\n\t\tif(s1.length == s2.length){\r\n\t\t\tint count = 0;\r\n\t\t\tfor (String sB : s2) {\r\n\t\t\t\tfor (String sA : s1) {\r\n\t\t\t\t\tif(sA.equals(sB)){\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == s2.length){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n }", "public boolean isAPermutation(String st1, String st2) {\n\t\tif(st1.length() != st2.length() || st1.length() == 0 || st2.length() == 0) return false;\n\t\t\n\t\tHashMap<Character, Integer> cc1 = charactersCount(st1);\n\t\tHashMap<Character, Integer> cc2 = charactersCount(st2);\n\t\t\n\t\treturn sameCharactersCount(cc1, cc2);\n\t}", "public static boolean checkPermutaionMap(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n int[] charMap = new int[128];\n for (int i = 0; i < s1.length(); ++i) {\n charMap[s1.charAt(i)]++;\n }\n\n for (int i = 0; i < s2.length(); ++i) {\n if (--charMap[s2.charAt(i)] < 0) return false;\n }\n\n return true;\n }", "private boolean m81840a(String str, String str2) {\n boolean isEmpty = TextUtils.isEmpty(str);\n boolean isEmpty2 = TextUtils.isEmpty(str2);\n if (isEmpty && isEmpty2) {\n return true;\n }\n if (!isEmpty && isEmpty2) {\n return false;\n }\n if (!isEmpty || isEmpty2) {\n return str.equals(str2);\n }\n return false;\n }", "public static boolean isRotation(String str1, String str2) {\n if ((str1.length() != str2.length()) || str1.isEmpty() || str2.isEmpty()\n || str1 == null || str2 == null) {\n return false;\n }\n return isSubString(str1, str2 + str2);\n // return (str2 + str2).contains(str1);\n // return ((str2 + str2).indexOf(str1) > -1);\n }", "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str1=sc.nextLine();\n\t\tString str2=sc.nextLine();\n\t\tstr1=str1.toLowerCase();\n\t\tstr2=str2.toLowerCase();\n\t\tif(str1.length()!=str2.length()){\n\t\tSystem.out.println(\"no\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tboolean flg=true;\n\t\tfor(int i=0; i<str1.length();i++){\n\t\t\tif(str1.charAt(i)!=str2.charAt(i)){\n\t\t\t\tflg=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flg){\n\t\t\tSystem.out.println(\"yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"no\");\n\t\t}\n\n\t}", "public static boolean isAnagramImperApproach(char[] str1, char[] str2) {\n int n1 = str1.length;\n int n2 = str2.length;\n\n if (n1 != n2) return false;\n\n Arrays.sort(str1);\n Arrays.sort(str2);\n\n for (int i = 0; i < n1; i++) {\n if (str1[i] != str2[i]) {\n return false;\n }\n }\n return true;\n }", "public static boolean isAnagramFuncApproach(String str1, String str2) {\n List<String> list1 = str1.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n List<String> list2 = str2.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n return list1.equals(list2);\n }", "private boolean isRotation(String s1, String s2) {\n\t\treturn (s1.length() == s2.length()) && isSubstring(s1 + s1, s2);\n\t}", "public boolean isEquivalent(char character, char anothercharacter);", "public boolean match(String string1, String string2) {\n\t\tMap<Character, Character>hash_map = new HashMap<Character, Character>();\n\n\t\t//If string length is not same, then it will return false\n\t\tif(string1.length()>string2.length() || string1.length()<string2.length()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<string1.length(); i++) {\t\n\t\t\tif(!hash_map.containsKey(string1.charAt(i))) {\n\t\t\t\thash_map.put(string1.charAt(i), string2.charAt(i));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(!hash_map.get(string1.charAt(i)).equals(string2.charAt(i))) {\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}", "static boolean isPermutation_2(String a, String b){\n boolean isPermutation = true;\n //lets store every char in an array of boolean\n int[] charCount = new int[256];\n for(char c:a.toCharArray()){\n charCount[c]++;\n }\n //now verify the count in another string and subtract the count\n for(char c:b.toCharArray()){\n charCount[c]--;\n }\n //now check if any count is non-zero then the two string have unequal count of that char\n for(int i=0;i<charCount.length;i++)\n if(charCount[i]!=0)\n return false;\n \n return isPermutation;\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str1 = \"snow\";\n\t\tString str2 = \"wons\";\n\t\tint count = 0;\t\t\n\t\tfor(int i=0; i<str1.length() && i<str2.length(); i++){\n\t\t\tif(str1.toLowerCase().charAt(i) != str2.toLowerCase().charAt(i)){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tif(count >1) System.out.println(\"fasle==>>\"+count);\n\t\telse System.out.println(\"true\");\n\t}", "public static boolean namesEqual(String name1, String name2) {\n if (StringUtil.isEmpty(name1) && StringUtil.isEmpty(name2)) {\n return true;\n }\n if (normalizer.isDelimited(defaultRule, name1)) {\n if (!Objects.equals(name1, name2)) {\n return false;\n }\n } else {\n if (!StringUtil.equalsIgnoreCase(name1, name2)) {\n return false;\n }\n }\n return true;\n }", "private static Boolean isOneEditAway(String str1, String str2) {\n\t\tint str1Length = str1.length();\n\t\tint str2Length = str2.length();\n\t\tif (str1Length == str2Length)\n\t\t\treturn isOneReplaceAway(str1, str2);\n\t\tif (str1Length == str2Length + 1)\n\t\t\treturn isOneInsertOrDeleteAway(str2, str1);\n\t\tif (str1Length + 1 == str2Length)\n\t\t\treturn isOneInsertOrDeleteAway(str1, str2);\n\t\treturn Boolean.FALSE;\n\t}", "public boolean checkAnagram(char[] str1, char[] str2)\n {\n// Finding lengths of strings\n int len1 = str1.length;\n int len2 = str2.length;\n// If lengths do not match then they cannot be anagrams\n if (len1 != len2)\n return false;\n// Sort both strings\n Arrays.sort(str1);\n Arrays.sort(str2);\n// Comparing the strings which are sorted earlier\n for (int i = 0; i < len1; i++)\n if (str1[i] != str2[i])\n return false;\n return true;\n }", "public boolean compareStrings(String A, String B) {\n if(A.length()<B.length())\n \treturn false;\n char[] a=A.toCharArray();\n char[] b=B.toCharArray();\n ArrayList<Character> aa=new ArrayList<>();\n ArrayList<Character> bb=new ArrayList<>();\n for(int i=0;i<a.length;i++){\n \taa.add(a[i]);\n }\n for(int i=0;i<b.length;i++){\n \tbb.add(b[i]);\n }\n while(bb.size()!=0){\n \tint flag=0;\n \tfor(int i=0;i<aa.size();i++){\n \t\tif(bb.get(0).equals(aa.get(i))){\n \t\t\tbb.remove(0);\n \t\t\taa.remove(i);\n \t\t\tSystem.out.println(bb);\n \t\t\tSystem.out.println(aa);\n \t\t\tflag=1;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (flag==0)\n \t\treturn false;\n }\n return true; \n }", "public static boolean timingSafeEquals(CharSequence first, CharSequence second) {\n if (first == null) {\n return second == null;\n } else if (second == null) {\n return false;\n } else if (second.length() <= 0) {\n return first.length() <= 0;\n }\n int firstLength = first.length();\n int secondLength = second.length();\n char result = (char) ((firstLength == secondLength) ? 0 : 1);\n int j = 0;\n for (int i = 0; i < firstLength; ++i) {\n result |= first.charAt(i) ^ second.charAt(j);\n j = (j + 1) % secondLength;\n }\n return result == 0;\n }", "public final static boolean checkNames(String playerOneName, String playerTwoName)\n\t{\n\t\tif(playerOneName.length()>15||playerOneName.length()<2||playerTwoName.length()<2||playerTwoName.length()>15) return false;\n\t\tif(!playerOneName.matches(\"[a-zA-Z]+\")||!playerTwoName.matches(\"[a-zA-Z]+\")) return false;\n\t\tif(playerOneName.substring(0,1).equals(playerTwoName.substring(0,1))) return false;\n\t\treturn true;\n\t}", "private boolean checkString(){\n createString();\n char[] charsJoinedString=this.joinedTextPalindrome.toCharArray();\n int lengthString=charsJoinedString.length-1;\n for(int i=0;i<charsJoinedString.length;i++){\n if(charsJoinedString[i]!=charsJoinedString[lengthString]){\n return false;\n }\n lengthString--;\n }\n return true;\n \n }", "static boolean areAnagram(char[] str1, char[] str2)\n\t{\n\t\t// Get lengths of both strings\n\t\tint n1 = str1.length;\n\t\tint n2 = str2.length;\n\n\t\t// If length of both strings is not same,\n\t\t// then they cannot be anagram\n\t\tif (n1 != n2)\n\t\t\treturn false;\n\n\t\t// Sort both strings\n\t\tArrays.sort(str1);\n\t\tArrays.sort(str2);\n\n\t\t// Compare sorted strings\n\t\tfor (int i = 0; i < n1; i++)\n\t\t\tif (str1[i] != str2[i])\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public static boolean checkForAnagram(final String a, final String b) {\n boolean isAnagram = false;\n\n if(a == null || b == null){\n throw new IllegalArgumentException(\"Invalid input\");\n }\n if(a.length() != b.length()){\n return isAnagram;\n }\n char [] lowerCaseA = a.trim().toLowerCase().toCharArray();\n String upperCaseB= b.trim().toLowerCase();\n boolean check =true;\n for(int i =0; i<lowerCaseA.length ; i++){\n Character c = lowerCaseA[i];\n int n = c;\n if(c >=95 && c <=122){\n if(! upperCaseB.contains(c.toString())){\n check=false;\n break;\n }\n }\n else {\n continue;\n }\n }\n if(check){\n isAnagram =true;\n }\n\n return isAnagram;\n }", "public static boolean permCheck2(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n int letters[] = new int[256];\n char charArray[] = s1.toCharArray();\n for (char c : charArray) {\n letters[c]++;\n }\n\n for (int i = 0; i < s2.length(); i++) {\n int charVal = (int) s2.charAt(i);\n if (--letters[charVal] < 0) {\n return false;\n }\n }\n\n return true;\n }", "public static boolean fuzzyEquals(String a, String b) {\n return levenshteinDistance(a, b, EDIT_DISTANCE_THRESHOLD) != INVALID_EDIT_DISTANCE;\n }", "private static boolean wordHasAllExceptFirstInCommon(String word1, String word2) {\n int charsInCommon = 0;\n\n char[] w1 = word1.toCharArray();\n char[] w2 = word2.toCharArray();\n\n for (int i = 1; i < w1.length; i++) {\n for (int j = 0; j < w2.length; j++) {\n if (w1[i] == w2[j]) {\n charsInCommon++;\n w2[j] = '\\0'; // w2[j] som nullchar (använd)\n break;\n }\n }\n }\n return (charsInCommon == w1.length - 1);\n }", "public boolean checkAnagram(String s1, String s2) {\n if (s1.length() != s2.length()) {\n return false;\n }\n char[] stringArr1 = s1.toCharArray();\n char[] stringArr2 = s2.toCharArray();\n Arrays.sort(stringArr1);\n Arrays.sort(stringArr2);\n\n for (int i = 0; i < stringArr1.length; i++) {\n if (stringArr1[i] != stringArr1[i]) {\n return false;\n }\n }\n return true;\n }", "public void testCompareStrings() {\n\t\tString one = \"Hello\";\n\t\tString two = \"in the house\";\n\t\t//Gro▀schreibung vor Kleinschreibung\n\t\tassertTrue(comp.compareStrings(one, two) < 0);\n\t\tassertEquals(0, comp.compareStrings(one, one));\n\t\tassertTrue(comp.compareStrings(two, one) > 0);\n\t}", "private boolean ifAlphabetOnly(String str){\n return str.chars().allMatch(Character :: isLetter);\n }", "public static boolean compareLetters(String romConcat, char smallNum, char bigNum) {\n\t\tint checkSmall = 0, checkBig = 0;\r\n\t\t\r\n\t\tif(romConcat.indexOf(smallNum) > -1) {\r\n\t\t\tcheckSmall = romConcat.indexOf(smallNum);\r\n\t\t}\r\n\t\t\r\n\t\tif(romConcat.indexOf(bigNum) > -1) {\r\n\t\t\tcheckBig = romConcat.indexOf(bigNum);\r\n\t\t}\r\n\t\t\r\n\t\tif(checkSmall == 0 || checkBig == 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse if(checkSmall < checkBig) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public static boolean isOneAway2(String string1, String string2) {\n int lengthDifference = Math.abs(string1.length() - string2.length());\n if (lengthDifference > 1) {\n return false;\n }\n\n int[][] dp = new int[string1.length() + 1][string2.length() + 1];\n\n for (int i = 1; i <= string1.length(); i++) {\n for (int j = 1; j <= string2.length(); j++) {\n int smallestEditDistance = Math.min(dp[i - 1][j - 1], dp[i][j - 1]);\n smallestEditDistance = Math.min(smallestEditDistance, dp[i - 1][j]);\n\n if (string1.charAt(i - 1) == string2.charAt(j - 1)) {\n dp[i][j] = smallestEditDistance;\n } else {\n dp[i][j] = smallestEditDistance + 1;\n }\n }\n }\n\n return dp[string1.length()][string2.length()] <= 1;\n }", "public boolean typeStringsEqual(String uti1, String uti2);", "public static boolean fullNamesEqual(String name1, String name2) {\n if (StringUtil.isEmpty(name1) && StringUtil.isEmpty(name2)) {\n return true;\n }\n // Split multi-part names into individual components and compare\n // each component. If delimited, do case compare.\n String[] names1 = normalizer.splitName(defaultRule, name1);\n String[] names2 = normalizer.splitName(defaultRule, name2);\n if (names1.length != names2.length) {\n return false;\n }\n for (int i = 0; i < names1.length; i++) {\n if (normalizer.isDelimited(defaultRule, names1[i])) {\n if (!Objects.equals(names1[i],names2[i])) {\n return false;\n }\n } else {\n if (!StringUtil.equalsIgnoreCase(names1[i],names2[i])) {\n return false;\n }\n }\n }\n return true;\n }", "private static boolean anagramWord(String first, String second) {\n\t\tif(first.length()!=second.length())return false;\n\t\tint matches = 0;\n\t\tchar[] a = first.toLowerCase().toCharArray();\n\t\tchar[] b = second.toLowerCase().toCharArray();\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tfor(int j=0; j<b.length; j++){\n\t\t\t\tif(a[i]==b[j])matches++;\n\t\t\t}\n\t\t}\n\t\tif( matches==a.length && matches==b.length )return true;\n\t\treturn false;\n\t}", "public static boolean isAnagram2(String s1, String s2) {\r\n List<Character> list = new ArrayList<>();\r\n\r\n for (char c : s1.toCharArray()) {\r\n list.add(c);\r\n }\r\n\r\n for (char c : s2.toCharArray()) {\r\n list.remove(new Character(c));\r\n }\r\n\r\n return (list.isEmpty());\r\n }", "public static boolean ransomChars(String str1, String str2) {\n return false;\n }", "public static boolean validate(String str1, String str2 ) {\n return (str2 + str2).contains(str1);\n }", "public static boolean isAnagram(char[]s1, char[]s2)\r\n{\n\t if(s1.length!=s2.length)\r\n\t\t return false; \r\n\t \r\n\t //sort both strings using Arrays sort method\r\n\t Arrays.sort(s1); \r\n\t Arrays.sort(s2);\r\n\t \r\n\t for(int i=0; i<s1.length;i++)\r\n\t if(s1[i]!=s2[i])\r\n\t\t return false; \r\n\t\r\n\treturn true; \r\n\t \r\n}", "public static boolean replace(String s1, String s2){\n\t\tboolean flag = false;\n\t\tfor (int i = 0; i < s1.length(); i++){\n\t\t\tif (s1.charAt(i) != s2.charAt(i)){\n\t\t\t\tif (flag){\n\t\t\t\t\treturn false;\n\t\t\t\t}else{\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "boolean checkPermutation(String a, String b) {\r\n\r\n if (a == null || b == null) {\r\n throw new NullPointerException();\r\n }\r\n\r\n if (a.length() != b.length()) {\r\n return false;\r\n }\r\n\r\n Map<Character, Integer> frequencies = getFrequency(a);\r\n\r\n for (int i = 0; i < b.length(); i++) {\r\n char c = b.charAt(i);\r\n\r\n if (frequencies.containsKey(c)) {\r\n int count = frequencies.get(c);\r\n if (count == 0) {\r\n return false;\r\n }\r\n\r\n frequencies.replace(c, count - 1);\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "private static boolean isAnagram(String a, String b) {\n\t\tint[] charsA = new int[26];\n\t\tint[] charsB = new int[26];\n\t\t\n\t\tfor(int i = 0 ; i < a.length(); i++)\n\t\t\tcharsA[a.charAt(i) - 'a']++;\n\t\tfor(int i = 0 ; i < b.length(); i++)\n\t\t\tcharsB[b.charAt(i) - 'a']++;\n\t\t\n\t\tfor(int i = 0 ; i < 26 ; i++) \n\t\t\tif(charsA[i] != charsB[i])\n\t\t\t\treturn false;\n\t\treturn true;\n\t}", "public static boolean lettersCheck(String name) {\r\n\t\treturn name.matches(\"^[\\\\p{L} .'-]+$\");\r\n\t}", "public boolean verifyString(String s) {\n\t\t\n\t\tfor (int i = 0; i<s.length();i++) {\n\t\t\tif (!alphabet.contains(s.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public boolean isCorrect(String str);", "public boolean checkInvalid2(String x) {\n for (int i = 0; i < x.length(); i++) {\n if (consonants.contains(String.valueOf(x.charAt(i)))) {\n count++;\n }\n }\n return count == x.length();\n\n }", "public static boolean hasA( String w, String letter ) \n {\n return (w.indexOf(letter) > -1);\n }", "@Test\n public void testAreFirstAndLastCharactersTheSame() {\n \n assertTrue(stringHelper.areFirstAndLastCharactersTheSame(\"AA\"));\n \n }", "public static boolean checkTwoStringsAreZeroOrOneEditsAway(String first, String second) {\n if (first.length() == second.length()) {\n return oneEditReplace(first, second);\n }else if(first.length() - 1 == second.length()){\n return oneEditInsert(second, first);\n }else if(first.length() + 1 == second.length())\n return oneEditInsert(first, second);\n\n return false;\n }", "static String twoStrings(String s1, String s2) {\n String bigstr = s1.length() > s2.length() ? s1 : s2;\n String smallstr = s1.length() > s2.length() ? s2 : s1;\n int bigstrSize = bigstr.length();\n int smallstrSize = smallstr.length();\n\n boolean string_check[] = new boolean[1000];\n\n for (int i = 0; i < bigstrSize; i++) {\n string_check[bigstr.charAt(i) - 'A'] = true;\n }\n // if at least one char is present in boolean array\n for (int i = 0; i < smallstrSize; i++) {\n if (string_check[smallstr.charAt(i) - 'A'] == true) {\n return \"YES\";\n }\n }\n return \"NO\";\n }", "public static boolean checkIfPermutations(String str1, String str2) {\n\n if(str1.length() != str2.length())\n return false;\n\n char chars1[] = str1.toCharArray();\n char chars2[] = str2.toCharArray();\n\n Arrays.sort(chars1);\n Arrays.sort(chars2);\n\n for(int i=0; i<str1.length(); i++) {\n if(chars1[i] != chars2[i])\n return false;\n }\n\n return true;\n }", "boolean isAnagram(String str1, String str2){\n\t\tString s1 = str1.replaceAll(\"\\\\s\",\"\");\n\t\tString s2 = str2.replaceAll(\"\\\\s\",\"\");\n\t\t\n\t\t//\n\t\tboolean check = true;\n\t\tif(s1.length()!=s2.length())\n\t\t{\n\t\t\tcheck = false;\n\t\t}\n\t\telse{\n\t\t\ts1=sortArray(s1);\n\t\t\ts2=sortArray(s2);\n\t\t\tcheck = s1.equalsIgnoreCase(s2);\n\t\t}\n\treturn check;\n\t}", "private Boolean solution(String s1, String s2){\n\t\t\n\t\tint k = s1.length();\n\t\tchar[] input1 = s1.toCharArray();\n\t\t\n\t\tint m =0 ,count=0;\n\t\t\n\t\twhile(m < s2.length()-1){\n\t\t\t\n\t\tchar[] temp1 = s2.substring(m, m+k).toCharArray();\n\t\t\t\n\t\t\tfor(int i=0; i<s1.length(); i++){\n\t\t\t\tfor(int j=0; j<s1.length(); j++){\n\t\t\t\t\tif(input1[i] == temp1[j] ){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tif(count == s1.length())\n\t\t\t\treturn true;\n\t\tcount =0;\n\t\tm++;\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "public static boolean isAnagram(String strOne, String strTwo) throws IllegalArgumentException {\n if (strOne == null || strTwo == null)\n throw new IllegalArgumentException(\"One or both strings is null\");\n\n /**\n * Replace spaces and lower case the strings, note that we could\n * do this check while building up the map, but this is somewhat simpler\n * to understand/read, and it also allows us to not have to check to index\n * out of bounds issues when iterating through characters\n */\n String strOneCopy = strOne.replaceAll(\"\\\\s\", \"\").toLowerCase();\n String strTwoCopy = strTwo.replaceAll(\"\\\\s\", \"\").toLowerCase();\n\n if (strOne.isEmpty() || strTwo.isEmpty())\n return false;\n\n int strOneLen = strOneCopy.length();\n int strTwoLen = strTwoCopy.length();\n\n // If the strings aren't the same length they cannot be anagrams\n if (strOneLen != strTwoLen)\n return false;\n\n HashMap<Character, Integer> charCount = new HashMap<Character, Integer>();\n\n\n /**\n * Build a map of the counts of each character.\n *\n * The count will be positive if a character appears in first string one or more\n * times more than it appears in the second string\n *\n * The count will be negative if a character appears in second string one or more\n * times more than it appears in the first string\n */\n for (int i = 0; i < strOneLen; i++) {\n\n /**\n * Get the character from string one, we're not worried about out of bound index issues here\n * as we've already checked that the strings are the same length so there should\n * be characters at every index here for both strings\n */\n char charValKey = strOneCopy.charAt(i);\n\n int charKeyCount = 0;\n\n // Check if we've already seen this character and get the existing count if so\n if (charCount.containsKey(charValKey))\n charKeyCount = charCount.get(charValKey);\n\n // Increment the count\n charCount.put(charValKey, ++charKeyCount);\n\n\n /**\n * Get the character from string two, we're not worried about out of bound index issues here\n * as we've already checked that the strings are the same length so there should\n * be characters at every index here for both strings\n */\n charValKey = strTwoCopy.charAt(i);\n charKeyCount = 0;\n\n // Check if we've already seen this character and get the existing count if so\n if (charCount.containsKey(charValKey))\n charKeyCount = charCount.get(charValKey);\n\n // Decrement the count\n charCount.put(charValKey, --charKeyCount);\n\n }\n\n\n for (int value : charCount.values()) {\n if (value != 0)\n return false;\n }\n\n return true;\n }", "public static boolean containsString (char[] letters, String word){\n int numberOfSameLetters = 0;\n word.toCharArray();\n for(char charInWord : word.toCharArray()) {\n for (char letter : letters) {\n if(charInWord == letter){\n// System.out.println(\"letter \" + letter);\n numberOfSameLetters ++;\n break;\n }\n }\n }\n if(numberOfSameLetters == word.length()){\n// System.out.println(true);\n return true;\n }\n// System.out.println(\"false\");\n return false;\n }", "private boolean isAnagrams(String s1, String s2) {\n char[] ss1 = s1.toCharArray();\n \n char[] ss2 = s2.toCharArray();\n \n Arrays.sort(ss1);\n Arrays.sort(ss2);\n return ss1.equals(ss2);\n\n }", "public static boolean checkPalaindrome(String s) {\n if (s == null) return false;\n String refinedString = s.toLowerCase()\n .replaceAll(\" \",\"\")\n .replaceAll(\"[^a-z]\", \"\");\n int i =0;\n int j = refinedString.length() -1;\n while (i < j) {\n if (refinedString.charAt(i) != refinedString.charAt(j)) {\n return false;\n }\n i++ ; j--;\n }\n return true;\n }", "@SuppressWarnings(\"null\")\n public static boolean charSequencesEqual(CharSequence a, CharSequence b) {\n return charSequencesEqual(a, b, false);\n }", "public static boolean equals(CharSequence a, CharSequence b) {\r\n\t\tif (a == b) return true;\r\n\t\tint length;\r\n\t\tif (a != null && b != null && (length = a.length()) == b.length()) {\r\n\t\t\tif (a instanceof String && b instanceof String) {\r\n\t\t\t\treturn a.equals(b);\r\n\t\t\t} else {\r\n\t\t\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\t\t\tif (a.charAt(i) != b.charAt(i)) return false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean hasA( String w, String letter )\r\n { return w.indexOf(letter) != -1;\r\n }", "public static boolean isAnagram (String word1, String word2){\n boolean check = false;\n String one = \"\";\n String two = \"\";\n int counter =0;\n int counter1 =0;\n for(int i=0; i<word1.length(); i++){\n counter=0;\n for(int k=0; k<word2.length(); k++){\n if(word1.charAt(i) == word2.charAt(k) ){\n counter++;\n }\n }\n if(counter ==1){\n counter1++;\n }\n }\n if (counter1 == word1.length() && counter1 == word2.length() ){\n check = true;\n }\n return check;\n }", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nString a=sc.nextLine();\r\nString b=sc.nextLine();\r\nchar ch1[]=a.toCharArray();\r\nchar ch2[]=b.toCharArray();\r\nint l1=ch1.length;\r\nint l2=ch2.length;\r\nint n=0;\r\nif(l1==l2)\r\n{\r\n\tfor(int i=0;i<l1;i++)\r\n\t{\r\n\t\tif(ch1[i]!=ch2[i])\r\n\t\t{\r\n\t\t\tn=n+1;\r\n\t\t}\r\n\t}\r\n\tif(n==1)\r\n\t\tSystem.out.println(\"yes\");\r\n\telse\r\n\t\tSystem.out.println(\"no\");\r\n}\r\nelse\r\n\tSystem.out.println(\"no\");\r\n\t}" ]
[ "0.8223656", "0.7759652", "0.75793445", "0.7547023", "0.7379117", "0.72285545", "0.72124815", "0.7175379", "0.7086983", "0.7080199", "0.7058158", "0.701928", "0.7015631", "0.69687355", "0.6963736", "0.69634694", "0.69354784", "0.68933463", "0.68850124", "0.68340516", "0.6822109", "0.6817403", "0.68039834", "0.6753087", "0.67311954", "0.6705695", "0.6672044", "0.6618595", "0.6614132", "0.6597281", "0.659633", "0.6574358", "0.65454054", "0.6521052", "0.6518798", "0.65045744", "0.64778787", "0.6463677", "0.644956", "0.6437949", "0.6416249", "0.6413813", "0.64100915", "0.63731354", "0.63687813", "0.6355418", "0.634629", "0.63301486", "0.6318774", "0.6313828", "0.6293896", "0.62903816", "0.6280918", "0.62672937", "0.6257928", "0.62562406", "0.6251286", "0.623278", "0.62285924", "0.6226686", "0.6216281", "0.62008107", "0.61997926", "0.6195528", "0.6192738", "0.61918306", "0.61856484", "0.61831266", "0.61814135", "0.6167036", "0.6164622", "0.61535466", "0.61522865", "0.6143538", "0.61374605", "0.61267173", "0.61101156", "0.6106161", "0.6101402", "0.60978943", "0.6095488", "0.6091585", "0.6082163", "0.6081822", "0.60798204", "0.60763496", "0.60641754", "0.6063632", "0.60622305", "0.6060426", "0.6060232", "0.60588133", "0.60583735", "0.6041693", "0.6030208", "0.6029489", "0.60290587", "0.6023998", "0.6021559", "0.6020036" ]
0.6067544
86
Read a list pf strings, all of the same length.
public static void main(String[] args) { In in = new In(args[0]); IndexSET<String> words = new IndexSET<String>(); while (!in.isEmpty()) { String word = in.readString(); words.add(word); } System.err.println("Finished reading word list"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String[]> readAll();", "public static String[] readStrings() {\n return readAllStrings();\n }", "public List<String> read()\n\t{\n\t\treturn null;\n\t}", "public List<String> readFileIntoList(String filepath) throws IOException;", "String getStringList();", "List<T> read();", "List<T> readList();", "public static List<List<String>> readFile() {\r\n List<List<String>> out = new ArrayList<>();\r\n File dir = new File(\"./tmp/data\");\r\n dir.mkdirs();\r\n File f = new File(dir, \"storage.txt\");\r\n try {\r\n f.createNewFile();\r\n Scanner s = new Scanner(f);\r\n while (s.hasNext()) {\r\n String[] tokens = s.nextLine().split(\"%%%\");\r\n List<String> tokenss = new ArrayList<>(Arrays.asList(tokens));\r\n out.add(tokenss);\r\n }\r\n return out;\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }", "public ArrayList<String[]> read(String s) throws IOException,\n\t\t\tFileNotFoundException {\n\t\tArrayList<String[]> result = new ArrayList<String[]>();\n\t\tFileReader fr = new FileReader(s);\n\t\tBufferedReader br = new BufferedReader(fr);\n\t\tString[] row = new String[6];\n\t\tString line;\n\t\twhile (true) {\n\t\t\tline = br.readLine();\n\t\t\tif (line == null) {\n\t\t\t\tbr.close();\n\t\t\t\treturn result;\n\t\t\t}\n\n\t\t\trow = line.split(\",\");\n\t\t\tresult.add(row);\n\t\t}\n\t}", "public static List<String> readListOfStringsFromFile(String filePath) throws IOException {\n List<String> list = new ArrayList<>();\n Files.lines(Paths.get(filePath), StandardCharsets.UTF_8).forEach(list::add);\n return list;\n }", "public static String[] readStrings(ChannelBuffer buffer, int numOfStrings)\n\t{\n\t\tString[] strings = new String[numOfStrings]; \n\t\tfor(int i=0;i<numOfStrings;i++)\n\t\t{\n\t\t\tString theStr = readString(buffer);\n\t\t\tif(null == theStr) break;\n\t\t\tstrings[i] = theStr;\n\t\t}\n\t\treturn strings;\n\t}", "public List<String> load();", "private static String[] readLines(InputStream f) throws IOException {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(f, \"US-ASCII\"));\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tString line;\n\t\twhile ((line = r.readLine()) != null)\n\t\t\tlines.add(line);\n\t\treturn lines.toArray(new String[0]);\n\t}", "public static List<String> readIn(String filename) throws Exception {\r\n Path filePath = new File(filename).toPath();\r\n Charset charset = Charset.defaultCharset(); \r\n List<String> stringList = Files.readAllLines(filePath, charset);\r\n\r\n return stringList;\r\n }", "@SuppressWarnings(\"unchecked\")\n public List readList() throws IOException {\n List list = new ArrayList();\n Object obj = read();\n while (obj != null) {\n list.add(obj);\n obj = read();\n }\n return list;\n }", "protected List<String> readStringList(XmlPullParser parser)\n throws IOException, XmlPullParserException {\n\n int length = Integer.parseInt(parser.getAttributeValue(null, ATTRIBUTE_LENGTH));\n List<String> arrayEntries = new ArrayList<String>(length);\n String value = null;\n\n if (length == 0) {\n return arrayEntries;\n }\n\n int outerDepth = parser.getDepth();\n while (XmlUtils.nextElementWithin(parser, outerDepth)) {\n if (parser.getName().equals(TAG_VALUE)) {\n parser.next();\n value = parser.getText();\n arrayEntries.add(value);\n }\n }\n\n return arrayEntries;\n }", "private static List<String[]> readInput(String filePath) {\n List<String[]> result = new ArrayList<>();\n int numOfObject = 0;\n\n try {\n Scanner sc = new Scanner(new File(filePath));\n sc.useDelimiter(\"\");\n if (sc.hasNext()) {\n numOfObject = Integer.parseInt(sc.nextLine());\n }\n for (int i=0;i<numOfObject;i++) {\n if (sc.hasNext()) {\n String s = sc.nextLine();\n if (s.trim().isEmpty()) {\n continue;\n }\n result.add(s.split(\" \"));\n }\n }\n sc.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException\");\n }\n return result;\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 ArrayList<String> createStringArray() throws Exception {\n ArrayList<String> stringsFromFile = new ArrayList<>();\n while (reader.hasNext()) {\n stringsFromFile.add(reader.nextLine());\n }\n return stringsFromFile;\n }", "public ArrayList<String> readItem();", "public String[] getStringList();", "private String[] readFile(BufferedReader reader) throws IOException {\r\n // Read each line in the file, add it to the ArrayList lines\r\n ArrayList<String> lines = new ArrayList<String>();\r\n String line;\r\n while ((line = reader.readLine()) != null) {\r\n lines.add(line);\r\n }\r\n reader.close();\r\n // Convert the list to an array of type String and return\r\n String[] ret = new String[1];\r\n return (lines.toArray(ret));\r\n }", "public ArrayList<ArrayList<Character> > reader(java.io.InputStream in) throws IOException{\n String s = \"\";\n int data = in.read();\n while(data!=-1){\n s += String.valueOf((char)data);\n data = in.read();\n }\t\t\t\t\t\t\t\t// s now has the input file stored as a string\n ArrayList<ArrayList<Character> > arr = new ArrayList<>();\n for(int i = 0;i<s.length();){\n ArrayList<Character> a = new ArrayList<>();\n while(s.charAt(i)!='\\n'){\n if((s.charAt(i)-'a'>=0&&s.charAt(i)-'a'<=25)||(s.charAt(i)-'0'>=0&&s.charAt(i)-'0'<=9)){ //taking only alphanumerics\n a.add(s.charAt(i));\n }\n i++;\n }\n arr.add(a);\n i++;\n }\n return arr;\n }", "public static List<String> readLines(final Reader input) throws IOException {\n final BufferedReader reader = new BufferedReader(input);\n final List<String> list = new ArrayList<String>();\n String line = reader.readLine();\n while (line != null) {\n list.add(line);\n line = reader.readLine();\n }\n return list;\n }", "public static ArrayList<String> readInputTxtFile(ArrayList<String> inputList, FilePath pathStr) throws IOException {\n\t\tinputList = new ArrayList<String>();\n\t\tFile file = new File(pathStr.getPathStr() + \"input.txt\");\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"euc-kr\"));\n\n\t\tString resultStr = null;\n\t\twhile ((resultStr = br.readLine()) != null) {\n\t\t\tinputList.add(resultStr); // 너를 사랑해!\n\t\t\t// System.out.println(resultStr);\n\t\t}\n\t\treturn inputList;\n\t}", "List readFile(String pathToFile);", "public static ArrayList<String> readToString(String filePath) {\n\t\tFile file = new File(filePath);\n\t\tArrayList<String> res = new ArrayList<String>();\n\t\tif (!file.exists()) {\n\t\t\treturn res;\n\t\t}\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tString str = null;\n\t\t\twhile ((str = br.readLine()) != null) {\n\t\t\t\tres.add(str);\n\t\t\t}\n\t\t\tfr.close();\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn res;\n\t}", "public ArrayList<String> loadToRead() {\n\n\t\tSAVE_FILE = TO_READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public List<String> readInputStream(InputStream inputStream) throws IOException {\n\t\tint sizeOfStream = inputStream.available();\n\t\tbyte[] bytes = new byte[sizeOfStream];\n\t\tinputStream.read(bytes, 0, sizeOfStream);\n\t\treturn Arrays.asList(new String(bytes, StandardCharsets.UTF_8).split(\",\"));\n\t}", "public ArrayList<String> readFile() {\n data = new ArrayList<>();\n String line = \"\";\n boolean EOF = false;\n\n try {\n do {\n line = input.readLine();\n if(line == null) {\n EOF = true;\n } else {\n data.add(line);\n }\n } while(!EOF);\n } catch(IOException io) {\n System.out.println(\"Error encountered.\");\n }\n return data;\n }", "public List<String> readFields() throws IOException\n {\n List<String> fields = new ArrayList<String>();\n StringBuffer sb = new StringBuffer();\n String line = in.readLine();\n\n if (line == null)\n return null;\n\n if (line.length() == 0)\n {\n fields.add(line);\n return fields;\n }\n\n int i = 0;\n do\n {\n sb.setLength(0);\n if (i < line.length() && line.charAt(i) == textQualifier)\n {\n i = handleQuotedField(line, sb, ++i); // skip quote\n }\n else\n {\n i = handlePlainField(line, sb, i);\n }\n\n // Make sure the field name is trimmed before adding it\n fields.add(sb.toString().trim());\n i++;\n }\n while (i < line.length());\n\n return fields;\n }", "public List<File> getFiles(List<String> stringlist);", "public byte[] readRawList() throws IOException {\n Buffer buffer = new Buffer(new byte[] { (byte) Type.LIST.code });\n byte[] bytes = readRaw();\n while (bytes != null) {\n buffer.append(bytes);\n bytes = readRaw();\n }\n buffer.append(new byte[] { (byte) Type.MARKER.code });\n return buffer.get();\n }", "public void readString(String inputString) {\n\t\tfor(int i = 0; i < inputString.length(); ++i) {\n\t\t\tstringList.add( inputString.charAt(i));\n\t\t}\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 void readArray(String s){\r\n\t\tString[] s1=s.split(\"\");\r\n\t\tSystem.out.println(\"reading string array:-\");\r\n\t\tfor(int i=0;i<s1.length;i++){\r\n\t\t\tSystem.out.print(s1[i]);\r\n\t\t}System.out.println();\r\n\t}", "private List<String> readFile(String path) throws IOException {\n return Files.readAllLines (Paths.get (path), StandardCharsets.UTF_8);\n }", "@Override\n\tpublic void ReadTextFile() {\n\t\t// Using a programmer-managed byte-array\n\t\ttry (FileInputStream in = new FileInputStream(inFileStr)) {\n\t\t\tstartTime = System.nanoTime();\n\t\t\tbyte[] byteArray = new byte[bufferSize];\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(byteArray)) != -1) {\n\t\t\t\tsnippets.add(new String(byteArray));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void readWordList() {\n try {\n wordList = XmlStringArrayParser.parse(getAssets().open(Constant.WORDLISTFILE),\n settings.getInt(\"wordMaxLength\", 7));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static List<String> readLines(final InputStream input) throws IOException {\n return readLines(input, Charset.defaultCharset());\n }", "static List<String> readLines(InputStream in) throws IOException {\n\t\tList<String> lines = new ArrayList<String>();\n\t\t\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\tString line = null;\n\t\twhile((line = reader.readLine()) != null) {\n\t\t\tlines.add(line);\n\t\t}\n\t\treturn lines;\n\t}", "public ArrayList<String> loadRead() {\n\n\t\tSAVE_FILE = READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "private List<String> getInputList(BufferedReader br) throws IOException {\n\t\tArrayList<String> inputWordsList = new ArrayList<String>();\n\t\tString tempInputWord = null;\n\t\twhile ((tempInputWord = br.readLine()) != null) {\n\t\t\tinputWordsList.add(tempInputWord);\n\t\t}\n\t\treturn inputWordsList;\n\t}", "public static List read(String file){\n\t\tLinkedList<String> data =\tnew LinkedList<String>();\n\t\tString dataRow;\n\t\t\n\t\ttry {\n\t\t\t\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\n\t\twhile((dataRow = br.readLine())!=null);{\t\n\t\t\tString[] dataRecord = dataRow.split(\",\");\n\t\t\tdata.addAll(dataRecord);\n\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not found file\");\n\t\t\te.printStackTrace();\n\t\t}catch (IOException e) {\n\t\tSystem.out.println(\"Could Not read file\");\n\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public 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 }", "static List<String> fileReader(String fileName){\n \n \n //Read a file and store the content in a string array.\n File f = new File(fileName);\n BufferedReader reader = null;\n String tempString = null;\n List<String> fileContent = new ArrayList<String>();\n //String[] fileContent = null;\n //int i = 0;\n \n try {\n reader = new BufferedReader(new FileReader(f));\n while ((tempString = reader.readLine()) != null){\n //while ((fileContent[i] = reader.readLine()) != null){\n fileContent.add(tempString);\n //i++;\n }\n reader.close();\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n finally{\n if (reader != null){\n try{\n reader.close();\n }\n catch(IOException e){\n e.printStackTrace();\n }\n }\n }\n \n return fileContent;\n \n }", "public static List<List<String>> readCode(String fName){\n List<String> list = Aron.readFileLineByte(fName, 200);\n List<List<String>> list2d = new ArrayList<>();\n\n List<String> line = new ArrayList<>();\n for(String s : list){\n\n if(s.trim().length() > 0){\n line.add(s);\n }else{\n if(line.size() > 0) {\n list2d.add(line);\n line = new ArrayList<>();\n }\n }\n }\n return list2d;\n }", "public static List read(String fileName) throws IOException {\n\tList data = new ArrayList() ;\n Scanner scanner = new Scanner(new FileInputStream(fileName));\n try {\n while (scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n }\n finally{\n scanner.close();\n }\n return data;\n }", "List<T> readAll();", "List<String> getLines();", "StringList createStringList();", "private ArrayList<String> readStringsFromFile(File f, String stringSeparator)\r\n\t\t\tthrows EasyCorrectionException {\r\n\t\tArrayList<String> contentOfFile = new ArrayList<String>();\r\n\t\tbyte[] buffer = new byte[(int) f.length()];\r\n\t\tBufferedInputStream stream = null;\r\n\t\ttry {\r\n\t\t\tstream = new BufferedInputStream(new FileInputStream(f));\r\n\t\t\tstream.read(buffer);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new EasyCorrectionException(\"The file \" + f.getName()\r\n\t\t\t\t\t+ \" could not be read during the Output Comparison!\");\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (stream != null) {\r\n\t\t\t\t\tstream.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tthrow new EasyCorrectionException(\"The file \" + f.getName()\r\n\t\t\t\t\t\t+ \" could not be closed during the Output Comparison!\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (String string : new String(buffer).split(stringSeparator)) {\r\n\t\t\tcontentOfFile.add(string);\r\n\t\t}\r\n\r\n\t\treturn contentOfFile;\r\n\t}", "public static ArrayList<String> loadFileStrings(File f) {\n\t\tArrayList<String> fileStrings = new ArrayList<String>();\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null)\n\t\t\t\tfileStrings.add(line);\n\t\t\tbr.close();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\treturn fileStrings;\n\t}", "java.util.List<java.lang.String> getContentsList();", "public List<String> getStrings(String fileName) throws IOException {\n\n List<String> items = readFile (fileName);\n String text = String.join (\"\", items);\n\n return normalizeCsv (text + \" \");\n }", "public String[] read()\n {\n ArrayList<String> input = new ArrayList<String>();\n try\n {\n dir = new File(contextRef.getFilesDir(), filename);\n if (dir.exists())\n {\n Scanner contacts = new Scanner(dir);\n while (contacts.hasNextLine())\n {\n input.add(contacts.nextLine());\n }\n contacts.close();\n }\n }catch (Exception ex)\n {\n //debug(\"read file contents failure\");\n debug = \"test read failure\";\n }\n return input.toArray(new String[1]);\n }", "Set<String> readData();", "protected List<String> readFile()\n {\n // Base size 620 for Google KML icons. This might be slow for larger\n // sets.\n List<String> lines = New.list(620);\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(getClass().getResourceAsStream(myImageList), StringUtilities.DEFAULT_CHARSET)))\n {\n for (String line = reader.readLine(); line != null; line = reader.readLine())\n {\n lines.add(line);\n }\n }\n catch (IOException e)\n {\n LOGGER.warn(e.getMessage());\n }\n return lines;\n }", "private static String readAll(Reader rd) throws IOException {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int cp;\n\t\t while ((cp = rd.read()) != -1) {\n\t\t sb.append((char) cp);\n\t\t }\n\t\t return sb.toString();\n\t\t }", "List<E> read();", "public List<String> readFileContents(String filePath) throws APIException;", "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 }", "String[] readFile(String path) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader;\n File file;\n\n try {\n file = new File(path);\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n return output;\n }", "public static String[] readAllLines() {\n ArrayList<String> lines = new ArrayList<String>();\n while (hasNextLine()) {\n lines.add(readLine());\n }\n return lines.toArray(new String[lines.size()]);\n }", "public static String[] readAllStrings() {\n // we could use readAll.trim().split(), but that's not consistent\n // because trim() uses characters 0x00..0x20 as whitespace\n String[] tokens = WHITESPACE_PATTERN.split(readAll());\n if (tokens.length == 0 || tokens[0].length() > 0)\n return tokens;\n\n // don't include first token if it is leading whitespace\n String[] decapitokens = new String[tokens.length-1];\n for (int i = 0; i < tokens.length - 1; i++)\n decapitokens[i] = tokens[i+1];\n return decapitokens;\n }", "public List<String> decode(String s) {\r\n int i = 0, n = s.length();\r\n List<String> output = new ArrayList();\r\n while (i < n) {\r\n int length = stringToInt(s.substring(i, i + 4));\r\n i += 4;\r\n output.add(s.substring(i, i + length));\r\n i += length;\r\n }\r\n return output;\r\n }", "List<String[]> readCsv(String inputFilePath)throws IOException;", "@Override\n\tpublic void ReadTextFile() {\n\t\t// Using Buffered Stream I/O\n\t\ttry (BufferedInputStream in = new BufferedInputStream(new FileInputStream(inFileStr))) {\n\t\t\tbyte[] contents = new byte[bufferSize];\n\t\t\tstartTime = System.nanoTime();\n\t\t\tint bytesCount;\n\t\t\twhile ((bytesCount = in.read(contents)) != -1) {\n\t\t\t\tsnippets.add(new String(contents));\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public ArrayList<String> createArray(BufferedReader reader) {\n ArrayList<String> s = new ArrayList<String>();\n try {\n\n for (String x = reader.readLine(); x != null; x = reader.readLine()) {\n s.add(x);\n }\n\n }catch (IOException e)\n {}\n return s;\n }", "private static List<String> loadGenericDfFile(String file) throws IOException{\n\t\tList<String> lines = new ArrayList<String>();\n\t\t\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tnew FileInputStream(file), \"UTF-8\"));\n\t\ttry {\n\t\t\tString str;\n\t\t\twhile ((str = in.readLine()) != null) {\n\t\t\t\tlines.add(str);\n\t\t\t}\n\t\t} finally {\n\t\t\tin.close();\n\t\t}\n\n\t\treturn lines;\n\t}", "public interface Reader {\n public List<String> readAllLines();\n}", "public static String[] readStringArray(int MAX) {\n\n\t\tString[] temp = new String[MAX];\n\n\t\tfor (int i = 0; i < MAX; i++) {\n\t\t\tSystem.out.print(\"Enter any String : \");\n\t\t\ttemp[i] = UserIO.readInput();\n\t\t}\n\n\t\treturn temp;\n\t}", "private String readAll(Reader rd) throws IOException {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tint cp;\r\n\t\twhile ((cp = rd.read()) != -1) {\r\n\t\t\tsb.append((char) cp);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public void readfiles1(String file_name){\n \n\n try{\n File fname1 = new File(file_name);\n Scanner sc = new Scanner(fname1);\n \n while (sc.hasNext()){\n String temp = sc.nextLine();\n String[] sts = temp.split(\" \");\n outs.addAll(Arrays.asList(sts));\n\n }\n\n // for (int i = 0;i<outs.size();i++){\n // System.out.println(outs.get(i));\n //}\n\n }catch(Exception ex){\n System.out.println(ex.getMessage());\n }\n }", "public List<String> readFileIntoList(String sourceFilepath) throws IOException {\n List<String> lines = new ArrayList<>();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n lines.add(line);\n }\n reader.close();\n return lines;\n }", "public static List<String> readLines(BufferedReader reader) throws IOException {\n List<String> lines = new ArrayList();\n eachLine(reader, lines);\n return lines;\n }", "@Test public void readStringDescriptionsNotJustSingleWord() {\n fail( \"Not yet implemented\" );\n }", "public\n static\n List< String >\n readLines( InputStream is,\n String charset )\n throws IOException\n {\n inputs.notNull( is, \"is\" );\n try\n {\n inputs.notNull( charset, \"charset\" );\n \n List< String > res = Lang.newList();\n \n BufferedReader br = \n new BufferedReader( new InputStreamReader( is, charset ) );\n \n String line;\n while ( ( line = br.readLine() ) != null ) res.add( line );\n \n return res;\n }\n finally { is.close(); }\n }", "public static List<String> readLines(final InputStream input, final String encoding) throws IOException {\n return readLines(input, Charset.forName(encoding));\n }", "public static List<String> readFileAsList(String filePath) {\n\n\t\tBufferedReader readFile = null;\n\t\tString line = null;\n\t\tList<String> fileContents = new ArrayList<String>();\n\t\ttry {\n\t\t\treadFile = new BufferedReader((new FileReader(filePath)));\n\t\t\twhile ((line = readFile.readLine()) != null)\n\t\t\t\tfileContents.add(line);\n\t\t\treadFile.close();\n\t\t\treturn fileContents;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Unable to find file: \" + filePath);\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unable to read file: \" + filePath);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn fileContents;\n\t}", "private static String readAll(Reader rd) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tsb.append((char) cp);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private static String readAll(Reader rd) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tsb.append((char) cp);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private void read(String[] title, String[][] list) {\n\t\tuserTitle = title;\n\t\tuserList = list;\n\t}", "public static List<String> parseByteArrayToStrings(byte[] bytes) {\n List<String> strList = new ArrayList<>();\n int start = 0;\n int end = 0;\n // Iterate characters\n do {\n // If we've reached a delimiter or the end of the array, add to list\n if (end == bytes.length || bytes[end] == 0) {\n // Zero length string means two nulls, we're done\n if (start == end) {\n break;\n }\n // Otherwise add string and reset start\n // Intentionally using platform default charset\n strList.add(new String(bytes, start, end - start));\n start = end + 1;\n }\n } while (end++ < bytes.length);\n return strList;\n }", "private static ArrayList<String> Read(String endereco) {\n\n ArrayList<String> conteudo = new ArrayList();\n\n try {\n\n Reader arquivo = null;\n\n try {\n arquivo = new InputStreamReader(new FileInputStream(endereco), \"ISO-8859-1\");\n } catch (UnsupportedEncodingException ex) {\n JOptionPane.showMessageDialog(null, \"ERROR\\nNão foi possivel ler o arquivo: \" + ex);\n }\n\n BufferedReader leitura = new BufferedReader(arquivo);\n\n String linha = \"\";\n\n try {\n\n linha = leitura.readLine();\n\n while (linha != null) {\n\n conteudo.add(linha);\n linha = leitura.readLine();\n\n }\n\n arquivo.close();\n\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"ERROR\\nNão foi possivel ler o arquivo: \" + ex);\n }\n\n } catch (FileNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"ERROR\\nArquivo não encontrado: \" + ex);\n }\n\n return conteudo;\n\n }", "java.util.List<java.lang.String>\n getStrValuesList();", "public static ArrayList<String> readLines(String fileName){\n\t\treturn read(fileName, false);\n\t}", "public static void readFromFile(ArrayList<String> sArrayList, Context context){\n\n int i=0;\n try{\n InputStream inputStream = context.openFileInput(TxtName);\n\n if(inputStream!=null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String receivedString = \"\";\n\n while((receivedString = bufferedReader.readLine())!=null){\n sArrayList.set(i,receivedString);\n Log.d(\"fileContent\", \"readFromFile: \"+sArrayList.get(i)+\"\\n\");\n i++;\n }\n inputStream.close();\n }\n\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n }\n\n }", "public static ArrayList readData(){\n ArrayList alr = new ArrayList();\n try{\n ArrayList stringArray = (ArrayList)read(filename);\n for (int i = 0; i < stringArray.size(); i++){\n String st = (String)stringArray.get(i);\n StringTokenizer star = new StringTokenizer(st, SEPARATOR);\n int movieID = Integer.parseInt(star.nextToken().trim());\n String email = star.nextToken().trim();\n String comment = star.nextToken().trim();\n Review review = new Review(movieID, email, comment);\n alr.add(review);\n }\n }\n catch (IOException e){\n System.out.println(\"Exception > \" + e.getMessage());\n }\n return alr;\n }", "public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux = 0;\n while ((line = br.readLine()) != null) {\n String[] data = line.split(split_on);\n List<String> helper = new ArrayList<>();\n helper.add(data[0]);\n helper.add(data[1]);\n information.add(helper);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return information;\n }", "static List<String> fileToList(){\n List<String> contacts = null;\n try {\n Path contactsListPath = Paths.get(\"contacts\",\"contacts.txt\");\n contacts = Files.readAllLines(contactsListPath);\n } catch (IOException ioe){\n ioe.printStackTrace();\n }\n return contacts;\n }", "private List<String> readFile(String fileName)\n {\n try\n {\n String file = new String(Files.readAllBytes(Paths.get(fileName)), Charset.forName(\"ISO-8859-1\"));\n file = file\n .toLowerCase()\n .replaceAll(\"[^\\\\w]+\", \" \")\n .replaceAll(\"[0-9]\", \"\");\n Tokenizer tokenizer = SimpleTokenizer.INSTANCE;\n String[] tokens = tokenizer.tokenize(file);\n return Arrays.asList(tokens);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }", "public static ArrayList<String> loadStrings(File f, boolean isPrimaryLoad) {\n\t\tArrayList<String> fileStrings = loadFileStrings(f);\n\t\tint stringsListIndex = loadHierarchy(fileStrings, !isPrimaryLoad);\n\t\t//track which saves got used and which ones didn't\n\t\tboolean[] usedSaves = new boolean[lastSaveSelector.getItemCount()];\n\t\t//load the strings\n\t\tArrayList<String> loadedStrings;\n\t\tif (f == stringsPackedFile)\n\t\t\tloadedStrings = loadFromPackedStringsFile(stringsListIndex, fileStrings, usedSaves);\n\t\telse\n\t\t\tloadedStrings = loadFromStringsFile(stringsListIndex, fileStrings, usedSaves);\n\t\t//verify the strings we got unless this is the base strings being loaded for the packed strings\n\t\tif (isPrimaryLoad) {\n\t\t\tlogUnusedSaves(usedSaves);\n\t\t\tverifyStringsAreInOrder(loadedStrings);\n\t\t}\n\t\treturn loadedStrings;\n\t}", "public static List<String> strings(){\n\n List<String> list = Arrays.asList(\"A\", \"B\", \"C\", \"D\");\n\n return list;\n\n }", "java.util.List<String> getRepeatedStringFieldList();", "ListString createListString();", "public static List<String> stringList() {\n\t\tList<String> list = new ArrayList<String>();\n\t\tlist.add(\"abdxxx\");\n\t\tlist.add(\"xxxxx\");\n\t\tlist.add(\"hi\");\n\t\tlist.add(\"SmoothStack\");\n\t\tlist.add(\"Wyatt x Wyatt x\");\n\t\treturn list;\n\t}", "private ArrayList<String> readRouteList(String filename) {\n FileInputStream fstream = null;\n ArrayList<String> list = new ArrayList();\n try {\n fstream = new FileInputStream(filename);\n BufferedReader br = new BufferedReader(new InputStreamReader(new DataInputStream(fstream)));\n while (true) {\n String readLine = br.readLine();\n String s = readLine;\n if (!(readLine == null || s.length() == 0)) {\n list.add(s);\n }\n try {\n fstream.close();\n break;\n } catch (IOException e) {\n }\n }\n } catch (IOException e2) {\n } catch (Throwable th) {\n if (fstream != null) {\n try {\n fstream.close();\n } catch (IOException e3) {\n }\n }\n }\n return list;\n }", "public String[] readAllStrings(){\n\t\tString[] tokens=WHITESPACE_PATTERN.split(readAll());\n\t\tif (tokens.length==0||tokens[0].length()>0)\n\t\t\treturn tokens;\n\t\tString[] decapitokens=new String[tokens.length-1];\n\t\tfor (int i=0;i<tokens.length-1;i++){\n\t\t\tdecapitokens[i]=tokens[i+1];\n\t\t}\n\t\treturn decapitokens;\n\t}", "public ArrayList<String> loadLines(String filename) {\n ArrayList<String> lines = new ArrayList<String>();\n String[] rawLines = loadStrings(filename);\n for(String str : rawLines) {\n if(str != null && !str.isEmpty()){\n lines.add(str);\n }\n }\n return lines;\n }", "@Test\n public void testListOfStrings() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(4, jtc.stringArray.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"abc\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"def\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"123\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"456\\\"\"));\n }" ]
[ "0.72155714", "0.69461167", "0.6594252", "0.6424665", "0.6401839", "0.6387264", "0.6380512", "0.63130856", "0.62731576", "0.62649566", "0.6231889", "0.62134904", "0.6211056", "0.619637", "0.619572", "0.6188771", "0.61575335", "0.61162645", "0.60928315", "0.6088306", "0.6011273", "0.59944856", "0.5988642", "0.59044766", "0.5902723", "0.58848614", "0.58756113", "0.58661306", "0.58593893", "0.5845157", "0.58362544", "0.5833166", "0.58299196", "0.58095706", "0.57926047", "0.5788576", "0.5781326", "0.5776324", "0.57758695", "0.57718927", "0.57646143", "0.5760083", "0.57453364", "0.57389337", "0.5735549", "0.57132715", "0.5699249", "0.56984615", "0.56956285", "0.56892365", "0.5686758", "0.5666885", "0.56653106", "0.5657861", "0.5633354", "0.5616846", "0.5616798", "0.5614259", "0.5595863", "0.55816597", "0.5563077", "0.5546124", "0.5545921", "0.55458677", "0.5533294", "0.55262625", "0.5515918", "0.55142325", "0.55083483", "0.55079174", "0.55035645", "0.55031437", "0.55011463", "0.5490545", "0.5488977", "0.54868823", "0.5471863", "0.54711604", "0.5467447", "0.54660654", "0.54653925", "0.54653925", "0.5450428", "0.54389083", "0.54350936", "0.54170793", "0.541629", "0.5408323", "0.53990936", "0.53912485", "0.5385202", "0.53834116", "0.53821903", "0.537432", "0.53739214", "0.53701735", "0.5368082", "0.53597045", "0.5350298", "0.5347179", "0.5338606" ]
0.0
-1
TO DO: fill the code below and add JavaDoc
public CardSwitch(Rank r, Suit s){ // constructor to create card for the game Switch }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int describeContents() { return 0; }", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "private stendhal() {\n\t}", "Documentation createDocumentation();", "Documentation createDocumentation();", "public final void mo51373a() {\n }", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "@Override\r\n protected void parseDocuments()\r\n {\n\r\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "protected Document() {/* intentionally empty block */}", "@Override\n public void describeTo(Description arg0) {\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected String getDescription() {\n return DESCRIPTION;\n }", "@Override\n public void func_104112_b() {\n \n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public conversorDOC(){\n }", "public void method_4270() {}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public int describeContents()\n {\n return 0;\n }", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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}", "public void smell() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n }", "protected SourceDocumentInformation() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public E16_OverloadJavaDoc() {\n System.out.println(\"Planting a seedling\");\n }", "private Rekenhulp()\n\t{\n\t}", "public void method_201() {}", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "public void mo55254a() {\n }", "@Override\n public void init() {}" ]
[ "0.6101758", "0.6023872", "0.59950536", "0.59907824", "0.5981643", "0.5899271", "0.5890819", "0.5878374", "0.5866157", "0.5866157", "0.5846889", "0.5805267", "0.5801695", "0.579771", "0.5779771", "0.574615", "0.5746049", "0.57038987", "0.57038987", "0.57038987", "0.57038987", "0.57038987", "0.57038987", "0.5703066", "0.57021177", "0.5669866", "0.5669866", "0.5666667", "0.5666667", "0.5658569", "0.5655932", "0.5652825", "0.5634856", "0.563161", "0.5617904", "0.56123483", "0.56052995", "0.56031656", "0.5591865", "0.55884516", "0.5582444", "0.5582444", "0.55756366", "0.5573521", "0.5569757", "0.5566997", "0.55640525", "0.5562048", "0.5560064", "0.55581236", "0.55581236", "0.55581236", "0.55581236", "0.55581236", "0.55581236", "0.55581236", "0.55568695", "0.55531865", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55444294", "0.55306345", "0.5524638", "0.5524638", "0.55170685", "0.5515199", "0.55134547", "0.55049354", "0.550401", "0.54991233", "0.5493686", "0.5488571", "0.5483542", "0.54790324" ]
0.0
-1
checks if two cards equals and returns a boolean
@Override public boolean equals(Card anotherCard){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean sameCard(Card card1, Card card2){\r\n return (card1.rank == card2.rank && card1.suit == card2.suit);\r\n }", "public boolean equals(Card other) {\n return this.compareTo(other) == 0;\n }", "boolean similarCard(Card c);", "public boolean matches(Card otherCard) {\r\n if (suit==otherCard.suit() && pointValue == otherCard.pointValue() && rank == otherCard.rank())\r\n return true;\r\n else\r\n return false;\r\n }", "public boolean equals(Card card){\n return (this.getCardValue() == card.getCardValue());\n }", "public boolean isEqual(MatchingCardsTile other){\n return this.getNumber() == other.getNumber();\n }", "public boolean equals(Card OtherCard){\n\t\treturn (this.equals(OtherCard));\n\t}", "private boolean inSameSuit() {\n for (int i = 0; i < cards.length-2; i++) {\n if (cards[i].charAt(1) != cards[i + 1].charAt(1)) {\n return false;\n }\n }\n \n return true;\n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n if (!(other instanceof Card)) {\n return false;\n }\n\n Card otherCard = (Card) other;\n return otherCard.getFrontFace().equals(getFrontFace())\n && otherCard.getBackFace().equals(getBackFace());\n }", "public boolean equals(Card c)\n {\n if (rank == c.rank)\n return true;\n else\n return false;\n }", "@Override\n public boolean match(Card card) {\n if (card.getColor().equals(\"BLACK\"))\n return true;\n\n return (card.getColor().equals(this.getColor())\n || card.getValue().equals(this.getValue()));\n }", "public boolean isEqual(Card card) {\n\t\treturn imageLink.equals(card.getURL());\n\t}", "private void checkCardMatch(Card card1, Card card2) {\n if(card1.getColor().getColor() == card2.getColor().getColor()){\n card1.setCardState(CardState.MATCHED);\n card2.setCardState(CardState.MATCHED);\n\n playerManager.incrementScore();\n } else{\n card1.flipCard();\n card2.flipCard();\n }\n cardsClicked = new Card[2];\n switchPlayer();\n setRandomColors();\n checkGameOver();\n }", "protected final boolean isSameSuit(Card cardOne, Card cardTwo)\n {\n return cardOne.getSuit().equals(cardTwo.getSuit());\n }", "public boolean valueEquals(Card c) {\n return this.cardNum == c.cardNum;\n }", "@Override\n public boolean equals(Object otherObject) {\n if (this == otherObject) return true;\n if (!(otherObject instanceof Card)) return false;\n Card card = (Card) otherObject;\n return suit == card.suit &&\n rank == card.rank;\n }", "@Override\r\n\tpublic boolean equals(Object card) {\r\n\t\tBlackjackCard c = (BlackjackCard)card;\r\n\t\treturn (this.suit == c.getSuit() && this.value == c.getValue());\r\n\t}", "public boolean equals(Card c) {\n if (this.getValue() == c.getValue() && this.getSuit() == c.getSuit())\n return true;\n return false;\n }", "public boolean checksuits(Card cardsuits){\n Boolean flag;\n if(cardsuits.suits == this.suits){ flag = true; }\n else{flag = false;}\n return flag;}", "public boolean belongsToSuit(Card card){\r\n return (suit == card.suit);\r\n }", "public boolean orderedEquals( Deck otherDeck ) {\n if (this.cards.length == otherDeck.cards.length) {\n for (int i = 0; i < this.cards.length; i++ ) {\n if (!this.cards[i].equals(otherDeck.cards[i])) {\n return false;\n }\n }\n return true;\n }\n return false;\n }", "public boolean sameValue(Card card) {\r\n boolean isSameValue = false;\r\n if (card.getValue() == (value)) {\r\n isSameValue = true;\r\n }\r\n return isSameValue;\r\n }", "public static boolean hasTwoPair(Card[] cards) {\n\t\tint counter = 0;\n\t\tint value = 0;\n\t\tfor(int i = 0; i< cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue() \n\t\t\t\t\t\t&& value !=cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t\tvalue = cards[j].getValue();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter>=2){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean hasPair(Card[] cards) {\n\t\tint startInt= 1;\n\t\tfor(int check1 = 0; check1 < cards.length-1; check1++)\n\t\t{\n\t\t\tfor(int check2 = startInt; check2 < cards.length; check2++)\n\t\t\t{\n\t\t\t\tif (cards[check1].getValue() == cards[check2].getValue())\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstartInt++;\n\t\t}\n\t\treturn false;\n\t\t//throw new RuntimeException(\"Not yet implemented.\");\n\t}", "public boolean sameColor(Card card) {\r\n boolean isSameColor = false;\r\n if (card.getColor().equals(color)) {\r\n isSameColor = true;\r\n }\r\n return isSameColor;\r\n }", "@Override\n public boolean equals(Object other) {\n if (null == other) {\n return false;\n }\n if (this == other) {\n return true;\n }\n if (!(other instanceof Card)) {\n return false;\n }\n Card that = (Card) other;\n return this.getName().equals(that.getName());\n }", "public boolean equals(Object object) {\n\n if (object == null || object.getClass() != this.getClass()) {\n return false;\n }\n\n Card other;\n other = (Card) object;\n\n return getRank() == other.getRank() && getSuit() == other.getSuit();\n }", "private boolean containCreditCard(ArrayList<CreditCard> card){\n\t\tfor (CreditCard creditCard : creditCards){\n\t\t\tfor (CreditCard creditCard1 : card){\n\t\t\t\tif(creditCard.equals(creditCard1))return true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean hasPair(Card[] cards) {\n\t\tint counter = 0;\n\t\tfor(int i = 0; i < cards.length; i++){\n\t\t\tfor(int j = i+1; j< cards.length; j++){\n\t\t\t\tif(cards[i].getValue() == cards[j].getValue()){\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(counter>=1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasPair(ArrayList<Card>cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tfor(int i = 0; i < cards.size() - 1; i++) {\r\n\t\t\tfor(int j = i+1; j < cards.size(); j++) {\r\n\t\t\t\tif(cards.get(i).getValue() == cards.get(j).getValue()) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t\r\n\t}", "public boolean handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(int val1, char suit, int val2) {\n int goUpToThisNumberForI = 2;//go up to < 2 // 0 1\n if (allCards.length == 2){//only two cards\n goUpToThisNumberForI = 1;\n }\n \n for (int j = 0; j < goUpToThisNumberForI; j++) {//iterate through just the players own first two cards --\n System.out.println(\"_______\" + j);\n for (int k = j + 1; k < allCards.length; k++) {//NOT SORTED\n System.out.println(\"..........\" + j);\n if ( (allCards[j].value == val1 && allCards[k].value == val2 )|| (allCards[j].value == val2 && allCards[k].value == val1)) {//left card is v1, right card is v2\n if (suit == 'x') {//suit doesn't matter\n return true;\n } else if (allCards[j].suit == allCards[k].suit) {\n return true;\n }\n } \n\n }\n\n }\n \n \n return false;\n }", "boolean hasSameAs();", "@Test\n\tpublic void testDeckEquals() {\n\t\t\n\t\tStandardDeckClass oneDeck = new StandardDeckClass();\n\t\tStandardDeckClass testDeck = new StandardDeckClass();\n\t\t\n\t\tboolean isSame = oneDeck.equals(testDeck);\n\t\t\n\t\tassertEquals(\"equals method not working as expected\", true, isSame);\n\t\t\n\t}", "boolean contains(Card c);", "private boolean hasAce(ArrayList<Card> cards) {\r\n\t\tfor(Card card: cards) {\r\n\t\t\tif(card.getValue() == 1) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isValid() {\n\t\t\n\t\tif(this.size()!=2)\n\t\t\treturn false;\n\t\telse {\n\t\t\tint rank1=this.getCard(0).getRank();\n\t\t\tint rank2=this.getCard(1).getRank();\n\t\t\t\n\t\t\tif(rank1==rank2)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t}", "public boolean hasTwoP(ArrayList<Card> cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tboolean retVal = false;\r\n\t\tint numPairs = 0;\r\n\t\tint counter;// counts how many of those cards are in the hand\r\n\t\tint pairVal = 0;\r\n\t\tfor (int i = 0; i <cards.size()-1; i++) {\r\n\t\t\tcounter = 1;\r\n\t\t\tfor (int j = i+1; j < cards.size(); j++) {\r\n\t\t\t\tif(cards.get(i).getValue() == cards.get(j).getValue() &&\r\n\t\t\t\t\t\tcards.get(i).getValue() != pairVal){\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t\tpairVal = cards.get(j).getValue();\r\n\t\t\t\t\tif(counter > 1) {\r\n\t\t\t\t\t\tnumPairs++;\r\n\t\t\t\t\t\tif (numPairs == 2) {\r\n\t\t\t\t\t\t\tretVal = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retVal;\r\n\t}", "private boolean isEqual(Roster r2)\n\t{\n\t\tIterator<Player> it1 = iterator();\n\t\twhile(it1.hasNext())\n\t\t{\n\t\t\tPlayer p = it1.next();\n\t\t\tif(!r2.has(p))\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tIterator<Player> it2 = r2.iterator();\n\t\twhile(it2.hasNext())\n\t\t{\n\t\t\tPlayer p = it2.next();\n\t\t\tif(!has(p))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof PersonCard)) {\n return false;\n }\n\n // state check\n PersonCard card = (PersonCard) other;\n return id.getText().equals(card.id.getText())\n && person.equals(card.person);\n }", "public boolean playerCardCheck(Card card)\n {\n int diff = Card.valueOfCard(playerCard) - Card.valueOfCard(card);\n // If player wins\n if( diff == 1 || diff == -1)\n {\n return true;\n }\n return false;\n }", "public boolean hasBoth() {\n if (this.hasCard == true & this.hasCash == true) { return true; } else { return false; }\n }", "public boolean checkBlackJack() {\r\n if(cards.size() == 2 && score() == 21){\r\n blackJack = true;\r\n over = true;\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "@Override\n public boolean equals(Object c)\n {\n boolean retVal = false;\n if( c instanceof Card) {\n Card temp = (Card) c;\n if ( temp.getValue().equals(this.value))\n retVal = true;\n }\n return retVal;\n }", "public boolean computerCardCheck(Card card)\n {\n int diff = Card.valueOfCard(computerCard) - Card.valueOfCard(card);\n // If player wins\n if( diff == 1 || diff == -1)\n {\n return true;\n }\n return false;\n }", "boolean similarColorTo(Card c);", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Card)) {\n return false;\n }\n Card other = (Card) object;\n if ((this.cardPK == null && other.cardPK != null) || (this.cardPK != null && !this.cardPK.equals(other.cardPK))) {\n return false;\n }\n return true;\n }", "public boolean rankIsEqualsTo(Card c) {\r\n\t\t//this method compares two card objects and if one is equal to the other then it return the value as true\r\n\t\tboolean rankIsEqualsTo = false;\r\n\t\t\r\n\t\tif(rank == c.getRank()) {\r\n\t\t\trankIsEqualsTo = true;\r\n\t\t}//if\r\n\t\treturn rankIsEqualsTo;\r\n\t\t\r\n\t}", "private boolean canPlay(UnoCard topCard, UnoCard newCard) {\n\n\t\t// Color or value matches\n\t\tif (topCard.getColor().equals(newCard.getColor())\n\t\t\t\t|| topCard.getValue().equals(newCard.getValue()))\n\t\t\treturn true;\n\t\t// if chosen wild card color matches\n\t\telse if (topCard instanceof WildCard)\n\t\t\treturn ((WildCard) topCard).getWildColor().equals(newCard.getColor());\n\n\t\t// suppose the new card is a wild card\n\t\telse if (newCard instanceof WildCard)\n\t\t\treturn true;\n\n\t\t// else\n\t\treturn false;\n\t}", "@Override\n public boolean anotherPlayIsPossible()\n {\n \t\n List<Integer> test = cardIndexes();\n return containsSum13(test) || containsK(test);\n \n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof QuestionCard)) {\n return false;\n }\n\n // state check\n QuestionCard card = (QuestionCard) other;\n return this.id.getText().equals(card.id.getText())\n && this.question.equals(card.question);\n }", "@Override\n public boolean equals(Object object) {\n if (this == object) {\n return true;\n }\n if (object == null || getClass() != object.getClass()) {\n return false;\n }\n CardBalance that = (CardBalance) object;\n return Objects.equals(dollar, that.dollar)\n && Objects.equals(cent, that.cent);\n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof PersonCard)) {\n return false;\n }\n\n // state check\n PersonCard card = (PersonCard) other;\n return displayedIndex == card.getDisplayedIndex()\n && staff.equals(card.staff);\n }", "@Test\n\tpublic void testDeckEqualsAgain() {\n\t\t\n\t\tStandardDeckClass oneDeck = new StandardDeckClass();\n\t\tVegasDeckClass testDeck = new VegasDeckClass();\n\t\t\n\t\tboolean isSame = oneDeck.equals(testDeck);\n\t\t\n\t\tassertEquals(\"equals method not working as expected\", false, isSame);\n\t}", "public boolean isPair(){\n \r\n List<PokerCard> pair;\r\n remainingCardValues = new ArrayList<>();\r\n \r\n //First possibility: first two cards\r\n pair = cards.subList(0, 2);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(3).getValue());\r\n remainingCardValues.add(cards.get(2).getValue()); \r\n \r\n return true;\r\n }\r\n \r\n //Second possibility: cards 2 and 3\r\n pair = cards.subList(1, 3);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(3).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n \r\n //Third possibility: cards 3 and 4\r\n pair = cards.subList(2, 4);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(4).getValue());\r\n remainingCardValues.add(cards.get(1).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n \r\n //Fourth possibility: last two cards\r\n pair = cards.subList(3, 5);\r\n if(haveSameValue(pair)){\r\n handValue = pair.get(0).getValue();\r\n \r\n //Store remaining card values for potential later comparison\r\n remainingCardValues.add(cards.get(2).getValue());\r\n remainingCardValues.add(cards.get(1).getValue());\r\n remainingCardValues.add(cards.get(0).getValue());\r\n \r\n return true;\r\n }\r\n return false;\r\n }", "boolean hasAlreadCheckCard();", "protected final boolean isDifferentColor(Card cardOne, Card cardTwo)\n {\n return cardOne.getColor() != cardTwo.getColor();\n }", "public boolean hasBlackjack()\n {\n return getSumOfCards(false) == 21;\n }", "@Override\n public boolean isBlackjack() {\n return ( (countCards()==2) && (higherScore()==21) );\n }", "public boolean jackpot()\n {\n\treturn (_fruits[0].equals(_fruits[1]) \n\t\t&& _fruits[1].equals(_fruits[2]));\n }", "@Test\r\n public void testPlayer_getDumbStrategyCard_differentWinners() {\r\n player2 = new Player(\"\", true);\r\n player2.setHand(strategyHand.getAllCards());\r\n boolean differentLegalCardFound = false;\r\n Card firstDiscard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n for(int i = 0; i < 25; i++) {\r\n Card loopCard = player2.getDumbStrategyCard(yellowSix, yellowSix.getColor());\r\n if(!loopCard.equals(firstDiscard)) {\r\n differentLegalCardFound = true;\r\n }\r\n }\r\n assertTrue(differentLegalCardFound);\r\n }", "private static boolean isShuffleWorking(Deck deck,Card newCard,Card newCard2){\n\t\tdeck.shuffle();\n\t\tboolean isCorrect=true;\n\t\tif(newCard.getSuit().equals(newCard2.getSuit()) &&\n\t\t\t\tnewCard.getRank()==newCard2.getRank()){\n\t\t\t\t\tisCorrect=false;\n\t\t\t\t\treturn isCorrect;\n\t\t}\n\t\tfor(int i=0;i<53;i++){\n\t\t\tdeck.getOneCard();\n\t\t}\n\t\tif(deck.nUsed!=1){\n\t\t\tisCorrect=false;\n\t\t}\n\t\treturn isCorrect;\n\t}", "@Override\n public boolean equals( Object obj ) {\n if (this == obj) {\n return true;\n }\n\n if (obj == null) {\n return false;\n }\n\n if (getClass() != obj.getClass()) {\n return false;\n }\n\n Deck other = (Deck)obj;\n // Due to the possibility of duplicates, deck comparison is a notch trickier.\n // Our approach is to count the cards in each deck then ensure that the cards\n // and counts are the same.\n return tally().equals(other.tally());\n }", "public boolean compareRank(Card otherCard) {\n return rank == otherCard.rank;\n }", "@Override\n public boolean equals(Object o){\n if (o == this) { //True if it's this instance\n return true;\n }\n if (!(o instanceof LeaderCard))\n return false;\n\n //Check if same values\n LeaderCard c = (LeaderCard) o;\n return this.getId() == c.getId() && this.getVictoryPoints() == c.getVictoryPoints() && this.getRequirement().equals(c.getRequirement()) &&\n this.getSpecialAbility().equals(c.getSpecialAbility()) && this.inGame == c.inGame;\n }", "public boolean hasFlush(ArrayList<Card>cards) {\r\n\t\tCollections.sort(cards);\r\n\t\tfor(int i = 0; i < 4 ; i++) {\r\n\t\t\tif(cards.get(i).getSuit() != cards.get(i+1).getSuit()) {\r\n\t\t\t\treturn false; \r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true; \r\n\t}", "public boolean isTwoPairs(){\n \r\n List<PokerCard> pair1;\r\n List<PokerCard> pair2;\r\n \r\n //First possibility: first four cards are two pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(2, 4);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(cards.size()-1).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: First two and last two cards are pairs\r\n pair1 = cards.subList(0, 2);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(2).getValue();\r\n return true;\r\n }\r\n \r\n //Third possibility: Last four cards are two pairs\r\n pair1 = cards.subList(1, 3);\r\n pair2 = cards.subList(3, 5);\r\n if(haveSameValue(pair1) && haveSameValue(pair2)){\r\n handValue = pair2.get(0).getValue();\r\n lowerPairValue = pair1.get(0).getValue();\r\n remainingCardValue = cards.get(0).getValue();\r\n return true;\r\n }\r\n return false;\r\n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof DateCard)) {\n return false;\n }\n\n // state check\n DateCard card = (DateCard) other;\n return id.getText().equals(card.id.getText())\n && date.equals(card.date);\n }", "@Override\n\t\tboolean hasMatch(ArrayList<Card> hand) {\n\t\t\tint suitValue = hand.get(0).getSuit().getValue();\n\n\t\t\t// check all of the same suit\n\t\t\tfor (int i = 1; i < hand.size(); i++) {\n\t\t\t\tif (hand.get(i).getSuit().getValue() != suitValue)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "public boolean equals(Object obj){\r\n\t\tif(!(obj instanceof BaseballCard))\r\n\t\t\treturn false;\r\n\t\tBaseballCard compareable = (BaseballCard) obj;\r\n\t\t\r\n\t\treturn(this.getPrice()==(compareable.getPrice())&&this.getYear()==\r\n\t\t\t\t(compareable.getYear())&&this.getSizeX()==(compareable.getSizeX())\r\n\t\t\t\t&&this.getSizeY()==(compareable.getSizeY())&&this.getName()==\r\n\t\t\t\tcompareable.getName()&&this.getManufacturer()==compareable.getManufacturer());\r\n\t\t\r\n\t}", "public void testCanPlayOn() {\n \n DrawCard redDraw2 = new DrawCard(Card.COLOUR_RED, 2);\n \n // create another 4 normal cards\n \n Card card1 = new Card(Card.COLOUR_BLUE, 5);\n Card card2 = new Card(Card.COLOUR_BLUE,2);\n \n //card 1 and card 2 should yield false on the method\n assertFalse(redDraw2.canPlayOn(card1));\n assertFalse(redDraw2.canPlayOn(card2));\n \n Card card3 = new Card(Card.COLOUR_RED, 5);\n Card card4 = new Card(Card.COLOUR_RED,2);\n \n // card 3 and card 4 should gives true\n \n assertTrue(redDraw2.canPlayOn(card3));\n assertTrue(redDraw2.canPlayOn(card4));\n \n }", "@Test\n public void testCardCanPlay_TRUE() {\n System.out.println(\"cardCanPlay TRUE COLOUR\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.BLUE, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.ONE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(true, result);\n }", "@Test\n public void testCardCanPlay_TRUE_VALUE() {\n System.out.println(\"cardCanPlay TRUE VALUE\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.RED, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.TWO);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(true, result);\n }", "private static boolean contentEqual(final I_GameState state1, final I_GameState state2) {\n //if a state is null there surely must be a mistake somewhere\n if (state1 == null || state2 == null) throw new NullPointerException(\"A state cannot be null when comparing\");\n //if ( !sizeEqual(state1, state2) ) return false;\n\n return Stream.of(new SimpleImmutableEntry<>(state1, state2))\n .flatMap( //map the pair of states to many pairs of piles\n statePair -> Arrays.stream(E_PileID.values())\n .map(pileID -> new SimpleEntry<>(\n statePair.getKey().get(pileID),\n statePair.getValue().get(pileID)\n )\n )\n )\n .map(I_GameHistory::replaceNulls)\n .flatMap( // map the pairs of piles to many pairs of Optional<I_card>s.\n listPair -> IntStream //make sure to always traverse the longer list\n .range(0, Math.max(listPair.getKey().size(), listPair.getValue().size()))\n .mapToObj(i -> new SimpleEntry<>(\n getIfExists(listPair.getKey(), i),\n getIfExists(listPair.getValue(), i))\n )\n )\n // map pairs to booleans by checking that the element in a pair are equal\n .map(cardPair -> Objects.equals(cardPair.getKey(), cardPair.getValue()))\n // reduce the many values to one bool by saying all must be true or the statement is false\n .reduce(true, (e1, e2) -> e1 && e2);\n }", "boolean hasAlreadFoldCard();", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof SummaryCard)) {\n return false;\n }\n\n // state check\n SummaryCard summaryCard = (SummaryCard) other;\n return tasksDueToday.getText().equals(summaryCard.tasksDueToday.getText())\n && tasksCompletedToday.getText().equals(summaryCard.tasksCompletedToday.getText());\n }", "@Override\r\n\tpublic boolean equals(Object o) {\r\n\t\tif (o instanceof Seed) {\r\n\t\t\tSeed s = (Seed) o;\r\n\t\t\tCards cs1, cs2;\r\n\r\n\t\t\tif (this.size() != s.size()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tfor (int i = 0; i < s.size(); i++) {\r\n\t\t\t\tcs1 = s.get(i);\r\n\t\t\t\tcs2 = this.get(i);\r\n\t\t\t\tif (cs1.getCardsType() != cs2.getCardsType()\r\n\t\t\t\t\t\t|| cs1.getCardsValue() != cs2.getCardsValue()) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public boolean isValid() {\n\t\t\n\t\tif (this.size() == 2)\n\t\t\tif (this.getCard(0).getRank() == this.getCard(1).getRank())\n\t\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "protected boolean isValid(List<Card> deck) {\r\n //Assume true\r\n boolean isValid = true;\r\n\r\n if (deck == null) {\r\n return false;\r\n }\r\n\r\n for (int i = 0; i < deck.size(); i++) {\r\n for (int j = i + 1; j < deck.size(); j++) {\r\n for (int k = j + 1; k < deck.size(); k++) {\r\n if (deck.get(i).equals(deck.get(j)) && deck.get(i).equals(deck.get(k))) {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n //if deck is valid, return true\r\n if (deck.size() != 104) {\r\n return false;\r\n }\r\n return isValid;\r\n }", "@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(other instanceof EventCard)) {\n return false;\n }\n\n // state check\n EventCard card = (EventCard) other;\n return id.getText().equals(card.id.getText())\n && event.equals(card.event);\n }", "private static boolean isMatchingSuit(final Card card1, final Card card2, final Card card3, final Card card4, final Card card5)\r\n {\r\n //if the suit of one card does not match, return false\r\n if (!card1.hasSuit(card2) || !card1.hasSuit(card3) || !card1.hasSuit(card4) || !card1.hasSuit(card5))\r\n return false;\r\n if (!card2.hasSuit(card3) || !card2.hasSuit(card4) || !card2.hasSuit(card5))\r\n return false;\r\n if (!card3.hasSuit(card4) || !card3.hasSuit(card5))\r\n return false;\r\n if (!card4.hasSuit(card5))\r\n return false;\r\n \r\n //the suits match\r\n return true;\r\n }", "public boolean isInDeck(String cardName){\n boolean status = false;\n ArrayList<Card> cardStatus = getCards();\n for(Card card: cardStatus){\n if(cardName.equals(card.getName())){\n status = true;\n }\n }\n return status;\n }", "public static boolean hasFlush(Card[] cards) {\n\t\tint counter = 0;\n\t\tfor(int i = 1; i< cards.length; i++){\n\t\t\tif(cards[0].getSuit() == cards[i].getSuit()){\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\tif(counter==4){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected abstract boolean isCardActivatable(Card card);", "public boolean isInHand( int x)\n\t{\n\t\tfor(int i=0; i<5;i++)\n\t\t{\n\t\t\tif(x == cardNumbers[i]) // verify that you are not adding the same replacement card twice\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\t\n\t}", "boolean hasAlreadShowCard();", "private boolean faceCard(ArrayList<Card> cards) {\r\n\t\tfor (Card card: cards) {\r\n\t\t\tif (card.getValue() >= 11 && card.getValue() <= 13) \r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean isSameList(CardList l1, CardList l2){\r\n\t\tif (l1.size()!=l2.size())\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tIterator<Card> i1 = l1.iterator();\r\n\t\tIterator<Card> i2 = l2.iterator();\r\n\t\twhile(i1.hasNext()){\r\n\t\t\tif (!i1.next().equals(i2.next()))\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isFullHouse(){\n List<PokerCard> firstList;\r\n List<PokerCard> secondList;\r\n \r\n //First possibility: first two cards are a pair\r\n firstList = cards.subList(0, 2);\r\n secondList = cards.subList(2, cards.size());\r\n if(haveSameValue(firstList) && haveSameValue(secondList)){\r\n handValue = secondList.get(0).getValue();\r\n return true;\r\n }\r\n \r\n //Second possibility: last two cards are a pair\r\n firstList = cards.subList(0, 3);\r\n secondList = cards.subList(3, cards.size());\r\n if(haveSameValue(firstList) && haveSameValue(secondList)){\r\n handValue = firstList.get(0).getValue();\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "public static boolean isCardinal(Tile tile1, Tile tile2) {\n\t\tif (tile1.getX() == tile2.getX() || tile1.getY() == tile2.getY())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean canCapture(Card otherCard) {\n return this.getRank().equals(Rank.JACK) || this.compareRank(otherCard);\n }", "@Test\n public void testCardCanPlay_FALSE() {\n System.out.println(\"cardCanPlay FALSE COLOUR\");\n UnoCard cardSelection = new UnoCard(UnoCardColour.RED, UnoCardValue.TWO);\n UnoCard drawCard = new UnoCard(UnoCardColour.BLUE, UnoCardValue.ONE);\n UnoCardColour wildColour = UnoCardColour.BLUE;\n boolean result = utils.cardCanPlay(cardSelection, drawCard, wildColour);\n assertEquals(false, result);\n }", "public boolean validCardPlay(UnoCard card) {\r\n return card.getColor() == validColor || card.getValue() == validValue;\r\n }", "public boolean hasSet(ArrayList<Card> cards) {\r\n\t\tCollections.sort(cards);\r\n\t\t/*Once the cards are sorted, then the third card can be\r\n\t\t * used to compare with others\r\n\t\t */\r\n\t\tint compare = cards.get(2).getValue();\r\n\t\tint counter = 0;\r\n\t\tfor(int i = 0; i < 5 ; i++) {\r\n\t\t\tif(cards.get(i).getValue() == compare) {\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (counter == 3);\r\n\t}", "private boolean canAcceptCard(Card card) {\n return cardSet.canAcceptCard(card);\n }", "boolean hasCardType();", "public boolean isCard() {\n\t\treturn id > 0 && id < 53;\n\t}", "public static final boolean isTwoPair(final Card card1, final Card card2, final Card card3, final Card card4, final Card card5) throws Exception\r\n {\r\n //get an ordered list of these cards\r\n List<Card> cards = getOrderedList(card1, card2, card3, card4, card5);\r\n \r\n //total number of pairs\r\n int pairTotal = 0;\r\n \r\n //count the number of matches\r\n int count = 0;\r\n \r\n //now make sure the face values match accordingly\r\n for (int index = 1; index < cards.size(); index++)\r\n {\r\n //if the cards match increase the count\r\n if (cards.get(index - 1).hasValue(cards.get(index)))\r\n {\r\n count++;\r\n }\r\n else\r\n {\r\n //if the number of matches is a pair add to total\r\n if (count == PAIR_MATCH)\r\n pairTotal++;\r\n \r\n //reset the count\r\n count = 0;\r\n }\r\n }\r\n \r\n //if the number of matches is a pair add to total\r\n if (count == PAIR_MATCH)\r\n pairTotal++;\r\n \r\n //check if the final count of pairs matches 2\r\n return (pairTotal == 2);\r\n }", "private boolean tieForCards(Card[] cards) {\n int largest = largestCard(cards);\n\n int count = 0;\n\n for (Card card : cards) {\n if (card.getDenomination() == cards[largest].getDenomination())\n count++;\n }\n\n return count > 1;\n }", "public static boolean dcheck() {\n if ((card[0][0] == 0 && card[1][1] == 0 && card[2][2] == 0 && card[3][3] == 0 && card[4][4] == 0) || (card[0][4] == 0 && card[1][3] == 0 && card[2][2] == 0 && card[3][1] == 0 && card[4][0] == 0)) {\n System.out.println(\"BINGO\");\n System.out.println(\"The numbers called is \" + called);\n return true;\n } else {\n return false;\n }\n }", "public boolean put(Card card) {\n if (this.isEmpty() && card.value() != 13) {\n return false;\n }\n if (!this.isEmpty()) {\n// System.out.println(\"chci polozit: \" + card + \" na \" + this.deck[this.top]);\n Card tmp = this.deck[this.top];\n// System.out.println(\"Rozdil karet je: \"+ tmp.compareValue(card) + \" Jsou si podobne?\" + tmp.similarColorTo(card));\n if (tmp.compareValue(card) != 1 || tmp.similarColorTo(card)) {\n// System.out.println(\"Nepolozeno - chyba\");\n return false;\n }\n }\n\n if (this.top+1 < this.size) {\n this.deck[++this.top] = card;\n return true;\n }\n else {\n return false;\n }\n }" ]
[ "0.807541", "0.7702625", "0.7611307", "0.75916094", "0.75570923", "0.7429845", "0.7394734", "0.72193563", "0.7197877", "0.7136484", "0.7112749", "0.7078676", "0.7065867", "0.7038399", "0.7020218", "0.69912726", "0.69863045", "0.6960764", "0.6859821", "0.68569267", "0.6810141", "0.67529833", "0.67526484", "0.6726419", "0.6725421", "0.66813636", "0.66780466", "0.66640425", "0.6658249", "0.6646929", "0.66449124", "0.6614041", "0.6610299", "0.65628445", "0.65592295", "0.65396947", "0.6539072", "0.65371233", "0.65267974", "0.6526163", "0.6518645", "0.6510267", "0.65019816", "0.6484612", "0.6471667", "0.64577764", "0.64514047", "0.6446171", "0.64453876", "0.64272964", "0.6420555", "0.6417338", "0.64071137", "0.6404582", "0.6400272", "0.6383591", "0.63699555", "0.6363025", "0.63620305", "0.6360243", "0.6350542", "0.6347252", "0.63312906", "0.63270175", "0.6295744", "0.62937987", "0.628961", "0.6287522", "0.6276722", "0.62517715", "0.6247302", "0.62407583", "0.6239139", "0.62298423", "0.62237054", "0.6208413", "0.62061846", "0.62060493", "0.6205685", "0.61821246", "0.61711025", "0.616704", "0.6148836", "0.6143422", "0.6132067", "0.6128314", "0.612072", "0.610664", "0.6102664", "0.6100525", "0.6091198", "0.60909593", "0.6090426", "0.607016", "0.6060981", "0.6045201", "0.60441583", "0.6031877", "0.602315", "0.60231084" ]
0.7556486
5
return points of the card
@Override public int getPoints(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int points() {\n\t\treturn cards[0].points() + cards[1].points() + cards[2].points();\n\t}", "public int getPoints();", "public int getPoints() { return points; }", "int getPoints();", "public int getPoints(){\r\n\t\treturn this.points;\r\n\t}", "public int getPoints(){\r\n\t\treturn this.points;\r\n\t}", "public int getPoints() {\n return points;\n }", "public int getPoints() {\n return points;\n }", "public int getPoints() {\n return points;\n }", "public int getPoints() {\n return points;\n }", "public int getPoints() {\n return this.points;\n }", "public Vector[] getCardinalPoints(){\r\n\t\tVector[] ret = new Vector[4];\r\n\t\tfor(int i = 0; i < 4; i++)\r\n\t\t\tret[i] = getPosition().add(new Vector(dx[i] * Tile.SIZE, dy[i] * Tile.SIZE));\r\n\t\treturn ret;\r\n\t}", "public int getPoints() {\r\n\t\treturn points;\r\n\t}", "final public int getPoints() {\r\n\t\tif (wildcard) {\r\n\t\t\treturn 20;\r\n\t\t}\r\n\t\t\r\n\t\tif (isJoker()) {\t\t\t\r\n\t\t\treturn 50;\r\n\t\t}\r\n\t\t\r\n\t\treturn face;\r\n\t}", "public int getPoints() {\n\t\treturn points;\n\t}", "public int getPoints() {\r\n\t\treturn this.points;\r\n\r\n\t}", "public int getPoints() {\n\t\treturn this.points;\n\t}", "@Override\r\n\tpublic int getPoints() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn this.points;\r\n\t}", "public double getPoints()\r\n {\r\n return points;\r\n }", "public int points(Color trump) {\n return PackedCard.points(trump, this.nbCard);\n }", "public Integer getPoints() {\r\n return points;\r\n }", "public abstract int getPoints();", "public int getTotalPoint() {\n int totalPoint = 0;\n\n for (Card card : personHand) {\n totalPoint += card.getRank().getValue();\n\n if (card.getRank().equals(Rank.ACE) && totalPoint <= 11) {\n totalPoint += 10;\n }\n }\n\n return totalPoint;\n\n // TESTING ALL BLACKJACK\n// return 21;\n // TESTING ALL BUST\n// return 99;\n // TESTING ALL PUSH\n// return 10;\n }", "PVector[] _getPoints() {\n PVector cen = _getCenter();\n \n PVector[] points = new PVector[_hitbox.length];\n float angle = _rotVector.heading();\n for(int i = 0; i < _hitbox.length; i++) {\n points[i] = new PVector(_hitbox[i].x, _hitbox[i].y);\n points[i].rotate(angle);\n points[i].x += cen.x;\n points[i].y += cen.y;\n }\n return points;\n }", "int getNeedPoints();", "int getRemainPoints();", "public void calculatePoints() {\n /*\n for (int i = 0; i < getRacers().size(); i++) {\n String username = getRacers().get(i).getUsername();\n int total = 0;\n for (int j = 0; j < getRounds().size(); j++) {\n Slot slot = getRounds().get(j).findRacerInRound(username);\n if (slot != null) {\n total = total + slot.getPoints();\n }\n }\n getRacers().get(i).setPoints(total);\n }*/\n }", "public int getPoints ( Player player );", "public String getPoints();", "public Vecteur[] getPoints() {\n Vecteur[] points = {this.OA, this.OB};\n return points;\n }", "public int points(Card.Color trump) {\n return PackedCard.points(trump, packedCard);\n }", "public int returnPoints()\n {\n return score ;\n }", "public static int countPoint(ArrayList<Card> cards) {\n\t\tint result = 0;\n\t\tfor(Card c: cards) {\n\t\t\tresult = result + c.getPoint();\n\t\t}\n\t\treturn result;\n\t}", "public int getPoints()\n {\n return (10000 - this.points);\n }", "public int getP2Points() {\n return p2Points;\n }", "public java.math.BigDecimal getPoints() {\n return this.points;\n }", "public int getPointsP() {\r\n\r\n pointsP = getPointsPlayer() + getPointsPlayer2();\r\n\r\n if (pointsP >= 10) {\r\n pointsP -= 10;\r\n }\r\n return pointsP;\r\n }", "int getUsedPoints();", "int getUsedPoints();", "int getUsedPoints();", "public List<Point> getPoints() {\n return pointRepository.findAll()//\n .stream() //\n .sorted((p1, p2) -> Integer.compare(p1.getPosition(), p2.getPosition()))//\n .collect(Collectors.toList());\n }", "public Point[] getPoints()\n {\n return getPointsForAlignment(this);\n }", "public int getP1Points() {\n return p1Points;\n }", "java.util.List<com.google.ads.googleads.v6.common.CpvBidSimulationPoint> \n getPointsList();", "public int getPoints(){\n\t\t//add the player socres(including monster killing, powerUp points and winning points\n\t\tint points = this.player.getScore() + 200*this.player.getHealth();\n\t\t\n\t\t//since the better the less time used, we use 600 seconds to minus the total seconds being used\n\t\t//and add it to the points\n\t\t//600 seconds is 10 minutes, which is definity long enough\n\t\t//if exceeds 10 minutes, we will subtract total score\n\t\tif(this.player.win()){\t//only if the player wins will we calculate the time\n\t\t\tpoints += (int)(3600 - (this.time / 1000000000));\n\t\t}\n\t\t\n\t\tthis.totalLabel.setText(String.valueOf(points));\t//set the value of the JLabel\n\t\t\n\t\treturn points;\n\t\t\n\t}", "public int getPublicVictoryPoints() {\n \t\tint points = towns + 2 * cities;\n \n \t\tif (board.hasLongestRoad(this))\n \t\t\tpoints += 2;\n \n \t\tif (board.hasLargestArmy(this))\n \t\t\tpoints += 2;\n \n \t\treturn points;\n \t}", "private List<Player> calculatePoints()\n\t{\n\t\tthis.systemDataInput.printMessage(\"Calculating points...\");\n\t\t\n\t\tArrayList<Player> winningPlayers = new ArrayList<Player>();\n\t\tint maxPoints = 0;\n\t\tint maxBuilding = 0;\n\t\t\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\tint points = 0;\n\t\t\tint bestBuilding = 0;\n\t\t\t\n\t\t\tfor(Area area : board.getAreaList())\n\t\t\t{\n\t\t\t\tif (!area.hasDemon())\n\t\t\t\t{\n\t\t\t\t\tif (area.hasBuilding(player))\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints += area.getCost();\n\t\t\t\t\t\tif (area.getCost() > bestBuilding)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbestBuilding = area.getCost();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpoints += 5 * area.getMinionList(player).size();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint playerMoney = player.getMoneyAmount();\n\t\t\tpoints += playerMoney;\n\t\t\t\n\t\t\tfor(Card card : player.getInFrontOfHimDeck())\n\t\t\t{\n\t\t\t\tfor(Action action : card.getActions(BorrowMoneyFromTheBank.class))\n\t\t\t\t{\n\t\t\t\t\tint moneyToPayBack = ((BorrowMoneyFromTheBank)action).getMoneyToPayBack();\n\t\t\t\t\tif (playerMoney >= moneyToPayBack)\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= moneyToPayBack;\n\t\t\t\t\t\tplayerMoney -= moneyToPayBack;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= ((BorrowMoneyFromTheBank)action).getPointsToLose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tplayer.addPoints(points);\n\t\t\tplayer.getDataInput().printMessage(points + \" points\");\n\t\t\t\n\t\t\tif (points > maxPoints || (points == maxPoints && bestBuilding > maxBuilding))\n\t\t\t{\n\t\t\t\tmaxPoints = points;\n\t\t\t\tmaxBuilding = bestBuilding;\n\t\t\t\twinningPlayers.clear();\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t\telse if (points == maxPoints && bestBuilding == maxBuilding)\n\t\t\t{\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn winningPlayers;\n\t}", "public int calculateExtraPoints() {\n if (rank.equals(Rank.JACK)) {\n return JACK_EXTRA_POINT;\n } else if (rank.equals(Rank.ACE)) {\n return ACE_EXTRA_POINT;\n } else if (rank.equals(Rank.TWO) && suit.equals(Suit.CLUBS)) {\n return TWO_CLUBS_EXTRA_POINT;\n } else if (rank.equals(Rank.TEN) && suit.equals(Suit.DIAMONDS)) {\n return TEN_DIAMONDS_EXTRA_POINT;\n } else {\n return NO_EXTRA_POINT;\n }\n }", "public int getPoints(int[] details) throws RemoteException {\n return sd.getGames().get(details[0]).getPlayerPoints(details[1]);\n }", "Collection<P> getPointsOfInterest ();", "public int getPoint(){\n return point;\n }", "public int getPoints() {\r\n\t\treturn levelManager.getPoints();\r\n\t}", "public int getVictoryPoints() {\n \t\treturn getPublicVictoryPoints() + victory;\n \t}", "private String getPoints(){\n\t\tString pu = \" punts.\";\n\t\tif(points == 1){\n\t\t\tpu = \" punt.\";\n\t\t}\n\t\treturn \"Puntuació de \" + points + pu;\n\t}", "public void addPoint(int points){\n\t\tthis.fidelityCard.point += points;\t\t\n\t}", "protected int getCivilPoints(Player player) {\n\t\tint sum = 0;\n\t\tfor (Card card : player.getBoard().getCivil())\n\t\t\tsum += card.getvPoints();\n\t\treturn sum;\n\t}", "@JsonIgnore\r\n public int getPoints(){\r\n int lPoints = 0;\r\n for (CFantasyTeamByWeek lFantasyTeamByWeek : mFantasyTeamsByWeek){\r\n lPoints += lFantasyTeamByWeek.getPoints();\r\n }\r\n return lPoints;\r\n }", "static int getCardPointValue(Card card) {\n if (card.errorFlag)\n return -1;\n String values = new String(Card.validCardValues);\n return cardPointValues[values.indexOf(card.getValue())];\n }", "com.google.ads.googleads.v6.common.CpvBidSimulationPoint getPoints(int index);", "public int getPoints() {\n\t\treturn oxygenPoints;\n\t}", "public int getPointsFor() {\n int pointsFor = 0;\n for (Game g : gameList) {\n pointsFor += g.getTeamScore(this);\n }\n return pointsFor;\n }", "public PointsInfo[] getPointsInfo() {\n return pointsInfo;\n }", "public int getPoints() {\n return this.difficulty;\n }", "private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}", "Float getTotalPoints();", "public int getPilotPoints() {\n\n return this.pilotPoints;\n }", "public int getHitPoints() {\n return hitPoints;\n }", "@Override\r\n\tpublic int compareTo(Card card) {\r\n\t\t\r\n\t\treturn this.getPoints()-card.getPoints();\r\n\t}", "public int getPointsP2() {\r\n\r\n pointsP2 = pointsP + getPointsPlayer3();\r\n\r\n if (pointsP2 >= 10) {\r\n pointsP2 -= 10;\r\n }\r\n return pointsP2;\r\n }", "public List<Point3D> getPoints() {\n return mPoints;\n }", "public LiveData<Integer> getPoints() {\n Log.d(\"berttest\", \"getPoints works\");\n return points;\n }", "public int getNeedPoints() {\n return needPoints_;\n }", "public int getNeedPoints() {\n return needPoints_;\n }", "int calculatePoints(IYatzyHand hand, HandType type);", "public int getEatPoints() {\n return localEatPoints;\n }", "public Rectangle points(){\n\t\treturn shotRect;\n\t}", "public double getCardPosX(){\r\n return getX();\r\n }", "public double pointsEarned();", "public Integer getPoint() {\n return point;\n }", "public double getCardPosY(){\r\n return getY();\r\n }", "int getPointsCount();", "public final int getHitPoints () {\n return this.currentHitPoints;\n }", "public Point2D[] getGivenPoints(){ \n return this.points; \n }", "public int differencePoints(){\n return player1Score - player2Score;\n }", "public int getVictoryPoints() {\n\t\treturn victoryPoints;\n\t}", "@Override\r\n default Vector3[] getPoints(int amount) {\r\n if (amount < 0) throw new IllegalArgumentException(\"amount < 0\");\r\n if (amount == 0) return new Vector3[0];\r\n if (amount == 1) return new Vector3[] {getOrigin()};\r\n if (amount == 2) return new Vector3[] {getOrigin(), getEnd()};\r\n\r\n int t = amount - 1, i = 0;\r\n Vector3[] result = new Vector3[amount];\r\n\r\n Iterator<Vector3> iter = intervalIterator(getLengthSquared() / t*t);\r\n while (iter.hasNext())\r\n result[i++] = iter.next();\r\n\r\n return result;\r\n }", "public double getPoint() {\r\n return point;\r\n }", "public double getPoint() {\r\n return point;\r\n }", "public int getVictoryPoints() {\n\t\treturn this.totalVictoryPoints;\n\t}", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "@NotNull\n public Vector2D[] getPts() {\n return pts;\n }", "public int getOtherPlayerPoints(int[] details) throws RemoteException {\n if (details[1] == 1) {\n return sd.getGames().get(details[0]).getPlayerPoints(0);\n }\n return sd.getGames().get(details[0]).getPlayerPoints(1);\n }", "public int getPlayPoints() {\n return localPlayPoints;\n }", "private int getPoints(final String name) {\n\t\treturn getValue(name, POINTS);\n\t}", "public double getPrayerPoints() {\r\n return prayerPoints;\r\n }", "public List<Integer> getGamePoints() {\n return gamePoints;\n }", "public Collection <Point> getAllPoints(){\n Collection <Point> points = new ArrayList<>();\n for(int i = 0; i < width; i++){\n for(int j = 0; j < height; j++){\n points.add(new Point(i, j));\n }\n }\n return points;\n }", "public int getScorePoints() {\n/* 75 */ return this.scorePoints;\n/* */ }", "public int getUsedPoints() {\n return usedPoints_;\n }", "public int getUsedPoints() {\n return usedPoints_;\n }" ]
[ "0.80917513", "0.738216", "0.7365589", "0.7338494", "0.7327437", "0.7327437", "0.7327084", "0.7327084", "0.7327084", "0.7327084", "0.7285123", "0.72572494", "0.72102106", "0.7195674", "0.7147995", "0.7144143", "0.71136916", "0.7102207", "0.70387816", "0.7006211", "0.70013285", "0.6897732", "0.6863407", "0.68591833", "0.68573505", "0.6796995", "0.6793828", "0.6782804", "0.6778454", "0.67667484", "0.67560947", "0.67514205", "0.66725415", "0.66453874", "0.66044474", "0.65996337", "0.6598102", "0.65898126", "0.65898126", "0.65898126", "0.6534334", "0.6526773", "0.65225434", "0.6497477", "0.64787245", "0.64557695", "0.64505357", "0.6445566", "0.6444379", "0.64338875", "0.64107597", "0.63899934", "0.63746905", "0.6356001", "0.63516176", "0.6346257", "0.6336059", "0.63344026", "0.6333895", "0.63314396", "0.63238555", "0.63183343", "0.63152933", "0.6310058", "0.63081706", "0.6307721", "0.6291709", "0.62510544", "0.6247966", "0.62315875", "0.6223379", "0.62189174", "0.62101036", "0.61919653", "0.6182761", "0.6182016", "0.61690384", "0.615672", "0.6147107", "0.61362314", "0.6129703", "0.6126336", "0.6121927", "0.61210966", "0.61154914", "0.6114564", "0.6112163", "0.6112163", "0.6103685", "0.6094889", "0.6091651", "0.6087799", "0.60747355", "0.60736936", "0.60692525", "0.60684705", "0.6050161", "0.6045294", "0.60400355", "0.60400355" ]
0.68785584
22
convert card to string consisting of as "(rank,suit)" see examples below for format
@Override public String toString(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n // return \"Card {suit: \"+getSuitString()+\", rank: \"+getRankString()+\"}\";\n return \"{\"+getSuitString()+\",\"+getRankString()+\"}\";\n }", "public static String cardToString(int card){\n StringBuffer sb = new StringBuffer(\"\");\n //add the suit of the card\n //convert the suit number into letter\n //create an array of suits\n String[] suits = {\"S\", \"H\", \"C\", \"D\"};\n sb.append(suits[suit(card) - 1]);\n //add the face of the card\n //convert 1, 10, 11, 12, 13 face numbers into letters\n //create an array of special faces\n String[] faces = {\"X\", \"J\", \"Q\", \"K\"};\n if(face(card) == 1){\n sb.append(\"A\");\n } else if(face(card) >= 10){\n sb.append(faces[face(card) - 10]);\n } else {\n sb.append(face(card));\n }\n return sb.toString();\n }", "@Override\r\n public String toString(){\n StringBuilder displayCard = new StringBuilder();\r\n \r\n if(rank==11)\r\n {\r\n displayCard.append(\"Jack\");\r\n }\r\n else if(rank==12)\r\n {\r\n displayCard.append(\"Queen\");\r\n }\r\n else if(rank == 13)\r\n {\r\n displayCard.append(\"King\");\r\n }\r\n else if(rank==14)\r\n {\r\n displayCard.append(\"Ace\");\r\n }\r\n else\r\n {\r\n displayCard.append(rank);\r\n }\r\n displayCard.append(\" of \"); //setting the format of the output\r\n \r\n if(suit==0)\r\n {\r\n displayCard.append(\"Spades\");\r\n }\r\n else if(suit==1)\r\n {\r\n displayCard.append(\"Hearts\");\r\n }\r\n else if(suit==2)\r\n {\r\n displayCard.append(\"Clubs\");\r\n }\r\n else if(suit==3)\r\n {\r\n displayCard.append(\"Diamonds\");\r\n }\r\n //return the result of an entire cmombined string\r\n return displayCard.toString();\r\n }", "public String toString(){\n String r = \"\";\n String s = \"\";\n switch(rank){\n case 1: r = \"Ace\"; break;\n case 2: r = \"Two\"; break;\n case 3: r = \"Three\"; break;\n case 4: r = \"Four\"; break;\n case 5: r = \"Five\"; break;\n case 6: r = \"Six\"; break;\n case 7: r = \"Seven\"; break;\n case 8: r = \"Eight\"; break;\n case 9: r = \"Nine\"; break;\n case 10: r = \"Ten\"; break;\n case 11: r = \"Jack\"; break; \n case 12: r = \"Queen\"; break;\n case 13: r = \"King\"; break;\n }\n \n switch(suit) {\n case 1: s = \" of Clubs\"; break;\n case 2: s = \" of Diamonds\"; break;\n case 3: s = \" of Hearts\"; break;\n case 4: s = \" of Spades\"; break;\n }\n return r + s; //returns the name of the card\n }", "@Override\r\n public final String toString(){\n if(this.rank.equals(RANKS[0])){ \r\n\t\t\treturn \"no card\"; \r\n\t\t}\r\n\t\t\r\n int r = getRank();\r\n if( r >= 2 && r <= 14 ){\r\n return r + getSuit().substring(0,1);\r\n\t\t}\r\n return \"no card\";\r\n }", "public String toString(){\n String card = null; \n //clubs\n if(suit==1){\n \tcard = \"c\" + Integer.toString(value);\n }\n //diamonds\n if(suit==2){\n \tcard = \"d\" + Integer.toString(value);\n }\n //hearts\n if(suit==3){\n \tcard = \"h\" + Integer.toString(value);\n }\n //spades\n if(suit==4){\n \tcard = \"s\" + Integer.toString(value);\n }\n return card; \n\t}", "public static String cardsToString(List<Integer> cards) {\n if (cards.size() == 0) {\n return \"\";\n }\n \n StringBuilder out = new StringBuilder();\n out.append(toSymbol(cards.get(0)));\n for (int i = 1; i < cards.size(); i++) {\n out.append(\",\" + toSymbol(cards.get(i)));\n }\n \n return out.toString();\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder(rank.toString());\n sb.append(\" \");\n sb.append(suit.toString());\n\n return sb.toString();\n }", "public String toString() {\r\n\t\t\r\n\t\tString cardSuit = \"\";\r\n\t\tString cardRank = \"\";\r\n\t\tString cardString = \"\";\r\n\t\t\r\n\t\t\r\n\t\tint cs = getSuit();\r\n\t\tint cr = getRank();\r\n\t\t\r\n\t\tswitch(cr) {\r\n\t\tcase 1:\r\n\t\t\tcardRank = \"ace\";\r\n\t\t\tbreak;\r\n\t\tcase 2: \r\n\t\t\tcardRank =\"2\";\r\n\t\t\tbreak;\r\n\t\tcase 3: \r\n\t\t\tcardRank =\"3\";\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tcardRank =\"4\";\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tcardRank =\"5\";\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tcardRank =\"6\";\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tcardRank =\"7\";\r\n\t\t\tbreak;\r\n\t\tcase 8:\r\n\t\t\tcardRank =\"8\";\r\n\t\t\tbreak;\r\n\t\tcase 9:\r\n\t\t\tcardRank =\"9\";\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tcardRank =\"10\";\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tcardRank =\"jack\";\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tcardRank =\"queen\";\r\n\t\t\tbreak;\r\n\t\tcase 13:\r\n\t\t\tcardRank =\"king\";\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tcardRank = \"n/a\";\r\n\t\t\t\r\n\t\t}//switch rank\r\n\t\t\r\n\t\t//got a string representation of the rank\r\n\t\t//now get a string representation of the siut\r\n\t\t\r\n\t\tswitch(cs) {\r\n\t\tcase 0:\r\n\t\t\tcardSuit = \"hearts\";\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tcardSuit = \"diamonds\";\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tcardSuit = \"clubs\";\r\n\t\t\tbreak; \r\n\t\tcase 3:\r\n\t\t\tcardSuit = \"spades\";\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tcardSuit = \"n/a\";\r\n\t\t\t\r\n\t\t}\r\n\t\tcardString = \"file:cards/\"+cardRank+\"_of_\"+cardSuit+\".png\";\r\n\t\t\r\n\t\treturn cardString;\r\n\t\t\r\n\t}", "public static String cardsToString(int[] cards){\n //check for null array\n if(cards == null){\n return \"[]\";\n }\n //string buffer with open brackets\n StringBuffer sb = new StringBuffer(\"[\");\n //add the individual string cards to the string buffer\n for(int i = 0; i < cards.length; i++){\n sb.append(cardToString(cards[i]));\n //add a comma after all of the cards except the last one\n if(i != cards.length - 1){\n sb.append(\", \");\n }\n }\n //add close bracket\n sb.append(\"]\");\n return sb.toString();\n }", "public String toString ()\n {\n return rank + \" of \" + suit;\n }", "protected String printCard(){\r\n return ranks[rank] + \" of \" + suits[suit];\r\n }", "public String toString() \r\n\t{\r\n\t\treturn value + \" \" + rank + \" of \" + suit;\r\n\t}", "public String toString(){\r\n\t\t\r\n\t\tString result = \"\";\r\n\t\tfor (int i = 0; i < this.cardCount()-1; i++)\r\n\t\t\tresult += this.getCard(i).toString() + \", \";\r\n\t\t\r\n\t\treturn result + this.getCard(this.cardCount()-1).toString() + \" has Blackjack value \" + this.value();\r\n\t}", "public String toString() {\n String handString = \"( \";\n for (int i = 0; i < this.numCards; i++) {\n handString += this.myCards[i].toString();\n if (i != this.numCards - 1)\n handString += \", \";\n }\n handString += \" )\";\n return handString;\n }", "@Override\n public String toString() {\n String hand = \"\";\n for (int i = 0; i < cards.size(); i++) {\n hand += \"(\"+(i+1)+\")\"+cards.get(i).toString() + \", \";\n }\n return hand;\n }", "@Override\n\tpublic String toString() {\n\t\tString strSuit = suit.toString().substring(0, 1);\n\t\tstrSuit += suit.toString().toLowerCase()\n\t\t\t\t.substring(1, suit.toString().length());\n\n\t\treturn strSuit + value;\t\n\t}", "public String resolvePNG(int suit, int rank) {\n String cardName = null;\n String sut = null;\n int rnk = 1;\n\n //Search through each suit and rank\n for (int s = 0; s < 4; s++) {\n for (int r = 0; r < 13; r++) {\n //When the rank and suit are found, set the corresponding variables\n if ((suit == s) && (rank == r)) {\n switch (s) {\n case 0:\n sut = \"c\";\n break;\n case 1:\n sut = \"d\";\n break;\n case 2:\n sut = \"h\";\n break;\n case 3:\n sut = \"s\";\n break;\n }\n\n rnk = r + 1;\n }\n }\n }\n\n //Assuming the suit is not empty, set it to the int, char pair\n if (sut != null)\n cardName = rnk + sut;\n\n //Return the final char/int string pair\n return cardName;\n }", "@Override\n public String toString() {\n CardValue cardValue = new CardValue(value).invoke();\n\n // Change the value to the actual name when printing out\n // the card.\n\n return cardValue.getValueName() + \" of \" + suit;\n }", "public String showCard(int card) {\n\t\tswitch (card) {\n\t\tcase 1:\n\t\t\treturn \"Ace\";\n\t\tcase 2:\n\t\t\treturn \"2\";\n\t\tcase 3:\n\t\t\treturn \"3\";\n\t\tcase 4:\n\t\t\treturn \"4\";\n\t\tcase 5:\n\t\t\treturn \"5\";\n\t\tcase 6:\n\t\t\treturn \"6\";\n\t\tcase 7:\n\t\t\treturn \"7\";\n\t\tcase 8:\n\t\t\treturn \"8\";\n\t\tcase 9:\n\t\t\treturn \"9\";\n\t\tcase 10:\n\t\t\treturn \"10\";\n\t\tcase 11:\n\t\t\treturn \"Jack\";\n\t\tcase 12:\n\t\t\treturn \"Queen\";\n\t\tcase 13:\n\t\t\treturn \"King\";\n\t\tdefault:\n\t\t\treturn \"??\";\n\t\t}\n\t}", "public String toString() {\n if (this.errorFlag == true)\n return \"[INVALID CARD]\";\n else\n return this.value + \" of \" + suit.toString();\n }", "public String toString() {\n\t\treturn SUIT_NAMES[suit]+RANK_NAMES[rank];\n\t}", "public String getSuitAsString(){\n\t\tString str = \"\";\n\t\tif (suit == 0)\n\t\t\tstr = new String(\"Clubs\");\n\t\telse if (suit == 1)\n\t\t\tstr = new String(\"Diamonds\");\n\t\telse if (suit == 2)\n\t\t\tstr = new String(\"Hearts\");\n\t\telse if (suit == 3)\n\t\t\tstr = new String(\"Spades\");\n\t\treturn str;\n\t}", "public String toString()\n {\n return value + \" \" + suit;\n }", "@Override\n public String toString() {\n return rankArray[rank] + suitArray[suit];\n }", "public String displayCard()\n {\n card = \"\";\n \n switch(cardValue)\n {\n case 11:\n card+= \"J\";\n break;\n case 12:\n card+= \"Q\";\n break;\n case 13:\n card+= \"K\";\n break;\n case 14:\n card+= \"A\";\n break; \n default:\n card+= String.valueOf(cardValue); \n break;\n }\n \n switch(cardSuit){\n case 0:\n card+= \" of Clubs\";\n break;\n case 1:\n card+= \" of Diamonds\";\n break;\n case 2:\n card+= \" of Spades\";\n break;\n case 3:\n card+= \" of Hearts\";\n break;\n default:\n break;\n }\n \n return card;\n }", "public String getCardName()\n {\n String returnString = \"\";\n if(num == 14)\n {\n returnString+=(\"Ace\");\n }\n else if(num == 11)\n {\n returnString+=(\"Jack\");\n }\n else if(num == 12)\n {\n returnString+=(\"Queen\");\n }\n else if(num == 13)\n {\n returnString+=(\"King\");\n }\n else\n {\n returnString+=(num);\n }\n returnString+=(\" of \");\n if(suit == 1)\n {\n returnString+=(\"Spades\");\n }\n else if(suit == 2)\n {\n returnString+=(\"Hearts\");\n }\n else if(suit == 3)\n {\n returnString+=(\"Diamonds\");\n }\n else\n {\n returnString+=(\"Clubs\");\n }\n return returnString;\n }", "public String toString(){\n String handString = \"\";\n int i = 1;\n sort();\n for(Card c: cards){\n handString += Integer.toString(i) + \": \" + c + \"\\n\";\n i++;\n }\n handString = handString.substring(0, handString.length() - 1);\n return handString;\n }", "public String getRankAsString(){\n\t\tString str =\"\";\n\t\tif (rank == 1)\n str = \"Ace\";\n else if (rank == 11)\n str = \"Jack\";\n else if (rank == 12)\n str = \"Queen\";\n else if (rank == 13)\n str = \"King\";\n else\n str = rank + \"\";\n\t\treturn str;\n\t}", "final public String toString() {\r\n\t\tswitch (face) {\r\n\t\tcase 10:\r\n\t\t\treturn \"X\" + Character.toString(suit);\r\n\t\tcase 11:\r\n\t\t\treturn \"J\" + Character.toString(suit);\r\n\t\tcase 12:\r\n\t\t\treturn \"Q\" + Character.toString(suit);\r\n\t\tcase 13:\r\n\t\t\treturn \"K\" + Character.toString(suit);\r\n\t\tdefault:\r\n\t\t\treturn face + Character.toString(suit);\t\t\t\t\r\n\t\t}\r\n\t}", "public String toString()\r\n {\r\n StringBuilder sBuilder = new StringBuilder();\r\n sBuilder.append(\"Hand: \");\r\n sBuilder.append(\"\\n\");\r\n if (numCards == 0)\r\n {\r\n sBuilder.append(\"Out of Cards\");\r\n return sBuilder.toString();\r\n }\r\n for (int i = 0; i < numCards; i++)\r\n {\r\n if (myCards[i] != null)\r\n {\r\n if (i != numCards - 1)\r\n {\r\n if ((i + 1) % 10 == 0 && i != 0)\r\n {\r\n sBuilder.append(myCards[i].toString());\r\n sBuilder.append(\"\\n\");\r\n } else\r\n {\r\n {\r\n sBuilder.append(myCards[i].toString());\r\n sBuilder.append(\", \");\r\n }\r\n }\r\n\r\n } else\r\n {\r\n sBuilder.append(myCards[i].toString());\r\n }\r\n }\r\n }\r\n return sBuilder.toString();\r\n }", "public String toString(int format)\n {\n StringBuilder outString = new StringBuilder();\n\n //outString.ensureCapacity();\n\n outString.ensureCapacity(3*(cardAry.length+2));\n\n for (int i=0; i<cardAry.length; i++)\n {\n if (i%13 == 0 )\n outString.append(\"\\n\");\n\n //System.err.println(\"cardNum is \" + i);\n if( cardAry[i] != null) {\n\n if(i>0 && cardAry[i-1].hashCode() > cardAry[i].hashCode())\n outString.append(\"*\");\n\n outString.append(cardAry[i].toString(format));\n if (format == Card.VERBOSE)\n outString.append(\"\\n\");\n else if (format == Card.SHORT)\n outString.append(\", \");\n }\n\n else \n {\n outString.append(\" nul \");\n }\n }\n\n return new String( outString);\n }", "public String cardDisplay(){\n if(this.faceDown) {\n return \"Bicycle\";}\n else{ return \"Friendly Names of: \" + this.rank + \":\"+this.suit;\n\n }\n }", "public void printCard() {\r\n String print = \"[\";\r\n for (Card card : cards) {\r\n print += card.toString();\r\n print += \",\";\r\n }\r\n\r\n print = print.substring(0, print.length() - 1);\r\n print += \"]\";\r\n print += \" Score = \";\r\n print += score();\r\n\r\n System.out.println(print);\r\n }", "@Override\n\tpublic String toString() {\n\t\tif(this.upOrDown == CardFace.FaceUp) {\n\t\t\treturn this.suit.toString() + \" \" + this.rank.toString();\n\t\t}\n\t\telse {\n\t\t\treturn \"Card Face Down\";\n\t\t}\n\t}", "@Override\r\n public String toString() {\r\n\r\n int num = 1;\r\n String output = String.format(\"Player Name: %s%n%nCurrent \"\r\n + \"Card Ranks:%n\", getName());\r\n for (Card x : currentCards) {\r\n output += String.format(\"%d. %s%n\", num, x.getRank().name());\r\n num++;\r\n\r\n }\r\n return output;\r\n }", "public String get_card(int index){\r\n return String.valueOf(hand.get(index).get_value()) + hand.get(index).get_suit() + \".jpg\";\r\n }", "public static String getCard(Card c)\n\t{\n\t\tString name=\"/cards/\";\n\n\t\t//Value of card\n\t\tint value =c.getValue();\n\t\tswitch(value)\n\t\t{\n\t\tcase 1:\n\t\t\tname+=\"A\";\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\tname+=\"J\";\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\tname+=\"Q\";\n\t\t\tbreak;\n\t\tcase 13:\n\t\t\tname+=\"K\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tname+=String.valueOf(value);\n\t\t}\n\n\t\t//suit of card\n\t\tint suit=c.getSuit();\n\t\tswitch(suit)\n\t\t{\n\t\tcase 0:\n\t\t\tname+=\"C\";\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tname+=\"D\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tname+=\"H\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tname+=\"S\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"invalid suit\");\n\t\t}\n\t\tname+=\".png\";\n\t\treturn name;\n\t}", "public String printCard(int player) {\n\t\tif (player >= 4 || player < 0) {\n\t\t\treturn \"Error\";\n\t\t}\n\t\tif (show[player]) {\n\t\t\treturn suit + rank;\n\t\t}\n\t\treturn suit;\n\t}", "public static String getSrcCard(Cards card)\n {\n return \"_\" + card.getRank() + card.getSuit();\n }", "public String toString() {\n return faceName + \" of \" + suit;\n }", "public String getCardName(){\n return type.getType() + \" of \" + suit.getSuit();\n }", "public String toString(){\n return \"Hand: \" + cards; \n }", "public String toString() {\n\t\treturn String.format(\"%-6s %-8s\", pileNum, numOfCards) + card.toString();\n\t}", "public String getSuitAsString (int aSuit)\n {\n switch (aSuit)\n {\n case 1:return(\"Spades\");\n case 2:return(\"Diamonds\");\n case 3:return(\"Clubs\");\n case 4:return(\"Hearts\");\n default:return(\"Invalid Rank\");\n }\n }", "private String getSuitName() {\n String result;\n if (this.suit == 0) {\n result = \"Clubs\";\n } else if (this.suit == 1) {\n result = \"Diamonds\";\n } else if (this.suit == 2) {\n result = \"Hearts\";\n } else {\n result = \"Spades\";\n }\n return result;\n }", "public String toString() {\n return \"The \" + value + \" of \" + suit;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn (\"Suit: \"+this.suit+\"\\nValue: \"+this.value);\r\n\t}", "public static String cardIntToString(int k) {\n String temp = \"\";\n switch (k) {\n case 11:\n temp = \"Jack\";\n break;\n case 12:\n temp = \"Queen\";\n break;\n case 13:\n temp = \"King\";\n break;\n case 14:\n temp = \"Ace\";\n break;\n\n default:\n temp = String.valueOf(k);\n break;\n }\n return temp;\n }", "public String toString() {\n String temp = this.value + \"\";\n if (this.value == 11) {\n temp = \"Jack\";\n } else if (this.value == 12) {\n temp = \"Queen\";\n } else if (this.value == 13) {\n temp = \"King\";\n } else if (this.value == 14) {\n temp = \"Ace\";\n }\n return temp + \" of \" + getSuitName();\n }", "public String getencodedCard() {\r\n \r\n String cardDesc=\"\";\r\n String partnerId=\"\";\r\n String cardId=\"\";\r\n \r\n if(session!=null) {\r\n if (session.getAttribute(\"Partner_Object_List\") != null) {\r\n partnerInfoList =\r\n (List<PartnerInfo>)session.getAttribute(\"Partner_Object_List\");\r\n if(getPartner()!=null && !getPartner().equals(\"\") && getCardPk() != null && !getCardPk().equals(\"\")){\r\n partnerId=getPartner();\r\n cardId=getCardPk().toString().trim();\r\n \r\n if (partnerInfoList != null) {\r\n for (int k = 0; k < partnerInfoList.size(); k++) {\r\n if (partnerId.equalsIgnoreCase(partnerInfoList.get(k).getPartnerValue().toString())) {\r\n for (int ac = 0;ac < partnerInfoList.get(k).getAccountList().size();ac++) {\r\n for (int cg = 0;cg < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().size();cg++) {\r\n for (int cd = 0;cd < partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().size();cd++) {\r\n if(cardId.equalsIgnoreCase(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getCardID())) {\r\n if(partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber() != null)\r\n {\r\n cardDesc= partnerInfoList.get(k).getAccountList().get(ac).getCardGroup().get(cg).getCard().get(cd).getDisplayCardNumber().toString();\r\n }\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n }\r\n }\r\n }\r\n }\r\n }\r\n return cardDesc;\r\n \r\n \r\n }", "@Override\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder(\"Hand contains:\\n\");\n for (Card c : cardList) {\n stringBuilder.append(c.getFace().toString());\n stringBuilder.append(\" of \");\n stringBuilder.append(c.getSuit().toString());\n stringBuilder.append(\"\\n\");\n }\n return stringBuilder.toString();\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn name + \" (Deck, \" + cards.size() + \" cards)\";\r\n\t}", "private String convertToJson(Deck<Card> deck){\n JSONObject jsonObj = new JSONObject();\n List<Card> cards = deck.getDeck();\n List<String> parsedCards = new LinkedList<String>();\n int i = 1;\n for(Card card: cards){\n parsedCards.add(card.getCardValue() + \"-\" + card.getSuit());\n i++;\n }\n\n jsonObj.put(\"deck\",parsedCards);\n JSONArray jArray = jsonObj.getJSONArray(\"deck\");\n return jArray.toString();\n }", "public Card() {\n\t\tthis.suit = \" \";\n this.rank = 0;\n this.face = \" \";\n this.color = \" \";\n\t}", "String getSuit(int suitNumber) {\n\t\tswitch(suitNumber) {\n\t\tcase 0:\n\t\t\treturn \"Clubs\";\n\t\tcase 1:\n\t\t\treturn \"Diamonds\";\n\t\tcase 2:\n\t\t\treturn \"Hearts\";\n\t\tcase 3:\n\t\t\treturn \"Spades\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}", "public String getCardSuit() {\n return Csuit;\n }", "public void cardGen(){\n\t\tRandom rand = new Random();\n\t\tint randValue = rand.nextInt(13);\n\t\tcardString = value[randValue] + suit[rand.nextInt(4)];\n\t}", "public static String convert (Declaration dec) {\n\n\t\tString result = \"\";\n\n\t\tif ( dec.isComplete() ) {\n\n\t\t\tfor (Card c : dec) {\n\n\t\t\t\tif ( c instanceof SingleGuestCard) {\n\n\t\t\t\t\tresult += formatSingleGuest((SingleGuestCard) c);\n\n\t\t\t\t} else if ( c instanceof FamilyCard) {\n\n\t\t\t\t\tresult += formatFamily((FamilyCard) c);\n\n\t\t\t\t} else if ( c instanceof GroupCard) {\n\n\t\t\t\t\tresult += formatGroup((GroupCard) c);\n\n\t\t\t\t} else {\n\t\t\t\t\tnew RuntimeException(\"Card not recognized\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t//TODO: should we rise an error?\n\n\t\t}\n\t\treturn result;\n\t}", "public String getRankAsString (int aRank)\n {\n switch (aRank)\n {\n case 1:return(\"Ace\");\n case 2:return(\"Two\");\n case 3:return(\"Three\");\n case 4:return(\"Four\");\n case 5:return(\"Five\");\n case 6:return(\"Six\");\n case 7:return(\"Seven\");\n case 8:return(\"Eight\");\n case 9:return(\"Nine\");\n case 10:return(\"Ten\");\n case 11:return(\"Jack\");\n case 12:return(\"Queen\");\n case 13:return(\"King\");\n default: return(\"Invalid Rank\");\n }\n }", "public String toString()\n {\n\t// Local constants\n\n\t// Local variables\n\tString outputString = \"\";\n\n\t/************** Start getCardPicture Method *****************/\n\n\t// Add face value to output string\n\toutputString += \"FaceValue: \" + faceValue + \" | \";\n\n\t// Add suit to output string\n\toutputString += \"Suit : \" + suit + \" | \";\n\n\t// Add trueValue to output string\n\toutputString += \" TrueValue :\" + trueValue;\n\n\t// Return output string\n return outputString;\n\n }", "public String toString(){//method of return card number and balance\r\n return \"Card no:\" +number+\" has a balance of: \"+balance; \r\n }", "public String toString() {\n return \"The card has \" + this.balance + \" euros\";\n }", "public String getSuitString()\n {\n switch (suit)\n {\n case SPADES: return \"SPADES\";\n case CLUBS: return \"CLUBS\";\n case DIAMONDS: return \"DIAMONDS\";\n case HEARTS: return \"HEARTS\";\n default: return \"Invalid\";\n }\n \n }", "@Override\r\n\tpublic String toString() {\r\n return rank + \" of \" + suit + \" - Point value: \" + pointValue;\r\n }", "public String convertEnum()\n {\n \tswitch (pattern.ordinal())\n \t{\n \tcase 0:\n \t\treturn \"Red Cards\";\n \tcase 1:\n \t\treturn \"Black Cards\";\n \tcase 2:\n \t\treturn \"Hearts\";\n \tcase 3:\n \t\treturn \"Diamonds\";\n \tcase 4:\n \t\treturn \"Clubs\";\n \tcase 5:\n \t\treturn \"Spades\";\n \tcase 6:\n \t\treturn \"Twos\";\n \tcase 7:\n \t\treturn \"Threes\";\n \tcase 8:\n \t\treturn \"Fours\";\n \tcase 9:\n \t\treturn \"Fives\";\n \tcase 10:\n \t\treturn \"Sixes\";\n \tcase 11:\n \t\treturn \"Sevens\";\n \tcase 12:\n \t\treturn \"Eights\";\n \tcase 13:\n \t\treturn \"Nines\";\n \tcase 14:\n \t\treturn \"Tens\";\n \tcase 15:\n \t\treturn \"Jacks\";\n \tcase 16:\n \t\treturn \"Queens\";\n \tcase 17:\n \t\treturn \"Kings\";\n \tcase 18:\n \t\treturn \"Aces\";\n \tcase 19:\n \t\treturn \"Single Digit Primes\";\n \tcase 20:\n \t\treturn \"Pairs\";\n \tcase 21:\n \t\treturn \"Sum of Pairs\";\n \tcase 22:\n \t\treturn \"Incrementing Cards\";\n \tcase 23:\n \t\treturn \"Decrementing Cards\";\n \tdefault:\n \t\treturn \"\";\n \t}\n }", "public String toEvalString() {\n String rank = \"\";\n if (this.rank != 10) {\n rank = rankToString().substring(0, 1).toUpperCase();\n } else {\n rank = \"T\";\n }\n\n String suit = suitToString().substring(0, 1).toLowerCase();\n\n return rank + suit;\n }", "public String toString() {\r\n\t\tif (rank == 1) {\r\n\t\t\treturn \"slayer\";\r\n\t\t} else if (rank == 2) {\r\n\t\t\treturn \"scout\";\r\n\t\t} else if (rank == 3) {\r\n\t\t\treturn \"dwraf\";\r\n\t\t} else if (rank == 4) {\r\n\t\t\treturn \"elf\";\r\n\t\t} else if (rank == 5) {\r\n\t\t\treturn \"lavaBeast\";\r\n\t\t} else if (rank == 6) {\r\n\t\t\treturn \"sorceress\";\r\n\t\t} else if (rank == 7) {\r\n\t\t\treturn \"beastRider\";\r\n\t\t} else if (rank == 8) {\r\n\t\t\treturn \"knight\";\r\n\t\t} else if (rank == 9) {\r\n\t\t\treturn \"mage\";\r\n\t\t} else {\r\n\t\t\treturn \"dragon\";\r\n\t\t}\r\n\r\n\t}", "public String getHand()\n\t{\n\t\tStringBuffer buffer = new StringBuffer(String.format(\"%s:[%d] \", getName(), getHandTotal() ));\n\t\t\n\t\tfor (Card c : hand)\n\t\t{\n\t\t\tbuffer.append(String.format(\"%s: \", c));\n\t\t}\n\n\t\treturn buffer.toString();\n\t}", "public CardDetail(String suit, String rank){\r\n this.suit = suit;\r\n this.rank = rank;\r\n }", "public String toString() {\n String info = values[value] + \" of \" + suits[suit];\n return info;\n }", "public String toString()\r\n\t{\n\t\treturn strRank[srtRank] + strSuit[srtSuit];\r\n\t}", "public String toString() {\n String color = translateColor(card.getColor());\n StringBuilder build = new StringBuilder();\n build.append(color).append(\" \").append(color).append(card.getCardID()).append(color).append(\" \").append(Color.reset()).append(\"\\n\").append(color).append(\"╔════\").append(color).append(\"Level\").append(color).append(\"════╗\").append(Color.reset()).append(\"\\n\").append(color).append(\"║ \").append(color).append(card.getLevel()).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\").append(color).append(\"╠════\").append(color).append(\"Cost\").append(color).append(\"═════╣\").append(Color.reset()).append(\"\\n\");\n for (Resource resource : card.getCost().keySet()) {\n build.append(color).append(\"║ \").append(CLI.colorResource(resource)).append(card.getCost().get(resource)).append(\" \").append(CLI.shapeResource(resource)).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n build.append(color).append(\"╠═\").append(color).append(\"Production\").append(color).append(\"══╣\").append(Color.reset()).append(\"\\n\");\n for (Resource resource : card.getProductionPower().getConsumedResources().keySet()) {\n build.append(color).append(\"║ \").append(CLI.colorResource(resource)).append(card.getProductionPower().getConsumedResources().get(resource)).append(\" \").append(CLI.shapeResource(resource)).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n if (card.getProductionPower().getRequiredResourceOfChoice() != 0) {\n build.append(color).append(\"║ \").append(color).append(+card.getProductionPower().getRequiredResourceOfChoice()).append(\" \").append(\"?\").append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n build.append(color).append(\"║ \").append(color).append(\"--->>> \").append(color).append(\" ║ \").append(Color.reset()).append(\"\\n\");\n for (Resource resource : card.getProductionPower().getProducedResources().keySet()) {\n build.append(color).append(\"║ \").append(CLI.colorResource(resource)).append(card.getProductionPower().getProducedResources().get(resource)).append(\" \").append(CLI.shapeResource(resource)).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n if (card.getProductionPower().getFaithPointsProduced() != 0) {\n build.append(color).append(\"║ \").append(color).append(+card.getProductionPower().getFaithPointsProduced()).append(\" \").append(\"+\").append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n if (card.getProductionPower().getProducedResourceOfChoice() != 0) {\n build.append(color).append(\"║ \").append(color).append(+card.getProductionPower().getProducedResourceOfChoice()).append(\" \").append(\"?\").append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n\n\n build.append(color).append(\"╠═══\").append(color).append(\"VPoints\").append(color).append(\"═══╣\").append(Color.reset()).append(\"\\n\");\n if (card.getVictoryPoints() < 10) {\n build.append(color).append(\"║ \").append(color).append(card.getVictoryPoints()).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n } else\n build.append(color).append(\"║ \").append(color).append(card.getVictoryPoints()).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n build.append(color).append(\"╚════\").append(color).append(color).append(\"═════════╝\").append(Color.reset()).append(\"\\n\");\n build.append((color + \" \" + color + color + \" \" + Color.reset() + \"\\n\").repeat(5));\n return build.toString();\n }", "public static String cardsToCodeString(Card[] cards) {\n if (cards == null || cards.length == 0)\n throw new IllegalArgumentException(\"Can't stringify empty or null array\");\n\n String[] codes = new String[cards.length];\n\n for (int i = 0; i < cards.length; i++)\n codes[i] = cards[i].getCode();\n\n return String.join(\" \", codes);\n }", "public String getRankString()\n {\n switch (rank)\n {\n \n case 2: return \"2\";\n case 3: return \"3\";\n case 4: return \"4\";\n case 5: return \"5\";\n case 6: return \"6\";\n case 7: return \"7\";\n case 8: return \"8\";\n case 9: return \"9\";\n case 10: return \"10\";\n case 11: return \"JACK\";\n case 12: return \"QUEEN\";\n case 13: return \"KING\";\n case 14: return \"ACE\";\n default: return \"JOKER\";\n \n }\n }", "public String getSuit()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getSuit Method *****************/\n\n\t// Return suit of card\n return suit;\n\n }", "public static String [] currentSuit(int [] arr)\n\t{\n\t\tString [] s = new String[5];\n\t\tfor (int i =0; i<5;i++)\n\t\t{\n\t\t\tif( arr[i]>= 1 && arr[i]<=13)\n\t\t\t{\n\t\t\t\ts[i] = \"Clubs\";\n\t\t\t}\n\t\t\telse if(arr[i]>= 14 && arr[i]<=26)\n\t\t\t{\n\t\t\t\ts[i] = \"Diamonds\";\n\t\t\t}\n\t\t\telse if(arr[i]>= 27 && arr[i]<=39)\n\t\t\t{\n\t\t\t\ts[i] = \"Hearts\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ts[i] = \"Spades\";\n\t\t\t}\n\t\t}\n\t\treturn s;\n\t}", "public String showCardInHand(){\n String handCard = \"\";\n int cardNum = 0;\n for(Card cards: playerHand)\n {\n String cardDesc;\n if (cards instanceof Mineral) {\n // Description of the Mineral card\n cardDesc = \"No: \" + cardNum + \" \" +\n \"Name: \" + cards.getCardName() + \" \" +\n \"Hardness: \" + ((Mineral) cards).getCardHardness() + \" \" +\n \"Specific Gravity: \" + ((Mineral) cards).getCardSpecGravity() + \" \" +\n \"Cleavage: \" + ((Mineral) cards).getCardCleavage() + \" \" +\n \"Crystal Abundance: \" + ((Mineral) cards).getCardCrystalAbundance() + \" \" +\n \"Economic Value: \" + ((Mineral) cards).getCardEconomicValue() + \"\\n\";\n }\n else{\n // Description of the Supertrump card\n cardDesc = \"No: \"+ cardNum+ \" \" + \"Name: \" + cards.getCardName()+ \" \" + \"Description: \" +\n ((SuperTrumps) cards).effectDescription()+ \"\\n\";\n }\n cardNum += 1;\n handCard += cardDesc; // Used for adding the description of the card in the hand\n }\n return handCard;\n }", "public String get卡名and類型Name() {\r\n return \"[\" + 卡名 + \"-\" + CardType.CARD_TYPE_NAME[類型] + \"] \";\r\n }", "public String toString() {\n String cardListOutput = \"\";\n for (Card aCard : this.cards) {\n cardListOutput += aCard.toString() + \"\\n\";\n }\n return cardListOutput;\n }", "public String getShortName() {\n\t\tif(number == 11){\n\t\t\treturn (suit + \"j\");\n\t\t}\n\t\telse if(number == 12) {\n\t\t\treturn (suit + \"q\");\n\t\t}\n\t\telse if(number == 13) {\n\t\t\treturn (suit + \"k\");\n\t\t}\n\t\telse if(number == 14) {\n\t\t\treturn (suit + \"a\");\n\t\t}\n\t\telse {\n\t\t\treturn (suit + String.valueOf(number));\n\t\t}\n\t}", "public String toString()\n {\n return getRankString() + \" of \" + getSuitString();\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"\\nCard Name: \" + getName() +\n\t\t\t\t\"\\nMultiverse Id: \" + getMultiverseid() +\n\t\t\t\t\"\\nMana Cost: \" + getManaCost();\n\t}", "private static String generateCRString (CRType<?> cr) {\r\n\t\tString res = \"\";\r\n\t\tif (cr.getAU_A() == null) {\r\n\t\t\tif (cr.getAU_L() != null) res += cr.getAU_L() + \", \" + cr.getAU_F().replaceAll(\"([A-Z])\", \"$1.\"); \r\n\t\t} else {\r\n\t\t\tres += cr.getAU_A().replaceAll(\";\", \",\");\r\n\t\t}\r\n\t\tres += \",\";\r\n\t\tif (cr.getTI() != null)\tres += cr.getTI();\r\n\t\tif (cr.getRPY() != null) res += \" (\" + cr.getRPY() + \") \";\r\n\t\tif (cr.getJ_N() != null) res += cr.getJ_N();\r\n\t\tif (cr.getVOL() != null) res += \", \" + cr.getVOL();\r\n\t\tif (cr.getPAG() != null) res += \", pp.\" + cr.getPAG();\r\n\t\tif (cr.getDOI() != null) res += \", DOI \" + cr.getDOI();\r\n\r\n\t\treturn res;\r\n\t}", "public String detailedToString() {\r\n\t\tString tempStr = \"Player One:\\n\"+\r\n\t\t\t\t\t\t \"Current Card: \" + card1 + \"\\n\" +\r\n\t\t\t\t\t\t \"Unplayed Pile: \" + player1.unplayedCount() + \"\\n\" +\r\n\t\t\t\t\t\t \"Winnings Pile: \" + player1.winningsCount() + \"\\n\\n\" +\r\n\t\t\t\t\t\t \"War Pile: \" + warPile.size() + \"\\n\\n\" +\r\n\t\t\t\t\t\t \"Player Two:\\n\"+\r\n\t\t\t\t\t\t \"Current Card: \" + card2 + \"\\n\" +\r\n\t\t\t\t\t\t \"Unplayed Pile: \" + player2.unplayedCount() + \"\\n\" +\r\n\t\t\t\t\t\t \"Winnings Pile: \" + player2.winningsCount() + \"\\n\\n\" +\r\n\t\t\t\t\t\t \"Moves: \" + moves;\r\n\t\treturn tempStr;\r\n\t}", "Card(int num,String suit){\n this.number = num;\n this.suits = suit;\n }", "public Card(String suit, String rank){\r\n\t\t\t// assume input is valid!\r\n\t\t\tthis.suit = suit; \r\n\t\t\tthis.rank = rank;\r\n\t\t\tthis.rankValue = new HashMap<String,Integer>(15);\r\n\t\t\tfor(int r = 2; r < RANKS.length; r+=1){\r\n\t\t\t\tthis.rankValue.put(RANKS[r], r);\r\n\t\t\t}\r\n\t }", "public String toString(){\n String roll = \"\";\n for(int i = 0; i < dice.length; ++i){\n roll += \" \" + dice[i].getFaceValue();\n }\n return roll.substring(1);\n }", "public String handToString() {\n\t\tStringBuilder str = new StringBuilder();\n\t\tstr.append(\"Holding:\");\n\t\tfor (Card c: hand) {\t\t\t\n\t\t\tstr.append(\" \" + c.getName() + \",\");\n\t\t}\n\t\treturn str.toString().substring(0, str.toString().length()-1);\n\t}", "public String draw()\r\n\t{\r\n\t\tString cardToDraw = \"\";\r\n\t\t\r\n\t\t// Checks deck status with isEmpty method\r\n\t\tif ( !isEmpty() )\r\n\t\t{\r\n\t\t\tcardToDraw = cards[topCard];\r\n\t\t\ttopCard--;\r\n\t\t}\r\n\t\t\r\n\t\treturn cardToDraw;\r\n\t}", "@Override\n public String toString()\n {\n return (this.getRankAsString(this.getRank()) +\" of \"\n + this.getSuitAsString(this.getSuit()));\n }", "private static int suitAsInt(Card card) {\n return card.getSuit().ordinal();\n }", "@Override\n public String toString() {\n return \"Card{\"\n + \"frontInfo='\" + frontInfo\n + '\\''\n + \", backInfo='\" + backInfo\n + '\\''\n + \", startTime=\" + startTime\n + \", ID=\" + cardID\n + '}';\n }", "@Override\r\n\t\tpublic String toString() {\r\n\t\t\tint rowNumTemp = rowNum;\r\n\t\t\tString result = \"\";\r\n\t\t\tint remainder;\r\n\t\t while (rowNumTemp > 0) {\r\n\t\t rowNumTemp--; // 1 => a, not 0 => a\r\n\t\t remainder = rowNumTemp % 26;\r\n\t\t char digit = (char) (remainder + (int) 'A'); //Lettering starts at A\r\n\t\t result = digit + result;\r\n\t\t rowNumTemp = rowNumTemp - remainder;\r\n\t\t rowNumTemp = rowNumTemp/26;\r\n\t\t }\r\n\r\n\t\t return result + Integer.toString(seatNum);\t\t \r\n\t\t\t\r\n\t\t}", "public String getCards()\r\n\t{\r\n\t\t// creates a larger string which will have the cards appended to it\r\n\t\tString cardList = \"\";\r\n\t\t\r\n\t\t// adds all cards currently in hand\r\n\t\tfor (int i = 0; i < handCount; i++)\r\n\t\t{\r\n\t\t\tcardList = cardList + pCards[i] + \" \";\r\n\t\t}\r\n\t\t\r\n\t\treturn cardList;\r\n\t}", "public void printDrawCard(PoliticCard card);", "@Override\n public String toString() {\n StringBuilder devPlaceArt = new StringBuilder();\n StringBuilder[] devString = new StringBuilder[3];\n devString[0] = new StringBuilder();\n devString[1] = new StringBuilder();\n devString[2] = new StringBuilder();\n int i = 0;\n String space = \" \";\n String emptyCard =\n \"\"\"\n ┌─────────────────┐\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n └─────────────────┘\n \"\"\";\n String emptySpace = \"\"\"\n \\s\n \\s\n \\s\n \"\"\";\n String[] temp1;\n String[] temp2;\n String[] temp3;\n\n for (ObservableList<DevelopmentCard> stacks : devStack) {\n if (stacks.isEmpty()) {\n devString[i].append(emptyCard);\n devString[i].append(emptySpace).append(emptySpace);\n } else {\n devString[i].append(stacks.get(stacks.size() - 1).toString());\n switch (stacks.size()) {\n case 1 -> devString[i].append(emptySpace).append(emptySpace);\n case 2 -> {\n int l = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), l - 58, l);\n devString[i].append(emptySpace);\n }\n case 3 -> {\n int len = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), len - 58, len);\n devString[i].append(stacks.get(1).toString(), len - 58, len);\n }\n }\n\n }\n i++;\n }\n temp1 = devString[0].toString().split(\"\\n\");\n temp2 = devString[1].toString().split(\"\\n\");\n temp3 = devString[2].toString().split(\"\\n\");\n\n for (int j = 0; j < 14; j++) {\n devPlaceArt.append(temp1[j]).append(space).append(temp2[j]).append(space).append(temp3[j]);\n devPlaceArt.append(\"\\n\");\n }\n return devPlaceArt.toString();\n }", "String getRank(int rankNumber) {\n\t\tswitch(rankNumber) {\n\t\tcase 0:\n\t\t\treturn \"2\";\n\t\tcase 1:\n\t\t\treturn \"3\";\n\t\tcase 2:\n\t\t\treturn \"4\";\n\t\tcase 3:\n\t\t\treturn \"5\";\n\t\tcase 4:\n\t\t\treturn \"6\";\n\t\tcase 5:\n\t\t\treturn \"7\";\n\t\tcase 6:\n\t\t\treturn \"8\";\n\t\tcase 7:\n\t\t\treturn \"9\";\n\t\tcase 8:\n\t\t\treturn \"10\";\n\t\tcase 9:\n\t\t\treturn \"Jack\";\n\t\tcase 10:\n\t\t\treturn \"Queen\";\n\t\tcase 11:\n\t\t\treturn \"King\";\n\t\tcase 12:\n\t\t\treturn \"Ace\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}", "public String suit() {\r\n return suit;\r\n }", "public String toString() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n return firstName + lastName + \"\\n\" + cardNum + \"\\n\" + email + \"\\n\" + formatter.format(accCreditLimit);\n }", "public String playerString() {\n String outString = \"\";\n outString = (playerName + \",\" + String.valueOf(ID) + \",\" + club + \",\" + position + \",\" +\n String.valueOf(age) + \",\" + String.valueOf(projectedScore)\n + \",\" + String.valueOf(available) + \",\" + String.valueOf(onTeam) + \",\"+String.valueOf(draftPick)+\",\"+String.valueOf(predictedPick));\n\n return outString;\n }" ]
[ "0.75342786", "0.7420282", "0.73644125", "0.7259153", "0.72054434", "0.7141901", "0.7055332", "0.69973767", "0.6981261", "0.6820901", "0.68103766", "0.6805153", "0.67881024", "0.67445594", "0.662979", "0.6620053", "0.6603597", "0.65374446", "0.65338737", "0.6532252", "0.6520772", "0.65002304", "0.6493509", "0.6461724", "0.64586735", "0.645011", "0.64403707", "0.6436056", "0.6417452", "0.64161015", "0.6393941", "0.6382885", "0.63759327", "0.634364", "0.62733823", "0.62616074", "0.62551236", "0.623466", "0.6211049", "0.62105423", "0.61940676", "0.6191988", "0.61836857", "0.6159566", "0.61251414", "0.6123788", "0.6102147", "0.60953283", "0.6089209", "0.6087999", "0.60851765", "0.6018243", "0.60143054", "0.5974516", "0.5967475", "0.5949277", "0.5918717", "0.5891693", "0.5878495", "0.58620214", "0.5836847", "0.5829828", "0.5814094", "0.5808776", "0.5806514", "0.57963395", "0.5789202", "0.577883", "0.57545257", "0.57395697", "0.5728029", "0.5699134", "0.56967854", "0.5691277", "0.5671764", "0.5665635", "0.56489193", "0.5645027", "0.56298435", "0.56265706", "0.56164706", "0.5611713", "0.55962366", "0.55765015", "0.5573347", "0.55662197", "0.555924", "0.5556844", "0.5501294", "0.5497464", "0.54673547", "0.54604894", "0.5456449", "0.5431967", "0.54309124", "0.5418043", "0.54168", "0.54143095", "0.540538", "0.5398431", "0.5388706" ]
0.0
-1
example test code... edit this as much as you want!
public static void main(String[] args) { CardSwitch card = new CardSwitch(Card.Rank.ACE, Card.Suit.SPADES); if (card.getRank().equals(Card.Rank.ACE)){ System.out.println("Yay 1"); } if (card.toString().equals("(ACE,SPADES)")){ System.out.println("Yay 2"); } if (card.getPoints()==1){ System.out.println("Yay 3"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void test() {\n\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private test5() {\r\n\t\r\n\t}", "@Override\n public void runTest() {\n }", "@Override\n\tpublic void test() {\n\t\t\n\t}", "@Test\n public void testQuickMapList() {\n//TODO: Test goes here... \n }", "public void testGetInsDyn() {\n }", "@Test\r\n\tpublic void testSanity() {\n\t}", "public void test5() {\n\t\t\n\t}", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Override\n public void test() {\n \n }", "@Test\n public void testPrintPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }", "@Test\r\n\tpublic void contents() throws Exception {\n\t}", "@Test\n public void testWalkForPduTarget() throws Exception {\n//TODO: Test goes here... \n }", "@Test\n public void testQuickCopy() {\n//TODO: Test goes here... \n }", "public void testGetBasedata() {\n }", "public void testaReclamacao() {\n\t}", "@Test\n public void testAddACopy() {\n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "public static void main(String[] args) {\n // PUT YOUR TEST CODE HERE\n }", "public void testSetBasedata() {\n }", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "@Test\n\tvoid searchTest() {\n\t}", "@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}", "public void test() {\n\t}", "@Test\n\tpublic abstract void testTransform4();", "@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }", "@Test\n void completeItemsAsString() {\n\n }", "@Test\n public void shouldProcessData() throws Exception {\n }", "@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}", "@Test\n\tpublic void getWorksTest() throws Exception {\n\t}", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "@Ignore\n @Test\n public void test1() {\n //concat method of a String\n //str.concat(\" World\");\n String1 str = new String1();\n //expected results come from requirements. (User story could your requirement)\n //requirement - is the most important thing.\n //All of our actions should be taken according to requirements.\n String expected = \"Hello World\";\n //What the method you are testing returns is your actual result\n String actual = str.concat(\"Hello\", \" World\");\n Assert.assertEquals(expected, actual);\n }", "@Test\n public void testFlairImage33() { // FlairImage: 33\n FlairImage testi = new FlairImage(); \n assertEquals(\"From: FlairImage line: 35\", \"0|\", testi.toString()); \n assertEquals(\"From: FlairImage line: 36\", 0, testi.getNumber()); \n assertEquals(\"From: FlairImage line: 37\", \"\", testi.getName()); \n }", "@Test\n\tpublic void testDoGeneration() {\n\t}", "private void testProXml(){\n\t}", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "public void testCheckOxyEmpty() {\n }", "@Test\n public void testGetNext() throws Exception {\n//TODO: Test goes here... \n }", "@Test\n public void matchCorrect() {\n }", "@Test\n\tvoid test() {\n\t\t\n\t}", "@Test\n public void testOncoKBInfo() {\n // TODO: test OncoKBInfo\n }", "@Test\n void completeItemsAsString() {\n }", "@Test\n public void testPrintErrPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }", "@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }", "@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}", "@Test\n public void iterator() {\n }", "public void testAddEntry(){\n }", "@Test\r\n\tpublic void test() {\r\n\t}", "@Test\n public void testAll() throws ParseException {\n testCreate();\n testExists(true);\n testGetInfo(false);\n testUpdate();\n testGetInfo(true);\n testDelete();\n testExists(false);\n }", "@Test\n public void main() {\n // App.main(null);\n // assertEquals(\"Hello world\", outContent.toString());\n }", "@Test\n\tpublic void testFtoC(){\n\t}", "public void testWriteOrders() throws Exception {\n }", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "@Test\r\n public void testToString() {\r\n // TODO \r\n assertTrue(true); \r\n }", "@Test\n public void testGetSupportingData() {\n System.out.println(\"getSupportingData\");\n String expResult = \"JWT json header\";\n String result = instance.getSupportingData();\n assertTrue(result.startsWith(expResult));\n expResult = \"true\\r\\n\";\n assertTrue(result.endsWith(expResult));\n }", "@Test\n public void testGetAnalyzedData() {\n System.out.println(\"getAnalyzedData\");\n \n }", "@Test\n public void testGetProductInfo() throws Exception {\n }", "@Test\n\tpublic void testExponentialSearch() {\n\t}", "public void testGetURI() {\n }", "public void testPerformance() {\n \t}", "@Test\n public void formatTest() {\n // TODO: test format\n }", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }", "@Test\n public void testQueryList(){\n }", "public void testBidu(){\n\t}", "@Test\r\n public void testGreeting02(){\r\n\r\n assertEquals(\"Hello SQS\", greets.greet(\"SQS\"));\r\n assertEquals(\"Hello TDD\", greets.greet(\"TDD\"));\r\n }", "@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }", "public static void main(String[] args) {\r\n // 2. Call your method in various ways to test it here.\r\n }", "@Test\n\tpublic void testInterpolationSearch() {\n\t}", "@Test\n public void testLisaa33() { // Oluet: 33\n Oluet oluet = new Oluet(); \n Olut karjala1 = new Olut(), karjala2 = new Olut(); \n assertEquals(\"From: Oluet line: 36\", 0, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 37\", 1, oluet.getLkm()); \n oluet.lisaa(karjala2); assertEquals(\"From: Oluet line: 38\", 2, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 39\", 2, oluet.getAlkiot()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 40\", 3, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 41\", 4, oluet.getAlkiot()); \n assertEquals(\"From: Oluet line: 42\", karjala1, oluet.tuoOlut(0)); \n assertEquals(\"From: Oluet line: 43\", karjala2, oluet.tuoOlut(1)); \n assertEquals(\"From: Oluet line: 44\", karjala1, oluet.tuoOlut(2)); \n assertEquals(\"From: Oluet line: 45\", false, oluet.tuoOlut(1) == karjala1); \n assertEquals(\"From: Oluet line: 46\", true, oluet.tuoOlut(1) == karjala2); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 47\", 4, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 48\", 5, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 49\", 6, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 50\", 7, oluet.getLkm()); \n }", "public static void main(String[] args) {\n ListTest lt = new ListTest();\n lt.testAdd();\n// lt.testGet();\n lt.testIterator();\n lt.testListContains();\n }", "@Test\n\tpublic void testReadTicketOk() {\n\t}", "@Test\n\tpublic void testCtoF(){\n\t}", "@Test\n public void testDAM31501001() {\n //\n testDAM30201001();\n }", "@Test\n\tpublic void testQuery1() {\n\t}", "@Test //TEST TWO\n void testNetherlandDwarfTrueDwarfGene()\n {\n Rabbit_RegEx rabbit_gene = new Rabbit_RegEx();\n rabbit_gene.setTrueDwarfGene(true);\n rabbit_gene.setBreedName(\"Netherland Dwarf\");\n boolean expected = true;\n assertEquals(expected, rabbit_gene.getTrueDwarfGene());\n }", "@Test\n public void test() throws Exception {\n// diversifiedRankingxPM2()\n diversifiedRankingxQuAD();\n }", "@Test\r\n public void testGetListingTitle() {\r\n System.out.println(\"getListingTitle\");\r\n \r\n String expResult = \"\";\r\n String result = instance.getListingTitle();\r\n assertEquals(expResult, result);\r\n \r\n \r\n }", "@Test\r\n\tpublic void testFrontTimes() {\r\n//\t\tassertEquals(\"ChoCho\", WarmUpTwo.frontTimes)\r\n\t\tfail(\"Not yet implemented\");\r\n\t\t\r\n\t}", "@Test\n\tpublic void test() {\n\t}", "@Test\n\tpublic void test() {\n\t}", "@Test\n public void testGetAuthor() {\n }", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "@Test\n\tpublic void testGetSlice() {\n\t}", "@Override\n\tpublic void runTest() throws Throwable {}", "@Test\r\n\tpublic void testGetFirst() {\n\t}", "@Test\npublic void testCal() throws Exception {\n\tsearchText();\n}", "@Test\r\n public void elCerdoNoSePuedeAtender() {\n }", "@Test\n public void searchesTest() {\n // TODO: test searches\n }", "@Test\n public void testExampleTest() {\n Book book = new Book(\"This Test Is Just An Example\", Arrays.asList(\"You Should\", \"Replace It\", \"With Your Own Tests\"), 1990);\n BookCopy copy = new BookCopy(book);\n assertEquals(book.getTitle(), copy.getBook().getTitle());\n assertEquals(book.getAuthors(), copy.getBook().getAuthors());\n assertEquals(book.getYear(), copy.getBook().getYear());\n }", "@Test\n public void testCreateIndexType() throws Exception {\n//TODO: Test goes here... \n }", "@Test\n\tpublic void testQueryPage() {\n\n\t}", "void testCanGetList();", "@Override\n public void tests() {\n System.out.println(\"222222222222222222\"); \n }", "@Test\r\n public void testGetUserHistory() {\r\n }", "public void testGetJSON() {\n\t}", "@Test\r\n public void dummyCanGiveXP() {\n\r\n dummy.giveExperience();\r\n\r\n assertEquals(DUMMY_EXPERIENCE, dummy.giveExperience());\r\n }", "@Before\n\t public void setUp() {\n\t }", "@Test\n public void sourceTest() {\n // TODO: test source\n }" ]
[ "0.6747402", "0.66337234", "0.6186492", "0.61541456", "0.6133403", "0.60006374", "0.5987847", "0.5981586", "0.59664655", "0.5954129", "0.59234", "0.5922196", "0.59073395", "0.5899989", "0.58935195", "0.5882696", "0.5868838", "0.5860713", "0.5854798", "0.58367014", "0.58234143", "0.58070916", "0.5792371", "0.57887703", "0.5765034", "0.57633233", "0.5762186", "0.5758031", "0.57543725", "0.5746504", "0.5732519", "0.57324487", "0.5727293", "0.57152003", "0.5698045", "0.5696626", "0.56921923", "0.5689601", "0.5688932", "0.56864536", "0.5684978", "0.5681085", "0.5680257", "0.567349", "0.56705487", "0.56641537", "0.56618863", "0.56369746", "0.56332934", "0.563246", "0.5624339", "0.56225187", "0.56187034", "0.5617175", "0.56142986", "0.56138825", "0.5611269", "0.5606321", "0.5603818", "0.56006885", "0.560056", "0.55987275", "0.5597635", "0.55938673", "0.5592738", "0.5587812", "0.55827886", "0.5580568", "0.55797887", "0.5579192", "0.55738556", "0.5565526", "0.5564315", "0.55557716", "0.555352", "0.55452436", "0.5544859", "0.5539398", "0.5538881", "0.5527736", "0.5524395", "0.55242425", "0.55242425", "0.5523487", "0.5521966", "0.5518823", "0.5513667", "0.5510805", "0.55101925", "0.550521", "0.55035347", "0.55027646", "0.5502396", "0.5499871", "0.5499228", "0.5498198", "0.5497236", "0.5495409", "0.5494677", "0.5492319", "0.5489616" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View arg0) { session.logoutUser(); Toast.makeText(getApplicationContext(), "Anda Sudah Keluar!", Toast.LENGTH_LONG).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View arg0) { Intent i = new Intent(Akun.this, Riwayat_pemesanan.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent i = new Intent(Akun.this, Home.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent i = new Intent(Akun.this, Tukang.class); startActivity(i); }
{ "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