query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
sequencelengths
19
20
metadata
dict
Tests retrieval of public SourceSummary. Type: invalid credentials.
@Test(expected = NotAuthorizedException.class) public void testPublicSourceBadAuth() throws WattDepotClientException { // Shouldn't authenticate with invalid username or password WattDepotClient client = new WattDepotClient(getHostName(), adminEmail, "foo"); client.getSourceSummary(defaultPublicSource); fail("Able to get SourceSummary with invalid credentials"); }
[ "@Test\n public void testPublicSourceWithNonOwnerCredentials() throws WattDepotClientException {\n WattDepotClient client =\n new WattDepotClient(getHostName(), defaultNonOwnerUsername,\n defaultNonOwnerPassword);\n assertEquals(PUBLIC_SUMMARY_NOT_FOUND, client.getSourceSummary(defaultPublicSource),\n this.publicSourceSummary);\n }", "@Test(expected = NotAuthorizedException.class)\n public void testPrivateSourceWithNoCredentials() throws WattDepotClientException {\n WattDepotClient client = new WattDepotClient(getHostName());\n client.getSourceSummary(defaultPrivateSource);\n fail(\"Able to get private SourceSummary with no credentials\");\n }", "@Test(expected = NotAuthorizedException.class)\n public void testPrivateSourceWithNonOwnerCredentials() throws WattDepotClientException {\n WattDepotClient client =\n new WattDepotClient(getHostName(), defaultNonOwnerUsername,\n defaultNonOwnerPassword);\n client.getSourceSummary(defaultPrivateSource);\n fail(\"Able to get private SourceSummary with non-owner credentials\");\n }", "@Test\n public void testSourceWithOwnerCredentials() throws WattDepotClientException {\n WattDepotClient client =\n new WattDepotClient(getHostName(), defaultOwnerUsername,\n defaultOwnerPassword);\n assertEquals(PUBLIC_SUMMARY_NOT_FOUND, client.getSourceSummary(defaultPublicSource),\n this.publicSourceSummary);\n assertEquals(\"Expected private source not found\", client\n .getSourceSummary(defaultPrivateSource), this.privateSourceSummary);\n }", "@Test(expected = NotAuthorizedException.class)\n public void testPrivateSourceBadAuth() throws WattDepotClientException {\n // Shouldn't authenticate with invalid username or password\n WattDepotClient client = new WattDepotClient(getHostName(), adminEmail, \"foo\");\n client.getSourceSummary(defaultPrivateSource);\n fail(\"Able to get SourceSummary with invalid credentials\");\n }", "@Test\n public void testSourceWithAdminCredentials() throws WattDepotClientException {\n WattDepotClient client = new WattDepotClient(getHostName(), adminEmail, adminPassword);\n assertEquals(PUBLIC_SUMMARY_NOT_FOUND, client.getSourceSummary(defaultPublicSource),\n this.publicSourceSummary);\n assertEquals(\"Expected private source not found\", client\n .getSourceSummary(defaultPrivateSource), this.privateSourceSummary);\n }", "@Test\n public void testListSummaryValidSource() throws Exception {\n command = \"summary SIM_KAHE_1\";\n if (verboseMode) {\n System.out.println(\"> \" + command);\n System.out.println(\"Checking if power source exists...\");\n }\n commandProcessor = new CommandProcessor();\n commandList = commandProcessor.parseCommand(command);\n cli = new CommandLineInterface();\n result = (new Summary()).doCommand(cli, commandList);\n assertFalse(ASSERT_SOURCE_MESSAGE, cli.errorEncountered);\n if (verboseMode) {\n System.out.println(result);\n System.out.println(OK_MESSAGE + CARRIAGE_RETURN);\n }\n }", "@Test\n public void testGetPageSource() {\n LOG.entering(CLASS, \"testGetPageSource\");\n try{\n setUrl(String.format(\"%smaintenance/\", URL));\n String result = MarionetteUtil.parseJsonObject(GET(getUri(\"getPageSource\", sessionId)).body()).getString(\"source\");\n Assertions.assertTrue(!result.isEmpty());\n LOG.exiting(CLASS, \"testGetPageSource\", result);\n } catch(Exception e){\n LOG.throwing(CLASS, \"testGetPageSource\", e);\n throw e;\n }\n }", "@Test\n\tpublic void testGetSummary() {\n\t\tassertEquals(test.getSummary(), \"This is a test requirement string\");\n\t}", "public void queryPerfProviderSummary ()\r\r\n throws Exception\r\r\n {\r\r\n boolean status = false;\r\r\n PerfProviderSummary proSummary = null;\r\r\n\r\r\n proSummary =\r\r\n this.perf.queryPerfProviderSummary(this.perfMgrMor, this.vdsMor);\r\r\n if (proSummary != null) {\r\r\n this.perf.printProviderSummary(this.vdsMor, proSummary);\r\r\n if (proSummary.getRefreshRate() == 20\r\r\n && proSummary.isCurrentSupported() == true\r\r\n && proSummary.isSummarySupported() == false) {\r\r\n status = true;\r\r\n } else {\r\r\n log.error(\"Values in proSummary is not expected!\");\r\r\n }\r\r\n } else {\r\r\n log.error(\"Returned providersummary is null\");\r\r\n }\r\r\n\r\r\n assertTrue(status, \"queryPerfProviderSummary test failed\");\r\r\n }", "@Test\n public void testListSummaryNumberOfSources() throws Exception {\n if (verboseMode) {\n System.out.println(\"Checking if SIM_OAHU_GRID has four subsources \"\n + \"(SIM_HONOLULU, SIM_IPP, SIM_KAHE, SIM_WAIAU)...\");\n }\n Source simOahuGridSource = (new CliSource()).getSource(cli, \"SIM_OAHU_GRID\");\n SubSources simOahuGridSubSources = simOahuGridSource.getSubSources();\n ArrayList<String> virtualSourcesList = new ArrayList<String>();\n virtualSourcesList.add(\"SIM_WAIAU\");\n virtualSourcesList.add(\"SIM_KAHE\");\n virtualSourcesList.add(\"SIM_IPP\");\n virtualSourcesList.add(\"SIM_HONOLULU\");\n int count = 0;\n for (String simOahuGrid : simOahuGridSubSources.getHref()) {\n for (String virtualSource : virtualSourcesList) {\n if (simOahuGrid.contains(virtualSource)) {\n count++;\n break;\n } // end if\n } // end for\n } // end for\n assertEquals(\"Checking number of subsources of SIM_OAHU_GRID\", 4, count);\n if (verboseMode) {\n System.out.println(OK_MESSAGE + CARRIAGE_RETURN + CARRIAGE_RETURN);\n }\n }", "@Test\n\tpublic void getPublicRepo() throws ClientProtocolException, IOException{\n\t\tapiUrl =prop.getProperty(\"seachPublicRepoURL\");\t\t\n\t\turl = serviceUrl + apiUrl;\n\t\trestClient = new RestClient();\n\t\tclosableHttpResponse = restClient.get(url);\n\t\t\n\t\tint statusCode = closableHttpResponse.getStatusLine().getStatusCode();\n\t\tSystem.out.println(\"Status Code:\"+statusCode);\n\t\tAssert.assertEquals(statusCode, 200, \"Status code is not 200\");\n\t\t\n\t\tString responseString = EntityUtils.toString(closableHttpResponse.getEntity());\t\t\n\t\tJSONObject responseJson = new JSONObject(responseString);\n\t\t\n\t\t//get the value from JSON array\n\t\tString full_name = TestUtil.getValueByJPath(responseJson, \"/items[0]/full_name\");\n\t\tboolean match = full_name.contains(\"github\");\n\t\tAssert.assertEquals(match, true, \"Name doesn't contain github\");\n\t\t\n\t\tString scope = TestUtil.getValueByJPath(responseJson, \"/items[0]/private\");\n\t\tAssert.assertEquals(Boolean.parseBoolean(scope), false, \"Repository is private\");\n\t\t\n\t}", "com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.TestSummaryId getTestSummary();", "@Test\n public void getSisImportStatusTest() {\n String accountId = null;\n String id = null;\n // SisImport response = api.getSisImportStatus(accountId, id);\n\n // TODO: test validations\n }", "@Test\n public void testGetSourceUnknown()\n {\n setUpSourceTest();\n assertNull(\"Wrong result for unknown key\", config\n .getSource(\"an.unknown.key\"));\n }", "@GET\n\t\t\t@Path(\"/{id}/summary\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getReleaseSummaryRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new ReleaseDao(uriInfo,header).getReleaseSummaryRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlogger.info( \"Error calling getReleaseRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "@Test\n\tpublic void testSingleSourceSelect() throws Exception {\n\t\tprepareTest(Arrays.asList(\"/tests/basic/data01endpoint1.ttl\", \"/tests/basic/data01endpoint2.ttl\"));\n\t\texecute(\"/tests/basic/query_singleSource01.rq\", \"/tests/basic/query_singleSource01.srx\", false);\n\t}", "com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.TestSummary getTestSummary();", "java.lang.String getSummary();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set value of ProcessingLogsSortOrder
public final void setProcessingLogsSortOrder(com.mendix.systemwideinterfaces.core.IContext context, interfaceconfiguration.proxies.SortOrder processinglogssortorder) { if (processinglogssortorder != null) getMendixObject().setValue(context, MemberNames.ProcessingLogsSortOrder.toString(), processinglogssortorder.toString()); else getMendixObject().setValue(context, MemberNames.ProcessingLogsSortOrder.toString(), null); }
[ "public final void setProcessingLogsSortOrder(interfaceconfiguration.proxies.SortOrder processinglogssortorder)\r\n\t{\r\n\t\tsetProcessingLogsSortOrder(getContext(), processinglogssortorder);\r\n\t}", "public final interfaceconfiguration.proxies.SortOrder getProcessingLogsSortOrder()\r\n\t{\r\n\t\treturn getProcessingLogsSortOrder(getContext());\r\n\t}", "public void setSortOrder(Integer sortOrder) {\n this.sortOrder = sortOrder;\n }", "public void changeSortOrder();", "public void setSortOrder(String sortOrder);", "public void setSortOrder(String sortOrder) {\n this.sortOrder = sortOrder;\n }", "public void setMessageSort(String messageSort);", "void xsetSortOrder(org.apache.xmlbeans.XmlInteger sortOrder);", "public final void setProcessingLogsSorting(interfaceconfiguration.proxies.ErrorSorting processinglogssorting)\r\n\t{\r\n\t\tsetProcessingLogsSorting(getContext(), processinglogssorting);\r\n\t}", "public void setSortOrder(BigDecimal value) {\r\n setAttributeInternal(SORTORDER, value);\r\n }", "void setMessageSort(Object message, Object messageSort);", "public final void setProcessingLogsSorting(com.mendix.systemwideinterfaces.core.IContext context, interfaceconfiguration.proxies.ErrorSorting processinglogssorting)\r\n\t{\r\n\t\tif (processinglogssorting != null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.ProcessingLogsSorting.toString(), processinglogssorting.toString());\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.ProcessingLogsSorting.toString(), null);\r\n\t}", "public void setSort(int v) \r\n {\r\n\r\n if (this.sort != v)\r\n {\r\n this.sort = v;\r\n setModified(true);\r\n }\r\n\r\n\r\n }", "public final void setMessagesSortOrder(interfaceconfiguration.proxies.SortOrder messagessortorder)\r\n\t{\r\n\t\tsetMessagesSortOrder(getContext(), messagessortorder);\r\n\t}", "@DISPID(3229)\n @PropPut\n void setValueSortOrder(\n com.exceljava.com4j.excel.XlValueSortOrder rhs);", "public void setSortValue(String sortValue) { mSortValue = sortValue; }", "public void setOrder(int value) {\n this.order = value;\n }", "public void testSetSortOrder() {\r\n String sortOrder = \"test\";\r\n action.setSortOrder(sortOrder);\r\n assertSame(\"setSortOrder() doesn't work properly.\", sortOrder, action.getSortOrder());\r\n }", "public void changeOrder() {\n ascending = !ascending;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Funcio que retorna el valor maxim de les dades del dia, mes o setmana.
private int maxValue(int[] dia) { int[] aux = dia.clone(); Arrays.sort(aux); return aux[aux.length - 1]; }
[ "Integer getCardinalidadeMaxima();", "public int getDuracionMax() {\n return duracionMax;\n }", "float getMax();", "Number getMax();", "public double getMaxValue() {\n\t\tdouble max = Double.NEGATIVE_INFINITY;\n\t\tfor (int i = 0; i < dataSheet.getDesignCount(); i++) {\n\t\t\tdouble value = dataSheet.getDesign(i).getDoubleValue(this);\n\t\t\tif (value > max)\n\t\t\t\tmax = value;\n\t\t}\n\t\treturn max;\n\t}", "public float DmaxMax(){\n\t\t\tfloat Dmax=this.getRivDMax();\n\t\t\tif(Dmax<this.getForDMax()){\n\t\t\t\tDmax=this.getForDMax();\n\t\t\t}\n\t\t\tif(Dmax<this.getForDMax()){\n\t\t\t\tDmax=this.getForDMax();\n\t\t\t}\n\t\t\tif(Dmax<this.getEclDMax()){\n\t\t\t\tDmax=this.getEclDMax();\n\t\t\t}\n\t\t\tif(Dmax<this.getEglDMax()){\n\t\t\t\tDmax=this.getEglDMax();\n\t\t\t}\n\t\t\tif(Dmax<this.getComDMax()){\n\t\t\t\tDmax=this.getComDMax();\n\t\t\t}\n\t\t\tif(Dmax<this.getPolDMax()){\n\t\t\t\tDmax=this.getPolDMax();\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\treturn Dmax;\t\t\n\t\t}", "long getMax();", "public double max() {\n double resultat = 0;\n double tmp = 0;\n System.out.println(\"type:\" + type);\n for (int i = 0; i < tab.size(); i++) {\n tmp = CalculatorArray.max(tab.get(i));\n if (tmp > resultat) {\n resultat = tmp;\n }\n }\n System.out.println(\"Max colonne:\" + resultat);\n return resultat;\n }", "public int getMaxHora(int dia, int hora){\r\n\t\tif (esCorrecto(dia, hora)){\r\n\t\t\tif (existeHora(dia, hora))\r\n\t\t\t\treturn cal[dia][hora].getMax();\r\n\t\t\telse\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t\telse return -1;\r\n\t}", "double getMaximum1();", "private static final double dMAX(double A, double B) { return ((A)>(B) ? (A) : (B)); }", "private int findMaxDays() {\n if (absorbDays > consumptDays) return absorbDays;\n else return consumptDays;\n }", "public double getDataMax() {\r\n\r\n if (values == null) {\r\n return SetMax;\r\n } else if (values.length == 0) {\r\n return 0;\r\n }\r\n\r\n double max = -9999999;\r\n\r\n for (int i = 0; i < values.length; i++) {\r\n if (max < values[i]) {\r\n max = values[i];\r\n }\r\n }\r\n\r\n //System.out.print(\"\\nmax: \"+max);\r\n\r\n //This (+1) could possibly cause problems! Is is there because the plot does not contain\r\n\r\n //the rightmost point..\r\n\r\n return max;\r\n\r\n\r\n\r\n\r\n\r\n //return 0.5;\r\n\r\n }", "float getPm25Max();", "public double calcularAlvoMaximo() {\r\n\t\treturn calcularFrequenciaMaxima()*0.85;\r\n\t}", "public Double getDiamateMax() {\n return diamateMax;\n }", "public double max() {\r\n \t\t\r\n\t\tdouble maxValue = 0.0;\r\n\t\t\r\n\t\tfor(int i = 0; i < this.size(); i++) {\r\n\t\t\tif (this.values[i] > maxValue) maxValue = this.values[i];\r\n\t\t}\r\n\t\t\r\n\t\treturn maxValue;\r\n \t}", "public double maxValue(DateTime dt1, DateTime dt2) throws Exception {\r\n Candle[] cd = collectCandlesByIndex(find_index(dt1), find_index(dt2));\r\n double max;\r\n if (cd.length > 1) {\r\n max = cd[0].getHigh();\r\n for (Candle c : cd) {\r\n if (c.getHigh() > max){\r\n max = c.getHigh();\r\n }\r\n }\r\n return max;\r\n } else if (cd.length == 1) {\r\n return cd[0].getHigh();\r\n } else {\r\n return 0;\r\n }\r\n }", "public double getMaxValue() {\n double max = Double.NEGATIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] > max)\n max = data[i][j];\n }\n }\n return max;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return songs owned by this user
public List<Song> owned() { return owned; }
[ "@Override\n public User[] getUsersWhoListenedAllSongs(String artistName){\n String query = \"select u.userID from user u where not exists\"+ \n \" (select * from song s where not exists \"+\n \" (select l.songID from listen l where l.songID=s.songID and l.userID=u.userID))\"+\n \" order by u.userID;\";\n List<User> lst = new ArrayList<User>();\n try{\n Statement st=this.connection.createStatement();\n ResultSet rs = st.executeQuery(query);\n while(rs.next()){\n int id = rs.getInt(\"userID\");\n String u_name = rs.getString(\"userName\");\n String e_name = rs.getString(\"email\");\n String p_name = rs.getString(\"password\");\n User temp = new User(id, u_name, e_name, p_name);\n lst.add(temp);\n }\n st.close();\n\n } catch (SQLException e){\n e.printStackTrace();\n }\n int sz = lst.size();\n User[] res = new User[sz];\n lst.toArray(res);\n return res;\n }", "@Query(\"SELECT s FROM Song s WHERE user_id!=?1 ORDER BY title ASC\")\n\tList<Song> findOtherSongs(Long userId);", "List<Album> getAlbumsByUserId(Integer userId);", "public List<UserAlbum> getAlbumsByUsers() {\n\t\treturn Collections.emptyList();\n\t}", "@Override\n public ArrayList<Book> getBookListOfUser(Student owner)\n {\n ArrayList<Book> books = new ArrayList<>();\n\n for (int i = 0; i < allUsers.size(); i++)\n {\n if (owner.equals(allUsers.getStudents().get(i)))\n {\n books = allUsers.getStudents().get(i).getBookList().getBookList();\n\n }\n }\n return books;\n\n }", "TasteProfile.TopThreeSongs getTopThreeSongsByUser (String user_id);", "protected abstract List<T> getOwnedEntities(User owner);", "public List<Song> allSongs(){\n\t\treturn songRepository.findAll();\n\t}", "public Set<Account> getAccountsForOwner(String username);", "public void searchSongsByUser(String userID, String searchId);", "@Override\n public List<User> findByOwnerID(ID ownerId) {\n // In this case, there should only be one User returned in the list\n List<User> output = new ArrayList<>();\n for(User user : users) {\n if(user.hasID(ownerId)) {\n output.add(user);\n }\n }\n return output;\n }", "public Album[] getSelectableAlbums() {\n User u = db.getLoggedInUser();\n Set<Album> result = new HashSet<>();\n result.add(null);\n result.addAll(u.getCreatedAlbums());\n for (Label l : u.getManagedLabels()) {\n for (User lu : l.getArtists()) {\n result.addAll(lu.getCreatedAlbums());\n }\n }\n Album[] resultArray = new Album[result.size()];\n result.toArray(resultArray);\n return resultArray;\n }", "TasteProfile.TopThreeUsers getTopThreeUsersBySong (String song_id);", "ArrayList<Song> all_songs();", "@JsonProperty\n public Set<User> getSharedUsers() {\n return sharedUsers.stream().map(UserEvent::getUser).collect(Collectors.toSet());\n }", "public ObservableList<Game> getAllOtherUserOwnedGames() throws RemoteException, SQLException {\r\n ownedGames.clear();\r\n GameList allGames = model.getAllGamesFromServer();\r\n ownedGames.clear();\r\n for(int i = 0; i < allGames.size(); i++){\r\n if(allGames.getGame(i).getUserId() == otherUser.getUserID()){\r\n ownedGames.add(allGames.getGame(i));\r\n }\r\n }\r\n return ownedGames;\r\n }", "private void albumsToSongs() {\n\t\tfor (Album album : userAlbumLikes) {\n songInputs.addAll(album.getTracks());\n\t\t}\n\t}", "int getTimesPlayedByUser (String user_id, String song_id);", "public List<String> allUsersInteractedWith(String owner)\n\t{\n\t\tSet<String> users = new HashSet<>();\n\t\tfor (Chat chat : db.findBySenderOrReceiver(owner, owner))\n\t\t{\n\t\t\t// if the receiver is the owner, the sender is someone else (the user)\n\t\t\t// and vice versa\n\t\t\tString receiver = chat.getReceiver();\n\t\t\tString sender = chat.getSender();\n\t\t\tusers.add(sender.equals(owner) ? receiver : sender);\n\t\t}\n\t\treturn new ArrayList<String>(users);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
path is a real windows path, but eclipse only uses / in it's .classpath files
private String getEclipsePathFromWindowsPath(String path) { StringBuilder sbPath = new StringBuilder(); char [] chars = path.toCharArray(); for (int i = 0; i < chars.length; i++) { char c = chars[i]; if (c == '\\') { sbPath.append('/'); } else { sbPath.append(c); } } path = sbPath.toString(); return path; }
[ "private void addClasspath(String path)\n {\n if (classpath == null)\n {\n classpath = path;\n }\n else\n {\n classpath += File.pathSeparator + path;\n }\n }", "Path getClasspath();", "public String getProjectPath() {\n String path = null;\n try {\n String tmp = Paths.get(ClassLoader.getSystemResource(\"\").toURI()).getParent().toString();\n int idx = tmp.lastIndexOf(File.separator);\n path = tmp.substring(0,idx);\n path = path + File.separator +\"src\";\n Log.debug(\"Project path is \" + path);\n } catch (URISyntaxException e) {\n Log.error( \"Project path not found!\", e );\n }\n\n return path;\n }", "String getClassPath();", "private void buildPaths()\n {\n File f = new File(ptolemyModule.getSrc(), \".classpath.default\");\n System.out.println(\"Getting Ptolemy paths from \" + f.getAbsolutePath());\n try\n {\n String pathContents = parseDotClasspath(f);\n StringTokenizer st = new StringTokenizer(pathContents, \"\\n\");\n while (st.hasMoreTokens())\n {\n String path = st.nextToken();\n paths.addElement(ptolemyModule.getName() + \"/\" + path);\n }\n }\n catch (FileNotFoundException fnfe)\n {\n System.out.println(\"ERROR: could not find the ptolemy paths.txt file at \"\n + f.getAbsolutePath()\n + \". No ptolemy classpath elements have been added.\");\n }\n catch (IOException ioe)\n {\n System.out.println(\"ERROR: could not read the ptolemy paths.txt file at \"\n + f.getAbsolutePath()\n + \". No ptolemy classpath elements have been added.\");\n }\n }", "@Override \n\t\tprotected String findEclipseOnPlatform(File dir) {\n\t\t\tFile possible = new File(dir, getWindowsExecutableName());\n\t\t\treturn (possible.isFile()) ? dir.getAbsolutePath() : null;\n\t\t}", "public static String localizePath(String path)\r\n {\r\n StringBuilder result = new StringBuilder();\r\n char nextChar;\r\n for(int i = 0; i < path.length(); i++)\r\n {\r\n nextChar = path.charAt(i);\r\n if((nextChar == '/') || (nextChar == '\\\\'))\r\n {\r\n // Convert the URI separator to the system dependent path separator\r\n result.append(File.separatorChar);\r\n }\r\n else\r\n {\r\n result.append(nextChar);\r\n }\r\n }\r\n \r\n return result.toString();\r\n }", "private List<String> getClasspaths(IProject project) {\r\n\t\tIJavaProject jprj = JavaCore.create(project);\r\n\t\tList<String> classpath = new ArrayList<String>();\r\n\t\tIWorkspaceRoot wsRoot = project.getWorkspace().getRoot();\r\n\t\tif (jprj != null) {\r\n\t\t\ttry{\r\n\t\t\t\tIClasspathEntry[] entries = jprj.getRawClasspath();\r\n\t\t\t\t\r\n\t\t\t\t//Add the default output folder if any\r\n\t\t\t\tIPath defaultLocationPath = jprj.getOutputLocation();\r\n \t\t\tif(defaultLocationPath!=null) {\r\n \t\t\tIFolder entryOutputFolder = wsRoot.getFolder(defaultLocationPath);\r\n \t\t\tclasspath.add(entryOutputFolder.getLocation().toOSString() + File.separator);\r\n \t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (IClasspathEntry en : entries) {\r\n\t\t\t\t\tif (en.getEntryKind() == IClasspathEntry.CPE_CONTAINER){\r\n\t\t\t\t\t\tString containerPath = en.getPath().toString();\r\n\t\t\t\t\t\t//Don't add the eclipse runtime and the classpath extension defined in the exclusion list\r\n\t\t\t\t\t\tif (!containerPath.startsWith(JavaRuntime.JRE_CONTAINER) && !classpathExclusionSet.contains(containerPath)){\r\n\t\t\t\t\t\t\taddEntries(JavaCore.getClasspathContainer(en.getPath(), jprj).getClasspathEntries(), classpath, jprj);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\telse if (en.getEntryKind() == IClasspathEntry.CPE_PROJECT){\r\n\t\t\t\t\t\tclasspath.add(wsRoot.findMember(en.getPath()).getLocation().toOSString() + File.separator); \r\n\t\t\t\t\t} else if(en.getEntryKind() == IClasspathEntry.CPE_SOURCE && en.getContentKind() == IPackageFragmentRoot.K_SOURCE){\r\n\t\t\t\t\t\t\t//check if is a source folder and if it has a custom output folder to add them also to the classpath\r\n\t \t\t\tIPath entryOutputLocation = en.getOutputLocation();\r\n\t \t\t\tif(entryOutputLocation!=null) {\r\n\t \t\t\tIFolder entryOutputFolder = wsRoot.getFolder(entryOutputLocation);\r\n\t \t\t\tclasspath.add(entryOutputFolder.getLocation().toOSString() + File.separator);\r\n\t \t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//It is a jar check if it is internal to the workspace of external\r\n\t\t\t\t\t\tIPath location = wsRoot.getFile(en.getPath()).getLocation();\r\n\t\t\t\t\t\tif (location == null){\r\n\t\t\t\t\t\t\t//The location could not be resolved from the root of the workspace, it is external\r\n\t\t\t\t\t\t\tclasspath.add(en.getPath().toOSString());\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t//The location has been resolved from the root of the workspace, it is internal\r\n\t\t\t\t\t\t\tclasspath.add(location.toOSString());\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}catch(Exception ex){\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn classpath;\r\n\t}", "private Path getClasspath() {\n return getRef().classpath;\n }", "public static String getProjectPath()\r\n {\r\n return System.getProperty(\"user.dir\").replace(\"\\\\\", \"/\");\r\n }", "private String getFilePath(){\n\t\tString os = System.getProperty(\"os.name\");\n\n\t\tif (os.contains(\"Windows\")){\n\t\t\treturn System.getProperty(\"user.dir\") + \"\\\\src\\\\main\\\\java\\\\papapizza\\\\office\\\\config.txt\";\n\t\t}\n\t\telse {\n\t\t\treturn System.getProperty(\"user.dir\") +\"/src/main/java/papapizza/office/config.txt\";\n\t\t}\n\t}", "public String getLocationPath();", "String getNativePath();", "public String getSystemClassPath();", "String getUtilPath();", "private void checkPathValidity() {\r\n String libraryPath = System.getProperty(\"java.library.path\");\r\n String[] libraryPaths = libraryPath.split(\";\");\r\n Vector<String> conflictingPaths = new Vector<String>();\r\n for (String path : libraryPaths) {\r\n if (path.contains(\" \") && !path.startsWith(\"\\\"\") && !path.endsWith(\"\\\"\")) {\r\n conflictingPaths.add(path);\r\n }\r\n }\r\n if (!conflictingPaths.isEmpty()) {\r\n String formattedPath = \"\";\r\n for (String conflictPath : conflictingPaths) {\r\n formattedPath += \"'\" + conflictPath + \"', \";\r\n }\r\n // cut last \", \"\r\n formattedPath = formattedPath.substring(0, formattedPath.length() - 2);\r\n LOGGER.warn(\"The environment variable java.library.path contains \"\r\n + \" unescaped spaces. This may lead to errors loading \"\r\n + \"the necessary dynamic link libraries of R.\\n\\n\"\r\n + \"Conflicting parts of the java.library.path are: \" + formattedPath + \"\\n\\n\"\r\n + \"A possible solution is to set the library path to\"\r\n + \" point to the path containing jri.dll via the -D\"\r\n + \" command line switch of the java VM of by setting\"\r\n + \" it via the eclipse.ini file. However, this does\" + \" not work in all cases.\");\r\n }\r\n }", "private String convertPathToSystemPath(String path) {\n String convertedPath = path;\n String pathIdentifier = \"\\\\\" + Character.toString(CHAR_FILE_SEP);\n convertedPath = convertedPath.replaceAll(\"(\\\\\\\\)+\", pathIdentifier);\n convertedPath = convertedPath.replaceAll(\"/+\", pathIdentifier);\n \n if (convertedPath.length() != 0 && convertedPath.charAt(convertedPath.length() - 1) == CHAR_FILE_SEP) {\n convertedPath = convertedPath.substring(0, convertedPath.length() - 1);\n }\n \n return convertedPath;\n }", "private static String getProjectPathString() {\n Path projectPath = Paths.get(\"\").toAbsolutePath();\n String projectPathString = projectPath.normalize().toString();\n return projectPathString;\n }", "public String resolvePath();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the updateMZRZResult value for this UpdateMZRZResponse.
public org.tempuri.ReturnExComm getUpdateMZRZResult() { return updateMZRZResult; }
[ "public void setUpdateMZRZResult(org.tempuri.ReturnExComm updateMZRZResult) {\r\n this.updateMZRZResult = updateMZRZResult;\r\n }", "public java.lang.String getGf_updateYktSjJsztResult() {\r\n return gf_updateYktSjJsztResult;\r\n }", "public Boolean getMvrResult() {\n\t\treturn mvrResult;\n\t}", "public org.tempuri.GetZyKSResponseGetZyKSResult getGetZyKSResult() {\r\n return getZyKSResult;\r\n }", "@JsonProperty(\"qc_result_zip_info\")\n public BamQZResultZipFileInfo getQcResultZipInfo() {\n return qcResultZipInfo;\n }", "public boolean isRz() {\n return rz;\n }", "public int getSendSmsReExResult() {\n return sendSmsReExResult;\n }", "public UpdateCheck.UpdateResult getResult() {\r\n\t this.waitForThread();\r\n\t return this.result;\r\n\t }", "public org.tempuri.ReturnExComm getUPdateTCMXResult() {\r\n return UPdateTCMXResult;\r\n }", "public String getSjrZjCode() {\r\n\t\treturn sjrZjCode;\r\n\t}", "public double getRocketZ()\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(ROCKETZ$24, 0);\n if (target == null)\n {\n return 0.0;\n }\n return target.getDoubleValue();\n }\n }", "public Updater.UpdateResult getResult()\n {\n waitForThread();\n return result;\n }", "public int getLRZx(){\r\n\t\treturn this.LRZx;\r\n\t}", "public void setGf_updateYktSjJsztResult(java.lang.String gf_updateYktSjJsztResult) {\r\n this.gf_updateYktSjJsztResult = gf_updateYktSjJsztResult;\r\n }", "public co.com.tigo.gatewaytigov19.webscp.ws.RechargeRevResponseDTO getRechargeRevResponse() {\n return rechargeRevResponse;\n }", "@ZAttr(id=1058)\n public String getVersionCheckLastResponse() {\n return getAttr(Provisioning.A_zimbraVersionCheckLastResponse, null);\n }", "public String getZcxz() {\n return zcxz;\n }", "com.conferma.cpapi.UpdateDeploymentResponse getUpdateDeploymentResult();", "public java.lang.Integer getSizeZ() {\r\n return sizeZ;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Change the status of the trip
public void postStatus(int status, String username, String password, String tripid) { RequestParams params = new RequestParams(); params.add("tripstatus", String.valueOf(status)); params.add("tripid", tripid); params.add("username", username); params.add("password", password); //If change trip status successful, temporarily update TripItem in myTripContent //After returning to main page, will do a true reload and get info from the server HttpUtils.post("api/trip/status", params, new JsonHttpResponseHandler() { @Override public void onSuccess(int statusCode, Header[] headers, JSONObject response) { try { error = ""; //Resets Trip Item with new status myTripContent.TripItem tempItem = myTripContent.ITEM_MAP.remove(tripid); myTripContent.TripItem newItem = new myTripContent.TripItem(Integer.valueOf(tripid), status, tempItem.costPerStop, tempItem.startdate, tempItem.enddate, tempItem.startLocation, tempItem.stops, tempItem.passengerid); myTripContent.ITEM_MAP.put(tripid, newItem); //Refresh details setDetails(); } catch(Exception e) { error += e.getMessage(); } refreshErrorMessage(); } @Override public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject json) { error = "Failure: "; Log.e("MyApp", "Caught error", throwable); //Error logging helper try { error = json.getString("data"); } catch (JSONException e1) { error += e1.getMessage() + tripid; } refreshErrorMessage(); } }); }
[ "void notifyTripStatusChanged(Trip trip);", "public void setTripStrated(boolean value) {\n\t\tLog.i(TAG, \"*************************************\");\n\t\tLog.i(TAG, \"Setting trip status to \" + value);\n\t\tLog.i(TAG, \"*************************************\");\n\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isTripStarted\", value);\n\t\teditor.commit();\n\t}", "void setCurrentTrip(Trip trip) {\n currentTrip = trip;\n }", "private void updateRestaurantStatus(int status) {\n commonMethods.showProgressDialog(this, customDialog);\n apiService.storeavailtoggle(sessionManager.getToken(), status).enqueue(new RequestCallback(REQ_RESTAURANT_STATUS, this));\n }", "public void setTrip(Integer trip) {\n this.trip = trip;\n }", "private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heating\n\t\t\trest.setState(RestState.HEATING);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.HEATING) && temperatureSensor.getTemperature() >= (rest.getTemperature() - tolerance)) {\n\t\t\t// set status to active\n\t\t\trest.setState(RestState.ACTIVE);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.ACTIVE)\n\t\t\t\t&& (new GregorianCalendar().getTimeInMillis() - rest.getActive().getTimeInMillis()) / 1000 / 60 > rest.getDuration()) {\n\t\t\t// time is up :)\n\t\t\tif (rest.isContinueAutomatically()) {\n\t\t\t\trest.setState(RestState.COMPLETED);\n\t\t\t} else {\n\t\t\t\trest.setState(RestState.WAITING_COMPLETE);\n\t\t\t}\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t}\n\t}", "void setStatus(TaskStatus status);", "void updateTaskStatus();", "@Override\n\tpublic void setStatus(int status) {\n\t\t_pathologyData.setStatus(status);\n\t}", "Transfer updateStatus(Long id, Payment.Status status);", "public void setStatus(RideRequestStatus status) {\n this.status = status;\n }", "public void setStatus(FARM_STATUS status) {\n logger.debug(\"Changing farm status for \" + getVillage() + \" from \" + this.status + \" to \" + status);\n this.status = status;\n switch (this.status) {\n case CONQUERED:\n case TROOPS_FOUND:\n case LOCKED:\n inactive = true;\n break;\n default:\n inactive = false;\n break;\n\n }\n }", "void changeStatus(Long id, Boolean active) throws ValidationException, NotFoundException;", "public void trip() {\n\t\topenState.enterState(state.get());\n\t}", "public void updateTrip() {\n if (allStopTimes.getColOfStopTimes().size() > 0) {\n stopTimesInTrip = allStopTimes.searchTripIdTimes(tripId);\n }\n }", "public synchronized void changeServiceStatus() {\n\t\tthis.serviced = true;\n\t}", "public void setStatus(DoitTaskStatus status) {\n this.status = status;\n }", "public void updateTrip(Booking old_booking, Booking changed_booking) {\n\t\t\n\t}", "public void setStatus(Status newStatus){\n status = newStatus;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the profile size of this timer.
public int profileSize() { return size(); }
[ "public double getProfileLength()\n {\n\n return this.profileLength;\n }", "public float getProfileLength(){\n\t\treturn profileLength;\n\t}", "public static long getDuration() {\n StopwatchState state = getState().top();\n return state.duration;\n }", "public String arrangementSizeProfile() throws DDlogException {\n this.checkHandle();\n return DDlogAPI.ddlog_arrangement_size_profile(this.hprog);\n }", "public int getDuration() {\n return mapReduceStatistics.getDuration();\n }", "public int getTotalDuration() {\n\n int iDuration = 0;\n\n for (int i = 0; i < this.getNumberOfFrames(); i++) {\n iDuration += this.getDuration(i);\n }\n\n return iDuration;\n }", "public long getStatsDuration() {\n return mStatsDurationMs;\n }", "public Double iisProfileTimeoutInSeconds() {\n return this.iisProfileTimeoutInSeconds;\n }", "public String peakArrangementSizeProfile() throws DDlogException {\n this.checkHandle();\n return DDlogAPI.ddlog_peak_arrangement_size_profile(this.hprog);\n }", "public long getMicrosecondLength();", "public static int getWindowSize() {\n\t\tProperties prop = new Properties();\n\t\tint period = 0;\n\t\ttry {\n\t\t\tInputStream input = SMAReducer.class.getClassLoader()\n\t\t\t\t\t.getResourceAsStream(PROPERTIES);\n\t\t\tprop.load(input);\n\t\t\tString windowSize = prop.getProperty(WINDOW_SIZE);\n\t\t\tperiod = Integer.parseInt(windowSize);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found \" + PROPERTIES);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException while reading properties \"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t\treturn period;\n\t}", "public int getTotalSessionDuration()\r\n {\r\n int tot = 0;\r\n \r\n Iterator<Integer> sessionIt = this.sessionDuration.iterator();\r\n while (sessionIt.hasNext())\r\n {\r\n Integer session = sessionIt.next();\r\n tot += session;\r\n }\r\n \r\n return tot;\r\n }", "public int sizeInBytes() {\n\t\tint Ibits = this.id.encode(null).getSizeBits();\n\t\tint Ebits = this.event.encode(null).getSizeBits();\n\t\treturn (int) ((Ibits + Ebits + 4) / 8);\n\t}", "public static int size_interval() {\n return (16 / 8);\n }", "public long getBytesPerSec() {\n\t\tlong elapsed = (System.nanoTime() - startTime) / 1000000000;\n\t\tif (elapsed == 0) {\n\t\t\treturn bytesWrite;\n\t\t} else {\n\t\t\treturn bytesWrite / elapsed;\n\t\t}\n\t}", "public int getProfileCount() {\n return game.profileList.size();\n }", "public int getMicrosecondsPerFrame()\n\t{\n\t\treturn microseconds_per_frame;\n\t}", "public long getMillisPerUnit();", "public int getPauseDuration() {\n try {\n // Get pauses object\n JSONObject pauses = experiment.getJSONObject(\"pauses\");\n // Try and return value under duration\n return pauses.optInt(\"duration\", 0);\n } catch (JSONException je) {\n Log.e(LOG_TAG, \"Could not parse pauses field: \" + je);\n }\n\n // Return zero if an exception occurred\n return 0;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
builder factory method for ProductTypeChangeLocalizedEnumValueLabelAction
public static ProductTypeChangeLocalizedEnumValueLabelActionBuilder builder() { return ProductTypeChangeLocalizedEnumValueLabelActionBuilder.of(); }
[ "public static ProductTypeChangeLocalizedEnumValueLabelActionBuilder builder(\n final ProductTypeChangeLocalizedEnumValueLabelAction template) {\n return ProductTypeChangeLocalizedEnumValueLabelActionBuilder.of(template);\n }", "public static ProductTypeChangeLabelActionBuilder of() {\n return new ProductTypeChangeLabelActionBuilder();\n }", "public static ProductTypeRemoveEnumValuesActionBuilder builder() {\n return ProductTypeRemoveEnumValuesActionBuilder.of();\n }", "public ProductTypeChangeLabelAction build() {\n Objects.requireNonNull(attributeName, ProductTypeChangeLabelAction.class + \": attributeName is missing\");\n Objects.requireNonNull(label, ProductTypeChangeLabelAction.class + \": label is missing\");\n return new ProductTypeChangeLabelActionImpl(attributeName, label);\n }", "public static RemoveLocalizedEnumValuesChangeBuilder of() {\n return new RemoveLocalizedEnumValuesChangeBuilder();\n }", "public static RemoveLocalizedEnumValuesChangeBuilder builder() {\n return RemoveLocalizedEnumValuesChangeBuilder.of();\n }", "EnumValue createEnumValue();", "public static ProductTypeChangeLabelActionBuilder of(final ProductTypeChangeLabelAction template) {\n ProductTypeChangeLabelActionBuilder builder = new ProductTypeChangeLabelActionBuilder();\n builder.attributeName = template.getAttributeName();\n builder.label = template.getLabel();\n return builder;\n }", "public ProductTypeChangeLabelAction buildUnchecked() {\n return new ProductTypeChangeLabelActionImpl(attributeName, label);\n }", "public static LocalizedEnumFieldBuilder builder() {\n return LocalizedEnumFieldBuilder.of();\n }", "public static ProductTypeRemoveEnumValuesActionBuilder builder(final ProductTypeRemoveEnumValuesAction template) {\n return ProductTypeRemoveEnumValuesActionBuilder.of(template);\n }", "EnumValueDefinition createEnumValueDefinition();", "public RemoveLocalizedEnumValuesChange build() {\n Objects.requireNonNull(change, RemoveLocalizedEnumValuesChange.class + \": change is missing\");\n Objects.requireNonNull(previousValue, RemoveLocalizedEnumValuesChange.class + \": previousValue is missing\");\n Objects.requireNonNull(attributeName, RemoveLocalizedEnumValuesChange.class + \": attributeName is missing\");\n return new RemoveLocalizedEnumValuesChangeImpl(change, previousValue, attributeName);\n }", "public static RemoveLocalizedEnumValuesChangeBuilder of(final RemoveLocalizedEnumValuesChange template) {\n RemoveLocalizedEnumValuesChangeBuilder builder = new RemoveLocalizedEnumValuesChangeBuilder();\n builder.change = template.getChange();\n builder.previousValue = template.getPreviousValue();\n builder.attributeName = template.getAttributeName();\n return builder;\n }", "public static RemoveLocalizedEnumValuesChangeBuilder builder(final RemoveLocalizedEnumValuesChange template) {\n return RemoveLocalizedEnumValuesChangeBuilder.of(template);\n }", "@Nullable\n public static ProductTypeChangeLocalizedEnumValueLabelAction deepCopy(\n @Nullable final ProductTypeChangeLocalizedEnumValueLabelAction template) {\n if (template == null) {\n return null;\n }\n ProductTypeChangeLocalizedEnumValueLabelActionImpl instance = new ProductTypeChangeLocalizedEnumValueLabelActionImpl();\n instance.setAttributeName(template.getAttributeName());\n instance.setNewValue(\n com.commercetools.api.models.product_type.AttributeLocalizedEnumValue.deepCopy(template.getNewValue()));\n return instance;\n }", "EFEnumLiteral createEFEnumLiteral();", "public RemoveLocalizedEnumValuesChange buildUnchecked() {\n return new RemoveLocalizedEnumValuesChangeImpl(change, previousValue, attributeName);\n }", "EnumListValue createEnumListValue();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the parent address, if this group belongs to a parent group
public void setParentAddress(final byte[] parentAddress) { this.parentAddress = parentAddress; }
[ "public void setParentGroupAssignment(FxGroupAssignment parent) {\n this.parentGroupAssignment = parent;\n }", "public static void updateParentAddress(final FusionDictionaryBufferInterface buffer,\n final int groupOriginAddress, final int newParentAddress,\n final FormatOptions formatOptions) {\n final int originalPosition = buffer.position();\n buffer.position(groupOriginAddress);\n if (!formatOptions.mSupportsDynamicUpdate) {\n throw new RuntimeException(\"this file format does not support parent addresses\");\n }\n final int flags = buffer.readUnsignedByte();\n final int parentOffset = newParentAddress - groupOriginAddress;\n putSInt24(buffer, parentOffset);\n buffer.position(originalPosition);\n }", "public void setParent(String p) { parent = p; }", "public void setParentGroup(Integer parentGroup) {\n\t\tthis.parentGroup = parentGroup;\n\t}", "public void setParent(iTData parent)\r\n {\r\n theParent = parent;\r\n }", "void setParent(CellMO parent) throws MultipleParentException {\n if (parent!=null && parentRef!=null)\n throw new MultipleParentException();\n \n if (parent==null) {\n this.parentRef = null;\n this.parentCellID = CellID.getInvalidCellID();\n } else {\n this.parentRef = AppContext.getDataManager().createReference(parent);\n this.parentCellID = parent.getCellID();\n }\n \n // notify listeners\n fireParentChangeEvent(parent);\n }", "public void setParent(Person parent) {\n\t\tthis.parent = parent;\n\t}", "public void setParentOne(int parent)\n\t{\n\t\tparentSetOne = parent;\n\t}", "public void setParent(String parent)\n {\n this.parent = parent;\n }", "public abstract void setParent(String parentName);", "public void setParent(Geometrie parent)\r\n {\r\n m_parent = parent;\r\n }", "public void setParent( Option parent, String nameInParent )\n {\n this.parent = parent;\n this.nameInParent = nameInParent;\n }", "public void setParent(AbstractConfigNode parent) {\n this.parent = parent;\n }", "public void setParent(RadioGroup rg) {\n parent = rg;\n }", "public void setParent(Node parent);", "public void setParent(AsNode parent) {\n\t\tthis.state.setG(parent.getState().getG() + parent.childCost.get(this));\n\t\tthis.parent = parent;\n\t}", "public byte[] getParentAddress() {\n return parentAddress;\n }", "void setParent(BTreeNode parent) {\n this.parent = parent;\n }", "public String getAddressOnParent() {\n return addressOnParent;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the configured UrlPathHelper or a default, shared instance otherwise.
protected UrlPathHelper getUrlPathHelperOrDefault() { if (this.urlPathHelper != null) { return this.urlPathHelper; } if (this.defaultUrlPathHelper == null) { this.defaultUrlPathHelper = new UrlPathHelper(); } return this.defaultUrlPathHelper; }
[ "public UrlPathHelper getUrlPathHelper() {\n\t\treturn this.urlPathHelper;\n\t}", "protected PathMatcher getPathMatcherOrDefault() {\n\t\tif (this.pathMatcher != null) {\n\t\t\treturn this.pathMatcher;\n\t\t}\n\t\tif (this.defaultPathMatcher == null) {\n\t\t\tthis.defaultPathMatcher = new AntPathMatcher();\n\t\t}\n\t\treturn this.defaultPathMatcher;\n\t}", "public DefaultHelper getDefaultHelper();", "private UrlFactoryProvider getUrlFactoryProvider()\n {\n if (this.urlFactoryProvider == null) {\n this.urlFactoryProvider = new UrlFactoryProvider();\n }\n\n return this.urlFactoryProvider;\n }", "@Nullable\n static public <P extends UrlProvider> P urlProvider(Class<P> inter)\n {\n return ModuleLoader.getInstance().getUrlProvider(inter);\n }", "IHttpHelper getHttpHelper() {\n return new HttpHelper();\n }", "public PathPatternParser getPatternParserOrDefault() {\n\t\tif (this.patternParser != null) {\n\t\t\treturn this.patternParser;\n\t\t}\n\t\tif (this.defaultPatternParser == null) {\n\t\t\tthis.defaultPatternParser = new PathPatternParser();\n\t\t}\n\t\treturn this.defaultPatternParser;\n\t}", "public SeoCatalogUrlWorker getUrlWorker() {\n SeoCatalogUrlWorker urlWorker = this.urlWorker;\n if (urlWorker == null) {\n synchronized(this) {\n if (urlWorker == null) {\n if (getUrlWorkerFactory() != null) {\n urlWorker = getUrlWorkerFactory().getUrlWorker(this);\n } else {\n // TODO/FIXME: Before this fallback we should check the factory defined on the common/default SeoConfig...\n urlWorker = SeoCatalogUrlWorker.Factory.getDefault().getUrlWorker(this);\n }\n }\n }\n }\n return urlWorker;\n }", "public static PathResolver getInstance() {\r\n\r\n\t\tif (instance == null) instance = new PathResolver();\r\n\t\treturn instance;\r\n\r\n\t}", "public interface ISimpleURL\n{\n /**\n * @return The protocol used. May be <code>null</code> for an unknown\n * protocol.\n */\n @Nullable\n default IURLProtocol getProtocol ()\n {\n return URLProtocolRegistry.getInstance ().getProtocol (getPath ());\n }\n\n /**\n * @return <code>true</code> if the URL has a known protocol\n */\n default boolean hasKnownProtocol ()\n {\n return URLProtocolRegistry.getInstance ().hasKnownProtocol (getPath ());\n }\n\n /**\n * @return The path part of the URL (everything before the \"?\" and the \"#\",\n * incl. the protocol). Never <code>null</code> but maybe empty (e.g.\n * for \"?x=y\").\n */\n @Nonnull\n String getPath ();\n\n /**\n * @return A map of all query string parameters. May be <code>null</code>.\n */\n @Nullable\n @ReturnsMutableObject\n URLParameterList params ();\n\n /**\n * @return The name of the anchor (everything after the \"#\") or\n * <code>null</code> if none is defined.\n */\n @Nullable\n String getAnchor ();\n\n /**\n * @return <code>true</code> if an anchor is present, <code>false</code>\n * otherwise.\n */\n default boolean hasAnchor ()\n {\n return StringHelper.hasText (getAnchor ());\n }\n\n /**\n * Check if this URL has an anchor with the passed name.\n *\n * @param sAnchor\n * The anchor name to check.\n * @return <code>true</code> if the passed anchor is present.\n */\n default boolean hasAnchor (@Nullable final String sAnchor)\n {\n return EqualsHelper.equals (sAnchor, getAnchor ());\n }\n\n /**\n * @return The final string representation of this URL not encoding the\n * request parameters.\n */\n @Nonnull\n default String getAsStringWithoutEncodedParameters ()\n {\n return URLHelper.getURLString (this, (Charset) null);\n }\n\n /**\n * @return The final string representation of this URL with encoded URL\n * parameter keys and values. Using the default URL charset as\n * determined by {@link URLHelper#CHARSET_URL_OBJ}.\n */\n @Nonnull\n default String getAsStringWithEncodedParameters ()\n {\n return URLHelper.getURLString (this, URLHelper.CHARSET_URL_OBJ);\n }\n\n /**\n * @param aCharset\n * The charset used for encoding the parameters. May not be\n * <code>null</code>.\n * @return The final string representation of this URL with encoded URL\n * parameter keys and values.\n */\n @Nonnull\n default String getAsStringWithEncodedParameters (@Nonnull final Charset aCharset)\n {\n ValueEnforcer.notNull (aCharset, \"ParameterCharset\");\n return URLHelper.getURLString (this, aCharset);\n }\n\n @Nullable\n default URL getAsURL ()\n {\n return URLHelper.getAsURL (getAsStringWithEncodedParameters ());\n }\n\n @Nullable\n default URI getAsURI ()\n {\n return URLHelper.getAsURI (getAsStringWithEncodedParameters ());\n }\n}", "public static ViewHelpers getInstance() {\n if (instance == null) {\n instance = new ViewHelpers();\n }\n return instance;\n }", "public interface UrlConfigurationConfigurer {\n\n /**\n * Create a new configuration instance for a specific url pattern.\n *\n * @param matcher nonnull ant path matcher for the url.\n * @param configuration configuration for the url matcher.\n * @return updated url configurer.\n */\n UrlConfigurationConfigurer configurationFor(String matcher,\n RequestConfiguration configuration);\n\n /**\n * Finalize configuration and create a http factory.\n *\n * @return http factory with injected configuration settings.\n */\n ClientHttpRequestFactory toFactory();\n}", "public static URL getUrl() \n\t{\n\t\tLOGGER.info(\"Entered in getUrl method\");\n\t\ttry \n\t\t{\n\t\t\tif(url == null)\n\t\t\t{\n\t\t\t\tLOGGER.info(\"Exited from getUrl method\");\n\t\t\t\treturn new URL(Config.getString(\"spar.plms.rooturl\",\"spar.plms.rooturl\"));\n\t\t\t}\n\t\t} \n\t\tcatch (MalformedURLException msg) \n\t\t{\n\t\t\tLOGGER.info(\"Error on get url from singleton method:::::: \"+msg);\n\t\t}\n\t\tLOGGER.info(\"Exited from getUrl method\");\n\t\treturn url;\n\t}", "@JsonIgnore\n @Description(\n \"The path validator instance that should be used to validate paths. \"\n + \"If no path validator has been set explicitly, the default is to use the instance factory \"\n + \"that constructs a path validator based upon the currently set pathValidatorClass.\")\n @Default.InstanceFactory(PathValidatorFactory.class)\n PathValidator getPathValidator();", "public static PathAnchor classpath() {\n return classpath(Config.class.getClassLoader());\n }", "final public static Path getInstance () {\n\n\tif (INSTANCE == null) {\n\t String path = System.getProperty (\"composer.model.path\") ;\n\t LOGGER.fine (\"composer.model.path is \\\"\" + path + '\"') ;\n\t INSTANCE = new Path ( (path != null) ? path.trim () : \".\" ) ;\n\t}\n\n\treturn INSTANCE ;\n }", "public interface UrlFormatter {\n\n /**\n * The canonical base URL where this Gerrit installation can be reached.\n *\n * <p>For the default implementations below to work, it must end in \"/\".\n */\n Optional<String> getWebUrl();\n\n /** Returns the URL for viewing a change. */\n default Optional<String> getChangeViewUrl(Project.NameKey project, Change.Id id) {\n\n // In the PolyGerrit URL (contrary to REST URLs) there is no need to URL-escape strings, since\n // the /+/ separator unambiguously defines how to parse the path.\n return getWebUrl().map(url -> url + \"c/\" + project.get() + \"/+/\" + id.get());\n }\n\n /** Returns the URL for viewing the comment tab view of a change. */\n default Optional<String> getCommentsTabView(Change change) {\n return getChangeViewUrl(change.getProject(), change.getId()).map(url -> url + \"?tab=comments\");\n }\n\n /** Returns the URL for viewing the findings tab view of a change. */\n default Optional<String> getFindingsTabView(Change change) {\n return getChangeViewUrl(change.getProject(), change.getId()).map(url -> url + \"?tab=findings\");\n }\n\n /** Returns the URL for viewing a comment in a file for a change. */\n default Optional<String> getInlineCommentView(Change change, String uuid) {\n return getChangeViewUrl(change.getProject(), change.getId())\n .map(url -> url + \"/comment/\" + uuid);\n }\n\n /** Returns a URL pointing to the settings page. */\n default Optional<String> getSettingsUrl() {\n return getWebUrl().map(url -> url + \"settings\");\n }\n\n /**\n * Returns a URL pointing to a section of the settings page, or the settings page if {@code\n * section} is null.\n */\n default Optional<String> getSettingsUrl(@Nullable String section) {\n return Strings.isNullOrEmpty(section)\n ? getSettingsUrl()\n : getSettingsUrl().map(url -> url + \"#\" + section);\n }\n\n /** Returns a URL pointing to a documentation page, at a given named anchor. */\n default Optional<String> getDocUrl(String page, String anchor) {\n return getWebUrl().map(url -> url + \"Documentation/\" + page + \"#\" + anchor);\n }\n\n /** Returns a URL pointing to a plugin documentation page, at a given named anchor. */\n default Optional<String> getPluginDocUrl(String pluginName, String page, String anchor) {\n return getWebUrl()\n .map(url -> url + \"plugins/\" + pluginName + \"/Documentation/\" + page + \"#\" + anchor);\n }\n\n /** Returns a REST API URL for a given suffix (eg. \"accounts/self/details\") */\n default Optional<String> getRestUrl(String suffix) {\n return getWebUrl().map(url -> url + suffix);\n }\n}", "public static ProjectHelper getProjectHelper()\n throws BuildException {\n // Identify the class loader we will be using. Ant may be\n // in a webapp or embedded in a different app\n ProjectHelper helper = null;\n\n // First, try the system property\n String helperClass = System.getProperty(HELPER_PROPERTY);\n try {\n if (helperClass != null) {\n helper = newHelper(helperClass);\n }\n } catch (SecurityException e) {\n System.out.println(\"Unable to load ProjectHelper class \\\"\"\n + helperClass + \" specified in system property \"\n + HELPER_PROPERTY);\n }\n\n // A JDK1.3 'service' ( like in JAXP ). That will plug a helper\n // automatically if in CLASSPATH, with the right META-INF/services.\n if (helper == null) {\n try {\n ClassLoader classLoader = LoaderUtils.getContextClassLoader();\n InputStream is = null;\n if (classLoader != null) {\n is = classLoader.getResourceAsStream(SERVICE_ID);\n }\n if (is == null) {\n is = ClassLoader.getSystemResourceAsStream(SERVICE_ID);\n }\n\n if (is != null) {\n // This code is needed by EBCDIC and other strange systems.\n // It's a fix for bugs reported in xerces\n InputStreamReader isr;\n try {\n isr = new InputStreamReader(is, \"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n isr = new InputStreamReader(is);\n }\n BufferedReader rd = new BufferedReader(isr);\n\n String helperClassName = rd.readLine();\n rd.close();\n\n if (helperClassName != null\n && !\"\".equals(helperClassName)) {\n\n helper = newHelper(helperClassName);\n }\n }\n } catch (Exception ex) {\n System.out.println(\"Unable to load ProjectHelper \"\n + \"from service \\\"\" + SERVICE_ID);\n }\n }\n\n if (helper != null) {\n return helper;\n } else {\n return new ProjectHelper2();\n }\n }", "UrlConfigurationConfigurer configurationFor(String matcher,\n RequestConfiguration configuration);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes a presenterImport value.
public void delPresenterImport(String value){ ((ViewDMO) core).delPresenterImport(value); }
[ "public void delPresenterImport(Object value) throws DmcValueException {\n ((ViewDMO) core).delPresenterImport(value);\n }", "void deleteImportName(ImportNameEntity importName);", "public void delViewImport(String value){\n ((ViewDMO) core).delViewImport(value);\n }", "void deleteImporter(ImporterEntity importer);", "public void delSharedImport(String value){\n ((ViewDMO) core).delSharedImport(value);\n }", "public void delViewImport(Object value) throws DmcValueException {\n ((ViewDMO) core).delViewImport(value);\n }", "public void delSharedImport(Object value) throws DmcValueException {\n ((ViewDMO) core).delSharedImport(value);\n }", "public void remPresenterImport(){\n ((ViewDMO) core).remPresenterImport();\n }", "public Import removeImport(Import importDef);", "public void removeImport(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(IMPORT$0, i);\n }\n }", "public void delPresenterMethod(MethodWithArgs value){\n ((ViewDMO) core).delPresenterMethod(value);\n }", "private void deleteSelectedFile() {\r\n\t\tString sel = this.displayFileNames.getSelectedValue();\r\n\t\tif(sel != null) {\r\n\t\t\tFileModel model = FileData.getFileModel(sel);\r\n\t\t\tFileType type = model.getFileType();\r\n\t\t\tFileData.deleteFileModel(type);\r\n\t\t\tthis.setButtonEnabled(type);\r\n\t\t\tthis.loadFileNames();\r\n\t\t\tthis.updateColumnSelections(type);\r\n\t\t\tColumnData.clearMatchedCells(type);\r\n\t\t}\r\n\t}", "public void delPresenterMethod(Object value) throws DmcValueException {\n ((ViewDMO) core).delPresenterMethod(value);\n }", "public void delete () {\n\t\t\n\t\tAlbum albumToDelete = listview.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif(albumToDelete == null){\n\t\t\tAlert alert = new Alert(AlertType.WARNING);\n\t\t\talert.initOwner(stage);\n\t\t\talert.setTitle(\"Error\");\n\t\t\talert.setHeaderText(\"Error\");\n\t\t\talert.setContentText(\"No album selected\");\n\t\t\talert.showAndWait();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tactiveUser.getAlbums().remove(albumToDelete);\n\t\talbumsList.remove(albumToDelete);\n\t\t\n\t\t\n\t\tFile f = new File (\"data/\" + activeUser.getUsername() + File.separator + albumToDelete.getName());\n\t\t\n\t\ttry {\n\t\t\tController.deleteDir(f);\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t\t\n\t\t sort();\n\t}", "public void deleteProject(Project p);", "public void deleteVersion( Attachment att )\n throws ProviderException\n {\n if( m_provider == null ) return;\n\n m_provider.deleteVersion( att );\n }", "public void delDeleteEvent(EventSpec value){\n ((ViewDMO) core).delDeleteEvent(value);\n }", "public void delete(ImpHojaImplantePopPk pk) throws ImpHojaImplantePopDaoException;", "void deleteEntry(ClipboardEntryDTO entry) throws QClipboardException;" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "parse_org_emftext_refactoring_tests_properties_StringValue" $ANTLR start "parse_org_emftext_refactoring_tests_properties_Value" Testproperties.g:851:1: parse_org_emftext_refactoring_tests_properties_Value returns [org.emftext.refactoring.tests.properties.Value element = null] : (c0= parse_org_emftext_refactoring_tests_properties_EObjectReferenceValue |c1= parse_org_emftext_refactoring_tests_properties_StringValue );
public final org.emftext.refactoring.tests.properties.Value parse_org_emftext_refactoring_tests_properties_Value() throws RecognitionException { org.emftext.refactoring.tests.properties.Value element = null; int parse_org_emftext_refactoring_tests_properties_Value_StartIndex = input.index(); org.emftext.refactoring.tests.properties.EObjectReferenceValue c0 =null; org.emftext.refactoring.tests.properties.StringValue c1 =null; try { if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return element; } // Testproperties.g:852:2: (c0= parse_org_emftext_refactoring_tests_properties_EObjectReferenceValue |c1= parse_org_emftext_refactoring_tests_properties_StringValue ) int alt4=2; int LA4_0 = input.LA(1); if ( (LA4_0==QUOTED_60_62) ) { alt4=1; } else if ( (LA4_0==QUOTED_34_34) ) { alt4=2; } else { if (state.backtracking>0) {state.failed=true; return element;} NoViableAltException nvae = new NoViableAltException("", 4, 0, input); throw nvae; } switch (alt4) { case 1 : // Testproperties.g:853:2: c0= parse_org_emftext_refactoring_tests_properties_EObjectReferenceValue { pushFollow(FOLLOW_parse_org_emftext_refactoring_tests_properties_EObjectReferenceValue_in_parse_org_emftext_refactoring_tests_properties_Value490); c0=parse_org_emftext_refactoring_tests_properties_EObjectReferenceValue(); state._fsp--; if (state.failed) return element; if ( state.backtracking==0 ) { element = c0; /* this is a subclass or primitive expression choice */ } } break; case 2 : // Testproperties.g:854:4: c1= parse_org_emftext_refactoring_tests_properties_StringValue { pushFollow(FOLLOW_parse_org_emftext_refactoring_tests_properties_StringValue_in_parse_org_emftext_refactoring_tests_properties_Value500); c1=parse_org_emftext_refactoring_tests_properties_StringValue(); state._fsp--; if (state.failed) return element; if ( state.backtracking==0 ) { element = c1; /* this is a subclass or primitive expression choice */ } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving if ( state.backtracking>0 ) { memoize(input, 8, parse_org_emftext_refactoring_tests_properties_Value_StartIndex); } } return element; }
[ "public final org.emftext.refactoring.tests.properties.StringValue parse_org_emftext_refactoring_tests_properties_StringValue() throws RecognitionException {\r\n org.emftext.refactoring.tests.properties.StringValue element = null;\r\n\r\n int parse_org_emftext_refactoring_tests_properties_StringValue_StartIndex = input.index();\r\n\r\n Token a0=null;\r\n\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 7) ) { return element; }\r\n\r\n // Testproperties.g:809:2: ( (a0= QUOTED_34_34 ) )\r\n // Testproperties.g:810:2: (a0= QUOTED_34_34 )\r\n {\r\n // Testproperties.g:810:2: (a0= QUOTED_34_34 )\r\n // Testproperties.g:811:3: a0= QUOTED_34_34\r\n {\r\n a0=(Token)match(input,QUOTED_34_34,FOLLOW_QUOTED_34_34_in_parse_org_emftext_refactoring_tests_properties_StringValue458); if (state.failed) return element;\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\tif (terminateParsing) {\r\n \t\t\t\tthrow new org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesTerminateParsingException();\r\n \t\t\t}\r\n \t\t\tif (element == null) {\r\n \t\t\t\telement = org.emftext.refactoring.tests.properties.PropertiesFactory.eINSTANCE.createStringValue();\r\n \t\t\t\tstartIncompleteElement(element);\r\n \t\t\t}\r\n \t\t\tif (a0 != null) {\r\n \t\t\t\torg.emftext.refactoring.tests.properties.resource.testproperties.ITestpropertiesTokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"QUOTED_34_34\");\r\n \t\t\t\ttokenResolver.setOptions(getOptions());\r\n \t\t\t\torg.emftext.refactoring.tests.properties.resource.testproperties.ITestpropertiesTokenResolveResult result = getFreshTokenResolveResult();\r\n \t\t\t\ttokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.refactoring.tests.properties.PropertiesPackage.STRING_VALUE__VALUE), result);\r\n \t\t\t\tObject resolvedObject = result.getResolvedToken();\r\n \t\t\t\tif (resolvedObject == null) {\r\n \t\t\t\t\taddErrorToResource(result.getErrorMessage(), ((CommonToken) a0).getLine(), ((CommonToken) a0).getCharPositionInLine(), ((CommonToken) a0).getStartIndex(), ((CommonToken) a0).getStopIndex());\r\n \t\t\t\t}\r\n \t\t\t\tjava.lang.String resolved = (java.lang.String) resolvedObject;\r\n \t\t\t\tif (resolved != null) {\r\n \t\t\t\t\tObject value = resolved;\r\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.refactoring.tests.properties.PropertiesPackage.STRING_VALUE__VALUE), value);\r\n \t\t\t\t\tcompletedElement(value, false);\r\n \t\t\t\t}\r\n \t\t\t\tcollectHiddenTokens(element);\r\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.refactoring.tests.properties.resource.testproperties.grammar.TestpropertiesGrammarInformationProvider.TESTPROPERTIES_5_0_0_0, resolved, true);\r\n \t\t\t\tcopyLocalizationInfos((CommonToken) a0, element);\r\n \t\t\t}\r\n \t\t}\r\n\r\n }\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t// expected elements (follow set)\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[25]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[26]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[27]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getPropertyModel(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[28]);\r\n \t}\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 7, parse_org_emftext_refactoring_tests_properties_StringValue_StartIndex); }\r\n\r\n }\r\n return element;\r\n }", "public final org.emftext.refactoring.tests.properties.EObjectReferenceValue parse_org_emftext_refactoring_tests_properties_EObjectReferenceValue() throws RecognitionException {\r\n org.emftext.refactoring.tests.properties.EObjectReferenceValue element = null;\r\n\r\n int parse_org_emftext_refactoring_tests_properties_EObjectReferenceValue_StartIndex = input.index();\r\n\r\n Token a0=null;\r\n\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 6) ) { return element; }\r\n\r\n // Testproperties.g:760:2: ( (a0= QUOTED_60_62 ) )\r\n // Testproperties.g:761:2: (a0= QUOTED_60_62 )\r\n {\r\n // Testproperties.g:761:2: (a0= QUOTED_60_62 )\r\n // Testproperties.g:762:3: a0= QUOTED_60_62\r\n {\r\n a0=(Token)match(input,QUOTED_60_62,FOLLOW_QUOTED_60_62_in_parse_org_emftext_refactoring_tests_properties_EObjectReferenceValue418); if (state.failed) return element;\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\tif (terminateParsing) {\r\n \t\t\t\tthrow new org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesTerminateParsingException();\r\n \t\t\t}\r\n \t\t\tif (element == null) {\r\n \t\t\t\telement = org.emftext.refactoring.tests.properties.PropertiesFactory.eINSTANCE.createEObjectReferenceValue();\r\n \t\t\t\tstartIncompleteElement(element);\r\n \t\t\t}\r\n \t\t\tif (a0 != null) {\r\n \t\t\t\torg.emftext.refactoring.tests.properties.resource.testproperties.ITestpropertiesTokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"QUOTED_60_62\");\r\n \t\t\t\ttokenResolver.setOptions(getOptions());\r\n \t\t\t\torg.emftext.refactoring.tests.properties.resource.testproperties.ITestpropertiesTokenResolveResult result = getFreshTokenResolveResult();\r\n \t\t\t\ttokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.refactoring.tests.properties.PropertiesPackage.EOBJECT_REFERENCE_VALUE__OBJECT_REFERENCE), result);\r\n \t\t\t\tObject resolvedObject = result.getResolvedToken();\r\n \t\t\t\tif (resolvedObject == null) {\r\n \t\t\t\t\taddErrorToResource(result.getErrorMessage(), ((CommonToken) a0).getLine(), ((CommonToken) a0).getCharPositionInLine(), ((CommonToken) a0).getStartIndex(), ((CommonToken) a0).getStopIndex());\r\n \t\t\t\t}\r\n \t\t\t\tString resolved = (String) resolvedObject;\r\n \t\t\t\torg.eclipse.emf.ecore.EObject proxy = org.eclipse.emf.ecore.EcoreFactory.eINSTANCE.createEObject();\r\n \t\t\t\tcollectHiddenTokens(element);\r\n \t\t\t\tregisterContextDependentProxy(new org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesContextDependentURIFragmentFactory<org.emftext.refactoring.tests.properties.EObjectReferenceValue, org.eclipse.emf.ecore.EObject>(getReferenceResolverSwitch() == null ? null : getReferenceResolverSwitch().getEObjectReferenceValueObjectReferenceReferenceResolver()), element, (EReference) element.eClass().getEStructuralFeature(org.emftext.refactoring.tests.properties.PropertiesPackage.EOBJECT_REFERENCE_VALUE__OBJECT_REFERENCE), resolved, proxy);\r\n \t\t\t\tif (proxy != null) {\r\n \t\t\t\t\tObject value = proxy;\r\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.refactoring.tests.properties.PropertiesPackage.EOBJECT_REFERENCE_VALUE__OBJECT_REFERENCE), value);\r\n \t\t\t\t\tcompletedElement(value, false);\r\n \t\t\t\t}\r\n \t\t\t\tcollectHiddenTokens(element);\r\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.refactoring.tests.properties.resource.testproperties.grammar.TestpropertiesGrammarInformationProvider.TESTPROPERTIES_4_0_0_0, proxy, true);\r\n \t\t\t\tcopyLocalizationInfos((CommonToken) a0, element);\r\n \t\t\t\tcopyLocalizationInfos((CommonToken) a0, proxy);\r\n \t\t\t}\r\n \t\t}\r\n\r\n }\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t// expected elements (follow set)\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[21]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[22]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[23]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getPropertyModel(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[24]);\r\n \t}\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 6, parse_org_emftext_refactoring_tests_properties_EObjectReferenceValue_StartIndex); }\r\n\r\n }\r\n return element;\r\n }", "public void testCreateValue() {\n System.out.println(\"createValue\"); // NOI18N\n \n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n String value = \"Test value\";// NOI18N\n PropertyValue result = PropertyValue.createValue(new PrimitiveDescriptorSupport().getDescriptorForTypeIDString(TypesSupport.TYPEID_JAVA_LANG_STRING.getString()), type, value);\n assertEquals(PropertyValue.Kind.VALUE,result.getKind());\n assertEquals(type,result.getType());\n assertEquals(value,result.getValue());\n }", "java.lang.String getStringValue();", "public final EObject rulePropertyValueExpression() throws RecognitionException {\n EObject current = null;\n\n Token lv_value_0_0=null;\n\n enterRule(); \n \n try {\n // InternalDsl.g:2609:28: ( ( (lv_value_0_0= RULE_STRING ) ) )\n // InternalDsl.g:2610:1: ( (lv_value_0_0= RULE_STRING ) )\n {\n // InternalDsl.g:2610:1: ( (lv_value_0_0= RULE_STRING ) )\n // InternalDsl.g:2611:1: (lv_value_0_0= RULE_STRING )\n {\n // InternalDsl.g:2611:1: (lv_value_0_0= RULE_STRING )\n // InternalDsl.g:2612:3: lv_value_0_0= RULE_STRING\n {\n lv_value_0_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_0_0, grammarAccess.getPropertyValueExpressionAccess().getValueSTRINGTerminalRuleCall_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getPropertyValueExpressionRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_0_0, \n \t\t\"org.eclipse.xtext.xbase.Xtype.STRING\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final org.emftext.refactoring.tests.properties.Key parse_org_emftext_refactoring_tests_properties_Key() throws RecognitionException {\r\n org.emftext.refactoring.tests.properties.Key element = null;\r\n\r\n int parse_org_emftext_refactoring_tests_properties_Key_StartIndex = input.index();\r\n\r\n Token a0=null;\r\n\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 5) ) { return element; }\r\n\r\n // Testproperties.g:718:2: ( (a0= TEXT ) )\r\n // Testproperties.g:719:2: (a0= TEXT )\r\n {\r\n // Testproperties.g:719:2: (a0= TEXT )\r\n // Testproperties.g:720:3: a0= TEXT\r\n {\r\n a0=(Token)match(input,TEXT,FOLLOW_TEXT_in_parse_org_emftext_refactoring_tests_properties_Key378); if (state.failed) return element;\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\tif (terminateParsing) {\r\n \t\t\t\tthrow new org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesTerminateParsingException();\r\n \t\t\t}\r\n \t\t\tif (element == null) {\r\n \t\t\t\telement = org.emftext.refactoring.tests.properties.PropertiesFactory.eINSTANCE.createKey();\r\n \t\t\t\tstartIncompleteElement(element);\r\n \t\t\t}\r\n \t\t\tif (a0 != null) {\r\n \t\t\t\torg.emftext.refactoring.tests.properties.resource.testproperties.ITestpropertiesTokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"TEXT\");\r\n \t\t\t\ttokenResolver.setOptions(getOptions());\r\n \t\t\t\torg.emftext.refactoring.tests.properties.resource.testproperties.ITestpropertiesTokenResolveResult result = getFreshTokenResolveResult();\r\n \t\t\t\ttokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.refactoring.tests.properties.PropertiesPackage.KEY__NAME), result);\r\n \t\t\t\tObject resolvedObject = result.getResolvedToken();\r\n \t\t\t\tif (resolvedObject == null) {\r\n \t\t\t\t\taddErrorToResource(result.getErrorMessage(), ((CommonToken) a0).getLine(), ((CommonToken) a0).getCharPositionInLine(), ((CommonToken) a0).getStartIndex(), ((CommonToken) a0).getStopIndex());\r\n \t\t\t\t}\r\n \t\t\t\tjava.lang.String resolved = (java.lang.String) resolvedObject;\r\n \t\t\t\tif (resolved != null) {\r\n \t\t\t\t\tObject value = resolved;\r\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.refactoring.tests.properties.PropertiesPackage.KEY__NAME), value);\r\n \t\t\t\t\tcompletedElement(value, false);\r\n \t\t\t\t}\r\n \t\t\t\tcollectHiddenTokens(element);\r\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.refactoring.tests.properties.resource.testproperties.grammar.TestpropertiesGrammarInformationProvider.TESTPROPERTIES_3_0_0_0, resolved, true);\r\n \t\t\t\tcopyLocalizationInfos((CommonToken) a0, element);\r\n \t\t\t}\r\n \t\t}\r\n\r\n }\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t// expected elements (follow set)\r\n \t\taddExpectedElement(null, org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[20]);\r\n \t}\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 5, parse_org_emftext_refactoring_tests_properties_Key_StartIndex); }\r\n\r\n }\r\n return element;\r\n }", "private String parseValue(String value)\n {\n value = value.trim();\n\n boolean quoted = value.startsWith(\"\\\"\") || value.startsWith(\"'\");\n boolean stop = false;\n boolean escape = false;\n\n char quote = quoted ? value.charAt(0) : 0;\n\n int i = quoted ? 1 : 0;\n\n StringBuilder result = new StringBuilder();\n while (i < value.length() && !stop)\n {\n char c = value.charAt(i);\n\n if (quoted)\n {\n if ('\\\\' == c && !escape)\n {\n escape = true;\n }\n else if (!escape && quote == c)\n {\n stop = true;\n }\n else if (escape && quote == c)\n {\n escape = false;\n result.append(c);\n }\n else\n {\n if (escape)\n {\n escape = false;\n result.append('\\\\');\n }\n\n result.append(c);\n }\n }\n else\n {\n if (COMMENT_CHARS.indexOf(c) == -1)\n {\n result.append(c);\n }\n else\n {\n stop = true;\n }\n }\n\n i++;\n }\n\n String v = result.toString();\n if (!quoted)\n {\n v = v.trim();\n }\n return v;\n }", "@Test\n public void testStringEscapeSequences() throws IOException {\n List<Project> projects = assertEqual(createFile(\"stringEscapedValues\"), \"testStringEscapeSequences\", \"0\");\n \n Assert.assertEquals(\"File does not contain exactly one project.\", 1, projects.size());\n Project project = projects.get(0);\n for (int i = 0, end = project.getElementCount(); i < end; i++) {\n ContainableModelElement element = project.getElement(i);\n if (element instanceof AbstractVariable) {\n ConstantValue defaultValue = (ConstantValue) ((AbstractVariable) element).getDefaultValue();\n if (null != defaultValue) {\n String strValue = defaultValue.getConstantValue().getValue().toString();\n // Consider backslash value while checking whether the value was escaped during parsing\n boolean valueWasEscaped = strValue.contains(\"\\\\\") && strValue.length() > 1;\n Assert.assertFalse(\"Default value of \\\"\" + element.getName() + \"\\\" was escaped: \" + strValue,\n valueWasEscaped);\n }\n } else if (element instanceof Constraint) {\n OCLFeatureCall assignment = (OCLFeatureCall) ((Constraint) element).getConsSyntax();\n Value assignedValue = ((ConstantValue) assignment.getParameter(0)).getConstantValue();\n String strValue = assignedValue.getValue().toString();\n // Consider backslash value while checking whether the value was escaped during parsing\n boolean valueWasEscaped = strValue.contains(\"\\\\\") && strValue.length() > 1;\n Assert.assertFalse(\"Default value of \\\"\" + element.getName() + \"\\\" was escaped: \" + strValue,\n valueWasEscaped);\n }\n }\n }", "private static List<String> parsePropertyValues(Element propertyFieldElement) {\n List<String> values = new ArrayList<>();\n\n // Gather all values\n Node fieldValuesNode = propertyFieldElement.getElementsByTagName(\"values\").item(0);\n if (fieldValuesNode instanceof Element) {\n NodeList fieldValueNodeList = ((Element) fieldValuesNode).getElementsByTagName(\"value\");\n for (int ifv = 0; ifv < fieldValueNodeList.getLength(); ifv++) {\n Node item = fieldValueNodeList.item(ifv);\n // Empty values are ignored as they are not searchable\n String value = item.getTextContent();\n if (value == null || value.isEmpty())\n continue;\n\n values.add(value);\n }\n }\n return values;\n }", "@Test\n public void testGetPropertyValue() {\n Document doc = getAsDOM(\"wfs?request=GetPropertyValue&version=2.0.0&typename=gsml:MappedFeature&valueReference=gml:name\");\n LOGGER.info((\"WFS GetPropertyValue response:\\n\" + (prettyString(doc))));\n assertXpathEvaluatesTo(\"GUNTHORPE FORMATION\", \"//wfs:member[1]/gml:name\", doc);\n assertXpathCount(4, \"//gml:name\", doc);\n assertXpathCount(0, \"//gsml:shape\", doc);\n assertXpathCount(0, \"//gsml:specification\", doc);\n }", "protected Object parseValue (String value)\n throws Exception\n {\n return value;\n }", "public void testPropertyValue() throws Exception\n {\n IComponentSpecification spec = parsePage(\"PropertyValue.page\");\n\n checkLine(spec, 22);\n\n assertEquals(\"rubble\", spec.getProperty(\"barney\"));\n assertEquals(\"flintstone\", spec.getProperty(\"wilma\"));\n }", "public final org.emftext.refactoring.tests.properties.Category parse_org_emftext_refactoring_tests_properties_Category() throws RecognitionException {\r\n org.emftext.refactoring.tests.properties.Category element = null;\r\n\r\n int parse_org_emftext_refactoring_tests_properties_Category_StartIndex = input.index();\r\n\r\n Token a0=null;\r\n org.emftext.refactoring.tests.properties.KeyValuePair a1_0 =null;\r\n\r\n\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 3) ) { return element; }\r\n\r\n // Testproperties.g:556:2: ( (a0= QUOTED_91_93 ) ( (a1_0= parse_org_emftext_refactoring_tests_properties_KeyValuePair ) )* )\r\n // Testproperties.g:557:2: (a0= QUOTED_91_93 ) ( (a1_0= parse_org_emftext_refactoring_tests_properties_KeyValuePair ) )*\r\n {\r\n // Testproperties.g:557:2: (a0= QUOTED_91_93 )\r\n // Testproperties.g:558:3: a0= QUOTED_91_93\r\n {\r\n a0=(Token)match(input,QUOTED_91_93,FOLLOW_QUOTED_91_93_in_parse_org_emftext_refactoring_tests_properties_Category190); if (state.failed) return element;\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t\tif (terminateParsing) {\r\n \t\t\t\tthrow new org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesTerminateParsingException();\r\n \t\t\t}\r\n \t\t\tif (element == null) {\r\n \t\t\t\telement = org.emftext.refactoring.tests.properties.PropertiesFactory.eINSTANCE.createCategory();\r\n \t\t\t\tstartIncompleteElement(element);\r\n \t\t\t}\r\n \t\t\tif (a0 != null) {\r\n \t\t\t\torg.emftext.refactoring.tests.properties.resource.testproperties.ITestpropertiesTokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"QUOTED_91_93\");\r\n \t\t\t\ttokenResolver.setOptions(getOptions());\r\n \t\t\t\torg.emftext.refactoring.tests.properties.resource.testproperties.ITestpropertiesTokenResolveResult result = getFreshTokenResolveResult();\r\n \t\t\t\ttokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.refactoring.tests.properties.PropertiesPackage.CATEGORY__NAME), result);\r\n \t\t\t\tObject resolvedObject = result.getResolvedToken();\r\n \t\t\t\tif (resolvedObject == null) {\r\n \t\t\t\t\taddErrorToResource(result.getErrorMessage(), ((CommonToken) a0).getLine(), ((CommonToken) a0).getCharPositionInLine(), ((CommonToken) a0).getStartIndex(), ((CommonToken) a0).getStopIndex());\r\n \t\t\t\t}\r\n \t\t\t\tjava.lang.String resolved = (java.lang.String) resolvedObject;\r\n \t\t\t\tif (resolved != null) {\r\n \t\t\t\t\tObject value = resolved;\r\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.refactoring.tests.properties.PropertiesPackage.CATEGORY__NAME), value);\r\n \t\t\t\t\tcompletedElement(value, false);\r\n \t\t\t\t}\r\n \t\t\t\tcollectHiddenTokens(element);\r\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.refactoring.tests.properties.resource.testproperties.grammar.TestpropertiesGrammarInformationProvider.TESTPROPERTIES_1_0_0_0, resolved, true);\r\n \t\t\t\tcopyLocalizationInfos((CommonToken) a0, element);\r\n \t\t\t}\r\n \t\t}\r\n\r\n }\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t// expected elements (follow set)\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[3]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[4]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[5]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getPropertyModel(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[6]);\r\n \t}\r\n\r\n // Testproperties.g:596:2: ( (a1_0= parse_org_emftext_refactoring_tests_properties_KeyValuePair ) )*\r\n loop2:\r\n do {\r\n int alt2=2;\r\n int LA2_0 = input.LA(1);\r\n\r\n if ( ((LA2_0 >= QUOTED_34_34 && LA2_0 <= QUOTED_60_62)||LA2_0==TEXT) ) {\r\n alt2=1;\r\n }\r\n\r\n\r\n switch (alt2) {\r\n \tcase 1 :\r\n \t // Testproperties.g:597:3: (a1_0= parse_org_emftext_refactoring_tests_properties_KeyValuePair )\r\n \t {\r\n \t // Testproperties.g:597:3: (a1_0= parse_org_emftext_refactoring_tests_properties_KeyValuePair )\r\n \t // Testproperties.g:598:4: a1_0= parse_org_emftext_refactoring_tests_properties_KeyValuePair\r\n \t {\r\n \t pushFollow(FOLLOW_parse_org_emftext_refactoring_tests_properties_KeyValuePair_in_parse_org_emftext_refactoring_tests_properties_Category220);\r\n \t a1_0=parse_org_emftext_refactoring_tests_properties_KeyValuePair();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return element;\r\n\r\n \t if ( state.backtracking==0 ) {\r\n \t \t\t\t\tif (terminateParsing) {\r\n \t \t\t\t\t\tthrow new org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesTerminateParsingException();\r\n \t \t\t\t\t}\r\n \t \t\t\t\tif (element == null) {\r\n \t \t\t\t\t\telement = org.emftext.refactoring.tests.properties.PropertiesFactory.eINSTANCE.createCategory();\r\n \t \t\t\t\t\tstartIncompleteElement(element);\r\n \t \t\t\t\t}\r\n \t \t\t\t\tif (a1_0 != null) {\r\n \t \t\t\t\t\tif (a1_0 != null) {\r\n \t \t\t\t\t\t\tObject value = a1_0;\r\n \t \t\t\t\t\t\taddObjectToList(element, org.emftext.refactoring.tests.properties.PropertiesPackage.CATEGORY__PAIRS, value);\r\n \t \t\t\t\t\t\tcompletedElement(value, true);\r\n \t \t\t\t\t\t}\r\n \t \t\t\t\t\tcollectHiddenTokens(element);\r\n \t \t\t\t\t\tretrieveLayoutInformation(element, org.emftext.refactoring.tests.properties.resource.testproperties.grammar.TestpropertiesGrammarInformationProvider.TESTPROPERTIES_1_0_0_2, a1_0, true);\r\n \t \t\t\t\t\tcopyLocalizationInfos(a1_0, element);\r\n \t \t\t\t\t}\r\n \t \t\t\t}\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop2;\r\n }\r\n } while (true);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n \t\t// expected elements (follow set)\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[7]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[8]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getCategory(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[9]);\r\n \t\taddExpectedElement(org.emftext.refactoring.tests.properties.PropertiesPackage.eINSTANCE.getPropertyModel(), org.emftext.refactoring.tests.properties.resource.testproperties.mopp.TestpropertiesExpectationConstants.EXPECTATIONS[10]);\r\n \t}\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n if ( state.backtracking>0 ) { memoize(input, 3, parse_org_emftext_refactoring_tests_properties_Category_StartIndex); }\r\n\r\n }\r\n return element;\r\n }", "public StringValue( final String value )\n {\n super( value );\n }", "@Test\n public void testGetValue()\n {\n System.out.println(\"getValue\");\n final File file = new File(\"src/test/data/test.example.txt\");\n final Lexer lexer = new Lexer();\n final Token token = lexer.analyze(file);\n assertEquals(Syntax.LABEL, token.getSyntax());\n assertEquals(1, token.getLine());\n assertEquals(1, token.getPosition());\n assertEquals(Vocabulary.COMPONENT, token.getValue());\n }", "@Test\n public void testString1() throws InvalidValueFormatException, ViolatedRestrictionException {\n String value = \"test\";\n ValueString vstr = new ValueString(value);\n\n Assert.assertEquals(value, vstr.get());\n\n ValueStringRestriction restr = new ValueStringRestriction();\n restr.checkRestriction(vstr);\n }", "public IValuable parse(String value);", "public RegularExpressionValueMatcher() {\n\t\tthis(null);\n\t}", "public void testGetValue() {\n System.out.println(\"getValue\"); // NOI18N\n \n PropertyValue result;\n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n String value = \"Test value\"; // NOI18N\n \n result = PropertyValue.createValue(primitveDescritor, type, value);\n \n assertEquals(PropertyValue.Kind.VALUE,result.getKind());\n assertEquals(type,result.getType());\n assertEquals(value,result.getValue());\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get end vertex in name
public String getBeginVertexName(){ return beginStation; }
[ "public String getEndVertexName(){ \r\n\t return endStation; \r\n\t }", "public Vertex getEndVertex() { return endVertex; }", "public int getEndVertexId(){ \r\n\t return endVertex; \r\n\t }", "public Vertex getEnd() {\n return end;\n }", "public int getEndVertex() {\n\t\treturn endVertex;\n\t}", "public String getSecondVertex(){\r\n return SecondVertex;\t\r\n }", "Vertex findYourVertex(String vertexName);", "String getEndingNode();", "public V vertexForName(String s);", "String getVertexId();", "public String getVertexName()\n\t{\n\t\treturn vertexName ;\n\t}", "V[] endVertices(Edge<V,E> edge);", "String getIdEdge();", "public boolean setEndVertex(String name){ \r\n\t if (mHashTable2.containsKey(name) == true) \r\n\t { \r\n\t endVertex = findIdByKey(name); \r\n\t endStation = name; \r\n\t return true; \r\n\t } \r\n\t return false; \r\n\t }", "public abstract String getEdgeSymbol(int vertexIndex, int otherVertexIndex);", "private void backTrack(String start, AdjVertex end, Vertex parent){\r\n\t\tif(parent.name.compareToIgnoreCase(start) == 0){ \r\n\t\t\t//if we have found our way back to the start, then we print the result\r\n\t\t\tif(pathStack.isEmpty()){\r\n\t\t\t\tSystem.out.println(start + \" -- \" + end.name);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.print(start + \" -- \" + end.name);\r\n\t\t\t\twhile(!pathStack.isEmpty()){\r\n\t\t\t\t\tSystem.out.print(\" -- \" + pathStack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if we still have to find our way back to the first person,\r\n\t\t//we push the end name into the stack, \r\n\t\telse{ \r\n\t\t\tpathStack.push(end.name);\r\n\t\t\tconnector(start, parent.name);\r\n\t\t}\r\n\t}", "public void setEndVertex(int e) {\n\t\tendVertex = e;\n\t}", "public int getNameEndPosition ()\n {\n return (mNameEnd);\n }", "private int last()\n {\n return list.getLast();\t\t\t\t\t\t//returns last vertex\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create binding state with global variable names (at the very beginning of the CFA)
public BindState(Set<AccessPath> globalVariableNames) { this.stateOnLastFunctionCall = null; this.globalDefs = addVariables(PathCopyingPersistentTree.<String, BindingPoint>of(), globalVariableNames); this.localDefs = new PathCopyingPersistentTree<>(); }
[ "Map<Variable, Object> getBindingMap();", "void bindGlobal(Symbol symbol, SExpression value);", "Binding newDummyBinding(Variable var);", "StateVariableDeclaration createStateVariableDeclaration();", "private void setBinding( VarBindingDef binding)\n {\n binding_ = binding;\n }", "Binding newBinding(Variable var, AST ast, EvalVisitor ev);", "public void setGlobalPointer(){\n getNewRegister();//obtenemos un registro vacio\n String str = \"ldr \"+temp_var+\"\"+temp_var_number+\",=the_global_variables\\n\";\n \n str += \"add \"+temp_var+\"\"+temp_var_number+\",\"+last_used_temp+\"\\n\";\n to_build_code += str;\n \n if (needs_value){//\n to_build_code += \"ldr \"+temp_var+\"\"+temp_var_number+\",[\"+temp_var+\"\"+temp_var_number+\"]\\n\";\n }\n \n last_used_temp = temp_var+\"\"+temp_var_number;//\"gp[\"+last_used_temp+\"]\";\n getNewRegister();\n }", "StateVariable createStateVariable();", "private void bindSpecialVars() {\n if ( variables.containsKey( \"e\" ) )\n variables.get( \"e\" ).bind( Math.E );\n if ( variables.containsKey( \"E\" ) )\n variables.get( \"E\" ).bind( Math.E );\n \n if ( variables.containsKey( \"pi\" ) )\n variables.get( \"pi\" ).bind( Math.PI );\n if ( variables.containsKey( \"Pi\" ) )\n variables.get( \"Pi\" ).bind( Math.PI );\n if ( variables.containsKey( \"PI\" ) )\n variables.get( \"PI\" ).bind( Math.PI );\n if ( variables.containsKey( \"pI\" ) )\n variables.get( \"pI\" ).bind( Math.PI );\n }", "Binding createBinding();", "public Map getActorStateVariables() {\r\n\t\treturn actorEnv.localBindings();\r\n\t}", "private void initClientStateVariables() {\r\n\t\ttry {\r\n\t\t\tField[] states = this.client.getFields();\r\n\t\t\tObject obj = this.client.newInstance();\r\n\t\t\t// IRandom ran = this.clientRandom.newInstace();\r\n\t\t\tfor (int i = 0; i < states.length; i++) {\r\n\t\t\t\tint mod = states[i].getModifiers();\r\n\t\t\t\tif (Modifier.isPublic(mod) && Modifier.isFinal(mod)\r\n\t\t\t\t\t\t&& states[i].getType().equals(int.class)) {\r\n\t\t\t\t\tString name = states[i].getName();\r\n\t\t\t\t\tString tmpName = name.toLowerCase();\r\n\t\t\t\t\tif ((tmpName.startsWith(\"state\") || tmpName\r\n\t\t\t\t\t\t\t.startsWith(\"_state\"))) {\r\n\t\t\t\t\t\tInteger value = (Integer) states[i].get(obj);\r\n\t\t\t\t\t\tthis.stateFields.put(value, name);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e){\r\n\t\t\tthis.systemOut.println(e.toString());\r\n\t\t}\r\n\t\tthis.graph.setStateFields(this.stateFields);\r\n\t}", "public void setBindings(Bindings bindings, int scope);", "GlobalVariable createGlobalVariable();", "private void initState() {\n Arrays.fill(state = new char[this.mystery.length()], '_');\n }", "public void assignGlobalVariable(String name);", "public Bindings createBindings();", "public abstract void setBinding(AST exp, EvalVisitor ev);", "private void setGlobalStateValues() {\n CEToolboxActivity.fragmentData.setCapillaryLength(capillaryLength);\n CEToolboxActivity.fragmentData.setToWindowLength(toWindowLength);\n CEToolboxActivity.fragmentData.setDiameter(diameter);\n CEToolboxActivity.fragmentData.setPressure(pressure);\n CEToolboxActivity.fragmentData\n .setPressureSpinPosition(pressureSpinPosition);\n CEToolboxActivity.fragmentData.setDuration(duration);\n CEToolboxActivity.fragmentData.setViscosity(viscosity);\n CEToolboxActivity.fragmentData.setConcentration(concentration);\n CEToolboxActivity.fragmentData\n .setConcentrationSpinPosition(concentrationSpinPosition);\n CEToolboxActivity.fragmentData.setMolecularWeight(molecularWeight);\n CEToolboxActivity.fragmentData.setVoltage(voltage);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a clone of this H261Format.
public Object clone() { H261Format f = new H261Format(); f.copy(this); return f; }
[ "public H261Format() {\n \tsuper(ENCODING);\n }", "public H261Encoder() throws QuickArrayException {\r\n super(\"h261/rtp\", new YUVFormat(new Dimension(352, 288), -1,\r\n Format.byteArray, -1, YUVFormat.YUV_420, -1, -1, -1, -1, -1));\r\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField261() {\n field261 = null;\n fieldSetFlags()[261] = false;\n return this;\n }", "public H261Format(Dimension size, int maxDataLength, Class dataType,\n\t\t float frameRate,\n\t\t int stillImageTransmission) {\n\tsuper(ENCODING, size, maxDataLength, dataType, frameRate);\n\tthis.stillImageTransmission = stillImageTransmission;\n }", "protected void copy(Format f) {\n\tsuper.copy(f);\n\tstillImageTransmission = ((H261Format)f).stillImageTransmission;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField261(java.lang.CharSequence value) {\n validate(fields()[261], value);\n this.field261 = value;\n fieldSetFlags()[261] = true;\n return this; \n }", "public String toString() {\n\treturn \"H.261 video format\";\n }", "public com.dj.model.avro.LargeObjectAvro.Builder setVar261(java.lang.CharSequence value) {\n validate(fields()[262], value);\n this.var261 = value;\n fieldSetFlags()[262] = true;\n return this;\n }", "public com.dj.model.avro.LargeObjectAvro.Builder clearVar260() {\n var260 = null;\n fieldSetFlags()[261] = false;\n return this;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField260() {\n field260 = null;\n fieldSetFlags()[260] = false;\n return this;\n }", "public Card makeCopy(){\n return new Card(vimage);\n }", "public java.lang.CharSequence getField261() {\n return field261;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField263() {\n field263 = null;\n fieldSetFlags()[263] = false;\n return this;\n }", "@Override\n public AbstractRelic makeCopy() {\n return new HeartsKp();\n }", "public java.lang.CharSequence getVar261() {\n return var261;\n }", "public JSHash clone()\n {\n JSHash copy = new JSHash();\n copy.merge(this);\n return copy;\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField262() {\n field262 = null;\n fieldSetFlags()[262] = false;\n return this;\n }", "public MossClone() {\n super();\n }", "@Override\n public StatisticsFormat clone() {\n return (StatisticsFormat) super.clone();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a Presentation Node that has Collectibles as direct descendants, this will return item details about those descendants in the context of the requesting character.
@Test public void destiny2GetCollectibleNodeDetailsTest() { Long characterId = null; Long collectiblePresentationNodeHash = null; Long destinyMembershipId = null; Integer membershipType = null; List<DestinyDestinyComponentType> components = null; InlineResponse20043 response = api.destiny2GetCollectibleNodeDetails(characterId, collectiblePresentationNodeHash, destinyMembershipId, membershipType, components); // TODO: test validations }
[ "public String getSubcollectionInfo () throws SDLIPException {\r\n XMLObject subcolInfo = new sdlip.xml.dom.XMLObject();\r\n tm.getSubcollectionInfo(subcolInfo);\r\n// return postProcess (subcolInfo, \"subcolInfo\", false);\r\n return subcolInfo.getString();\r\n }", "public String[] findDescendants(){\r\n return null;\r\n }", "public List<TrackingItem> getChildren();", "SteammessagesEconSteamclient.CEconItem_Description getContainedItem();", "void examineContainers(){\n\t\t\tif (this.receptacle != null)//checks and sees if there's any containers in the location.\n\t\t\t\tfor (int i = 0; i < this.receptacle.size(); i++)\n\t\t\t\t\tif (!(this.receptacle.get(i) instanceof SpecialtyContainer))//if it's a hidden container, you don't know it's there, but it is...\n\t\t\t\t\t\tSystem.out.print(this.receptacle.get(i).contName + \", \");\n\t\t}", "java.util.List<org.mojolang.mojo.lang.Package> \n getChildrenList();", "public void printItems(){\n int itemCount = getItemCount();\n\n log.debug(\"Child node \" + nodeIndex + \" contains \" + itemCount + \" child items:\");\n for(int item = 0; item < itemCount; ++item){\n\n // recursively will print all node items below this node\n childItems.get(item).print();\n }\n }", "public Bag collect(NoPlayer character){\n\t\treturn character.getItemDroppedList();\n\t}", "static ArrayList<OntClass> getDescendants(OntClass ontClass) {\n //JsonNode descendants;\n //descendants = jsonToNode(get(node.get(\"links\").findValue(\"descendants\").asText()));\n //return descendants;\n \tIterator<OntClass> it = ontClass.listSubClasses(false);\n ArrayList<OntClass> dec = new ArrayList<OntClass>();\n while (it.hasNext()) {\n OntClass next = it.next();\n if (!next.getURI().equals(\"http://www.w3.org/2002/07/owl#Nothing\")) {\n dec.add(next);\n }\n }\n return dec;\n }", "@Override\n public Collection<?> getVisibleItemIds() {\n\n final LinkedList<Object> visible = new LinkedList<Object>();\n\n // Iterates trough hierarchical tree using a stack of iterators\n final Stack<Iterator<?>> iteratorStack = new Stack<Iterator<?>>();\n final Collection<?> ids = rootItemIds();\n if (ids != null) {\n iteratorStack.push(ids.iterator());\n }\n while (!iteratorStack.isEmpty()) {\n\n // Gets the iterator for current tree level\n final Iterator<?> i = iteratorStack.peek();\n\n // If the level is finished, back to previous tree level\n if (!i.hasNext()) {\n\n // Removes used iterator from the stack\n iteratorStack.pop();\n }\n\n // Adds the item on current level\n else {\n final Object itemId = i.next();\n\n visible.add(itemId);\n\n // Adds children if expanded, or close the tag\n if (isExpanded(itemId) && hasChildren(itemId)) {\n iteratorStack.push(getChildren(itemId).iterator());\n }\n }\n }\n\n return visible;\n }", "java.util.List<bosphorus2.Aomgen.COBJECT> \n getChildrenList();", "List<N> getDescendants() ;", "public Collection getMembershipTypeDetails() throws RemoteException, FinderException;", "public Collection getDescendantClasses(OWLClass aClass, ReasonerTaskListener taskListener) throws DIGReasonerException;", "private void displayCollectiveInfo() {\n \t\tfinal Envelope env = this.transitions.getCurrentTransition();\n \t\tfinal ArrayList<Envelope> matches = env.getCommunicator_matches();\n \n \t\tif (matches != null) {\n \t\t\tfinal int listSize = matches.size();\n \t\t\tfor (int i = 0; i < listSize; i++) {\n \t\t\t\tfinal Envelope currentMatchEnvelope = matches.get(i);\n \t\t\t\tfinal String matchFilePathString = currentMatchEnvelope.getFilePath();\n \t\t\t\tfinal IFile sourceFile = GemUtilities.getSourceFile(matchFilePathString, this.activeFile);\n \n \t\t\t\t// Add the match to the right code view window\n \t\t\t\tthis.rightViewer.add(new ListElement(sourceFile, sourceFile.getName() + Messages.GemAnalyzer_40\n \t\t\t\t\t\t+ currentMatchEnvelope.getLinenumber()\n \t\t\t\t\t\t+ Messages.GemAnalyzer_41\n \t\t\t\t\t\t+ currentMatchEnvelope.getRank(), currentMatchEnvelope.getLinenumber(), false));\n \t\t\t}\n \t\t}\n \t}", "public List<String> Description() {\n XPathFactory xpath = XPathFactory.instance();\n XPathExpression<Element> expr = xpath.compile(\"//item/description\", Filters.element());\n List<Element> news = expr.evaluate(this.data);\n List<String> description = new ArrayList<String>();\n news.forEach(post -> description.add(post.getValue().trim()));\n return description;\n }", "Iterator<CtElement> descendantIterator();", "public LinkedList<ApfsElement> getChildren() {\n return this.ApfsChildren;\n }", "@Override\n public Collection<? extends IChild<T>> getAllDescendants() {\n throw new RuntimeException(\"not implemented yet!\");\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lister les photos du projet
public List<Photo> getPhoto() { PhotoBDD pbdd = new PhotoBDD(ProjectOpenActivity.this); //Instanciation de PhotoBdd pour manipuler les photos de la base de données pbdd.open(); //Ouverture de la base de données List<Photo> lp = pbdd.getPhotos(project_id); pbdd.close(); // Fermeture de la base de données return lp; }
[ "List<Photo> homePagePhotos();", "public void listPictures()\r\n {\r\n int index = 0;\r\n while(index >=0 && index < pictures.size()) \r\n {\r\n String filename = pictures.get(index);\r\n System.out.println(index + \": \"+ filename);\r\n index++;\r\n }\r\n }", "public List<String> listPhotos() {\n\t\tList<String> retList = new ArrayList<String>();\n\t\tint i;\n\t\tfor(i=0; i<photoList.size(); i++) {\n\t\t\tretList.add(photoList.get(i).getFileName());\n\t\t}\n\t\treturn retList;\n\t}", "public void listPhotos(){\r\n for (int i=0; i < numPhoto; i++){\r\n System.out.println(photoArray[i].toString());\r\n }\r\n }", "public List<Photo> getAllPhotos(){\n\t\treturn photos;\n\t}", "List<ImageElement> getAllImages();", "public void getPhotoList() throws FileNotFoundException {\n\n File[] photoFiles = photoDir.listFiles();\n\n if (photoFiles.length > 1) {\n\n Arrays.sort(photoFiles, (a, b) -> Long.compare(a.lastModified(), b.lastModified())); // Ordenamos la lista de ficheros por fecha de modificacion, de forma que las primeras posiciones de la lista correspondan siempre a las fotos ya almacenadas, para que al guardar una nueva foto solo tengamos que agregar esa a la lista en lugar de reconstruirla entera.\n\n }\n\n for (int i = photosList.size(); i < photoFiles.length; i++) {\n\n photoFile = new File(photoDir + \"/\" + photoFiles[i].getName());\n\n photoBitmap = BitmapFactory.decodeStream(new FileInputStream(photoFile));\n\n System.out.println(\"Adding Photo \" + (i+1) + \" \" + photoFiles[i].getName() + \" ...\");\n\n photosList.add(new Photo (photoFiles[i].getName(), photoBitmap));\n\n }\n\n System.out.println(\"Loading Photo List ...\");\n\n printPhotoList();\n\n }", "@Override\n public Collection<Photo> findAllPhoto() {\n List<Photo> photo = new ArrayList<>();\n try (Connection cn = pool.getConnection();\n PreparedStatement ps = cn.prepareStatement(\"SELECT * FROM photo\")\n ) {\n try (ResultSet it = ps.executeQuery()) {\n while (it.next()) {\n photo.add(new Photo(it.getInt(\"id\"), it.getString(\"name\")));\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n LOG.error(\"Неверный SQL запрос, фото не найдены\");\n }\n return photo;\n }", "public void loadImages() {\n\t\tthis.imageList = new ArrayList<>();\n\t\timages = FXCollections.observableArrayList();\n\t\tfor (Photo photo : this.album.getPhotos()) {\n\t\t\tFile file = new File(photo.getFilePath());\n\t\t\tImage image;\n\t\t\ttry {\n\t\t\t\timage = new Image(new FileInputStream(file), 64, 64, true,true);\n\t\t\t\tthis.imageList.add(image);\n\t\t\t\tthis.images.add(photo.getFilePath());\n\t\t\t} catch (FileNotFoundException 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\tloadResults();\n\t}", "public List<Photo> getPhotos(){\r\n\t\treturn photos;\r\n\t}", "public ArrayList<Bitmap> getPhotos(Context context) {\n ArrayList<Bitmap> photos = new ArrayList<>();\n for (String uri: uriList) {\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(context.getContentResolver(), Uri.parse(uri));\n photos.add(bitmap);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return photos;\n }", "public void getPhotoLinks() {\n try {\n image = Jsoup.connect(link + \"/+images/\").get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Elements elements = image.getElementsByClass(\"image-list-item\");\n photosLinks = new String[elements.size()];\n for (int i = 0; i < elements.size(); i++) {\n String element = elements.get(i).attr(\"href\");\n photosLinks[i] = element;\n }\n }", "@Query(GET_ALL_IMAGES_QUERY)\n LiveData<List<ImageEntry>> loadAllPhotoEntries();", "public ArrayList<Image> findInDirectory() {\n return this.images;\n }", "private String[] listImage(){\n File directory = new File(System.getProperty(\"user.dir\") + \"/resources/Images\");\n String[] listFiles = directory.list();\n\n for(int i=0;i<listFiles.length;i++) {\n listFiles[i] = listFiles[i].substring(0, listFiles[i].indexOf(\".\"));\n }\n return listFiles;\n }", "public abstract ArrayList<photo> listPhotos(String id, String albumName);", "private void getPhotos(){\n Boolean isSDPresent = android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);\n if(isSDPresent)\n new GetAllImagesAsync().execute(MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n else\n Toast.makeText(this,\"You have no storage space mounted\", Toast.LENGTH_SHORT);\n }", "public abstract Collection<Photo> getPhotos();", "private void getPhotos(){\n Boolean isSDPresent = android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED);\n if(isSDPresent)\n new GetAllImagesAsync().execute(MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n else\n Toast.makeText(this,\"There is no external storage present\", Toast.LENGTH_SHORT).show();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column ddj_ckb.ckshdz
public String getCkshdz() { return ckshdz; }
[ "public String getCkqhdz() {\r\n\t\treturn ckqhdz;\r\n\t}", "public void setCkshdz(String ckshdz) {\r\n\t\tthis.ckshdz = ckshdz;\r\n\t}", "public String getcZzzjlsh() {\n return cZzzjlsh;\n }", "public String getZcbh() {\n return zcbh;\n }", "public String getcZjyysm() {\n return cZjyysm;\n }", "public String getJP_BankDataCustomerCode2();", "public String getCjrbh() {\n return cjrbh;\n }", "public String getJP_BankDataCustomerCode1();", "public String getBzcz() {\n return bzcz;\n }", "protected String getZKasseId() {\n return bc.Z_KASSE_ID;\n }", "public String getcZjyy() {\n return cZjyy;\n }", "public java.lang.String get_BIC_ZBMMC() {\r\n return _BIC_ZBMMC;\r\n }", "public String getKcbh() {\n return kcbh;\n }", "public String getCzrbh() {\n return czrbh;\n }", "public Date getCzsj() {\n return czsj;\n }", "public String getBzdw() {\n return bzdw;\n }", "public String getKydlsbcs() {\n return kydlsbcs;\n }", "java.lang.String getCdkey();", "public String getZycd() {\n return zycd;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructor for country view
public countryView(String countryName) { this.countryName = countryName; }
[ "public Country(){}", "public LCountry() {\n this(DSL.name(\"L_COUNTRY\"), null);\n }", "public Country (String instanceName)\n {\n name = instanceName;\n }", "public CountryFilter(SimpleData country) {\r\n super();\r\n\r\n this.country = country;\r\n }", "public AbstractCountry() {\r\n }", "@Override\n public void createCountry(Country country) {\n\n }", "Country createCountry();", "public GenCountry(IDomainModel model) {\r\n\t\tsuper(model);\r\n\t\t// internal child neighbors only\r\n\t\t\t \tsetStates(new States((Country) this));\r\n \t\t}", "public ViewObjectImpl getCountriesView() {\n return (ViewObjectImpl) findViewObject(\"CountriesView\");\n }", "public Country(String aName, int anArea)\n {\n name = aName;\n area = anArea;\n }", "Country getCountry();", "public CountryAdapter(Context context, ArrayList<Country> countryList){\n countryArrayList = countryList;\n }", "public Country(Name alias) {\n this(alias, COUNTRY);\n }", "public CountryRecord() {\n\t\tsuper(com.fhoster.jooq4hibernate.jooq.tables.Country.COUNTRY);\n\t}", "public CountryView(SessionFactory sessionFactory) {\n initComponents();\n// controller = new CountryController(sessionFactory);\n// bindingCountries(controller.getAll());\n// controller.loadCmbCountry(cmbRegionId); \n// tblCountry.setRowSorter(rowSorter);\n sf = new SerbaGuna();\n \n }", "public Country(String countryId, String countryName, Region region) {\r\n this.countryId = countryId;\r\n this.countryName = countryName;\r\n this.region = region;\r\n }", "public Country(int id, String CountryName) {\n this.id = id;\n this.countryName = CountryName;\n }", "public TblWineryCountry() {\n\t\tthis(\"winery_country\", null);\n\t}", "private static Country transform(final CountryView view) {\n final Country country = new Country();\n\n // Note, ignored lines are either not mapped in (additional details), or\n // is mapped in via different views (NS & ListName) since they are not\n // uniquely distinguishable as Cooperating Institutions will have more\n // than one NS & list\n country.setCountryCode(view.getCountry().getCountryCode());\n country.setCountryName(view.getCountry().getCountryName());\n country.setNationality(view.getCountry().getNationality());\n country.setPhonecode(view.getCountry().getPhonecode());\n country.setCurrency(view.getCountry().getCurrency());\n country.setMembership(view.getCountry().getMembership());\n country.setMemberSince(view.getCountry().getMemberSince());\n\n return country;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of aRo.
private void setARo(final String a) { this.aRo = a; }
[ "void setROIs(Object rois);", "public void setRa(String ra) {\n String oldRa = this.ra;\n this.ra = ra;\n firePropertyChange(PROP_RA, oldRa, ra);\n }", "public void setRua(String rua) {// Altera o nome da rua.\r\n\t\tthis.rua = rua;\r\n\t}", "public abstract void setRoi(Roi realroi);", "public String getARo() {\r\n return aRo;\r\n }", "public void setRois(Roi[] rois) {\n this.rois = rois;\n }", "void setOraPar(String oraPar);", "public void setRocznik(int value) {\n this.rocznik = value;\n }", "void setRR(java.lang.String rr);", "void setOraArr(String oraArr);", "public abstract void setRoi(int roitype, int x, int y);", "public void setIdbultoOri(Number value)\n {\n setAttributeInternal(IDBULTOORI, value);\n }", "public void setRelleno(boolean r){\n this.relleno=r;\n }", "public void setRc(AVLNode rc) {\n this.rc = rc;\n }", "public void setRigaCorrente(int rigaCorrente) {\r\n\t\tthis.rigaCorrente = rigaCorrente;\r\n\t}", "void xsetRR(cl.sii.siiDte.RUTType rr);", "public void setRamal(java.lang.Integer ramal) {\n this.ramal = ramal;\n }", "void setRID(RID rid);", "public void setRId(long value) {\r\n this.rId = value;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a repository instance configured using given RepositoryConfiguration. This method will assign credentials as they are set in the given RepositoryConfiguration.
public SVNRepository getRepository(final RepositoryConfiguration configuration) throws SVNException { return RepositoryFactory.INSTANCE.getRepository(configuration, ASSIGN_CREDENTIALS); }
[ "RepositoryConfiguration getRepositoryConfiguration();", "public static ObjectRepository getRepository() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (ObjectRepository.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new ObjectRepository();\n\t\t\t\t\tif (config == null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconfig = new PropertiesConfiguration(\n\t\t\t\t\t\t\t\t\t\"object.properties\");\n\t\t\t\t\t\t} catch (final ConfigurationException e) {\n\t\t\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t\t\t.println(\"Configuration Exception - Not able to locate object.properties\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn _instance;\n\t}", "Repository getRepository();", "RegistryMavenRepoConfig getRepository();", "Repository find(String repositoryOwner, String repositoryName);", "public Repository getRepository() {\n if (repository == null) {\n repository = RepositoryAccessServlet.getRepository(getServletContext());\n }\n return repository;\n }", "private static IExternalRepositoryInfoRequest getRepoCredentialsFromSecureStorage(String repositoryURL) {\n\t\tif (repositoryURL == null) {\n\t\t\treturn null;\n\t\t}\n\t\tISecurePreferences preferences = SecurePreferencesFactory.getDefault();\n\t\tString slashEncodedURL = GitCredentialsService.getUrlForNodePath(repositoryURL);\n\t\tif (slashEncodedURL != null && preferences != null && preferences.nodeExists(slashEncodedURL)) {\n\t\t\tISecurePreferences node = preferences.node(slashEncodedURL);\n\t\t\tIExternalRepositoryInfoRequest credentials = AbapgitexternalrepoFactoryImpl.eINSTANCE.createExternalRepositoryInfoRequest();\n\n\t\t\ttry {\n\t\t\t\tcredentials.setUser(node.get(\"user\", null)); //$NON-NLS-1$\n\t\t\t\tcredentials.setPassword(node.get(\"password\", null)); //$NON-NLS-1$\n\t\t\t} catch (StorageException e) {\n\t\t\t\tAbapGitUIPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, AbapGitUIPlugin.PLUGIN_ID, e.getMessage(), e));\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tif (credentials.getPassword() == null || credentials.getUser() == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tcredentials.setUrl(repositoryURL);\n\t\t\treturn credentials;\n\t\t}\n\n\t\treturn null;\n\t}", "Repository createRepository();", "public Repository getRepository() {\n return mRepository;\n }", "static Repo getInstance() {\n return RepoSingelton.getRepo(); //todo: refactor\n }", "private Repository getRepository() {\n return REPOSITORY;\n }", "Map<String, Object> getRepositoryCredential();", "public Connection getRepositoryConnection() {\r\n return this.repositoryConnection;\r\n }", "public static RemoteRepository getInstance() throws Exception {\n Map<String, String> propInfo = _coordinator.getPropertyInfo().getProperties();\n return new RemoteRepository(propInfo.get(SYSTEM_UPDATE_REPO),\n propInfo.get(SYSTEM_UPDATE_PROXY),\n propInfo.get(SYSTEM_UPDATE_USERNAME),\n propInfo.get(SYSTEM_UPDATE_PASSWORD),\n SYSTEM_UPDATE_REPO_TIMEOUT);\n\n }", "public Repository getRepo() {\n return repo;\n }", "RepositoryService getRepositoryService();", "public RepositoryManager getRepositoryManager() {\n return repositoryManager;\n }", "public RepositoryService getRepositoryService() {\r\n return application.getRepositoryService();\r\n }", "private static Configuration createMockedConfiguration(RemoteGitRepositoryMock repository, Configuration originalConfiguration) {\n return new Configuration(originalConfiguration.getRepositoryLocation(), repository.getLocationUri())\n .setDefaultBranch(originalConfiguration.getDefaultBranch())\n .setUsername(originalConfiguration.getUsername().orElse(null))\n .setPassword(originalConfiguration.getPassword().orElse(null))\n .setDisplayName(originalConfiguration.getDisplayName().orElse(null))\n .setEmail(originalConfiguration.getEmail().orElse(null));\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
You do not have to change any code below here. The code below here is related to Persistent Storage (Shared Preferences) and Menus. We have looked at persistent storage in the Build a Persistent Storage App in Android Studio project on Coursera. If you would like to know more about this you can go to that course. We have adjusted the value of the Strings beginning with saved (savedAuthor) to match what the user has selected the last time they closed the app. We are using a key value pairs below to remember what the value is and to update the String value based on what is in the key value pair. In the loadPreferences() we are also setting what is showing on our app for our Spinner to match what we have now put in savedAuthor.
public void loadPreferences() { // Get the stored preferences int mode = Activity.MODE_PRIVATE; android.content.SharedPreferences mySharedPreferences = getSharedPreferences(MYPREFS, mode); //When you see words in grey like key: and defValue: below they are tags put in by android //studio. These are not typed in by a person. //Retrieve the saved values and put them in savedMonthOfBirth, savedToggleButtonChoice, & //savedNumberPicked as appropriate. savedAuthor = mySharedPreferences.getString("author", "").toLowerCase(); //We are using a switch statement to check what is the value that was saved in savedAuthor //and if what is saved is "oscar wilde", or "cs lewis", or "bram stoker", or "jonathan swift", //or "samuel beckett" then our app will go and select the appropriate author for us in the // Spinner sprPickedAuthor. If what is saved in savedAuthor does not match one of these then //the default of "Pick an Author" is selected. Remember that the position index starts at 0 //so oscar wilde is at position 1, option "Pick an Author" is at position 0, etc. switch (savedAuthor) { case "oscar wilde": sprPickedAuthor.setSelection(1); break; case "cs lewis": sprPickedAuthor.setSelection(2); break; case "bram stoker": sprPickedAuthor.setSelection(3); break; case "jonathan swift": sprPickedAuthor.setSelection(4); break; case "samuel beckett": sprPickedAuthor.setSelection(5); break; default : sprPickedAuthor.setSelection(0); break; } }
[ "protected void savePreferences() {\n // Create or retrieve the shared preference object.\n int mode = Activity.MODE_PRIVATE;\n android.content.SharedPreferences mySharedPreferences = getSharedPreferences(MYPREFS, mode);\n // Retrieve an editor to modify the shared preferences.\n android.content.SharedPreferences.Editor editor = mySharedPreferences.edit();\n // Store data in the shared preferences object as key value pair.\n editor.putString(\"author\", savedAuthor);\n // Commit the changes.\n editor.commit();\n }", "private void onSaveUserChoices()\n\t{\n\t\tsettings = getApplicationContext().getSharedPreferences(\"mes_prefs\" , MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\t\n\t\teditor.putInt(MainActivity.COUNTRY_ID, mId);\n\t\teditor.putString(MainActivity.COUNTRY_NAME, mName);\n\t\teditor.putString(CompanyActivity.COMPANY_NAME, mCompanyName);\n\t\teditor.putString(CategoryActivity.CATEGORY_NAME, mCategoryName);\n\t\teditor.putString(SourceActivity.SOURCE_NAME, mSource);\n\t\teditor.commit();\n\t\t//Log.i(\"Grid_List\", \" fin : onSaveUserChoices \");\n\t}", "public void saveRecipe() {\n\t\tSharedPreferences recipeName = getSharedPreferences( MainMenu.RecipeNamesPref, RecipeEntry.MODE_WORLD_READABLE);\r\n \t//Get the recipe list. If empty, the list will contain only \"New Recipe\"\r\n\t\tString recipeList = recipeName.getString( MainMenu.RecipeNamesPref, \"New Recipe\" );\r\n\t\tSharedPreferences.Editor recipeNameEdit = recipeName.edit();\r\n \tEditText newRecipeNameView = (EditText)this.findViewById( R.id.name_new ); \r\n \tString newRecipeName = (String)newRecipeNameView.getText().toString();\r\n \t\r\n \t//We must have a name in order to save\r\n \tif( null != newRecipeName )\r\n \t{\r\n \t\t//Preserve the existing list and append the new name\r\n \t\trecipeList = recipeList + \",\" + newRecipeName;\r\n \t\trecipeNameEdit.putString( MainMenu.RecipeNamesPref, recipeList );\r\n \t\trecipeNameEdit.commit();\r\n \t\r\n \t\t//Create or open the new recipe as a SharedPreference: <name>_detail to identify the recipe record\r\n\t \tString newRecipeDetail = newRecipeName + \"_Detail\";\r\n\t\t\tSharedPreferences newRecipe = getSharedPreferences( newRecipeDetail, RecipeEntry.MODE_WORLD_READABLE);\r\n\t \tSharedPreferences.Editor newRecipeEdit = newRecipe.edit();\r\n\t \t//Store the recipe data for this recipe\r\n\t \tnewRecipeEdit.putString( MainMenu.NamePref, newRecipeName );\r\n\t \tnewRecipeEdit.putString( MainMenu.DescriptionPref, ((EditText)this.findViewById( R.id.description_new )).getText().toString() );\r\n\t \tnewRecipeEdit.putInt( MainMenu.CuisinePref, ((Spinner)this.findViewById( R.id.cuisine_new )).getSelectedItemPosition() );\r\n\t \tnewRecipeEdit.putString( MainMenu.StepsPref, ((EditText)this.findViewById( R.id.steps_new )).getText().toString() );\r\n\t \tnewRecipeEdit.commit();\r\n\t \t\r\n \t}\r\n\t}", "private void storePreferences() {\n\t\tEditor editor = getSharedPreferences(Constants.SHARED_PREFERENCES, 0).edit();\n\t\tif (cbSaveUsername.isChecked()) {\t\n\t\t\tString username = editUsername.getText().toString();\t\t\t\n\t\t\teditor.putBoolean(getString(R.string.pref_key_cb_save_username), true); //save checkbox state\n\t\t\teditor.putString(getString(R.string.pref_key_username), username); //save username\t\t\n\t\t} else {\n\t\t\teditor.putBoolean(getString(R.string.pref_key_cb_save_username), false);\n\t\t\teditor.putString(getString(R.string.pref_key_username), \"\"); \n\t\t}\n\t\teditor.commit();\n\t}", "private void saveOption() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n SharedPreferences.Editor editor = filterSetting.edit();\n editor.putBoolean(\"myMostRecent\",myMostRecentWeekCheckbox.isChecked());\n editor.putBoolean(\"myDisplayAll\",myDisplayAllCheckbox.isChecked());\n editor.putBoolean(\"foMostRecent\",foMostRecentWeekCheckbox.isChecked());\n editor.putBoolean(\"foDisplayAll\",foDisplayAllCheckbox.isChecked());\n editor.putString(\"myReason\",myReasonEditText.getText().toString());\n editor.putString(\"foReason\",foReasonEditText.getText().toString());\n editor.putInt(\"mySpinner\",myEmotionalStateSpinner.getSelectedItemPosition());\n editor.putInt(\"foSpinner\",foEmotionalStateSpinner.getSelectedItemPosition());\n\n editor.commit();\n }", "public void refreshSpinner(){\n modes = new ArrayList<>(Arrays.asList(\"Most Popular\", \"Highest Rated\"));\n\n PreferenceManager.getDefaultSharedPreferences(this);\n settings = PreferenceManager.getDefaultSharedPreferences(this);\n\n String favesString = settings.getString(\"faves\", null);\n if (favesString != null) {//If some favorites have been marked\n try {\n favesAsJSONArray = new JSONArray(favesString);//Load the existing faves\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n if (favesAsJSONArray != null && favesAsJSONArray.length()>0){\n modes.add(2, \"My Favorites\"); //Make an Spinner option only if favorites have previously been saved.\n\n }\n invalidateOptionsMenu();\n }", "public void setPreferences(){\n //create instance of SharedPreferences\n SharedPreferences setPref = this.getSharedPreferences(\"UserPreferences\", Context.MODE_PRIVATE );\n //getfunctions to get data stored in sharedpref file\n name = setPref.getString(\"UserName\",\"\");\n themeID = setPref.getInt(\"theme\", 0);\n\n }", "private void getSharedPrefs() {\n mySharedPrefs = getSharedPreferences(\"Prefs\", Context.MODE_PRIVATE);\n if (mySharedPrefs != null) {\n // Read saved user prefs (defaults to 0 if not found)\n Integer prefLang = mySharedPrefs.getInt(PREF_LANG, 0);\n Integer prefType = mySharedPrefs.getInt(PREF_TYPE, 0);\n // If value for RadioButton is valid, assign Checked\n if (prefLang > 0) searchRadio.check(prefLang);\n else searchMaori.setChecked(true);\n // If value for Spinner is valid, assign Selected\n if (prefType > 0) searchType.setSelection(prefType);\n else searchType.setSelection(0);\n // Read in AutoComplete array & add to history\n int arraySize = mySharedPrefs.getInt(\"Status_size\", 0);\n for (int i = 0; i < arraySize; i++) {\n String addItem = mySharedPrefs.getString(\"Status_\" + i, null);\n if (!myList.contains(addItem)) myList.add(addItem);\n }\n }\n }", "private void saveBio(){\n SharedPreferences userBio = getSharedPreferences(\"shared_bio\", MODE_PRIVATE);\n SharedPreferences.Editor editor = userBio.edit();\n editor.putString(\"user_bio\", uBio);\n editor.commit();\n }", "private void savePrefs() {\n logger.info(\"Saving user preferences\");\n\n // Unit preference\n if (cRadio.isSelected()) {\n Constants.prefs.put(Constants.UNIT, Constants.UNIT_C);\n } else {\n Constants.prefs.put(Constants.UNIT, Constants.UNIT_F);\n }\n\n // Write index instead of dateTime preference\n Constants.prefs.put(Constants.WRITE_AS_INDEX, String.valueOf(writeAsIndexBox.isSelected()));\n\n // Search for application updates on start\n Constants.prefs.put(Constants.UPDATE, String.valueOf(updates.isSelected()));\n\n // Default language\n if (Constants.LANG_EN.equals(languageChoice.getSelectionModel().getSelectedItem())) {\n Constants.prefs.put(Constants.LANGUAGE, Constants.LANGUAGE_EN);\n } else if (Constants.LANG_SP.equals(languageChoice.getSelectionModel().getSelectedItem())) {\n Constants.prefs.put(Constants.LANGUAGE, Constants.LANGUAGE_SP);\n }\n\n language.reloadLanguage();\n VistaNavigator.baseController.translate();\n VistaNavigator.getController().translate();\n this.translate();\n }", "public void saveData() {\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n editor.putString(AGE, age.getText().toString());\n editor.putString(HEIGHT, height.getText().toString());\n editor.putString(WEIGHT, weight.getText().toString());\n editor.putString(NECK, neck.getText().toString());\n editor.putString(WAIST, waist.getText().toString());\n editor.putString(HIP, hip.getText().toString());\n editor.putString(GOAL, goal.getText().toString());\n\n editor.apply();\n }", "public void saveNames() {\n EditText editTextPlayer1 = (EditText) findViewById(R.id.editTextPlayer1);\n String name_player1 = String.valueOf(editTextPlayer1.getText());\n\n EditText editTextPlayer2 = (EditText) findViewById(R.id.editTextPlayer2);\n String name_player2 = String.valueOf(editTextPlayer2.getText());\n\n preferenceEditor.putString(\"name_1\", name_player1);\n preferenceEditor.putString(\"name_2\", name_player2);\n preferenceEditor.commit();\n }", "private void savePreferenceData(String role){\n if (getIntent()!=null){\n SharedPreferences preferences = getSharedPreferences(detailPreference, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(preferenceKey, role);\n editor.apply();\n }\n }", "private void sharedPreferences() {\n\n // Storing data into SharedPreferences\n SharedPreferences sh = this.getActivity().getSharedPreferences(\"start-up\", MODE_PRIVATE);\n\n // Creating an Editor object to edit(write to the file)\n SharedPreferences.Editor myEdit = sh.edit();\n\n // Storing the key and its value as the data fetched from edittext\n myEdit.putString(\"start-up\", \"true\");\n\n // Once the changes have been made,\n // we need to commit to apply those changes made,\n // otherwise, it will throw an error\n myEdit.commit();\n\n }", "private void saveData() {\n sharedPreferences = getSharedPreferences(\"shared preferences\", MODE_PRIVATE);\n editor = sharedPreferences.edit();\n editor.putString(\"TOKEN_KEY\", token.getToken());\n editor.putInt(\"USER_ID_KEY\", userId);\n editor.putString(\"USER_TYPE_KEY\", userType);\n if (!userType.equals(auditorType)) {\n editor.putString(\"COMPANY_KEY\", company);\n editor.putString(\"INSTITUTION_KEY\", institution);\n }\n editor.commit();\n }", "private void savePreferenceAsString(String preference, String value) {\n\n // Save preference locally\n sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n Editor editor = sharedPrefs.edit();\n\n // Save key-values\n editor.putString(preference, value);\n\n // Commit changes\n editor.apply();\n\n }", "static void saveData() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(noteList);\n editor.putString(NOTE, json);\n editor.apply();\n }", "public static void storePreferences() {\r\n if (userPrefsFile == null)\r\n return;\r\n \r\n try {\r\n if (prefs.isDirty()) {\r\n OutputStream out = new FileOutputStream(userPrefsFile);\r\n prefs.store(out, \"Callisto v\"+Version.version());\r\n out.close();\r\n }\r\n \r\n } catch (Exception io) {\r\n System.err.println(\"Error storing preferences\");\r\n io.printStackTrace();\r\n }\r\n }", "private void saveData() {\n\n SharedPreferences sharedPreferences=getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n\n editor.putString(\"name\",name.getText().toString());\n editor.putString(\"regnum\",regnum.getText().toString());\n editor.putInt(\"count\", count);\n editor.apply();\n\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invoked when a tree has been loaded.
public void treeLoaded();
[ "void initializeTree () {\n }", "private void loadTree(){ \n PBarHelper.show();\n DataProvider.getTreeHierarchy(mScreenId, new DataProvider.AsyncCallback<ViewNodeJSO>() {\n @Override\n public void onError(Request r, Throwable t) {\n PBarHelper.hide();\n Window.alert(t.getMessage());\n }\n\n @Override\n public void onDownloaded(ViewNodeJSO result) {\n mRoot = result; \n CellTree.Resources res = GWT.create(CustomTreeResources.class);\n //create tree model\n mTreeViewModel = new ViewHierarchyTreeViewModel(result);\n //add selection handler to select view on canvas\n mTreeViewModel.setOnSelectionChangedListener(new OnSelectionChangedListener() { \n @Override\n public void onSelectionChanged(ViewNodeJSO viewNode, boolean selected) { \n ScreenPreviewPage.this.onViewTreeNodeSelectionChanged(viewNode, selected);\n }\n });\n //add hover listener just to highlight view\n mTreeViewModel.setOnViewNodeMouseOverListener(new OnViewNodeMouseOverListener() {\n @Override\n public void onMouseOver(ViewNodeJSO viewNode) {\n if (mTreeViewModel.getSelectedNode() == null) {\n clearCanvas();\n drawRectForView(viewNode);\n }\n }\n });\n //remove old tree if necessary, currently there is no reload support (reload page only)\n if (mCellTree != null) {\n mCellTree.removeFromParent();\n }\n mCellTree = new CellTree(mTreeViewModel, null, res); \n mCellTree.setDefaultNodeSize(1000);//no show more button\n centerPanel.add(mCellTree); \n CellTreeTools.expandAll(mCellTree.getRootTreeNode());\n mCellTree.setAnimationEnabled(true);\n PBarHelper.hide();\n } \n });\n }", "public abstract void loadChildren();", "protected void loadChildren() {\n\t\t// I don't use this...subclasses might\n\t}", "protected void loadChildren() {\n\t\tDynamicTreeNode newNode;\n\t\tFont font;\n\t\tint randomIndex;\n\t\tSampleData data;\n\n\t\tfor (int counter = 0; counter < DynamicTreeNode.DefaultChildrenCount; counter++) {\n\t\t\trandomIndex = (int) (nameGen.nextFloat() * nameCount);\n\t\t\tif (fonts != null)\n\t\t\t\tfont = fonts[randomIndex];\n\t\t\telse\n\t\t\t\tfont = null;\n\t\t\tif (counter % 2 == 0)\n\t\t\t\tdata = new SampleData(font, Color.red, names[randomIndex]);\n\t\t\telse\n\t\t\t\tdata = new SampleData(font, Color.blue, names[randomIndex]);\n\t\t\tnewNode = new DynamicTreeNode(data);\n\t\t\t/*\n\t\t\t * Don't use add() here, add calls insert(newNode, getChildCount())\n\t\t\t * so if you want to use add, just be sure to set hasLoaded = true\n\t\t\t * first.\n\t\t\t */\n\t\t\tinsert(newNode, counter);\n\t\t}\n\t\t/* This node has now been loaded, mark it so. */\n\t\thasLoaded = true;\n\t}", "public void load() {\n\t\tif (!dbNode.isLogined()) {\n\t\t\treturn;\n\t\t}\n\n\t\tString tablesFolderId = dbNode.getId()\n\t\t\t\t+ CubridTablesFolderLoader.TABLES_FULL_FOLDER_SUFFIX_ID;\n\t\tfinal ICubridNode tablesFolder = dbNode.getChild(tablesFolderId);\n\t\tif (null == tablesFolder) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (tablesFolder.getChildren().size() < 1) {\n\t\t\tfinal TreeViewer tv = getTreeView();\n\t\t\tDisplay.getDefault().syncExec(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttv.expandToLevel(tablesFolder, 1);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "protected void loadPage() {\n openComponent(\"Tree\");\n }", "protected void onLoaded() {\n this.isLoaded = true;\n }", "public void initializeTree() {\n \t\tif (treeViewer.getContentProvider() == null) {\n \t\t\tStapTreeContentProvider scp = new StapTreeContentProvider();\n \t\t\ttreeViewer.setContentProvider(scp);\n \t\t} else {\n \t\t\t((StapTreeContentProvider) treeViewer.getContentProvider())\n \t\t\t\t\t.setGraph(this);\n \t\t\ttreeViewer.refresh();\n \t\t\treturn;\n \t\t}\n \t\t\n \t\t((StapTreeContentProvider) treeViewer.getContentProvider()).setGraph(this);\n \t\t\n \t\tif (treeViewer.getLabelProvider() != null)\n \t\t\ttreeViewer.getLabelProvider().dispose();\n \t\tStapTreeLabelProvider prov = new StapTreeLabelProvider();\n \t\ttreeViewer.setLabelProvider(prov);\n \n \t\tif (treeDoubleListener != null) {\n \t\t\ttreeViewer.removeDoubleClickListener(treeDoubleListener);\n \t\t}\n \t\ttreeDoubleListener = new StapTreeDoubleClickListener(treeViewer, this);\n \t\ttreeViewer.addDoubleClickListener(treeDoubleListener);\n \t\t\n \t\ttreeViewer.setInput(getNodeData(getTopNode()));\n \t\ttreeViewer.refresh();\n \t}", "@Override\n public void treeNodesInserted(TreeModelEvent e) {\n }", "public abstract void treeNodesInserted(TreeModelEvent e);", "@SuppressWarnings(\"unchecked\")\n private void loadTreeLocally() {\n try {\n FileInputStream fileIn = new FileInputStream(getTreeFile());\n ObjectInputStream in = new ObjectInputStream(fileIn);\n mavenList = (ArrayList<TreeElement>) in.readObject();\n in.close();\n fileIn.close();\n viewer.setInput(mavenList);\n } catch (IOException | ClassNotFoundException e) {\n Dialogs.showErrorDialog(\"Error loading the Maven artifacts tree cache\", e.getMessage());\n }\n viewer.refresh();\n }", "private void editorLoaded() {\n\t\tInitializeEvent.fire(this);\n\t}", "protected void setLoaded()\n\t{\n\t\tthis.loaded = true;\n\t}", "void loadComplete(ModelNode node);", "protected void onDiagramLoad() {\n }", "public void onLoad() {\n\t}", "public void setLoaded()\n {\n Loaded = true;\n }", "@Override\n public void treeStructureChanged(TreeModelEvent e) {\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
generalGame.GameEnvironment accessor to game environment.
public GameEnvironment getEnvironment() { return environment; }
[ "public GameEnvironment getEnvironment() {\r\n return this.environment;\r\n }", "public GameEnvironment getGameEnvironment() {\r\n return this.gameE;\r\n }", "public Environment getEnvironment();", "Environment getEnviroment();", "public Environment environment()\n {\n return theEnv;\n }", "public Environment getEnvironment()\n\t{\n\t\treturn environment;\n\t}", "public static Environment getEnvironment() { return envObj; }", "public void setGameEnv(GameEnvironment environment) {\r\n this.gameEnv = environment;\r\n }", "public CoreEnvironment environment() {\n return env;\n }", "public void setGameEnvironment(GameEnvironment gameEnvironment) {\r\n this.gameE = gameEnvironment;\r\n }", "@Override\n\tpublic Environment getEnvironment() {\n\t\tif (environment == null) {\n\t\t\tenvironment = new StandardEnvironment();\n\t\t}\n\t\treturn environment;\n\t}", "public LispEnv getEnv() {\n return environment;\n }", "EnvironmentService environment();", "public void setEnvironment(GameEnvironment environment) {\r\n this.gameEnvironment = environment;\r\n }", "interface Environment extends org.apache.accumulo.core.data.constraints.Constraint.Environment {\n /**\n * Gets the key extent of the environment.\n *\n * @return key extent\n */\n KeyExtent getExtent();\n\n /**\n * Gets the user within the environment.\n *\n * @return user\n */\n @Override\n String getUser();\n\n /**\n * Gets the authorizations in the environment.\n *\n * @return authorizations\n */\n @Override\n AuthorizationContainer getAuthorizationsContainer();\n }", "public Environment getActorEnvironment() {\r\n\t\treturn actorEnv;\r\n\t}", "public Map<String,ExpVal> environment() {\n \treturn this.env;\n }", "public Environment getCurrentEnvironment() {\n return env;\n }", "public EnvironmentFrame getEnvironmentFrame() {\n\t\treturn myEnvFrame;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .google.protobuf.Duration lockable_durations = 1 [(.gogoproto.nullable) = false, (.gogoproto.moretags) = "yaml:&92;"lockable_durations&92;"", (.gogoproto.stdduration) = true];
public java.util.List<com.google.protobuf.Duration> getLockableDurationsList() { if (lockableDurationsBuilder_ == null) { return java.util.Collections.unmodifiableList(lockableDurations_); } else { return lockableDurationsBuilder_.getMessageList(); } }
[ "java.util.List<? extends com.google.protobuf.DurationOrBuilder> \n getLockableDurationsOrBuilderList();", "public java.util.List<? extends com.google.protobuf.DurationOrBuilder> \n getLockableDurationsOrBuilderList() {\n if (lockableDurationsBuilder_ != null) {\n return lockableDurationsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(lockableDurations_);\n }\n }", "java.util.List<com.google.protobuf.Duration> \n getLockableDurationsList();", "@java.lang.Override\n public java.util.List<? extends com.google.protobuf.DurationOrBuilder> \n getLockableDurationsOrBuilderList() {\n return lockableDurations_;\n }", "@java.lang.Override\n public java.util.List<com.google.protobuf.Duration> getLockableDurationsList() {\n return lockableDurations_;\n }", "com.google.protobuf.DurationOrBuilder getDurationOrBuilder();", "com.google.protobuf.DurationOrBuilder getDowntimeJailDurationOrBuilder();", "private LockableDurationsInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "com.google.protobuf.Duration getDuration();", "com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder();", "com.google.protobuf.DurationOrBuilder getMessageRetentionDurationOrBuilder();", "public long[] getDurations() {\n return durations;\n }", "com.google.protobuf.Duration getMessageRetentionDuration();", "Builder addTimeRequired(Duration.Builder value);", "ImmutableList<SchemaOrgType> getEligibleDurationList();", "public boolean hasDuration() {\n return fieldSetFlags()[2];\n }", "Builder addTimeRequired(Duration value);", "com.google.protobuf.DurationOrBuilder getExposureTimeOrBuilder();", "com.google.protobuf.Duration getDowntimeJailDuration();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GIVEN A user edits a certified product WHEN they view their pending products THEN they should see errors if any privacy and security framework values do not match one of "Approach 1", "Approach 2", "Approach 1;Approach 2" (Note: Validation should be generous with case and whitespace)
@Transactional @Rollback(true) @Test public void test_updateCertifiedProductSearchDetails_privacyAndSecurityFramework_badValueShowsError() throws EntityRetrievalException, EntityCreationException, IOException, ValidationException { SecurityContextHolder.getContext().setAuthentication(adminUser); CertifiedProductSearchDetails updateRequest = new CertifiedProductSearchDetails(); updateRequest.setCertificationDate(1440090840000L); updateRequest.setId(1L); Map<String, Object> certStatus = new HashMap<String, Object>(); certStatus.put("name", "Active"); updateRequest.setCertificationStatus(certStatus); updateRequest.getCertifyingBody().put("id", "-1"); List<CertificationResult> certificationResults = new ArrayList<CertificationResult>(); CertificationResult cr = new CertificationResult(); cr.setAdditionalSoftware(null); cr.setApiDocumentation(null); cr.setG1Success(false); cr.setG2Success(false); cr.setGap(null); cr.setNumber("170.314 (g)(4)"); cr.setPrivacySecurityFramework("Approach 1 Approach 2"); // bad value cr.setSed(null); cr.setSuccess(true); cr.setTestDataUsed(null); cr.setTestFunctionality(null); cr.setTestProcedures(null); cr.setTestStandards(null); cr.setTestTasks(null); List<CertificationResultTestTool> crttList = new ArrayList<CertificationResultTestTool>(); CertificationResultTestTool crtt = new CertificationResultTestTool(); crtt.setId(2L); crtt.setRetired(true); crtt.setTestToolId(2L); crtt.setTestToolName("Transport Test Tool"); crttList.add(crtt); cr.setTestToolsUsed(crttList); cr.setTitle("Inpatient setting only - transmission of electronic laboratory tests and values/results to ambulatory providers"); cr.setUcdProcesses(null); certificationResults.add(cr); updateRequest.setCertificationResults(certificationResults); List<CQMResultDetails> cqms = new ArrayList<CQMResultDetails>(); CQMResultDetails cqm = new CQMResultDetails(); Set<String> versions = new HashSet<String>(); versions.add("v0"); versions.add("v1"); versions.add("v2"); versions.add("v3"); versions.add("v4"); versions.add("v5"); cqm.setAllVersions(versions); cqm.setCmsId("CMS60"); List<CQMResultCertification> cqmResultCertifications = new ArrayList<CQMResultCertification>(); cqm.setCriteria(cqmResultCertifications); cqm.setDescription("Acute myocardial infarction (AMI) patients with ST-segment elevation on the ECG closest to arrival time receiving " + "fibrinolytic therapy during the hospital visit"); cqm.setDomain(null); cqm.setId(0L); cqm.setNqfNumber("0164"); cqm.setNumber(null); cqm.setSuccess(true); Set<String> successVersions = new HashSet<String>(); successVersions.add("v2"); successVersions.add("v3"); cqm.setSuccessVersions(successVersions); cqm.setTitle("Fibrinolytic Therapy Received Within 30 Minutes of Hospital Arrival"); cqm.setTypeId(2L); cqms.add(cqm); updateRequest.setCqmResults(cqms); Map<String, Object> certificationEdition = new HashMap<String, Object>(); String certEdition = "2015"; certificationEdition.put("name", certEdition); updateRequest.setCertificationEdition(certificationEdition); InheritedCertificationStatus ics = new InheritedCertificationStatus(); ics.setInherits(true); updateRequest.setIcs(ics); // Inherited Status = product.getIcs(); updateRequest.setChplProductNumber("15.07.07.2642.EIC04.36.0.1.160402"); try { ListingUpdateRequest listingUpdateRequest = new ListingUpdateRequest(); listingUpdateRequest.setListing(updateRequest); certifiedProductController.updateCertifiedProduct(listingUpdateRequest); } catch (InvalidArgumentsException e) { e.printStackTrace(); } catch (ValidationException e) { assertNotNull(e); Boolean hasError = false; for(String error : e.getErrorMessages()){ if(error.startsWith("Certification 170.314 (g)(4) contains Privacy and Security Framework")){ hasError = true; } } assertTrue(hasError); } }
[ "private void validateUpdateProduct(Product product, Representative representative) {\n if (product == null) {\n throw new ProductException(\"Failed to update product. Product does not exist.\");\n } else if (!representative.getCompany().getId().equals(product.getCompany().getId())) {\n throw new ProductException(\"Failed to update product. You are not a representative of a company that owns this product.\");\n }\n }", "private void checkProduct(Product product) {\n Assert.notNull(product.getId(), ErrorEnum.ID_NOT_NULL.getMessage()); //msg: \"ID can not be empty\"\n\n Assert.isTrue(BigDecimal.ZERO.compareTo(product.getRewardRate()) < 0 && BigDecimal.valueOf(30).compareTo(product.getRewardRate()) >= 0, ErrorEnum.REWARDRATE_IS_IN_WRONG_RANGE.getMessage());\n\n Assert.isTrue(BigDecimal.valueOf(product.getStepAmount().longValue()).compareTo(product.getStepAmount()) == 0, ErrorEnum.INVESTMENT_NUMBER_IS_NOT_INTEGER.getMessage());\n }", "private boolean validatePuchase() {\n if (TextUtils.isEmpty(editextPurchaseSupplierName.getText().toString())) {\n editextPurchaseSupplierName.setError(getString(R.string.supplier_name));\n editextPurchaseSupplierName.requestFocus();\n return false;\n }\n\n if (TextUtils.isEmpty(edittextPurchaseAmount.getText().toString())) {\n if (flowpurchaseReceivedOrPaid == 2) {\n edittextPurchaseAmount.setError(getString(R.string.menu_purchasePaid));\n edittextPurchaseAmount.requestFocus();\n\n } else {\n edittextPurchaseAmount.setError(getString(R.string.purchase_amount));\n edittextPurchaseAmount.requestFocus();\n }\n return false;\n }\n\n if (TextUtils.isEmpty(edittextPurchasePurpose.getText().toString())) {\n edittextPurchasePurpose.setError(getString(R.string.remark_bill_number));\n edittextPurchasePurpose.requestFocus();\n return false;\n }\n\n\n return true;\n }", "public void activateLicense()\n {\n activationClientCompanyName = fieldAlClientCompanyName.getText().trim();\n activationLicenseActivationDate = fieldAlLicenseActivationDate.getText().trim();\n activationLicenseExpireDate = fieldAlLicenseExpireDate.getText().trim();\n activationActivationKey = fieldAlActivationKey.getText().trim();\n\n try{\n activationProductNumber = Integer.parseInt(fieldAlProductNumber.getText());\n activationNumberOfUsers = Integer.parseInt(fieldAlNumberOfUsers.getText());\n if (activationClientCompanyName.equals(\"\") || activationLicenseActivationDate.equals(\"\") || activationLicenseExpireDate.equals(\"\") || activationActivationKey.equals(\"\") || activationProductNumber <= 0 || activationNumberOfUsers <= 0 ){\n JOptionPane.showMessageDialog(frame,\"Please fill values in all the text fields. And 0 or negative integer are not a valid value for Product Number and Number Of Users.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n else{\n if (product.size() == 0){\n JOptionPane.showMessageDialog(frame, \"There is no available product.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n else{\n boolean state = false;\n for (MicrosoftProduct microsoftProduct : product) {\n EnterpriseEdition ee = (EnterpriseEdition) microsoftProduct;\n\n if (ee.getProductNumber() == activationProductNumber) {\n if (!ee.isActivated()) {\n ee.activateLicense(activationClientCompanyName, activationNumberOfUsers, activationLicenseActivationDate, activationLicenseExpireDate, activationActivationKey);\n JOptionPane.showMessageDialog(frame, \"Product is activated successfully.\");\n fieldAlTotalPrice.setText(Integer.toString(ee.getPrice()));\n }\n else {\n JOptionPane.showMessageDialog(frame, \"Product is already activated\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n state = true;\n break;\n }\n }\n \n if (!state) {\n JOptionPane.showMessageDialog(frame,\"Requested product for activation is not available.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }\n }\n }\n catch (NumberFormatException e){\n JOptionPane.showMessageDialog(frame, \"Please enter integer value at Product Number and Number of Users.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n\n }", "public void resetPricePerUser()\n {\n try{\n resetProductNumber = Integer.parseInt(fieldPpProductNumber.getText().trim());\n resetPricePerUser = Integer.parseInt(fieldPpPricePerUser.getText().trim());\n if (resetProductNumber <= 0 || resetPricePerUser <= 0) {\n JOptionPane.showMessageDialog(frame,\"0 or negative integer are not a valid values of Product Number and Price Per User.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n else{\n boolean state = false;\n for (MicrosoftProduct microsoftProduct: product){\n EnterpriseEdition ee = (EnterpriseEdition) microsoftProduct;\n\n if (ee.getProductNumber() == resetProductNumber){\n if (!ee.isActivated()) {\n ee.pricePerUser(resetPricePerUser);\n JOptionPane.showMessageDialog(frame, \"Price has been changed successfully.\");\n } else {\n JOptionPane.showMessageDialog(frame, \"The license of product has already been granted so; price cannot be changed.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n state = true;\n break;\n }\n }\n \n if (!state){\n JOptionPane.showMessageDialog(frame, \"The requested product for changing the rate price per user is not available.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }\n }\n catch (NumberFormatException e){\n JOptionPane.showMessageDialog(frame, \"Please enter integer value at Product Number and Price Per User.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void validateApiProductInfo(APIProduct product) throws APIManagementException {\n String apiName = product.getId().getName();\n if (apiName == null) {\n handleException(\"API Name is required.\");\n } else if (containsIllegals(apiName)) {\n handleException(\"API Name contains one or more illegal characters \" +\n \"( \" + APIConstants.REGEX_ILLEGAL_CHARACTERS_FOR_API_METADATA + \" )\");\n }\n //version is not a mandatory field for now\n if (!hasValidLength(apiName, APIConstants.MAX_LENGTH_API_NAME)\n || !hasValidLength(product.getId().getVersion(), APIConstants.MAX_LENGTH_VERSION)\n || !hasValidLength(product.getId().getProviderName(), APIConstants.MAX_LENGTH_PROVIDER)\n || !hasValidLength(product.getContext(), APIConstants.MAX_LENGTH_CONTEXT)) {\n throw new APIManagementException(\"Character length exceeds the allowable limit\",\n ExceptionCodes.LENGTH_EXCEEDS);\n }\n }", "public void onValidateFromApprovalForm()\n\t {\n\t\t showErrorApproval=false;\n\t\t showRepeatedApproval=false;\n\t\t if(approvalOp1==null || approvalOp2==null)\n\t\t {\n\n\t\t\t showErrorApproval=true;\n\t\t }\n\n\t\t System.out.println(\"NUMOP->\"+numOptApproval);\n\t\t switch(numOptApproval)\n\t\t {\n\t\t case 15:\n\t\t\t if(approvalOp15==null){showErrorApproval=true;}\n\t\t case 14:\n\t\t\t if(approvalOp14==null){showErrorApproval=true;}\n\t\t case 13:\n\t\t\t if(approvalOp13==null){showErrorApproval=true;}\n\t\t case 12:\n\t\t\t if(approvalOp12==null){showErrorApproval=true;}\n\t\t case 11:\n\t\t\t if(approvalOp11==null){showErrorApproval=true;}\n\t\t case 10:\n\t\t\t if(approvalOp10==null){showErrorApproval=true;}\n\t\t case 9:\n\t\t\t if(approvalOp9==null){showErrorApproval=true;}\n\t\t case 8:\n\t\t\t if(approvalOp8==null){showErrorApproval=true;}\n\t\t case 7:\n\t\t\t if(approvalOp7==null){showErrorApproval=true;}\n\t\t case 6:\n\t\t\t if(approvalOp6==null){showErrorApproval=true;}\n\t\t case 5:\n\t\t\t if(approvalOp5==null){showErrorApproval=true;}\n\t\t case 4:\n\t\t\t if(approvalOp4==null){showErrorApproval=true;}\n\t\t case 3:\n\t\t\t if(approvalOp3==null){showErrorApproval=true;}\n\t\t\t break;\n\t\t default:\n\t\t\t showErrorApproval=false;\n\t\t }\n\t\t if(!showErrorApproval)//añadir las opciones\n\t\t {\n\t\t\t List<String> listOptions=new LinkedList<String>();\n\t\t\t listOptions.add(approvalOp1);\n\t\t\t listOptions.add(approvalOp2);\n\t\t\t if(numOptApproval>=3)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp3);\n\t\t\t }\n\t\t\t if(numOptApproval>=4)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp4);\n\t\t\t }\n\t\t\t if(numOptApproval>=5)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp5);\n\t\t\t }\n\t\t\t if(numOptApproval>=6)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp6);\n\t\t\t }\n\t\t\t if(numOptApproval>=7)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp7);\n\t\t\t }\n\t\t\t if(numOptApproval>=8)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp8);\n\t\t\t }\n\t\t\t if(numOptApproval>=9)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp9);\n\t\t\t }\n\t\t\t if(numOptApproval>=10)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp10);\n\t\t\t }\n\t\t\t if(numOptApproval>=11)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp11);\n\t\t\t }\n\t\t\t if(numOptApproval>=12)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp12);\n\t\t\t }\n\t\t\t if(numOptApproval>=13)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp13);\n\t\t\t }\n\t\t\t if(numOptApproval>=14)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp14);\n\t\t\t }\n\t\t\t if(numOptApproval>=15)\n\t\t\t {\n\t\t\t\t listOptions.add(approvalOp15);\n\t\t\t }\n\t\t\t for(int x=0;x<listOptions.size();x++)\n\t\t\t {\n\t\t\t\t for(int i=x+1;i<listOptions.size();i++)\n\t\t\t\t {\n\t\t\t\t\t if(listOptions.get(x).toLowerCase().equals(listOptions.get(i).toLowerCase()))\n\t\t\t\t\t {\n\t\t\t\t\t\t showRepeatedApproval=true; \n\t\t\t\t\t }\n\n\t\t\t\t }\n\t\t\t }\n\t\t\t approvalVoting.setOptions(listOptions);\n\t\t }\n\t }", "@Transactional\n\t@Rollback(true)\n\t@Test\n\tpublic void test_updateCertifiedProductSearchDetails_privacyAndSecurityFramework_handlesWhitespaces() throws EntityRetrievalException, EntityCreationException, IOException, ValidationException, InvalidArgumentsException {\n\t\tSecurityContextHolder.getContext().setAuthentication(adminUser);\n\t\t\n\t\tString formattedPrivacyAndSecurityFramework = CertificationResult.formatPrivacyAndSecurityFramework(\" Approach 1 , Approach 2 \");\n\t\tassertEquals(\"Approach 1;Approach 2\", formattedPrivacyAndSecurityFramework);\n\t\t\n\t\tformattedPrivacyAndSecurityFramework = CertificationResult.formatPrivacyAndSecurityFramework(\" Approach 1 Approach 2 \");\n\t\tassertEquals(\"Approach 1 Approach 2\", formattedPrivacyAndSecurityFramework);\n\t\t\n\t\tformattedPrivacyAndSecurityFramework = CertificationResult.formatPrivacyAndSecurityFramework(\" Approach 1 \");\n\t\tassertEquals(\"Approach 1\", formattedPrivacyAndSecurityFramework);\n\t\t\n\t\tformattedPrivacyAndSecurityFramework = CertificationResult.formatPrivacyAndSecurityFramework(\" Approach 2 \");\n\t\tassertEquals(\"Approach 2\", formattedPrivacyAndSecurityFramework);\n\t\t\n\t\tCertifiedProductSearchDetails updateRequest = new CertifiedProductSearchDetails();\n\t\tupdateRequest.setCertificationDate(1440090840000L);\n\t\tupdateRequest.setId(1L);\n\t\tMap<String, Object> certStatus = new HashMap<String, Object>();\n\t\tcertStatus.put(\"name\", \"Active\");\n\t\tupdateRequest.setCertificationStatus(certStatus);\n\t\tupdateRequest.getCertifyingBody().put(\"id\", \"-1\");\n\t\tList<CertificationResult> certificationResults = new ArrayList<CertificationResult>();\n\t\tCertificationResult cr = new CertificationResult();\n\t\tcr.setAdditionalSoftware(null);\n\t\tcr.setApiDocumentation(null);\n\t\tcr.setG1Success(false);\n\t\tcr.setG2Success(false);\n\t\tcr.setGap(null);\n\t\tcr.setNumber(\"170.314 (g)(4)\");\n\t\tcr.setPrivacySecurityFramework(\" Approach 1 , Approach 2 \"); // bad value\n\t\tcr.setSed(null);\n\t\tcr.setSuccess(true);\n\t\tcr.setTestDataUsed(null);\n\t\tcr.setTestFunctionality(null);\n\t\tcr.setTestProcedures(null);\n\t\tcr.setTestStandards(null);\n\t\tcr.setTestTasks(null);\n\t\tList<CertificationResultTestTool> crttList = new ArrayList<CertificationResultTestTool>();\n\t\tCertificationResultTestTool crtt = new CertificationResultTestTool();\n\t\tcrtt.setId(2L);\n\t\tcrtt.setRetired(true);\n\t\tcrtt.setTestToolId(2L);\n\t\tcrtt.setTestToolName(\"Transport Test Tool\");\n\t\tcrttList.add(crtt);\n\t\tcr.setTestToolsUsed(crttList);\n\t\tcr.setTitle(\"Inpatient setting only - transmission of electronic laboratory tests and values/results to ambulatory providers\");\n\t\tcr.setUcdProcesses(null);\n\t\tcertificationResults.add(cr);\n\t\tupdateRequest.setCertificationResults(certificationResults);\n\t\tList<CQMResultDetails> cqms = new ArrayList<CQMResultDetails>();\n\t\tCQMResultDetails cqm = new CQMResultDetails();\n\t\tSet<String> versions = new HashSet<String>();\n\t\tversions.add(\"v0\");\n\t\tversions.add(\"v1\");\n\t\tversions.add(\"v2\");\n\t\tversions.add(\"v3\");\n\t\tversions.add(\"v4\");\n\t\tversions.add(\"v5\");\n\t\tcqm.setAllVersions(versions);\n\t\tcqm.setCmsId(\"CMS60\");\n\t\tList<CQMResultCertification> cqmResultCertifications = new ArrayList<CQMResultCertification>();\n\t\tcqm.setCriteria(cqmResultCertifications);\n\t\tcqm.setDescription(\"Acute myocardial infarction (AMI) patients with ST-segment elevation on the ECG closest to arrival time receiving \"\n\t\t\t\t+ \"fibrinolytic therapy during the hospital visit\"); \n\t\tcqm.setDomain(null);\n\t\tcqm.setId(0L);\n\t\tcqm.setNqfNumber(\"0164\");\n\t\tcqm.setNumber(null);\n\t\tcqm.setSuccess(true);\n\t\tSet<String> successVersions = new HashSet<String>();\n\t\tsuccessVersions.add(\"v2\");\n\t\tsuccessVersions.add(\"v3\");\n\t\tcqm.setSuccessVersions(successVersions);\n\t\tcqm.setTitle(\"Fibrinolytic Therapy Received Within 30 Minutes of Hospital Arrival\");\n\t\tcqm.setTypeId(2L);\n\t\tcqms.add(cqm);\n\t\tupdateRequest.setCqmResults(cqms);\n\t\tMap<String, Object> certificationEdition = new HashMap<String, Object>();\n\t\tString certEdition = \"2015\";\n\t\tcertificationEdition.put(\"name\", certEdition);\n\t\tupdateRequest.setCertificationEdition(certificationEdition);\n\t\tInheritedCertificationStatus ics = new InheritedCertificationStatus();\n\t\tics.setInherits(true);\n\t\tupdateRequest.setIcs(ics); // Inherited Status = product.getIcs();\n\t\tupdateRequest.setChplProductNumber(\"15.07.07.2642.EIC04.36.0.1.160402\");\n\t\tListingUpdateRequest listingUpdateRequest = new ListingUpdateRequest();\n\t\tlistingUpdateRequest.setListing(updateRequest);\n\t\ttry{\n\t\t\tcertifiedProductController.updateCertifiedProduct(listingUpdateRequest);\n\t\t}\n\t\tcatch (InvalidArgumentsException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (ValidationException e) {\n\t\t\tassertNotNull(e);\n\t\t\tBoolean hasError = false;\n\t\t\tfor(String error : e.getErrorMessages()){\n\t\t\t\tif(error.contains(\"Privacy and Security Framework\")){\n\t\t\t\t\thasError = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tassertFalse(hasError);\n\t\t}\n\t\t\n\t}", "@Test\n public void testIsValidProduct() {\n try {\n assertTrue(service.isValidProduct(\"Carpet\"));\n assertTrue(service.isValidProduct(\"Laminate\"));\n assertTrue(service.isValidProduct(\"Tile\"));\n assertTrue(service.isValidProduct(\"Wood\"));\n\n assertFalse(service.isValidProduct(\"Candy\")); // doesnt exist\n assertFalse(service.isValidProduct(\"Woood\")); // extra char in valid name\n assertFalse(service.isValidProduct(\"\")); // empty\n } catch (PersistenceException ex) {\n fail(ex.getMessage());\n }\n }", "String validateModifiedPolicyNo(String modifiedPolicyNo, String policyId);", "public void VerifyDiscountedProductDetails()\t{\n\t\tList<WebElement> productDescriptionList = getSearchResultList();\n\t\tint s = productDescriptionList.size();\n\n\t\tif(s>=0)\n\t\t{\n\t\t\tReporter.log(\"Passed : Products are filtered and total products displayed in PLP Page, count is =\" + s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tReporter.log(\"Failed : Products are not displayed in PLP Page after applying filter.\");\n\t\t}\n\t\tint i=1;\n\t\tfor(WebElement product : productDescriptionList)\n\t\t{\n\t\t\tWebElement productBrand = (WebElement)product.findElement(By.xpath(\"(//div[@class='product-brand'])[\" + (i) +\"]\"));\n\t\t\tWebElement productName = (WebElement)product.findElement(By.xpath(\"(//h4[@class='product-product'])[\" + (i) +\"]\"));\n\t\t\tWebElement productSellingPrice = (WebElement)product.findElement(By.xpath(\"(//span[@class='product-discountedPrice'])[\" + (i) +\"]\"));\n\t\t\tWebElement productStrikedPrice = (WebElement)product.findElement(By.xpath(\"(//span[@class='product-strike'])[\" + (i) +\"]\"));\n\t\t\tWebElement productPercentageDiscount = (WebElement)product.findElement(By.xpath(\"(//span[@class='product-discountPercentage'])[\" + (i) +\"]\"));\n\t\t\t\n\t\t\tobjGenericMethods.VerifyStringShouldNotEmpty(productBrand, productBrand.getText());\n\t\t\tobjGenericMethods.VerifyStringShouldNotEmpty(productName, productName.getText());\n\t\t\tobjGenericMethods.VerifyStringShouldNotEmpty(productSellingPrice, productSellingPrice.getText());\n\t\t\tobjGenericMethods.VerifyStringShouldNotEmpty(productStrikedPrice, productStrikedPrice.getText());\n\t\t\tobjGenericMethods.VerifyStringShouldNotEmpty(productPercentageDiscount, productPercentageDiscount.getText());\n\t\t\ti++;\n\t\t}\n\t}", "@Test\n public void testUpdateProductShouldThrowForbiddenWhenMemberUserAccess() throws Exception {\n testResponseData(RequestInfo.builder()\n .request(put(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(memberToken)\n .body(productRequest)\n .httpStatus(HttpStatus.FORBIDDEN)\n .build());\n }", "public void verifyCorrectProductSelected(String product){\n assertIfEqual(product, getProductTitleOnProductDetails(), \"Assert if product title is correct\");\n }", "void validateOtherIdentifiers(StudyProtocolDTO studyProtocolDTO, StringBuilder errorMsg) throws PAException {\n StudyProtocolDTO saved = studyProtocolService.getStudyProtocol(studyProtocolDTO.getIdentifier());\n Set<Ii> savedIdentifiers = saved.getSecondaryIdentifiers().getItem();\n Set<Ii> newIdentifiers = (studyProtocolDTO.getSecondaryIdentifiers() == null) ? new HashSet<Ii>()\n : studyProtocolDTO.getSecondaryIdentifiers().getItem();\n if (!CollectionUtils.isSubCollection(savedIdentifiers, newIdentifiers)) {\n errorMsg.append(\"Other identifiers cannot be modified or deleted as part of an amendment.\");\n }\n }", "void validateAmendmentDocuments(List<DocumentDTO> documentDTOs, StringBuilder errorMsg) {\n if (!paServiceUtils.isDocumentInList(documentDTOs, DocumentTypeCode.CHANGE_MEMO_DOCUMENT) && !paServiceUtils\n .isDocumentInList(documentDTOs, DocumentTypeCode.PROTOCOL_HIGHLIGHTED_DOCUMENT)) {\n errorMsg.append(\"At least one is required: Change Memo Document or Protocol Highlighted Document.\");\n }\n }", "public void testCompletePurchaseOrderWithCancelledItemAfterApproving() throws GeneralException {\n \n GenericValue product1 = createTestProduct(\"testCompletePurchaseOrderWithCancelledItemAfterApproving Test Product 1\", demopurch1);\n GenericValue product2 = createTestProduct(\"testCompletePurchaseOrderWithCancelledItemAfterApproving Test Product 2\", demopurch1);\n GenericValue product3 = createTestProduct(\"testCompletePurchaseOrderWithCancelledItemAfterApproving Test Product 3\", demopurch1);\n createMainSupplierForProduct(product1.getString(\"productId\"), euroSupplier.getString(\"partyId\"), new BigDecimal(\"10.0\"), \"USD\", new BigDecimal(\"0.0\"), admin);\n createMainSupplierForProduct(product2.getString(\"productId\"), euroSupplier.getString(\"partyId\"), new BigDecimal(\"20.0\"), \"USD\", new BigDecimal(\"0.0\"), admin);\n createMainSupplierForProduct(product3.getString(\"productId\"), euroSupplier.getString(\"partyId\"), new BigDecimal(\"115.0\"), \"USD\", new BigDecimal(\"0.0\"), admin);\n \n \n // 1. Create a PO.\n Map<GenericValue, BigDecimal> orderedProducts = new HashMap<GenericValue, BigDecimal>();\n orderedProducts.put(product1, new BigDecimal(\"10.0\"));\n orderedProducts.put(product2, new BigDecimal(\"15.0\"));\n orderedProducts.put(product3, new BigDecimal(\"25.0\"));\n PurchaseOrderFactory pof = testCreatesPurchaseOrder(orderedProducts, euroSupplier, facilityContactMechId);\n String orderId = pof.getOrderId();\n Debug.logInfo(\"testCompletePurchaseOrderWithCancelledItemAfterApproving created order [\" + pof.getOrderId() + \"]\", MODULE);\n \n // 2. The status of the PO is created.\n GenericValue pOrder = delegator.findByPrimaryKeyCache(\"OrderHeader\", UtilMisc.toMap(\"orderId\", orderId));\n assertEquals(String.format(\"Wrong status for order [%1$s]\", orderId), \"ORDER_CREATED\", pOrder.getString(\"statusId\"));\n \n // 3. Approve PO\n pof.approveOrder();\n \n // 4. Verify all items are approved\n List<EntityExpr> conditions = Arrays.asList(new EntityExpr(\"orderId\", EntityOperator.EQUALS, orderId), new EntityExpr(\"statusId\", EntityOperator.EQUALS, \"ITEM_APPROVED\"));\n long itemApprovedCount = delegator.findCountByCondition(\"OrderItem\", new EntityConditionList(conditions, EntityOperator.AND), null, null);\n assertEquals(String.format(\"Wrong status for item in order [%1$s]\", orderId), 3, itemApprovedCount);\n \n // 5. Verify PO status is approve\n pOrder = delegator.findByPrimaryKeyCache(\"OrderHeader\", UtilMisc.toMap(\"orderId\", orderId));\n assertEquals(String.format(\"Wrong status for order [%1$s]\", orderId), \"ORDER_APPROVED\", pOrder.getString(\"statusId\"));\n \n // 6. Cancel One item\n pof.cancelProduct(product1, new BigDecimal(\"10.0\"));\n \n // 7. Verify PO status is approve\n pOrder = delegator.findByPrimaryKeyCache(\"OrderHeader\", UtilMisc.toMap(\"orderId\", orderId));\n assertEquals(String.format(\"Wrong status for order [%1$s]\", orderId), \"ORDER_APPROVED\", pOrder.getString(\"statusId\"));\n \n // 8. Receive and Close PO\n Map<String, Object> inputParameters = createTestInputParametersForReceiveInventoryAgainstPurchaseOrder(pOrder, demowarehouse1);\n runAndAssertServiceSuccess(\"warehouse.issueOrderItemToShipmentAndReceiveAgainstPO\", inputParameters);\n \n // 9. Verify all items are completed and one item is cancelled\n conditions = Arrays.asList(new EntityExpr(\"orderId\", EntityOperator.EQUALS, orderId), new EntityExpr(\"statusId\", EntityOperator.EQUALS, \"ITEM_COMPLETED\"));\n long itemCompletedCount = delegator.findCountByCondition(\"OrderItem\", new EntityConditionList(conditions, EntityOperator.AND), null, null);\n conditions = Arrays.asList(new EntityExpr(\"orderId\", EntityOperator.EQUALS, orderId), new EntityExpr(\"statusId\", EntityOperator.EQUALS, \"ITEM_CANCELLED\"));\n long itemCancelledCount = delegator.findCountByCondition(\"OrderItem\", new EntityConditionList(conditions, EntityOperator.AND), null, null);\n assertTrue(String.format(\"Wrong status for item(s) in order [%1$s]\", orderId), itemCompletedCount == 2 && itemCancelledCount == 1);\n \n // 10. Verify PO status is complete\n pOrder = delegator.findByPrimaryKeyCache(\"OrderHeader\", UtilMisc.toMap(\"orderId\", orderId));\n assertEquals(String.format(\"Wrong status for order [%1$s]\", orderId), \"ORDER_COMPLETED\", pOrder.getString(\"statusId\"));\n \n }", "public void terminateLicense()\n {\n try{\n terminateProductNumber = Integer.parseInt(fieldTlProductNumber.getText().trim());\n if (terminateProductNumber <= 0){\n JOptionPane.showMessageDialog(frame,\"0 or negative integer are a not valid value for Product Number.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n else {\n if (product.size() == 0) {\n JOptionPane.showMessageDialog(frame, \"There is no available product.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n else\n {\n boolean state = false;\n for (MicrosoftProduct microsoftProduct : product) {\n EnterpriseEdition ee = (EnterpriseEdition) microsoftProduct;\n\n if (ee.getProductNumber() == terminateProductNumber) {\n if (ee.isActivated()) {\n ee.terminateLicense();\n JOptionPane.showMessageDialog(frame, \"Product is terminated successfully.\");\n }\n else {\n JOptionPane.showMessageDialog(frame, \"Product is already terminated.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n state = true;\n break;\n }\n }\n \n if (!state){\n JOptionPane.showMessageDialog(frame, \"Requested product for termination is not available.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }\n }\n }\n catch(NumberFormatException e){\n JOptionPane.showMessageDialog(frame, \"Please enter integer value at Product Number.\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void validateTradeUnits(TradeLicenseRequest request){\n Map<String,String> errorMap = new HashMap<>();\n List<TradeLicense> licenses = request.getLicenses();\n\n for(TradeLicense license : licenses)\n {\n Boolean flag = false;\n List<TradeUnit> units = license.getTradeLicenseDetail().getTradeUnits();\n for(TradeUnit unit : units) {\n if(unit.getId()!=null && unit.getActive())\n flag = true;\n else if(unit.getId()==null)\n flag = true;\n }\n if(!flag)\n errorMap.put(\"INVALID UPDATE\",\"All TradeUnits are inactive in the tradeLicense: \"+license.getApplicationNumber());\n }\n\n if(!errorMap.isEmpty())\n throw new CustomException(errorMap);\n }", "private void checkInvalidInformation(EditPlanDirectToManaged editPlanPage) throws Exception {\n //\n Reporter.log(\"Verifying Error Messages on Edit Plan Page\", true);\n editPlanPage.invalidEditPlanUpdate();\n softAssert.assertTrue(editPlanPage.verifyEditPlanErrorMessage());\n\n //Re-Enter correct details\n editPlanPage.updateAnnualHouseHoldincome(Constants.DEFAULT_ANNUAL_HOUSEHOLD_INCOME);\n editPlanPage.updateRetirementAge(Constants.DEFAULT_RETIREMENT_AGE + \"\");\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new Range by composing a Range that is reletive to this Range.
public Range compose(Range r) throws InvalidRangeException { if ((length() == 0) || (r.length() == 0)) { return EMPTY; } if (this == VLEN || r == VLEN) { return VLEN; } /* * if(false) {// Original version * // Note that this version assumes that range r is * // correct with respect to this. * int first = element(r.first()); * int stride = stride() * r.stride(); * int last = element(r.last()); * return new Range(name, first, last, stride); * } else {//new version: handles versions all values of r. */ int sr_stride = this.stride * r.stride; int sr_first = element(r.first()); // MAP(this,i) == element(i) int lastx = element(r.last()); int sr_last = Math.min(last(), lastx); return new Range(name, sr_first, sr_last, sr_stride); }
[ "abstract public Range createRange();", "Range createRange();", "RangeExpression createRangeExpression();", "public static Mutator realRange() {\n return new MutatorRealRange();\n }", "RangeOperation createRangeOperation();", "CollectionRange createCollectionRange();", "protected abstract R toRange(D lower, D upper);", "<C> CollectionRange<C> createCollectionRange();", "RangeValue createRangeValue();", "Comparator createComparatorRange();", "ValueRange createValueRange();", "public OrderSearchNumberRangeExpression build() {\n Objects.requireNonNull(range, OrderSearchNumberRangeExpression.class + \": range is missing\");\n return new OrderSearchNumberRangeExpressionImpl(range);\n }", "public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder\n getRangeBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getRangeFieldBuilder().getBuilder();\n }", "ValueRangeConstraint createValueRangeConstraint();", "RangeDTO getRange();", "public Range() {\n }", "public Range set(int lower, int upper) {\n this.lower = lower;\n this.upper = upper;\n return this;\n }", "RangeSubsetType createRangeSubsetType();", "public PixelRange basepairRangeToPixelRange(apollo.datamodel.RangeI range) {\n PixelRange pixRng = new PixelRange();\n if (getXOrientation() == LEFT) { // normal\n pixRng.low = toPixelX(range.getLow() - 1); // inclusive\n pixRng.hi = toPixelX(range.getHigh());\n } \n else if (getXOrientation() == RIGHT) { // revcomp\n pixRng.low = toPixelX(range.getHigh());\n pixRng.hi = toPixelX(range.getLow() - 1); // inclusive\n }\n return pixRng;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This doesn't use ClassisAssignableFrom to avoid us needing to load AndroidX's Fragment class, which may not be on the classpath.
private boolean isFragmentSubclass(String internalType) { try { String binaryName = Type.getObjectType(internalType).getClassName(); Class<?> clazz = mClassLoader.loadClass(binaryName); while (clazz != null) { if (clazz.getName().equals("androidx.fragment.app.Fragment")) { return true; } clazz = clazz.getSuperclass(); } return false; } catch (ClassNotFoundException e) { throw new RuntimeException(e); } }
[ "@Override\n protected boolean isValidFragment(String fragmentName) {\n return SafeFragment1.class.getName().equals(fragmentName)\n || SafeFragment2.class.getName().equals(fragmentName)\n || SafeFragment3.class.getName().equals(fragmentName);\n }", "private static Object loadFromFragment(Class<?> clazz) {\n Object provider = null;\n \n if ( s_loader == null && !s_loaderNotFound ) {\n // Initialize the loader\n try {\n Class<?> loaderClazz = Class.forName(\"com.ibm.domino.commons.model.ProviderLoader\"); // $NON-NLS-1$\n s_loader = (IProviderLoader)loaderClazz.newInstance();\n } \n catch (Throwable e) {\n s_loaderNotFound = true;\n }\n }\n \n if ( s_loader == null ) {\n \n // For backward compatibility with a 9.0.1 version of\n // domino.commons.ext, try some hard-coded class names.\n \n try {\n Class<?> oldClazz = null;\n if ( clazz.equals(IOooStatusProvider.class) ) {\n oldClazz = Class.forName(\"com.ibm.domino.commons.model.OooStatusProvider\"); // $NON-NLS-1$\n }\n else if ( clazz.equals(IImaSettingsProvider.class) ) {\n oldClazz = Class.forName(\"com.ibm.domino.commons.model.ImaSettingsProvider\"); // $NON-NLS-1$\n }\n \n if ( oldClazz != null ) {\n provider = oldClazz.newInstance();\n }\n } \n catch (Throwable e) {\n // Do nothing\n }\n }\n else {\n // Load the provider from the fragment\n provider = s_loader.load(clazz);\n }\n\n if ( provider != null && !clazz.isInstance(provider) ) {\n // Wrong type\n provider = null;\n }\n \n return provider;\n }", "public interface BaseFragmentView extends BaseView{\n\n void startFragment(Fragment tofragment, String tag);\n\n Context getContext();\n\n Bundle getBundle();\n\n BaseFragment getFragment();\n}", "public abstract Fragment getFragment();", "static Class<?> findViewClass(Context context, String name) throws ClassNotFoundException {\n if (name.indexOf('.') >= 0) {\n return loadViewClass(context, name);\n }\n\n for (String prefix : VIEW_CLASS_PREFIX_LIST) {\n try {\n return loadViewClass(context, prefix + name);\n } catch (ClassNotFoundException e) {\n continue;\n }\n }\n\n throw new ClassNotFoundException(\"Couldn't load View class for \" + name);\n }", "private boolean isDowncastableFragmentActivityMethodInvocation(\n int opcode, String owner, String name, String descriptor) {\n // Return if this isn't an invoke instruction on a FragmentActivity.\n if (!(opcode == Opcodes.INVOKEVIRTUAL || opcode == Opcodes.INVOKESPECIAL)\n || !owner.equals(\"androidx/fragment/app/FragmentActivity\")) {\n return false;\n }\n try {\n // Check if the method exists in Activity.\n Class<?> activity = mClassLoader.loadClass(\"android.app.Activity\");\n for (Method activityMethod : activity.getMethods()) {\n if (activityMethod.getName().equals(name)\n && Type.getMethodDescriptor(activityMethod)\n .equals(descriptor)) {\n return true;\n }\n }\n return false;\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n }", "private String getStartingFragmentClass(Intent intent) {\n if (mFragmentClass != null) return mFragmentClass;\n\n String intentClass = intent.getComponent().getClassName();\n if (intentClass.equals(getClass().getName())) return null;\n\n return intentClass;\n }", "private static <T> Class<T> activityClassForName(String className)\n {\n try\n {\n @SuppressWarnings(\"unchecked\")\n Class<T> klass = (Class<T>) Class.forName(className);\n\n assertTrue(\"The class \" + className + \" is not a subclass of \"\n + \"android.app.Activity.\",\n android.app.Activity.class.isAssignableFrom(klass));\n\n return klass;\n }\n catch (Exception e)\n {\n fail(\"Could not find the activity class \" + className + \".\");\n return null;\n }\n }", "@Override\n protected boolean isValidFragment(String fragmentName) {\n return true;\n }", "protected abstract void injectFragment(FragmentComponent fragmentComponent);", "protected abstract Fragment createFragment();", "private void loadHomeFragment() {\n }", "void loadUpperFragment(Fragment fragment);", "public interface OnFragmentInteractionListener {\n\n }", "FragmentType createFragmentType();", "AbstractFragmentType createAbstractFragmentType();", "private boolean canLoadClass(ClassLoader loader, String className) {\n try {\n loader.loadClass(className);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public interface FragmentIntentInterface {\n public void startIntentFromFragment(Intent intent);\n}", "public interface FragmentManager {\n /**\n * Handle the next incoming record batch.\n *\n * @param batch\n * @return True if the fragment has enough incoming data to be able to be run.\n * @throws FragmentSetupException, IOException\n */\n boolean handle(IncomingDataBatch batch) throws FragmentSetupException, IOException;\n\n /**\n * Get the fragment runner for this incoming fragment. Note, this can only be requested once.\n *\n * @return\n */\n FragmentExecutor getRunnable();\n\n void cancel();\n\n /**\n * Find out if the FragmentManager has been cancelled.\n *\n * @return true if the FragmentManager has been cancelled.\n */\n boolean isCancelled();\n\n /**\n * If the executor is paused (for testing), this method should unpause the executor. This method should handle\n * multiple calls.\n */\n void unpause();\n\n boolean isWaiting();\n\n FragmentHandle getHandle();\n\n FragmentContext getFragmentContext();\n\n void receivingFragmentFinished(final FragmentHandle handle);\n\n}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add a newline and space for indent if required, and a simple whitespace otherwise.
private void newline() { if (enableSplitting) { if (out.length() != 0) { out.append(System.lineSeparator()); } out.append(" ".repeat(depth)); // two spaces indent is sufficient } else { out.append(" "); // just a separator between two tokens } }
[ "private void appendNewLine() {\n append(\"\\n\");\n for (int i = 0; i < indent; ++i) {\n append(\" \");\n }\n }", "private void addIndent() {\r\n if (indentSpace.length() > 0) {\r\n for (int i = 0; i < indent; i++) {\r\n xml.append(indentSpace);\r\n }\r\n }\r\n }", "private static void indent()\r\n {\r\n for (int i = 0; i < indentLevel * 2; i++) {\r\n System.out.print(' ');\r\n }\r\n }", "private void indent() {\n for (int i = 0; i < level; i++) {\n buffer.append(\" \");\n }\n }", "public void indent()\n {\n indent += 1;\n }", "private void indent() {\n\t\tfor (int i = 0; i < level; i++) {\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t}", "void addSpaces() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"| \");\n\t\tSystem.out.println(\"|\");\n\t}", "private void indent(int indentSum) {\n for(int i = 0; i < indentSum * 4; i++) {\n System.out.print(\" \");\n }\n }", "public String addIndentation(String message) {\n return \" > \" + message;\n }", "public void addBlankLine ()\n {\n addNewLineIfNeeded();\n _extendedDesc.append(\" .\");\n }", "public void outdent()\n {\n if ( indent > 0 )\n {\n indent -= 1;\n }\n }", "public void addLine() {\r\n\t\taddLine(\" \");\r\n\t}", "@VTID(44)\r\n boolean getAddIndent();", "protected static String indent()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i=0; i<toStringIndent; i++) sb.append(\" \");\n\t\treturn sb.toString();\n\t}", "public void printIndent() throws IOException\n {\n _startLine = false;\n\n for (int i = 0; i < _indentDepth; i++)\n _os.print(' ');\n\n _lastCr = false;\n }", "private void incIndent() {\n\t\tindent += 2;\n\t}", "private void writeIndent() throws IOException {\n int indentSpaceCount;\n\n indentSpaceCount = myIndentLevel * INDENT_SPACES_PER_LEVEL;\n\n for (int i = 0; i < indentSpaceCount; i++) {\n myWriter.append(' ');\n }\n }", "private void printSeparator() {\r\n\t\tthis.printLineGap();\r\n\t}", "private static void code(int indent, String line)\r\n {\r\n for (int i = 0; i < indent * 4; i++)\r\n System.out.print(' ');\r\n System.out.println(line);\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/SharedPreferences settings = context.getSharedPreferences(PREFS_NAME, 0); SharedPreferences.Editor prefEditor = settings.edit(); prefEditor.putLong(key, value); prefEditor.commit();
public static void setValueLong(Context context, String key, long value){ SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences.Editor editor = settings.edit(); editor.putLong(key, value); editor.commit(); }
[ "public void writeEncounterNumPreferences(long encounterNum){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=mSharedPreference.edit();\n editor.putLong(mContext.getString(R.string.encounter),encounterNum);\n editor.commit();\n}", "public static void putLongValueInSharedPreference(Context context, String key, long value) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putLong(key, value);\n editor.commit();\n }", "public void savePreferencesInt(String key, int value) {\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putInt(key, value);\n editor.apply();\n }", "@Override\n public void saveInt(String key, int value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putInt(key, value);\n prefs.commit();\n }", "public void setIntegerPrefValue(String key, int value) {\n SharedPreferences pref = mContext.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n\n editor.putInt(key, value);\n editor.commit();\n }", "private void savePreferenceAsInt(String preference, int value) {\n\n // Save preference locally\n sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n Editor editor = sharedPrefs.edit();\n\n // Save key-values\n editor.putInt(preference, value);\n\n // Commit changes\n editor.apply();\n\n }", "public long getPreferencesLong(String key) {\n return mSharedPreferences.getLong(key, DEFAULT_INT); //false is default value\n }", "private static int checkAndStoreLongCountPref( Context context )\n {\n return _checkAndStoreIntPref( context,\n R.string.touch_long_count_key,\n TOUCH_LONG_COUNT_INT_KEY,\n R.string.touch_long_count_default,\n R.integer.touch_long_count_min,\n R.integer.touch_long_count_max );\n }", "private void writePref() {\n SharedPreferences.Editor editor = sp.edit();\n long currentTime = System.currentTimeMillis();\n editor.putLong(UPDATE, currentTime);\n editor.commit();\n System.out.println(\"Time of current update: \" + getDateFromLong(currentTime));\n }", "public void saveIntData(String key, int value) {\r\n mSharedPrefInstance.edit().putInt(key, value).apply();\r\n }", "private void persistTimeValue() {\r\n\t\tSharedPreferences.Editor editor = getEditor();\r\n\t\teditor.putString(getKey(), getTimeValue());\r\n\t\teditor.commit();\r\n\t}", "private void saveValue2(String val, String key){\r\n SharedPreferences appSharedPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity());\r\n SharedPreferences.Editor prefsEditor = appSharedPrefs.edit();\r\n Gson gson = new Gson();\r\n String json = gson.toJson(val);\r\n prefsEditor.putString(key, json);\r\n prefsEditor.apply();\r\n }", "void setLong(String key, long value);", "public static void addSaveCounter1(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter1 = prefs.getInt(saveCounter1, 0);\n SaveCounter1 = SaveCounter1 + SaveInc;\n prefs.edit().putInt(saveCounter1, SaveCounter1).commit();\n\n }", "private void sharedPreferences() {\n\n // Storing data into SharedPreferences\n SharedPreferences sh = this.getActivity().getSharedPreferences(\"start-up\", MODE_PRIVATE);\n\n // Creating an Editor object to edit(write to the file)\n SharedPreferences.Editor myEdit = sh.edit();\n\n // Storing the key and its value as the data fetched from edittext\n myEdit.putString(\"start-up\", \"true\");\n\n // Once the changes have been made,\n // we need to commit to apply those changes made,\n // otherwise, it will throw an error\n myEdit.commit();\n\n }", "public void setPrefs() {\n Log.d(\"Prefs\", \"3. setPrefs()\");\n\n //here prefs.getLong will return -1 if \"firstexe\" does not exist\n int firstExe = (int) prefs.getLong(\"firstexe\", -1);\n\n //The first time we run the app the tag \"firstexe\" will not exits\n //if not is the first execution, set the initial values for the preferences\n if(firstExe == -1)\n {\n // Toast.makeText(getApplicationContext(), \" Set firstExe \"+firstExe, Toast.LENGTH_LONG).show();\n Log.d(\"Prefs\", \" firstExe\");\n Toast.makeText(this, \"First setPrefs \"+firstExe, Toast.LENGTH_SHORT).show();\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putLong(\"newscore\", 0);\n editor.putLong(\"score\", 0);\n editor.putLong(\"firstexe\", 1);\n editor.commit();\n }\n }", "public static void saveInSharedPreference(Context ctx, String key, float value){\n\n\n SharedPreferences sharedPref = buildSharedPreference(ctx);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putFloat(key, value);\n editor.commit();\n }", "public void setSharedPreference(Activity activity,String key,String value){\n SharedPreferences sharedPreferences=activity.getSharedPreferences(activity.getPackageName(), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(key,value);\n editor.apply();\n }", "public static long getLongSharedPreference(Context context, String param) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\n return preferences.getLong(param, 0);\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column public.Quest14.col4radio
public String getCol4radio() { return col4radio; }
[ "public String getCol8radio() {\n return col8radio;\n }", "public String getCol5radio() {\n return col5radio;\n }", "public String getCol7radio() {\n return col7radio;\n }", "public String getCol6radio() {\n return col6radio;\n }", "public String getCol3radio() {\n return col3radio;\n }", "public String getCol11radio() {\n return col11radio;\n }", "public void setCol4radio(String col4radio) {\n this.col4radio = col4radio == null ? null : col4radio.trim();\n }", "public int getRadio() {\r\n return this.iRadio;\r\n }", "com.sagas.meta.model.MetaRadioField getRadioField();", "public String getCol4() {\r\n return col4;\r\n }", "public String getColumnNameFour(){\n return columnNameFourLbl.getText();\n }", "public String getRadioType()\n {\n return StringTools.trim(this.radioType);\n }", "public float getRadio(){\n return radio;\n }", "public String getCol4value() {\n return col4value;\n }", "public String getChoose4() {\n return choose4;\n }", "public void setCol8radio(String col8radio) {\n this.col8radio = col8radio == null ? null : col8radio.trim();\n }", "int getQuestionTypeValue();", "public String getValue() {\n\t\tfinal String getValue = getValue(getColumns().getIndex());\n\t\tlogger.trace(\"getValue()={}\", getValue); \n\t\treturn getValue;\n\t}", "SPC getRCol();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
only use 1 variable instead of 2d array if column 0 should be set to 0 or not, yes if true, false otherwise
public void setZeroes1(int[][] matrix) { boolean col00 = false; int row, col; int rows = matrix.length; int cols = matrix[0].length; for (row = 0; row < rows; ++row) { for (col = 0; col < cols; ++col) { if (matrix[row][col] == 0) { if (col != 0) { matrix[0][col] = 0; matrix[row][0] = 0; } else { col00 = true; } } } } for (row = rows - 1; row >= 0; --row) { for (col = 1; col < cols; ++col) { if (matrix[row][0] == 0 || matrix[0][col] == 0) { matrix[row][col] = 0; } } } if (col00) { for (row = rows - 1; row >= 0; --row) { matrix[row][0] = 0; } } }
[ "public boolean checkColumn(int x){\n boolean [] items = new boolean []{false, false, false, false,false, //array of booleans to check for duplicates \n false, false, false, false, false};\n \n for(int i = 0; i < 9; i++){ //iterates through 9 positions in the array (each column)\n if(puzzle[x+9*i] == 0){ //checks if cell position is 0\n return false;\n }\n \n int value = puzzle[x+9*i]; //stores value at given position\n \n if(items[value]){ //checks if the value is already true in items\n return false;\n }\n items [value] = true; //sets position of the value in items to true\n }\n return true;\n }", "public void checkRowsAndColumns(){\n\t\t\t\n\t\t\tif (first != null && second != null && third != null && fourth != null){\n\t\t\t\tfor (int i = 0; i < numberOfColors; i++){\n\t\t\t\t\t\n\t\t\t\t\tint emptyPositions = 0;\n\t\t\t\t\tint emptyPosition = 0;\n\t\t\t\t\t\n\t\t\t\t\tif (rows[i][0] == PositionState.MA){\n\t\t\t\t\t\temptyPositions++;\n\t\t\t\t\t\temptyPosition = 0;\n\t\t\t\t\t}\n\t\t\t\t\tif (rows[i][1] == PositionState.MA){\n\t\t\t\t\t\temptyPositions++;\n\t\t\t\t\t\temptyPosition = 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (rows[i][2] == PositionState.MA){\n\t\t\t\t\t\temptyPositions++;\n\t\t\t\t\t\temptyPosition = 2;\n\t\t\t\t\t}\n\t\t\t\t\tif (rows[i][3] == PositionState.MA){\n\t\t\t\t\t\temptyPositions++;\n\t\t\t\t\t\temptyPosition = 3;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (emptyPositions == 1){\n\t\t\t\t\t\trows[i][emptyPosition] = PositionState.YES;\n\t\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\t\trow1Solved = true;\n\t\t\t\t\t\telse if (i == 1)\n\t\t\t\t\t\t\trow2Solved = true;\n\t\t\t\t\t\telse if(i == 2)\n\t\t\t\t\t\t\trow3Solved = true;\n\t\t\t\t\t\telse if (i == 3)\n\t\t\t\t\t\t\trow4Solved = true;\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int h = 0; h < numberOfColors; h++){\n\t\t\t\t\t\t\tif (h != i){\n\t\t\t\t\t\t\t\trows[h][emptyPosition] = PositionState.NO;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < totalKnownColors; i++){\n\t\t\t\t\n\t\t\t\tint emptyPositions = 0;\n\t\t\t\tint emptyPosition = 0;\n\t\t\t\t\n\t\t\t\tif (rows[0][i] == PositionState.MA){\n\t\t\t\t\temptyPositions++;\n\t\t\t\t\temptyPosition = 0;\n\t\t\t\t}\n\t\t\t\tif (rows[1][i] == PositionState.MA){\n\t\t\t\t\temptyPositions++;\n\t\t\t\t\temptyPosition = 1;\n\t\t\t\t}\n\t\t\t\tif (rows[2][i] == PositionState.MA){\n\t\t\t\t\temptyPositions++;\n\t\t\t\t\temptyPosition = 2;\n\t\t\t\t}\n\t\t\t\tif (rows[3][i] == PositionState.MA){\n\t\t\t\t\temptyPositions++;\n\t\t\t\t\temptyPosition = 3;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (emptyPositions == 1){\n\t\t\t\t\trows[emptyPosition][i] = PositionState.YES;\n\t\t\t\t\t\n\t\t\t\t\tif (emptyPosition == 0)\n\t\t\t\t\t\trow1Solved = true;\n\t\t\t\t\tif (emptyPosition == 1)\n\t\t\t\t\t\trow2Solved = true;\n\t\t\t\t\tif (emptyPosition == 2)\n\t\t\t\t\t\trow3Solved = true;\n\t\t\t\t\tif (emptyPosition == 3)\n\t\t\t\t\t\trow4Solved = true;\n\t\t\t\t\t\n\t\t\t\t\tfor (int h = 0; h < numberOfColors; h++){\n\t\t\t\t\t\tif (h != i){\n\t\t\t\t\t\t\trows[emptyPosition][h] = PositionState.NO;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}", "private static boolean doesFirstColumnContainZero(int[][] matrix,MatrixSize matrixSize){\n boolean columnFlag=false;\n for(int i=0;i<matrixSize.numberOfRows;i++){\n if(matrix[i][0]==0){\n columnFlag=true;\n break;\n }\n }\n return columnFlag;\n }", "void markRowAndColumnZero(int[][] matrix) {\n HashSet<Integer> rows = new HashSet<Integer>();\n HashSet<Integer> columns = new HashSet<Integer>();\n for(int i=0; i< matrix.length;i++) {\n for(int j =0; j < matrix[0].length; j++) {\n if(matrix[i][j] == 0) {\n rows.add(i);\n columns.add(j);\n }\n }\n }\n Iterator<Integer> rowsIterator = rows.iterator();\n while(rowsIterator.hasNext()) {\n int rowToBeSetToZero = rowsIterator.next();\n for(int i=0;i< matrix[0].length;i++) {\n matrix[rowToBeSetToZero][0] = 0;\n }\n }\n\n Iterator<Integer> columnsIterator = columns.iterator();\n while(columnsIterator.hasNext()) {\n int columnToBeSetToZero = columnsIterator.next();\n for(int i=0;i< matrix[0].length;i++) {\n matrix[i][columnToBeSetToZero] = 0;\n }\n }\n\n return;\n\n\n }", "public static void set_zero(int[][] matrix){\n\t\tif(matrix == null) return;\n\t\tint m = matrix.length;\n\t\tint n = matrix[0].length;\n\t\tboolean[] row = new boolean[m];\n\t\tboolean[] col = new boolean[n];\n\t\t\n\t\tfor(int i = 0; i < m; i++)\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tif(matrix[i][j] == 0){\n\t\t\t\t\trow[i] = true;\n\t\t\t\t\tcol[j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t//do a second pass\n\t\tfor(int i = 0; i < m; i++)\n\t\t\tfor(int j = 0; j < n; j++){\n\t\t\t\tif(row[i] || col[j]){\n\t\t\t\t\tmatrix[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t}", "boolean PUM_row_bool(PUM pumObj, int row){\n\n\t\tfor(int i = 0; i < pumObj.pum[row].length; i++){\n\t\t\tif(!pumObj.pum[row][i] && i != row){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private void FalseFlag() {\r\n\t\tfor(int i = 0; i < rows_size; i ++ ) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++)\r\n\t\t\t\tgame[i][j].setFlag(false);\r\n\t\t}\r\n\t}", "private void markRowsAndCols(int row){\n if(row < 0)\n return;\n\n markedRows[row] = true;\n for (int j = 0; j < cols; j++)\n if(j != chosenInRow[row] && source[row][j] == 0) {\n markedCols[j] = true;\n markRowsAndCols(chosenInCol[j]);\n }\n }", "private static int[][] handleZeroColumns(int[][] inputMatrix, int[] zeroColumns) {\n for(int currentColumn=0;currentColumn<inputMatrix[0].length;currentColumn++){\n for(int currentRow=0;currentRow<inputMatrix.length;currentRow++){\n if(zeroColumns[currentColumn]==1){\n inputMatrix[currentRow][currentColumn] = 0;\n }\n }\n }\n return inputMatrix;\n }", "private static boolean isMatrizPositiva(int matriz[][]) {\n\t\t\n\t\tfor (int i = 0; i < matriz.length; i++) {\n\t\t\tfor (int j = 0; j < matriz[0].length; j++) {\n\t\t\t\tif (matriz[i][j] < 0) {\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}", "protected boolean checkCol( int col, int num )\n {\n System.out.println(java.time.LocalTime.now() + \"--> Checking Column\");\n for( int row = 0; row < 9; row++ )\n if( model[row][col] == num )\n return false ;\n\n return true ;\n }", "public boolean columnRowCheck(){\n for (int i=0; i<3; i++)\n {\n if (buttons[0][i].getText() == buttons[1][i].getText() &&\n buttons[1][i].getText() == buttons[2][i].getText() &&\n buttons[0][i].getText() != \"\")\n return (true);\n if (buttons[i][0].getText() == buttons[i][1].getText()&&\n buttons[i][1].getText() == buttons[i][2].getText() &&\n buttons[i][0].getText() != \"\")\n return (true);\n }\n return(false);\n }", "private static boolean checkIfZeroIsLeft(int rowLength, int columnLength, int[][] outputMatrix) {\r\n boolean flag = false;\r\n for (int i = 0; i < rowLength; i++)\r\n for (int j = 0; j < columnLength; j++) {\r\n if (outputMatrix[i][j] == 0) {\r\n flag = true;\r\n break;\r\n }\r\n }\r\n return flag;\r\n }", "private boolean isGoodState() {\n\t resetMask();\n\t checkHorizontal();\n\t checkVertical();\n\n\t for(int i = 0; i < maskArray.length; i++){\n\t for (int j = 0; j < maskArray[i].length; j++){\n\n\t if (maskArray[i][j] == 1){\n\t return false;\n\t }\n\n\t }\n\t }\n\n\t return true;\n }", "private static boolean[] initColumn(int columnNumber){\n boolean[] column = new boolean[TOTAL_TILES]; //create a table with all the position false except for\n //the given column\n while (columnNumber < TOTAL_TILES) {\n column[columnNumber] = true;\n columnNumber += TILES_PER_ROW; //FIRST_COLUMN means tiles 0, 8, 16, 24, 32, 40, 48, 56\n }\n return column;\n }", "private static int[][] identifyMatrixWithZeros(int[][] matrix){\n\t\tboolean[] rowCheck = new boolean[matrix.length];\n\t\tboolean[] colCheck = new boolean[matrix[0].length];\n\n\t\tfor(int i=0;i<matrix.length ;i++) {\n\t\t\tfor(int j=0;j<matrix[0].length;j++) {\n\t\t\t\tif(matrix[i][j] == 0) {\n\t\t\t\t\trowCheck[i] = true;\n\t\t\t\t\tcolCheck[j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int row=0;row<rowCheck.length;row++) {\n\t\t\tif(rowCheck[row])\n\t\t\t\tnullifyRows(matrix, row);\n\t\t}\n\t\t\n\t\tfor(int col=0;col<colCheck.length;col++) {\n\t\t\tif(colCheck[col])\n\t\t\t\tnullifyColumns(matrix, col);\n\t\t}\n\t\treturn matrix;\n\t}", "private BoolVar[][] createInitBoolArray(Direction direction) {\n\t\t// Create the Array that should be returned\n\t\tBoolVar[][] skyscVisible = new BoolVar[size][size];\n\t\tString name = \"SkyScaperVisibility[\" + direction.name() + \"](\";\n\n\t\tfor (int y = 0; y < size; y++) {\n\t\t\tfor (int x = 0; x < size; x++) {\n\t\t\t\tboolean borderSc = (direction == Direction.TOP && y == 0)\n\t\t\t\t\t\t|| (direction == Direction.RIGHT && x == size - 1)\n\t\t\t\t\t\t|| (direction == Direction.BOTTOM && y == size - 1) || (direction == Direction.LEFT && x == 0);\n\n\t\t\t\tif (borderSc) { // always visible\n\t\t\t\t\tskyscVisible[y][x] = model.boolVar(name + y + '|' + x + \")\", true);\n\t\t\t\t} else { // unkown visibility\n\t\t\t\t\tskyscVisible[y][x] = model.boolVar(name + y + '|' + x + \")\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Returns the Matrix\n\t\treturn skyscVisible;\n\t}", "public boolean ganhou(int[][] tab){\n\t\t\n\t\tfor(int i=0; i<tamanho; i++){\n\t\t\tfor(int j=0; j<tamanho; j++){\n\t\t\t\tif(tab[i][j] != 0){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean checkCol()\n {\n for(int col = 1; col < 4; col++)\n {\n if( (board[1][col].equals(\"X\")) && (board[2][col].equals(\"X\")) && (board[3][col].equals(\"X\")))\n {\n return true; \n }\n if( (board[1][col].equals(\"O\")) && (board[2][col].equals(\"O\")) && (board[3][col].equals(\"O\")))\n {\n return true; \n }\n \n }\n return false; \n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a mapping instance by discovering entities in the multiple XBRL documents, and the mapping will be serialized to the mapping file.
public Mapping createInstance(List<Document> xbrlDocuments, String fileName) throws TransformerConfigurationException, FileNotFoundException { Mapping mapping = buildXmlBasedMapping(); MappingDiscoverer discoverer = buildBasicDiscoverer(xbrlDocuments, mapping); Transformer transformer = TransformerFactory.newInstance().newTransformer(); transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2"); discoverer.addStep(new SerializeMapping(new XmlDocumentBuilder(), new FileOutputStream(fileName), transformer, config)); discoverer.discoverMapping(); return mapping; }
[ "public Mapping createInstance(List<Document> xbrlDocuments) {\n Mapping mapping = buildXmlBasedMapping();\n MappingDiscoverer discoverer = buildBasicDiscoverer(xbrlDocuments, mapping);\n discoverer.discoverMapping();\n return mapping;\n }", "public Mapping createInstance(Document xbrlDocument, String mappingFile)\n throws TransformerConfigurationException, FileNotFoundException {\n List<Document> docList = new ArrayList<>();\n docList.add(xbrlDocument);\n return createInstance(docList, mappingFile);\n }", "public Mapping createInstance(Document xbrlDocument) {\n List<Document> docList = new ArrayList<>();\n docList.add(xbrlDocument);\n return createInstance(docList);\n }", "private Document createMapping() {\n return getIndexOperations().createMapping();\n }", "private static void johnTestMapping() {\n\n String format = \"EXCEL\";\n String inputfile = \"sampledata/biocode_template_short.xls\";\n String sqliteLocation = \"jdbc:sqlite:/tmp/ms_tmp/biocode_template.sqlite\";\n String D2RQmappingfile = \"file:sampledata/biocode_template_mapping.n3\";\n String outputfile = \"/tmp/ms_tmp/biocode_template.nt\";\n\n\n ReaderManager readerManager = new ReaderManager();\n try {\n readerManager.loadReaders();\n\n TabularDataReader tdr = readerManager.openFile(inputfile,format);\n TabularDataConverter tdc = new TabularDataConverter(tdr, sqliteLocation);\n\n tdc.convert();\n tdr.closeFile();\n\n Model model = new ModelD2RQ(FileUtils.toURL(D2RQmappingfile),FileUtils.langN3, \"urn:x-biscicol:\");\n FileOutputStream fileOutputStream = new FileOutputStream(outputfile);\n\n System.out.println(\"Writing output to \" + outputfile);\n model.write(fileOutputStream, FileUtils.langN3);\n fileOutputStream.close();\n\n printN3(model);\n\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected FileBasedElementMapping() {\n\t}", "public Mapping(RulesDirectory rd,IRSession session, RuleSet rs){\n this.session = session;\n this.state = session.getState();\n String filename = rs.getMapPath().get(0);\n try {\n InputStream s = session.getRulesDirectory().getFileSource().openStreamSearch(\n FileType.MAP, session.getRuleSet(), filename);\n session.getState().traceTagBegin(\"loadMapping\", \"file\",filename);\n this.loadMap(s);\n session.getState().traceTagEnd(); \n } catch (FileNotFoundException e) {\n throw new RuntimeException(e);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public static void setupCustomMappings(){\n\t\tList<File> files = FilesAndStreams.directoryToFileList(Config.configurationFolder + \"Elasticsearch/customMappings/\", null, false);\n\t\t//Write mappings\n\t\tfor (File f : files){\n\t\t\tString index = f.getName().replaceFirst(\"\\\\.json$\", \"\").trim();\n\t\t\tJSONObject mapping = JSON.readJsonFromFile(f.getAbsolutePath());\n\t\t\tJSONObject res = Elasticsearch.putMapping(ElasticSearchConfig.getEndpoint(), \n\t\t\t\t\tindex, mapping);\n\t\t\tif (JSON.getIntegerOrDefault(res, \"code\", -1) != 0){\n\t\t\t\tthrow new RuntimeException(SetupElasticsearch.class.getCanonicalName() + \" - 'setupCustomMappings()' FAILED! - msg: \" + res);\n\t\t\t}else{\n\t\t\t\tDebugger.println(\"Elasticsearch: created index '\" + index + \"'\", 3);\n\t\t\t}\n\t\t}\n\t}", "public void generateMapping() {//This method is used to generate the OJB mapping file\n\t\tsetDataSourceDetails();//for testing now\n\t\tgenerateHeader();//Method to generate the header of the repository.xml file\n\t\tgenerateDbConfigMapping();//method to generate OJB specific database mapping\n\t\tgenerateInternalMapping();//method to generate the OJB internal mapping\n\t\tgenerateUserDefinedMapping();\n\t\tgenerateFooter();\n\t}", "public Mappings createMappings() {\n \t\treturn new MappingsImpl();\n \t}", "public Mapper() {\n\t\t\n\t\tmirMap = scanMapFile(\"mirMap.txt\");\n\t\tgeneMap = scanMapFile(\"geneMap.txt\");\n\t\t\n\t}", "private void initializeAnchorsMap() throws JAXBException {\n if (EBRIMMarshallerPool.getInstance() instanceof AnchoredMarshallerPool) {\n final AnchoredMarshallerPool pool = (AnchoredMarshallerPool) EBRIMMarshallerPool.getInstance();\n final Map<String, URI> concepts = mdReader.getConceptMap();\n int nbWord = 0;\n for (Entry<String, URI> entry: concepts.entrySet()) {\n pool.addAnchor(entry.getKey(),entry.getValue());\n nbWord ++;\n }\n if (nbWord > 0) {\n LOGGER.log(Level.INFO, \"{0} words put in pool.\", nbWord);\n }\n } else {\n LOGGER.severe(\"NOT an anchoredMarshaller Pool\");\n }\n }", "org.lindbergframework.schema.LinpMappingDocument.LinpMapping addNewLinpMapping();", "public void load(){\n try {\n this.engineMeta.setDirToSave(this.getMetadataFilePath());\n this.mapperDocFiles.setDirToSave(new File(this.getMapperIdFilePath()));\n this.posIndex.loadLexiconArray(this.getLexiconArrayFilePath());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void setupGuidGenerationMapping(){\n\t\tJSONObject res = Elasticsearch.putMapping(ElasticSearchConfig.getEndpoint(), \n\t\t\t\tDB.ES_GUID, JSON.readJsonFromFile(Config.configurationFolder + \"Elasticsearch/guid-mapping.json\"));\n\t\tif (JSON.getIntegerOrDefault(res, \"code\", -1) != 0){\n\t\t\tthrow new RuntimeException(SetupElasticsearch.class.getCanonicalName() + \" - 'setupGuidGenerationMapping()' FAILED! - msg: \" + res);\n\t\t}\n\t\t//SET FIRST ENTRY so that _update works later\n\t\tres = Elasticsearch.customPUT(ElasticSearchConfig.getEndpoint(), DB.ES_GUID + \"/sequence/ticket\", JSON.make(\"near_id\", 0, \"offset\", 0));\n\t\tif (!Connectors.httpSuccess(res)){\n\t\t\tthrow new RuntimeException(SetupElasticsearch.class.getCanonicalName() + \" - 'setupGuidGenerationMapping()' FAILED! - msg: \" + res);\n\t\t}else{\n\t\t\tDebugger.println(\"Elasticsearch: created index '\" + DB.ES_GUID + \"'\", 3);\n\t\t}\n\t}", "public static void mapAllObjects() {\n List<MagitBlob> blobsXML = magit.getMagitBlobs().getMagitBlob();\n for (MagitBlob blob : blobsXML)\n magitBlobsMap.put(blob.getId(), blob);\n\n // create a map for enabling access to a MagitSingleFolder by its ID\n List<MagitSingleFolder> foldersXML = magit.getMagitFolders().getMagitSingleFolder();\n for (MagitSingleFolder folder : foldersXML)\n magitFoldersMap.put(folder.getId(), folder);\n\n // create a map for enabling access to a MagitSingleCommit by its ID\n List<MagitSingleCommit> commitsXML = magit.getMagitCommits().getMagitSingleCommit();\n for (MagitSingleCommit com : commitsXML)\n magitCommitsMap.put(com.getId(), com);\n }", "public void generateInternalMapping() {// This method is used to generate\n\t\t// OJB Internal mapping\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter\n\t\t\t\t.write(\"<!-- *******************\"\n\t\t\t\t\t\t+ \"******* OJB INTERNAL MAPPING BEGINS HERE ****************** -->\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t<class-descriptor\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\tclass=\"\n\t\t\t\t+ \"\\\"org.apache.ojb.broker.util.sequence.HighLowSequence\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\ttable=\" + \"\\\"OJB_HL_SEQ\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t>\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t<object-cache class=\"\n\t\t\t\t+ \"\\\"org.apache.ojb.broker.cache.ObjectCacheEmptyImpl\\\"\" + \">\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t</object-cache>\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t<field-descriptor\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tname=\" + \"\\\"name\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tcolumn=\" + \"\\\"tablename\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tjdbc-type=\" + \"\\\"VARCHAR\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tprimarykey=\" + \"\\\"true\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t/>\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t<field-descriptor\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tname=\" + \"\\\"maxKey\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tcolumn=\" + \"\\\"MAX_KEY\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tjdbc-type=\" + \"\\\"BIGINT\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t/>\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t<field-descriptor\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tname=\" + \"\\\"grabSize\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tcolumn=\" + \"\\\"GRAB_SIZE\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tjdbc-type=\" + \"\\\"INTEGER\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t/>\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t<field-descriptor\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\t\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tname=\" + \"\\\"version\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tcolumn=\" + \"\\\"VERSION\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tjdbc-type=\" + \"\\\"INTEGER\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t\\tlocking=\" + \"\\\"true\\\"\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t/>\");\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter.write(\"\\t\\t</class-descriptor>\");\n\t\tprintWriter.write(\"\\n\");\n\t}", "public AsnToAdnMapper(String path) {\n\n\t\tDocument doc = null;\n\t\tthis.source = new File (path);\n\t\ttry {\n\t\t\tdoc = Dom4jUtils.getXmlDocument(source);\n\t\t} catch (Exception e) {\n\t\t\tprtln(\"Couldn't read mappings doc: \" + e.getMessage());\n\t\t\treturn;\n\t\t}\n\n\t\t// prtln (Dom4jUtils.prettyPrint (doc));\n\t\tgradeRangeMap = getGradeRangeMap();\n\n\t\tidMap = new HashMap();\n\t\tadnTextMap = new HashMap();\n\t\tList mappings = doc.selectNodes(\"/Adn-to-Asn-info/standard\");\n\t\tprtln(mappings.size() + \" items found\");\n\t\tfor (Iterator i = mappings.iterator(); i.hasNext(); ) {\n\t\t\tElement e = (Element) i.next();\n\t\t\tStandardMapping mapping = new StandardMapping(e);\n\t\t\tidMap.put(mapping.asnId, mapping);\n\t\t\tadnTextMap.put(mapping.adnText, mapping);\n\t\t}\n\t\t// prtln(\"idMap initialized with \" + idMap.size() + \" items\");\n\t\t// prtln(\"adnTextMap initialized with \" + adnTextMap.size() + \" items\");\n\t\tprtln(\"AsnToAdnMapper initialized mappings \" + adnTextMap.size() + \" items\");\n\t}", "private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Implement the featurePressed callback so that we can update the density chart when a state is selected.
@Override public void featurePressed(Feature f, Coord coord) { super.featurePressed(f, coord); selectedFeature = f; densityChart.setRegion((String)f.getProperties().get("name")); }
[ "public void featureChanged(Feature f) {\n\t\tredraw();\n\t}", "@SuppressWarnings(\"unchecked\")\n public void mousePressed(MouseEvent e)\n {\n if (checkModifiers(e))\n {\n final VisualizationViewer<V, E> graphVisualizer = (VisualizationViewer<V, E>) e\n .getSource();\n final Point2D p = e.getPoint();\n GraphElementAccessor<V, E> pickSupport = graphVisualizer\n .getPickSupport();\n if (pickSupport != null)\n {\n Graph<V, E> graph = graphVisualizer.getModel().getGraphLayout()\n .getGraph();\n // set default edge type\n if (graph instanceof DirectedGraph)\n {\n edgeIsDirected = EdgeType.DIRECTED;\n }\n else\n {\n edgeIsDirected = EdgeType.UNDIRECTED;\n }\n\n final V vertex = pickSupport.getVertex(graphVisualizer\n .getModel().getGraphLayout(), p.getX(), p.getY());\n if (vertex != null)\n { // get ready to make an edge\n startVertex = vertex;\n down = e.getPoint();\n transformEdgeShape(down, down);\n graphVisualizer.addPostRenderPaintable(edgePaintable);\n if ((e.getModifiers() & MouseEvent.SHIFT_MASK) != 0\n && graphVisualizer.getModel().getGraphLayout()\n .getGraph() instanceof UndirectedGraph == false)\n {\n edgeIsDirected = EdgeType.DIRECTED;\n }\n\n }\n else\n { // make a new vertex\n\n // Creates state On double click only.\n if (e.getClickCount() == 2)\n {\n\n boolean okToAdd = true;\n if (vertexChecker != null)\n {\n okToAdd = vertexChecker\n .checkCountryCount(graphVisualizer);\n }\n if (okToAdd)\n {\n // Call the States factory and pops-up the creation\n // dialog box at the right place.\n GraphElements.GIPSYTierFactory.getInstance().setPoint(\n e.getX(), e.getY());\n V newVertex = vertexFactory.create();\n Layout<V, E> layout = graphVisualizer.getModel()\n .getGraphLayout();\n\n if (newVertex != null)\n {\n /*\n * if (vertexChecker.isValidStateName(\n * graphVisualizer.getGraphLayout() .getGraph(),\n * graphVisualizer, ((GIPSYTier) newVertex)\n * .getTierName())) {\n */\n // don't allow null state to be created on\n // mouse\n // click.\n graph.addVertex(newVertex);\n layout.setLocation(newVertex, graphVisualizer\n .getRenderContext()\n .getMultiLayerTransformer()\n .inverseTransform(e.getPoint()));\n // }\n\n }\n else\n {\n AppLogger\n .consoleSubAction(\"Nothing to add!\");\n }\n }\n }\n }\n }\n graphVisualizer.repaint();\n }\n }", "public void featureModelChanged();", "@SuppressWarnings(\"unchecked\")\r\n \tprotected static void updateFeatureView(GUIMain main, int selected) {\r\n \t\t// clear all\r\n \t\tclearFeatureView(main);\r\n \t\t// unselected\r\n \t\tif (selected == -1)\r\n \t\t\treturn;\r\n \t\t\r\n \t\t// selected\r\n \t\tFeatureDriver fd = main.cfd.featureDriverAt(selected);\r\n \t\t\r\n \t\t// name and description\r\n \t\tmain.featuresFeatureNameJTextField.setText(fd.getName());\r\n \t\tmain.featuresFeatureDescJTextPane.setText(fd.getDescription());\r\n \t\t\r\n \t\t// update feature extractor\r\n \t\tmain.featuresFeatureExtractorContentJLabel.setText(fd.getUnderlyingEventDriver().displayName());\r\n \t\tmain.featuresFeatureExtractorConfigJScrollPane.setViewportView(getParamPanel(fd.getUnderlyingEventDriver()));\r\n \t\t\r\n \t\t// update canonicizers\r\n \t\tList<Canonicizer> canons = fd.getCanonicizers();\r\n \t\tif (canons != null) {\r\n \t\t\tfor (int i=0; i<canons.size(); i++)\r\n \t\t\t\tmain.featuresCanonJListModel.addElement(canons.get(i).displayName());\r\n \t\t}\r\n \t\t\r\n \t\t// update cullers\r\n \t\tList<EventCuller> cullers = fd.getCullers();\r\n \t\tif (cullers != null) {\r\n \t\t\tfor (int i=0; i<cullers.size(); i++)\r\n \t\t\t\tmain.featuresCullJListModel.addElement(cullers.get(i).displayName());\r\n \t\t}\r\n \r\n \t\t// update normalization\r\n \t\tmain.featuresNormContentJLabel.setText(fd.getNormBaseline().getTitle());\r\n \t\tmain.featuresFactorContentJLabel.setText(fd.getNormFactor().toString());\r\n \t}", "@Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (getSelectedIndex() >= 0) {\n drawingOverlay.setUp((PrototypeFeature) getSelectedValue());\n }\n }", "private void handleClickIcon(PointF screenPoint) {\n List<Feature> features = map.queryRenderedFeatures(screenPoint, MARKER_LAYER_ID);\n\n if (!features.isEmpty()){\n String name = features.get( 0 ).getStringProperty( PROPERTY_TITLE );\n List <Feature> featureList = featureCollection.features();\n\n for (int i = 0; i < featureList.size(); i++) {\n\n if (featureList.get( i ).getStringProperty( PROPERTY_TITLE ).equals( name )) {\n\n if (featureSelectStatus( i )) {\n setFeatureSelectState( featureList.get( i ), false );\n } else {\n setSelected( i );\n\n }\n }\n }\n\n }\n\n }", "@Override\n\t\t\tpublic void onClick(ClickEvent event)\n\t\t\t{\n\t\t\t\tif (mainAppDisplay.getToggleButtonCreateQuickBlipIsDown())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"@MainAppPresenter, @bind, @mainAppDisplay.getButtonCreateQuickBlip(), Button Down .\");\n\t\t\t\t\t\n\t\t\t\t\tdrawPointFeatureControl.activate();\n\t\t\t\t\t//clickSelectFeatureControl.deactivate();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"@MainAppPresenter, @bind, @mainAppDisplay.getButtonCreateQuickBlip(), Button Up .\");\n\n\t\t\t\t\tdrawPointFeatureControl.deactivate();\n\t\t\t\t\t//clickSelectFeatureControl.activate();\n\t\t\t\t}\n\t\t\t}", "public void buttonAction(int selectedFeature) {\n\t\tmyParent.stopCustomCursor(this.couplerMullionPanel);\n\t\t\n\t\tthis.myParent.setActionTypeEvent(1);\n\t\t\n\t\tif (selectedLevel == 1) {\n\t\t\t\n\t\t\tif (selectedFeature == 1) {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"vCouplerCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t} else {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"hCouplerCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t}\n\t\t} else {\n\t\t\tif (selectedFeature == 1) {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"vMullionCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t} else {\n\t\t\t\tmyParent.myCursorImage = ItemFrame.iconFiles.get(\"hMullionCursor\");\n\t\t\t\tmyParent.myCursor = myParent.toolkit.createCustomCursor(myParent.myCursorImage.getImage(), new Point(0, 0), \"\");\n\t\t\t\tmyParent.startCustomCursor(myParent.main, myParent.myCursor);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void shapeSelectionChanged();", "@Override\n public void mouseReleased(MouseEvent e) {\n\n // 2D mode\n if (getChart().getView().is2D()) {\n View view = getChart().getView();\n applyMouse2DSelection(view);\n }\n }", "@Override\n protected void paintButtonPressed( final Graphics g, final AbstractButton b ) {\n\tif( b.isContentAreaFilled() ) {\n\t if( b.getModel().isPressed() ) {\n\t\tsuper.paintButtonPressed( g, b );\n\t } else {\n\t\tMediknightButtonUI.paintGradient( (Graphics2D) g, UIManager.getColor( \"ToggleButton.selectedBackground\" ), b.getWidth(), b.getHeight() );\n\t }\n\t}\n }", "public void handleDemoSelected() { }", "public void mousePressed(MouseEvent mouseEvent) {\n if (mouseEvent.isPrimaryButtonDown()) {\n canvasDrawer.drawPressed(mouseEvent, board, true);\n aliveLabel.setText(\"\" + board.getCellsAlive());\n }else if (mouseEvent.isSecondaryButtonDown()) {\n canvasDrawer.setOriginalDrag(mouseEvent);\n canvasArea.setCursor(Cursor.MOVE);\n }\n draw();\n }", "public void onInstantiatingFeature(FeatureTreeNode node, boolean value) {\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent me) {\r\n\t\tmouseDownAt.setLocation(me.getPoint());\r\n\t\tmDown= true;\r\n\t\tint index= gradient.nearbyNodeIndexAround(indexAtMouse(), range);\r\n\t\tif (index>0 && index<255) {\r\n\t\t\tselectedIndex= index; \r\n\t\t\tcolorSelected= gradient.getColors()[index].makeColor();\r\n\t\t}\r\n\t\t// June 15, 2021: this line had to be reinserted – else it broke the behaviour.\r\n\t\t// Cannot have a selected index loose\r\n\t\telse {\r\n\t\t\tselectedIndex=-1;\r\n\t\t}\r\n\t}", "@Override\r\n protected void yearPressed(int year) {\r\n setCurrentYear(year);\r\n geoVizComponent.repaint();\r\n }", "private void addFeatureDisplayItems() \n {\n show_start_codons_item = new JCheckBoxMenuItem(\"Start Codons\");\n show_start_codons_item.setState(feature_display.getShowStartCodons());\n show_start_codons_item.addItemListener(new ItemListener()\n {\n public void itemStateChanged(ItemEvent event) \n {\n feature_display.setShowStartCodons(show_start_codons_item.getState());\n }\n });\n\n show_stop_codons_item = new JCheckBoxMenuItem(\"Stop Codons\");\n show_stop_codons_item.setState(feature_display.getShowStopCodons());\n show_stop_codons_item.addItemListener(new ItemListener() \n {\n public void itemStateChanged(ItemEvent event) \n {\n feature_display.setShowStopCodons(show_stop_codons_item.getState());\n }\n });\n\n show_feature_arrows_item = new JCheckBoxMenuItem(\"Feature Arrows\");\n show_feature_arrows_item.setState(feature_display.getShowFeatureArrows());\n show_feature_arrows_item.addItemListener(new ItemListener() \n {\n public void itemStateChanged(ItemEvent event) \n {\n feature_display.setShowFeatureArrows(show_feature_arrows_item.getState());\n }\n });\n\n show_feature_borders_item = new JCheckBoxMenuItem(\"Feature Borders\");\n show_feature_borders_item.setState(feature_display.getShowFeatureBorders());\n show_feature_borders_item.addItemListener(new ItemListener() \n {\n public void itemStateChanged(ItemEvent event) \n {\n feature_display.setShowFeatureBorders(show_feature_borders_item.getState());\n }\n });\n\n show_labels_item = new JCheckBoxMenuItem(\"Feature Labels\");\n show_labels_item.setState(feature_display.getShowLabels());\n show_labels_item.addItemListener(new ItemListener() \n {\n public void itemStateChanged(ItemEvent e) \n {\n feature_display.setShowLabels(show_labels_item.getState());\n }\n });\n\n one_line_per_entry_item = new JCheckBoxMenuItem(\"One Line Per Entry\");\n one_line_per_entry_item.setState(feature_display.getOneLinePerEntryFlag());\n one_line_per_entry_item.addItemListener(new ItemListener() \n {\n public void itemStateChanged(ItemEvent e) \n {\n final boolean new_state = one_line_per_entry_item.getState();\n if(new_state && getEntryGroup().size() > 8) \n feature_display.setShowLabels(false);\n feature_display.setOneLinePerEntry(new_state);\n }\n });\n\n show_forward_frame_lines_item =\n new JCheckBoxMenuItem(\"Forward Frame Lines\");\n show_forward_frame_lines_item.setState(feature_display.getShowForwardFrameLines());\n show_forward_frame_lines_item.addItemListener(new ItemListener() \n {\n public void itemStateChanged(ItemEvent e) \n {\n feature_display.setShowForwardFrameLines(show_forward_frame_lines_item.getState());\n }\n });\n\n show_reverse_frame_lines_item =\n new JCheckBoxMenuItem(\"Reverse Frame Lines\");\n show_reverse_frame_lines_item.setState(feature_display.getShowReverseFrameLines());\n show_reverse_frame_lines_item.addItemListener(new ItemListener() \n {\n public void itemStateChanged(ItemEvent e) \n {\n feature_display.setShowReverseFrameLines(show_reverse_frame_lines_item.getState());\n }\n });\n\n frame_features_item = new JCheckBoxMenuItem(\"All Features On Frame Lines\");\n frame_features_item.setState(feature_display.getFrameFeaturesFlag());\n frame_features_item.addItemListener(new ItemListener() \n {\n public void itemStateChanged(ItemEvent e) \n {\n feature_display.setFrameFeaturesFlag(frame_features_item.getState());\n }\n });\n\n source_features_item = new JCheckBoxMenuItem(\"Show Source Features\");\n source_features_item.setState(feature_display.getShowSourceFeatures());\n source_features_item.addItemListener(new ItemListener() \n {\n public void itemStateChanged(ItemEvent e) \n {\n feature_display.setShowSourceFeatures(source_features_item.getState());\n }\n });\n\n rev_comp_display_item = new JCheckBoxMenuItem(\"Flip Display\");\n \n rev_comp_display_item.setState(feature_display.isRevCompDisplay());\n rev_comp_display_item.addItemListener(new ItemListener()\n {\n public void itemStateChanged(ItemEvent e) \n {\n feature_display.setRevCompDisplay(rev_comp_display_item.getState());\n }\n });\n\n base_colours_item = new JCheckBoxMenuItem(\"Colourise Bases\");\n base_colours_item.setState(feature_display.getShowBaseColours());\n base_colours_item.addItemListener(new ItemListener() \n {\n public void itemStateChanged(ItemEvent e) \n {\n feature_display.setShowBaseColours(base_colours_item.getState());\n }\n });\n\n smallest_to_front_item =\n new JMenuItem(\"Smallest Features In Front\");\n smallest_to_front_item.addActionListener(new ActionListener() \n {\n public void actionPerformed(ActionEvent e) \n {\n // clear the selection because selected features will always be on\n // top - which is not usually what is wanted\n selection.clear();\n feature_display.smallestToFront();\n }\n });\n\n score_cutoffs_item = new JMenuItem(\"Set Score Cutoffs ...\");\n\n score_cutoffs_item.addActionListener(new ActionListener() \n {\n public void actionPerformed(ActionEvent e) \n {\n final ScoreChangeListener minimum_listener =\n new ScoreChangeListener() \n {\n public void scoreChanged(final ScoreChangeEvent event) \n {\n feature_display.setMinimumScore(event.getValue());\n }\n };\n\n final ScoreChangeListener maximum_listener =\n new ScoreChangeListener() \n {\n public void scoreChanged(final ScoreChangeEvent event) \n {\n feature_display.setMaximumScore(event.getValue());\n }\n };\n\n final ScoreChanger score_changer =\n new ScoreChanger(\"Score Cutoffs\",\n minimum_listener, maximum_listener,\n 0, 100);\n\n score_changer.setVisible(true);\n }\n });\n\n if(selection_features.size() > 0 || selection_segments.size() > 0) \n {\n raise_feature_item = new JMenuItem(\"Raise Selected Features\");\n raise_feature_item.addActionListener(new ActionListener() \n {\n public void actionPerformed(ActionEvent event) \n {\n raiseSelection();\n }\n });\n\n lower_feature_item = new JMenuItem(\"Lower Selected Features\");\n lower_feature_item.addActionListener(new ActionListener() \n {\n public void actionPerformed(ActionEvent event) \n {\n lowerSelection();\n }\n });\n }\n\n if(!selection.isEmpty()) \n {\n zoom_to_selection_item = new JMenuItem(\"Zoom to Selection\");\n zoom_to_selection_item.addActionListener(new ActionListener() \n {\n public void actionPerformed(ActionEvent event) \n {\n zoomToSelection((FeatureDisplay) owner);\n }\n });\n }\n\n\n select_visible_range =\n new JMenuItem(\"Select Visible Range\");\n select_visible_range.addActionListener(new ActionListener() \n {\n public void actionPerformed(ActionEvent e) \n {\n selection.setMarkerRange(feature_display.getVisibleMarkerRange());\n }\n });\n\n select_visible_features =\n new JMenuItem(\"Select Visible Features\");\n select_visible_features.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n selection.set(feature_display.getCurrentVisibleFeatures());\n }\n });\n }", "public abstract void renderSelected(Figure f);", "@Override\n public void onMouseClicked(MapMouseEvent ev) {\n ReferencedEnvelope envelope = ev.getEnvelopeByPixels(5);\n for (ExtendedFeatureLayer selectionLayer : selectionLayers) {\n if (!selectionLayer.isVisible()) {\n // If the selection layer is turned off, don't try to select \n // any features from it. \n continue;\n }\n FeatureCollection selectedFeatures = selectionLayer.getFeaturesInRange(envelope, null);\n if (selectedFeatures != null && selectedFeatures.size() > 0) {\n FeatureIterator i = selectedFeatures.features();\n try {\n while (i.hasNext()) {\n SimpleFeature feature = (SimpleFeature) i.next();\n if (this.editLayer.removeFeature(feature.getID(), false) == null) {\n this.editLayer.addFeature(feature.getID(),\n (Geometry) feature.getDefaultGeometry(), false, true);\n }\n }\n // Don't process any other selection layers. \n break; \n } finally {\n // Must close the iterator in a finally clause otherwise it may remain open and\n // cause concurrent modfication errors. \n i.close();\n this.getMapControl().refresh(); \n }\n\n }\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extract the token from authentication response.
public String getToken(JSONObject jsonResponse){ if ( jsonResponse != null ) { if(jsonResponse.has("authentication")){ if(jsonResponse.getJSONObject("authentication").has("token")){ return jsonResponse.getJSONObject("authentication").getString("token"); } } } return null; }
[ "private String getAuthTokenFromResponse(String result) {\n Map<String,Object> content = null;\n try {\n content = this.jsonMapper.readValue(result, Map.class);\n return (String) content.get(\"token\");\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static Tokeninfo verifyToken(String token) throws AuthenticationException {\n\t\ttry {\n\t\t\tfinal Verifier hmacVerifier = new HmacSHA256Verifier(SIGNING_KEY.getBytes());\n\n\t\t\tVerifierProvider hmacLocator = new VerifierProvider() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic List<Verifier> findVerifier(String id, String key) {\n\t\t\t\t\treturn Lists.newArrayList(hmacVerifier);\n\t\t\t\t}\n\t\t\t};\n\t\t\tVerifierProviders locators = new VerifierProviders();\n\t\t\tlocators.setVerifierProvider(SignatureAlgorithm.HS256, hmacLocator);\n\t\t\tnet.oauth.jsontoken.Checker checker = new net.oauth.jsontoken.Checker() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void check(JsonObject payload) throws SignatureException {\n\t\t\t\t\t// don't throw - allow anything\n\t\t\t\t}\n\n\t\t\t};\n\t\t\t//Ignore Audience does not mean that the Signature is ignored\n\t\t\tJsonTokenParser parser = new JsonTokenParser(locators,\n\t\t\t\tchecker);\n\t\t\tJsonToken jt;\n\n\t\t\ttry {\n\t\t\t\tjt = parser.verifyAndDeserialize(token);\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new AuthenticationException(\"Authentication Failure\");\n\t\t\t}\n\t\t\t\n\t\t\tJsonObject payload = jt.getPayloadAsJsonObject();\n\t\t\tTokeninfo t = new Tokeninfo();\n\t\t\tString issuer = payload.getAsJsonPrimitive(\"iss\").getAsString();\n\t\t\tString userIdString = payload.getAsJsonObject(\"info\").getAsJsonPrimitive(\"userId\").getAsString();\n\t\t\tif (issuer.equals(ISSUER) && !StringUtils.isBlank(userIdString)) {\n\t\t\t\tt.setUserId(userIdString);\n\t\t\t\tt.setIssued(new DateTime(payload.getAsJsonPrimitive(\"iat\").getAsLong()));\n\t\t\t\tt.setExpires(new DateTime(payload.getAsJsonPrimitive(\"exp\").getAsLong()));\n\t\t\t\treturn t;\n\t\t\t} else {\n\t\t\t\tthrow new AuthenticationException(\"Authentication Failure\");\n\t\t\t\t//return httpResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, \"your message goes here\");\n\t\t\t}\n\t\t} catch (InvalidKeyException e1) {\n\t\t\tthrow new RuntimeException(e1);\n\t\t}\n\t}", "public OAuthTokenResponse getToken() {\n return token;\n }", "public TokenResponse(String token) {\n this.token = token;\n }", "protected String parseClientLoginResponse(HttpResponse response) throws\n AuthClientException, IOException {\n int status = response.getStatusLine().getStatusCode();\n if (status != HttpStatus.SC_OK && status != HttpStatus.SC_FORBIDDEN) {\n throw new AuthClientException(\"Unexpected ClientLogin HTTP status \" + status);\n }\n\n String body = EntityUtils.toString(response.getEntity());\n Map<String, String> responseMap = parseClientLoginBody(body);\n\n if (status == HttpStatus.SC_OK) {\n String authToken = responseMap.get(\"Auth\");\n if (authToken == null) {\n throw new AuthClientException(\"Auth token missing from ClientLogin response\");\n }\n return authToken;\n } else {\n String message = \"ClientLogin forbidden\";\n // Base error code (eg. BadAuthentication)\n String error = responseMap.get(\"Error\");\n if (error != null) {\n message += \": \" + error;\n }\n // Additional error code, not usually present (eg. InvalidSecondFactor)\n String info = responseMap.get(\"Info\");\n if (info != null) {\n message += \" (\" + info + \")\";\n }\n throw new AuthClientException(message);\n }\n }", "public static String extractToken(HttpServletRequest request) {\n String header = request.getHeader(HttpHeaders.AUTHORIZATION);\n if (header != null && header.toLowerCase().startsWith(\"basic\")) return header.substring(6);\n else return null;\n }", "public String getToken() {\n Cookie[] cookies = request.getCookies();\n String token = \"\";\n\n // get token from cookie\n if (cookies != null) {\n for (Cookie cookie : cookies) {\n if (cookie.getName().equals(\"token\")) {\n token = cookie.getValue();\n try {\n token = URLDecoder.decode(token, \"utf-8\");\n } catch (UnsupportedEncodingException e) {\n logger.info(\"token decode error\");\n }\n }\n }\n }\n return token;\n }", "public java.lang.String getToken() {\n return token;\n }", "@Override\n protected void processAuthenticationResponse(HttpServletRequest request, HttpServletResponse response,\n AuthenticationContext context) throws AuthenticationFailedException {\n Map<String, String> authenticatorProperties = context.getAuthenticatorProperties();\n String apiKey = authenticatorProperties.get(Token2Constants.APIKEY);\n String userToken = request.getParameter(Token2Constants.CODE);\n String id = getUserId(context);\n String json = validateToken(Token2Constants.TOKEN2_VALIDATE_ENDPOINT, apiKey, id, Token2Constants.JSON_FORMAT,\n userToken);\n Map<String, Object> userClaims;\n userClaims = JSONUtils.parseJSON(json);\n if (userClaims != null) {\n String validation = String.valueOf(userClaims.get(Token2Constants.VALIDATION));\n if (validation.equals(\"true\")) {\n context.setSubject(AuthenticatedUser\n .createLocalAuthenticatedUserFromSubjectIdentifier(\"an authorised user\"));\n } else {\n throw new AuthenticationFailedException(\"Given hardware token has been expired or is not a valid token\");\n }\n } else {\n throw new AuthenticationFailedException(\"UserClaim object is null\");\n }\n }", "@ApiModelProperty(value = \"String that represents the authentication token. (For security reasons, this value is null except for a successful token creation response.)\")\n public String getToken() {\n return token;\n }", "public String authToken() {\n return this.authToken;\n }", "String getAuthToken() {\n return (authToken.get());\n }", "public String authToken() {\n return authToken;\n }", "GetToken.Res getGetTokenRes();", "private void fetchToken() throws InvalidTokenException, ClientProtocolException, IOException, Exception {\n\t\tif(token==null || infoChanged) {\n\t\t\t\n\t\t\tString page = rawRequest(tokenUrlSuffix);\n\t\t\t\n\t\t\tDocument doc = Jsoup.parse(page);\n\t\t\tElements tokenElem = doc.select(\"#token\");\n\t\t\tif(!tokenElem.isEmpty()) {\n\t\t\t\ttoken = tokenElem.get(0).text();\n\t\t\t} else {\n\t\t\t\tthrow new InvalidTokenException();\n\t\t\t}\n\t\t}\n\t}", "java.lang.String getRemoteToken();", "public void getAuthenticationAndMetadata(String token, ActionListener<Tuple<Authentication, Map<String, Object>>> listener) {\n decodeToken(token, ActionListener.wrap(\n userToken -> {\n if (userToken == null) {\n listener.onFailure(new ElasticsearchSecurityException(\"supplied token is not valid\"));\n } else {\n listener.onResponse(new Tuple<>(userToken.getAuthentication(), userToken.getMetadata()));\n }\n },\n listener::onFailure\n ));\n }", "@Override\r\n public T getCredentials() {\r\n return token;\r\n }", "public Token getRequestToken();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cleans the session data and operation data (if enabled) from the DB
public void removeExpiredSessionData() { if (StringUtils.isBlank(sqlDeleteExpiredDataTask)) { try { sqlDeleteExpiredDataTask = getDBSpecificSessionDataRemovalQuery(); } catch (IdentityApplicationManagementException e) { log.error("Error when initializing the db specific cleanup query.", e); } } if (sessionDataCleanupEnabled) { removeExpiredSessionData(sqlDeleteExpiredDataTask); } if (tempDataCleanupEnabled) { removeExpiredSessionData(replaceTableName(sqlDeleteExpiredDataTask)); } if (operationDataCleanupEnabled) { removeInvalidatedSTOREOperations(); } }
[ "public void unsetLoginData() {\n Map<String, String> params = new HashMap<>();\n params.put(LOGIN_USER_ID, \"\");\n params.put(LOGIN_USER_NAME, \"\");\n params.put(LOGIN_USER_EMAIL, \"\");\n this.saveSession(params);\n }", "void flushAndClearSession();", "private void clearSession(){\n }", "protected void cleanupSession(){\n m_aszSessionVariables=null;\n m_iMaxInactiveInterval=0;\n m_lSessionCreateTime=0;\n\t\tif (null == m_ABREAppServerObj) return ;\n\t\tif(m_iSessionID < 1) return;\n\t\tm_ABREAppServerObj.removeSession(m_iSessionID);\n\t}", "public void flushAndClearSession() {\n\t\tflushSession();\n\t\tclearSession();\n }", "public Response clear(){\n //Create DAO objects that will be used to clear the database\n UserDataAccess userDao = new UserDataAccess();\n PersonDataAccess personDao = new PersonDataAccess();\n EventsDataAccess eventsDao = new EventsDataAccess();\n AuthorizationDataAccess authTokenDao = new AuthorizationDataAccess();\n\n //Clear the database\n if(userDao.deleteUsers() && personDao.deletePersons() && eventsDao.deleteEvents() && authTokenDao.deleteAuthTokens()){\n return new Response(\"Clear succeeded.\");\n }\n else{\n return new Response(\"Clear was unsuccessful.\");\n }\n }", "public void clearSession(){\n currentUser = null;\n session = null;\n }", "public void cleanAllSessions() {\n\t\tdatabase.delete(DBHelper.TABLE_SESSION, null, null);\n\t}", "public void clean() {\n\t\tdata = new ServerData();\n\t\tdataSaver.clean();\n\t}", "Session unset();", "protected void ClearData() {\n\t\t// TODO Auto-generated method stub\n\t\n\t\t sharedPreferences = this.getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);\n\t\t Editor editor = sharedPreferences.edit();\n\t\t if(sharedPreferences.contains(\"username\")||sharedPreferences.contains(\"password\")){\n\t\t\t editor.remove(\"username\");\n\t\t\t editor.remove(\"password\");\n\t\t }\n\t\t editor.clear();\n\t\t editor.commit();\n\t}", "void clearSession();", "private static void runSessionTableCleaner() throws ParseException{\n \t\t//Clean the session table only if its size has exceeded beyond MAX_ENTRIES\n \t\tif(sessionTable.size() >= MAX_ENTRIES){\n \t\t\tIterator<String> it = sessionTable.keySet().iterator();\n \t\t\tTimestamp currentTS = new Timestamp(new Date().getTime());\n \t\t\twhile (it.hasNext()) {\n \t\t\t\t//Remove all stale(expired) cookie entries from Session Table\n \t\t\t\tString key = it.next();\n \t\t \tDate oldDate = new SimpleDateFormat(\"MMMMM dd, yyyy hh:mm:ss a \", Locale.US).parse(getDate(sessionTable.get(key)));\n \t\t \tTimestamp oldTS = new Timestamp(oldDate.getTime());\n \t\t \tlong diffTS = currentTS.getTime() - oldTS.getTime();\n \t\t \tif (diffTS >= EXPIRATION_PERIOD){\n \t\t\t\t\tsessionTable.remove(key);\n \t\t\t\t}\t \t\n \t\t }\n \t\t}\n \t}", "public static void CleanSessionLoginAttributes(HttpSession session) {\n session.removeAttribute(PereConst.USERID_ATTR);\n session.removeAttribute(PereConst.CUSTOMERID_ATTR);\n session.removeAttribute(PereConst.USERLOGIN_ATTR);\n session.removeAttribute(PereConst.CUSTOMERLOGIN_ATTR);\n session.removeAttribute(PereConst.USERGREET_ATTR);\n session.removeAttribute(PereConst.CUSTOMERGREET_ATTR);\n session.removeAttribute(PereConst.USER_TYPE_ATTR);\n session.removeAttribute(PereConst.CUSTOMER_TYPE_ATTR);\n session.removeAttribute(PereConst.PERMS_ATTR);\n session.removeAttribute(PereConst.BOOK_ATTR);\n session.removeAttribute(PereConst.SHIPMENT_ATTR);\n }", "private void removeInvalidatedSTOREOperations() {\n Connection connection = null;\n PreparedStatement statement = null;\n try {\n connection = IdentityDatabaseUtil.getSessionDBConnection(true);\n } catch (IdentityRuntimeException e) {\n log.error(e.getMessage(), e);\n return;\n }\n\n try {\n if (StringUtils.isBlank(sqlDeleteSTORETask)) {\n String driverName = connection.getMetaData().getDriverName();\n if (driverName.contains(MYSQL_DATABASE) || driverName.contains(MARIA_DATABASE)) {\n sqlDeleteSTORETask = SQL_DELETE_STORE_OPERATIONS_TASK_MYSQL;\n } else {\n sqlDeleteSTORETask = SQL_DELETE_STORE_OPERATIONS_TASK;\n }\n }\n statement = connection.prepareStatement(sqlDeleteSTORETask);\n statement.execute();\n IdentityDatabaseUtil.commitTransaction(connection);\n return;\n } catch (SQLException e) {\n IdentityDatabaseUtil.rollbackTransaction(connection);\n log.error(\"Error while removing STORE operation data from the database. \", e);\n } finally {\n IdentityDatabaseUtil.closeAllConnections(connection, null, statement);\n\n }\n\n }", "public void clearUserData(){\n SharedPreferences.Editor spEditor = userLocalDatabase.edit();\n spEditor.clear();\n spEditor.apply();\n }", "public void clear(){\n authUserDataModel.clear();\n }", "public void clean() {\n\t\tserver.clearPersistentData();\n\t\t_offlineMessages.clear();\n\t\t_onlineClients.clear();\n\t\t_clientFriends.clear();\n\t}", "private void cleanSessionEntityIds(HttpServletRequest request) {\r\n\t\t//Limpieza de sfid que arrastramos\r\n\t\tHttpSession session = request.getSession(true);\t\r\n\t\tsession.setAttribute(Constantes.SFID_SUMINISTRO, null);\t\r\n\t\tsession.setAttribute(Constantes.SFID_CONTACTO, null);\t\r\n\t\tsession.setAttribute(Constantes.SFID_CUENTA, null);\t\r\n\t\tsession.setAttribute(Constantes.SFID_DIRECCION, null);\r\n\t\tsession.setAttribute(Constantes.FINAL_DETAIL_PAGE, null);\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The EC2 and RDS instance IDs.
public java.util.List<String> getInstanceIds() { return instanceIds; }
[ "String getAwsEc2instanceInstanceID();", "public java.util.List<String> getReservedInstancesIds() {\n if (reservedInstancesIds == null) {\n reservedInstancesIds = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n reservedInstancesIds.setAutoConstruct(true);\n }\n return reservedInstancesIds;\n }", "public void listEC2() {\n\n \tif (ec2 == null)\n \t{\n \t\treturn;\n \t}\n \t\n try {\n DescribeAvailabilityZonesResult availabilityZonesResult = ec2.describeAvailabilityZones();\n System.out.println(\"You have access to \" + availabilityZonesResult.getAvailabilityZones().size() +\n \" Availability Zones.\");\n\n DescribeInstancesResult describeInstancesRequest = ec2.describeInstances();\n List<Reservation> reservations = describeInstancesRequest.getReservations();\n Set<Instance> instances = new HashSet<Instance>();\n\n for (Reservation reservation : reservations) {\n instances.addAll(reservation.getInstances());\n }\n\n System.out.println(\"You have \" + instances.size() + \" Amazon EC2 instance(s) running.\");\n } catch (AmazonServiceException ase) {\n System.out.println(\"Caught Exception: \" + ase.getMessage());\n System.out.println(\"Reponse Status Code: \" + ase.getStatusCode());\n System.out.println(\"Error Code: \" + ase.getErrorCode());\n System.out.println(\"Request ID: \" + ase.getRequestId());\n }\n\n }", "String getAwsEc2instanceAMI();", "public long getInstanceId() {\n\t\treturn _instanceImage.getInstanceId();\n\t}", "String getAwsEc2instanceKey();", "String getAwsEc2instanceInstanceType();", "public String getEc2InstanceType() {\n return this.ec2InstanceType;\n }", "private List<String> getRunningInstances()\n {\n final long maxResults = 500L; // 500 is sadly the max, see below\n\n ArrayList<String> ids = new ArrayList<>();\n try {\n final String project = envConfig.getProjectId();\n final String zone = envConfig.getZoneName();\n final String managedInstanceGroupName = envConfig.getManagedInstanceGroupName();\n\n Compute computeService = createComputeService();\n Compute.InstanceGroupManagers.ListManagedInstances request =\n computeService\n .instanceGroupManagers()\n .listManagedInstances(project, zone, managedInstanceGroupName);\n // Notice that while the doc says otherwise, there is not nextPageToken to page\n // through results and so everything needs to be in the same page\n request.setMaxResults(maxResults);\n InstanceGroupManagersListManagedInstancesResponse response = request.execute();\n for (ManagedInstance mi : response.getManagedInstances()) {\n ids.add(GceUtils.extractNameFromInstance(mi.getInstance()));\n }\n log.debug(\"Found running instances [%s]\", String.join(\",\", ids));\n }\n catch (Exception e) {\n log.error(e, \"Unable to get instances.\");\n }\n return ids;\n }", "@java.lang.Override\n public long getInstanceid() {\n return instanceid_;\n }", "public long getInstanceImageId() {\n\t\treturn _instanceImage.getInstanceImageId();\n\t}", "public List<Instance> listInstances(boolean print) {\n List<Instance> instances = new LinkedList<>();\n boolean done = false; // done = True - when finished going over all the instances.\n DescribeInstancesRequest instRequest = new DescribeInstancesRequest();\n\n try {\n while (!done) {\n\n // Go through all instances\n DescribeInstancesResult response = this.ec2.describeInstances(instRequest);\n\n for (Reservation reservation : response.getReservations()) {\n for (Instance instance : reservation.getInstances()) {\n\n String state = instance.getState().getName();\n\n StringBuilder tagsBuilder = new StringBuilder();\n tagsBuilder.append(\"tags: \");\n Filter filter = new Filter().withName(\"resource-id\").withValues(instance.getInstanceId());\n DescribeTagsRequest tagRequest = new DescribeTagsRequest().withFilters(filter);\n DescribeTagsResult tagResult = this.ec2.describeTags(tagRequest);\n List<TagDescription> tags = tagResult.getTags();\n for (TagDescription tagDesc : tags) {\n tagsBuilder.append(tagDesc.getValue());\n tagsBuilder.append(\" \");\n }\n\n if (print)\n System.out.println(\"instance: \" + instance.getInstanceId() + \", state: \" + state + \", with tags: \" + tagsBuilder.toString());\n instances.add(instance);\n }\n }\n\n instRequest.setNextToken(response.getNextToken());\n if (response.getNextToken() == null) {\n done = true;\n }\n }\n return instances;\n }\n\n catch (AmazonServiceException ase) {\n printASEException(ase);\n return null;\n }\n }", "java.util.List<com.google.cloud.baremetalsolution.v2.InstanceConfig> getInstancesList();", "@java.lang.Override\n public long getInstanceid() {\n return instanceid_;\n }", "public String instanceId() {\n return this.innerProperties() == null ? null : this.innerProperties().instanceId();\n }", "String getAwsEc2instancePublicIP();", "private String getEc2InstanceHostname() {\n String instanceId = debugInstanceId;\n // For some launches, we won't know the EC2 instance ID until this point.\n if ( instanceId == null || instanceId.length() == 0 ) {\n instanceId = environment.getEC2InstanceIds().iterator().next();\n }\n DescribeInstancesResult describeInstances = environment.getEc2Client().describeInstances(\n new DescribeInstancesRequest().withInstanceIds(instanceId));\n if ( describeInstances.getReservations().isEmpty()\n || describeInstances.getReservations().get(0).getInstances().isEmpty() ) {\n return null;\n }\n return describeInstances.getReservations().get(0).getInstances().get(0).getPublicDnsName();\n }", "@Override\n public int hashCode() {\n return _instanceId.hashCode();\n }", "@java.lang.Override\n public long getInstanceid() {\n return instanceid_;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
hard delete by business year and business cycle definition id
@Modifying @Query("DELETE FROM BusinessCycle c where c.businessCycleDefinition.id = :id and c.businessYear=:businessYear") void hardDeleteByCycleDefinitionIdAndBusinessYear(@Param("id") int id, @Param("businessYear") String businessYear);
[ "@Modifying\n\t@Query(\"UPDATE BusinessCycle c set c.isActive=false where c.businessCycleDefinition.id = :id and c.businessYear=:businessYear\")\n\tvoid softdeleteByCycleDefinitionIdAndBusinessYear(@Param(\"id\") int id, @Param(\"businessYear\") String businessYear);", "public abstract boolean deleteBusiness(int id);", "void delPreferedCalendar(String calendarId);", "public void deleteConcursoBonificacionPeriodo(String numeroConcurso);", "public Map<String, Object> deleteHolidayById(Integer id);", "void deleteByOrgId(String csaOrgId);", "public void deleteUntilYear(int year) {\n if(year < 1987 || year > Calendar.getInstance().get(Calendar.YEAR)) {\n System.err.println(\"Year passed to deleteUntilYear(int year) is invalid\");\n return;\n }\n MongoDatabase database = mongoClient.getDatabase(\"us_flights_db\");\n MongoCollection<Document> collection = database.getCollection(\"us_flights\");\n\n try {\n collection.deleteMany(\n lte(\"$expr\",\n Arrays.asList(\n eq(\"$year\",\n eq(\"$dateFromString\",\n eq(\"dateString\", \"$FL_DATE\")\n )\n ),\n year\n )\n )\n );\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void deleteByCompany(Long id);", "public void deleteConcursoPeriodoDespacho(String numeroConcurso);", "void deleteDag(Long id);", "Booking deleteBooking(int id);", "private void deleteBusinessCategoryXR(ActionRequest req) throws DatabaseException {\n\t\tString schema = getCustomSchema();\n\t\tStringBuilder sqlDelete = new StringBuilder(100);\n\t\tsqlDelete.append(DBUtil.DELETE_CLAUSE).append(DBUtil.FROM_CLAUSE).append(schema).append(\"rezdox_business_category_xr \");\n\t\tsqlDelete.append(DBUtil.WHERE_CLAUSE).append(\"business_id = ? \");\n\n\t\ttry (PreparedStatement ps = dbConn.prepareStatement(sqlDelete.toString())) {\n\t\t\tps.setString(1, req.getParameter(BusinessAction.REQ_BUSINESS_ID));\n\t\t\tps.executeUpdate();\n\t\t} catch (SQLException sqle) {\n\t\t\tthrow new DatabaseException(sqle);\n\t\t}\n\t}", "public void deleteDataInPeriodTable() throws SQLException {\n\t\tdeleteData(\"jp_period\",idCondition);\n\t}", "int delWayBillByIdTravel(Long id_travel);", "private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "void deleteCompany(Company company);", "private static void deleteByMonthAndYear(int month, int year) {\n\n String conditionForStatement = \"month = \" + month + \" AND year = \" + year;\n deleteByConditions(conditionForStatement);\n }", "int deleteTimePeriod(Integer timePeriodId) throws DataAccessException;", "public void deleteConcursoRecomendadaPeriodo(String numeroConcurso);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
use outputstream to initialize response
public Response(OutputStream outputstream) { this.outputstream = outputstream; }
[ "OutputStream getResponseOutputStream();", "private HTTPResponseWriter setOutput(ByteArrayOutputStream out) {\n return new HTTPResponseWriter(new PrintWriter(out));\n }", "void getResponse(OutputStream outputStream) throws IOException;", "public MyHTTPOutputStream(OutputStream os) {\n\t\tsuper(os);\n\t\tthis.myRequest = \"\";\n\t\tthis.myReply = \"\";\n\t}", "void augmentResponse(Writer out) throws IOException;", "public CompressionResponseStream(HttpServletResponse response,\r\n HttpServletRequest request) throws IOException {\r\n\r\n super();\r\n this.closed = false;\r\n this.response = response;\r\n this.request = request;\r\n this.output = response.getOutputStream();\r\n }", "public HttpRawSocketResponse(OutputStream outputStream) throws IOException {\n this.pw = new PrintWriter(outputStream, true);\n }", "public void printOn(OutputStream stream) throws IOException{\n OutputStreamWriter out = new OutputStreamWriter(stream);\n\n String responseLine = protocolInitializationString();\n if( responseLine != null )\n out.write( responseLine + \"\\n\" );\n \n String headersString= headersAsString();\n if( headersString != null )\n out.write( headersString );\n \n Content c = contentObj();\n if( c!= null )\n out.write( c.toString() );\n \n out.flush();\n }", "protected AbstractMessageWriter<SimpleHttpResponse> makeHttpResponseWriter(final SessionOutputBuffer outputBuffer) {\n return new SimpleHttpResponseWriter();\n }", "private void writeResponseLine(final DataOutput out) throws IOException {\n out.writeBytes(HTTP_VERSION);\n out.writeBytes(SP);\n out.writeBytes(code + \"\");\n out.writeBytes(SP);\n if (responseString != null) {\n out.writeBytes(responseString);\n }\n out.writeBytes(CRLF);\n }", "public FilterServletOutputStream(OutputStream output)\n {\n m_stream = new DataOutputStream(output);\n }", "private void prepareResponseToStream(HttpServletResponse response) {\r\n\t\t// content type must be set to text/event-stream\r\n\t\tresponse.setContentType(\"text/event-stream\");\r\n\r\n\t\t// encoding must be set to UTF-8\r\n\t\tresponse.setCharacterEncoding(\"UTF-8\");\r\n\t\t\r\n\t\tresponse.addHeader(\"Cache-Control\", \"no-cache\");\r\n\t}", "public void writeEmptyResponse();", "public void startResponse()\n\t\t\t{\n\t\t\t\tsend(\"<response>\", false);\n\t\t\t}", "void generateContent(OutputStream output) throws Exception;", "private void writeResponse(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException {\n\t\tresponse.setContentType(\"text/html\");\n\t\tresponse.setCharacterEncoding(\"utf-8\");\n\t\tPrintWriter pw = response.getWriter();\n\t\tpw.print(\"This is a CQ5 Response ... \");\n\t\tpw.print(getPageContent(request, \"/content/helloworld\"));\n\t\tpw.flush();\n\t\tpw.close();\n\t}", "protected void startResponseOutput(Response response, Writer writer) throws ScalarActionException {\r\n // No wrapping if there is no tag\r\n\t\tString tag = response.getTag();\r\n\t\tif ( (null == tag) || (tag.length() == 0) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\twriter.write('{');\r\n\t\t\taddOutputAttribute(TYPE, response.getTag(), writer, false);\r\n\r\n\t\t\tMap<String, String> data = response.getOutputAttributes();\r\n\t\t\tfor ( Map.Entry<String, String> entry : data.entrySet() ) {\r\n\t\t\t\tString key = entry.getKey();\r\n\t\t\t\tString value = entry.getValue();\r\n\t\t\t\tif(value != null && tag.equals(ErrorResponse.FUI_ERROR) &&\r\n\t\t\t\t\t\t( key.equals(ErrorResponse.MESSAGE_ATTRIBUTE) || key.equals(ErrorResponse.ROOT_MESSAGE_ATTRIBUTE) )){\r\n\t\t\t\t\tvalue = value.replace('\\n', ' ');\r\n\t\t\t\t\tvalue = value.replace('\\r', ' ');\r\n\t\t\t\t\tvalue = value.replace('\\t', ' ');\r\n\t\t\t\t}\r\n\t\t\t\taddOutputAttribute(key, value, writer, true);\r\n\t\t\t}\r\n\r\n\r\n\t\t\twriter.write(\",\\\"\" + CONTENT + \"\\\": \\\"\");\r\n\t\t} catch ( IOException e ) {\r\n\t\t\tMsgObject msgObject = MsgObjectUtil.getMsgObject(FrameworkResource.BASE_NAME, FrameworkResource.WRITE_OUTPUT_FAILURE);\r\n\t\t\tthrow ScalarActionException.create(msgObject, e);\r\n\t\t}\r\n }", "public DataBuffers generateOutput(final HTTPRequest request) throws HTTPException\r\n\t{\r\n\t\tfinal StringBuilder str=new StringBuilder(\"\");\r\n\t\tstr.append(\"HTTP/\").append(request.getHttpVer()).append(\" \").append(statusCode).append(\" \").append(statusString).append(EOLN);\r\n\t\tfinal HashSet<String> normalizedHeaders = new HashSet<String>();\r\n\t\tfor(final String header : headers.keySet())\r\n\t\t{\r\n\t\t\tnormalizedHeaders.add(header.toLowerCase());\r\n\t\t\tstr.append(header).append(\": \").append(headers.get(header)).append(EOLN);\r\n\t\t}\r\n\t\t// since the servlet could have overwridden ANY of our default headers, we make\r\n\t\t// sure to check a normalizsed set of servlet generated headers BEFORE writing\r\n\t\t// our own.\r\n\t\tif(bout.size()>0)\r\n\t\t{\r\n\t\t\tif(!normalizedHeaders.contains(HTTPHeader.Common.CONTENT_TYPE.lowerCaseName()))\r\n\t\t\t\tstr.append(HTTPHeader.Common.CONTENT_TYPE.makeLine(MIMEType.All.html.getType()));\r\n\t\t\tif(!normalizedHeaders.contains(HTTPHeader.Common.CONTENT_LENGTH.lowerCaseName()))\r\n\t\t\t\tstr.append(HTTPHeader.Common.CONTENT_LENGTH.makeLine(bout.size()));\r\n\t\t}\r\n\t\tif((Thread.currentThread() instanceof CWThread) && ((CWThread)Thread.currentThread()).getConfig().isDebugging())\r\n\t\t\t((CWThread)Thread.currentThread()).getConfig().getLogger().finer(\"Response Servlet: \"+str.toString().replace('\\r', ' ').replace('\\n', ' '));\r\n\t\tif(!normalizedHeaders.contains(HTTPHeader.Common.SERVER.lowerCaseName()))\r\n\t\t\tstr.append(HTTPIOHandler.SERVER_HEADER);\r\n\t\tif(!normalizedHeaders.contains(HTTPHeader.Common.CONNECTION.lowerCaseName()))\r\n\t\t\tstr.append(HTTPIOHandler.CONN_HEADER);\r\n\t\tif(!normalizedHeaders.contains(HTTPHeader.Common.KEEP_ALIVE.lowerCaseName()))\r\n\t\t\tstr.append(HTTPHeader.Common.getKeepAliveHeader());\r\n\t\tif(!normalizedHeaders.contains(HTTPHeader.Common.DATE.lowerCaseName()))\r\n\t\t\tstr.append(HTTPHeader.Common.DATE.makeLine(HTTPIOHandler.DATE_FORMAT.format(new Date(System.currentTimeMillis()))));\r\n\t\tfor(final String key : cookies.keySet())\r\n\t\t\tstr.append(HTTPHeader.Common.SET_COOKIE.makeLine(key+\"=\"+cookies.get(key)));\r\n\t\tstr.append(EOLN);\r\n\t\tfinal CWDataBuffers bufs=new CWDataBuffers(str.toString().getBytes(), System.currentTimeMillis(),false);\r\n\t\tif(bout.size()>0)\r\n\t\t{\r\n\t\t\tfinal byte[] output=bout.toByteArray();\r\n\t\t\tbufs.add(output, System.currentTimeMillis(),true);\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tbout.flush();\r\n\t\t\t\tbout.reset();\r\n\t\t\t\tbout.close();\r\n\t\t\t}\r\n\t\t\tcatch (final Exception e)\r\n\t\t\t{\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn bufs;\r\n\t}", "public void endResponse() throws IOException {\n out.println();\n //out.println(\"--End\");\n out.flush();\n endedLastResponse = true;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test validation of Research EditText
@Test public void researchEditTextInputTest() { onView(withId(R.id.network_input_research)) .perform(typeText(INPUT_TEXT)) .check(matches(withText(INPUT_TEXT))); }
[ "@Test\n public void shouldNameEditTextShowNoErrorWhenValidData() {\n onView(withId(R.id.txtName)).perform(click(), closeSoftKeyboard(), replaceText(\"test\"));\n onView(withId(R.id.txtName)).check(matches(hasErrorText(isEmptyOrNullString())));\n }", "private void validadeFields() {\n\t\tboolean enabled = textDescription.getText().trim().length() > 0 &&\n\t\ttextExpectedResults.getText().trim().length() > 0;\n\t\tgetOkayButton().setEnabled(enabled);\n\t}", "@Test\n public void testEditTextContent() throws Exception {\n\n onView(withId(R.id.editText))\n .perform(typeText(LOG_TAG))\n .check(matches(withText(LOG_TAG)));\n }", "private void validateInput() {\n //stop if there is no input\n if(editTextUserInput.getText().toString().length() < 1)\n return;\n\n double userAnswer = Double.parseDouble(editTextUserInput.getText().toString());\n int userQuestionLengthMinusLastChar = textViewQuestion.getText().toString().length() - 1;\n String userQuestion = textViewQuestion.getText().toString().substring(0, userQuestionLengthMinusLastChar);\n\n if(userAnswer == answer) {\n makeToast(\"Correct!\", \"short\");\n answerList.addToListOfAnswers(new Answer(userQuestion, userAnswer, true));\n }\n else {\n makeToast(\"Incorrect!\", \"short\");\n answerList.addToListOfAnswers(new Answer(userQuestion, userAnswer, false));\n }\n\n //clear text\n textViewQuestion.setText(null);\n editTextUserInput.setText(null);\n }", "@Test\n public void textInputOutput() {\n onView(withId(R.id.editText_main)).perform(typeText(\"This is a test.\"));\n onView(withId(R.id.button_main)).perform(click());\n onView(withId(R.id.text_message)).check(matches(withText(\"This is a test.\")));\n }", "private boolean checkView(EditText editText) {\n if(editText.getText().toString().trim().length()==0){\n editText.setError(\"Please Enter the Required Value\");\n return false;\n }else {\n return true;\n }\n }", "public boolean validasiEditText() {\n\t\tif (edtUrl.getText().toString().isEmpty()) {\n\t\t\tedtUrl.requestFocus();\n\t\t\tedtUrl.setError(\"Masukkan url\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test\n public void testEditTextExists(){\n ViewInteraction appCompatEditTextView = onView(withId(R.id.input));\n appCompatEditTextView.perform(replaceText(\"testEditTextExists\"), closeSoftKeyboard());\n onView(withId(R.id.fab)).perform(click());\n EditText input = messagesActivity.input;\n assertNotNull(input);\n }", "@Test\n public void testEditTextCleanup() throws Exception {\n\n // perform text input\n onView(withId(R.id.editText))\n .perform(typeText(LOG_TAG));\n\n // click pin button\n onView(withText(R.string.button_name))\n .perform(click());\n\n // verify empty edittext\n onView(withId(R.id.editText))\n .check(matches(withText(\"\")));\n }", "private boolean checkForText(EditText edit) {\n\t\tif (!edit.getText().toString().equals(\"\")) { return true; }\n\t\treturn false;\n\t}", "@Test\n public void mainActivityTest() {\n ViewInteraction appCompatEditText = onView(withId(R.id.passCheck));\n appCompatEditText.perform(replaceText(\"12345\"));\n\n ViewInteraction materialButton = onView(withId(R.id.loginbtn));\n materialButton.perform(click());\n\n ViewInteraction textView = onView(withId(R.id.textView));\n textView.check(matches(withText(\"You shall not pass\")));\n }", "private boolean validate(EditText editText) {\n if (editText.getText().toString().trim().length() > 0) {\n return true; // returs true if field is not empty\n }\n editText.setError(\"Please Fill This\");\n editText.requestFocus();\n return false;\n }", "public static boolean check(EditText text)\n\t{\n\t\tswitch (text.getInputType())\n\t\t{\n\t\tcase InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS:\n\t\t\treturn forMail(text.getText().toString());\n\t\tcase InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PERSON_NAME:\t\t\t\n\t\t\treturn forName(text.getText().toString());\n\t\tcase InputType.TYPE_CLASS_TEXT:\n\t\t\treturn forLogin(text.getText().toString());\n\t\tcase InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD:\n\t\t\treturn forPassword(text.getText().toString());\n\t\tdefault:\n\t\t\tLog.w(\"REGEX \", \"Error to find InputType \" + text.getInputType());\n\t\t\tbreak;\t\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void ensureTextChangesWork(){\n onView(withId(R.id.placeEditText)).perform(typeText(\"London\"));\n\n // Check that the language text was changed.\n onView(withId(R.id.languageEditText)).perform(typeText(\"It\"));\n\n // Check that the language text was changed.\n onView(withId(R.id.maxrowsEditText)).perform(typeText(\"3\"));\n\n // check button click\n onView(withId(R.id.button)).perform(click());\n\n // check returned list view\n onView(withId(R.id.listViewResult)).check(matches(isDisplayed()));\n }", "private boolean formValid() {\n if(!photoTaken){\n Toast toast = Toast.makeText(getApplicationContext(),\n \"A profile picture must be taken!\", Toast.LENGTH_SHORT);\n toast.show();\n return false;\n }\n\n Map<Integer, String> inputToError = new HashMap<>();\n inputToError.put(R.id.name_input, \"Name cannot be empty!\");\n inputToError.put(R.id.phone_no_input, \"Phone Number cannot be empty!\");\n inputToError.put(R.id.program_input, \"Degree Program cannot be empty!\");\n\n for (Map.Entry<Integer, String> check : inputToError.entrySet()) {\n if (textViewFailsValidation(check.getKey(), check.getValue())) {\n return false;\n }\n }\n\n return !courseListFailsValidation();\n\n }", "@Test\n public void testBlankRegisterUser()\n {\n try\n {\n onView(withId(R.id.signOut)).perform(click());\n }\n catch (NoMatchingViewException e)\n {\n }\n\n // Input text\n onView(withId(R.id.etxt_Username))\n .perform(typeText(testUsername), closeSoftKeyboard());\n\n onView(withId(R.id.btn_Login))\n .perform(click());\n\n onView(withId(R.id.btn_OK))\n .perform(click());\n\n onView(withId(R.id.etxtPhoneNum))\n .check(matches(hasErrorText(\"Invalid format. Example: +1 (123) 123-1234\")));\n\n onView(withId(R.id.etxtEmail))\n .check(matches(hasErrorText(\"invalid format. Example: exemplaremail@example.com\")));\n }", "private boolean verifyInput() {\n return textField.getInputVerifier().verify(textField);\n }", "@Test\n public void typeDescriptionField() {\n String desc = \"testTask_description\";\n EspressoHelper.insertTextIntoInput(R.id.taskDescription, desc);\n onView(withId(R.id.taskDescription))\n .check(matches(withText(desc)));\n }", "void accept(@NotNull T editText);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for the broadcast frequency
public void setBroadcastFrequency( Long broadcastFrequency ) { this.broadcastFrequency = broadcastFrequency; }
[ "public Long getBroadcastFrequency()\r\n {\r\n return broadcastFrequency;\r\n }", "void setFrequency(long frequency);", "public void setFreq(int freq){\n _frequency = freq;\n }", "public void setFrequency(int freq) {\n mFrequency = freq;\n }", "public void setFrequency(int value) {\n this.frequency = value;\n }", "public void setFrequency(double frequency)\n {\n this.frequency = frequency;\n }", "public void setFrequency(long frequency) {\n this.frequency = frequency;\n }", "public void setFrequency(int frequency) {\n this.frequency = frequency;\n }", "public void setFrequency(java.lang.Integer value) {\n this.frequency = value;\n }", "public void setFrequency(float f) {\r\n\t\tfrequency = f;\r\n\t}", "public void setTuning(double freq) {\n\n }", "public void increaseFreq() { this.frequency++; }", "void setUpdateFrequency(int updateFrequency);", "public void setFreq()\n { \n //Set the frequency to be played\n if(lfoTuneValue == LFO.LFO_OFF)\n freq = noteFreq * (100 + tune) / 100;\n else\n freq = noteFreq * (int)(100.0 + lfoTuneValue * 10.0) / 100;\n \n period = rate / freq;\n \n oscFlag = true;\n }", "public void setFreq(int f)\n {\n noteFreq = f;\n \n setFreq();\n }", "private void setFrequency( int f ) {\n\t\t// cancel any previous tasks\n\t\tif ( frameTask != null ) frameTask.cancel();\n\t\t// create new task\n\t\tframeTask = new FrameTask();\n\t\tnew Timer().schedule(frameTask, 0, 1000/freq);\n\t}", "public void setKink_freq(float kink_freq) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 116, kink_freq);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 116, kink_freq);\n\t\t}\n\t}", "public void setWorkingFrequencies(int[] frequencies) {\r\n\t\tthis.frequencies = frequencies;\r\n\t}", "public void setMeasFrequencyHz(long value) {\r\n this.measFrequencyHz = value;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Factor__Group_1__0__Impl" $ANTLR start "rule__Factor__Group_1__1" ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/srcgen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3035:1: rule__Factor__Group_1__1 : rule__Factor__Group_1__1__Impl ;
public final void rule__Factor__Group_1__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3039:1: ( rule__Factor__Group_1__1__Impl ) // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3040:2: rule__Factor__Group_1__1__Impl { pushFollow(FOLLOW_rule__Factor__Group_1__1__Impl_in_rule__Factor__Group_1__16293); rule__Factor__Group_1__1__Impl(); state._fsp--; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { restoreStackSize(stackSize); } return ; }
[ "public final void rule__Factor__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2989:1: ( ( ( rule__Factor__Group_1__0 )? ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2990:1: ( ( rule__Factor__Group_1__0 )? )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2990:1: ( ( rule__Factor__Group_1__0 )? )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2991:1: ( rule__Factor__Group_1__0 )?\r\n {\r\n before(grammarAccess.getFactorAccess().getGroup_1()); \r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2992:1: ( rule__Factor__Group_1__0 )?\r\n int alt22=2;\r\n int LA22_0 = input.LA(1);\r\n\r\n if ( ((LA22_0>=28 && LA22_0<=29)) ) {\r\n alt22=1;\r\n }\r\n switch (alt22) {\r\n case 1 :\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2992:2: rule__Factor__Group_1__0\r\n {\r\n pushFollow(FOLLOW_rule__Factor__Group_1__0_in_rule__Factor__Group__1__Impl6198);\r\n rule__Factor__Group_1__0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n after(grammarAccess.getFactorAccess().getGroup_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Factor__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2978:1: ( rule__Factor__Group__1__Impl )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2979:2: rule__Factor__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Factor__Group__1__Impl_in_rule__Factor__Group__16171);\r\n rule__Factor__Group__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Factor__Group_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3010:1: ( rule__Factor__Group_1__0__Impl rule__Factor__Group_1__1 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:3011:2: rule__Factor__Group_1__0__Impl rule__Factor__Group_1__1\r\n {\r\n pushFollow(FOLLOW_rule__Factor__Group_1__0__Impl_in_rule__Factor__Group_1__06233);\r\n rule__Factor__Group_1__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Factor__Group_1__1_in_rule__Factor__Group_1__06236);\r\n rule__Factor__Group_1__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Logical_factor__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2520:1: ( rule__Logical_factor__Group__1__Impl )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2521:2: rule__Logical_factor__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Logical_factor__Group__1__Impl_in_rule__Logical_factor__Group__15261);\r\n rule__Logical_factor__Group__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Factor__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2949:1: ( rule__Factor__Group__0__Impl rule__Factor__Group__1 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2950:2: rule__Factor__Group__0__Impl rule__Factor__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Factor__Group__0__Impl_in_rule__Factor__Group__06112);\r\n rule__Factor__Group__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Factor__Group__1_in_rule__Factor__Group__06115);\r\n rule__Factor__Group__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Term__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2839:1: ( ( rulefactor ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2840:1: ( rulefactor )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2840:1: ( rulefactor )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2841:1: rulefactor\r\n {\r\n before(grammarAccess.getTermAccess().getFactorParserRuleCall_0()); \r\n pushFollow(FOLLOW_rulefactor_in_rule__Term__Group__0__Impl5900);\r\n rulefactor();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getTermAccess().getFactorParserRuleCall_0()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rulefactor() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:325:2: ( ( ( rule__Factor__Group__0 ) ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:326:1: ( ( rule__Factor__Group__0 ) )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:326:1: ( ( rule__Factor__Group__0 ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:327:1: ( rule__Factor__Group__0 )\r\n {\r\n before(grammarAccess.getFactorAccess().getGroup()); \r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:328:1: ( rule__Factor__Group__0 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:328:2: rule__Factor__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__Factor__Group__0_in_rulefactor634);\r\n rule__Factor__Group__0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getFactorAccess().getGroup()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Logical_factor__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2489:1: ( rule__Logical_factor__Group__0__Impl rule__Logical_factor__Group__1 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2490:2: rule__Logical_factor__Group__0__Impl rule__Logical_factor__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Logical_factor__Group__0__Impl_in_rule__Logical_factor__Group__05196);\r\n rule__Logical_factor__Group__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Logical_factor__Group__1_in_rule__Logical_factor__Group__05199);\r\n rule__Logical_factor__Group__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Term__Group_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2917:1: ( rule__Term__Group_1__1__Impl )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2918:2: rule__Term__Group_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Term__Group_1__1__Impl_in_rule__Term__Group_1__16051);\r\n rule__Term__Group_1__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Term__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2856:1: ( rule__Term__Group__1__Impl )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2857:2: rule__Term__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Term__Group__1__Impl_in_rule__Term__Group__15929);\r\n rule__Term__Group__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Term__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2867:1: ( ( ( rule__Term__Group_1__0 )* ) )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2868:1: ( ( rule__Term__Group_1__0 )* )\r\n {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2868:1: ( ( rule__Term__Group_1__0 )* )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2869:1: ( rule__Term__Group_1__0 )*\r\n {\r\n before(grammarAccess.getTermAccess().getGroup_1()); \r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2870:1: ( rule__Term__Group_1__0 )*\r\n loop21:\r\n do {\r\n int alt21=2;\r\n int LA21_0 = input.LA(1);\r\n\r\n if ( ((LA21_0>=14 && LA21_0<=17)) ) {\r\n alt21=1;\r\n }\r\n\r\n\r\n switch (alt21) {\r\n \tcase 1 :\r\n \t // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2870:2: rule__Term__Group_1__0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__Term__Group_1__0_in_rule__Term__Group__1__Impl5956);\r\n \t rule__Term__Group_1__0();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop21;\r\n }\r\n } while (true);\r\n\r\n after(grammarAccess.getTermAccess().getGroup_1()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Term__Group_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2888:1: ( rule__Term__Group_1__0__Impl rule__Term__Group_1__1 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2889:2: rule__Term__Group_1__0__Impl rule__Term__Group_1__1\r\n {\r\n pushFollow(FOLLOW_rule__Term__Group_1__0__Impl_in_rule__Term__Group_1__05991);\r\n rule__Term__Group_1__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Term__Group_1__1_in_rule__Term__Group_1__05994);\r\n rule__Term__Group_1__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void ruleImplementation() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:218:2: ( ( ( rule__Implementation__Group__0 ) ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:219:1: ( ( rule__Implementation__Group__0 ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:219:1: ( ( rule__Implementation__Group__0 ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:220:1: ( rule__Implementation__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getImplementationAccess().getGroup()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:221:1: ( rule__Implementation__Group__0 )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:221:2: rule__Implementation__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__Implementation__Group__0_in_ruleImplementation404);\r\n rule__Implementation__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getImplementationAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Term__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2827:1: ( rule__Term__Group__0__Impl rule__Term__Group__1 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2828:2: rule__Term__Group__0__Impl rule__Term__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Term__Group__0__Impl_in_rule__Term__Group__05870);\r\n rule__Term__Group__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Term__Group__1_in_rule__Term__Group__05873);\r\n rule__Term__Group__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Rule__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAst.g:2580:1: ( rule__Rule__Group__1__Impl )\n // InternalAst.g:2581:2: rule__Rule__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Rule__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Logical_term__Group_1__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2457:1: ( rule__Logical_term__Group_1__1__Impl )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2458:2: rule__Logical_term__Group_1__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Logical_term__Group_1__1__Impl_in_rule__Logical_term__Group_1__15135);\r\n rule__Logical_term__Group_1__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Logical_term__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2394:1: ( rule__Logical_term__Group__1__Impl )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2395:2: rule__Logical_term__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Logical_term__Group__1__Impl_in_rule__Logical_term__Group__15011);\r\n rule__Logical_term__Group__1__Impl();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void rule__Language__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1370:1: ( rule__Language__Group__0__Impl rule__Language__Group__1 )\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1371:2: rule__Language__Group__0__Impl rule__Language__Group__1\n {\n pushFollow(FollowSets000.FOLLOW_rule__Language__Group__0__Impl_in_rule__Language__Group__02668);\n rule__Language__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__Language__Group__1_in_rule__Language__Group__02671);\n rule__Language__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Model__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:898:1: ( rule__Model__Group__1__Impl )\n // InternalMLRegression.g:899:2: rule__Model__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Model__Group__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns if the task can be planned.
boolean canBePlanned();
[ "public boolean canRun() {\n\t\treturn taskState == TaskState.SCHEDULED;\n\t}", "private boolean areTaskForcesPresent() {\n return baseGrid\n .getPort()\n .map(Port::areTaskForcesPresent)\n .orElse(false);\n }", "public boolean isRunnable(){\n boolean ans = !isCancelled ;\n \n refresh();\n \n Date requested_start = (Date) project.get(\"START_TIME\");\n if( requested_start != null ){ \n ans &= requested_start.before(new Date());\n }\n\n Date requested_end = (Date) project.get(\"END_TIME\");\n if( requested_end != null ){\n ans &= requested_end.after(new Date());\n }\n \n return ans;\n }", "public boolean canDoTask(Player p, Assignment t) {\n\t\treturn p.getInstance().playerLevel[p.getInstance().playerSlayer] >= t.req;\n\t}", "boolean hasPlayerTask();", "protected boolean canSetNewPlan() {\n\t\tint currentTime = RPubUtil.getCurrentSystemTime();\n\t\treturn ( currentTime > getNewPlanSetTime() + getNewPlanWaitInterval() );\n\t}", "protected int canAcceptTask(WarehouseTask task) {\n\t\tint containerAmount = getContainerAmount(task.getMaterial());\n\t\tif (containerAmount > 0)\n\t\t\treturn tasks.size();\n\t\telse\n\t\t\treturn -1;\n\t}", "public boolean allowFinish() {\n if (!this.status.equals(SprintStatus.PENDING)) {\n return false;\n }\n final int finishedTasks = amountOfTasksByStatus(SprintTaskStatus.FINISHED);\n final int canceledTasks = amountOfTasksByStatus(SprintTaskStatus.CANCELED);\n\n return (finishedTasks + canceledTasks) == tasks.size();\n }", "private boolean canSubmitTaskToQueue() {\n return OSUtils.checkResource(masterConfig.getMasterMaxCpuloadAvg(), masterConfig.getMasterReservedMemory());\n }", "public boolean hasTaskId() {\n return fieldSetFlags()[23];\n }", "protected boolean isTaskInProgress(){\n return getApiExecutor(getApplication()) != null && (getApiExecutor(getApplication()).getActiveCount() > 0 || getApiExecutor(getApplication()).getQueue().size() > 0);\n }", "private boolean canUse(EntityAITasks.EntityAITaskEntry taskEntry) {\n\t\tif (this.executingTaskEntries.isEmpty()) {\n\t\t\treturn true;\n\t\t} else if (this.isControlFlagDisabled(taskEntry.action.getMutexBits())) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tfor (EntityAITasks.EntityAITaskEntry entityaitasks$entityaitaskentry : this.executingTaskEntries) {\n\t\t\t\tif (entityaitasks$entityaitaskentry != taskEntry) {\n\t\t\t\t\tif (taskEntry.priority >= entityaitasks$entityaitaskentry.priority) {\n\t\t\t\t\t\tif (!this.areTasksCompatible(taskEntry, entityaitasks$entityaitaskentry)) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (!entityaitasks$entityaitaskentry.action.isInterruptible()) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean isSetTaskId() {\n return this.taskId != null;\n }", "public boolean canSubmit()\n {\n return (_state == ActivityState.RUNNING);\n }", "public boolean isSetTaskId() {\n\t\treturn this.taskId != null;\n\t}", "public boolean canFinishJob() {\n return (isAssigned() && isAtDestination());\n }", "private Boolean hasWaitingThreadTask(){\n List<TaskInstance> waitingList = getCompleteTaskByState(ExecutionStatus.WAITTING_THREAD);\n return waitingList.size() > 0;\n }", "boolean hasMission();", "public boolean getIsAvailable() {\n return project_isavailable;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
to save donor who donate for food
public void saveNewDonor(DonorRegForm myForm) throws ParseException { // Date d = new Date(); DonorShelter inDonorShelter = new DonorShelter(); Donor inDonor = new Donor(); inDonor.setId(null); inDonor.setDonorName(myForm.getFrmRegDonorName()); inDonor.setAmount(Integer.parseInt(myForm.getFrmRegAmount())); inDonor.setDonorPhNo(myForm.getFrmRegDonorPhone()); inDonor.setDonorEmail(myForm.getFrmRegDonorEmail()); inDonor.setComment(myForm.getFrmRegDonorComment()); inDonor.setDonorNrc(myForm.getFrmRegDonorNRC()); inDonor.setDonorAddress(myForm.getFrmRegDonorAddress()); inDonor.setCreditCard(myForm.getFrmRegDonorCreditCard()); Shelter idShelter = new Shelter(); idShelter = myShelterDao.getShelterByShelterName(myForm .getFrmShelterName()); SimpleDateFormat myformat = new SimpleDateFormat("yyyy-mm-dd"); Date myDate1 = myformat.parse(myForm.getFrmRegDonateDate()); if ((myForm.getFrmBreakfastMeal()) != null) { breakfast = "1"; } else { breakfast = "0"; } if ((myForm.getFrmLunchMeal()) != null) { lunch = "1"; inDonorShelter.setKindOfMeal(lunch); } else { lunch = "0"; } if ((myForm.getFrmDinnerMeal()) != null) { dinner = "1"; inDonorShelter.setKindOfMeal(dinner); } else { dinner = "0"; } breakfast = breakfast + lunch + dinner; // System.out.println(breakfast); Donor idDonor = new Donor(); Category idCategory = new Category(); idDonor = myDonor.SaveDonor(inDonor); idCategory = myCategoryDao.getCategoryById(3); inDonorShelter.setId(null); inDonorShelter.setDonateMealDate(myDate1); inDonorShelter.setDonor(idDonor); inDonorShelter.setKindOfMeal(breakfast); inDonorShelter.setCategory(idCategory); inDonorShelter.setShelter(idShelter); myDonorShelterDao.SaveDonorShelter(inDonorShelter); }
[ "private void saveUnsyncedDonor() {\n LocalDonor ldonor = LocalDonor.convert(donor,realm);\n realm.beginTransaction();\n realm.copyToRealmOrUpdate(ldonor);\n realm.commitTransaction();\n Toast.makeText(this, \"Donor record save.\", Toast.LENGTH_LONG).show();\n finish();\n }", "public void donate(Donation donation){\n this.donationCollection.add(donation);\n }", "Owner addRestaurantToOwner(String restaurantId, Owner owner);", "private static void addDonor() \n {\n Donor temp = new Donor();\n temp.readIn();\n \n \n if(list.isMemberOf(temp))\n System.out.println(temp.getName() + \" is already in the list!\");\n \n list.add(temp);\n System.out.println(temp.getName() + \" was successfully added to the Donor list!\");\n \n }", "void saveDailyDebtsByUser(User user);", "public int getDonor() {\n return donor;\n }", "void saveDailyDebtsByAllUsers();", "void saveDeposit (DepositLog depositLog);", "Restaurant save(Restaurant restaurant, int userId);", "public void setDonor(Person person) {\n if(person instanceof Donor){\n this.donor = (Donor)person;\n }\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tgetSharedPreferences(\"FIRSTRUN\", MODE_PRIVATE)\n\t\t\t\t\t.edit()\n\t\t\t\t\t.putBoolean(\"agreedToDisclaimer\", true)\n\t\t\t\t\t.commit();\n\t\t\t\t\t\n\t\t\t\t}", "private static void displayDonorData() \n {\n System.out.println(\"Please enter the name of a Donor: \");\n String name = keyboard.nextLine().toUpperCase();\n Donor d = new Donor();\n \n d.setName(name);\n Element result = list.retrieveAnObject(d);\n \n \n if(!list.isMemberOf(new Donor(name)))\n System.out.println(name + \" was not in the set!\");\n else \n result.display();\n \n Donor temp = new Donor(name);\n \n \n }", "public void addDonation (Donation m){\n donations.add(m); \n }", "public Allergy saveAllergy(Allergy allergy);", "public void setIsDonor(boolean isDonor) {\n\t\tthis.isDonor = isDonor;\n\t}", "WishList save(final WishList wishList);", "public PropertyDonation(int donationId, int idOfDonor, String donDescription, double donAmt, String dateOfDonation, char deductible, char appraisal) {\r\n super(donationId, idOfDonor, donDescription, donAmt, dateOfDonation, deductible);\r\n appraisalPerformed=appraisal;\r\n }", "public void saveJpoMemberNycQualify(JpoMemberNycQualify jpoMemberNycQualify);", "public void makePurchase(Person person, Drink drink, int amount) {\n if(person == null || drink == null || amount <= 0) {\n System.err.println(\"Error: Invalid args for makePurchase()\");\n return;\n }\n\n String sql = \"insert into purchases (personid, drinkid, quantity) VALUES (?, ?, ?);\";\n\n if(! this.mysql.executeSQL(sql, person.getId(), drink.getId(), amount)) {\n System.err.println(\"Error, could not register purchase!\");\n } else {\n System.out.println(\"Success\");\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
adds animals to the cute Animals list
private void buildCuteAnimals() { cuteAnimalMemes.add("pupper"); cuteAnimalMemes.add("otter"); cuteAnimalMemes.add("kittie"); cuteAnimalMemes.add("FLOOFER"); }
[ "public static void addElementToAnimalCollection(List<? super Animal> animals) {\n animals.add(new Dog());\n animals.add(new Cat());\n animals.add(new Animal());\n }", "private void breedAnimals() {\n Map<Vector2d, IAnimalCollection> mapAnimals = engineMap.getAnimals();\n LinkedList<Animal> newAnimals = new LinkedList<>();\n\n for (IAnimalCollection animalCollection : mapAnimals.values()) {\n if (animalCollection.size() < 2)\n continue;\n\n LinkedList<Animal> parents = findParents(animalCollection);\n Animal stronger = parents.get(0);\n Animal weaker = parents.get(1);\n\n if (weaker.getEnergy() < worldSettings.startEnergy * 0.5)\n continue;\n\n Vector2d childPosition = findChildPosition(stronger);\n\n Animal child = new Animal(engineMap, childPosition,statTracker.getDayNumber(), stronger, weaker);\n animalTracker.newChildBorn(child,stronger,weaker);\n child.addDeathObserver(statTracker);\n\n newAnimals.add(child);\n }\n\n // add new animals to simulation\n for (Animal child : newAnimals) {\n engineMap.placeAnimal(child);\n statTracker.addGeneToCount(child.getGenotype());\n }\n animals.addAll(newAnimals);\n\n }", "public void addNewAnimal(Animal animal){\r\n for (Animal animalExist: liste ) {\r\n if (animalExist.getName().compareTo(animal.getName()) == 0) { return;}\r\n }\r\n liste.add(animal);\r\n }", "public void addAnimal(Animal a) {\r\n animalList.add(a);\r\n }", "public void addAnimal() {\n Animal animal = new Animal();\n animal = animal.newAnimal(animal);\n allAnimals.add(animal);\n System.out.println(\"Animal successfully added\");\n displayAnimalDetails(animal);\n }", "public void addAnimals() throws IOException {\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint a = 0;\n\t\tArrayList<GameObjects> animals = new ArrayList<GameObjects>();\n\t\tRandom rand = new Random();\n\t\twhile(b<bigFish) {\n\t\t\tanimals.add(new BigFish(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth/2))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\tb+=1;\n\t\t}\n\t\twhile(c<crab) {\n\t\t\tanimals.add(new Crab(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth - frameWidth/3))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\tc+=1;\n\t\t}\n\t\twhile(a<algae) {\n\t\t\tanimals.add(new Algae(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth - frameWidth/3))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\ta+=1;\n\t\t}\n\n\t\tanimals.add(new BigFish(frameWidth, frameHeight));\n\t\tanimals.add(new Crab(frameWidth, frameHeight));\n\t\tanimals.add(new Algae(frameWidth, frameHeight));\n\n\t\tthis.objects = animals;\n\t}", "private void initList(ArrayList<Animal> animalList) {\n animalList.add(new Animal(\"Lion\", R.drawable.lion, \"The lion (Panthera leo) is a species in the family Felidae and a member of the genus Panthera. It has a muscular, deep-chested body, short, rounded head, round ears, and a hairy tuft at the end of its tail. It is sexually dimorphic; adult male lions have a prominent mane. With a typical head-to-body length of 184–208 cm (72–82 in) they are larger than females at 160–184 cm (63–72 in). It is a social species, forming groups called prides. A lion pride consists of a few adult males, related females and cubs. Groups of female lions usually hunt together, preying mostly on large ungulates. The lion is an apex and keystone predator; although some lions scavenge when opportunities occur and have been known to hunt humans, the species typically does not.\"));\n animalList.add(new Animal(\"Bear\", R.drawable.bear, \"Bears are carnivoran mammals of the family Ursidae. They are classified as caniforms, or doglike carnivorans. Although only eight species of bears are extant, they are widespread, appearing in a wide variety of habitats throughout the Northern Hemisphere and partially in the Southern Hemisphere. Bears are found on the continents of North America, South America, Europe, and Asia. Common characteristics of modern bears include large bodies with stocky legs, long snouts, small rounded ears, shaggy hair, plant grade paws with five non retractile claws, and short tails. \"));\n animalList.add(new Animal(\"Cheetah\", R.drawable.cheetah, \"The cheetah (Acinonyx jubatus) is a large cat native to Africa and central Iran. It is the fastest land animal, capable of running at 80 to 128 km/h (50 to 80 mph), and as such has several adaptations for speed, including a light build, long thin legs and a long tail. Cheetahs typically reach 67–94 cm (26–37 in) at the shoulder, and the head-and-body length is between 1.1 and 1.5 m (3.6 and 4.9 ft). Adults typically weigh between 20 and 65 kg (44 and 143 lb). Its head is small, rounded, and has a short snout and black tear-like facial streaks. The coat is typically tawny to creamy white or pale buff and is mostly covered with evenly spaced, solid black spots. Four subspecies are recognised.\"));\n animalList.add(new Animal(\"Elephant\", R.drawable.elephant, \"Elephants are mammals of the family Elephantidae and the largest existing land animals. Three species are currently recognised: the African bush elephant, the African forest elephant, and the Asian elephant. Elephantidae is the only surviving family of the order Proboscidea; extinct members include the mastodons. The family Elephantidae also contains several now-extinct groups, including the mammoths and straight-tusked elephants. African elephants have larger ears and concave backs, whereas Asian elephants have smaller ears, and convex or level backs. Distinctive features of all elephants include a long trunk, tusks, large ear flaps, massive legs, and tough but sensitive skin. The trunk, also called a proboscis, is used for breathing, bringing food and water to the mouth, and grasping objects. Tusks, which are derived from the incisor teeth, serve both as weapons and as tools for moving objects and digging. The large ear flaps assist in maintaining a constant body temperature as well as in communication. The pillar-like legs carry their great weight.\"));\n animalList.add(new Animal(\"Panda\", R.drawable.panda, \"The giant panda (Ailuropoda melanoleuca; Chinese: 大熊猫; pinyin: dàxióngmāo), also known as the panda bear or simply the panda, is a bear[6] native to south central China.It is characterised by large, black patches around its eyes, over the ears, and across its round body. The name \\\"giant panda\\\" is sometimes used to distinguish it from the red panda, a neighboring musteloid. Though it belongs to the order Carnivora, the giant panda is a folivore, with bamboo shoots and leaves making up more than 99% of its diet. Giant pandas in the wild will occasionally eat other grasses, wild tubers, or even meat in the form of birds, rodents, or carrion. In captivity, they may receive honey, eggs, fish, yams, shrub leaves, oranges, or bananas along with specially prepared food.\"));\n animalList.add(new Animal(\"Wolf\", R.drawable.wolf, \"The wolf (Canis lupus), also known as the gray wolf or grey wolf, is a large canine native to Eurasia and North America. More than thirty subspecies of Canis lupus have been recognized, and gray wolves, as colloquially understood, comprise non-domestic/feral subspecies. The wolf is the largest extant member of Canidae, males averaging 40 kg (88 lb) and females 37 kg (82 lb). Wolves measure 105–160 cm (41–63 in) in length and 80–85 cm (31–33 in) at shoulder height. The wolf is also distinguished from other Canis species by its less pointed ears and muzzle, as well as a shorter torso and a longer tail. The wolf is nonetheless related closely enough to smaller Canis species, such as the coyote and the golden jackal, to produce fertile hybrids with them. The banded fur of a wolf is usually mottled white, brown, gray, and black, although subspecies in the arctic region may be nearly all white.\"));\n animalList.add(new Animal(\"Giraffe\", R.drawable.giraffe, \"The giraffe (Giraffa) is an African artiodactyl mammal, the tallest living terrestrial animal and the largest ruminant. It is traditionally considered to be one species, Giraffa camelopardalis, with nine subspecies. However, the existence of up to eight extant giraffe species has been described, based upon research into the mitochondrial and nuclear DNA, as well as morphological measurements of Giraffa. Seven other species are extinct, prehistoric species known from fossils. \"));\n animalList.add(new Animal(\"Gorilla\", R.drawable.gorila, \" Gorillas are ground-dwelling, predominantly herbivorous apes that inhabit the forest of central Sub-Saharan Africa. The genus Gorilla is divided into two species: the eastern gorillas and the western gorillas (both critically endangered), and either four or five subspecies. They are the largest living primates. The DNA of gorillas is highly similar to that of humans, from 95 to 99% depending on what is included, and they are the next closest living relatives to humans after the chimpanzees and bonobos.\"));\n animalList.add(new Animal(\"Tiger\", R.drawable.tiger, \"The tiger (Panthera tigris) is the largest extant cat species and a member of the genus Panthera. It is most recognisable for its dark vertical stripes on orange-brown fur with a lighter underside. It is an apex predator, primarily preying on ungulates such as deer and wild boar. It is territorial and generally a solitary but social predator, requiring large contiguous areas of habitat, which support its requirements for prey and rearing of its offspring. Tiger cubs stay with their mother for about two years, before they become independent and leave their mother's home range to establish their own.\"));\n //animalList.add(new Animal(\"Cheetah\", R.drawable.cheetah, \"Description coming soon\"));\n\n\n }", "public void addWildAnimal(WildAnimal animal) {\t\t\r\n\t\twildAnimalList.add(animal);\r\n\t}", "protected List<Animal> createCatsAndDogs() {\n \n List<Animal> tempAnimals = new ArrayList<Animal>();\n Date tempNow = new Date();\n \n tempAnimals.add(new Animal(AnimalType.DOG, \n new Date(tempNow.getTime() - 10*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.CAT, \n new Date(tempNow.getTime() - 9*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.CAT, \n new Date(tempNow.getTime() - 8*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.CAT, \n new Date(tempNow.getTime() - 7*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.CAT, \n new Date(tempNow.getTime() - 6*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.CAT, \n new Date(tempNow.getTime() - 3*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.DOG, \n tempNow));\n \n return tempAnimals;\n }", "private void takeAnimals(Animal[] animals) {\r\n for (Animal animal : animals) {\r\n animal.eat();\r\n }\r\n }", "private void addDog() {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tString numID = id.get(i);\n\t\t\tString name = names.get(i);\n\t\t\tString breed = breeds.get(i);\n\t\t\tString dateBirth = date.get(i+1);\n\t\t\tString img = dogImg.get(i);\n\t\t\t\t\t\t\n\t\t\t//Adding the dogs to the list\n\t\t\tlistOfDogs.add(new Dog(app, numID, name, breed, dateBirth, img));\n\t\t}\t\t\n\t}", "public void addAnimal(Animal animal) {\n adoptableAnimals.add(animal);\n }", "public ArrayList<String> createAnimals() {\n\t\tArrayList<String> myAnimals = new ArrayList<String>();\n\t\tmyAnimals.add(\"Elephant\");\n\t\tmyAnimals.add(\"Rhino\");\n\t\tmyAnimals.add(\"Lion\");\n\t\t\n\t\treturn myAnimals;\t\t\n\t}", "private void petAnimals() {\r\n System.out.println(); // This line is for cleaner formatting\r\n // You need to randomly select a Pettable animal and then pet it.\r\n int index = gen.nextInt(petIndex.length);\r\n while (petIndex[index] == false) {\r\n index = gen.nextInt(petIndex.length);\r\n }\r\n Animal a = zooAnimals[index];\r\n if (a instanceof Sheep) {\r\n ((Sheep) a).pet();\r\n } else if (a instanceof Pony) {\r\n ((Pony) a).pet();\r\n } else if (a instanceof Dolphin) {\r\n ((Dolphin) a).pet();\r\n }\r\n }", "public static void animalAdd(ArrayList<Animal> animalList)\r\n {\n animalList.add(getNewAnimal()); //Call method to collect a new animal, then add animal to arraylist\r\n System.out.println(\"\\nThe requested animal has been added.\"); // Notify user\r\n }", "public void createAnimals() {\n\t\tanimals = new Animal[noAnimals];\n\n\t\tfor (int i = 0; i < noAnimals; i++) {\n\t\t\tanimals[i] = new Animal(noAnimals);\n\t\t\tanimals[i].setDiffCo(diffCo[i]);\n\t\t\tanimals[i].setDiffusionRate(diffusionRate[i]);\n animals[i].initiateDensities(getIo().getNeighbours().length,getIo().getNeighbours()[0].length);\n\t\t}\n\t\n\t\t animals[0].setName(\"Hare\"); \n\t\t animals[1].setName(\"Puma\");\n\t}", "public void addAnimal() {\r\n System.out.println();\r\n System.out.print(\"\\tEnter the animal you would like to add: \");\r\n String givenAnimal = this.input.nextLine();\r\n \r\n if ((givenAnimal.equals(\"lion\")) || (givenAnimal.equals(\"wolf\")) \r\n \t|| (givenAnimal.equals(\"owl\")) || (givenAnimal.equals(\"parrot\"))) {\r\n this.listOfAnimals.add(Animal.getNewAnimal(givenAnimal));\r\n System.out.println(\"\\tYour animal was added to the collection.\");\r\n } else {\r\n System.out.println(\"\\tThat animal type cannot be added!\");\r\n }\r\n }", "public static void setDogList() {\n dogList = new ArrayList<>();\n for (int i = 0; i < 7; i++) {\n dogList.add(new Dog(i, names[i], ages[i], desc, photoIDs[i]));\n }\n }", "private void populatepets(){\r\n\t\tpets.add(new Cat(\"UnNamed\"));\r\n\t\tpets.add(new Cow(\"UnNamed\"));\r\n\t\tpets.add(new Dog(\"UnNamed\"));\r\n\t\tpets.add(new Rabbit(\"UnNamed\"));\r\n\t\tpets.add(new Rat(\"UnNamed\"));\r\n\t\tpets.add(new Velociraptor(\"UnNamed\"));\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CDAccount constructor Input: name of account holder, and PIN, and initial balance
public CDAccount( String name, String pin, double initial) { super(name, pin); deposit(initial); setRate(INTEREST_RATE); }
[ "public Account(Holder holder, int balance) {\n this.holder = holder;\n this.balance = balance;\n }", "public BankAccount(int accountNum, String customerName, double balance){\n this.accountNum = accountNum;\n this.customerName = customerName;\n this.balance = balance;\n }", "public Account (String accountId) {\n this.address = accountId;\n\n // 'master' account gets all currency, otherwise init to 0\n this.balance = (accountId == \"master\") ? MAX_ACCOUNT_BALANCE : 0;\n }", "public CurrentAccount(String aHolder, String aNumber, \n double aBalance, double aLimit, String aPin)\n {\n super(aHolder, aNumber, aBalance);\n this.creditLimit = aLimit;\n this.pinNum = aPin;\n }", "public BankAccount(double startBalance) {\n\t\tbalance = startBalance;\n\t}", "public Account(double initialBalance)\r\n\t{\r\n\t\t// modify the account balance if the value of the variable \"initialBalance\" is greater than 0; otherwise, the account balance remains 0\r\n\t\tif (initialBalance > 0)\r\n\t \tbalance = initialBalance; \r\n\t}", "public Account(double initBal, String owner, int _number) {\r\n\tbalance = initBal;\r\n\tname = owner;\r\n\tnumber = _number;\r\n\taccounts += 1;\r\n }", "public Account(String address) {\n this.address = address;\n this.balance = 0;\n }", "public BankAccount() {\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6); \n\t\tthis.accountType = \"Bank Account\";\n\t\tthis.balance = 0.0;\n\t}", "public BonusAccount(int initial_balance, int bonus) {\n super(initial_balance);\n this.bonus = bonus;\n }", "public BankAccount(String accountHolderName, String accountNumber, String routingNumber){\n this.mAccountHolderName = accountHolderName;\n this.mAccountNumber = accountNumber;\n this.mRoutingNumber = routingNumber;\n balance = BigDecimal.ZERO;\n }", "public TransactionAccount(double initialAmount, String id)\r\n {\r\n super(initialAmount, id); \r\n }", "public Account(int id, double initialBalance){\n\t\tthis.id = id;\n\t\tbalance = initialBalance;\n\t\tdateCreated = new Date();\n\t}", "public CardBalance(Integer dollar, Integer cent) {\n this.dollar = dollar;\n this.cent = cent;\n }", "public Account(String firstName, String lastName, double balance) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.balance = balance;\n }", "public CurrentAccount()\n {\n super();\n this.creditLimit = 0.0;\n this.pinNum = \"0000\";\n }", "public SavingsAccount(double balance)\n {\n startingBalance = balance;\n }", "public BankAccount(Customer customer, double balance) {\r\n this.customer = customer;\r\n this.balance = balance;\r\n this.accountNumber = counter + 1;\r\n }", "public Account(int startingMoney) {\n amountOfMoney = startingMoney;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a binding representing the current call's state but with the specified visibility, scope, and self. For sharedscope binding consumers like for loops.
public Binding currentBinding(IRubyObject self, Visibility visibility, DynamicScope scope) { Frame frame = getCurrentFrame(); return new Binding(self, frame, visibility, getRubyClass(), scope, backtrace[backtraceIndex].clone()); }
[ "public Binding currentBinding(IRubyObject self, Visibility visibility) {\n Frame frame = getCurrentFrame();\n return new Binding(self, frame, visibility, getRubyClass(), getCurrentScope(), backtrace[backtraceIndex].clone());\n }", "public Binding currentBinding(IRubyObject self, DynamicScope scope) {\n Frame frame = getCurrentFrame();\n return new Binding(self, frame, frame.getVisibility(), getRubyClass(), scope, backtrace[backtraceIndex].clone());\n }", "public Binding currentBinding() {\n Frame frame = getCurrentFrame();\n return new Binding(frame, getRubyClass(), getCurrentScope(), backtrace[backtraceIndex].clone());\n }", "public Bindings getBindings(int scope);", "public Binding currentBinding(IRubyObject self) {\n Frame frame = getCurrentFrame();\n return new Binding(self, frame, frame.getVisibility(), getRubyClass(), getCurrentScope(), backtrace[backtraceIndex].clone());\n }", "public VarBindingDef getBinding()\n {\n return binding_;\n }", "public void setBindings(Bindings bindings, int scope);", "public QueryExecutionInfoFormatter showBindings() {\n this.consumers.add(this.onBindings);\n return new QueryExecutionInfoFormatter(this);\n }", "public ActiveDescriptorBuilder proxyForSameScope();", "public boolean isBindToScope() {\n return bindToScope;\n }", "public ActiveDescriptorBuilder visibility(DescriptorVisibility visibility);", "public BindState(Set<AccessPath> globalVariableNames) {\n this.stateOnLastFunctionCall = null;\n this.globalDefs =\n addVariables(PathCopyingPersistentTree.<String, BindingPoint>of(), globalVariableNames);\n this.localDefs = new PathCopyingPersistentTree<>();\n }", "Binding<T> shared();", "Binding getBinding();", "public void bindCurrent(LocalBinding binding) {\n // default: no action\n }", "Scope createScope();", "public Binding createBinding();", "public Binding previousBinding(IRubyObject self) {\n Frame frame = getPreviousFrame();\n return new Binding(self, frame, frame.getVisibility(), getPreviousRubyClass(), getCurrentScope(), backtrace[backtraceIndex].clone());\n }", "Binding createBinding();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Destory a gameobject in the scene
public final void Destroy(GameObject obj){ _objects.remove(obj); obj.Destroy(); }
[ "public void destroy()\n {\n GeneticRobots.rmCollider(this.collider);\n GeneticRobots.rmObject(this);\n }", "public void removeGameObjectToScene(GameObject gameObject)\n\t{\n\t\t_node.detachChildNamed(gameObject.getGeometry().getName());\n\t}", "public void removeGameObj(GameObject obj){\n display.getChildren().remove(obj.getDisplay());\n }", "public void destroyScene() {\n\t\t\n\t\tthis.game = null;\n\t\tassert(this.game == null):(\"Game must be null to destroy the scene\");\n\t\t\n\t\tthis.keyboard = null;\n\t\tassert(this.keyboard == null):(\"Keyboard must be null to destory the scene\");\n\t}", "void destroy() {\n\t\tdespawnHitbox();\n\t\tinventory.clear();\n\t\texperience = 0;\n\t\tinvalid = true;\n\t}", "public void deleteObject(GameObject object) {\n\t\totherObjects.remove(object);\n\t\tobject.destroy();\n\t}", "public void destroy() {\r\n\t\ttexture.destroy();\r\n\t}", "public void removerGameObject(GameObject entidad)\r\n\t{\r\n\t\tthis.gameObjects.remove(entidad);\r\n\t}", "public void destroy() {\n\t\tgraphic.destroy();\n\t\tisAlive = false;\n\n\t}", "private void removeObject() {\n\t\tif(this.curr_obj != null) {\n this.canvas.uRemove(this.curr_obj);\n\t\t\tthis.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n\n this.curr_obj = null;\n }\n\t}", "public void destroyActor() {\n this.remove();\n }", "@Override\n\tpublic void destroy() {\n\t\tfor (GameObject go : World.getObjects()) {\n\t\t\tgo.destroy();\n\t\t}\n\n\t}", "public boolean removeObject(GameObject obj);", "public void Unload() {\n\t\tsceneLoaded = false;\n\t\tfor (GameObject gO : gameObjects) {\n\t\t\tEngine.Instance.RemoveObject(gO);\n\t\t}\n\t\tEngine.Instance.currentScenes.remove(this);\n\t}", "public void destroy() {\n power = 0;\n representation.delete();\n destroyed = true;\n }", "public void destroy(){\n super.destroy();\n if(body != null){\n body.getWorld().destroyBody(body);\n body = null;\n }\n }", "public void destroy(){\n // remove the card from player's board\n int sidx = this.owner.getSkillBoard().indexOf(this.getSkillCardInstance());\n this.owner.getSkillBoard().set(sidx, NullCardHandler.getNullSkillCard());\n target.removeSkill(this.getSkillCardInstance());\n int cidx = target.owner.getBoard().indexOf(this);\n target.owner.getBoard().set(cidx, target);\n target.destroy();\n }", "public void removeGameObject(String gameObjectID) {\n gameObjects.remove(gameObjectID);\n }", "public void clearGameObjects() {\n gameObjects.clear();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'CAN_EDIT_IND' field.
public org.LNDCDC_ADS_PRPSL.PROPOSAL_LINE.apache.nifi.LNDCDC_ADS_PRPSL_PROPOSAL_LINE.Builder clearCANEDITIND() { CAN_EDIT_IND = null; fieldSetFlags()[16] = false; return this; }
[ "public void setCANEDITIND(java.lang.Long value) {\n this.CAN_EDIT_IND = value;\n }", "public org.LNDCDC_ADS_PRPSL.PROPOSAL_LINE.apache.nifi.LNDCDC_ADS_PRPSL_PROPOSAL_LINE.Builder setCANEDITIND(java.lang.Long value) {\n validate(fields()[16], value);\n this.CAN_EDIT_IND = value;\n fieldSetFlags()[16] = true;\n return this;\n }", "public java.lang.Long getCANEDITIND() {\n return CAN_EDIT_IND;\n }", "public java.lang.Long getCANEDITIND() {\n return CAN_EDIT_IND;\n }", "public void clearEditMode()\n\t{\n\t\tpromptTarget = \"\";\n\t\tpromptType = \"\";\n\t\tcs = lastCs;\n\t}", "public boolean hasCANEDITIND() {\n return fieldSetFlags()[16];\n }", "public void disableEdit(){\n this.editControl = null;\n this.map_view.setEditShape(null);\n \n }", "public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder clearACTUALIZEDIND() {\n ACTUALIZED_IND = null;\n fieldSetFlags()[26] = false;\n return this;\n }", "private void clearEditActionPerformed(java.awt.event.ActionEvent evt) {\n \n }", "public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder clearVALIDSHOWIND() {\n VALID_SHOW_IND = null;\n fieldSetFlags()[33] = false;\n return this;\n }", "public void cancelEdit() {\n cancelEdit(false);\n }", "private void clearCreditCardFields() {\r\n\t\tmCardNoValue1.setText(\"\");\r\n\t\tmCardNoValue1.setHint(\"-\");\r\n\t\tmCardNoValue2.setText(\"\");\r\n\t\tmCardNoValue2.setHint(\"-\");\r\n\t\tmCardNoValue3.setText(\"\");\r\n\t\tmCardNoValue3.setHint(\"-\");\r\n\t\tmCardNoValue4.setText(\"\");\r\n\t\tmCardNoValue4.setHint(\"-\");\r\n\t\tmCardNoValue1.requestFocus();\r\n\t}", "public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder clearPOSTDELIVEDIT() {\n POST_DELIV_EDIT = null;\n fieldSetFlags()[22] = false;\n return this;\n }", "protected void exitEditMode(){\n editName.setEnabled(false);\n editEmail.setEnabled(false);\n saveButton.setVisibility(View.INVISIBLE);\n }", "private void btClearActionPerformed(java.awt.event.ActionEvent evt) {\n if(tbphieuphat.isEnabled())\n txMaPM.setText(\"\");\n /*if(EditOrSearch==0){\n tf.setText(\"\");\n txSoLuongMax.setText(\"\");\n txDonGiaMax.setText(\"\");\n }*/\n txMaPM.setText(\"\");\n txTongTien.setText(\"\");\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder clearADDRESSIND() {\n ADDRESS_IND = null;\n fieldSetFlags()[8] = false;\n return this;\n }", "public void setNEditType(int value) {\r\n this.nEditType = value;\r\n }", "private void clear() {\n\t\ttxtId.setText(\"\");\n\t\ttxtAlert.setText(\"\");\n\t\ttxtNbMax.setText(\"\");\n\t\t\n\t}", "public void setEditFlag(int editFlag) {\r\n this.editFlag = editFlag;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Backup all tables to CSV files, one per table
public boolean backupAllTablesToCsv(Context ctx, SQLiteDatabase db, String suffix) { boolean allSucceeded = true; for (TableHelper table : getTableHelpers()) { allSucceeded &= table.backup(db, ctx, suffix); } return allSucceeded; }
[ "private void backup() throws IOException {\n long startTime = System.currentTimeMillis();\n\n this.backupTempDirPath = Files.createTempDirectory(BACKUP_TEMP_DIR_PREFIX).toString();\n Map<UUID, String> streamIdToTableNameMap = getStreamIdToTableNameMap();\n for (UUID streamId : streamsToBackUp) {\n // temporary backup file's name format: uuid.namespace$tableName\n Path filePath = Paths.get(backupTempDirPath)\n .resolve(streamId + \".\" + streamIdToTableNameMap.get(streamId));\n backupTable(filePath, streamId);\n }\n long elapsedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"successfully backed up {} tables to {} directory, elapsed time {}ms\",\n streamsToBackUp.size(), backupTempDirPath, elapsedTime);\n }", "private void exportToCSV() {\n\t\tint noCSVFiles = csvFilesPerTable();\n\t\tprepareDirectory();\n\t\tint lowerLimit = 0;\n System.out.println(\"Creating \" + noCSVFiles + \" CSV files for [ \" + tableName + \" ]\");\n for (int i = 0; i < noCSVFiles; i++) {\n\t\t\tFile file = new File(this.migrationFolder + \"\\\\\" + tableName,\n\t\t\t\t\ttableName + i + \".csv\");\n\t\t\ttry {\n System.out.println(\"Processing export for [ \" + tableName + \" ] - \" + (i + 1) + \"/\" + noCSVFiles + \" CSV files\");\n\t\t\t\tif (file.createNewFile()) {\n PrintWriter pw = new PrintWriter(file);\n String fileContentsToWrite = getFileContentToWrite(lowerLimit);\n pw.write(fileContentsToWrite);\n pw.flush();\n pw.close();\n lowerLimit = lowerLimit + fetchSize;\n } else {\n System.out.println(\"Could not create file: \" + file.getAbsolutePath());\n }\n\t\t\t} catch (IOException e2) {\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void backupAll() throws Exception {\n // create DataSet from database.\n IDataSet ds = conn.createDataSet();\n\n // write the content of database to temp file\n FlatXmlDataSet.write(ds, new FileWriter(backupFile), \"UTF-8\");\n }", "public void dumpTables() {\r\n logger.info(\"Dumping tableListing\");\r\n int idx = 0;\r\n for (String tableName : tableListing) {\r\n logger.info(\"Index: \" + Integer.toString(++idx) + \" \" + tableName);\r\n }\r\n return;\r\n }", "public String exportAllTables() throws IOException {\n return exportAllTables(Collections.emptySet());\n }", "@Test\n public void testBackupMultipleDeletes() throws Exception {\n TestBackupMultipleDeletes.LOG.info(\"create full backup image for all tables\");\n List<TableName> tables = Lists.newArrayList(TestBackupBase.table1, TestBackupBase.table2);\n HBaseAdmin admin = null;\n Connection conn = ConnectionFactory.createConnection(TestBackupBase.conf1);\n admin = ((HBaseAdmin) (conn.getAdmin()));\n BackupAdmin client = new org.apache.hadoop.hbase.backup.impl.BackupAdminImpl(conn);\n BackupRequest request = createBackupRequest(FULL, tables, TestBackupBase.BACKUP_ROOT_DIR);\n String backupIdFull = client.backupTables(request);\n Assert.assertTrue(checkSucceeded(backupIdFull));\n // #2 - insert some data to table table1\n HTable t1 = ((HTable) (conn.getTable(TestBackupBase.table1)));\n Put p1;\n for (int i = 0; i < (TestBackupBase.NB_ROWS_IN_BATCH); i++) {\n p1 = new Put(Bytes.toBytes((\"row-t1\" + i)));\n p1.addColumn(TestBackupBase.famName, TestBackupBase.qualName, Bytes.toBytes((\"val\" + i)));\n t1.put(p1);\n }\n Assert.assertEquals(TestBackupBase.TEST_UTIL.countRows(t1), ((TestBackupBase.NB_ROWS_IN_BATCH) * 2));\n t1.close();\n // #3 - incremental backup for table1\n tables = Lists.newArrayList(TestBackupBase.table1);\n request = createBackupRequest(INCREMENTAL, tables, TestBackupBase.BACKUP_ROOT_DIR);\n String backupIdInc1 = client.backupTables(request);\n Assert.assertTrue(checkSucceeded(backupIdInc1));\n // #4 - insert some data to table table2\n HTable t2 = ((HTable) (conn.getTable(TestBackupBase.table2)));\n Put p2 = null;\n for (int i = 0; i < (TestBackupBase.NB_ROWS_IN_BATCH); i++) {\n p2 = new Put(Bytes.toBytes((\"row-t2\" + i)));\n p2.addColumn(TestBackupBase.famName, TestBackupBase.qualName, Bytes.toBytes((\"val\" + i)));\n t2.put(p2);\n }\n // #5 - incremental backup for table1, table2\n tables = Lists.newArrayList(TestBackupBase.table1, TestBackupBase.table2);\n request = createBackupRequest(INCREMENTAL, tables, TestBackupBase.BACKUP_ROOT_DIR);\n String backupIdInc2 = client.backupTables(request);\n Assert.assertTrue(checkSucceeded(backupIdInc2));\n // #6 - insert some data to table table1\n t1 = ((HTable) (conn.getTable(TestBackupBase.table1)));\n for (int i = TestBackupBase.NB_ROWS_IN_BATCH; i < (2 * (TestBackupBase.NB_ROWS_IN_BATCH)); i++) {\n p1 = new Put(Bytes.toBytes((\"row-t1\" + i)));\n p1.addColumn(TestBackupBase.famName, TestBackupBase.qualName, Bytes.toBytes((\"val\" + i)));\n t1.put(p1);\n }\n // #7 - incremental backup for table1\n tables = Lists.newArrayList(TestBackupBase.table1);\n request = createBackupRequest(INCREMENTAL, tables, TestBackupBase.BACKUP_ROOT_DIR);\n String backupIdInc3 = client.backupTables(request);\n Assert.assertTrue(checkSucceeded(backupIdInc3));\n // #8 - insert some data to table table2\n t2 = ((HTable) (conn.getTable(TestBackupBase.table2)));\n for (int i = TestBackupBase.NB_ROWS_IN_BATCH; i < (2 * (TestBackupBase.NB_ROWS_IN_BATCH)); i++) {\n p2 = new Put(Bytes.toBytes((\"row-t1\" + i)));\n p2.addColumn(TestBackupBase.famName, TestBackupBase.qualName, Bytes.toBytes((\"val\" + i)));\n t2.put(p2);\n }\n // #9 - incremental backup for table1, table2\n tables = Lists.newArrayList(TestBackupBase.table1, TestBackupBase.table2);\n request = createBackupRequest(INCREMENTAL, tables, TestBackupBase.BACKUP_ROOT_DIR);\n String backupIdInc4 = client.backupTables(request);\n Assert.assertTrue(checkSucceeded(backupIdInc4));\n // #10 full backup for table3\n tables = Lists.newArrayList(TestBackupBase.table3);\n request = createBackupRequest(FULL, tables, TestBackupBase.BACKUP_ROOT_DIR);\n String backupIdFull2 = client.backupTables(request);\n Assert.assertTrue(checkSucceeded(backupIdFull2));\n // #11 - incremental backup for table3\n tables = Lists.newArrayList(TestBackupBase.table3);\n request = createBackupRequest(INCREMENTAL, tables, TestBackupBase.BACKUP_ROOT_DIR);\n String backupIdInc5 = client.backupTables(request);\n Assert.assertTrue(checkSucceeded(backupIdInc5));\n TestBackupMultipleDeletes.LOG.error(\"Delete backupIdInc2\");\n client.deleteBackups(new String[]{ backupIdInc2 });\n TestBackupMultipleDeletes.LOG.error(\"Delete backupIdInc2 done\");\n List<BackupInfo> list = client.getHistory(100);\n // First check number of backup images before and after\n Assert.assertEquals(4, list.size());\n // then verify that no backupIdInc2,3,4\n Set<String> ids = new HashSet<String>();\n ids.add(backupIdInc2);\n ids.add(backupIdInc3);\n ids.add(backupIdInc4);\n for (BackupInfo info : list) {\n String backupId = info.getBackupId();\n if (ids.contains(backupId)) {\n Assert.assertTrue(false);\n }\n }\n // Verify that backupInc5 contains only table3\n boolean found = false;\n for (BackupInfo info : list) {\n String backupId = info.getBackupId();\n if (backupId.equals(backupIdInc5)) {\n Assert.assertTrue(((info.getTables().size()) == 1));\n Assert.assertEquals(TestBackupBase.table3, info.getTableNames().get(0));\n found = true;\n }\n }\n Assert.assertTrue(found);\n admin.close();\n conn.close();\n }", "private void copyData(CopyTable table) throws Exception\n\t{\n\t\tLOG.info(\"Starting with copy of data from '\" + table.getDescription() + \"' to disk...\");\n\t\t\n\t\t// select data from source database\n\t\tStatement selectStmt =\n\t\t\tCopyToolConnectionManager.getInstance().getSourceConnection(table.getSource()).createStatement();\n\n\t\t// get number of rows in table\n\t\tResultSet resultSet =\n\t\t\tselectStmt.executeQuery(table.generateCountQuery());\n\t\tresultSet.next();\n\t\t\n\t\tlong rowCount = resultSet.getLong(1);\n\t\tLOG.info(\"Found \" + rowCount + \" rows in '\" + table.getDescription() + \"'\");\n\t\t\n\t\tresultSet.close();\n\t\t\n\t\t// get all data from table\n\t\tresultSet = selectStmt.executeQuery(table.generateSelectQuery());\n\n\t\t// get meta data (column info and such)\n\t\tResultSetMetaData metaData = resultSet.getMetaData();\n\t\t\n\t\tString tmpDir = config.getTempDirectory();\n\t\t\n\t\tString tmpFilePrefix = table.getTempFilePrefix();\n\t\t\n\t\t// serialize meta data to disk\n\t\tFile metaDataFile = new File(tmpDir, tmpFilePrefix + \"_metadata.ser\");\n\t\tFileOutputStream fileOut = new FileOutputStream(metaDataFile);\n\t\tObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t\tout.writeObject(new SerializableResultSetMetaData(metaData));\n\t\tout.close();\n\t\tfileOut.close();\n\t\tLOG.info(\"Serialized metadata to temp file: \" + metaDataFile.getAbsolutePath());\n\t\n\t\t\n\t\tif (rowCount == 0)\n\t\t{\n\t\t\twriteInsertCountFile(tmpDir, tmpFilePrefix, 0L);\n\t\t\tLOG.info(\"Finished copying data of '{}' to disk (no data to copy)\", table.getDescription());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// write data to disk\n\t\tFile temp = new File(tmpDir, tmpFilePrefix + \"_data.csv\");\t\t\n\t\tLOG.info(\"Writing data to temp file: \" + temp.getAbsolutePath());\n\t\t\n\t\tBufferedWriter bw = new BufferedWriter\n\t\t\t (new OutputStreamWriter(new FileOutputStream(temp), \"UTF-8\"));\n\n\t\tlong startTime = System.currentTimeMillis();\n\t\tlong insertCount = 0;\n\t\tint columnCount = metaData.getColumnCount();\n\t\t\n\t\twhile (resultSet.next())\n\t\t{\n\t\t\tfor (int i = 1; i <= columnCount; i++)\n\t\t\t{\n\t\t\t\tObject value = resultSet.getObject(i);\n\n\t\t\t\tif (value == null)\n\t\t\t\t{\n\t\t\t\t\tbw.write(NULL_VALUE);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString valueStr;\n\t\t\t\t\tif (value instanceof BigDecimal)\n\t\t\t\t\t{\n\t\t\t\t\t\tvalueStr = ((BigDecimal)value).toPlainString();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tvalueStr = value.toString();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (table.isAutoTrim())\n\t\t\t\t\t\tvalueStr = valueStr.trim();\n\n\t\t\t\t\t// escape \\ with \\\\\n\t\t\t\t\tvalueStr = valueStr.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\");\n\n\t\t\t\t\t// escape \" with \\\"\n\t\t\t\t\tvalueStr = valueStr.replaceAll(\"\\\"\", \"\\\\\\\\\\\"\");\n\t\t\t\t\t\n\t\t\t\t\tbw.write(\"\\\"\" + valueStr + \"\\\"\");\n\t\t\t\t}\t\t\t\n\n\t\t\t\t// column separator (not for last column)\n\t\t\t\tif (i < columnCount)\n\t\t\t\t{\n\t\t\t\t\tbw.write(\",\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// record separator\n\t\t\tbw.newLine();\n\n\t\t\tinsertCount++;\n\n\t\t\tif (insertCount % 100000 == 0)\n\t\t\t{\n\t\t\t\tbw.flush();\n\t\t\t\tprintInsertProgress(startTime, insertCount, rowCount, \"written to disk\");\n\t\t\t}\n\t\t}\n\t\tbw.flush();\n\t\tbw.close();\n\t\tprintInsertProgress(startTime, insertCount, rowCount, \"written to disk\");\n\t\t\n\t\twriteInsertCountFile(tmpDir, tmpFilePrefix, insertCount);\n\t\t\n\t\tLOG.info(\"Finished copying data of '\" + table.getDescription() + \"' to disk!\");\n\t}", "public void export(String dataFileDir) throws Exception {\n // full database set, we can get all table names from this set\n DatabaseDataSet fullDataSet = new DatabaseDataSet(dbConnection, true);\n ITableIterator tableIt = fullDataSet.iterator();\n while (tableIt.next()) {\n ITable table = tableIt.getTable();\n if (table.getRowCount() > 0) {\n String tableName = table.getTableMetaData().getTableName();\n String dataFileName = dataFileDir + tableName + \".xml\";\n // write a single data file per table\n QueryDataSet partialDataSet = new QueryDataSet(dbConnection);\n partialDataSet.addTable(tableName);\n FlatXmlDataSet.write(partialDataSet, new FileOutputStream(dataFileName));\n logger.info(\"Write table '\" + tableName + \"' to data file(\" + dataFileName + \") successfully.\");\n }\n }\n logger.info(\"Export database successfully.\");\n dbConnection.close();\n }", "public void writeDatabaseToArchive() throws IOException {\n List<Table<?>> tables = listTables();\n if (tables != null) {\n tables.forEach(table -> Exceptions.toRuntime(() -> writeTableToArchive(table)));\n }\n LOGGER.debug(\"Successful export of airbyte database\");\n }", "public void exportMostRecentDataVersionsAsCSV(String tableName) {\n CachedRowSet crs = dbTools.getAllColumnsWithoutMetadataAsResultSet(tableName);\n dbTools.exportResultSetAsCSV(crs, this.getRepositoryPath() + \"/\" + this.getRepositoryPath());\n }", "public void exportTableToCsv() {\n\n }", "void writeCsv(Table table, String file_name, Database d) {\n File f = new File(d.getName() + \"/\" + file_name);\n FileWriter out = null;\n\n try {\n out = new FileWriter(f);\n\n writeFields(table.selectFieldNames(), out);\n for (ArrayList<String> key : table.getKeys()) {\n writeFields(table.selectRecord(key), out);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (out != null) try { out.close(); } catch (IOException ignore) {}\n }\n }", "public void restoreAllTablesFromCsv(Context ctx, SQLiteDatabase db, String suffix) {\n\t\tfor (TableHelper table : getTableHelpers()) {\n\t\t\ttable.restore(db, ctx, suffix);\n\t\t}\n\t}", "public void export() {\n CoreDao dao = new CoreDao(DaoConfig.forDatabase(dbName));\n for (String sql : createSqls) {\n try {\n dao.executeSQLUpdate(sql);\n } catch (RuntimeException e) {\n e.printStackTrace();\n // Ignore\n }\n }\n }", "public void backupDB() {\r\n // From https://www.baeldung.com/java-copy-file\r\n try (\r\n InputStream in = new BufferedInputStream(\r\n new FileInputStream(DB_FILENAME));\r\n OutputStream out = new BufferedOutputStream(\r\n new FileOutputStream(BACKUP_FILENAME))) {\r\n\r\n byte[] buffer = new byte[1024];\r\n int lengthRead;\r\n while ((lengthRead = in.read(buffer)) > 0) {\r\n out.write(buffer, 0, lengthRead);\r\n out.flush();\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Nullable\n public String exportAllTables(\n @NonNull final Writer writer,\n @NonNull final Set<String> excludeTables) throws IOException {\n final Instant beginInstant = Instant.now();\n log.info(\"Full data export begins at {}\", beginInstant);\n log.info(\"Querying tables...\");\n final List<String> tables = jdbcTemplate.queryForList(\n properties.sqlSelectTableNames(), String.class);\n log.info(\"Query table complete, {} tables found.\", tables.size());\n final String s = exportTables(writer, tables, excludeTables);\n\n log.info(\"Full data export completed at {}, took {} ms\",\n Instant.now(), System.currentTimeMillis() - beginInstant.toEpochMilli());\n return s;\n }", "public String exportAllTables(final Set<String> excludeTables) throws IOException {\n final StringBuilderWriter writer = new StringBuilderWriter();\n final String clobToBlobFnName = exportAllTables(writer, excludeTables);\n if (clobToBlobFnName != null) {\n return OracleClobToBlob.getFunc(clobToBlobFnName) +\n writer.toString() +\n OracleClobToBlob.getDropFunc(clobToBlobFnName);\n }\n return writer.toString();\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void migrateDataByBatch() {\n\t\tpool = new HTablePool(conf, 1024);\n\t\tSQLExporter sqlExporter = \n\t\t\tnew SQLExporter(url, username, password, catalog);\n\t\twhile(sqlExporter.hasNextDataTable()) {\n\t\t\tEntry entry = sqlExporter.next();\n\t\t\tString tableName = REGION + \".\" + (String) entry.getKey();\n\t\t\tList<Map<String, Object>> list = (List<Map<String, Object>>) entry.getValue();\n\t\t\t/**\n\t\t\t * table to migrate data.\n\t\t\t */\n\t\t\tHTable table = (HTable) pool.getTable(tableName);\n\t\t\t\n\t\t\t/**\n\t\t\t * set write buffer size.\n\t\t\t */\n\t\t\ttry {\n\t\t\t\ttable.setWriteBufferSize(WRITE_BUFFER_SIZE);\n\t\t\t\ttable.setAutoFlush(false);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tint counter = 0;\n\t\t\tList<Put> puts = new ArrayList<Put>();\n\t\t\tint size = list.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\n\t\t\t\tPut put = new Put((new Integer(i)).toString().getBytes());\n\t\t\t\t\n\t\t\t\tMap<String, Object> map = list.get(i);\n\t\t\t\tcounter ++;\n\t\t\t\t/**\n\t\t\t\t * add one row to be put.\n\t\t\t\t */\n\t\t\t\tfor (Map.Entry<String, Object> m : map.entrySet()) {\t\n\t\t\t\t\tput.add(FAMILY.getBytes(), m.getKey().getBytes(), \n\t\t\t\t\t\t\tm.getValue().toString().getBytes());\t\n\t\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * add `put` to list puts. \n\t\t\t\t */\n\t\t\t\tputs.add(put);\n\t\t\t\t\n\t\t\t\tif ((counter % LIST_PUTS_COUNTER == 0) || (i == size - 1)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttable.put(puts);\n\t\t\t\t\t\ttable.flushCommits();\n\t\t\t\t\t\tputs.clear();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else continue;\n\t\t\t}\n\t\t}\n\t}", "void exportToAJP(JTable tableToExport, String tabName, String pathToExportTo) throws IOException \n {\n BufferedWriter out;//defines a writer\n TableModel model = tableToExport.getModel();\n \n CodeSource codeSource = ExportToAJP.class.getProtectionDomain().getCodeSource();\n File jarFile = new File(URLDecoder.decode(codeSource.getLocation().getPath(), \"UTF-8\"));\n pathToExportTo = jarFile.getParentFile().getPath();\n //creates new save in the install dir/saves folder\n out = new BufferedWriter(new FileWriter(pathToExportTo+\"\\\\saves\\\\\"+tabName+\".ajp\"));\n \n try \n { //writes the tabled headers to the .ajp\n for(int i=0; i < model.getColumnCount(); i++) {\n if (i!=model.getColumnCount()-1)\n out.write(model.getColumnName(i) + \",\");\n else\n out.write(model.getColumnName(i));\n }\n out.write(\"\\n\");//new line\n //cycles each cell after the headers and writes to the csv file\n for(int i=0; i< model.getRowCount(); i++) {\n for(int j=0; j < model.getColumnCount(); j++) {\n if (model.getValueAt(i,j)!= null)//checks for empty cell\n {\n if (j!=model.getColumnCount()-1)\n out.write(model.getValueAt(i,j).toString()+\",\");\n else\n out.write(model.getValueAt(i,j).toString());\n }\n else if (j!=model.getColumnCount()-1)\n out.write(\",\");\n }\n out.write(\"\\n\");\n }\n } catch (IOException e) {}\n finally //checks if the writter worked\n {\n try {\n if(out != null){\n out.close();//closes file for deletion and other manipulation\n } else {\n System.out.println(\"Buffer has not been initialized!\");\n }\n } catch (IOException e) {}\n }\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the identifier of the "Ente".
public void setIdEnte(int idEnte) { this.id = idEnte; }
[ "public abstract void setEspe_id(java.lang.Integer newEspe_id);", "public void setIdentificadorOde(java.lang.String identificadorOde);", "public void setIdentificador(java.lang.String identificador);", "void setIdAgente(int idAgente);", "public void seteId(Integer eId) {\n this.eId = eId;\n }", "public void setHT_ArticleOfEndowment_ID (int HT_ArticleOfEndowment_ID);", "public void setIdent(String ident)\n {\n String xpath = \"section\";\n List list = this.selectNodes(xpath);\n if (list.size() > 0)\n {\n Element element = (Element) list.get(0);\n element.setAttribute(\"ident\", ident);\n }\n }", "public void setEpId(Number value) {\n setAttributeInternal(EPID, value);\n }", "@Test\n\tpublic void testSetIdentifier_1()\n\t\tthrows Exception {\n\t\tModelElementImpl fixture = ModelElementImplFactory.createModelElementImpl11();\n\t\tString newIdentifier = \"\";\n\n\t\tfixture.setIdentifier(newIdentifier);\n\n\t\t\n\t}", "public void setEdukiera(long edukiera);", "public final void setId_etudiant(final Long id_etudiant) {\n this.id_etudiant = id_etudiant;\n }", "@Override\n\tpublic void setEtinia(int etinia) {\n\t\t_modelo.setEtinia(etinia);\n\t}", "@Test\n\tpublic void testSetIdentifier_2()\n\t\tthrows Exception {\n\t\tModelElementImpl fixture = ModelElementImplFactory.createModelElementImpl12();\n\t\tString newIdentifier = \"\";\n\n\t\tfixture.setIdentifier(newIdentifier);\n\n\t\t\n\t}", "public void setEeiid(Long eeiid) {\n this.eeiid = eeiid;\n }", "public void setIdentifier(final Identifier identifier) {\n getAttributes().getIdentifierAttribute(ATTR_IDENTIFIER_NAME).setValue(identifier);\n }", "public void setIdentifier() {\n try {\n put(JsonMessage.IDENTIFIER, PlayerMessageContract.INTERRUPT);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public void setId_sede(int id_sede) {\n this.id_sede = id_sede;\n }", "public abstract void setTica_id(java.lang.String newTica_id);", "public void setEnterprise(String enterprise) {\n setEnterprise(new OID(enterprise));\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column atomdetails.atom_type
public void setAtom_type(String atom_type) { this.atom_type = atom_type; }
[ "public String getAtom_type() {\n return atom_type;\n }", "@Override\n\tpublic void setType(int type) {\n\t\t_expandoColumn.setType(type);\n\t}", "@Override\n\tpublic void setTypeSettings(java.lang.String typeSettings) {\n\t\t_expandoColumn.setTypeSettings(typeSettings);\n\t}", "public void setMetaTypeOid(Long metaTypeOid) {\r\n\t\tthis.metaTypeOid = metaTypeOid;\r\n\t\tmetaType = null;\r\n\t}", "void setResultSetType(int typeFlag) {\n\t\t_resultSetType = typeFlag;\n\t}", "public void setMetaType(MetaType metaType) {\r\n\t\tthis.metaType = metaType;\r\n\t\tif (metaType != null) {\r\n\t\t\tmetaTypeOid = metaType.getOid().getUniqueNumber();\r\n\t\t} else {\r\n\t\t\tmetaTypeOid = null;\r\n\t\t}\r\n\t}", "void xsetTypeCode(org.apache.xmlbeans.XmlString typeCode);", "public void xsetType(org.apache.xmlbeans.XmlString type)\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(TYPE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TYPE$0);\n }\n target.set(type);\n }\n }", "public Builder setOracleTypeValue(int value) {\n \n oracleType_ = value;\n onChanged();\n return this;\n }", "private void updateType(ReportColumn column, String field, ColumnType type) {\n if (field.equalsIgnoreCase(column.getField()) && column.getType() == null) {\n column.setType(type);\n }\n }", "void setType(ASTTypeSpecNode typeSpecNode)\n {\n this.type = Type.parse(typeSpecNode);\n }", "public void setTopType(AttributeType type) {\n\t\t\tif (this.topType==null) {\n\t\t\t\tthis.topType = type;\n\t\t\t}\n\t\t\telse if (this.topType!=type) {\n\t\t\t\tif (!this.topType.isAssignableFrom(type)) {\n\t\t\t\t\tif (type.isAssignableFrom(this.topType)) {\n\t\t\t\t\t\tthis.topType = type;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.topType = AttributeType.OBJECT;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void setColumnType(int columnType);", "public void update( final DataAdaptor adaptor ) {\n if ( adaptor.hasAttribute( \"type\" ) ) {\n _type = adaptor.stringValue( \"type\" );\n }\n super.update( adaptor );\n }", "public String updateContactTypeStatement() {\n\t\treturn \"UPDATE CONTACTSTYPES SET (CONTACT_TYPE) = ? WHERE ID = ?\";\n\t}", "public void setType( String pType )\r\n {\r\n mType = pType;\r\n }", "public void setMoltype(String moltype) {\n \n this.moltype = moltype;\n }", "void updateConnectorType(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String connectorTypeGUID,\n String connectorTypeExternalIdentifier,\n boolean isMergeUpdate,\n ConnectorTypeProperties connectorTypeProperties,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;", "public void setType(Object type) {\n this.type = type;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getExpiredMessageDirectory method, of class ConnectionManager.
@Test public void testGetExpiredMessageDirectory() { System.out.println("getExpiredMessageDirectory"); String expResult = TEST_EXPIRED_DIRECTORY; String result = instance.getExpiredMessageDirectory(); assertEquals(expResult, result); }
[ "@Test\n public void testGetMessageDirectory() {\n System.out.println(\"getMessageDirectory\");\n String expResult = TEST_MESSAGE_DIRECTORY;\n String result = instance.getMessageDirectory();\n assertEquals(expResult, result);\n }", "protected abstract void initDirectory() throws MailManagerException;", "public void testIgnoreOldExpiredAuth(){\n\n start();\n\n assertNotNull(mListener.lastMessage);\n mChannel.receiveMessage(\"auth:expired\");\n\n // make sure we ignore the auth:expired\n assertEquals(User.Status.AUTHORIZED, mAuthStatus);\n }", "public void testInvalidExpired() {\r\n messageContext.setInboundSAMLMessageIssueInstant(now.minusSeconds(expires + (clockSkew + 5)));\r\n assertRuleFailure(\"Message issue instant was expired\");\r\n }", "@Test (expected = SessionExpiredException.class)\r\n public void expiredSessionRead() {\r\n DateTime now = new DateTime();\r\n\r\n l.sessionChangeWorkingDirectory(u1Token, makeHomePath(u1));\r\n\r\n l.getSession(u1Token).setExpiryDate(now.minusHours(3));\r\n\r\n ReadFileService service = new ReadFileService(u1Token, f1Name);\r\n service.execute();\r\n }", "Boolean isChatMessageExpiredDelivery(String msgId);", "private void testConnection() throws MessagingException {\n if (!(protocol.equalsIgnoreCase(\"mbox\") || protocol.equalsIgnoreCase(\"maildir\"))) {\n NetworkConnection currentConnection = getConnection();\n getLogger().log(Level.FINE, \"connect store \" + getStoreID() + \": checking connection.\");\n if (currentConnection != null) {\n if (currentConnection.getStatus() == NetworkConnection.DISCONNECTED) {\n getLogger().log(Level.FINE, \"connect store \" + getStoreID() + \": connection not up. trying to connect it..\");\n currentConnection.connect(true, true);\n }\n if (connection.getStatus() != NetworkConnection.CONNECTED) {\n throw new MessagingException(Pooka.getProperty(\"error.connectionDown\", \"Connection down for Store: \") + getItemID());\n } else {\n getLogger().log(Level.FINE, \"connect store \" + getStoreID() + \": successfully opened connection.\");\n }\n }\n }\n}", "@Test\n public void testDroppable() throws UnknownHostException\n {\n OutboundTcpConnection otc = getOutboundTcpConnectionForLocalhost();\n long nanoTimeBeforeEnqueue = System.nanoTime();\n\n initialFill(otc, VERB_DROPPABLE);\n assertFalse(\"OutboundTcpConnection with droppable verbs should not expire immediately\",\n otc.backlogContainsExpiredMessages(nanoTimeBeforeEnqueue));\n\n otc.expireMessages(nanoTimeBeforeEnqueue);\n assertFalse(\"OutboundTcpConnection with droppable verbs should not expire with enqueue-time expiration\",\n otc.backlogContainsExpiredMessages(nanoTimeBeforeEnqueue));\n\n // Lets presume, expiration time have passed => At that time there shall be expired messages in the Queue\n long nanoTimeWhenExpired = expirationTimeNanos();\n assertTrue(\"OutboundTcpConnection with droppable verbs should have expired\",\n otc.backlogContainsExpiredMessages(nanoTimeWhenExpired));\n\n // Using the same timestamp, lets expire them and check whether they have gone\n otc.expireMessages(nanoTimeWhenExpired);\n assertFalse(\"OutboundTcpConnection should not have expired entries\",\n otc.backlogContainsExpiredMessages(nanoTimeWhenExpired));\n\n // Actually the previous test can be done in a harder way: As expireMessages() has run, we cannot have\n // ANY expired values, thus lets test also against nanoTimeBeforeEnqueue\n assertFalse(\"OutboundTcpConnection should not have any expired entries\",\n otc.backlogContainsExpiredMessages(nanoTimeBeforeEnqueue));\n\n }", "@Test\n public void testLogDirWithDriveLetter() throws Exception {\n LocalDirsHandlerService localDirs = Mockito.mock(LocalDirsHandlerService.class);\n List<String> logDirs = new ArrayList<String>();\n logDirs.add(\"F:/nmlogs\");\n Mockito.when(localDirs.getLogDirsForRead()).thenReturn(logDirs);\n ApplicationIdPBImpl appId = Mockito.mock(ApplicationIdPBImpl.class);\n Mockito.when(appId.toString()).thenReturn(\"app_id_1\");\n ApplicationAttemptIdPBImpl appAttemptId = Mockito.mock(ApplicationAttemptIdPBImpl.class);\n Mockito.when(appAttemptId.getApplicationId()).thenReturn(appId);\n ContainerId containerId = Mockito.mock(ContainerIdPBImpl.class);\n Mockito.when(containerId.getApplicationAttemptId()).thenReturn(appAttemptId);\n List<File> logDirFiles = ContainerLogsUtils.getContainerLogDirs(containerId, localDirs);\n Assert.assertTrue((\"logDir lost drive letter \" + (logDirFiles.get(0))), ((logDirFiles.get(0).toString().indexOf(((\"F:\" + (File.separator)) + \"nmlogs\"))) > (-1)));\n }", "protected boolean isExpired(final Message message) {\n if (daysToDiscardOldMessages != null && daysToDiscardOldMessages != 0) {\n Calendar calendar = Calendar.getInstance(); // this would default to now\n calendar.add(Calendar.DAY_OF_MONTH, -daysToDiscardOldMessages);\n Date discardDate = calendar.getTime();\n if (message.getEntryDate().before(discardDate)) {\n return true;\n } else {\n return false;\n }\n } else {\n //Is not configured the expiration info\n return false;\n }\n }", "public static boolean isMessageExpired(Context context) {\n // get message timestamp from preferences\n SharedPreferences p = context.getSharedPreferences(DM_PREFERENCES_KEY, 0);\n long messageTimestamp = p.getLong(MESSAGE_TIMESTAMP_ID_KEY, -1);\n logd(\"isMessageExpired: messageTimestamp is \" + messageTimestamp);\n\n return messageTimestamp == -1 || System.nanoTime() > (messageTimestamp\n + MESSAGE_LIFETIME);\n }", "boolean setChatMessageDeliveryExpired(String msgId);", "public void testSimpleCommonManager_Ctor_MissRecentDays() {\r\n try {\r\n new SimpleCommonManager(\"SimpleCommonManager_Error_6\");\r\n fail(\"CommonManagerConfigurationException is expected\");\r\n } catch (CommonManagerConfigurationException e) {\r\n assertTrue(e.getMessage().indexOf(\"Missed property 'recent_days'\") >= 0);\r\n }\r\n }", "@Test\n public void testLoadMessageListFromFolder() {\n System.out.println(\"loadMessageListFromFolder\");\n String folder = \"\";\n ArrayList<String> expResult = new ArrayList<String>();\n ArrayList<String> result = instance.loadMessageListFromFolder(folder);\n assertEquals(expResult, result);\n }", "public Integer getCredentialExpired() {\n return credentialExpired;\n }", "public void test_GetAllContestChannels_Failure1() throws Exception {\r\n try {\r\n initContext();\r\n\r\n entityManager.close();\r\n\r\n beanUnderTest.getAllContestChannels();\r\n fail(\"ContestManagementException is expected.\");\r\n } catch (ContestManagementException e) {\r\n // success\r\n }\r\n }", "boolean isComponentAccessTokenExpired();", "public long getExpiredSessions();", "@Test\n\tpublic final void testGetConnectedDatabases() {\n\t\tList<Database> connectedDatabases = connectionHandler.getConnectedDatabases();\n\t\tAssert.assertNotNull(connectedDatabases);\n\t\tAssert.assertFalse(connectedDatabases.isEmpty());\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Configure Converter to be used. In our example, we need a converter to convert string values[Roles] to UserProfiles in newUser.jsp
@Override public void addFormatters(FormatterRegistry registry) { registry.addConverter(roleToUserProfileConverter); }
[ "public UserConverter() {\n }", "@Bean\n public ConversionBean converter(){\n return new ConversionBean();\n }", "private PreferenceConverter() {\n // Spring instantiates converters - see converters.xml\n }", "public void setConverter( ValueConverter valueConverter, Class... classesToConvert ) {\n for( Class clazz: classesToConvert ) {\n converters.put( clazz, valueConverter );\n }\n }", "public interface CustomConverter {\r\n public Object toJava(String value);\r\n\r\n public String toXML(Object object);\r\n \r\n public String toXMLCaseSensitive(Object object);\r\n }", "public void setConverter(Converter converter) {\n this.converter = converter;\n }", "public interface ValueConverter\n{\n\n\tObject convertToX( String sourceValue, Class targetType, String propertyName );\n\n\tString convertToString( Object sourceValue, String propertyName );\n\n}", "private void addConverter() {\n Map<String, String> ruleRegistry = (Map<String, String>) context.getObject(CoreConstants.PATTERN_RULE_REGISTRY);\n if (ruleRegistry == null) {\n ruleRegistry = new HashMap<String, String>();\n context.putObject(CoreConstants.PATTERN_RULE_REGISTRY, ruleRegistry);\n }\n ruleRegistry.putIfAbsent(CensorConstants.CENSOR_RULE_NAME, CensorConverter.class.getName());\n }", "private UserServiceConverter(Converter<Service, ServiceDetail> serviceConverter) {\n // Spring instantiates converters - see converters.xml\n Validate.notNull(serviceConverter);\n this.serviceConverter = serviceConverter;\n }", "Converter lookupConverter(String name);", "@Test\n public void testRolesDTO2Roles() {\n System.out.println(\"usersDTO2Users\");\n Roles result = RolesConverter.rolesDTO2Roles(rdto);\n assertEquals(r.toString(), result.toString());\n }", "public void setConverter(final StringConverter<T> value) {\n\n this.converterProperty.set(value);\n }", "public UserFacebookConverter() {\n entity = new UserFacebook();\n }", "private static BeanUtilsBean createBeanUtilsBean()\n {\n ConvertUtilsBean cub = new ConvertUtilsBean();\n \n // TODO: is there a smarter way to tell beanutils not to use defaults?\n \n final boolean[] booleanArray = new boolean[0];\n final byte[] byteArray = new byte[0];\n final char[] charArray = new char[0];\n final double[] doubleArray = new double[0];\n final float[] floatArray = new float[0];\n final int[] intArray = new int[0];\n final long[] longArray = new long[0];\n final short[] shortArray = new short[0];\n \n \n cub.register(new BooleanConverter(), Boolean.TYPE);\n cub.register(new BooleanConverter(), Boolean.class);\n cub.register(\n new BooleanArrayConverter(), booleanArray.getClass());\n cub.register(new ByteConverter(), Byte.TYPE);\n cub.register(new ByteConverter(), Byte.class);\n cub.register(\n new ByteArrayConverter(byteArray), byteArray.getClass());\n cub.register(new CharacterConverter(), Character.TYPE);\n cub.register(new CharacterConverter(), Character.class);\n cub.register(\n new CharacterArrayConverter(), charArray.getClass());\n cub.register(new DoubleConverter(), Double.TYPE);\n cub.register(new DoubleConverter(), Double.class);\n cub.register(\n new DoubleArrayConverter(doubleArray), doubleArray.getClass());\n cub.register(new FloatConverter(), Float.TYPE);\n cub.register(new FloatConverter(), Float.class);\n cub.register(new FloatArrayConverter(), floatArray.getClass());\n cub.register(new IntegerConverter(), Integer.TYPE);\n cub.register(new IntegerConverter(), Integer.class);\n cub.register(new IntegerArrayConverter(), intArray.getClass());\n cub.register(new LongConverter(), Long.TYPE);\n cub.register(new LongConverter(), Long.class);\n cub.register(new LongArrayConverter(), longArray.getClass());\n cub.register(new ShortConverter(), Short.TYPE);\n cub.register(new ShortConverter(), Short.class);\n cub.register(new ShortArrayConverter(), shortArray.getClass());\n // TODO: investigate:\n // StringArrayConverter doesn't properly convert an array of tokens with\n // elements containing an underscore, \"_\".\n // Hacked a replacement class :(\n // cub.register(new StringArrayConverter(),\n // String[].class);\n cub.register(new StrArrayConverter(), String[].class);\n cub.register(new IntegerArrayConverter(), Integer[].class);\n \n // BigDecimal, BigInteger, Class, Date, String, Time, TimeStamp\n // do not use defaults in the default configuration of ConvertUtilsBean\n \n return new BeanUtilsBean(cub, new PropertyUtilsBean());\n }", "public interface TemplateValueConverter\n{\n\n /**\n * Converts a Java object (e.g. one produced by a method call) to one suitable for use within a template.\n * \n * @param value\n * the Java object to convert\n * @param imageResolver\n * the image resolver\n * @return the converted object\n */\n public Object convertValue(Object value, TemplateImageResolver imageResolver);\n}", "public <T> void registerInConverter(Class<T> clazz, Function<String, T> convert) {\n inConverters.put(clazz, convert);\n }", "private JwtAuthenticationConverter jwtAuthenticationConverter() {\n JwtAuthenticationConverter jwtAuthenticationConverter = new JwtAuthenticationConverter();\n jwtAuthenticationConverter.setJwtGrantedAuthoritiesConverter(new MyIDPAuthoritiesConverter());\n return jwtAuthenticationConverter;\n }", "@Test\n public void testRoles2RolesDTO() {\n System.out.println(\"users2UsersDTO\");\n RolesDTO result = RolesConverter.roles2RolesDTO(r);\n assertEquals(rdto.toString(), result.toString());\n }", "public StringConvert getConverter() {\n return converter;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Closes transaction by deleting transaction journal and logs the error if transaction could not be closed.
protected void closeTransaction(DSTransaction transaction) throws DetailException { //if transaction has been failed its journal must not be deleted, so rollback can be done if (transaction != null && !transaction.isFailed()) { try { transaction.close(); } catch (TransactionException e) { transactionFailure = true; transaction.setFailed(true); logger.error("Exception is ", e);; throw (DetailException) e.getCause(); } } }
[ "public void closeTransaction(Transaction tran) throws SQLException;", "public void close() throws RemoteException {\r\n tx.commit();\r\n }", "void endTransaction();", "abstract public void endTransaction() throws DAOException;", "@Override\n\tpublic synchronized void close() {\n\t\tif (entityManager != null) {\n\t\t\ttry {\n\t\t\t\tentityManager.getTransaction().rollback();\n\t\t\t} catch (Exception x) {\n\t\t\t\tlogger.warn(\"close: persistenceManager.currentTransaction().rollback() failed: \" + x, x);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tentityManager.close();\n\t\t\t} catch (Exception x) {\n\t\t\t\tlogger.warn(\"close: persistenceManager.close() failed: \" + x, x);\n\t\t\t}\n\t\t\tentityManager = null;\n\t\t}\n\n\t\tsuper.close();\n\t}", "public boolean delete(Transaction transaction) throws Exception;", "public void close() throws DataLayerException {\r\n // If connection is null or transactionClosed is true, exit.\r\n if (connection == null && !transactionClosed)\r\n throw new DataLayerException(\r\n \"Error completing database transaction. Illegal state. Connection is null but transaction not showing closed.\");\r\n\r\n if (connection == null) {\r\n log.debug(\"Transaction already closed...\");\r\n return;\r\n }\r\n\r\n try {\r\n driver.releaseConnection(connection);\r\n connection = null;\r\n transactionClosed = true;\r\n log.debug(\"Transaction closed successfully.\");\r\n } catch (Exception e) {\r\n throw new DataLayerException(\"Error closing database connection.\", e);\r\n }\r\n }", "void rollback(Transaction transaction);", "public void close() {\n\n try {\n try {\n try {\n if (exception == null) {\n flushSessions();\n }\n\n } catch (Throwable exception) {\n exception(exception);\n } finally {\n\n try {\n if (exception == null) {\n transactionContext.commit();\n }\n } catch (Throwable exception) {\n exception(exception);\n }\n transactionContext.rollback();\n }\n } catch (Throwable exception) {\n exception(exception);\n } finally {\n closeSessions();\n\n }\n } catch (Throwable exception) {\n exception(exception);\n } \n\n // rethrow the original exception if there was one\n if (exception != null) {\n if (exception instanceof Error) {\n throw (Error) exception;\n } else if (exception instanceof RuntimeException) {\n throw (RuntimeException) exception;\n }\n }\n }", "protected abstract void abortTxn(Txn txn) throws PersistException;", "public void transactionCommit() throws DDlogException {\n this.checkHandle();\n DDlogAPI.ddlog_transaction_commit(this.hprog);\n }", "public void closeSessionWithTransaction() {\n transaction.commit();\n session.close();\n }", "abstract public void abortTransaction();", "public void rollback() throws TransactionException;", "@Override\n public synchronized void close() throws IOException {\n if (activeTla.get() == null) {\n return;\n }\n\n try {\n tla1.close();\n } catch (IOException ex) {\n log.error(\"cannot close \" + tla1, ex);\n }\n tla1 = null;\n try {\n tla2.close();\n } catch (IOException ex) {\n log.error(\"cannot close \" + tla2, ex);\n }\n tla2 = null;\n activeTla.set(null);\n\n if (log.isDebugEnabled()) {\n log.debug(\"disk journal closed\");\n }\n }", "public void logTransactionEnd();", "public void endTransaction(int transactionID);", "public static void close(EntityManager entityManager)\n\t{\n\t\tEntityTransaction tx = entityManager.getTransaction();\n\t\tif (tx != null && tx.isActive()) tx.rollback();\n\t\tentityManager.close();\n\t}", "public static void sd_journal_close(Pointer<SystemdJournalLibrary.sd_journal > j) {\n\t\tsd_journal_close(Pointer.getPeer(j));\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executes the action part of the rule constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9
private void constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9() { module_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + "Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_ \n"); module_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + " Condições: \n"); module_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + " \t Tipo de Erro = Diretamente Identificável - Deficiência na Escolha do Operador \n"); module_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA); modified(module_entity_MERFunction_1); modified(module_entity_RuleToHuman_1); System.out.println("Função MRE: Compreensão Mais Aprofundada"); flush(); }
[ "private void constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_12() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Solução Não Categorizável \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private void constructDeeperUnderstanding02_PATH_2_GOAL_8_COMPONENT_txtResp_22() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding02_PATH_2_GOAL_8_COMPONENT_txtResp_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Diretamente Identificável - Deficiência na Escolha do Operador \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private void constructDeeperUnderstanding03_PATH_2_GOAL_8_COMPONENT_txtResp_25() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding03_PATH_2_GOAL_8_COMPONENT_txtResp_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Solução Não Categorizável \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private void constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_3() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding02_PATH_1_GOAL_2_COMPONENT_txtOp_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Diretamente Identificável - Deficiência na Escolha do Operador \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private void constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_5() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding03_PATH_1_GOAL_2_COMPONENT_txtOp_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Solução Não Categorizável \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private void constructDeeperUnderstanding03_PATH_2_GOAL_6_COMPONENT_txtOp_18() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding03_PATH_2_GOAL_6_COMPONENT_txtOp_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Solução Não Categorizável \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private boolean constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9_cond_3() {\r\n return (module_entity_Action_1.getGoal().getComponent().getName().equalsIgnoreCase(\"txtResp\"));\r\n }", "private void constructDeeperUnderstanding02_PATH_2_GOAL_6_COMPONENT_txtOp_16() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding02_PATH_2_GOAL_6_COMPONENT_txtOp_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Diretamente Identificável - Deficiência na Escolha do Operador \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private boolean constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_12_cond_3() {\r\n return (module_entity_Action_1.getGoal().getComponent().getName().equalsIgnoreCase(\"txtResp\"));\r\n }", "private boolean constructDeeperUnderstanding02_PATH_2_GOAL_8_COMPONENT_txtResp_22_cond_3() {\r\n return (module_entity_Action_1.getGoal().getComponent().getName().equalsIgnoreCase(\"txtResp\"));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_2_GOAL_8_COMPONENT_txtResp_25_cond_3() {\r\n return (module_entity_Action_1.getGoal().getComponent().getName().equalsIgnoreCase(\"txtResp\"));\r\n }", "private void constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Solução Não Categorizável \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private void constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_15() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding03_PATH_2_GOAL_5_COMPONENT_txtParcela1_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Solução Não Categorizável \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private void constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_2() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Solução Não Categorizável \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private void constructDeeperUnderstanding03_PATH_2_GOAL_7_COMPONENT_txtParcela2_21() {\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \"Regra acionada para classificar a Função da MRE: constructDeeperUnderstanding03_PATH_2_GOAL_7_COMPONENT_txtParcela2_ \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" Condições: \\n\");\n\t\t\tmodule_entity_RuleToHuman_1.setDescription(module_entity_RuleToHuman_1.getDescription() + \" \\t Tipo de Erro = Solução Não Categorizável \\n\");\n\t\t\tmodule_entity_MERFunction_1.setType(Constants.TIPO_FUNCAOMRE_COMPREENSAO_MAIS_APROFUNDADA);\n\t\t\tmodified(module_entity_MERFunction_1);\n\t\t\tmodified(module_entity_RuleToHuman_1);\n\t\t\tSystem.out.println(\"Função MRE: Compreensão Mais Aprofundada\");\n\t\t\tflush();\n\n\t }", "private boolean constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(4));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_12_cond_2() {\r\n return (module_entity_Action_1.getGoal().getId().equals(4));\r\n }", "private boolean constructDeeperUnderstanding02_PATH_1_GOAL_4_COMPONENT_txtResp_9_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(1));\r\n }", "private boolean constructDeeperUnderstanding03_PATH_1_GOAL_4_COMPONENT_txtResp_12_cond_1() {\r\n return (module_entity_Action_1.getGoal().getPath().getId().equals(1));\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the checked state of this switch is changed.
protected abstract boolean onCheckedChanged(boolean checked);
[ "@Override\r\n\t\tpublic void switchChanged(long switchId) \r\n\t\t{ /* Nothing we need to do */ }", "@Override\n\tpublic void switchChanged(long switchId) \n\t{ /* Nothing we need to do */ }", "@Override\n public void onCheckedChanged(CompoundButton toggleButton, boolean isChecked) {\n if (!isChecked) {\n viewHolder.state_endpoint_in_scene_text_view.setText(context.getResources().getString(R.string.label_off));\n state[0] = 0;\n } else {\n viewHolder.state_endpoint_in_scene_text_view.setText(context.getResources().getString(R.string.label_on));\n state[0] = 255;\n }\n // If the values are modified while the user does not check/unckeck the checkbox, then we update the value from the controller.\n int exist = mode.getPayload().indexOf(c);\n if (exist != -1) {\n mode.getPayload().get(exist).setV(state[0]);\n }\n }", "private void handleTrackingSwitchChecked() {\n mSwitchTracking.setText(R.string.switchStopTracking);\n if (mListener != null) {\n mListener.onStartFragmentStartTracking();\n }\n }", "protected void stateChanged() {\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "public void checkStateChanged( CheckStateChangedEvent event )\n {\n dialogChanged();\n }", "@Override\n\tpublic void switchChanged(long switchId) {\n\t\t/* Nothing we need to do */\n\t}", "private void checkBoxChanged(boolean checked) {\n this.adapter.getCheckBoxMap().put(this.app, checked);\n if (checked) {\n this.linlay.setBackgroundColor(GUIConstants.COLOR_BG_GREEN);\n } else {\n this.linlay.setBackgroundColor(Color.TRANSPARENT);\n }\n }", "public void setChanged()\r\n {\r\n changed = true;\r\n okButton.setEnabled( changed );\r\n }", "public void setChecked(){\n checked = true;\n }", "@Override\n public void onCheckedChanged(LEDControl ledControl, boolean isChecked) {\n Resources res = getResources();\n int action = 0;\n\n if (ledControl == led0) {\n if (isChecked) action = res.getInteger(R.integer.led0_on);\n if (led1.isChecked()) action |= res.getInteger(R.integer.led1_on);\n } else if (ledControl == led1) {\n if (isChecked) action = res.getInteger(R.integer.led1_on);\n if (led0.isChecked()) action |= res.getInteger(R.integer.led0_on);\n }\n presenter.ledAction(action);\n }", "protected synchronized void setChanged() {\n changed = true;\n }", "void onCheckedChanged(Chip chip, boolean isChecked);", "private void setSwitch() {\n lifeStoryLines.setChecked(cache.isLifeStoryLines());\n familyTreeLines.setChecked(cache.isFamilyTreeLines());\n spouseLines.setChecked(cache.isSpouseLines());\n fathersSide.setChecked(cache.isFathersSide());\n mothersSide.setChecked(cache.isMothersSide());\n maleEvents.setChecked(cache.isMaleEvents());\n femaleEvents.setChecked(cache.isFemaleEvents());\n }", "void onCheckedTriStateChanged(TriStateCheckBox triStateCheckBox, State state);", "@Override\n public void OnChanged(WiperSwitch wiperSwitch, boolean checkState) {\n PreferencesHelper.get(getActivity()).setListenOrder(checkState);\n }", "@Override\n\tpublic void setChecked(boolean checked) {\n\t\t// If trying to set the current state, ignore.\n\t\tif (!mCheckable || checked == mChecked) {\n\t\t\treturn;\n\t\t}\n\t\tmChecked = checked;\n\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n\t\t\t// Create and start the {@link ValueAnimator} that shows the new state.\n\t\t\tAnimator anim = createAnimator();\n\t\t\tanim.setDuration(getResources().getInteger(android.R.integer.config_shortAnimTime));\n\t\t\tanim.start();\n\n\t\t\t// Set the new background color of the {@link View} to be revealed.\n\t\t\tmRevealView.setBackgroundColor(\n\t\t\t\t\tmChecked ? getResources().getColor(R.color.fab_checked)\n\t\t\t\t\t\t\t: getResources().getColor(R.color.fab_normal)\n\t\t\t\t\t);\n\n\t\t\t// Show the {@link View} to be revealed. Note that the animation has started already.\n\t\t\tmRevealView.setVisibility(View.VISIBLE);\n\t\t} else\n\t\t\trefreshDrawableState();\n\n\t\tif (mOnCheckedChangeListener != null) {\n\t\t\tmOnCheckedChangeListener.onCheckedChanged(this, checked);\n\t\t}\n\t}", "public void stateChanged() {\n this.setChanged();\n this.notifyObservers();\n }", "void onPowerSwitchChange(String _switch, State state);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The type of longterm pricing option you want for the device, either 1year or 3year longterm pricing.
public String getLongTermPricingType() { return this.longTermPricingType; }
[ "public void setLongTermPricingType(String longTermPricingType) {\n this.longTermPricingType = longTermPricingType;\n }", "public int getPricingType() {\n return pricingType;\n }", "public String getLongTermPricingId() {\n return this.longTermPricingId;\n }", "public DeviceOptionType getType();", "PriceTypeType getPriceType();", "public @Nullable String getPricingType() {\n return mPriceType;\n }", "java.lang.String getProductType();", "public java.lang.String getLongtermCareType() {\n return longtermCareType;\n }", "public String getDEAL_TYPE_BY_TERM()\r\n {\r\n\treturn DEAL_TYPE_BY_TERM;\r\n }", "io.bloombox.schema.licensure.Licensure.LicenseType getType();", "String productKind();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getLiquorPremiumBasis();", "SkuType skuType();", "@ApiModelProperty(value = \"abbreviation for the product type of the Copernicus subset [RAW (raw data), GRD (Ground Range Detected), SLC (Single Look Complex), OCN (Ocean), L1C (Sentinel-2 Level 1C), L2A (Sentinel-2 Level 2A)] \")\n\n\n public String getProductType() {\n return productType;\n }", "public Boolean getIsLongTermPricingAutoRenew() {\n return this.isLongTermPricingAutoRenew;\n }", "int getVPriceTypeValue();", "static int askProductType() {\n\n int choice; // initialize return variable\n\n choice = Validate.readInt(ASK_PRODUCT_TYPE, 2); // display options to user for products and store result if valid choice\n\n return choice; // return users choice\n }", "public String\n getLicenseType()\n {\n return (String) pProfile.get(\"LicenseType\");\n }", "public BigDecimal getPRODUCT_TYPE()\r\n {\r\n\treturn PRODUCT_TYPE;\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Moves the calendar to the previous month
public void previousMonth() { selectedMonth--; calendar.add(Calendar.MONTH, -1); totalDays = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); monthChange = true; update(); }
[ "public void previousMonth() {\r\n\t\tcalendar.add(Calendar.MONTH, -1);\r\n\t\tselectedDate = calendar.getTime();\r\n\t\tchangeMade();\r\n\t}", "private void onClick_cmdPreviousMonth(){\n \t\t// Adjust the month index backwards\n \t\tm_calDate.add(Calendar.MONTH, -1);\n \t\t\n \t\t// Display the new month's days\n \t\tdisplayDate();\t\n \t}", "private void setPreviousMonth() {\r\n if (mGregorianCalendar.get(GregorianCalendar.MONTH) == mGregorianCalendar\r\n .getActualMinimum(GregorianCalendar.MONTH)) {\r\n mGregorianCalendar.set((mGregorianCalendar.get(GregorianCalendar.YEAR) - 1),\r\n mGregorianCalendar.getActualMaximum(GregorianCalendar.MONTH), 1);\r\n } else {\r\n mGregorianCalendar.set(GregorianCalendar.MONTH,\r\n mGregorianCalendar.get(GregorianCalendar.MONTH) - 1);\r\n }\r\n }", "public void prevMonth() {\n\t\tmonth--;\n\t\tif (month <= 0) {\n\t\t\tmonth += 12;\n\t\t\tyear--;\n\t\t}\n\n\t}", "public void setPreviousMonth() {\n if (month.get(GregorianCalendar.MONTH) == month\n .getActualMinimum(GregorianCalendar.MONTH)) {\n month.set((month.get(GregorianCalendar.YEAR) - 1),\n month.getActualMaximum(GregorianCalendar.MONTH), 1);\n Singleton.getInstance().setMonth(month);\n } else {\n month.set(GregorianCalendar.MONTH,\n month.get(GregorianCalendar.MONTH) - 1);\n Singleton.getInstance().setMonth(month);\n }\n }", "public final void previousMonth() {\n\t\tmMonthHelper.previousMonth();\n\t\tif (mMonthHelper.getMonth() == Calendar.DECEMBER) {\n\t\t\tmYear -= 1;\n\t\t\tmYearName.setText(String.valueOf(mYear));\n\t\t}\n\t\tsetCellDays();\n\t\tinvalidate();\n\t}", "public void previousDay() {\n\t\tselectedDay--;\n\t\tif (selectedDay < 1) {\n\t\t\tpreviousMonth();\n\t\t\tselectedDay = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\t\t}\n\t\tupdate();\n\t}", "public void goBackOneMonth() {\r\n\t\tday = 1;\r\n\t\tmonth--;\r\n\t\tif (month == 0) {\r\n\t\t\tmonth = 12;\r\n\t\t\tyear--;\r\n\t\t}\r\n\t}", "public void previousMonth(Object dialog) {\r\n\t\tcurrent.set(Calendar.MONTH, this.curMonth - 1);\r\n\t\tcurMonth = current.get(Calendar.MONTH);\r\n\t\tif (curMonth == LAST_MONTH) {\r\n\t\t\tcurrent.set(Calendar.YEAR, this.curYear - 1);\r\n\t\t}\r\n\t\tcurYear = current.get(Calendar.YEAR);\r\n\t\tshowMonth(dialog);\r\n\t}", "public void goToDayBefore() {\r\n\t\ttry {\r\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH,\r\n\t\t\t\t\tcalendar.get(Calendar.DAY_OF_MONTH) - 1);\r\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 8);\r\n\t\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\t\tdisplay = calendar.getTime();\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);\r\n\t\t\tsession.setAttribute(\"calendar\", calendar);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void setPrevWeek()\n\t{\n\t\tm_calendar.set(Calendar.WEEK_OF_MONTH,getWeekOfMonth()-1);\n\n\t}", "public void prevMonth(int n) {\n for(int i = 0; i < n; i++) {\n if(getMonth() - 1 == 0) { \n setMonth(12); \n setYear(getYear() - 1); \n } else { setMonth(getMonth() - 1); }\n }\n rollBack();\n }", "public static Date getFirstDateOfPrevMonth(){\n Calendar cal = Calendar.getInstance();\n int month = cal.get(Calendar.MONTH);\n if(month<0) month =11;\n cal.set(Calendar.MONTH,month-1);\n cal.set(Calendar.DATE, 1);\n return cal.getTime();\n }", "public void previous() {\n if (!isSameDay(mCurrentDate, mConference.start)) {\n final Date load = new Date(mCurrentDate.getYear(), mCurrentDate.getMonth(), mCurrentDate.getDate()-1);\n new SetDayThread(load).start();\n }\n }", "public static Date getLastDateOfPrevMonth(){\n Calendar cal = Calendar.getInstance();\n int month = cal.get(Calendar.MONTH);\n if(month<0) month = 11;\n cal.set(Calendar.MONTH,month-1);\n cal.set(Calendar.DATE,cal.getActualMaximum(Calendar.DATE));\n return cal.getTime();\n }", "private void previousDay() {\r\n tmp.setDay(tmp.getDay() - 1);\r\n int nd = tmp.getDayOfWeek();\r\n nd--;\r\n if (nd == 0) nd = daysInWeek;\r\n tmp.setDayOfWeek(nd);\r\n upDMYcountDMYcount();\r\n }", "public void goToDayAfter() {\r\n\t\ttry {\r\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH,\r\n\t\t\t\t\tcalendar.get(Calendar.DAY_OF_MONTH) + 1);\r\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 8);\r\n\t\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\t\tdisplay = calendar.getTime();\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);\r\n\t\t\tsession.setAttribute(\"calendar\", calendar);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void btnBkD_back9ActionPerformed(java.awt.event.ActionEvent evt) {\n\t\n Calendar c = Calendar.getInstance();\n // p(\"Before subtraction date :\" + c.getTime());\n c.add(Calendar.DATE, -2);\n // p(\"After subtraction date :\" + c.getTime());\n\n\t}", "public void goForwardOneMonth() {\r\n\t\tday = 1;\r\n\t\tmonth++;\r\n\t\tif (month == 13) {\r\n\t\t\tmonth = 1;\r\n\t\t\tyear++;\r\n\t\t}\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function initialize the payment method choice box and date validation choice box.
public void initCreditCardFields() { cbPaymentMethod.getItems().add("Choose type"); cbPaymentMethod.getItems().add("Cash"); cbPaymentMethod.getItems().add("Credit Card"); cbPaymentMethod.setValue(cbPaymentMethod.getItems().get(0)); cbCreditCardMonthValidation.getItems().add("Month:"); for (int i = 1; i <= 12; i++) { if (i < 10) cbCreditCardMonthValidation.getItems().add("0" + i); else cbCreditCardMonthValidation.getItems().add("" + i); } cbCreditCardMonthValidation.setValue(cbCreditCardMonthValidation.getItems().get(0)); cbCreditCardYearValidation.getItems().add("Year:"); for (int i = 2020; i <= 2030; i++) { cbCreditCardYearValidation.getItems().add("" + i); } cbCreditCardYearValidation.setValue(cbCreditCardYearValidation.getItems().get(0)); }
[ "public PaymentOption() {\n initComponents();\n }", "public GUIPayAgainstInvoice() {\n initComponents();\n initOthers();\n }", "@PostConstruct\r\n private void init() {\n this.ccTypes = new ArrayList<SelectItem>();\r\n this.ccTypes.add(new SelectItem(CreditCardType.CARD_A, getCCTypeLabel(CreditCardType.CARD_A)));\r\n this.ccTypes.add(new SelectItem(CreditCardType.CARD_B, getCCTypeLabel(CreditCardType.CARD_B)));\r\n\r\n // Initialize categories select items\r\n this.categories = new ArrayList<SelectItem>();\r\n this.categories.add(new SelectItem(\"cat_it\", getCategoryLabel(\"cat_it\")));\r\n this.categories.add(new SelectItem(\"cat_gr\", getCategoryLabel(\"cat_gr\")));\r\n this.categories.add(new SelectItem(\"cat_at\", getCategoryLabel(\"cat_at\")));\r\n this.categories.add(new SelectItem(\"cat_mx\", getCategoryLabel(\"cat_mx\")));\r\n }", "private void initialize() {\n\t\t// data source for drop-down list\n\t\tfinal ArrayList<String> items = new ArrayList<String>();\n\t\titems.add(getString(R.string.product_bar_code));\n\t\titems.add(getString(R.string.prepaid_card_number));\n\n\t\t/*\n\t\t * SelectBox is the TextView where the selected values will be displayed\n\t\t * in the form of \"Item 1 & 'n' more\". When this selectBox is clicked it\n\t\t * will display all the selected values and when clicked again it will\n\t\t * display in shortened representation as before.\n\t\t */\n\t\tfinal TextView tv = (TextView) findViewById(R.id.SelectBox);\n\n\t\t// onClickListener to initiate the dropDown list\n\t\tButton createButton = (Button) findViewById(R.id.create);\n\t\tcreateButton.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tinitiatePopUp(items, tv);\n\t\t\t}\n\t\t});\n\t}", "public ChargesForm()\n {\n initComponents();\n setEditorPane();\n fillCombo();\n }", "private void choiceBoxInitializer() {\n searchChoiceBox.getItems().addAll(\"Learning Applications\", \"Learning Categories\",\n \"Learning Units\");\n searchChoiceBox.setValue(\"Learning Applications\");\n }", "public void initialize() {\n fillCombobox();\n }", "private void initializeChoiceBoxes() {\n Camera current = getCurrentShot().getCamera();\n\n initializeCameraChoice();\n initializePresetChoice();\n updatePresetChoice(current);\n }", "public pay_date() {\n initComponents();\n }", "public PAYMENTS() {\n initComponents();\n }", "public void initForm() {\n\t\tform = new BasicForm(\"Balance\", \"Deposit\", \"Withdraw\", \"Transfer\", \"Quit\");\n\t\tform.setTitle(\"Bank of St. Kitts\");\n\t\tform.addRadioButtons(\"account\", \"Account\", true, 10, 10, \"savings\", \"vacation\", \"chequing\", \"investment\", \"student\");\n\t\tform.addRadioButtons(\"otheraccount\", \"Other Account\", true, 350, 10, \"savings\", \"vacation\", \"chequing\", \"investment\", \"student\");\n\t\tform.addTextField(\"prompt\", 65);\n\t\tform.addTextField(\"amount\", \"Amount\", 15, 150, 20);\n\t}", "public PaymentTypeSelectionDialog() {\r\n super(Application.getPosWindow(), true);\r\n initComponents();\r\n \r\n btnBankCheck.setVisible(false);\r\n }", "public userPayment() {\n initComponents();\n }", "public RateSettingForm() {\n initComponents();\n }", "private void initSwitchAndRadioButtons() {\n RadioButton rbPhoneNO = findViewById(R.id.rbPhoneNO);\n rbPhoneNO.setTypeface(appTypeface.getPro_News());\n\n RadioButton rbEmail = findViewById(R.id.rbEmail);\n rbEmail.setTypeface(appTypeface.getPro_News());\n\n RadioGroup radioGroup = findViewById(R.id.radioGroup);\n radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n Utility.hideSoftKeyBoard(group);\n\n isEmailValidation = checkedId == R.id.rbEmail;\n Log.d(\"ForgotPassword\", \"initSwitchAndRadioButtons isEmailValidation: \" + isEmailValidation);\n toggleViewsForAccountType();\n }\n });\n\n if (isEmailValidation) {\n rbEmail.setChecked(true);\n } else {\n rbPhoneNO.setChecked(true);\n }\n }", "private HBox setUpCurrencyChoices(){\n futureValueChoice = new RadioButton(\"Future Value\");\n RadioButton presentChoice = new RadioButton(\"Present Value\");\n futureValueChoice.setSelected(true);\n \n ToggleGroup tg = new ToggleGroup();\n futureValueChoice.setToggleGroup(tg);\n presentChoice.setToggleGroup(tg);\n \n HBox currencyChoices = new HBox();\n currencyChoices.getChildren().add(futureValueChoice);\n currencyChoices.getChildren().add(presentChoice);\n \n return currencyChoices;\n }", "public void initComboBoxes() {\r\n\t\tmonthBox.setItems(monthList);\r\n\t\tyearBox.setItems(yearList);\r\n\r\n\t}", "public ConfigurePaymentFranchisee() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(SystemColor.PINK);\n\t\tframe.setBounds(100, 100, 504, 341);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\t// The default language of the TVM is English \n\t\t// so initialize and populate text as such\n\t\tJLabel listOfAllOptions = new JLabel();\n\t\tString headerSentence = \"All Options Available\";\n\t\tString singleFareStr = \"Single Pass\";\n\t\tString roundtripFareStr = \"Roundtrip Pass\";\n\t\tString fullDayPassStr = \"Full Day Pass\";\n\t\tString weeklyPassStr = \"Weekly Pass\";\n\t\tString monthlyPassStr = \"Monthly Pass\";\n\t\tString backButtonStr = \"Back\";\n\t\t\n\t\t// if language is French, manually translate the options \n\t\t// as required\n\t\t// *NOTE: this level of hardcoding is acceptable as these options\n\t\t// do not so often change (i.e compromising on the dynamic configuration of it is acceptable) \n\t\tif(languageOfChoice.equals(\"Francais\")) {\n\t\t\theaderSentence = \"Toutes Les Options\";\n\t\t\tsingleFareStr = \"Passe Unique\";\n\t\t\troundtripFareStr = \"Passe Aller-Retour\";\n\t\t\tfullDayPassStr = \"Journée Entière\";\n\t\t\tweeklyPassStr = \"Hebdomadaire\";\n\t\t\tmonthlyPassStr = \"Passe Mensuelle\";\n\t\t\tbackButtonStr = \"Retour\";\n\t\t}\n\t\t\n\t\tsingleFare = new JRadioButton(singleFareStr);\n\t\tsingleFare.setBounds(43, 70, 133, 23);\n\t\tframe.getContentPane().add(singleFare);\n\n\t\troundtripFare = new JRadioButton(roundtripFareStr);\n\t\troundtripFare.setBounds(43, 104, 133, 23);\n\t\tframe.getContentPane().add(roundtripFare);\n\n\t\tsingleDayFare = new JRadioButton(fullDayPassStr);\n\t\tsingleDayFare.setBounds(43, 141, 133, 23);\n\t\tframe.getContentPane().add(singleDayFare);\n\n\t\tweeklyFare = new JRadioButton(weeklyPassStr);\n\t\tweeklyFare.setBounds(215, 70, 133, 23);\n\t\tframe.getContentPane().add(weeklyFare);\n\n\t\tmonthlyFare = new JRadioButton(monthlyPassStr);\n\t\tmonthlyFare.setBounds(215, 104, 133, 23);\n\t\tframe.getContentPane().add(monthlyFare);\n\n\t\tButtonGroup buttonGroup = new ButtonGroup();\n\t\tbuttonGroup.add(singleFare);\n\t\tbuttonGroup.add(roundtripFare);\n\t\tbuttonGroup.add(singleDayFare);\n\t\tbuttonGroup.add(weeklyFare);\n\t\tbuttonGroup.add(monthlyFare);\n\t\t\n\t\tlistOfAllOptions = new JLabel(headerSentence);\n\t\tlistOfAllOptions.setFont(new Font(\"Calibri\", Font.BOLD, 24));\n\t\tlistOfAllOptions.setBounds(124, 25, 266, 32);\n\t\tframe.getContentPane().add(listOfAllOptions);\n\n\t\tJButton backButton = new JButton(backButtonStr);\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tListOptions transitPurchase = new ListOptions();\n\t\t\t\tframe.setVisible(false);\n\t\t\t\ttransitPurchase.frame.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbackButton.setBounds(372, 88, 81, 27);\n\t\tframe.getContentPane().add(backButton);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Annotate the ontology with the annotation.
public static void addOntologyAnnotation(OWLOntology ontology, OWLAnnotation annotation) { OWLOntologyManager manager = ontology.getOWLOntologyManager(); AddOntologyAnnotation addition = new AddOntologyAnnotation(ontology, annotation); manager.applyChange(addition); }
[ "AnnotateTo createAnnotateTo();", "Annotation createAnnotation();", "org.biocatalogue.x2009.xml.rest.ResourceLink addNewAnnotations();", "public static void addAxiomAnnotation(\n OWLOntology ontology, OWLAxiom axiom, Set<OWLAnnotation> annotations) {\n OWLOntologyManager manager = ontology.getOWLOntologyManager();\n OWLDataFactory factory = manager.getOWLDataFactory();\n OWLAxiom newAxiom;\n if (axiom instanceof OWLSubClassOfAxiom) {\n OWLSubClassOfAxiom x = ((OWLSubClassOfAxiom) axiom);\n newAxiom = factory.getOWLSubClassOfAxiom(x.getSubClass(), x.getSuperClass(), annotations);\n logger.debug(\"ANNOTATED: \" + newAxiom);\n } else {\n // TODO - See https://github.com/ontodev/robot/issues/67\n throw new UnsupportedOperationException(\n \"Cannot annotate axioms of type: \" + axiom.getClass());\n }\n manager.removeAxiom(ontology, axiom);\n manager.addAxiom(ontology, newAxiom);\n }", "public static void addOntologyAnnotation(\n OWLOntology ontology, IRI propertyIRI, OWLAnnotationValue value) {\n OWLOntologyManager manager = ontology.getOWLOntologyManager();\n OWLDataFactory df = manager.getOWLDataFactory();\n\n OWLAnnotationProperty property = df.getOWLAnnotationProperty(propertyIRI);\n OWLAnnotation annotation = df.getOWLAnnotation(property, value);\n addOntologyAnnotation(ontology, annotation);\n }", "OWLOntologyID addOntology(OntologyInputSource<?> ontology);", "public void Annotation(Annotation _this) {\n this.NamedElement(_this);\n }", "private void annotateWord(JCas aJCas, Element word) throws AnalysisEngineProcessException {\n String wordId = word.getAttribute(\"wid\");\n String lemma = word.getAttribute(\"lem\");\n String surfaceForm = word.getAttribute(\"wd\");\n String start = word.getAttribute(\"start\");\n\n checkAttribute(wordId);\n\n wordIdToWord.put(wordId, word);\n\n Word ann = new Word(aJCas);\n ann.setWordId(wordId);\n\n if (isElliptical(word)) {\n String elliptical = word.getAttribute(\"elliptical\");\n ann.setElliptical(elliptical);\n } else {\n checkAttribute(lemma);\n checkAttribute(surfaceForm);\n checkAttribute(start);\n\n ann.setLemma(lemma);\n\n Integer begin = getWordBegin(word);\n Integer end = getWordEnd(word);\n if (begin < 0 || end < 0) {\n throw new AnalysisEngineProcessException(\n \"Word elements do not have a valid 'start' attribute.\", null);\n }\n ann.setBegin(begin);\n ann.setEnd(end);\n }\n\n setGoldStandardComponentId(ann);\n ann.addToIndexes();\n }", "RDFProperty createAnnotationProperty(String name);", "public Framework_annotation<T> build_annotation();", "public void addOntology(String ontology)\n\t{\n\t\t// add current prefixes first\n\t\tString prefixes = \"\";\n\t\tfor(String prefixDeclaration:this.neededPrefixesForQueries)\n\t\t{\n\t\t\tprefixes = prefixes + \"@prefix \" + prefixDeclaration + \".\\n\";\n\t\t}\n\t\tprefixes += \"\\n\";\n\t\t\n\t\tontology = prefixes + ontology;\n\t\t\n\t\t// add new ontology to model\n\t\tthis.model.read(new ByteArrayInputStream(ontology.getBytes(StandardCharsets.UTF_8)), null, \"TTL\");\n\t\t\n\t\t// re-populate prefix mappings\n\t\tthis.populatePrefixMappings(model);\n\t}", "public void indexAnnotation(Annotation note);", "public final void annotations() throws RecognitionException {\n int annotations_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"annotations\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(527, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 70) ) { return ; }\n // Java.g:528:5: ( ( annotation )+ )\n dbg.enterAlt(1);\n\n // Java.g:528:9: ( annotation )+\n {\n dbg.location(528,9);\n // Java.g:528:9: ( annotation )+\n int cnt88=0;\n try { dbg.enterSubRule(88);\n\n loop88:\n do {\n int alt88=2;\n try { dbg.enterDecision(88);\n\n int LA88_0 = input.LA(1);\n\n if ( (LA88_0==73) ) {\n int LA88_2 = input.LA(2);\n\n if ( (LA88_2==Identifier) ) {\n int LA88_3 = input.LA(3);\n\n if ( (synpred128_Java()) ) {\n alt88=1;\n }\n\n\n }\n\n\n }\n\n\n } finally {dbg.exitDecision(88);}\n\n switch (alt88) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:0:0: annotation\n \t {\n \t dbg.location(528,9);\n \t pushFollow(FOLLOW_annotation_in_annotations2704);\n \t annotation();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt88 >= 1 ) break loop88;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(88, input);\n dbg.recognitionException(eee);\n\n throw eee;\n }\n cnt88++;\n } while (true);\n } finally {dbg.exitSubRule(88);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 70, annotations_StartIndex); }\n }\n dbg.location(529, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"annotations\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public metadslx.languages.soal.Annotation AnnotatedElement_addAnnotation(metadslx.languages.soal.AnnotatedElement _this, String name) {\n throw new UnsupportedOperationException();\n }", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "public void annotate(String annotation) {\n if (isActive())\n itemBuffer.offer(new Tag(System.currentTimeMillis(), credentials.user, annotation));\n }", "public void setExternalAnnotationsPath(IPath path);", "public void addAnnotation(ArtifactAnnotation newAnnotation) throws OseeCoreException {\n\n // Update attribute if it already exists\n for (Attribute<String> attr : getAttributes()) {\n ArtifactAnnotation annotation = new ArtifactAnnotation(attr.getValue());\n if (newAnnotation.equals(annotation)) {\n attr.setValue(newAnnotation.toXml());\n return;\n }\n }\n artifact.addAttribute(CoreAttributeTypes.Annotation, newAnnotation.toXml());\n }", "public void addAnnotation(Annotation annotation) {\r\n\t\tannotations.add(annotation);\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Encodes a nonnull String.
@Override public void encodeString(String att) throws IllegalArgumentException, MALException { EncodingHelper.checkForNull(att); internalEncodeAttributes(Constants.STRING, att); }
[ "Value encodeNull();", "java.lang.String getEncode();", "public String encodeValue(String value) {\r\n\t\treturn (null == value) ? \"\" : JSONUtil.encodeString(value);\r\n\t}", "public static String encode (String inputStr) {\n\t\t\n\t\t// input data check\n\t\tif( inputStr == null ) {\n\t\t\treturn inputStr;\n\t\t}\n\t\t\n\t\tbyte[] inputByte = inputStr.getBytes();\n\t\treturn encode(inputByte);\n\t}", "public String encode(String strToEncode) throws PhoneticEncoderException;", "private void encodeStringLiteral(ByteBuf out, CharSequence string) {\n int huffmanLength;\n if (string.length() >= huffCodeThreshold\n && (huffmanLength = hpackHuffmanEncoder.getEncodedLength(string)) < string.length()) {\n encodeInteger(out, 0x80, 7, huffmanLength);\n hpackHuffmanEncoder.encode(out, string);\n } else {\n encodeInteger(out, 0x00, 7, string.length());\n if (string instanceof AsciiString) {\n // Fast-path\n AsciiString asciiString = (AsciiString) string;\n out.writeBytes(asciiString.array(), asciiString.arrayOffset(), asciiString.length());\n } else {\n // Only ASCII is allowed in http2 headers, so it is fine to use this.\n // https://tools.ietf.org/html/rfc7540#section-8.1.2\n out.writeCharSequence(string, CharsetUtil.ISO_8859_1);\n }\n }\n }", "java.lang.String getEncoded();", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "void writeString(String value);", "public static String returnEncoded(String text) {\n if (text == null) {\n return null;\n }\n return Base64.encodeToString(text.getBytes(), Base64.NO_WRAP);\n }", "protected void putString (String s)\n {\n\tif (s == null) {\n\t put8 (0);\n\t return;\n\t}\n\n\tint len = s.length ();\n\n\tif (len > 254)\n\t throw new IllegalArgumentException ();\n\tput8 (len + 1);\n\tfor (int i = 0; i < len; i++)\n\t put16 ((int) s.charAt (i));\n\tput16 (0);\n }", "private static String encode(String s){\n int n=s.length();\n if(n==0)\n return s;\n // First check whether we actually need to encode\n for(int i=0;;){\n if(s.charAt(i)>='\\u0080')\n break;\n if(++i>=n)\n return s;\n }\n String ns=Normalizer.normalize(s,Normalizer.Form.NFC);\n ByteBuffer bb=null;\n try{\n bb=ThreadLocalCoders.encoderFor(\"UTF-8\")\n .encode(CharBuffer.wrap(ns));\n }catch(CharacterCodingException x){\n assert false;\n }\n StringBuffer sb=new StringBuffer();\n while(bb.hasRemaining()){\n int b=bb.get()&0xff;\n if(b>=0x80)\n appendEscape(sb,(byte)b);\n else\n sb.append((char)b);\n }\n return sb.toString();\n }", "@VTID(70)\r\n void setNullString(\r\n java.lang.String rhs);", "void writeUTF(String s) throws IOException;", "public void add_string(String val) throws Exception\r\n {\r\n if(val.length() > 0)\r\n {\r\n byte[] temp = val.getBytes(\"UTF8\");\r\n add_bytes(temp,temp.length);\r\n if(temp[temp.length - 1] != 0)\r\n add_byte((byte)0);\r\n }\r\n else\r\n add_byte((byte)0);\r\n }", "abstract boolean isStringEncoded();", "public IoBuffer putString(CharSequence val, CharsetEncoder encoder)\n throws CharacterCodingException {\n if (val.length() == 0) {\n return this;\n }\n \n CharBuffer in = CharBuffer.wrap(val);\n encoder.reset();\n \n int expandedState = 0;\n \n for (;;) {\n CoderResult cr;\n if (in.hasRemaining()) {\n cr = encoder.encode(in, buf(), true);\n } else {\n cr = encoder.flush(buf());\n }\n \n if (cr.isUnderflow()) {\n break;\n }\n if (cr.isOverflow()) {\n if (isAutoExpand()) {\n switch (expandedState) {\n case 0:\n autoExpand((int) Math.ceil(in.remaining()\n * encoder.averageBytesPerChar()));\n expandedState++;\n break;\n case 1:\n autoExpand((int) Math.ceil(in.remaining()\n * encoder.maxBytesPerChar()));\n expandedState++;\n break;\n default:\n throw new RuntimeException(\"Expanded by \"\n + (int) Math.ceil(in.remaining()\n * encoder.maxBytesPerChar())\n + \" but that wasn't enough for '\" + val + \"'\");\n }\n continue;\n }\n } else {\n expandedState = 0;\n }\n cr.throwException();\n }\n return this;\n }", "JSString createJSString(String value);", "void appendUTF(String value);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test if moving a white pawn forward more than 1 space after its first move throws an exception
@Test public void forwardMoveTest2(){ board = new Board(); //we will place this pawn at a2 pawn = new Pawn(WHITE, board.getSquareAt(A,TWO)); board.getSquareAt(A,TWO).occupySquare(pawn); //now we will try to move it forward once, then make an illegal move forward.. try{ //first move should be legal pawn.move(board, board.getSquareAt(A,FOUR)); pawn.setPosition(board.getSquareAt(A,FOUR)); pawn.moved(); board.getSquareAt(A,FOUR).evictSquare(); board.getSquareAt(A,FOUR).occupySquare(pawn); try{ //trying to move 2 squares forward again...should be illegal pawn.move(board, board.getSquareAt(A,SIX)); //if no move exception was thrown, we have failed this test fail(); } catch(MoveException e){ //otherwise, we succeeded! } } catch(MoveException e){ //first move should not throw exception fail(); } }
[ "@Test\n\tpublic void forwardMoveTest3(){\n\t\tboard = new Board();\n\t\t//we will place this pawn at a2\n\t\tpawn = new Pawn(WHITE, board.getSquareAt(A,TWO));\n\t\tboard.getSquareAt(A,TWO).occupySquare(pawn);\n\t\t//we will place a black piece in front of it (a3)\n\t\tobstruction = new Pawn(BLACK, board.getSquareAt(A,THREE));\n\t\tboard.getSquareAt(A,THREE).occupySquare(obstruction);\n\t\ttry{\n\t\t\tpawn.move(board, board.getSquareAt(A,THREE));\n\t\t\t//this white pawn should not be allowed to move forward with obstruction\n\t\t\tfail();\n\t\t}\n\t\tcatch(MoveException e){\n\t\t\t//we want a move exception to be thrown here\n\t\t}\n\t}", "@Test\n\tpublic void forwardMoveTest4(){\n\t\tboard = new Board();\n\t\t//we will place this pawn at a7\n\t\tpawn = new Pawn(BLACK, board.getSquareAt(A,SEVEN));\n\t\tboard.getSquareAt(A,SEVEN).occupySquare(pawn);\n\t\t//now we will try to move it forward more than 2 spaces\n\t\ttry{\n\t\t\tpawn.move(board, board.getSquareAt(A, FOUR));\n\t\t\t//if no move exception was thrown, we have failed this test\n\t\t\tfail();\n\t\t}\n\t\tcatch(MoveException e){\n\t\t\t//otherwise, we succeeded!\n\t\t}\n\t}", "private boolean checkPawnMove_OneSpace(Coordinate from, Coordinate to, Board b)\n\t{\n\t\tPlayerColor movingPieceColor = ((ChessPieceDescriptor) b.getPieceAt(from).getDescriptor()).getColor();\n\t\t\n\t\t// verifying that the pawn is moving one space forward\n\t\tif (from.getRowDistance(to) == 1)\n\t\t{\n\t\t\t// making a vertical move\n\t\t\tif (from.getColumnDistance(to) == 0) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t// verifying that there are no pieces at the \n\t\t\t\t// destination\n\t\t\t\tif (b.getPieceAt(to) == null)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// if there is, not a pawn move\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// pawn is attempting to capture an enemy\n\t\t\telse if (from.getColumnDistance(to) == 1)\n\t\t\t{\n\t\t\t\t// checking movement for a black pawn\n\t\t\t\tif (movingPieceColor.equals(PlayerColor.BLACK))\n\t\t\t\t{\n\t\t\t\t\tif (from.getRow() - 1 == to.getRow())\n\t\t\t\t\t{\n\t\t\t\t\t\t// verifying that the captured piece is not the same color\n\t\t\t\t\t\treturn checkForPieceAtDestination(to, b, movingPieceColor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// checking movement for a white pawn\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (from.getRow() + 1 == to.getRow())\n\t\t\t\t\t{\n\t\t\t\t\t\t// verifying that the captured piece is not the same color\n\t\t\t\t\t\treturn checkForPieceAtDestination(to, b, movingPieceColor);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// conditions were not met to make a one space move\n\t\treturn false;\n\t}", "@Test\n public void testValidMove() {\n \n // 1 space\n int newX = 0;\n int newY = 2;\n boolean expResult = true;\n boolean result = pawn.validMove(newX, newY);\n assertEquals(expResult, result);\n // 2 spaces\n newX = 0;\n newY = 3;\n expResult = true;\n result = pawn.validMove(newX, newY);\n assertEquals(expResult, result);\n // illegal 2 space\n pawn.y = 3;\n newX = 0;\n newY = 5;\n expResult = false;\n result = pawn.validMove(newX, newY);\n assertEquals(expResult, result);\n // illegal horizontal\n newX = 1;\n newY = 3;\n expResult = false;\n result = pawn.validMove(newX, newY);\n assertEquals(expResult, result);\n }", "private static void validatePawnSingleForwardMove(int currRow, int currCol, int destRow, int destCol){\n PieceTests.validatePawnForwardMove(currRow, currCol, destRow, destCol, 1);\n }", "private static void invalidMove() {\n int min = (_nStones > _removalUpper) ? _removalUpper : _nStones;\n System.out.println(\"Invalid move. You must remove between 1 and \" \n + String.valueOf(min) \n + \" stones.\\n\");\n }", "@Test\n\tpublic void InvalidMove_CannotMoveOnGreenFace(){\n\t\tRunGame game = new RunGame();\n\t\tint FacePosX = 1;\n\t\tint FacePosY = 1;\n\t\t\n\t\tgame.AddPieceOnBoard(game.green,game.board , game.green.findPiece(\"a\"));\n\t\tgame.movePieceOnBoard(game.green.getPieceInGame(\"a\"), \"up\", game.green, game.board);\n\t\tgame.movePieceOnBoard(game.green.getPieceInGame(\"a\"), \"left\", game.green, game.board);\n\t\tSystem.out.println(game.green.getPieceInGame(\"a\").getPosY());\n\t\t\n\t\tassert \n\t\t\t\tgame.green.getPieceInGame(\"a\").getPosX() == FacePosX &&\n\t\t\t\t\t\tgame.green.getPieceInGame(\"a\").getPosY() == FacePosY+1 ;\t\t\n\t}", "private boolean checkValidMovePawn(ChessPiece piece, Coordinate from, Coordinate to, Board b)\n\t{\n\t\tint fromColumn = from.getColumn();\n\t\tint fromRow = from.getRow();\n\t\tint toColumn = to.getColumn();\n\t\tint toRow = to.getRow();\n\t\t\n\t\tint columnDiff = Math.abs(fromColumn - toColumn);\n\t\tint rowDiff = Math.abs(fromRow - toRow);\n\t\tdouble hypotenuse = getHypotenuse(columnDiff, rowDiff);\n\t\tCoordinate nextSpace;\n\t\tCoordinate twoSpacesAway;\n\t\t\n\t\t// Pawn can't move if it reaches the end of the board\n\t\tif (fromRow == 1 || fromRow == 8) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// Pawn can't move more than 2 spaces forward or 1 space diagonally\n\t\tif (rowDiff > 2 || (hypotenuse > Math.sqrt(2) && fromColumn != toColumn)) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t// Row numbers are different based on pawn color\n\t\tswitch (piece.getColor()) \n\t\t{\n\t\t\tcase WHITE:\n\t\t\t\t// Cannot move backwards or sideways\n\t\t\t\tif ((fromRow > toRow || toColumn != fromColumn) && fromRow >= toRow) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t// Get adjacent spaces on the board\n\t\t\t\tnextSpace = makeCoordinate(fromColumn, fromRow + 1);\n\t\t\t\ttwoSpacesAway = makeCoordinate(fromColumn, fromRow + 2);\n\n\t\t\t\t// Pawns are able to move forward two spaces if they are on their starting position\n\t\t\t\tif (!piece.hasMoved && rowDiff == 2 && !b.isSpaceOccupied(nextSpace)\n\t\t\t\t\t&& !b.isSpaceOccupied(twoSpacesAway) && fromColumn == toColumn) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Otherwise, they move only one space\n\t\t\t\tif (fromRow >= 2 && rowDiff == 1 && !b.isSpaceOccupied(nextSpace)\t&& fromColumn == toColumn) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Able to capture an opponent piece that is diagonally left or right forward one space\n\t\t\t\tif (b.isSpaceOccupied(to) && toRow == fromRow + 1 && (toColumn == fromColumn + 1 || toColumn == fromColumn - 1)) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BLACK:\n\t\t\t\t// Cannot move backwards or sideways\n\t\t\t\tif ((fromRow < toRow || toColumn != fromColumn) && fromRow <= toRow) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t// Get adjacent spaces on the board\n\t\t\t\tnextSpace = makeCoordinate(fromColumn, fromRow - 1);\n\t\t\t\ttwoSpacesAway = makeCoordinate(fromColumn, fromRow - 2);\n\n\t\t\t\t// Pawns are able to move forward two spaces if they are on their starting position\n\t\t\t\tif (!piece.hasMoved && rowDiff == 2 && !b.isSpaceOccupied(nextSpace)\n\t\t\t\t\t&& !b.isSpaceOccupied(twoSpacesAway) && fromColumn == toColumn) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Otherwise, they move only one space\n\t\t\t\tif (fromRow >= 2 && rowDiff == 1 && !b.isSpaceOccupied(nextSpace)\t&& fromColumn == toColumn) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Able to capture an opponent piece that is diagonally left or right forward one space\n\t\t\t\tif (b.isSpaceOccupied(to) && toRow == fromRow - 1 && (toColumn == fromColumn + 1 || toColumn == fromColumn - 1)) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t}\n\t\treturn false;\n\t}", "@Test\n\tpublic void MovePieceOutOfBounds(){\n\t\tRunGame game = new RunGame();\n\t\t\n\t\tgame.AddPieceOnBoard(game.Current,game.board , game.Current.findPiece(\"a\"));\n\t\t\n\t\tgame.movePieceOnBoard(game.Current.getPieceInGame(\"a\"), \"down\", game.Current, game.board);\n\t\tgame.movePieceOnBoard(game.Current.getPieceInGame(\"a\"), \"down\", game.Current, game.board);\n\t\tgame.movePieceOnBoard(game.Current.getPieceInGame(\"a\"), \"down\", game.Current, game.board);\n\t\t\n\t\tassert game.Current.getPieceInGame(\"a\") == null;\t\t\n\t}", "@Test\n public void isNotPiecesMoveWhite(){\n game.chessBoard.clearBoard();\n pawnW = new Pawn(squareC4, Colour.WHITE);\n squareC4.setOccupiedBy(pawnW);\n // wrong direction\n assertFalse(pawnW.isPiecesMove(game.chessBoard.getBoard()[2][5], game.chessBoard));\n // first move too far\n assertFalse(pawnW.isPiecesMove(squareC8, game.chessBoard));\n //second move too far\n pawnW.setNotMoved(false);\n assertFalse(pawnW.isPiecesMove(squareC6, game.chessBoard));\n }", "public void checkMoveOrPass(){\n if (this.xTokens.size() > 0) {\n this.diceRoller = false;} \n else { //if no tokens to move, pass and let player roll dice\n this.turn++;\n //System.out.println(\"next turn player \" + this.players[currentPlayer].getColor());\n }\n this.currentPlayer = this.xPlayers.get(this.turn % this.xPlayers.size());\n }", "private boolean isLastMoveRochade()\r\n\t{\r\n\t\tMove lastMove = getLastMove();\r\n\t\tif (lastMove == null) return false;\r\n\t\tPiece king = lastMove.to.piece;\r\n\t\tif (!(king instanceof King)) return false;\r\n\t\t\r\n\t\tint y = king.getColor().equals(Color.WHITE) ? 0 : 7;\r\n\t\tif (lastMove.to.coordinate.y != y) return false;\r\n\t\t\r\n\t\tint xDiffAbs = Math.abs(lastMove.to.coordinate.x - lastMove.from.coordinate.x); \r\n\t\treturn xDiffAbs == 2;\r\n\t}", "private boolean isLastMoveEnPassentCapture()\r\n\t{\r\n\t\tMove lastMove = getLastMove();\r\n\t\tif (lastMove == null) return false;\r\n\t\tif (appliedMoves.size() - 2 < 0) return false;\r\n\t\tMove beforeLastMove = appliedMoves.get(appliedMoves.size() - 2);\r\n\t\tif (beforeLastMove == null) return false;\r\n\t\t\r\n\t\tif (!(lastMove.capture instanceof Pawn)) return false;\r\n\t\tif (Math.abs(lastMove.from.coordinate.x - lastMove.to.coordinate.x) != 1) return false;\r\n\t\tif (Math.abs(lastMove.from.coordinate.y - lastMove.to.coordinate.y) != 1) return false;\r\n\r\n\t\t//Move before must have been a double move\r\n\t\tif (Math.abs(beforeLastMove.from.coordinate.y - beforeLastMove.to.coordinate.y) != 2) return false;\r\n\t\t//Pawn must have been removed\r\n\t\tif (fields[beforeLastMove.to.coordinate.x][beforeLastMove.to.coordinate.y].piece != null) return false;\r\n\t\t//Before last move's target must be on same y coordinate as from coordinate of last move\r\n\t\tif (beforeLastMove.to.coordinate.y != lastMove.from.coordinate.y) return false;\r\n\t\t//Before last move's target must be only one x coordinate away from coordinate of last move\r\n\t\tif (Math.abs(beforeLastMove.to.coordinate.x - lastMove.from.coordinate.x) != 1) return false;\r\n\t\t\r\n\t\treturn true;\r\n\t}", "private boolean isNextMoveRochade(Move move)\r\n\t{\r\n\t\tif (!(move.from.piece instanceof King)) return false;\r\n\t\tint xDiffAbs = Math.abs(move.to.coordinate.x - move.from.coordinate.x); \r\n\t\treturn xDiffAbs == 2;\r\n\t}", "private void CheckApplyMove(Move move){\n Position start = new Position(move.GetStartX(), move.GetStartY());\n Position end = new Position(move.GetEndX(), move.GetEndY());\n Piece temp = m_boardState[start.GetX()][start.GetY()];\n m_lastPieceTaken = m_boardState[end.GetX()][end.GetY()];\n m_boardState[start.GetX()][start.GetY()] = null;\n m_boardState[end.GetX()][end.GetY()] = temp;\n }", "private void checkMove() {\n\t\tif (!hit()) {\n\t\t\tupdated();\n\t\t} else {\n\t\t\tshapeBoard.rollBack();\n\t\t}\n\t}", "public void move() throws IllegalArgumentException {\n if (this.player.turnValue == TurnValue.MOVEMENT && turnDone == false) {\n\n this.clicker = true;\n this.cheatButton.setActive(true);\n this.uncoverRender.getStage().clear();\n this.uncoverButton.setActive(true);\n\n if (this.player.getCurrentField().isWinField() == true) {\n this.player.turnValue = TurnValue.WON;\n }\n\n if (this.getArrowActors().getArrowActorDown() != null) {\n this.getArrowActors().setArrowActorDown(null);\n }\n if (this.getArrowActors().getArrowActorLeft() != null) {\n this.getArrowActors().setArrowActorLeft(null);\n }\n if (this.getArrowActors().getArrowActorRight() != null) {\n this.getArrowActors().setArrowActorRight(null);\n }\n if (this.getArrowActors().getArrowActorUp() != null) {\n this.getArrowActors().setArrowActorUp(null);\n }\n\n\n\n if (this.player.getRemainingSteps() <= 0) {\n if (this.player.getCurrentField().isWinField() == true) {\n this.player.turnValue = TurnValue.WON;\n }\n this.player.turnValue = TurnValue.TRAPCHECK;\n }\n\n if (this.player.getCurrentField().getFollowingFields().size() == 1) {\n if (animationCounter == 0) {\n this.player.setCurrentField(player.getCurrentField().getFollowingField(0));\n this.player.setRemainingSteps(this.player.getRemainingSteps() - 1);\n Vector2 playerPosition = new Vector2(player.getCurrentField().getCoordinates().x + 64, player.getCurrentField().getCoordinates().y + 184);\n this.player.setPosition(playerPosition);\n animationCounter = 20;\n if (this.player.getCurrentField().getFieldImage().getImg().equals(new Texture(\"bodenLabyrixZiel.png\"))) {\n this.player.turnValue = TurnValue.WON;\n }\n }\n animationCounter--;\n }\n if (this.player.getCurrentField().getFollowingFields().size() > 1 && this.player.getRemainingSteps() > 0) {\n this.player.turnValue = TurnValue.PATHSELECTION;\n }\n } else {\n throw new IllegalArgumentException(\"Move - Wrong TurnValue or Turn not done\");\n\n }\n }", "private int moveOnce() {\n Direction dir = controller.getDirection();\n //yieldMoving();\n try {\n if(controller.canMove(dir)) {\n controller.moveForward();\n controller.yield();\n player.pathStepTakenCallback();\n return Status.success;\n }\n return Status.cantMoveThere;\n } catch(Exception e) {\n System.out.println(\"----Caught Exception in moveOnce dir: \" + dir.toString() + \" Exception: \" + e.toString());\n }\n return Status.fail;\n }", "@Test\n\tpublic void InvalidMove_CannotMoveOnYellowFace(){\n\t\tRunGame game = new RunGame();\n\t\tint FacePosX = 8;\n\t\tint FacePosY = 8;\n\t\t\n\t\tgame.AddPieceOnBoard(game.yellow,game.board , game.yellow.findPiece(\"a\"));\n\t\tgame.movePieceOnBoard(game.yellow.getPieceInGame(\"a\"), \"right\", game.yellow, game.board);\n\t\tgame.movePieceOnBoard(game.yellow.getPieceInGame(\"a\"), \"down\", game.yellow, game.board);\n\t\t\n\t\t\n\t\tassert \n\t\t\t\tgame.yellow.getPieceInGame(\"a\").getPosY() == FacePosY &&\n\t\t\t\t\t\tgame.yellow.getPieceInGame(\"a\").getPosX() == FacePosX-1 ;\t\t\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Defines the default alignment for the given column.
public <T> EmfDataTableDivBuilder<R> setAlignment(IDataTableColumn<R, T> column, CssTextAlign alignment) { config.getColumnSettings(column).setAlignment(alignment); return this; }
[ "void setColumnAlignment(Table.Column column, Table.ColumnAlignment alignment);", "void setColumnalign(String columnalign);", "void setColumnAlignment(String columnId, Table.ColumnAlignment alignment);", "public void setDefaultAlign ( String defaultAlign ) {\r\n\t\tgetStateHelper().put(PropertyKeys.defaultAlign, defaultAlign);\r\n\t\thandleAttribute(\"defaultAlign\", defaultAlign);\r\n\t}", "@Override\n public Cell columnDefaults(int column) {\n return super.columnDefaults(column);\n }", "void setRowalign(String rowalign);", "public void setAlignment(java.lang.Object value) {\n this.alignment = value;\n }", "public void setAlignment(String value) {\n alignment = value;\n stateChanged();\n }", "public void setAlign( String value ) throws Jaxception\n {\n setProperty( \"align\", value );\n }", "protected String getDefaultColumnName(int col)\r\n {\n return \"\";\r\n }", "public Alignment getCellAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"cellAlign\"));\r\n }", "public final String getAlignAttribute() {\n return getAttributeValue(\"align\");\n }", "public void setAlignment(Alignment newValue) {\n set(PROPERTY_ALIGNMENT, newValue);\n }", "String getAlignment();", "protected XSSFCellAlignment getCellAlignment() {\n if (this._cellAlignment == null) {\n \tCTCellAlignment ctAlign = _ctDxf.addNewAlignment();\n this._cellAlignment = new XSSFCellAlignment(ctAlign);\n }\n return this._cellAlignment;\n }", "public String getAlignment();", "public String getAlign();", "public String getColumnDefault()\r\n {\r\n return getString(13);\r\n }", "public void setTextAlign(TEXT_ALIGN align);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
bool ownerSupportAR = 4;
boolean getOwnerSupportAR();
[ "public boolean getOwnerSupportAR() {\n return ownerSupportAR_;\n }", "public boolean getOwnerSupportAR() {\n return ownerSupportAR_;\n }", "public Builder setOwnerSupportAR(boolean value) {\n \n ownerSupportAR_ = value;\n onChanged();\n return this;\n }", "boolean isCameraBurstPref();", "boolean isPorDef();", "private boolean canMakeRadar() {\n // TODO\n return false;\n }", "boolean isAutorisationUtilisation();", "default boolean isBear() {\n return false;\n }", "private static boolean showCarPrefs() {\r\n return Game.i.mode() == GameMode.BASE || Game.i.mode() == GameMode.CHASECAR;\r\n }", "boolean isReparableA12H();", "boolean isArchpoint();", "public boolean isTargetRC() { return isTargetRC; }", "public static boolean useSetModeToHackSpeaker(){\n return (isSamsung() && !isSamsungGalaxyMini() && getSDKVersion()<= 7) ||\n \n sBuildModel.equalsIgnoreCase(\"blade\") ||\t\t// ZTE Blade\n \n sBuildModel.equalsIgnoreCase(\"htc_supersonic\") || //HTC EVO\n \n sBuildModel.equalsIgnoreCase(\"U8110\") || // Huawei U8110\n sBuildModel.equalsIgnoreCase(\"U8150\") // Huawei U8110\n \n ;\n }", "public boolean isAenar() {\n return aenar;\n }", "public void pacBoostTrue(){\n\t\tpacBoost = true;\n\t}", "public boolean isArm() {\r\n return getFamily() == Family.ARM32BIT;\r\n }", "public abstract void setVrMode(boolean enabled);", "private boolean isARCoreSupportedAndUpToDate() {\n boolean res=false;\n ArCoreApk.Availability availability = ArCoreApk.getInstance().checkAvailability(this);\n switch (availability) {\n case SUPPORTED_INSTALLED:\n res= true;\n// Toast.makeText(this, \"supported\", Toast.LENGTH_SHORT).show();\n\n case SUPPORTED_APK_TOO_OLD:\n case SUPPORTED_NOT_INSTALLED:\n try {\n // Request ARCore installation or update if needed.\n ArCoreApk.InstallStatus installStatus = ArCoreApk.getInstance().requestInstall(this, true);\n switch (installStatus) {\n case INSTALL_REQUESTED:\n Log.i(TAG, \"ARCore installation requested.\");\n res= false;\n case INSTALLED:\n res= true;\n }\n } catch (UnavailableException e) {\n Log.e(TAG, \"ARCore not installed\", e);\n }\n res= false;\n\n case UNSUPPORTED_DEVICE_NOT_CAPABLE:\n // This device is not supported for AR.\n res= false;\n\n case UNKNOWN_CHECKING:\n // ARCore is checking the availability with a remote query.\n // This function should be called again after waiting 200 ms to determine the query result.\n case UNKNOWN_ERROR:\n case UNKNOWN_TIMED_OUT:\n // There was an error checking for AR availability. This may be due to the device being offline.\n // Handle the error appropriately.\n }\n return res;\n }", "public boolean isValid(){\n\t\treturn this.arm.isValid();\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get all options to hide
private void hide_search_course_options(){ CheckBox listA = (CheckBox) view.findViewById(R.id.list_a); CheckBox listB = (CheckBox) view.findViewById(R.id.list_b); CheckBox obligatory = (CheckBox) view.findViewById(R.id.obligatory); CheckBox freeChoice = (CheckBox) view.findViewById(R.id.free_choice); Spinner faculties = (Spinner) view.findViewById(R.id.search_faculties); //hide the options listA.setVisibility(View.GONE); listB.setVisibility(View.GONE); obligatory.setVisibility(View.GONE); freeChoice.setVisibility(View.GONE); faculties.setVisibility(View.GONE); //set button text to "tap for search options" Button optionsButton = (Button) view.findViewById(R.id.search_options_button); optionsButton.setText("Tap to show search options"); isHidden = true; }
[ "protected void hideOptions(){\n mOptionList.setClickable(false);\n mOptionList.setVisibility(View.INVISIBLE);\n }", "public List<WebElement> getallOptions() { return se.getOptions(); }", "List<WebElement> getAllOptions();", "public void hideElements() {\n String[] allTextFields = concat(oscTextFieldNames, udpTextFieldNames);\n allTextFields = concat(allTextFields, lslTextFieldNames);\n hideAllTextFields(allTextFields);\n\n cp5_networking_dropdowns.get(ScrollableList.class, \"dataType1\").setVisible(false);\n cp5_networking_dropdowns.get(ScrollableList.class, \"dataType2\").setVisible(false);\n cp5_networking_dropdowns.get(ScrollableList.class, \"dataType3\").setVisible(false);\n cp5_networking_dropdowns.get(ScrollableList.class, \"dataType4\").setVisible(false);\n cp5_networking_portName.get(ScrollableList.class, \"port_name\").setVisible(false);\n cp5_networking_baudRate.get(ScrollableList.class, \"baud_rate\").setVisible(false);\n\n cp5_networking.get(RadioButton.class, \"filter1\").setVisible(false);\n cp5_networking.get(RadioButton.class, \"filter2\").setVisible(false);\n cp5_networking.get(RadioButton.class, \"filter3\").setVisible(false);\n cp5_networking.get(RadioButton.class, \"filter4\").setVisible(false);\n\n }", "void hideNoneParametersView();", "public final void hideItems() {\r\n dropDown.hide();\r\n }", "public void disableAllChips() {\r\n betOptionsPanel.setVisible(false);\r\n betOptions.values().forEach((betOption) -> {\r\n betOption.setEnabled(false);\r\n betOption.setVisible(false);\r\n });\r\n }", "public void disableAllChoices() {\r\n playOptionsPanel.setVisible(false);\r\n playOptions.values().forEach((playOption) -> {\r\n playOption.setEnabled(false);\r\n playOption.setVisible(false);\r\n });\r\n }", "private static void hideFilters(List<HealthDataFilter> allFilters) {\n Set<String> userHideFilterChoices = PreferenceUtility.getUserHideFilterChoices();\n if (userHideFilterChoices==null){\n if (AppConstant.DEBUG) Log.i(\"AppUtility:\"+\">\",\"Was no saved hidden filter\");\n return;\n }\n Iterator<HealthDataFilter> iterator = allFilters.iterator();\n while (iterator.hasNext()) {\n HealthDataFilter next = iterator.next();\n // if (next.getFilterName().equals(\"QUEENS\")){\n if (userHideFilterChoices.contains(next.getFilterName())){\n iterator.remove();\n }\n }\n }", "private boolean[] unhideAll() {\n List<TableColumn> columns =\n ((DefaultTableColumnModelExt) this.treeTbl.getColumnModel()).getColumns(true);\n boolean[] hidden = new boolean[columns.size()];\n int i = 0;\n for (TableColumn column : columns) {\n TableColumnExt columnExt = (TableColumnExt) column;\n hidden[i++] = columnExt.isVisible();\n columnExt.setVisible(true);\n }\n return hidden;\n }", "public static void hideChoiceButtons() {\n\t\tview.choice1.setVisible(false);\n\t\tview.choice2.setVisible(false);\n\t\tview.choice3.setVisible(false);\n\t\tview.choice4.setVisible(false);\n\t}", "List<WebElement> getAllSelectedOptions();", "public List<WebElement> allSelectedOptions() { return se.getAllSelectedOptions(); }", "public void hideAllDots()\r\n\t{\r\n\t\t_one.hide();\r\n\t\t_two.hide();\r\n\t\t_three.hide();\r\n\t\t_four.hide();\r\n\t\t_five.hide();\r\n\t\t_six.hide();\r\n\t}", "List<String> getAllOptionTexts();", "public List<WebElement> getOptions() {\n selectBox = new Select(getUnderlyingWebElement());\n return selectBox.getOptions();\n }", "public void hideClusterItems() {\n\n\t\tfor (EASTINProperty prop : activeETNACluster.getAttributesToHide()) {\n\t\t\tif (activeETNACluster.getAttributesToShowInView().contains(prop))\n\t\t\t\tactiveETNACluster.getAttributesToShowInView().remove(prop);\n\t\t}\n\n\t\tfor (EASTINProperty prop : activeETNACluster.getMeasuresToHide()) {\n\t\t\tif (activeETNACluster.getMeasuresToShowInView().contains(prop))\n\t\t\t\tactiveETNACluster.getMeasuresToShowInView().remove(prop);\n\t\t}\n\n\t\tthis.activeETNACluster.setShowItems(true);\n\n\t}", "public void hideAllBoxes() {set other CP5 controllers invisible\n //\n cp5.get(Textfield.class, \"fileNameCyton\").setVisible(false);\n cp5.get(Textfield.class, \"staticIPAddress\").setVisible(false);\n cp5.get(Textfield.class, \"fileNameGanglion\").setVisible(false);\n cp5.get(MenuList.class, \"serialList\").setVisible(false);\n cp5.get(MenuList.class, \"bleList\").setVisible(false);\n //cp5.get(MenuList.class, \"sdTimes\").setVisible(false);\n cp5.get(MenuList.class, \"wifiList\").setVisible(false);\n cp5Popup.get(MenuList.class, \"channelListCP\").setVisible(false);\n cp5Popup.get(MenuList.class, \"pollList\").setVisible(false);\n }", "private void hidePersonals()\n {\n \tfor(int x = 0; x < cmdEditPersons.length; x++)\n \t{\n \t\tcmdEditPersons[x].setVisible(false);\n \t}\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "parse_org_emftext_language_textAML3_Variable" $ANTLR start "parse_org_emftext_language_textAML3_ContainmentVariable" TextAML3.g:3667:1: parse_org_emftext_language_textAML3_ContainmentVariable returns [org.emftext.language.textAML3.ContainmentVariable element = null] : (a0= VARID ) a1= ':' (a2= REFERENCE ) ;
public final org.emftext.language.textAML3.ContainmentVariable parse_org_emftext_language_textAML3_ContainmentVariable() throws RecognitionException { org.emftext.language.textAML3.ContainmentVariable element = null; int parse_org_emftext_language_textAML3_ContainmentVariable_StartIndex = input.index(); Token a0=null; Token a1=null; Token a2=null; try { if ( state.backtracking>0 && alreadyParsedRule(input, 17) ) { return element; } // TextAML3.g:3670:2: ( (a0= VARID ) a1= ':' (a2= REFERENCE ) ) // TextAML3.g:3671:2: (a0= VARID ) a1= ':' (a2= REFERENCE ) { // TextAML3.g:3671:2: (a0= VARID ) // TextAML3.g:3672:3: a0= VARID { a0=(Token)match(input,VARID,FOLLOW_VARID_in_parse_org_emftext_language_textAML3_ContainmentVariable4058); if (state.failed) return element; if ( state.backtracking==0 ) { if (terminateParsing) { throw new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException(); } if (element == null) { element = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createContainmentVariable(); startIncompleteElement(element); } if (a0 != null) { org.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolver tokenResolver = tokenResolverFactory.createTokenResolver("VARID"); tokenResolver.setOptions(getOptions()); org.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolveResult result = getFreshTokenResolveResult(); tokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.CONTAINMENT_VARIABLE__VARNAME), result); Object resolvedObject = result.getResolvedToken(); if (resolvedObject == null) { addErrorToResource(result.getErrorMessage(), ((org.antlr.runtime3_4_0.CommonToken) a0).getLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getCharPositionInLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStartIndex(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStopIndex()); } java.lang.String resolved = (java.lang.String) resolvedObject; if (resolved != null) { Object value = resolved; element.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.CONTAINMENT_VARIABLE__VARNAME), value); completedElement(value, false); } collectHiddenTokens(element); retrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_17_0_0_0, resolved, true); copyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, element); } } } if ( state.backtracking==0 ) { // expected elements (follow set) addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[438]); } a1=(Token)match(input,21,FOLLOW_21_in_parse_org_emftext_language_textAML3_ContainmentVariable4079); if (state.failed) return element; if ( state.backtracking==0 ) { if (element == null) { element = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createContainmentVariable(); startIncompleteElement(element); } collectHiddenTokens(element); retrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_17_0_0_1, null, true); copyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a1, element); } if ( state.backtracking==0 ) { // expected elements (follow set) addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[439]); } // TextAML3.g:3721:2: (a2= REFERENCE ) // TextAML3.g:3722:3: a2= REFERENCE { a2=(Token)match(input,REFERENCE,FOLLOW_REFERENCE_in_parse_org_emftext_language_textAML3_ContainmentVariable4097); if (state.failed) return element; if ( state.backtracking==0 ) { if (terminateParsing) { throw new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException(); } if (element == null) { element = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createContainmentVariable(); startIncompleteElement(element); } if (a2 != null) { org.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolver tokenResolver = tokenResolverFactory.createTokenResolver("REFERENCE"); tokenResolver.setOptions(getOptions()); org.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolveResult result = getFreshTokenResolveResult(); tokenResolver.resolve(a2.getText(), element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.CONTAINMENT_VARIABLE__CONTAINER), result); Object resolvedObject = result.getResolvedToken(); if (resolvedObject == null) { addErrorToResource(result.getErrorMessage(), ((org.antlr.runtime3_4_0.CommonToken) a2).getLine(), ((org.antlr.runtime3_4_0.CommonToken) a2).getCharPositionInLine(), ((org.antlr.runtime3_4_0.CommonToken) a2).getStartIndex(), ((org.antlr.runtime3_4_0.CommonToken) a2).getStopIndex()); } String resolved = (String) resolvedObject; org.eclipse.emf.ecore.EClass proxy = org.eclipse.emf.ecore.EcoreFactory.eINSTANCE.createEClass(); collectHiddenTokens(element); registerContextDependentProxy(new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ContextDependentURIFragmentFactory<org.emftext.language.textAML3.ContainmentVariable, org.eclipse.emf.ecore.EClass>(getReferenceResolverSwitch() == null ? null : getReferenceResolverSwitch().getContainmentVariableContainerReferenceResolver()), element, (org.eclipse.emf.ecore.EReference) element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.CONTAINMENT_VARIABLE__CONTAINER), resolved, proxy); if (proxy != null) { Object value = proxy; element.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.CONTAINMENT_VARIABLE__CONTAINER), value); completedElement(value, false); } collectHiddenTokens(element); retrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_17_0_0_2, proxy, true); copyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a2, element); copyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a2, proxy); } } } if ( state.backtracking==0 ) { // expected elements (follow set) addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[440]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[441]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[442]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[443]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[444]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[445]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[446]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[447]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[448]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[449]); addExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[450]); addExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[451]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[452]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[453]); addExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[454]); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { // do for sure before leaving if ( state.backtracking>0 ) { memoize(input, 17, parse_org_emftext_language_textAML3_ContainmentVariable_StartIndex); } } return element; }
[ "public final org.emftext.language.textAML3.Variable parse_org_emftext_language_textAML3_Variable() throws RecognitionException {\n org.emftext.language.textAML3.Variable element = null;\n\n int parse_org_emftext_language_textAML3_Variable_StartIndex = input.index();\n\n Token a0=null;\n org.emftext.language.textAML3.ContainmentVariable c0 =null;\n\n\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 16) ) { return element; }\n\n // TextAML3.g:3611:2: ( (a0= VARID ) |c0= parse_org_emftext_language_textAML3_ContainmentVariable )\n int alt38=2;\n int LA38_0 = input.LA(1);\n\n if ( (LA38_0==VARID) ) {\n int LA38_1 = input.LA(2);\n\n if ( (synpred41_TextAML3()) ) {\n alt38=1;\n }\n else if ( (true) ) {\n alt38=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return element;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 38, 1, input);\n\n throw nvae;\n\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return element;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 38, 0, input);\n\n throw nvae;\n\n }\n switch (alt38) {\n case 1 :\n // TextAML3.g:3612:2: (a0= VARID )\n {\n // TextAML3.g:3612:2: (a0= VARID )\n // TextAML3.g:3613:3: a0= VARID\n {\n a0=(Token)match(input,VARID,FOLLOW_VARID_in_parse_org_emftext_language_textAML3_Variable4003); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (terminateParsing) {\n \t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t}\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createVariable();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tif (a0 != null) {\n \t\t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"VARID\");\n \t\t\t\ttokenResolver.setOptions(getOptions());\n \t\t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolveResult result = getFreshTokenResolveResult();\n \t\t\t\ttokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.VARIABLE__VARNAME), result);\n \t\t\t\tObject resolvedObject = result.getResolvedToken();\n \t\t\t\tif (resolvedObject == null) {\n \t\t\t\t\taddErrorToResource(result.getErrorMessage(), ((org.antlr.runtime3_4_0.CommonToken) a0).getLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getCharPositionInLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStartIndex(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStopIndex());\n \t\t\t\t}\n \t\t\t\tjava.lang.String resolved = (java.lang.String) resolvedObject;\n \t\t\t\tif (resolved != null) {\n \t\t\t\t\tObject value = resolved;\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.VARIABLE__VARNAME), value);\n \t\t\t\t\tcompletedElement(value, false);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_16_0_0_0, resolved, true);\n \t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, element);\n \t\t\t}\n \t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[424]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[425]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[426]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[427]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[428]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[429]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[430]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[431]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[432]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[433]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[434]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[435]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[436]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[437]);\n \t}\n\n }\n break;\n case 2 :\n // TextAML3.g:3663:2: c0= parse_org_emftext_language_textAML3_ContainmentVariable\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_ContainmentVariable_in_parse_org_emftext_language_textAML3_Variable4029);\n c0=parse_org_emftext_language_textAML3_ContainmentVariable();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) { element = c0; /* this is a subclass or primitive expression choice */ }\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 16, parse_org_emftext_language_textAML3_Variable_StartIndex); }\n\n }\n return element;\n }", "public final org.emftext.language.textAML3.VariableReference parse_org_emftext_language_textAML3_VariableReference() throws RecognitionException {\n org.emftext.language.textAML3.VariableReference element = null;\n\n int parse_org_emftext_language_textAML3_VariableReference_StartIndex = input.index();\n\n Token a0=null;\n\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 28) ) { return element; }\n\n // TextAML3.g:4874:2: ( (a0= VARID ) )\n // TextAML3.g:4875:2: (a0= VARID )\n {\n // TextAML3.g:4875:2: (a0= VARID )\n // TextAML3.g:4876:2: a0= VARID\n {\n a0=(Token)match(input,VARID,FOLLOW_VARID_in_parse_org_emftext_language_textAML3_VariableReference5354); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\tif (terminateParsing) {\n \t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t}\n \t\tif (element == null) {\n \t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createVariableReference();\n \t\t\tstartIncompleteElement(element);\n \t\t}\n \t\tif (a0 != null) {\n \t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"VARID\");\n \t\t\ttokenResolver.setOptions(getOptions());\n \t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolveResult result = getFreshTokenResolveResult();\n \t\t\ttokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.VARIABLE_REFERENCE__TARGET), result);\n \t\t\tObject resolvedObject = result.getResolvedToken();\n \t\t\tif (resolvedObject == null) {\n \t\t\t\taddErrorToResource(result.getErrorMessage(), ((org.antlr.runtime3_4_0.CommonToken) a0).getLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getCharPositionInLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStartIndex(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStopIndex());\n \t\t\t}\n \t\t\tString resolved = (String) resolvedObject;\n \t\t\torg.emftext.language.textAML3.Variable proxy = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createVariable();\n \t\t\tcollectHiddenTokens(element);\n \t\t\tregisterContextDependentProxy(new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ContextDependentURIFragmentFactory<org.emftext.language.textAML3.VariableReference, org.emftext.language.textAML3.Variable>(getReferenceResolverSwitch() == null ? null : getReferenceResolverSwitch().getVariableReferenceTargetReferenceResolver()), element, (org.eclipse.emf.ecore.EReference) element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.VARIABLE_REFERENCE__TARGET), resolved, proxy);\n \t\t\tif (proxy != null) {\n \t\t\t\tObject value = proxy;\n \t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.VARIABLE_REFERENCE__TARGET), value);\n \t\t\t\tcompletedElement(value, false);\n \t\t\t}\n \t\t\tcollectHiddenTokens(element);\n \t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_22_0_0_0, proxy, true);\n \t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, element);\n \t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, proxy);\n \t\t}\n \t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t// expected elements (follow set)\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[651]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[652]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[653]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[654]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[655]);\n \taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[656]);\n \taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[657]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[658]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[659]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[660]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[661]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[662]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[663]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[664]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[665]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[666]);\n }\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 28, parse_org_emftext_language_textAML3_VariableReference_StartIndex); }\n\n }\n return element;\n }", "public final void synpred41_TextAML3_fragment() throws RecognitionException {\n Token a0=null;\n\n // TextAML3.g:3612:2: ( (a0= VARID ) )\n // TextAML3.g:3612:2: (a0= VARID )\n {\n // TextAML3.g:3612:2: (a0= VARID )\n // TextAML3.g:3613:3: a0= VARID\n {\n a0=(Token)match(input,VARID,FOLLOW_VARID_in_synpred41_TextAML34003); if (state.failed) return ;\n\n }\n\n\n }\n\n }", "public final org.emftext.language.textAML3.TypeRelationReferenceElement parse_org_emftext_language_textAML3_TypeRelationReferenceElement() throws RecognitionException {\n org.emftext.language.textAML3.TypeRelationReferenceElement element = null;\n\n int parse_org_emftext_language_textAML3_TypeRelationReferenceElement_StartIndex = input.index();\n\n Token a0=null;\n Token a1=null;\n org.emftext.language.textAML3.Variable a2_0 =null;\n\n\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 8) ) { return element; }\n\n // TextAML3.g:1866:2: ( (a0= TEXT ) a1= '=' (a2_0= parse_org_emftext_language_textAML3_Variable ) )\n // TextAML3.g:1867:2: (a0= TEXT ) a1= '=' (a2_0= parse_org_emftext_language_textAML3_Variable )\n {\n // TextAML3.g:1867:2: (a0= TEXT )\n // TextAML3.g:1868:3: a0= TEXT\n {\n a0=(Token)match(input,TEXT,FOLLOW_TEXT_in_parse_org_emftext_language_textAML3_TypeRelationReferenceElement1765); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (terminateParsing) {\n \t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t}\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRelationReferenceElement();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tif (a0 != null) {\n \t\t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"TEXT\");\n \t\t\t\ttokenResolver.setOptions(getOptions());\n \t\t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolveResult result = getFreshTokenResolveResult();\n \t\t\t\ttokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.TYPE_RELATION_REFERENCE_ELEMENT__TYPEATTRIBUTE), result);\n \t\t\t\tObject resolvedObject = result.getResolvedToken();\n \t\t\t\tif (resolvedObject == null) {\n \t\t\t\t\taddErrorToResource(result.getErrorMessage(), ((org.antlr.runtime3_4_0.CommonToken) a0).getLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getCharPositionInLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStartIndex(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStopIndex());\n \t\t\t\t}\n \t\t\t\tString resolved = (String) resolvedObject;\n \t\t\t\torg.emftext.language.textAML3.TypeAttribute proxy = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeAttribute();\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tregisterContextDependentProxy(new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ContextDependentURIFragmentFactory<org.emftext.language.textAML3.TypeRelationReferenceElement, org.emftext.language.textAML3.TypeAttribute>(getReferenceResolverSwitch() == null ? null : getReferenceResolverSwitch().getTypeRelationReferenceElementTypeattributeReferenceResolver()), element, (org.eclipse.emf.ecore.EReference) element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.TYPE_RELATION_REFERENCE_ELEMENT__TYPEATTRIBUTE), resolved, proxy);\n \t\t\t\tif (proxy != null) {\n \t\t\t\t\tObject value = proxy;\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.TYPE_RELATION_REFERENCE_ELEMENT__TYPEATTRIBUTE), value);\n \t\t\t\t\tcompletedElement(value, false);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_6_0_0_0, proxy, true);\n \t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, element);\n \t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, proxy);\n \t\t\t}\n \t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[134]);\n \t}\n\n a1=(Token)match(input,24,FOLLOW_24_in_parse_org_emftext_language_textAML3_TypeRelationReferenceElement1786); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\tif (element == null) {\n \t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRelationReferenceElement();\n \t\t\tstartIncompleteElement(element);\n \t\t}\n \t\tcollectHiddenTokens(element);\n \t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_6_0_0_1, null, true);\n \t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a1, element);\n \t}\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRelationReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[135]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRelationReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[136]);\n \t}\n\n // TextAML3.g:1922:2: (a2_0= parse_org_emftext_language_textAML3_Variable )\n // TextAML3.g:1923:3: a2_0= parse_org_emftext_language_textAML3_Variable\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_Variable_in_parse_org_emftext_language_textAML3_TypeRelationReferenceElement1804);\n a2_0=parse_org_emftext_language_textAML3_Variable();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (terminateParsing) {\n \t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t}\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRelationReferenceElement();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tif (a2_0 != null) {\n \t\t\t\tif (a2_0 != null) {\n \t\t\t\t\tObject value = a2_0;\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.TYPE_RELATION_REFERENCE_ELEMENT__VALUE), value);\n \t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_6_0_0_2, a2_0, true);\n \t\t\t\tcopyLocalizationInfos(a2_0, element);\n \t\t\t}\n \t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[137]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[138]);\n \t}\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 8, parse_org_emftext_language_textAML3_TypeRelationReferenceElement_StartIndex); }\n\n }\n return element;\n }", "public final west.twouse.language.owl2fs.Variable parse_west_twouse_language_owl2fs_Variable() throws RecognitionException {\r\n west.twouse.language.owl2fs.Variable element = null;\r\n int parse_west_twouse_language_owl2fs_Variable_StartIndex = input.index();\r\n Token a0=null;\r\n Token a1=null;\r\n Token a3=null;\r\n west.twouse.language.owl2fs.IRI a2_0 = null;\r\n\r\n\r\n\r\n\r\n try {\r\n if ( state.backtracking>0 && alreadyParsedRule(input, 90) ) { return element; }\r\n // Owl2fs.g:15659:1: (a0= 'Variable' a1= '(' (a2_0= parse_west_twouse_language_owl2fs_IRI ) a3= ')' )\r\n // Owl2fs.g:15660:2: a0= 'Variable' a1= '(' (a2_0= parse_west_twouse_language_owl2fs_IRI ) a3= ')'\r\n {\r\n a0=(Token)match(input,98,FOLLOW_98_in_parse_west_twouse_language_owl2fs_Variable11277); if (state.failed) return element;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\tif (element == null) {\r\n \t\t\telement = west.twouse.language.owl2fs.Owl2fsFactory.eINSTANCE.createVariable();\r\n \t\t\tincompleteObjects.push(element);\r\n \t\t}\r\n \t\tcollectHiddenTokens(element);\r\n \t\tretrieveLayoutInformation(element, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsGrammarInformationProvider.OWL2FS_88_0_0_0, null);\r\n \t\tcopyLocalizationInfos((org.antlr.runtime3_2_0.CommonToken)a0, element);\r\n \t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t// expected elements (follow set)\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_281, 483));\r\n \t\r\n }\r\n a1=(Token)match(input,16,FOLLOW_16_in_parse_west_twouse_language_owl2fs_Variable11291); if (state.failed) return element;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\tif (element == null) {\r\n \t\t\telement = west.twouse.language.owl2fs.Owl2fsFactory.eINSTANCE.createVariable();\r\n \t\t\tincompleteObjects.push(element);\r\n \t\t}\r\n \t\tcollectHiddenTokens(element);\r\n \t\tretrieveLayoutInformation(element, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsGrammarInformationProvider.OWL2FS_88_0_0_1, null);\r\n \t\tcopyLocalizationInfos((org.antlr.runtime3_2_0.CommonToken)a1, element);\r\n \t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t// expected elements (follow set)\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_3, 484, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_136));\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_5, 484, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_136));\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_6, 484, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_136));\r\n \t\r\n }\r\n // Owl2fs.g:15690:2: (a2_0= parse_west_twouse_language_owl2fs_IRI )\r\n // Owl2fs.g:15691:3: a2_0= parse_west_twouse_language_owl2fs_IRI\r\n {\r\n pushFollow(FOLLOW_parse_west_twouse_language_owl2fs_IRI_in_parse_west_twouse_language_owl2fs_Variable11309);\r\n a2_0=parse_west_twouse_language_owl2fs_IRI();\r\n\r\n state._fsp--;\r\n if (state.failed) return element;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tif (terminateParsing) {\r\n \t\t\t\tthrow new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsTerminateParsingException();\r\n \t\t\t}\r\n \t\t\tif (element == null) {\r\n \t\t\t\telement = west.twouse.language.owl2fs.Owl2fsFactory.eINSTANCE.createVariable();\r\n \t\t\t}\r\n \t\t\tif (a2_0 != null) {\r\n \t\t\t\tif (a2_0 != null) {\r\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(west.twouse.language.owl2fs.Owl2fsPackage.VARIABLE__IRI), a2_0);\r\n \t\t\t\t\tcompletedElement(a2_0, true);\r\n \t\t\t\t}\r\n \t\t\t\tcollectHiddenTokens(element);\r\n \t\t\t\tretrieveLayoutInformation(element, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsGrammarInformationProvider.OWL2FS_88_0_0_2, a2_0);\r\n \t\t\t\tcopyLocalizationInfos(a2_0, element);\r\n \t\t\t}\r\n \t\t\r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t// expected elements (follow set)\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_124, 485));\r\n \t\r\n }\r\n a3=(Token)match(input,18,FOLLOW_18_in_parse_west_twouse_language_owl2fs_Variable11327); if (state.failed) return element;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\tif (element == null) {\r\n \t\t\telement = west.twouse.language.owl2fs.Owl2fsFactory.eINSTANCE.createVariable();\r\n \t\t\tincompleteObjects.push(element);\r\n \t\t}\r\n \t\tcollectHiddenTokens(element);\r\n \t\tretrieveLayoutInformation(element, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsGrammarInformationProvider.OWL2FS_88_0_0_3, null);\r\n \t\tcopyLocalizationInfos((org.antlr.runtime3_2_0.CommonToken)a3, element);\r\n \t\r\n }\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t// expected elements (follow set)\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_160, 486));\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_95, 486));\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_3, 486, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_16, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_33));\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_5, 486, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_16, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_33));\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_6, 486, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_16, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_33));\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_83, 486, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_33));\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_84, 486, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_33));\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_89, 486, west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.FEATURE_130));\r\n \t\taddExpectedElement(new west.twouse.language.owl2fs.resource.owl2fs.mopp.Owl2fsExpectedTerminal(west.twouse.language.owl2fs.resource.owl2fs.grammar.Owl2fsFollowSetProvider.TERMINAL_97, 486));\r\n \t\r\n }\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n if ( state.backtracking>0 ) { memoize(input, 90, parse_west_twouse_language_owl2fs_Variable_StartIndex); }\r\n }\r\n return element;\r\n }", "public final void ruleVARIABLE_DECLARATION() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:746:2: ( ( ( rule__VARIABLE_DECLARATION__Group__0 ) ) )\r\n // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:747:1: ( ( rule__VARIABLE_DECLARATION__Group__0 ) )\r\n {\r\n // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:747:1: ( ( rule__VARIABLE_DECLARATION__Group__0 ) )\r\n // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:748:1: ( rule__VARIABLE_DECLARATION__Group__0 )\r\n {\r\n before(grammarAccess.getVARIABLE_DECLARATIONAccess().getGroup()); \r\n // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:749:1: ( rule__VARIABLE_DECLARATION__Group__0 )\r\n // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:749:2: rule__VARIABLE_DECLARATION__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__VARIABLE_DECLARATION__Group__0_in_ruleVARIABLE_DECLARATION1526);\r\n rule__VARIABLE_DECLARATION__Group__0();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n after(grammarAccess.getVARIABLE_DECLARATIONAccess().getGroup()); \r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final org.emftext.language.textAML3.TypeRule parse_org_emftext_language_textAML3_TypeRule() throws RecognitionException {\n org.emftext.language.textAML3.TypeRule element = null;\n\n int parse_org_emftext_language_textAML3_TypeRule_StartIndex = input.index();\n\n Token a0=null;\n Token a2=null;\n Token a4=null;\n Token a6=null;\n Token a8=null;\n Token a10=null;\n Token a12=null;\n Token a14=null;\n org.emftext.language.textAML3.RuleElementExpression a1_0 =null;\n\n org.emftext.language.textAML3.ContainmentVariable a3_0 =null;\n\n org.emftext.language.textAML3.ContainmentVariable a5_0 =null;\n\n org.emftext.language.textAML3.Variable a7_0 =null;\n\n org.emftext.language.textAML3.Variable a9_0 =null;\n\n org.emftext.language.textAML3.RuleElementExpression a11_0 =null;\n\n org.emftext.language.textAML3.Condition a13_0 =null;\n\n org.emftext.language.textAML3.Condition a15_0 =null;\n\n\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 11) ) { return element; }\n\n // TextAML3.g:2408:2: (a0= 'from' (a1_0= parse_org_emftext_language_textAML3_RuleElementExpression ) ( (a2= 'in' (a3_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ( (a4= ',' (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ) )* ) )? ( (a6= 'with' (a7_0= parse_org_emftext_language_textAML3_Variable ) ( (a8= ',' (a9_0= parse_org_emftext_language_textAML3_Variable ) ) )* ) )? a10= 'to' (a11_0= parse_org_emftext_language_textAML3_RuleElementExpression ) ( (a12= 'where' (a13_0= parse_org_emftext_language_textAML3_Condition ) ( (a14= ',' (a15_0= parse_org_emftext_language_textAML3_Condition ) ) )* ) )? )\n // TextAML3.g:2409:2: a0= 'from' (a1_0= parse_org_emftext_language_textAML3_RuleElementExpression ) ( (a2= 'in' (a3_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ( (a4= ',' (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ) )* ) )? ( (a6= 'with' (a7_0= parse_org_emftext_language_textAML3_Variable ) ( (a8= ',' (a9_0= parse_org_emftext_language_textAML3_Variable ) ) )* ) )? a10= 'to' (a11_0= parse_org_emftext_language_textAML3_RuleElementExpression ) ( (a12= 'where' (a13_0= parse_org_emftext_language_textAML3_Condition ) ( (a14= ',' (a15_0= parse_org_emftext_language_textAML3_Condition ) ) )* ) )?\n {\n a0=(Token)match(input,31,FOLLOW_31_in_parse_org_emftext_language_textAML3_TypeRule2430); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\tif (element == null) {\n \t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t\t\tstartIncompleteElement(element);\n \t\t}\n \t\tcollectHiddenTokens(element);\n \t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_0, null, true);\n \t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a0, element);\n \t}\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[217]);\n \t}\n\n // TextAML3.g:2423:2: (a1_0= parse_org_emftext_language_textAML3_RuleElementExpression )\n // TextAML3.g:2424:3: a1_0= parse_org_emftext_language_textAML3_RuleElementExpression\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_RuleElementExpression_in_parse_org_emftext_language_textAML3_TypeRule2448);\n a1_0=parse_org_emftext_language_textAML3_RuleElementExpression();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (terminateParsing) {\n \t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t}\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tif (a1_0 != null) {\n \t\t\t\tif (a1_0 != null) {\n \t\t\t\t\tObject value = a1_0;\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.TYPE_RULE__SOURCE), value);\n \t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_1, a1_0, true);\n \t\t\t\tcopyLocalizationInfos(a1_0, element);\n \t\t\t}\n \t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[218]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[219]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[220]);\n \t}\n\n // TextAML3.g:2451:2: ( (a2= 'in' (a3_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ( (a4= ',' (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ) )* ) )?\n int alt26=2;\n int LA26_0 = input.LA(1);\n\n if ( (LA26_0==34) ) {\n alt26=1;\n }\n switch (alt26) {\n case 1 :\n // TextAML3.g:2452:3: (a2= 'in' (a3_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ( (a4= ',' (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ) )* )\n {\n // TextAML3.g:2452:3: (a2= 'in' (a3_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ( (a4= ',' (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ) )* )\n // TextAML3.g:2453:4: a2= 'in' (a3_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ( (a4= ',' (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ) )*\n {\n a2=(Token)match(input,34,FOLLOW_34_in_parse_org_emftext_language_textAML3_TypeRule2475); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\tif (element == null) {\n \t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_2_0_0_0, null, true);\n \t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a2, element);\n \t\t\t}\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[221]);\n \t\t\t}\n\n // TextAML3.g:2467:4: (a3_0= parse_org_emftext_language_textAML3_ContainmentVariable )\n // TextAML3.g:2468:5: a3_0= parse_org_emftext_language_textAML3_ContainmentVariable\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_ContainmentVariable_in_parse_org_emftext_language_textAML3_TypeRule2501);\n a3_0=parse_org_emftext_language_textAML3_ContainmentVariable();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\t\tif (terminateParsing) {\n \t\t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t\t\t}\n \t\t\t\t\tif (element == null) {\n \t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t\t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t\t}\n \t\t\t\t\tif (a3_0 != null) {\n \t\t\t\t\t\tif (a3_0 != null) {\n \t\t\t\t\t\t\tObject value = a3_0;\n \t\t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.TYPE_RULE__CONTAINMENTS, value);\n \t\t\t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcollectHiddenTokens(element);\n \t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_2_0_0_1, a3_0, true);\n \t\t\t\t\t\tcopyLocalizationInfos(a3_0, element);\n \t\t\t\t\t}\n \t\t\t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[222]);\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[223]);\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[224]);\n \t\t\t}\n\n // TextAML3.g:2495:4: ( (a4= ',' (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable ) ) )*\n loop25:\n do {\n int alt25=2;\n int LA25_0 = input.LA(1);\n\n if ( (LA25_0==18) ) {\n alt25=1;\n }\n\n\n switch (alt25) {\n \tcase 1 :\n \t // TextAML3.g:2496:5: (a4= ',' (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable ) )\n \t {\n \t // TextAML3.g:2496:5: (a4= ',' (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable ) )\n \t // TextAML3.g:2497:6: a4= ',' (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable )\n \t {\n \t a4=(Token)match(input,18,FOLLOW_18_in_parse_org_emftext_language_textAML3_TypeRule2542); if (state.failed) return element;\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\tif (element == null) {\n \t \t\t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t \t\t\t\t\t\t\tstartIncompleteElement(element);\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tcollectHiddenTokens(element);\n \t \t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_2_0_0_2_0_0_0, null, true);\n \t \t\t\t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a4, element);\n \t \t\t\t\t\t}\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\t// expected elements (follow set)\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[225]);\n \t \t\t\t\t\t}\n\n \t // TextAML3.g:2511:6: (a5_0= parse_org_emftext_language_textAML3_ContainmentVariable )\n \t // TextAML3.g:2512:7: a5_0= parse_org_emftext_language_textAML3_ContainmentVariable\n \t {\n \t pushFollow(FOLLOW_parse_org_emftext_language_textAML3_ContainmentVariable_in_parse_org_emftext_language_textAML3_TypeRule2576);\n \t a5_0=parse_org_emftext_language_textAML3_ContainmentVariable();\n\n \t state._fsp--;\n \t if (state.failed) return element;\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\t\tif (terminateParsing) {\n \t \t\t\t\t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tif (element == null) {\n \t \t\t\t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t \t\t\t\t\t\t\t\tstartIncompleteElement(element);\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tif (a5_0 != null) {\n \t \t\t\t\t\t\t\t\tif (a5_0 != null) {\n \t \t\t\t\t\t\t\t\t\tObject value = a5_0;\n \t \t\t\t\t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.TYPE_RULE__CONTAINMENTS, value);\n \t \t\t\t\t\t\t\t\t\tcompletedElement(value, true);\n \t \t\t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\t\tcollectHiddenTokens(element);\n \t \t\t\t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_2_0_0_2_0_0_1, a5_0, true);\n \t \t\t\t\t\t\t\t\tcopyLocalizationInfos(a5_0, element);\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t}\n\n \t }\n\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\t// expected elements (follow set)\n \t \t\t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[226]);\n \t \t\t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[227]);\n \t \t\t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[228]);\n \t \t\t\t\t\t}\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop25;\n }\n } while (true);\n\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[229]);\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[230]);\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[231]);\n \t\t\t}\n\n }\n\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[232]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[233]);\n \t}\n\n // TextAML3.g:2556:2: ( (a6= 'with' (a7_0= parse_org_emftext_language_textAML3_Variable ) ( (a8= ',' (a9_0= parse_org_emftext_language_textAML3_Variable ) ) )* ) )?\n int alt28=2;\n int LA28_0 = input.LA(1);\n\n if ( (LA28_0==49) ) {\n alt28=1;\n }\n switch (alt28) {\n case 1 :\n // TextAML3.g:2557:3: (a6= 'with' (a7_0= parse_org_emftext_language_textAML3_Variable ) ( (a8= ',' (a9_0= parse_org_emftext_language_textAML3_Variable ) ) )* )\n {\n // TextAML3.g:2557:3: (a6= 'with' (a7_0= parse_org_emftext_language_textAML3_Variable ) ( (a8= ',' (a9_0= parse_org_emftext_language_textAML3_Variable ) ) )* )\n // TextAML3.g:2558:4: a6= 'with' (a7_0= parse_org_emftext_language_textAML3_Variable ) ( (a8= ',' (a9_0= parse_org_emftext_language_textAML3_Variable ) ) )*\n {\n a6=(Token)match(input,49,FOLLOW_49_in_parse_org_emftext_language_textAML3_TypeRule2659); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\tif (element == null) {\n \t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_3_0_0_0, null, true);\n \t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a6, element);\n \t\t\t}\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[234]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[235]);\n \t\t\t}\n\n // TextAML3.g:2573:4: (a7_0= parse_org_emftext_language_textAML3_Variable )\n // TextAML3.g:2574:5: a7_0= parse_org_emftext_language_textAML3_Variable\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_Variable_in_parse_org_emftext_language_textAML3_TypeRule2685);\n a7_0=parse_org_emftext_language_textAML3_Variable();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\t\tif (terminateParsing) {\n \t\t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t\t\t}\n \t\t\t\t\tif (element == null) {\n \t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t\t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t\t}\n \t\t\t\t\tif (a7_0 != null) {\n \t\t\t\t\t\tif (a7_0 != null) {\n \t\t\t\t\t\t\tObject value = a7_0;\n \t\t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.TYPE_RULE__VARIABLES, value);\n \t\t\t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcollectHiddenTokens(element);\n \t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_3_0_0_1, a7_0, true);\n \t\t\t\t\t\tcopyLocalizationInfos(a7_0, element);\n \t\t\t\t\t}\n \t\t\t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[236]);\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[237]);\n \t\t\t}\n\n // TextAML3.g:2600:4: ( (a8= ',' (a9_0= parse_org_emftext_language_textAML3_Variable ) ) )*\n loop27:\n do {\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( (LA27_0==18) ) {\n alt27=1;\n }\n\n\n switch (alt27) {\n \tcase 1 :\n \t // TextAML3.g:2601:5: (a8= ',' (a9_0= parse_org_emftext_language_textAML3_Variable ) )\n \t {\n \t // TextAML3.g:2601:5: (a8= ',' (a9_0= parse_org_emftext_language_textAML3_Variable ) )\n \t // TextAML3.g:2602:6: a8= ',' (a9_0= parse_org_emftext_language_textAML3_Variable )\n \t {\n \t a8=(Token)match(input,18,FOLLOW_18_in_parse_org_emftext_language_textAML3_TypeRule2726); if (state.failed) return element;\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\tif (element == null) {\n \t \t\t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t \t\t\t\t\t\t\tstartIncompleteElement(element);\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tcollectHiddenTokens(element);\n \t \t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_3_0_0_2_0_0_0, null, true);\n \t \t\t\t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a8, element);\n \t \t\t\t\t\t}\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\t// expected elements (follow set)\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[238]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[239]);\n \t \t\t\t\t\t}\n\n \t // TextAML3.g:2617:6: (a9_0= parse_org_emftext_language_textAML3_Variable )\n \t // TextAML3.g:2618:7: a9_0= parse_org_emftext_language_textAML3_Variable\n \t {\n \t pushFollow(FOLLOW_parse_org_emftext_language_textAML3_Variable_in_parse_org_emftext_language_textAML3_TypeRule2760);\n \t a9_0=parse_org_emftext_language_textAML3_Variable();\n\n \t state._fsp--;\n \t if (state.failed) return element;\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\t\tif (terminateParsing) {\n \t \t\t\t\t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tif (element == null) {\n \t \t\t\t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t \t\t\t\t\t\t\t\tstartIncompleteElement(element);\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tif (a9_0 != null) {\n \t \t\t\t\t\t\t\t\tif (a9_0 != null) {\n \t \t\t\t\t\t\t\t\t\tObject value = a9_0;\n \t \t\t\t\t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.TYPE_RULE__VARIABLES, value);\n \t \t\t\t\t\t\t\t\t\tcompletedElement(value, true);\n \t \t\t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\t\tcollectHiddenTokens(element);\n \t \t\t\t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_3_0_0_2_0_0_1, a9_0, true);\n \t \t\t\t\t\t\t\t\tcopyLocalizationInfos(a9_0, element);\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t}\n\n \t }\n\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\t// expected elements (follow set)\n \t \t\t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[240]);\n \t \t\t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[241]);\n \t \t\t\t\t\t}\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop27;\n }\n } while (true);\n\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[242]);\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[243]);\n \t\t\t}\n\n }\n\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[244]);\n \t}\n\n a10=(Token)match(input,45,FOLLOW_45_in_parse_org_emftext_language_textAML3_TypeRule2834); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\tif (element == null) {\n \t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t\t\tstartIncompleteElement(element);\n \t\t}\n \t\tcollectHiddenTokens(element);\n \t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_4, null, true);\n \t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a10, element);\n \t}\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[245]);\n \t}\n\n // TextAML3.g:2673:2: (a11_0= parse_org_emftext_language_textAML3_RuleElementExpression )\n // TextAML3.g:2674:3: a11_0= parse_org_emftext_language_textAML3_RuleElementExpression\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_RuleElementExpression_in_parse_org_emftext_language_textAML3_TypeRule2852);\n a11_0=parse_org_emftext_language_textAML3_RuleElementExpression();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (terminateParsing) {\n \t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t}\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tif (a11_0 != null) {\n \t\t\t\tif (a11_0 != null) {\n \t\t\t\t\tObject value = a11_0;\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.TYPE_RULE__TARGET), value);\n \t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_5, a11_0, true);\n \t\t\t\tcopyLocalizationInfos(a11_0, element);\n \t\t\t}\n \t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[246]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[247]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[248]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[249]);\n \t}\n\n // TextAML3.g:2702:2: ( (a12= 'where' (a13_0= parse_org_emftext_language_textAML3_Condition ) ( (a14= ',' (a15_0= parse_org_emftext_language_textAML3_Condition ) ) )* ) )?\n int alt30=2;\n int LA30_0 = input.LA(1);\n\n if ( (LA30_0==47) ) {\n alt30=1;\n }\n switch (alt30) {\n case 1 :\n // TextAML3.g:2703:3: (a12= 'where' (a13_0= parse_org_emftext_language_textAML3_Condition ) ( (a14= ',' (a15_0= parse_org_emftext_language_textAML3_Condition ) ) )* )\n {\n // TextAML3.g:2703:3: (a12= 'where' (a13_0= parse_org_emftext_language_textAML3_Condition ) ( (a14= ',' (a15_0= parse_org_emftext_language_textAML3_Condition ) ) )* )\n // TextAML3.g:2704:4: a12= 'where' (a13_0= parse_org_emftext_language_textAML3_Condition ) ( (a14= ',' (a15_0= parse_org_emftext_language_textAML3_Condition ) ) )*\n {\n a12=(Token)match(input,47,FOLLOW_47_in_parse_org_emftext_language_textAML3_TypeRule2879); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\tif (element == null) {\n \t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_6_0_0_0, null, true);\n \t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a12, element);\n \t\t\t}\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[250]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[251]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[252]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[253]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[254]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[255]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[256]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[257]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[258]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[259]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[260]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[261]);\n \t\t\t}\n\n // TextAML3.g:2729:4: (a13_0= parse_org_emftext_language_textAML3_Condition )\n // TextAML3.g:2730:5: a13_0= parse_org_emftext_language_textAML3_Condition\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_Condition_in_parse_org_emftext_language_textAML3_TypeRule2905);\n a13_0=parse_org_emftext_language_textAML3_Condition();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\t\tif (terminateParsing) {\n \t\t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t\t\t}\n \t\t\t\t\tif (element == null) {\n \t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t\t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t\t}\n \t\t\t\t\tif (a13_0 != null) {\n \t\t\t\t\t\tif (a13_0 != null) {\n \t\t\t\t\t\t\tObject value = a13_0;\n \t\t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.TYPE_RULE__CONDITIONS, value);\n \t\t\t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcollectHiddenTokens(element);\n \t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_6_0_0_1, a13_0, true);\n \t\t\t\t\t\tcopyLocalizationInfos(a13_0, element);\n \t\t\t\t\t}\n \t\t\t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[262]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[263]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[264]);\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[265]);\n \t\t\t}\n\n // TextAML3.g:2758:4: ( (a14= ',' (a15_0= parse_org_emftext_language_textAML3_Condition ) ) )*\n loop29:\n do {\n int alt29=2;\n int LA29_0 = input.LA(1);\n\n if ( (LA29_0==18) ) {\n alt29=1;\n }\n\n\n switch (alt29) {\n \tcase 1 :\n \t // TextAML3.g:2759:5: (a14= ',' (a15_0= parse_org_emftext_language_textAML3_Condition ) )\n \t {\n \t // TextAML3.g:2759:5: (a14= ',' (a15_0= parse_org_emftext_language_textAML3_Condition ) )\n \t // TextAML3.g:2760:6: a14= ',' (a15_0= parse_org_emftext_language_textAML3_Condition )\n \t {\n \t a14=(Token)match(input,18,FOLLOW_18_in_parse_org_emftext_language_textAML3_TypeRule2946); if (state.failed) return element;\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\tif (element == null) {\n \t \t\t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t \t\t\t\t\t\t\tstartIncompleteElement(element);\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tcollectHiddenTokens(element);\n \t \t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_6_0_0_2_0_0_0, null, true);\n \t \t\t\t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a14, element);\n \t \t\t\t\t\t}\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\t// expected elements (follow set)\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[266]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[267]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[268]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[269]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[270]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[271]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[272]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[273]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[274]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[275]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[276]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeRule(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[277]);\n \t \t\t\t\t\t}\n\n \t // TextAML3.g:2785:6: (a15_0= parse_org_emftext_language_textAML3_Condition )\n \t // TextAML3.g:2786:7: a15_0= parse_org_emftext_language_textAML3_Condition\n \t {\n \t pushFollow(FOLLOW_parse_org_emftext_language_textAML3_Condition_in_parse_org_emftext_language_textAML3_TypeRule2980);\n \t a15_0=parse_org_emftext_language_textAML3_Condition();\n\n \t state._fsp--;\n \t if (state.failed) return element;\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\t\tif (terminateParsing) {\n \t \t\t\t\t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tif (element == null) {\n \t \t\t\t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeRule();\n \t \t\t\t\t\t\t\t\tstartIncompleteElement(element);\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tif (a15_0 != null) {\n \t \t\t\t\t\t\t\t\tif (a15_0 != null) {\n \t \t\t\t\t\t\t\t\t\tObject value = a15_0;\n \t \t\t\t\t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.TYPE_RULE__CONDITIONS, value);\n \t \t\t\t\t\t\t\t\t\tcompletedElement(value, true);\n \t \t\t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\t\tcollectHiddenTokens(element);\n \t \t\t\t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_11_0_0_6_0_0_2_0_0_1, a15_0, true);\n \t \t\t\t\t\t\t\t\tcopyLocalizationInfos(a15_0, element);\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t}\n\n \t }\n\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\t// expected elements (follow set)\n \t \t\t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[278]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[279]);\n \t \t\t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[280]);\n \t \t\t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[281]);\n \t \t\t\t\t\t}\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop29;\n }\n } while (true);\n\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[282]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[283]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[284]);\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[285]);\n \t\t\t}\n\n }\n\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[286]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[287]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[288]);\n \t}\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 11, parse_org_emftext_language_textAML3_TypeRule_StartIndex); }\n\n }\n return element;\n }", "public final EObject rulevariableDeclaration() throws RecognitionException {\n EObject current = null;\n\n Token this_COLON_1=null;\n Token this_READONLY_2=null;\n Token this_ASSIGN_4=null;\n Token this_SEMI_6=null;\n EObject lv_t_3_0 = null;\n\n EObject lv_e_5_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalMASL.g:5326:2: ( ( rulevariableName this_COLON_1= RULE_COLON (this_READONLY_2= RULE_READONLY )? ( (lv_t_3_0= ruletypeReferenceWithCA ) ) (this_ASSIGN_4= RULE_ASSIGN ( (lv_e_5_0= ruleexpression ) ) )? this_SEMI_6= RULE_SEMI rulepragmaList ) )\n // InternalMASL.g:5327:2: ( rulevariableName this_COLON_1= RULE_COLON (this_READONLY_2= RULE_READONLY )? ( (lv_t_3_0= ruletypeReferenceWithCA ) ) (this_ASSIGN_4= RULE_ASSIGN ( (lv_e_5_0= ruleexpression ) ) )? this_SEMI_6= RULE_SEMI rulepragmaList )\n {\n // InternalMASL.g:5327:2: ( rulevariableName this_COLON_1= RULE_COLON (this_READONLY_2= RULE_READONLY )? ( (lv_t_3_0= ruletypeReferenceWithCA ) ) (this_ASSIGN_4= RULE_ASSIGN ( (lv_e_5_0= ruleexpression ) ) )? this_SEMI_6= RULE_SEMI rulepragmaList )\n // InternalMASL.g:5328:3: rulevariableName this_COLON_1= RULE_COLON (this_READONLY_2= RULE_READONLY )? ( (lv_t_3_0= ruletypeReferenceWithCA ) ) (this_ASSIGN_4= RULE_ASSIGN ( (lv_e_5_0= ruleexpression ) ) )? this_SEMI_6= RULE_SEMI rulepragmaList\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getVariableDeclarationAccess().getVariableNameParserRuleCall_0());\n \t\t\n }\n pushFollow(FOLLOW_24);\n rulevariableName();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n this_COLON_1=(Token)match(input,RULE_COLON,FOLLOW_76); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(this_COLON_1, grammarAccess.getVariableDeclarationAccess().getCOLONTerminalRuleCall_1());\n \t\t\n }\n // InternalMASL.g:5339:3: (this_READONLY_2= RULE_READONLY )?\n int alt76=2;\n int LA76_0 = input.LA(1);\n\n if ( (LA76_0==RULE_READONLY) ) {\n alt76=1;\n }\n switch (alt76) {\n case 1 :\n // InternalMASL.g:5340:4: this_READONLY_2= RULE_READONLY\n {\n this_READONLY_2=(Token)match(input,RULE_READONLY,FOLLOW_76); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(this_READONLY_2, grammarAccess.getVariableDeclarationAccess().getREADONLYTerminalRuleCall_2());\n \t\t\t\n }\n\n }\n break;\n\n }\n\n // InternalMASL.g:5345:3: ( (lv_t_3_0= ruletypeReferenceWithCA ) )\n // InternalMASL.g:5346:4: (lv_t_3_0= ruletypeReferenceWithCA )\n {\n // InternalMASL.g:5346:4: (lv_t_3_0= ruletypeReferenceWithCA )\n // InternalMASL.g:5347:5: lv_t_3_0= ruletypeReferenceWithCA\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tnewCompositeNode(grammarAccess.getVariableDeclarationAccess().getTTypeReferenceWithCAParserRuleCall_3_0());\n \t\t\t\t\n }\n pushFollow(FOLLOW_77);\n lv_t_3_0=ruletypeReferenceWithCA();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\tif (current==null) {\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getVariableDeclarationRule());\n \t\t\t\t\t}\n \t\t\t\t\tset(\n \t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\"t\",\n \t\t\t\t\t\tlv_t_3_0,\n \t\t\t\t\t\t\"org.xtuml.bp.ui.xtext.MASL.typeReferenceWithCA\");\n \t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\n }\n\n }\n\n\n }\n\n // InternalMASL.g:5364:3: (this_ASSIGN_4= RULE_ASSIGN ( (lv_e_5_0= ruleexpression ) ) )?\n int alt77=2;\n int LA77_0 = input.LA(1);\n\n if ( (LA77_0==RULE_ASSIGN) ) {\n alt77=1;\n }\n switch (alt77) {\n case 1 :\n // InternalMASL.g:5365:4: this_ASSIGN_4= RULE_ASSIGN ( (lv_e_5_0= ruleexpression ) )\n {\n this_ASSIGN_4=(Token)match(input,RULE_ASSIGN,FOLLOW_8); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\tnewLeafNode(this_ASSIGN_4, grammarAccess.getVariableDeclarationAccess().getASSIGNTerminalRuleCall_4_0());\n \t\t\t\n }\n // InternalMASL.g:5369:4: ( (lv_e_5_0= ruleexpression ) )\n // InternalMASL.g:5370:5: (lv_e_5_0= ruleexpression )\n {\n // InternalMASL.g:5370:5: (lv_e_5_0= ruleexpression )\n // InternalMASL.g:5371:6: lv_e_5_0= ruleexpression\n {\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getVariableDeclarationAccess().getEExpressionParserRuleCall_4_1_0());\n \t\t\t\t\t\n }\n pushFollow(FOLLOW_26);\n lv_e_5_0=ruleexpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\t\t\t\tif (current==null) {\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getVariableDeclarationRule());\n \t\t\t\t\t\t}\n \t\t\t\t\t\tset(\n \t\t\t\t\t\t\tcurrent,\n \t\t\t\t\t\t\t\"e\",\n \t\t\t\t\t\t\tlv_e_5_0,\n \t\t\t\t\t\t\t\"org.xtuml.bp.ui.xtext.MASL.expression\");\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t\t\t\t\t\n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n this_SEMI_6=(Token)match(input,RULE_SEMI,FOLLOW_34); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(this_SEMI_6, grammarAccess.getVariableDeclarationAccess().getSEMITerminalRuleCall_5());\n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getVariableDeclarationAccess().getPragmaListParserRuleCall_6());\n \t\t\n }\n pushFollow(FOLLOW_2);\n rulepragmaList();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n\n }\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 String getVariableCompartment(Node node) {\n\t\tboolean nextVariable = false;\n\t\tString variableString = \"\";\n\t\tClassOrInterfaceDeclaration coid = (ClassOrInterfaceDeclaration) node;\n\t\tString className = coid.getName();\n for (BodyDeclaration bd : ((TypeDeclaration)node).getMembers()) {\n \t\n if (bd instanceof FieldDeclaration) {\n FieldDeclaration fd = ((FieldDeclaration) bd);\n //[String, message = \"hello\"]\n String variableAccessModifier = bd.toStringWithoutComments().substring(0,\n bd.toStringWithoutComments().indexOf(\" \"));\n variableAccessModifier = convertAccessModifiedToSymbol(variableAccessModifier);\n String variableType = fd.getType().toString();\n String variableName = fd.getChildrenNodes().get(1).toString();\n if(variableType.contains(\"[\"))\n {\n \tvariableType = variableType.replace(\"[\", \"(*\");\n \tvariableType = variableType.replace(\"]\", \")\");\n }\n if(variableName.contains(\"=\"))\n \tvariableName = variableName.substring(0,variableName.indexOf(\"=\"));\n\n // for uses relationship\n if(classInterfaceMap.containsKey(variableType))\n {\n \tif(classInterfaceMap.get(variableType).equals(\"class\"))\n \t relationships += \"[\" + className + \"]-[\" + variableType+\"],\";\n \tif(classInterfaceMap.get(variableType).equals(\"interface\"))\n \t relationships += \"[\" + className + \"]-[<<interface>>;\" + variableType+\"],\";\n }\n //for collection of class objects\n if(variableType.contains(\"<\"))\n {//private Collection<Observer> observers\n \t//use association\n \tString collectionType = variableType.substring(variableType.indexOf(\"<\")+1, variableType.indexOf(\">\"));\n \tif(classInterfaceMap.containsKey(collectionType))\n \t{\n \t\tif(classInterfaceMap.get(collectionType).equals(\"class\"))\n \t\t\trelationships += \"[\" + className + \"]-*\" + \"[\"+collectionType+\"],\";\n \t\telse\n \t\t relationships += \"[\" + className + \"]-*[<<interface>>;\" + collectionType+\"],\";\n \t}\n \tcontinue;\n }\n if(variableAccessModifier.equals(\"-\") || variableAccessModifier.equals(\"+\"))\n {\n \tif(nextVariable)\n \t variableString += \";\";\n variableString += variableAccessModifier + variableName +\":\"+variableType;\n nextVariable = true;\n }\n } \n\t }\n\t\treturn variableString;\n\t}", "public final EObject ruleVariable() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_2=null;\n AntlrDatatypeRuleToken lv_name_1_0 = null;\n\n AntlrDatatypeRuleToken lv_comment_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:467:28: ( ( () ( (lv_name_1_0= ruleEString ) ) (otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) ) )? ) )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:468:1: ( () ( (lv_name_1_0= ruleEString ) ) (otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) ) )? )\n {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:468:1: ( () ( (lv_name_1_0= ruleEString ) ) (otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) ) )? )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:468:2: () ( (lv_name_1_0= ruleEString ) ) (otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) ) )?\n {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:468:2: ()\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:469:5: \n {\n\n current = forceCreateModelElement(\n grammarAccess.getVariableAccess().getVariableAction_0(),\n current);\n \n\n }\n\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:474:2: ( (lv_name_1_0= ruleEString ) )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:475:1: (lv_name_1_0= ruleEString )\n {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:475:1: (lv_name_1_0= ruleEString )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:476:3: lv_name_1_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getVariableAccess().getNameEStringParserRuleCall_1_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleVariable894);\n lv_name_1_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getVariableRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"name\",\n \t\tlv_name_1_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:492:2: (otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) ) )?\n int alt16=2;\n int LA16_0 = input.LA(1);\n\n if ( (LA16_0==12) ) {\n alt16=1;\n }\n switch (alt16) {\n case 1 :\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:492:4: otherlv_2= '>' ( (lv_comment_3_0= ruleEString ) )\n {\n otherlv_2=(Token)match(input,12,FollowSets000.FOLLOW_12_in_ruleVariable907); \n\n \tnewLeafNode(otherlv_2, grammarAccess.getVariableAccess().getGreaterThanSignKeyword_2_0());\n \n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:496:1: ( (lv_comment_3_0= ruleEString ) )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:497:1: (lv_comment_3_0= ruleEString )\n {\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:497:1: (lv_comment_3_0= ruleEString )\n // ../ac.soton.xtext.machineDsl/src-gen/ac/soton/xtext/parser/antlr/internal/InternalMachineDsl.g:498:3: lv_comment_3_0= ruleEString\n {\n \n \t newCompositeNode(grammarAccess.getVariableAccess().getCommentEStringParserRuleCall_2_1_0()); \n \t \n pushFollow(FollowSets000.FOLLOW_ruleEString_in_ruleVariable928);\n lv_comment_3_0=ruleEString();\n\n state._fsp--;\n\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getVariableRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"comment\",\n \t\tlv_comment_3_0, \n \t\t\"EString\");\n \t afterParserOrEnumRuleCall();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final org.emftext.language.textAML3.AttributeReference parse_org_emftext_language_textAML3_AttributeReference() throws RecognitionException {\n org.emftext.language.textAML3.AttributeReference element = null;\n\n int parse_org_emftext_language_textAML3_AttributeReference_StartIndex = input.index();\n\n Token a0=null;\n\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 36) ) { return element; }\n\n // TextAML3.g:5560:2: ( (a0= TEXT ) )\n // TextAML3.g:5561:2: (a0= TEXT )\n {\n // TextAML3.g:5561:2: (a0= TEXT )\n // TextAML3.g:5562:2: a0= TEXT\n {\n a0=(Token)match(input,TEXT,FOLLOW_TEXT_in_parse_org_emftext_language_textAML3_AttributeReference5946); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\tif (terminateParsing) {\n \t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t}\n \t\tif (element == null) {\n \t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createAttributeReference();\n \t\t\tstartIncompleteElement(element);\n \t\t}\n \t\tif (a0 != null) {\n \t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"TEXT\");\n \t\t\ttokenResolver.setOptions(getOptions());\n \t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolveResult result = getFreshTokenResolveResult();\n \t\t\ttokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.ATTRIBUTE_REFERENCE__TARGET), result);\n \t\t\tObject resolvedObject = result.getResolvedToken();\n \t\t\tif (resolvedObject == null) {\n \t\t\t\taddErrorToResource(result.getErrorMessage(), ((org.antlr.runtime3_4_0.CommonToken) a0).getLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getCharPositionInLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStartIndex(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStopIndex());\n \t\t\t}\n \t\t\tString resolved = (String) resolvedObject;\n \t\t\torg.emftext.language.textAML3.TypeAttribute proxy = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeAttribute();\n \t\t\tcollectHiddenTokens(element);\n \t\t\tregisterContextDependentProxy(new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ContextDependentURIFragmentFactory<org.emftext.language.textAML3.AttributeReference, org.emftext.language.textAML3.TypeAttribute>(getReferenceResolverSwitch() == null ? null : getReferenceResolverSwitch().getAttributeReferenceTargetReferenceResolver()), element, (org.eclipse.emf.ecore.EReference) element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.ATTRIBUTE_REFERENCE__TARGET), resolved, proxy);\n \t\t\tif (proxy != null) {\n \t\t\t\tObject value = proxy;\n \t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.ATTRIBUTE_REFERENCE__TARGET), value);\n \t\t\t\tcompletedElement(value, false);\n \t\t\t}\n \t\t\tcollectHiddenTokens(element);\n \t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_26_0_0_0, proxy, true);\n \t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, element);\n \t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, proxy);\n \t\t}\n \t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t// expected elements (follow set)\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[827]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[828]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[829]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[830]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[831]);\n \taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[832]);\n \taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[833]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[834]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[835]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[836]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[837]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[838]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[839]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[840]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[841]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[842]);\n }\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 36, parse_org_emftext_language_textAML3_AttributeReference_StartIndex); }\n\n }\n return element;\n }", "public interface BsjVariableElement extends BsjElement, VariableElement\n{\n\t/**\n\t * Retrieves the declaration backing this element. As all elements in the BSJ language correspond to some\n\t * declaration, this method obtains for the caller the AST node representing that declaration.\n\t */\n\tpublic VariableNameBindingNode getDeclarationNode();\n\n\t/**\n\t * Returns the type of variable declared by this element.\n\t * <p/>\n\t * Note that the {@link VariableElement} interface specifies that this method returns the type which was declared by\n\t * this element (which is, strictly speaking, no type at all). In practice, however, this method is used to\n\t * represent the type of the variable which was declared in both the Sun JDK and OpenJDK implementations.\n\t */\n\tpublic BsjType asType();\n}", "public final org.emftext.language.textAML3.Generator parse_org_emftext_language_textAML3_Generator() throws RecognitionException {\n org.emftext.language.textAML3.Generator element = null;\n\n int parse_org_emftext_language_textAML3_Generator_StartIndex = input.index();\n\n Token a1=null;\n Token a3=null;\n Token a5=null;\n Token a6=null;\n org.emftext.language.textAML3.Variable a0_0 =null;\n\n org.emftext.language.textAML3.Variable a2_0 =null;\n\n org.emftext.language.textAML3.Variable a4_0 =null;\n\n org.emftext.language.textAML3.Expression a7_0 =null;\n\n\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 10) ) { return element; }\n\n // TextAML3.g:2194:2: ( ( (a0_0= parse_org_emftext_language_textAML3_Variable ) |a1= '(' (a2_0= parse_org_emftext_language_textAML3_Variable ) ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_Variable ) ) )+ a5= ')' ) ( (a6= 'in' (a7_0= parse_org_emftext_language_textAML3_Expression ) ) )? )\n // TextAML3.g:2195:2: ( (a0_0= parse_org_emftext_language_textAML3_Variable ) |a1= '(' (a2_0= parse_org_emftext_language_textAML3_Variable ) ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_Variable ) ) )+ a5= ')' ) ( (a6= 'in' (a7_0= parse_org_emftext_language_textAML3_Expression ) ) )?\n {\n // TextAML3.g:2195:2: ( (a0_0= parse_org_emftext_language_textAML3_Variable ) |a1= '(' (a2_0= parse_org_emftext_language_textAML3_Variable ) ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_Variable ) ) )+ a5= ')' )\n int alt23=2;\n int LA23_0 = input.LA(1);\n\n if ( (LA23_0==VARID) ) {\n alt23=1;\n }\n else if ( (LA23_0==14) ) {\n alt23=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return element;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 23, 0, input);\n\n throw nvae;\n\n }\n switch (alt23) {\n case 1 :\n // TextAML3.g:2196:3: (a0_0= parse_org_emftext_language_textAML3_Variable )\n {\n // TextAML3.g:2196:3: (a0_0= parse_org_emftext_language_textAML3_Variable )\n // TextAML3.g:2197:4: a0_0= parse_org_emftext_language_textAML3_Variable\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_Variable_in_parse_org_emftext_language_textAML3_Generator2149);\n a0_0=parse_org_emftext_language_textAML3_Variable();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\tif (terminateParsing) {\n \t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t\t}\n \t\t\t\tif (element == null) {\n \t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createGenerator();\n \t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t}\n \t\t\t\tif (a0_0 != null) {\n \t\t\t\t\tif (a0_0 != null) {\n \t\t\t\t\t\tObject value = a0_0;\n \t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.GENERATOR__VARIABLE, value);\n \t\t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t\t}\n \t\t\t\t\tcollectHiddenTokens(element);\n \t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_10_0_0_0_0_0_0, a0_0, true);\n \t\t\t\t\tcopyLocalizationInfos(a0_0, element);\n \t\t\t\t}\n \t\t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t\t// expected elements (follow set)\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[184]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[185]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[186]);\n \t\t}\n\n }\n break;\n case 2 :\n // TextAML3.g:2225:6: a1= '(' (a2_0= parse_org_emftext_language_textAML3_Variable ) ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_Variable ) ) )+ a5= ')'\n {\n a1=(Token)match(input,14,FOLLOW_14_in_parse_org_emftext_language_textAML3_Generator2178); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createGenerator();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tcollectHiddenTokens(element);\n \t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_10_0_0_0_0_1_0, null, true);\n \t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a1, element);\n \t\t}\n\n if ( state.backtracking==0 ) {\n \t\t\t// expected elements (follow set)\n \t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[187]);\n \t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[188]);\n \t\t}\n\n // TextAML3.g:2240:3: (a2_0= parse_org_emftext_language_textAML3_Variable )\n // TextAML3.g:2241:4: a2_0= parse_org_emftext_language_textAML3_Variable\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_Variable_in_parse_org_emftext_language_textAML3_Generator2200);\n a2_0=parse_org_emftext_language_textAML3_Variable();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\tif (terminateParsing) {\n \t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t\t}\n \t\t\t\tif (element == null) {\n \t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createGenerator();\n \t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t}\n \t\t\t\tif (a2_0 != null) {\n \t\t\t\t\tif (a2_0 != null) {\n \t\t\t\t\t\tObject value = a2_0;\n \t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.GENERATOR__VARIABLE, value);\n \t\t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t\t}\n \t\t\t\t\tcollectHiddenTokens(element);\n \t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_10_0_0_0_0_1_1, a2_0, true);\n \t\t\t\t\tcopyLocalizationInfos(a2_0, element);\n \t\t\t\t}\n \t\t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t\t// expected elements (follow set)\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[189]);\n \t\t}\n\n // TextAML3.g:2266:3: ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_Variable ) ) )+\n int cnt22=0;\n loop22:\n do {\n int alt22=2;\n int LA22_0 = input.LA(1);\n\n if ( (LA22_0==18) ) {\n alt22=1;\n }\n\n\n switch (alt22) {\n \tcase 1 :\n \t // TextAML3.g:2267:4: (a3= ',' (a4_0= parse_org_emftext_language_textAML3_Variable ) )\n \t {\n \t // TextAML3.g:2267:4: (a3= ',' (a4_0= parse_org_emftext_language_textAML3_Variable ) )\n \t // TextAML3.g:2268:5: a3= ',' (a4_0= parse_org_emftext_language_textAML3_Variable )\n \t {\n \t a3=(Token)match(input,18,FOLLOW_18_in_parse_org_emftext_language_textAML3_Generator2234); if (state.failed) return element;\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\tif (element == null) {\n \t \t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createGenerator();\n \t \t\t\t\t\t\tstartIncompleteElement(element);\n \t \t\t\t\t\t}\n \t \t\t\t\t\tcollectHiddenTokens(element);\n \t \t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_10_0_0_0_0_1_2_0_0_0, null, true);\n \t \t\t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a3, element);\n \t \t\t\t\t}\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t// expected elements (follow set)\n \t \t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[190]);\n \t \t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[191]);\n \t \t\t\t\t}\n\n \t // TextAML3.g:2283:5: (a4_0= parse_org_emftext_language_textAML3_Variable )\n \t // TextAML3.g:2284:6: a4_0= parse_org_emftext_language_textAML3_Variable\n \t {\n \t pushFollow(FOLLOW_parse_org_emftext_language_textAML3_Variable_in_parse_org_emftext_language_textAML3_Generator2264);\n \t a4_0=parse_org_emftext_language_textAML3_Variable();\n\n \t state._fsp--;\n \t if (state.failed) return element;\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\tif (terminateParsing) {\n \t \t\t\t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tif (element == null) {\n \t \t\t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createGenerator();\n \t \t\t\t\t\t\t\tstartIncompleteElement(element);\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tif (a4_0 != null) {\n \t \t\t\t\t\t\t\tif (a4_0 != null) {\n \t \t\t\t\t\t\t\t\tObject value = a4_0;\n \t \t\t\t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.GENERATOR__VARIABLE, value);\n \t \t\t\t\t\t\t\t\tcompletedElement(value, true);\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tcollectHiddenTokens(element);\n \t \t\t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_10_0_0_0_0_1_2_0_0_1, a4_0, true);\n \t \t\t\t\t\t\t\tcopyLocalizationInfos(a4_0, element);\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t}\n\n \t }\n\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t// expected elements (follow set)\n \t \t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[192]);\n \t \t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[193]);\n \t \t\t\t\t}\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt22 >= 1 ) break loop22;\n \t if (state.backtracking>0) {state.failed=true; return element;}\n EarlyExitException eee =\n new EarlyExitException(22, input);\n throw eee;\n }\n cnt22++;\n } while (true);\n\n\n if ( state.backtracking==0 ) {\n \t\t\t// expected elements (follow set)\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[194]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[195]);\n \t\t}\n\n a5=(Token)match(input,15,FOLLOW_15_in_parse_org_emftext_language_textAML3_Generator2315); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createGenerator();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tcollectHiddenTokens(element);\n \t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_10_0_0_0_0_1_3, null, true);\n \t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a5, element);\n \t\t}\n\n if ( state.backtracking==0 ) {\n \t\t\t// expected elements (follow set)\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[196]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[197]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[198]);\n \t\t}\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[199]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[200]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[201]);\n \t}\n\n // TextAML3.g:2342:2: ( (a6= 'in' (a7_0= parse_org_emftext_language_textAML3_Expression ) ) )?\n int alt24=2;\n int LA24_0 = input.LA(1);\n\n if ( (LA24_0==34) ) {\n alt24=1;\n }\n switch (alt24) {\n case 1 :\n // TextAML3.g:2343:3: (a6= 'in' (a7_0= parse_org_emftext_language_textAML3_Expression ) )\n {\n // TextAML3.g:2343:3: (a6= 'in' (a7_0= parse_org_emftext_language_textAML3_Expression ) )\n // TextAML3.g:2344:4: a6= 'in' (a7_0= parse_org_emftext_language_textAML3_Expression )\n {\n a6=(Token)match(input,34,FOLLOW_34_in_parse_org_emftext_language_textAML3_Generator2348); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\tif (element == null) {\n \t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createGenerator();\n \t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_10_0_0_1_0_0_0, null, true);\n \t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a6, element);\n \t\t\t}\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[202]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[203]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[204]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[205]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[206]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[207]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[208]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[209]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[210]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[211]);\n \t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getGenerator(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[212]);\n \t\t\t}\n\n // TextAML3.g:2368:4: (a7_0= parse_org_emftext_language_textAML3_Expression )\n // TextAML3.g:2369:5: a7_0= parse_org_emftext_language_textAML3_Expression\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_Expression_in_parse_org_emftext_language_textAML3_Generator2374);\n a7_0=parse_org_emftext_language_textAML3_Expression();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\t\tif (terminateParsing) {\n \t\t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t\t\t}\n \t\t\t\t\tif (element == null) {\n \t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createGenerator();\n \t\t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t\t}\n \t\t\t\t\tif (a7_0 != null) {\n \t\t\t\t\t\tif (a7_0 != null) {\n \t\t\t\t\t\t\tObject value = a7_0;\n \t\t\t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.GENERATOR__CONTAINER), value);\n \t\t\t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcollectHiddenTokens(element);\n \t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_10_0_0_1_0_0_1, a7_0, true);\n \t\t\t\t\t\tcopyLocalizationInfos(a7_0, element);\n \t\t\t\t\t}\n \t\t\t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t\t\t// expected elements (follow set)\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[213]);\n \t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[214]);\n \t\t\t}\n\n }\n\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[215]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[216]);\n \t}\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 10, parse_org_emftext_language_textAML3_Generator_StartIndex); }\n\n }\n return element;\n }", "public VarDeclaration(TokenStream input) throws Exception {\n\t\tvariables = new ArrayList<Token>();\n\t\tToken keyword = input.next();\n\t\tToken delim = input.next();\n if (!keyword.toString().equals(\"var\") || !delim.toString().equals(\"(\")) {\n throw new Exception(\"SYNTAX ERROR: Malformed var statement\");\n }\n \n while (!input.lookAhead().toString().equals(\")\")) {\n \tToken var = input.next();\n \tif(var.getType() == Token.Type.IDENTIFIER) {\n \t\tthis.variables.add(var);\n \t}\n \telse {\n \t\tthrow new Exception(\"Variable declarations must be of type IDENTIFIER\");\n \t}\n }\n input.next();\t\t\n\t}", "public final void rule__Variable__Group_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTest.g:553:1: ( rule__Variable__Group_3__0__Impl rule__Variable__Group_3__1 )\n // InternalTest.g:554:2: rule__Variable__Group_3__0__Impl rule__Variable__Group_3__1\n {\n pushFollow(FOLLOW_9);\n rule__Variable__Group_3__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Variable__Group_3__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final org.emftext.language.textAML3.ModelElementExpression parse_org_emftext_language_textAML3_ModelElementExpression() throws RecognitionException {\n org.emftext.language.textAML3.ModelElementExpression element = null;\n\n int parse_org_emftext_language_textAML3_ModelElementExpression_StartIndex = input.index();\n\n Token a0=null;\n Token a1=null;\n Token a3=null;\n Token a5=null;\n org.emftext.language.textAML3.AttributeExpression a2_0 =null;\n\n org.emftext.language.textAML3.AttributeExpression a4_0 =null;\n\n\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 31) ) { return element; }\n\n // TextAML3.g:5169:2: ( (a0= REFERENCE ) ( (a1= '(' (a2_0= parse_org_emftext_language_textAML3_AttributeExpression ) ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_AttributeExpression ) ) )* a5= ')' ) )? )\n // TextAML3.g:5170:2: (a0= REFERENCE ) ( (a1= '(' (a2_0= parse_org_emftext_language_textAML3_AttributeExpression ) ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_AttributeExpression ) ) )* a5= ')' ) )?\n {\n // TextAML3.g:5170:2: (a0= REFERENCE )\n // TextAML3.g:5171:2: a0= REFERENCE\n {\n a0=(Token)match(input,REFERENCE,FOLLOW_REFERENCE_in_parse_org_emftext_language_textAML3_ModelElementExpression5610); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\tif (terminateParsing) {\n \t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t}\n \t\tif (element == null) {\n \t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createModelElementExpression();\n \t\t\tstartIncompleteElement(element);\n \t\t}\n \t\tif (a0 != null) {\n \t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"REFERENCE\");\n \t\t\ttokenResolver.setOptions(getOptions());\n \t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolveResult result = getFreshTokenResolveResult();\n \t\t\ttokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.MODEL_ELEMENT_EXPRESSION__BASECLASS), result);\n \t\t\tObject resolvedObject = result.getResolvedToken();\n \t\t\tif (resolvedObject == null) {\n \t\t\t\taddErrorToResource(result.getErrorMessage(), ((org.antlr.runtime3_4_0.CommonToken) a0).getLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getCharPositionInLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStartIndex(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStopIndex());\n \t\t\t}\n \t\t\tString resolved = (String) resolvedObject;\n \t\t\torg.eclipse.emf.ecore.ENamedElement proxy = createDynamicProxy(org.eclipse.emf.ecore.ENamedElement.class);\n \t\t\tcollectHiddenTokens(element);\n \t\t\tregisterContextDependentProxy(new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ContextDependentURIFragmentFactory<org.emftext.language.textAML3.ModelElementExpression, org.eclipse.emf.ecore.ENamedElement>(getReferenceResolverSwitch() == null ? null : getReferenceResolverSwitch().getModelElementExpressionBaseclassReferenceResolver()), element, (org.eclipse.emf.ecore.EReference) element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.MODEL_ELEMENT_EXPRESSION__BASECLASS), resolved, proxy);\n \t\t\tif (proxy != null) {\n \t\t\t\tObject value = proxy;\n \t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.MODEL_ELEMENT_EXPRESSION__BASECLASS), value);\n \t\t\t\tcompletedElement(value, false);\n \t\t\t}\n \t\t\tcollectHiddenTokens(element);\n \t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_27_0_0_0, proxy, true);\n \t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, element);\n \t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, proxy);\n \t\t}\n \t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t// expected elements (follow set)\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[710]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[711]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[712]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[713]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[714]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[715]);\n \taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[716]);\n \taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[717]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[718]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[719]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[720]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[721]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[722]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[723]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[724]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[725]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[726]);\n }\n\n // TextAML3.g:5226:2: ( (a1= '(' (a2_0= parse_org_emftext_language_textAML3_AttributeExpression ) ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_AttributeExpression ) ) )* a5= ')' ) )?\n int alt55=2;\n int LA55_0 = input.LA(1);\n\n if ( (LA55_0==14) ) {\n alt55=1;\n }\n switch (alt55) {\n case 1 :\n // TextAML3.g:5227:2: (a1= '(' (a2_0= parse_org_emftext_language_textAML3_AttributeExpression ) ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_AttributeExpression ) ) )* a5= ')' )\n {\n // TextAML3.g:5227:2: (a1= '(' (a2_0= parse_org_emftext_language_textAML3_AttributeExpression ) ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_AttributeExpression ) ) )* a5= ')' )\n // TextAML3.g:5228:3: a1= '(' (a2_0= parse_org_emftext_language_textAML3_AttributeExpression ) ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_AttributeExpression ) ) )* a5= ')'\n {\n a1=(Token)match(input,14,FOLLOW_14_in_parse_org_emftext_language_textAML3_ModelElementExpression5632); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createModelElementExpression();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tcollectHiddenTokens(element);\n \t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_27_0_0_1_0_0_0, null, true);\n \t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a1, element);\n \t\t}\n\n if ( state.backtracking==0 ) {\n \t\t\t// expected elements (follow set)\n \t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getModelElementExpression(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[727]);\n \t\t}\n\n // TextAML3.g:5242:3: (a2_0= parse_org_emftext_language_textAML3_AttributeExpression )\n // TextAML3.g:5243:4: a2_0= parse_org_emftext_language_textAML3_AttributeExpression\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_AttributeExpression_in_parse_org_emftext_language_textAML3_ModelElementExpression5654);\n a2_0=parse_org_emftext_language_textAML3_AttributeExpression();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\t\tif (terminateParsing) {\n \t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t\t}\n \t\t\t\tif (element == null) {\n \t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createModelElementExpression();\n \t\t\t\t\tstartIncompleteElement(element);\n \t\t\t\t}\n \t\t\t\tif (a2_0 != null) {\n \t\t\t\t\tif (a2_0 != null) {\n \t\t\t\t\t\tObject value = a2_0;\n \t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.MODEL_ELEMENT_EXPRESSION__ATTRIBUTES, value);\n \t\t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t\t}\n \t\t\t\t\tcollectHiddenTokens(element);\n \t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_27_0_0_1_0_0_1, a2_0, true);\n \t\t\t\t\tcopyLocalizationInfos(a2_0, element);\n \t\t\t\t}\n \t\t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t\t// expected elements (follow set)\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[728]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[729]);\n \t\t}\n\n // TextAML3.g:5269:3: ( (a3= ',' (a4_0= parse_org_emftext_language_textAML3_AttributeExpression ) ) )*\n loop54:\n do {\n int alt54=2;\n int LA54_0 = input.LA(1);\n\n if ( (LA54_0==18) ) {\n alt54=1;\n }\n\n\n switch (alt54) {\n \tcase 1 :\n \t // TextAML3.g:5270:4: (a3= ',' (a4_0= parse_org_emftext_language_textAML3_AttributeExpression ) )\n \t {\n \t // TextAML3.g:5270:4: (a3= ',' (a4_0= parse_org_emftext_language_textAML3_AttributeExpression ) )\n \t // TextAML3.g:5271:5: a3= ',' (a4_0= parse_org_emftext_language_textAML3_AttributeExpression )\n \t {\n \t a3=(Token)match(input,18,FOLLOW_18_in_parse_org_emftext_language_textAML3_ModelElementExpression5688); if (state.failed) return element;\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\tif (element == null) {\n \t \t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createModelElementExpression();\n \t \t\t\t\t\t\tstartIncompleteElement(element);\n \t \t\t\t\t\t}\n \t \t\t\t\t\tcollectHiddenTokens(element);\n \t \t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_27_0_0_1_0_0_2_0_0_0, null, true);\n \t \t\t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a3, element);\n \t \t\t\t\t}\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t// expected elements (follow set)\n \t \t\t\t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getModelElementExpression(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[730]);\n \t \t\t\t\t}\n\n \t // TextAML3.g:5285:5: (a4_0= parse_org_emftext_language_textAML3_AttributeExpression )\n \t // TextAML3.g:5286:6: a4_0= parse_org_emftext_language_textAML3_AttributeExpression\n \t {\n \t pushFollow(FOLLOW_parse_org_emftext_language_textAML3_AttributeExpression_in_parse_org_emftext_language_textAML3_ModelElementExpression5718);\n \t a4_0=parse_org_emftext_language_textAML3_AttributeExpression();\n\n \t state._fsp--;\n \t if (state.failed) return element;\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t\tif (terminateParsing) {\n \t \t\t\t\t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tif (element == null) {\n \t \t\t\t\t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createModelElementExpression();\n \t \t\t\t\t\t\t\tstartIncompleteElement(element);\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tif (a4_0 != null) {\n \t \t\t\t\t\t\t\tif (a4_0 != null) {\n \t \t\t\t\t\t\t\t\tObject value = a4_0;\n \t \t\t\t\t\t\t\t\taddObjectToList(element, org.emftext.language.textAML3.TextAML3Package.MODEL_ELEMENT_EXPRESSION__ATTRIBUTES, value);\n \t \t\t\t\t\t\t\t\tcompletedElement(value, true);\n \t \t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\tcollectHiddenTokens(element);\n \t \t\t\t\t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_27_0_0_1_0_0_2_0_0_1, a4_0, true);\n \t \t\t\t\t\t\t\tcopyLocalizationInfos(a4_0, element);\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t}\n\n \t }\n\n\n \t if ( state.backtracking==0 ) {\n \t \t\t\t\t\t// expected elements (follow set)\n \t \t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[731]);\n \t \t\t\t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[732]);\n \t \t\t\t\t}\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop54;\n }\n } while (true);\n\n\n if ( state.backtracking==0 ) {\n \t\t\t// expected elements (follow set)\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[733]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[734]);\n \t\t}\n\n a5=(Token)match(input,15,FOLLOW_15_in_parse_org_emftext_language_textAML3_ModelElementExpression5769); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createModelElementExpression();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tcollectHiddenTokens(element);\n \t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_27_0_0_1_0_0_3, null, true);\n \t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a5, element);\n \t\t}\n\n if ( state.backtracking==0 ) {\n \t\t\t// expected elements (follow set)\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[735]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[736]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[737]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[738]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[739]);\n \t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[740]);\n \t\t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[741]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[742]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[743]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[744]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[745]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[746]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[747]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[748]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[749]);\n \t\t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[750]);\n \t\t}\n\n }\n\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t// expected elements (follow set)\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[751]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[752]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[753]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[754]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[755]);\n \taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[756]);\n \taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeSystemDec(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[757]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[758]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[759]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[760]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[761]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[762]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[763]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[764]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[765]);\n \taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[766]);\n }\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 31, parse_org_emftext_language_textAML3_ModelElementExpression_StartIndex); }\n\n }\n return element;\n }", "String getTargetVariablePart();", "public final org.emftext.language.textAML3.TypeReferenceElement parse_org_emftext_language_textAML3_TypeReferenceElement() throws RecognitionException {\n org.emftext.language.textAML3.TypeReferenceElement element = null;\n\n int parse_org_emftext_language_textAML3_TypeReferenceElement_StartIndex = input.index();\n\n Token a0=null;\n Token a1=null;\n org.emftext.language.textAML3.Expression a2_0 =null;\n\n\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 18) ) { return element; }\n\n // TextAML3.g:3780:2: ( (a0= TEXT ) a1= '=' (a2_0= parse_org_emftext_language_textAML3_Expression ) )\n // TextAML3.g:3781:2: (a0= TEXT ) a1= '=' (a2_0= parse_org_emftext_language_textAML3_Expression )\n {\n // TextAML3.g:3781:2: (a0= TEXT )\n // TextAML3.g:3782:3: a0= TEXT\n {\n a0=(Token)match(input,TEXT,FOLLOW_TEXT_in_parse_org_emftext_language_textAML3_TypeReferenceElement4137); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (terminateParsing) {\n \t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t}\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeReferenceElement();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tif (a0 != null) {\n \t\t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolver tokenResolver = tokenResolverFactory.createTokenResolver(\"TEXT\");\n \t\t\t\ttokenResolver.setOptions(getOptions());\n \t\t\t\torg.emftext.language.textAML3.resource.textAML3.ITextAML3TokenResolveResult result = getFreshTokenResolveResult();\n \t\t\t\ttokenResolver.resolve(a0.getText(), element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.TYPE_REFERENCE_ELEMENT__TYPEATTRIBUTE), result);\n \t\t\t\tObject resolvedObject = result.getResolvedToken();\n \t\t\t\tif (resolvedObject == null) {\n \t\t\t\t\taddErrorToResource(result.getErrorMessage(), ((org.antlr.runtime3_4_0.CommonToken) a0).getLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getCharPositionInLine(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStartIndex(), ((org.antlr.runtime3_4_0.CommonToken) a0).getStopIndex());\n \t\t\t\t}\n \t\t\t\tString resolved = (String) resolvedObject;\n \t\t\t\torg.emftext.language.textAML3.TypeAttribute proxy = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeAttribute();\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tregisterContextDependentProxy(new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ContextDependentURIFragmentFactory<org.emftext.language.textAML3.TypeReferenceElement, org.emftext.language.textAML3.TypeAttribute>(getReferenceResolverSwitch() == null ? null : getReferenceResolverSwitch().getTypeReferenceElementTypeattributeReferenceResolver()), element, (org.eclipse.emf.ecore.EReference) element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.TYPE_REFERENCE_ELEMENT__TYPEATTRIBUTE), resolved, proxy);\n \t\t\t\tif (proxy != null) {\n \t\t\t\t\tObject value = proxy;\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.TYPE_REFERENCE_ELEMENT__TYPEATTRIBUTE), value);\n \t\t\t\t\tcompletedElement(value, false);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_25_0_0_0, proxy, true);\n \t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, element);\n \t\t\t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken) a0, proxy);\n \t\t\t}\n \t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[455]);\n \t}\n\n a1=(Token)match(input,24,FOLLOW_24_in_parse_org_emftext_language_textAML3_TypeReferenceElement4158); if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\tif (element == null) {\n \t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeReferenceElement();\n \t\t\tstartIncompleteElement(element);\n \t\t}\n \t\tcollectHiddenTokens(element);\n \t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_25_0_0_1, null, true);\n \t\tcopyLocalizationInfos((org.antlr.runtime3_4_0.CommonToken)a1, element);\n \t}\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[456]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[457]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[458]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[459]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[460]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[461]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[462]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[463]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[464]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[465]);\n \t\taddExpectedElement(org.emftext.language.textAML3.TextAML3Package.eINSTANCE.getTypeReferenceElement(), org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[466]);\n \t}\n\n // TextAML3.g:3845:2: (a2_0= parse_org_emftext_language_textAML3_Expression )\n // TextAML3.g:3846:3: a2_0= parse_org_emftext_language_textAML3_Expression\n {\n pushFollow(FOLLOW_parse_org_emftext_language_textAML3_Expression_in_parse_org_emftext_language_textAML3_TypeReferenceElement4176);\n a2_0=parse_org_emftext_language_textAML3_Expression();\n\n state._fsp--;\n if (state.failed) return element;\n\n if ( state.backtracking==0 ) {\n \t\t\tif (terminateParsing) {\n \t\t\t\tthrow new org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3TerminateParsingException();\n \t\t\t}\n \t\t\tif (element == null) {\n \t\t\t\telement = org.emftext.language.textAML3.TextAML3Factory.eINSTANCE.createTypeReferenceElement();\n \t\t\t\tstartIncompleteElement(element);\n \t\t\t}\n \t\t\tif (a2_0 != null) {\n \t\t\t\tif (a2_0 != null) {\n \t\t\t\t\tObject value = a2_0;\n \t\t\t\t\telement.eSet(element.eClass().getEStructuralFeature(org.emftext.language.textAML3.TextAML3Package.TYPE_REFERENCE_ELEMENT__VALUE), value);\n \t\t\t\t\tcompletedElement(value, true);\n \t\t\t\t}\n \t\t\t\tcollectHiddenTokens(element);\n \t\t\t\tretrieveLayoutInformation(element, org.emftext.language.textAML3.resource.textAML3.grammar.TextAML3GrammarInformationProvider.TEXTAML3_25_0_0_2, a2_0, true);\n \t\t\t\tcopyLocalizationInfos(a2_0, element);\n \t\t\t}\n \t\t}\n\n }\n\n\n if ( state.backtracking==0 ) {\n \t\t// expected elements (follow set)\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[467]);\n \t\taddExpectedElement(null, org.emftext.language.textAML3.resource.textAML3.mopp.TextAML3ExpectationConstants.EXPECTATIONS[468]);\n \t}\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n if ( state.backtracking>0 ) { memoize(input, 18, parse_org_emftext_language_textAML3_TypeReferenceElement_StartIndex); }\n\n }\n return element;\n }", "public final CQLParser.variableDefinition_return variableDefinition() throws RecognitionException {\n CQLParser.variableDefinition_return retval = new CQLParser.variableDefinition_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token i=null;\n Token string_literal9=null;\n Token char_literal10=null;\n CQLParser.arithmeticExpression_return e = null;\n\n\n Object i_tree=null;\n Object string_literal9_tree=null;\n Object char_literal10_tree=null;\n RewriteRuleTokenStream stream_113=new RewriteRuleTokenStream(adaptor,\"token 113\");\n RewriteRuleTokenStream stream_110=new RewriteRuleTokenStream(adaptor,\"token 110\");\n RewriteRuleTokenStream stream_ID=new RewriteRuleTokenStream(adaptor,\"token ID\");\n RewriteRuleSubtreeStream stream_arithmeticExpression=new RewriteRuleSubtreeStream(adaptor,\"rule arithmeticExpression\");\n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:205:2: (i= ID ':=' e= arithmeticExpression ';' -> ^( VAR $i $e) )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:205:4: i= ID ':=' e= arithmeticExpression ';'\n {\n i=(Token)match(input,ID,FOLLOW_ID_in_variableDefinition427); \n stream_ID.add(i);\n\n string_literal9=(Token)match(input,113,FOLLOW_113_in_variableDefinition429); \n stream_113.add(string_literal9);\n\n pushFollow(FOLLOW_arithmeticExpression_in_variableDefinition433);\n e=arithmeticExpression();\n\n state._fsp--;\n\n stream_arithmeticExpression.add(e.getTree());\n char_literal10=(Token)match(input,110,FOLLOW_110_in_variableDefinition435); \n stream_110.add(char_literal10);\n\n\n\n // AST REWRITE\n // elements: i, e\n // token labels: i\n // rule labels: retval, e\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleTokenStream stream_i=new RewriteRuleTokenStream(adaptor,\"token i\",i);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_e=new RewriteRuleSubtreeStream(adaptor,\"rule e\",e!=null?e.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 206:3: -> ^( VAR $i $e)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:206:6: ^( VAR $i $e)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(VAR, \"VAR\"), root_1);\n\n adaptor.addChild(root_1, stream_i.nextNode());\n adaptor.addChild(root_1, stream_e.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
need to check NfcAdapter for nullability. Null means no NFC support on the device
private boolean isNfcSupported() { this.nfcAdapter = NfcAdapter.getDefaultAdapter(this); return this.nfcAdapter != null; }
[ "public static boolean supportNfc(@NonNull Context context) {\n return NfcAdapter.getDefaultAdapter(context) != null;\n }", "public static int testNFC(Context context) {\n try {\n NfcAdapter adapter = NfcAdapter.getDefaultAdapter(context);\n if (adapter == null)\n return 0;\n return 10;\n } catch (Exception e) {\n Message.logMessage(TAG_CLASS, e.toString());\n return 0;\n }\n }", "public void testNFC(){\n if(mNfcAdapter.isEnabled() && mNfcAdapter != null){\n Log.i(\"test\",\"NFC is Enabled\");\n }\n else{\n Log.i(\"test\",\"NFC is Disabled, Enable NFC from Settings Screen\");\n finish();\n }\n }", "public static android.nfc.NfcAdapter getDefaultAdapter(android.content.Context context) { throw new RuntimeException(\"Stub!\"); }", "private void setupNfcScanCheck()\n\t{\n\t\tIntent intent = getIntent();\n\t\tif (!NacNfc.wasScanned(this, intent))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tthis.stopActiveAlarm();\n\t}", "public static boolean isNfcEnable(@NonNull Context context) {\n NfcAdapter nfcAdapter = NfcAdapter.getDefaultAdapter(context);\n return nfcAdapter != null && nfcAdapter.isEnabled();\n }", "@Test\n @SmallTest\n @Feature({\"Preferences\"})\n public void testSystemNfcSupport() {\n // Disable system nfc support and check for the right preferences.\n NfcSystemLevelSetting.setNfcSupportForTesting(false);\n checkPreferencesForCategory(\n SiteSettingsCategory.Type.NFC, BINARY_TOGGLE_WITH_OS_WARNING_EXTRA);\n }", "public static boolean isNfcEnable(final Context pContext) {\r\n\t\tboolean ret = true;\r\n\t\ttry {\r\n\t\t\tNfcAdapter adpater = NfcAdapter.getDefaultAdapter(pContext);\r\n\t\t\tret = adpater != null && adpater.isEnabled();\r\n\t\t} catch (UnsupportedOperationException e) {\r\n\t\t\tret = false;\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "@Override\n public void onNdefPushComplete(NfcEvent event) {}", "boolean isNilResolutionstatus();", "private void createNfcManager() {\n nfcManager = new NfcManager(this);\n nfcManager.onActivityCreate();\n nfcManager.setOnTagReadListener(new NfcManager.TagReadListener() {\n @Override\n public void onTagRead(String tagId) {\n tagWasScanned(tagId);\n }\n });\n }", "boolean getCharacteristicDescriptionNull();", "public boolean canProcessNull() {\n return false;\n }", "@Override\n public void onDataNotAvailable() {\n Log.d(TAG, \"onDataNotAvailable: \");\n }", "protected void checkForNullHandlers() {\n }", "boolean isNilResolutiondesc();", "public void stopTrackingNfc() {\n\t\tif (adapter == null) {\n\t\t\treturn;\n\t\t}\n\t\tadapter.disableForegroundDispatch(activity);\n\t}", "private boolean BluetoothAvailable()\n {\n if (BT == null)\n return false;\n else\n return true;\n }", "public java.lang.String getNIF();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get one intrusionSet by id.
@Override @Transactional(readOnly = true) public Optional<IntrusionSetDTO> findOne(Long id) { log.debug("Request to get IntrusionSet : {}", id); return intrusionSetRepository.findById(id) .map(intrusionSetMapper::toDto); }
[ "@Override\n\t@Transactional\n\tpublic FlashcardSet findById(int id) {\n\t\treturn setRepo.findByFcSetId(id);\n\t}", "DocumentSet findDocumentSet(String id);", "@GetMapping(\"/user-exercise-instance-sets/{id}\")\n @Timed\n public ResponseEntity<UserExerciseInstanceSetDTO> getUserExerciseInstanceSet(@PathVariable Long id) {\n log.debug(\"REST request to get UserExerciseInstanceSet : {}\", id);\n UserExerciseInstanceSetDTO userExerciseInstanceSetDTO = userExerciseInstanceSetService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(userExerciseInstanceSetDTO));\n }", "CurrencySet get(int id);", "public Tile getTile(String id) {\n for (Tile tile : tileSet) {\n if (tile.equals(id)) {\n return tile;\n }\n }\n return null;\n }", "public Set keySet(int id) {\n Object o = list.get(id);\n if (o != null)\n return ((Map) o).keySet();\n else\n return null;\n }", "@Override\r\n public Cuti findById(String id) {\r\n return this.cutiDAO.getById(id);\r\n }", "public Setor buscar(Integer id) {\n\t\tString sql = \" SELECT s.id, s.descricao FROM setor s WHERE id = \" + id + \"; \";\n\n\t\tSetor setor = new Setor();\n\n\t\ttry (Statement sttm = con.createStatement(); ResultSet rs = sttm.executeQuery(sql);) {\n\t\t\tif (rs.next()) {\n\t\t\t\tsetor.setId(id);\n\t\t\t\tsetor.setDescricao(rs.getString(\"descricao\"));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn setor;\n\t}", "DataSet getDataSet(String id);", "public Medium suche(int id) {\n\t\tIterator<Bereich> i = getInhalt().iterator();\n\t\tIterator<Regal> j;\n\t\tIterator<Medium> k;\n\t\tMedium temp;\n\t\twhile(i.hasNext()){\n\t\t\tj = i.next().getInhalt().iterator();\n\t\t\twhile(j.hasNext()){\n\t\t\t\tk = j.next().getInhalt().iterator();\n\t\t\t\twhile(k.hasNext()){\n\t\t\t\t\ttemp = k.next();\n\t\t\t\t\tif(temp.getId() == id) return temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\t@Transactional(readOnly = true) \n public MeasurementDataset findOne(Long id) {\n log.debug(\"Request to get MeasurementDataset : {}\", id);\n MeasurementDataset measurementDataset = measurementDatasetRepository.findOne(id);\n return measurementDataset;\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete IntrusionSet : {}\", id);\n intrusionSetRepository.deleteById(id);\n intrusionSetSearchRepository.deleteById(id);\n }", "public Set getPatternsOfInterest(Object id) {\n if (!clientMap.hasWireID(id)) {\n return null;\n }\n Map patterns = getPatternsOfInterest().get(clientMap.getWireID(id));\n if (patterns != null) {\n return new HashSet(patterns.keySet());\n }\n return null;\n }", "public Intersection getIntersectionById(Long id) {\r\n /*\r\n * Super annoying : we get the graph of CityMap, then we get all the segments that start from the intersection we want to retrieve, \r\n *and then we get the start point of this segment which is the Intersection we want.\r\n */\r\n return MapManagement.getInstance().getMap().getGraph().get(id).get(0).getStart();\r\n }", "@ApiModelProperty(example = \"D1E3B83E-99A3-4AF3-B95B-3DC2913EDDC2\", required = true, value = \"ID of this mapping set\")\n\n public String getId() {\n return id;\n }", "public IConstruct byId(final String id) {\r\n\t\tif (ids == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn (IConstruct) ids.get(id);\r\n\t}", "public Intervention findId(int id){\n\t\tQuery query = this.em.createQuery(\"SELECT i FROM Intervention i LEFT JOIN fetch i.marks m where i.id = :id\");\n\t\tquery.setParameter(\"id\", id);\n\t\ttry\n\t\t{\n\t\t\treturn (Intervention) query.getSingleResult();\n\t\t}\n\t\tcatch(NoResultException e)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public Metric findById(int id) {\n Collection<Metric> metrics = metricMap.values();\n for (Metric metric : metrics) {\n if (metric.getId() == id) {\n return metric;\n }\n }\n return null;\n }", "@Transactional(readOnly = true) \n public Clinic findOne(Long id) {\n log.debug(\"Request to get Clinic : {}\", id);\n Clinic clinic = clinicRepository.findOne(id);\n return clinic;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Specifies the replicas count of the Search service.
Update withReplicaCount(int count);
[ "interface WithReplicaCount {\n /**\n * Specifies the replicas count of the Search service.\n *\n * @param count the replicas count; replicas distribute workloads across the service. You need 2 or more to support high availability (applies to Basic and Standard tiers only)\n * @return the next stage of the definition\n */\n Update withReplicaCount(int count);\n }", "boolean setReplicaCount(Type type, int number);", "@ApiModelProperty(required = true, value = \"replicas is the number of Pods created by the StatefulSet controller.\")\n\n public Integer getReplicas() {\n return replicas;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of non-terminated pods targeted by this deployment (their labels match the selector).\")\n\n public Integer getReplicas() {\n return replicas;\n }", "public int getNumberofReplicas() throws RPCException;", "public Builder setShardsCount(long value) {\n\n shardsCount_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }", "public CreatePrimaryQueryIndexOptions numReplicas(int numReplicas) {\n // yeah, there's no \"s\" in the option name\n return with(\"num_replica\", numReplicas);\n }", "ScaleSpec(int replicas) {\n this.replicas = replicas;\n }", "public Integer replicas() {\n return this.replicas;\n }", "int getReplicaCount(ClusterSpec clusterSpec);", "public void setCount(int value) {\n this.count = value;\n }", "public void setClientCount(int cnt) {\r\n clients = cnt;\r\n }", "public void setSlave(int count) {\n this.slaveCount = count;\n }", "int getReplicaCount(Type type);", "public void setCount(int value) {\n this.count = value;\n }", "void setNumberOfRetries(Integer numberOfRetries);", "public Builder bucketReplicas(int replicas) {\n this.bucketSettingsBuilder.replicas(replicas);\n return this;\n }", "@ApiModelProperty(example = \"2.0\", required = true, value = \"The current minimal ammount of replicas\")\n public BigDecimal getReplicas() {\n return replicas;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.\")\n\n public Integer getAvailableReplicas() {\n return availableReplicas;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Does this request has a body?
public Boolean hasBody() { return body != null; }
[ "public boolean hasMessageBody() { return body!=null; }", "public boolean isExpectingBody() {\r\n\t\tif (Method.GET.equals(method)) return false;\r\n\t\tLong size = mime.getContentLength();\r\n\t\tif (size != null) {\r\n\t\t\tif (size.longValue() == 0) return false;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tString s = mime.getFirstHeaderRawValue(MimeMessage.TRANSFER_ENCODING);\r\n\t\tif (s == null) s = mime.getFirstHeaderRawValue(MimeMessage.CONTENT_TRANSFER_ENCODING);\r\n\t\tif (s == null || s.length() == 0)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public boolean isSetBody() {\n return this.body != null;\n }", "private static boolean hasBody(Response response) {\n // HEAD requests never yield a body regardless of the response headers.\n if (\"HEAD\".equals(response.request().method())) {\n return false;\n }\n\n int responseCode = response.code();\n if ((responseCode < HTTP_CONTINUE || responseCode >= 200)\n && responseCode != HTTP_NO_CONTENT\n && responseCode != HTTP_NOT_MODIFIED) {\n return true;\n }\n\n // If the Content-Length or Transfer-Encoding headers disagree with the\n // response code, the response is malformed. For best compatibility, we\n // honor the headers.\n //noinspection RedundantIfStatement: for more clear logic\n if (Long.parseLong(response.header(\"Content-Length\", \"-1\")) != -1\n || \"chunked\".equalsIgnoreCase(response.header(\"Transfer-Encoding\"))) {\n return true;\n }\n\n return false;\n }", "boolean isPermitsRequestBody();", "private boolean validateJsonBody() {\n try {\n JSONObject json = new JSONObject(jsonBody);\n return true;\n } catch (JSONException e) {\n return false;\n }\n }", "private boolean shouldParseBody(final HttpServerExchange exchange) {\n HttpString method = exchange.getRequestMethod();\n boolean hasBody = method.equals(Methods.POST) || method.equals(Methods.PUT) || method.equals(Methods.PATCH);\n return !config.isSkipProxyBodyHandler() &&\n hasBody &&\n exchange.getRequestHeaders().getFirst(Headers.CONTENT_TYPE) != null &&\n exchange.getRequestHeaders().getFirst(Headers.CONTENT_TYPE).startsWith(\"application/json\");\n }", "boolean isValid()\n {\n return isRequest() && isResponse();\n }", "Optional<Object> getRequestBody();", "boolean hasJsonReqMsg();", "@Then(\"^response body should be valid json$\")\n public void bodyIsValid() throws IOException {\n this.checkJsonBody();\n }", "public boolean isSetFileBody() {\n return this.fileBody != null;\n }", "public boolean isValid() {\n\t\tif(!isRequestAndHeaderLinesValid()) {\n\t\t\treturn false;\n\t\t}\n\t\t//check the consistency of post body if method is \"POST\"\n\t\tif(\"POST\".equals(getMethod())) {\n\t\t\treturn isContentLengthConsistent() && postData != null;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "boolean isNilBody();", "public abstract boolean mustNotHaveBody();", "@Test\n public void notEmptyBody() throws BonitaException, InterruptedException {\n stubFor(post(urlEqualTo(\"/\"))\n .withRequestBody(equalTo(FULL))\n .willReturn(aResponse().withStatus(HttpStatus.SC_OK)));\n\n checkResultIsPresent(executeConnector(buildBodyParametersSet(FULL)));\n }", "@Test\n\tpublic void checkResponsebody() {\n\t\tString responsebody = response.getBody().asString();\n\t\tSystem.out.println(\"Response body is:-\" + responsebody);\n\t\tAssert.assertTrue(responsebody != null);\n\t\t\n\t}", "public boolean isHasEmailBody() {\r\n return !StringUtils.isBlank(this.emailBodyString);\r\n }", "boolean hasRequestDataLength();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Weave lists together in all possible ways. This algorithm works by removing the head from one list, recursing, and then doing the same thing with other list
void weaveLists(LinkedList<Integer> first, LinkedList<Integer> second, ArrayList<LinkedList<Integer>> results, LinkedList<Integer> prefix) { // One list is empty. Add remainder to [a cloned] prefix and store result if (first.size() == 0 || second.size() == 0) { LinkedList<Integer> result = (LinkedList<Integer>)prefix.clone(); result.addAll(first); result.addAll(second); results.add(result); return; } // Recurse with head of first added to the prefix // Removing the head will damage first, // so we'll need to put it back where we found it afterwards int headFirst = first.removeFirst(); prefix.addLast(headFirst); weaveLists(first, second, results, prefix); prefix.removeLast(); first.addFirst(headFirst); // Do the same thing with second, damaging and then restoring the list int headSecond = second.removeFirst(); prefix.addLast(headSecond); weaveLists(first, second, results, prefix); prefix.removeLast(); second.addFirst(headSecond); }
[ "static void weaveLists(LinkedList<Integer> first, LinkedList<Integer> second, ArrayList<LinkedList<Integer>> results, LinkedList<Integer> prefix) {\n\t\t// One list is empty, add remainder to a cloned prefix and store the result.\n\t\tif (first.size() == 0 || second.size() == 0) {\n\t\t\tLinkedList<Integer> result = (LinkedList<Integer>) prefix.clone();\n\t\t\tresult.addAll(first);\n\t\t\tresult.addAll(second);\n\t\t\tresults.add(result);\n\t\t\treturn;\n\t\t}\n\n\t\t// Recurse with head of first added to prefix. Removing the head will\n\t\t// damage first, so we'll put it back where we found it afterwards.\n\t\tint headFirst = first.remove(0);\n\t\tprefix.addLast(headFirst);\n\t\tweaveLists(first, second, results, prefix);\n\t\tprefix.removeLast();\n\t\tfirst.add(0, headFirst);\n\n\t\t// Do the same thing with second.\n\t\tint headSecond = second.remove(0);\n\t\tprefix.addLast(headSecond);\n\t\tweaveLists(first, second, results, prefix);\n\t\tprefix.removeLast();\n\t\tsecond.add(0, headSecond);\n\t}", "private static ArrayList<LinkedList<Node>> weaveLists(Node root, \n\t\t\tArrayList<LinkedList<Node>> AL1, \n\t\t\tArrayList<LinkedList<Node>> AL2)\n\t{\n\t\tArrayList<LinkedList<Node>> A = new ArrayList<LinkedList<Node>>();\n\t\t\n\t\t//prepend 'root' to 'AL1' linked lists\n\t\tArrayList<LinkedList<Node>> X = new ArrayList<LinkedList<Node>>();\n\t\tfor(int i = 0; i < AL1.size(); i++)\n\t\t{\n\t\t\tLinkedList<Node> firstList = new LinkedList<Node>();\n\t\t\tfirstList.add(root);\t\t\t\n\t\t\tLinkedList<Node> secondList = AL1.get(i);\n\n\t\t\tLinkedList<Node> appendedList = appendList(firstList, secondList);\n\t\t\tX.add(appendedList);\n\t\t}\n\t\t\n\t\t//for each 'AL1' linked-list, append each of 'AL2' linked list to get all combinations\n\t\tif(AL2.size() > 0)\n\t\t{\t\t\t\n\t\t\tfor(int i = 0; i < X.size(); i++)\n\t\t\t{\n\t\t\t\tLinkedList<Node> firstList = X.get(i);\n\t\t\t\tfor(int j = 0; j < AL2.size(); j++)\n\t\t\t\t{\n\t\t\t\t\tLinkedList<Node> secondList = AL2.get(j);\n\t\t\t\t\tLinkedList<Node> appendedList = appendList(firstList, secondList);\n\t\t\t\t\tA.add(appendedList);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//if the 2nd linked list does not exist, append just the first list\n\t\t\tfor(int i = 0; i < X.size(); i++)\n\t\t\t\tA.add(X.get(i));\n\t\t}\n\t\t\n\t\treturn A;\n\t}", "public static void weaveLists(LinkedList<Integer> first, LinkedList<Integer> second,\n ArrayList<LinkedList<Integer>> results, LinkedList<Integer> prefix) {\n // One list is empty. Add remainder to [a cloned] prefix and store result.\n if (first.size() == 0 || second.size() == 0) {\n LinkedList<Integer> result = (LinkedList<Integer>) prefix.clone();\n result.addAll(first);\n result.addAll(second);\n results.add(result);\n return;\n }\n // Recurse with head of first added to the prefix. Removing the head will damage\n // first, so we'll need to put it back where we found it afterwards.\n int headFirst = first.removeFirst();\n prefix.addLast(headFirst);\n weaveLists(first, second, results, prefix);\n prefix.removeLast();\n first.addFirst(headFirst);\n\n // Do the same thing with second, damaging and then restoring the list.\n int headSecond = second.removeFirst();\n prefix.addLast(headSecond);\n\n weaveLists(first, second, results, prefix);\n prefix.removeLast();\n second.addFirst(headSecond);\n }", "private void consolidate() {\n\t\tArrayList<Node> rootListNodes = getRootArray();\n\t\tArrayList<Node> sameDegreeNodes = null;\n\t\twhile ((sameDegreeNodes = findSameDegreeNodes(rootListNodes)) != null) {\n\t\t\theapLink(sameDegreeNodes.get(0), sameDegreeNodes.get(1));\n\t\t\trootListNodes = getRootArray();\n\t\t}\n\t}", "private void mergeLists(List<Address> dest, List<Address> src) {\n\tfor (Address a2 : src) {\n\t if (!dest.contains(a2)) {\n\t\tdest.add(a2);\n\t }\n\t}\n }", "private ArrayList<List<?>> permute(List<?>... lists)\n\t{\n\n\t\tArrayList<List<?>> output = new ArrayList<List<?>>();\n\t\tif (lists.length == 0)\n\t\t{\n\t\t\toutput.add(new ArrayList<Object>());\n\t\t\treturn output;\n\t\t}\n\n\t\tfor (List<?> list : lists)\n\t\t{\n\t\t\t// We require that the result has as many elements as the number\n\t\t\t// of lists passed - so if a list is empty, add in a single null.\n\t\t\tif (list.size() == 0)\n\t\t\t\tlist.add(null);\n\t\t}\n\n\t\tList<?> first = lists[0];\n\t\tList<?>[] rest = Arrays.copyOfRange(lists, 1, lists.length);\n\n\t\tfor (Object x : first)\n\t\t{\n\t\t\tArrayList<List<?>> permuted = permute(rest);\n\t\t\tfor (List<?> tocombine : permuted)\n\t\t\t{\n\t\t\t\tArrayList<Object> l = new ArrayList<Object>();\n\t\t\t\tl.add(x);\n\t\t\t\tl.addAll(tocombine);\n\t\t\t\toutput.add(l);\n\t\t\t}\n\t\t}\n\n\t\treturn output;\n\t}", "static Node exchangeNodes(Node head)\r\n\t{\r\n\r\n\t\t// If list is of length 2\r\n\t\tif (head.next.next == head) {\r\n\t\t\thead = head.next;\r\n\t\t\treturn head;\r\n\t\t}\r\n\t\t// Find pointer to previous\r\n\t\t// of last node\r\n\t\tNode p = head;\r\n\t\twhile (p.next.next != head)\r\n\t\t\tp = p.next;\r\n\t\tSystem.out.println(\"-----------\");\r\n\t\ttraverse(p);\r\n\t\t// Exchange first and last\r\n\t\t// nodes using head and p\r\n\t\tSystem.out.println(\"-----------\");\r\n\t\tSystem.out.println(\"-----------\");\r\n\t\tp.next.next = head.next;\r\n\t\tSystem.out.println(\"-----------\");\r\n\t\ttraverse(p);\r\n\t\thead.next = p.next;\r\n\t\tSystem.out.println(\"-----------\");\r\n\t\ttraverse(p);\r\n\t\tp.next = head;\r\n\t\tSystem.out.println(\"-----------\");\r\n\t\ttraverse(p);\r\n\t\thead = head.next;\r\n\t\tSystem.out.println(\"-----------\");\r\n\t\ttraverse(head);\r\n\t\tSystem.out.println(\"-----------\");\r\n\t\treturn head;\r\n\t}", "private static Collection<Node> union(Collection<Node> xs, Collection<Node> ys) {\n if (xs == null || xs.size() == 0) {\n return ys;\n }\n if (ys == null || ys.size() == 0) {\n return xs;\n }\n \n List<Node> result = new ArrayList<>(xs);\n for (Node y : ys) {\n if (!result.contains(y)) {\n result.add(y);\n }\n }\n return result;\n }", "public void unflatten(Doublylinkedlistelement<T> head){\n\t\tDoublylinkedlistelement<T> tempDisplay = head; // start at the beginning of linkedList\n\t\twhile (tempDisplay != null){ // Executes until we don't find end of list. \n\t\t tempDisplay.displaydata();\n\t\t if(tempDisplay.child!=null){\n\t\t \t tempDisplay.child.pre.next=null;\n\t\t \t tempDisplay.child.pre=null;\n\t\t \t unflatten(tempDisplay.child);\n\t\t }\n\t\t tempDisplay = tempDisplay.next; // move to next Node\n\t\t }\n\t\t System.out.println(\" \");\n }", "public ListNode mergeKLists(List<ListNode> lists){\n\t\tif(lists == null || lists.isEmpty()) return null; \n\t\tint start = 0, end = lists.size() - 1; \n\t\twhile(end > 0 ){\n\t\t\tstart = 0; \n\t\t\twhile(start < end ){\n\t\t\t\tlists.set(start, mergeTwoLists(lists.get(start), lists.get(end))); \n\t\t\t\tstart ++; \n\t\t\t\tend --; \n\t\t\t}\n\t\t}\n\t\treturn lists.get(0); \n\t}", "public List<List<Integer>> permute(int[] nums) {\n if (nums.length < 2) {\n LinkedList<List<Integer>> res = new LinkedList<>();\n List<Integer> list = Arrays.stream(nums).boxed().collect(Collectors.toList());\n res.add(list);\n return res;\n }\n\n ArrayList<List<Integer>> result = new ArrayList<>();\n ArrayList<Set<Integer>> setList = new ArrayList<>();\n\n //The base set that all the other sets will be \"cloned\" from\n Set<Integer> numSetBase = Arrays.stream(nums).boxed().collect(Collectors.toSet());\n\n //Initialize the custom map-thingy\n for (int i = 0; i < nums.length; i++) {\n List<Integer> temp = new LinkedList<>();\n temp.add(nums[i]);\n result.add(temp); //Key - the list\n\n Set<Integer> newSet = new HashSet<>(numSetBase);\n newSet.remove(nums[i]);\n\n setList.add(newSet); //Add to the set of stuff left\n }\n\n //Iterate\n for (int i = 1; i < nums.length; i++) {\n //Iterate over the whole list\n int initialSize = result.size();\n for (int j = 0; j < initialSize; j++) {\n boolean isFirstElem = true;\n int firstElem = 0;\n //For each unused int in the set entry\n for (int unused: setList.get(j)) {\n if (isFirstElem) {\n firstElem = unused;\n isFirstElem = false;\n } else {\n //Add new entries for the unused nums\n Set<Integer> newSet = new HashSet<>(setList.get(j));\n List<Integer> newList = new LinkedList<>(result.get(j));\n newList.add(unused);\n newSet.remove(unused);\n //Add the new entry\n result.add(newList);\n setList.add(newSet);\n }\n }\n //Modify the first element\n if (!setList.get(j).isEmpty()) {\n result.get(j).add(firstElem);\n setList.get(j).remove(firstElem);\n }\n }\n }\n return result;\n }", "private static void joinLists (List<String>l1, List<String> l2, List<String> targetList) {\r\n\t\tString temp = new String();\r\n\t\ttry {\r\n\t\t\ttemp = l1.get(0) + l2.get(0);\r\n\t\t\ttargetList.add(temp);\r\n\t\t\tl1.remove(0);\r\n\t\t\tl2.remove(0);\r\n\t\t\tjoinLists (l1,l2, targetList);\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(\"Something went wrong...\");\r\n\t\t\tSystem.out.println(\"Most likely one of your lists was empty!\");\r\n\t\t}\r\n\t}", "Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes);", "private static void backtrack(List<List<Integer>> res, List<Integer> tempList, int[] nums, int start) {\n res.add(new ArrayList<>(tempList));\n System.out.println(tempList);\n\n // start from the i, add the next item once by once. eg (1,2,3), start at '1', then [1], [1,2], [1,2,3]\n for (int i = start; i < nums.length; i++) {\n tempList.add(nums[i]);\n backtrack(res, tempList, nums, i + 1);\n tempList.remove(tempList.size() - 1);\n }\n }", "public void reorderList(ListNode head) {\n if (head == null) {\n return;\n }\n\n ListNode mid = head;\n ListNode tail = head;\n while (tail != null && tail.next != null) {\n mid = mid.next;\n tail = tail.next.next;\n }\n\n ListNode cur = mid.next;\n mid.next = null;\n while (cur != null) {\n ListNode next = cur.next;\n cur.next = mid.next;\n mid.next = cur;\n cur = next;\n }\n\n ListNode left = head;\n ListNode right = mid.next;\n while (right != null) { // right list is shorter than left list.\n mid.next = right.next;\n right.next = left.next;\n left.next = right;\n\n left = right.next;\n right = mid.next;\n }\n }", "@Test\n public void testUnionOfLists() {\n System.out.println(\"UnionOfLists\");\n ArrayList<Integer> arr1 = new ArrayList<>();\n arr1.add(12);\n arr1.add(10);\n arr1.add(23);\n ArrayList<Integer> arr2 = new ArrayList<>();\n arr2.add(23);\n arr2.add(10);\n Collections.sort(arr1);\n ArrayListRecursive instance = new ArrayListRecursive(arr1, arr2);\n List result = instance.UnionOfLists();\n Collections.sort(result);\n assertEquals(arr1, result);\n }", "public void removeDuplicatesA(){\n //fixes generation skipping issue. removes any nodes from one level up that are in the current level\n for(int i = 0; i < pLevels.keySet().size() - 1; i++){\n ArrayList<PersonNode> current = pLevels.get(i);\n ArrayList<PersonNode> oneDown = pLevels.get(i+1);\n for(PersonNode per : current){\n if(oneDown.contains(per)){\n pLevels.get(i+1).remove(per);\n }\n }\n }\n //same as above but for familys\n for(int i = 0; i < fLevels.keySet().size() -1; i++){\n ArrayList<FamilyNode> current = fLevels.get(i);\n ArrayList<FamilyNode> oneDown = fLevels.get(i+1);\n for(FamilyNode fam : current){\n if(oneDown.contains(fam)){\n fLevels.get(i+1).remove(fam);\n }\n }\n }\n }", "private static void stitchList(List<Child> list, String name, List<? extends Child> newSubList) {\n // to preserve order, try to put new itesm where old items are found.\n // if the new list is longer than the current list, we put all the extra\n // after the last item in the sequence. That is,\n // given [A,A,B,C] and [A',A',A'], we'll update the list to [A',A',A',B,C]\n // The 'last' variable remembers the insertion position.\n int last = list.size();\n \n ListIterator<Child> itr = list.listIterator();\n ListIterator<? extends Child> jtr = newSubList.listIterator();\n while(itr.hasNext()) {\n Child child = itr.next();\n if(child.name.equals(name)) {\n if(jtr.hasNext()) {\n itr.set(jtr.next()); // replace\n last = itr.nextIndex();\n } else\n itr.remove(); // remove\n }\n }\n \n // new list is longer than the current one\n if(jtr.hasNext())\n list.addAll(last,newSubList.subList(jtr.nextIndex(),newSubList.size()));\n }", "public void removeDuplicates() {\n\t\tif (isEmpty())\n\t\t\treturn;\n\t\tHashSet<T> items = new HashSet<T>();\n\t\titems.add(front.getData());\n\t\tNode<T> curr = front.getNext();\n\t\twhile (curr != null) {\n\t\t\tif (!items.contains(curr.getData())) {\n\t\t\t\titems.add(curr.getData());\n\t\t\t\tcurr = curr.getNext();\n\t\t\t} else {\n\t\t\t\tif (curr.getNext() == null)\n\t\t\t\t\tremoveEnd();\n\t\t\t\telse {\n\t\t\t\t\tcurr = curr.getNext();\n\t\t\t\t\tremoveNode(curr.getPrev());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Print the start of the HTML table.
private ConfigurationHTMLPrinter startTable() { return println("<table border='0' cellspacing='0' cellpadding='0'>").incrementIndent(); }
[ "private void printTable() {\n System.out.println(\"COMPLETED SLR PARSE TABLE\");\n System.out.println(\"_________________________\");\n System.out.print(\"\\t|\");\n // print header\n for(int i = 0; i < pHeader.size(); i++) {\n pHeader.get(i);\n System.out.print(\"\\t\" + i + \"\\t|\");\n }\n System.out.println();\n // print body\n for(int i = 0; i < parseTable.size(); i++) {\n System.out.print(i + \"\\t|\");\n for(int j = 0; j < parseTable.get(i).size(); j++) {\n System.out.print(\"\\t\" + parseTable.get(i).get(j) + \"\\t|\");\n }\n System.out.println();\n }\n System.out.println();\n System.out.println(\"END OF SLR PARSE TABLE\");\n System.out.println();\n }", "public void printOutStart()\r\n {\r\n writer.println(\"<!DOCTYPE html>\");\r\n writer.println(\"<html>\");\r\n writer.println(\"<head>\");\r\n writer.println(\"<title>Result</title>\");\r\n writer.println(\"<meta charset=\\\"UTF-8\\\">\");\r\n writer.println(\"<meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\">\");\r\n writer.println(\"</head>\");\r\n writer.println(\"<body>\");\r\n \r\n }", "public void printTable() {\r\n \tif (table.size() == 0)\r\n Logger.error(\"Table \" + table.getType() + \" is empty!\");\r\n else {\r\n table.forEachRow(new EachRowListenerPrint());\r\n }\r\n }", "public void printTable() {\r\n System.out.println(frame+\") \");\r\n for (int y = 0; y < table.length; y++) {\r\n System.out.println(Arrays.toString(table[y]));\r\n }\r\n frame++;\r\n }", "public void printTable() {\n System.out.print(\"\\033[H\\033[2J\"); // Clear the text in console\n System.out.println(getCell(0, 0) + \"|\" + getCell(0, 1) + \"|\" + getCell(0, 2));\n System.out.println(\"-+-+-\");\n System.out.println(getCell(1, 0) + \"|\" + getCell(1, 1) + \"|\" + getCell(1, 2));\n System.out.println(\"-+-+-\");\n System.out.println(getCell(2, 0) + \"|\" + getCell(2, 1) + \"|\" + getCell(2, 2));\n }", "private void logBeginningOfTheTable() {\n\t\tLOG.log(Level.FINER, () -> \"Stupac tablice:\");\n\t\tLOG.log(Level.FINER, () -> \"=================================\");\n\t}", "public void printTable(){\n System.out.println(\"\\n\");\n System.out.println(tableHeading);\n for(Auction x : table.values()){\n System.out.println(x.toString());\n }\n System.out.println(\"\\n\");\n }", "public static void printHeader()\n {\n \n System.out.println (\"\\n\\t**************************Payroll Report***************************\");\n System.out.printf (\"\\n\\t%-20s%20s\",\"Name: \\t\", name);\n System.out.printf (\"\\n\\t%-20s%20s\",\"Course:\\t\", course);\n System.out.printf (\"\\n\\t%-20s%20s\",\"Date: \\t\", dateCreated);\n System.out.println (\"\\n\\t*******************************************************************\");\n\n }", "public void printHeader(){\n System.out.println(\"--------------Employees-----------------------\");\n System.out.println(\"| First name | Last name | ID Number | Shift |\");\n System.out.println(\"----------------------------------------------\");\n }", "public void displaytable(){\n\t\tSystem.out.println(sku + \"\\t\" + quantity + \"\\t\" + \n\t priceFormat.format(price)+ \"\\t\" + title);\n\t}", "public static void printHeader()\n {\n System.out.println (\"\\n\\t********************* Shipping Report **************************\");\n System.out.printf (\"\\n\\t%-20s%-20s\",\"Name: \\t\",name);\n System.out.printf (\"\\n\\t%-20s%-20s\",\"Course Name: \\t\",course);\n System.out.printf (\"\\n\\t%-20s%-20s\",\"Date: \\t\",dateCreated);\n\n }", "public static void printHeader() {\n\t\tSystem.out.println(\"No.\t\tDate\t\t\tDebit\t\tCredit\t\tDescription\");\n\t\tSystem.out.println(\"-------------------------------------------------------------------------------------------\");\n\t}", "@Override\n\tpublic void print() {\n\t\ttry {\n\t\t\tTablePrinter.printTable(todoTable);\n\t\t} catch (Exception e) {\n\t\t\tErrmsg.getErrorHandler().errmsg(e);\n\t\t}\n\t}", "public void printHeader() {\n\t\tStringBuffer output = new StringBuffer();\n\n\t\tfor (int i = 1; i <= this.AANTAL_KOLOMMEN; i++) {\n\t\t\toutput.append(\" \");\n\t\t\toutput.append(i);\n\t\t}\n\t\tSystem.out.println(output);\n\t}", "public void printTable() {\r\n\r\n for (LinkedList<HashNode> index : this.list) {\r\n\r\n System.out.println(index);\r\n\r\n }\r\n\r\n }", "public void printTable() {\n System.out.println(formatForPrint(Arrays.toString(conditionNames)));\n for (int row = 0; row < rowCount; row++) {\n System.out.println(formatForPrint(Arrays.toString(inputMatrix[row])) + \" | \" + resultArray[row]);\n }\n }", "void printTable() {\r\n //print what function it is.\r\n table.println(\"***symbol table for function \" + symTable[ftix].name);\r\n table.println();\r\n table.println(\"indx*\" + \"\\t\\t\" + \"name*type*disp*pcnt*reva\");\r\n table.println();\r\n for (int i = ftix; i < tix; i++) {\r\n table.println(i+\"*\" +\"\\t\\t\\t\" + symTable[i].name + \"*\\t\\t\" + symTable[i].type+ \"*\\t\" +\r\n symTable[i].disp + \"*\\t\"+ symTable[i].pcnt + \"*\\t\" + String.valueOf(symTable[i].reva));\r\n }\r\n table.flush();\r\n table.println();\r\n }", "private void tableStatus() {\n\t\t//Print Tables\n\t\tSystem.out.println(\"--------------------------------------------\");\n\t\tSystem.out.println(\" Tables \");\n\t\tSystem.out.println(\"--------------------------------------------\");\n\t\tfor (Table table : restaurant.getTables()){\n\t\t\tSystem.out.println(table.toString());\n\t\t}\n\t}", "public void printTables(){\n\t\t\tSystem.out.println(\"\\nMEETING TABLES STOCK\");\n\t\t\tint k=0;\n\t\t\tfor(int i=0; i<10; i++){\n\t\t\t\tfor(int j=0; j<4; j++){\n\t\t\t\t\tSystem.out.print((k+1) +\"- \");\t\n\t\t\t\t\tprintModel(i);\n\t\t\t\t\tprintColor(j);\n\t\t\t\t\tSystem.out.print(\"|\\t\");\n\t\t\t\t\tk++;\n\t\t\t\t}System.out.println();}\n\t\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called by the homeworkViewer when homework has changed completionstate
public void homeworkCompletionChanged(Homework homework) { overview.updateHomeworkCompletionState(homework); }
[ "public void setStateComplete() {state = STATUS_COMPLETE;}", "public void setCompleted() {\n this.completed = true;\n }", "public void completed() {\n isCompleted = true;\n }", "@FXML\n public void completeCurrentInterview() {\n try {\n Interview selectedInterview = this.listInterview.getSelectionModel().getSelectedItem();\n selectedInterview.setCompleted(true);\n selectedInterview.getApplication().completeInterview();\n this.interviewClicked();\n\n AlertHelper.showInformationAlert(\"This interview has been completed.\");\n\n // Reset view\n this.populateListInterview(interviewer.getPendingInterviews());\n this.populateInterviewInfo(selectedInterview);\n } catch (Exception ex) {\n AlertHelper.showErrorAlert(\"Unable to complete interview: \" + ex.getLocalizedMessage());\n }\n }", "public void setCompleted() {\n\t\tthis.completed = true;\n\t}", "void toggleWorkoutCompleted(WorkoutSession workoutSession);", "public synchronized void setComplete() {\n status = Status.COMPLETE;\n }", "protected void updatePageCompletion() {\r\n boolean pageComplete = determinePageCompletion();\r\n setPageComplete(pageComplete);\r\n if (pageComplete) {\r\n setErrorMessage(null);\r\n }\r\n }", "public void markComplete()\n {\n setCount(getGoal());\n }", "protected void notifyCompleted() {\n\t\tstateListener.state(ContainerState.COMPLETED);\n\t}", "public void CompleteTask() {\n\t\tCompletionDate = new Date();\n\t}", "protected void setFinished()\n\t{\n\t\tthis.finished = true;\n\t}", "public static void afterCompleteAllProcessing()\n {\n __jLabel_taskdescription.setText(\"<html><font color=red><b>Task Completed<b></font></html>\");\n __jButton_back.setEnabled(true);\n __jButton_stop.setText(\"Go to result Editor\");\n }", "public void setDoneWorking() {\r\n\t\tthis.doneWorking = true;\r\n\t}", "public void setStateToComplete(ElapsedTime elapsedTime) {\n progressBar.setIndeterminate(false);\n progressBar.setValue(progressBar.getMaximum());\n progressBarLabel.setText(\"Simulations have completed in \" + elapsedTime.toString() + \".\");\n openFolderButton.setVisible(true);\n }", "@Override\r\n public void updateExit() {\r\n if (((CompositeGoal) compositeGoal).allOtherGoalsComplete()) {\r\n goalCompleted = true;\r\n compositeGoal.processGoal();\r\n } else {\r\n System.out.println(\"Need to complete other goals first\");\r\n }\r\n }", "public void finishedUpdating() {\n\t\ttilesChanged = false;\n\t\tdecisionsChanged = false;\n\t\tcommentsChanged = false;\n\t\tendingChanged = false;\n\t}", "public void onHomeworkSelected(Homework homework) {\n\t\tif(currentContentFragment != homeworkViewer) {\n\t\t\t//Set the currentContentFragment as this:\n\t\t\tcurrentContentFragment = homeworkViewer;\n\t\t\t\n\t\t\tFragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\t\t\ttransaction.replace(R.id.inclass_content_frame, homeworkViewer);\n\t\t\ttransaction.commit();\n\n\t\t\tFragmentManager fragmentManager = getSupportFragmentManager();\n\t\t\tfragmentManager.executePendingTransactions();\n\t\t}\n\t\t\n\t\thomeworkViewer.loadHomework(homework);\n\t}", "public void subTreeComplete() {\n _guiState.setState(_currentState); \n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new image model.
public ImageModel() { this.inputImage = null; }
[ "@SuppressWarnings(\"OverridableMethodCallInConstructor\")\n public Model(BufferedImage image) {\n this.image = image;\n resetcontrols();\n }", "public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}", "public ImageController() {\n em = EMF.createEntityManager();\n }", "private ImageLoader() {}", "public controllerImagen() {\r\n }", "public interface ImageModel {\n\n /**\n * Returns a copy of the pixels making up the image.\n *\n * @return a 2D array containing the pixels of type K in the ImageModel\n */\n IPixel[][] getPixels();\n\n /**\n * Returns the pixel at the given coordinate.\n *\n * @param x x coordinate of the pixel\n * @param y y coordinate of the pixel\n * @return IPixel at (x,y)\n */\n IPixel getPixel(int x, int y);\n\n /**\n * Returns the width of the image in number of pixels.\n *\n * @return width of the image\n */\n int width();\n\n /**\n * Returns the height of the image in number of pixels.\n *\n * @return height of the image\n */\n int height();\n\n\n /**\n * Returns the minimum value of any of the values that make up the hue of the pixels used to form\n * the image.\n *\n * @return min value of pixels.\n */\n int minPixelValue();\n\n /**\n * Returns the maximum value of any of the values that make up the hue of the pixels used to form\n * the image.\n *\n * @return max value of pixels.\n */\n int maxPixelValue();\n\n /**\n * Creates a new image but uses the same image properties as the original one. This is used when\n * creating a new image with a filter or transformation.\n *\n * @param pixels the pixels of the new image\n * @return a new ModelImage with the all values remaining the same except the pixels are different\n * @throws IllegalArgumentException if the values of any of the pixels are illegal\n */\n ImageModel copyProperties(IPixel[][] pixels) throws IllegalArgumentException;\n}", "public ImageResource() {\n }", "IMG createIMG();", "public HSIImage()\r\n {\r\n }", "public LabelImage() {\n }", "public ImageProcessor(Pic a) {\n image = a;\n }", "public VectorImage() {\n\t}", "Image createImage();", "protected abstract void createInitialImage();", "public RegisterImageRequest() {}", "IFMLModel createIFMLModel();", "public Picture()\n {\n // nothing to do... instance variables are automatically set to null\n }", "public FlickrPhoto() {\r\n }", "public ControllerImpl(Readable in, EnhancedImageModel model) {\n super(model);\n this.in = in;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column r_industry_generate_history.invalid_name
public String getInvalidName() { return invalidName; }
[ "public static String Slave_InvalidConfig_NoName() {\n return holder.format(\"Slave.InvalidConfig.NoName\");\n }", "@DefaultMessage(\"A record with this value already exists. Please enter a unique value for this field\")\n @Key(\"gen.fieldUniqueException\")\n String gen_fieldUniqueException();", "public void setInvalidName(String invalidName) {\n this.invalidName = invalidName;\n }", "public static String generateUniquenessFailedErrorMessage(SQLException error) {\n String propertyName = getUniqueConstraintFailedPropertyName(error.getMessage());\n if (propertyName == null) {\n return error.getMessage();\n } else {\n return String.format(\"The value for the %s must be unique\", propertyName);\n }\n// return new DataConstraintsException(propertyName == null? Data.UNKNOWN_COLUMN: propertyName, \"Another entry with the same value already exists\"); // Want to change it to this since the setters/constructors use this\n }", "public String getInvalidLastNameMessage() {\n if (invalidLastName) {\n return getInvalidMessage(INVALID_LAST_NAME_MSG);\n }\n return \"\";\n }", "public String getInvalidPropertyName() {\n return invalidPropertyName;\n }", "@DefaultMessage(\"Please enter a unique value for this field\")\n @Key(\"gen.fieldUniqueOnlyException\")\n String gen_fieldUniqueOnlyException();", "public String getDuplicateUpdateColumnString() {\n return null;\n }", "@Test\r\n public void testInvalidColumnName() {\r\n Schema invalidColumnNameSchema = schema(simpleValidTable, invalidColumnNameTable);\r\n try {\r\n SchemaValidator validator = new SchemaValidator();\r\n validator.validate(invalidColumnNameSchema);\r\n fail(\"Expected a RuntimeException for an invalid column name\");\r\n } catch (RuntimeException e) {\r\n assertTrue(\"Expected [Invalid31CharacterColumnNameXxx] in error message: \"+e.getMessage(),\r\n e.getMessage().contains(\"Invalid31CharacterColumnNameXxx\"));\r\n }\r\n }", "private String getInvalidMessage() {\n return \"Invalid entry. Try again.\";\n }", "@Override\n public int getNameColumn() {\n return -1;\n }", "private String getEffectiveSnapshotName() throws IllegalArgumentException {\n if (snapshotName != null) {\n return snapshotName;\n }\n \n return tableName + \"-snapshot-\" + DATE_FORMAT.format(new Date());\n }", "java.lang.String getNonUniqueName();", "String generateName() {\n if (logger.isInfoEnabled()) {\n return nextName();\n } else {\n return null;\n }\n }", "@Override\r\n public String getUniqueName() {\r\n return uniqueName; \r\n }", "java.lang.String getErrorUuid();", "@java.lang.Override\n public java.lang.String getNonUniqueName() {\n return nonUniqueName_;\n }", "public String getInvalidGuid() {\n return invalidGuid;\n }", "public static String Job_NoRecentBuildFailed() {\n return holder.format(\"Job.NoRecentBuildFailed\");\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the beverageQty value for this Beverage.
public void setBeverageQty(int beverageQty) { this.beverageQty = beverageQty; }
[ "public void setQty(int value) {\n this.qty = value;\n }", "public void setQty(java.math.BigDecimal qty) {\n\t\tthis.qty = qty;\n\t}", "public void setBalQty(Number value) {\n setAttributeInternal(BALQTY, value);\n }", "public int getBeverageQty() {\n return beverageQty;\n }", "public void setBalanceQty(Number value) {\n setAttributeInternal(BALANCEQTY, value);\n }", "public void setQty(Integer qty) {\n this.qty = qty;\n }", "public void setProductStock(int qty){\n\t\tstockQuantity = qty;\r\n\t}", "public void setInseamQty(Number value) {\n setAttributeInternal(INSEAMQTY, value);\n }", "public void setSizeQty(Number value) {\n setAttributeInternal(SIZEQTY, value);\n }", "public void setDifferenceQty(BigDecimal DifferenceQty);", "public void setQtyCount(int QtyCount);", "public void setOrderQty(Number value) {\n setAttributeInternal(ORDERQTY, value);\n }", "public void setWastageInQty(Number value) {\n setAttributeInternal(WASTAGEINQTY, value);\n }", "public void setPlanQty(Number value) {\n setAttributeInternal(PLANQTY, value);\n }", "public void setQuantity(int value)\n {\n this.quantity = value;\n this.isquantitySet = true;\n }", "public void setExpectedQty(BigDecimal expectedQty) {\n this.expectedQty = expectedQty;\n }", "public void setNowQty(BigDecimal nowQty) {\n this.nowQty = nowQty;\n }", "public void setItQuantity(int value) {\n this.itQuantity = value;\n }", "public void setMinQty (BigDecimal MinQty);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if `color1' is equal to `color2'; false otherwise. APISince: 2.0
@Generated @CFunction public static native boolean CGColorEqualToColor(@Nullable CGColorRef color1, @Nullable CGColorRef color2);
[ "private boolean checkSameColor(float[] c1, float[] c2) {\n return c1[0] == c2[0] && c1[1] == c2[1] && c1[2] == c2[2];\r\n }", "private boolean isEqualRgb(int[] color1, int[] color2) {\n // Could use Arrays.equals(int[], int[]), but this is probably a little faster...\n return color1[0] == color2[0] && color1[1] == color2[1] && color1[2] == color2[2] && color1[3] == color2[3];\n }", "private boolean sameColor(char color1, char color2) {\n\t\treturn color1 == color2 || color1 == color2 + 'A' - 'a' || color1 == color2 + 'a' - 'A';\n\t}", "private static boolean colorMatch(Color c1, Color c2) {\n\t\t// TODO: YOUR CODE HERE\n\t\tint redDifference = Math.abs(c1.getRed() - c2.getRed());\n\t\tint greenDifference = Math.abs(c1.getGreen() - c2.getGreen());\n\t\tint blueDifference = Math.abs(c1.getBlue() - c2.getBlue());\n\t\tif (redDifference <= maxColorDiff && greenDifference <= maxColorDiff && blueDifference <= maxColorDiff) {\n\t\t\treturn true;\n\t\t}\n\t\telse return false;\n\t\t}", "private boolean compareColor(int id1, int id2) {\r\n\t\treturn cardSet.getColor(id1).equals(cardSet.getColor(id2));\r\n\t}", "public static boolean colorlessEquals(final String first, final String second) {\r\n\t\treturn Common.stripColors(first).equalsIgnoreCase(Common.stripColors(second));\r\n\t}", "public static boolean isSameColor() {\n\t\tboolean result = false;\n\t\t\n\t\tif(!isAllSelected()) return result;\n\t\t\n\t\tif(model.getSelectList().get(0).getColor() == model.getSelectList().get(1).getColor()\n\t\t\t&& model.getSelectList().get(1).getColor() == model.getSelectList().get(2).getColor()\n\t\t\t&& model.getSelectList().get(2).getColor() == model.getSelectList().get(3).getColor()) {\n\t\t\tresult = true;\n\t\t}\n\t\t\t\t\n\t\treturn result;\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n Color color = (Color) o;\n\n return Float.compare(color.r, r) == 0\n && Float.compare(color.g, g) == 0\n && Float.compare(color.b, b) == 0\n && Float.compare(color.a, a) == 0;\n }", "public boolean isSetColor(Card card1, Card card2, Card card3) {\n\t\tif ((card1.getColor().equals(card2.getColor()) && card2.getColor()\n\t\t\t\t.equals(card3.getColor()))\n\t\t\t\t|| (!card1.getColor().equals(card2.getColor())\n\t\t\t\t\t\t&& !card2.getColor().equals(card3.getColor()) && !card1\n\t\t\t\t\t\t.getColor().equals(card3.getColor()))) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected final boolean isDifferentColor(Card cardOne, Card cardTwo)\n {\n return cardOne.getColor() != cardTwo.getColor();\n }", "public boolean colorEquals(MagipicPuzzle other) {\r\n if (this.squares.size() != other.squares.size()) {\r\n return false;\r\n } else {\r\n for (int i : Interval.zeroUpTo(this.squares.size())) {\r\n if (!this.squares.get(i).colorEquals(other.squares.get(i))) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "private boolean isSameColor(Color color){\n if(this.isEmpty()) return false;\n return this.piece.getColor() == color;\n }", "private static boolean haveSameColor(Cell[][] cellBoard, int x1, int y1,\n\t\t\tint x2, int y2) {\n\t\tCell cell1 = getCell(cellBoard, x1, y1);\n\t\tCell cell2 = getCell(cellBoard, x2, y2);\n\t\tif (cell1 == null || cell2 == null)\n\t\t\treturn false;\n\t\treturn cell1.hasCandy()\n\t\t\t\t&& cell1.getCandy().getColour() != null\n\t\t\t\t&& cell2.hasCandy()\n\t\t\t\t&& cell2.getCandy().getColour() != null\n\t\t\t\t&& cell1.getCandy().getColour()\n\t\t\t\t\t\t.equals(cell2.getCandy().getColour())\n\t\t\t\t&& !cell1.getCandy().getCandyType().equals(CandyType.UNMOVABLE);\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 }", "public static boolean colorlessEquals(final String[] firstArray, final String[] secondArray) {\r\n\t\tfor (int i = 0; i < firstArray.length; i++) {\r\n\t\t\tfinal String first = Common.stripColors(firstArray[i]);\r\n\t\t\tfinal String second = i < secondArray.length ? Common.stripColors(secondArray[i]) : \"\";\r\n\r\n\t\t\tif (!first.equalsIgnoreCase(second))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public boolean isValueAndColorMatch(Card other) {\r\n return (value == other.getValue() && color == other.getColor());\r\n }", "public boolean compareColor(int x, int y, Color c) {\n //this compares the double values but uses ints for the actual comparison\n return (int)this.fb[x][y][0] * 255 == (int)c.getRed() * 255 && (int)this.fb[x][y][1] * 255 == (int)c.getGreen() * 255 && (int)this.fb[x][y][2] * 255 == (int)c.getBlue() * 255 && this.fb[x][y][3] == c.getOpacity();\n }", "boolean isColorSet();", "public final boolean isSameColorAs(ChessPiece otherPiece) {\n return this.val * otherPiece.val > 0;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Perform some validation on the kindGroup field values against the entity field definitions.
private static void validateEntity(KindGroup entity) throws ValidationException { Validator.validateStringField("code", entity.getCode(), 10, true); Validator.validateStringField("description", entity.getDescription(), 75,true); Validator.validateBooleanField("isStandard", entity.isStandard(), true); }
[ "protected ValidationResult validateFieldLevel()\n {\n return getSyntaxValidator().isValid(fetchHandler().getData());\n }", "protected void validateEntity() {\r\n super.validateEntity();\r\n }", "protected void validateEntity() {\n super.validateEntity();\n }", "protected void validateEntity() {\n super.validateEntity();\n }", "private void checkValid() {\n FacetChecker.checkFacetName(getName());\n Preconditions.checkState(\n constraints.size() < SearchApiLimits.FACET_MAXIMUM_CONSTRAINTS,\n \"More than %s constraints.\",\n SearchApiLimits.FACET_MAXIMUM_CONSTRAINTS);\n Preconditions.checkState(\n ranges.size() < SearchApiLimits.FACET_MAXIMUM_RANGES,\n \"More than %s ranges.\",\n SearchApiLimits.FACET_MAXIMUM_RANGES);\n Preconditions.checkState(\n constraints.isEmpty() || ranges.isEmpty(),\n \"Constraints and ranges set for the same request.\");\n for (String constraint : getValueConstraints()) {\n FacetQueryChecker.checkFacetValue(constraint);\n }\n }", "public void createErrorsForWholeModel() {\r\n\t\tSet<Object> keySet = elementToWidgetMap.keySet();\r\n\t\tfor (Object object : keySet) {\r\n\t\t\tvalidate(object, ((IValuesContentProvider) getContentProvider())\r\n\t\t\t\t\t.getValue(object));\r\n\t\t}\r\n\t}", "void validate(Object fieldValue, CustomField fieldDefinition);", "@SuppressWarnings(\"unchecked\")\n public Object validate() {\n if (dataType.getValueType() != null) {\n value = DataEntity.validateDatatype(dataType.getValueType(), value, null, customDef, null);\n Schema schemaCls = new Schema(propertyName, dataType.getDefs());\n for (Constraint constraint : schemaCls.getConstraints()) {\n constraint.validate(value);\n }\n }\n // If the datatype has 'properties' definition\n else {\n if (!(value instanceof LinkedHashMap)) {\n //ERROR under investigation\n String checkedVal = value != null ? value.toString() : null;\n\n ThreadLocalsHolder.getCollector().appendValidationIssue(new JToscaValidationIssue(\"JE001\", String.format(\n \"TypeMismatchError: \\\"%s\\\" is not a map. The type is \\\"%s\\\"\",\n checkedVal, dataType.getType())));\n\n if (value instanceof List && ((List) value).size() > 0) {\n value = ((List) value).get(0);\n }\n\n if (!(value instanceof LinkedHashMap)) {\n return value;\n }\n }\n\n\n LinkedHashMap<String, Object> valueDict = (LinkedHashMap<String, Object>) value;\n ArrayList<String> allowedProps = new ArrayList<>();\n ArrayList<String> requiredProps = new ArrayList<>();\n LinkedHashMap<String, Object> defaultProps = new LinkedHashMap<>();\n if (schema != null) {\n allowedProps.addAll(schema.keySet());\n for (String name : schema.keySet()) {\n PropertyDef propDef = schema.get(name);\n if (propDef.isRequired()) {\n requiredProps.add(name);\n }\n if (propDef.getDefault() != null) {\n defaultProps.put(name, propDef.getDefault());\n }\n }\n }\n\n // check allowed field\n for (String valueKey : valueDict.keySet()) {\n //1710 devlop JSON validation\n if (!(\"json\").equals(dataType.getType()) && !allowedProps.contains(valueKey)) {\n ThreadLocalsHolder.getCollector().appendValidationIssue(new JToscaValidationIssue(\"JE100\", String.format(\n \"UnknownFieldError: Data value of type \\\"%s\\\" contains unknown field \\\"%s\\\"\",\n dataType.getType(), valueKey)));\n }\n }\n\n // check default field\n for (String defKey : defaultProps.keySet()) {\n Object defValue = defaultProps.get(defKey);\n if (valueDict.get(defKey) == null) {\n valueDict.put(defKey, defValue);\n }\n\n }\n\n // check missing field\n ArrayList<String> missingProp = new ArrayList<>();\n for (String reqKey : requiredProps) {\n if (!valueDict.keySet().contains(reqKey)) {\n missingProp.add(reqKey);\n }\n }\n if (missingProp.size() > 0) {\n ThreadLocalsHolder.getCollector().appendValidationIssue(new JToscaValidationIssue(\"JE003\", String.format(\n \"MissingRequiredFieldError: Data value of type \\\"%s\\\" is missing required field(s) \\\"%s\\\"\",\n dataType.getType(), missingProp.toString())));\n }\n\n // check every field\n for (String vname : valueDict.keySet()) {\n Object vvalue = valueDict.get(vname);\n LinkedHashMap<String, Object> schemaName = _findSchema(vname);\n if (schemaName == null) {\n continue;\n }\n Schema propSchema = new Schema(vname, schemaName);\n // check if field value meets type defined\n DataEntity.validateDatatype(propSchema.getType(),\n vvalue,\n propSchema.getEntrySchema(),\n customDef,\n null);\n\n // check if field value meets constraints defined\n if (propSchema.getConstraints() != null) {\n for (Constraint constraint : propSchema.getConstraints()) {\n if (vvalue instanceof ArrayList) {\n for (Object val : (ArrayList<Object>) vvalue) {\n constraint.validate(val);\n }\n } else {\n constraint.validate(vvalue);\n }\n }\n }\n }\n }\n return value;\n }", "@SuppressWarnings(\"null\")\n \tstatic boolean allowAdd(Group group, DefinitionGroup groupDef,\n \t\t\tQName propertyName) {\n \t\tif (group == null && groupDef == null) {\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n \t\t\n \t\tfinal DefinitionGroup def;\n \t\tif (groupDef == null) {\n \t\t\tdef = group.getDefinition();\n \t\t}\n \t\telse {\n \t\t\tdef = groupDef;\n \t\t}\n \t\t\n \t\tif (group == null) {\n \t\t\t// create an empty dummy group if none is specified\n \t\t\tgroup = new Group() {\n \t\t\t\t@Override\n \t\t\t\tpublic Object[] getProperty(QName propertyName) {\n \t\t\t\t\treturn null;\n \t\t\t\t}\n \t\n \t\t\t\t@Override\n \t\t\t\tpublic Iterable<QName> getPropertyNames() {\n \t\t\t\t\treturn Collections.emptyList();\n \t\t\t\t}\n \t\n \t\t\t\t@Override\n \t\t\t\tpublic DefinitionGroup getDefinition() {\n \t\t\t\t\treturn def;\n \t\t\t\t}\n \t\t\t};\n \t\t}\n \t\t\n \t\tif (def instanceof GroupPropertyDefinition) {\n \t\t\t// group property\n \t\t\tGroupPropertyDefinition gpdef = (GroupPropertyDefinition) def;\n \t\t\t\n \t\t\tif (gpdef.getConstraint(ChoiceFlag.class).isEnabled()) {\n \t\t\t\t// choice\n \t\t\t\t// a choice may only contain one of its properties\n \t\t\t\tfor (QName pName : group.getPropertyNames()) {\n \t\t\t\t\tif (!pName.equals(propertyName)) {\n \t\t\t\t\t\t// other property is present -> may not add property value\n \t\t\t\t\t\treturn false;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t// check cardinality\n \t\t\t\treturn allowAddCheckCardinality(group, propertyName);\n \t\t\t}\n \t\t\telse {\n \t\t\t\t// sequence, group(, attributeGroup)\n \t\t\t\t\n \t\t\t\t// check order\n\t\t\t\tif (!allowAddCheckOrder(group, propertyName, def)) {\n \t\t\t\t\treturn false;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// check cardinality\n \t\t\t\treturn allowAddCheckCardinality(group, propertyName);\n \t\t\t}\n \t\t}\n \t\telse if (def instanceof TypeDefinition) {\n \t\t\t// type\n \t\t\tTypeDefinition typeDef = (TypeDefinition) def;\n \t\t\t\n \t\t\t// check order\n \t\t\tif (!allowAddCheckOrder(group, propertyName, typeDef)) {\n \t\t\t\treturn false;\n \t\t\t}\n \t\t\t\n \t\t\t// check cardinality\n \t\t\treturn allowAddCheckCardinality(group, propertyName);\n \t\t}\n \t\t\n \t\treturn false;\n \t}", "public void setRequiredGroupType(typekey.GroupType value);", "@Test\n public void emptyGroup() {\n assertThat(LineValidator.isValidGroup(new ValidatorGroup())).isFalse();\n }", "protected ValidationResult validateFormLevel()\n {\n fieldData = null;\n Object data = fetchFieldData();\n ValidationResult result = validateFieldData(data);\n if (result.isValid())\n {\n fieldData = data;\n }\n return result;\n }", "private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }", "public void test_validate_5() throws Exception {\n DirectProjectMetadataKey projectMetadataKey = new DirectProjectMetadataKey();\n projectMetadataKey.setGrouping(true);\n projectMetadataKey.setName(\"key\");\n try {\n\t\t\tinstance.validate(projectMetadataKey);\n fail(\"Expects ValidationException\");\n } catch (ValidationException e) {\n // good\n }\n }", "protected void validateWikiGroup(WikiGroup group) throws WikiException {\r\n\t\tcheckLength(group.getName(), 30);\r\n\t\tgroup.setDescription(StringUtils.substring(group.getDescription(), 0, 200));\r\n\t}", "private void validateFields () throws ModelValidationException\n\t\t\t{\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tModel model = getModel();\n\t\t\t\t// check for valid typed public non-static fields\n\t\t\t\tList keyClassFieldNames = model.getAllFields(keyClassName);\n\t\t\t\tMap keyFields = getKeyFields();\n\n\t\t\t\tfor (Iterator i = keyClassFieldNames.iterator(); i.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString keyClassFieldName = (String)i.next();\n\t\t\t\t\tObject keyClassField = \n\t\t\t\t\t\tgetKeyClassField(keyClassName, keyClassFieldName);\n\t\t\t\t\tint keyClassFieldModifiers = \n\t\t\t\t\t\tmodel.getModifiers(keyClassField);\n\t\t\t\t\tString keyClassFieldType = model.getType(keyClassField);\n\t\t\t\t\tObject keyField = keyFields.get(keyClassFieldName);\n\n\t\t\t\t\tif (Modifier.isStatic(keyClassFieldModifiers))\n\t\t\t\t\t\t// we are not interested in static fields\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!model.isValidKeyType(keyClassName, keyClassFieldName))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_invalid\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!Modifier.isPublic(keyClassFieldModifiers))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_public\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (keyField == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!keyClassFieldType.equals(model.getType(keyField)))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_mismatch\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName, pcClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\t// remove handled keyField from the list of keyFields\n\t\t\t\t\tkeyFields.remove(keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\t// check whether there are any unhandled key fields\n\t\t\t\tif (!keyFields.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tObject pcClass = model.getClass(pcClassName);\n\t\t\t\t\tString fieldNames = StringHelper.arrayToSeparatedList(\n\t\t\t\t\t\tnew ArrayList(keyFields.keySet()));\n\n\t\t\t\t\tthrow new ModelValidationException(pcClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_field_missing\", //NOI18N\n\t\t\t\t\t\tpcClassName, keyClassName, fieldNames));\n\t\t\t\t}\n\t\t\t}", "private Collection getFieldsValidationList ()\n\t{\n\t\tArrayList list = new ArrayList();\n\t\tModel model = getModel();\n\t\tString className = getClassName();\n\t\tPersistenceClassElement persistenceClass = \n\t\t\tgetPersistenceClass(className);\n\n\t\tif (persistenceClass != null)\n\t\t{\n\t\t\tPersistenceFieldElement[] fields = persistenceClass.getFields();\n\t\t\tint i, count = ((fields != null) ? fields.length : 0);\n\t\t\tIterator iterator = \n\t\t\t\tgetMappingClass(className).getFields().iterator();\n\n\t\t\tfor (i = 0; i < count; i++)\n\t\t\t{\n\t\t\t\tPersistenceFieldElement field = fields[i];\n\n\t\t\t\tlist.add(createFieldExistenceComponent(field));\n\n\t\t\t\t// even though this is really the validation step, we \n\t\t\t\t// only want to add the others if the field exists\n\t\t\t\tif (model.hasField(className, field.getName()))\n\t\t\t\t{\n\t\t\t\t\tlist.add(createFieldPersistenceComponent(field));\n\t\t\t\t\tlist.add(createFieldPersistenceTypeComponent(field));\n\t\t\t\t\tlist.add(createFieldConsistencyComponent(field));\n\n\t\t\t\t\tif (isLegalRelationship(field))\n\t\t\t\t\t{\n\t\t\t\t\t\tRelationshipElement rel = (RelationshipElement)field;\n\n\t\t\t\t\t\t/* user modifiable collection class not yet supported\n\t\t\t\t\t\tlist.add(createCollectionClassComponent(rel));*/\n\t\t\t\t\t\tlist.add(createElementClassComponent(rel));\n\t\t\t\t\t\tlist.add(createRelatedClassMatchesComponent(rel));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twhile (iterator.hasNext())\n\t\t\t{\n\t\t\t\tMappingFieldElement field = \n\t\t\t\t\t(MappingFieldElement)iterator.next();\n\t\t\t\tString fieldName = field.getName();\n\n\t\t\t\t// only check this if it is not in the jdo model\n\t\t\t\tif (persistenceClass.getField(fieldName) == null)\n\t\t\t\t{\n\t\t\t\t\tlist.add(createFieldExistenceComponent(field));\n\n\t\t\t\t\t// even though this is really the validation step, we \n\t\t\t\t\t// only want to add the others if the field exists\n\t\t\t\t\tif (model.hasField(className, fieldName))\n\t\t\t\t\t\tlist.add(createFieldConsistencyComponent(field));\n\t\t\t\t}\n\n\t\t\t\tif (!isRelationship(field))\n\t\t\t\t\tlist.add(createColumnOverlapComponent(field));\n\n\t\t\t\t// preliminary fix for CR6239630\n\t\t\t\tif (Boolean.getBoolean(\"AllowManagedFieldsInDefaultFetchGroup\")) // NOI18N\n\t\t \t\t{\n // Do nothing - AllowManagedFieldsInDefaultFetchGroup: \n // disabled single model validation test; \n // may use checked read/write access to managed fields\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlist.add(createFieldDefaultFetchGroupComponent(field));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "protected boolean canGenerateFieldGroup() {\n\t\treturn true;\n\t}", "public void setInValidGroup(boolean inValidGroup){this.inValidGroup = inValidGroup;}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
enables entrance purchase and hotel building request
public void enableBuyEntrance(){ buyEntrance = true; buildHotel = true; }
[ "private void enableFunctionality(){\n ImplLogger.enterMethod();\n if (!pharmacyOrganization.getLincense().isIsLicenseValid()){\n ImplLogger.info(\"pharmacyOrganization lincense is not valid\");\n shopPharmaProduct.setEnabled(false);\n managePharmaProduct.setEnabled(false);\n createProductRequest.setEnabled(false);\n reportAgainstProduct.setEnabled(false);\n registerPateint.setEnabled(false);\n } else{\n ImplLogger.info(\"pharmacyOrganization lincense is valid\");\n shopPharmaProduct.setEnabled(true);\n managePharmaProduct.setEnabled(true);\n createProductRequest.setEnabled(true);\n reportAgainstProduct.setEnabled(true);\n registerPateint.setEnabled(true);\n }\n ImplLogger.exitMethod();\n }", "public void develop(){\n if(housesOwned < 4){\n housesOwned +=1;\n owner.makePurchase(housePrice);\n } else if(housesOwned == 4){\n housesOwned += 1;\n owner.makePurchase(hotelPrice);\n }\n }", "public void enterBattleFloor() {\n shop.setPotionBoostPurchased(false);\n generateEnemyQueue();\n }", "public static void checkAndRequestBuilding() {\n\n }", "public void disableBuildHotel(){\r\n\t\tbuildHotel = false;\r\n\t}", "private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }", "public void enable() {\n disabled = false;\n updateSign(true);\n circuit.enable();\n notifyChipEnabled();\n }", "void activateProduction(List<ProductionPower> productionPowers);", "@Override\n public void activate(boolean status) {\n godPower.activate(status);\n }", "@Test\r\n\tpublic void testDeliveryChuteEnable() {\r\n\t\tdcListen.doorOpened(vend.getDeliveryChute());\r\n\t\tdcListen.doorClosed(vend.getDeliveryChute());\r\n\t\tassertFalse(vend.getDeliveryChute().isDisabled());\r\n\t}", "public static void setAllowableExpenses(int arrivalHour, int departureHour, int returnHour) {\n\t\t// Declare variables\n\t\tfloat allowableTaxiFees = 0.0F;\t\t// To hold the allowable taxi fees\n\t\tfloat allowableHotelFees = 0.0F;\t\t// To hold the allowable hotel fees\n\t\tfloat allowableParkingFees = 0.0F;\t// To hold the allowable parking fees\n\n\t\t\n\t\t// Set allowable taxi expenses\n\t\tif (travelTypes[2]) {\n\t\t\tallowableTaxiFees = (float)(daysOfTrip * TAXI_RATE);\n\t\t\tallowableExpenses += allowableTaxiFees;\n\t\t}\n\t\t\n\t\t// Set allowable hotel expenses\n\t\t/* This process subtracts one from the daysOfTrip variable\n\t\t to avoid allowing a hotel expense on the last day \t\t*/\n\t\tif (travelTypes[3]) {\n\t\t\tallowableHotelFees = (float)((daysOfTrip - 1) * HOTEL_RATE);\n\t\t\tallowableExpenses += allowableHotelFees;\n\t\t}\n\t\t\n\t\t// Set allowable parking expenses\n\t\tif (travelTypes[4]) {\n\t\t\tallowableParkingFees = (float)(daysOfTrip * PARKING_RATE);\n\t\t\tallowableExpenses += allowableParkingFees;\n\t\t}\n\t\t\n\t\t// Check if the company will cover the first day meals\n\t\tif (departureHour < 7) {\n\t\t\tfirstBreakfast = true;\n\t\t\tfirstLunch = true;\n\t\t\tfirstDinner = true;\n\t\t\tallowableExpenses += BREAKFAST_RATE + LUNCH_RATE + DINNER_RATE;\n\t\t} else if (departureHour < 12) {\n\t\t\tfirstBreakfast = false;\n\t\t\tfirstLunch = true;\n\t\t\tfirstDinner = true;\n\t\t\tallowableExpenses += LUNCH_RATE + DINNER_RATE;\n\t\t} else if (departureHour < 18) {\n\t\t\tfirstBreakfast = false;\n\t\t\tfirstLunch = false;\n\t\t\tfirstDinner = true;\n\t\t\tallowableExpenses += DINNER_RATE;\n\t\t} else {\n\t\t\tfirstBreakfast = false;\n\t\t\tfirstLunch = false;\n\t\t\tfirstDinner = false;\n\t\t}\n\t\t\n\t\t// Check if the company will cover the last day meals\n\t\tif (returnHour > 13) {\n\t\t\tlastBreakfast = true;\n\t\t\tlastLunch = true;\n\t\t\tallowableExpenses += BREAKFAST_RATE + LUNCH_RATE;\n\t\t} else if (returnHour > 8) {\n\t\t\tlastBreakfast = true;\n\t\t\tlastLunch = false;\n\t\t\tallowableExpenses += BREAKFAST_RATE;\n\t\t} else {\n\t\t\tlastBreakfast = false;\n\t\t\tlastLunch = false;\n\t\t}\n\t\t\n\t\tif (arrivalHour > 19) {\n\t\t\tlastDinner = true;\n\t\t\tallowableExpenses += DINNER_RATE;\n\t\t} else {\n\t\t\tlastDinner = false;\n\t\t}\n\t}", "public void setIsPartnerRequired (boolean IsPartnerRequired);", "@Override\n public void requestAddressForGeoFence() {\n mViewWControls.showAddressDialog();\n }", "public void startReservation() {\n\t\tInput obj = new Input();\n\t\tMenu menu = new Menu();\n\t\tPassenger passenger = new Passenger();\n\t\tGoods goods = new Goods();\n\t\tString[] stations = new String[2];\n\t\tSystem.out.println(\"enter your name\");\n\t\tuserName = obj.input();\n\t\tString trainType = menu.menuTrainType();\n\t\tif (trainType.equalsIgnoreCase(\"passenger\")) {\n\t\t\tpassenger.showTrain(Passenger.trains);\n\t\t\tstations = menu.menuSourceDestinationStation();\n\t\t\tPassenger.refineTrainsList = passenger.refineTrains(stations[0],\n\t\t\t\t\tstations[1]);\n\t\t\tif (Passenger.refineTrainsList.size() == 0) {\n\t\t\t\tSystem.out.println(\"no trains are found\");\n\t\t\t} \n\t\t\telse {\n\t\t\t\tpassengerDetailsFromUser();\n\t\t\t}\n\t\t} \n\t\telse {\n\t\t\tgoods.showTrain(Goods.trains);\n\t\t\tstations = menu.menuSourceDestinationStation();\n\t\t\tGoods.refineTrainsList = goods.refineTrains(stations[0], stations[1]);\n\t\t\tif (Goods.refineTrainsList.size() == 0) {\n\t\t\t\tSystem.out.println(\"no trains are found\");\n\t\t\t} else {\n\t\t\t\tgoodsDetailFromUser();\n\t\t\t}\n\t\t}\n\t}", "void setEnableAutoInquiry(boolean enableAutoInquiry);", "public void addRequestToElevator(int request, Direction requestedDirection, String allowedElevator) {\n\n if (allowedElevator.equals(\"carga\")) {\n if (request == -1 || request == -2 || request == (maxFloor - 1)) {\n addingRequest(request, elevadoresCarga, allowedElevator);\n } else {\n System.out.println(\"Os elevadores de carga n tem acesso a esse piso. Pisos disponiveis: -2, -1, \" + (maxFloor - 1));\n aout.printAvisos(\"Os elevadores de carga n tem acesso a esse piso. Pisos disponiveis: -2, -1, \" + (maxFloor - 1));\n }\n System.out.println(\"adicionou \" + allowedElevator + \" elevadoresDeCarga\");\n } else if (allowedElevator.equals(\"restrito\")) {\n addingRequest(request, elevadoresRestritos, allowedElevator);\n } else if (allowedElevator.equals(\"expresso\")) {\n if (request == 0 || request == 10 || request == 20) {\n addingRequest(request, elevadoresExpresso, allowedElevator);\n } else {\n System.out.println(\"Os elevadores expresso n tem acesso a esse piso. Pisos disponiveis: 0, 10, 20\");\n aout.printAvisos(\"Os elevadores expresso n tem acesso a esse piso. Pisos disponiveis: 0, 10, 20\");\n }\n } else {\n if (!elevadoresPessoas.isEmpty()) {//isto foi adicionado pq comecamos, por defeito, c elevatorType=pessoas\n addingRequest(request, elevadoresPessoas, allowedElevator);\n } else {//se nao existir nenhum elevador do tipo pessoa(largo ou normal) n adiciona request e lanca aviso p seleccionar outro tipo de elevador\n System.out.println(\"Nao ha nenhum elevador normal nem largo. Por favor, carregar no botao carga, restrito ou expresso.\");\n aout.printAvisos(\"Nao ha nenhum elevador normal nem largo. Por favor, carregar no botao carga, restrito ou expresso.\");\n }\n }\n }", "void completeHousePurchase(HouseOfferRecord sale) {\n if(isRenting()) { // give immediate notice to landlord and move out\n if(sale.getHouse().resident != null) System.out.println(\"Strange: my new house has someone in it!\");\n if(home == sale.getHouse()) {\n System.out.println(\"Strange: I've just bought a house I'm renting out\");\n } else {\n endTenancy();\n }\n }\n MortgageAgreement mortgage = Model.bank.requestLoan(this, sale.getPrice(), behaviour.decideDownPayment(this,sale.getPrice()), home == null, sale.getHouse());\n if(mortgage == null) {\n // TODO: need to either provide a way for house sales to fall through or to ensure that pre-approvals are always satisfiable\n System.out.println(\"Can't afford to buy house: strange\");\n System.out.println(\"Bank balance is \"+bankBalance);\n System.out.println(\"Annual income is \"+ monthlyGrossEmploymentIncome *config.constants.MONTHS_IN_YEAR);\n if(isRenting()) System.out.println(\"Is renting\");\n if(isHomeowner()) System.out.println(\"Is homeowner\");\n if(isInSocialHousing()) System.out.println(\"Is homeless\");\n if(isFirstTimeBuyer()) System.out.println(\"Is firsttimebuyer\");\n if(behaviour.isPropertyInvestor()) System.out.println(\"Is investor\");\n System.out.println(\"House owner = \"+ sale.getHouse().owner);\n System.out.println(\"me = \"+this);\n } else {\n bankBalance -= mortgage.downPayment;\n housePayments.put(sale.getHouse(), mortgage);\n if (home == null) { // move in to house\n home = sale.getHouse();\n sale.getHouse().resident = this;\n } else if (sale.getHouse().resident == null) { // put empty buy-to-let house on rental market\n Model.houseRentalMarket.offer(sale.getHouse(), buyToLetRent(sale.getHouse()), false);\n }\n isFirstTimeBuyer = false;\n }\n }", "private void hitApiForActivateDeal() {\n appUtils.showProgressDialog(mActivity, false);\n HashMap<String, String> params = new HashMap<>();\n params.put(ApiKeys.DEAL_ID, dealData.getDealId());\n params.put(ApiKeys.DEAL_STATUS, \"1\");\n\n params.put(ApiKeys.DEAL_TITLE, etTitle.getText().toString().trim());\n params.put(ApiKeys.DEAL_DESCRIPTION, etDescription.getText().toString().trim());\n params.put(ApiKeys.TOTAL_ITEMS, etTotalItems.getText().toString().trim());\n params.put(ApiKeys.ORIGINAL_PRICE, etOriginalPrice.getText().toString().trim());\n params.put(ApiKeys.NEW_PRICE, tvNewPrice.getText().toString());\n params.put(ApiKeys.START_DATE_TIME, parseTime(etBeginTime.getText().toString().trim()));\n params.put(ApiKeys.END_DATE_TIME, parseTime(etEndTime.getText().toString().trim()));\n\n ApiInterface service = RestApi.createService(ApiInterface.class);\n Call<ResponseBody> call = service.deactivateDeal(AppSharedPrefs.getInstance(mActivity).\n getString(AppSharedPrefs.PREF_KEY.ACCESS_TOKEN, \"\"), appUtils.encryptData(params));\n ApiCall.getInstance().hitService(mActivity, call, new NetworkListener() {\n @Override\n public void onSuccess(int responseCode, String response) {\n try {\n JSONObject mainObject = new JSONObject(response);\n if (mainObject.getInt(\"CODE\") == 200) {\n appUtils.showToast(mActivity, getString(R.string.deal_activated));\n Intent intent = new Intent();\n intent.putExtra(Constants.DEAL_POSITION_KEY, position);\n intent.putExtra(Constants.DEAL_STATUS_KEY, \"1\");\n setResult(Constants.DEAL_ACTIVIATE_RESULT_CODE, intent);\n Intent intent1 = new Intent(Constants.REFRESH_RECCEIVER_KEY);\n // You can also include some extra data.\n intent1.putExtra(\"refresh\", true);\n LocalBroadcastManager.getInstance(mActivity).sendBroadcast(intent1);\n finish();\n } else if (mainObject.getInt(\"CODE\") == ApiKeys.UNAUTHORISED_CODE) {\n appUtils.logoutFromApp(mActivity, mainObject.optString(\"MESSAGE\"));\n } else {\n appUtils.showSnackBar(activityCreateDeal, mainObject.optString(\"MESSAGE\"));\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onSuccessErrorBody(String response) {\n\n }\n\n @Override\n public void onFailure() {\n appUtils.showSnackBar(activityCreateDeal, getString(R.string.txt_something_went_wrong));\n }\n });\n\n }", "public void request(int id, Calendar start, Calendar end, int smallRooms, int mediumRooms, int largeRooms){\n\t\tString output = privateRequest(id, start, end, smallRooms, mediumRooms, largeRooms);\n\t\tif(output == null) System.out.println(\"Request rejected\");\t\n\t\telse System.out.println(\"Reservation \" + output);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the varRepStartDigitPosition value for this PmRule.
public void setVarRepStartDigitPosition(java.lang.Short varRepStartDigitPosition) { this.varRepStartDigitPosition = varRepStartDigitPosition; }
[ "public java.lang.Short getVarRepStartDigitPosition() {\r\n return varRepStartDigitPosition;\r\n }", "public void setVarRepParamStartPosition(java.lang.Short varRepParamStartPosition) {\r\n this.varRepParamStartPosition = varRepParamStartPosition;\r\n }", "public void setStartDigitPosition(java.lang.Short startDigitPosition) {\r\n this.startDigitPosition = startDigitPosition;\r\n }", "public AuditQuery setStartRowNum(int value) {\n this.startRowNum = value;\n return this;\n }", "public void setStartX(double val) {\r\n startx = val;\r\n }", "@javax.annotation.Nonnull\n public _Builder setStartLinePos(int value) {\n optionals.set(8);\n modified.set(8);\n mStartLinePos = value;\n return this;\n }", "public void setSTART(int value) {\n this.start = value;\n }", "public java.lang.Short getVarRepParamStartPosition() {\r\n return varRepParamStartPosition;\r\n }", "public void setbvStartNum(Number value) {\n setNamedWhereClauseParam(\"bvStartNum\", value);\n }", "public void setVarRepNumberOfDigits(java.lang.Short varRepNumberOfDigits) {\r\n this.varRepNumberOfDigits = varRepNumberOfDigits;\r\n }", "public void setGrnStartNo (java.lang.String grnStartNo) {\n\t\tthis.grnStartNo = grnStartNo;\n\t}", "public Builder setGpsStart(int value) {\n \n gpsStart_ = value;\n onChanged();\n return this;\n }", "public void setStartX(final int startX) {\n\t\tthis.startX = startX;\n\t}", "public void setStartLine(int startLine) {\r\n this.startLine = startLine;\r\n }", "public void setXStart(int xStart){\n this.xStart = xStart;\n }", "public void setVarRepNumberType(java.lang.Short varRepNumberType) {\r\n this.varRepNumberType = varRepNumberType;\r\n }", "public void setValueStartPosition (int start)\n {\n mValueStart = start;\n setAssignment (null); // uncache value\n setValue (null); // uncache value\n }", "public void setStart(int start) {\r\n\t\tthis.start = start;\r\n\t}", "protected void setStartLine(int lineno)\n {\n _startLine = lineno;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
data object for a creditcard
public CreditCard(int pin, String number, String holder, Date expiryDate, int cvc){ this.pin = pin; this.number = number; this.holder = holder; this.expiryDate = expiryDate; this.cvc = cvc; }
[ "private JsonObject getCreditCard() {\r\n\t\tJsonObject json = new JsonObject();\r\n\t\tCustomer customer = (Customer) ObjectContainer.currentUserLogin;\r\n\t\tjson.addProperty(\"customerID\", customer.getCustomerId());\r\n\t\tMessage msg = new Message(MessageType.GET_CREDIT_CARD_DETAILS_BY_ID, json.toString());\r\n\t\tClientUI.accept(msg);\r\n\t\treturn ObjectContainer.currentMessageFromServer.getMessageAsJsonObject();\r\n\t}", "hipstershop.Demo.CreditCardInfo getCreditCard();", "CreditCard createCreditCard();", "public String getCreditCard() {\n return creditCard;\n }", "public CreditCard getCreditCard(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.creditcard.v1.CreditCard res){\n\t\tCreditCard creditCard = new CreditCard();\n\t\t\n\t\tcreditCard.setCardType( res.getCardType() );\n\t\tcreditCard.setName( res.getName() );\n\t\tcreditCard.setCardNo( res.getCardNo() );\n\t\tcreditCard.setExpiryMonth( res.getExpiryMonth() );\n\t\tcreditCard.setExpiryYear( res.getExpiryYear() );\n\t\tcreditCard.setLastName( res.getLastName() );\n\t\tcreditCard.setFirstName( res.getFirstName() );\n\t\tcreditCard.setPaymentDate( res.getPaymentDate() );\n\t\tcreditCard.setStreet( res.getStreet() );\n\t\tcreditCard.setCity( res.getCity() );\n\t\tcreditCard.setState( res.getState() );\n\t\tcreditCard.setPostalCode( res.getPostalCode() ); \n\t\tcreditCard.setDistrict( res.getDistrict() );\n\t\tcreditCard.setCountryCode( res.getCountryCode() );\n\t\tcreditCard.setTelephone( res.getTelephone() );\n\t\tcreditCard.setPassengerId( res.getPassengerId() );\n\t\tcreditCard.setCVVCode( res.getCVVCode() );\n\t\tcreditCard.setDescription( res.getDescription() );\n\t\tcreditCard.setOtherCardHolderEmail( res.getOtherCardHolderEmail() );\n\t\tif( res.getUseSameCard() != null ){\n\t\t\tcreditCard.setUseSameCard( res.getUseSameCard().charAt(0) );\n\t\t}\n\t\tif( res.getOtherCardHolderFlag() != null ){\n\t\t\tcreditCard.setOtherCardHolderFlag( res.getOtherCardHolderFlag().charAt(0) );\n\t\t}\n\t\tif( res.getAmountUSD() != null ){\n\t\t\tcreditCard.setAmountUSD( res.getAmountUSD().doubleValue() );\n\t\t}\n\t\tif( res.getAmount() != null ){\n\t\t\tcreditCard.setAmount( res.getAmount().doubleValue() );\n\t\t}\n\t\t\n\t\treturn creditCard;\n\t}", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.creditcard.v1.CreditCard getCreditCardReq(CreditCard creditCard){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.creditcard.v1.CreditCard creditCardReq = \n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.creditcard.v1.CreditCard();\n\t\t\n\t\tcreditCardReq.setStreet( creditCard.getStreet() );\n\t\tcreditCardReq.setCity( creditCard.getCity() );\n\t\tcreditCardReq.setState( creditCard.getState() );\n\t\tcreditCardReq.setPostalCode( creditCard.getPostalCode() );\n\t\tcreditCardReq.setDistrict( creditCard.getDistrict() );\n\t\tcreditCardReq.setCountryCode( creditCard.getCountryCode() );\n\t\tcreditCardReq.setTelephone( creditCard.getTelephone() );\n\t\tcreditCardReq.setAmountUSD( new Double(creditCard.getAmountUSD()) );\n\t\tcreditCardReq.setPassengerId( creditCard.getPassengerId() );\n\t\tcreditCardReq.setCVVCode( creditCard.getCVVCode() );\n\t\tcreditCardReq.setDescription( creditCard.getDescription() );\n\t\tcreditCardReq.setUseSameCard( Character.toString(creditCard.getUseSameCard()) );\n\t\tcreditCardReq.setOtherCardHolderFlag( Character.toString(creditCard.getOtherCardHolderFlag()) );\n\t\tcreditCardReq.setOtherCardHolderEmail( creditCard.getOtherCardHolderEmail() );\n\t\tcreditCardReq.setCardType( creditCard.getCardType() );\n\t\tcreditCardReq.setName( creditCard.getName() );\n\t\tcreditCardReq.setCardNo( creditCard.getCardNo() );\n\t\tcreditCardReq.setExpiryMonth( creditCard.getExpiryMonth() );\n\t\tcreditCardReq.setExpiryYear( creditCard.getExpiryYear() );\n\t\tcreditCardReq.setAmount( new Double(creditCard.getAmount()) );\n\t\tcreditCardReq.setLastName( creditCard.getLastName() );\n\t\tcreditCardReq.setFirstName( creditCard.getFirstName() );\n\t\tcreditCardReq.setPaymentDate( creditCard.getPaymentDate() );\n\t\t\n\t\treturn creditCardReq;\n\t}", "java.lang.String getCreditCardNumber();", "public void setPaymentInfoInCart(CreditCard cc);", "public String getCreditCard() {\n\t\treturn creditCard;\n\t}", "int getCreditCardCvv();", "public java.lang.String getCardData()\r\n {\r\n return this._cardData;\r\n }", "public interface CreditCard {\n\t// Getter Methods\n\tpublic Long getId();\n\tpublic CreditCardType getCreditCardType();\n\tpublic String getAccountNumber();\n\t/**\n\t * CVV number is the three-digit number on the back of a Discover, Visa or MasterCard;\n\t * or the four-digit number on the front of the American Express card.\n\t * @return\n\t */\n\tpublic String getCvvNumber();\n\tpublic String getCardHolderFirstName();\n\tpublic String getCardHolderLastName();\n\tpublic String getExpirationMonth();\n\tpublic String getExpirationYear();\n\tpublic String getBillingAddress();\n\tpublic String getBillingAddress2();\n\tpublic String getBillingCity();\n\tpublic States getBillingState();\n\tpublic String getBillingZipcode();\n\tpublic User getCreditCardHolder();\n\tpublic Boolean getPrimaryCreditCard();\n\tpublic Boolean getActive();\n\tpublic Date getCreationDate();\n\tpublic Date getModifiedDate();\n\tpublic Date getDeactivationDate();\n\t\n\t// Setter Methods\n\tpublic void setId(Long id);\n\tpublic void setCreditCardType(CreditCardType creditCardType);\n\tpublic void setAccountNumber(String accountNumber);\n\tpublic void setCvvNumber(String cvvNumber);\n\tpublic void setCardHolderFirstName(String cardHolderFirstName);\n\tpublic void setCardHolderLastName(String cardHolderLastName);\n\tpublic void setExpirationMonth(String expirationMonth);\n\tpublic void setExpirationYear(String expirationYear);\n\tpublic void setBillingAddress(String billingAddress);\n\tpublic void setBillingAddress2(String billAddress2);\n\tpublic void setBillingCity(String billingCity);\n\tpublic void setBillingState(States billingState);\n\tpublic void setBillingZipcode(String billingZipcode);\n\tpublic void setCreditCardHolder(User creditCardHolder);\n\tpublic void setPrimaryCreditCard(Boolean primaryCreditCard);\n\tpublic void setActive(Boolean active);\n\tpublic void setCreationDate(Date creationDate);\n\tpublic void setModifiedDate(Date modifiedDate);\n\tpublic void setDeactivationDate(Date deactivationDate);\n\n\t// Check to see if this card is active.\n\tpublic Boolean isActive();\n\t\n\t// Check to see if this card is the primary one for the account\n\tpublic Boolean isPrimaryCreditCard();\n\t\n\t// See if the card has expired.\n\tpublic Boolean hasCardExpired(Date currentDate);\n}", "public CreditCard getCard(){\n return card;\n }", "private boolean creditCardInfoVerification(\n final PaymTestData testData) {\n final String expData = testData.getCCExpirationDateMonth() + \"/\" +\n testData.getCCExpirationDateYear();\n final String cardNumber = PaymTestData.getRetainFunding(\"CC_Empty\",\n testData.getCCNumber());\n return Log.altVerify(expData, lblCCExpirationData().getText(), true,\n \"Expiration Data\")\n && Log.altVerify(cardNumber, lblCCNumber().getText(), true,\n \"Credit Card Number\")\n && Log.altVerify(testData.getCCType(), lblCCType().getText(), true,\n \"Credit Card Type\")\n && (!lblCVVNumber().isElementPresent() || Log\n .altVerify(\"****\", lblCVVNumber().getText(), true,\n \"Card Verification Number\"));\n }", "public CreditCard(String n){\n \n\t\tnumber = n;\n\t\tvalid = true;\n errorCode = 0;\n firstDigit = Integer.parseInt(number.substring(0,1));\n fourthDigit = Integer.parseInt(number.substring(3,4));\n fifthDigit = Integer.parseInt(number.substring(4,5));\n ninthDigit = Integer.parseInt(number.substring(8,9));\n\t}", "hipstershop.Demo.CreditCardInfoOrBuilder getCreditCardOrBuilder();", "public static String readCreditCard() {\n\n String serviceState = TCCartApplication.serviceState;\n\n if (\"fail\".equals(serviceState)) {\n return \"ERR\";\n } else if (\"success\".equals(serviceState)) {\n return \"Ralph#Hapschatt#9328895960019440#12312016#111\";\n }\n return CreditCardService.readCreditCard();\n\n }", "public void fillPaymentCCData(final PaymTestData testData) {\n tfCCNumber().waitForExistence(Log.giAutomationMedTO);\n tfCCNumber().setText(testData.getCCNumber());\n tfExpMonth()\n .selectByLabel(testData.getCCExpirationDateMonthAsMixedString());\n tfExpYear().selectByLabel(testData.getCCExpirationDateYear());\n tfCvvNumber().setText(testData.getGlobalCVV());\n btnContinue().click();\n }", "public String getCardNumber() {\n return this.account;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the deliveryDays value for this RoutingStop.
public java.lang.String getDeliveryDays() { return deliveryDays; }
[ "public java.lang.String getInternalDeliveryDays() {\n return internalDeliveryDays;\n }", "public void setDeliveryDays(java.lang.String deliveryDays) {\n this.deliveryDays = deliveryDays;\n }", "public String getDpReceiptDays() {\r\n\t\treturn dpReceiptDays;\r\n\t}", "public String getMeetingDays() {\r\n\t\treturn meetingDays;\r\n\t}", "public Integer getStayDays() {\r\n return stayDays;\r\n }", "private int getDays() {\n\t\tlong arrival = arrivalDate.toEpochDay();\n\t\tlong departure = departureDate.toEpochDay();\n\t\tint days = (int) Math.abs(arrival - departure);\n\n\t\treturn days;\n\t}", "public java.lang.Integer getFreeDays () {\n\t\treturn freeDays;\n\t}", "private int get_days() {\r\n\t\treturn _days;\r\n\t}", "public long getDaysFromDist() {\n return daysFromDist_;\n }", "public Integer getTripDays() {\n return tripDays;\n }", "public long getDaysFromDist() {\n return daysFromDist_;\n }", "public ArrayList<ArrayList<Slot>> getDays() {\n\t\treturn this.days;\n\t}", "public List<EventDay> getEventDays () {\n\t\treturn days;\n\t}", "public Integer getReturnDays() {\n\t\treturn returnDays;\n\t}", "public java.lang.String getSzCdPaymentDelivery()\r\n {\r\n return this._szCdPaymentDelivery;\r\n }", "public boolean isSetDeliveryDays() {\n return EncodingUtils.testBit(__isset_bitfield, __DELIVERYDAYS_ISSET_ID);\n }", "public BigDecimal getDEBIT_DAYS() {\r\n return DEBIT_DAYS;\r\n }", "public double getDeliveryFee() {\n return deliveryFee;\n }", "public Double getDeliveryCosts() {\n return deliveryCosts;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
"Examines" the obstacle in front of the robot by turning on the light, taking a picture (if this action is one that takes pictures), and tilting the head.
private void examine(){ //turn on light rov.setLight(true); //take picture if(takePics){ examImage = rov.takePicture(rov.state.getPan(),rov.state.getTilt(),320,240,true); examImageTime = System.currentTimeMillis(); } //tilt head to simulate looking at object rov.setTilt(15); try{Thread.sleep(1000);}catch(Exception e) {} rov.setTilt(-35); try{Thread.sleep(1000);}catch(Exception e) {} //turn off light rov.setLight(false); }
[ "public void action() {\n\n /*\n * The commented out code is an attempt at turning at a junction, but seems\n * not to work particularly well due to the other behaviours taking over\n * as soon as their take control method returns true. If it worked, it\n * would turn the robot right 50% of the time, otherwise it would ignore the junction.\n */\n\n// double random = Math.random();\n//\n// if (random < 0.5) {\n// Motor.B.backward();\n// Motor.A.backward();\n// } else {\n// p.rotate(-90);\n// }\n\n /**\n * Turns the robot right.\n */\n Motor.B.backward();\n Motor.A.forward();\n\n }", "private void followWall() {\n double rawLight = Waller.getRawLightDetected();\n double LinearLight =Math.pow(rawLight,-0.5);\n //Linear Equations. They actually have a purpose in real life!!!\n// LeftTaco = (-5/3)*LinearLight + 1;\n// RightTaco = (5/3)*LinearLight-0.5;\n tacoDriveBase.LeftTaco = LeftSlope*LinearLight+LeftIntercept;\n tacoDriveBase.RightTaco = RightSlope*LinearLight+RightIntercept;\n tacoDriveBase.updateMotors();\n }", "public abstract void hitOnHead();", "public void navigateObstacle(boolean flag) {\n\t\tint switcher = 1;\n\t\tif (flag) {\n\t\t\tswitcher = -1;\n\t\t}\n\t\t\n\t\twhile (this.distance <= CHECK_THRESH) {\n\t\t\tleftMotor.rotate(switcher * convertAngle(Lab3.WHEEL_RAD, Lab3.TRACK, 90.0), true);\n\t\t\trightMotor.rotate(switcher * -convertAngle(Lab3.WHEEL_RAD, Lab3.TRACK, 90.0), false);\n\t\t\n\t\t\tleftMotor.rotate(convertDistance(Lab3.WHEEL_RAD, CORRECTION_L), true); // >\n\t\t\trightMotor.rotate(convertDistance(Lab3.WHEEL_RAD, CORRECTION_L), false);\n\t\n\t\t\tleftMotor.rotate(switcher * -convertAngle(Lab3.WHEEL_RAD, Lab3.TRACK, 90.0), true);\n\t\t\trightMotor.rotate(switcher * convertAngle(Lab3.WHEEL_RAD, Lab3.TRACK, 90.0), false);\n\t\t}\n\t \n\t leftMotor.rotate(convertDistance(Lab3.WHEEL_RAD, CORRECTION_L+5), true); //robot is not travelling as far upward as needed\n\t rightMotor.rotate(convertDistance(Lab3.WHEEL_RAD, CORRECTION_L+5), false); // therefore +5 correction is in place\n\t \n\t leftMotor.stop(true);\n\t\trightMotor.stop(true);\n\t}", "public void onHitRobot(HitRobotEvent e) {\r\n\t\tif(state == 0) {\r\n\t\t\t/* ============== WALL =========== */\r\n\t\t\t\r\n\t\t\t// If he's in front of us, set back up a bit.\r\n\t\t\tif (e.getBearing() > -90 && e.getBearing() < 90) {\r\n\t\t\t\tback(100);\r\n\t\t\t} // else he's in back of us, so set ahead a bit.\r\n\t\t\telse {\r\n\t\t\t\tahead(100);\r\n\t\t\t}\r\n\t\t\t/* ============== WALL =========== */\r\n\t\t}\r\n\t\telse if(state == 1) {\r\n\t\t\tif (e.getBearing() > -10 && e.getBearing() < 10) {\r\n\t\t\t\tfire(2);\r\n\t\t\t}\r\n\t\t\tif (e.isMyFault()) {\r\n\t\t\t\tturnRight(10);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void action() {\n if (watchOutForWolf()) {\n // this.setScaredImage();\n processing.fill(0); // specify font color: black\n processing.text(\"WOLF!\", this.getX(), this.getY() - this.image.height / 2 - 6);\n }\n }", "private void follow() throws GameActionException {\n RobotInfo tmpRobotInfo, robotInfo = null;\n int tmpDistSq = 1000;\n int minDistSq = 1000;\n MapLocation l, myLoc = myRC.getLocation();\n // Should I attack\n if((l = attacker.autoFire()) != null) {\n nav.setDestination(l, 6);\n nav.bugNavigate(true);\n state = State.ATTACK;\n com.clear();\n com.send(Communicator.ATTACK, attacker.rank, 10, myLoc);\n return;\n }\n\n // I CAN HAZ MSG\n if (com.receive(msgMask)) {\n nav.setDestination(com.getDestination());\n nav.bugNavigate(true);\n state = State.GO;\n com.send();\n return;\n }\n\n // Where is everybody\n if (!following) {\n for (Robot r : sensor.senseNearbyGameObjects(Robot.class)) {\n if (r.getTeam() == myRP.myTeam) {\n tmpRobotInfo = sensor.senseRobotInfo(r);\n if (tmpRobotInfo.chassis == Chassis.LIGHT\n && (tmpDistSq = myLoc.distanceSquaredTo(tmpRobotInfo.location)) < minDistSq)\n {\n minDistSq = tmpDistSq;\n robotInfo = tmpRobotInfo;\n }\n }\n }\n }\n\n // Didn't find anyone\n if (robotInfo == null) {\n following = false;\n // Lost?\n if (lost) {\n if (!nav.bugNavigate(false)) {\n nav.setDestination(myLoc.add(myRC.getDirection(), 100));\n nav.bugNavigate(false);\n }\n return;\n }\n\n // Maybe they are behind me.\n lost = true;\n nav.setDirection(myRC.getDirection().opposite());\n return;\n } else {\n lost = false;\n\n // Don't follow if they are facing me.\n Direction dir = robotInfo.location.directionTo(myLoc);\n int dist;\n if (dir == robotInfo.direction || dir == robotInfo.direction.rotateRight() || dir == robotInfo.direction.rotateLeft()) {\n following = false;\n lost = true;\n nav.setDestination(myLoc.add(myRC.getDirection().opposite(), 100));\n nav.bugNavigate(true);\n return;\n } else if ((dist = myLoc.distanceSquaredTo(robotInfo.location)) >= 16) {\n following = true;\n nav.move(true);\n } else if (dist < 16) {\n following = true;\n nav.move(false);\n } //else {\n // nav.setDirection(myRC.getDirection().opposite());\n //}\n }\n }", "public static void playHitObst()\n {\n playHitObst(0);\n }", "public void setupObstacles()\n {\n }", "public void teletransport(){\n if (interactWithBall()){\n object.setPosition(xf, yf);\n System.out.println(\"Teletransported\");\n }\n }", "public void changeHeadState() {\n //tracking the head with the player\n if(moveUp && moveRight){\n playerHead.setxPos(this.getxPos()+14);\n playerHead.setyPos(this.getyPos()-34);\n }\n else if(moveUp && moveLeft){\n playerHead.setxPos(this.getxPos()+2);\n playerHead.setyPos(this.getyPos()-34);\n }\n else if(moveDown && moveRight){\n playerHead.setxPos(this.getxPos()+14);\n playerHead.setyPos(this.getyPos()-28);\n }\n else if(moveDown && moveLeft){\n playerHead.setxPos(this.getxPos()+2);\n playerHead.setyPos(this.getyPos()-28);\n }\n else if(moveDown || shootDown || (!moving && !shooting && this.getPicY() == 0)){\n playerHead.setxPos(this.getxPos()+2);\n playerHead.setyPos(this.getyPos()-28); \n }\n else if((moveUp || (shootUp && moveUp))|| (!moving && this.getPicY() == 211)){\n playerHead.setxPos(this.getxPos()+9);\n playerHead.setyPos(this.getyPos()-28); \n }\n else if((!moving && shootUp && this.getPicY() == 0) ){\n playerHead.setxPos(this.getxPos()+3);\n playerHead.setyPos(this.getyPos()-28); \n }\n else if(shootLeft && moveRight || shootLeft){\n playerHead.setxPos(this.getxPos()+10);\n playerHead.setyPos(this.getyPos()-28);\n }\n else if(moveLeft ||(!moving && !shooting && this.getPicY() == 141)){\n playerHead.setxPos(this.getxPos()+3);\n playerHead.setyPos(this.getyPos()-28);\n }\n else if(moveRight||(shootRight && !moving)||(shootRight && moveRight)||(!moving && !shooting && this.getPicY() == 74)){\n playerHead.setxPos(this.getxPos()+10);\n playerHead.setyPos(this.getyPos()-29);\n }\n else if(shootUp && !moving){\n playerHead.setxPos(this.getxPos()+10);\n playerHead.setyPos(this.getyPos()-29);\n }\n //left right and shooting up\n \n //head faces the direction of the player while moving\n if (moveDown && moveRight) {\n playerHead.setPicX(52);//right\n } else if (moveDown && moveLeft) {\n playerHead.setPicX(0);//left\n } else if (moveUp && moveRight) {\n playerHead.setPicX(52);//right\n } else if (moveUp && moveLeft) {\n playerHead.setPicX(0);//left\n } else if (moveDown) {\n playerHead.setPicX(102);//down\n } else if (moveUp) {\n playerHead.setPicX(158);//up\n } else if (moveRight) {\n playerHead.setPicX(52);//right\n } else if (moveLeft) {\n playerHead.setPicX(0);//left\n }\n\n //head faces the direction of shooting while moving or standing in place\n if (shootDown) {\n playerHead.setPicX(102);\n } else if (shootUp) {\n playerHead.setPicX(158);\n } else if (shootRight) {\n playerHead.setPicX(52);\n } else if (shootLeft) {\n playerHead.setPicX(0);\n }\n\n if (shootLeft && shootRight) {\n playerHead.setPicX(52);//right\n } else if (shootUp && shootDown) {\n playerHead.setPicX(102);//down\n } else if (shootDown && shootRight) {\n playerHead.setPicX(102);//down\n } else if (shootDown && shootLeft) {\n playerHead.setPicX(102);//down\n } else if (shootUp && shootRight) {\n playerHead.setPicX(158);//up\n } else if (shootUp && shootLeft) {\n playerHead.setPicX(158);//up\n }\n\n if (!moving && !shooting) {\n if (this.getPicY() == 0) {\n playerHead.setPicX(102);//down\n } else if (this.getPicY() == 211) {\n playerHead.setPicX(158);//up\n } else if (this.getPicY() == 74) {\n playerHead.setPicX(52);//right\n } else if (this.getPicY() == 141) {\n playerHead.setPicX(0);//left\n }\n }\n }", "public abstract void hit(Tower t);", "public void action() {\r\n\t\tLCD.drawString(\"Avoid Behavior!\", 0, 7);\r\n\r\n\t\tMapUpdate.updateWithoutObject(0);\r\n\t\tMapUpdate.updateWithObject(StandardRobot.us.getRange());\r\n\r\n\t\tif (StandardRobot.ts.isPressed()) {\r\n\t\t\tStandardRobot.pilot.setTravelSpeed(7);\r\n\t\t\tStandardRobot.pilot.travel(-5);\r\n\t\t\tcounter.countTravel();\r\n\r\n\t\t\tif (store.getFlag() == 0) {\r\n\t\t\t\tStandardRobot.pilot.rotate(-90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t} else {\r\n\t\t\t\tStandardRobot.pilot.rotate(90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t}\r\n\t\t} else {\r\n\r\n\t\t\tif (store.getFlag() == 0) {\r\n\t\t\t\tStandardRobot.pilot.rotate(-90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t} else {\r\n\t\t\t\tStandardRobot.pilot.rotate(90);\r\n\t\t\t\tcounter.countTurn();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void lobby() {\n// chaseCam.setDragToRotate(false);\n inputManager.setCursorVisible(true);\n nifty.gotoScreen(\"lobby\");\n }", "public void Attack()\n\t{\n\t\tif(action && waitingFrames == 0)\n\t\t{\n\t\t\tspriteImageView.setImage(new Image(\"image/main_attack.png\"));\n\t\t\tswitch(getDirection())\n\t\t\t{\n\t\t\t\tcase \"UP\": \tspriteImageView.setViewport(new Rectangle2D(300, 0, width, height)); action = false; break;\n\t\t\t\tcase \"DOWN\": spriteImageView.setViewport(new Rectangle2D(0, 0, width, height)); action = false; break;\n\t\t\t\tcase \"LEFT\": spriteImageView.setViewport(new Rectangle2D(100, 0, width, height)); action = false; break;\n\t\t\t\tcase \"RIGHT\": spriteImageView.setViewport(new Rectangle2D(200, 0, width, height)); action = false; break;\n\t\t\t\tdefault: break;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public abstract void interagir (Robot robot);", "public static void main(String[] args) {\n TachoPilot pilot = new TachoPilot(WHEEL_DIAMETER, TRACK_DISTANCE, LEFT_MOTOR, RIGHT_MOTOR);\n\n // create sensor objects\n LightSensor light = new LightSensor(LIGHT_PORT);\n SoundSensor sound = new SoundSensor(SOUND_PORT, true);\n UltrasonicSensor sonic = new UltrasonicSensor(SONIC_PORT);\n\n // set up EnergyLevel object to keep track of current energy level\n // start with full energy (1.0);\n EnergyLevel energyLevel = new EnergyLevel(1.0);\n\n int green = getColourSample(light, \"Green Paper\");\n int yellow = getColourSample(light, \"Yellow Paper\");\n int red = getColourSample(light, \"Red Paper\");\n\n\n Action restoreEnergyAndBeep = new CombinedAction(\n new RestoreFullEnergyAction(energyLevel),\n new BeepAction());\n\n // create the detectGreen behaviour\n Behavior detectGreen = new DetectColour(\n light,\n green-20,\n green+20,\n restoreEnergyAndBeep,\n null);\n\n Behavior detectYellow = new DetectColour(\n light,\n yellow-20,\n yellow+20,\n new GoCrazyAction(pilot),\n null);\n\n Behavior detectRed = new DetectColour(\n light,\n red-20,\n red+20,\n new LoseEnergyAction(energyLevel),\n null);\n\n // wait for sound\n while (sound.readValue() < 40) {\n // waiting\n }\n\n // combine the DriveForward and DrainEnergy actions so that both can\n // run as one action\n CombinedAction driveAndLoseEnergy = new CombinedAction(\n // pass the pilot and energyLevel which it will\n // monitor for changes and adjust speed accordingly\n new DriveForwardAction(pilot, energyLevel),\n // pass the energyLevel so it can decrease it at\n // regular intervals\n new DrainEnergyAction(energyLevel)\n );\n\n CombinedAction sleepAndGainEnergy = new CombinedAction(\n new SleepAction(sound),\n restoreEnergyAndBeep\n );\n\n SleepBehavior sleepBehavior = new SleepBehavior(\n sleepAndGainEnergy, energyLevel\n );\n\n AvoidObstaclesBehavior avoidObstaclesBehavior = new AvoidObstaclesBehavior(sonic, pilot);\n\n DefaultBehaviour defaultBehaviour = new DefaultBehaviour(\n driveAndLoseEnergy\n );\n\n // setup, start the Arbitrator\n Behavior[] behaviours = {defaultBehaviour, detectGreen, detectYellow, avoidObstaclesBehavior, sleepBehavior};\n Arbitrator arbitrator = new Arbitrator(behaviours);\n arbitrator.start();\n }", "public static void TraverseTunnel() {\n\t\tif (orientation[0]) {// case where the tunnel is vertical\n\t\t\tif (orientation[1]) {// case where we need to go UP\n\t\t\t\tdouble distLeft = getDist((Tunnel_Corners[0][0] * TILE_SIZE - odometer.getXYT()[0]),\n\t\t\t\t\t\t(Tunnel_Corners[0][1] * TILE_SIZE - odometer.getXYT()[1]));\n\t\t\t\tdouble distright = getDist((Tunnel_Corners[1][0] * TILE_SIZE - odometer.getXYT()[0]),\n\t\t\t\t\t\t(Tunnel_Corners[1][1] * TILE_SIZE - odometer.getXYT()[1]));\n\t\t\t\tif (distLeft < distright) {\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[0][0] - 0.5, Tunnel_Corners[0][1] - 0.5);\n\t\t\t\t\tnavigation.turnTo(90 * Math.PI / 180);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT(Tunnel_Corners[0][0] * TILE_SIZE, (Tunnel_Corners[0][1] - 0.5) * TILE_SIZE, 90);\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[0][0] + 0.5, Tunnel_Corners[0][1] - 0.5);\n\t\t\t\t\tnavigation.turnBy(-93);\n\t\t\t\t} else {\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[1][0] + 0.5, Tunnel_Corners[1][1] - 0.5);\n\t\t\t\t\tnavigation.turnTo(270 * Math.PI / 180);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT(Tunnel_Corners[1][0] * TILE_SIZE, (Tunnel_Corners[1][1] - 0.7) * TILE_SIZE, 270);\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[1][0] - 0.5, Tunnel_Corners[1][1] - 0.7);\n\t\t\t\t\tnavigation.turnBy(87);\n\t\t\t\t}\n\t\t\t\tlocalization.linedetect_move();\n\t\t\t\todometer.setXYT((Tunnel_Corners[0][0] + 0.5) * TILE_SIZE, (Tunnel_Corners[0][1]) * TILE_SIZE, 0);\n\t\t\t\tnavigation.speed_offset = offset_speed;\n\t\t\t\tnavigation.travelTo(Tunnel_Corners[2][0] + 0.5, Tunnel_Corners[2][1] + 0.5);\n\t\t\t\tnavigation.speed_offset = 0;\n\n\t\t\t\tif ((withinIslandBoundary(Tunnel_Corners[2][0], Tunnel_Corners[2][1] + 1)\n\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[2][0], Tunnel_Corners[2][1] + 1 }))\n\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[2][0], Tunnel_Corners[2][1] + 1)) {\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\tnavigation.turnBy(-90);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[2][0]) * TILE_SIZE, (Tunnel_Corners[2][1] + 1) * TILE_SIZE, 270);\n\t\t\t\t} else if ((withinIslandBoundary(Tunnel_Corners[3][0], Tunnel_Corners[3][1] + 1)\n\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[3][0], Tunnel_Corners[3][1] + 1 }))\n\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[3][0], Tunnel_Corners[3][1] + 1)) {\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\tnavigation.turnBy(90);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[3][0]) * TILE_SIZE, (Tunnel_Corners[3][1] + 1) * TILE_SIZE, 90);\n\t\t\t\t} else {\n\n\t\t\t\t\tif ((withinIslandBoundary(Tunnel_Corners[2][0], Tunnel_Corners[2][1] + 2)\n\t\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[2][0], Tunnel_Corners[2][1] + 2 }))\n\t\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[2][0], Tunnel_Corners[2][1] + 2)) {\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tnavigation.turnBy(-90);\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\todometer.setXYT((Tunnel_Corners[2][0]) * TILE_SIZE, (Tunnel_Corners[2][1] + 2) * TILE_SIZE,\n\t\t\t\t\t\t\t\t270);\n\t\t\t\t\t} else if ((withinIslandBoundary(Tunnel_Corners[3][0], Tunnel_Corners[3][1] + 2)\n\t\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[3][0], Tunnel_Corners[3][1] + 2 }))\n\t\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[3][0], Tunnel_Corners[3][1] + 2)) {\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tnavigation.turnBy(90);\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\todometer.setXYT((Tunnel_Corners[3][0]) * TILE_SIZE, (Tunnel_Corners[3][1] + 2) * TILE_SIZE, 90);\n\t\t\t\t\t} else {\n\t\t\t\t\t\todometer.setXYT(Tunnel_Corners[2][0] + 0.5, Tunnel_Corners[2][1] + 0.5, 0);\n\t\t\t\t\t\ttree_obstruct = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {// case where we need to go DOWN\n\t\t\t\tdouble distLeft = getDist((Tunnel_Corners[2][0] * TILE_SIZE - odometer.getXYT()[0]),\n\t\t\t\t\t\t(Tunnel_Corners[2][1] * TILE_SIZE - odometer.getXYT()[1]));\n\t\t\t\tdouble distright = getDist((Tunnel_Corners[3][0] * TILE_SIZE - odometer.getXYT()[0]),\n\t\t\t\t\t\t(Tunnel_Corners[3][1] * TILE_SIZE - odometer.getXYT()[1]));\n\t\t\t\tif (distLeft < distright) {\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[2][0] - 0.5, Tunnel_Corners[2][1] + 0.5);\n\t\t\t\t\tnavigation.turnTo(90 * Math.PI / 180);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT(Tunnel_Corners[2][0] * TILE_SIZE, (Tunnel_Corners[2][1] - 0.5) * TILE_SIZE, 90);\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[2][0] + 0.5, Tunnel_Corners[2][1] - 0.5);\n\t\t\t\t\tnavigation.turnBy(87);\n\t\t\t\t} else {\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[3][0] + 0.5, Tunnel_Corners[3][1] + 0.5);\n\t\t\t\t\tnavigation.turnTo(270 * Math.PI / 180);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT(Tunnel_Corners[3][0] * TILE_SIZE, (Tunnel_Corners[3][1] + 0.5) * TILE_SIZE, 270);\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[3][0] - 0.5, Tunnel_Corners[3][1] + 0.5);\n\t\t\t\t\tnavigation.turnBy(-93);\n\t\t\t\t}\n\t\t\t\tlocalization.linedetect_move();\n\t\t\t\todometer.setXYT((Tunnel_Corners[2][0] + 0.5) * TILE_SIZE, (Tunnel_Corners[2][1]) * TILE_SIZE, 180);\n\t\t\t\tnavigation.speed_offset = offset_speed;\n\t\t\t\tnavigation.travelTo(Tunnel_Corners[0][0] + 0.5, Tunnel_Corners[0][1] - 0.5);\n\t\t\t\tnavigation.speed_offset = 0;\n\n\t\t\t\tif ((withinIslandBoundary(Tunnel_Corners[1][0], Tunnel_Corners[1][1] - 1)\n\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[1][0], Tunnel_Corners[1][1] - 1 }))\n\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[1][0], Tunnel_Corners[1][1] - 1)) {\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\tnavigation.turnBy(-90);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[1][0]) * TILE_SIZE, (Tunnel_Corners[1][1] - 1) * TILE_SIZE, 90);\n\t\t\t\t} else if ((withinIslandBoundary(Tunnel_Corners[0][0], Tunnel_Corners[0][1] - 1)\n\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[0][0], Tunnel_Corners[0][1] - 1 }))\n\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[0][0], Tunnel_Corners[0][1] - 1)) {\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\tnavigation.turnBy(90);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[0][0]) * TILE_SIZE, (Tunnel_Corners[0][1] - 1) * TILE_SIZE, 270);\n\t\t\t\t} else {\n\t\t\t\t\tif ((withinIslandBoundary(Tunnel_Corners[1][0], Tunnel_Corners[1][1] - 2)\n\t\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[1][0], Tunnel_Corners[1][1] - 2 }))\n\t\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[1][0], Tunnel_Corners[1][1] - 2)) {\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tnavigation.turnBy(-90);\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\todometer.setXYT((Tunnel_Corners[1][0]) * TILE_SIZE, (Tunnel_Corners[1][1] - 2) * TILE_SIZE, 90);\n\t\t\t\t\t} else if ((withinIslandBoundary(Tunnel_Corners[0][0], Tunnel_Corners[0][1] - 2)\n\t\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[0][0], Tunnel_Corners[0][1] - 2 }))\n\t\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[0][0], Tunnel_Corners[0][1] - 2)) {\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tnavigation.turnBy(90);\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\todometer.setXYT((Tunnel_Corners[0][0]) * TILE_SIZE, (Tunnel_Corners[0][1] - 2) * TILE_SIZE,\n\t\t\t\t\t\t\t\t270);\n\t\t\t\t\t} else {\n\t\t\t\t\t\todometer.setXYT(Tunnel_Corners[0][0] + 0.5, Tunnel_Corners[0][1] - 0.5, 180);\n\t\t\t\t\t\ttree_obstruct = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t} else {// case where the tunnel is horizontal\n\t\t\tif (orientation[1]) {// case where we need to go right\n\t\t\t\tdouble distUp = getDist((Tunnel_Corners[2][0] * TILE_SIZE - odometer.getXYT()[0]),\n\t\t\t\t\t\t(Tunnel_Corners[2][1] * TILE_SIZE - odometer.getXYT()[1]));\n\t\t\t\tdouble distDown = getDist((Tunnel_Corners[0][0] * TILE_SIZE - odometer.getXYT()[0]),\n\t\t\t\t\t\t(Tunnel_Corners[0][1] * TILE_SIZE - odometer.getXYT()[1]));\n\t\t\t\tif (distUp < distDown) {\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[2][0] - 0.5, Tunnel_Corners[2][1] + 0.5);\n\t\t\t\t\tnavigation.turnTo(180 * Math.PI / 180);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[2][0] - 0.5) * TILE_SIZE, (Tunnel_Corners[2][1]) * TILE_SIZE, 180);\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[2][0] - 0.5, Tunnel_Corners[2][1] - 0.5);\n\t\t\t\t\tnavigation.turnBy(-93);\n\t\t\t\t} else {\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[0][0] - 0.5, Tunnel_Corners[0][1] - 0.5);\n\t\t\t\t\tnavigation.turnTo(0 * Math.PI / 180);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[0][0] - 0.7) * TILE_SIZE, (Tunnel_Corners[0][1]) * TILE_SIZE, 0);\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[0][0] - 0.7, Tunnel_Corners[0][1] + 0.5);\n\t\t\t\t\tnavigation.turnBy(87);\n\t\t\t\t}\n\t\t\t\tlocalization.linedetect_move();\n\t\t\t\todometer.setXYT((Tunnel_Corners[2][0]) * TILE_SIZE, (Tunnel_Corners[2][1] - 0.5) * TILE_SIZE, 90);\n\t\t\t\tnavigation.speed_offset = offset_speed;\n\t\t\t\tnavigation.travelTo(Tunnel_Corners[3][0] + 0.5, Tunnel_Corners[3][1] - 0.5);\n\t\t\t\tnavigation.speed_offset = 0;\n\n\t\t\t\tif ((withinIslandBoundary(Tunnel_Corners[1][0] + 1, Tunnel_Corners[1][1])\n\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[1][0] + 1, Tunnel_Corners[1][1] }))\n\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[1][0] + 1, Tunnel_Corners[1][1])) {\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\tnavigation.turnBy(90);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[1][0] + 1) * TILE_SIZE, (Tunnel_Corners[1][1]) * TILE_SIZE, 180);\n\t\t\t\t} else if ((withinIslandBoundary(Tunnel_Corners[3][0] + 1, Tunnel_Corners[3][1])\n\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[3][0] + 1, Tunnel_Corners[3][1] }))\n\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[3][0] + 1, Tunnel_Corners[3][1])) {\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\tnavigation.turnBy(-90);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[3][0] + 1) * TILE_SIZE, (Tunnel_Corners[3][1]) * TILE_SIZE, 0);\n\t\t\t\t} else {\n\t\t\t\t\tif ((withinIslandBoundary(Tunnel_Corners[1][0] + 2, Tunnel_Corners[1][1])\n\t\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[1][0] + 2, Tunnel_Corners[1][1] }))\n\t\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[1][0] + 2, Tunnel_Corners[1][1])) {\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tnavigation.turnBy(90);\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\todometer.setXYT((Tunnel_Corners[1][0] + 2) * TILE_SIZE, (Tunnel_Corners[1][1]) * TILE_SIZE,\n\t\t\t\t\t\t\t\t180);\n\t\t\t\t\t} else if ((withinIslandBoundary(Tunnel_Corners[3][0] + 1, Tunnel_Corners[3][1])\n\t\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[3][0] + 1, Tunnel_Corners[3][1] }))\n\t\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[3][0] + 2, Tunnel_Corners[3][1])) {\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tnavigation.turnBy(-90);\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\todometer.setXYT((Tunnel_Corners[3][0] + 2) * TILE_SIZE, (Tunnel_Corners[3][1]) * TILE_SIZE, 0);\n\t\t\t\t\t} else {\n\t\t\t\t\t\todometer.setXYT(Tunnel_Corners[3][0] + 0.5, Tunnel_Corners[3][1] - 0.5, 90);\n\t\t\t\t\t\ttree_obstruct = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {// case where we need to go left.\n\t\t\t\tdouble distUp = getDist((Tunnel_Corners[3][0] * TILE_SIZE - odometer.getXYT()[0]),\n\t\t\t\t\t\t(Tunnel_Corners[3][1] * TILE_SIZE - odometer.getXYT()[1]));\n\t\t\t\tdouble distDown = getDist((Tunnel_Corners[1][0] * TILE_SIZE - odometer.getXYT()[0]),\n\t\t\t\t\t\t(Tunnel_Corners[1][1] * TILE_SIZE - odometer.getXYT()[1]));\n\t\t\t\tif (distUp < distDown) {\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[3][0] + 0.5, Tunnel_Corners[3][1] + 0.5);\n\t\t\t\t\tnavigation.turnTo(180 * Math.PI / 180);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[3][0] + 0.5) * TILE_SIZE, (Tunnel_Corners[3][1]) * TILE_SIZE, 180);\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[3][0] + 0.5, Tunnel_Corners[3][1] - 0.5);\n\t\t\t\t\tnavigation.turnBy(87);\n\t\t\t\t} else {\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[1][0] + 0.5, Tunnel_Corners[1][1] - 0.5);\n\t\t\t\t\tnavigation.turnTo(0);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[1][0] + 0.5) * TILE_SIZE, (Tunnel_Corners[1][1]) * TILE_SIZE, 0);\n\t\t\t\t\tnavigation.travelTo(Tunnel_Corners[1][0] + 0.5, Tunnel_Corners[1][1] + 0.5);\n\t\t\t\t\tnavigation.turnBy(-93);\n\t\t\t\t}\n\t\t\t\tlocalization.linedetect_move();\n\t\t\t\todometer.setXYT((Tunnel_Corners[1][0]) * TILE_SIZE, (Tunnel_Corners[1][1] + 0.5) * TILE_SIZE, 270);\n\t\t\t\tnavigation.speed_offset = offset_speed;\n\t\t\t\tnavigation.speed_offset = 0;\n\t\t\t\tnavigation.travelTo(Tunnel_Corners[2][0] - 0.5, Tunnel_Corners[2][1] - 0.5);\n\n\t\t\t\tif ((withinIslandBoundary(Tunnel_Corners[2][0] - 1, Tunnel_Corners[2][1])\n\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[2][0] - 1, Tunnel_Corners[2][1] }))\n\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[2][0] - 1, Tunnel_Corners[2][1])) {\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\tnavigation.turnBy(90);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[2][0] - 1) * TILE_SIZE, (Tunnel_Corners[2][1]) * TILE_SIZE, 0);\n\t\t\t\t} else if ((withinIslandBoundary(Tunnel_Corners[0][0] - 1, Tunnel_Corners[0][1])\n\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[0][0] - 1, Tunnel_Corners[0][1] }))\n\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[0][0] - 1, Tunnel_Corners[0][1])) {\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\tnavigation.turnBy(-90);\n\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\todometer.setXYT((Tunnel_Corners[0][0] - 1) * TILE_SIZE, (Tunnel_Corners[0][1]) * TILE_SIZE, 180);\n\t\t\t\t} else {\n\t\t\t\t\tif ((withinIslandBoundary(Tunnel_Corners[2][0] - 2, Tunnel_Corners[2][1])\n\t\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[2][0] - 2, Tunnel_Corners[2][1] }))\n\t\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[2][0] - 2, Tunnel_Corners[2][1])) {\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tnavigation.turnBy(90);\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\todometer.setXYT((Tunnel_Corners[2][0] - 2) * TILE_SIZE, (Tunnel_Corners[2][1]) * TILE_SIZE, 0);\n\t\t\t\t\t} else if ((withinIslandBoundary(Tunnel_Corners[0][0] - 2, Tunnel_Corners[0][1])\n\t\t\t\t\t\t\t|| isInStartIsland(new int[] { Tunnel_Corners[0][0] - 2, Tunnel_Corners[0][1] }))\n\t\t\t\t\t\t\t&& !IsTree(Tunnel_Corners[0][0] - 2, Tunnel_Corners[0][1])) {\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\tnavigation.turnBy(-90);\n\t\t\t\t\t\tlocalization.linedetect_move();\n\t\t\t\t\t\todometer.setXYT((Tunnel_Corners[0][0] - 2) * TILE_SIZE, (Tunnel_Corners[0][1]) * TILE_SIZE,\n\t\t\t\t\t\t\t\t180);\n\t\t\t\t\t} else {\n\t\t\t\t\t\todometer.setXYT(Tunnel_Corners[2][0] - 0.5, Tunnel_Corners[2][1] - 0.5, 270);\n\t\t\t\t\t\ttree_obstruct = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void start() {\n\t\tthis.obstacleController.start();\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the given key from its channel's key set. This method must be invoked by the selector for each channel that it deregisters.
protected final void deregister(AbstractSelectionKey key) { ((AbstractSelectableChannel)key.channel()).removeKey(key); }
[ "@Override\n public void remove(K key) {\n super.remove(key);\n keySet.remove(key);\n }", "private void removeKeyAndSession(SelectionKey key) {\n\t\t\tSSLClientSession session = ((SSLClientSession)key.attachment());\n\t\t\tString username = session.getUsername();\n\t\t\t\n\t\t\topen_client_channels.remove(key); // remove the open channel\n\t\t\tsession.disconnect(); // shutdown the ssl socket channel\n\t\t\tkey.cancel(); //cancel the key\n\t\t\t\n\t\t\tif(username == null)\n\t\t\t\tSystem.out.println(\"Unknown user has disconnected.\");\n\t\t\telse\n\t\t\t\tSystem.out.println(username+\" has disconnected from the communication server.\");\n\t\t}", "public void remove(String key) {\r\n\t\tthis.members.remove(key);\r\n\t}", "public void removeEntry(String key) {\n localRegistry.remove(key);\n }", "public void remove(String key) {\n prefs.edit().remove(key).apply();\n }", "void clearByKey(String key);", "public void remove(String key) {\n map.remove(key);\n }", "@NativeCallable\n public void remove(String key) {\n mMap.remove(key);\n }", "public void remove(Key key) {\n root = remove(root, key);\n }", "public void removeFromCache(final String _key) {\n this.componentcache.remove(_key);\n }", "public static Object remove(String key){\n return getThreadContext().remove(key);\n }", "public void removeFromPieces (Comparable key)\n {\n requestEntryRemove(PIECES, pieces, key);\n }", "public Object remove(Object key)\n\t{\n\t\tremoveOperator(key);\n\t\tremoveLogicalOperator(key);\n\t\treturn super.remove(key);\n\t}", "public void removeItemByKey(String key)\n {\n int pos = FavChampKeys.indexOf(key);\n FavChampKeys.remove(key);\n notifyItemRemoved(pos);\n notifyItemChanged(pos, FavChampKeys.size());\n }", "public synchronized V remove(K key) {\n return leaderboard.remove(key);\n }", "public void __delitem__( PyObject key ){\n _remove( key.toString() );\n }", "public void removeEntryOnReplicas(String key);", "void removeConfiguration(String key);", "public void removeAll(Key key)\n\t{\n\t\t_map.remove(key);\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a recordReaderContext for FixedWidthRecords
protected ReaderContext<FSDataInputStream> createFixedWidthReaderContext() { ReaderContext.FixedBytesReaderContext<FSDataInputStream> fixedBytesReaderContext = new ReaderContext.FixedBytesReaderContext<FSDataInputStream>(); fixedBytesReaderContext.setLength(recordLength); return fixedBytesReaderContext; }
[ "@Override\n public void setup(OperatorContext context)\n {\n super.setup(context);\n if (mode == RECORD_READER_MODE.FIXED_WIDTH_RECORD) {\n readerContext = createFixedWidthReaderContext();\n } else {\n readerContext = createDelimitedReaderContext();\n }\n }", "protected ReaderContext<FSDataInputStream> createDelimitedReaderContext()\n {\n return new ReaderContext.ReadAheadLineReaderContext<FSDataInputStream>();\n }", "public final int getFieldsPerRecord() {\n\t\tif (fieldLengths == null) {\n\t\t\tthrow new IllegalStateException(\"Field lengths not set for fixed width entity\");\n\t\t}\n\t\treturn fieldLengths.length;\n\t}", "public GenericReader(InputStream in, Configuration conf,\n\t byte[] recordDelimiterBytes) throws IOException {\n\t this.in = in;\n\t this.bufferSize = conf.getInt(\"io.file.buffer.size\", DEFAULT_BUFFER_SIZE);\n\t this.buffer = new byte[this.bufferSize];\n\t this.recordDelimiterBytes = recordDelimiterBytes;\n\t }", "public GenericReader(InputStream in, int bufferSize,\n\t byte[] recordDelimiterBytes) {\n\t this.in = in;\n\t this.bufferSize = bufferSize;\n\t this.buffer = new byte[this.bufferSize];\n\t this.recordDelimiterBytes = recordDelimiterBytes;\n\t }", "DatasetReader createReader();", "private void growFixedWidthBuffersAndRows() {\n growFixedWidthBuffersAndRows(1);\n }", "public GenericReader(InputStream in, byte[] recordDelimiterBytes) {\n\t this.in = in;\n\t this.bufferSize = DEFAULT_BUFFER_SIZE;\n\t this.buffer = new byte[this.bufferSize];\n\t this.recordDelimiterBytes = recordDelimiterBytes;\n\t }", "public BinaryRecordReader(FilePart fp, RecordDef rd) {\n this.recDef = rd;\n this.pc = new PlainConnection(fp, rd);\n this.curr = new byte[0];\n this.curr_pos = 0;\n this.active = false;\n this.pos = 0;\n this.part = fp.getThisPart();\n this.defaultLE = true;\n }", "@Override\n public RecordReader<NullWritable, Text> createRecordReader(\n InputSplit split, TaskAttemptContext context) throws IOException {\n\n if (!(split instanceof CombineFileSplit)) {\n throw new IllegalArgumentException(\"split must be a CombineFileSplit\");\n }\n return new CombineFileRecordReader<NullWritable, Text>((CombineFileSplit) split, context, WholeFileRecordReader.class);\n }", "public void setRecord_length(int len) {\n\t\trecord_length = len;\n\t}", "public Record create()\n { return create(new byte[keyLength], \n (valueLength > 0) ? new byte[valueLength] : null) ;\n }", "public RecordFactory keyFactory()\n {\n return new RecordFactory(keyLength, 0) ;\n }", "public static void setRecordSizeInFrames(Configuration conf, int recordSizeInFrames) {\n conf.setInt(RECORD_SIZE_IN_FRAMES, recordSizeInFrames);\n }", "private CloseableIterator<GeoWaveRow> createIteratorForRecordReader(\n final FoundationDBClient client,\n final RecordReaderParams recordReaderParams) {\n final GeoWaveRowRange range = recordReaderParams.getRowRange();\n final byte[] startKey = range.isInfiniteStartSortKey() ? null : range.getStartSortKey();\n final byte[] stopKey = range.isInfiniteStopSortKey() ? null : range.getEndSortKey();\n final SinglePartitionQueryRanges partitionRange =\n new SinglePartitionQueryRanges(\n range.getPartitionKey(),\n Collections.singleton(new ByteArrayRange(startKey, stopKey)));\n final Set<String> authorizations =\n Sets.newHashSet(recordReaderParams.getAdditionalAuthorizations());\n return createIterator(\n client,\n recordReaderParams,\n GeoWaveRowIteratorTransformer.NO_OP_TRANSFORMER,\n Collections.singleton(partitionRange),\n authorizations,\n // there should already be sufficient parallelism created by\n // input splits for record reader use cases\n false);\n }", "private RecordBuffer prepareRecordBuffer(ScanStrategy strategy, NetFlow flowInterface) {\n if (strategy == null) {\n throw new IllegalArgumentException(\"Expected ScanStrategy instance, got null\");\n }\n\n if (flowInterface == null) {\n throw new IllegalArgumentException(\"Expected NetFlow instance, got null\");\n }\n\n // Depending on different strategy we either skip file directly, return full buffer or records,\n // or return filtering buffer, if there is a FilterScan.\n boolean isCompressed = header.isCompressed();\n int recordSize = flowInterface.recordSize();\n\n if (strategy.skipScan()) {\n log.info(\"Skip scan based on strategy \" + strategy);\n return new EmptyRecordBuffer();\n } else if (strategy.fullScan()) {\n log.info(\"Full scan based on strategy \" + strategy + \", ignoreCorrupt=\" + ignoreCorrupt);\n // wrap into closeable iterator\n return new ScanRecordBuffer(in, strategy.getRecordMaterializer(), recordSize, byteOrder,\n isCompressed, bufferLength, ignoreCorrupt);\n } else {\n log.info(\"Filter scan based on strategy \" + strategy + \", ignoreCorrupt=\" + ignoreCorrupt);\n return new FilterRecordBuffer(in, strategy.getRecordMaterializer(), recordSize, byteOrder,\n isCompressed, bufferLength, ignoreCorrupt);\n }\n }", "public RecordBuffer prepareRecordBuffer(\n Column[] columns,\n FilterPredicate predicate,\n HashMap<Column, Statistics> stats) {\n // Since we are using statistics on a field, we have to make sure that it is initialized\n // properly\n if (stats == null) {\n stats = new HashMap<Column, Statistics>();\n }\n\n // Find out appropriate strategy for set of columns and predicate. We also update statistics\n // with start and end capture time of the file.\n NetFlow flowInterface;\n if (header.getFlowVersion() == 5) {\n flowInterface = new NetFlowV5();\n stats.put(NetFlowV5.FIELD_UNIX_SECS,\n new LongStatistics(header.getStartCapture(), header.getEndCapture()));\n } else if (header.getFlowVersion() == 7) {\n flowInterface = new NetFlowV7();\n stats.put(NetFlowV7.FIELD_UNIX_SECS,\n new LongStatistics(header.getStartCapture(), header.getEndCapture()));\n } else {\n throw new UnsupportedOperationException(\"Version \" + header.getFlowVersion() +\n \" is not supported\");\n }\n\n ScanStrategy strategy = ScanPlanner.buildStrategy(columns, predicate, stats);\n return prepareRecordBuffer(strategy, flowInterface);\n }", "RecordDefinition createRecordDefinition();", "public BatchConfigurationBuilder recordHeaders(String recordHeaders) {\n properties.setProperty(BatchConstants.INPUT_RECORD_HEADERS, recordHeaders);\n return this;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
> \brief \b DORMHR =========== DOCUMENTATION =========== Online html documentation available at > \htmlonly > Download DORMHR + dependencies > > [TGZ] > > [ZIP] > > [TXT] > \endhtmlonly Definition: =========== SUBROUTINE DORMHR( SIDE, TRANS, M, N, ILO, IHI, A, LDA, TAU, C, LDC, WORK, LWORK, INFO ) .. Scalar Arguments .. CHARACTER SIDE, TRANS INTEGER IHI, ILO, INFO, LDA, LDC, LWORK, M, N .. .. Array Arguments .. DOUBLE PRECISION A( LDA, ), C( LDC, ), TAU( ), WORK( ) .. > \par Purpose: ============= > > \verbatim > > DORMHR overwrites the general real MbyN matrix C with > > SIDE = 'L' SIDE = 'R' > TRANS = 'N': Q C C Q > TRANS = 'T': QT C C QT > > where Q is a real orthogonal matrix of order nq, with nq = m if > SIDE = 'L' and nq = n if SIDE = 'R'. Q is defined as the product of > IHIILO elementary reflectors, as returned by DGEHRD: > > Q = H(ilo) H(ilo+1) . . . H(ihi1). > \endverbatim Arguments: ========== > \param[in] SIDE > \verbatim > SIDE is CHARACTER1 > = 'L': apply Q or QT from the Left; > = 'R': apply Q or QT from the Right. > \endverbatim > > \param[in] TRANS > \verbatim > TRANS is CHARACTER1 > = 'N': No transpose, apply Q; > = 'T': Transpose, apply QT. > \endverbatim > > \param[in] M > \verbatim > M is INTEGER > The number of rows of the matrix C. M >= 0. > \endverbatim > > \param[in] N > \verbatim > N is INTEGER > The number of columns of the matrix C. N >= 0. > \endverbatim > > \param[in] ILO > \verbatim > ILO is INTEGER > \endverbatim > > \param[in] IHI > \verbatim > IHI is INTEGER > > ILO and IHI must have the same values as in the previous call > of DGEHRD. Q is equal to the unit matrix except in the > submatrix Q(ilo+1:ihi,ilo+1:ihi). > If SIDE = 'L', then 1 0, and > ILO = 1 and IHI = 0, if M = 0; > if SIDE = 'R', then 1 0, and > ILO = 1 and IHI = 0, if N = 0. > \endverbatim > > \param[in] A > \verbatim > A is DOUBLE PRECISION array, dimension > (LDA,M) if SIDE = 'L' > (LDA,N) if SIDE = 'R' > The vectors which define the elementary reflectors, as > returned by DGEHRD. > \endverbatim > > \param[in] LDA > \verbatim > LDA is INTEGER > The leading dimension of the array A. > LDA >= max(1,M) if SIDE = 'L'; LDA >= max(1,N) if SIDE = 'R'. > \endverbatim > > \param[in] TAU > \verbatim > TAU is DOUBLE PRECISION array, dimension > (M1) if SIDE = 'L' > (N1) if SIDE = 'R' > TAU(i) must contain the scalar factor of the elementary > reflector H(i), as returned by DGEHRD. > \endverbatim > > \param[in,out] C > \verbatim > C is DOUBLE PRECISION array, dimension (LDC,N) > On entry, the MbyN matrix C. > On exit, C is overwritten by QC or QTC or CQT or CQ. > \endverbatim > > \param[in] LDC > \verbatim > LDC is INTEGER > The leading dimension of the array C. LDC >= max(1,M). > \endverbatim > > \param[out] WORK > \verbatim > WORK is DOUBLE PRECISION array, dimension (MAX(1,LWORK)) > On exit, if INFO = 0, WORK(1) returns the optimal LWORK. > \endverbatim > > \param[in] LWORK > \verbatim > LWORK is INTEGER > The dimension of the array WORK. > If SIDE = 'L', LWORK >= max(1,N); > if SIDE = 'R', LWORK >= max(1,M). > For optimum performance LWORK >= NNB if SIDE = 'L', and > LWORK >= MNB if SIDE = 'R', where NB is the optimal > blocksize. > > If LWORK = 1, then a workspace query is assumed; the routine > only calculates the optimal size of the WORK array, returns > this value as the first entry of the WORK array, and no error > message related to LWORK is issued by XERBLA. > \endverbatim > > \param[out] INFO > \verbatim > INFO is INTEGER > = 0: successful exit > > \endverbatim Authors: ======== > \author Univ. of Tennessee > \author Univ. of California Berkeley > \author Univ. of Colorado Denver > \author NAG Ltd. > \date November 2011 > \ingroup doubleOTHERcomputational =====================================================================
public void dormhr_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER ILO,INTEGER IHI,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);
[ "public void dorghr_(INTEGER N,INTEGER ILO,INTEGER IHI,double[] A,INTEGER LDA,double[] TAU,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dorm22_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER N1,INTEGER N2,double[] Q,INTEGER LDQ,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dormql_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dormlq_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dormrq_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dormtr_(CHARACTER SIDE,CHARACTER UPLO,CHARACTER TRANS,INTEGER M,INTEGER N,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dorglq_(INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dormr2_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER INFO);", "public void dorml2_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER INFO);", "public void dorgql_(INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dorcsd_(CHARACTER JOBU1,CHARACTER JOBU2,CHARACTER JOBV1T,CHARACTER JOBV2T,CHARACTER TRANS,CHARACTER SIGNS,INTEGER M,INTEGER P,INTEGER Q,double[] X11,INTEGER LDX11,double[] X12,INTEGER LDX12,double[] X21,INTEGER LDX21,double[] X22,INTEGER LDX22,double[] THETA,double[] U1,INTEGER LDU1,double[] U2,INTEGER LDU2,double[] V1T,INTEGER LDV1T,double[] V2T,INTEGER LDV2T,double[] WORK,INTEGER LWORK,int[] IWORK,INTEGER INFO);", "public void dormbr_(CHARACTER VECT,CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dormrz_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,INTEGER L,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dormr3_(CHARACTER SIDE,CHARACTER TRANS,INTEGER M,INTEGER N,INTEGER K,INTEGER L,double[] A,INTEGER LDA,double[] TAU,double[] C,INTEGER LDC,double[] WORK,INTEGER INFO);", "static void dad_with_hl_internal(int h,int l){\n\t\tl+=hexa_to_deci(registers.get('L'));\n\t\tint carry = l>255?1:0;\n\t\tregisters.put('L',decimel_to_hexa_8bit(l));\n\t\th+=hexa_to_deci(registers.get('H'));\n\t\th+=carry;\n\t\tCS = h>255?true:false;\n\t\tregisters.put('H',decimel_to_hexa_8bit(h));\n\t}", "public void dorbdb1_(INTEGER M,INTEGER P,INTEGER Q,double[] X11,INTEGER LDX11,double[] X21,INTEGER LDX21,double[] THETA,double[] PHI,double[] TAUP1,double[] TAUP2,double[] TAUQ1,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dorbdb6_(INTEGER M1,INTEGER M2,INTEGER N,double[] X1,INTEGER INCX1,double[] X2,INTEGER INCX2,double[] Q1,INTEGER LDQ1,double[] Q2,INTEGER LDQ2,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dorbdb3_(INTEGER M,INTEGER P,INTEGER Q,double[] X11,INTEGER LDX11,double[] X21,INTEGER LDX21,double[] THETA,double[] PHI,double[] TAUP1,double[] TAUP2,double[] TAUQ1,double[] WORK,INTEGER LWORK,INTEGER INFO);", "public void dorgr2_(INTEGER M,INTEGER N,INTEGER K,double[] A,INTEGER LDA,double[] TAU,double[] WORK,INTEGER INFO);" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Constructor File will be instantiated with UserLoginData.waldo This file will contain user login information (Encrypted) This file will be read from and written to when appropriate
public UserBase() { file = new File("UserLoginData.waldo"); pattern = Pattern.compile(EMAIL_PATTERN); }
[ "public CryptFile(File file, CryptFile parentFile) {\n this.file = file;\n this.parentFile = parentFile;\n users = new Properties();\n }", "private void writeAuthFile(String username, String password) {\n\n createDBFileFolder();\n\n String Os = System.getProperty(\"os.name\");\n if (Os.equalsIgnoreCase(\"windows\")) {\n try {\n File file = new File(\"emailserver/db/user_pass\");\n\n FileWriter fwriter = new FileWriter(file, true);\n\n BufferedWriter bwriter = new BufferedWriter(fwriter);\n bwriter.write(username + \"&\" + password + \"\\n\");\n bwriter.close();\n fwriter.close();\n\n Runtime.getRuntime().exec(\"attrib +H db/user_pass\");\n\n } catch (IOException ex) {\n Logger.getLogger(SmtpServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n } else {\n try {\n File file = new File(\"emailserver/db/.user_pass\");\n FileWriter fwriter = new FileWriter(file, true);\n\n BufferedWriter bwriter = new BufferedWriter(fwriter);\n bwriter.write(username + \"&\" + password + \"\\n\");\n bwriter.close();\n fwriter.close();\n\n } catch (IOException ex) {\n Logger.getLogger(SmtpServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }", "public void loadPasswordFile() throws Exception {\n if (passwordFile.canRead()) {\n int len = (int)passwordFile.length();\n byte []key = new byte[len];\n FileInputStream inputStream = null;\n inputStream = new FileInputStream(passwordFile);\n DataInputStream dis = null;\n try {\n \t dis = new DataInputStream(inputStream);\n \t dis.readFully(key);\n } finally {\n \tif (dis != null) {\n \t\tdis.close();\n \t} else {\n \t\tinputStream.close();\n \t}\n }\n setCryptedPassword(new String(key, WaarpStringUtils.UTF8));\n } else {\n throw new CryptoException(\"Cannot read crypto file\");\n }\n }", "public User logIn(File userFile, ArrayList<User> users) throws FileNotFoundException, IOException {\n\n //Create null user\n User user = null;\n\n //Prompt user to enter existed username to login\n String username = JOptionPane.showInputDialog(null, \"Please enter your username.\",\n \"Login\", JOptionPane.QUESTION_MESSAGE);\n\n //If user decide to exit the login window\n if (username == null) {\n User invalid = new User(\"invalid\", \"invalid\", \"invalid\", \"invalid\");\n return invalid;\n }\n\n //Make username lowercase\n username = username.toLowerCase(Locale.ROOT);\n\n //Initialize File Input Stream Object\n FileReader fr = new FileReader(userFile);\n BufferedReader bfr = new BufferedReader(fr);\n boolean loggedIn = false; // to know if it was a success or not\n\n readFile:\n while (true) { // while loop to go through the userFile\n String line = bfr.readLine();\n\n //break if there's no more line to read\n if (line == null) {\n break readFile;\n }\n String[] info = line.split(\",\");\n\n if (info[2].equals(username)) {\n\n String password;\n\n password:\n while (true) {\n\n //If the entered username exists, prompt user to enter their password\n password = JOptionPane.showInputDialog(null,\n \"Please enter your password (Case-Sensitive).\",\n \"Login\", JOptionPane.QUESTION_MESSAGE);\n\n //If user decide to exit the login window\n if (password == null) {\n User invalid = new User(\"invalid\", \"invalid\", \"invalid\", \"invalid\");\n return invalid;\n }\n\n //validate the password\n if (info[3].equals(password)) {\n JOptionPane.showMessageDialog(null, \"Login Successfully!\",\n \"Login\", JOptionPane.INFORMATION_MESSAGE);\n break password;\n\n } else {\n JOptionPane.showMessageDialog(null, \"Incorrect password!\\n\" +\n \"Please try again.\",\n \"Login\", JOptionPane.ERROR_MESSAGE);\n }\n }\n\n //Create new user with given existed username and password\n loggedIn = true;\n\n //Point the newly created users to the existed User object\n for (int i = 0; i < users.size(); i++) {\n if (users.get(i).getUsername().equals(username) && users.get(i).getPassword().equals(password)) {\n return users.get(i);\n }\n }\n\n } // end of outer if statement\n } // end of while loop\n\n //If entered username doesn't match with any existed account\n if (!loggedIn) {\n JOptionPane.showMessageDialog(null,\n \"Couldn't find existed account from given username.\\n\" +\n \"Please try again.\",\n \"Login\", JOptionPane.ERROR_MESSAGE);\n\n User invalid = new User(\"invalid\", \"invalid\", \"invalid\", \"invalid\");\n return invalid;\n }\n\n return user;\n }", "@Override\r\n public boolean login(TextField nameInput, TextField passInput) {\r\n String username = nameInput.getText();\r\n String password = passInput.getText();\r\n Manager m = Manager.getInstance();\r\n \r\n try{\r\n \r\n FileReader fr = new FileReader(username + \".txt\");\r\n int i;\r\n String info = \"\";\r\n while((i = fr.read()) != -1){\r\n info = info + (char)i;\r\n }\r\n \r\n //mapping in text file\r\n //userInfo[0] is the firstname\r\n //userInfo[1] is the lastname\r\n //userInfo[2] is the username\r\n //userInfo[3] is the password\r\n //userInfo[4] is the account level (silver, gold or platinum)\r\n //userInfo[5] is the amount of money in the account\r\n \r\n String[] userInfo = info.split(\" \");\r\n \r\n\r\n if(username.equals(userInfo[2]) && password.equals(userInfo[3])){\r\n System.out.println(\"Customer Found\");\r\n \r\n if(userInfo[4].equals(\"silver\")){\r\n instance = new Customer(userInfo[0] + \" \" + userInfo[1], userInfo[2], userInfo[3], new BankAccount(Double.parseDouble(userInfo[5])), new Silver());\r\n }else if(userInfo[4].equals(\"gold\")){\r\n instance = new Customer(userInfo[0] + \" \" + userInfo[1], userInfo[2], userInfo[3], new BankAccount(Double.parseDouble(userInfo[5])), new Gold());\r\n }else if(userInfo[4].equals(\"platinum\")){\r\n instance = new Customer(userInfo[0] + \" \" + userInfo[1], userInfo[2], userInfo[3], new BankAccount(Double.parseDouble(userInfo[5])), new Platinum());\r\n }\r\n \r\n return true;\r\n }else{\r\n return false;\r\n }\r\n \r\n \r\n }catch(FileNotFoundException ex) {\r\n System.out.println(\"Customer not found\");\r\n return false;\r\n }catch(IOException ex) {\r\n System.out.println(\"An error occured.\");\r\n return false;\r\n }\r\n }", "private Log() {\r\n readFile(\"Save.bin\",allLogs);\r\n readFile(\"Tag.bin\", allTags);\r\n readFile(\"Password.bin\", userInfo);\r\n }", "public void load() throws StorageException {\n try (Stream<String> stream = Files.lines(dataFilePath)) {\n String[] lines = stream.toArray(String[]::new);\n Integer userCount = 0;\n\n assertLine(lines, 0, dataFileHeadLabel);\n assertLine(lines, 1, dataFileSeparator);\n\n assertLine(lines, 2, dataFileAdminLabel);\n String adminPassword = lines[3];\n assertLine(lines, 4, dataFileSeparator);\n this.admin = new Admin(adminPassword);\n\n assertLine(lines, 5, dataFileUserLabel);\n for (Integer i = 0; lines.length > 6 + i * 4 + 3; i++) {\n String username = lines[6 + i * 4 + 0];\n String password = lines[6 + i * 4 + 1];\n String balance = lines[6 + i * 4 + 2];\n assertLine(lines, 6 + i * 4 + 3, dataFileSeparator);\n User user = new User(username, password, Double.parseDouble(balance));\n this.userList.add(user);\n }\n } catch (NoSuchFileException e) {\n System.err.println(\"Loading error: No such a database file: \" + dataFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected synchronized void read() {\n File file = new File(path);\n long newLastModified = file.exists() ? file.lastModified() : 0;\n long newFileSize = file.exists() ? file.length() : 0;\n if (userToPassword == null || newLastModified != lastModified || newFileSize != lastFileSize) {\n HashMap<String, String> newMap = new HashMap<>();\n if(newFileSize != 0) {\n try (BufferedReader reader = new BufferedReader(new FileReader(file))) {\n String line;\n while ((line = reader.readLine()) != null) {\n if (!line.isEmpty() && !line.startsWith(\"#\")) {\n Matcher m = HTPASSWD_LINE_PATTERN.matcher(line);\n if (m.matches()) {\n newMap.put(m.group(1), m.group(2));\n }\n }\n }\n } catch (Exception e) {\n logger.error(MessageFormat.format(\"Failed to read htpasswd file at path {0}\", file), e);\n }\n } else {\n logger.error(MessageFormat.format(\"Empty or missing htpasswd file at path {0}\", file));\n }\n lastFileSize = newFileSize;\n lastModified = newLastModified;\n userToPassword = newMap;\n }\n }", "@Override\r\n public void initValues() {\r\n try {\r\n crackedPasswords = Files.readAllLines(Paths.get(DefectivePasswordValidatorConstants.PASSWORD_FILE_PATH),\r\n StandardCharsets.UTF_8);\r\n } catch (IOException e) {\r\n log.error(\"Exception occured while reading and initializing values from \"\r\n + DefectivePasswordValidatorConstants.PASSWORD_FILE_NAME, e);\r\n }\r\n }", "private FileManager()\n {\n bookFile.open(\"bookdata.txt\");\n hisFile.open(\"history.txt\");\n idFile.open(\"idpassword.txt\");\n createIDMap();\n createHisMap(Customer.getInstance());\n }", "private void reloadUsers()\n throws LoginException\n {\n if (file == null)\n throw new LoginException(\"Error: Specified file for this login \"\n + \"module does not exist: \" + filename \n + \" (e.g. use filename=users.conf\");\n\n final long fileModificationTime = file.lastModified();\n if (lastModified != fileModificationTime)\n {\n synchronized (userTable)\n {\n if (lastModified == fileModificationTime)\n {\n // someone else did it.\n return;\n }\n\n userTable.clear();\n lastModified = fileModificationTime;\n debugOutput(\"Parsing file: \" + file.getName());\n\n BufferedReader in = null;\n try\n {\n in = new BufferedReader(new FileReader(file));\n String workingLine;\n String[] tokens;\n String user;\n String salt;\n String pwdHash;\n int indexDeviderSalt;\n byte[] decodedPwdHash = null;\n while ((workingLine = in.readLine()) != null)\n {\n workingLine = workingLine.trim();\n // parse, and store\n tokens = workingLine.split(\":\");\n\n if (tokens.length > 2)\n {\n user = tokens[0];\n\n if (user.length() > 0\n && tokens[1].startsWith(\"$2$\"))\n {\n indexDeviderSalt = tokens[1].lastIndexOf('$');\n\n salt = tokens[1].substring(3, indexDeviderSalt);\n pwdHash = tokens[1].substring(1 + indexDeviderSalt);\n decodedPwdHash = decodeBase64(pwdHash);\n debugOutput(\"storing user: \" + user);\n userTable.put(user,\n new Credential(salt.getBytes(\"US-ASCII\"),\n decodedPwdHash));\n }\n }\n }\n }\n catch (Exception e)\n {\n debugOutput(e.toString());\n LoginException le = new LoginException(\n \"IO error when reading users from \"\n + file.getName());\n le.initCause(e);\n throw le;\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e)\n {\n debugOutput(e.toString());\n LoginException le = new LoginException(\n \"IO error when reading users from \"\n + file.getName());\n le.initCause(e);\n throw le;\n }\n }\n }\n }\n }\n }", "private EntryXMLWriter() {\n\t\tuserFile = new File(System.getenv(\"APPDATA\") + \"/jKeeper/userData.xml\");\n\t}", "public UserDataStore(){\n \n userDirectory = new UserDirectory();\n \n }", "void writeUserIni()\n\t{\n\t\tIni userIni = new Ini();\n\n\t\t// die settings festlegen\n\t\tuserIni.add(\"pramp\", \"domain\", einstellungen.getDomain());\n\t\tuserIni.add(\"pramp\", \"process\", einstellungen.getProcess());\n\t\tuserIni.add(\"pramp\", \"version\", einstellungen.getVersion());\n\t\tuserIni.add(\"pramp\", \"baseDirectory\", einstellungen.getBaseDirectory());\n\t\t\n\t\t// temporaeres das userIni-file festlegen\n\t\tjava.io.File fileUserIni = new java.io.File(System.getProperty(\"user.home\") + \"/pkraft/pramp.user.ini~\");\n\t\t\n\t\t// falls das verzeichnis noch nicht existiert, soll es erstellt werden\n\t\tif(!fileUserIni.getParentFile().exists())\n\t\t{\n\t\t\tfileUserIni.getParentFile().mkdirs();\n\t\t}\n\n\t\t// das iniFile schreiben\n\t\tuserIni.setFile(fileUserIni);\n\t\ttry\n\t\t{\n\t\t\tuserIni.store();\n\t\t}\n\t\tcatch\n\t\t(IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// das temporaere userIni auf das richtige moven\n\t\ttry {\n\t\t\tFiles.move(new java.io.File(System.getProperty(\"user.home\") + \"/pkraft/pramp.user.ini~\"), new java.io.File(System.getProperty(\"user.home\") + \"/pkraft/pramp.user.ini\"));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void userSettings(String userName, String password, File nameFile,File passFile, String fileadd) {\n try\n {\n \n if(!nameFile.exists())\n {\n nameFile.createNewFile();\n }\n if(!passFile.exists())\n {\n passFile.createNewFile();\n }\n \n FileReader ufr = new FileReader(nameFile);\n FileReader pfr = new FileReader(passFile);\n \n BufferedReader ubr = new BufferedReader(ufr);\n BufferedReader pbr = new BufferedReader(pfr);\n \n ArrayList<String> uName = new ArrayList<>();\n ArrayList<String> uPass = new ArrayList<>();\n for (int i = 0; i < lineNum(fileadd); i++) {\n uName.add(ubr.readLine());\n uPass.add(pbr.readLine());\n }\n for (int i = 0; i < lineNum(fileadd); i++) \n {\n if (userName.equals(uName.get(i)))\n {\n uPass.set(i, password);\n } \n }\n \n ufr.close();\n pfr.close();\n FileWriter fw = new FileWriter(passFile);\n PrintWriter pw = new PrintWriter(fw);\n pw.print(\"\");\n \n FileWriter fw2 = new FileWriter(passFile, true);\n PrintWriter pw2 = new PrintWriter(fw2, true);\n \n for (int j = 0; j < uPass.size() -1; j++)\n {\n \n pw.print(uPass.get(j));\n pw.println();\n \n }\n pw.close();\n }catch(Exception e)\n {\n e.printStackTrace();\n }\n \n }", "public static void Login() throws FileNotFoundException, NoSuchAlgorithmException, InvalidKeySpecException, IOException{\n boolean correctUsername = false;\n String username = \"\";\n String password;\n Scanner scan = new Scanner(System.in);\n \n //Just checks username indefinitely, no real security threat if a username is found\n while(!correctUsername){\n System.out.print(\"Please enter username: \");\n username = scan.nextLine();\n if(UserManager.userChecks(username) && UserManager.userExists(username, AESKey)){ //checks if username entered exists in config file\n correctUsername = true;\n }\n else{\n System.out.println(\"Username does not exist.\");\n }\n }\n \n //Three attempts for password entry, before requiring username again, susceptible to brute-force, but not denial of service attacks\n //in a real version I would enforce password lengths and special characters\n int attempts = 3;\n while(attempts-->0){\n System.out.print(\"Please enter password: \");\n password = scan.nextLine();\n boolean validated = PasswordManager.validatePassword(username, password); //hashes password with salt on file and checks for match\n if(validated){\n System.out.println(\"Welcome, \" + username + \". Your session has started.\");\n UserManager.createSession(username, AESKey); //creates session folder and decrypts files associated with user in config file\n String command = scan.nextLine(); //waits for user to do something in console before\n UserManager.closeSession(username); //closing session, deleting decrypted files and session folder\n System.out.println(username + \", your session has been closed. Goodbye.\");\n if (command.toLowerCase().equals(\"exit\")) { //if asked to exit, exit\n System.exit(0);\n }\n return;\n }\n System.out.println(\"Incorrect password.\");\n }\n }", "private String getUserDataFile(String username, String password) {\n\t\tString fileName = \"\";\n\n\t\tif (LogIn.validateUser(username, password)) {\n\n\t\t\tfileName = \"..//datafiles//default\";\n\t\t} else {\n\n\t\t\tfileName = \"..//datafiles//user_not_found\";\n\t\t}\n\n\t\t/**\n\t\t * if (username.equals(\"userOne\") &&\n\t\t * password.equals(\"userOne_password\")) { fileName = \"userOne\"; } if\n\t\t * (username.equals(\"userTwo\") && password.equals(\"userTwo_password\")) {\n\t\t * fileName = \"userTwo\"; }\n\t\t */\n\n\t\treturn fileName;\n\t}", "public void postConstruct() {\n logger.fine(\"Generating local password\");\n SecureRandom random = new SecureRandom();\n byte[] pwd = new byte[PASSWORD_BYTES];\n random.nextBytes(pwd);\n password = toHex(pwd);\n File localPasswordFile =\n new File(env.getConfigDirPath(), LOCAL_PASSWORD_FILE);\n PrintWriter w = null;\n try {\n if (!localPasswordFile.exists()) {\n localPasswordFile.createNewFile();\n /*\n * XXX - There's a security hole here.\n * Between the time the file is created and the permissions\n * are changed to prevent others from opening it, someone\n * else could open it and wait for the data to be written.\n * Java needs the ability to create a file that's readable\n * only by the owner; coming in JDK 7.\n */\n localPasswordFile.setWritable(false, false); // take from all\n localPasswordFile.setWritable(true, true); // owner only\n localPasswordFile.setReadable(false, false); // take from all\n localPasswordFile.setReadable(true, true); // owner only\n }\n w = new PrintWriter(localPasswordFile);\n w.println(password);\n } catch (IOException ex) {\n // ignore errors\n logger.log(Level.FINE, \"Exception writing local password file\", ex);\n } finally {\n if (w != null)\n w.close();\n }\n }", "private void loadUserKeys(String encrypted_users_file)\n throws ClassNotFoundException, InvalidAlgorithmParameterException,\n InvalidKeyException, IOException, NoSuchAlgorithmException,\n NoSuchPaddingException, SignatureException\n {\n // Reads the encrypted Map from the file.\n FileInputStream file = new FileInputStream(encrypted_users_file);\n ObjectInputStream input = new ObjectInputStream(file);\n SecretData<TreeMap<String, DerivedKeys>> encrypted_map =\n (SecretData<TreeMap<String, DerivedKeys>>) input.readObject();\n\n // Checks and decipher the encrypted map.\n this.user_keys = encrypted_map.getPlaintext(this.master_keys);\n\n file.close();\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setup search view edit text and clear button listeners.
protected void setSearchView() { if (getSearchViewClear() != null) { Dynamic.setTooltip(getSearchViewClear()); getSearchViewClear().setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (getSearchViewEditText() != null) { getSearchViewEditText().getText().clear(); } } }); } if (getSearchViewEditText() != null) { getSearchViewEditText().addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { setSearchViewClearButton(); } @Override public void afterTextChanged(Editable s) { } }); } setSearchViewClearButton(); }
[ "private void setSearchPanel() {\n\t\tsearchET = (EditText) findViewById(R.id.searchET);\n\t\tImageButton searchBtn = (ImageButton) findViewById(R.id.searchBtn);\n\t\tsearchBtn.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n mAdapter.getFilter().filter(searchET.getText());\n }\n });\n\n\t\tsearchET.setOnEditorActionListener(new OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId,\n KeyEvent event) {\n boolean handled = false;\n if (actionId == EditorInfo.IME_ACTION_SEARCH) {\n mAdapter.getFilter().filter(searchET.getText());\n handled = true;\n }\n return handled;\n }\n });\n\n\t}", "private void setupSearchView() {\n // when a query is submitted, clear and load items from mSearchItemsFragment.\n mSearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n\n @Override\n public boolean onQueryTextSubmit(String query) {\n // close the keyboard\n View v = getCurrentFocus();\n if (v != null) {\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(v.getWindowToken(), 0);\n }\n\n // search the location\n new GoogleMapsLocationAsyncTask(mGeoCoder, MAX_SEARCH_RESULTS, GoogleMapsActivity.this).execute(query);\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n // do nothing\n return true;\n }\n });\n }", "private void setSearchTxtListener() {\n mSearchTxt.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n mSearchBtn.setText(R.string.search);\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n if (TextUtils.isEmpty(mSearchTxt.getText()))\n mSearchBtn.setText(getString(R.string.around_me));\n }\n });\n }", "void setEditListener() {\n binding.editSearch.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if (actionId == EditorInfo.IME_ACTION_SEARCH) {\n onSearchPerformed(binding.editSearch.getText().toString());\n return true;\n }\n return false;\n }\n });\n binding.editSearch.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(@NonNull CharSequence s, int start, int before, int count) {\n //perform search operation\n // mAdapter.updateSearchData(filter(list_data, s.toString()));\n binding.setVariable(BR.isTyping, s.length() > 0);\n if (TextUtils.isEmpty(s)) {\n contentListViewModel.disposeDisposable();\n mAdapter.updateSearchData(new ArrayList<>());\n expandAnimation(0);\n } else {\n contentListViewModel.searchTagList(s.toString().replaceAll(\"#\", \"\").toLowerCase());\n }\n\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n\n }", "private void initSearchVew() {\n searchView.setOnQueryTextListener(new MaterialSearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n filter(newText);\n return false;\n }\n });\n\n searchView.setOnSearchViewListener(new MaterialSearchView.SearchViewListener() {\n @Override\n public void onSearchViewShown() {\n\n }\n\n @Override\n public void onSearchViewClosed() {\n showAllAccount();\n }\n });\n }", "@Override\n\tprotected void onPostCreate(Bundle savedInstanceState) {\n\t\tmSearchView.addTextChangedListener(filterTextWatcher);\n\t\tsuper.onPostCreate(savedInstanceState);\n\t}", "private void setSearchViewClearButton() {\n if (getSearchViewEditText() == null) {\n return;\n }\n\n Dynamic.setVisibility(getSearchViewClear(), !TextUtils.isEmpty(\n getSearchViewEditText().getText()) ? View.VISIBLE : View.GONE);\n }", "public void initSearchView(){\n searchView.setQueryHint(\"Search course (TDA367)\");\n }", "private void setUpUniversitySearchView(){\n\n binding.searchViewSchool.setOnQueryTextListener(this);\n binding.searchViewSchool.setIconifiedByDefault(false);\n binding.searchViewSchool.setFocusable(false);\n\n //set the color for our search view edit text and text hint\n EditText searchEditText = binding.searchViewSchool.findViewById(androidx.appcompat.R.id.search_src_text);\n searchEditText.setHintTextColor(getResources().getColor(R.color.material_icons_light));\n searchEditText.setHint(\"School\");\n searchEditText.setGravity(Gravity.CENTER);\n\n //set the color for our search view icon\n ImageView searchMagIcon = binding.searchViewSchool.findViewById(androidx.appcompat.R.id.search_mag_icon);\n searchMagIcon.setColorFilter(ContextCompat.getColor(appContext, R.color.white));\n searchMagIcon.setVisibility(View.GONE);\n\n //set the line color\n View v = binding.searchViewSchool.findViewById(androidx.appcompat.R.id.search_plate);\n v.setBackgroundColor(Color.TRANSPARENT);\n }", "private void initSearchBar(View root){\n initNameList();\n\n autoCompleteTextView = root.findViewById(R.id.autoCompleteTextView);\n ArrayAdapter<String> recipeAdapter = new ArrayAdapter<>(getContext(),\n android.R.layout.simple_list_item_1, recipeNameList);\n autoCompleteTextView.setAdapter(recipeAdapter);\n\n autoCompleteTextView.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {}\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n updateRecipeList(s.toString());\n System.out.println(\"onTextChanged\");\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n updateRecipeList(s.toString());\n System.out.println(\"afterTextChanged\");\n }\n });\n }", "@Override\n public void bindView() {\n this.addSearchBtnClickHandler();\n this.addAdvanceSearchBtnClickHandler();\n this.addSearchContentBoxClickHandler();\n }", "private void initSearchView() {\n mSearchView = (SearchView) MenuItemCompat.getActionView(mSearchItem);\n\n SearchManager searchManager =\n (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n ComponentName cn = new ComponentName(this, SearchResultActivity.class);\n SearchableInfo info = searchManager.getSearchableInfo(cn);\n mSearchView.setSearchableInfo(info);\n }", "private void initSearchBar(View root){\n initNameList();\n\n autoCompleteTextView = root.findViewById(R.id.autoCompleteTextView);\n ArrayAdapter<String> ingredientAdapter = new ArrayAdapter<>(getContext(),\n android.R.layout.simple_list_item_1, ingredientNameList);\n autoCompleteTextView.setAdapter(ingredientAdapter);\n\n autoCompleteTextView.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {}\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n updateIngredientList(s.toString());\n System.out.println(\"onTextChanged\");\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n updateIngredientList(s.toString());\n System.out.println(\"afterTextChanged\");\n }\n });\n }", "public void initiate(){\n setOrientation(VERTICAL);\n inflate(getContext(),R.layout.search_component,this);\n EditText searchInput = (EditText) findViewById(R.id.search_input);\n ListView resultList = (ListView) findViewById(R.id.result_list);\n\n arrayAdapter = new ArrayAdapter<>(getContext(), R.layout.list_text_view, R.id.text_in_list);\n resultList.setAdapter(arrayAdapter);\n setWatcher(searchInput);\n }", "public void setSearchView (SearchView searchView){\n this.searchView = searchView;\n }", "public void setUpSearchBar() {\n //Display cancel icon on typing \n txtFldSearch.getDocument().addDocumentListener(new DocumentListener() {\n //when user start search -> display cancel search icon & set side menu icons to inactive & search\n @Override\n public void insertUpdate(DocumentEvent de) {\n try {\n setInactiveIcons();\n changeCancelSearchIcon();\n search(txtFldSearch.getText());\n\n } catch (SQLException ex) {\n Logger.getLogger(MainMenu.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n @Override\n public void removeUpdate(DocumentEvent de) {\n changeCancelSearchIcon();\n try {\n //if user delete all text -> display nothing\n if (txtFldSearch.getText().equals(\"\")) {\n pnlExtendedSubContent.removeAll();\n pnlExtendedSubContent.revalidate();\n pnlExtendedSubContent.repaint();\n } else {\n changeCancelSearchIcon();\n search(txtFldSearch.getText());\n }\n\n } catch (SQLException ex) {\n Logger.getLogger(MainMenu.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n\n //do nothing\n @Override\n public void changedUpdate(DocumentEvent de) {\n\n }\n\n //diplay or hide cancel icon when user searching\n public void changeCancelSearchIcon() {\n Runnable search = new Runnable() {\n @Override\n public void run() {\n //if text field empty -> remove cancel-search icon\n if (txtFldSearch.getText().isEmpty()) {\n lblCancelSearch.setIcon(null);\n } else {\n lblCancelSearch.setIcon(cancelSearch);\n\n }\n }\n };\n SwingUtilities.invokeLater(search);\n\n }\n });\n }", "private void initClearTextListener() {\n clearButton.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n editText.setText(\"\");\n }\n });\n }", "private void setUpDegreeSearchView(){\n\n binding.searchViewDegree.setOnQueryTextListener(this);\n binding.searchViewDegree.setIconifiedByDefault(false);\n binding.searchViewDegree.setFocusable(false);\n\n //set the color for our search view edit text and text hint\n EditText searchEditText = binding.searchViewDegree.findViewById(androidx.appcompat.R.id.search_src_text);\n searchEditText.setHintTextColor(getResources().getColor(R.color.material_icons_light));\n searchEditText.setHint(\"Degree\");\n searchEditText.setGravity(Gravity.CENTER);\n\n //set the color for our search view icon\n ImageView searchMagIcon = binding.searchViewDegree.findViewById(androidx.appcompat.R.id.search_mag_icon);\n searchMagIcon.setColorFilter(ContextCompat.getColor(appContext, R.color.white));\n searchMagIcon.setVisibility(View.GONE);\n\n //set the line color\n View v = binding.searchViewDegree.findViewById(androidx.appcompat.R.id.search_plate);\n v.setBackgroundColor(Color.TRANSPARENT);\n }", "@UiHandler(\"btnSearch\")\r\n void handleSearchClick(ClickEvent e)\r\n {\r\n getDataProvider().setSearchText(txtSearch.getText());\r\n refresh();\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Contexts: Limit returns InitialPositionX InitialPosition returns InitialPositionX InitialPositionX returns InitialPositionX Constraint: (name='positionX' value=INT)
protected void sequence_InitialPositionX(ISerializationContext context, InitialPositionX semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.LIMIT__NAME) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.LIMIT__NAME)); if (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.INITIAL_POSITION_X__VALUE) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.INITIAL_POSITION_X__VALUE)); } SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); feeder.accept(grammarAccess.getInitialPositionXAccess().getNamePositionXKeyword_0_0(), semanticObject.getName()); feeder.accept(grammarAccess.getInitialPositionXAccess().getValueINTTerminalRuleCall_2_0(), semanticObject.getValue()); feeder.finish(); }
[ "public int getPositionX( ) {\n\n return defaultX;\n }", "public float getInitialXPosition()\n {\n return initialXPosition;\n }", "int getXMinPos();", "public int getXLimitation() {\n return this.xLimitation;\n }", "int getPositionX () {\r\n return this.nX_px;\r\n }", "int getXMaxPos();", "public void setX_pos(int x_pos);", "int getBoundsX();", "void setX(int newX) {\n this.xPos = newX;\n }", "public void setXLimitation(int x) {\n this.xLimitation = x;\n }", "public int getDefaultInitialPositionX( ) {\r\n\r\n return scene.getPositionX( );\r\n }", "@Override\n public void setSoftLowerLimit(double position)\n {\n final String funcName = \"setSoftLowerLimit\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"position=%f\", position);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n softLowerLimit = position;\n }", "void setPositionX (int nX_px) {\r\n try {\r\n \r\n // Declare variables\r\n int nMinX_px;\r\n int nMaxX_px;\r\n\r\n // Set safeguards\r\n nMinX_px = 0;\r\n if (this instanceof HW02_ObjectRenderable) {\r\n nMaxX_px = \r\n HW02_Utility.getWindowSize() - \r\n ((HW02_ObjectRenderable) this).getWidth();\r\n }\r\n else {\r\n nMaxX_px = HW02_Utility.getWindowSize();\r\n }\r\n \r\n // Set position\r\n if (nX_px < nMinX_px) {\r\n this.nX_px = nMinX_px;\r\n }\r\n else if (nX_px > nMaxX_px) {\r\n this.nX_px = nMaxX_px;\r\n }\r\n else {\r\n this.nX_px = nX_px;\r\n }\r\n \r\n }\r\n catch (Throwable oError) {\r\n HW02_Utility.handleError(oError);\r\n }\r\n }", "double getPositionX();", "public float getX()\n {\n return getBounds().left + positionAnchor.x;\n }", "@Test\n public final void testNormalSetPositionStart() {\n int expResX = 2;\n int expResY = 3;\n int resultX = ship.getX();\n int resultY = ship.getY();\n assertEquals(expResX, resultX);\n assertEquals(expResY, resultY);\n // Ship s = new Ship(1, true, 4, 5);\n IShip s = createShip(1, true, 4, 5);\n expResX = 4;\n expResY = 5;\n resultX = s.getX();\n resultY = s.getY();\n assertEquals(expResX, resultX);\n assertEquals(expResY, resultY);\n }", "public int posXMin()\n\t{\n\t\treturn this.xMin;\n\t}", "abstract int getXPos();", "public double getMinX(){\n return xPos - screenwidth/2;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find newly added guest OS mapping by ID
GuestOSHypervisor getAddedGuestOsMapping(Long guestOsHypervisorId);
[ "GuestOSHypervisor addGuestOsMapping(AddGuestOsMappingCmd addGuestOsMappingCmd);", "GuestOS getAddedGuestOs(Long guestOsId);", "GuestOSHypervisor updateGuestOsMapping(UpdateGuestOsMappingCmd updateGuestOsMappingCmd);", "boolean removeGuestOsMapping(RemoveGuestOsMappingCmd removeGuestOsMappingCmd);", "private static String FindEntry(Pathway P, String id){\n for(Kegg_Entry K : P.getEntryL()){\n \t if(K.getID().equals(id)) \n return K.getName();\n }\n return \"error\";\n\t }", "GuestOS addGuestOs(AddGuestOsCmd addGuestOsCmd);", "private Mapping getMappingByID(List<BaseMapping> mappings, String uuid) {\n Mapping objectMapping = null;\n if (mappings != null) {\n for (ListIterator<BaseMapping> iter = mappings.listIterator(); iter.hasNext();) {\n Mapping element = (Mapping)iter.next();\n if (element.getId().equals(uuid)) {\n objectMapping = element;\n break;\n }\n }\n }\n return objectMapping;\n }", "MapContainer getMapContainer(Object id) throws IOException;", "private void populateIdToNameMap(Collection<PSIdName> mappings, \n Map<IPSGuid, String> idMap)\n {\n for (PSIdName mapping : mappings)\n {\n IPSGuid guid = new PSGuid(mapping.getId());\n String name = mapping.getName();\n\n idMap.put(guid, name);\n }\n \n cache.save(ID_NAME_MAP_KEY, (Serializable) idMap,\n IPSCacheAccess.IN_MEMORY_STORE);\n }", "private Vector resolveAllLocalSystem(String systemId) {\n Vector map = new Vector();\n String osname = SecuritySupport.getSystemProperty(\"os.name\");\n boolean windows = (osname.indexOf(\"Windows\") >= 0);\n Enumeration en = catalogEntries.elements();\n while (en.hasMoreElements()) {\n CatalogEntry e = (CatalogEntry) en.nextElement();\n if (e.getEntryType() == SYSTEM\n && (e.getEntryArg(0).equals(systemId)\n || (windows\n && e.getEntryArg(0).equalsIgnoreCase(systemId)))) {\n map.addElement(e.getEntryArg(1));\n }\n }\n if (map.size() == 0) {\n return null;\n } else {\n return map;\n }\n }", "boolean doesMapContainerExist(Object id) throws IOException;", "MapHotelMapping selectByPrimaryKey(Integer id);", "void addTestManagementSystemMapping (TestManagementSystemMapping testManagementSystemMapping);", "public VirtualMachineRegistry getVirtualMachineRegistry(long vmId, long customerId) {\n Session session = HibernateUtil.getSession();\n CustomerRegistry customer = null;\n try {\n customer = (CustomerRegistry) session.createCriteria(CustomerRegistry.class).add(Restrictions.eq(\"id\", customerId)).uniqueResult();\n } \n catch (HibernateException ex) {\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n HibernateUtil.closeSession(session);\n }\n \n VirtualMachineRegistry vm = null;\n for(VirtualMachineRegistry vr : customer.getVmList()) {\n if(vr.getId() == vmId) {\n vm = vr;\n break;\n }\n }\n \n return vm;\n }", "int getMapid();", "Mapping getMapping(String nodeId, String logicalConnPoint);", "VmInstance findByIdWithVncPassword(Long id) throws Exception;", "protected T findById(ID id) {\n return map.get(id);\n }", "private void mappingID() {\n\t\tScanner scanner = null;\n\t\ttry {\n\t\t\tscanner = new Scanner(new FileInputStream(PeerInfo));\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} \n\t\tint i = 0;\n\t\twhile(scanner.hasNext()) {\n\t\t\tint id = scanner.nextInt();\n\t\t\tif(id != this.id)\n\t\t\t\tidMap.put(id, i++);\n\t\t\tscanner.next();\tscanner.nextInt();scanner.nextInt();\n\t\t}\n\t\tscanner.close();\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string reducerjar = 10;
public java.lang.String getReducerjar() { java.lang.Object ref = reducerjar_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reducerjar_ = s; return s; } else { return (java.lang.String) ref; } }
[ "java.lang.String getReducerjar();", "public java.lang.String getReducerjar() {\n java.lang.Object ref = reducerjar_;\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 reducerjar_ = s;\n return s;\n }\n }", "NinjaWarrior(int s)\t \n\t{\n\t\tstr = s; \n\t}", "@Test\n\tpublic void testReducer() {\n\n\t\tList<Text> values = new ArrayList<Text>();\n\t\tvalues.add(new Text(\"1745.09564282 5218.86073424\"));\n\n\t\t/*\n\t\t * For this test, the reducer's input will be \"cat 1 1\".\n\t\t */\n\t\treduceDriver.withInput(new Text(\"Sweden\"), values);\n\n\t\t/*\n\t\t * The expected output is \"cat 2\"\n\t\t */\n\t\treduceDriver.withOutput(new Text(\"(Sweden)\"), new Text(\"| in 2011$ values PPP, 1995 health cost: 1745.1| 2014 health cost: 5218.86| cost increase (%): 199.06%\\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\"));\n\n\t\t/*\n\t\t * Run the test.\n\t\t */\n\t\treduceDriver.runTest();\n\t}", "@Test\n public void reducerTestDummy() throws IOException {\n }", "String getInt_lit();", "@Test\n public void testReducer() throws IOException {\n\n List<IntWritable> values = new ArrayList<IntWritable>();\n values.add(new IntWritable(1));\n values.add(new IntWritable(1));\n values.add(new IntWritable(1));\n values.add(new IntWritable(1));\n reduceDriver.withInput(new Text(\"charitable contribution\"), values);\n reduceDriver.withOutput(new Text(\"charitable contribution\"), new IntWritable(4));\n reduceDriver.runTest();\n }", "java.lang.String getA10();", "public Jumble(String x) {\n jumble = new HashMap<>();\n total = 0;\n for (int i=0; i<x.length(); i++) {\n this.add(x.charAt(i));\n //total++;\n }\n }", "public String digit(String digit);", "java.lang.String getS9();", "int getReducers();", "String getStringTerm1();", "String getStringTerm3();", "java.lang.String getNum2();", "String getStringTerm2();", "@Override\r\n public BinaryOperator<StringCombiner> combiner() {\r\n return StringCombiner::merge;\r\n }", "public static void main(String[] args) {\n\t\tString str= \"any text goes here\";\n\t\tSystem.out.println(str);\n\t\tString hello=\"Hello World\";\n\t\tSystem.out.println(hello);\n//\t\tconcat:\n\t\tString myName=\"Cybertek \" +\"School\";\n\tSystem.out.println(myName);\t\n\tString Year= \"This is\"+ 2019;\n\tSystem.out.println(Year);\n\tSystem.out.println(\"1\"+1+2); //112\n\tString str2=\"100\"+10;\n\tSystem.out.println(str2); //10010\n\tSystem.out.println(\"1+2+3\"); //1+2+3\n\tSystem.out.println(1+2+3); //6\n\tSystem.out.println(\"1\"+2+3); // \"12\"+3=123\n//\tTasks:\n\tSystem.out.println(\"123\"+4+5); //12345\n\tSystem.out.println(\"123\"+(4+5)); //1239\n\tSystem.out.println(1+\"2\"+3); //123\n//\tTask #2:\n\tSystem.out.println(1+(\"2\"+3)); //123\n\tSystem.out.println(1+2+\"3\"); //1+2=3+\"3\"=33\n\tSystem.out.println((1+2)+\"3\"); //(1+2)=3+\"3\"=33\n\tSystem.out.println(\"3\"+'3');\n// char can not be concated as a character but rather as a number or digit it is assigned when being assigned String.\n// We also cannot concat char to a number as the example below, but the representative number for the char value will be concated.\n\tSystem.out.println('3'+3); //'3'=51 in ACII table, 51+3=54.\n\t\n\t}", "public static void main(String[] args) {\n System.out.println(\"String: \" + Integer.toString(5));\n\n\n\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function verify that WebElement title/hint is target string
public void verifyWebElementHaveTargetAttributeTitle(WebElement web_element, String target_text) { if (web_element.getAttribute("title").replaceAll(" ", " ").equals(target_text.replaceAll(" ", " "))) { System.out.println(target_text + " is displayed in title."); ATUReports.add(time +" Target text is displayed in title.", target_text, target_text, LogAs.PASSED, null); Assert.assertTrue(true); } else { System.out.println(target_text + " is not displayed in title."); ATUReports.add(time +" Target text is not displayed in title.", target_text, web_element.getAttribute("title"), LogAs.FAILED, new CaptureScreen(ScreenshotOf.BROWSER_PAGE)); Assert.assertTrue(false); } }
[ "public void verifyThatTheTextOfWebElemenetIsAsExpected(WebElement web_element, String target_text) {\r\n\t\tif (web_element.getText().equals(target_text)) {\r\n\t\t\tSystem.out.println(target_text + \" is displayed as expected.\");\r\n\t\t\tATUReports.add(\"Target text is displayed as expected.\", target_text, target_text, LogAs.PASSED, null);\r\n\t\t\tAssert.assertTrue(true);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(target_text + \" is not displayed as expected.\");\r\n\t\t\tATUReports.add(\"Target text is not displayed as expected.\", target_text, web_element.getText(),\r\n\t\t\t\t\tLogAs.FAILED, new CaptureScreen(ScreenshotOf.BROWSER_PAGE));\r\n\t\t\tAssert.assertTrue(false);\r\n\t\t}\r\n\t}", "@Test\r\n\t\tpublic void testShowsCorrectTitle() {\r\n\t\t\t\r\n\t\t\t// Simply check that the title contains the word \"Hoodpopper\"\r\n\t\t\t\r\n\t\t\tString title = driver.getTitle();\r\n\t\t\tassertTrue(title.contains(\"Hoodpopper\"));\r\n\t\t}", "public void validateTitle()\r\n\t{\r\n\t\tString titleDisplayed = this.heading.getText();\r\n\t\tassertEquals(titleDisplayed, \"Dashboard\");\r\n\t\tSystem.out.println(\"Value is asserted\");\r\n\t\t\t}", "@Test(priority=0)\n\tpublic void titleVerification() {\n\t\tString expectedTitle = \"Facebook – log in or sign up\";\n\t\tString actualTitle = driver.getTitle();\n\t\tAssert.assertEquals(actualTitle, expectedTitle);\n\t}", "boolean isValidAndHandleSpecial(String title) {\n\t\tif (skipReportElement) {\n\t\t\tskipReportElement = false;\n\t\t\treturn false;\n\t\t}\n\n\t\tswitch (elementData) {\n\t\tcase NONE:\n\t\t\tbreak;\n\t\tcase CLASS_DOC:\n\t\t\ttest.addProperty(\"Class Documentation\", title);\n\t\t\ttest.setDescription(title);\n\t\t\telementData = NONE;\n\t\t\treturn false;\n\t\tcase TEST_DOC:\n\t\t\ttest.addProperty(\"Test Documentation\", title);\n\t\t\ttest.setDescription(title);\n\t\t\telementData = NONE;\n\t\t\treturn false;\n\t\tcase USER_DOC:\n\t\t\ttest.addProperty(\"User Documentation\", title);\n\t\t\ttest.setDescription(title);\n\t\t\telementData = NONE;\n\t\t\treturn false;\n\t\tcase TEST_BREADCUMBS:\n\t\t\ttest.addProperty(\"Breadcrumb\", title.replace(\"</span>\", \"\"));\n\t\t\telementData = NONE;\n\t\t\t// This also closes the span\n\t\t\tspanTrace--;\n\t\t\treturn false;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tif (StringUtils.isEmpty(title)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (title.contains(SPAN_OPEN_TAG)) {\n\t\t\t// ITAI: This is a ugly hack, When we execute from the IDE there\n\t\t\t// is a missing span close tag, so we\n\t\t\t// Never increase the number of the span trace above one.\n\t\t\tif (!(JSystemProperties.getInstance().isExecutedFromIDE() && spanTrace == 1)) {\n\t\t\t\tspanTrace++;\n\t\t\t}\n\t\t}\n\t\tif (spanTrace > 0) {\n\t\t\t// In span, let's search for that special elements\n\t\t\tswitch (title) {\n\t\t\tcase SPAN_OPEN_CLASS_DOC_TAG:\n\t\t\t\telementData = CLASS_DOC;\n\t\t\t\tskipReportElement = true;\n\t\t\t\tbreak;\n\t\t\tcase SPAN_OPEN_TEST_DOC_TAG:\n\t\t\t\telementData = TEST_DOC;\n\t\t\t\tskipReportElement = true;\n\t\t\t\tbreak;\n\t\t\tcase SPAN_OPEN_USER_DOC_TAG:\n\t\t\t\telementData = USER_DOC;\n\t\t\t\tskipReportElement = true;\n\t\t\t\tbreak;\n\t\t\tcase SPAN_OPEN_BREADCRUMBS_TAG:\n\t\t\t\telementData = TEST_BREADCUMBS;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (title.contains(SPAN_CLOSE_TAG)) {\n\t\t\tspanTrace--;\n\t\t\treturn false;\n\t\t}\n\n\t\t// ITAI: When running from the IDE, there are missing span closing\n\t\t// tags, so we do not increase the span trace after level one. The\n\t\t// result is that the span trace may have a negative value\n\t\treturn spanTrace <= 0;\n\t}", "public void assertTitle(final String title);", "@Ignore\n public void AccountStatisticsToolbarTitleVerification() {\n onView(allOf(isAssignableFrom(TextView.class), withParent(isAssignableFrom(Toolbar.class))))\n .check(matches(withText(toolbarTitle)));\n }", "public void verifyTitle() {\n String expectedTitle = \"Example.co/\";\n Assert.assertEquals(expectedTitle, driver.getTitle());\n }", "@Test\n public void panelTitleTest() {\n Player.GetItem item = getPlayerHandler().getMediaItem();\n onView(withId(R.id.title)).check(matches(withText(item.getTitle())));\n }", "@Test\r\n\tpublic void pageNavigatedToWomenTab()\r\n\t{\r\n\t\tString str=hp.getTxtWomentitle();\r\n\t\tAssert.assertTrue(hp.getTxtWomentitle().contains(\"Women\"), \"The page navigated wrongly\");\r\n\t}", "public void verifyResultContainOneResultWithTargetTitle(String target_title) {\r\n try {\r\n if ((title_list.size() == 1) && (title_list.get(0).getText().equals(target_title))) {\r\n System.out.println(\"Verifed that search results contains one result with target result: \" + target_title);\r\n ATUReports.add(time + \" Verifed that search results contains one result with target result.\", target_title, target_title, LogAs.PASSED, null);\r\n Assert.assertTrue(true);\r\n } else {\r\n System.out.println(\"Not verifed that search results contains one result with target result: \" + target_title);\r\n ATUReports.add(time + \" Verifed that search results contains one result with target result.\", target_title, title_list.get(0).getText(), LogAs.FAILED, new CaptureScreen(ScreenshotOf.BROWSER_PAGE));\r\n Assert.assertTrue(false);\r\n }\r\n } catch (Exception msg) {\r\n msg.printStackTrace();\r\n ATUReports.add(time + msg.getMessage(), \"Success.\", \"Failed.\", LogAs.FAILED, new CaptureScreen(ScreenshotOf.BROWSER_PAGE));\r\n }\r\n }", "public void verifySessionIntroTitle(){\r\n String actualIntroHeading = driver.findElement(By.className(introHeadingClassLocator)).getText().trim();\r\n Assert.assertTrue(actualIntroHeading.contains(expectedIntroHeading),\"Intro Title is present.\");\r\n }", "@Test(priority=1)\n\tpublic void verifyText() {\n\t\tString expectedText = \"Facebook helps you connect and share with the people in your life.\";\n\t\tString actualText = driver.findElement(By.cssSelector(\"#content > div > div > div > div > div.lfloat._ohe > div > div\")).getText();\n\t\tAssert.assertEquals(actualText, expectedText);\n\t}", "public void verifyWebElementHaveTargetAttributeWithTargetValue(WebElement web_element, String target_attribute,\r\n\t\t\tString target_text) {\r\n\t\tif (web_element.getAttribute(target_attribute).replaceAll(\" \", \" \")\r\n\t\t\t\t.equals(target_text.replaceAll(\" \", \" \"))) {\r\n\t\t\tSystem.out.println(target_text + \" is displayed in \" + target_attribute + \" attribute.\");\r\n\t\t\tATUReports.add(time +\" Target text is displayed in \" + target_attribute + \" attribute.\", target_text, target_text,\r\n\t\t\t\t\tLogAs.PASSED, null);\r\n\t\t\tAssert.assertTrue(true);\r\n\t\t} else {\r\n\t\t\tSystem.out.println(target_text + \" is not displayed in \" + target_attribute + \" attribute.\");\r\n\t\t\tATUReports.add(time +\" Target text is not displayed in \" + target_attribute + \" attribute.\", target_text,\r\n\t\t\t\t\tweb_element.getAttribute(target_attribute), LogAs.FAILED, new CaptureScreen(ScreenshotOf.BROWSER_PAGE));\r\n\t\t\tAssert.assertTrue(false);\r\n\t\t}\r\n\t}", "protected final void assertTitle(String expected)\n {\n try\n {\n assertEquals(getTitle(), expected);\n } catch (AssertionError ex)\n {\n reportAndThrowAssertionError(\"Unexpected title: %s\", ex);\n\n throw ex;\n }\n }", "private void checkTitle() {\n\t\tif (title == null) {\n\t\t\tinvalidArgs.add(MESSAGE_INVALID_TITLE);\n\t\t}\n\t}", "@Test\n public void amazonTitle() {\n\n Driver.getDriver().get(\"https://www.amazon.com\");\n String amazonTitle = Driver.getDriver().getTitle();\n String expAmazonTitle = \"Amazon.com. Spend less. Smile more.\";\n\n Assert.assertEquals(amazonTitle, expAmazonTitle);\n Assert.assertTrue(amazonTitle.contains(\"Amazon\"));\n\n\n\n }", "@Test(priority = 2, dependsOnMethods = {\n\t\t\t\"navigatetosyndicationstatus\" }, description = \"To Verify Title and Title Text\")\n\tpublic void VerifyTitleTxt() throws Exception {\n\t\tdata = new TPSEE_Syndication_Status_Page(CurrentState.getDriver());\n\t\tdata.VerifyTitlenText();\n\t\taddEvidence(CurrentState.getDriver(), \"To Verify Title and Title Text\", \"yes\");\n\t}", "@Test\r\n public void ActionableTrainingTest() {\n WebElement title1 = driver.findElement(By.cssSelector(\"h3.uagb-ifb-title\"));\r\n \r\n //Assertion for title of the first info box\r\n Assert.assertEquals(title1.getText(), \"Actionable Training\");\r\n \r\n //Print heading of the first info box\r\n Reporter.log(\"Heading is: \" + title1.getText(), true);\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the heartRate property.
public int getHeartRate() { return heartRate; }
[ "public static String getHeartRateValue() {\n return heartRateValue;\n }", "public int getHeartRate() {\n if (extraCase_ == 5) {\n return (Integer) extra_;\n }\n return 0;\n }", "int getHeartRate();", "public void setHeartRate(int value) {\n this.heartRate = value;\n }", "public int getHeartBeatInterval() {\n return heartBeatInterval_;\n }", "public int getHeartBeatInterval() {\n return heartBeatInterval_;\n }", "public java.math.BigDecimal getExchRate() {\n return exchRate;\n }", "public void setHeartRate(int newRate) {\n\t\tthis.heartRate = newRate;\n\t}", "public double getExchRate() {\n return _exchRate;\n }", "public double getExchRate() {\n return this.exchRate;\n }", "public int getFireRate() {\n return fireRate;\n }", "public void trackHeartRate();", "public BigDecimal getEXCH_RATE() {\r\n return EXCH_RATE;\r\n }", "public java.math.BigDecimal getExchange_rate() {\n return exchange_rate;\n }", "public Float getGoodRate() {\n return goodRate;\n }", "public double getHeardPercentReading() {\n return heardPercentReading;\n }", "public HeartBeat.Res getHeartBeatRes() {\n if (rspCase_ == 5) {\n return (HeartBeat.Res) rsp_;\n }\n return HeartBeat.Res.getDefaultInstance();\n }", "public double getExchangeRate()\n\t{\n\t\treturn exchangeRate;\n\t}", "@SuppressWarnings(\"deprecation\")\r\n public int getNumberOfHeartRateSamples() {\r\n LOG.info(\"get total number of heart rate samples\");\r\n return ((Long) this.session.createQuery(\"SELECT count(*) FROM HeartRateSample\").uniqueResult()).intValue();\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get number of peptides using identification id. This implementation will check cache first.
@Override @SuppressWarnings("unchecked") public int getNumberOfPeptides(Comparable identId) throws DataAccessException { int cnt = 0; List<Comparable> ids = (List<Comparable>) cache.get(CacheCategory.IDENTIFICATION_TO_PEPTIDE, identId); if (ids != null) { cnt = ids.size(); } else if (!DataAccessMode.CACHE_ONLY.equals(mode)) { cnt = super.getNumberOfPeptides(identId); } return cnt; }
[ "@Override\r\n @SuppressWarnings(\"unchecked\")\r\n public int getNumberOfUniquePeptides(Comparable identId) throws DataAccessException {\r\n int cnt = 0;\r\n List<Comparable> ids = (List<Comparable>) cache.get(CacheCategory.IDENTIFICATION_TO_PEPTIDE, identId);\r\n if (ids != null && cache.hasCacheCategory(CacheCategory.PEPTIDE_SEQUENCE)) {\r\n Collection<String> seqs = (Collection<String>) cache.getInBatch(CacheCategory.PEPTIDE_SEQUENCE, ids);\r\n cnt = (new HashSet<String>(seqs)).size();\r\n } else if (!DataAccessMode.CACHE_ONLY.equals(mode)) {\r\n cnt = super.getNumberOfUniquePeptides(identId);\r\n }\r\n return cnt;\r\n }", "int getPokemonIdCount();", "@Override\r\n public int getNumberOfPeaks(Comparable specId) throws DataAccessException {\r\n Integer numOfPeaks = (Integer) cache.get(CacheCategory.NUMBER_OF_PEAKS, specId);\r\n if (!DataAccessMode.CACHE_ONLY.equals(mode) && numOfPeaks == null) {\r\n numOfPeaks = super.getNumberOfPeaks(specId);\r\n cache.store(CacheCategory.NUMBER_OF_PEAKS, specId, numOfPeaks);\r\n }\r\n return numOfPeaks == null ? 0 : numOfPeaks;\r\n }", "long getNumberOfPeptides(String experimentAccession);", "@Override\r\n @SuppressWarnings(\"unchecked\")\r\n public int getNumberOfPTMs(Comparable identId, Comparable peptideId) throws DataAccessException {\r\n int cnt = 0;\r\n List<Tuple<String, Integer>> locations = (List<Tuple<String, Integer>>) cache.get(CacheCategory.PEPTIDE_TO_MODIFICATION, peptideId);\r\n if (locations != null) {\r\n cnt = locations.size();\r\n } else if (!DataAccessMode.CACHE_ONLY.equals(mode)) {\r\n cnt = super.getNumberOfPTMs(identId, peptideId);\r\n }\r\n\r\n return cnt;\r\n }", "@Override\r\n @SuppressWarnings(\"unchecked\")\r\n public int getNumberOfPTMs(Comparable identId) throws DataAccessException {\r\n int cnt = 0;\r\n List<Comparable> ids = (List<Comparable>) cache.get(CacheCategory.IDENTIFICATION_TO_PEPTIDE, identId);\r\n if (ids != null && cache.hasCacheCategory(CacheCategory.PEPTIDE_TO_MODIFICATION)) {\r\n // get all ptm locations\r\n Collection<List<Tuple<String, Integer>>> ptms = (Collection<List<Tuple<String, Integer>>>) cache.getInBatch(CacheCategory.PEPTIDE_TO_MODIFICATION, ids);\r\n for (List<Tuple<String, Integer>> ptm : ptms) {\r\n cnt += ptm.size();\r\n }\r\n } else if (!DataAccessMode.CACHE_ONLY.equals(mode)) {\r\n cnt = super.getNumberOfPTMs(identId);\r\n }\r\n\r\n return cnt;\r\n }", "public int getPeptidesNumber(int datasetId, boolean validated) {\r\n\r\n return computing.getAllDatasetPeptidesNumber(datasetId, validated);\r\n\r\n }", "public int getNumberPeptides() {\n return numberPeptides;\n }", "public int getnPeptides() {\n return nPeptides;\n }", "int getPlayersIdCount();", "int getDianPaoCountCount();", "int getJiePaoCountCount();", "public int getPeptidesNumber() {\n return peptidesNumber;\n }", "public abstract int getCntPoa();", "int getCombatNpcTrainerIdCount();", "int getCourseidsCount();", "int getProofsCount();", "long getNumberOfClusteredDistinctPeptides();", "int getMapIdsCount();" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a Dataflavor to the Transferable
protected void addDataFlavor(DataFlavor flavor) { //Check for Desktop Component Support dataFlavors.add(flavor); }
[ "public synchronized void addFlavor(DataFlavor flavor) {\r\n // add the flavor to the end of the list\r\n flavours.add(flavor);\r\n }", "@Test\n public void testAddDataFlavor() throws ClassNotFoundException {\n System.out.println(\"addDataFlavor\");\n String classname = \"org.ribax.swing.ui.TextDataItem\";\n DataItemTransferHandler instance = new DataItemTransferHandler(tdi);\n DataFlavor flavor = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType\n + \";class=\" + classname);\n instance.addFlavor(flavor);\n\n Vector<DataFlavor> result = instance.getFlavours();\n assertNotNull(result);\n assertEquals(3, result.size());\n DataFlavor df = result.get(2);\n\n assertEquals(flavor, df);\n }", "public boolean add(Object obj){\n if(obj instanceof String){\n //Cast object into string\n String flavor = (String) obj;\n\n //Check if the flavor is valid\n if(isValidFlavor(flavor)){\n this.flavor = flavor;\n super.setItemString(donutDataString());\n return true;\n }\n }\n return false;\n }", "@Test\n public void testAddFlavor() {\n System.out.println(\"addFlavor\");\n String classname = \"org.ribax.swing.ui.TextDataItem\";\n DataItemTransferHandler instance = new DataItemTransferHandler(tdi);\n instance.addFlavor(classname);\n\n Vector<DataFlavor> result = instance.getFlavours();\n assertNotNull(result);\n assertEquals(3, result.size());\n DataFlavor df = result.get(2);\n\n assertEquals(classname, df.getRepresentationClass().getName());\n\n }", "public void addFlavor(RequestFlavor flavor) {\n if (flavor == null)\n throw new IllegalArgumentException(\"Flavor must not be null\");\n flavors.add(flavor);\n }", "public synchronized void pushFlavor(DataFlavor flavor) {\r\n //add the flavor to the front of the list so it is the preferred flavour\r\n flavours.add(0, flavor);\r\n }", "@Test\n public void testPushDataFlavor() throws ClassNotFoundException {\n System.out.println(\"pushDataFlavor\");\n\n String classname = \"org.ribax.swing.ui.TextDataItem\";\n DataItemTransferHandler instance = new DataItemTransferHandler(tdi);\n DataFlavor flavor = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType\n + \";class=\" + classname);\n \n instance.pushFlavor(flavor);\n\n Vector<DataFlavor> result = instance.getFlavours();\n assertNotNull(result);\n\n /*\n for (DataFlavor f : result) {\n System.out.println(\"flavor = \" + f.toString());\n System.out.println(\"flavor = \" + f.getRepresentationClass().getName());\n }\n */\n assertEquals(3, result.size());\n DataFlavor df = result.get(0);\n\n assertEquals(flavor,df);\n }", "public void addData(F dataObject) {\r\n this.data = dataObject;\r\n }", "@Test\n public void testPushFlavor() {\n System.out.println(\"pushFlavor\");\n String classname = \"org.ribax.swing.ui.TextDataItem\";\n DataItemTransferHandler instance = new DataItemTransferHandler(tdi);\n instance.pushFlavor(classname);\n\n Vector<DataFlavor> result = instance.getFlavours();\n assertNotNull(result);\n\n /*\n for (DataFlavor f : result) {\n System.out.println(\"flavor = \" + f.toString());\n System.out.println(\"flavor = \" + f.getRepresentationClass().getName());\n }\n */\n assertEquals(3, result.size());\n DataFlavor df = result.get(0);\n\n assertEquals(classname, df.getRepresentationClass().getName());\n }", "public Object getTransferData(DataFlavor flavor)\n throws UnsupportedFlavorException, IOException\n {\n if (flavor == DataFlavor.imageFlavor)\n return this;\n\n return null;\n }", "public void addAttachedFish(Fish f){}", "public boolean isDataFlavorSupported(DataFlavor flavor) {\r\n if(dataFlavors.contains(flavor)) return true;\r\n else return false;\r\n }", "public synchronized void pushFlavor(String classname) {\r\n //add the flavor to the front of the list so it is the preferred flavour\r\n try {\r\n flavours.add(0, new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType\r\n + \";class=\" + classname)); //$NON-NLS-1$\r\n } catch (ClassNotFoundException e) {\r\n System.out.println(Messages.getString(BUNDLE_NAME, \"DataItemTransferHandler.4\")); //$NON-NLS-1$\r\n }\r\n }", "public boolean isDataFlavorSupported(DataFlavor flavor);", "Flavor create(Flavor flavor);", "public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException {\r\n if(isDataFlavorSupported(flavor)==false) throw new UnsupportedFlavorException(flavor);\r\n \r\n //Get the Objects BLX XML as the Data\r\n if(flavor.equals(BLXDataFlavor.XML_FLAVOR)) {\r\n \r\n StringWriter writer = new StringWriter();\r\n BLXUtility.writeBLXObject(dataObj, writer);\r\n \r\n return new ByteArrayInputStream(writer.toString().getBytes());\r\n }\r\n \r\n throw new UnsupportedFlavorException(flavor);\r\n }", "@Test\n public void testGetPreferredFlavour() throws ClassNotFoundException {\n System.out.println(\"getPreferredFlavour\");\n String classname = \"org.ribax.swing.ui.DataItem\";\n \n DataItemTransferHandler instance = new DataItemTransferHandler(tdi);\n\n DataFlavor[] flavors = {new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType\n + \";class=org.ribax.swing.ui.DataItem\" ),\n new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType\n + \";class=org.ribax.swing.ui.TextDataItem\" )\n\n };\n\n DataFlavor expResult = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType\n + \";class=\" + classname);\n\n DataFlavor result = instance.getPreferredFlavour(flavors);\n\n assertNotNull(result);\n \n assertEquals(expResult, result);\n\n // check we can get an added flavor\n classname = \"org.ribax.swing.ui.TextDataItem\";\n instance.addFlavor(classname);\n\n expResult = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType\n + \";class=\" + classname);\n\n result = instance.getPreferredFlavour(new DataFlavor[] {expResult});\n\n assertNotNull(result);\n\n assertEquals(expResult, result);\n }", "@Test\n public void testIsDataFlavorSupported() {\n System.out.println(\"isDataFlavorSupported\");\n DataFlavor flavor = null;\n DataItem instance = new DataItemImpl();\n boolean expResult = false;\n boolean result = instance.isDataFlavorSupported(flavor);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void setFlavor ( String flavor ) {\r\n\t\tthis.flavor = flavor;\r\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
changes label to display movie
public void setLabel(String movie) { displayMovie.setText(movie); }
[ "private void createLabel() {\n createAvnFPSLabel();\n }", "void setLabel(String labelNew);", "@Override\n public void pressMovieButton() {\n System.out.println(\"Hulu Movies:\\n- Cars\\n- Cinderella\\n- Wall-E\\n- ET\\n\");\n \n }", "void setLabel(String label);", "public void setLabel(String text);", "private void showMovieDetails() {\n\n if (movie != null) {\n\n // Display movie title, year, and overview into corresponding labels\n if (movie.getReleaseDate().equals(\"\")) {\n\n lblTitle.setText(movie.getMovieTitle());\n lblOverview.setText(movie.getMovieOverview());\n } else {\n\n lblTitle.setText(String.format(\"%s (%s)\", movie.getMovieTitle(), movie.getReleaseDate()));\n lblOverview.setText(movie.getMovieOverview());\n }\n\n // Display movie media into an image view\n downloadPoster();\n }\n }", "private void setLabelForActivity(){\n String label;\n if(sortOrderOfResults.equals(AppUtilities.QUERY_PATH_POPULAR)){\n label = getString(R.string.label_all_movies_activity_most_popular_movies);\n } else {\n label = getString(R.string.label_all_movies_activity_top_rated_movies);\n }\n actionBar.setTitle(label);\n }", "public void updateTitle()\n {\n JFrame frame = ((JFrame)(SwingUtilities.getRoot(this)));\n if (frame != null) \n {\n String synthName = getSynthNameLocal().trim();\n String fileName = (file == null ? \" Untitled\" : \" \" + file.getName());\n String disconnectedWarning = ((tuple == null || tuple.in == null) ? \" DISCONNECTED\" : \"\");\n String downloadingWarning = (patchTimer != null ? \" DOWNLOADING\" : \"\");\n String learningWarning = (learning ? \" LEARNING\" +\n (model.getLastKey() != null ? \" \" + model.getLastKey() + \n (model.getRange(model.getLastKey()) > 0 ? \"[\" + model.getRange(model.getLastKey()) + \"]\" : \"\") + \n (ccmap.getCCForKey(model.getLastKey()) >= 0 ? \"=\" + nameForCC(ccmap.getCCForKey(model.getLastKey()),\n ccmap.getPaneForKey(model.getLastKey())) : \"\")\n : \"\") : \"\");\n String restrictingWarning = (isShowingMutation() ? \" MUTATION PARAMETERS\" : \"\");\n \n frame.setTitle(synthName + fileName + \" \" + disconnectedWarning + downloadingWarning + learningWarning + restrictingWarning);\n }\n }", "public void setTitle(String movieTitle) { \n this.title = movieTitle; \n }", "public void setLabel()\r\n {\r\n int i = Converter(Input);\r\n \r\n if(j<i && label.getText().equals(\"Player 1\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n \r\n }else if(j<i && label.getText().equals(\"Player 2\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j<i && label.getText().equals(\"Player 3\"))\r\n {\r\n j++;\r\n label.setText(\"Player \"+j);\r\n }else if(j==i && label.getText().equals(\"Player \"+j))\r\n {\r\n j=1;\r\n label.setText(\"Player \"+j);\r\n }\r\n \r\n \r\n }", "public void updateLabel()\r\n\t{\r\n\t\tm_label.setText(\"#\" + m_nIndex + \" \" + m_fraction.getDelayMillis() + \" ms\");\r\n\t}", "public void setLabelText(String text);", "public void addMovieLabelToPanel(ArrayList<Movie> movieList, JPanel pnl) {\n //create label and add to pnl\n for (int i = 0; i < movieList.size(); i++) {\n //get movie\n Movie m = movieList.get(i);\n //create new label\n JLabel lbl = new JLabel();\n //create thumbnail and resize\n ImageIcon mThumbnail = new ImageIcon(new ImageIcon(\"src/\" + this.movieThumbnailFolder + \"/\" + m.getM_thumbnail())\n .getImage().getScaledInstance(210, 300, Image.SCALE_SMOOTH));\n //set label icon\n lbl.setIcon(mThumbnail);\n //set title for label\n String movieName = \"\";\n //change displayed title if movie title's length is too long\n if (m.getM_name().length() > 23) {\n movieName = m.getM_name().substring(0, 22);\n movieName += \"...\";\n } else {\n movieName = m.getM_name();\n }\n\n String title = \"<html>\\n\"\n + \"<p style=\\\\\\\"text-align:center;\\\\\\\"><b>\" + movieName + \"</b></p>\\n\"\n + \"<p style=\\\\\\\"text-align:center;\\\\\\\">\" + m.getM_views() + \" views</p>\\n\"\n + \"</html>\";\n lbl.setText(title);\n\n lbl.setToolTipText(m.getM_name());\n //set text position\n lbl.setHorizontalAlignment(CENTER);\n lbl.setHorizontalTextPosition(CENTER);\n lbl.setVerticalAlignment(BOTTOM);\n lbl.setVerticalTextPosition(BOTTOM);\n //set text font & color\n lbl.setFont(new Font(\"Roboto\", 0, 18));\n lbl.setForeground(txtColor);\n //set border\n lbl.setBorder(new LineBorder(pnlContentDarkThemeColor, 3));\n //events of label\n lbl.addMouseListener(new MouseInputAdapter() {\n //open movie info panel on clicked\n @Override\n public void mouseClicked(MouseEvent me) {\n try {\n scrPaneContent.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);\n //display movie info panel\n cl.show(pnlContent, \"movieInfo\");\n //set panel for navigation\n setPanel(\"movieInfo\");\n\n //set movie info panel\n setUpMovieInfoPanel(m);\n //set inactive icon\n setInactiveIcons();\n } catch (SQLException | StudioException | CountryException | ClientException ex) {\n Logger.getLogger(MainMenu.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n //change border when mouse exited\n @Override\n public void mouseExited(MouseEvent me) {\n lbl.setBorder(new LineBorder(pnlContentDarkThemeColor, 3));\n lbl.setCursor(new Cursor(Cursor.HAND_CURSOR));\n }\n\n //change border when mouse entered\n @Override\n public void mouseEntered(MouseEvent me) {\n lbl.setBorder(new LineBorder(activeElement, 3));\n }\n\n });\n //add label to panel\n pnl.add(lbl);\n }\n }", "@SuppressWarnings(\"unused\")\n\tprotected void updateLabel (String name) {\n Image image = new ImageIcon(\"Resource/\" + name + \".png\").getImage().getScaledInstance(200, 200, Image.SCALE_SMOOTH);\n ImageIcon icon = new ImageIcon(image);\n picture.setIcon(icon);\n if (icon != null) {\n picture.setText(null);\n } else {\n picture.setText(\"Image not found\");\n }\n }", "private void showLabel() {\n mLabel.startAnimation(inAnimation);\n }", "public static void showLabel(Label label){\n label.setVisible(true);\n PauseTransition visiblePause = new PauseTransition(Duration.seconds(2));\n visiblePause.setOnFinished(click -> label.setVisible(false));\n visiblePause.play();\n }", "public void updateLabels() {\n\t\tfinal PlayerInfo player = ControllerImpl.getController().getCurrentPlayer();\n\t\tplayerLabel.setText(\"Player:\\n\" + player.getName());\n\t\tcashLabel.setText(\"Cash:\\n\" + player.getMoney());\n\t\tnetWorthLabel.setText(\"Net Worth:\\n\" + player.totalAssets());\n\t\tprisonLabel.setText(player.isInJail() ? \"In jail\" : \"Free\");\n\t}", "public void movieDisplay(){\n actor.display();\n }", "private void SetPictureLabel(String label) {\r\n fileInfoLabel.setText(label);\r\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To support deep linking, we need to make sure that the client can get access to the last sent intent. The clients access this through a JNI api that allows them to get the intent set on launch. To update that after launch we have to manually replace the intent with the one caught here.
@Override protected void onNewIntent(Intent intent) { setIntent(intent); }
[ "@Override protected void onNewIntent(Intent intent)\n {\n setIntent(intent);\n }", "public void updateIntent(Intent intent) {\n clear();\n\n if (mContext == null || intent == null || !Intent.ACTION_VIEW.equals(intent.getAction())) {\n return;\n }\n\n mIsCustomTabIntent = LaunchIntentDispatcher.isCustomTabIntent(intent);\n boolean checkIsToChrome = true;\n // All custom tabs VIEW intents are by design explicit intents, so the presence of package\n // name doesn't imply they have to be handled by Chrome explicitly. Check if external apps\n // should be checked for handling the initial redirect chain.\n if (mIsCustomTabIntent) {\n boolean sendToExternalApps = IntentUtils.safeGetBooleanExtra(intent,\n CustomTabIntentDataProvider.EXTRA_SEND_TO_EXTERNAL_DEFAULT_HANDLER, false);\n checkIsToChrome = !(sendToExternalApps\n && ChromeFeatureList.isEnabled(ChromeFeatureList.CCT_EXTERNAL_LINK_HANDLING));\n }\n\n if (checkIsToChrome) mIsInitialIntentHeadingToChrome = isIntentToChrome(mContext, intent);\n\n // A copy of the intent with component cleared to find resolvers.\n mInitialIntent = new Intent(intent).setComponent(null);\n Intent selector = mInitialIntent.getSelector();\n if (selector != null) selector.setComponent(null);\n }", "@Override\n public void onNewIntent(Intent intent)\n {\n super.onNewIntent(intent);\n setIntent(intent);\n\n handleIntent(intent);\n }", "protected void onNewIntent(android.content.Intent intent) {\n java.lang.String referrer = intent.getStringExtra(\"referrer\");\n android.util.Log.d(\"TRACKING\", \"Reffff: \" + referrer);\n android.content.Intent i = new android.content.Intent();\n i.setAction(\"RRR_AAA_FFF\");\n i.putExtra(\"r\", referrer);\n this.context.sendBroadcast(i);\n super.onNewIntent(intent);\n }", "private void handleIntent() {\n // Get the intent set on this activity\n Intent intent = getIntent();\n\n // Get the uri from the intent\n Uri uri = intent.getData();\n\n // Do not continue if the uri does not exist\n if (uri == null) {\n return;\n }\n\n // Let the deep linker do its job\n Bundle data = mDeepLinker.buildBundle(uri);\n if (data == null) {\n return;\n }\n\n // See if we have a valid link\n DeepLinker.Link link = DeepLinker.getLinkFromBundle(data);\n if (link == null) {\n return;\n }\n\n // Do something with the link\n switch (link) {\n case HOME:\n break;\n case PROFILE:\n break;\n case PROFILE_OTHER:\n break;\n case SETTINGS:\n break;\n }\n\n String msg;\n long id = DeepLinker.getIdFromBundle(data);\n if (id == 0) {\n msg = String.format(\"Link: %s\", link);\n } else {\n msg = String.format(\"Link: %s, ID: %s\", link, id);\n }\n\n Toast.makeText(this, msg, Toast.LENGTH_LONG).show();\n }", "public void beginRoutingWithNewIntent();", "protected void onLaunchIntentReceived(Intent in_intent) {}", "@Test\n public void testLoggedIntentUrlParamWhenRewrite() {\n final String intentStartUrl = \"https://www.g.com/page?a=A\";\n final String manifestScope = \"https://www.google.com\";\n final String expectedRewrittenStartUrl =\n \"https://www.google.com/page?a=A&originalUrl=https%253A%252F%252Fwww.g.com%252Fpage%253Fa%253DA\";\n final String browserPackageName = \"browser.support.webapks\";\n\n Bundle bundle = new Bundle();\n bundle.putString(WebApkMetaDataKeys.START_URL, intentStartUrl);\n bundle.putString(WebApkMetaDataKeys.SCOPE, manifestScope);\n bundle.putString(WebApkMetaDataKeys.RUNTIME_HOST, browserPackageName);\n bundle.putString(WebApkMetaDataKeys.LOGGED_INTENT_URL_PARAM, \"originalUrl\");\n\n Assert.assertEquals(expectedRewrittenStartUrl,\n WebApkUtils.rewriteIntentUrlIfNecessary(intentStartUrl, bundle));\n }", "public Intent getIntent() {\n return intent;\n }", "public Intent getTrackedIntent(){\n Intent trackedIntent = new Intent(context, PPOpenTrackerActivity.class);\n trackedIntent.putExtra(PushPrime.NOTIFICATION, this);\n return trackedIntent;\n }", "private void changeIntent() {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public void dangerousLaunchClicked(View view) {\n Intent myIntent = new Intent();\n myIntent.setAction(\"qa.edu.qu.cse.cmps497.implicitintentslave.ACTION_LAUNCH\");\n if (myIntent.resolveActivity(getPackageManager())!=null) {\n startActivity(myIntent);\n } else {\n Log.e(TAG, \"no intent is found!\");\n }\n }", "public synchronized void selectPreviousIntent() {\n if (selectedIntents != null) {\n selectedIntents.prev();\n sendSelectedIntents();\n if (mode == SELECTED_INTENT) {\n mode = RELATED_INTENTS;\n }\n }\n }", "public void setIntent(final Intent intent) {\n this.intent = intent;\n }", "public Intent getIntent() {\n return mIntent;\n }", "public Intent convert() {\r\n Intent intent = new Intent(Intent.ACTION_VIEW, extractUri(this.intent));\r\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n return intent;\r\n }", "public Intent getIntent() {\n return mIntent;\n }", "void intentHasBeenReceivedThroughTheBroadCast(Intent intent);", "public Intent putIntentToNext(){\n Intent myTobaccoIntent = new Intent(getApplicationContext(), LoginActivity.class);\n myTobaccoIntent.putExtra(AppSettingUtils.EXTRAS_DEVICE_ADDRESS, deviceAddress);\n myTobaccoIntent.putExtra(AppSettingUtils.EXTRAS_SERVER_IP, ipAddress);\n return myTobaccoIntent;\n }" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return String.format("Plus[left=%s, right=%s]", left, right);
@Override public String toString() { return String.format("%s + %s", left, right); }
[ "@Override\n public String toString() { return '(' + left.toString() + ' ' + operation.toString() + ' ' + right.toString() + ')'; }", "@Override\n\t\tpublic String toString() {\n\t\t\treturn String.format(\"%s = %s\", left, right);\n\t\t}", "private static Expression createConcatenation(Expression left, Expression right)\n {\n // Matched registers. Check their scope.\n if (left.type.equals(ExpressionType.Register))\n Scope.getCurrent().check(left.integerValue);\n if (right.type.equals(ExpressionType.Register))\n Scope.getCurrent().check(right.integerValue);\n\n // Left and right are literals; concatenate them.\n if (left.isLiteral() && right.isLiteral())\n {\n if (left.type.equals(ExpressionType.StringSpecial) || right.type.equals(ExpressionType.StringSpecial))\n return Expression.fromSpecialString(left.toString(true) + right.toString(true));\n return Expression.fromString(left.toString(true) + right.toString(true));\n }\n\n return new ConcatenationExpression(left, right);\n }", "@Override\n public String toPostfixString() {\n return String.format(\"%s %s &\", leftOp.toPostfixString(), rightOp.toPostfixString());\n }", "public String toString()\n {\n \treturn Character.toUpperCase(letter) + (point >= 10 ? \"+\" : Integer.toString(point));\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"(\" + this.getLeftOperand() + \" \" + this.getOperator() + \" \"\r\n\t\t\t\t+ this.getRightOperand() + \")\";\r\n\t}", "public String toString(){\n return a + \" - \" + b;\n }", "public void prefix() {\n System.out.print(operator.getArithmeticOp() + \" \");\n left.prefix();\n right.prefix();\n System.out.println();\n }", "public final void rule__XAnnotationElementValueStringConcatenation__OperatorAssignment_1_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18360:1: ( ( ( '+' ) ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18361:1: ( ( '+' ) )\r\n {\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18361:1: ( ( '+' ) )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18362:1: ( '+' )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \r\n }\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18363:1: ( '+' )\r\n // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18364:1: '+'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \r\n }\r\n match(input,23,FOLLOW_23_in_rule__XAnnotationElementValueStringConcatenation__OperatorAssignment_1_136922); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "String concatString(String firstValue, String secondValue);", "public static void show(String num1, String num2,\n\tString result, char operator) {\n\t\t// set an appropriate length on numbers and result\n\t\tint len1 = num1.length();\n\t\tint len2 = num2.length();\n\t\tint len = resultat.length();\n\t\tint maxLen = Math.max(Math.max(len1, len2), len);\n\t\tnum1 = setLen(num1, maxLen - len1);\n\t\tnum2 = setLen(num2, maxLen - len2);\n\t\tresult = setLen(result, maxLen - len);\n\t\t// show the expression\n\t\tout.println(\" \" + num1);\n\t\tout.println(\" \" + operator + \" \" + num2);\n\t\tfor (int i = 0; i < maxLen + 2; i++)\n\t\tout.print(\" -\");\n\t\tout.println();\n\t\tout.println(\" \" + result + \" \\ n \");\n\t}", "public static final String shift(String text) {\n return \"+\" + text; /*I18nOK:LINE*/\n }", "public static String formatStacks(int quantity, boolean addPlus) {\n \t\tint stacks = quantity / 64;\n \t\tif (stacks == 0) {\n\t\t\treturn quantity + \"\";\n \t\t}\n \n \t\tint remaining = quantity % 64;\n \t\tif (remaining < 0) {\n \t\t\t//the remaining part should not contain a \"-\"\n \t\t\tremaining *= -1;\n \t\t}\n \n \t\tString quantityStr = nf.format(stacks) + \"/\" + remaining;\n \t\tif (quantity > 0 && addPlus) {\n \t\t\tquantityStr = \"+\" + quantityStr;\n \t\t}\n \t\treturn quantityStr;\n \t}", "public final void rule__XAnnotationElementValueStringConcatenation__OperatorAssignment_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:16938:1: ( ( ( '+' ) ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:16939:1: ( ( '+' ) )\n {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:16939:1: ( ( '+' ) )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:16940:1: ( '+' )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \n }\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:16941:1: ( '+' )\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:16942:1: '+'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \n }\n match(input,34,FOLLOW_34_in_rule__XAnnotationElementValueStringConcatenation__OperatorAssignment_1_134108); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXAnnotationElementValueStringConcatenationAccess().getOperatorPlusSignKeyword_1_1_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String toString(){\r\n return \"(\" + num + \")\";\r\n }", "String feedbackString (){\n String str1, str2;\n\n str1 = (blackPegAmount + \" black pegs. \");\n\n str2 = (whitePegAmount + \" white pegs. \");\n\n String result = String.join(\"\\n\",str1, str2);\n String resText = \"Result: \";\n return(resText + str1 + str2);\n }", "public String toString()\n\t{\n\t\tString s = \"(\"+x+\", \"+y+\")\";\n\t\treturn s;\n\t}", "protected String getLeftParametersText() {\n return \"(\";\n }", "public String formatForLikeLeftRight() {\n\t\tString string = this.value.toString().substring(1, this.value.toString().length() - 1);\n\t\tString firstChar = this.value.toString().substring(0, 1);\n\t\tString lastChar = this.value.toString().substring(this.value.toString().length() - 1,\n\t\t\t\tthis.value.toString().length());\n\t\treturn firstChar + Keyword.PERCENTAGE.value() + string + Keyword.PERCENTAGE.value() + lastChar;\n\t}" ]
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }